ai-cli-mcp 2.12.0 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.github/workflows/publish.yml +25 -0
  2. package/CHANGELOG.md +13 -0
  3. package/README.ja.md +10 -5
  4. package/README.md +10 -6
  5. package/dist/__tests__/app-cli.test.js +8 -0
  6. package/dist/__tests__/cli-bin-smoke.test.js +4 -0
  7. package/dist/__tests__/cli-builder.test.js +37 -0
  8. package/dist/__tests__/cli-process-service.test.js +46 -0
  9. package/dist/__tests__/cli-utils.test.js +31 -0
  10. package/dist/__tests__/mcp-contract.test.js +149 -1
  11. package/dist/__tests__/parsers.test.js +37 -1
  12. package/dist/app/cli.js +2 -2
  13. package/dist/app/mcp.js +8 -4
  14. package/dist/cli-builder.js +14 -0
  15. package/dist/cli-parse.js +8 -5
  16. package/dist/cli-process-service.js +6 -2
  17. package/dist/cli-utils.js +17 -0
  18. package/dist/cli.js +4 -3
  19. package/dist/model-catalog.js +4 -1
  20. package/dist/parsers.js +55 -0
  21. package/dist/process-service.js +4 -1
  22. package/dist/server.js +1 -1
  23. package/package.json +2 -2
  24. package/server.json +1 -1
  25. package/src/__tests__/app-cli.test.ts +8 -0
  26. package/src/__tests__/cli-bin-smoke.test.ts +4 -0
  27. package/src/__tests__/cli-builder.test.ts +47 -0
  28. package/src/__tests__/cli-process-service.test.ts +56 -0
  29. package/src/__tests__/cli-utils.test.ts +34 -0
  30. package/src/__tests__/mcp-contract.test.ts +173 -1
  31. package/src/__tests__/parsers.test.ts +44 -1
  32. package/src/app/cli.ts +2 -2
  33. package/src/app/mcp.ts +8 -4
  34. package/src/cli-builder.ts +18 -3
  35. package/src/cli-parse.ts +8 -5
  36. package/src/cli-process-service.ts +5 -2
  37. package/src/cli-utils.ts +21 -1
  38. package/src/cli.ts +4 -3
  39. package/src/model-catalog.ts +5 -1
  40. package/src/parsers.ts +61 -0
  41. package/src/process-service.ts +4 -2
  42. package/src/server.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  import { spawn, type ChildProcess } from 'node:child_process';
2
2
  import { buildCliCommand, type BuildCliCommandOptions } from './cli-builder.js';
3
- import { parseClaudeOutput, parseCodexOutput, parseGeminiOutput } from './parsers.js';
3
+ import { parseClaudeOutput, parseCodexOutput, parseForgeOutput, parseGeminiOutput } from './parsers.js';
4
4
 
5
- export type AgentType = 'claude' | 'codex' | 'gemini';
5
+ export type AgentType = 'claude' | 'codex' | 'gemini' | 'forge';
6
6
  export type ProcessStatus = 'running' | 'completed' | 'failed';
7
7
 
8
8
  interface TrackedProcess {
@@ -144,6 +144,8 @@ export class ProcessService {
144
144
  agentOutput = parseClaudeOutput(process.stdout);
145
145
  } else if (process.toolType === 'gemini') {
146
146
  agentOutput = parseGeminiOutput(process.stdout);
147
+ } else if (process.toolType === 'forge') {
148
+ agentOutput = parseForgeOutput(process.stdout);
147
149
  }
148
150
  }
149
151
 
package/src/server.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- export { debugLog, findClaudeCli, findCodexCli, findGeminiCli } from './cli-utils.js';
2
+ export { debugLog, findClaudeCli, findCodexCli, findForgeCli, findGeminiCli } from './cli-utils.js';
3
3
  export { resolveModelAlias } from './cli-builder.js';
4
4
  export { ClaudeCodeServer, runMcpServer, spawnAsync } from './app/mcp.js';
5
5