stitchkit 0.65.0 → 0.66.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.
Files changed (32) hide show
  1. package/dist/agent-runtime/coordinator.d.ts +8 -5
  2. package/dist/agent-runtime/coordinator.d.ts.map +1 -1
  3. package/dist/agent-runtime/events.d.ts +36 -30
  4. package/dist/agent-runtime/events.d.ts.map +1 -1
  5. package/dist/agent-runtime/injection.d.ts +28 -0
  6. package/dist/agent-runtime/injection.d.ts.map +1 -0
  7. package/dist/agent-runtime/observability.d.ts +22 -20
  8. package/dist/agent-runtime/observability.d.ts.map +1 -1
  9. package/dist/agent-runtime/prompt.d.ts +11 -1
  10. package/dist/agent-runtime/prompt.d.ts.map +1 -1
  11. package/dist/agent-runtime/run-execution.d.ts +11 -0
  12. package/dist/agent-runtime/run-execution.d.ts.map +1 -1
  13. package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
  14. package/dist/agent-runtime/runtime.d.ts.map +1 -1
  15. package/dist/agent-runtime/schemas.d.ts +75 -21
  16. package/dist/agent-runtime/schemas.d.ts.map +1 -1
  17. package/dist/agent-runtime/store-driver.d.ts +21 -15
  18. package/dist/agent-runtime/store-driver.d.ts.map +1 -1
  19. package/dist/agent-runtime/store.d.ts +280 -46
  20. package/dist/agent-runtime/store.d.ts.map +1 -1
  21. package/dist/agent-runtime/terminal-commit.d.ts +33 -3
  22. package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
  23. package/dist/agent-runtime/terminal-status.d.ts.map +1 -1
  24. package/dist/agent-runtime-openrouter.js +1 -1
  25. package/dist/agent-runtime.d.ts +2 -2
  26. package/dist/agent-runtime.d.ts.map +1 -1
  27. package/dist/agent-runtime.js +385 -97
  28. package/dist/{index-sbkyvacf.js → index-fhsmrzj7.js} +45 -5
  29. package/dist/testing/agent-store-conformance.d.ts.map +1 -1
  30. package/dist/testing.js +149 -1
  31. package/llms-full.txt +252 -18
  32. package/package.json +1 -1
@@ -6,10 +6,13 @@
6
6
  * run's partial answer stays part of the conversation; a superseded run's does
7
7
  * not reach the model again.
8
8
  *
9
- * A fourth behaviour hand the input to the loop between tool calls and let the
10
- * run continue shipped as `inject` in 0.63.0 and was withdrawn in 0.65.0. It
11
- * committed the absorption durably before the answer existed, which left an
12
- * accepted input that no path could answer. The redesign is tracked separately.
9
+ * `inject` is the fourth: the running loop takes the successor's input into its
10
+ * prompt at a step boundary and answers it too. To the coordinator it is
11
+ * `queue` it never ends the run in flight and the successor stays an
12
+ * ordinary queued run until the absorbing run's terminal commit says otherwise.
13
+ * That ordering is the correction to the version withdrawn in 0.65.0, which
14
+ * committed the absorption at the boundary, before the answer existed (→ ADR
15
+ * 0113).
13
16
  *
14
17
  * The runtime cannot decide that on its own, because the fact it turns on —
15
18
  * whether anyone saw the partial answer — belongs to the delivery surface. A
@@ -18,7 +21,7 @@
18
21
  * `inputPolicy` accepting a function of the input: one application can hold
19
22
  * both surfaces.
20
23
  */
21
- export type AgentInputPolicy = 'queue' | 'interrupt' | 'supersede';
24
+ export type AgentInputPolicy = 'queue' | 'inject' | 'interrupt' | 'supersede';
22
25
  export type AgentStopReason = 'user-interrupt' | 'supersede' | 'timeout' | 'shutdown';
