You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Split tools/utils.ts into naming and input-schema modules (#1040)
Splits `src/tools/utils.ts` into two intention-revealing modules
(#1021). A small devforge config alignment also rides along on this
branch as a separate commit.
## What we're solving
`src/tools/utils.ts` mixed two unrelated concerns behind a vague name —
a few tool-name / Actor-predicate helpers and the bulk
Actor-input-schema transformation pipeline — so consumers imported the
same module for very different reasons.
## How
- **`src/tools/actor_tool_naming.ts`** (new): `actorNameToToolName`,
`legacyToolNameToNew`, `getToolSchemaID`, `isActorInfoMcpServer`,
`isActorBlockedUnderPaymentProvider`.
- **`src/tools/actor_input_schema.ts`** (`git mv` from `utils.ts`): the
transform / AJV / enum bulk. One-way dependency — it imports
`getToolSchemaID` from the naming module; no cycle.
- Importers re-pointed across `src/` and tests. The `internals`
re-export surface is unchanged, so the hosted server needs no change.
Pure structural move — behavior identical. The 999-case unit suite
passes unchanged (only test import paths moved, no assertions touched).
Closes#1021
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01F9BCu79n9uTdTnGRTHt6SY
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments