@cleocode/contracts 2026.4.0 → 2026.4.2

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.
Files changed (55) hide show
  1. package/dist/adapter.d.ts +60 -0
  2. package/dist/adapter.d.ts.map +1 -1
  3. package/dist/brain.d.ts +19 -0
  4. package/dist/brain.d.ts.map +1 -1
  5. package/dist/capabilities.d.ts +1 -0
  6. package/dist/capabilities.d.ts.map +1 -1
  7. package/dist/conduit.d.ts +5 -0
  8. package/dist/conduit.d.ts.map +1 -1
  9. package/dist/config.d.ts +38 -3
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/errors.d.ts +30 -0
  12. package/dist/errors.d.ts.map +1 -1
  13. package/dist/errors.js +30 -0
  14. package/dist/errors.js.map +1 -1
  15. package/dist/install.d.ts +1 -1
  16. package/dist/install.d.ts.map +1 -1
  17. package/dist/lafs.d.ts +167 -11
  18. package/dist/lafs.d.ts.map +1 -1
  19. package/dist/lafs.js +57 -3
  20. package/dist/lafs.js.map +1 -1
  21. package/dist/memory.d.ts +77 -0
  22. package/dist/memory.d.ts.map +1 -1
  23. package/dist/operations/issues.d.ts +1 -1
  24. package/dist/operations/issues.d.ts.map +1 -1
  25. package/dist/operations/session.d.ts +1 -1
  26. package/dist/operations/session.js +1 -1
  27. package/dist/operations/tasks.d.ts +1 -1
  28. package/dist/operations/tasks.js +1 -1
  29. package/dist/results.d.ts +89 -0
  30. package/dist/results.d.ts.map +1 -1
  31. package/dist/session.d.ts +78 -0
  32. package/dist/session.d.ts.map +1 -1
  33. package/dist/session.js +5 -0
  34. package/dist/session.js.map +1 -1
  35. package/dist/status-registry.d.ts +1 -1
  36. package/dist/status-registry.js +1 -1
  37. package/dist/task.d.ts +106 -33
  38. package/dist/task.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/adapter.ts +60 -0
  41. package/src/brain.ts +19 -0
  42. package/src/capabilities.ts +1 -0
  43. package/src/conduit.ts +3 -0
  44. package/src/config.ts +38 -3
  45. package/src/errors.ts +30 -0
  46. package/src/install.ts +1 -1
  47. package/src/lafs.ts +169 -13
  48. package/src/memory.ts +77 -0
  49. package/src/operations/issues.ts +1 -1
  50. package/src/operations/session.ts +1 -1
  51. package/src/operations/tasks.ts +1 -1
  52. package/src/results.ts +89 -0
  53. package/src/session.ts +78 -0
  54. package/src/status-registry.ts +1 -1
  55. package/src/task.ts +106 -33
package/dist/lafs.d.ts CHANGED
@@ -12,121 +12,277 @@
12
12
  export type LAFSErrorCategory = 'validation' | 'not_found' | 'conflict' | 'authorization' | 'internal' | 'rate_limit' | 'timeout' | 'dependency';
13
13
  /** LAFS error object. */
14
14
  export interface LAFSError {
15
+ /** Stable error code (numeric HTTP status or string identifier). */
15
16
  code: number | string;
17
+ /** High-level error classification category. */
16
18
  category: LAFSErrorCategory;
19
+ /** Human-readable error description. */
17
20
  message: string;
21
+ /**
22
+ * Suggested fix or recovery action for the caller.
23
+ *
24
+ * @defaultValue undefined
25
+ */
18
26
  fix?: string;
27
+ /**
28
+ * Arbitrary key-value pairs with additional error context.
29
+ *
30
+ * @defaultValue undefined
31
+ */
19
32
  details?: Record<string, unknown>;
20
33
  }
21
34
  /** LAFS warning. */
22
35
  export interface Warning {
36
+ /** Machine-readable warning code. */
23
37
  code: string;
38
+ /** Human-readable warning description. */
24
39
  message: string;
25
40
  }
26
41
  /** LAFS transport metadata. */
27
- export type LAFSTransport = 'mcp' | 'cli' | 'http' | 'sdk';
42
+ export type LAFSTransport = 'cli' | 'http' | 'sdk';
28
43
  /** MVI (Minimal Viable Information) level. */
29
44
  export type MVILevel = 'minimal' | 'standard' | 'full';