23
26
  export interface AgentCoordinatedRun<RESULT> {
24
27
  runId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtF,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc,CAAC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H,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAiBD,wBAAgB,6BAA6B,IAAI,uBAAuB,CAiJvE"}
@@ -106,6 +106,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
106
106
  fencingToken: z.ZodOptional<z.ZodInt>;
107
107
  terminalReason: z.ZodOptional<z.ZodEnum<{
108
108
  abandoned: "abandoned";
109
+ absorbed: "absorbed";
109
110
  cancelled: "cancelled";
110
111
  context_overflow: "context_overflow";
111
112
  interrupted: "interrupted";
@@ -118,9 +119,10 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
118
119
  timeout: "timeout";
119
120
  }>>;
120
121
  terminalPolicyName: z.ZodOptional<z.ZodString>;
122
+ absorbedIntoRunId: z.ZodOptional<z.ZodString>;
121
123
  usage: z.ZodOptional<z.ZodObject<{
122
124
  inputTokens: z.ZodObject<{
123
- value: z.ZodOptional<z.ZodNumber>;
125
+ value: z.ZodOptional<z.ZodInt>;
124
126
  provenance: z.ZodEnum<{
125
127
  computed: "computed";
126
128
  estimated: "estimated";
@@ -129,7 +131,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
129
131
  }>;
130
132
  }, z.core.$strip>;
131
133
  outputTokens: z.ZodObject<{
132
- value: z.ZodOptional<z.ZodNumber>;
134
+ value: z.ZodOptional<z.ZodInt>;
133
135
  provenance: z.ZodEnum<{
134
136
  computed: "computed";
135
137
  estimated: "estimated";
@@ -138,7 +140,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
138
140
  }>;
139
141
  }, z.core.$strip>;
140
142
  reasoningTokens: z.ZodOptional<z.ZodObject<{
141
- value: z.ZodOptional<z.ZodNumber>;
143
+ value: z.ZodOptional<z.ZodInt>;
142
144
  provenance: z.ZodEnum<{
143
145
  computed: "computed";
144
146
  estimated: "estimated";
@@ -147,7 +149,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
147
149
  }>;
148
150
  }, z.core.$strip>>;
149
151
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
150
- value: z.ZodOptional<z.ZodNumber>;
152
+ value: z.ZodOptional<z.ZodInt>;
151
153
  provenance: z.ZodEnum<{
152
154
  computed: "computed";
153
155
  estimated: "estimated";
@@ -156,7 +158,7 @@ export declare const AgentAdmissionEventSchema: z.ZodObject<{
156
158
  }>;
157
159
  }, z.core.$strip>>;
158
160
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
159
- value: z.ZodOptional<z.ZodNumber>;
161
+ value: z.ZodOptional<z.ZodInt>;
160
162
  provenance: z.ZodEnum<{
161
163
  computed: "computed";
162
164
  estimated: "estimated";
@@ -411,7 +413,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
411
413
  partial: z.ZodBoolean;
412
414
  usage: z.ZodObject<{
413
415
  inputTokens: z.ZodObject<{
414
- value: z.ZodOptional<z.ZodNumber>;
416
+ value: z.ZodOptional<z.ZodInt>;
415
417
  provenance: z.ZodEnum<{
416
418
  computed: "computed";
417
419
  estimated: "estimated";
@@ -420,7 +422,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
420
422
  }>;
421
423
  }, z.core.$strip>;
422
424
  outputTokens: z.ZodObject<{
423
- value: z.ZodOptional<z.ZodNumber>;
425
+ value: z.ZodOptional<z.ZodInt>;
424
426
  provenance: z.ZodEnum<{
425
427
  computed: "computed";
426
428
  estimated: "estimated";
@@ -429,7 +431,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
429
431
  }>;
430
432
  }, z.core.$strip>;
431
433
  reasoningTokens: z.ZodOptional<z.ZodObject<{
432
- value: z.ZodOptional<z.ZodNumber>;
434
+ value: z.ZodOptional<z.ZodInt>;
433
435
  provenance: z.ZodEnum<{
434
436
  computed: "computed";
435
437
  estimated: "estimated";
@@ -438,7 +440,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
438
440
  }>;
439
441
  }, z.core.$strip>>;
440
442
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
441
- value: z.ZodOptional<z.ZodNumber>;
443
+ value: z.ZodOptional<z.ZodInt>;
442
444
  provenance: z.ZodEnum<{
443
445
  computed: "computed";
444
446
  estimated: "estimated";
@@ -447,7 +449,7 @@ export declare const AgentCheckpointEventSchema: z.ZodObject<{
447
449
  }>;
448
450
  }, z.core.$strip>>;
449
451
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
450
- value: z.ZodOptional<z.ZodNumber>;
452
+ value: z.ZodOptional<z.ZodInt>;
451
453
  provenance: z.ZodEnum<{
452
454
  computed: "computed";
453
455
  estimated: "estimated";
@@ -516,6 +518,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
516
518
  snapshotVersion: z.ZodInt;
517
519
  reason: z.ZodEnum<{
518
520
  abandoned: "abandoned";
521
+ absorbed: "absorbed";
519
522
  cancelled: "cancelled";
520
523
  context_overflow: "context_overflow";
521
524
  interrupted: "interrupted";
@@ -610,7 +613,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
610
613
  partial: z.ZodBoolean;
611
614
  usage: z.ZodObject<{
612
615
  inputTokens: z.ZodObject<{
613
- value: z.ZodOptional<z.ZodNumber>;
616
+ value: z.ZodOptional<z.ZodInt>;
614
617
  provenance: z.ZodEnum<{
615
618
  computed: "computed";
616
619
  estimated: "estimated";
@@ -619,7 +622,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
619
622
  }>;
620
623
  }, z.core.$strip>;
621
624
  outputTokens: z.ZodObject<{
622
- value: z.ZodOptional<z.ZodNumber>;
625
+ value: z.ZodOptional<z.ZodInt>;
623
626
  provenance: z.ZodEnum<{
624
627
  computed: "computed";
625
628
  estimated: "estimated";
@@ -628,7 +631,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
628
631
  }>;
629
632
  }, z.core.$strip>;
630
633
  reasoningTokens: z.ZodOptional<z.ZodObject<{
631
- value: z.ZodOptional<z.ZodNumber>;
634
+ value: z.ZodOptional<z.ZodInt>;
632
635
  provenance: z.ZodEnum<{
633
636
  computed: "computed";
634
637
  estimated: "estimated";
@@ -637,7 +640,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
637
640
  }>;
638
641
  }, z.core.$strip>>;
639
642
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
640
- value: z.ZodOptional<z.ZodNumber>;
643
+ value: z.ZodOptional<z.ZodInt>;
641
644
  provenance: z.ZodEnum<{
642
645
  computed: "computed";
643
646
  estimated: "estimated";
@@ -646,7 +649,7 @@ export declare const AgentTerminalEventSchema: z.ZodObject<{
646
649
  }>;
647
650
  }, z.core.$strip>>;
648
651
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
649
- value: z.ZodOptional<z.ZodNumber>;
652
+ value: z.ZodOptional<z.ZodInt>;
650
653
  provenance: z.ZodEnum<{
651
654
  computed: "computed";
652
655
  estimated: "estimated";
@@ -775,6 +778,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
775
778
  fencingToken: z.ZodOptional<z.ZodInt>;
776
779
  terminalReason: z.ZodOptional<z.ZodEnum<{
777
780
  abandoned: "abandoned";
781
+ absorbed: "absorbed";
778
782
  cancelled: "cancelled";
779
783
  context_overflow: "context_overflow";
780
784
  interrupted: "interrupted";
@@ -787,9 +791,10 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
787
791
  timeout: "timeout";
788
792
  }>>;
789
793
  terminalPolicyName: z.ZodOptional<z.ZodString>;
794
+ absorbedIntoRunId: z.ZodOptional<z.ZodString>;
790
795
  usage: z.ZodOptional<z.ZodObject<{
791
796
  inputTokens: z.ZodObject<{
792
- value: z.ZodOptional<z.ZodNumber>;
797
+ value: z.ZodOptional<z.ZodInt>;
793
798
  provenance: z.ZodEnum<{
794
799
  computed: "computed";
795
800
  estimated: "estimated";
@@ -798,7 +803,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
798
803
  }>;
799
804
  }, z.core.$strip>;
800
805
  outputTokens: z.ZodObject<{
801
- value: z.ZodOptional<z.ZodNumber>;
806
+ value: z.ZodOptional<z.ZodInt>;
802
807
  provenance: z.ZodEnum<{
803
808
  computed: "computed";
804
809
  estimated: "estimated";
@@ -807,7 +812,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
807
812
  }>;
808
813
  }, z.core.$strip>;
809
814
  reasoningTokens: z.ZodOptional<z.ZodObject<{
810
- value: z.ZodOptional<z.ZodNumber>;
815
+ value: z.ZodOptional<z.ZodInt>;
811
816
  provenance: z.ZodEnum<{
812
817
  computed: "computed";
813
818
  estimated: "estimated";
@@ -816,7 +821,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
816
821
  }>;
817
822
  }, z.core.$strip>>;
818
823
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
819
- value: z.ZodOptional<z.ZodNumber>;
824
+ value: z.ZodOptional<z.ZodInt>;
820
825
  provenance: z.ZodEnum<{
821
826
  computed: "computed";
822
827
  estimated: "estimated";
@@ -825,7 +830,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
825
830
  }>;
826
831
  }, z.core.$strip>>;
827
832
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
828
- value: z.ZodOptional<z.ZodNumber>;
833
+ value: z.ZodOptional<z.ZodInt>;
829
834
  provenance: z.ZodEnum<{
830
835
  computed: "computed";
831
836
  estimated: "estimated";
@@ -1068,7 +1073,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1068
1073
  partial: z.ZodBoolean;
1069
1074
  usage: z.ZodObject<{
1070
1075
  inputTokens: z.ZodObject<{
1071
- value: z.ZodOptional<z.ZodNumber>;
1076
+ value: z.ZodOptional<z.ZodInt>;
1072
1077
  provenance: z.ZodEnum<{
1073
1078
  computed: "computed";
1074
1079
  estimated: "estimated";
@@ -1077,7 +1082,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1077
1082
  }>;
1078
1083
  }, z.core.$strip>;
1079
1084
  outputTokens: z.ZodObject<{
1080
- value: z.ZodOptional<z.ZodNumber>;
1085
+ value: z.ZodOptional<z.ZodInt>;
1081
1086
  provenance: z.ZodEnum<{
1082
1087
  computed: "computed";
1083
1088
  estimated: "estimated";
@@ -1086,7 +1091,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1086
1091
  }>;
1087
1092
  }, z.core.$strip>;
1088
1093
  reasoningTokens: z.ZodOptional<z.ZodObject<{
1089
- value: z.ZodOptional<z.ZodNumber>;
1094
+ value: z.ZodOptional<z.ZodInt>;
1090
1095
  provenance: z.ZodEnum<{
1091
1096
  computed: "computed";
1092
1097
  estimated: "estimated";
@@ -1095,7 +1100,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1095
1100
  }>;
1096
1101
  }, z.core.$strip>>;
1097
1102
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
1098
- value: z.ZodOptional<z.ZodNumber>;
1103
+ value: z.ZodOptional<z.ZodInt>;
1099
1104
  provenance: z.ZodEnum<{
1100
1105
  computed: "computed";
1101
1106
  estimated: "estimated";
@@ -1104,7 +1109,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1104
1109
  }>;
1105
1110
  }, z.core.$strip>>;
1106
1111
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1107
- value: z.ZodOptional<z.ZodNumber>;
1112
+ value: z.ZodOptional<z.ZodInt>;
1108
1113
  provenance: z.ZodEnum<{
1109
1114
  computed: "computed";
1110
1115
  estimated: "estimated";
@@ -1170,6 +1175,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1170
1175
  snapshotVersion: z.ZodInt;
1171
1176
  reason: z.ZodEnum<{
1172
1177
  abandoned: "abandoned";
1178
+ absorbed: "absorbed";
1173
1179
  cancelled: "cancelled";
1174
1180
  context_overflow: "context_overflow";
1175
1181
  interrupted: "interrupted";
@@ -1264,7 +1270,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1264
1270
  partial: z.ZodBoolean;
1265
1271
  usage: z.ZodObject<{
1266
1272
  inputTokens: z.ZodObject<{
1267
- value: z.ZodOptional<z.ZodNumber>;
1273
+ value: z.ZodOptional<z.ZodInt>;
1268
1274
  provenance: z.ZodEnum<{
1269
1275
  computed: "computed";
1270
1276
  estimated: "estimated";
@@ -1273,7 +1279,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1273
1279
  }>;
1274
1280
  }, z.core.$strip>;
1275
1281
  outputTokens: z.ZodObject<{
1276
- value: z.ZodOptional<z.ZodNumber>;
1282
+ value: z.ZodOptional<z.ZodInt>;
1277
1283
  provenance: z.ZodEnum<{
1278
1284
  computed: "computed";
1279
1285
  estimated: "estimated";
@@ -1282,7 +1288,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1282
1288
  }>;
1283
1289
  }, z.core.$strip>;
1284
1290
  reasoningTokens: z.ZodOptional<z.ZodObject<{
1285
- value: z.ZodOptional<z.ZodNumber>;
1291
+ value: z.ZodOptional<z.ZodInt>;
1286
1292
  provenance: z.ZodEnum<{
1287
1293
  computed: "computed";
1288
1294
  estimated: "estimated";
@@ -1291,7 +1297,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1291
1297
  }>;
1292
1298
  }, z.core.$strip>>;
1293
1299
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
1294
- value: z.ZodOptional<z.ZodNumber>;
1300
+ value: z.ZodOptional<z.ZodInt>;
1295
1301
  provenance: z.ZodEnum<{
1296
1302
  computed: "computed";
1297
1303
  estimated: "estimated";
@@ -1300,7 +1306,7 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1300
1306
  }>;
1301
1307
  }, z.core.$strip>>;
1302
1308
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
1303
- value: z.ZodOptional<z.ZodNumber>;
1309
+ value: z.ZodOptional<z.ZodInt>;
1304
1310
  provenance: z.ZodEnum<{
1305
1311
  computed: "computed";
1306
1312
  estimated: "estimated";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAcvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUpC,CAAC;AAQH;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;iBAKzC,CAAC;AAQH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;iBAEzC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAEvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,SAAS,IAAI,uBAAuB,CAAC;IACrC,KAAK,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC3C;AAED,sEAAsE;AACtE,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,2BAA2B,GAClC,qBAAqB,CAiBvB;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAAG,sBAAsB,GAAG,WAAW,GAAG,UAAU,EACrE,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,GACtB,MAAM,CAER"}
@@ -0,0 +1,28 @@
1
+ import type { AgentMessage } from './schemas';
2
+ /**
3
+ * Which accepted-but-not-started inputs a run in flight may take on.
4
+ *
5
+ * Process-local on purpose, and that is the whole correction to the withdrawn
6
+ * `inject` of 0.63.0. Absorption is a decision the executing process makes and
7
+ * the terminal commit records; nothing durable happens in between. So this
8
+ * registry may be lost — to a crash, a close, a restart — without leaving an
9
+ * input unanswerable: every entry here is *also* an ordinary queued run in the
10
+ * store, and losing the entry simply means that run answers itself.
11
+ *
12
+ * An entry is withdrawn the moment its own run starts executing. Without that,
13
+ * a run could take on an input its own execution is about to answer, or a much
14
+ * later run could absorb an input that was answered long ago.
15
+ */
16
+ export interface AgentInjectableInput {
17
+ runId: string;
18
+ input: AgentMessage;
19
+ }
20
+ export interface AgentInjectionRegistry {
21
+ offer(key: string, entry: AgentInjectableInput): void;
22
+ /** Everything offered on this key except `excludeRunId`'s own entry. */
23
+ take(key: string, excludeRunId: string): readonly AgentInjectableInput[];
24
+ withdraw(key: string, runId: string): void;
25
+ clear(): void;
26
+ }
27
+ export declare function createAgentInjectionRegistry(): AgentInjectionRegistry;
28
+ //# sourceMappingURL=injection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtD,wEAAwE;IACxE,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,oBAAoB,EAAE,CAAC;IACzE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,KAAK,IAAI,IAAI,CAAC;CACf;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CAmCrE"}
@@ -52,7 +52,7 @@ export declare const AgentStepFinishedEventSchema: z.ZodObject<{
52
52
  ttftMs: z.ZodOptional<z.ZodNumber>;
53
53
  usage: z.ZodObject<{
54
54
  inputTokens: z.ZodObject<{
55
- value: z.ZodOptional<z.ZodNumber>;
55
+ value: z.ZodOptional<z.ZodInt>;
56
56
  provenance: z.ZodEnum<{
57
57
  computed: "computed";
58
58
  estimated: "estimated";
@@ -61,7 +61,7 @@ export declare const AgentStepFinishedEventSchema: z.ZodObject<{
61
61
  }>;
62
62
  }, z.core.$strip>;
63
63
  outputTokens: z.ZodObject<{
64
- value: z.ZodOptional<z.ZodNumber>;
64
+ value: z.ZodOptional<z.ZodInt>;
65
65
  provenance: z.ZodEnum<{
66
66
  computed: "computed";
67
67
  estimated: "estimated";
@@ -70,7 +70,7 @@ export declare const AgentStepFinishedEventSchema: z.ZodObject<{
70
70
  }>;
71
71
  }, z.core.$strip>;
72
72
  reasoningTokens: z.ZodOptional<z.ZodObject<{
73
- value: z.ZodOptional<z.ZodNumber>;
73
+ value: z.ZodOptional<z.ZodInt>;
74
74
  provenance: z.ZodEnum<{
75
75
  computed: "computed";
76
76
  estimated: "estimated";
@@ -79,7 +79,7 @@ export declare const AgentStepFinishedEventSchema: z.ZodObject<{
79
79
  }>;
80
80
  }, z.core.$strip>>;
81
81
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
82
- value: z.ZodOptional<z.ZodNumber>;
82
+ value: z.ZodOptional<z.ZodInt>;
83
83
  provenance: z.ZodEnum<{
84
84
  computed: "computed";
85
85
  estimated: "estimated";
@@ -88,7 +88,7 @@ export declare const AgentStepFinishedEventSchema: z.ZodObject<{
88
88
  }>;
89
89
  }, z.core.$strip>>;
90
90
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
91
- value: z.ZodOptional<z.ZodNumber>;
91
+ value: z.ZodOptional<z.ZodInt>;
92
92
  provenance: z.ZodEnum<{
93
93
  computed: "computed";
94
94
  estimated: "estimated";
@@ -133,6 +133,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
133
133
  type: z.ZodLiteral<"run-terminal">;
134
134
  terminalReason: z.ZodEnum<{
135
135
  abandoned: "abandoned";
136
+ absorbed: "absorbed";
136
137
  cancelled: "cancelled";
137
138
  context_overflow: "context_overflow";
138
139
  interrupted: "interrupted";
@@ -148,7 +149,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
148
149
  internalCause: z.ZodOptional<z.ZodUnknown>;
149
150
  usage: z.ZodObject<{
150
151
  inputTokens: z.ZodObject<{
151
- value: z.ZodOptional<z.ZodNumber>;
152
+ value: z.ZodOptional<z.ZodInt>;
152
153
  provenance: z.ZodEnum<{
153
154
  computed: "computed";
154
155
  estimated: "estimated";
@@ -157,7 +158,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
157
158
  }>;
158
159
  }, z.core.$strip>;
159
160
  outputTokens: z.ZodObject<{
160
- value: z.ZodOptional<z.ZodNumber>;
161
+ value: z.ZodOptional<z.ZodInt>;
161
162
  provenance: z.ZodEnum<{
162
163
  computed: "computed";
163
164
  estimated: "estimated";
@@ -166,7 +167,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
166
167
  }>;
167
168
  }, z.core.$strip>;
168
169
  reasoningTokens: z.ZodOptional<z.ZodObject<{
169
- value: z.ZodOptional<z.ZodNumber>;
170
+ value: z.ZodOptional<z.ZodInt>;
170
171
  provenance: z.ZodEnum<{
171
172
  computed: "computed";
172
173
  estimated: "estimated";
@@ -175,7 +176,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
175
176
  }>;
176
177
  }, z.core.$strip>>;
177
178
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
178
- value: z.ZodOptional<z.ZodNumber>;
179
+ value: z.ZodOptional<z.ZodInt>;
179
180
  provenance: z.ZodEnum<{
180
181
  computed: "computed";
181
182
  estimated: "estimated";
@@ -184,7 +185,7 @@ export declare const AgentRunTerminalEventSchema: z.ZodObject<{
184
185
  }>;
185
186
  }, z.core.$strip>>;
186
187
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
187
- value: z.ZodOptional<z.ZodNumber>;
188
+ value: z.ZodOptional<z.ZodInt>;
188
189
  provenance: z.ZodEnum<{
189
190
  computed: "computed";
190
191
  estimated: "estimated";
@@ -262,7 +263,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
262
263
  ttftMs: z.ZodOptional<z.ZodNumber>;
263
264
  usage: z.ZodObject<{
264
265
  inputTokens: z.ZodObject<{
265
- value: z.ZodOptional<z.ZodNumber>;
266
+ value: z.ZodOptional<z.ZodInt>;
266
267
  provenance: z.ZodEnum<{
267
268
  computed: "computed";
268
269
  estimated: "estimated";
@@ -271,7 +272,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
271
272
  }>;
272
273
  }, z.core.$strip>;
273
274
  outputTokens: z.ZodObject<{
274
- value: z.ZodOptional<z.ZodNumber>;
275
+ value: z.ZodOptional<z.ZodInt>;
275
276
  provenance: z.ZodEnum<{
276
277
  computed: "computed";
277
278
  estimated: "estimated";
@@ -280,7 +281,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
280
281
  }>;
281
282
  }, z.core.$strip>;
282
283
  reasoningTokens: z.ZodOptional<z.ZodObject<{
283
- value: z.ZodOptional<z.ZodNumber>;
284
+ value: z.ZodOptional<z.ZodInt>;
284
285
  provenance: z.ZodEnum<{
285
286
  computed: "computed";
286
287
  estimated: "estimated";
@@ -289,7 +290,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
289
290
  }>;
290
291
  }, z.core.$strip>>;
291
292
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
292
- value: z.ZodOptional<z.ZodNumber>;
293
+ value: z.ZodOptional<z.ZodInt>;
293
294
  provenance: z.ZodEnum<{
294
295
  computed: "computed";
295
296
  estimated: "estimated";
@@ -298,7 +299,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
299
  }>;
299
300
  }, z.core.$strip>>;
300
301
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
301
- value: z.ZodOptional<z.ZodNumber>;
302
+ value: z.ZodOptional<z.ZodInt>;
302
303
  provenance: z.ZodEnum<{
303
304
  computed: "computed";
304
305
  estimated: "estimated";
@@ -342,6 +343,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
343
  type: z.ZodLiteral<"run-terminal">;
343
344
  terminalReason: z.ZodEnum<{
344
345
  abandoned: "abandoned";
346
+ absorbed: "absorbed";
345
347
  cancelled: "cancelled";
346
348
  context_overflow: "context_overflow";
347
349
  interrupted: "interrupted";
@@ -357,7 +359,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
357
359
  internalCause: z.ZodOptional<z.ZodUnknown>;
358
360
  usage: z.ZodObject<{
359
361
  inputTokens: z.ZodObject<{
360
- value: z.ZodOptional<z.ZodNumber>;
362
+ value: z.ZodOptional<z.ZodInt>;
361
363
  provenance: z.ZodEnum<{
362
364
  computed: "computed";
363
365
  estimated: "estimated";
@@ -366,7 +368,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
368
  }>;
367
369
  }, z.core.$strip>;
368
370
  outputTokens: z.ZodObject<{
369
- value: z.ZodOptional<z.ZodNumber>;
371
+ value: z.ZodOptional<z.ZodInt>;
370
372
  provenance: z.ZodEnum<{
371
373
  computed: "computed";
372
374
  estimated: "estimated";
@@ -375,7 +377,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
377
  }>;
376
378
  }, z.core.$strip>;
377
379
  reasoningTokens: z.ZodOptional<z.ZodObject<{
378
- value: z.ZodOptional<z.ZodNumber>;
380
+ value: z.ZodOptional<z.ZodInt>;
379
381
  provenance: z.ZodEnum<{
380
382
  computed: "computed";
381
383
  estimated: "estimated";
@@ -384,7 +386,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
386
  }>;
385
387
  }, z.core.$strip>>;
386
388
  cacheReadTokens: z.ZodOptional<z.ZodObject<{
387
- value: z.ZodOptional<z.ZodNumber>;
389
+ value: z.ZodOptional<z.ZodInt>;
388
390
  provenance: z.ZodEnum<{
389
391
  computed: "computed";
390
392
  estimated: "estimated";
@@ -393,7 +395,7 @@ export declare const AgentRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
393
395
  }>;
394
396
  }, z.core.$strip>>;
395
397
  cacheWriteTokens: z.ZodOptional<z.ZodObject<{
396
- value: z.ZodOptional<z.ZodNumber>;
398
+ value: z.ZodOptional<z.ZodInt>;
397
399
  provenance: z.ZodEnum<{
398
400
  computed: "computed";
399
401
  estimated: "estimated";
@@ -1 +1 @@
1
- {"version":3,"file":"observability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C/B,MAAM,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,CAAC,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,CAAC,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG;QACvD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,IAAI,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,SAAS,IAAI,uBAAuB,CAAC;IACrC,KAAK,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC3C;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAkDvF"}
@@ -1,9 +1,19 @@
1
1
  import type { Instructions } from 'ai';
2
2
  import { z } from 'zod';
3
- import type { AgentMessage } from './schemas';
3
+ import { type AgentMessage } from './schemas';
4
+ /**
5
+ * A token count made *before* a request, and how it came to be known.
6
+ *
7
+ * The words come from `AgentProvenanceSchema`, shared with `AgentUsage` so one
8
+ * question has one vocabulary. The subset differs because the facts differ: no
9
+ * provider has reported anything yet at prompt-composition time, so
10
+ * `provider-reported` is not among the values this surface can produce, and a
11
+ * count this process took with a tokenizer is `measured`.
12
+ */
4
13
  export declare const AgentTokenCountSchema: z.ZodObject<{
5
14
  value: z.ZodOptional<z.ZodInt>;
6
15
  provenance: z.ZodEnum<{
16
+ computed: "computed";
7
17
  estimated: "estimated";
8
18
  measured: "measured";
9
19
  unavailable: "unavailable";
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,eAAO,MAAM,qBAAqB;;;;;;;iBAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,WAAW,yBAAyB,CAAC,OAAO;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB,CAAC,OAAO;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5E,cAAc,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,E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