stitchkit 0.68.11 → 0.70.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 +156 -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 +20 -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 +56 -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 +766 -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 +704 -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 +108 -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 +9 -6
- package/dist/{index-t23p2b68.js → index-0yphgata.js} +1 -1
- package/dist/{index-8vpzxg55.js → index-10gbbbaa.js} +103 -2
- package/dist/{index-hcx9yypn.js → index-38hs3a58.js} +13 -11
- package/dist/index-3xnq72rz.js +21 -0
- package/dist/index-7rey2b8s.js +73 -0
- package/dist/{index-22tjt2rk.js → index-aczggrty.js} +1 -1
- package/dist/index-bd17ytae.js +192 -0
- package/dist/{index-xyvxez9r.js → index-da1aqnhb.js} +5 -5
- package/dist/index-es0h4w26.js +63 -0
- package/dist/{index-hqza5nde.js → index-hsabxjz0.js} +78 -77
- package/dist/{index-f24xg2cw.js → index-ktsps64f.js} +4 -2
- package/dist/{index-2t6zt5cg.js → index-mjx0wt4c.js} +11 -7
- package/dist/{index-y2ctppmg.js → index-qzbg46b6.js} +10 -74
- package/dist/{index-bt5179zb.js → index-s8nt8c22.js} +16 -11
- package/dist/index-tg3m2ec5.js +157 -0
- package/dist/{index-hxh98zbm.js → index-vbf2p6me.js} +1 -1
- package/dist/index-vc498pst.js +51 -0
- package/dist/{index-pgsyp3xh.js → index-vj3vvpaa.js} +1 -192
- package/dist/index-vy5bjy07.js +2569 -0
- package/dist/{index-hb0mncmj.js → index-wc80at9n.js} +2 -2
- package/dist/{index-eqqyd9v8.js → index-wwst0td5.js} +2 -46
- package/dist/{index-ysphyxax.js → index-x1th9s8c.js} +23 -2
- package/dist/index-xbtcszs7.js +202 -0
- package/dist/{index-grgvpbch.js → index-y3w12g8d.js} +4 -2
- 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 +6 -5
- package/dist/observability/index.js +5 -4
- package/dist/realtime/request.d.ts +5 -0
- package/dist/realtime/request.d.ts.map +1 -1
- package/dist/remote.js +7 -6
- package/dist/server/index.js +13 -11
- package/dist/testing.js +6 -5
- package/dist/tool-invoker.js +7 -5
- package/dist/tools/agent-tool-error.d.ts +14 -0
- package/dist/tools/agent-tool-error.d.ts.map +1 -0
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools.js +24 -17
- package/llms-full.txt +386 -29
- package/package.json +10 -2
|
@@ -22,6 +22,7 @@ export declare const AgentStoreAppliedSchema: z.ZodObject<{
|
|
|
22
22
|
assistant: "assistant";
|
|
23
23
|
summary: "summary";
|
|
24
24
|
system: "system";
|
|
25
|
+
tool: "tool";
|
|
25
26
|
user: "user";
|
|
26
27
|
}>;
|
|
27
28
|
status: z.ZodEnum<{
|
|
@@ -73,6 +74,17 @@ export declare const AgentStoreAppliedSchema: z.ZodObject<{
|
|
|
73
74
|
success: "success";
|
|
74
75
|
}>;
|
|
75
76
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
79
|
+
approvalId: z.ZodString;
|
|
80
|
+
callId: z.ZodString;
|
|
81
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
85
|
+
approvalId: z.ZodString;
|
|
86
|
+
approved: z.ZodBoolean;
|
|
87
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
76
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
89
|
type: z.ZodLiteral<"provider">;
|
|
78
90
|
envelope: z.ZodObject<{
|
|
@@ -204,6 +216,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
204
216
|
assistant: "assistant";
|
|
205
217
|
summary: "summary";
|
|
206
218
|
system: "system";
|
|
219
|
+
tool: "tool";
|
|
207
220
|
user: "user";
|
|
208
221
|
}>;
|
|
209
222
|
status: z.ZodEnum<{
|
|
@@ -255,6 +268,17 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
255
268
|
success: "success";
|
|
256
269
|
}>;
|
|
257
270
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
273
|
+
approvalId: z.ZodString;
|
|
274
|
+
callId: z.ZodString;
|
|
275
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
279
|
+
approvalId: z.ZodString;
|
|
280
|
+
approved: z.ZodBoolean;
|
|
281
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
258
282
|
}, z.core.$strip>, z.ZodObject<{
|
|
259
283
|
type: z.ZodLiteral<"provider">;
|
|
260
284
|
envelope: z.ZodObject<{
|
|
@@ -385,6 +409,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
385
409
|
assistant: "assistant";
|
|
386
410
|
summary: "summary";
|
|
387
411
|
system: "system";
|
|
412
|
+
tool: "tool";
|
|
388
413
|
user: "user";
|
|
389
414
|
}>;
|
|
390
415
|
status: z.ZodEnum<{
|
|
@@ -436,6 +461,17 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
436
461
|
success: "success";
|
|
437
462
|
}>;
|
|
438
463
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
464
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
465
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
466
|
+
approvalId: z.ZodString;
|
|
467
|
+
callId: z.ZodString;
|
|
468
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
472
|
+
approvalId: z.ZodString;
|
|
473
|
+
approved: z.ZodBoolean;
|
|
474
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
439
475
|
}, z.core.$strip>, z.ZodObject<{
|
|
440
476
|
type: z.ZodLiteral<"provider">;
|
|
441
477
|
envelope: z.ZodObject<{
|
|
@@ -467,6 +503,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
467
503
|
assistant: "assistant";
|
|
468
504
|
summary: "summary";
|
|
469
505
|
system: "system";
|
|
506
|
+
tool: "tool";
|
|
470
507
|
user: "user";
|
|
471
508
|
}>;
|
|
472
509
|
status: z.ZodEnum<{
|
|
@@ -518,6 +555,17 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
518
555
|
success: "success";
|
|
519
556
|
}>;
|
|
520
557
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
560
|
+
approvalId: z.ZodString;
|
|
561
|
+
callId: z.ZodString;
|
|
562
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
563
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
566
|
+
approvalId: z.ZodString;
|
|
567
|
+
approved: z.ZodBoolean;
|
|
568
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
521
569
|
}, z.core.$strip>, z.ZodObject<{
|
|
522
570
|
type: z.ZodLiteral<"provider">;
|
|
523
571
|
envelope: z.ZodObject<{
|
|
@@ -653,6 +701,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
653
701
|
assistant: "assistant";
|
|
654
702
|
summary: "summary";
|
|
655
703
|
system: "system";
|
|
704
|
+
tool: "tool";
|
|
656
705
|
user: "user";
|
|
657
706
|
}>;
|
|
658
707
|
status: z.ZodEnum<{
|
|
@@ -704,6 +753,17 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
704
753
|
success: "success";
|
|
705
754
|
}>;
|
|
706
755
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
756
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
757
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
758
|
+
approvalId: z.ZodString;
|
|
759
|
+
callId: z.ZodString;
|
|
760
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
763
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
764
|
+
approvalId: z.ZodString;
|
|
765
|
+
approved: z.ZodBoolean;
|
|
766
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
707
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
708
768
|
type: z.ZodLiteral<"provider">;
|
|
709
769
|
envelope: z.ZodObject<{
|
|
@@ -834,6 +894,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
834
894
|
assistant: "assistant";
|
|
835
895
|
summary: "summary";
|
|
836
896
|
system: "system";
|
|
897
|
+
tool: "tool";
|
|
837
898
|
user: "user";
|
|
838
899
|
}>;
|
|
839
900
|
status: z.ZodEnum<{
|
|
@@ -885,6 +946,17 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
885
946
|
success: "success";
|
|
886
947
|
}>;
|
|
887
948
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
950
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
951
|
+
approvalId: z.ZodString;
|
|
952
|
+
callId: z.ZodString;
|
|
953
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
957
|
+
approvalId: z.ZodString;
|
|
958
|
+
approved: z.ZodBoolean;
|
|
959
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
888
960
|
}, z.core.$strip>, z.ZodObject<{
|
|
889
961
|
type: z.ZodLiteral<"provider">;
|
|
890
962
|
envelope: z.ZodObject<{
|
|
@@ -1015,6 +1087,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1015
1087
|
assistant: "assistant";
|
|
1016
1088
|
summary: "summary";
|
|
1017
1089
|
system: "system";
|
|
1090
|
+
tool: "tool";
|
|
1018
1091
|
user: "user";
|
|
1019
1092
|
}>;
|
|
1020
1093
|
status: z.ZodEnum<{
|
|
@@ -1066,6 +1139,17 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1066
1139
|
success: "success";
|
|
1067
1140
|
}>;
|
|
1068
1141
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1143
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1144
|
+
approvalId: z.ZodString;
|
|
1145
|
+
callId: z.ZodString;
|
|
1146
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1147
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1150
|
+
approvalId: z.ZodString;
|
|
1151
|
+
approved: z.ZodBoolean;
|
|
1152
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1069
1153
|
}, z.core.$strip>, z.ZodObject<{
|
|
1070
1154
|
type: z.ZodLiteral<"provider">;
|
|
1071
1155
|
envelope: z.ZodObject<{
|
|
@@ -1097,6 +1181,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1097
1181
|
assistant: "assistant";
|
|
1098
1182
|
summary: "summary";
|
|
1099
1183
|
system: "system";
|
|
1184
|
+
tool: "tool";
|
|
1100
1185
|
user: "user";
|
|
1101
1186
|
}>;
|
|
1102
1187
|
status: z.ZodEnum<{
|
|
@@ -1148,6 +1233,17 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
1148
1233
|
success: "success";
|
|
1149
1234
|
}>;
|
|
1150
1235
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1237
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1238
|
+
approvalId: z.ZodString;
|
|
1239
|
+
callId: z.ZodString;
|
|
1240
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1241
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1243
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1244
|
+
approvalId: z.ZodString;
|
|
1245
|
+
approved: z.ZodBoolean;
|
|
1246
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1151
1247
|
}, z.core.$strip>, z.ZodObject<{
|
|
1152
1248
|
type: z.ZodLiteral<"provider">;
|
|
1153
1249
|
envelope: z.ZodObject<{
|
|
@@ -1397,6 +1493,7 @@ export declare const AgentRunViewSchema: z.ZodObject<{
|
|
|
1397
1493
|
assistant: "assistant";
|
|
1398
1494
|
summary: "summary";
|
|
1399
1495
|
system: "system";
|
|
1496
|
+
tool: "tool";
|
|
1400
1497
|
user: "user";
|
|
1401
1498
|
}>;
|
|
1402
1499
|
status: z.ZodEnum<{
|
|
@@ -1448,6 +1545,17 @@ export declare const AgentRunViewSchema: z.ZodObject<{
|
|
|
1448
1545
|
success: "success";
|
|
1449
1546
|
}>;
|
|
1450
1547
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1548
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1549
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1550
|
+
approvalId: z.ZodString;
|
|
1551
|
+
callId: z.ZodString;
|
|
1552
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1553
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1555
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1556
|
+
approvalId: z.ZodString;
|
|
1557
|
+
approved: z.ZodBoolean;
|
|
1558
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1451
1559
|
}, z.core.$strip>, z.ZodObject<{
|
|
1452
1560
|
type: z.ZodLiteral<"provider">;
|
|
1453
1561
|
envelope: z.ZodObject<{
|
|
@@ -1480,6 +1588,7 @@ export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
|
|
|
1480
1588
|
assistant: "assistant";
|
|
1481
1589
|
summary: "summary";
|
|
1482
1590
|
system: "system";
|
|
1591
|
+
tool: "tool";
|
|
1483
1592
|
user: "user";
|
|
1484
1593
|
}>;
|
|
1485
1594
|
status: z.ZodEnum<{
|
|
@@ -1531,6 +1640,17 @@ export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
|
|
|
1531
1640
|
success: "success";
|
|
1532
1641
|
}>;
|
|
1533
1642
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1644
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1645
|
+
approvalId: z.ZodString;
|
|
1646
|
+
callId: z.ZodString;
|
|
1647
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1648
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1650
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1651
|
+
approvalId: z.ZodString;
|
|
1652
|
+
approved: z.ZodBoolean;
|
|
1653
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1534
1654
|
}, z.core.$strip>, z.ZodObject<{
|
|
1535
1655
|
type: z.ZodLiteral<"provider">;
|
|
1536
1656
|
envelope: z.ZodObject<{
|
|
@@ -1672,6 +1792,7 @@ export declare const CheckpointRunAssistantSchema: z.ZodObject<{
|
|
|
1672
1792
|
assistant: "assistant";
|
|
1673
1793
|
summary: "summary";
|
|
1674
1794
|
system: "system";
|
|
1795
|
+
tool: "tool";
|
|
1675
1796
|
user: "user";
|
|
1676
1797
|
}>;
|
|
1677
1798
|
status: z.ZodEnum<{
|
|
@@ -1723,6 +1844,17 @@ export declare const CheckpointRunAssistantSchema: z.ZodObject<{
|
|
|
1723
1844
|
success: "success";
|
|
1724
1845
|
}>;
|
|
1725
1846
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1848
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
1849
|
+
approvalId: z.ZodString;
|
|
1850
|
+
callId: z.ZodString;
|
|
1851
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
1852
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1854
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
1855
|
+
approvalId: z.ZodString;
|
|
1856
|
+
approved: z.ZodBoolean;
|
|
1857
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1726
1858
|
}, z.core.$strip>, z.ZodObject<{
|
|
1727
1859
|
type: z.ZodLiteral<"provider">;
|
|
1728
1860
|
envelope: z.ZodObject<{
|
|
@@ -1814,6 +1946,7 @@ export declare const CommitRunTerminalSchema: z.ZodObject<{
|
|
|
1814
1946
|
assistant: "assistant";
|
|
1815
1947
|
summary: "summary";
|
|
1816
1948
|
system: "system";
|
|
1949
|
+
tool: "tool";
|
|
1817
1950
|
user: "user";
|
|
1818
1951
|
}>;
|
|
1819
1952
|
status: z.ZodEnum<{
|
|
@@ -1865,6 +1998,17 @@ export declare const CommitRunTerminalSchema: z.ZodObject<{
|
|
|
1865
1998
|
success: "success";
|
|
1866
1999
|
}>;
|
|
1867
2000
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
2001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2002
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
2003
|
+
approvalId: z.ZodString;
|
|
2004
|
+
callId: z.ZodString;
|
|
2005
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2008
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
2009
|
+
approvalId: z.ZodString;
|
|
2010
|
+
approved: z.ZodBoolean;
|
|
2011
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1868
2012
|
}, z.core.$strip>, z.ZodObject<{
|
|
1869
2013
|
type: z.ZodLiteral<"provider">;
|
|
1870
2014
|
envelope: z.ZodObject<{
|
|
@@ -1988,6 +2132,7 @@ export declare const ReplaceCompactedRangeSchema: z.ZodObject<{
|
|
|
1988
2132
|
assistant: "assistant";
|
|
1989
2133
|
summary: "summary";
|
|
1990
2134
|
system: "system";
|
|
2135
|
+
tool: "tool";
|
|
1991
2136
|
user: "user";
|
|
1992
2137
|
}>;
|
|
1993
2138
|
status: z.ZodEnum<{
|
|
@@ -2039,6 +2184,17 @@ export declare const ReplaceCompactedRangeSchema: z.ZodObject<{
|
|
|
2039
2184
|
success: "success";
|
|
2040
2185
|
}>;
|
|
2041
2186
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
2187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2188
|
+
type: z.ZodLiteral<"tool-approval-request">;
|
|
2189
|
+
approvalId: z.ZodString;
|
|
2190
|
+
callId: z.ZodString;
|
|
2191
|
+
isAutomatic: z.ZodOptional<z.ZodBoolean>;
|
|
2192
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2194
|
+
type: z.ZodLiteral<"tool-approval-response">;
|
|
2195
|
+
approvalId: z.ZodString;
|
|
2196
|
+
approved: z.ZodBoolean;
|
|
2197
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2042
2198
|
}, z.core.$strip>, z.ZodObject<{
|
|
2043
2199
|
type: z.ZodLiteral<"provider">;
|
|
2044
2200
|
envelope: z.ZodObject<{
|
|
@@ -2065,6 +2221,217 @@ export type CommitRunTerminal = z.infer<typeof CommitRunTerminalSchema>;
|
|
|
2065
2221
|
export type RequestRunInterrupt = z.infer<typeof RequestRunInterruptSchema>;
|
|
2066
2222
|
export type RecoverAgentRun = z.infer<typeof RecoverAgentRunSchema>;
|
|
2067
2223
|
export type ReplaceCompactedRange = z.infer<typeof ReplaceCompactedRangeSchema>;
|
|
2224
|
+
export declare const AgentRecoverableDescriptorSchema: z.ZodObject<{
|
|
2225
|
+
conversationId: z.ZodString;
|
|
2226
|
+
run: z.ZodObject<{
|
|
2227
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2228
|
+
id: z.ZodString;
|
|
2229
|
+
conversationId: z.ZodString;
|
|
2230
|
+
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
2231
|
+
assistantMessageId: z.ZodString;
|
|
2232
|
+
state: z.ZodEnum<{
|
|
2233
|
+
abandoned: "abandoned";
|
|
2234
|
+
cancelled: "cancelled";
|
|
2235
|
+
completed: "completed";
|
|
2236
|
+
failed: "failed";
|
|
2237
|
+
interrupt_requested: "interrupt_requested";
|
|
2238
|
+
interrupted: "interrupted";
|
|
2239
|
+
queued: "queued";
|
|
2240
|
+
running: "running";
|
|
2241
|
+
superseded: "superseded";
|
|
2242
|
+
}>;
|
|
2243
|
+
revision: z.ZodInt;
|
|
2244
|
+
queuePriority: z.ZodOptional<z.ZodEnum<{
|
|
2245
|
+
"interrupt-next": "interrupt-next";
|
|
2246
|
+
}>>;
|
|
2247
|
+
executionSequence: z.ZodOptional<z.ZodInt>;
|
|
2248
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2249
|
+
fencingToken: z.ZodOptional<z.ZodInt>;
|
|
2250
|
+
terminalReason: z.ZodOptional<z.ZodEnum<{
|
|
2251
|
+
abandoned: "abandoned";
|
|
2252
|
+
absorbed: "absorbed";
|
|
2253
|
+
cancelled: "cancelled";
|
|
2254
|
+
context_overflow: "context_overflow";
|
|
2255
|
+
interrupted: "interrupted";
|
|
2256
|
+
policy_stop: "policy_stop";
|
|
2257
|
+
provider_failure: "provider_failure";
|
|
2258
|
+
provider_stop: "provider_stop";
|
|
2259
|
+
shutdown: "shutdown";
|
|
2260
|
+
success: "success";
|
|
2261
|
+
superseded: "superseded";
|
|
2262
|
+
timeout: "timeout";
|
|
2263
|
+
}>>;
|
|
2264
|
+
terminalPolicyName: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
absorbedIntoRunId: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
2267
|
+
inputTokens: z.ZodObject<{
|
|
2268
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2269
|
+
provenance: z.ZodEnum<{
|
|
2270
|
+
computed: "computed";
|
|
2271
|
+
estimated: "estimated";
|
|
2272
|
+
"provider-reported": "provider-reported";
|
|
2273
|
+
unavailable: "unavailable";
|
|
2274
|
+
}>;
|
|
2275
|
+
}, z.core.$strip>;
|
|
2276
|
+
outputTokens: z.ZodObject<{
|
|
2277
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2278
|
+
provenance: z.ZodEnum<{
|
|
2279
|
+
computed: "computed";
|
|
2280
|
+
estimated: "estimated";
|
|
2281
|
+
"provider-reported": "provider-reported";
|
|
2282
|
+
unavailable: "unavailable";
|
|
2283
|
+
}>;
|
|
2284
|
+
}, z.core.$strip>;
|
|
2285
|
+
reasoningTokens: z.ZodOptional<z.ZodObject<{
|
|
2286
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2287
|
+
provenance: z.ZodEnum<{
|
|
2288
|
+
computed: "computed";
|
|
2289
|
+
estimated: "estimated";
|
|
2290
|
+
"provider-reported": "provider-reported";
|
|
2291
|
+
unavailable: "unavailable";
|
|
2292
|
+
}>;
|
|
2293
|
+
}, z.core.$strip>>;
|
|
2294
|
+
cacheReadTokens: z.ZodOptional<z.ZodObject<{
|
|
2295
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2296
|
+
provenance: z.ZodEnum<{
|
|
2297
|
+
computed: "computed";
|
|
2298
|
+
estimated: "estimated";
|
|
2299
|
+
"provider-reported": "provider-reported";
|
|
2300
|
+
unavailable: "unavailable";
|
|
2301
|
+
}>;
|
|
2302
|
+
}, z.core.$strip>>;
|
|
2303
|
+
cacheWriteTokens: z.ZodOptional<z.ZodObject<{
|
|
2304
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2305
|
+
provenance: z.ZodEnum<{
|
|
2306
|
+
computed: "computed";
|
|
2307
|
+
estimated: "estimated";
|
|
2308
|
+
"provider-reported": "provider-reported";
|
|
2309
|
+
unavailable: "unavailable";
|
|
2310
|
+
}>;
|
|
2311
|
+
}, z.core.$strip>>;
|
|
2312
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2313
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
2314
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
2315
|
+
provenance: z.ZodEnum<{
|
|
2316
|
+
computed: "computed";
|
|
2317
|
+
estimated: "estimated";
|
|
2318
|
+
"provider-reported": "provider-reported";
|
|
2319
|
+
unavailable: "unavailable";
|
|
2320
|
+
}>;
|
|
2321
|
+
}, z.core.$strip>>;
|
|
2322
|
+
}, z.core.$strip>>;
|
|
2323
|
+
createdAt: z.ZodISODateTime;
|
|
2324
|
+
updatedAt: z.ZodISODateTime;
|
|
2325
|
+
}, z.core.$strip>;
|
|
2326
|
+
}, z.core.$strip>;
|
|
2327
|
+
export declare const AgentRecoverablePageSchema: z.ZodObject<{
|
|
2328
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2329
|
+
conversationId: z.ZodString;
|
|
2330
|
+
run: z.ZodObject<{
|
|
2331
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2332
|
+
id: z.ZodString;
|
|
2333
|
+
conversationId: z.ZodString;
|
|
2334
|
+
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
2335
|
+
assistantMessageId: z.ZodString;
|
|
2336
|
+
state: z.ZodEnum<{
|
|
2337
|
+
abandoned: "abandoned";
|
|
2338
|
+
cancelled: "cancelled";
|
|
2339
|
+
completed: "completed";
|
|
2340
|
+
failed: "failed";
|
|
2341
|
+
interrupt_requested: "interrupt_requested";
|
|
2342
|
+
interrupted: "interrupted";
|
|
2343
|
+
queued: "queued";
|
|
2344
|
+
running: "running";
|
|
2345
|
+
superseded: "superseded";
|
|
2346
|
+
}>;
|
|
2347
|
+
revision: z.ZodInt;
|
|
2348
|
+
queuePriority: z.ZodOptional<z.ZodEnum<{
|
|
2349
|
+
"interrupt-next": "interrupt-next";
|
|
2350
|
+
}>>;
|
|
2351
|
+
executionSequence: z.ZodOptional<z.ZodInt>;
|
|
2352
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2353
|
+
fencingToken: z.ZodOptional<z.ZodInt>;
|
|
2354
|
+
terminalReason: z.ZodOptional<z.ZodEnum<{
|
|
2355
|
+
abandoned: "abandoned";
|
|
2356
|
+
absorbed: "absorbed";
|
|
2357
|
+
cancelled: "cancelled";
|
|
2358
|
+
context_overflow: "context_overflow";
|
|
2359
|
+
interrupted: "interrupted";
|
|
2360
|
+
policy_stop: "policy_stop";
|
|
2361
|
+
provider_failure: "provider_failure";
|
|
2362
|
+
provider_stop: "provider_stop";
|
|
2363
|
+
shutdown: "shutdown";
|
|
2364
|
+
success: "success";
|
|
2365
|
+
superseded: "superseded";
|
|
2366
|
+
timeout: "timeout";
|
|
2367
|
+
}>>;
|
|
2368
|
+
terminalPolicyName: z.ZodOptional<z.ZodString>;
|
|
2369
|
+
absorbedIntoRunId: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
2371
|
+
inputTokens: z.ZodObject<{
|
|
2372
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2373
|
+
provenance: z.ZodEnum<{
|
|
2374
|
+
computed: "computed";
|
|
2375
|
+
estimated: "estimated";
|
|
2376
|
+
"provider-reported": "provider-reported";
|
|
2377
|
+
unavailable: "unavailable";
|
|
2378
|
+
}>;
|
|
2379
|
+
}, z.core.$strip>;
|
|
2380
|
+
outputTokens: z.ZodObject<{
|
|
2381
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2382
|
+
provenance: z.ZodEnum<{
|
|
2383
|
+
computed: "computed";
|
|
2384
|
+
estimated: "estimated";
|
|
2385
|
+
"provider-reported": "provider-reported";
|
|
2386
|
+
unavailable: "unavailable";
|
|
2387
|
+
}>;
|
|
2388
|
+
}, z.core.$strip>;
|
|
2389
|
+
reasoningTokens: z.ZodOptional<z.ZodObject<{
|
|
2390
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2391
|
+
provenance: z.ZodEnum<{
|
|
2392
|
+
computed: "computed";
|
|
2393
|
+
estimated: "estimated";
|
|
2394
|
+
"provider-reported": "provider-reported";
|
|
2395
|
+
unavailable: "unavailable";
|
|
2396
|
+
}>;
|
|
2397
|
+
}, z.core.$strip>>;
|
|
2398
|
+
cacheReadTokens: z.ZodOptional<z.ZodObject<{
|
|
2399
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2400
|
+
provenance: z.ZodEnum<{
|
|
2401
|
+
computed: "computed";
|
|
2402
|
+
estimated: "estimated";
|
|
2403
|
+
"provider-reported": "provider-reported";
|
|
2404
|
+
unavailable: "unavailable";
|
|
2405
|
+
}>;
|
|
2406
|
+
}, z.core.$strip>>;
|
|
2407
|
+
cacheWriteTokens: z.ZodOptional<z.ZodObject<{
|
|
2408
|
+
value: z.ZodOptional<z.ZodInt>;
|
|
2409
|
+
provenance: z.ZodEnum<{
|
|
2410
|
+
computed: "computed";
|
|
2411
|
+
estimated: "estimated";
|
|
2412
|
+
"provider-reported": "provider-reported";
|
|
2413
|
+
unavailable: "unavailable";
|
|
2414
|
+
}>;
|
|
2415
|
+
}, z.core.$strip>>;
|
|
2416
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2417
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
2418
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
provenance: z.ZodEnum<{
|
|
2420
|
+
computed: "computed";
|
|
2421
|
+
estimated: "estimated";
|
|
2422
|
+
"provider-reported": "provider-reported";
|
|
2423
|
+
unavailable: "unavailable";
|
|
2424
|
+
}>;
|
|
2425
|
+
}, z.core.$strip>>;
|
|
2426
|
+
}, z.core.$strip>>;
|
|
2427
|
+
createdAt: z.ZodISODateTime;
|
|
2428
|
+
updatedAt: z.ZodISODateTime;
|
|
2429
|
+
}, z.core.$strip>;
|
|
2430
|
+
}, z.core.$strip>>;
|
|
2431
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
}, z.core.$strip>;
|
|
2433
|
+
export type AgentRecoverableDescriptor = z.infer<typeof AgentRecoverableDescriptorSchema>;
|
|
2434
|
+
export type AgentRecoverablePage = z.infer<typeof AgentRecoverablePageSchema>;
|
|
2068
2435
|
export interface AgentRuntimeStore {
|
|
2069
2436
|
/**
|
|
2070
2437
|
* The whole conversation — every message and every run.
|
|
@@ -2109,6 +2476,6 @@ export interface AgentRuntimeStore {
|
|
|
2109
2476
|
scanRecoverable(input: {
|
|
2110
2477
|
cursor?: string;
|
|
2111
2478
|
limit: number;
|
|
2112
|
-
}): Promise<
|
|
2479
|
+
}): Promise<AgentRecoverablePage>;
|
|
2113
2480
|
}
|
|
2114
2481
|
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,KAAK,QAAQ,EAEb,KAAK,aAAa,EAInB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;iBAAgD,CAAC;AACtF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,KAAK,QAAQ,EAEb,KAAK,aAAa,EAInB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;iBAAgD,CAAC;AACtF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC/E,qBAAqB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACvF;;;;;;;OAOG;IACH,eAAe,CAAC,KAAK,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC3F"}
|
|
@@ -12,7 +12,7 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
12
12
|
id: string;
|
|
13
13
|
conversationId: string;
|
|
14
14
|
runId?: string | undefined;
|
|
15
|
-
role: "assistant" | "summary" | "system" | "user";
|
|
15
|
+
role: "assistant" | "summary" | "system" | "tool" | "user";
|
|
16
16
|
status: "committed" | "completed" | "failed" | "interrupted" | "streaming" | "superseded";
|
|
17
17
|
parts: ({
|
|
18
18
|
type: "text";
|
|
@@ -51,6 +51,17 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
51
51
|
toolName: string;
|
|
52
52
|
outcome: "error" | "interrupted" | "success";
|
|
53
53
|
output?: import("zod").JSONType | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: "tool-approval-request";
|
|
56
|
+
approvalId: string;
|
|
57
|
+
callId: string;
|
|
58
|
+
isAutomatic?: boolean | undefined;
|
|
59
|
+
signature?: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
type: "tool-approval-response";
|
|
62
|
+
approvalId: string;
|
|
63
|
+
approved: boolean;
|
|
64
|
+
reason?: string | undefined;
|
|
54
65
|
} | {
|
|
55
66
|
type: "provider";
|
|
56
67
|
envelope: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-commit.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/terminal-commit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,QAAQ,EAEb,KAAK,mBA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MG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;CAChC;AAuID,wBAAsB,sBAAsB,CAAC,KAAK,EAAE;IAClD,KAAK,EAAE,iBAAiB,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,uBAAuB,CAAC;IACnC,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA2DzC"}
|
|
@@ -22,5 +22,13 @@ import type { AgentMessage, AgentTerminalReason } from './schemas.js';
|
|
|
22
22
|
* the shape an invariant must not have.
|
|
23
23
|
*/
|
|
24
24
|
export declare function isSpeakableAssistantStatus(status: AgentMessage['status']): boolean;
|
|
25
|
+
/** One policy shared by projection, budgeting and compaction for terminal evidence. */
|
|
26
|
+
export interface AgentHistoryEvidencePolicy {
|
|
27
|
+
/** Default `omit`; opt in only when a host wants safe partial failure evidence. */
|
|
28
|
+
failedAssistant?: 'omit' | 'assistant-marked';
|
|
29
|
+
}
|
|
30
|
+
export declare function isAssistantHistoryEvidence(status: AgentMessage['status'], policy: AgentHistoryEvidencePolicy | undefined): boolean;
|
|
31
|
+
/** Validate one complete user turn across every durable assistant/tool record. */
|
|
32
|
+
export declare function isCompleteAgentHistoryTurn(messages: readonly AgentMessage[], policy: AgentHistoryEvidencePolicy | undefined): boolean;
|
|
25
33
|
export declare function assistantStatus(reason: AgentTerminalReason): AgentMessage['status'];
|
|
26
34
|
//# sourceMappingURL=terminal-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-status.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/terminal-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACnE;;;;;;;;;GASG;AACH;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,OAAO,CAOlF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,YAAY,CAAC,QAAQ,CAAC,CAmBnF"}
|
|
1
|
+
{"version":3,"file":"terminal-status.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/terminal-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACnE;;;;;;;;;GASG;AACH;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,OAAO,CAOlF;AAED,uFAAuF;AACvF,MAAM,WAAW,0BAA0B;IACzC,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;CAC/C;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,EAC9B,MAAM,EAAE,0BAA0B,GAAG,SAAS,GAC7C,OAAO,CAKT;AAED,kFAAkF;AAClF,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,SAAS,YAAY,EAAE,EACjC,MAAM,EAAE,0BAA0B,GAAG,SAAS,GAC7C,OAAO,CA0CT;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,YAAY,CAAC,QAAQ,CAAC,CAmBnF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** Browser-safe canonical records and delivery cursor — no runtime execution or sinks. */
|
|
2
|
+
export * from './agent-runtime/control-schema.js';
|
|
2
3
|
export * from './agent-runtime/event-schema.js';
|
|
3
4
|
export * from './agent-runtime/schemas.js';
|
|
4
5
|
//# sourceMappingURL=agent-runtime-browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runtime-browser.d.ts","sourceRoot":"","sources":["../src/agent-runtime-browser.ts"],"names":[],"mappings":"AAAA,0FAA0F;
|
|
1
|
+
{"version":3,"file":"agent-runtime-browser.d.ts","sourceRoot":"","sources":["../src/agent-runtime-browser.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|