@ai-coders/context 0.3.1 → 0.5.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.
- package/README.md +269 -29
- package/dist/fragments/compose.d.ts +30 -0
- package/dist/fragments/compose.d.ts.map +1 -0
- package/dist/fragments/compose.js +274 -0
- package/dist/fragments/compose.js.map +1 -0
- package/dist/fragments/extractors/index.d.ts +26 -0
- package/dist/fragments/extractors/index.d.ts.map +1 -0
- package/dist/fragments/extractors/index.js +58 -0
- package/dist/fragments/extractors/index.js.map +1 -0
- package/dist/fragments/extractors/module.d.ts +12 -0
- package/dist/fragments/extractors/module.d.ts.map +1 -0
- package/dist/fragments/extractors/module.js +302 -0
- package/dist/fragments/extractors/module.js.map +1 -0
- package/dist/fragments/extractors/project.d.ts +12 -0
- package/dist/fragments/extractors/project.d.ts.map +1 -0
- package/dist/fragments/extractors/project.js +274 -0
- package/dist/fragments/extractors/project.js.map +1 -0
- package/dist/fragments/extractors/semantic.d.ts +12 -0
- package/dist/fragments/extractors/semantic.d.ts.map +1 -0
- package/dist/fragments/extractors/semantic.js +329 -0
- package/dist/fragments/extractors/semantic.js.map +1 -0
- package/dist/fragments/index.d.ts +47 -0
- package/dist/fragments/index.d.ts.map +1 -0
- package/dist/fragments/index.js +75 -0
- package/dist/fragments/index.js.map +1 -0
- package/dist/fragments/query.d.ts +101 -0
- package/dist/fragments/query.d.ts.map +1 -0
- package/dist/fragments/query.js +200 -0
- package/dist/fragments/query.js.map +1 -0
- package/dist/fragments/render/compact.d.ts +15 -0
- package/dist/fragments/render/compact.d.ts.map +1 -0
- package/dist/fragments/render/compact.js +209 -0
- package/dist/fragments/render/compact.js.map +1 -0
- package/dist/fragments/render/index.d.ts +17 -0
- package/dist/fragments/render/index.d.ts.map +1 -0
- package/dist/fragments/render/index.js +40 -0
- package/dist/fragments/render/index.js.map +1 -0
- package/dist/fragments/render/json.d.ts +9 -0
- package/dist/fragments/render/json.d.ts.map +1 -0
- package/dist/fragments/render/json.js +44 -0
- package/dist/fragments/render/json.js.map +1 -0
- package/dist/fragments/render/markdown.d.ts +9 -0
- package/dist/fragments/render/markdown.d.ts.map +1 -0
- package/dist/fragments/render/markdown.js +291 -0
- package/dist/fragments/render/markdown.js.map +1 -0
- package/dist/fragments/store.d.ts +49 -0
- package/dist/fragments/store.d.ts.map +1 -0
- package/dist/fragments/store.js +161 -0
- package/dist/fragments/store.js.map +1 -0
- package/dist/fragments/types.d.ts +241 -0
- package/dist/fragments/types.d.ts.map +1 -0
- package/dist/fragments/types.js +8 -0
- package/dist/fragments/types.js.map +1 -0
- package/dist/generators/agents/agentConfig.d.ts.map +1 -1
- package/dist/generators/agents/agentConfig.js +42 -0
- package/dist/generators/agents/agentConfig.js.map +1 -1
- package/dist/generators/agents/agentGenerator.d.ts +8 -2
- package/dist/generators/agents/agentGenerator.d.ts.map +1 -1
- package/dist/generators/agents/agentGenerator.js +112 -54
- package/dist/generators/agents/agentGenerator.js.map +1 -1
- package/dist/generators/agents/agentTypes.d.ts +1 -1
- package/dist/generators/agents/agentTypes.d.ts.map +1 -1
- package/dist/generators/agents/agentTypes.js +4 -1
- package/dist/generators/agents/agentTypes.js.map +1 -1
- package/dist/generators/agents/templates/indexTemplate.d.ts.map +1 -1
- package/dist/generators/agents/templates/indexTemplate.js +2 -1
- package/dist/generators/agents/templates/indexTemplate.js.map +1 -1
- package/dist/generators/agents/templates/playbookTemplate.d.ts +3 -2
- package/dist/generators/agents/templates/playbookTemplate.d.ts.map +1 -1
- package/dist/generators/agents/templates/playbookTemplate.js +144 -10
- package/dist/generators/agents/templates/playbookTemplate.js.map +1 -1
- package/dist/generators/agents/templates/types.d.ts +9 -1
- package/dist/generators/agents/templates/types.d.ts.map +1 -1
- package/dist/generators/documentation/documentationGenerator.d.ts +5 -1
- package/dist/generators/documentation/documentationGenerator.d.ts.map +1 -1
- package/dist/generators/documentation/documentationGenerator.js +106 -18
- package/dist/generators/documentation/documentationGenerator.js.map +1 -1
- package/dist/generators/documentation/guideRegistry.d.ts.map +1 -1
- package/dist/generators/documentation/guideRegistry.js +0 -8
- package/dist/generators/documentation/guideRegistry.js.map +1 -1
- package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts +2 -0
- package/dist/generators/documentation/templates/apiReferenceTemplate.d.ts.map +1 -0
- package/dist/generators/documentation/templates/apiReferenceTemplate.js +469 -0
- package/dist/generators/documentation/templates/apiReferenceTemplate.js.map +1 -0
- package/dist/generators/documentation/templates/architectureTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/architectureTemplate.js +175 -41
- package/dist/generators/documentation/templates/architectureTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/common.d.ts +28 -1
- package/dist/generators/documentation/templates/common.d.ts.map +1 -1
- package/dist/generators/documentation/templates/common.js +130 -10
- package/dist/generators/documentation/templates/common.js.map +1 -1
- package/dist/generators/documentation/templates/dataFlowTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/dataFlowTemplate.js +98 -33
- package/dist/generators/documentation/templates/dataFlowTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.js +2 -34
- package/dist/generators/documentation/templates/developmentWorkflowTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/glossaryTemplate.d.ts +1 -1
- package/dist/generators/documentation/templates/glossaryTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/glossaryTemplate.js +51 -37
- package/dist/generators/documentation/templates/glossaryTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/index.d.ts +4 -0
- package/dist/generators/documentation/templates/index.d.ts.map +1 -1
- package/dist/generators/documentation/templates/index.js +9 -1
- package/dist/generators/documentation/templates/index.js.map +1 -1
- package/dist/generators/documentation/templates/indexTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/indexTemplate.js +1 -32
- package/dist/generators/documentation/templates/indexTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/migrationTemplate.d.ts +2 -0
- package/dist/generators/documentation/templates/migrationTemplate.d.ts.map +1 -0
- package/dist/generators/documentation/templates/migrationTemplate.js +400 -0
- package/dist/generators/documentation/templates/migrationTemplate.js.map +1 -0
- package/dist/generators/documentation/templates/onboardingTemplate.d.ts +2 -0
- package/dist/generators/documentation/templates/onboardingTemplate.d.ts.map +1 -0
- package/dist/generators/documentation/templates/onboardingTemplate.js +409 -0
- package/dist/generators/documentation/templates/onboardingTemplate.js.map +1 -0
- package/dist/generators/documentation/templates/projectOverviewTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/projectOverviewTemplate.js +97 -38
- package/dist/generators/documentation/templates/projectOverviewTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/securityTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/securityTemplate.js +1 -32
- package/dist/generators/documentation/templates/securityTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/testingTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/testingTemplate.js +1 -33
- package/dist/generators/documentation/templates/testingTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/toolingTemplate.d.ts.map +1 -1
- package/dist/generators/documentation/templates/toolingTemplate.js +2 -33
- package/dist/generators/documentation/templates/toolingTemplate.js.map +1 -1
- package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts +2 -0
- package/dist/generators/documentation/templates/troubleshootingTemplate.d.ts.map +1 -0
- package/dist/generators/documentation/templates/troubleshootingTemplate.js +270 -0
- package/dist/generators/documentation/templates/troubleshootingTemplate.js.map +1 -0
- package/dist/generators/documentation/templates/types.d.ts +2 -1
- package/dist/generators/documentation/templates/types.d.ts.map +1 -1
- package/dist/generators/plans/planGenerator.d.ts +4 -0
- package/dist/generators/plans/planGenerator.d.ts.map +1 -1
- package/dist/generators/plans/planGenerator.js +30 -2
- package/dist/generators/plans/planGenerator.js.map +1 -1
- package/dist/generators/plans/templates/indexTemplate.d.ts.map +1 -1
- package/dist/generators/plans/templates/indexTemplate.js +5 -13
- package/dist/generators/plans/templates/indexTemplate.js.map +1 -1
- package/dist/generators/plans/templates/planTemplate.d.ts.map +1 -1
- package/dist/generators/plans/templates/planTemplate.js +123 -30
- package/dist/generators/plans/templates/planTemplate.js.map +1 -1
- package/dist/generators/plans/templates/types.d.ts +10 -0
- package/dist/generators/plans/templates/types.d.ts.map +1 -1
- package/dist/generators/shared/generatorUtils.d.ts +1 -1
- package/dist/generators/shared/generatorUtils.d.ts.map +1 -1
- package/dist/generators/shared/generatorUtils.js +7 -10
- package/dist/generators/shared/generatorUtils.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +459 -1073
- package/dist/index.js.map +1 -1
- package/dist/prompts/defaults.d.ts +2 -2
- package/dist/prompts/defaults.d.ts.map +1 -1
- package/dist/prompts/defaults.js +26 -56
- package/dist/prompts/defaults.js.map +1 -1
- package/dist/services/ai/agentEvents.d.ts +45 -0
- package/dist/services/ai/agentEvents.d.ts.map +1 -0
- package/dist/services/ai/agentEvents.js +61 -0
- package/dist/services/ai/agentEvents.js.map +1 -0
- package/dist/services/ai/agents/documentationAgent.d.ts +53 -0
- package/dist/services/ai/agents/documentationAgent.d.ts.map +1 -0
- package/dist/services/ai/agents/documentationAgent.js +243 -0
- package/dist/services/ai/agents/documentationAgent.js.map +1 -0
- package/dist/services/ai/agents/index.d.ts +7 -0
- package/dist/services/ai/agents/index.d.ts.map +1 -0
- package/dist/services/ai/agents/index.js +10 -0
- package/dist/services/ai/agents/index.js.map +1 -0
- package/dist/services/ai/agents/planAgent.d.ts +68 -0
- package/dist/services/ai/agents/planAgent.d.ts.map +1 -0
- package/dist/services/ai/agents/planAgent.js +389 -0
- package/dist/services/ai/agents/planAgent.js.map +1 -0
- package/dist/services/ai/agents/playbookAgent.d.ts +54 -0
- package/dist/services/ai/agents/playbookAgent.d.ts.map +1 -0
- package/dist/services/ai/agents/playbookAgent.js +265 -0
- package/dist/services/ai/agents/playbookAgent.js.map +1 -0
- package/dist/services/ai/aiSdkClient.d.ts +67 -0
- package/dist/services/ai/aiSdkClient.d.ts.map +1 -0
- package/dist/services/ai/aiSdkClient.js +143 -0
- package/dist/services/ai/aiSdkClient.js.map +1 -0
- package/dist/services/ai/index.d.ts +7 -0
- package/dist/services/ai/index.d.ts.map +1 -0
- package/dist/services/ai/index.js +49 -0
- package/dist/services/ai/index.js.map +1 -0
- package/dist/services/ai/providerFactory.d.ts +35 -0
- package/dist/services/ai/providerFactory.d.ts.map +1 -0
- package/dist/services/ai/providerFactory.js +107 -0
- package/dist/services/ai/providerFactory.js.map +1 -0
- package/dist/services/ai/schemas.d.ts +331 -0
- package/dist/services/ai/schemas.d.ts.map +1 -0
- package/dist/services/ai/schemas.js +236 -0
- package/dist/services/ai/schemas.js.map +1 -0
- package/dist/services/ai/tools/analyzeSymbolsTool.d.ts +33 -0
- package/dist/services/ai/tools/analyzeSymbolsTool.d.ts.map +1 -0
- package/dist/services/ai/tools/analyzeSymbolsTool.js +57 -0
- package/dist/services/ai/tools/analyzeSymbolsTool.js.map +1 -0
- package/dist/services/ai/tools/checkScaffoldingTool.d.ts +18 -0
- package/dist/services/ai/tools/checkScaffoldingTool.d.ts.map +1 -0
- package/dist/services/ai/tools/checkScaffoldingTool.js +86 -0
- package/dist/services/ai/tools/checkScaffoldingTool.js.map +1 -0
- package/dist/services/ai/tools/fillScaffoldingTool.d.ts +38 -0
- package/dist/services/ai/tools/fillScaffoldingTool.d.ts.map +1 -0
- package/dist/services/ai/tools/fillScaffoldingTool.js +259 -0
- package/dist/services/ai/tools/fillScaffoldingTool.js.map +1 -0
- package/dist/services/ai/tools/getFileStructureTool.d.ts +29 -0
- package/dist/services/ai/tools/getFileStructureTool.d.ts.map +1 -0
- package/dist/services/ai/tools/getFileStructureTool.js +48 -0
- package/dist/services/ai/tools/getFileStructureTool.js.map +1 -0
- package/dist/services/ai/tools/index.d.ts +20 -0
- package/dist/services/ai/tools/index.d.ts.map +1 -0
- package/dist/services/ai/tools/index.js +62 -0
- package/dist/services/ai/tools/index.js.map +1 -0
- package/dist/services/ai/tools/initializeContextTool.d.ts +25 -0
- package/dist/services/ai/tools/initializeContextTool.d.ts.map +1 -0
- package/dist/services/ai/tools/initializeContextTool.js +121 -0
- package/dist/services/ai/tools/initializeContextTool.js.map +1 -0
- package/dist/services/ai/tools/listFilesTool.d.ts +18 -0
- package/dist/services/ai/tools/listFilesTool.d.ts.map +1 -0
- package/dist/services/ai/tools/listFilesTool.js +34 -0
- package/dist/services/ai/tools/listFilesTool.js.map +1 -0
- package/dist/services/ai/tools/readFileTool.d.ts +17 -0
- package/dist/services/ai/tools/readFileTool.d.ts.map +1 -0
- package/dist/services/ai/tools/readFileTool.js +63 -0
- package/dist/services/ai/tools/readFileTool.js.map +1 -0
- package/dist/services/ai/tools/scaffoldPlanTool.d.ts +19 -0
- package/dist/services/ai/tools/scaffoldPlanTool.d.ts.map +1 -0
- package/dist/services/ai/tools/scaffoldPlanTool.js +81 -0
- package/dist/services/ai/tools/scaffoldPlanTool.js.map +1 -0
- package/dist/services/ai/tools/searchCodeTool.d.ts +25 -0
- package/dist/services/ai/tools/searchCodeTool.d.ts.map +1 -0
- package/dist/services/ai/tools/searchCodeTool.js +96 -0
- package/dist/services/ai/tools/searchCodeTool.js.map +1 -0
- package/dist/services/baseLLMClient.d.ts +3 -3
- package/dist/services/baseLLMClient.d.ts.map +1 -1
- package/dist/services/baseLLMClient.js +44 -5
- package/dist/services/baseLLMClient.js.map +1 -1
- package/dist/services/fill/fillService.d.ts +11 -5
- package/dist/services/fill/fillService.d.ts.map +1 -1
- package/dist/services/fill/fillService.js +152 -88
- package/dist/services/fill/fillService.js.map +1 -1
- package/dist/services/init/initService.d.ts +3 -2
- package/dist/services/init/initService.d.ts.map +1 -1
- package/dist/services/init/initService.js +54 -19
- package/dist/services/init/initService.js.map +1 -1
- package/dist/services/llmClientFactory.d.ts +37 -9
- package/dist/services/llmClientFactory.d.ts.map +1 -1
- package/dist/services/llmClientFactory.js +54 -94
- package/dist/services/llmClientFactory.js.map +1 -1
- package/dist/services/mcp/index.d.ts +2 -0
- package/dist/services/mcp/index.d.ts.map +1 -0
- package/dist/services/mcp/index.js +7 -0
- package/dist/services/mcp/index.js.map +1 -0
- package/dist/services/mcp/mcpServer.d.ts +45 -0
- package/dist/services/mcp/mcpServer.d.ts.map +1 -0
- package/dist/services/mcp/mcpServer.js +371 -0
- package/dist/services/mcp/mcpServer.js.map +1 -0
- package/dist/services/openRouterClient.d.ts +0 -3
- package/dist/services/openRouterClient.d.ts.map +1 -1
- package/dist/services/openRouterClient.js +2 -49
- package/dist/services/openRouterClient.js.map +1 -1
- package/dist/services/passthrough/commandRouter.d.ts +53 -0
- package/dist/services/passthrough/commandRouter.d.ts.map +1 -0
- package/dist/services/passthrough/commandRouter.js +349 -0
- package/dist/services/passthrough/commandRouter.js.map +1 -0
- package/dist/services/passthrough/index.d.ts +7 -0
- package/dist/services/passthrough/index.d.ts.map +1 -0
- package/dist/services/passthrough/index.js +23 -0
- package/dist/services/passthrough/index.js.map +1 -0
- package/dist/services/passthrough/protocol.d.ts +269 -0
- package/dist/services/passthrough/protocol.d.ts.map +1 -0
- package/dist/services/passthrough/protocol.js +151 -0
- package/dist/services/passthrough/protocol.js.map +1 -0
- package/dist/services/passthrough/stdinReader.d.ts +42 -0
- package/dist/services/passthrough/stdinReader.d.ts.map +1 -0
- package/dist/services/passthrough/stdinReader.js +111 -0
- package/dist/services/passthrough/stdinReader.js.map +1 -0
- package/dist/services/plan/planService.d.ts +5 -5
- package/dist/services/plan/planService.d.ts.map +1 -1
- package/dist/services/plan/planService.js +52 -53
- package/dist/services/plan/planService.js.map +1 -1
- package/dist/services/semantic/codebaseAnalyzer.d.ts +40 -0
- package/dist/services/semantic/codebaseAnalyzer.d.ts.map +1 -0
- package/dist/services/semantic/codebaseAnalyzer.js +540 -0
- package/dist/services/semantic/codebaseAnalyzer.js.map +1 -0
- package/dist/services/semantic/contextBuilder.d.ts +79 -0
- package/dist/services/semantic/contextBuilder.d.ts.map +1 -0
- package/dist/services/semantic/contextBuilder.js +538 -0
- package/dist/services/semantic/contextBuilder.js.map +1 -0
- package/dist/services/semantic/index.d.ts +12 -0
- package/dist/services/semantic/index.d.ts.map +1 -0
- package/dist/services/semantic/index.js +33 -0
- package/dist/services/semantic/index.js.map +1 -0
- package/dist/services/semantic/lsp/index.d.ts +2 -0
- package/dist/services/semantic/lsp/index.d.ts.map +1 -0
- package/dist/services/semantic/lsp/index.js +6 -0
- package/dist/services/semantic/lsp/index.js.map +1 -0
- package/dist/services/semantic/lsp/lspLayer.d.ts +32 -0
- package/dist/services/semantic/lsp/lspLayer.d.ts.map +1 -0
- package/dist/services/semantic/lsp/lspLayer.js +378 -0
- package/dist/services/semantic/lsp/lspLayer.js.map +1 -0
- package/dist/services/semantic/treeSitter/index.d.ts +2 -0
- package/dist/services/semantic/treeSitter/index.d.ts.map +1 -0
- package/dist/services/semantic/treeSitter/index.js +6 -0
- package/dist/services/semantic/treeSitter/index.js.map +1 -0
- package/dist/services/semantic/treeSitter/treeSitterLayer.d.ts +37 -0
- package/dist/services/semantic/treeSitter/treeSitterLayer.d.ts.map +1 -0
- package/dist/services/semantic/treeSitter/treeSitterLayer.js +518 -0
- package/dist/services/semantic/treeSitter/treeSitterLayer.js.map +1 -0
- package/dist/services/semantic/types.d.ts +122 -0
- package/dist/services/semantic/types.d.ts.map +1 -0
- package/dist/services/semantic/types.js +31 -0
- package/dist/services/semantic/types.js.map +1 -0
- package/dist/services/serve/index.d.ts +2 -0
- package/dist/services/serve/index.d.ts.map +1 -0
- package/dist/services/serve/index.js +6 -0
- package/dist/services/serve/index.js.map +1 -0
- package/dist/services/serve/serveService.d.ts +38 -0
- package/dist/services/serve/serveService.d.ts.map +1 -0
- package/dist/services/serve/serveService.js +99 -0
- package/dist/services/serve/serveService.js.map +1 -0
- package/dist/services/shared/llmConfig.d.ts +19 -3
- package/dist/services/shared/llmConfig.d.ts.map +1 -1
- package/dist/services/shared/llmConfig.js +44 -57
- package/dist/services/shared/llmConfig.js.map +1 -1
- package/dist/services/sync/index.d.ts +6 -0
- package/dist/services/sync/index.d.ts.map +1 -0
- package/dist/services/sync/index.js +16 -0
- package/dist/services/sync/index.js.map +1 -0
- package/dist/services/sync/markdownReferenceHandler.d.ts +3 -0
- package/dist/services/sync/markdownReferenceHandler.d.ts.map +1 -0
- package/dist/services/sync/markdownReferenceHandler.js +133 -0
- package/dist/services/sync/markdownReferenceHandler.js.map +1 -0
- package/dist/services/sync/presets.d.ts +6 -0
- package/dist/services/sync/presets.d.ts.map +1 -0
- package/dist/services/sync/presets.js +49 -0
- package/dist/services/sync/presets.js.map +1 -0
- package/dist/services/sync/symlinkHandler.d.ts +7 -0
- package/dist/services/sync/symlinkHandler.d.ts.map +1 -0
- package/dist/services/sync/symlinkHandler.js +129 -0
- package/dist/services/sync/symlinkHandler.js.map +1 -0
- package/dist/services/sync/syncService.d.ts +15 -0
- package/dist/services/sync/syncService.d.ts.map +1 -0
- package/dist/services/sync/syncService.js +222 -0
- package/dist/services/sync/syncService.js.map +1 -0
- package/dist/services/sync/types.d.ts +62 -0
- package/dist/services/sync/types.d.ts.map +1 -0
- package/dist/services/sync/types.js +3 -0
- package/dist/services/sync/types.js.map +1 -0
- package/dist/types.d.ts +8 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/cliUI.d.ts +33 -0
- package/dist/utils/cliUI.d.ts.map +1 -1
- package/dist/utils/cliUI.js +157 -107
- package/dist/utils/cliUI.js.map +1 -1
- package/dist/utils/contentSanitizer.d.ts +42 -0
- package/dist/utils/contentSanitizer.d.ts.map +1 -0
- package/dist/utils/contentSanitizer.js +238 -0
- package/dist/utils/contentSanitizer.js.map +1 -0
- package/dist/utils/fileMapper.d.ts +1 -1
- package/dist/utils/fileMapper.d.ts.map +1 -1
- package/dist/utils/fileMapper.js +40 -19
- package/dist/utils/fileMapper.js.map +1 -1
- package/dist/utils/gitService.d.ts.map +1 -1
- package/dist/utils/gitService.js +12 -14
- package/dist/utils/gitService.js.map +1 -1
- package/dist/utils/i18n.d.ts +96 -43
- package/dist/utils/i18n.d.ts.map +1 -1
- package/dist/utils/i18n.js +194 -88
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/prompts/configSummary.d.ts +7 -0
- package/dist/utils/prompts/configSummary.d.ts.map +1 -0
- package/dist/utils/prompts/configSummary.js +63 -0
- package/dist/utils/prompts/configSummary.js.map +1 -0
- package/dist/utils/prompts/index.d.ts +22 -0
- package/dist/utils/prompts/index.d.ts.map +1 -0
- package/dist/utils/prompts/index.js +122 -0
- package/dist/utils/prompts/index.js.map +1 -0
- package/dist/utils/prompts/llmPrompts.d.ts +11 -0
- package/dist/utils/prompts/llmPrompts.d.ts.map +1 -0
- package/dist/utils/prompts/llmPrompts.js +96 -0
- package/dist/utils/prompts/llmPrompts.js.map +1 -0
- package/dist/utils/prompts/smartDefaults.d.ts +15 -0
- package/dist/utils/prompts/smartDefaults.d.ts.map +1 -0
- package/dist/utils/prompts/smartDefaults.js +105 -0
- package/dist/utils/prompts/smartDefaults.js.map +1 -0
- package/dist/utils/prompts/types.d.ts +38 -0
- package/dist/utils/prompts/types.d.ts.map +1 -0
- package/dist/utils/prompts/types.js +3 -0
- package/dist/utils/prompts/types.js.map +1 -0
- package/dist/utils/theme.d.ts +66 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/utils/theme.js +93 -0
- package/dist/utils/theme.js.map +1 -0
- package/dist/version.d.ts +8 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +15 -0
- package/dist/version.js.map +1 -0
- package/package.json +18 -11
- package/prompts/update_plan_prompt.md +4 -5
- package/prompts/update_scaffold_prompt.md +14 -35
- package/dist/commands/shared/agents.d.ts +0 -2
- package/dist/commands/shared/agents.d.ts.map +0 -1
- package/dist/commands/shared/agents.js +0 -15
- package/dist/commands/shared/agents.js.map +0 -1
- package/dist/commands/shared/selection.d.ts +0 -12
- package/dist/commands/shared/selection.d.ts.map +0 -1
- package/dist/commands/shared/selection.js +0 -95
- package/dist/commands/shared/selection.js.map +0 -1
- package/dist/generators/agents/contextUtils.d.ts +0 -8
- package/dist/generators/agents/contextUtils.d.ts.map +0 -1
- package/dist/generators/agents/contextUtils.js +0 -15
- package/dist/generators/agents/contextUtils.js.map +0 -1
- package/dist/generators/agents/promptFormatter.d.ts +0 -9
- package/dist/generators/agents/promptFormatter.d.ts.map +0 -1
- package/dist/generators/agents/promptFormatter.js +0 -84
- package/dist/generators/agents/promptFormatter.js.map +0 -1
- package/dist/generators/analyzers/codebaseAnalyzer.d.ts +0 -45
- package/dist/generators/analyzers/codebaseAnalyzer.d.ts.map +0 -1
- package/dist/generators/analyzers/codebaseAnalyzer.js +0 -293
- package/dist/generators/analyzers/codebaseAnalyzer.js.map +0 -1
- package/dist/generators/analyzers/index.d.ts +0 -3
- package/dist/generators/analyzers/index.d.ts.map +0 -1
- package/dist/generators/analyzers/index.js +0 -6
- package/dist/generators/analyzers/index.js.map +0 -1
- package/dist/generators/documentation/documentationTemplates.d.ts +0 -21
- package/dist/generators/documentation/documentationTemplates.d.ts.map +0 -1
- package/dist/generators/documentation/documentationTemplates.js +0 -359
- package/dist/generators/documentation/documentationTemplates.js.map +0 -1
- package/dist/generators/documentation/documentationTypes.d.ts +0 -11
- package/dist/generators/documentation/documentationTypes.d.ts.map +0 -1
- package/dist/generators/documentation/documentationTypes.js +0 -22
- package/dist/generators/documentation/documentationTypes.js.map +0 -1
- package/dist/generators/documentation/documentationUtils.d.ts +0 -7
- package/dist/generators/documentation/documentationUtils.d.ts.map +0 -1
- package/dist/generators/documentation/documentationUtils.js +0 -28
- package/dist/generators/documentation/documentationUtils.js.map +0 -1
- package/dist/generators/documentation/incrementalDocumentationGenerator.d.ts +0 -33
- package/dist/generators/documentation/incrementalDocumentationGenerator.d.ts.map +0 -1
- package/dist/generators/documentation/incrementalDocumentationGenerator.js +0 -400
- package/dist/generators/documentation/incrementalDocumentationGenerator.js.map +0 -1
- package/dist/generators/documentation/templates/frontMatter.d.ts +0 -11
- package/dist/generators/documentation/templates/frontMatter.d.ts.map +0 -1
- package/dist/generators/documentation/templates/frontMatter.js +0 -29
- package/dist/generators/documentation/templates/frontMatter.js.map +0 -1
- package/dist/generators/documentation/templates.d.ts +0 -31
- package/dist/generators/documentation/templates.d.ts.map +0 -1
- package/dist/generators/documentation/templates.js +0 -566
- package/dist/generators/documentation/templates.js.map +0 -1
- package/dist/generators/guidelines/agentIntegration.d.ts +0 -43
- package/dist/generators/guidelines/agentIntegration.d.ts.map +0 -1
- package/dist/generators/guidelines/agentIntegration.js +0 -157
- package/dist/generators/guidelines/agentIntegration.js.map +0 -1
- package/dist/generators/guidelines/guidelineTypes.d.ts +0 -40
- package/dist/generators/guidelines/guidelineTypes.d.ts.map +0 -1
- package/dist/generators/guidelines/guidelineTypes.js +0 -144
- package/dist/generators/guidelines/guidelineTypes.js.map +0 -1
- package/dist/generators/guidelines/guidelinesAnalyzer.d.ts +0 -30
- package/dist/generators/guidelines/guidelinesAnalyzer.d.ts.map +0 -1
- package/dist/generators/guidelines/guidelinesAnalyzer.js +0 -263
- package/dist/generators/guidelines/guidelinesAnalyzer.js.map +0 -1
- package/dist/generators/guidelines/guidelinesGenerator.d.ts +0 -30
- package/dist/generators/guidelines/guidelinesGenerator.d.ts.map +0 -1
- package/dist/generators/guidelines/guidelinesGenerator.js +0 -249
- package/dist/generators/guidelines/guidelinesGenerator.js.map +0 -1
- package/dist/generators/guidelines/guidelinesTemplates.d.ts +0 -23
- package/dist/generators/guidelines/guidelinesTemplates.d.ts.map +0 -1
- package/dist/generators/guidelines/guidelinesTemplates.js +0 -304
- package/dist/generators/guidelines/guidelinesTemplates.js.map +0 -1
- package/dist/generators/guidelines/index.d.ts +0 -6
- package/dist/generators/guidelines/index.d.ts.map +0 -1
- package/dist/generators/guidelines/index.js +0 -16
- package/dist/generators/guidelines/index.js.map +0 -1
- package/dist/generators/moduleGrouper.d.ts +0 -14
- package/dist/generators/moduleGrouper.d.ts.map +0 -1
- package/dist/generators/moduleGrouper.js +0 -82
- package/dist/generators/moduleGrouper.js.map +0 -1
- package/dist/generators/projectAnalyzer.d.ts +0 -14
- package/dist/generators/projectAnalyzer.d.ts.map +0 -1
- package/dist/generators/projectAnalyzer.js +0 -217
- package/dist/generators/projectAnalyzer.js.map +0 -1
- package/dist/services/anthropicClient.d.ts +0 -12
- package/dist/services/anthropicClient.d.ts.map +0 -1
- package/dist/services/anthropicClient.js +0 -98
- package/dist/services/anthropicClient.js.map +0 -1
- package/dist/services/changeAnalyzer.d.ts +0 -44
- package/dist/services/changeAnalyzer.d.ts.map +0 -1
- package/dist/services/changeAnalyzer.js +0 -344
- package/dist/services/changeAnalyzer.js.map +0 -1
- package/dist/services/geminiClient.d.ts +0 -12
- package/dist/services/geminiClient.d.ts.map +0 -1
- package/dist/services/geminiClient.js +0 -96
- package/dist/services/geminiClient.js.map +0 -1
- package/dist/services/grokClient.d.ts +0 -12
- package/dist/services/grokClient.d.ts.map +0 -1
- package/dist/services/grokClient.js +0 -101
- package/dist/services/grokClient.js.map +0 -1
- package/dist/services/openaiClient.d.ts +0 -12
- package/dist/services/openaiClient.d.ts.map +0 -1
- package/dist/services/openaiClient.js +0 -98
- package/dist/services/openaiClient.js.map +0 -1
- package/dist/utils/interactiveMode.d.ts +0 -21
- package/dist/utils/interactiveMode.d.ts.map +0 -1
- package/dist/utils/interactiveMode.js +0 -737
- package/dist/utils/interactiveMode.js.map +0 -1
- package/dist/utils/pricing.d.ts +0 -14
- package/dist/utils/pricing.d.ts.map +0 -1
- package/dist/utils/pricing.js +0 -115
- package/dist/utils/pricing.js.map +0 -1
- package/dist/utils/tokenEstimator.d.ts +0 -28
- package/dist/utils/tokenEstimator.d.ts.map +0 -1
- package/dist/utils/tokenEstimator.js +0 -134
- package/dist/utils/tokenEstimator.js.map +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROVIDER_ENV_VARS = exports.DEFAULT_MODELS = void 0;
|
|
4
|
+
exports.createProvider = createProvider;
|
|
5
|
+
exports.detectProviderFromEnv = detectProviderFromEnv;
|
|
6
|
+
exports.getApiKeyFromEnv = getApiKeyFromEnv;
|
|
7
|
+
exports.getModelFromEnv = getModelFromEnv;
|
|
8
|
+
const openai_1 = require("@ai-sdk/openai");
|
|
9
|
+
const anthropic_1 = require("@ai-sdk/anthropic");
|
|
10
|
+
const google_1 = require("@ai-sdk/google");
|
|
11
|
+
/**
|
|
12
|
+
* Default models for each provider
|
|
13
|
+
*/
|
|
14
|
+
exports.DEFAULT_MODELS = {
|
|
15
|
+
openrouter: 'x-ai/grok-4.1-fast',
|
|
16
|
+
openai: 'gpt-5.2',
|
|
17
|
+
anthropic: 'claude-opus-4.5',
|
|
18
|
+
google: 'gemini-3-flash-preview'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Environment variable names for API keys
|
|
22
|
+
*/
|
|
23
|
+
exports.PROVIDER_ENV_VARS = {
|
|
24
|
+
openrouter: ['OPENROUTER_API_KEY'],
|
|
25
|
+
openai: ['OPENAI_API_KEY'],
|
|
26
|
+
anthropic: ['ANTHROPIC_API_KEY'],
|
|
27
|
+
google: ['GOOGLE_API_KEY', 'GOOGLE_GENERATIVE_AI_API_KEY']
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a provider instance based on the configuration.
|
|
31
|
+
* OpenRouter uses OpenAI SDK with a custom base URL.
|
|
32
|
+
*/
|
|
33
|
+
function createProvider(config) {
|
|
34
|
+
const { provider, apiKey, baseUrl, model } = config;
|
|
35
|
+
switch (provider) {
|
|
36
|
+
case 'openai':
|
|
37
|
+
return {
|
|
38
|
+
provider: (0, openai_1.createOpenAI)({
|
|
39
|
+
apiKey,
|
|
40
|
+
baseURL: baseUrl
|
|
41
|
+
}),
|
|
42
|
+
modelId: model || exports.DEFAULT_MODELS.openai
|
|
43
|
+
};
|
|
44
|
+
case 'anthropic':
|
|
45
|
+
return {
|
|
46
|
+
provider: (0, anthropic_1.createAnthropic)({
|
|
47
|
+
apiKey
|
|
48
|
+
}),
|
|
49
|
+
modelId: model || exports.DEFAULT_MODELS.anthropic
|
|
50
|
+
};
|
|
51
|
+
case 'google':
|
|
52
|
+
return {
|
|
53
|
+
provider: (0, google_1.createGoogleGenerativeAI)({
|
|
54
|
+
apiKey
|
|
55
|
+
}),
|
|
56
|
+
modelId: model || exports.DEFAULT_MODELS.google
|
|
57
|
+
};
|
|
58
|
+
case 'openrouter':
|
|
59
|
+
default:
|
|
60
|
+
// OpenRouter uses OpenAI-compatible API
|
|
61
|
+
return {
|
|
62
|
+
provider: (0, openai_1.createOpenAI)({
|
|
63
|
+
apiKey,
|
|
64
|
+
baseURL: baseUrl || 'https://openrouter.ai/api/v1',
|
|
65
|
+
headers: {
|
|
66
|
+
'HTTP-Referer': 'https://ai-coders-context',
|
|
67
|
+
'X-Title': 'AI Coders Context'
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
modelId: model || exports.DEFAULT_MODELS.openrouter
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Detects the provider from available environment variables
|
|
76
|
+
*/
|
|
77
|
+
function detectProviderFromEnv() {
|
|
78
|
+
if (process.env.OPENAI_API_KEY)
|
|
79
|
+
return 'openai';
|
|
80
|
+
if (process.env.ANTHROPIC_API_KEY)
|
|
81
|
+
return 'anthropic';
|
|
82
|
+
if (process.env.GOOGLE_API_KEY || process.env.GOOGLE_GENERATIVE_AI_API_KEY)
|
|
83
|
+
return 'google';
|
|
84
|
+
if (process.env.OPENROUTER_API_KEY)
|
|
85
|
+
return 'openrouter';
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Gets the API key for a provider from environment variables
|
|
90
|
+
*/
|
|
91
|
+
function getApiKeyFromEnv(provider) {
|
|
92
|
+
const envVars = exports.PROVIDER_ENV_VARS[provider];
|
|
93
|
+
for (const envVar of envVars) {
|
|
94
|
+
const value = process.env[envVar];
|
|
95
|
+
if (value)
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
return undefined;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Gets the model override from environment for a provider
|
|
102
|
+
*/
|
|
103
|
+
function getModelFromEnv(provider) {
|
|
104
|
+
const envVarName = `${provider.toUpperCase()}_MODEL`;
|
|
105
|
+
return process.env[envVarName];
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=providerFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerFactory.js","sourceRoot":"","sources":["../../../src/services/ai/providerFactory.ts"],"names":[],"mappings":";;;AAuCA,wCA4CC;AAKD,sDAMC;AAKD,4CAOC;AAKD,0CAGC;AAlHD,2CAA8C;AAC9C,iDAAoD;AACpD,2CAA0D;AAa1D;;GAEG;AACU,QAAA,cAAc,GAA+B;IACxD,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,iBAAiB;IAC5B,MAAM,EAAE,wBAAwB;CACjC,CAAC;AAEF;;GAEG;AACU,QAAA,iBAAiB,GAAiC;IAC7D,UAAU,EAAE,CAAC,oBAAoB,CAAC;IAClC,MAAM,EAAE,CAAC,gBAAgB,CAAC;IAC1B,SAAS,EAAE,CAAC,mBAAmB,CAAC;IAChC,MAAM,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACH,SAAgB,cAAc,CAAC,MAAiB;IAC9C,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAEpD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ;YACX,OAAO;gBACL,QAAQ,EAAE,IAAA,qBAAY,EAAC;oBACrB,MAAM;oBACN,OAAO,EAAE,OAAO;iBACjB,CAAC;gBACF,OAAO,EAAE,KAAK,IAAI,sBAAc,CAAC,MAAM;aACxC,CAAC;QAEJ,KAAK,WAAW;YACd,OAAO;gBACL,QAAQ,EAAE,IAAA,2BAAe,EAAC;oBACxB,MAAM;iBACP,CAAC;gBACF,OAAO,EAAE,KAAK,IAAI,sBAAc,CAAC,SAAS;aAC3C,CAAC;QAEJ,KAAK,QAAQ;YACX,OAAO;gBACL,QAAQ,EAAE,IAAA,iCAAwB,EAAC;oBACjC,MAAM;iBACP,CAAC;gBACF,OAAO,EAAE,KAAK,IAAI,sBAAc,CAAC,MAAM;aACxC,CAAC;QAEJ,KAAK,YAAY,CAAC;QAClB;YACE,wCAAwC;YACxC,OAAO;gBACL,QAAQ,EAAE,IAAA,qBAAY,EAAC;oBACrB,MAAM;oBACN,OAAO,EAAE,OAAO,IAAI,8BAA8B;oBAClD,OAAO,EAAE;wBACP,cAAc,EAAE,2BAA2B;wBAC3C,SAAS,EAAE,mBAAmB;qBAC/B;iBACF,CAAC;gBACF,OAAO,EAAE,KAAK,IAAI,sBAAc,CAAC,UAAU;aAC5C,CAAC;IACN,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB;IACnC,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc;QAAE,OAAO,QAAQ,CAAC;IAChD,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B;QAAE,OAAO,QAAQ,CAAC;IAC5F,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB;QAAE,OAAO,YAAY,CAAC;IACxD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,QAAoB;IACnD,MAAM,OAAO,GAAG,yBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC5C,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC;IAC1B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,QAAoB;IAClD,MAAM,UAAU,GAAG,GAAG,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC;IACrD,OAAO,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ReadFileInputSchema: z.ZodObject<{
|
|
3
|
+
filePath: z.ZodString;
|
|
4
|
+
encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
ascii: "ascii";
|
|
6
|
+
"utf-8": "utf-8";
|
|
7
|
+
binary: "binary";
|
|
8
|
+
}>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ListFilesInputSchema: z.ZodObject<{
|
|
11
|
+
pattern: z.ZodString;
|
|
12
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
13
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const AnalyzeSymbolsInputSchema: z.ZodObject<{
|
|
16
|
+
filePath: z.ZodString;
|
|
17
|
+
symbolTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
18
|
+
function: "function";
|
|
19
|
+
class: "class";
|
|
20
|
+
interface: "interface";
|
|
21
|
+
type: "type";
|
|
22
|
+
enum: "enum";
|
|
23
|
+
}>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const GetFileStructureInputSchema: z.ZodObject<{
|
|
26
|
+
rootPath: z.ZodString;
|
|
27
|
+
maxDepth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
28
|
+
includePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const SearchCodeInputSchema: z.ZodObject<{
|
|
31
|
+
pattern: z.ZodString;
|
|
32
|
+
fileGlob: z.ZodOptional<z.ZodString>;
|
|
33
|
+
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const ReadFileOutputSchema: z.ZodObject<{
|
|
36
|
+
success: z.ZodBoolean;
|
|
37
|
+
content: z.ZodOptional<z.ZodString>;
|
|
38
|
+
path: z.ZodString;
|
|
39
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
error: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const ListFilesOutputSchema: z.ZodObject<{
|
|
43
|
+
success: z.ZodBoolean;
|
|
44
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
pattern: z.ZodString;
|
|
47
|
+
error: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const SymbolSchema: z.ZodObject<{
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
line: z.ZodNumber;
|
|
53
|
+
exported: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const ImportSchema: z.ZodObject<{
|
|
57
|
+
source: z.ZodString;
|
|
58
|
+
specifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const ExportSchema: z.ZodObject<{
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const AnalyzeSymbolsOutputSchema: z.ZodObject<{
|
|
65
|
+
success: z.ZodBoolean;
|
|
66
|
+
filePath: z.ZodString;
|
|
67
|
+
language: z.ZodOptional<z.ZodString>;
|
|
68
|
+
symbols: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
kind: z.ZodString;
|
|
71
|
+
line: z.ZodNumber;
|
|
72
|
+
exported: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
imports: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
+
source: z.ZodString;
|
|
77
|
+
specifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
exports: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
error: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const FileInfoSchema: z.ZodObject<{
|
|
86
|
+
path: z.ZodString;
|
|
87
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
88
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const DirectoryStatSchema: z.ZodObject<{
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
fileCount: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const GetFileStructureOutputSchema: z.ZodObject<{
|
|
95
|
+
success: z.ZodBoolean;
|
|
96
|
+
rootPath: z.ZodString;
|
|
97
|
+
totalFiles: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
totalSize: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
topLevelDirs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
fileCount: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
|
+
path: z.ZodString;
|
|
105
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
106
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
error: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export declare const CodeMatchSchema: z.ZodObject<{
|
|
111
|
+
file: z.ZodString;
|
|
112
|
+
line: z.ZodNumber;
|
|
113
|
+
match: z.ZodString;
|
|
114
|
+
context: z.ZodString;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export declare const SearchCodeOutputSchema: z.ZodObject<{
|
|
117
|
+
success: z.ZodBoolean;
|
|
118
|
+
pattern: z.ZodString;
|
|
119
|
+
matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
+
file: z.ZodString;
|
|
121
|
+
line: z.ZodNumber;
|
|
122
|
+
match: z.ZodString;
|
|
123
|
+
context: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>>;
|
|
125
|
+
totalMatches: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
error: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export declare const DocumentationSectionSchema: z.ZodType<{
|
|
130
|
+
title: string;
|
|
131
|
+
content: string;
|
|
132
|
+
subsections?: Array<{
|
|
133
|
+
title: string;
|
|
134
|
+
content: string;
|
|
135
|
+
subsections?: unknown[];
|
|
136
|
+
}>;
|
|
137
|
+
}>;
|
|
138
|
+
export declare const GlossaryTermSchema: z.ZodObject<{
|
|
139
|
+
term: z.ZodString;
|
|
140
|
+
definition: z.ZodString;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export declare const DocumentationOutputSchema: z.ZodObject<{
|
|
143
|
+
title: z.ZodString;
|
|
144
|
+
summary: z.ZodString;
|
|
145
|
+
sections: z.ZodArray<z.ZodType<{
|
|
146
|
+
title: string;
|
|
147
|
+
content: string;
|
|
148
|
+
subsections?: Array<{
|
|
149
|
+
title: string;
|
|
150
|
+
content: string;
|
|
151
|
+
subsections?: unknown[];
|
|
152
|
+
}>;
|
|
153
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
154
|
+
title: string;
|
|
155
|
+
content: string;
|
|
156
|
+
subsections?: Array<{
|
|
157
|
+
title: string;
|
|
158
|
+
content: string;
|
|
159
|
+
subsections?: unknown[];
|
|
160
|
+
}>;
|
|
161
|
+
}, unknown>>>;
|
|
162
|
+
relatedFiles: z.ZodArray<z.ZodString>;
|
|
163
|
+
glossaryTerms: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
term: z.ZodString;
|
|
165
|
+
definition: z.ZodString;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export declare const RelevantFileSchema: z.ZodObject<{
|
|
169
|
+
path: z.ZodString;
|
|
170
|
+
purpose: z.ZodString;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export declare const WorkflowStepSchema: z.ZodObject<{
|
|
173
|
+
step: z.ZodNumber;
|
|
174
|
+
action: z.ZodString;
|
|
175
|
+
details: z.ZodString;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
export declare const CodePatternSchema: z.ZodObject<{
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
description: z.ZodString;
|
|
180
|
+
example: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
export declare const AgentPlaybookSchema: z.ZodObject<{
|
|
183
|
+
agentType: z.ZodString;
|
|
184
|
+
description: z.ZodString;
|
|
185
|
+
responsibilities: z.ZodArray<z.ZodString>;
|
|
186
|
+
relevantFiles: z.ZodArray<z.ZodObject<{
|
|
187
|
+
path: z.ZodString;
|
|
188
|
+
purpose: z.ZodString;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
workflowSteps: z.ZodArray<z.ZodObject<{
|
|
191
|
+
step: z.ZodNumber;
|
|
192
|
+
action: z.ZodString;
|
|
193
|
+
details: z.ZodString;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
bestPractices: z.ZodArray<z.ZodString>;
|
|
196
|
+
commonPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
|
+
name: z.ZodString;
|
|
198
|
+
description: z.ZodString;
|
|
199
|
+
example: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
export declare const PlanPhaseStepSchema: z.ZodObject<{
|
|
203
|
+
step: z.ZodNumber;
|
|
204
|
+
action: z.ZodString;
|
|
205
|
+
owner: z.ZodString;
|
|
206
|
+
deliverable: z.ZodString;
|
|
207
|
+
evidence: z.ZodString;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export declare const PlanPhaseSchema: z.ZodObject<{
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
objective: z.ZodString;
|
|
212
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
213
|
+
step: z.ZodNumber;
|
|
214
|
+
action: z.ZodString;
|
|
215
|
+
owner: z.ZodString;
|
|
216
|
+
deliverable: z.ZodString;
|
|
217
|
+
evidence: z.ZodString;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
commitCheckpoint: z.ZodString;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const AgentLineupEntrySchema: z.ZodObject<{
|
|
222
|
+
agent: z.ZodString;
|
|
223
|
+
role: z.ZodString;
|
|
224
|
+
focusAreas: z.ZodArray<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export declare const DocTouchpointSchema: z.ZodObject<{
|
|
227
|
+
document: z.ZodString;
|
|
228
|
+
sections: z.ZodArray<z.ZodString>;
|
|
229
|
+
updateReason: z.ZodString;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export declare const DevelopmentPlanSchema: z.ZodObject<{
|
|
232
|
+
title: z.ZodString;
|
|
233
|
+
summary: z.ZodString;
|
|
234
|
+
goal: z.ZodString;
|
|
235
|
+
scope: z.ZodObject<{
|
|
236
|
+
included: z.ZodArray<z.ZodString>;
|
|
237
|
+
excluded: z.ZodArray<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
agentLineup: z.ZodArray<z.ZodObject<{
|
|
240
|
+
agent: z.ZodString;
|
|
241
|
+
role: z.ZodString;
|
|
242
|
+
focusAreas: z.ZodArray<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
docTouchpoints: z.ZodArray<z.ZodObject<{
|
|
245
|
+
document: z.ZodString;
|
|
246
|
+
sections: z.ZodArray<z.ZodString>;
|
|
247
|
+
updateReason: z.ZodString;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
250
|
+
name: z.ZodString;
|
|
251
|
+
objective: z.ZodString;
|
|
252
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
253
|
+
step: z.ZodNumber;
|
|
254
|
+
action: z.ZodString;
|
|
255
|
+
owner: z.ZodString;
|
|
256
|
+
deliverable: z.ZodString;
|
|
257
|
+
evidence: z.ZodString;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
commitCheckpoint: z.ZodString;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
successCriteria: z.ZodArray<z.ZodString>;
|
|
262
|
+
risks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
risk: z.ZodString;
|
|
264
|
+
mitigation: z.ZodString;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
export declare const CheckScaffoldingInputSchema: z.ZodObject<{
|
|
268
|
+
repoPath: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export declare const CheckScaffoldingOutputSchema: z.ZodObject<{
|
|
271
|
+
initialized: z.ZodBoolean;
|
|
272
|
+
docs: z.ZodBoolean;
|
|
273
|
+
agents: z.ZodBoolean;
|
|
274
|
+
plans: z.ZodBoolean;
|
|
275
|
+
outputDir: z.ZodString;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
export declare const InitializeContextInputSchema: z.ZodObject<{
|
|
278
|
+
repoPath: z.ZodString;
|
|
279
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
280
|
+
agents: "agents";
|
|
281
|
+
docs: "docs";
|
|
282
|
+
both: "both";
|
|
283
|
+
}>>>;
|
|
284
|
+
outputDir: z.ZodOptional<z.ZodString>;
|
|
285
|
+
semantic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
286
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
export declare const InitializeContextOutputSchema: z.ZodObject<{
|
|
290
|
+
success: z.ZodBoolean;
|
|
291
|
+
docsGenerated: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
agentsGenerated: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
outputDir: z.ZodString;
|
|
294
|
+
generatedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
295
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
296
|
+
error: z.ZodOptional<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export declare const ScaffoldPlanInputSchema: z.ZodObject<{
|
|
299
|
+
planName: z.ZodString;
|
|
300
|
+
repoPath: z.ZodOptional<z.ZodString>;
|
|
301
|
+
outputDir: z.ZodOptional<z.ZodString>;
|
|
302
|
+
title: z.ZodOptional<z.ZodString>;
|
|
303
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
304
|
+
semantic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
export declare const ScaffoldPlanOutputSchema: z.ZodObject<{
|
|
307
|
+
success: z.ZodBoolean;
|
|
308
|
+
planPath: z.ZodOptional<z.ZodString>;
|
|
309
|
+
planContent: z.ZodOptional<z.ZodString>;
|
|
310
|
+
error: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
export type CheckScaffoldingInput = z.infer<typeof CheckScaffoldingInputSchema>;
|
|
313
|
+
export type CheckScaffoldingOutput = z.infer<typeof CheckScaffoldingOutputSchema>;
|
|
314
|
+
export type InitializeContextInput = z.infer<typeof InitializeContextInputSchema>;
|
|
315
|
+
export type InitializeContextOutput = z.infer<typeof InitializeContextOutputSchema>;
|
|
316
|
+
export type ScaffoldPlanInput = z.infer<typeof ScaffoldPlanInputSchema>;
|
|
317
|
+
export type ScaffoldPlanOutput = z.infer<typeof ScaffoldPlanOutputSchema>;
|
|
318
|
+
export type ReadFileInput = z.infer<typeof ReadFileInputSchema>;
|
|
319
|
+
export type ReadFileOutput = z.infer<typeof ReadFileOutputSchema>;
|
|
320
|
+
export type ListFilesInput = z.infer<typeof ListFilesInputSchema>;
|
|
321
|
+
export type ListFilesOutput = z.infer<typeof ListFilesOutputSchema>;
|
|
322
|
+
export type AnalyzeSymbolsInput = z.infer<typeof AnalyzeSymbolsInputSchema>;
|
|
323
|
+
export type AnalyzeSymbolsOutput = z.infer<typeof AnalyzeSymbolsOutputSchema>;
|
|
324
|
+
export type GetFileStructureInput = z.infer<typeof GetFileStructureInputSchema>;
|
|
325
|
+
export type GetFileStructureOutput = z.infer<typeof GetFileStructureOutputSchema>;
|
|
326
|
+
export type SearchCodeInput = z.infer<typeof SearchCodeInputSchema>;
|
|
327
|
+
export type SearchCodeOutput = z.infer<typeof SearchCodeOutputSchema>;
|
|
328
|
+
export type DocumentationOutput = z.infer<typeof DocumentationOutputSchema>;
|
|
329
|
+
export type AgentPlaybook = z.infer<typeof AgentPlaybookSchema>;
|
|
330
|
+
export type DevelopmentPlan = z.infer<typeof DevelopmentPlanSchema>;
|
|
331
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/services/ai/schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScaffoldPlanOutputSchema = exports.ScaffoldPlanInputSchema = exports.InitializeContextOutputSchema = exports.InitializeContextInputSchema = exports.CheckScaffoldingOutputSchema = exports.CheckScaffoldingInputSchema = exports.DevelopmentPlanSchema = exports.DocTouchpointSchema = exports.AgentLineupEntrySchema = exports.PlanPhaseSchema = exports.PlanPhaseStepSchema = exports.AgentPlaybookSchema = exports.CodePatternSchema = exports.WorkflowStepSchema = exports.RelevantFileSchema = exports.DocumentationOutputSchema = exports.GlossaryTermSchema = exports.DocumentationSectionSchema = exports.SearchCodeOutputSchema = exports.CodeMatchSchema = exports.GetFileStructureOutputSchema = exports.DirectoryStatSchema = exports.FileInfoSchema = exports.AnalyzeSymbolsOutputSchema = exports.ExportSchema = exports.ImportSchema = exports.SymbolSchema = exports.ListFilesOutputSchema = exports.ReadFileOutputSchema = exports.SearchCodeInputSchema = exports.GetFileStructureInputSchema = exports.AnalyzeSymbolsInputSchema = exports.ListFilesInputSchema = exports.ReadFileInputSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// =============================================================================
|
|
6
|
+
// Tool Input Schemas
|
|
7
|
+
// =============================================================================
|
|
8
|
+
exports.ReadFileInputSchema = zod_1.z.object({
|
|
9
|
+
filePath: zod_1.z.string().describe('Absolute or relative path to the file to read'),
|
|
10
|
+
encoding: zod_1.z.enum(['utf-8', 'ascii', 'binary']).default('utf-8').optional()
|
|
11
|
+
});
|
|
12
|
+
exports.ListFilesInputSchema = zod_1.z.object({
|
|
13
|
+
pattern: zod_1.z.string().describe('Glob pattern to match files (e.g., "**/*.ts")'),
|
|
14
|
+
cwd: zod_1.z.string().optional().describe('Working directory for the glob pattern'),
|
|
15
|
+
ignore: zod_1.z.array(zod_1.z.string()).optional().describe('Patterns to ignore')
|
|
16
|
+
});
|
|
17
|
+
exports.AnalyzeSymbolsInputSchema = zod_1.z.object({
|
|
18
|
+
filePath: zod_1.z.string().describe('Path to the file to analyze'),
|
|
19
|
+
symbolTypes: zod_1.z
|
|
20
|
+
.array(zod_1.z.enum(['class', 'interface', 'function', 'type', 'enum']))
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Types of symbols to extract')
|
|
23
|
+
});
|
|
24
|
+
exports.GetFileStructureInputSchema = zod_1.z.object({
|
|
25
|
+
rootPath: zod_1.z.string().describe('Root path of the repository'),
|
|
26
|
+
maxDepth: zod_1.z.number().optional().default(3).describe('Maximum directory depth'),
|
|
27
|
+
includePatterns: zod_1.z.array(zod_1.z.string()).optional()
|
|
28
|
+
});
|
|
29
|
+
exports.SearchCodeInputSchema = zod_1.z.object({
|
|
30
|
+
pattern: zod_1.z.string().describe('Regex pattern to search for'),
|
|
31
|
+
fileGlob: zod_1.z.string().optional().describe('Glob pattern to filter files'),
|
|
32
|
+
maxResults: zod_1.z.number().optional().default(50)
|
|
33
|
+
});
|
|
34
|
+
// =============================================================================
|
|
35
|
+
// Tool Output Schemas
|
|
36
|
+
// =============================================================================
|
|
37
|
+
exports.ReadFileOutputSchema = zod_1.z.object({
|
|
38
|
+
success: zod_1.z.boolean(),
|
|
39
|
+
content: zod_1.z.string().optional(),
|
|
40
|
+
path: zod_1.z.string(),
|
|
41
|
+
size: zod_1.z.number().optional(),
|
|
42
|
+
error: zod_1.z.string().optional()
|
|
43
|
+
});
|
|
44
|
+
exports.ListFilesOutputSchema = zod_1.z.object({
|
|
45
|
+
success: zod_1.z.boolean(),
|
|
46
|
+
files: zod_1.z.array(zod_1.z.string()).optional(),
|
|
47
|
+
count: zod_1.z.number().optional(),
|
|
48
|
+
pattern: zod_1.z.string(),
|
|
49
|
+
error: zod_1.z.string().optional()
|
|
50
|
+
});
|
|
51
|
+
exports.SymbolSchema = zod_1.z.object({
|
|
52
|
+
name: zod_1.z.string(),
|
|
53
|
+
kind: zod_1.z.string(),
|
|
54
|
+
line: zod_1.z.number(),
|
|
55
|
+
exported: zod_1.z.boolean().optional(),
|
|
56
|
+
documentation: zod_1.z.string().optional()
|
|
57
|
+
});
|
|
58
|
+
exports.ImportSchema = zod_1.z.object({
|
|
59
|
+
source: zod_1.z.string(),
|
|
60
|
+
specifiers: zod_1.z.array(zod_1.z.string()).optional()
|
|
61
|
+
});
|
|
62
|
+
exports.ExportSchema = zod_1.z.object({
|
|
63
|
+
name: zod_1.z.string(),
|
|
64
|
+
isDefault: zod_1.z.boolean().optional()
|
|
65
|
+
});
|
|
66
|
+
exports.AnalyzeSymbolsOutputSchema = zod_1.z.object({
|
|
67
|
+
success: zod_1.z.boolean(),
|
|
68
|
+
filePath: zod_1.z.string(),
|
|
69
|
+
language: zod_1.z.string().optional(),
|
|
70
|
+
symbols: zod_1.z.array(exports.SymbolSchema).optional(),
|
|
71
|
+
imports: zod_1.z.array(exports.ImportSchema).optional(),
|
|
72
|
+
exports: zod_1.z.array(exports.ExportSchema).optional(),
|
|
73
|
+
error: zod_1.z.string().optional()
|
|
74
|
+
});
|
|
75
|
+
exports.FileInfoSchema = zod_1.z.object({
|
|
76
|
+
path: zod_1.z.string(),
|
|
77
|
+
extension: zod_1.z.string().optional(),
|
|
78
|
+
size: zod_1.z.number().optional()
|
|
79
|
+
});
|
|
80
|
+
exports.DirectoryStatSchema = zod_1.z.object({
|
|
81
|
+
name: zod_1.z.string(),
|
|
82
|
+
fileCount: zod_1.z.number()
|
|
83
|
+
});
|
|
84
|
+
exports.GetFileStructureOutputSchema = zod_1.z.object({
|
|
85
|
+
success: zod_1.z.boolean(),
|
|
86
|
+
rootPath: zod_1.z.string(),
|
|
87
|
+
totalFiles: zod_1.z.number().optional(),
|
|
88
|
+
totalSize: zod_1.z.number().optional(),
|
|
89
|
+
topLevelDirs: zod_1.z.array(exports.DirectoryStatSchema).optional(),
|
|
90
|
+
files: zod_1.z.array(exports.FileInfoSchema).optional(),
|
|
91
|
+
error: zod_1.z.string().optional()
|
|
92
|
+
});
|
|
93
|
+
exports.CodeMatchSchema = zod_1.z.object({
|
|
94
|
+
file: zod_1.z.string(),
|
|
95
|
+
line: zod_1.z.number(),
|
|
96
|
+
match: zod_1.z.string(),
|
|
97
|
+
context: zod_1.z.string()
|
|
98
|
+
});
|
|
99
|
+
exports.SearchCodeOutputSchema = zod_1.z.object({
|
|
100
|
+
success: zod_1.z.boolean(),
|
|
101
|
+
pattern: zod_1.z.string(),
|
|
102
|
+
matches: zod_1.z.array(exports.CodeMatchSchema).optional(),
|
|
103
|
+
totalMatches: zod_1.z.number().optional(),
|
|
104
|
+
truncated: zod_1.z.boolean().optional(),
|
|
105
|
+
error: zod_1.z.string().optional()
|
|
106
|
+
});
|
|
107
|
+
// =============================================================================
|
|
108
|
+
// Structured Output Schemas
|
|
109
|
+
// =============================================================================
|
|
110
|
+
exports.DocumentationSectionSchema = zod_1.z.object({
|
|
111
|
+
title: zod_1.z.string(),
|
|
112
|
+
content: zod_1.z.string(),
|
|
113
|
+
subsections: zod_1.z.lazy(() => zod_1.z.array(exports.DocumentationSectionSchema)).optional()
|
|
114
|
+
});
|
|
115
|
+
exports.GlossaryTermSchema = zod_1.z.object({
|
|
116
|
+
term: zod_1.z.string(),
|
|
117
|
+
definition: zod_1.z.string()
|
|
118
|
+
});
|
|
119
|
+
exports.DocumentationOutputSchema = zod_1.z.object({
|
|
120
|
+
title: zod_1.z.string(),
|
|
121
|
+
summary: zod_1.z.string(),
|
|
122
|
+
sections: zod_1.z.array(exports.DocumentationSectionSchema),
|
|
123
|
+
relatedFiles: zod_1.z.array(zod_1.z.string()),
|
|
124
|
+
glossaryTerms: zod_1.z.array(exports.GlossaryTermSchema).optional()
|
|
125
|
+
});
|
|
126
|
+
exports.RelevantFileSchema = zod_1.z.object({
|
|
127
|
+
path: zod_1.z.string(),
|
|
128
|
+
purpose: zod_1.z.string()
|
|
129
|
+
});
|
|
130
|
+
exports.WorkflowStepSchema = zod_1.z.object({
|
|
131
|
+
step: zod_1.z.number(),
|
|
132
|
+
action: zod_1.z.string(),
|
|
133
|
+
details: zod_1.z.string()
|
|
134
|
+
});
|
|
135
|
+
exports.CodePatternSchema = zod_1.z.object({
|
|
136
|
+
name: zod_1.z.string(),
|
|
137
|
+
description: zod_1.z.string(),
|
|
138
|
+
example: zod_1.z.string().optional()
|
|
139
|
+
});
|
|
140
|
+
exports.AgentPlaybookSchema = zod_1.z.object({
|
|
141
|
+
agentType: zod_1.z.string(),
|
|
142
|
+
description: zod_1.z.string(),
|
|
143
|
+
responsibilities: zod_1.z.array(zod_1.z.string()),
|
|
144
|
+
relevantFiles: zod_1.z.array(exports.RelevantFileSchema),
|
|
145
|
+
workflowSteps: zod_1.z.array(exports.WorkflowStepSchema),
|
|
146
|
+
bestPractices: zod_1.z.array(zod_1.z.string()),
|
|
147
|
+
commonPatterns: zod_1.z.array(exports.CodePatternSchema).optional()
|
|
148
|
+
});
|
|
149
|
+
// Development Plan Schemas
|
|
150
|
+
exports.PlanPhaseStepSchema = zod_1.z.object({
|
|
151
|
+
step: zod_1.z.number(),
|
|
152
|
+
action: zod_1.z.string(),
|
|
153
|
+
owner: zod_1.z.string().describe('Agent type responsible for this step'),
|
|
154
|
+
deliverable: zod_1.z.string(),
|
|
155
|
+
evidence: zod_1.z.string().describe('How to verify completion')
|
|
156
|
+
});
|
|
157
|
+
exports.PlanPhaseSchema = zod_1.z.object({
|
|
158
|
+
name: zod_1.z.string(),
|
|
159
|
+
objective: zod_1.z.string(),
|
|
160
|
+
steps: zod_1.z.array(exports.PlanPhaseStepSchema),
|
|
161
|
+
commitCheckpoint: zod_1.z.string().describe('Git commit message for this phase')
|
|
162
|
+
});
|
|
163
|
+
exports.AgentLineupEntrySchema = zod_1.z.object({
|
|
164
|
+
agent: zod_1.z.string(),
|
|
165
|
+
role: zod_1.z.string(),
|
|
166
|
+
focusAreas: zod_1.z.array(zod_1.z.string())
|
|
167
|
+
});
|
|
168
|
+
exports.DocTouchpointSchema = zod_1.z.object({
|
|
169
|
+
document: zod_1.z.string(),
|
|
170
|
+
sections: zod_1.z.array(zod_1.z.string()),
|
|
171
|
+
updateReason: zod_1.z.string()
|
|
172
|
+
});
|
|
173
|
+
exports.DevelopmentPlanSchema = zod_1.z.object({
|
|
174
|
+
title: zod_1.z.string(),
|
|
175
|
+
summary: zod_1.z.string(),
|
|
176
|
+
goal: zod_1.z.string(),
|
|
177
|
+
scope: zod_1.z.object({
|
|
178
|
+
included: zod_1.z.array(zod_1.z.string()),
|
|
179
|
+
excluded: zod_1.z.array(zod_1.z.string())
|
|
180
|
+
}),
|
|
181
|
+
agentLineup: zod_1.z.array(exports.AgentLineupEntrySchema),
|
|
182
|
+
docTouchpoints: zod_1.z.array(exports.DocTouchpointSchema),
|
|
183
|
+
phases: zod_1.z.array(exports.PlanPhaseSchema),
|
|
184
|
+
successCriteria: zod_1.z.array(zod_1.z.string()),
|
|
185
|
+
risks: zod_1.z.array(zod_1.z.object({
|
|
186
|
+
risk: zod_1.z.string(),
|
|
187
|
+
mitigation: zod_1.z.string()
|
|
188
|
+
})).optional()
|
|
189
|
+
});
|
|
190
|
+
// =============================================================================
|
|
191
|
+
// MCP Scaffolding Tool Schemas
|
|
192
|
+
// =============================================================================
|
|
193
|
+
exports.CheckScaffoldingInputSchema = zod_1.z.object({
|
|
194
|
+
repoPath: zod_1.z.string().optional().describe('Repository path to check (defaults to cwd)')
|
|
195
|
+
});
|
|
196
|
+
exports.CheckScaffoldingOutputSchema = zod_1.z.object({
|
|
197
|
+
initialized: zod_1.z.boolean().describe('Whether .context directory exists'),
|
|
198
|
+
docs: zod_1.z.boolean().describe('Whether docs scaffolding exists with content'),
|
|
199
|
+
agents: zod_1.z.boolean().describe('Whether agents scaffolding exists with content'),
|
|
200
|
+
plans: zod_1.z.boolean().describe('Whether plans scaffolding exists with content'),
|
|
201
|
+
outputDir: zod_1.z.string().describe('Resolved output directory path')
|
|
202
|
+
});
|
|
203
|
+
exports.InitializeContextInputSchema = zod_1.z.object({
|
|
204
|
+
repoPath: zod_1.z.string().describe('Repository path to initialize'),
|
|
205
|
+
type: zod_1.z.enum(['docs', 'agents', 'both']).default('both').optional()
|
|
206
|
+
.describe('Type of scaffolding to create'),
|
|
207
|
+
outputDir: zod_1.z.string().optional().describe('Output directory (default: ./.context)'),
|
|
208
|
+
semantic: zod_1.z.boolean().default(true).optional()
|
|
209
|
+
.describe('Enable semantic analysis for richer templates'),
|
|
210
|
+
include: zod_1.z.array(zod_1.z.string()).optional().describe('Include patterns'),
|
|
211
|
+
exclude: zod_1.z.array(zod_1.z.string()).optional().describe('Exclude patterns')
|
|
212
|
+
});
|
|
213
|
+
exports.InitializeContextOutputSchema = zod_1.z.object({
|
|
214
|
+
success: zod_1.z.boolean(),
|
|
215
|
+
docsGenerated: zod_1.z.number().optional(),
|
|
216
|
+
agentsGenerated: zod_1.z.number().optional(),
|
|
217
|
+
outputDir: zod_1.z.string(),
|
|
218
|
+
generatedFiles: zod_1.z.array(zod_1.z.string()).optional().describe('List of generated template files that need to be filled'),
|
|
219
|
+
nextSteps: zod_1.z.array(zod_1.z.string()).optional().describe('Instructions for the AI agent to fill the templates'),
|
|
220
|
+
error: zod_1.z.string().optional()
|
|
221
|
+
});
|
|
222
|
+
exports.ScaffoldPlanInputSchema = zod_1.z.object({
|
|
223
|
+
planName: zod_1.z.string().describe('Name of the plan (will be slugified)'),
|
|
224
|
+
repoPath: zod_1.z.string().optional().describe('Repository path'),
|
|
225
|
+
outputDir: zod_1.z.string().optional().describe('Output directory'),
|
|
226
|
+
title: zod_1.z.string().optional().describe('Plan title (defaults to formatted planName)'),
|
|
227
|
+
summary: zod_1.z.string().optional().describe('Plan summary/goal'),
|
|
228
|
+
semantic: zod_1.z.boolean().default(true).optional().describe('Enable semantic analysis')
|
|
229
|
+
});
|
|
230
|
+
exports.ScaffoldPlanOutputSchema = zod_1.z.object({
|
|
231
|
+
success: zod_1.z.boolean(),
|
|
232
|
+
planPath: zod_1.z.string().optional(),
|
|
233
|
+
planContent: zod_1.z.string().optional(),
|
|
234
|
+
error: zod_1.z.string().optional()
|
|
235
|
+
});
|
|
236
|
+
//# sourceMappingURL=schemas.js.map
|