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":"hitl-review-portal.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/hitl-review-portal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,MAAM,EACN,SAAS,EAGT,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,GACV,MAAM,aAAa,CAAC;AAcrB;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,cAA8B;IAK9B,MAAM,MAAM,GAAG,cAAc,CAAC,oBAAoB,EAAE,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led: false;
|
|
3
|
-
} | {
|
|
4
|
-
handled: true;
|
|
5
|
-
kind: 'capabilities' | 'project' | 'goto';
|
|
6
|
-
message: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function handleMetaQuery(query: string, cwd: string): MetaQueryResult;
|
|
9
|
-
//# sourceMappingURL=meta-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-query.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/meta-query.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,eAAe,GACvB;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,GAClB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,eAAe,CAyD3E"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UX: Meta-query handler (deterministic, no LLM)
|
|
3
|
-
* Used to keep UX professional for "what can I do" / "what project is this" / "go to <path>".
|
|
4
|
-
*/
|
|
5
|
-
import { fingerprintRepo } from './repo-fingerprint.js';
|
|
6
|
-
import { isOfflineModeEnabled } from '../security/offline.js';
|
|
7
|
-
export function handleMetaQuery(query, cwd) {
|
|
8
|
-
const trimmed = query.trim();
|
|
9
|
-
const lower = trimmed.toLowerCase();
|
|
10
|
-
const normalized = lower.replace(/[?!.\u2026]+$/g, '').trim();
|
|
11
|
-
if (normalized === 'what can i do' || normalized === 'what i can do' || normalized === 'capabilities') {
|
|
12
|
-
const offlineNote = isOfflineModeEnabled()
|
|
13
|
-
? 'Offline: ON (no outbound network).'
|
|
14
|
-
: 'Offline: use `--offline` or CODEHERE_OFFLINE=1 to block outbound network (localhost allowed).';
|
|
15
|
-
return {
|
|
16
|
-
handled: true,
|
|
17
|
-
kind: 'capabilities',
|
|
18
|
-
message: [
|
|
19
|
-
'Commands you can run:',
|
|
20
|
-
'- codehere ask "..." --json',
|
|
21
|
-
'- codehere explain <file>',
|
|
22
|
-
'- codehere plan "..." --json',
|
|
23
|
-
'- codehere fix <file> "..." --review',
|
|
24
|
-
'- codehere orchestrate "..." --json',
|
|
25
|
-
'- codehere memory --list --json',
|
|
26
|
-
'- codehere trace export <runId> --json',
|
|
27
|
-
'',
|
|
28
|
-
'Tips:',
|
|
29
|
-
`- Current directory: ${cwd}`,
|
|
30
|
-
'- To work on another repo: `cd /path/to/repo` in your shell, then re-run.',
|
|
31
|
-
`- ${offlineNote}`,
|
|
32
|
-
].join('\n'),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
if (normalized === 'what project is this' || normalized === 'what is this project' || normalized === 'project') {
|
|
36
|
-
const fp = fingerprintRepo(cwd);
|
|
37
|
-
const lines = [
|
|
38
|
-
'Project fingerprint:',
|
|
39
|
-
`- directory: ${fp.cwd}`,
|
|
40
|
-
`- type: ${fp.kind}`,
|
|
41
|
-
];
|
|
42
|
-
if (fp.name)
|
|
43
|
-
lines.push(`- name: ${fp.name}`);
|
|
44
|
-
if (fp.description)
|
|
45
|
-
lines.push(`- description: ${fp.description}`);
|
|
46
|
-
if (fp.packageManager)
|
|
47
|
-
lines.push(`- package manager: ${fp.packageManager}`);
|
|
48
|
-
if (fp.scripts && fp.scripts.length > 0)
|
|
49
|
-
lines.push(`- scripts: ${fp.scripts.slice(0, 12).join(', ')}${fp.scripts.length > 12 ? ', ...' : ''}`);
|
|
50
|
-
return { handled: true, kind: 'project', message: lines.join('\n') };
|
|
51
|
-
}
|
|
52
|
-
const goToMatch = trimmed.match(/\b(go to|switch to|cd to)\s+(\S+)/i);
|
|
53
|
-
if (goToMatch) {
|
|
54
|
-
const target = goToMatch[2];
|
|
55
|
-
return {
|
|
56
|
-
handled: true,
|
|
57
|
-
kind: 'goto',
|
|
58
|
-
message: `I can’t change your shell’s working directory. Run this in your terminal:\n\ncd ${target}\n\nThen run:\ncodehere ask \"what project is this\" --json`,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return { handled: false };
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=meta-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-query.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/meta-query.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,GAAW;IACxD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IACpC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAE9D,IAAI,UAAU,KAAK,eAAe,IAAI,UAAU,KAAK,eAAe,IAAI,UAAU,KAAK,cAAc,EAAE,CAAC;QACtG,MAAM,WAAW,GAAG,oBAAoB,EAAE;YACxC,CAAC,CAAC,oCAAoC;YACtC,CAAC,CAAC,+FAA+F,CAAC;QAEpG,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,cAAc;YACpB,OAAO,EACL;gBACE,uBAAuB;gBACvB,6BAA6B;gBAC7B,2BAA2B;gBAC3B,8BAA8B;gBAC9B,sCAAsC;gBACtC,qCAAqC;gBACrC,iCAAiC;gBACjC,wCAAwC;gBACxC,EAAE;gBACF,OAAO;gBACP,wBAAwB,GAAG,EAAE;gBAC7B,2EAA2E;gBAC3E,KAAK,WAAW,EAAE;aACnB,CAAC,IAAI,CAAC,IAAI,CAAC;SACf,CAAC;IACJ,CAAC;IAED,IAAI,UAAU,KAAK,sBAAsB,IAAI,UA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,mFAAmF,MAAM,6DAA6D;SAChK,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infrastructure: Proportional Friction Enhancement
|
|
3
|
-
* Task 5.2: Higher friction for high-risk actions, lower friction for safe operations
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - User-configurable friction levels
|
|
7
|
-
* - Risk-proportional friction calculation
|
|
8
|
-
* - Consistent application across operations
|
|
9
|
-
*/
|
|
10
|
-
import { AppropriateFriction, FrictionPoint } from './appropriate-friction.js';
|
|
11
|
-
export type UserFrictionPreference = 'minimal' | 'balanced' | 'strict';
|
|
12
|
-
export interface FrictionConfiguration {
|
|
13
|
-
preference: UserFrictionPreference;
|
|
14
|
-
allowAutoProceed: boolean;
|
|
15
|
-
customThresholds?: {
|
|
16
|
-
low?: number;
|
|
17
|
-
medium?: number;
|
|
18
|
-
high?: number;
|
|
19
|
-
critical?: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Enhanced Proportional Friction System
|
|
24
|
-
* Extends AppropriateFriction with user-configurable proportional scaling
|
|
25
|
-
*/
|
|
26
|
-
export declare class ProportionalFriction extends AppropriateFriction {
|
|
27
|
-
private config;
|
|
28
|
-
private configPath;
|
|
29
|
-
constructor(configPath?: string);
|
|
30
|
-
/**
|
|
31
|
-
* Get friction point adjusted for user preferences
|
|
32
|
-
* Scales friction level based on user configuration and risk
|
|
33
|
-
*/
|
|
34
|
-
getProportionalFriction(operation: string, context: {
|
|
35
|
-
riskLevel?: 'low' | 'medium' | 'high' | 'critical';
|
|
36
|
-
isDestructive?: boolean;
|
|
37
|
-
affectsMultipleFiles?: boolean;
|
|
38
|
-
modifiesSecuritySensitiveCode?: boolean;
|
|
39
|
-
uncertainty?: number;
|
|
40
|
-
}): FrictionPoint | null;
|
|
41
|
-
/**
|
|
42
|
-
* Adjust friction level based on user preference
|
|
43
|
-
*/
|
|
44
|
-
private adjustFrictionLevel;
|
|
45
|
-
/**
|
|
46
|
-
* Determine if explicit confirmation should be required
|
|
47
|
-
*/
|
|
48
|
-
private shouldRequireConfirmation;
|
|
49
|
-
/**
|
|
50
|
-
* Adjust timeout based on user preference
|
|
51
|
-
*/
|
|
52
|
-
private adjustTimeout;
|
|
53
|
-
/**
|
|
54
|
-
* Update friction configuration
|
|
55
|
-
*/
|
|
56
|
-
updateConfiguration(config: Partial<FrictionConfiguration>): void;
|
|
57
|
-
/**
|
|
58
|
-
* Get current configuration
|
|
59
|
-
*/
|
|
60
|
-
getConfiguration(): FrictionConfiguration;
|
|
61
|
-
/**
|
|
62
|
-
* Set user preference
|
|
63
|
-
*/
|
|
64
|
-
setPreference(preference: UserFrictionPreference): void;
|
|
65
|
-
/**
|
|
66
|
-
* Calculate friction intensity score (0-1)
|
|
67
|
-
* Higher score = more friction
|
|
68
|
-
*/
|
|
69
|
-
calculateFrictionScore(riskLevel: 'low' | 'medium' | 'high' | 'critical', isDestructive: boolean, affectsMultipleFiles: boolean, modifiesSecuritySensitiveCode: boolean, uncertainty: number): number;
|
|
70
|
-
private loadConfiguration;
|
|
71
|
-
private saveConfiguration;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=proportional-friction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proportional-friction.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/proportional-friction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAiB,MAAM,2BAA2B,CAAC;AAI9F,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,sBAAsB,CAAC;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,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200 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infrastructure: Proportional Friction Enhancement
|
|
3
|
-
* Task 5.2: Higher friction for high-risk actions, lower friction for safe operations
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - User-configurable friction levels
|
|
7
|
-
* - Risk-proportional friction calculation
|
|
8
|
-
* - Consistent application across operations
|
|
9
|
-
*/
|
|
10
|
-
import { AppropriateFriction } from './appropriate-friction.js';
|
|
11
|
-
import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs';
|
|
12
|
-
import { join } from 'path';
|
|
13
|
-
/**
|
|
14
|
-
* Enhanced Proportional Friction System
|
|
15
|
-
* Extends AppropriateFriction with user-configurable proportional scaling
|
|
16
|
-
*/
|
|
17
|
-
export class ProportionalFriction extends AppropriateFriction {
|
|
18
|
-
config;
|
|
19
|
-
configPath;
|
|
20
|
-
constructor(configPath) {
|
|
21
|
-
super();
|
|
22
|
-
this.configPath = configPath || join(process.cwd(), 'data', 'friction-config.json');
|
|
23
|
-
this.config = this.loadConfiguration();
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get friction point adjusted for user preferences
|
|
27
|
-
* Scales friction level based on user configuration and risk
|
|
28
|
-
*/
|
|
29
|
-
getProportionalFriction(operation, context) {
|
|
30
|
-
const baseFriction = this.needsFriction(operation, context);
|
|
31
|
-
if (!baseFriction) {
|
|
32
|
-
return null; // No friction needed
|
|
33
|
-
}
|
|
34
|
-
// Adjust friction level based on user preference
|
|
35
|
-
const adjustedLevel = this.adjustFrictionLevel(baseFriction.level, context.riskLevel || 'medium', this.config);
|
|
36
|
-
// Adjust confirmation requirements based on preference
|
|
37
|
-
const requiresConfirmation = this.shouldRequireConfirmation(baseFriction.requiresExplicitConfirmation, adjustedLevel, this.config);
|
|
38
|
-
// Adjust timeout based on preference
|
|
39
|
-
const timeout = this.adjustTimeout(baseFriction.timeout, adjustedLevel, this.config);
|
|
40
|
-
return {
|
|
41
|
-
...baseFriction,
|
|
42
|
-
level: adjustedLevel,
|
|
43
|
-
requiresExplicitConfirmation: requiresConfirmation,
|
|
44
|
-
timeout: timeout,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Adjust friction level based on user preference
|
|
49
|
-
*/
|
|
50
|
-
adjustFrictionLevel(baseLevel, riskLevel, config) {
|
|
51
|
-
// For critical operations, always use heavy friction regardless of preference
|
|
52
|
-
if (riskLevel === 'critical') {
|
|
53
|
-
return 'heavy';
|
|
54
|
-
}
|
|
55
|
-
switch (config.preference) {
|
|
56
|
-
case 'minimal':
|
|
57
|
-
// Reduce friction levels
|
|
58
|
-
if (baseLevel === 'heavy')
|
|
59
|
-
return 'moderate';
|
|
60
|
-
if (baseLevel === 'moderate')
|
|
61
|
-
return 'light';
|
|
62
|
-
if (baseLevel === 'light')
|
|
63
|
-
return 'none';
|
|
64
|
-
return baseLevel;
|
|
65
|
-
case 'strict':
|
|
66
|
-
// Increase friction levels
|
|
67
|
-
if (baseLevel === 'light')
|
|
68
|
-
return 'moderate';
|
|
69
|
-
if (baseLevel === 'moderate')
|
|
70
|
-
return 'heavy';
|
|
71
|
-
if (baseLevel === 'none' && riskLevel !== 'low')
|
|
72
|
-
return 'light';
|
|
73
|
-
return baseLevel;
|
|
74
|
-
case 'balanced':
|
|
75
|
-
default:
|
|
76
|
-
// Use base level as-is (default behavior)
|
|
77
|
-
return baseLevel;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Determine if explicit confirmation should be required
|
|
82
|
-
*/
|
|
83
|
-
shouldRequireConfirmation(baseRequirement, frictionLevel, config) {
|
|
84
|
-
// Minimal preference allows auto-proceed for moderate friction
|
|
85
|
-
if (config.preference === 'minimal' && config.allowAutoProceed) {
|
|
86
|
-
if (frictionLevel === 'light' || frictionLevel === 'moderate') {
|
|
87
|
-
return false; // Allow auto-proceed
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// Strict preference always requires confirmation for any friction
|
|
91
|
-
if (config.preference === 'strict') {
|
|
92
|
-
return frictionLevel !== 'none';
|
|
93
|
-
}
|
|
94
|
-
// Balanced: Use base requirement
|
|
95
|
-
return baseRequirement;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Adjust timeout based on user preference
|
|
99
|
-
*/
|
|
100
|
-
adjustTimeout(baseTimeout, frictionLevel, config) {
|
|
101
|
-
if (!baseTimeout) {
|
|
102
|
-
return undefined; // No timeout
|
|
103
|
-
}
|
|
104
|
-
// Minimal: Shorter timeout
|
|
105
|
-
if (config.preference === 'minimal') {
|
|
106
|
-
return Math.max(1000, baseTimeout * 0.5); // 50% of base timeout
|
|
107
|
-
}
|
|
108
|
-
// Strict: Longer timeout
|
|
109
|
-
if (config.preference === 'strict') {
|
|
110
|
-
return baseTimeout * 2; // 200% of base timeout
|
|
111
|
-
}
|
|
112
|
-
// Balanced: Use base timeout
|
|
113
|
-
return baseTimeout;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Update friction configuration
|
|
117
|
-
*/
|
|
118
|
-
updateConfiguration(config) {
|
|
119
|
-
this.config = {
|
|
120
|
-
...this.config,
|
|
121
|
-
...config,
|
|
122
|
-
};
|
|
123
|
-
this.saveConfiguration();
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Get current configuration
|
|
127
|
-
*/
|
|
128
|
-
getConfiguration() {
|
|
129
|
-
return { ...this.config };
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Set user preference
|
|
133
|
-
*/
|
|
134
|
-
setPreference(preference) {
|
|
135
|
-
this.config.preference = preference;
|
|
136
|
-
this.saveConfiguration();
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Calculate friction intensity score (0-1)
|
|
140
|
-
* Higher score = more friction
|
|
141
|
-
*/
|
|
142
|
-
calculateFrictionScore(riskLevel, isDestructive, affectsMultipleFiles, modifiesSecuritySensitiveCode, uncertainty) {
|
|
143
|
-
let score = 0;
|
|
144
|
-
// Risk level contribution (40%)
|
|
145
|
-
const riskScores = { low: 0.1, medium: 0.3, high: 0.6, critical: 1.0 };
|
|
146
|
-
score += riskScores[riskLevel] * 0.4;
|
|
147
|
-
// Destructive operation (20%)
|
|
148
|
-
if (isDestructive)
|
|
149
|
-
score += 0.2;
|
|
150
|
-
// Multi-file impact (15%)
|
|
151
|
-
if (affectsMultipleFiles)
|
|
152
|
-
score += 0.15;
|
|
153
|
-
// Security-sensitive (20%)
|
|
154
|
-
if (modifiesSecuritySensitiveCode)
|
|
155
|
-
score += 0.2;
|
|
156
|
-
// Uncertainty (5%)
|
|
157
|
-
score += Math.min(uncertainty, 1.0) * 0.05;
|
|
158
|
-
// Apply user preference scaling
|
|
159
|
-
const preferenceScale = {
|
|
160
|
-
minimal: 0.7, // 30% reduction
|
|
161
|
-
balanced: 1.0, // No change
|
|
162
|
-
strict: 1.3, // 30% increase
|
|
163
|
-
};
|
|
164
|
-
score *= preferenceScale[this.config.preference];
|
|
165
|
-
return Math.min(score, 1.0); // Cap at 1.0
|
|
166
|
-
}
|
|
167
|
-
// Configuration persistence
|
|
168
|
-
loadConfiguration() {
|
|
169
|
-
try {
|
|
170
|
-
if (existsSync(this.configPath)) {
|
|
171
|
-
const data = JSON.parse(readFileSync(this.configPath, 'utf-8'));
|
|
172
|
-
return {
|
|
173
|
-
preference: data.preference || 'balanced',
|
|
174
|
-
allowAutoProceed: data.allowAutoProceed ?? true,
|
|
175
|
-
customThresholds: data.customThresholds,
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
catch {
|
|
180
|
-
// Use defaults if config doesn't exist or can't be read
|
|
181
|
-
}
|
|
182
|
-
return {
|
|
183
|
-
preference: 'balanced',
|
|
184
|
-
allowAutoProceed: true,
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
saveConfiguration() {
|
|
188
|
-
try {
|
|
189
|
-
const configDir = join(this.configPath, '..');
|
|
190
|
-
if (!existsSync(configDir)) {
|
|
191
|
-
mkdirSync(configDir, { recursive: true });
|
|
192
|
-
}
|
|
193
|
-
writeFileSync(this.configPath, JSON.stringify(this.config, null, 2));
|
|
194
|
-
}
|
|
195
|
-
catch {
|
|
196
|
-
// Silently fail - configuration is optional
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
//# sourceMappingURL=proportional-friction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proportional-friction.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/proportional-friction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,mBAAmB,EAAgC,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAe5B;;;GAGG;AACH,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IACnD,MAAM,CAAwB;IAC9B,UAAU,CAAS;IAE3B,YAAY,UAAmB;QAC7B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,UAAU,GAAG,UAAU,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,sBAAsB,CAAC,CAAC;QACpF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,uBAAuB,CACrB,SAAiB,EACjB,OAMC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE5D,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC,CAAC,qBAAqB;QACpC,CAAC;QAED,iDAAiD;QACjD,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAC5C,YAAY,CAAC,KAAK,EAClB,OAAO,CA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C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;gBAChE,OAAO;oBACL,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,UAAU;oBACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,IAAI;oBAC/C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;iBACxC,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,wDAAwD;QAC1D,CAAC;QAED,OAAO;YACL,UAAU,EAAE,UAAU;YACtB,gBAAgB,EAAE,IAAI;SACvB,CAAC;IACJ,CAAC;IAEO,iBAAiB;QACvB,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YAC9C,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC3B,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAC5C,CAAC;YACD,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACvE,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;QAC9C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type RepoFingerprint = {
|
|
2
|
-
cwd: string;
|
|
3
|
-
kind: 'node' | 'python' | 'go' | 'rust' | 'unknown';
|
|
4
|
-
name?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
packageManager?: 'npm' | 'pnpm' | 'yarn';
|
|
7
|
-
scripts?: string[];
|
|
8
|
-
};
|
|
9
|
-
export declare function fingerprintRepo(cwd: string): RepoFingerprint;
|
|
10
|
-
//# sourceMappingURL=repo-fingerprint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repo-fingerprint.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/repo-fingerprint.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAUF,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CA0C5D"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UX: Repo Fingerprint (deterministic, no LLM)
|
|
3
|
-
* Produces a quick, reliable summary of the current directory/repo.
|
|
4
|
-
*/
|
|
5
|
-
import { existsSync, readFileSync, readdirSync } from 'fs';
|
|
6
|
-
import { join } from 'path';
|
|
7
|
-
function safeReadJson(path) {
|
|
8
|
-
try {
|
|
9
|
-
return JSON.parse(readFileSync(path, 'utf-8'));
|
|
10
|
-
}
|
|
11
|
-
catch {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export function fingerprintRepo(cwd) {
|
|
16
|
-
const pkgPath = join(cwd, 'package.json');
|
|
17
|
-
const pnpmLock = join(cwd, 'pnpm-lock.yaml');
|
|
18
|
-
const yarnLock = join(cwd, 'yarn.lock');
|
|
19
|
-
const npmLock = join(cwd, 'package-lock.json');
|
|
20
|
-
if (existsSync(pkgPath)) {
|
|
21
|
-
const pkg = safeReadJson(pkgPath) || {};
|
|
22
|
-
const scripts = pkg.scripts && typeof pkg.scripts === 'object'
|
|
23
|
-
? Object.keys(pkg.scripts).sort()
|
|
24
|
-
: [];
|
|
25
|
-
const packageManager = existsSync(pnpmLock) ? 'pnpm' : existsSync(yarnLock) ? 'yarn' : existsSync(npmLock) ? 'npm' : 'npm';
|
|
26
|
-
return {
|
|
27
|
-
cwd,
|
|
28
|
-
kind: 'node',
|
|
29
|
-
name: typeof pkg.name === 'string' ? pkg.name : undefined,
|
|
30
|
-
description: typeof pkg.description === 'string' ? pkg.description : undefined,
|
|
31
|
-
packageManager,
|
|
32
|
-
scripts,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
if (existsSync(join(cwd, 'pyproject.toml')) || existsSync(join(cwd, 'requirements.txt'))) {
|
|
36
|
-
return { cwd, kind: 'python' };
|
|
37
|
-
}
|
|
38
|
-
if (existsSync(join(cwd, 'go.mod'))) {
|
|
39
|
-
return { cwd, kind: 'go' };
|
|
40
|
-
}
|
|
41
|
-
if (existsSync(join(cwd, 'Cargo.toml'))) {
|
|
42
|
-
return { cwd, kind: 'rust' };
|
|
43
|
-
}
|
|
44
|
-
// Lightweight heuristic: if directory is empty-ish, call it unknown
|
|
45
|
-
try {
|
|
46
|
-
const entries = readdirSync(cwd);
|
|
47
|
-
if (entries.length === 0)
|
|
48
|
-
return { cwd, kind: 'unknown' };
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
// ignore
|
|
52
|
-
}
|
|
53
|
-
return { cwd, kind: 'unknown' };
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=repo-fingerprint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repo-fingerprint.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/repo-fingerprint.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAW5B,SAAS,YAAY,CAAC,IAAY;IAChC,IAAI,CAAC;QACH,OAAO,IAAI,CAA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,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;YAC9E,cAAc;YACd,OAAO;SACR,CAAC;IACJ,CAAC;IAED,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC;QACzF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjC,CAAC;IACD,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC;QACpC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IACD,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC;QACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED,oEAAoE;IACpE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,SAAS;IACX,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infrastructure: Feedback Statistics Builders
|
|
3
|
-
* Pure functions to compute feedback analytics and status snapshots
|
|
4
|
-
*
|
|
5
|
-
* Clean Architecture: Infrastructure Layer
|
|
6
|
-
* Strategic: Provides machine-readable JSON outputs for CI/dashboards
|
|
7
|
-
*/
|
|
8
|
-
import type { TrustConfig } from './trust-config.js';
|
|
9
|
-
export type FeedbackOutcome = 'success' | 'failure' | 'partial_success' | 'cancelled' | 'error';
|
|
10
|
-
export type UserAction = 'approved' | 'rejected' | 'modified' | 'skipped' | 'not_required';
|
|
11
|
-
export interface AgentFeedback {
|
|
12
|
-
feedbackId: string;
|
|
13
|
-
runId: string;
|
|
14
|
-
agentName: string;
|
|
15
|
-
timestamp: number;
|
|
16
|
-
operation: string;
|
|
17
|
-
query?: string;
|
|
18
|
-
outcome: FeedbackOutcome;
|
|
19
|
-
userAction?: UserAction;
|
|
20
|
-
filesChanged?: string[];
|
|
21
|
-
filesCreated?: string[];
|
|
22
|
-
filesDeleted?: string[];
|
|
23
|
-
errors?: string[];
|
|
24
|
-
warnings?: string[];
|
|
25
|
-
validationChecks?: Array<{
|
|
26
|
-
check: string;
|
|
27
|
-
passed: boolean;
|
|
28
|
-
message?: string;
|
|
29
|
-
}>;
|
|
30
|
-
metrics?: {
|
|
31
|
-
tokensUsed?: number;
|
|
32
|
-
duration?: number;
|
|
33
|
-
filesAnalyzed?: number;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* JSON output for analyze-feedback script
|
|
38
|
-
*/
|
|
39
|
-
export interface FeedbackAnalyticsJson {
|
|
40
|
-
totalRecords: number;
|
|
41
|
-
agents: Array<{
|
|
42
|
-
agentName: string;
|
|
43
|
-
totalRuns: number;
|
|
44
|
-
trustScore: number;
|
|
45
|
-
belowThreshold: boolean;
|
|
46
|
-
threshold: number;
|
|
47
|
-
outcomes: Record<string, number>;
|
|
48
|
-
userActions: Record<string, number>;
|
|
49
|
-
}>;
|
|
50
|
-
operations: Array<{
|
|
51
|
-
operation: string;
|
|
52
|
-
count: number;
|
|
53
|
-
outcomes: Record<string, number>;
|
|
54
|
-
}>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* JSON output for status command
|
|
58
|
-
*/
|
|
59
|
-
export interface StatusSnapshotJson {
|
|
60
|
-
totalRecords: number;
|
|
61
|
-
agents: Array<{
|
|
62
|
-
agentName: string;
|
|
63
|
-
success: {
|
|
64
|
-
runs: number;
|
|
65
|
-
total: number;
|
|
66
|
-
};
|
|
67
|
-
trustScore: number;
|
|
68
|
-
threshold: number;
|
|
69
|
-
belowThreshold: boolean;
|
|
70
|
-
}>;
|
|
71
|
-
operations: Array<{
|
|
72
|
-
operation: string;
|
|
73
|
-
runs: number;
|
|
74
|
-
}>;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Build feedback analytics JSON from feedback records and trust config
|
|
78
|
-
*/
|
|
79
|
-
export declare function buildFeedbackAnalyticsJson(feedback: AgentFeedback[], trustConfig: TrustConfig): FeedbackAnalyticsJson;
|
|
80
|
-
/**
|
|
81
|
-
* Build status snapshot JSON from feedback records and trust config
|
|
82
|
-
*/
|
|
83
|
-
export declare function buildStatusSnapshotJson(feedback: AgentFeedback[], trustConfig: TrustConfig): StatusSnapshotJson;
|
|
84
|
-
/**
|
|
85
|
-
* Result of trust threshold evaluation
|
|
86
|
-
*/
|
|
87
|
-
export interface TrustCheckResult {
|
|
88
|
-
offenders: Array<{
|
|
89
|
-
agentName: string;
|
|
90
|
-
trustScore: number;
|
|
91
|
-
threshold: number;
|
|
92
|
-
}>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Evaluate trust thresholds from analytics JSON
|
|
96
|
-
* Returns agents that are below their configured thresholds
|
|
97
|
-
*/
|
|
98
|
-
export declare function evaluateTrustThresholds(analytics: FeedbackAnalyticsJson): TrustCheckResult;
|
|
99
|
-
//# sourceMappingURL=feedback-stats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-stats.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/validation/feedback-stats.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,OAAO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