stitchkit 0.129.0 → 0.130.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 (156) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/agent-executor/acp/v1-connect.d.ts +87 -19
  3. package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
  4. package/dist/agent-executor/acp/v1-driver.d.ts +4 -2
  5. package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
  6. package/dist/agent-executor/acp/v1-handlers.d.ts +56 -0
  7. package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -0
  8. package/dist/agent-executor/acp/v1-map.d.ts +13 -2
  9. package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
  10. package/dist/agent-executor/acp/v1-permission.d.ts +44 -0
  11. package/dist/agent-executor/acp/v1-permission.d.ts.map +1 -0
  12. package/dist/agent-executor/acp/v1-protocol.d.ts +63 -10
  13. package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
  14. package/dist/agent-executor/acp/v1-session.d.ts +34 -7
  15. package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
  16. package/dist/agent-executor/acp/v1-turn.d.ts +51 -13
  17. package/dist/agent-executor/acp/v1-turn.d.ts.map +1 -1
  18. package/dist/agent-executor/claude/classify.d.ts +10 -0
  19. package/dist/agent-executor/claude/classify.d.ts.map +1 -1
  20. package/dist/agent-executor/claude/cli-driver.d.ts +4 -1
  21. package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
  22. package/dist/agent-executor/claude/events.d.ts +146 -0
  23. package/dist/agent-executor/claude/events.d.ts.map +1 -0
  24. package/dist/agent-executor/claude/limits.d.ts +7 -1
  25. package/dist/agent-executor/claude/limits.d.ts.map +1 -1
  26. package/dist/agent-executor/claude/protocol.d.ts +49 -9
  27. package/dist/agent-executor/claude/protocol.d.ts.map +1 -1
  28. package/dist/agent-executor/claude/session.d.ts +2 -0
  29. package/dist/agent-executor/claude/session.d.ts.map +1 -1
  30. package/dist/agent-executor/claude-sdk/controls.d.ts +10 -1
  31. package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
  32. package/dist/agent-executor/claude-sdk/driver.d.ts +97 -3
  33. package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
  34. package/dist/agent-executor/claude-sdk/probe.d.ts +29 -0
  35. package/dist/agent-executor/claude-sdk/probe.d.ts.map +1 -0
  36. package/dist/agent-executor/claude-sdk/query-loop.d.ts +53 -5
  37. package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
  38. package/dist/agent-executor/claude-sdk/query-options.d.ts +2 -0
  39. package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -1
  40. package/dist/agent-executor/claude-sdk/session.d.ts +2 -3
  41. package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
  42. package/dist/agent-executor/claude-sdk/turn-usage.d.ts +81 -0
  43. package/dist/agent-executor/claude-sdk/turn-usage.d.ts.map +1 -0
  44. package/dist/agent-executor/codex/classify.d.ts +4 -0
  45. package/dist/agent-executor/codex/classify.d.ts.map +1 -1
  46. package/dist/agent-executor/codex/connect.d.ts +2 -1
  47. package/dist/agent-executor/codex/connect.d.ts.map +1 -1
  48. package/dist/agent-executor/codex/control-client.d.ts +168 -0
  49. package/dist/agent-executor/codex/control-client.d.ts.map +1 -0
  50. package/dist/agent-executor/codex/driver.d.ts +22 -2
  51. package/dist/agent-executor/codex/driver.d.ts.map +1 -1
  52. package/dist/agent-executor/codex/handlers.d.ts +47 -0
  53. package/dist/agent-executor/codex/handlers.d.ts.map +1 -0
  54. package/dist/agent-executor/codex/limits.d.ts.map +1 -1
  55. package/dist/agent-executor/codex/protocol.d.ts +124 -0
  56. package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
  57. package/dist/agent-executor/codex/request-answers.d.ts +101 -0
  58. package/dist/agent-executor/codex/request-answers.d.ts.map +1 -0
  59. package/dist/agent-executor/codex/session-controls.d.ts +91 -51
  60. package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
  61. package/dist/agent-executor/codex/session.d.ts +34 -12
  62. package/dist/agent-executor/codex/session.d.ts.map +1 -1
  63. package/dist/agent-executor/codex/shared-server.d.ts +29 -0
  64. package/dist/agent-executor/codex/shared-server.d.ts.map +1 -0
  65. package/dist/agent-executor/codex/shared-thread.d.ts +46 -0
  66. package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -0
  67. package/dist/agent-executor/codex/thread-controls.d.ts +128 -0
  68. package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -0
  69. package/dist/agent-executor/codex/turn-input.d.ts +30 -0
  70. package/dist/agent-executor/codex/turn-input.d.ts.map +1 -0
  71. package/dist/agent-executor/contract.d.ts +77 -0
  72. package/dist/agent-executor/contract.d.ts.map +1 -1
  73. package/dist/agent-executor/engine.d.ts +6 -2
  74. package/dist/agent-executor/engine.d.ts.map +1 -1
  75. package/dist/agent-executor/executor-contract.d.ts +54 -0
  76. package/dist/agent-executor/executor-contract.d.ts.map +1 -1
  77. package/dist/agent-executor/handoff-schemas.d.ts +407 -0
  78. package/dist/agent-executor/handoff-schemas.d.ts.map +1 -0
  79. package/dist/agent-executor/handoff.d.ts +12 -0
  80. package/dist/agent-executor/handoff.d.ts.map +1 -0
  81. package/dist/agent-executor/hello.d.ts +72 -0
  82. package/dist/agent-executor/hello.d.ts.map +1 -1
  83. package/dist/agent-executor/image-input.d.ts +22 -0
  84. package/dist/agent-executor/image-input.d.ts.map +1 -1
  85. package/dist/agent-executor/projection.d.ts +2 -2
  86. package/dist/agent-executor/projection.d.ts.map +1 -1
  87. package/dist/agent-executor/session-primitives.d.ts +10 -1
  88. package/dist/agent-executor/session-primitives.d.ts.map +1 -1
  89. package/dist/agent-executor/testing/conformance.d.ts.map +1 -1
  90. package/dist/agent-executor/testing/replay-driver.d.ts +41 -0
  91. package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -0
  92. package/dist/agent-executor/testing/replay-gate.d.ts +11 -0
  93. package/dist/agent-executor/testing/replay-gate.d.ts.map +1 -0
  94. package/dist/agent-executor/testing/replay-runner.d.ts +27 -0
  95. package/dist/agent-executor/testing/replay-runner.d.ts.map +1 -0
  96. package/dist/agent-executor/testing/replay-scenarios.d.ts +21 -0
  97. package/dist/agent-executor/testing/replay-scenarios.d.ts.map +1 -0
  98. package/dist/agent-executor/testing/replay-transcript.d.ts +296 -0
  99. package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -0
  100. package/dist/agent-executor/vocabulary.d.ts +135 -0
  101. package/dist/agent-executor/vocabulary.d.ts.map +1 -1
  102. package/dist/agent-runtime/branch-provider.d.ts +2 -2
  103. package/dist/agent-runtime/deferred-tool-selection.d.ts.map +1 -1
  104. package/dist/entrypoints/agent-executor/acp.d.ts +4 -1
  105. package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
  106. package/dist/entrypoints/agent-executor/acp.js +847 -214
  107. package/dist/entrypoints/agent-executor/claude-sdk.d.ts +5 -1
  108. package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
  109. package/dist/entrypoints/agent-executor/claude-sdk.js +713 -205
  110. package/dist/entrypoints/agent-executor/claude.js +44 -19
  111. package/dist/entrypoints/agent-executor/codex.d.ts +9 -2
  112. package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
  113. package/dist/entrypoints/agent-executor/codex.js +1775 -359
  114. package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
  115. package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
  116. package/dist/entrypoints/agent-executor/testing.js +1002 -2
  117. package/dist/entrypoints/agent-executor.d.ts +4 -2
  118. package/dist/entrypoints/agent-executor.d.ts.map +1 -1
  119. package/dist/entrypoints/agent-executor.js +411 -23
  120. package/dist/entrypoints/agent-runtime.js +4 -23
  121. package/dist/entrypoints/tools/mcp.d.ts +1 -0
  122. package/dist/entrypoints/tools/mcp.d.ts.map +1 -1
  123. package/dist/entrypoints/tools/mcp.js +1 -1
  124. package/dist/entrypoints/tools/toolkit.js +1 -1
  125. package/dist/{index-wv2amqm4.js → index-2s8sy57y.js} +36 -103
  126. package/dist/{index-afb6z77w.js → index-dbp6xemn.js} +75 -7
  127. package/dist/{index-bjmj2q1z.js → index-jrn3prgm.js} +1 -1
  128. package/dist/index-kne9g2c5.js +30 -0
  129. package/dist/index-p1qmpq0p.js +1300 -0
  130. package/dist/{index-7jqn3b3g.js → index-v759mzed.js} +152 -2
  131. package/dist/{index-cbhxhma2.js → index-x5ayy5bn.js} +1 -0
  132. package/dist/index-y0a4gt1s.js +142 -0
  133. package/dist/tools/internal/rank-tools.d.ts +10 -0
  134. package/dist/tools/internal/rank-tools.d.ts.map +1 -0
  135. package/dist/tools/mcp/handler.d.ts +7 -3
  136. package/dist/tools/mcp/handler.d.ts.map +1 -1
  137. package/dist/tools/mcp/lazy-discovery.d.ts +47 -0
  138. package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -0
  139. package/dist/tools/mcp/mount.d.ts +7 -0
  140. package/dist/tools/mcp/mount.d.ts.map +1 -1
  141. package/dist/tools/mcp/register.d.ts +2 -2
  142. package/dist/tools/mcp/register.d.ts.map +1 -1
  143. package/llms/agent-executor-acp.txt +7 -8
  144. package/llms/agent-executor-claude-sdk.txt +4 -2
  145. package/llms/agent-executor-codex.txt +8 -4
  146. package/llms/agent-executor-testing.txt +5 -1
  147. package/llms/agent-executor.txt +7 -6
  148. package/llms/stitchkit.txt +74 -74
  149. package/llms/tools-mcp.txt +3 -2
  150. package/llms/tools.txt +24 -0
  151. package/llms/{upgrading-0.128.0-0.129.0.txt → upgrading-0.128.0-0.130.0.txt} +30 -3
  152. package/llms/upgrading.txt +1 -1
  153. package/llms-full.txt +159 -97
  154. package/llms.txt +8 -8
  155. package/package.json +1 -1
  156. package/dist/index-y71zn1gw.js +0 -586
