codehere 0.5.2-alpha → 0.5.3-alpha
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/LICENSE +1 -1
- package/README.md +126 -102
- package/dist/application/agents/execution-agent.js +2 -2
- package/dist/application/agents/multi-agent-orchestrator.d.ts +0 -1
- package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
- package/dist/application/agents/multi-agent-orchestrator.js +2 -9
- package/dist/application/agents/multi-agent-orchestrator.js.map +1 -1
- package/dist/application/agents/planning-agent.d.ts.map +1 -1
- package/dist/application/agents/planning-agent.js +11 -15
- package/dist/application/agents/planning-agent.js.map +1 -1
- package/dist/application/services/context-importer.d.ts +71 -0
- package/dist/application/services/context-importer.d.ts.map +1 -0
- package/dist/application/services/context-importer.js +436 -0
- package/dist/application/services/context-importer.js.map +1 -0
- package/dist/application/services/context-manager.d.ts +132 -0
- package/dist/application/services/context-manager.d.ts.map +1 -0
- package/dist/application/services/context-manager.js +369 -0
- package/dist/application/services/context-manager.js.map +1 -0
- package/dist/application/services/dependency-container.d.ts.map +1 -1
- package/dist/application/services/dependency-container.js +7 -5
- package/dist/application/services/dependency-container.js.map +1 -1
- package/dist/application/services/intelligent-router.d.ts +8 -5
- package/dist/application/services/intelligent-router.d.ts.map +1 -1
- package/dist/application/services/intelligent-router.js +78 -82
- package/dist/application/services/intelligent-router.js.map +1 -1
- package/dist/application/services/token-counting-service.d.ts +87 -0
- package/dist/application/services/token-counting-service.d.ts.map +1 -0
- package/dist/application/services/token-counting-service.js +196 -0
- package/dist/application/services/token-counting-service.js.map +1 -0
- package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -1
- package/dist/application/use-cases/ask-question-use-case.js +109 -21
- package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
- package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -1
- package/dist/application/use-cases/edit-file-use-case.js +19 -0
- package/dist/application/use-cases/edit-file-use-case.js.map +1 -1
- package/dist/application/use-cases/planning-use-case.d.ts +1 -14
- package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
- package/dist/application/use-cases/planning-use-case.js +2 -109
- package/dist/application/use-cases/planning-use-case.js.map +1 -1
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +6 -17
- package/dist/chat.js.map +1 -1
- package/dist/domain/entities/conversation-context.d.ts +245 -0
- package/dist/domain/entities/conversation-context.d.ts.map +1 -0
- package/dist/domain/entities/conversation-context.js +50 -0
- package/dist/domain/entities/conversation-context.js.map +1 -0
- package/dist/domain/entities/memory.d.ts.map +1 -1
- package/dist/domain/interfaces/context-repository.interface.d.ts +71 -0
- package/dist/domain/interfaces/context-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/context-repository.interface.js +10 -0
- package/dist/domain/interfaces/context-repository.interface.js.map +1 -0
- package/dist/domain/services/query-intent-classifier.d.ts.map +1 -1
- package/dist/domain/services/query-intent-classifier.js +37 -23
- package/dist/domain/services/query-intent-classifier.js.map +1 -1
- package/dist/embed.d.ts.map +1 -1
- package/dist/embed.js +8 -3
- package/dist/embed.js.map +1 -1
- package/dist/index.js +267 -143
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -1
- package/dist/infrastructure/ai/cohere-ai-service.js +14 -5
- package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -1
- package/dist/infrastructure/ai/provider-ai-service.d.ts.map +1 -1
- package/dist/infrastructure/ai/provider-ai-service.js +64 -14
- package/dist/infrastructure/ai/provider-ai-service.js.map +1 -1
- package/dist/infrastructure/config/config-manager.d.ts +78 -9
- package/dist/infrastructure/config/config-manager.d.ts.map +1 -1
- package/dist/infrastructure/config/config-manager.js +127 -9
- package/dist/infrastructure/config/config-manager.js.map +1 -1
- package/dist/infrastructure/context/conversation-context.d.ts +39 -12
- package/dist/infrastructure/context/conversation-context.d.ts.map +1 -1
- package/dist/infrastructure/context/conversation-context.js +91 -4
- package/dist/infrastructure/context/conversation-context.js.map +1 -1
- package/dist/infrastructure/context/direct-context-provider.d.ts +18 -0
- package/dist/infrastructure/context/direct-context-provider.d.ts.map +1 -0
- package/dist/infrastructure/context/direct-context-provider.js +222 -0
- package/dist/infrastructure/context/direct-context-provider.js.map +1 -0
- package/dist/infrastructure/context/git-context-provider.d.ts +30 -0
- package/dist/infrastructure/context/git-context-provider.d.ts.map +1 -0
- package/dist/infrastructure/context/git-context-provider.js +140 -0
- package/dist/infrastructure/context/git-context-provider.js.map +1 -0
- package/dist/infrastructure/context/project-context-loader.d.ts +35 -0
- package/dist/infrastructure/context/project-context-loader.d.ts.map +1 -0
- package/dist/infrastructure/context/project-context-loader.js +184 -0
- package/dist/infrastructure/context/project-context-loader.js.map +1 -0
- package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -1
- package/dist/infrastructure/cost/cost-tracker.js +3 -2
- package/dist/infrastructure/cost/cost-tracker.js.map +1 -1
- package/dist/infrastructure/cost/session-token-tracker.d.ts +68 -0
- package/dist/infrastructure/cost/session-token-tracker.d.ts.map +1 -0
- package/dist/infrastructure/cost/session-token-tracker.js +178 -0
- package/dist/infrastructure/cost/session-token-tracker.js.map +1 -0
- package/dist/infrastructure/index.d.ts +1 -0
- package/dist/infrastructure/index.d.ts.map +1 -1
- package/dist/infrastructure/index.js +1 -2
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/infrastructure/observability/execution-tracer.d.ts +21 -0
- package/dist/infrastructure/observability/execution-tracer.d.ts.map +1 -1
- package/dist/infrastructure/observability/execution-tracer.js +157 -4
- package/dist/infrastructure/observability/execution-tracer.js.map +1 -1
- package/dist/infrastructure/protocols/a2a-metadata.js +1 -1
- package/dist/infrastructure/protocols/mcp-oauth.js +1 -1
- package/dist/infrastructure/providers/cohere-provider.d.ts +1 -2
- package/dist/infrastructure/providers/cohere-provider.d.ts.map +1 -1
- package/dist/infrastructure/providers/cohere-provider.js +44 -42
- package/dist/infrastructure/providers/cohere-provider.js.map +1 -1
- package/dist/infrastructure/providers/fake-provider.d.ts.map +1 -1
- package/dist/infrastructure/providers/fake-provider.js +8 -0
- package/dist/infrastructure/providers/fake-provider.js.map +1 -1
- package/dist/infrastructure/providers/local-llm-provider.d.ts.map +1 -1
- package/dist/infrastructure/providers/local-llm-provider.js +8 -2
- package/dist/infrastructure/providers/local-llm-provider.js.map +1 -1
- package/dist/infrastructure/providers/openai-provider.d.ts.map +1 -1
- package/dist/infrastructure/providers/openai-provider.js +40 -7
- package/dist/infrastructure/providers/openai-provider.js.map +1 -1
- package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -1
- package/dist/infrastructure/providers/openrouter-provider.js +13 -7
- package/dist/infrastructure/providers/openrouter-provider.js.map +1 -1
- package/dist/infrastructure/security/enhanced-security-gate.d.ts +13 -0
- package/dist/infrastructure/security/enhanced-security-gate.d.ts.map +1 -1
- package/dist/infrastructure/security/enhanced-security-gate.js +56 -1
- package/dist/infrastructure/security/enhanced-security-gate.js.map +1 -1
- package/dist/infrastructure/security/input-validator.d.ts +17 -0
- package/dist/infrastructure/security/input-validator.d.ts.map +1 -1
- package/dist/infrastructure/security/input-validator.js +140 -25
- package/dist/infrastructure/security/input-validator.js.map +1 -1
- package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -1
- package/dist/infrastructure/storage/embeddings-path.js +14 -4
- package/dist/infrastructure/storage/embeddings-path.js.map +1 -1
- package/dist/infrastructure/storage/memory-stream-service.d.ts.map +1 -1
- package/dist/infrastructure/storage/memory-stream-service.js +58 -88
- package/dist/infrastructure/storage/memory-stream-service.js.map +1 -1
- package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/plan-repository.js +4 -5
- package/dist/infrastructure/storage/plan-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-context-repository.d.ts +95 -0
- package/dist/infrastructure/storage/sqlite-context-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-context-repository.js +467 -0
- package/dist/infrastructure/storage/sqlite-context-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-decision-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-decision-repository.js +4 -8
- package/dist/infrastructure/storage/sqlite-decision-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js +4 -8
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js +4 -8
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-memory-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-memory-repository.js +4 -8
- package/dist/infrastructure/storage/sqlite-memory-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-pattern-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-pattern-repository.js +4 -8
- package/dist/infrastructure/storage/sqlite-pattern-repository.js.map +1 -1
- package/dist/infrastructure/storage/task-repository.d.ts +0 -1
- package/dist/infrastructure/storage/task-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/task-repository.js +2 -13
- package/dist/infrastructure/storage/task-repository.js.map +1 -1
- package/dist/infrastructure/ux/cli-style-guide.d.ts +105 -0
- package/dist/infrastructure/ux/cli-style-guide.d.ts.map +1 -0
- package/dist/infrastructure/ux/cli-style-guide.js +220 -0
- package/dist/infrastructure/ux/cli-style-guide.js.map +1 -0
- package/dist/infrastructure/ux/progress-indicator.d.ts +49 -10
- package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
- package/dist/infrastructure/ux/progress-indicator.js +112 -9
- package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
- package/dist/infrastructure/validation/agent-feedback.d.ts +14 -1
- package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -1
- package/dist/infrastructure/validation/agent-feedback.js +57 -3
- package/dist/infrastructure/validation/agent-feedback.js.map +1 -1
- package/dist/parallel-processor.d.ts.map +1 -1
- package/dist/parallel-processor.js +39 -11
- package/dist/parallel-processor.js.map +1 -1
- package/dist/presentation/cli/commands/ask-command.d.ts +1 -2
- package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/ask-command.js +66 -150
- package/dist/presentation/cli/commands/ask-command.js.map +1 -1
- package/dist/presentation/cli/commands/audit-command.d.ts +13 -0
- package/dist/presentation/cli/commands/audit-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/audit-command.js +96 -0
- package/dist/presentation/cli/commands/audit-command.js.map +1 -0
- package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/config-command.js +2 -14
- package/dist/presentation/cli/commands/config-command.js.map +1 -1
- package/dist/presentation/cli/commands/context-command.d.ts +32 -0
- package/dist/presentation/cli/commands/context-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/context-command.js +295 -0
- package/dist/presentation/cli/commands/context-command.js.map +1 -0
- package/dist/presentation/cli/commands/context-helper.d.ts +16 -0
- package/dist/presentation/cli/commands/context-helper.d.ts.map +1 -0
- package/dist/presentation/cli/commands/context-helper.js +88 -0
- package/dist/presentation/cli/commands/context-helper.js.map +1 -0
- package/dist/presentation/cli/commands/decision-command.js +6 -23
- package/dist/presentation/cli/commands/decision-command.js.map +1 -1
- package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/fix-command.js +19 -23
- package/dist/presentation/cli/commands/fix-command.js.map +1 -1
- package/dist/presentation/cli/commands/help-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/help-command.js +1 -21
- package/dist/presentation/cli/commands/help-command.js.map +1 -1
- package/dist/presentation/cli/commands/orchestrate-command.d.ts +0 -1
- package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/orchestrate-command.js +19 -126
- package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
- package/dist/presentation/cli/commands/plan-command.d.ts +0 -1
- package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/plan-command.js +42 -132
- package/dist/presentation/cli/commands/plan-command.js.map +1 -1
- package/dist/presentation/cli/commands/react-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/react-command.js +1 -5
- package/dist/presentation/cli/commands/react-command.js.map +1 -1
- package/dist/presentation/cli/commands/review-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/review-command.js +2 -21
- package/dist/presentation/cli/commands/review-command.js.map +1 -1
- package/dist/presentation/cli/commands/smart-command.d.ts +3 -0
- package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/smart-command.js +127 -93
- package/dist/presentation/cli/commands/smart-command.js.map +1 -1
- package/dist/presentation/cli/commands/status-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/status-command.js +1 -5
- package/dist/presentation/cli/commands/status-command.js.map +1 -1
- package/dist/presentation/cli/commands/trust-command.d.ts +28 -0
- package/dist/presentation/cli/commands/trust-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/trust-command.js +301 -0
- package/dist/presentation/cli/commands/trust-command.js.map +1 -0
- package/dist/presentation/cli/error-display.d.ts.map +1 -1
- package/dist/presentation/cli/error-display.js +17 -75
- package/dist/presentation/cli/error-display.js.map +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +5 -18
- package/dist/search.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +221 -57
- package/dist/session.js.map +1 -1
- package/dist/token-optimizer.d.ts.map +1 -1
- package/dist/token-optimizer.js +6 -1
- package/dist/token-optimizer.js.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash.js +0 -3
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/git-tool.js +7 -7
- package/dist/tools/git-tool.js.map +1 -1
- package/dist/ui.d.ts +0 -5
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +0 -19
- package/dist/ui.js.map +1 -1
- package/dist/utils/provider-check.d.ts +21 -0
- package/dist/utils/provider-check.d.ts.map +1 -0
- package/dist/utils/provider-check.js +124 -0
- package/dist/utils/provider-check.js.map +1 -0
- package/package.json +17 -14
- package/dist/application/agents/documentation-agent.d.ts +0 -24
- package/dist/application/agents/documentation-agent.d.ts.map +0 -1
- package/dist/application/agents/documentation-agent.js +0 -399
- package/dist/application/agents/documentation-agent.js.map +0 -1
- package/dist/application/agents/product-requirements-agent.d.ts +0 -21
- package/dist/application/agents/product-requirements-agent.d.ts.map +0 -1
- package/dist/application/agents/product-requirements-agent.js +0 -247
- package/dist/application/agents/product-requirements-agent.js.map +0 -1
- package/dist/application/reasoning/multi-model-planning-strategy.d.ts +0 -21
- package/dist/application/reasoning/multi-model-planning-strategy.d.ts.map +0 -1
- package/dist/application/reasoning/multi-model-planning-strategy.js +0 -158
- package/dist/application/reasoning/multi-model-planning-strategy.js.map +0 -1
- package/dist/application/reasoning/reasoning-config.d.ts +0 -15
- package/dist/application/reasoning/reasoning-config.d.ts.map +0 -1
- package/dist/application/reasoning/reasoning-config.js +0 -50
- package/dist/application/reasoning/reasoning-config.js.map +0 -1
- package/dist/application/reasoning/reasoning-orchestrator.d.ts +0 -18
- package/dist/application/reasoning/reasoning-orchestrator.d.ts.map +0 -1
- package/dist/application/reasoning/reasoning-orchestrator.js +0 -170
- package/dist/application/reasoning/reasoning-orchestrator.js.map +0 -1
- package/dist/application/reasoning/reasoning-strategy.interface.d.ts +0 -24
- package/dist/application/reasoning/reasoning-strategy.interface.d.ts.map +0 -1
- package/dist/application/reasoning/reasoning-strategy.interface.js +0 -6
- package/dist/application/reasoning/reasoning-strategy.interface.js.map +0 -1
- package/dist/application/reasoning/role-provider-resolver.d.ts +0 -36
- package/dist/application/reasoning/role-provider-resolver.d.ts.map +0 -1
- package/dist/application/reasoning/role-provider-resolver.js +0 -74
- package/dist/application/reasoning/role-provider-resolver.js.map +0 -1
- package/dist/application/reasoning/simple-planning-strategy.d.ts +0 -22
- package/dist/application/reasoning/simple-planning-strategy.d.ts.map +0 -1
- package/dist/application/reasoning/simple-planning-strategy.js +0 -217
- package/dist/application/reasoning/simple-planning-strategy.js.map +0 -1
- package/dist/application/reasoning/types.d.ts +0 -65
- package/dist/application/reasoning/types.d.ts.map +0 -1
- package/dist/application/reasoning/types.js +0 -6
- package/dist/application/reasoning/types.js.map +0 -1
- package/dist/application/reasoning/validator-strategy.d.ts +0 -56
- package/dist/application/reasoning/validator-strategy.d.ts.map +0 -1
- package/dist/application/reasoning/validator-strategy.js +0 -103
- package/dist/application/reasoning/validator-strategy.js.map +0 -1
- package/dist/domain/entities/documentation.d.ts +0 -35
- package/dist/domain/entities/documentation.d.ts.map +0 -1
- package/dist/domain/entities/documentation.js +0 -6
- package/dist/domain/entities/documentation.js.map +0 -1
- package/dist/domain/entities/product-requirements.d.ts +0 -50
- package/dist/domain/entities/product-requirements.d.ts.map +0 -1
- package/dist/domain/entities/product-requirements.js +0 -6
- package/dist/domain/entities/product-requirements.js.map +0 -1
- package/dist/domain/interfaces/agent.interface.d.ts +0 -15
- package/dist/domain/interfaces/agent.interface.d.ts.map +0 -1
- package/dist/domain/interfaces/agent.interface.js +0 -6
- package/dist/domain/interfaces/agent.interface.js.map +0 -1
- package/dist/infrastructure/ai/fake-ai-service.d.ts +0 -22
- package/dist/infrastructure/ai/fake-ai-service.d.ts.map +0 -1
- package/dist/infrastructure/ai/fake-ai-service.js +0 -59
- package/dist/infrastructure/ai/fake-ai-service.js.map +0 -1
- package/dist/infrastructure/completion/completion-generator.d.ts +0 -42
- package/dist/infrastructure/completion/completion-generator.d.ts.map +0 -1
- package/dist/infrastructure/completion/completion-generator.js +0 -184
- package/dist/infrastructure/completion/completion-generator.js.map +0 -1
- package/dist/infrastructure/security/network-guard.d.ts +0 -8
- package/dist/infrastructure/security/network-guard.d.ts.map +0 -1
- package/dist/infrastructure/security/network-guard.js +0 -70
- package/dist/infrastructure/security/network-guard.js.map +0 -1
- package/dist/infrastructure/security/offline.d.ts +0 -16
- package/dist/infrastructure/security/offline.d.ts.map +0 -1
- package/dist/infrastructure/security/offline.js +0 -24
- package/dist/infrastructure/security/offline.js.map +0 -1
- package/dist/infrastructure/storage/sqljs-init.d.ts +0 -8
- package/dist/infrastructure/storage/sqljs-init.d.ts.map +0 -1
- package/dist/infrastructure/storage/sqljs-init.js +0 -23
- package/dist/infrastructure/storage/sqljs-init.js.map +0 -1
- package/dist/infrastructure/ux/hitl-review-portal.d.ts +0 -47
- package/dist/infrastructure/ux/hitl-review-portal.d.ts.map +0 -1
- package/dist/infrastructure/ux/hitl-review-portal.js +0 -228
- package/dist/infrastructure/ux/hitl-review-portal.js.map +0 -1
- package/dist/infrastructure/ux/meta-query.d.ts +0 -9
- package/dist/infrastructure/ux/meta-query.d.ts.map +0 -1
- package/dist/infrastructure/ux/meta-query.js +0 -63
- package/dist/infrastructure/ux/meta-query.js.map +0 -1
- package/dist/infrastructure/ux/proportional-friction.d.ts +0 -73
- package/dist/infrastructure/ux/proportional-friction.d.ts.map +0 -1
- package/dist/infrastructure/ux/proportional-friction.js +0 -200
- package/dist/infrastructure/ux/proportional-friction.js.map +0 -1
- package/dist/infrastructure/ux/repo-fingerprint.d.ts +0 -10
- package/dist/infrastructure/ux/repo-fingerprint.d.ts.map +0 -1
- package/dist/infrastructure/ux/repo-fingerprint.js +0 -55
- package/dist/infrastructure/ux/repo-fingerprint.js.map +0 -1
- package/dist/infrastructure/validation/feedback-stats.d.ts +0 -99
- package/dist/infrastructure/validation/feedback-stats.d.ts.map +0 -1
- package/dist/infrastructure/validation/feedback-stats.js +0 -173
- package/dist/infrastructure/validation/feedback-stats.js.map +0 -1
- package/dist/infrastructure/validation/trust-config.d.ts +0 -27
- package/dist/infrastructure/validation/trust-config.d.ts.map +0 -1
- package/dist/infrastructure/validation/trust-config.js +0 -113
- package/dist/infrastructure/validation/trust-config.js.map +0 -1
- package/dist/presentation/cli/commands/memory-command.d.ts +0 -17
- package/dist/presentation/cli/commands/memory-command.d.ts.map +0 -1
- package/dist/presentation/cli/commands/memory-command.js +0 -252
- package/dist/presentation/cli/commands/memory-command.js.map +0 -1
- package/dist/presentation/cli/keyboard-shortcuts.d.ts +0 -27
- package/dist/presentation/cli/keyboard-shortcuts.d.ts.map +0 -1
- package/dist/presentation/cli/keyboard-shortcuts.js +0 -77
- package/dist/presentation/cli/keyboard-shortcuts.js.map +0 -1
- package/dist/test_cohere.d.ts +0 -2
- package/dist/test_cohere.d.ts.map +0 -1
- package/dist/test_cohere.js +0 -68
- package/dist/test_cohere.js.map +0 -1
- package/dist/test_env.d.ts +0 -2
- package/dist/test_env.d.ts.map +0 -1
- package/dist/test_env.js +0 -24
- package/dist/test_env.js.map +0 -1
- package/dist/test_retrieval.d.ts +0 -2
- package/dist/test_retrieval.d.ts.map +0 -1
- package/dist/test_retrieval.js +0 -84
- package/dist/test_retrieval.js.map +0 -1
- package/dist/tools/bash.d 2.ts +0 -53
- package/dist/tools/bash.js 2.map +0 -1
- package/dist/tools/edit 2.js +0 -235
- package/dist/tools/edit.d.ts 2.map +0 -1
- package/dist/utils/logger.d.ts +0 -34
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -56
- package/dist/utils/logger.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/application/reasoning/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAC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|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/application/reasoning/types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validator Strategy
|
|
3
|
-
* Validates and optionally enriches a plan produced by the planner
|
|
4
|
-
*/
|
|
5
|
-
import type { Plan } from '../../domain/entities/plan.js';
|
|
6
|
-
import type { IAIService } from '../../domain/interfaces/ai-service.interface.js';
|
|
7
|
-
export interface ValidationResult {
|
|
8
|
-
plan: Plan;
|
|
9
|
-
isValid: boolean;
|
|
10
|
-
warnings?: string[];
|
|
11
|
-
risks?: string[];
|
|
12
|
-
suggestions?: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Validator strategy interface
|
|
16
|
-
*/
|
|
17
|
-
export interface IValidatorStrategy {
|
|
18
|
-
/**
|
|
19
|
-
* Validate a plan produced by the planner
|
|
20
|
-
*/
|
|
21
|
-
validatePlan(plan: Plan, originalContext: {
|
|
22
|
-
goal: string;
|
|
23
|
-
reflections?: string[];
|
|
24
|
-
memories?: Array<{
|
|
25
|
-
description: string;
|
|
26
|
-
}>;
|
|
27
|
-
context?: {
|
|
28
|
-
files?: string[];
|
|
29
|
-
currentDirectory?: string;
|
|
30
|
-
constraints?: string[];
|
|
31
|
-
};
|
|
32
|
-
}): Promise<ValidationResult>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Simple validator strategy
|
|
36
|
-
* Uses AI to review the plan and identify potential issues
|
|
37
|
-
*/
|
|
38
|
-
export declare class SimpleValidatorStrategy implements IValidatorStrategy {
|
|
39
|
-
private aiService;
|
|
40
|
-
constructor(aiService: IAIService);
|
|
41
|
-
validatePlan(plan: Plan, originalContext: {
|
|
42
|
-
goal: string;
|
|
43
|
-
reflections?: string[];
|
|
44
|
-
memories?: Array<{
|
|
45
|
-
description: string;
|
|
46
|
-
}>;
|
|
47
|
-
context?: {
|
|
48
|
-
files?: string[];
|
|
49
|
-
currentDirectory?: string;
|
|
50
|
-
constraints?: string[];
|
|
51
|
-
};
|
|
52
|
-
}): Promise<ValidationResult>;
|
|
53
|
-
private buildValidationPrompt;
|
|
54
|
-
private parseValidationResponse;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=validator-strategy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validator-strategy.d.ts","sourceRoot":"","sources":["../../../src/application/reasoning/validator-strategy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAIlF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,CACV,IAAI,EAAE,IAAI,EACV,eAAe,EAAE;QACf,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,QAAQ,CAAC,EAAE,KAAK,CAAC;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC1C,OAAO,CAAC,EAAE;YACR,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;YACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;SACxB,CAAC;KACH,GACA,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,kBAAkB;IACpD,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,UAAU;IAEnC,YAAY,CAChB,IAAI,EAAE,IAAI,EACV,eAAe,EAAE;QACf,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,QAAQ,CAAC,EAAE,KAAK,CAAC;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC1C,OAAO,CAAC,EAAE;YACR,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;YACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;SACxB,CAAC;KACH,GACA,OAAO,CAAC,gBAAgB,CAAC;IAqB5B,OAAO,CAAC,qBAAqB;IA0C7B,OAAO,CAAC,uBAAuB;CAwDhC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validator Strategy
|
|
3
|
-
* Validates and optionally enriches a plan produced by the planner
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Simple validator strategy
|
|
7
|
-
* Uses AI to review the plan and identify potential issues
|
|
8
|
-
*/
|
|
9
|
-
export class SimpleValidatorStrategy {
|
|
10
|
-
aiService;
|
|
11
|
-
constructor(aiService) {
|
|
12
|
-
this.aiService = aiService;
|
|
13
|
-
}
|
|
14
|
-
async validatePlan(plan, originalContext) {
|
|
15
|
-
const prompt = this.buildValidationPrompt(plan, originalContext);
|
|
16
|
-
const codeChunks = [];
|
|
17
|
-
const memories = [];
|
|
18
|
-
try {
|
|
19
|
-
const response = await this.aiService.chat(prompt, codeChunks, memories);
|
|
20
|
-
const validation = this.parseValidationResponse(response, plan);
|
|
21
|
-
return validation;
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
// On validation failure, return plan as-is with warning
|
|
25
|
-
console.warn('[SimpleValidatorStrategy] Validation failed, using plan as-is:', error instanceof Error ? error.message : String(error));
|
|
26
|
-
return {
|
|
27
|
-
plan,
|
|
28
|
-
isValid: true, // Default to valid to not block planning
|
|
29
|
-
warnings: ['Validation step failed, plan used without validation'],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
buildValidationPrompt(plan, context) {
|
|
34
|
-
const planJson = JSON.stringify(plan, null, 2);
|
|
35
|
-
const constraintsText = context.context?.constraints?.length
|
|
36
|
-
? `\nConstraints: ${context.context.constraints.join(', ')}`
|
|
37
|
-
: '';
|
|
38
|
-
return `You are a Plan Validator for an AI coding system. Review the following plan and identify potential issues, risks, or improvements.
|
|
39
|
-
|
|
40
|
-
Goal: "${context.goal}"${constraintsText}
|
|
41
|
-
|
|
42
|
-
Plan to validate:
|
|
43
|
-
${planJson}
|
|
44
|
-
|
|
45
|
-
Review the plan and provide:
|
|
46
|
-
1. Is the plan valid and feasible? (true/false)
|
|
47
|
-
2. Any warnings about potential issues
|
|
48
|
-
3. Any risks that could cause the plan to fail
|
|
49
|
-
4. Suggestions for improvement (optional)
|
|
50
|
-
|
|
51
|
-
Respond with ONLY a JSON object in this format:
|
|
52
|
-
{
|
|
53
|
-
"isValid": true,
|
|
54
|
-
"warnings": ["warning 1", "warning 2"],
|
|
55
|
-
"risks": ["risk 1"],
|
|
56
|
-
"suggestions": ["suggestion 1"]
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
JSON only, no other text:`;
|
|
60
|
-
}
|
|
61
|
-
parseValidationResponse(response, originalPlan) {
|
|
62
|
-
try {
|
|
63
|
-
const jsonMatch = response.match(/\{[\s\S]*\}/);
|
|
64
|
-
if (jsonMatch) {
|
|
65
|
-
const validation = JSON.parse(jsonMatch[0]);
|
|
66
|
-
// Enrich plan metadata with validation results (internal only)
|
|
67
|
-
// Store in metadata as any to avoid type issues (internal use only)
|
|
68
|
-
const enrichedPlan = {
|
|
69
|
-
...originalPlan,
|
|
70
|
-
metadata: {
|
|
71
|
-
...originalPlan.metadata,
|
|
72
|
-
// Store validation results in metadata (not exposed to users)
|
|
73
|
-
// Using type assertion for internal metadata
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
// Set validation metadata separately to avoid type issues
|
|
77
|
-
enrichedPlan.metadata._validation = {
|
|
78
|
-
isValid: validation.isValid ?? true,
|
|
79
|
-
warnings: validation.warnings || [],
|
|
80
|
-
risks: validation.risks || [],
|
|
81
|
-
suggestions: validation.suggestions || [],
|
|
82
|
-
};
|
|
83
|
-
return {
|
|
84
|
-
plan: enrichedPlan,
|
|
85
|
-
isValid: validation.isValid ?? true,
|
|
86
|
-
warnings: validation.warnings,
|
|
87
|
-
risks: validation.risks,
|
|
88
|
-
suggestions: validation.suggestions,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
console.warn('[SimpleValidatorStrategy] Failed to parse validation response:', error);
|
|
94
|
-
}
|
|
95
|
-
// Fallback: return plan as-is
|
|
96
|
-
return {
|
|
97
|
-
plan: originalPlan,
|
|
98
|
-
isValid: true,
|
|
99
|
-
warnings: ['Could not parse validation response'],
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=validator-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validator-strategy.js","sourceRoot":"","sources":["../../../src/application/reasoning/validator-strategy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IACd;IAApB,YAAoB,SAAqB;QAArB,cAAS,GAAT,SAAS,CAAY;IAAG,CAAC;IAE7C,KAAK,CAAC,YAAY,CAChB,IAAU,EACV,eASC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACjE,MAAM,UAAU,GAAgB,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAa,EAAE,CAAC;QAE9B,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,C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;oBACzB,GAAG,YAAY;oBACf,QAAQ,EAAE;wBACR,GAAG,YAAY,CAAC,QAAQ;wBACxB,8DAA8D;wBAC9D,6CAA6C;qBAQ9C;iBACF,CAAC;gBAEF,0DAA0D;gBACzD,YAAY,CAAC,QAAgB,CAAC,WAAW,GAAG;oBAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,IAAI;oBACnC,QAAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,EAAE;oBACnC,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE;oBAC7B,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,EAAE;iBAC1C,CAAC;gBAEF,OAAO;oBACL,IAAI,EAAE,YAAY;oBAClB,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,IAAI;oBACnC,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,WAAW,EAAE,UAAU,CAAC,WAAW;iBACpC,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,gEAAgE,EAAE,KAAK,CAAC,CAAC;QACxF,CAAC;QAED,8BAA8B;QAC9B,OAAO;YACL,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,CAAC,qCAAqC,CAAC;SAClD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Entity: Documentation
|
|
3
|
-
* Request and response types for DocumentationAgent
|
|
4
|
-
*/
|
|
5
|
-
export type DocumentationType = 'readme' | 'api' | 'architecture' | 'all';
|
|
6
|
-
export interface DocumentationRequest {
|
|
7
|
-
type: DocumentationType;
|
|
8
|
-
target?: string;
|
|
9
|
-
options?: {
|
|
10
|
-
format?: 'markdown' | 'openapi';
|
|
11
|
-
updateExisting?: boolean;
|
|
12
|
-
includeComments?: boolean;
|
|
13
|
-
outputPath?: string;
|
|
14
|
-
};
|
|
15
|
-
context?: {
|
|
16
|
-
codebaseId?: string;
|
|
17
|
-
sessionId?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface DocumentationResponse {
|
|
21
|
-
success: boolean;
|
|
22
|
-
documents: Array<{
|
|
23
|
-
path: string;
|
|
24
|
-
type: 'readme' | 'api' | 'architecture' | 'comments';
|
|
25
|
-
contentPreview: string;
|
|
26
|
-
}>;
|
|
27
|
-
stats?: {
|
|
28
|
-
filesAnalyzed: number;
|
|
29
|
-
symbolsDocumented: number;
|
|
30
|
-
linesGenerated: number;
|
|
31
|
-
};
|
|
32
|
-
errors?: string[];
|
|
33
|
-
memoryRecorded?: boolean;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=documentation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/documentation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,KAAK,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;QAChC,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,UAAU,CAAC;QACrD,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.js","sourceRoot":"","sources":["../../../src/domain/entities/documentation.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Entities: Product Requirements
|
|
3
|
-
* Types for ProductRequirementsAgent
|
|
4
|
-
*/
|
|
5
|
-
export interface ProductRequirementsRequest {
|
|
6
|
-
goal: string;
|
|
7
|
-
context?: {
|
|
8
|
-
targetUsers?: string;
|
|
9
|
-
constraints?: string[];
|
|
10
|
-
existingFeatures?: string[];
|
|
11
|
-
technicalStack?: string;
|
|
12
|
-
};
|
|
13
|
-
options?: {
|
|
14
|
-
format?: 'markdown' | 'json' | 'both';
|
|
15
|
-
detailLevel?: 'low' | 'medium' | 'high';
|
|
16
|
-
includeTechnicalSpec?: boolean;
|
|
17
|
-
outputPath?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface ProductFeature {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
priority: 'high' | 'medium' | 'low';
|
|
25
|
-
estimatedComplexity?: 'low' | 'medium' | 'high';
|
|
26
|
-
}
|
|
27
|
-
export interface ProductTechnicalApproach {
|
|
28
|
-
stack?: string[];
|
|
29
|
-
architecture?: string;
|
|
30
|
-
considerations?: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface ProductRequirementsResponse {
|
|
33
|
-
success: boolean;
|
|
34
|
-
documents: Array<{
|
|
35
|
-
path: string;
|
|
36
|
-
type: 'prd' | 'technical-spec' | 'features';
|
|
37
|
-
format: 'markdown' | 'json';
|
|
38
|
-
contentPreview: string;
|
|
39
|
-
content?: string;
|
|
40
|
-
}>;
|
|
41
|
-
structured: {
|
|
42
|
-
features: ProductFeature[];
|
|
43
|
-
technicalApproach?: ProductTechnicalApproach;
|
|
44
|
-
};
|
|
45
|
-
errors?: string[];
|
|
46
|
-
validationSummary?: any;
|
|
47
|
-
runId?: string;
|
|
48
|
-
feedbackId?: string;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=product-requirements.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-requirements.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/product-requirements.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;QACtC,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;QACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACpC,mBAAmB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CACjD;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,KAAK,GAAG,gBAAgB,GAAG,UAAU,CAAC;QAC5C,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,UAAU,EAAE;QACV,QAAQ,EAAE,cAAc,EAAE,CAAC;QAC3B,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;KAC9C,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-requirements.js","sourceRoot":"","sources":["../../../src/domain/entities/product-requirements.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Interface: IAgent
|
|
3
|
-
* Minimal agent abstraction for Codehere agents
|
|
4
|
-
*/
|
|
5
|
-
export type AgentType = 'engineering' | 'non-engineering';
|
|
6
|
-
/**
|
|
7
|
-
* Minimal agent interface
|
|
8
|
-
* Agents execute requests and return structured responses
|
|
9
|
-
*/
|
|
10
|
-
export interface IAgent<TRequest, TResponse> {
|
|
11
|
-
name: string;
|
|
12
|
-
type: AgentType;
|
|
13
|
-
execute(request: TRequest): Promise<TResponse>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=agent.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.interface.d.ts","sourceRoot":"","sources":["../../../src/domain/interfaces/agent.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,QAAQ,EAAE,SAAS;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAEhB,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.interface.js","sourceRoot":"","sources":["../../../src/domain/interfaces/agent.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infrastructure: FakeAIService
|
|
3
|
-
* Test-only implementation that returns deterministic responses without API calls
|
|
4
|
-
* Used for validation and testing when CODEHERE_FAKE_AI=1
|
|
5
|
-
*/
|
|
6
|
-
import type { IAIService, StreamHandler } from '../../domain/interfaces/ai-service.interface.js';
|
|
7
|
-
import type { CodeChunk } from '../../domain/entities/code-chunk.js';
|
|
8
|
-
import type { Memory } from '../../domain/entities/memory.js';
|
|
9
|
-
export declare class FakeAIService implements IAIService {
|
|
10
|
-
chat(query: string, context: CodeChunk[], memories?: Memory[]): Promise<string>;
|
|
11
|
-
chatStream(query: string, context: CodeChunk[], memories: Memory[] | undefined, streamHandler: StreamHandler): Promise<string>;
|
|
12
|
-
embed(text: string | string[]): Promise<number[] | number[][]>;
|
|
13
|
-
embedQuery(query: string): Promise<number[]>;
|
|
14
|
-
generateEdit(fileContent: string, instruction: string, filepath: string): Promise<string>;
|
|
15
|
-
generateFileContent(filepath: string, instruction: string, requirements?: string[]): Promise<string>;
|
|
16
|
-
generateReflection(trajectory: any, reward: number, errors: string[]): Promise<string>;
|
|
17
|
-
rerank(query: string, documents: string[], topN?: number): Promise<Array<{
|
|
18
|
-
index: number;
|
|
19
|
-
relevanceScore: number;
|
|
20
|
-
}>>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=fake-ai-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake-ai-service.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ai/fake-ai-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAE9D,qBAAa,aAAc,YAAW,UAAU;IACxC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAM/E,UAAU,CACd,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,SAAS,EAAE,EACpB,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAC9B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,MAAM,CAAC;IAmBZ,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,CAAC;IAQ9D,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAK5C,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKzF,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAKpG,kBAAkB,CAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAKtF,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAQ/H"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infrastructure: FakeAIService
|
|
3
|
-
* Test-only implementation that returns deterministic responses without API calls
|
|
4
|
-
* Used for validation and testing when CODEHERE_FAKE_AI=1
|
|
5
|
-
*/
|
|
6
|
-
export class FakeAIService {
|
|
7
|
-
async chat(query, context, memories) {
|
|
8
|
-
const contextSummary = context.length > 0 ? ` (with ${context.length} context chunks)` : '';
|
|
9
|
-
const memoriesSummary = memories && memories.length > 0 ? ` (with ${memories.length} memories)` : '';
|
|
10
|
-
return `FAKE_RESPONSE: ${query.slice(0, 80)}${contextSummary}${memoriesSummary}`;
|
|
11
|
-
}
|
|
12
|
-
async chatStream(query, context, memories, streamHandler) {
|
|
13
|
-
const response = await this.chat(query, context, memories);
|
|
14
|
-
// Simulate streaming by sending chunks
|
|
15
|
-
if (streamHandler.onToken) {
|
|
16
|
-
const words = response.split(' ');
|
|
17
|
-
for (const word of words) {
|
|
18
|
-
streamHandler.onToken(word + ' ');
|
|
19
|
-
await new Promise(resolve => setTimeout(resolve, 10));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (streamHandler.onComplete) {
|
|
23
|
-
streamHandler.onComplete(response);
|
|
24
|
-
}
|
|
25
|
-
return response;
|
|
26
|
-
}
|
|
27
|
-
async embed(text) {
|
|
28
|
-
// Return deterministic fake embeddings (all zeros for simplicity)
|
|
29
|
-
if (Array.isArray(text)) {
|
|
30
|
-
return text.map(() => new Array(768).fill(0));
|
|
31
|
-
}
|
|
32
|
-
return new Array(768).fill(0);
|
|
33
|
-
}
|
|
34
|
-
async embedQuery(query) {
|
|
35
|
-
// Return deterministic fake query embedding
|
|
36
|
-
return new Array(768).fill(0);
|
|
37
|
-
}
|
|
38
|
-
async generateEdit(fileContent, instruction, filepath) {
|
|
39
|
-
// Return file content with a simple comment added
|
|
40
|
-
return `${fileContent}\n\n// FAKE_EDIT: ${instruction.slice(0, 60)}\n`;
|
|
41
|
-
}
|
|
42
|
-
async generateFileContent(filepath, instruction, requirements) {
|
|
43
|
-
const reqs = requirements && requirements.length > 0 ? `\n// Requirements: ${requirements.join(', ')}` : '';
|
|
44
|
-
return `// FAKE_FILE: ${filepath}\n// ${instruction.slice(0, 100)}${reqs}\n\nexport function placeholder() {\n return 'fake';\n}\n`;
|
|
45
|
-
}
|
|
46
|
-
async generateReflection(trajectory, reward, errors) {
|
|
47
|
-
const errorSummary = errors.length > 0 ? ` Errors: ${errors.join(', ')}.` : '';
|
|
48
|
-
return `FAKE_REFLECTION: Reward=${reward}.${errorSummary}`;
|
|
49
|
-
}
|
|
50
|
-
async rerank(query, documents, topN = 10) {
|
|
51
|
-
// Return documents in original order with fake scores
|
|
52
|
-
const topNDocs = Math.min(topN, documents.length);
|
|
53
|
-
return Array.from({ length: topNDocs }, (_, i) => ({
|
|
54
|
-
index: i,
|
|
55
|
-
relevanceScore: 0.9 - (i * 0.1),
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=fake-ai-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake-ai-service.js","sourceRoot":"","sources":["../../../src/infrastructure/ai/fake-ai-service.ts"],"names":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AC;IAC7D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,SAAmB,EAAE,OAAe,EAAE;QAChE,sDAAsD;QACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACjD,KAAK,EAAE,CAAC;YACR,cAAc,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;SAChC,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shell Completion Generator
|
|
3
|
-
* Generates completion scripts for bash, zsh, and fish shells
|
|
4
|
-
*/
|
|
5
|
-
export interface CommandDefinition {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
options?: {
|
|
9
|
-
flag: string;
|
|
10
|
-
description: string;
|
|
11
|
-
}[];
|
|
12
|
-
subcommands?: string[];
|
|
13
|
-
dynamicCompletions?: (context: CompletionContext) => Promise<string[]>;
|
|
14
|
-
}
|
|
15
|
-
export interface CompletionContext {
|
|
16
|
-
command?: string;
|
|
17
|
-
subcommand?: string;
|
|
18
|
-
currentWord?: string;
|
|
19
|
-
previousWords: string[];
|
|
20
|
-
}
|
|
21
|
-
export declare const COMMAND_DEFINITIONS: Record<string, CommandDefinition>;
|
|
22
|
-
/**
|
|
23
|
-
* Get all command names
|
|
24
|
-
*/
|
|
25
|
-
export declare function getAllCommands(): string[];
|
|
26
|
-
/**
|
|
27
|
-
* Get command definition
|
|
28
|
-
*/
|
|
29
|
-
export declare function getCommandDefinition(command: string): CommandDefinition | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Get subcommands for a command
|
|
32
|
-
*/
|
|
33
|
-
export declare function getSubcommands(command: string): string[];
|
|
34
|
-
/**
|
|
35
|
-
* Get options for a command
|
|
36
|
-
*/
|
|
37
|
-
export declare function getCommandOptions(command: string): string[];
|
|
38
|
-
/**
|
|
39
|
-
* Generate file completions (for filepath arguments)
|
|
40
|
-
*/
|
|
41
|
-
export declare function getFileCompletions(prefix: string): Promise<string[]>;
|
|
42
|
-
//# sourceMappingURL=completion-generator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion-generator.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/completion/completion-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAGD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA+FjE,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEnF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAGxD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAgB3D;AAmCD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI1E"}
|