stitchkit 0.68.11 → 0.69.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 +30 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts +155 -0
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-files.d.ts +3 -0
- package/dist/agent-runtime/coding-tool-files.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-paths.d.ts +19 -0
- package/dist/agent-runtime/coding-tool-paths.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-search-patch.d.ts +3 -0
- package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-shell.d.ts +3 -0
- package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tools.d.ts +17 -0
- package/dist/agent-runtime/coding-tools.d.ts.map +1 -0
- package/dist/agent-runtime/compaction.d.ts +2 -0
- package/dist/agent-runtime/compaction.d.ts.map +1 -1
- package/dist/agent-runtime/contained-files.d.ts +31 -0
- package/dist/agent-runtime/contained-files.d.ts.map +1 -0
- package/dist/agent-runtime/control-schema.d.ts +1074 -0
- package/dist/agent-runtime/control-schema.d.ts.map +1 -0
- package/dist/agent-runtime/conversations.d.ts +128 -0
- package/dist/agent-runtime/conversations.d.ts.map +1 -0
- package/dist/agent-runtime/event-schema.d.ts +96 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/harness-contract.d.ts +169 -0
- package/dist/agent-runtime/harness-contract.d.ts.map +1 -0
- package/dist/agent-runtime/harness-control.d.ts +25 -0
- package/dist/agent-runtime/harness-control.d.ts.map +1 -0
- package/dist/agent-runtime/harness-file-resources.d.ts +33 -0
- package/dist/agent-runtime/harness-file-resources.d.ts.map +1 -0
- package/dist/agent-runtime/harness-resources.d.ts +5 -0
- package/dist/agent-runtime/harness-resources.d.ts.map +1 -0
- package/dist/agent-runtime/harness.d.ts +12 -0
- package/dist/agent-runtime/harness.d.ts.map +1 -0
- package/dist/agent-runtime/history.d.ts +2 -0
- package/dist/agent-runtime/history.d.ts.map +1 -1
- package/dist/agent-runtime/models.d.ts +199 -0
- package/dist/agent-runtime/models.d.ts.map +1 -1
- package/dist/agent-runtime/prompt.d.ts +2 -0
- package/dist/agent-runtime/prompt.d.ts.map +1 -1
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +11 -3
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/schemas.d.ts +49 -0
- package/dist/agent-runtime/schemas.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite.d.ts +2 -0
- package/dist/agent-runtime/sqlite.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver.d.ts +61 -212
- package/dist/agent-runtime/store-driver.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +368 -1
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +12 -1
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-status.d.ts +8 -0
- package/dist/agent-runtime/terminal-status.d.ts.map +1 -1
- package/dist/agent-runtime-browser.d.ts +1 -0
- package/dist/agent-runtime-browser.d.ts.map +1 -1
- package/dist/agent-runtime-browser.js +217 -1
- package/dist/agent-runtime-coding-tools.d.ts +2 -0
- package/dist/agent-runtime-coding-tools.d.ts.map +1 -0
- package/dist/agent-runtime-coding-tools.js +706 -0
- package/dist/agent-runtime-harness.d.ts +2 -0
- package/dist/agent-runtime-harness.d.ts.map +1 -0
- package/dist/agent-runtime-harness.js +700 -0
- package/dist/agent-runtime-openrouter.d.ts +14 -1
- package/dist/agent-runtime-openrouter.d.ts.map +1 -1
- package/dist/agent-runtime-openrouter.js +211 -0
- package/dist/agent-runtime-sqlite-bun.js +4 -3
- package/dist/agent-runtime-sqlite-node.js +4 -3
- package/dist/agent-runtime.d.ts +5 -3
- package/dist/agent-runtime.d.ts.map +1 -1
- package/dist/agent-runtime.js +106 -2580
- package/dist/application/diagnostic-journal-contract.d.ts +164 -0
- package/dist/application/diagnostic-journal-contract.d.ts.map +1 -0
- package/dist/application/diagnostic-journal-manager.d.ts +12 -0
- package/dist/application/diagnostic-journal-manager.d.ts.map +1 -0
- package/dist/application/diagnostic-journal-storage.d.ts +29 -0
- package/dist/application/diagnostic-journal-storage.d.ts.map +1 -0
- package/dist/application/diagnostic-journal.d.ts +11 -0
- package/dist/application/diagnostic-journal.d.ts.map +1 -0
- package/dist/application.d.ts +2 -0
- package/dist/application.d.ts.map +1 -1
- package/dist/application.js +561 -17
- package/dist/browser/socket-io.d.ts.map +1 -1
- package/dist/cli.js +8 -6
- package/dist/{index-8vpzxg55.js → index-10gbbbaa.js} +103 -2
- package/dist/index-3eqrkqhg.js +2565 -0
- package/dist/{index-hcx9yypn.js → index-444747ww.js} +7 -7
- package/dist/{index-hxh98zbm.js → index-d1jsvkyk.js} +1 -1
- package/dist/index-es0h4w26.js +63 -0
- package/dist/{index-grgvpbch.js → index-gqdfpv4n.js} +4 -2
- package/dist/{index-bt5179zb.js → index-h7ctj1kp.js} +5 -3
- package/dist/{index-y2ctppmg.js → index-h8vn1jcr.js} +7 -73
- package/dist/{index-hqza5nde.js → index-hsabxjz0.js} +78 -77
- package/dist/index-kg9xx84n.js +73 -0
- package/dist/{index-hb0mncmj.js → index-kxxyvkka.js} +2 -2
- package/dist/{index-2t6zt5cg.js → index-mbxds404.js} +7 -5
- package/dist/{index-f24xg2cw.js → index-p1be103g.js} +1 -1
- package/dist/{index-xyvxez9r.js → index-q7gdep2c.js} +5 -5
- package/dist/{index-t23p2b68.js → index-t4dpby6e.js} +1 -1
- package/dist/index-tg3m2ec5.js +157 -0
- package/dist/index-v3dpzpjw.js +92 -0
- package/dist/{index-eqqyd9v8.js → index-wwst0td5.js} +2 -46
- package/dist/{index-ysphyxax.js → index-x1th9s8c.js} +23 -2
- package/dist/index-xxsq3ca1.js +51 -0
- package/dist/{index-22tjt2rk.js → index-zh459sfj.js} +1 -1
- package/dist/index.js +51 -37
- package/dist/internal/ai-sdk-typed.d.ts +14 -0
- package/dist/internal/ai-sdk-typed.d.ts.map +1 -0
- package/dist/node.js +5 -5
- package/dist/observability/index.js +4 -4
- package/dist/realtime/request.d.ts +5 -0
- package/dist/realtime/request.d.ts.map +1 -1
- package/dist/remote.js +6 -6
- package/dist/server/index.js +9 -9
- package/dist/testing.js +5 -5
- package/dist/tool-invoker.js +6 -5
- package/dist/tools.js +21 -17
- package/llms-full.txt +342 -27
- package/package.json +10 -2
- package/dist/{index-pgsyp3xh.js → index-x18ndp4p.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type AgentMessage, type AgentRun } from './schemas.js';
|
|
3
|
-
import { type AgentRuntimeStore } from './store.js';
|
|
3
|
+
import { type AgentRecoverablePage, type AgentRuntimeStore } from './store.js';
|
|
4
4
|
export declare const AgentRuntimeHeadSchema: z.ZodObject<{
|
|
5
5
|
schemaVersion: z.ZodLiteral<1>;
|
|
6
6
|
conversationId: z.ZodString;
|
|
@@ -117,6 +117,7 @@ export declare const AgentStoredRunSchema: z.ZodObject<{
|
|
|
117
117
|
assistant: "assistant";
|
|
118
118
|
summary: "summary";
|
|
119
119
|
system: "system";
|
|
120
|
+
tool: "tool";
|
|
120
121
|
user: "user";
|
|
121
122
|
}>;
|
|
122
123
|
status: z.ZodEnum<{
|
|
@@ -168,6 +169,17 @@ export declare const AgentStoredRunSchema: z.ZodObject<{
|
|
|
168
169
|
success: "success";
|
|
169
170
|
}>;
|
|
170
171
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
174
|
+
approvalId: z.ZodString;
|
|
175
|
+
callId: z.ZodString;
|
|
176
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
180
|
+
approvalId: z.ZodString;
|
|
181
|
+
approved: z.ZodBoolean;
|
|
182
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
171
183
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
184
|
type: z.ZodLiteral<"provider">;
|
|
173
185
|
envelope: z.ZodObject<{
|
|
@@ -200,6 +212,7 @@ export declare const AgentAdmissionReceiptSchema: z.ZodObject<{
|
|
|
200
212
|
assistant: "assistant";
|
|
201
213
|
summary: "summary";
|
|
202
214
|
system: "system";
|
|
215
|
+
tool: "tool";
|
|
203
216
|
user: "user";
|
|
204
217
|
}>;
|
|
205
218
|
status: z.ZodEnum<{
|
|
@@ -251,6 +264,17 @@ export declare const AgentAdmissionReceiptSchema: z.ZodObject<{
|
|
|
251
264
|
success: "success";
|
|
252
265
|
}>;
|
|
253
266
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
269
|
+
approvalId: z.ZodString;
|
|
270
|
+
callId: z.ZodString;
|
|
271
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
275
|
+
approvalId: z.ZodString;
|
|
276
|
+
approved: z.ZodBoolean;
|
|
277
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
254
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
255
279
|
type: z.ZodLiteral<"provider">;
|
|
256
280
|
envelope: z.ZodObject<{
|
|
@@ -286,6 +310,7 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
286
310
|
assistant: "assistant";
|
|
287
311
|
summary: "summary";
|
|
288
312
|
system: "system";
|
|
313
|
+
tool: "tool";
|
|
289
314
|
user: "user";
|
|
290
315
|
}>;
|
|
291
316
|
status: z.ZodEnum<{
|
|
@@ -337,6 +362,17 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
337
362
|
success: "success";
|
|
338
363
|
}>;
|
|
339
364
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
366
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
367
|
+
approvalId: z.ZodString;
|
|
368
|
+
callId: z.ZodString;
|
|
369
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
370
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
372
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
373
|
+
approvalId: z.ZodString;
|
|
374
|
+
approved: z.ZodBoolean;
|
|
375
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
340
376
|
}, z.core.$strip>, z.ZodObject<{
|
|
341
377
|
type: z.ZodLiteral<"provider">;
|
|
342
378
|
envelope: z.ZodObject<{
|
|
@@ -366,6 +402,7 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
366
402
|
assistant: "assistant";
|
|
367
403
|
summary: "summary";
|
|
368
404
|
system: "system";
|
|
405
|
+
tool: "tool";
|
|
369
406
|
user: "user";
|
|
370
407
|
}>;
|
|
371
408
|
status: z.ZodEnum<{
|
|
@@ -417,6 +454,17 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
417
454
|
success: "success";
|
|
418
455
|
}>;
|
|
419
456
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
458
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
459
|
+
approvalId: z.ZodString;
|
|
460
|
+
callId: z.ZodString;
|
|
461
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
462
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
464
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
465
|
+
approvalId: z.ZodString;
|
|
466
|
+
approved: z.ZodBoolean;
|
|
467
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
420
468
|
}, z.core.$strip>, z.ZodObject<{
|
|
421
469
|
type: z.ZodLiteral<"provider">;
|
|
422
470
|
envelope: z.ZodObject<{
|
|
@@ -447,6 +495,7 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
447
495
|
assistant: "assistant";
|
|
448
496
|
summary: "summary";
|
|
449
497
|
system: "system";
|
|
498
|
+
tool: "tool";
|
|
450
499
|
user: "user";
|
|
451
500
|
}>;
|
|
452
501
|
status: z.ZodEnum<{
|
|
@@ -498,6 +547,17 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
498
547
|
success: "success";
|
|
499
548
|
}>;
|
|
500
549
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
552
|
+
approvalId: z.ZodString;
|
|
553
|
+
callId: z.ZodString;
|
|
554
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
555
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
558
|
+
approvalId: z.ZodString;
|
|
559
|
+
approved: z.ZodBoolean;
|
|
560
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
501
561
|
}, z.core.$strip>, z.ZodObject<{
|
|
502
562
|
type: z.ZodLiteral<"provider">;
|
|
503
563
|
envelope: z.ZodObject<{
|
|
@@ -518,217 +578,6 @@ export declare const AgentHistoryMutationSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
518
578
|
}, z.core.$strip>;
|
|
519
579
|
}, z.core.$strip>], "type">;
|
|
520
580
|
export type AgentHistoryMutation = z.infer<typeof AgentHistoryMutationSchema>;
|
|
521
|
-
export declare const AgentRecoverableDescriptorSchema: z.ZodObject<{
|
|
522
|
-
conversationId: z.ZodString;
|
|
523
|
-
run: z.ZodObject<{
|
|
524
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
525
|
-
id: z.ZodString;
|
|
526
|
-
conversationId: z.ZodString;
|
|
527
|
-
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
528
|
-
assistantMessageId: z.ZodString;
|
|
529
|
-
state: z.ZodEnum<{
|
|
530
|
-
abandoned: "abandoned";
|
|
531
|
-
cancelled: "cancelled";
|
|
532
|
-
completed: "completed";
|
|
533
|
-
failed: "failed";
|
|
534
|
-
interrupt_requested: "interrupt_requested";
|
|
535
|
-
interrupted: "interrupted";
|
|
536
|
-
queued: "queued";
|
|
537
|
-
running: "running";
|
|
538
|
-
superseded: "superseded";
|
|
539
|
-
}>;
|
|
540
|
-
revision: z.ZodInt;
|
|
541
|
-
queuePriority: z.ZodOptional<z.ZodEnum<{
|
|
542
|
-
"interrupt-next": "interrupt-next";
|
|
543
|
-
}>>;
|
|
544
|
-
executionSequence: z.ZodOptional<z.ZodInt>;
|
|
545
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
546
|
-
fencingToken: z.ZodOptional<z.ZodInt>;
|
|
547
|
-
terminalReason: z.ZodOptional<z.ZodEnum<{
|
|
548
|
-
abandoned: "abandoned";
|
|
549
|
-
absorbed: "absorbed";
|
|
550
|
-
cancelled: "cancelled";
|
|
551
|
-
context_overflow: "context_overflow";
|
|
552
|
-
interrupted: "interrupted";
|
|
553
|
-
policy_stop: "policy_stop";
|
|
554
|
-
provider_failure: "provider_failure";
|
|
555
|
-
provider_stop: "provider_stop";
|
|
556
|
-
shutdown: "shutdown";
|
|
557
|
-
success: "success";
|
|
558
|
-
superseded: "superseded";
|
|
559
|
-
timeout: "timeout";
|
|
560
|
-
}>>;
|
|
561
|
-
terminalPolicyName: z.ZodOptional<z.ZodString>;
|
|
562
|
-
absorbedIntoRunId: z.ZodOptional<z.ZodString>;
|
|
563
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
564
|
-
inputTokens: z.ZodObject<{
|
|
565
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
566
|
-
provenance: z.ZodEnum<{
|
|
567
|
-
computed: "computed";
|
|
568
|
-
estimated: "estimated";
|
|
569
|
-
"provider-reported": "provider-reported";
|
|
570
|
-
unavailable: "unavailable";
|
|
571
|
-
}>;
|
|
572
|
-
}, z.core.$strip>;
|
|
573
|
-
outputTokens: z.ZodObject<{
|
|
574
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
575
|
-
provenance: z.ZodEnum<{
|
|
576
|
-
computed: "computed";
|
|
577
|
-
estimated: "estimated";
|
|
578
|
-
"provider-reported": "provider-reported";
|
|
579
|
-
unavailable: "unavailable";
|
|
580
|
-
}>;
|
|
581
|
-
}, z.core.$strip>;
|
|
582
|
-
reasoningTokens: z.ZodOptional<z.ZodObject<{
|
|
583
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
584
|
-
provenance: z.ZodEnum<{
|
|
585
|
-
computed: "computed";
|
|
586
|
-
estimated: "estimated";
|
|
587
|
-
"provider-reported": "provider-reported";
|
|
588
|
-
unavailable: "unavailable";
|
|
589
|
-
}>;
|
|
590
|
-
}, z.core.$strip>>;
|
|
591
|
-
cacheReadTokens: z.ZodOptional<z.ZodObject<{
|
|
592
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
593
|
-
provenance: z.ZodEnum<{
|
|
594
|
-
computed: "computed";
|
|
595
|
-
estimated: "estimated";
|
|
596
|
-
"provider-reported": "provider-reported";
|
|
597
|
-
unavailable: "unavailable";
|
|
598
|
-
}>;
|
|
599
|
-
}, z.core.$strip>>;
|
|
600
|
-
cacheWriteTokens: z.ZodOptional<z.ZodObject<{
|
|
601
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
602
|
-
provenance: z.ZodEnum<{
|
|
603
|
-
computed: "computed";
|
|
604
|
-
estimated: "estimated";
|
|
605
|
-
"provider-reported": "provider-reported";
|
|
606
|
-
unavailable: "unavailable";
|
|
607
|
-
}>;
|
|
608
|
-
}, z.core.$strip>>;
|
|
609
|
-
cost: z.ZodOptional<z.ZodObject<{
|
|
610
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
611
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
612
|
-
provenance: z.ZodEnum<{
|
|
613
|
-
computed: "computed";
|
|
614
|
-
estimated: "estimated";
|
|
615
|
-
"provider-reported": "provider-reported";
|
|
616
|
-
unavailable: "unavailable";
|
|
617
|
-
}>;
|
|
618
|
-
}, z.core.$strip>>;
|
|
619
|
-
}, z.core.$strip>>;
|
|
620
|
-
createdAt: z.ZodISODateTime;
|
|
621
|
-
updatedAt: z.ZodISODateTime;
|
|
622
|
-
}, z.core.$strip>;
|
|
623
|
-
}, z.core.$strip>;
|
|
624
|
-
export declare const AgentRecoverablePageSchema: z.ZodObject<{
|
|
625
|
-
items: z.ZodArray<z.ZodObject<{
|
|
626
|
-
conversationId: z.ZodString;
|
|
627
|
-
run: z.ZodObject<{
|
|
628
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
629
|
-
id: z.ZodString;
|
|
630
|
-
conversationId: z.ZodString;
|
|
631
|
-
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
632
|
-
assistantMessageId: z.ZodString;
|
|
633
|
-
state: z.ZodEnum<{
|
|
634
|
-
abandoned: "abandoned";
|
|
635
|
-
cancelled: "cancelled";
|
|
636
|
-
completed: "completed";
|
|
637
|
-
failed: "failed";
|
|
638
|
-
interrupt_requested: "interrupt_requested";
|
|
639
|
-
interrupted: "interrupted";
|
|
640
|
-
queued: "queued";
|
|
641
|
-
running: "running";
|
|
642
|
-
superseded: "superseded";
|
|
643
|
-
}>;
|
|
644
|
-
revision: z.ZodInt;
|
|
645
|
-
queuePriority: z.ZodOptional<z.ZodEnum<{
|
|
646
|
-
"interrupt-next": "interrupt-next";
|
|
647
|
-
}>>;
|
|
648
|
-
executionSequence: z.ZodOptional<z.ZodInt>;
|
|
649
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
650
|
-
fencingToken: z.ZodOptional<z.ZodInt>;
|
|
651
|
-
terminalReason: z.ZodOptional<z.ZodEnum<{
|
|
652
|
-
abandoned: "abandoned";
|
|
653
|
-
absorbed: "absorbed";
|
|
654
|
-
cancelled: "cancelled";
|
|
655
|
-
context_overflow: "context_overflow";
|
|
656
|
-
interrupted: "interrupted";
|
|
657
|
-
policy_stop: "policy_stop";
|
|
658
|
-
provider_failure: "provider_failure";
|
|
659
|
-
provider_stop: "provider_stop";
|
|
660
|
-
shutdown: "shutdown";
|
|
661
|
-
success: "success";
|
|
662
|
-
superseded: "superseded";
|
|
663
|
-
timeout: "timeout";
|
|
664
|
-
}>>;
|
|
665
|
-
terminalPolicyName: z.ZodOptional<z.ZodString>;
|
|
666
|
-
absorbedIntoRunId: z.ZodOptional<z.ZodString>;
|
|
667
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
668
|
-
inputTokens: z.ZodObject<{
|
|
669
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
670
|
-
provenance: z.ZodEnum<{
|
|
671
|
-
computed: "computed";
|
|
672
|
-
estimated: "estimated";
|
|
673
|
-
"provider-reported": "provider-reported";
|
|
674
|
-
unavailable: "unavailable";
|
|
675
|
-
}>;
|
|
676
|
-
}, z.core.$strip>;
|
|
677
|
-
outputTokens: z.ZodObject<{
|
|
678
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
679
|
-
provenance: z.ZodEnum<{
|
|
680
|
-
computed: "computed";
|
|
681
|
-
estimated: "estimated";
|
|
682
|
-
"provider-reported": "provider-reported";
|
|
683
|
-
unavailable: "unavailable";
|
|
684
|
-
}>;
|
|
685
|
-
}, z.core.$strip>;
|
|
686
|
-
reasoningTokens: z.ZodOptional<z.ZodObject<{
|
|
687
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
688
|
-
provenance: z.ZodEnum<{
|
|
689
|
-
computed: "computed";
|
|
690
|
-
estimated: "estimated";
|
|
691
|
-
"provider-reported": "provider-reported";
|
|
692
|
-
unavailable: "unavailable";
|
|
693
|
-
}>;
|
|
694
|
-
}, z.core.$strip>>;
|
|
695
|
-
cacheReadTokens: z.ZodOptional<z.ZodObject<{
|
|
696
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
697
|
-
provenance: z.ZodEnum<{
|
|
698
|
-
computed: "computed";
|
|
699
|
-
estimated: "estimated";
|
|
700
|
-
"provider-reported": "provider-reported";
|
|
701
|
-
unavailable: "unavailable";
|
|
702
|
-
}>;
|
|
703
|
-
}, z.core.$strip>>;
|
|
704
|
-
cacheWriteTokens: z.ZodOptional<z.ZodObject<{
|
|
705
|
-
value: z.ZodOptional<z.ZodInt>;
|
|
706
|
-
provenance: z.ZodEnum<{
|
|
707
|
-
computed: "computed";
|
|
708
|
-
estimated: "estimated";
|
|
709
|
-
"provider-reported": "provider-reported";
|
|
710
|
-
unavailable: "unavailable";
|
|
711
|
-
}>;
|
|
712
|
-
}, z.core.$strip>>;
|
|
713
|
-
cost: z.ZodOptional<z.ZodObject<{
|
|
714
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
715
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
716
|
-
provenance: z.ZodEnum<{
|
|
717
|
-
computed: "computed";
|
|
718
|
-
estimated: "estimated";
|
|
719
|
-
"provider-reported": "provider-reported";
|
|
720
|
-
unavailable: "unavailable";
|
|
721
|
-
}>;
|
|
722
|
-
}, z.core.$strip>>;
|
|
723
|
-
}, z.core.$strip>>;
|
|
724
|
-
createdAt: z.ZodISODateTime;
|
|
725
|
-
updatedAt: z.ZodISODateTime;
|
|
726
|
-
}, z.core.$strip>;
|
|
727
|
-
}, z.core.$strip>>;
|
|
728
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
729
|
-
}, z.core.$strip>;
|
|
730
|
-
export type AgentRecoverableDescriptor = z.infer<typeof AgentRecoverableDescriptorSchema>;
|
|
731
|
-
export type AgentRecoverablePage = z.infer<typeof AgentRecoverablePageSchema>;
|
|
732
581
|
export type AgentStoreCompareAndSwapResult = {
|
|
733
582
|
outcome: 'applied';
|
|
734
583
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-driver.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAKd,MAAM,WAAW,CAAC;AACnB,OAAO,
|
|
1
|
+
{"version":3,"file":"store-driver.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAKd,MAAM,WAAW,CAAC;AACnB,OAAO,EAML,KAAK,oBAAoB,EAEzB,KAAK,iBAAiB,EAcvB,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,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