@@ -0,0 +1,407 @@
1
+ import { z } from 'zod';
2
+ export declare const HANDOFF_LIMITS: {
3
+ readonly id: 256;
4
+ readonly entries: 10000;
5
+ readonly partsPerEntry: 1024;
6
+ readonly maxTokens: 1000000;
7
+ readonly maxBytes: number;
8
+ readonly maxOmittedIds: 256;
9
+ readonly defaultMaxOmittedIds: 20;
10
+ readonly recoveryHint: 1024;
11
+ readonly contextWindowTokens: 10000000;
12
+ readonly toolSummaryChars: 512;
13
+ };
14
+ /** One historical message entry eligible for deterministic cross-engine context handoff. */
15
+ export declare const ContextHandoffMessageEntrySchema: z.ZodObject<{
16
+ kind: z.ZodLiteral<"message">;
17
+ id: z.ZodString;
18
+ role: z.ZodEnum<{
19
+ assistant: "assistant";
20
+ user: "user";
21
+ }>;
22
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ type: z.ZodLiteral<"text">;
24
+ text: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<"reasoning">;
27
+ text: z.ZodString;
28
+ provider: z.ZodOptional<z.ZodObject<{
29
+ schemaVersion: z.ZodInt;
30
+ provider: z.ZodString;
31
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ type: z.ZodLiteral<"file">;
35
+ mediaType: z.ZodString;
36
+ reference: z.ZodString;
37
+ filename: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ type: z.ZodLiteral<"source">;
40
+ sourceId: z.ZodString;
41
+ url: z.ZodOptional<z.ZodURL>;
42
+ title: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ type: z.ZodLiteral<"tool-call">;
45
+ callId: z.ZodString;
46
+ toolName: z.ZodString;
47
+ input: z.ZodJSONSchema;
48
+ provider: z.ZodOptional<z.ZodObject<{
49
+ schemaVersion: z.ZodInt;
50
+ provider: z.ZodString;
51
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ type: z.ZodLiteral<"tool-result">;
55
+ callId: z.ZodString;
56
+ toolName: z.ZodString;
57
+ outcome: z.ZodEnum<{
58
+ error: "error";
59
+ interrupted: "interrupted";
60
+ success: "success";
61
+ }>;
62
+ output: z.ZodOptional<z.ZodJSONSchema>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodLiteral<"tool-approval-request">;
65
+ approvalId: z.ZodString;
66
+ callId: z.ZodString;
67
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
68
+ signature: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ type: z.ZodLiteral<"tool-approval-response">;
71
+ approvalId: z.ZodString;
72
+ approved: z.ZodBoolean;
73
+ reason: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ type: z.ZodLiteral<"provider">;
76
+ envelope: z.ZodObject<{
77
+ schemaVersion: z.ZodInt;
78
+ provider: z.ZodString;
79
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
80
+ }, z.core.$strip>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ type: z.ZodLiteral<"control">;
83
+ reason: z.ZodEnum<{
84
+ "run-interrupted": "run-interrupted";
85
+ "stale-run": "stale-run";
86
+ }>;
87
+ }, z.core.$strip>], "type">>;
88
+ turnId: z.ZodOptional<z.ZodString>;
89
+ providerThreadId: z.ZodOptional<z.ZodString>;
90
+ status: z.ZodOptional<z.ZodEnum<{
91
+ completed: "completed";
92
+ failed: "failed";
93
+ interrupted: "interrupted";
94
+ }>>;
95
+ }, z.core.$strict>;
96
+ /** Explicit reset barrier discarding all earlier entries from subsequent handoffs. */
97
+ export declare const ContextHandoffClearEntrySchema: z.ZodObject<{
98
+ kind: z.ZodLiteral<"clear">;
99
+ id: z.ZodString;
100
+ turnId: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strict>;
102
+ /** Discriminated history record consumed by {@link buildContextHandoff}. */
103
+ export declare const ContextHandoffEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ kind: z.ZodLiteral<"message">;
105
+ id: z.ZodString;
106
+ role: z.ZodEnum<{
107
+ assistant: "assistant";
108
+ user: "user";
109
+ }>;
110
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ type: z.ZodLiteral<"text">;
112
+ text: z.ZodString;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ type: z.ZodLiteral<"reasoning">;
115
+ text: z.ZodString;
116
+ provider: z.ZodOptional<z.ZodObject<{
117
+ schemaVersion: z.ZodInt;
118
+ provider: z.ZodString;
119
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ type: z.ZodLiteral<"file">;
123
+ mediaType: z.ZodString;
124
+ reference: z.ZodString;
125
+ filename: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ type: z.ZodLiteral<"source">;
128
+ sourceId: z.ZodString;
129
+ url: z.ZodOptional<z.ZodURL>;
130
+ title: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ type: z.ZodLiteral<"tool-call">;
133
+ callId: z.ZodString;
134
+ toolName: z.ZodString;
135
+ input: z.ZodJSONSchema;
136
+ provider: z.ZodOptional<z.ZodObject<{
137
+ schemaVersion: z.ZodInt;
138
+ provider: z.ZodString;
139
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
140
+ }, z.core.$strip>>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ type: z.ZodLiteral<"tool-result">;
143
+ callId: z.ZodString;
144
+ toolName: z.ZodString;
145
+ outcome: z.ZodEnum<{
146
+ error: "error";
147
+ interrupted: "interrupted";
148
+ success: "success";
149
+ }>;
150
+ output: z.ZodOptional<z.ZodJSONSchema>;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ type: z.ZodLiteral<"tool-approval-request">;
153
+ approvalId: z.ZodString;
154
+ callId: z.ZodString;
155
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
156
+ signature: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ type: z.ZodLiteral<"tool-approval-response">;
159
+ approvalId: z.ZodString;
160
+ approved: z.ZodBoolean;
161
+ reason: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ type: z.ZodLiteral<"provider">;
164
+ envelope: z.ZodObject<{
165
+ schemaVersion: z.ZodInt;
166
+ provider: z.ZodString;
167
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"control">;
171
+ reason: z.ZodEnum<{
172
+ "run-interrupted": "run-interrupted";
173
+ "stale-run": "stale-run";
174
+ }>;
175
+ }, z.core.$strip>], "type">>;
176
+ turnId: z.ZodOptional<z.ZodString>;
177
+ providerThreadId: z.ZodOptional<z.ZodString>;
178
+ status: z.ZodOptional<z.ZodEnum<{
179
+ completed: "completed";
180
+ failed: "failed";
181
+ interrupted: "interrupted";
182
+ }>>;
183
+ }, z.core.$strict>, z.ZodObject<{
184
+ kind: z.ZodLiteral<"clear">;
185
+ id: z.ZodString;
186
+ turnId: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strict>], "kind">;
188
+ /** Full or delta handoff selection strategy. */
189
+ export declare const ContextHandoffStrategySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
190
+ mode: z.ZodLiteral<"full">;
191
+ }, z.core.$strict>, z.ZodObject<{
192
+ mode: z.ZodLiteral<"delta">;
193
+ afterItemId: z.ZodOptional<z.ZodString>;
194
+ afterTurnId: z.ZodOptional<z.ZodString>;
195
+ missingAnchor: z.ZodOptional<z.ZodEnum<{
196
+ error: "error";
197
+ full: "full";
198
+ }>>;
199
+ }, z.core.$strict>], "mode">;
200
+ /** Finite byte and token ceilings governing deterministic handoff selection. */
201
+ export declare const ContextHandoffBudgetSchema: z.ZodObject<{
202
+ maxTokens: z.ZodInt;
203
+ maxBytes: z.ZodInt;
204
+ maxOmittedIds: z.ZodOptional<z.ZodInt>;
205
+ contextWindowTokens: z.ZodOptional<z.ZodInt>;
206
+ usedTokens: z.ZodOptional<z.ZodInt>;
207
+ workReserveTokens: z.ZodOptional<z.ZodInt>;
208
+ }, z.core.$strict>;
209
+ /** Input accepted by {@link buildContextHandoff}. */
210
+ export declare const ContextHandoffInputSchema: z.ZodObject<{
211
+ entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ kind: z.ZodLiteral<"message">;
213
+ id: z.ZodString;
214
+ role: z.ZodEnum<{
215
+ assistant: "assistant";
216
+ user: "user";
217
+ }>;
218
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ type: z.ZodLiteral<"text">;
220
+ text: z.ZodString;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ type: z.ZodLiteral<"reasoning">;
223
+ text: z.ZodString;
224
+ provider: z.ZodOptional<z.ZodObject<{
225
+ schemaVersion: z.ZodInt;
226
+ provider: z.ZodString;
227
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
228
+ }, z.core.$strip>>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"file">;
231
+ mediaType: z.ZodString;
232
+ reference: z.ZodString;
233
+ filename: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ type: z.ZodLiteral<"source">;
236
+ sourceId: z.ZodString;
237
+ url: z.ZodOptional<z.ZodURL>;
238
+ title: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"tool-call">;
241
+ callId: z.ZodString;
242
+ toolName: z.ZodString;
243
+ input: z.ZodJSONSchema;
244
+ provider: z.ZodOptional<z.ZodObject<{
245
+ schemaVersion: z.ZodInt;
246
+ provider: z.ZodString;
247
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"tool-result">;
251
+ callId: z.ZodString;
252
+ toolName: z.ZodString;
253
+ outcome: z.ZodEnum<{
254
+ error: "error";
255
+ interrupted: "interrupted";
256
+ success: "success";
257
+ }>;
258
+ output: z.ZodOptional<z.ZodJSONSchema>;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ type: z.ZodLiteral<"tool-approval-request">;
261
+ approvalId: z.ZodString;
262
+ callId: z.ZodString;
263
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
264
+ signature: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ type: z.ZodLiteral<"tool-approval-response">;
267
+ approvalId: z.ZodString;
268
+ approved: z.ZodBoolean;
269
+ reason: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ type: z.ZodLiteral<"provider">;
272
+ envelope: z.ZodObject<{
273
+ schemaVersion: z.ZodInt;
274
+ provider: z.ZodString;
275
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
276
+ }, z.core.$strip>;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ type: z.ZodLiteral<"control">;
279
+ reason: z.ZodEnum<{
280
+ "run-interrupted": "run-interrupted";
281
+ "stale-run": "stale-run";
282
+ }>;
283
+ }, z.core.$strip>], "type">>;
284
+ turnId: z.ZodOptional<z.ZodString>;
285
+ providerThreadId: z.ZodOptional<z.ZodString>;
286
+ status: z.ZodOptional<z.ZodEnum<{
287
+ completed: "completed";
288
+ failed: "failed";
289
+ interrupted: "interrupted";
290
+ }>>;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ kind: z.ZodLiteral<"clear">;
293
+ id: z.ZodString;
294
+ turnId: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strict>], "kind">>;
296
+ strategy: z.ZodDiscriminatedUnion<[z.ZodObject<{
297
+ mode: z.ZodLiteral<"full">;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ mode: z.ZodLiteral<"delta">;
300
+ afterItemId: z.ZodOptional<z.ZodString>;
301
+ afterTurnId: z.ZodOptional<z.ZodString>;
302
+ missingAnchor: z.ZodOptional<z.ZodEnum<{
303
+ error: "error";
304
+ full: "full";
305
+ }>>;
306
+ }, z.core.$strict>], "mode">;
307
+ budget: z.ZodObject<{
308
+ maxTokens: z.ZodInt;
309
+ maxBytes: z.ZodInt;
310
+ maxOmittedIds: z.ZodOptional<z.ZodInt>;
311
+ contextWindowTokens: z.ZodOptional<z.ZodInt>;
312
+ usedTokens: z.ZodOptional<z.ZodInt>;
313
+ workReserveTokens: z.ZodOptional<z.ZodInt>;
314
+ }, z.core.$strict>;
315
+ recoveryHint: z.ZodOptional<z.ZodString>;
316
+ }, z.core.$strict>;
317
+ /** Responses API message item compatible with Codex `thread/inject_items`. */
318
+ export declare const ContextHandoffStructuredItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
319
+ type: z.ZodLiteral<"message">;
320
+ role: z.ZodLiteral<"user">;
321
+ content: z.ZodArray<z.ZodObject<{
322
+ type: z.ZodLiteral<"input_text">;
323
+ text: z.ZodString;
324
+ }, z.core.$strict>>;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ type: z.ZodLiteral<"message">;
327
+ role: z.ZodLiteral<"assistant">;
328
+ content: z.ZodArray<z.ZodObject<{
329
+ type: z.ZodLiteral<"output_text">;
330
+ text: z.ZodString;
331
+ }, z.core.$strict>>;
332
+ }, z.core.$strict>], "role">;
333
+ /** Intact historical item selected into a context handoff. */
334
+ export declare const ContextHandoffSelectedItemSchema: z.ZodObject<{
335
+ id: z.ZodString;
336
+ role: z.ZodEnum<{
337
+ assistant: "assistant";
338
+ user: "user";
339
+ }>;
340
+ text: z.ZodString;
341
+ turnId: z.ZodOptional<z.ZodString>;
342
+ providerThreadId: z.ZodOptional<z.ZodString>;
343
+ status: z.ZodOptional<z.ZodEnum<{
344
+ completed: "completed";
345
+ failed: "failed";
346
+ interrupted: "interrupted";
347
+ }>>;
348
+ }, z.core.$strict>;
349
+ /** Deterministic result returned by {@link buildContextHandoff}. */
350
+ export declare const ContextHandoffResultSchema: z.ZodObject<{
351
+ strategy: z.ZodEnum<{
352
+ delta: "delta";
353
+ full: "full";
354
+ }>;
355
+ selectedItems: z.ZodArray<z.ZodObject<{
356
+ id: z.ZodString;
357
+ role: z.ZodEnum<{
358
+ assistant: "assistant";
359
+ user: "user";
360
+ }>;
361
+ text: z.ZodString;
362
+ turnId: z.ZodOptional<z.ZodString>;
363
+ providerThreadId: z.ZodOptional<z.ZodString>;
364
+ status: z.ZodOptional<z.ZodEnum<{
365
+ completed: "completed";
366
+ failed: "failed";
367
+ interrupted: "interrupted";
368
+ }>>;
369
+ }, z.core.$strict>>;
370
+ omittedItemIds: z.ZodArray<z.ZodString>;
371
+ omittedTotal: z.ZodInt;
372
+ inlineText: z.ZodString;
373
+ structuredItems: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ type: z.ZodLiteral<"message">;
375
+ role: z.ZodLiteral<"user">;
376
+ content: z.ZodArray<z.ZodObject<{
377
+ type: z.ZodLiteral<"input_text">;
378
+ text: z.ZodString;
379
+ }, z.core.$strict>>;
380
+ }, z.core.$strict>, z.ZodObject<{
381
+ type: z.ZodLiteral<"message">;
382
+ role: z.ZodLiteral<"assistant">;
383
+ content: z.ZodArray<z.ZodObject<{
384
+ type: z.ZodLiteral<"output_text">;
385
+ text: z.ZodString;
386
+ }, z.core.$strict>>;
387
+ }, z.core.$strict>], "role">>;
388
+ estimatedTokens: z.ZodInt;
389
+ bytes: z.ZodInt;
390
+ }, z.core.$strict>;
391
+ /** History entry accepted by {@link buildContextHandoff}. */
392
+ export type ContextHandoffEntry = z.infer<typeof ContextHandoffEntrySchema>;
393
+ /** Input accepted by {@link buildContextHandoff}. */
394
+ export type ContextHandoffInput = z.infer<typeof ContextHandoffInputSchema>;
395
+ /** Responses API item returned in {@link ContextHandoffResult.structuredItems}. */
396
+ export type ContextHandoffStructuredItem = z.infer<typeof ContextHandoffStructuredItemSchema>;
397
+ /** Selected historical item returned in {@link ContextHandoffResult.selectedItems}. */
398
+ export type ContextHandoffSelectedItem = z.infer<typeof ContextHandoffSelectedItemSchema>;
399
+ /** Deterministic handoff payload returned by {@link buildContextHandoff}. */
400
+ export type ContextHandoffResult = z.infer<typeof ContextHandoffResultSchema>;
401
+ /** Result of composing an inline context handoff ahead of a user turn message. */
402
+ export interface InlineHandoffComposition {
403
+ readonly text: string;
404
+ /** `true` when `userText` starts with a `/slash` command so inline context was deferred. */
405
+ readonly deferred: boolean;
406
+ }
407
+ //# sourceMappingURL=handoff-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff-schemas.d.ts","sourceRoot":"","sources":["../../src/agent-executor/handoff-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;aACzB,EAAE,EAAE,GAAG;aACP,OAAO,EAAE,KAAM;aACf,aAAa,EAAE,IAAI;aACnB,SAAS,EAAE,OAAS;aACpB,QAAQ;aACR,aAAa,EAAE,GAAG;aAClB,oBAAoB,EAAE,EAAE;aACxB,YAAY,EAAE,IAAI;aAClB,mBAAmB,EAAE,QAAU;aAC/B,gBAAgB,EAAE,GAAG;CACb,CAAC;AAIX,4FAA4F;AAC5F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQ3C,CAAC;AAEH,sFAAsF;AACtF,eAAO,MAAM,8BAA8B;;;;kBAIzC,CAAC;AAEH,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Q,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,12 @@
1
+ import { type ContextHandoffInput, type ContextHandoffResult, type InlineHandoffComposition } from './handoff-schemas.js';
2
+ /**
3
+ * Deterministically select intact historical items into strict byte and token ceilings
4
+ * for cross-engine context handoff or portable thread forks without calling an LLM.
5
+ */
6
+ export declare function buildContextHandoff(rawInput: ContextHandoffInput): ContextHandoffResult;
7
+ /**
8
+ * Prepend inline handoff text ahead of `userText`, deferring automatically when `userText`
9
+ * begins with a native `/command` (paths with a second slash like `/tmp/file` are not deferred).
10
+ */
11
+ export declare function withInlineHandoffContext(inlineText: string, userText: string): InlineHandoffComposition;
12
+ //# sourceMappingURL=handoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/agent-executor/handoff.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAIzB,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AA2K3B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,oBAAoB,CAwKvF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,wBAAwB,CAW1B"}
@@ -15,6 +15,30 @@ export declare const ExecutorReconcileSchema: z.ZodEnum<{
15
15
  "client-id": "client-id";
16
16
  none: "none";
17
17
  }>;
