codehere 0.4.0 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/application/agents/execution-agent.js +2 -2
- package/dist/application/agents/execution-agent.js.map +1 -1
- package/dist/application/agents/planning-agent.d.ts.map +1 -1
- package/dist/application/agents/planning-agent.js +16 -8
- 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/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 +75 -43
- package/dist/application/services/dependency-container.js.map +1 -1
- package/dist/application/services/intelligent-router.d.ts.map +1 -1
- package/dist/application/services/intelligent-router.js +6 -3
- package/dist/application/services/intelligent-router.js.map +1 -1
- package/dist/domain/entities/task.d.ts.map +1 -1
- package/dist/domain/entities/task.js +1 -1
- 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/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 +308 -48
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/cohere-ai-service.js +3 -3
- 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 +6 -6
- 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.js +2 -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 +94 -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/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 +399 -0
- package/dist/infrastructure/providers/openrouter-provider.js.map +1 -0
- 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 +11 -0
- package/dist/infrastructure/storage/task-helpers.d.ts.map +1 -1
- package/dist/infrastructure/storage/task-helpers.js +47 -7
- package/dist/infrastructure/storage/task-helpers.js.map +1 -1
- package/dist/infrastructure/storage/task-repository.d.ts.map +1 -1
- package/dist/infrastructure/storage/task-repository.js.map +1 -1
- 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 +3 -5
- package/dist/infrastructure/ux/progress-indicator.d.ts.map +1 -1
- package/dist/infrastructure/ux/progress-indicator.js +34 -49
- 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.map +1 -1
- package/dist/presentation/cli/commands/ask-command.js +185 -128
- 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 +8 -6
- package/dist/presentation/cli/commands/config-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 +25 -281
- package/dist/presentation/cli/commands/fix-command.js.map +1 -1
- 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.map +1 -1
- package/dist/presentation/cli/commands/orchestrate-command.js +15 -7
- package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -1
- package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -1
- package/dist/presentation/cli/commands/plan-command.js +9 -6
- 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/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 +148 -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.js +1 -1
- 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 +147 -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/search.d.ts.map +1 -1
- package/dist/search.js +6 -1
- package/dist/search.js.map +1 -1
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/ui.d.ts +6 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +35 -1
- package/dist/ui.js.map +1 -1
- package/package.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-helpers.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAY,UAAU,
|
|
1
|
+
{"version":3,"file":"task-helpers.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAY,UAAU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EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GACA,OAAO,CAAC,IAAI,CAAC,CAkBf;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,YAAY,EAAE,YAAY,EAC1B,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* See: docs/ARCHITECTURE/TASK_MODEL.md
|
|
7
7
|
*/
|
|
8
8
|
import { getTaskRepository } from './task-repository.js';
|
|
9
|
-
import { TaskMode, TaskStatus, ReviewStatus } from '../../domain/entities/task.js';
|
|
9
|
+
import { TaskMode, TaskStatus, RiskTier, ReviewStatus } from '../../domain/entities/task.js';
|
|
10
10
|
import { getCurrentEnvironmentMode } from '../../domain/services/environment-mode-manager.js';
|
|
11
11
|
import { detectRiskTier, detectRiskTierFromPlan } from '../../domain/services/risk-tier-detector.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
@@ -44,6 +44,40 @@ export async function createPlanTask(options) {
|
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Create task for suggest command
|
|
49
|
+
* Non-breaking: silent failure, doesn't affect user workflow
|
|
50
|
+
* Suggest tasks are ephemeral (T1, always low risk)
|
|
51
|
+
*/
|
|
52
|
+
export async function createSuggestTask(options) {
|
|
53
|
+
const { query, filePath, codebaseInfo, runId } = options;
|
|
54
|
+
try {
|
|
55
|
+
const taskRepo = getTaskRepository();
|
|
56
|
+
const environment = getCurrentEnvironmentMode();
|
|
57
|
+
// Suggest mode is always T1 (low risk, read-only)
|
|
58
|
+
const taskId = `task-${randomUUID()}`;
|
|
59
|
+
const fullQuery = filePath ? `${query} (file: ${filePath})` : query;
|
|
60
|
+
await taskRepo.create({
|
|
61
|
+
id: taskId,
|
|
62
|
+
createdAt: Date.now(),
|
|
63
|
+
updatedAt: Date.now(),
|
|
64
|
+
codebaseId: codebaseInfo?.codebaseId || codebaseInfo?.rootPath || process.cwd(),
|
|
65
|
+
cwd: process.cwd(),
|
|
66
|
+
mode: TaskMode.SUGGEST,
|
|
67
|
+
goal: fullQuery,
|
|
68
|
+
command: 'suggest',
|
|
69
|
+
status: TaskStatus.CREATED,
|
|
70
|
+
riskTier: RiskTier.T1, // Always low risk for read-only operations
|
|
71
|
+
environment,
|
|
72
|
+
traceSummaryId: runId,
|
|
73
|
+
});
|
|
74
|
+
return taskId;
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
// Silent failure - task creation is optional
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
47
81
|
/**
|
|
48
82
|
* Create task for fix/run command
|
|
49
83
|
* Non-breaking: silent failure, doesn't affect user workflow
|
|
@@ -83,13 +117,15 @@ export async function createRunTask(options) {
|
|
|
83
117
|
* Non-breaking: silent failure
|
|
84
118
|
*/
|
|
85
119
|
export async function updateTaskStatus(taskId, status, updates) {
|
|
86
|
-
if (!taskId)
|
|
120
|
+
if (!taskId) {
|
|
87
121
|
return;
|
|
122
|
+
}
|
|
88
123
|
try {
|
|
89
124
|
const taskRepo = getTaskRepository();
|
|
90
125
|
const existing = await taskRepo.getById(taskId);
|
|
91
|
-
if (!existing)
|
|
126
|
+
if (!existing) {
|
|
92
127
|
return;
|
|
128
|
+
}
|
|
93
129
|
await taskRepo.update({
|
|
94
130
|
...existing,
|
|
95
131
|
...updates,
|
|
@@ -106,13 +142,15 @@ export async function updateTaskStatus(taskId, status, updates) {
|
|
|
106
142
|
* Non-breaking: silent failure
|
|
107
143
|
*/
|
|
108
144
|
export async function updateTaskWithResults(taskId, results) {
|
|
109
|
-
if (!taskId)
|
|
145
|
+
if (!taskId) {
|
|
110
146
|
return;
|
|
147
|
+
}
|
|
111
148
|
try {
|
|
112
149
|
const taskRepo = getTaskRepository();
|
|
113
150
|
const existing = await taskRepo.getById(taskId);
|
|
114
|
-
if (!existing)
|
|
151
|
+
if (!existing) {
|
|
115
152
|
return;
|
|
153
|
+
}
|
|
116
154
|
await taskRepo.update({
|
|
117
155
|
...existing,
|
|
118
156
|
...results,
|
|
@@ -128,13 +166,15 @@ export async function updateTaskWithResults(taskId, results) {
|
|
|
128
166
|
* Non-breaking: silent failure
|
|
129
167
|
*/
|
|
130
168
|
export async function updateTaskReview(taskId, reviewStatus, reviewedBy, comments) {
|
|
131
|
-
if (!taskId)
|
|
169
|
+
if (!taskId) {
|
|
132
170
|
return;
|
|
171
|
+
}
|
|
133
172
|
try {
|
|
134
173
|
const taskRepo = getTaskRepository();
|
|
135
174
|
const existing = await taskRepo.getById(taskId);
|
|
136
|
-
if (!existing)
|
|
175
|
+
if (!existing) {
|
|
137
176
|
return;
|
|
177
|
+
}
|
|
138
178
|
const newStatus = reviewStatus === ReviewStatus.APPROVED
|
|
139
179
|
? TaskStatus.APPROVED
|
|
140
180
|
: reviewStatus === ReviewStatus.REJECTED
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-helpers.js","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"task-helpers.js","sourceRoot":"","sources":["../../../src/infrast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,GAAG,iBAAiB,EAAE,CAAC;QACrC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO;QACT,CAAC;QACD,MAAM,SAAS,GACb,YAAY,KAAK,YAAY,CAAC,QAAQ;YACpC,CAAC,CAAC,UAAU,CAAC,QAAQ;YACrB,CAAC,CAAC,YAAY,KAAK,YAAY,CAAC,QAAQ;gBACxC,CAAC,CAAC,UAAU,CAAC,QAAQ;gBACrB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACtB,MAAM,QAAQ,CAAC,MAAM,CAAC;YACpB,GAAG,QAAQ;YACX,YAAY;YACZ,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;YACtB,UAAU;YACV,cAAc,EAAE,QAAQ;YACxB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,iBAAiB;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-repository.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"task-repository.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAGrE,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IA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,cAAc,CAKrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-repository.js","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"task-repository.js","sourceRoot":"","sources":["../../../src/infrastructure/storage/task-repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAY9E;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IACtB,SAAS,CAAS;IAClB,UAAU,GAA8B,IAAI,GAAG,EAAE,CAAC;IAClD,WAAW,GAAY,KAAK,CAAC;IAErC,YAAY,UAAmB;QAC7B,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,wDAAwD;YACxD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;YAChD,IAAI,OAAO,EAAE,CAAC;gBACZ,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACN,qDAAqD;gBACrD,MAAM,YAAY,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;gBACrD,MAAM,YAAY,GAAG,YAAY,EAAE,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;gBAC7D,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;gBACpD,oCAAoC;gBACpC,IAAI,CAAC,UAAU,CAAC,WAAW,CA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B;YAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC7C,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;YACzC,CAAC;YACD,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;YAChE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAED,mEAAmE;AACnE,IAAI,sBAAsB,GAA0B,IAAI,CAAC;AAEzD;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAmB;IACnD,IAAI,CAAC,sBAAsB,IAAI,UAAU,EAAE,CAAC;QAC1C,sBAAsB,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
|
@@ -1,50 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Capability Boundaries
|
|
3
|
+
* Detects unsupported operations and displays boundaries
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* - Detects unsupported operation requests
|
|
7
|
-
* - Shows clear capability boundaries
|
|
8
|
-
* - Suggests alternatives when capabilities exceeded
|
|
5
|
+
* Phase 1: v0.5.0-alpha.0
|
|
9
6
|
*/
|
|
10
7
|
export interface CapabilityBoundary {
|
|
11
|
-
|
|
8
|
+
operation: string;
|
|
12
9
|
reason: string;
|
|
13
|
-
|
|
14
|
-
canSuggest?: boolean;
|
|
10
|
+
alternative?: string;
|
|
15
11
|
}
|
|
16
|
-
export
|
|
17
|
-
detectUnsupported(query: string): CapabilityBoundary | null;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Display capability boundary message when unsupported operation detected
|
|
21
|
-
*/
|
|
22
|
-
export declare function displayCapabilityBoundary(boundary: CapabilityBoundary): void;
|
|
23
|
-
/**
|
|
24
|
-
* Detect unsupported operations in user queries
|
|
25
|
-
*/
|
|
26
|
-
export declare class CapabilityBoundaryDetector implements UnsupportedOperationDetector {
|
|
27
|
-
private unsupportedPatterns;
|
|
28
|
-
constructor();
|
|
12
|
+
export declare class CapabilityBoundaryDetector {
|
|
29
13
|
/**
|
|
30
|
-
* Detect
|
|
14
|
+
* Detect unsupported operations
|
|
31
15
|
*/
|
|
32
16
|
detectUnsupported(query: string): CapabilityBoundary | null;
|
|
33
|
-
/**
|
|
34
|
-
* Extract operation from query
|
|
35
|
-
*/
|
|
36
|
-
private extractOperation;
|
|
37
|
-
/**
|
|
38
|
-
* Initialize unsupported operation patterns
|
|
39
|
-
*/
|
|
40
|
-
private initializePatterns;
|
|
41
|
-
/**
|
|
42
|
-
* Register custom unsupported pattern
|
|
43
|
-
*/
|
|
44
|
-
registerPattern(pattern: RegExp, reason: string, alternatives: string[]): void;
|
|
45
17
|
}
|
|
46
18
|
/**
|
|
47
|
-
*
|
|
19
|
+
* Display capability boundary message
|
|
48
20
|
*/
|
|
49
|
-
export declare function
|
|
21
|
+
export declare function displayCapabilityBoundary(boundary: CapabilityBoundary): void;
|
|
50
22
|
//# sourceMappingURL=capability-boundaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-boundaries.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"capability-boundaries.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,0BAA0B;IACrC;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;CAoB5D;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAQ5E"}
|
|
@@ -1,167 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Capability Boundaries
|
|
3
|
+
* Detects unsupported operations and displays boundaries
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* - Detects unsupported operation requests
|
|
7
|
-
* - Shows clear capability boundaries
|
|
8
|
-
* - Suggests alternatives when capabilities exceeded
|
|
9
|
-
*/
|
|
10
|
-
import { colors, separator, warning, info, createBox, } from '../../ui.js';
|
|
11
|
-
/**
|
|
12
|
-
* Display capability boundary message when unsupported operation detected
|
|
13
|
-
*/
|
|
14
|
-
export function displayCapabilityBoundary(boundary) {
|
|
15
|
-
console.log('');
|
|
16
|
-
console.log(separator('═', 80));
|
|
17
|
-
console.log(warning('⚠️ Capability Boundary'));
|
|
18
|
-
console.log(separator('═', 80));
|
|
19
|
-
console.log('');
|
|
20
|
-
console.log(colors.bold('Unsupported Operation:'));
|
|
21
|
-
console.log(` ${boundary.unsupportedOperation}`);
|
|
22
|
-
console.log('');
|
|
23
|
-
console.log(colors.bold('Reason:'));
|
|
24
|
-
console.log(` ${colors.dim(boundary.reason)}`);
|
|
25
|
-
console.log('');
|
|
26
|
-
if (boundary.alternatives && boundary.alternatives.length > 0) {
|
|
27
|
-
console.log(colors.bold('Alternatives:'));
|
|
28
|
-
boundary.alternatives.forEach((alt, idx) => {
|
|
29
|
-
console.log(` ${idx + 1}. ${info(alt)}`);
|
|
30
|
-
});
|
|
31
|
-
console.log('');
|
|
32
|
-
}
|
|
33
|
-
console.log(separator('═', 80));
|
|
34
|
-
console.log('');
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Detect unsupported operations in user queries
|
|
5
|
+
* Phase 1: v0.5.0-alpha.0
|
|
38
6
|
*/
|
|
7
|
+
import { colors, warning } from '../../ui.js';
|
|
39
8
|
export class CapabilityBoundaryDetector {
|
|
40
|
-
unsupportedPatterns = [];
|
|
41
|
-
constructor() {
|
|
42
|
-
this.initializePatterns();
|
|
43
|
-
}
|
|
44
9
|
/**
|
|
45
|
-
* Detect
|
|
10
|
+
* Detect unsupported operations
|
|
46
11
|
*/
|
|
47
12
|
detectUnsupported(query) {
|
|
48
|
-
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
// In alpha, minimal detection
|
|
14
|
+
// Can be enhanced later with more sophisticated detection
|
|
15
|
+
const unsupportedPatterns = [
|
|
16
|
+
{ pattern: /\b(deploy|publish|release|ship)\b/i, reason: 'Deployment operations are not supported' },
|
|
17
|
+
{ pattern: /\b(delete|remove|destroy|wipe)\s+(all|everything|database|data)\b/i, reason: 'Bulk deletion operations are not supported' },
|
|
18
|
+
];
|
|
19
|
+
for (const { pattern, reason } of unsupportedPatterns) {
|
|
20
|
+
if (pattern.test(query)) {
|
|
52
21
|
return {
|
|
53
|
-
|
|
22
|
+
operation: query,
|
|
54
23
|
reason,
|
|
55
|
-
alternatives,
|
|
56
|
-
canSuggest: true,
|
|
57
24
|
};
|
|
58
25
|
}
|
|
59
26
|
}
|
|
60
27
|
return null;
|
|
61
28
|
}
|
|
62
|
-
/**
|
|
63
|
-
* Extract operation from query
|
|
64
|
-
*/
|
|
65
|
-
extractOperation(query, pattern) {
|
|
66
|
-
const match = query.match(pattern);
|
|
67
|
-
if (match) {
|
|
68
|
-
return match[0];
|
|
69
|
-
}
|
|
70
|
-
return query.substring(0, 50) + (query.length > 50 ? '...' : '');
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Initialize unsupported operation patterns
|
|
74
|
-
*/
|
|
75
|
-
initializePatterns() {
|
|
76
|
-
// Code execution (direct execution requests)
|
|
77
|
-
this.unsupportedPatterns.push({
|
|
78
|
-
pattern: /\b(execute|run|test|execute code|run code|run tests|execute tests|run program)\b/i,
|
|
79
|
-
reason: 'I cannot execute code or run tests directly for security reasons.',
|
|
80
|
-
alternatives: [
|
|
81
|
-
'Generate test code: codehere "create tests for src/auth.ts"',
|
|
82
|
-
'Suggest test commands: codehere ask "how to test authentication"',
|
|
83
|
-
'Review code manually and run tests yourself',
|
|
84
|
-
],
|
|
85
|
-
});
|
|
86
|
-
// Database operations
|
|
87
|
-
this.unsupportedPatterns.push({
|
|
88
|
-
pattern: /\b(connect to database|query database|run sql|execute sql|database connection)\b/i,
|
|
89
|
-
reason: 'I cannot connect to or query databases directly for security reasons.',
|
|
90
|
-
alternatives: [
|
|
91
|
-
'Show database connection code: codehere "show database connection example"',
|
|
92
|
-
'Generate database query code: codehere "create SQL query for users table"',
|
|
93
|
-
'Review database schema: codehere "explain database schema"',
|
|
94
|
-
],
|
|
95
|
-
});
|
|
96
|
-
// Network operations
|
|
97
|
-
this.unsupportedPatterns.push({
|
|
98
|
-
pattern: /\b(make http request|send request|fetch from url|call api endpoint)\b/i,
|
|
99
|
-
reason: 'I cannot make HTTP requests or call external APIs directly.',
|
|
100
|
-
alternatives: [
|
|
101
|
-
'Generate HTTP request code: codehere "create HTTP request function"',
|
|
102
|
-
'Show API integration example: codehere "show API integration pattern"',
|
|
103
|
-
'Review existing API calls: codehere "explain API calls in codebase"',
|
|
104
|
-
],
|
|
105
|
-
});
|
|
106
|
-
// File system operations (destructive)
|
|
107
|
-
this.unsupportedPatterns.push({
|
|
108
|
-
pattern: /\b(delete file|remove file|rm -rf|format disk|wipe data)\b/i,
|
|
109
|
-
reason: 'I cannot perform destructive file system operations directly.',
|
|
110
|
-
alternatives: [
|
|
111
|
-
'Suggest deletion commands: codehere ask "how to safely delete files"',
|
|
112
|
-
'Review files before deletion: codehere "list files to delete"',
|
|
113
|
-
'Generate safe deletion script: codehere "create file deletion script"',
|
|
114
|
-
],
|
|
115
|
-
});
|
|
116
|
-
// System commands
|
|
117
|
-
this.unsupportedPatterns.push({
|
|
118
|
-
pattern: /\b(shutdown|restart|kill process|stop service|install package system-wide)\b/i,
|
|
119
|
-
reason: 'I cannot execute system-level commands for security reasons.',
|
|
120
|
-
alternatives: [
|
|
121
|
-
'Suggest commands: codehere ask "how to restart service"',
|
|
122
|
-
'Generate command scripts: codehere "create service restart script"',
|
|
123
|
-
'Review system configuration: codehere "explain system configuration"',
|
|
124
|
-
],
|
|
125
|
-
});
|
|
126
|
-
// Real-time operations
|
|
127
|
-
this.unsupportedPatterns.push({
|
|
128
|
-
pattern: /\b(watch|monitor|stream|real-time|live)\b.*\b(execute|run|perform)\b/i,
|
|
129
|
-
reason: 'I cannot perform real-time monitoring or streaming operations.',
|
|
130
|
-
alternatives: [
|
|
131
|
-
'Generate monitoring code: codehere "create monitoring script"',
|
|
132
|
-
'Show monitoring patterns: codehere "explain monitoring setup"',
|
|
133
|
-
'Suggest monitoring tools: codehere ask "what monitoring tools to use"',
|
|
134
|
-
],
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Register custom unsupported pattern
|
|
139
|
-
*/
|
|
140
|
-
registerPattern(pattern, reason, alternatives) {
|
|
141
|
-
this.unsupportedPatterns.push({ pattern, reason, alternatives });
|
|
142
|
-
}
|
|
143
29
|
}
|
|
144
30
|
/**
|
|
145
|
-
*
|
|
31
|
+
* Display capability boundary message
|
|
146
32
|
*/
|
|
147
|
-
export function
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
'',
|
|
156
|
-
'What I CANNOT do:',
|
|
157
|
-
' ✗ Execute code or run tests directly',
|
|
158
|
-
' ✗ Connect to databases or APIs',
|
|
159
|
-
' ✗ Perform system-level operations',
|
|
160
|
-
' ✗ Guarantee code correctness',
|
|
161
|
-
' ✗ Replace thorough testing',
|
|
162
|
-
'',
|
|
163
|
-
'Always review generated code and test before deploying.',
|
|
164
|
-
].join('\n');
|
|
165
|
-
return createBox(content, { borderColor: colors.yellow });
|
|
33
|
+
export function displayCapabilityBoundary(boundary) {
|
|
34
|
+
console.log(warning('\n⚠️ Capability Boundary'));
|
|
35
|
+
console.log(warning(`Operation: ${boundary.operation}`));
|
|
36
|
+
console.log(warning(`Reason: ${boundary.reason}`));
|
|
37
|
+
if (boundary.alternative) {
|
|
38
|
+
console.log(colors.dim(`Alternative: ${boundary.alternative}`));
|
|
39
|
+
}
|
|
40
|
+
console.log('');
|
|
166
41
|
}
|
|
167
42
|
//# sourceMappingURL=capability-boundaries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-boundaries.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"capability-boundaries.js","sourceRoot":"","sources":["../../../src/infrastructure/ux/capability-boundaries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ9C,MAAM,OAAO,0BAA0B;IACrC;;OAEG;IACH,iBAAiB,CAAC,KAAa;QAC7B,8BAA8B;QAC9B,0DAA0D;QAE1D,MAAM,mBAAmB,GAAG;YAC1B,EAAE,OAAO,EAAE,oCAAoC,EAAE,MAAM,EAAE,yCAAyC,EAAE;YACpG,EAAE,OAAO,EAAE,oEAAoE,EAAE,MAAM,EAAE,4CAA4C,EAAE;SACxI,CAAC;QAEF,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,mBAAmB,EAAE,CAAC;YACtD,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxB,OAAO;oBACL,SAAS,EAAE,KAAK;oBAChB,MAAM;iBACP,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAA4B;IACpE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnD,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -1,63 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Comprehensive Formatter
|
|
3
|
-
*
|
|
2
|
+
* Comprehensive Formatter
|
|
3
|
+
* Format content for CLI display with proper indentation and wrapping
|
|
4
|
+
*
|
|
5
|
+
* Phase 1: v0.5.0-alpha.0
|
|
4
6
|
*/
|
|
5
|
-
|
|
6
|
-
* Format any text content with proper indentation, wrapping, and visual hierarchy
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatContent(content: string, options?: {
|
|
7
|
+
interface FormatOptions {
|
|
9
8
|
indent?: number;
|
|
10
9
|
maxWidth?: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}): string;
|
|
14
|
-
/**
|
|
15
|
-
* Format section headers with consistent styling and color coding
|
|
16
|
-
* DELIGHTFUL UX: Enhanced color coding for better visual hierarchy
|
|
17
|
-
*/
|
|
18
|
-
export declare function formatSectionHeader(title: string, level?: 1 | 2 | 3): string;
|
|
19
|
-
/**
|
|
20
|
-
* Format numbered lists with proper indentation
|
|
21
|
-
*/
|
|
22
|
-
export declare function formatNumberedList(items: string[], indent?: number): string;
|
|
23
|
-
/**
|
|
24
|
-
* Format bullet lists with proper indentation
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* Format bullet list with enhanced color coding and spacing
|
|
28
|
-
* DELIGHTFUL UX: Consistent bullet styling with proper spacing and color
|
|
29
|
-
*/
|
|
30
|
-
export declare function formatBulletList(items: string[], indent?: number): string;
|
|
31
|
-
/**
|
|
32
|
-
* Format reflection/learning content with proper structure
|
|
33
|
-
*/
|
|
34
|
-
export declare function formatReflection(reflection: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* Format code blocks with proper borders and syntax highlighting
|
|
37
|
-
*/
|
|
38
|
-
export declare function formatCodeBlock(code: string, language?: string, filepath?: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* Format table data with consistent styling
|
|
41
|
-
*/
|
|
42
|
-
export declare function formatTableData(rows: string[][]): string;
|
|
43
|
-
/**
|
|
44
|
-
* Format metadata/summary information
|
|
45
|
-
*/
|
|
46
|
-
export declare function formatMetadata(metadata: Record<string, string | number>): string;
|
|
47
|
-
/**
|
|
48
|
-
* Format error messages with proper structure
|
|
49
|
-
*/
|
|
50
|
-
export declare function formatErrorMessage(error: string, suggestions?: string[]): string;
|
|
51
|
-
/**
|
|
52
|
-
* Format success messages
|
|
53
|
-
*/
|
|
54
|
-
export declare function formatSuccessMessage(message: string): string;
|
|
10
|
+
preserveMarkdown?: boolean;
|
|
11
|
+
}
|
|
55
12
|
/**
|
|
56
|
-
* Format
|
|
13
|
+
* Format content for CLI display
|
|
57
14
|
*/
|
|
58
|
-
export declare function
|
|
15
|
+
export declare function formatContent(content: string, options?: FormatOptions): string;
|
|
59
16
|
/**
|
|
60
|
-
* Format
|
|
17
|
+
* Format reflection/analysis output
|
|
61
18
|
*/
|
|
62
|
-
export declare function
|
|
19
|
+
export declare function formatReflection(reflection: any, options?: FormatOptions): string;
|
|
20
|
+
export {};
|
|
63
21
|
//# sourceMappingURL=comprehensive-formatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comprehensive-formatter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"comprehensive-formatter.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/ux/comprehensive-formatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CAsDlF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,OAAO,GAAE,aAAkB,GAAG,MAAM,CAiCrF"}
|