mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
feat(ccw): migrate backend to TypeScript
- Convert 40 JS files to TypeScript (CLI, tools, core, MCP server) - Add Zod for runtime parameter validation - Add type definitions in src/types/ - Keep src/templates/ as JavaScript (dashboard frontend) - Update bin entries to use dist/ - Add tsconfig.json with strict mode - Add backward-compatible exports for tests - All 39 tests passing Breaking changes: None (backward compatible) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -154,6 +154,7 @@ describe('MCP Server', () => {
|
||||
assert.equal(response.id, 3);
|
||||
assert(response.result);
|
||||
assert.equal(response.result.isError, true);
|
||||
assert(response.result.content[0].text.includes('not found'));
|
||||
// Error could be "not enabled" (filtered by default tools) or "not found" (all tools enabled)
|
||||
assert(response.result.content[0].text.includes('not enabled') || response.result.content[0].text.includes('not found'));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user