30
45
  /** LAFS page — no pagination. */
31
46
  export interface LAFSPageNone {
47
+ /** Discriminant indicating no pagination is applied. */
32
48
  strategy: 'none';
33
49
  }
34
50
  /** LAFS page — offset-based pagination. */
35
51
  export interface LAFSPageOffset {
52
+ /** Discriminant identifying offset-based pagination. */
36
53
  strategy: 'offset';
54
+ /** Zero-based index of the first item in this page. */
37
55
  offset: number;
56
+ /** Maximum number of items per page. */
38
57
  limit: number;
58
+ /** Total number of items across all pages. */
39
59
  total: number;
60
+ /** Whether additional pages exist beyond the current one. */
40
61
  hasMore: boolean;
41
62
  }
42
63
  /** LAFS page union. */
43
64
  export type LAFSPage = LAFSPageNone | LAFSPageOffset;
44
65
  /** LAFS metadata block. */
45
66
  export interface LAFSMeta {
67
+ /** Transport protocol used for this envelope. */
46
68
  transport: LAFSTransport;
69
+ /** Minimum Viable Information level controlling verbosity. */
47
70
  mvi: MVILevel;
71
+ /**
72
+ * Pagination metadata when the result is a paginated collection.
73
+ *
74
+ * @defaultValue undefined
75
+ */
48
76
  page?: LAFSPage;
77
+ /**
78
+ * Non-fatal warnings to surface to the consuming agent.
79
+ *
80
+ * @defaultValue undefined
81
+ */
49
82
  warnings?: Warning[];
83
+ /**
84
+ * Operation duration in milliseconds.
85
+ *
86
+ * @defaultValue undefined
87
+ */
50
88
  durationMs?: number;
51
89
  }
52
90
  /** LAFS envelope (canonical protocol type). */
53
91
  export interface LAFSEnvelope<T = unknown> {
92
+ /** Whether the operation completed successfully. */
54
93
  success: boolean;
94
+ /**
95
+ * Operation result payload on success.
96
+ *
97
+ * @defaultValue undefined
98
+ */
55
99
  data?: T;
100
+ /**
101
+ * Structured error payload on failure.
102
+ *
103
+ * @defaultValue undefined
104
+ */
56
105
  error?: LAFSError;
106
+ /**
107
+ * Protocol and transport metadata.
108
+ *
109
+ * @defaultValue undefined
110
+ */
57
111
  _meta?: LAFSMeta;
58
112
  }
59
113
  /** Flag input for conformance checks. */
60
114
  export interface FlagInput {
115
+ /** Name of the flag being checked. */
61
116
  flag: string;
117
+ /** Value of the flag to validate. */
62
118
  value: unknown;
63
119
  }
64
120
  /** Conformance report. */
65
121
  export interface ConformanceReport {
122
+ /** Whether all conformance checks passed. */
66
123
  valid: boolean;
124
+ /** List of conformance violation descriptions. */
67
125
  violations: string[];
126
+ /** List of non-fatal warning descriptions. */
68
127
  warnings: string[];
69
128
  }
70
129
  /** Actionable alternative the caller can try. */
71
130
  export interface LafsAlternative {
131
+ /** Description of the alternative action. */
72
132
  action: string;
133
+ /** CLI command the caller can run instead. */
73
134
  command: string;
74
135
  }
75
- /** LAFS error detail shared between CLI and MCP. */
136
+ /** LAFS error detail shared between CLI and gateway. */
76
137
  export interface LafsErrorDetail {
138
+ /** Stable error code (numeric HTTP status or string identifier). */
77
139
  code: number | string;
140
+ /**
141
+ * Optional human-readable error name (e.g. `"NOT_FOUND"`).
142
+ *
143
+ * @defaultValue undefined
144
+ */
78
145
  name?: string;
146
+ /** Human-readable error description. */
79
147
  message: string;
148
+ /**
149
+ * Suggested fix or recovery action for the caller.
150
+ *
151
+ * @defaultValue undefined
152
+ */
80
153
  fix?: string;
154
+ /**
155
+ * Alternative commands the caller can try.
156
+ *
157
+ * @defaultValue undefined
158
+ */
81
159
  alternatives?: LafsAlternative[];
160
+ /**
161
+ * Arbitrary key-value pairs with additional error context.
162
+ *
163
+ * @defaultValue undefined
164
+ */
82
165
  details?: Record<string, unknown>;
83
166
  }