18
+ /** Declarative capabilities reported by an agent-executor driver and its configuration. */
19
+ export declare const ExecutorDriverCapabilitiesSchema: z.ZodObject<{
20
+ runtimePolicyEnforcement: z.ZodEnum<{
21
+ "client-boundary": "client-boundary";
22
+ native: "native";
23
+ }>;
24
+ sessionApproval: z.ZodBoolean;
25
+ interruptOnDeny: z.ZodBoolean;
26
+ updatedToolInput: z.ZodBoolean;
27
+ structuredInput: z.ZodBoolean;
28
+ steer: z.ZodBoolean;
29
+ fork: z.ZodBoolean;
30
+ revert: z.ZodBoolean;
31
+ compact: z.ZodBoolean;
32
+ injectItems: z.ZodBoolean;
33
+ backgroundWorkOutlivesTurn: z.ZodBoolean;
34
+ multiThreadPerProcess: z.ZodBoolean;
35
+ images: z.ZodBoolean;
36
+ planLimits: z.ZodEnum<{
37
+ none: "none";
38
+ passive: "passive";
39
+ pull: "pull";
40
+ }>;
41
+ }, z.core.$strict>;
18
42
  /** One rate-limit window reported by an engine for a subscription profile. */
19
43
  export declare const PlanWindowSchema: z.ZodObject<{
20
44
  name: z.ZodString;
@@ -112,6 +136,29 @@ export declare const ExecutorEngineInfoSchema: z.ZodObject<{
112
136
  answer: z.ZodLiteral<"failed">;
113
137
  error: z.ZodString;
114
138
  }, z.core.$strict>], "answer">;
