@xiaolei.shawn/mcp-server 0.2.0 → 0.3.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 +49 -0
- package/dist/__tests__/ingest.test.d.ts +1 -0
- package/dist/__tests__/ingest.test.js +144 -0
- package/dist/__tests__/local-analysis.test.d.ts +1 -0
- package/dist/__tests__/local-analysis.test.js +118 -0
- package/dist/adapters/codex.d.ts +2 -0
- package/dist/adapters/codex.js +344 -0
- package/dist/adapters/cursor.d.ts +2 -0
- package/dist/adapters/cursor.js +279 -0
- package/dist/adapters/index.d.ts +3 -0
- package/dist/adapters/index.js +20 -0
- package/dist/adapters/types.d.ts +34 -0
- package/dist/adapters/types.js +1 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.js +20 -0
- package/dist/dashboard.js +445 -2
- package/dist/event-envelope.d.ts +35 -3
- package/dist/index.js +71 -2
- package/dist/ingest.d.ts +19 -0
- package/dist/ingest.js +484 -0
- package/dist/local-analysis.d.ts +91 -0
- package/dist/local-analysis.js +517 -0
- package/dist/store.d.ts +2 -2
- package/dist/store.js +6 -4
- package/dist/tools.d.ts +1066 -22
- package/dist/tools.js +563 -0
- package/package.json +7 -2
package/dist/tools.d.ts
CHANGED
|
@@ -96,6 +96,234 @@ declare const verificationSchema: z.ZodObject<{
|
|
|
96
96
|
result: "unknown" | "fail" | "pass";
|
|
97
97
|
details?: string | undefined;
|
|
98
98
|
}>;
|
|
99
|
+
declare const artifactCreatedSchema: z.ZodObject<{
|
|
100
|
+
artifact_type: z.ZodEnum<["file", "patch", "report", "pr", "migration", "test", "build", "other"]>;
|
|
101
|
+
title: z.ZodString;
|
|
102
|
+
path: z.ZodOptional<z.ZodString>;
|
|
103
|
+
url: z.ZodOptional<z.ZodString>;
|
|
104
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
|
+
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
title: string;
|
|
107
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
108
|
+
url?: string | undefined;
|
|
109
|
+
details?: Record<string, unknown> | undefined;
|
|
110
|
+
path?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
title: string;
|
|
113
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
114
|
+
url?: string | undefined;
|
|
115
|
+
details?: Record<string, unknown> | undefined;
|
|
116
|
+
path?: string | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
declare const intentTransitionSchema: z.ZodObject<{
|
|
119
|
+
from: z.ZodString;
|
|
120
|
+
to: z.ZodString;
|
|
121
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
from: string;
|
|
124
|
+
to: string;
|
|
125
|
+
reason?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
from: string;
|
|
128
|
+
to: string;
|
|
129
|
+
reason?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
declare const riskSignalSchema: z.ZodObject<{
|
|
132
|
+
level: z.ZodEnum<["low", "medium", "high"]>;
|
|
133
|
+
reasons: z.ZodArray<z.ZodString, "many">;
|
|
134
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
135
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
136
|
+
mitigation_hint: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, "strict", z.ZodTypeAny, {
|
|
138
|
+
level: "high" | "low" | "medium";
|
|
139
|
+
reasons: string[];
|
|
140
|
+
files?: string[] | undefined;
|
|
141
|
+
modules?: string[] | undefined;
|
|
142
|
+
mitigation_hint?: string | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
level: "high" | "low" | "medium";
|
|
145
|
+
reasons: string[];
|
|
146
|
+
files?: string[] | undefined;
|
|
147
|
+
modules?: string[] | undefined;
|
|
148
|
+
mitigation_hint?: string | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
declare const verificationRunSchema: z.ZodObject<{
|
|
151
|
+
run_type: z.ZodEnum<["test", "lint", "typecheck", "manual", "build"]>;
|
|
152
|
+
status: z.ZodEnum<["started", "completed", "failed"]>;
|
|
153
|
+
command: z.ZodOptional<z.ZodString>;
|
|
154
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
155
|
+
result: z.ZodOptional<z.ZodEnum<["pass", "fail", "unknown"]>>;
|
|
156
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
}, "strict", z.ZodTypeAny, {
|
|
158
|
+
status: "failed" | "completed" | "started";
|
|
159
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
160
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
161
|
+
command?: string | undefined;
|
|
162
|
+
scope?: string | undefined;
|
|
163
|
+
duration_ms?: number | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
status: "failed" | "completed" | "started";
|
|
166
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
167
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
168
|
+
command?: string | undefined;
|
|
169
|
+
scope?: string | undefined;
|
|
170
|
+
duration_ms?: number | undefined;
|
|
171
|
+
}>;
|
|
172
|
+
declare const diffSummarySchema: z.ZodObject<{
|
|
173
|
+
file: z.ZodString;
|
|
174
|
+
lines_added: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
lines_removed: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
public_api_changed: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
dependency_changed: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
schema_changed: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
file: string;
|
|
181
|
+
lines_added?: number | undefined;
|
|
182
|
+
lines_removed?: number | undefined;
|
|
183
|
+
public_api_changed?: boolean | undefined;
|
|
184
|
+
dependency_changed?: boolean | undefined;
|
|
185
|
+
schema_changed?: boolean | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
file: string;
|
|
188
|
+
lines_added?: number | undefined;
|
|
189
|
+
lines_removed?: number | undefined;
|
|
190
|
+
public_api_changed?: boolean | undefined;
|
|
191
|
+
dependency_changed?: boolean | undefined;
|
|
192
|
+
schema_changed?: boolean | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
declare const decisionLinkSchema: z.ZodObject<{
|
|
195
|
+
decision_event_id: z.ZodString;
|
|
196
|
+
summary: z.ZodString;
|
|
197
|
+
affected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
198
|
+
related_event_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
199
|
+
}, "strict", z.ZodTypeAny, {
|
|
200
|
+
summary: string;
|
|
201
|
+
decision_event_id: string;
|
|
202
|
+
affected_files?: string[] | undefined;
|
|
203
|
+
related_event_ids?: string[] | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
summary: string;
|
|
206
|
+
decision_event_id: string;
|
|
207
|
+
affected_files?: string[] | undefined;
|
|
208
|
+
related_event_ids?: string[] | undefined;
|
|
209
|
+
}>;
|
|
210
|
+
declare const assumptionLifecycleSchema: z.ZodObject<{
|
|
211
|
+
statement: z.ZodString;
|
|
212
|
+
state: z.ZodEnum<["created", "validated", "invalidated", "unresolved"]>;
|
|
213
|
+
risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
214
|
+
related_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
215
|
+
details: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, "strict", z.ZodTypeAny, {
|
|
217
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
218
|
+
statement: string;
|
|
219
|
+
details?: string | undefined;
|
|
220
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
221
|
+
related_files?: string[] | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
224
|
+
statement: string;
|
|
225
|
+
details?: string | undefined;
|
|
226
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
227
|
+
related_files?: string[] | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
declare const blockerSchema: z.ZodObject<{
|
|
230
|
+
code: z.ZodString;
|
|
231
|
+
summary: z.ZodString;
|
|
232
|
+
severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
233
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
code: string;
|
|
237
|
+
summary: string;
|
|
238
|
+
severity: "high" | "low" | "medium";
|
|
239
|
+
resolution?: string | undefined;
|
|
240
|
+
resolved?: boolean | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
code: string;
|
|
243
|
+
summary: string;
|
|
244
|
+
resolution?: string | undefined;
|
|
245
|
+
severity?: "high" | "low" | "medium" | undefined;
|
|
246
|
+
resolved?: boolean | undefined;
|
|
247
|
+
}>;
|
|
248
|
+
declare const tokenUsageCheckpointSchema: z.ZodObject<{
|
|
249
|
+
category: z.ZodOptional<z.ZodString>;
|
|
250
|
+
model: z.ZodOptional<z.ZodString>;
|
|
251
|
+
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
}, "strict", z.ZodTypeAny, {
|
|
256
|
+
category?: string | undefined;
|
|
257
|
+
model?: string | undefined;
|
|
258
|
+
prompt_tokens?: number | undefined;
|
|
259
|
+
completion_tokens?: number | undefined;
|
|
260
|
+
total_tokens?: number | undefined;
|
|
261
|
+
estimated_cost_usd?: number | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
category?: string | undefined;
|
|
264
|
+
model?: string | undefined;
|
|
265
|
+
prompt_tokens?: number | undefined;
|
|
266
|
+
completion_tokens?: number | undefined;
|
|
267
|
+
total_tokens?: number | undefined;
|
|
268
|
+
estimated_cost_usd?: number | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
declare const sessionQualitySchema: z.ZodObject<{
|
|
271
|
+
score: z.ZodNumber;
|
|
272
|
+
verification_coverage: z.ZodOptional<z.ZodEnum<["none", "partial", "full"]>>;
|
|
273
|
+
unresolved_risks: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
275
|
+
}, "strict", z.ZodTypeAny, {
|
|
276
|
+
score: number;
|
|
277
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
278
|
+
unresolved_risks?: number | undefined;
|
|
279
|
+
notes?: string | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
score: number;
|
|
282
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
283
|
+
unresolved_risks?: number | undefined;
|
|
284
|
+
notes?: string | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
declare const replayBookmarkSchema: z.ZodObject<{
|
|
287
|
+
label: z.ZodString;
|
|
288
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
289
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
291
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
292
|
+
}, "strict", z.ZodTypeAny, {
|
|
293
|
+
label: string;
|
|
294
|
+
reason?: string | undefined;
|
|
295
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
296
|
+
event_id?: string | undefined;
|
|
297
|
+
seq?: number | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
label: string;
|
|
300
|
+
reason?: string | undefined;
|
|
301
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
302
|
+
event_id?: string | undefined;
|
|
303
|
+
seq?: number | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
declare const hotspotSchema: z.ZodObject<{
|
|
306
|
+
file: z.ZodString;
|
|
307
|
+
score: z.ZodNumber;
|
|
308
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
309
|
+
module: z.ZodOptional<z.ZodString>;
|
|
310
|
+
edit_count: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
lines_changed: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
}, "strict", z.ZodTypeAny, {
|
|
313
|
+
file: string;
|
|
314
|
+
score: number;
|
|
315
|
+
module?: string | undefined;
|
|
316
|
+
reasons?: string[] | undefined;
|
|
317
|
+
edit_count?: number | undefined;
|
|
318
|
+
lines_changed?: number | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
file: string;
|
|
321
|
+
score: number;
|
|
322
|
+
module?: string | undefined;
|
|
323
|
+
reasons?: string[] | undefined;
|
|
324
|
+
edit_count?: number | undefined;
|
|
325
|
+
lines_changed?: number | undefined;
|
|
326
|
+
}>;
|
|
99
327
|
declare const sessionEndSchema: z.ZodObject<{
|
|
100
328
|
outcome: z.ZodEnum<["completed", "partial", "failed", "aborted"]>;
|
|
101
329
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -132,7 +360,7 @@ declare const gatewayBeginSchema: z.ZodObject<{
|
|
|
132
360
|
intent_priority?: number | undefined;
|
|
133
361
|
}>;
|
|
134
362
|
declare const gatewayActSchema: z.ZodObject<{
|
|
135
|
-
op: z.ZodEnum<["file", "tool", "search", "execution", "intent", "decision", "assumption", "verification"]>;
|
|
363
|
+
op: z.ZodEnum<["file", "tool", "search", "execution", "intent", "decision", "assumption", "verification", "artifact_created", "intent_transition", "risk_signal", "verification_run", "diff_summary", "decision_link", "assumption_lifecycle", "blocker", "token_usage_checkpoint", "session_quality", "replay_bookmark", "hotspot"]>;
|
|
136
364
|
action: z.ZodOptional<z.ZodString>;
|
|
137
365
|
target: z.ZodOptional<z.ZodString>;
|
|
138
366
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -213,9 +441,237 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
213
441
|
result: "unknown" | "fail" | "pass";
|
|
214
442
|
details?: string | undefined;
|
|
215
443
|
}>>;
|
|
444
|
+
artifact_created: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
artifact_type: z.ZodEnum<["file", "patch", "report", "pr", "migration", "test", "build", "other"]>;
|
|
446
|
+
title: z.ZodString;
|
|
447
|
+
path: z.ZodOptional<z.ZodString>;
|
|
448
|
+
url: z.ZodOptional<z.ZodString>;
|
|
449
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
450
|
+
}, "strict", z.ZodTypeAny, {
|
|
451
|
+
title: string;
|
|
452
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
453
|
+
url?: string | undefined;
|
|
454
|
+
details?: Record<string, unknown> | undefined;
|
|
455
|
+
path?: string | undefined;
|
|
456
|
+
}, {
|
|
457
|
+
title: string;
|
|
458
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
459
|
+
url?: string | undefined;
|
|
460
|
+
details?: Record<string, unknown> | undefined;
|
|
461
|
+
path?: string | undefined;
|
|
462
|
+
}>>;
|
|
463
|
+
intent_transition: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
from: z.ZodString;
|
|
465
|
+
to: z.ZodString;
|
|
466
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, "strict", z.ZodTypeAny, {
|
|
468
|
+
from: string;
|
|
469
|
+
to: string;
|
|
470
|
+
reason?: string | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
from: string;
|
|
473
|
+
to: string;
|
|
474
|
+
reason?: string | undefined;
|
|
475
|
+
}>>;
|
|
476
|
+
risk_signal: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
level: z.ZodEnum<["low", "medium", "high"]>;
|
|
478
|
+
reasons: z.ZodArray<z.ZodString, "many">;
|
|
479
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
480
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
481
|
+
mitigation_hint: z.ZodOptional<z.ZodString>;
|
|
482
|
+
}, "strict", z.ZodTypeAny, {
|
|
483
|
+
level: "high" | "low" | "medium";
|
|
484
|
+
reasons: string[];
|
|
485
|
+
files?: string[] | undefined;
|
|
486
|
+
modules?: string[] | undefined;
|
|
487
|
+
mitigation_hint?: string | undefined;
|
|
488
|
+
}, {
|
|
489
|
+
level: "high" | "low" | "medium";
|
|
490
|
+
reasons: string[];
|
|
491
|
+
files?: string[] | undefined;
|
|
492
|
+
modules?: string[] | undefined;
|
|
493
|
+
mitigation_hint?: string | undefined;
|
|
494
|
+
}>>;
|
|
495
|
+
verification_run: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
run_type: z.ZodEnum<["test", "lint", "typecheck", "manual", "build"]>;
|
|
497
|
+
status: z.ZodEnum<["started", "completed", "failed"]>;
|
|
498
|
+
command: z.ZodOptional<z.ZodString>;
|
|
499
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
500
|
+
result: z.ZodOptional<z.ZodEnum<["pass", "fail", "unknown"]>>;
|
|
501
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
}, "strict", z.ZodTypeAny, {
|
|
503
|
+
status: "failed" | "completed" | "started";
|
|
504
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
505
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
506
|
+
command?: string | undefined;
|
|
507
|
+
scope?: string | undefined;
|
|
508
|
+
duration_ms?: number | undefined;
|
|
509
|
+
}, {
|
|
510
|
+
status: "failed" | "completed" | "started";
|
|
511
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
512
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
513
|
+
command?: string | undefined;
|
|
514
|
+
scope?: string | undefined;
|
|
515
|
+
duration_ms?: number | undefined;
|
|
516
|
+
}>>;
|
|
517
|
+
diff_summary: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
file: z.ZodString;
|
|
519
|
+
lines_added: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
lines_removed: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
public_api_changed: z.ZodOptional<z.ZodBoolean>;
|
|
522
|
+
dependency_changed: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
schema_changed: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
}, "strict", z.ZodTypeAny, {
|
|
525
|
+
file: string;
|
|
526
|
+
lines_added?: number | undefined;
|
|
527
|
+
lines_removed?: number | undefined;
|
|
528
|
+
public_api_changed?: boolean | undefined;
|
|
529
|
+
dependency_changed?: boolean | undefined;
|
|
530
|
+
schema_changed?: boolean | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
file: string;
|
|
533
|
+
lines_added?: number | undefined;
|
|
534
|
+
lines_removed?: number | undefined;
|
|
535
|
+
public_api_changed?: boolean | undefined;
|
|
536
|
+
dependency_changed?: boolean | undefined;
|
|
537
|
+
schema_changed?: boolean | undefined;
|
|
538
|
+
}>>;
|
|
539
|
+
decision_link: z.ZodOptional<z.ZodObject<{
|
|
540
|
+
decision_event_id: z.ZodString;
|
|
541
|
+
summary: z.ZodString;
|
|
542
|
+
affected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
543
|
+
related_event_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
544
|
+
}, "strict", z.ZodTypeAny, {
|
|
545
|
+
summary: string;
|
|
546
|
+
decision_event_id: string;
|
|
547
|
+
affected_files?: string[] | undefined;
|
|
548
|
+
related_event_ids?: string[] | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
summary: string;
|
|
551
|
+
decision_event_id: string;
|
|
552
|
+
affected_files?: string[] | undefined;
|
|
553
|
+
related_event_ids?: string[] | undefined;
|
|
554
|
+
}>>;
|
|
555
|
+
assumption_lifecycle: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
statement: z.ZodString;
|
|
557
|
+
state: z.ZodEnum<["created", "validated", "invalidated", "unresolved"]>;
|
|
558
|
+
risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
559
|
+
related_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
560
|
+
details: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, "strict", z.ZodTypeAny, {
|
|
562
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
563
|
+
statement: string;
|
|
564
|
+
details?: string | undefined;
|
|
565
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
566
|
+
related_files?: string[] | undefined;
|
|
567
|
+
}, {
|
|
568
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
569
|
+
statement: string;
|
|
570
|
+
details?: string | undefined;
|
|
571
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
572
|
+
related_files?: string[] | undefined;
|
|
573
|
+
}>>;
|
|
574
|
+
blocker: z.ZodOptional<z.ZodObject<{
|
|
575
|
+
code: z.ZodString;
|
|
576
|
+
summary: z.ZodString;
|
|
577
|
+
severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
578
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
579
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
580
|
+
}, "strict", z.ZodTypeAny, {
|
|
581
|
+
code: string;
|
|
582
|
+
summary: string;
|
|
583
|
+
severity: "high" | "low" | "medium";
|
|
584
|
+
resolution?: string | undefined;
|
|
585
|
+
resolved?: boolean | undefined;
|
|
586
|
+
}, {
|
|
587
|
+
code: string;
|
|
588
|
+
summary: string;
|
|
589
|
+
resolution?: string | undefined;
|
|
590
|
+
severity?: "high" | "low" | "medium" | undefined;
|
|
591
|
+
resolved?: boolean | undefined;
|
|
592
|
+
}>>;
|
|
593
|
+
token_usage_checkpoint: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
category: z.ZodOptional<z.ZodString>;
|
|
595
|
+
model: z.ZodOptional<z.ZodString>;
|
|
596
|
+
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
600
|
+
}, "strict", z.ZodTypeAny, {
|
|
601
|
+
category?: string | undefined;
|
|
602
|
+
model?: string | undefined;
|
|
603
|
+
prompt_tokens?: number | undefined;
|
|
604
|
+
completion_tokens?: number | undefined;
|
|
605
|
+
total_tokens?: number | undefined;
|
|
606
|
+
estimated_cost_usd?: number | undefined;
|
|
607
|
+
}, {
|
|
608
|
+
category?: string | undefined;
|
|
609
|
+
model?: string | undefined;
|
|
610
|
+
prompt_tokens?: number | undefined;
|
|
611
|
+
completion_tokens?: number | undefined;
|
|
612
|
+
total_tokens?: number | undefined;
|
|
613
|
+
estimated_cost_usd?: number | undefined;
|
|
614
|
+
}>>;
|
|
615
|
+
session_quality: z.ZodOptional<z.ZodObject<{
|
|
616
|
+
score: z.ZodNumber;
|
|
617
|
+
verification_coverage: z.ZodOptional<z.ZodEnum<["none", "partial", "full"]>>;
|
|
618
|
+
unresolved_risks: z.ZodOptional<z.ZodNumber>;
|
|
619
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, "strict", z.ZodTypeAny, {
|
|
621
|
+
score: number;
|
|
622
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
623
|
+
unresolved_risks?: number | undefined;
|
|
624
|
+
notes?: string | undefined;
|
|
625
|
+
}, {
|
|
626
|
+
score: number;
|
|
627
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
628
|
+
unresolved_risks?: number | undefined;
|
|
629
|
+
notes?: string | undefined;
|
|
630
|
+
}>>;
|
|
631
|
+
replay_bookmark: z.ZodOptional<z.ZodObject<{
|
|
632
|
+
label: z.ZodString;
|
|
633
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
634
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
636
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, "strict", z.ZodTypeAny, {
|
|
638
|
+
label: string;
|
|
639
|
+
reason?: string | undefined;
|
|
640
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
641
|
+
event_id?: string | undefined;
|
|
642
|
+
seq?: number | undefined;
|
|
643
|
+
}, {
|
|
644
|
+
label: string;
|
|
645
|
+
reason?: string | undefined;
|
|
646
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
647
|
+
event_id?: string | undefined;
|
|
648
|
+
seq?: number | undefined;
|
|
649
|
+
}>>;
|
|
650
|
+
hotspot: z.ZodOptional<z.ZodObject<{
|
|
651
|
+
file: z.ZodString;
|
|
652
|
+
score: z.ZodNumber;
|
|
653
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
654
|
+
module: z.ZodOptional<z.ZodString>;
|
|
655
|
+
edit_count: z.ZodOptional<z.ZodNumber>;
|
|
656
|
+
lines_changed: z.ZodOptional<z.ZodNumber>;
|
|
657
|
+
}, "strict", z.ZodTypeAny, {
|
|
658
|
+
file: string;
|
|
659
|
+
score: number;
|
|
660
|
+
module?: string | undefined;
|
|
661
|
+
reasons?: string[] | undefined;
|
|
662
|
+
edit_count?: number | undefined;
|
|
663
|
+
lines_changed?: number | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
file: string;
|
|
666
|
+
score: number;
|
|
667
|
+
module?: string | undefined;
|
|
668
|
+
reasons?: string[] | undefined;
|
|
669
|
+
edit_count?: number | undefined;
|
|
670
|
+
lines_changed?: number | undefined;
|
|
671
|
+
}>>;
|
|
216
672
|
visibility: z.ZodOptional<z.ZodEnum<["raw", "review", "debug"]>>;
|
|
217
673
|
}, "strict", z.ZodTypeAny, {
|
|
218
|
-
op: "search" | "file" | "tool" | "intent" | "verification" | "
|
|
674
|
+
op: "search" | "file" | "tool" | "intent" | "decision" | "assumption" | "verification" | "artifact_created" | "intent_transition" | "risk_signal" | "verification_run" | "diff_summary" | "decision_link" | "assumption_lifecycle" | "blocker" | "token_usage_checkpoint" | "session_quality" | "replay_bookmark" | "hotspot" | "execution";
|
|
219
675
|
visibility?: "raw" | "review" | "debug" | undefined;
|
|
220
676
|
details?: Record<string, unknown> | undefined;
|
|
221
677
|
action?: string | undefined;
|
|
@@ -225,11 +681,6 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
225
681
|
priority?: number | undefined;
|
|
226
682
|
description?: string | undefined;
|
|
227
683
|
} | undefined;
|
|
228
|
-
verification?: {
|
|
229
|
-
type: "manual" | "test" | "lint" | "typecheck";
|
|
230
|
-
result: "unknown" | "fail" | "pass";
|
|
231
|
-
details?: string | undefined;
|
|
232
|
-
} | undefined;
|
|
233
684
|
decision?: {
|
|
234
685
|
summary: string;
|
|
235
686
|
options?: string[] | undefined;
|
|
@@ -242,6 +693,95 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
242
693
|
validated?: boolean | "unknown" | undefined;
|
|
243
694
|
risk?: "high" | "low" | "medium" | undefined;
|
|
244
695
|
} | undefined;
|
|
696
|
+
verification?: {
|
|
697
|
+
type: "manual" | "test" | "lint" | "typecheck";
|
|
698
|
+
result: "unknown" | "fail" | "pass";
|
|
699
|
+
details?: string | undefined;
|
|
700
|
+
} | undefined;
|
|
701
|
+
artifact_created?: {
|
|
702
|
+
title: string;
|
|
703
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
704
|
+
url?: string | undefined;
|
|
705
|
+
details?: Record<string, unknown> | undefined;
|
|
706
|
+
path?: string | undefined;
|
|
707
|
+
} | undefined;
|
|
708
|
+
intent_transition?: {
|
|
709
|
+
from: string;
|
|
710
|
+
to: string;
|
|
711
|
+
reason?: string | undefined;
|
|
712
|
+
} | undefined;
|
|
713
|
+
risk_signal?: {
|
|
714
|
+
level: "high" | "low" | "medium";
|
|
715
|
+
reasons: string[];
|
|
716
|
+
files?: string[] | undefined;
|
|
717
|
+
modules?: string[] | undefined;
|
|
718
|
+
mitigation_hint?: string | undefined;
|
|
719
|
+
} | undefined;
|
|
720
|
+
verification_run?: {
|
|
721
|
+
status: "failed" | "completed" | "started";
|
|
722
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
723
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
724
|
+
command?: string | undefined;
|
|
725
|
+
scope?: string | undefined;
|
|
726
|
+
duration_ms?: number | undefined;
|
|
727
|
+
} | undefined;
|
|
728
|
+
diff_summary?: {
|
|
729
|
+
file: string;
|
|
730
|
+
lines_added?: number | undefined;
|
|
731
|
+
lines_removed?: number | undefined;
|
|
732
|
+
public_api_changed?: boolean | undefined;
|
|
733
|
+
dependency_changed?: boolean | undefined;
|
|
734
|
+
schema_changed?: boolean | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
decision_link?: {
|
|
737
|
+
summary: string;
|
|
738
|
+
decision_event_id: string;
|
|
739
|
+
affected_files?: string[] | undefined;
|
|
740
|
+
related_event_ids?: string[] | undefined;
|
|
741
|
+
} | undefined;
|
|
742
|
+
assumption_lifecycle?: {
|
|
743
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
744
|
+
statement: string;
|
|
745
|
+
details?: string | undefined;
|
|
746
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
747
|
+
related_files?: string[] | undefined;
|
|
748
|
+
} | undefined;
|
|
749
|
+
blocker?: {
|
|
750
|
+
code: string;
|
|
751
|
+
summary: string;
|
|
752
|
+
severity: "high" | "low" | "medium";
|
|
753
|
+
resolution?: string | undefined;
|
|
754
|
+
resolved?: boolean | undefined;
|
|
755
|
+
} | undefined;
|
|
756
|
+
token_usage_checkpoint?: {
|
|
757
|
+
category?: string | undefined;
|
|
758
|
+
model?: string | undefined;
|
|
759
|
+
prompt_tokens?: number | undefined;
|
|
760
|
+
completion_tokens?: number | undefined;
|
|
761
|
+
total_tokens?: number | undefined;
|
|
762
|
+
estimated_cost_usd?: number | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
session_quality?: {
|
|
765
|
+
score: number;
|
|
766
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
767
|
+
unresolved_risks?: number | undefined;
|
|
768
|
+
notes?: string | undefined;
|
|
769
|
+
} | undefined;
|
|
770
|
+
replay_bookmark?: {
|
|
771
|
+
label: string;
|
|
772
|
+
reason?: string | undefined;
|
|
773
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
774
|
+
event_id?: string | undefined;
|
|
775
|
+
seq?: number | undefined;
|
|
776
|
+
} | undefined;
|
|
777
|
+
hotspot?: {
|
|
778
|
+
file: string;
|
|
779
|
+
score: number;
|
|
780
|
+
module?: string | undefined;
|
|
781
|
+
reasons?: string[] | undefined;
|
|
782
|
+
edit_count?: number | undefined;
|
|
783
|
+
lines_changed?: number | undefined;
|
|
784
|
+
} | undefined;
|
|
245
785
|
usage?: {
|
|
246
786
|
model?: string | undefined;
|
|
247
787
|
prompt_tokens?: number | undefined;
|
|
@@ -250,7 +790,7 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
250
790
|
estimated_cost_usd?: number | undefined;
|
|
251
791
|
} | undefined;
|
|
252
792
|
}, {
|
|
253
|
-
op: "search" | "file" | "tool" | "intent" | "verification" | "
|
|
793
|
+
op: "search" | "file" | "tool" | "intent" | "decision" | "assumption" | "verification" | "artifact_created" | "intent_transition" | "risk_signal" | "verification_run" | "diff_summary" | "decision_link" | "assumption_lifecycle" | "blocker" | "token_usage_checkpoint" | "session_quality" | "replay_bookmark" | "hotspot" | "execution";
|
|
254
794
|
visibility?: "raw" | "review" | "debug" | undefined;
|
|
255
795
|
details?: Record<string, unknown> | undefined;
|
|
256
796
|
action?: string | undefined;
|
|
@@ -260,11 +800,6 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
260
800
|
priority?: number | undefined;
|
|
261
801
|
description?: string | undefined;
|
|
262
802
|
} | undefined;
|
|
263
|
-
verification?: {
|
|
264
|
-
type: "manual" | "test" | "lint" | "typecheck";
|
|
265
|
-
result: "unknown" | "fail" | "pass";
|
|
266
|
-
details?: string | undefined;
|
|
267
|
-
} | undefined;
|
|
268
803
|
decision?: {
|
|
269
804
|
summary: string;
|
|
270
805
|
options?: string[] | undefined;
|
|
@@ -277,6 +812,95 @@ declare const gatewayActSchema: z.ZodObject<{
|
|
|
277
812
|
validated?: boolean | "unknown" | undefined;
|
|
278
813
|
risk?: "high" | "low" | "medium" | undefined;
|
|
279
814
|
} | undefined;
|
|
815
|
+
verification?: {
|
|
816
|
+
type: "manual" | "test" | "lint" | "typecheck";
|
|
817
|
+
result: "unknown" | "fail" | "pass";
|
|
818
|
+
details?: string | undefined;
|
|
819
|
+
} | undefined;
|
|
820
|
+
artifact_created?: {
|
|
821
|
+
title: string;
|
|
822
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
823
|
+
url?: string | undefined;
|
|
824
|
+
details?: Record<string, unknown> | undefined;
|
|
825
|
+
path?: string | undefined;
|
|
826
|
+
} | undefined;
|
|
827
|
+
intent_transition?: {
|
|
828
|
+
from: string;
|
|
829
|
+
to: string;
|
|
830
|
+
reason?: string | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
risk_signal?: {
|
|
833
|
+
level: "high" | "low" | "medium";
|
|
834
|
+
reasons: string[];
|
|
835
|
+
files?: string[] | undefined;
|
|
836
|
+
modules?: string[] | undefined;
|
|
837
|
+
mitigation_hint?: string | undefined;
|
|
838
|
+
} | undefined;
|
|
839
|
+
verification_run?: {
|
|
840
|
+
status: "failed" | "completed" | "started";
|
|
841
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
842
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
843
|
+
command?: string | undefined;
|
|
844
|
+
scope?: string | undefined;
|
|
845
|
+
duration_ms?: number | undefined;
|
|
846
|
+
} | undefined;
|
|
847
|
+
diff_summary?: {
|
|
848
|
+
file: string;
|
|
849
|
+
lines_added?: number | undefined;
|
|
850
|
+
lines_removed?: number | undefined;
|
|
851
|
+
public_api_changed?: boolean | undefined;
|
|
852
|
+
dependency_changed?: boolean | undefined;
|
|
853
|
+
schema_changed?: boolean | undefined;
|
|
854
|
+
} | undefined;
|
|
855
|
+
decision_link?: {
|
|
856
|
+
summary: string;
|
|
857
|
+
decision_event_id: string;
|
|
858
|
+
affected_files?: string[] | undefined;
|
|
859
|
+
related_event_ids?: string[] | undefined;
|
|
860
|
+
} | undefined;
|
|
861
|
+
assumption_lifecycle?: {
|
|
862
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
863
|
+
statement: string;
|
|
864
|
+
details?: string | undefined;
|
|
865
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
866
|
+
related_files?: string[] | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
blocker?: {
|
|
869
|
+
code: string;
|
|
870
|
+
summary: string;
|
|
871
|
+
resolution?: string | undefined;
|
|
872
|
+
severity?: "high" | "low" | "medium" | undefined;
|
|
873
|
+
resolved?: boolean | undefined;
|
|
874
|
+
} | undefined;
|
|
875
|
+
token_usage_checkpoint?: {
|
|
876
|
+
category?: string | undefined;
|
|
877
|
+
model?: string | undefined;
|
|
878
|
+
prompt_tokens?: number | undefined;
|
|
879
|
+
completion_tokens?: number | undefined;
|
|
880
|
+
total_tokens?: number | undefined;
|
|
881
|
+
estimated_cost_usd?: number | undefined;
|
|
882
|
+
} | undefined;
|
|
883
|
+
session_quality?: {
|
|
884
|
+
score: number;
|
|
885
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
886
|
+
unresolved_risks?: number | undefined;
|
|
887
|
+
notes?: string | undefined;
|
|
888
|
+
} | undefined;
|
|
889
|
+
replay_bookmark?: {
|
|
890
|
+
label: string;
|
|
891
|
+
reason?: string | undefined;
|
|
892
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
893
|
+
event_id?: string | undefined;
|
|
894
|
+
seq?: number | undefined;
|
|
895
|
+
} | undefined;
|
|
896
|
+
hotspot?: {
|
|
897
|
+
file: string;
|
|
898
|
+
score: number;
|
|
899
|
+
module?: string | undefined;
|
|
900
|
+
reasons?: string[] | undefined;
|
|
901
|
+
edit_count?: number | undefined;
|
|
902
|
+
lines_changed?: number | undefined;
|
|
903
|
+
} | undefined;
|
|
280
904
|
usage?: {
|
|
281
905
|
model?: string | undefined;
|
|
282
906
|
prompt_tokens?: number | undefined;
|
|
@@ -344,6 +968,78 @@ export declare const GATEWAY_RULES: {
|
|
|
344
968
|
readonly required_fields: readonly ["verification.type", "verification.result"];
|
|
345
969
|
readonly default_visibility: "review";
|
|
346
970
|
};
|
|
971
|
+
readonly artifact_created: {
|
|
972
|
+
readonly maps_to_tool: "record_artifact_created";
|
|
973
|
+
readonly emits_kind: "artifact_created";
|
|
974
|
+
readonly required_fields: readonly ["artifact_created.title"];
|
|
975
|
+
readonly default_visibility: "review";
|
|
976
|
+
};
|
|
977
|
+
readonly intent_transition: {
|
|
978
|
+
readonly maps_to_tool: "record_intent_transition";
|
|
979
|
+
readonly emits_kind: "intent_transition";
|
|
980
|
+
readonly required_fields: readonly ["intent_transition.from", "intent_transition.to"];
|
|
981
|
+
readonly default_visibility: "review";
|
|
982
|
+
};
|
|
983
|
+
readonly risk_signal: {
|
|
984
|
+
readonly maps_to_tool: "record_risk_signal";
|
|
985
|
+
readonly emits_kind: "risk_signal";
|
|
986
|
+
readonly required_fields: readonly ["risk_signal.level", "risk_signal.reasons"];
|
|
987
|
+
readonly default_visibility: "review";
|
|
988
|
+
};
|
|
989
|
+
readonly verification_run: {
|
|
990
|
+
readonly maps_to_tool: "record_verification_run";
|
|
991
|
+
readonly emits_kind: "verification_run";
|
|
992
|
+
readonly required_fields: readonly ["verification_run.run_type", "verification_run.status"];
|
|
993
|
+
readonly default_visibility: "review";
|
|
994
|
+
};
|
|
995
|
+
readonly diff_summary: {
|
|
996
|
+
readonly maps_to_tool: "record_diff_summary";
|
|
997
|
+
readonly emits_kind: "diff_summary";
|
|
998
|
+
readonly required_fields: readonly ["diff_summary.file"];
|
|
999
|
+
readonly default_visibility: "raw";
|
|
1000
|
+
};
|
|
1001
|
+
readonly decision_link: {
|
|
1002
|
+
readonly maps_to_tool: "record_decision_link";
|
|
1003
|
+
readonly emits_kind: "decision_link";
|
|
1004
|
+
readonly required_fields: readonly ["decision_link.decision_event_id", "decision_link.summary"];
|
|
1005
|
+
readonly default_visibility: "review";
|
|
1006
|
+
};
|
|
1007
|
+
readonly assumption_lifecycle: {
|
|
1008
|
+
readonly maps_to_tool: "record_assumption_lifecycle";
|
|
1009
|
+
readonly emits_kind: "assumption_lifecycle";
|
|
1010
|
+
readonly required_fields: readonly ["assumption_lifecycle.statement", "assumption_lifecycle.state"];
|
|
1011
|
+
readonly default_visibility: "review";
|
|
1012
|
+
};
|
|
1013
|
+
readonly blocker: {
|
|
1014
|
+
readonly maps_to_tool: "record_blocker";
|
|
1015
|
+
readonly emits_kind: "blocker";
|
|
1016
|
+
readonly required_fields: readonly ["blocker.code", "blocker.summary"];
|
|
1017
|
+
readonly default_visibility: "review";
|
|
1018
|
+
};
|
|
1019
|
+
readonly token_usage_checkpoint: {
|
|
1020
|
+
readonly maps_to_tool: "record_token_usage_checkpoint";
|
|
1021
|
+
readonly emits_kind: "token_usage_checkpoint";
|
|
1022
|
+
readonly required_fields: readonly [];
|
|
1023
|
+
readonly default_visibility: "raw";
|
|
1024
|
+
};
|
|
1025
|
+
readonly session_quality: {
|
|
1026
|
+
readonly maps_to_tool: "record_session_quality";
|
|
1027
|
+
readonly emits_kind: "session_quality";
|
|
1028
|
+
readonly required_fields: readonly ["session_quality.score"];
|
|
1029
|
+
readonly default_visibility: "review";
|
|
1030
|
+
};
|
|
1031
|
+
readonly replay_bookmark: {
|
|
1032
|
+
readonly maps_to_tool: "record_replay_bookmark";
|
|
1033
|
+
readonly emits_kind: "replay_bookmark";
|
|
1034
|
+
readonly required_fields: readonly ["replay_bookmark.label"];
|
|
1035
|
+
readonly default_visibility: "review";
|
|
1036
|
+
};
|
|
1037
|
+
readonly hotspot: {
|
|
1038
|
+
readonly maps_to_tool: "record_hotspot";
|
|
1039
|
+
readonly emits_kind: "hotspot";
|
|
1040
|
+
readonly required_fields: readonly ["hotspot.file", "hotspot.score"];
|
|
1041
|
+
readonly default_visibility: "review";
|
|
1042
|
+
};
|
|
347
1043
|
};
|
|
348
1044
|
export declare function handleRecordSessionStart(raw: z.infer<typeof sessionStartSchema>): Promise<ToolResponse>;
|
|
349
1045
|
export declare function handleRecordIntent(raw: z.infer<typeof intentSchema>): Promise<ToolResponse>;
|
|
@@ -351,6 +1047,18 @@ export declare function handleRecordActivity(raw: z.infer<typeof activitySchema>
|
|
|
351
1047
|
export declare function handleRecordDecision(raw: z.infer<typeof decisionSchema>): Promise<ToolResponse>;
|
|
352
1048
|
export declare function handleRecordAssumption(raw: z.infer<typeof assumptionSchema>): Promise<ToolResponse>;
|
|
353
1049
|
export declare function handleRecordVerification(raw: z.infer<typeof verificationSchema>): Promise<ToolResponse>;
|
|
1050
|
+
export declare function handleRecordArtifactCreated(raw: z.infer<typeof artifactCreatedSchema>): Promise<ToolResponse>;
|
|
1051
|
+
export declare function handleRecordIntentTransition(raw: z.infer<typeof intentTransitionSchema>): Promise<ToolResponse>;
|
|
1052
|
+
export declare function handleRecordRiskSignal(raw: z.infer<typeof riskSignalSchema>): Promise<ToolResponse>;
|
|
1053
|
+
export declare function handleRecordVerificationRun(raw: z.infer<typeof verificationRunSchema>): Promise<ToolResponse>;
|
|
1054
|
+
export declare function handleRecordDiffSummary(raw: z.infer<typeof diffSummarySchema>): Promise<ToolResponse>;
|
|
1055
|
+
export declare function handleRecordDecisionLink(raw: z.infer<typeof decisionLinkSchema>): Promise<ToolResponse>;
|
|
1056
|
+
export declare function handleRecordAssumptionLifecycle(raw: z.infer<typeof assumptionLifecycleSchema>): Promise<ToolResponse>;
|
|
1057
|
+
export declare function handleRecordBlocker(raw: z.infer<typeof blockerSchema>): Promise<ToolResponse>;
|
|
1058
|
+
export declare function handleRecordTokenUsageCheckpoint(raw: z.infer<typeof tokenUsageCheckpointSchema>): Promise<ToolResponse>;
|
|
1059
|
+
export declare function handleRecordSessionQuality(raw: z.infer<typeof sessionQualitySchema>): Promise<ToolResponse>;
|
|
1060
|
+
export declare function handleRecordReplayBookmark(raw: z.infer<typeof replayBookmarkSchema>): Promise<ToolResponse>;
|
|
1061
|
+
export declare function handleRecordHotspot(raw: z.infer<typeof hotspotSchema>): Promise<ToolResponse>;
|
|
354
1062
|
export declare function handleRecordSessionEnd(raw: z.infer<typeof sessionEndSchema>): Promise<ToolResponse>;
|
|
355
1063
|
export declare function handleGatewayBeginRun(raw: z.infer<typeof gatewayBeginSchema>): Promise<ToolResponse>;
|
|
356
1064
|
export declare function handleGatewayAct(raw: z.infer<typeof gatewayActSchema>): Promise<ToolResponse>;
|
|
@@ -402,6 +1110,114 @@ export declare const toolSchemas: {
|
|
|
402
1110
|
details: z.ZodOptional<z.ZodString>;
|
|
403
1111
|
};
|
|
404
1112
|
};
|
|
1113
|
+
readonly record_artifact_created: {
|
|
1114
|
+
readonly inputSchema: {
|
|
1115
|
+
artifact_type: z.ZodEnum<["file", "patch", "report", "pr", "migration", "test", "build", "other"]>;
|
|
1116
|
+
title: z.ZodString;
|
|
1117
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
readonly record_intent_transition: {
|
|
1123
|
+
readonly inputSchema: {
|
|
1124
|
+
from: z.ZodString;
|
|
1125
|
+
to: z.ZodString;
|
|
1126
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
readonly record_risk_signal: {
|
|
1130
|
+
readonly inputSchema: {
|
|
1131
|
+
level: z.ZodEnum<["low", "medium", "high"]>;
|
|
1132
|
+
reasons: z.ZodArray<z.ZodString, "many">;
|
|
1133
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1134
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1135
|
+
mitigation_hint: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
readonly record_verification_run: {
|
|
1139
|
+
readonly inputSchema: {
|
|
1140
|
+
run_type: z.ZodEnum<["test", "lint", "typecheck", "manual", "build"]>;
|
|
1141
|
+
status: z.ZodEnum<["started", "completed", "failed"]>;
|
|
1142
|
+
command: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
result: z.ZodOptional<z.ZodEnum<["pass", "fail", "unknown"]>>;
|
|
1145
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
readonly record_diff_summary: {
|
|
1149
|
+
readonly inputSchema: {
|
|
1150
|
+
file: z.ZodString;
|
|
1151
|
+
lines_added: z.ZodOptional<z.ZodNumber>;
|
|
1152
|
+
lines_removed: z.ZodOptional<z.ZodNumber>;
|
|
1153
|
+
public_api_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1154
|
+
dependency_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1155
|
+
schema_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
readonly record_decision_link: {
|
|
1159
|
+
readonly inputSchema: {
|
|
1160
|
+
decision_event_id: z.ZodString;
|
|
1161
|
+
summary: z.ZodString;
|
|
1162
|
+
affected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1163
|
+
related_event_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
readonly record_assumption_lifecycle: {
|
|
1167
|
+
readonly inputSchema: {
|
|
1168
|
+
statement: z.ZodString;
|
|
1169
|
+
state: z.ZodEnum<["created", "validated", "invalidated", "unresolved"]>;
|
|
1170
|
+
risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1171
|
+
related_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1172
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
readonly record_blocker: {
|
|
1176
|
+
readonly inputSchema: {
|
|
1177
|
+
code: z.ZodString;
|
|
1178
|
+
summary: z.ZodString;
|
|
1179
|
+
severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1180
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
1181
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
readonly record_token_usage_checkpoint: {
|
|
1185
|
+
readonly inputSchema: {
|
|
1186
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1189
|
+
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1190
|
+
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1191
|
+
estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
readonly record_session_quality: {
|
|
1195
|
+
readonly inputSchema: {
|
|
1196
|
+
score: z.ZodNumber;
|
|
1197
|
+
verification_coverage: z.ZodOptional<z.ZodEnum<["none", "partial", "full"]>>;
|
|
1198
|
+
unresolved_risks: z.ZodOptional<z.ZodNumber>;
|
|
1199
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
readonly record_replay_bookmark: {
|
|
1203
|
+
readonly inputSchema: {
|
|
1204
|
+
label: z.ZodString;
|
|
1205
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
1207
|
+
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1208
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
readonly record_hotspot: {
|
|
1212
|
+
readonly inputSchema: {
|
|
1213
|
+
file: z.ZodString;
|
|
1214
|
+
score: z.ZodNumber;
|
|
1215
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1216
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1217
|
+
edit_count: z.ZodOptional<z.ZodNumber>;
|
|
1218
|
+
lines_changed: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
405
1221
|
readonly record_session_end: {
|
|
406
1222
|
readonly inputSchema: {
|
|
407
1223
|
outcome: z.ZodEnum<["completed", "partial", "failed", "aborted"]>;
|
|
@@ -421,7 +1237,7 @@ export declare const toolSchemas: {
|
|
|
421
1237
|
};
|
|
422
1238
|
readonly gateway_act: {
|
|
423
1239
|
readonly inputSchema: {
|
|
424
|
-
op: z.ZodEnum<["file", "tool", "search", "execution", "intent", "decision", "assumption", "verification"]>;
|
|
1240
|
+
op: z.ZodEnum<["file", "tool", "search", "execution", "intent", "decision", "assumption", "verification", "artifact_created", "intent_transition", "risk_signal", "verification_run", "diff_summary", "decision_link", "assumption_lifecycle", "blocker", "token_usage_checkpoint", "session_quality", "replay_bookmark", "hotspot"]>;
|
|
425
1241
|
action: z.ZodOptional<z.ZodString>;
|
|
426
1242
|
target: z.ZodOptional<z.ZodString>;
|
|
427
1243
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -502,6 +1318,234 @@ export declare const toolSchemas: {
|
|
|
502
1318
|
result: "unknown" | "fail" | "pass";
|
|
503
1319
|
details?: string | undefined;
|
|
504
1320
|
}>>;
|
|
1321
|
+
artifact_created: z.ZodOptional<z.ZodObject<{
|
|
1322
|
+
artifact_type: z.ZodEnum<["file", "patch", "report", "pr", "migration", "test", "build", "other"]>;
|
|
1323
|
+
title: z.ZodString;
|
|
1324
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1327
|
+
}, "strict", z.ZodTypeAny, {
|
|
1328
|
+
title: string;
|
|
1329
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
1330
|
+
url?: string | undefined;
|
|
1331
|
+
details?: Record<string, unknown> | undefined;
|
|
1332
|
+
path?: string | undefined;
|
|
1333
|
+
}, {
|
|
1334
|
+
title: string;
|
|
1335
|
+
artifact_type: "file" | "other" | "report" | "test" | "patch" | "pr" | "migration" | "build";
|
|
1336
|
+
url?: string | undefined;
|
|
1337
|
+
details?: Record<string, unknown> | undefined;
|
|
1338
|
+
path?: string | undefined;
|
|
1339
|
+
}>>;
|
|
1340
|
+
intent_transition: z.ZodOptional<z.ZodObject<{
|
|
1341
|
+
from: z.ZodString;
|
|
1342
|
+
to: z.ZodString;
|
|
1343
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
}, "strict", z.ZodTypeAny, {
|
|
1345
|
+
from: string;
|
|
1346
|
+
to: string;
|
|
1347
|
+
reason?: string | undefined;
|
|
1348
|
+
}, {
|
|
1349
|
+
from: string;
|
|
1350
|
+
to: string;
|
|
1351
|
+
reason?: string | undefined;
|
|
1352
|
+
}>>;
|
|
1353
|
+
risk_signal: z.ZodOptional<z.ZodObject<{
|
|
1354
|
+
level: z.ZodEnum<["low", "medium", "high"]>;
|
|
1355
|
+
reasons: z.ZodArray<z.ZodString, "many">;
|
|
1356
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1357
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1358
|
+
mitigation_hint: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
}, "strict", z.ZodTypeAny, {
|
|
1360
|
+
level: "high" | "low" | "medium";
|
|
1361
|
+
reasons: string[];
|
|
1362
|
+
files?: string[] | undefined;
|
|
1363
|
+
modules?: string[] | undefined;
|
|
1364
|
+
mitigation_hint?: string | undefined;
|
|
1365
|
+
}, {
|
|
1366
|
+
level: "high" | "low" | "medium";
|
|
1367
|
+
reasons: string[];
|
|
1368
|
+
files?: string[] | undefined;
|
|
1369
|
+
modules?: string[] | undefined;
|
|
1370
|
+
mitigation_hint?: string | undefined;
|
|
1371
|
+
}>>;
|
|
1372
|
+
verification_run: z.ZodOptional<z.ZodObject<{
|
|
1373
|
+
run_type: z.ZodEnum<["test", "lint", "typecheck", "manual", "build"]>;
|
|
1374
|
+
status: z.ZodEnum<["started", "completed", "failed"]>;
|
|
1375
|
+
command: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
result: z.ZodOptional<z.ZodEnum<["pass", "fail", "unknown"]>>;
|
|
1378
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1379
|
+
}, "strict", z.ZodTypeAny, {
|
|
1380
|
+
status: "failed" | "completed" | "started";
|
|
1381
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
1382
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
1383
|
+
command?: string | undefined;
|
|
1384
|
+
scope?: string | undefined;
|
|
1385
|
+
duration_ms?: number | undefined;
|
|
1386
|
+
}, {
|
|
1387
|
+
status: "failed" | "completed" | "started";
|
|
1388
|
+
run_type: "manual" | "test" | "lint" | "typecheck" | "build";
|
|
1389
|
+
result?: "unknown" | "fail" | "pass" | undefined;
|
|
1390
|
+
command?: string | undefined;
|
|
1391
|
+
scope?: string | undefined;
|
|
1392
|
+
duration_ms?: number | undefined;
|
|
1393
|
+
}>>;
|
|
1394
|
+
diff_summary: z.ZodOptional<z.ZodObject<{
|
|
1395
|
+
file: z.ZodString;
|
|
1396
|
+
lines_added: z.ZodOptional<z.ZodNumber>;
|
|
1397
|
+
lines_removed: z.ZodOptional<z.ZodNumber>;
|
|
1398
|
+
public_api_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1399
|
+
dependency_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1400
|
+
schema_changed: z.ZodOptional<z.ZodBoolean>;
|
|
1401
|
+
}, "strict", z.ZodTypeAny, {
|
|
1402
|
+
file: string;
|
|
1403
|
+
lines_added?: number | undefined;
|
|
1404
|
+
lines_removed?: number | undefined;
|
|
1405
|
+
public_api_changed?: boolean | undefined;
|
|
1406
|
+
dependency_changed?: boolean | undefined;
|
|
1407
|
+
schema_changed?: boolean | undefined;
|
|
1408
|
+
}, {
|
|
1409
|
+
file: string;
|
|
1410
|
+
lines_added?: number | undefined;
|
|
1411
|
+
lines_removed?: number | undefined;
|
|
1412
|
+
public_api_changed?: boolean | undefined;
|
|
1413
|
+
dependency_changed?: boolean | undefined;
|
|
1414
|
+
schema_changed?: boolean | undefined;
|
|
1415
|
+
}>>;
|
|
1416
|
+
decision_link: z.ZodOptional<z.ZodObject<{
|
|
1417
|
+
decision_event_id: z.ZodString;
|
|
1418
|
+
summary: z.ZodString;
|
|
1419
|
+
affected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1420
|
+
related_event_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1421
|
+
}, "strict", z.ZodTypeAny, {
|
|
1422
|
+
summary: string;
|
|
1423
|
+
decision_event_id: string;
|
|
1424
|
+
affected_files?: string[] | undefined;
|
|
1425
|
+
related_event_ids?: string[] | undefined;
|
|
1426
|
+
}, {
|
|
1427
|
+
summary: string;
|
|
1428
|
+
decision_event_id: string;
|
|
1429
|
+
affected_files?: string[] | undefined;
|
|
1430
|
+
related_event_ids?: string[] | undefined;
|
|
1431
|
+
}>>;
|
|
1432
|
+
assumption_lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1433
|
+
statement: z.ZodString;
|
|
1434
|
+
state: z.ZodEnum<["created", "validated", "invalidated", "unresolved"]>;
|
|
1435
|
+
risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1436
|
+
related_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1437
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
}, "strict", z.ZodTypeAny, {
|
|
1439
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
1440
|
+
statement: string;
|
|
1441
|
+
details?: string | undefined;
|
|
1442
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
1443
|
+
related_files?: string[] | undefined;
|
|
1444
|
+
}, {
|
|
1445
|
+
state: "validated" | "created" | "invalidated" | "unresolved";
|
|
1446
|
+
statement: string;
|
|
1447
|
+
details?: string | undefined;
|
|
1448
|
+
risk?: "high" | "low" | "medium" | undefined;
|
|
1449
|
+
related_files?: string[] | undefined;
|
|
1450
|
+
}>>;
|
|
1451
|
+
blocker: z.ZodOptional<z.ZodObject<{
|
|
1452
|
+
code: z.ZodString;
|
|
1453
|
+
summary: z.ZodString;
|
|
1454
|
+
severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1455
|
+
resolved: z.ZodOptional<z.ZodBoolean>;
|
|
1456
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
}, "strict", z.ZodTypeAny, {
|
|
1458
|
+
code: string;
|
|
1459
|
+
summary: string;
|
|
1460
|
+
severity: "high" | "low" | "medium";
|
|
1461
|
+
resolution?: string | undefined;
|
|
1462
|
+
resolved?: boolean | undefined;
|
|
1463
|
+
}, {
|
|
1464
|
+
code: string;
|
|
1465
|
+
summary: string;
|
|
1466
|
+
resolution?: string | undefined;
|
|
1467
|
+
severity?: "high" | "low" | "medium" | undefined;
|
|
1468
|
+
resolved?: boolean | undefined;
|
|
1469
|
+
}>>;
|
|
1470
|
+
token_usage_checkpoint: z.ZodOptional<z.ZodObject<{
|
|
1471
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1473
|
+
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1474
|
+
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1475
|
+
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1476
|
+
estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
1477
|
+
}, "strict", z.ZodTypeAny, {
|
|
1478
|
+
category?: string | undefined;
|
|
1479
|
+
model?: string | undefined;
|
|
1480
|
+
prompt_tokens?: number | undefined;
|
|
1481
|
+
completion_tokens?: number | undefined;
|
|
1482
|
+
total_tokens?: number | undefined;
|
|
1483
|
+
estimated_cost_usd?: number | undefined;
|
|
1484
|
+
}, {
|
|
1485
|
+
category?: string | undefined;
|
|
1486
|
+
model?: string | undefined;
|
|
1487
|
+
prompt_tokens?: number | undefined;
|
|
1488
|
+
completion_tokens?: number | undefined;
|
|
1489
|
+
total_tokens?: number | undefined;
|
|
1490
|
+
estimated_cost_usd?: number | undefined;
|
|
1491
|
+
}>>;
|
|
1492
|
+
session_quality: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
score: z.ZodNumber;
|
|
1494
|
+
verification_coverage: z.ZodOptional<z.ZodEnum<["none", "partial", "full"]>>;
|
|
1495
|
+
unresolved_risks: z.ZodOptional<z.ZodNumber>;
|
|
1496
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
}, "strict", z.ZodTypeAny, {
|
|
1498
|
+
score: number;
|
|
1499
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
1500
|
+
unresolved_risks?: number | undefined;
|
|
1501
|
+
notes?: string | undefined;
|
|
1502
|
+
}, {
|
|
1503
|
+
score: number;
|
|
1504
|
+
verification_coverage?: "none" | "full" | "partial" | undefined;
|
|
1505
|
+
unresolved_risks?: number | undefined;
|
|
1506
|
+
notes?: string | undefined;
|
|
1507
|
+
}>>;
|
|
1508
|
+
replay_bookmark: z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
label: z.ZodString;
|
|
1510
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
+
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
1513
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
}, "strict", z.ZodTypeAny, {
|
|
1515
|
+
label: string;
|
|
1516
|
+
reason?: string | undefined;
|
|
1517
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1518
|
+
event_id?: string | undefined;
|
|
1519
|
+
seq?: number | undefined;
|
|
1520
|
+
}, {
|
|
1521
|
+
label: string;
|
|
1522
|
+
reason?: string | undefined;
|
|
1523
|
+
priority?: "high" | "low" | "medium" | undefined;
|
|
1524
|
+
event_id?: string | undefined;
|
|
1525
|
+
seq?: number | undefined;
|
|
1526
|
+
}>>;
|
|
1527
|
+
hotspot: z.ZodOptional<z.ZodObject<{
|
|
1528
|
+
file: z.ZodString;
|
|
1529
|
+
score: z.ZodNumber;
|
|
1530
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1531
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1532
|
+
edit_count: z.ZodOptional<z.ZodNumber>;
|
|
1533
|
+
lines_changed: z.ZodOptional<z.ZodNumber>;
|
|
1534
|
+
}, "strict", z.ZodTypeAny, {
|
|
1535
|
+
file: string;
|
|
1536
|
+
score: number;
|
|
1537
|
+
module?: string | undefined;
|
|
1538
|
+
reasons?: string[] | undefined;
|
|
1539
|
+
edit_count?: number | undefined;
|
|
1540
|
+
lines_changed?: number | undefined;
|
|
1541
|
+
}, {
|
|
1542
|
+
file: string;
|
|
1543
|
+
score: number;
|
|
1544
|
+
module?: string | undefined;
|
|
1545
|
+
reasons?: string[] | undefined;
|
|
1546
|
+
edit_count?: number | undefined;
|
|
1547
|
+
lines_changed?: number | undefined;
|
|
1548
|
+
}>>;
|
|
505
1549
|
visibility: z.ZodOptional<z.ZodEnum<["raw", "review", "debug"]>>;
|
|
506
1550
|
};
|
|
507
1551
|
};
|
|
@@ -518,7 +1562,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
518
1562
|
session_id: string;
|
|
519
1563
|
seq: number;
|
|
520
1564
|
ts: string;
|
|
521
|
-
kind:
|
|
1565
|
+
kind: "session_start";
|
|
522
1566
|
actor: {
|
|
523
1567
|
type: "agent";
|
|
524
1568
|
};
|
|
@@ -536,7 +1580,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
536
1580
|
session_id: string;
|
|
537
1581
|
seq: number;
|
|
538
1582
|
ts: string;
|
|
539
|
-
kind:
|
|
1583
|
+
kind: "intent";
|
|
540
1584
|
actor: {
|
|
541
1585
|
type: "agent";
|
|
542
1586
|
};
|
|
@@ -557,7 +1601,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
557
1601
|
session_id: string;
|
|
558
1602
|
seq: number;
|
|
559
1603
|
ts: string;
|
|
560
|
-
kind:
|
|
1604
|
+
kind: "file_op";
|
|
561
1605
|
actor: {
|
|
562
1606
|
type: "agent";
|
|
563
1607
|
};
|
|
@@ -567,7 +1611,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
567
1611
|
module: string;
|
|
568
1612
|
};
|
|
569
1613
|
payload: {
|
|
570
|
-
category:
|
|
1614
|
+
category: "file";
|
|
571
1615
|
action: string;
|
|
572
1616
|
target: string;
|
|
573
1617
|
details: {
|
|
@@ -583,7 +1627,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
583
1627
|
session_id: string;
|
|
584
1628
|
seq: number;
|
|
585
1629
|
ts: string;
|
|
586
|
-
kind:
|
|
1630
|
+
kind: "decision";
|
|
587
1631
|
actor: {
|
|
588
1632
|
type: "agent";
|
|
589
1633
|
};
|
|
@@ -605,7 +1649,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
605
1649
|
session_id: string;
|
|
606
1650
|
seq: number;
|
|
607
1651
|
ts: string;
|
|
608
|
-
kind:
|
|
1652
|
+
kind: "assumption";
|
|
609
1653
|
actor: {
|
|
610
1654
|
type: "agent";
|
|
611
1655
|
};
|
|
@@ -625,7 +1669,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
625
1669
|
session_id: string;
|
|
626
1670
|
seq: number;
|
|
627
1671
|
ts: string;
|
|
628
|
-
kind:
|
|
1672
|
+
kind: "verification";
|
|
629
1673
|
actor: {
|
|
630
1674
|
type: "agent";
|
|
631
1675
|
};
|
|
@@ -645,7 +1689,7 @@ export declare const EVENT_EXAMPLES: {
|
|
|
645
1689
|
session_id: string;
|
|
646
1690
|
seq: number;
|
|
647
1691
|
ts: string;
|
|
648
|
-
kind:
|
|
1692
|
+
kind: "session_end";
|
|
649
1693
|
actor: {
|
|
650
1694
|
type: "agent";
|
|
651
1695
|
};
|