84
167
  /** LAFS success envelope (CLI). */
85
168
  export interface LafsSuccess<T = unknown> {
169
+ /** Discriminant: always `true` for success envelopes. */
86
170
  success: true;
171
+ /** Operation result payload. */
87
172
  data: T;
173
+ /**
174
+ * Optional human-readable summary of the operation outcome.
175
+ *
176
+ * @defaultValue undefined
177
+ */
88
178
  message?: string;
179
+ /**
180
+ * When `true`, the operation was a no-op (data is unchanged).
181
+ *
182
+ * @defaultValue undefined
183
+ */
89
184
  noChange?: boolean;
90
185
  }
91
186
  /** LAFS error envelope (CLI). */
92
187
  export interface LafsError {
188
+ /** Discriminant: always `false` for error envelopes. */
93
189
  success: false;
190
+ /** Structured error detail with code, message, and fix guidance. */
94
191
  error: LafsErrorDetail;
95
192
  }
96
193
  /** CLI envelope union type. */
97
194
  export type LafsEnvelope<T = unknown> = LafsSuccess<T> | LafsError;
98
195
  /**
99
- * Metadata attached to every MCP gateway response.
196
+ * Metadata attached to every gateway response.
100
197
  * Extends the canonical LAFSMeta with CLEO gateway-specific fields.
101
198
  *
102
199
  * @task T4655
103
200
  */
104
201
  export interface GatewayMeta extends LAFSMeta {
202
+ /** Gateway identifier that processed this request. */
105
203
  gateway: string;
204
+ /** CLEO domain that handled the operation (e.g. `"tasks"`, `"session"`). */
106
205
  domain: string;
206
+ /** Operation duration in milliseconds. */
107
207
  duration_ms: number;
108
208
  }
109
- /** MCP success envelope (extends CLI base with _meta). */
209
+ /** Gateway success envelope (extends CLI base with _meta). */
110
210
  export interface GatewaySuccess<T = unknown> extends LafsSuccess<T> {
211
+ /** Gateway-specific metadata including domain and timing. */
111
212
  _meta: GatewayMeta;
112
213
  }
113
- /** MCP error envelope (extends CLI base with _meta). */
214
+ /** Gateway error envelope (extends CLI base with _meta). */
114
215
  export interface GatewayError extends LafsError {
216
+ /** Gateway-specific metadata including domain and timing. */
115
217
  _meta: GatewayMeta;
116
218
  }
117
- /** MCP envelope union type. */
219
+ /** Gateway envelope union type. */
118
220
  export type GatewayEnvelope<T = unknown> = GatewaySuccess<T> | GatewayError;
119
221
  /**
120
222
  * Unified CLEO response envelope.
121
223
  *
122
- * Every CLEO response (CLI or MCP) is a CleoResponse. MCP responses include
123
- * the _meta field; CLI responses do not.
224
+ * Every CLEO response (CLI or Gateway) is a CleoResponse. Gateway responses
225
+ * include the _meta field; CLI responses do not.
124
226
  */
125
227
  export type CleoResponse<T = unknown> = LafsEnvelope<T> | GatewayEnvelope<T>;
126
- /** Type guard for success responses. */
228
+ /**
229
+ * Type guard for success responses.
230
+ *
231
+ * @typeParam T - The data payload type of the envelope.
232
+ * @param envelope - The envelope to check.
233
+ * @returns `true` if the envelope represents a successful operation.
234
+ *
235
+ * @remarks
236
+ * Narrows a {@link LafsEnvelope} to {@link LafsSuccess} so that `envelope.data`
237
+ * is accessible without additional type assertions.
238
+ *
239
+ * @example
240
+ * ```ts
241
+ * const result: LafsEnvelope<Task[]> = await fetchTasks();
242
+ * if (isLafsSuccess(result)) {
243
+ * console.log(result.data); // Task[]
244
+ * }
245
+ * ```
246
+ */
127
247
  export declare function isLafsSuccess<T>(envelope: LafsEnvelope<T>): envelope is LafsSuccess<T>;
