@cleocode/contracts 2026.4.99 → 2026.4.101
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/dist/brain-graph.d.ts +245 -0
- package/dist/brain-graph.d.ts.map +1 -0
- package/dist/brain-graph.js +30 -0
- package/dist/brain-graph.js.map +1 -0
- package/dist/exit-codes.d.ts +1 -1
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +1 -1
- package/dist/exit-codes.js.map +1 -1
- package/dist/graph.d.ts +2 -0
- package/dist/graph.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/nexus-contract-ops.d.ts +186 -0
- package/dist/nexus-contract-ops.d.ts.map +1 -0
- package/dist/nexus-contract-ops.js +11 -0
- package/dist/nexus-contract-ops.js.map +1 -0
- package/dist/nexus-living-brain-ops.d.ts +314 -0
- package/dist/nexus-living-brain-ops.d.ts.map +1 -0
- package/dist/nexus-living-brain-ops.js +15 -0
- package/dist/nexus-living-brain-ops.js.map +1 -0
- package/dist/nexus-query-ops.d.ts +82 -0
- package/dist/nexus-query-ops.d.ts.map +1 -0
- package/dist/nexus-query-ops.js +11 -0
- package/dist/nexus-query-ops.js.map +1 -0
- package/dist/nexus-route-ops.d.ts +103 -0
- package/dist/nexus-route-ops.d.ts.map +1 -0
- package/dist/nexus-route-ops.js +10 -0
- package/dist/nexus-route-ops.js.map +1 -0
- package/dist/nexus-tasks-bridge-ops.d.ts +68 -0
- package/dist/nexus-tasks-bridge-ops.d.ts.map +1 -0
- package/dist/nexus-tasks-bridge-ops.js +11 -0
- package/dist/nexus-tasks-bridge-ops.js.map +1 -0
- package/dist/nexus-wiki-ops.d.ts +51 -0
- package/dist/nexus-wiki-ops.d.ts.map +1 -0
- package/dist/nexus-wiki-ops.js +11 -0
- package/dist/nexus-wiki-ops.js.map +1 -0
- package/dist/operations/admin.d.ts +1781 -0
- package/dist/operations/admin.d.ts.map +1 -0
- package/dist/operations/admin.js +27 -0
- package/dist/operations/admin.js.map +1 -0
- package/dist/operations/brain.d.ts +34 -26
- package/dist/operations/brain.d.ts.map +1 -1
- package/dist/operations/brain.js +7 -6
- package/dist/operations/brain.js.map +1 -1
- package/dist/operations/docs.d.ts +279 -0
- package/dist/operations/docs.d.ts.map +1 -0
- package/dist/operations/docs.js +31 -0
- package/dist/operations/docs.js.map +1 -0
- package/dist/operations/intelligence.d.ts +319 -0
- package/dist/operations/intelligence.d.ts.map +1 -0
- package/dist/operations/intelligence.js +24 -0
- package/dist/operations/intelligence.js.map +1 -0
- package/dist/operations/orchestrate.d.ts +113 -2
- package/dist/operations/orchestrate.d.ts.map +1 -1
- package/dist/operations/orchestrate.js +3 -2
- package/dist/operations/orchestrate.js.map +1 -1
- package/dist/operations/session.d.ts +185 -47
- package/dist/operations/session.d.ts.map +1 -1
- package/dist/operations/session.js +7 -6
- package/dist/operations/session.js.map +1 -1
- package/dist/operations/sticky.d.ts +264 -0
- package/dist/operations/sticky.d.ts.map +1 -0
- package/dist/operations/sticky.js +19 -0
- package/dist/operations/sticky.js.map +1 -0
- package/dist/operations/validate.d.ts +145 -19
- package/dist/operations/validate.d.ts.map +1 -1
- package/dist/operations/validate.js +3 -3
- package/dist/task-record.d.ts +19 -0
- package/dist/task-record.d.ts.map +1 -1
- package/package.json +41 -1
- package/src/brain-graph.ts +282 -0
- package/src/exit-codes.ts +1 -1
- package/src/graph.ts +2 -0
- package/src/index.ts +109 -0
- package/src/nexus-contract-ops.ts +244 -0
- package/src/nexus-living-brain-ops.ts +345 -0
- package/src/nexus-query-ops.ts +100 -0
- package/src/nexus-route-ops.ts +134 -0
- package/src/nexus-tasks-bridge-ops.ts +71 -0
- package/src/nexus-wiki-ops.ts +53 -0
- package/src/operations/admin.ts +2087 -0
- package/src/operations/brain.ts +34 -26
- package/src/operations/docs.ts +322 -0
- package/src/operations/intelligence.ts +399 -0
- package/src/operations/orchestrate.ts +117 -2
- package/src/operations/session.ts +217 -48
- package/src/operations/sticky.ts +308 -0
- package/src/operations/validate.ts +161 -55
- package/src/task-record.ts +19 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs Domain Operations Contract (5 operations)
|
|
3
|
+
*
|
|
4
|
+
* Query operations: 3
|
|
5
|
+
* Mutate operations: 2
|
|
6
|
+
*
|
|
7
|
+
* Docs domain handles attachment management and document generation via `cleo docs`:
|
|
8
|
+
* - add — attach a local file or URL to a CLEO owner entity (task, session, observation)
|
|
9
|
+
* - list — list attachments for an owner entity
|
|
10
|
+
* - generate — generate llms.txt summary for a task/epic, optionally attach as blob
|
|
11
|
+
* - fetch — retrieve attachment bytes and metadata by ID or SHA-256
|
|
12
|
+
* - remove — remove an attachment ref; purges blob when refCount hits zero
|
|
13
|
+
*
|
|
14
|
+
* Owner type is auto-detected from the owner ID prefix:
|
|
15
|
+
* T### → 'task'
|
|
16
|
+
* ses_* → 'session'
|
|
17
|
+
* O-* → 'observation'
|
|
18
|
+
* D-* (dec_*) → 'decision'
|
|
19
|
+
* L-* (lrn_*) → 'learning'
|
|
20
|
+
* P-* (pat_*) → 'pattern'
|
|
21
|
+
* (default) → 'task'
|
|
22
|
+
*
|
|
23
|
+
* SYNC: Canonical implementations at packages/core/src/store/attachment*.
|
|
24
|
+
* Wire-format types live here; they are the API contract for CLI + HTTP dispatch.
|
|
25
|
+
*
|
|
26
|
+
* @task T980 — Orchestration Coherence v4 (contract surface completion)
|
|
27
|
+
* @see packages/cleo/src/dispatch/domains/docs.ts
|
|
28
|
+
* @see packages/contracts/src/operations/index.ts
|
|
29
|
+
*/
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/operations/docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG"}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intelligence Domain Operations (5 operations)
|
|
3
|
+
*
|
|
4
|
+
* Query operations: 5
|
|
5
|
+
* Mutate operations: 0 (intelligence is read-only; writes happen via hooks)
|
|
6
|
+
*
|
|
7
|
+
* intelligence is the quality prediction and pattern matching subsystem backed by
|
|
8
|
+
* brain.db + tasks.db. It surfaces risk scoring, validation outcome prediction,
|
|
9
|
+
* error pattern extraction, confidence scoring, and pattern matching for verified
|
|
10
|
+
* tasks. All operations are read-only query operations at the domain level.
|
|
11
|
+
*
|
|
12
|
+
* Distinct from other analysis domains — intelligence focuses on predictive
|
|
13
|
+
* signals derived from task history, brain patterns, and learnings.
|
|
14
|
+
*
|
|
15
|
+
* SYNC: Canonical implementations at packages/core/src/intelligence/*.
|
|
16
|
+
* Wire-format types live here; they are the contract for CLI + HTTP dispatch.
|
|
17
|
+
*
|
|
18
|
+
* @task T980 — Orchestration Contract Completion
|
|
19
|
+
* @task T549 — Intelligence Domain Architecture
|
|
20
|
+
* @see packages/cleo/src/dispatch/domains/intelligence.ts
|
|
21
|
+
* @see packages/core/src/intelligence/types.ts
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* A single factor contributing to a task's overall risk score.
|
|
25
|
+
*
|
|
26
|
+
* Each factor has a weight (how much it matters) and a value (current level, 0-1).
|
|
27
|
+
* The weighted sum of all factors produces the aggregate risk score.
|
|
28
|
+
*/
|
|
29
|
+
export interface IntelligenceRiskFactor {
|
|
30
|
+
/** Human-readable factor name (e.g., "complexity", "blocking_risk"). */
|
|
31
|
+
name: string;
|
|
32
|
+
/** How much this factor contributes to the total score (0-1). */
|
|
33
|
+
weight: number;
|
|
34
|
+
/** Current measured value for this factor (0-1, where 1 = highest risk). */
|
|
35
|
+
value: number;
|
|
36
|
+
/** Explanation of why this factor has its current value. */
|
|
37
|
+
description: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Complete risk assessment for a single task.
|
|
41
|
+
*
|
|
42
|
+
* Returned by `intelligence.predict` (no stage). The `riskScore` is the weighted
|
|
43
|
+
* aggregate of all risk factors.
|
|
44
|
+
*/
|
|
45
|
+
export interface IntelligenceRiskAssessment {
|
|
46
|
+
/** The task ID this assessment applies to. */
|
|
47
|
+
taskId: string;
|
|
48
|
+
/** Aggregate risk score (0-1, where 1 = highest risk). */
|
|
49
|
+
riskScore: number;
|
|
50
|
+
/** Confidence in the assessment (0-1). Higher when more data is available. */
|
|
51
|
+
confidence: number;
|
|
52
|
+
/** Individual risk factors that contributed to the score. */
|
|
53
|
+
factors: IntelligenceRiskFactor[];
|
|
54
|
+
/** Human-readable recommendation based on the risk level. */
|
|
55
|
+
recommendation: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Predicted outcome for a lifecycle validation gate.
|
|
59
|
+
*
|
|
60
|
+
* Returned by `intelligence.predict` (with stage). Combines historical
|
|
61
|
+
* pattern data with the task's current state to estimate pass likelihood.
|
|
62
|
+
*/
|
|
63
|
+
export interface IntelligenceValidationPrediction {
|
|
64
|
+
/** The task ID being evaluated. */
|
|
65
|
+
taskId: string;
|
|
66
|
+
/** The lifecycle stage being predicted (e.g., "specification", "implementation"). */
|
|
67
|
+
stage: string;
|
|
68
|
+
/** Probability of passing the gate (0-1). */
|
|
69
|
+
passLikelihood: number;
|
|
70
|
+
/** Known blockers that may prevent passing. */
|
|
71
|
+
blockers: string[];
|
|
72
|
+
/** Actionable suggestions to improve pass likelihood. */
|
|
73
|
+
suggestions: string[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A single gate focus recommendation (priority-ordered).
|
|
77
|
+
*
|
|
78
|
+
* Produced by `intelligence.suggest` to guide which verification gates
|
|
79
|
+
* should receive focus during review.
|
|
80
|
+
*/
|
|
81
|
+
export interface IntelligenceGateFocusRecommendation {
|
|
82
|
+
/** Gate name (e.g., "implemented", "testsPassed", "documented"). */
|
|
83
|
+
gateName: string;
|
|
84
|
+
/** Priority level (1 = highest, 5 = lowest). */
|
|
85
|
+
priority: number;
|
|
86
|
+
/** Why this gate is recommended for focus. */
|
|
87
|
+
reason: string;
|
|
88
|
+
/** Estimated difficulty to pass (0-1, where 1 = most difficult). */
|
|
89
|
+
estimatedDifficulty: number;
|
|
90
|
+
/** Actionable tips to pass this gate. */
|
|
91
|
+
tips: string[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Adaptive validation suggestion set for a task.
|
|
95
|
+
*
|
|
96
|
+
* Returned by `intelligence.suggest`. Includes ordered gate recommendations
|
|
97
|
+
* and actionable tips to improve verification likelihood.
|
|
98
|
+
*/
|
|
99
|
+
export interface IntelligenceAdaptiveValidationSuggestion {
|
|
100
|
+
/** Task ID this suggestion applies to. */
|
|
101
|
+
taskId: string;
|
|
102
|
+
/** Ordered gate recommendations (highest priority first). */
|
|
103
|
+
gateFocus: IntelligenceGateFocusRecommendation[];
|
|
104
|
+
/** Overall confidence that the task will pass all required gates. */
|
|
105
|
+
overallConfidence: number;
|
|
106
|
+
/**
|
|
107
|
+
* Actionable tips derived from gate focus analysis.
|
|
108
|
+
* Includes failure-pattern mitigations where available.
|
|
109
|
+
*/
|
|
110
|
+
tips: string[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A single verification gate result (passed/failed with metadata).
|
|
114
|
+
*/
|
|
115
|
+
export interface IntelligenceVerificationGate {
|
|
116
|
+
/** Gate name (e.g., "implemented", "testsPassed"). */
|
|
117
|
+
gateName: string;
|
|
118
|
+
/** Whether this gate passed. */
|
|
119
|
+
passed: boolean;
|
|
120
|
+
/** ISO 8601 timestamp of gate evaluation. */
|
|
121
|
+
evaluatedAt: string;
|
|
122
|
+
/** Optional failure reason if gate did not pass. */
|
|
123
|
+
failureReason?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Result of scoring and evaluating a completed verification round.
|
|
127
|
+
*
|
|
128
|
+
* Returned by `intelligence.confidence`. Includes confidence score,
|
|
129
|
+
* pass/fail status, and detailed gate breakdown.
|
|
130
|
+
*/
|
|
131
|
+
export interface IntelligenceVerificationConfidenceScore {
|
|
132
|
+
/** Task ID. */
|
|
133
|
+
taskId: string;
|
|
134
|
+
/**
|
|
135
|
+
* Computed confidence score (0-1).
|
|
136
|
+
*
|
|
137
|
+
* Score derivation:
|
|
138
|
+
* - Gates passed vs required gates: up to 0.6
|
|
139
|
+
* - Failure log length (fewer failures = higher confidence): up to 0.2
|
|
140
|
+
* - Round number (fewer rounds = higher confidence): up to 0.2
|
|
141
|
+
*/
|
|
142
|
+
confidenceScore: number;
|
|
143
|
+
/** Whether the overall verification passed. */
|
|
144
|
+
passed: boolean;
|
|
145
|
+
/** IDs of gates that passed. */
|
|
146
|
+
gatesPassed: IntelligenceVerificationGate[];
|
|
147
|
+
/** IDs of gates that failed. */
|
|
148
|
+
gatesFailed: IntelligenceVerificationGate[];
|
|
149
|
+
/** Current verification round number. */
|
|
150
|
+
round: number;
|
|
151
|
+
/** Count of failures logged for this task. */
|
|
152
|
+
failureCount: number;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* A pattern automatically detected from historical brain/task data.
|
|
156
|
+
*
|
|
157
|
+
* Detected patterns may be stored in the existing brain_patterns table
|
|
158
|
+
* if they meet frequency and confidence thresholds.
|
|
159
|
+
*/
|
|
160
|
+
export interface IntelligenceDetectedPattern {
|
|
161
|
+
/** Pattern type classification. */
|
|
162
|
+
type: 'workflow' | 'blocker' | 'success' | 'failure' | 'optimization';
|
|
163
|
+
/** Human-readable pattern description. */
|
|
164
|
+
pattern: string;
|
|
165
|
+
/** Context in which the pattern was observed. */
|
|
166
|
+
context: string;
|
|
167
|
+
/** How many times this pattern was observed. */
|
|
168
|
+
frequency: number;
|
|
169
|
+
/** Success rate when this pattern appears (0-1, null if unknown). */
|
|
170
|
+
successRate: number | null;
|
|
171
|
+
/** Estimated impact level. */
|
|
172
|
+
impact: 'low' | 'medium' | 'high';
|
|
173
|
+
/** If this is an anti-pattern, describe the negative behavior. */
|
|
174
|
+
antiPattern: string | null;
|
|
175
|
+
/** Recommended mitigation for anti-patterns. */
|
|
176
|
+
mitigation: string | null;
|
|
177
|
+
/** Example task IDs or descriptions where this pattern occurred. */
|
|
178
|
+
examples: string[];
|
|
179
|
+
/** Confidence in this pattern's validity (0-1). */
|
|
180
|
+
confidence: number;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Result of matching a task against known patterns from brain_patterns.
|
|
184
|
+
*
|
|
185
|
+
* Includes the original pattern and a relevance score indicating
|
|
186
|
+
* how strongly the pattern applies to the target task.
|
|
187
|
+
*/
|
|
188
|
+
export interface IntelligencePatternMatch {
|
|
189
|
+
/** The matched pattern data. */
|
|
190
|
+
pattern: IntelligenceDetectedPattern;
|
|
191
|
+
/** How relevant this pattern is to the target task (0-1). */
|
|
192
|
+
relevanceScore: number;
|
|
193
|
+
/** Why this pattern was matched. */
|
|
194
|
+
matchReason: string;
|
|
195
|
+
/** Whether this is an anti-pattern match (warns about potential issues). */
|
|
196
|
+
isAntiPattern: boolean;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Parameters for `intelligence.predict`.
|
|
200
|
+
*
|
|
201
|
+
* @remarks
|
|
202
|
+
* When `stage` is omitted, returns risk assessment. When `stage` is provided,
|
|
203
|
+
* returns validation outcome prediction for that lifecycle stage.
|
|
204
|
+
*/
|
|
205
|
+
export interface IntelligencePredictParams {
|
|
206
|
+
/** Task ID to assess (required). */
|
|
207
|
+
taskId: string;
|
|
208
|
+
/** Lifecycle stage for validation prediction (optional). When omitted, performs risk assessment. */
|
|
209
|
+
stage?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Result of `intelligence.predict`.
|
|
213
|
+
*
|
|
214
|
+
* Union of risk assessment (no stage) or validation prediction (with stage).
|
|
215
|
+
*/
|
|
216
|
+
export type IntelligencePredictResult = IntelligenceRiskAssessment | IntelligenceValidationPrediction;
|
|
217
|
+
/**
|
|
218
|
+
* Parameters for `intelligence.suggest`.
|
|
219
|
+
*
|
|
220
|
+
* @remarks
|
|
221
|
+
* Requires a task ID. Returns prioritized gate focus recommendations
|
|
222
|
+
* to guide which verification gates should receive attention.
|
|
223
|
+
*/
|
|
224
|
+
export interface IntelligenceSuggestParams {
|
|
225
|
+
/** Task ID to generate suggestions for (required). */
|
|
226
|
+
taskId: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Result of `intelligence.suggest`.
|
|
230
|
+
*/
|
|
231
|
+
export type IntelligenceSuggestResult = IntelligenceAdaptiveValidationSuggestion;
|
|
232
|
+
/**
|
|
233
|
+
* Parameters for `intelligence.learn-errors`.
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
* Optional limit parameter to cap the number of patterns returned.
|
|
237
|
+
* Returns detected patterns across all pattern types (workflow, blocker,
|
|
238
|
+
* success, failure, optimization).
|
|
239
|
+
*/
|
|
240
|
+
export interface IntelligenceLearnErrorsParams {
|
|
241
|
+
/** Maximum number of patterns to return. Default: 50. */
|
|
242
|
+
limit?: number;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Result of `intelligence.learn-errors`.
|
|
246
|
+
*/
|
|
247
|
+
export type IntelligenceLearnErrorsResult = IntelligenceDetectedPattern[];
|
|
248
|
+
/**
|
|
249
|
+
* Parameters for `intelligence.confidence`.
|
|
250
|
+
*
|
|
251
|
+
* @remarks
|
|
252
|
+
* Requires a task ID. Returns a confidence score based on the task's
|
|
253
|
+
* current verification state, including gate pass/fail status and
|
|
254
|
+
* historical failure patterns.
|
|
255
|
+
*/
|
|
256
|
+
export interface IntelligenceConfidenceParams {
|
|
257
|
+
/** Task ID to score confidence for (required). */
|
|
258
|
+
taskId: string;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Result of `intelligence.confidence`.
|
|
262
|
+
*/
|
|
263
|
+
export type IntelligenceConfidenceResult = IntelligenceVerificationConfidenceScore;
|
|
264
|
+
/**
|
|
265
|
+
* Parameters for `intelligence.match`.
|
|
266
|
+
*
|
|
267
|
+
* @remarks
|
|
268
|
+
* Requires a task ID. Returns all known patterns from brain_patterns
|
|
269
|
+
* that are relevant to this task, sorted by relevance descending.
|
|
270
|
+
*/
|
|
271
|
+
export interface IntelligenceMatchParams {
|
|
272
|
+
/** Task ID to match patterns against (required). */
|
|
273
|
+
taskId: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Result of `intelligence.match`.
|
|
277
|
+
*/
|
|
278
|
+
export type IntelligenceMatchResult = IntelligencePatternMatch[];
|
|
279
|
+
/**
|
|
280
|
+
* Operation name literal union for the intelligence domain.
|
|
281
|
+
*
|
|
282
|
+
* @remarks
|
|
283
|
+
* Used by TypedDomainHandler<IntelligenceOps> to dispatch to handler methods.
|
|
284
|
+
*/
|
|
285
|
+
export type IntelligenceOp = 'intelligence.predict' | 'intelligence.suggest' | 'intelligence.learn-errors' | 'intelligence.confidence' | 'intelligence.match';
|
|
286
|
+
/**
|
|
287
|
+
* Discriminated union of all intelligence domain operations.
|
|
288
|
+
*
|
|
289
|
+
* @remarks
|
|
290
|
+
* Consumed by packages/cleo/src/dispatch/domains/intelligence.ts via
|
|
291
|
+
* TypedDomainHandler<IntelligenceOps>.
|
|
292
|
+
*
|
|
293
|
+
* Each operation carries its own params and result types. The query gateway
|
|
294
|
+
* uses this union to type-narrow dispatch based on the operation name.
|
|
295
|
+
*
|
|
296
|
+
* @task T980 — Orchestration Contract Completion
|
|
297
|
+
*/
|
|
298
|
+
export type IntelligenceOps = {
|
|
299
|
+
op: 'intelligence.predict';
|
|
300
|
+
params: IntelligencePredictParams;
|
|
301
|
+
result: IntelligencePredictResult;
|
|
302
|
+
} | {
|
|
303
|
+
op: 'intelligence.suggest';
|
|
304
|
+
params: IntelligenceSuggestParams;
|
|
305
|
+
result: IntelligenceSuggestResult;
|
|
306
|
+
} | {
|
|
307
|
+
op: 'intelligence.learn-errors';
|
|
308
|
+
params: IntelligenceLearnErrorsParams;
|
|
309
|
+
result: IntelligenceLearnErrorsResult;
|
|
310
|
+
} | {
|
|
311
|
+
op: 'intelligence.confidence';
|
|
312
|
+
params: IntelligenceConfidenceParams;
|
|
313
|
+
result: IntelligenceConfidenceResult;
|
|
314
|
+
} | {
|
|
315
|
+
op: 'intelligence.match';
|
|
316
|
+
params: IntelligenceMatchParams;
|
|
317
|
+
result: IntelligenceMatchResult;
|
|
318
|
+
};
|
|
319
|
+
//# sourceMappingURL=intelligence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intelligence.d.ts","sourceRoot":"","sources":["../../src/operations/intelligence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;CACxB;AAMD;;;;;GAKG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yDAAyD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
+
* Query operations: 5
|
|
5
|
+
* Mutate operations: 0 (intelligence is read-only; writes happen via hooks)
|
|
6
|
+
*
|
|
7
|
+
* intelligence is the quality prediction and pattern matching subsystem backed by
|
|
8
|
+
* brain.db + tasks.db. It surfaces risk scoring, validation outcome prediction,
|
|
9
|
+
* error pattern extraction, confidence scoring, and pattern matching for verified
|
|
10
|
+
* tasks. All operations are read-only query operations at the domain level.
|
|
11
|
+
*
|
|
12
|
+
* Distinct from other analysis domains — intelligence focuses on predictive
|
|
13
|
+
* signals derived from task history, brain patterns, and learnings.
|
|
14
|
+
*
|
|
15
|
+
* SYNC: Canonical implementations at packages/core/src/intelligence/*.
|
|
16
|
+
* Wire-format types live here; they are the contract for CLI + HTTP dispatch.
|
|
17
|
+
*
|
|
18
|
+
* @task T980 — Orchestration Contract Completion
|
|
19
|
+
* @task T549 — Intelligence Domain Architecture
|
|
20
|
+
* @see packages/cleo/src/dispatch/domains/intelligence.ts
|
|
21
|
+
* @see packages/core/src/intelligence/types.ts
|
|
22
|
+
*/
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=intelligence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intelligence.js","sourceRoot":"","sources":["../../src/operations/intelligence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Orchestrate Domain Operations (
|
|
2
|
+
* Orchestrate Domain Operations (14 operations)
|
|
3
3
|
*
|
|
4
|
-
* Query operations:
|
|
4
|
+
* Query operations: 8 (added orchestrate.plan — T890)
|
|
5
5
|
* Mutate operations: 6
|
|
6
6
|
*
|
|
7
7
|
* SYNC: Canonical implementations at
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* packages/core/src/orchestration/*.ts
|
|
10
10
|
*
|
|
11
11
|
* @task T963 — contract↔impl drift reconciliation (T910 audit)
|
|
12
|
+
* @task T890 — orchestrate.plan deterministic wave+worker plan
|
|
12
13
|
*/
|
|
13
14
|
/**
|
|
14
15
|
* Common orchestration types
|
|
@@ -276,6 +277,116 @@ export interface OrchestrateWavesParams {
|
|
|
276
277
|
epicId: string;
|
|
277
278
|
}
|
|
278
279
|
export type OrchestrateWavesResult = Wave[];
|
|
280
|
+
/** Parameters for `orchestrate.plan`. @task T890 */
|
|
281
|
+
export interface OrchestratePlanParams {
|
|
282
|
+
/** Epic task id whose children make up the plan (required). @task T890 */
|
|
283
|
+
epicId: string;
|
|
284
|
+
/**
|
|
285
|
+
* Optional preferred agent-resolver tier override for all workers in the
|
|
286
|
+
* plan (0=project, 1=global, 2=packaged). When omitted, the plan engine
|
|
287
|
+
* auto-selects the tier per role.
|
|
288
|
+
* @task T890
|
|
289
|
+
*/
|
|
290
|
+
preferTier?: 0 | 1 | 2;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Per-worker entry in an `orchestrate.plan` wave.
|
|
294
|
+
*
|
|
295
|
+
* @task T890
|
|
296
|
+
*/
|
|
297
|
+
export interface OrchestratePlanWorker {
|
|
298
|
+
/** Task id this entry represents. @task T890 */
|
|
299
|
+
taskId: string;
|
|
300
|
+
/** Human-readable task title (defaults to `taskId` when missing). @task T890 */
|
|
301
|
+
title: string;
|
|
302
|
+
/**
|
|
303
|
+
* Resolved agent id (falls back to `'cleo-subagent'` when unresolved).
|
|
304
|
+
* @task T890
|
|
305
|
+
*/
|
|
306
|
+
persona: string;
|
|
307
|
+
/** Protocol tier (0=worker, 1=lead, 2=orchestrator). @task T890 */
|
|
308
|
+
tier: 0 | 1 | 2;
|
|
309
|
+
/** Role derived from the resolved agent's `orchLevel`. @task T890 */
|
|
310
|
+
role: 'orchestrator' | 'lead' | 'worker';
|
|
311
|
+
/** Current task status (pending/active/done/…). @task T890 */
|
|
312
|
+
status: string;
|
|
313
|
+
/**
|
|
314
|
+
* Declared file scope for this task. Empty array when no `AC.files` set.
|
|
315
|
+
* @task T890
|
|
316
|
+
*/
|
|
317
|
+
atomicScope: {
|
|
318
|
+
files: string[];
|
|
319
|
+
};
|
|
320
|
+
/** Orchestration level sourced from the resolved agent (0..2). @task T890 */
|
|
321
|
+
orchLevel: number;
|
|
322
|
+
/** Ids of tasks this task depends on (sorted for determinism). @task T890 */
|
|
323
|
+
dependsOn: string[];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* A single wave in the `orchestrate.plan` execution plan.
|
|
327
|
+
*
|
|
328
|
+
* @task T890
|
|
329
|
+
*/
|
|
330
|
+
export interface OrchestratePlanWave {
|
|
331
|
+
/** 1-indexed wave number. @task T890 */
|
|
332
|
+
wave: number;
|
|
333
|
+
/**
|
|
334
|
+
* Task id of the designated lead for this wave, or `null` when none was
|
|
335
|
+
* resolved from the agent registry.
|
|
336
|
+
* @task T890
|
|
337
|
+
*/
|
|
338
|
+
leadTaskId: string | null;
|
|
339
|
+
/** Ordered worker entries for this wave. @task T890 */
|
|
340
|
+
workers: OrchestratePlanWorker[];
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Non-fatal warning emitted by `orchestrate.plan` (e.g. missing registry
|
|
344
|
+
* row, no AC.files on a worker task).
|
|
345
|
+
*
|
|
346
|
+
* @task T890
|
|
347
|
+
*/
|
|
348
|
+
export interface OrchestratePlanWarning {
|
|
349
|
+
/** Task id the warning applies to. @task T890 */
|
|
350
|
+
taskId: string;
|
|
351
|
+
/** Stable warning code (e.g. `'E_AGENT_NOT_FOUND'`, `'W_NO_ATOMIC_SCOPE'`). @task T890 */
|
|
352
|
+
code: string;
|
|
353
|
+
/** Human-readable message. @task T890 */
|
|
354
|
+
message: string;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Result of `orchestrate.plan`.
|
|
358
|
+
*
|
|
359
|
+
* @remarks
|
|
360
|
+
* The plan is deterministic: given the same epic snapshot (task statuses,
|
|
361
|
+
* dependencies, and `updatedAt` timestamps) the function always returns the
|
|
362
|
+
* same `inputHash`. `generatedAt` is intentionally excluded from the hash
|
|
363
|
+
* contract so two back-to-back calls can confirm reproducibility by comparing
|
|
364
|
+
* `inputHash` values.
|
|
365
|
+
*
|
|
366
|
+
* @task T890
|
|
367
|
+
*/
|
|
368
|
+
export interface OrchestratePlanResult {
|
|
369
|
+
/** Epic id the plan was computed for. @task T890 */
|
|
370
|
+
epicId: string;
|
|
371
|
+
/** Epic title (falls back to `epicId` when missing). @task T890 */
|
|
372
|
+
epicTitle: string;
|
|
373
|
+
/** Total number of child tasks considered (includes done tasks). @task T890 */
|
|
374
|
+
totalTasks: number;
|
|
375
|
+
/** Ordered waves produced by the dependency topological sort. @task T890 */
|
|
376
|
+
waves: OrchestratePlanWave[];
|
|
377
|
+
/** ISO 8601 timestamp when the plan was generated. @task T890 */
|
|
378
|
+
generatedAt: string;
|
|
379
|
+
/** `true` when the plan is reproducible from the current input snapshot. @task T890 */
|
|
380
|
+
deterministic: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Sha256 hex digest of the sorted `(taskId, status, updatedAt, dependsOn)`
|
|
383
|
+
* tuples + epicId. Identical inputs → identical hash.
|
|
384
|
+
* @task T890
|
|
385
|
+
*/
|
|
386
|
+
inputHash: string;
|
|
387
|
+
/** Non-fatal warnings (graceful resolver misses, missing AC.files, …). @task T890 */
|
|
388
|
+
warnings: OrchestratePlanWarning[];
|
|
389
|
+
}
|
|
279
390
|
/** Parameters for `orchestrate.skill.list`. @task T963 */
|
|
280
391
|
export interface OrchestrateSkillListParams {
|
|
281
392
|
/** Free-text filter across skill name/tags. @task T963 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../src/operations/orchestrate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../src/operations/orchestrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;GAEG;AACH,MAAM,WAAW,IA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|
|
1
1
|
/**
|
|
2
|
-
* Orchestrate Domain Operations (
|
|
2
|
+
* Orchestrate Domain Operations (14 operations)
|
|
3
3
|
*
|
|
4
|
-
* Query operations:
|
|
4
|
+
* Query operations: 8 (added orchestrate.plan — T890)
|
|
5
5
|
* Mutate operations: 6
|
|
6
6
|
*
|
|
7
7
|
* SYNC: Canonical implementations at
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* packages/core/src/orchestration/*.ts
|
|
10
10
|
*
|
|
11
11
|
* @task T963 — contract↔impl drift reconciliation (T910 audit)
|
|
12
|
+
* @task T890 — orchestrate.plan deterministic wave+worker plan
|
|
12
13
|
*/
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=orchestrate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrate.js","sourceRoot":"","sources":["../../src/operations/orchestrate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"orchestrate.js","sourceRoot":"","sources":["../../src/operations/orchestrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|