stitchkit 0.60.1 → 0.62.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/dist/agent-runtime/compaction.d.ts.map +1 -1
- package/dist/agent-runtime/coordinator.d.ts +17 -2
- package/dist/agent-runtime/coordinator.d.ts.map +1 -1
- package/dist/agent-runtime/events.d.ts +16 -0
- package/dist/agent-runtime/events.d.ts.map +1 -1
- package/dist/agent-runtime/history.d.ts +39 -1
- package/dist/agent-runtime/history.d.ts.map +1 -1
- package/dist/agent-runtime/observability.d.ts +2 -0
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/agent-runtime/prompt.d.ts +1 -1
- 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-internals.d.ts +47 -0
- package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +1 -0
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/schemas.d.ts +9 -0
- package/dist/agent-runtime/schemas.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver.d.ts +11 -0
- package/dist/agent-runtime/store-driver.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +27 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +3 -3
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-status.d.ts +13 -0
- package/dist/agent-runtime/terminal-status.d.ts.map +1 -1
- package/dist/agent-runtime.js +251 -82
- package/dist/application/kernel.d.ts +23 -0
- package/dist/application/kernel.d.ts.map +1 -1
- package/dist/application/server-resource.d.ts.map +1 -1
- package/dist/application.d.ts +1 -1
- package/dist/application.d.ts.map +1 -1
- package/dist/application.js +11 -6
- package/dist/browser/socket-io.d.ts +47 -0
- package/dist/browser/socket-io.d.ts.map +1 -1
- package/dist/browser/stream.d.ts +23 -0
- package/dist/browser/stream.d.ts.map +1 -1
- package/dist/contract/index.js +1 -1
- package/dist/{index-t8xrqc9g.js → index-413xk7ga.js} +1 -1
- package/dist/{index-vtjgx3vv.js → index-58vkx74h.js} +3 -0
- package/dist/{index-82e74yfx.js → index-eabpd4tb.js} +56 -7
- package/dist/{index-2cgbdckv.js → index-s1tywej8.js} +88 -19
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +213 -17
- package/dist/internal/optional-peer.d.ts +14 -0
- package/dist/internal/optional-peer.d.ts.map +1 -0
- package/dist/node.js +1 -1
- package/dist/realtime/contract.d.ts +7 -1
- package/dist/realtime/contract.d.ts.map +1 -1
- package/dist/realtime/index.d.ts +2 -1
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/rejected-frame.d.ts +86 -0
- package/dist/realtime/rejected-frame.d.ts.map +1 -0
- package/dist/realtime/request.d.ts +24 -0
- package/dist/realtime/request.d.ts.map +1 -1
- package/dist/realtime/socket.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +196 -3
- package/dist/server/socket-io.d.ts.map +1 -1
- package/dist/server/stream.d.ts.map +1 -1
- package/dist/server/streaming-route.d.ts +130 -0
- package/dist/server/streaming-route.d.ts.map +1 -0
- package/dist/testing.js +2 -2
- package/llms-full.txt +630 -31
- package/package.json +2 -2
|
@@ -30,6 +30,7 @@ export declare const AgentStoreAppliedSchema: z.ZodObject<{
|
|
|
30
30
|
failed: "failed";
|
|
31
31
|
interrupted: "interrupted";
|
|
32
32
|
streaming: "streaming";
|
|
33
|
+
superseded: "superseded";
|
|
33
34
|
}>;
|
|
34
35
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
36
|
type: z.ZodLiteral<"text">;
|
|
@@ -105,6 +106,7 @@ export declare const AgentStoreAppliedSchema: z.ZodObject<{
|
|
|
105
106
|
interrupted: "interrupted";
|
|
106
107
|
queued: "queued";
|
|
107
108
|
running: "running";
|
|
109
|
+
superseded: "superseded";
|
|
108
110
|
}>;
|
|
109
111
|
revision: z.ZodInt;
|
|
110
112
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -117,6 +119,7 @@ export declare const AgentStoreAppliedSchema: z.ZodObject<{
|
|
|
117
119
|
provider_failure: "provider_failure";
|
|
118
120
|
shutdown: "shutdown";
|
|
119
121
|
success: "success";
|
|
122
|
+
superseded: "superseded";
|
|
120
123
|
timeout: "timeout";
|
|
121
124
|
tool_failure: "tool_failure";
|
|
122
125
|
}>>;
|
|
@@ -145,6 +148,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
145
148
|
failed: "failed";
|
|
146
149
|
interrupted: "interrupted";
|
|
147
150
|
streaming: "streaming";
|
|
151
|
+
superseded: "superseded";
|
|
148
152
|
}>;
|
|
149
153
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
154
|
type: z.ZodLiteral<"text">;
|
|
@@ -223,6 +227,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
223
227
|
interrupted: "interrupted";
|
|
224
228
|
queued: "queued";
|
|
225
229
|
running: "running";
|
|
230
|
+
superseded: "superseded";
|
|
226
231
|
}>;
|
|
227
232
|
revision: z.ZodInt;
|
|
228
233
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -235,6 +240,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
235
240
|
provider_failure: "provider_failure";
|
|
236
241
|
shutdown: "shutdown";
|
|
237
242
|
success: "success";
|
|
243
|
+
superseded: "superseded";
|
|
238
244
|
timeout: "timeout";
|
|
239
245
|
tool_failure: "tool_failure";
|
|
240
246
|
}>>;
|
|
@@ -259,6 +265,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
259
265
|
failed: "failed";
|
|
260
266
|
interrupted: "interrupted";
|
|
261
267
|
streaming: "streaming";
|
|
268
|
+
superseded: "superseded";
|
|
262
269
|
}>;
|
|
263
270
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
264
271
|
type: z.ZodLiteral<"text">;
|
|
@@ -340,6 +347,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
340
347
|
failed: "failed";
|
|
341
348
|
interrupted: "interrupted";
|
|
342
349
|
streaming: "streaming";
|
|
350
|
+
superseded: "superseded";
|
|
343
351
|
}>;
|
|
344
352
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
345
353
|
type: z.ZodLiteral<"text">;
|
|
@@ -415,6 +423,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
415
423
|
interrupted: "interrupted";
|
|
416
424
|
queued: "queued";
|
|
417
425
|
running: "running";
|
|
426
|
+
superseded: "superseded";
|
|
418
427
|
}>;
|
|
419
428
|
revision: z.ZodInt;
|
|
420
429
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -427,6 +436,7 @@ export declare const AgentStoreDuplicateSchema: z.ZodObject<{
|
|
|
427
436
|
provider_failure: "provider_failure";
|
|
428
437
|
shutdown: "shutdown";
|
|
429
438
|
success: "success";
|
|
439
|
+
superseded: "superseded";
|
|
430
440
|
timeout: "timeout";
|
|
431
441
|
tool_failure: "tool_failure";
|
|
432
442
|
}>>;
|
|
@@ -459,6 +469,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
459
469
|
failed: "failed";
|
|
460
470
|
interrupted: "interrupted";
|
|
461
471
|
streaming: "streaming";
|
|
472
|
+
superseded: "superseded";
|
|
462
473
|
}>;
|
|
463
474
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
464
475
|
type: z.ZodLiteral<"text">;
|
|
@@ -534,6 +545,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
534
545
|
interrupted: "interrupted";
|
|
535
546
|
queued: "queued";
|
|
536
547
|
running: "running";
|
|
548
|
+
superseded: "superseded";
|
|
537
549
|
}>;
|
|
538
550
|
revision: z.ZodInt;
|
|
539
551
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -546,6 +558,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
546
558
|
provider_failure: "provider_failure";
|
|
547
559
|
shutdown: "shutdown";
|
|
548
560
|
success: "success";
|
|
561
|
+
superseded: "superseded";
|
|
549
562
|
timeout: "timeout";
|
|
550
563
|
tool_failure: "tool_failure";
|
|
551
564
|
}>>;
|
|
@@ -573,6 +586,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
573
586
|
failed: "failed";
|
|
574
587
|
interrupted: "interrupted";
|
|
575
588
|
streaming: "streaming";
|
|
589
|
+
superseded: "superseded";
|
|
576
590
|
}>;
|
|
577
591
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
592
|
type: z.ZodLiteral<"text">;
|
|
@@ -651,6 +665,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
651
665
|
interrupted: "interrupted";
|
|
652
666
|
queued: "queued";
|
|
653
667
|
running: "running";
|
|
668
|
+
superseded: "superseded";
|
|
654
669
|
}>;
|
|
655
670
|
revision: z.ZodInt;
|
|
656
671
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -663,6 +678,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
663
678
|
provider_failure: "provider_failure";
|
|
664
679
|
shutdown: "shutdown";
|
|
665
680
|
success: "success";
|
|
681
|
+
superseded: "superseded";
|
|
666
682
|
timeout: "timeout";
|
|
667
683
|
tool_failure: "tool_failure";
|
|
668
684
|
}>>;
|
|
@@ -687,6 +703,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
687
703
|
failed: "failed";
|
|
688
704
|
interrupted: "interrupted";
|
|
689
705
|
streaming: "streaming";
|
|
706
|
+
superseded: "superseded";
|
|
690
707
|
}>;
|
|
691
708
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
692
709
|
type: z.ZodLiteral<"text">;
|
|
@@ -768,6 +785,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
768
785
|
failed: "failed";
|
|
769
786
|
interrupted: "interrupted";
|
|
770
787
|
streaming: "streaming";
|
|
788
|
+
superseded: "superseded";
|
|
771
789
|
}>;
|
|
772
790
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
773
791
|
type: z.ZodLiteral<"text">;
|
|
@@ -843,6 +861,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
843
861
|
interrupted: "interrupted";
|
|
844
862
|
queued: "queued";
|
|
845
863
|
running: "running";
|
|
864
|
+
superseded: "superseded";
|
|
846
865
|
}>;
|
|
847
866
|
revision: z.ZodInt;
|
|
848
867
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -855,6 +874,7 @@ export declare const AgentStoreMutationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
855
874
|
provider_failure: "provider_failure";
|
|
856
875
|
shutdown: "shutdown";
|
|
857
876
|
success: "success";
|
|
877
|
+
superseded: "superseded";
|
|
858
878
|
timeout: "timeout";
|
|
859
879
|
tool_failure: "tool_failure";
|
|
860
880
|
}>>;
|
|
@@ -890,6 +910,7 @@ export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
|
|
|
890
910
|
failed: "failed";
|
|
891
911
|
interrupted: "interrupted";
|
|
892
912
|
streaming: "streaming";
|
|
913
|
+
superseded: "superseded";
|
|
893
914
|
}>;
|
|
894
915
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
895
916
|
type: z.ZodLiteral<"text">;
|
|
@@ -965,6 +986,7 @@ export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
|
|
|
965
986
|
interrupted: "interrupted";
|
|
966
987
|
queued: "queued";
|
|
967
988
|
running: "running";
|
|
989
|
+
superseded: "superseded";
|
|
968
990
|
}>;
|
|
969
991
|
revision: z.ZodInt;
|
|
970
992
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
@@ -977,6 +999,7 @@ export declare const AcceptInputAndAssignRunSchema: z.ZodObject<{
|
|
|
977
999
|
provider_failure: "provider_failure";
|
|
978
1000
|
shutdown: "shutdown";
|
|
979
1001
|
success: "success";
|
|
1002
|
+
superseded: "superseded";
|
|
980
1003
|
timeout: "timeout";
|
|
981
1004
|
tool_failure: "tool_failure";
|
|
982
1005
|
}>>;
|
|
@@ -1015,6 +1038,7 @@ export declare const CheckpointRunAssistantSchema: z.ZodObject<{
|
|
|
1015
1038
|
failed: "failed";
|
|
1016
1039
|
interrupted: "interrupted";
|
|
1017
1040
|
streaming: "streaming";
|
|
1041
|
+
superseded: "superseded";
|
|
1018
1042
|
}>;
|
|
1019
1043
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1020
1044
|
type: z.ZodLiteral<"text">;
|
|
@@ -1099,6 +1123,7 @@ export declare const CommitRunTerminalSchema: z.ZodObject<{
|
|
|
1099
1123
|
failed: "failed";
|
|
1100
1124
|
interrupted: "interrupted";
|
|
1101
1125
|
streaming: "streaming";
|
|
1126
|
+
superseded: "superseded";
|
|
1102
1127
|
}>;
|
|
1103
1128
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1104
1129
|
type: z.ZodLiteral<"text">;
|
|
@@ -1167,6 +1192,7 @@ export declare const CommitRunTerminalSchema: z.ZodObject<{
|
|
|
1167
1192
|
provider_failure: "provider_failure";
|
|
1168
1193
|
shutdown: "shutdown";
|
|
1169
1194
|
success: "success";
|
|
1195
|
+
superseded: "superseded";
|
|
1170
1196
|
timeout: "timeout";
|
|
1171
1197
|
tool_failure: "tool_failure";
|
|
1172
1198
|
}>;
|
|
@@ -1208,6 +1234,7 @@ export declare const ReplaceCompactedRangeSchema: z.ZodObject<{
|
|
|
1208
1234
|
failed: "failed";
|
|
1209
1235
|
interrupted: "interrupted";
|
|
1210
1236
|
streaming: "streaming";
|
|
1237
|
+
superseded: "superseded";
|
|
1211
1238
|
}>;
|
|
1212
1239
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1213
1240
|
type: z.ZodLiteral<"text">;
|
|
@@ -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,EAKL,KAAK,aAAa,EAGnB,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,EAKL,KAAK,aAAa,EAGnB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;iBAAgD,CAAC;AACtF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGlC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC3F,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACtE,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACzF,mBAAmB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnF,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACtE,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,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;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,OAAO,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;CAC5D"}
|
|
@@ -13,7 +13,7 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
13
13
|
conversationId: string;
|
|
14
14
|
runId?: string | undefined;
|
|
15
15
|
role: "assistant" | "summary" | "system" | "user";
|
|
16
|
-
status: "committed" | "completed" | "failed" | "interrupted" | "streaming";
|
|
16
|
+
status: "committed" | "completed" | "failed" | "interrupted" | "streaming" | "superseded";
|
|
17
17
|
parts: ({
|
|
18
18
|
type: "text";
|
|
19
19
|
text: string;
|
|
@@ -72,11 +72,11 @@ export declare function appliedSnapshot(result: AgentStoreMutationResult, operat
|
|
|
72
72
|
conversationId: string;
|
|
73
73
|
inputMessageIds: string[];
|
|
74
74
|
assistantMessageId: string;
|
|
75
|
-
state: "abandoned" | "cancelled" | "completed" | "failed" | "interrupt_requested" | "interrupted" | "queued" | "running";
|
|
75
|
+
state: "abandoned" | "cancelled" | "completed" | "failed" | "interrupt_requested" | "interrupted" | "queued" | "running" | "superseded";
|
|
76
76
|
revision: number;
|
|
77
77
|
ownerId?: string | undefined;
|
|
78
78
|
fencingToken?: number | undefined;
|
|
79
|
-
terminalReason?: "abandoned" | "cancelled" | "interrupted" | "policy_stop" | "provider_failure" | "shutdown" | "success" | "timeout" | "tool_failure" | undefined;
|
|
79
|
+
terminalReason?: "abandoned" | "cancelled" | "interrupted" | "policy_stop" | "provider_failure" | "shutdown" | "success" | "superseded" | "timeout" | "tool_failure" | undefined;
|
|
80
80
|
terminalPolicyName?: string | undefined;
|
|
81
81
|
createdAt: string;
|
|
82
82
|
updatedAt: string;
|
|
@@ -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,EACb,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAG3E,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAY,SAAS,EAAE,MAAM,EAG5B;CACF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlF;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,QAAQ,CAAC;IACd,SAAS,EAAE,YAAY,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E,QAAQ,EAAE,aAAa,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;
|
|
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,EACb,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAG3E,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAY,SAAS,EAAE,MAAM,EAG5B;CACF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlF;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,QAAQ,CAAC;IACd,SAAS,EAAE,YAAY,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;IAC5E,QAAQ,EAAE,aAAa,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAmFD,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,CA4CzC"}
|
|
@@ -9,5 +9,18 @@ import type { AgentMessage, AgentTerminalReason } from './schemas';
|
|
|
9
9
|
* value — the check and the thing checked moving together, which is the one
|
|
10
10
|
* shape an invariant must not have.
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
* Whether an assistant record of this status may still reach the model.
|
|
14
|
+
*
|
|
15
|
+
* The same home as `assistantStatus`, and for the same reason. Three separate
|
|
16
|
+
* walkers ask this question — the history projection, compaction, and the token
|
|
17
|
+
* budget — and each used to answer it with its own inline list. Two of those
|
|
18
|
+
* lists were blacklists, so adding `superseded` to the enum left both saying
|
|
19
|
+
* yes: compaction summarised a discarded fragment back into the conversation
|
|
20
|
+
* and deleted its record, and the budget protected it from eviction while never
|
|
21
|
+
* sending it. A list that must be edited in three places when the enum grows is
|
|
22
|
+
* the shape an invariant must not have.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isSpeakableAssistantStatus(status: AgentMessage['status']): boolean;
|
|
12
25
|
export declare function assistantStatus(reason: AgentTerminalReason): AgentMessage['status'];
|
|
13
26
|
//# 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,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,YAAY,CAAC,QAAQ,CAAC,
|
|
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,CAWnF"}
|