128
- /** Type guard for error responses. */
248
+ /**
249
+ * Type guard for error responses.
250
+ *
251
+ * @typeParam T - The data payload type of the envelope.
252
+ * @param envelope - The envelope to check.
253
+ * @returns `true` if the envelope represents a failed operation.
254
+ *
255
+ * @remarks
256
+ * Narrows a {@link LafsEnvelope} to {@link LafsError} so that `envelope.error`
257
+ * is accessible without additional type assertions.
258
+ *
259
+ * @example
260
+ * ```ts
261
+ * const result: LafsEnvelope<Task[]> = await fetchTasks();
262
+ * if (isLafsError(result)) {
263
+ * console.error(result.error.message);
264
+ * }
265
+ * ```
266
+ */
129
267
  export declare function isLafsError<T>(envelope: LafsEnvelope<T>): envelope is LafsError;
130
- /** Type guard for MCP gateway responses (has _meta). */
268
+ /**
269
+ * Type guard for gateway responses (has _meta).
270
+ *
271
+ * @typeParam T - The data payload type of the envelope.
272
+ * @param envelope - The response to check.
273
+ * @returns `true` if the response includes gateway metadata.
274
+ *
275
+ * @remarks
276
+ * Distinguishes gateway responses from plain CLI responses by checking for the
277
+ * presence of the `_meta` field, which carries gateway-specific routing and timing data.
278
+ *
279
+ * @example
280
+ * ```ts
281
+ * const response: CleoResponse<Task> = await handleRequest();
282
+ * if (isGatewayEnvelope(response)) {
283
+ * console.log(response._meta.gateway);
284
+ * }
285
+ * ```
286
+ */
131
287
  export declare function isGatewayEnvelope<T>(envelope: CleoResponse<T>): envelope is GatewayEnvelope<T>;
132
288
  //# sourceMappingURL=lafs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lafs.d.ts","sourceRoot":"","sources":["../src/lafs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,2BAA2B;AAC3B,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,WAAW,GACX,UAAU,GACV,eAAe,GACf,UAAU,GACV,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AE,YAAY,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,CAEtF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,SAAS,CAE/E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,eAAe,CAAC,CAAC,CAAC,CAE9F"}
package/dist/lafs.js CHANGED
@@ -11,15 +11,69 @@
11
11
  // ---------------------------------------------------------------------------
12
12
  // Type guards
13
13
  // ---------------------------------------------------------------------------
14
- /** Type guard for success responses. */
14
+ /**
15
+ * Type guard for success responses.
16
+ *
17
+ * @typeParam T - The data payload type of the envelope.
18
+ * @param envelope - The envelope to check.
19
+ * @returns `true` if the envelope represents a successful operation.
20
+ *
21
+ * @remarks
22
+ * Narrows a {@link LafsEnvelope} to {@link LafsSuccess} so that `envelope.data`
23
+ * is accessible without additional type assertions.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const result: LafsEnvelope<Task[]> = await fetchTasks();
28
+ * if (isLafsSuccess(result)) {
29
+ * console.log(result.data); // Task[]
30
+ * }
31
+ * ```
32
+ */
15
33
  export function isLafsSuccess(envelope) {
16
34
  return envelope.success === true;
17
35
  }
18
- /** Type guard for error responses. */
36
+ /**
37
+ * Type guard for error responses.
38
+ *
39
+ * @typeParam T - The data payload type of the envelope.
40
+ * @param envelope - The envelope to check.
41
+ * @returns `true` if the envelope represents a failed operation.
42
+ *
43
+ * @remarks
44
+ * Narrows a {@link LafsEnvelope} to {@link LafsError} so that `envelope.error`
45
+ * is accessible without additional type assertions.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const result: LafsEnvelope<Task[]> = await fetchTasks();
50
+ * if (isLafsError(result)) {
51
+ * console.error(result.error.message);
52
+ * }
53
+ * ```
54
+ */
19
55
  export function isLafsError(envelope) {
20
56
  return envelope.success === false;
21
57
  }
22
- /** Type guard for MCP gateway responses (has _meta). */
58
+ /**
59
+ * Type guard for gateway responses (has _meta).
60
+ *
61
+ * @typeParam T - The data payload type of the envelope.
62
+ * @param envelope - The response to check.
63
+ * @returns `true` if the response includes gateway metadata.
64
+ *
65
+ * @remarks
66
+ * Distinguishes gateway responses from plain CLI responses by checking for the
67
+ * presence of the `_meta` field, which carries gateway-specific routing and timing data.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response: CleoResponse<Task> = await handleRequest();
72
+ * if (isGatewayEnvelope(response)) {
73
+ * console.log(response._meta.gateway);
74
+ * }
75
+ * ```
76
+ */
23
77
  export function isGatewayEnvelope(envelope) {
24
78
  return '_meta' in envelope && envelope._meta !== undefined;
25
79
  }