139
+ capabilities: z.ZodOptional<z.ZodObject<{
140
+ runtimePolicyEnforcement: z.ZodEnum<{
141
+ "client-boundary": "client-boundary";
142
+ native: "native";
143
+ }>;
144
+ sessionApproval: z.ZodBoolean;
145
+ interruptOnDeny: z.ZodBoolean;
146
+ updatedToolInput: z.ZodBoolean;
147
+ structuredInput: z.ZodBoolean;
148
+ steer: z.ZodBoolean;
149
+ fork: z.ZodBoolean;
150
+ revert: z.ZodBoolean;
151
+ compact: z.ZodBoolean;
152
+ injectItems: z.ZodBoolean;
153
+ backgroundWorkOutlivesTurn: z.ZodBoolean;
154
+ multiThreadPerProcess: z.ZodBoolean;
155
+ images: z.ZodBoolean;
156
+ planLimits: z.ZodEnum<{
157
+ none: "none";
158
+ passive: "passive";
159
+ pull: "pull";
160
+ }>;
161
+ }, z.core.$strict>>;
115
162
  }, z.core.$strict>;
116
163
  /** A turn the executor was running before it restarted, with how far it reported. */
117
164
  export declare const ExecutorResumableTurnSchema: z.ZodObject<{
@@ -147,6 +194,29 @@ export declare const ExecutorHelloSchema: z.ZodObject<{
147
194
  answer: z.ZodLiteral<"failed">;
148
195
  error: z.ZodString;
149
196
  }, z.core.$strict>], "answer">;
