forked from kimhyungsik/ax_hub_mcp_tool
refactor: massive rename dap -> dat and dapmt -> datmt preserving encoding
All checks were successful
Deploy Tools / deploy (push) Successful in 1m21s
All checks were successful
Deploy Tools / deploy (push) Successful in 1m21s
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
- Preserve the existing tool-name convention and duplicate-name build validation.
|
||||
- Do not reintroduce the removed custom `McpFunction` annotation.
|
||||
- Keep project-specific metadata in `io.shinhanlife.dap.lib.annotation.ToolHint`.
|
||||
- Keep project-specific metadata in `io.shinhanlife.dat.lib.annotation.ToolHint`.
|
||||
- Verify with focused tests and `gradlew.bat test`.
|
||||
|
||||
---
|
||||
@@ -20,23 +20,23 @@
|
||||
### Task 1: Migrate tool-name validation
|
||||
|
||||
**Files:**
|
||||
- Modify: `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/validation/McpToolNameValidator.java`
|
||||
- Modify: `dap-was-lib/src/test/java/io/shinhanlife/dap/lib/validation/McpToolNameValidatorTest.java`
|
||||
- Modify: `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/validation/McpToolNameValidator.java`
|
||||
- Modify: `dat-was-lib/src/test/java/io/shinhanlife/dat/lib/validation/McpToolNameValidatorTest.java`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: Java source files containing `@McpTool(name = "...")`.
|
||||
- Produces: `McpToolNameValidator.assertUnique(Path)` that rejects duplicate or invalid SDK tool names.
|
||||
|
||||
- [ ] Write tests using `@McpTool` source snippets for duplicate, invalid, and valid names.
|
||||
- [ ] Run `:dap-was-lib:test --tests *McpToolNameValidatorTest` and confirm current implementation does not detect those annotations.
|
||||
- [ ] Run `:dat-was-lib:test --tests *McpToolNameValidatorTest` and confirm current implementation does not detect those annotations.
|
||||
- [ ] Replace the annotation scan target from `@McpFunction` to `@McpTool`.
|
||||
- [ ] Re-run the focused test and confirm it passes.
|
||||
|
||||
### Task 2: Migrate source metadata update behavior
|
||||
|
||||
**Files:**
|
||||
- Modify: `dap-was-lib/src/main/java/io/shinhanlife/dap/lib/util/ToolSourceUpdater.java`
|
||||
- Create: `dap-was-lib/src/test/java/io/shinhanlife/dap/lib/util/ToolSourceUpdaterTest.java`
|
||||
- Modify: `dat-was-lib/src/main/java/io/shinhanlife/dat/lib/util/ToolSourceUpdater.java`
|
||||
- Create: `dat-was-lib/src/test/java/io/shinhanlife/dat/lib/util/ToolSourceUpdaterTest.java`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: a tool interface source containing `@McpTool` and `@ToolHint`.
|
||||
|
||||
Reference in New Issue
Block a user