package/dist/lafs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lafs.js","sourceRoot":"","sources":["../src/lafs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuKH,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAE9E,wCAAwC;AACxC,MAAM,UAAU,aAAa,CAAI,QAAyB;IACxD,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC;AACnC,CAAC;AAED,sCAAsC;AACtC,MAAM,UAAU,WAAW,CAAI,QAAyB;IACtD,OAAO,QAAQ,CAAC,OAAO,KAAK,KAAK,CAAC;AACpC,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,iBAAiB,CAAI,QAAyB;IAC5D,OAAO,OAAO,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC;AAC7D,CAAC"}
1
+ {"version":3,"file":"lafs.js","sourceRoot":"","sources":["../src/lafs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA6QH,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,aAAa,CAAI,QAAyB;IACxD,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,CAAC;AACnC,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,WAAW,CAAI,QAAyB;IACtD,OAAO,QAAQ,CAAC,OAAO,KAAK,KAAK,CAAC;AACpC,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,iBAAiB,CAAI,QAAyB;IAC5D,OAAO,OAAO,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC;AAC7D,CAAC"}
package/dist/memory.d.ts CHANGED
@@ -5,47 +5,124 @@
5
5
  * @task T5240
6
6
  */
7
7
  export interface MemoryBridgeConfig {
8
+ /** Maximum number of recent observations to include in the bridge. */
8
9
  maxObservations: number;
10
+ /** Maximum number of key learnings to include. */
9
11
  maxLearnings: number;
12
+ /** Maximum number of patterns (follow/avoid) to include. */
10
13
  maxPatterns: number;
14
+ /** Maximum number of recent decisions to include. */
11
15
  maxDecisions: number;
16
+ /** Whether to include the last session handoff summary. */
12
17
  includeHandoff: boolean;
18
+ /** Whether to include anti-patterns alongside follow-patterns. */
13
19
  includeAntiPatterns: boolean;
14
20
  }
21
+ /**
22
+ * Structured content of the `.cleo/memory-bridge.md` file.
23
+ *
24
+ * @remarks
25
+ * The memory bridge is auto-generated from brain.db and provides cross-session
26
+ * memory context to agents. It is refreshed on session end, task completion,
27
+ * and explicit `cleo refresh-memory` invocations.
28
+ */
15
29
  export interface MemoryBridgeContent {
30
+ /** ISO 8601 timestamp of when this bridge content was generated. */
16
31
  generatedAt: string;
32
+ /**
33
+ * Summary of the most recent session.
34
+ *
35
+ * @defaultValue undefined
36
+ */
17
37
  lastSession?: SessionSummary;
38
+ /** Key learnings extracted from brain.db observations. */
18
39
  learnings: BridgeLearning[];
40
+ /** Patterns to follow, identified from recurring successful outcomes. */
19
41
  patterns: BridgePattern[];
42
+ /** Anti-patterns to avoid, identified from recurring failures. */
20
43
  antiPatterns: BridgePattern[];
44
+ /** Recent decisions made during sessions. */
21
45
  decisions: BridgeDecision[];
46
+ /** Most recent observations from brain.db. */
22
47
  recentObservations: BridgeObservation[];
23
48
  }
49
+ /**
50
+ * Summary of a completed session for the memory bridge.
51
+ *
52
+ * @remarks
53
+ * Captures the essential outcomes of a session so subsequent sessions
54
+ * can pick up where the previous one left off.
55
+ */
24
56
  export interface SessionSummary {
57
+ /** Unique identifier of the summarized session. */
25
58
  sessionId: string;
59
+ /** ISO 8601 date when the session occurred. */
26
60
  date: string;
61
+ /** Task IDs that were completed during this session. */
27
62
  tasksCompleted: string[];
63
+ /** Key decisions made during this session. */
28
64
  decisions: string[];
65
+ /** Suggested next actions for the following session. */
29
66
  nextSuggested: string[];
30
67
  }
68
+ /**
69
+ * A key learning extracted from brain.db for the memory bridge.
70
+ *
71
+ * @remarks
72
+ * Learnings are observations that have been validated or reinforced across
73
+ * multiple sessions, with a confidence score reflecting their reliability.
74
+ */
31
75
  export interface BridgeLearning {
76
+ /** Brain.db entry identifier (e.g. `"L-abc123"`). */
32
77
  id: string;
78
+ /** Human-readable learning text. */
33
79
  text: string;
80
+ /** Confidence score from 0.0 to 1.0. */
34
81
  confidence: number;
35
82
  }
83
+ /**
84
+ * A recurring pattern identified in brain.db entries.
85
+ *
86
+ * @remarks
87
+ * Patterns are classified as either `"follow"` (positive patterns to repeat)
88
+ * or `"avoid"` (anti-patterns to prevent).
89
+ */
36
90
  export interface BridgePattern {
91
+ /** Brain.db entry identifier (e.g. `"P-abc123"`). */
37
92
  id: string;
93
+ /** Human-readable pattern description. */
38
94
  text: string;
95
+ /** Whether this is a pattern to follow or avoid. */
39
96
  type: 'follow' | 'avoid';
40
97
  }
98
+ /**
99
+ * A decision recorded in brain.db for the memory bridge.
100
+ *
101
+ * @remarks
102
+ * Decisions are high-signal observations that capture architectural or
103
+ * process choices made during sessions.
104
+ */
41
105
  export interface BridgeDecision {
106
+ /** Brain.db entry identifier (e.g. `"D-abc123"`). */
42
107
  id: string;
108
+ /** Short title summarizing the decision. */
43
109
  title: string;
110
+ /** ISO 8601 date when the decision was made. */
44
111
  date: string;
45
112
  }
113
+ /**
114
+ * A recent observation from brain.db for the memory bridge.
115
+ *
116
+ * @remarks
117
+ * Observations are the raw input to the brain memory system. Only the most
118
+ * recent ones are included in the bridge to keep token cost low.
119
+ */
46
120
  export interface BridgeObservation {
121
+ /** Brain.db entry identifier (e.g. `"O-abc123"`). */
47
122
  id: string;
123
+ /** ISO 8601 date when the observation was recorded. */
48
124
  date: string;
125
+ /** Truncated summary of the observation content. */
49
126
  summary: string;
50
127
  }
51
128
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CA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AAC;IAC5B,8CAA8C;IAC9C,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,wDAAwD;IACxD,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -10,7 +10,7 @@
10
10
  * Common issue types
11
11
  */
12
12
  export type IssueSeverity = 'low' | 'medium' | 'high' | 'critical';
13
- export type IssueArea = 'cli' | 'mcp' | 'docs' | 'tests' | 'other';
13
+ export type IssueArea = 'cli' | 'dispatch' | 'docs' | 'tests' | 'other';
14
14
  export type IssueType = 'bug' | 'feature' | 'help';
15
15
  export interface Diagnostics {
16
16
  cleoVersion: string;
@@ -1 +1 @@
1
- {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/operations/issues.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AACnE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AAGH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC5D,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;GAEG;AAGH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,E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AE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * SYNC: Canonical type definitions live in the CLI package at:
8
8
  * src/types/session.ts (Session, SessionScope, etc.)
9
- * These MCP operation types are the API contract (wire format).
9
+ * These operation types are the API contract (wire format).
10
10
  */
11
11
  /**
12
12
  * Common session types
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * SYNC: Canonical type definitions live in the CLI package at:
8
8
  * src/types/session.ts (Session, SessionScope, etc.)
9
- * These MCP operation types are the API contract (wire format).
9
+ * These operation types are the API contract (wire format).
10
10
  */
11
11
  export {};
12
12
  //# sourceMappingURL=session.js.map
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * SYNC: Canonical type definitions live in the CLI package at:
8
8
  * src/types/task.ts (TaskStatus, TaskPriority, Task, etc.)
9
- * These MCP operation types are the API contract (wire format).
9
+ * These operation types are the API contract (wire format).
10
10
  * Internal domain types must stay aligned with CLI definitions.
11
11
  */
12
12
  /**
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * SYNC: Canonical type definitions live in the CLI package at:
8
8
  * src/types/task.ts (TaskStatus, TaskPriority, Task, etc.)
9
- * These MCP operation types are the API contract (wire format).
9
+ * These operation types are the API contract (wire format).
10
10
  * Internal domain types must stay aligned with CLI definitions.
11
11
  */
12
12
  export {};