197
+ capabilities: z.ZodOptional<z.ZodObject<{
198
+ runtimePolicyEnforcement: z.ZodEnum<{
199
+ "client-boundary": "client-boundary";
200
+ native: "native";
201
+ }>;
202
+ sessionApproval: z.ZodBoolean;
203
+ interruptOnDeny: z.ZodBoolean;
204
+ updatedToolInput: z.ZodBoolean;
205
+ structuredInput: z.ZodBoolean;
206
+ steer: z.ZodBoolean;
207
+ fork: z.ZodBoolean;
208
+ revert: z.ZodBoolean;
209
+ compact: z.ZodBoolean;
210
+ injectItems: z.ZodBoolean;
211
+ backgroundWorkOutlivesTurn: z.ZodBoolean;
212
+ multiThreadPerProcess: z.ZodBoolean;
213
+ images: z.ZodBoolean;
214
+ planLimits: z.ZodEnum<{
215
+ none: "none";
216
+ passive: "passive";
217
+ pull: "pull";
218
+ }>;
219
+ }, z.core.$strict>>;
150
220
  }, z.core.$strict>>;
151
221
  profiles: z.ZodArray<z.ZodObject<{
152
222
  profileId: z.ZodString;
@@ -224,6 +294,8 @@ export declare const ExecutorHelloAckSchema: z.ZodObject<{
224
294
  }, z.core.$strict>;
225
295
  /** Engine identifier supported by `agent-executor`. */
226
296
  export type ExecutorEngine = z.infer<typeof ExecutorEngineSchema>;
297
+ /** Declarative capabilities reported by an engine driver. */
298
+ export type ExecutorDriverCapabilities = z.infer<typeof ExecutorDriverCapabilitiesSchema>;
227
299
  /** Reported version, reconcile mode, and discovered models for one engine. */
228
300
  export type ExecutorEngineInfo = z.infer<typeof ExecutorEngineInfoSchema>;
229
301
  /** Executor-to-server handshake payload. */
@@ -1 +1 @@
1
- {"version":3,"file":"hello.d.ts","sourceRoot":"","sources":["../../src/agent-executor/hello.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB;;;;;EAAuD,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAAgC,CAAC;AAErE,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB;;;;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vG,eAAO,MAAM,sBAAsB;;;;;;;;;;kBAGjC,CAAC;AAEH,uDAAuD;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,6DAA6D;AAC7D,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,4CAA4C;AAC5C,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,4DAA4D;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,qFAAqF;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,kGAAkG;AAClG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -40,6 +40,19 @@ export declare function resolveImageBytes(reference: string, options: {
40
40
  resolveFile: (reference: string) => Promise<Uint8Array>;
41
41
  maxImageBytes: number;
42
42
  }): Promise<Uint8Array>;
43
+ /**
44
+ * Validate every part synchronously before the first `resolveFile` call, then resolve and
45
+ * base64-encode every image attachment in order while preserving optional driver-specific parts.
46
+ * Any refusal rejects the whole turn before anything is sent to the engine.
47
+ */
48
+ export declare function inlineOrderedParts<TPart extends {
49
+ readonly type: string;
50
+ }, TExtra = never>(parts: readonly (AgentMessagePart | TPart)[], options: DriverImageOptions & {
51
+ driverLabel: string;
52
+ acceptedDescription?: string;
53
+ signal?: AbortSignal;
54
+ validateExtra?: (part: AgentMessagePart | TPart) => TExtra | undefined;
55
+ }): Promise<Array<InlinedPart | TExtra>>;
43
56
  /**
44
57
  * Validate every part synchronously before the first `resolveFile` call, then resolve and
45
58
  * base64-encode every image attachment in order. Any refusal rejects the whole turn before
@@ -58,6 +71,15 @@ export declare function assertImageFrameBytes(serialized: string, maxBytes: numb
58
71
  * Guard a session's `startTurn` while host attachments are resolved asynchronously: prevents
59
72
  * concurrent `startTurn` calls during `resolveFile` and re-checks session liveness after await.
60
73
  */
74
+ export declare function guardedTurnStarter<TInput, TResolved, TTurn>(options: {
75
+ busyMessage: string;
76
+ check(input: TInput): void;
77
+ inline(input: TInput): Promise<readonly TResolved[]>;
78
+ dispatch(input: TInput, parts: readonly TResolved[]): TTurn | Promise<TTurn>;
79
+ }): (input: TInput) => Promise<TTurn>;
80
+ /**
81
+ * Guard a portable `startTurn` (text and image parts) while host attachments are resolved.
82
+ */
61
83
  export declare function imageTurnStarter<TInput extends {
62
84
  readonly input: readonly AgentMessagePart[];
63
85
  }, TTurn>(options: {
@@ -1 +1 @@
1
- {"version":3,"file":"image-input.d.ts","sourceRoot":"","sources":["../../src/agent-executor/image-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,QAAkB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAmB,CAAC;AAE1D,iEAAiE;AACjE,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC;AAE9F,iEAAi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IAAI,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAChF,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,CAYpC"}
@@ -7,8 +7,8 @@ import type { ExecutorDelta } from './vocabulary.js';
7
7
  * appeared; text and reasoning chunks append to their item; a tool call or
8
8
  * result replaces its item; an approval request becomes an approval-request
9
9
  * part. A `window` delta discards what was folded and starts again. Usage,
10
- * the context gauge, the end of the turn, errors and answered requests carry no part — they are
11
- * the turn's facts, not its content.
10
+ * the context gauge, lifecycle `status` deltas, the end of the turn, errors and answered requests
11
+ * carry no part — they are the turn's facts, not its content.
12
12
  */
13
13
  export declare function projectExecutorDeltas(deltas: Iterable<ExecutorDelta>): AgentMessagePart[];
14
14
  //# sourceMappingURL=projection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/agent-executor/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,gBAAgB,EAAE,CA2DzF"}
1
+ {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/agent-executor/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,gBAAgB,EAAE,CA4DzF"}
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { type BoundedChannel } from '../internal/channel.js';
3
3
  import type { EngineProcess } from './engine-process.js';
4
4
  import { type ExecutorProfileConfig } from './profile.js';
5
- import type { ExecutorDelta } from './vocabulary.js';
5
+ import { type ExecutorDelta, type ExecutorStartupPhase } from './vocabulary.js';
6
6
  /** Return `value` when it contains non-whitespace characters, else `undefined`. */
7
7
  export declare function nonEmptyString(value: unknown): string | undefined;
8
8
  /** Convert epoch seconds to ISO-8601 when within JavaScript `Date` range; otherwise `undefined`. */
@@ -66,4 +66,13 @@ export declare function stopConnection(connection: EngineConnection, primary?: {
66
66
  export declare function withEphemeralConnection<C extends EngineConnection, T>(connect: (signal: AbortSignal) => Promise<C>, use: (connection: C) => Promise<T>): Promise<T>;
67
67
  /** Validate and clone a value into bounded JSON data without `JSON.parse(JSON.stringify(...))`. */
68
68
  export declare function safeJsonValue(value: unknown): z.infer<ReturnType<typeof z.json>>;
69
+ /** Invoke a callback or cleanup hook while containing both synchronous throws and async rejections. */
70
+ export declare function invokeSafely(invoke: () => unknown): void;
71
+ /** Validate and forward a session startup phase to an optional observer without letting throws break `open()`. */
72
+ export declare function emitStartupPhase(callback: ((phase: ExecutorStartupPhase) => void) | undefined, phase: ExecutorStartupPhase): void;
73
+ /**
74
+ * Clamp a plan-window name (`prefix + suffix`) to at most `maxChars` characters and
75
+ * deterministically disambiguate collisions via a short SHA-256 tag.
76
+ */
77
+ export declare function clampUniqueWindowName(prefix: string, suffix: string, seenNames: Set<string>, disambiguatorSeed: string, maxChars?: number): string;
69
78
  //# sourceMappingURL=session-primitives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-primitives.d.ts","sourceRoot":"","sources":["../../src/agent-executor/session-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,qBAAqB,CAAC;AAGhF,OAAO,KAAK,EAAE,aAAa,E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