codehere 0.4.0 → 0.5.0-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 +113 -30
- package/dist/application/agents/execution-agent.js +2 -2
- package/dist/application/agents/execution-agent.js.map +1 -1
- package/dist/application/agents/multi-agent-orchestrator.d.ts +1 -0
- package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -1
- package/dist/application/agents/multi-agent-orchestrator.js +10 -3
- 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 +22 -10
- package/dist/application/agents/planning-agent.js.map +1 -1
- package/dist/application/agents/validation-agent.js +2 -2
- package/dist/application/agents/validation-agent.js.map +1 -1
- package/dist/application/reasoning/multi-model-planning-strategy.d.ts +21 -0
- package/dist/application/reasoning/multi-model-planning-strategy.d.ts.map +1 -0
- package/dist/application/reasoning/multi-model-planning-strategy.js +158 -0
- package/dist/application/reasoning/multi-model-planning-strategy.js.map +1 -0
- package/dist/application/reasoning/reasoning-config.d.ts +15 -0
- package/dist/application/reasoning/reasoning-config.d.ts.map +1 -0
- package/dist/application/reasoning/reasoning-config.js +50 -0
- package/dist/application/reasoning/reasoning-config.js.map +1 -0
- package/dist/application/reasoning/reasoning-orchestrator.d.ts +18 -0
- package/dist/application/reasoning/reasoning-orchestrator.d.ts.map +1 -0
- package/dist/application/reasoning/reasoning-orchestrator.js +170 -0
- package/dist/application/reasoning/reasoning-orchestrator.js.map +1 -0
- package/dist/application/reasoning/reasoning-strategy.interface.d.ts +24 -0
- package/dist/application/reasoning/reasoning-strategy.interface.d.ts.map +1 -0
- package/dist/application/reasoning/reasoning-strategy.interface.js +6 -0
- package/dist/application/reasoning/reasoning-strategy.interface.js.map +1 -0
- package/dist/application/reasoning/role-provider-resolver.d.ts +36 -0
- package/dist/application/reasoning/role-provider-resolver.d.ts.map +1 -0
- package/dist/application/reasoning/role-provider-resolver.js +74 -0
- package/dist/application/reasoning/role-provider-resolver.js.map +1 -0
- package/dist/application/reasoning/simple-planning-strategy.d.ts +22 -0
- package/dist/application/reasoning/simple-planning-strategy.d.ts.map +1 -0
- package/dist/application/reasoning/simple-planning-strategy.js +217 -0
- package/dist/application/reasoning/simple-planning-strategy.js.map +1 -0
- package/dist/application/reasoning/types.d.ts +65 -0
- package/dist/application/reasoning/types.d.ts.map +1 -0
- package/dist/application/reasoning/types.js +6 -0
- package/dist/application/reasoning/types.js.map +1 -0
- package/dist/application/reasoning/validator-strategy.d.ts +56 -0
- package/dist/application/reasoning/validator-strategy.d.ts.map +1 -0
- package/dist/application/reasoning/validator-strategy.js +103 -0
- package/dist/application/reasoning/validator-strategy.js.map +1 -0
- package/dist/application/services/dependency-container.d.ts +30 -6
- package/dist/application/services/dependency-container.d.ts.map +1 -1
- package/dist/application/services/dependency-container.js +96 -44
- package/dist/application/services/dependency-container.js.map +1 -1
- package/dist/application/services/intelligent-router.d.ts +6 -0
- package/dist/application/services/intelligent-router.d.ts.map +1 -1
- package/dist/application/services/intelligent-router.js +98 -9
- package/dist/application/services/intelligent-router.js.map +1 -1
- package/dist/application/use-cases/ask-question-use-case.d.ts +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 +4 -3
- package/dist/application/use-cases/ask-question-use-case.js.map +1 -1
- package/dist/application/use-cases/planning-use-case.d.ts +14 -1
- package/dist/application/use-cases/planning-use-case.d.ts.map +1 -1
- package/dist/application/use-cases/planning-use-case.js +109 -2
- package/dist/application/use-cases/planning-use-case.js.map +1 -1
- package/dist/domain/entities/memory.d.ts.map +1 -1
- package/dist/domain/entities/task.d.ts +1 -1
- package/dist/domain/entities/task.d.ts.map +1 -1
- package/dist/domain/entities/task.js +2 -2
- package/dist/domain/entities/task.js.map +1 -1
- package/dist/domain/errors/embeddings-not-found-error.d.ts +9 -0
- package/dist/domain/errors/embeddings-not-found-error.d.ts.map +1 -0
- package/dist/domain/errors/embeddings-not-found-error.js +13 -0
- package/dist/domain/errors/embeddings-not-found-error.js.map +1 -0
- package/dist/domain/interfaces/embedding-repository.interface.d.ts +5 -0
- package/dist/domain/interfaces/embedding-repository.interface.d.ts.map +1 -1
- package/dist/domain/services/environment-mode-manager.d.ts +4 -10
- package/dist/domain/services/environment-mode-manager.d.ts.map +1 -1
- package/dist/domain/services/environment-mode-manager.js +7 -22
- package/dist/domain/services/environment-mode-manager.js.map +1 -1
- package/dist/domain/services/query-intent-classifier.d.ts.map +1 -1
- package/dist/domain/services/query-intent-classifier.js +20 -1
- package/dist/domain/services/query-intent-classifier.js.map +1 -1
- package/dist/domain/services/risk-tier-detector.d.ts +8 -9
- package/dist/domain/services/risk-tier-detector.d.ts.map +1 -1
- package/dist/domain/services/risk-tier-detector.js +53 -40
- package/dist/domain/services/risk-tier-detector.js.map +1 -1
- package/dist/embed.d.ts.map +1 -1
- package/dist/embed.js +18 -8
- package/dist/embed.js.map +1 -1
- package/dist/index.js +405 -52
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/cohere-ai-service.js +4 -4
- 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 +7 -7
- package/dist/infrastructure/ai/provider-ai-service.js.map +1 -1
- package/dist/infrastructure/cache/query-result-cache.d.ts +14 -55
- package/dist/infrastructure/cache/query-result-cache.d.ts.map +1 -1
- package/dist/infrastructure/cache/query-result-cache.js +40 -112
- package/dist/infrastructure/cache/query-result-cache.js.map +1 -1
- package/dist/infrastructure/cache/response-cache.d.ts +10 -78
- package/dist/infrastructure/cache/response-cache.d.ts.map +1 -1
- package/dist/infrastructure/cache/response-cache.js +22 -198
- package/dist/infrastructure/cache/response-cache.js.map +1 -1
- package/dist/infrastructure/cache/security-scan-cache.d.ts +8 -49
- package/dist/infrastructure/cache/security-scan-cache.d.ts.map +1 -1
- package/dist/infrastructure/cache/security-scan-cache.js +25 -102
- package/dist/infrastructure/cache/security-scan-cache.js.map +1 -1
- package/dist/infrastructure/completion/bash-completion.d.ts +2 -3
- package/dist/infrastructure/completion/bash-completion.d.ts.map +1 -1
- package/dist/infrastructure/completion/bash-completion.js +11 -87
- package/dist/infrastructure/completion/bash-completion.js.map +1 -1
- package/dist/infrastructure/completion/fish-completion.d.ts +2 -3
- package/dist/infrastructure/completion/fish-completion.d.ts.map +1 -1
- package/dist/infrastructure/completion/fish-completion.js +15 -58
- package/dist/infrastructure/completion/fish-completion.js.map +1 -1
- package/dist/infrastructure/completion/zsh-completion.d.ts +2 -3
- package/dist/infrastructure/completion/zsh-completion.d.ts.map +1 -1
- package/dist/infrastructure/completion/zsh-completion.js +18 -73
- package/dist/infrastructure/completion/zsh-completion.js.map +1 -1
- package/dist/infrastructure/config/config-manager.d.ts +10 -0
- package/dist/infrastructure/config/config-manager.d.ts.map +1 -1
- package/dist/infrastructure/config/config-manager.js +13 -2
- package/dist/infrastructure/config/config-manager.js.map +1 -1
- package/dist/infrastructure/context/conversation-context.d.ts +27 -31
- package/dist/infrastructure/context/conversation-context.d.ts.map +1 -1
- package/dist/infrastructure/context/conversation-context.js +95 -136
- package/dist/infrastructure/context/conversation-context.js.map +1 -1
- package/dist/infrastructure/context/session-manager.d.ts +27 -11
- package/dist/infrastructure/context/session-manager.d.ts.map +1 -1
- package/dist/infrastructure/context/session-manager.js +69 -73
- package/dist/infrastructure/context/session-manager.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.map +1 -1
- package/dist/infrastructure/providers/cohere-provider.js +102 -17
- package/dist/infrastructure/providers/cohere-provider.js.map +1 -1
- package/dist/infrastructure/providers/openrouter-provider.d.ts +42 -0
- package/dist/infrastructure/providers/openrouter-provider.d.ts.map +1 -0
- package/dist/infrastructure/providers/openrouter-provider.js +401 -0
- package/dist/infrastructure/providers/openrouter-provider.js.map +1 -0
- package/dist/infrastructure/providers/operation-provider-resolver.d.ts.map +1 -1
- package/dist/infrastructure/providers/operation-provider-resolver.js +33 -7
- package/dist/infrastructure/providers/operation-provider-resolver.js.map +1 -1
- package/dist/infrastructure/security/input-validator.d.ts.map +1 -1
- package/dist/infrastructure/security/input-validator.js +19 -6
- package/dist/infrastructure/security/input-validator.js.map +1 -1
- package/dist/infrastructure/serialization/toon-serializer.d.ts +45 -0
- package/dist/infrastructure/serialization/toon-serializer.d.ts.map +1 -0
- package/dist/infrastructure/serialization/toon-serializer.js +119 -0
- package/dist/infrastructure/serialization/toon-serializer.js.map +1 -0
- package/dist/infrastructure/storage/embeddings-path.d.ts +18 -0
- package/dist/infrastructure/storage/embeddings-path.d.ts.map +1 -0
- package/dist/infrastructure/storage/embeddings-path.js +37 -0
- package/dist/infrastructure/storage/embeddings-path.js.map +1 -0
- package/dist/infrastructure/storage/plan-repository.d.ts +2 -0
- package/dist/infrastructure/storage/plan-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/plan-repository.js +36 -73
- package/dist/infrastructure/storage/plan-repository.js.map +1 -1
- package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +10 -1
- package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite-embedding-repository.js +37 -3
- package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -1
- package/dist/infrastructure/storage/task-helpers.d.ts +12 -1
- package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -1
- package/dist/infrastructure/storage/task-helpers.js +48 -8
- package/dist/infrastructure/storage/task-helpers.js.map +1 -1
- package/dist/infrastructure/storage/task-repository.d.ts +2 -1
- package/dist/infrastructure/storage/task-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/task-repository.js +14 -3
- package/dist/infrastructure/storage/task-repository.js.map +1 -1
- package/dist/infrastructure/telemetry/telemetry-service.d.ts +74 -0
- package/dist/infrastructure/telemetry/telemetry-service.d.ts.map +1 -0
- package/dist/infrastructure/telemetry/telemetry-service.js +167 -0
- package/dist/infrastructure/telemetry/telemetry-service.js.map +1 -0
- package/dist/infrastructure/ux/capability-boundaries.d.ts +9 -37
- package/dist/infrastructure/ux/capability-boundaries.d.ts.map +1 -1
- package/dist/infrastructure/ux/capability-boundaries.js +23 -148
- package/dist/infrastructure/ux/capability-boundaries.js.map +1 -1
- package/dist/infrastructure/ux/comprehensive-formatter.d.ts +12 -54
- package/dist/infrastructure/ux/comprehensive-formatter.d.ts.map +1 -1
- package/dist/infrastructure/ux/comprehensive-formatter.js +87 -182
- package/dist/infrastructure/ux/comprehensive-formatter.js.map +1 -1
- package/dist/infrastructure/ux/contextual-feature-discovery.d.ts +5 -18
- package/dist/infrastructure/ux/contextual-feature-discovery.d.ts.map +1 -1
- package/dist/infrastructure/ux/contextual-feature-discovery.js +5 -139
- package/dist/infrastructure/ux/contextual-feature-discovery.js.map +1 -1
- package/dist/infrastructure/ux/feature-discovery.d.ts +3 -33
- package/dist/infrastructure/ux/feature-discovery.d.ts.map +1 -1
- package/dist/infrastructure/ux/feature-discovery.js +5 -181
- package/dist/infrastructure/ux/feature-discovery.js.map +1 -1
- package/dist/infrastructure/ux/feedback-prompt.d.ts +15 -31
- package/dist/infrastructure/ux/feedback-prompt.d.ts.map +1 -1
- package/dist/infrastructure/ux/feedback-prompt.js +30 -166
- package/dist/infrastructure/ux/feedback-prompt.js.map +1 -1
- package/dist/infrastructure/ux/progress-indicator.d.ts +4 -6
- package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
- package/dist/infrastructure/ux/progress-indicator.js +35 -50
- package/dist/infrastructure/ux/progress-indicator.js.map +1 -1
- package/dist/infrastructure/ux/review-checkpoint.d.ts +3 -1
- package/dist/infrastructure/ux/review-checkpoint.d.ts.map +1 -1
- package/dist/infrastructure/ux/review-checkpoint.js +33 -80
- package/dist/infrastructure/ux/review-checkpoint.js.map +1 -1
- package/dist/infrastructure/ux/staged-feature-intro.d.ts +14 -39
- package/dist/infrastructure/ux/staged-feature-intro.d.ts.map +1 -1
- package/dist/infrastructure/ux/staged-feature-intro.js +12 -132
- package/dist/infrastructure/ux/staged-feature-intro.js.map +1 -1
- package/dist/infrastructure/ux/syntax-highlighter.d.ts +1 -2
- package/dist/infrastructure/ux/syntax-highlighter.d.ts.map +1 -1
- package/dist/infrastructure/ux/syntax-highlighter.js +67 -148
- package/dist/infrastructure/ux/syntax-highlighter.js.map +1 -1
- package/dist/infrastructure/validation/agent-feedback.d.ts +25 -89
- package/dist/infrastructure/validation/agent-feedback.d.ts.map +1 -1
- package/dist/infrastructure/validation/agent-feedback.js +32 -204
- package/dist/infrastructure/validation/agent-feedback.js.map +1 -1
- package/dist/infrastructure/validation/agent-validation-helper.d.ts +53 -53
- package/dist/infrastructure/validation/agent-validation-helper.d.ts.map +1 -1
- package/dist/infrastructure/validation/agent-validation-helper.js +110 -61
- package/dist/infrastructure/validation/agent-validation-helper.js.map +1 -1
- package/dist/infrastructure/validation/review-handler.d.ts +13 -41
- package/dist/infrastructure/validation/review-handler.d.ts.map +1 -1
- package/dist/infrastructure/validation/review-handler.js +23 -189
- package/dist/infrastructure/validation/review-handler.js.map +1 -1
- package/dist/infrastructure/validation/summary-aggregator.d.ts +25 -22
- package/dist/infrastructure/validation/summary-aggregator.d.ts.map +1 -1
- package/dist/infrastructure/validation/summary-aggregator.js +47 -133
- package/dist/infrastructure/validation/summary-aggregator.js.map +1 -1
- package/dist/infrastructure/validation/summary-extractor.d.ts +13 -48
- package/dist/infrastructure/validation/summary-extractor.d.ts.map +1 -1
- package/dist/infrastructure/validation/summary-extractor.js +32 -89
- package/dist/infrastructure/validation/summary-extractor.js.map +1 -1
- package/dist/infrastructure/validation/trace-summary.d.ts +30 -57
- package/dist/infrastructure/validation/trace-summary.d.ts.map +1 -1
- package/dist/infrastructure/validation/trace-summary.js +37 -356
- package/dist/infrastructure/validation/trace-summary.js.map +1 -1
- package/dist/monitoring.d.ts +1 -1
- package/dist/monitoring.d.ts.map +1 -1
- package/dist/monitoring.js +12 -9
- package/dist/monitoring.js.map +1 -1
- package/dist/parallel-processor.d.ts.map +1 -1
- package/dist/parallel-processor.js +124 -45
- package/dist/parallel-processor.js.map +1 -1
- package/dist/presentation/cli/commands/ask-command.d.ts +2 -0
- package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/ask-command.js +316 -129
- package/dist/presentation/cli/commands/ask-command.js.map +1 -1
- package/dist/presentation/cli/commands/config-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/config-command.js +22 -8
- package/dist/presentation/cli/commands/config-command.js.map +1 -1
- package/dist/presentation/cli/commands/decision-command.js +23 -6
- package/dist/presentation/cli/commands/decision-command.js.map +1 -1
- package/dist/presentation/cli/commands/docs-command.d.ts +3 -1
- package/dist/presentation/cli/commands/docs-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/docs-command.js +13 -184
- package/dist/presentation/cli/commands/docs-command.js.map +1 -1
- package/dist/presentation/cli/commands/fix-command.d.ts +2 -0
- package/dist/presentation/cli/commands/fix-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/fix-command.js +61 -276
- 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 +21 -1
- package/dist/presentation/cli/commands/help-command.js.map +1 -1
- package/dist/presentation/cli/commands/memory-command.d.ts +17 -0
- package/dist/presentation/cli/commands/memory-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/memory-command.js +252 -0
- package/dist/presentation/cli/commands/memory-command.js.map +1 -0
- package/dist/presentation/cli/commands/models-command.d.ts +13 -0
- package/dist/presentation/cli/commands/models-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/models-command.js +194 -0
- package/dist/presentation/cli/commands/models-command.js.map +1 -0
- package/dist/presentation/cli/commands/orchestrate-command.d.ts +1 -0
- package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/orchestrate-command.js +129 -14
- package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
- package/dist/presentation/cli/commands/plan-command.d.ts +1 -0
- package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/plan-command.js +134 -25
- package/dist/presentation/cli/commands/plan-command.js.map +1 -1
- package/dist/presentation/cli/commands/product-command.d.ts +6 -4
- package/dist/presentation/cli/commands/product-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/product-command.js +12 -178
- package/dist/presentation/cli/commands/product-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 +5 -1
- package/dist/presentation/cli/commands/react-command.js.map +1 -1
- package/dist/presentation/cli/commands/review-command.d.ts +7 -7
- package/dist/presentation/cli/commands/review-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/review-command.js +167 -16
- package/dist/presentation/cli/commands/review-command.js.map +1 -1
- package/dist/presentation/cli/commands/run-command.d.ts +6 -8
- package/dist/presentation/cli/commands/run-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/run-command.js +182 -23
- package/dist/presentation/cli/commands/run-command.js.map +1 -1
- package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/setup-command.js +15 -0
- package/dist/presentation/cli/commands/setup-command.js.map +1 -1
- package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/smart-command.js +74 -6
- package/dist/presentation/cli/commands/smart-command.js.map +1 -1
- package/dist/presentation/cli/commands/status-command.d.ts +3 -0
- package/dist/presentation/cli/commands/status-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/status-command.js +151 -156
- package/dist/presentation/cli/commands/status-command.js.map +1 -1
- package/dist/presentation/cli/commands/suggest-command.d.ts +3 -5
- package/dist/presentation/cli/commands/suggest-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/suggest-command.js +132 -19
- package/dist/presentation/cli/commands/suggest-command.js.map +1 -1
- package/dist/presentation/cli/error-display.d.ts.map +1 -1
- package/dist/presentation/cli/error-display.js +75 -17
- package/dist/presentation/cli/error-display.js.map +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +6 -1
- package/dist/search.js.map +1 -1
- package/dist/session.d.ts +1 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +55 -7
- package/dist/session.js.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash.js +3 -0
- 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 +11 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +54 -1
- package/dist/ui.js.map +1 -1
- package/package.json +14 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Config Command
|
|
3
3
|
* Manage Codehere configuration and preferences
|
|
4
4
|
*/
|
|
5
|
-
import { colors, separator, newline, sectionHeader, success, error, createTable, } from '../../../ui.js';
|
|
5
|
+
import { colors, separator, newline, sectionHeader, success, error, createTable, isMinimalStyle, } from '../../../ui.js';
|
|
6
6
|
import { getConfigManager } from '../../../infrastructure/config/config-manager.js';
|
|
7
7
|
import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
|
|
8
8
|
import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
|
|
@@ -41,17 +41,31 @@ function displayConfig(config) {
|
|
|
41
41
|
* Execute config command
|
|
42
42
|
*/
|
|
43
43
|
export async function executeConfigCommand(action, key, value) {
|
|
44
|
-
// Start execution tracing
|
|
45
|
-
|
|
44
|
+
// Start execution tracing (with timeout protection)
|
|
45
|
+
let codebaseInfo;
|
|
46
|
+
try {
|
|
47
|
+
codebaseInfo = await Promise.race([
|
|
48
|
+
Promise.resolve(findCodebaseRoot(process.cwd())),
|
|
49
|
+
new Promise((_, reject) => {
|
|
50
|
+
setTimeout(() => reject(new Error('Codebase detection timed out')), 5000);
|
|
51
|
+
}),
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// If codebase detection times out, continue with undefined
|
|
56
|
+
codebaseInfo = undefined;
|
|
57
|
+
}
|
|
46
58
|
const runId = executionTracer.startRun('config', {
|
|
47
59
|
codebaseId: codebaseInfo?.rootPath || process.cwd(),
|
|
48
60
|
});
|
|
49
61
|
try {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
if (!isMinimalStyle()) {
|
|
63
|
+
newline();
|
|
64
|
+
console.log(separator('═', 80));
|
|
65
|
+
console.log(colors.bold('Codehere - Configuration Manager'));
|
|
66
|
+
console.log(separator('═', 80));
|
|
67
|
+
newline();
|
|
68
|
+
}
|
|
55
69
|
const configManager = getConfigManager();
|
|
56
70
|
const config = configManager.getAll();
|
|
57
71
|
// No action - show current config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/config-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,aAAa,EACb,OAAO,EACP,KAAK,EAGL,WAAW,
|
|
1
|
+
{"version":3,"file":"config-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/config-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,aAAa,EACb,OAAO,EACP,KAAK,EAGL,WAAW,EACX,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;A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AAC,CAAC;QAClD,OAAO,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC,CAAC;QAC5F,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC,CAAC;QACxF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC,CAAC;QACnF,OAAO,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC,CAAC;QAC9D,OAAO,EAAE,CAAC;QACV,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;YAAS,CAAC;QACT,eAAe,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { container } from '../../../application/services/dependency-container.js';
|
|
8
8
|
import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
|
|
9
|
-
import { colors, sectionHeader, success, error, info, newline, createBanner, createSpinner, } from '../../../ui.js';
|
|
9
|
+
import { colors, sectionHeader, success, error, warning, info, newline, createBanner, createSpinner, } from '../../../ui.js';
|
|
10
10
|
import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
|
|
11
11
|
export async function executeDecisionCommand(action, args, options = {}) {
|
|
12
12
|
// Start execution tracing
|
|
@@ -99,12 +99,29 @@ async function handleList(codebaseId, decisionRetriever, options) {
|
|
|
99
99
|
const spinner = createSpinner('Loading decisions...');
|
|
100
100
|
spinner.start();
|
|
101
101
|
try {
|
|
102
|
-
let decisions;
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
let decisions = [];
|
|
103
|
+
// Add timeout wrapper to prevent hanging
|
|
104
|
+
const fetchWithTimeout = async () => {
|
|
105
|
+
if (options.type) {
|
|
106
|
+
return await decisionRetriever.getByType(codebaseId, options.type, options.limit || 20);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
return await decisionRetriever.getRecent(codebaseId, options.limit || 10);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
try {
|
|
113
|
+
decisions = await Promise.race([
|
|
114
|
+
fetchWithTimeout(),
|
|
115
|
+
new Promise((_, reject) => {
|
|
116
|
+
setTimeout(() => reject(new Error('Operation timed out after 10 seconds')), 10000);
|
|
117
|
+
}),
|
|
118
|
+
]);
|
|
105
119
|
}
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
catch (timeoutError) {
|
|
121
|
+
// If timeout, return empty array instead of crashing
|
|
122
|
+
spinner.stop();
|
|
123
|
+
console.log(warning('Decision retrieval timed out. No decisions available.'));
|
|
124
|
+
return;
|
|
108
125
|
}
|
|
109
126
|
spinner.stop();
|
|
110
127
|
if (decisions.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/decision-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EACL,MAAM,EACN,aAAa,EACb,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"decision-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/decision-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EACL,MAAM,EACN,aAAa,EACb,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAE5F,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAA+C,EAC/C,IAAc,EACd,UAII,EAAE;IAEN,0BAA0B;IAC1B,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACvD,MAAM,YAAY,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAEpD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC,CAAC;QACnG,OAAO;IACT,CAAC;IAED,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,UAAU,EAAE;QACjD,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;QACrB,UAAU,EAAE,YAAY,CAAC,QAAQ;KAClC,CAAC,CAAC;IAEH,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,oBAAoB,EAAE,qCAAqC,CAAC,CAAC,CAAC;QACvF,OAAO,EAAE,CAAC;QAEV,MAAM,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,YAAY,CAAC,QAAQ,KAAK,YAAY,CAAC,IAAI,GAAG,CAAC,CAAC,C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AAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CLI Command: Docs
|
|
3
3
|
* Generate documentation (README, API docs) using DocumentationAgent
|
|
4
|
+
*
|
|
5
|
+
* Phase 1: v0.5.0-alpha.0
|
|
4
6
|
*/
|
|
5
|
-
|
|
7
|
+
export type DocumentationType = 'readme' | 'api' | 'guide' | 'changelog';
|
|
6
8
|
export declare function executeDocsCommand(type: DocumentationType, options?: {
|
|
7
9
|
target?: string;
|
|
8
10
|
updateExisting?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"docs-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,WAAW,CAAC;AAEzE,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GACA,OAAO,CAAC,IAAI,CAAC,CAef"}
|
|
@@ -1,196 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CLI Command: Docs
|
|
3
3
|
* Generate documentation (README, API docs) using DocumentationAgent
|
|
4
|
+
*
|
|
5
|
+
* Phase 1: v0.5.0-alpha.0
|
|
4
6
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { colors, sectionHeader, formatPath, success, error, warning, newline, createBanner, createSpinner, createTable, } from '../../../ui.js';
|
|
7
|
-
import { findCodebaseRoot } from '../../../domain/services/codebase-detector.js';
|
|
8
|
-
import { executionTracer } from '../../../infrastructure/observability/execution-tracer.js';
|
|
7
|
+
import { colors, warning, newline } from '../../../ui.js';
|
|
9
8
|
import { displayError } from '../error-display.js';
|
|
10
|
-
|
|
11
|
-
import { traceSummaryFormatter } from '../../../infrastructure/validation/trace-summary.js';
|
|
12
|
-
import { reviewHandler } from '../../../infrastructure/validation/review-handler.js';
|
|
13
|
-
export async function executeDocsCommand(type, options = {}) {
|
|
14
|
-
// Validate type
|
|
15
|
-
const validTypes = ['readme', 'api', 'all'];
|
|
16
|
-
if (!validTypes.includes(type)) {
|
|
17
|
-
console.error(error(`Invalid type: ${type}. Must be one of: ${validTypes.join(', ')}`));
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
20
|
-
// Detect codebase context
|
|
21
|
-
const codebaseInfo = findCodebaseRoot(process.cwd());
|
|
22
|
-
const runId = executionTracer.startRun('docs', {
|
|
23
|
-
query: `generate ${type}`,
|
|
24
|
-
codebaseId: codebaseInfo?.rootPath || process.cwd(),
|
|
25
|
-
});
|
|
26
|
-
console.log(createBanner('Documentation Generator', 'Auto-generate documentation from codebase'));
|
|
27
|
-
newline();
|
|
28
|
-
if (codebaseInfo) {
|
|
29
|
-
console.log(colors.dim(`Codebase: ${codebaseInfo.rootPath} (${codebaseInfo.type})`));
|
|
30
|
-
newline();
|
|
31
|
-
}
|
|
32
|
-
const spinner = createSpinner(`Generating ${type} documentation...`);
|
|
33
|
-
spinner.start();
|
|
9
|
+
export async function executeDocsCommand(type, options) {
|
|
34
10
|
try {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
updateExisting: options.updateExisting || false,
|
|
42
|
-
outputPath: options.outputPath,
|
|
43
|
-
},
|
|
44
|
-
context: {
|
|
45
|
-
codebaseId: codebaseInfo?.rootPath || process.cwd(),
|
|
46
|
-
sessionId: codebaseInfo?.rootPath || 'default-session',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
spinner.stop();
|
|
50
|
-
// Get current run before ending (so we can use it for summary)
|
|
51
|
-
const currentRunId = executionTracer.getCurrentRunId();
|
|
52
|
-
// End trace to finalize run context and save to disk
|
|
53
|
-
executionTracer.endRun();
|
|
54
|
-
// Get finalized run context from disk
|
|
55
|
-
// Small delay to ensure file is written (could be improved with callback)
|
|
56
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
57
|
-
const run = executionTracer.getRun(runId);
|
|
58
|
-
const startTime = run?.startTime || Date.now();
|
|
59
|
-
// Create trace summary
|
|
60
|
-
let summary = traceSummaryFormatter.createSummary(run || {
|
|
61
|
-
runId,
|
|
62
|
-
startTime,
|
|
63
|
-
endTime: Date.now(),
|
|
64
|
-
operation: 'docs',
|
|
65
|
-
query: `generate ${type}`,
|
|
66
|
-
codebaseId: codebaseInfo?.rootPath || process.cwd(),
|
|
67
|
-
traces: [],
|
|
68
|
-
}, undefined, 'documentation-agent');
|
|
69
|
-
// Update summary with actual results
|
|
70
|
-
if (result.success && result.documents.length > 0) {
|
|
71
|
-
summary.filesCreated = result.documents.map(doc => doc.path);
|
|
72
|
-
summary.metrics.filesAnalyzed = result.stats?.filesAnalyzed;
|
|
73
|
-
}
|
|
74
|
-
if (result.errors && result.errors.length > 0) {
|
|
75
|
-
summary.errors = result.errors;
|
|
76
|
-
}
|
|
77
|
-
// Get review decision - single source of truth for userAction
|
|
78
|
-
// All CLI commands use this same pattern: getReviewDecision() → use decision.userAction
|
|
79
|
-
const reviewRequested = Boolean(options.review);
|
|
80
|
-
const decision = await reviewHandler.getReviewDecision(summary, reviewRequested);
|
|
81
|
-
if (!decision.approved) {
|
|
82
|
-
console.log(warning('Operation cancelled by user.'));
|
|
83
|
-
// Record feedback for rejection
|
|
84
|
-
agentFeedbackManager.recordFeedback({
|
|
85
|
-
runId,
|
|
86
|
-
agentName: 'documentation-agent',
|
|
87
|
-
operation: `generate ${type}`,
|
|
88
|
-
query: `generate ${type}`,
|
|
89
|
-
outcome: 'cancelled',
|
|
90
|
-
userAction: decision.userAction,
|
|
91
|
-
filesCreated: result.documents.map(doc => doc.path),
|
|
92
|
-
errors: result.errors,
|
|
93
|
-
metrics: {
|
|
94
|
-
filesAnalyzed: result.stats?.filesAnalyzed,
|
|
95
|
-
duration: run ? (run.endTime - run.startTime) : 0,
|
|
96
|
-
},
|
|
97
|
-
validationChecks: summary.validationChecks.map(check => ({
|
|
98
|
-
check: check.check,
|
|
99
|
-
passed: check.passed,
|
|
100
|
-
message: check.message,
|
|
101
|
-
})),
|
|
102
|
-
});
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const finalOutcome = result.success ? 'success' : 'failure';
|
|
106
|
-
// Record feedback with userAction from review decision
|
|
107
|
-
agentFeedbackManager.recordFeedback({
|
|
108
|
-
runId,
|
|
109
|
-
agentName: 'documentation-agent',
|
|
110
|
-
operation: `generate ${type}`,
|
|
111
|
-
query: `generate ${type}`,
|
|
112
|
-
outcome: finalOutcome,
|
|
113
|
-
userAction: decision.userAction,
|
|
114
|
-
filesCreated: result.documents.map(doc => doc.path),
|
|
115
|
-
errors: result.errors,
|
|
116
|
-
metrics: {
|
|
117
|
-
filesAnalyzed: result.stats?.filesAnalyzed,
|
|
118
|
-
duration: run ? (run.endTime - run.startTime) : 0,
|
|
119
|
-
},
|
|
120
|
-
validationChecks: summary.validationChecks.map(check => ({
|
|
121
|
-
check: check.check,
|
|
122
|
-
passed: check.passed,
|
|
123
|
-
message: check.message,
|
|
124
|
-
})),
|
|
125
|
-
});
|
|
126
|
-
if (result.success) {
|
|
127
|
-
newline();
|
|
128
|
-
sectionHeader('Generated Documentation');
|
|
129
|
-
// Display generated documents
|
|
130
|
-
if (result.documents.length > 0) {
|
|
131
|
-
const rows = result.documents.map((doc) => [
|
|
132
|
-
formatPath(doc.path),
|
|
133
|
-
colors.cyan(doc.type),
|
|
134
|
-
colors.dim(doc.contentPreview.substring(0, 80) + '...'),
|
|
135
|
-
]);
|
|
136
|
-
const table = createTable(['File', 'Type', 'Preview'], rows);
|
|
137
|
-
console.log(table.toString());
|
|
138
|
-
newline();
|
|
139
|
-
}
|
|
140
|
-
// Display stats
|
|
141
|
-
if (result.stats) {
|
|
142
|
-
sectionHeader('Statistics');
|
|
143
|
-
console.log(` Files Analyzed: ${colors.cyan(String(result.stats.filesAnalyzed))}`);
|
|
144
|
-
if (result.stats.symbolsDocumented > 0) {
|
|
145
|
-
console.log(` Symbols Documented: ${colors.cyan(String(result.stats.symbolsDocumented))}`);
|
|
146
|
-
}
|
|
147
|
-
console.log(` Lines Generated: ${colors.cyan(String(result.stats.linesGenerated))}`);
|
|
148
|
-
newline();
|
|
149
|
-
}
|
|
150
|
-
// Display trace summary if requested or if review was needed
|
|
151
|
-
if (options.review || summary.reviewNeeded.required) {
|
|
152
|
-
newline();
|
|
153
|
-
console.log(traceSummaryFormatter.formatSummary(summary));
|
|
154
|
-
newline();
|
|
155
|
-
}
|
|
156
|
-
console.log(success(`Documentation generated successfully!`));
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
spinner.stop();
|
|
160
|
-
newline();
|
|
161
|
-
console.log(error('Failed to generate documentation'));
|
|
162
|
-
if (result.errors && result.errors.length > 0) {
|
|
163
|
-
sectionHeader('Errors');
|
|
164
|
-
result.errors.forEach((err) => {
|
|
165
|
-
console.log(` ${colors.red('✗')} ${err}`);
|
|
166
|
-
});
|
|
167
|
-
newline();
|
|
168
|
-
}
|
|
169
|
-
if (result.documents.length > 0) {
|
|
170
|
-
console.log(warning('Some documents were generated despite errors:'));
|
|
171
|
-
result.documents.forEach((doc) => {
|
|
172
|
-
console.log(` ${colors.yellow('○')} ${formatPath(doc.path)}`);
|
|
173
|
-
});
|
|
174
|
-
newline();
|
|
175
|
-
}
|
|
176
|
-
displayError(new Error('Documentation generation completed with errors'), {
|
|
177
|
-
operation: 'docs',
|
|
178
|
-
query: `generate ${type}`,
|
|
179
|
-
showSuggestions: true,
|
|
180
|
-
});
|
|
11
|
+
// In alpha, this is a stub
|
|
12
|
+
// Can be enhanced later with DocumentationAgent
|
|
13
|
+
console.log(warning('Documentation generation is not yet fully implemented in v0.5.0-alpha.0'));
|
|
14
|
+
console.log(colors.dim(`Requested type: ${type}`));
|
|
15
|
+
if (options?.target) {
|
|
16
|
+
console.log(colors.dim(`Target: ${options.target}`));
|
|
181
17
|
}
|
|
182
18
|
}
|
|
183
19
|
catch (err) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
operation: 'docs',
|
|
187
|
-
query: `generate ${type}`,
|
|
188
|
-
showSuggestions: true,
|
|
189
|
-
});
|
|
190
|
-
throw err;
|
|
191
|
-
}
|
|
192
|
-
finally {
|
|
193
|
-
// Run already ended after execution, no need to end again
|
|
20
|
+
displayError(err);
|
|
21
|
+
process.exit(1);
|
|
194
22
|
}
|
|
23
|
+
newline();
|
|
195
24
|
}
|
|
196
25
|
//# sourceMappingURL=docs-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"docs-command.js","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/docs-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAkB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,IAAuB,EACvB,OAKC;IAED,IAAI,CAAC;QACH,2BAA2B;QAC3B,gDAAgD;QAChD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,yEAAyE,CAAC,CAAC,CAAC;QAChG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,CAAC;QACnD,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,YAAY,CAAC,GAAG,CAAC,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/fix-command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fix-command.d.ts","sourceRoot":"","sources":["../../../../src/presentation/cli/commands/fix-command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GACA,OAAO,CAAC,IAAI,CAAC,CA2Ff"}
|