@zvada/agent-server 0.3.25 → 0.3.27
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/CHANGELOG.md +113 -0
- package/README.md +4 -1
- package/dist/client/client.js +27 -11
- package/dist/client/connection.js +35 -3
- package/dist/core/agents/acp/acp-agent.js +91 -14
- package/dist/core/agents/acp/mappings.js +5 -1
- package/dist/core/agents/claude-code/approvals.js +3 -2
- package/dist/core/agents/claude-code/claude-agent.js +12 -2
- package/dist/core/agents/claude-code/mcp.js +9 -1
- package/dist/core/agents/claude-code/models.js +16 -10
- package/dist/core/agents/claude-code/options.js +23 -2
- package/dist/core/agents/claude-code/session.js +21 -1
- package/dist/core/agents/claude-code/tools.js +9 -4
- package/dist/core/agents/claude-code/turn.js +2 -0
- package/dist/core/agents/codex-app-server/adapter.js +2 -0
- package/dist/core/agents/codex-app-server/client.js +8 -5
- package/dist/core/agents/codex-app-server/codex-agent.js +35 -2
- package/dist/core/agents/codex-app-server/effort.js +13 -6
- package/dist/core/agents/codex-app-server/mcp.js +35 -18
- package/dist/core/agents/codex-app-server/models.js +10 -10
- package/dist/core/agents/codex-app-server/options.js +11 -2
- package/dist/core/agents/codex-app-server/plan-approval.js +1 -1
- package/dist/core/agents/codex-app-server/session.js +11 -4
- package/dist/core/agents/codex-app-server/thread-settings.js +30 -11
- package/dist/core/agents/host-tools.js +493 -0
- package/dist/core/agents/mcp-config.js +6 -2
- package/dist/core/agents/scripted/scripted-agent.js +39 -6
- package/dist/core/agents/scripted/steps.js +5 -1
- package/dist/core/agents/session-agent.js +70 -2
- package/dist/core/agents/thinking-levels.js +8 -5
- package/dist/core/index.js +1 -0
- package/dist/core/presets.js +16 -3
- package/dist/core/processes/lifeline.js +9 -5
- package/dist/core/provision/pins.js +7 -16
- package/dist/core/provision/releases.js +25 -25
- package/dist/core/proxy/loopback.js +22 -4
- package/dist/core/runtime/agent-runtime.js +15 -5
- package/dist/core/runtime/event-processor.js +13 -8
- package/dist/core/runtime/origin-line.js +42 -0
- package/dist/core/runtime/request-broker.js +2 -1
- package/dist/core/runtime/steering.js +4 -3
- package/dist/core/runtime/turn.js +6 -4
- package/dist/operator/errors.js +97 -0
- package/dist/operator/index.js +10 -5
- package/dist/operator/mcp.js +7 -12
- package/dist/operator/operator.js +1336 -380
- package/dist/operator/refs.js +59 -0
- package/dist/operator/render.js +171 -74
- package/dist/operator/session-tools.js +87 -0
- package/dist/operator/types.js +30 -0
- package/dist/operator/view.js +82 -27
- package/dist/protocol/config.js +33 -6
- package/dist/protocol/conversation.js +3 -0
- package/dist/protocol/history.js +2 -1
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/lifecycle.js +19 -0
- package/dist/protocol/model-catalog.js +58 -18
- package/dist/protocol/models.js +6 -27
- package/dist/protocol/origin.js +39 -0
- package/dist/protocol/reduce.js +2 -0
- package/dist/protocol/thinking.js +22 -9
- package/dist/protocol/wire-api.js +2 -2
- package/dist/protocol/wire.js +17 -0
- package/dist/server/bin.js +6 -4
- package/dist/server/routes.js +15 -5
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/connection.d.ts +14 -2
- package/dist/types/client/connection.d.ts.map +1 -1
- package/dist/types/client/turns.d.ts +2 -2
- package/dist/types/client/turns.d.ts.map +1 -1
- package/dist/types/core/agents/acp/acp-agent.d.ts +15 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +5 -1
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/acp/requests.d.ts +2 -0
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -1
- package/dist/types/core/agents/base.d.ts +2 -0
- package/dist/types/core/agents/base.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts +2 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +1 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts +8 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/models.d.ts +9 -5
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +10 -1
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/session.d.ts +2 -0
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/turn.d.ts +3 -0
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +11 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts +7 -7
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +11 -3
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts +4 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/options.d.ts +9 -2
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/requests.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/session.d.ts +6 -3
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
- package/dist/types/core/agents/host-tools.d.ts +162 -0
- package/dist/types/core/agents/host-tools.d.ts.map +1 -0
- package/dist/types/core/agents/mcp-config.d.ts +11 -2
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/scripted-agent.d.ts +14 -1
- package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/steps.d.ts.map +1 -1
- package/dist/types/core/agents/session-agent.d.ts +2 -7
- package/dist/types/core/agents/session-agent.d.ts.map +1 -1
- package/dist/types/core/agents/thinking-levels.d.ts +7 -3
- package/dist/types/core/agents/thinking-levels.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +11 -1
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/lifeline.d.ts.map +1 -1
- package/dist/types/core/provision/pins.d.ts +5 -4
- package/dist/types/core/provision/pins.d.ts.map +1 -1
- package/dist/types/core/proxy/loopback.d.ts.map +1 -1
- package/dist/types/core/runtime/agent-runtime.d.ts +4 -2
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/types/core/runtime/event-processor.d.ts +2 -2
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
- package/dist/types/core/runtime/origin-line.d.ts +15 -0
- package/dist/types/core/runtime/origin-line.d.ts.map +1 -0
- package/dist/types/core/runtime/request-broker.d.ts +1 -1
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
- package/dist/types/core/runtime/steering.d.ts +7 -4
- package/dist/types/core/runtime/steering.d.ts.map +1 -1
- package/dist/types/core/runtime/turn.d.ts.map +1 -1
- package/dist/types/operator/errors.d.ts +83 -0
- package/dist/types/operator/errors.d.ts.map +1 -0
- package/dist/types/operator/index.d.ts +10 -5
- package/dist/types/operator/index.d.ts.map +1 -1
- package/dist/types/operator/mcp.d.ts +1 -1
- package/dist/types/operator/mcp.d.ts.map +1 -1
- package/dist/types/operator/operator.d.ts +15 -197
- package/dist/types/operator/operator.d.ts.map +1 -1
- package/dist/types/operator/refs.d.ts +25 -0
- package/dist/types/operator/refs.d.ts.map +1 -0
- package/dist/types/operator/render.d.ts +59 -19
- package/dist/types/operator/render.d.ts.map +1 -1
- package/dist/types/operator/session-tools.d.ts +61 -0
- package/dist/types/operator/session-tools.d.ts.map +1 -0
- package/dist/types/operator/types.d.ts +441 -0
- package/dist/types/operator/types.d.ts.map +1 -0
- package/dist/types/operator/view.d.ts +19 -29
- package/dist/types/operator/view.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +32 -24
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +48 -39
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +2 -18
- package/dist/types/protocol/execution.d.ts.map +1 -1
- package/dist/types/protocol/history.d.ts +1 -1
- package/dist/types/protocol/history.d.ts.map +1 -1
- package/dist/types/protocol/index.d.ts +1 -0
- package/dist/types/protocol/index.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +48 -74
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/model-catalog.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +4 -42
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/origin.d.ts +49 -0
- package/dist/types/protocol/origin.d.ts.map +1 -0
- package/dist/types/protocol/reduce.d.ts.map +1 -1
- package/dist/types/protocol/thinking.d.ts +19 -19
- package/dist/types/protocol/thinking.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +59 -106
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +81 -119
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/dist/types/server/routes.d.ts.map +1 -1
- package/docs/consuming.md +124 -132
- package/docs/deploy.md +6 -5
- package/docs/harnesses.md +79 -31
- package/docs/sync-history.md +2 -1
- package/package.json +4 -4
- package/src/client/client.ts +36 -9
- package/src/client/connection.ts +31 -1
- package/src/client/turns.ts +2 -1
- package/src/core/agents/acp/acp-agent.ts +123 -17
- package/src/core/agents/acp/mappings.ts +5 -1
- package/src/core/agents/acp/requests.ts +2 -0
- package/src/core/agents/base.ts +2 -0
- package/src/core/agents/claude-code/approvals.ts +4 -3
- package/src/core/agents/claude-code/claude-agent.ts +14 -2
- package/src/core/agents/claude-code/mcp.ts +11 -1
- package/src/core/agents/claude-code/models.ts +15 -10
- package/src/core/agents/claude-code/options.ts +33 -3
- package/src/core/agents/claude-code/session.ts +26 -1
- package/src/core/agents/claude-code/tools.ts +10 -4
- package/src/core/agents/claude-code/turn.ts +4 -0
- package/src/core/agents/codex-app-server/adapter.ts +2 -0
- package/src/core/agents/codex-app-server/client.ts +11 -5
- package/src/core/agents/codex-app-server/codex-agent.ts +45 -1
- package/src/core/agents/codex-app-server/effort.ts +15 -20
- package/src/core/agents/codex-app-server/mcp.ts +46 -23
- package/src/core/agents/codex-app-server/models.ts +10 -10
- package/src/core/agents/codex-app-server/options.ts +16 -2
- package/src/core/agents/codex-app-server/plan-approval.ts +1 -1
- package/src/core/agents/codex-app-server/requests.ts +2 -0
- package/src/core/agents/codex-app-server/session.ts +19 -4
- package/src/core/agents/codex-app-server/thread-settings.ts +31 -11
- package/src/core/agents/host-tools.ts +649 -0
- package/src/core/agents/mcp-config.ts +15 -3
- package/src/core/agents/scripted/scripted-agent.ts +51 -5
- package/src/core/agents/scripted/steps.ts +5 -1
- package/src/core/agents/session-agent.ts +78 -2
- package/src/core/agents/thinking-levels.ts +9 -6
- package/src/core/index.ts +9 -0
- package/src/core/presets.ts +28 -4
- package/src/core/processes/lifeline.ts +9 -5
- package/src/core/provision/pins.ts +7 -16
- package/src/core/provision/releases.ts +25 -25
- package/src/core/proxy/loopback.ts +25 -4
- package/src/core/runtime/agent-runtime.ts +31 -7
- package/src/core/runtime/event-processor.ts +13 -6
- package/src/core/runtime/origin-line.ts +43 -0
- package/src/core/runtime/request-broker.ts +2 -0
- package/src/core/runtime/steering.ts +8 -4
- package/src/core/runtime/turn.ts +11 -4
- package/src/operator/errors.ts +218 -0
- package/src/operator/index.ts +18 -23
- package/src/operator/mcp.ts +7 -16
- package/src/operator/operator.ts +1583 -613
- package/src/operator/refs.ts +75 -0
- package/src/operator/render.ts +208 -98
- package/src/operator/session-tools.ts +126 -0
- package/src/operator/types.ts +505 -0
- package/src/operator/view.ts +93 -42
- package/src/protocol/config.ts +36 -7
- package/src/protocol/conversation.ts +3 -0
- package/src/protocol/history.ts +2 -1
- package/src/protocol/index.ts +1 -0
- package/src/protocol/lifecycle.ts +21 -0
- package/src/protocol/model-catalog.ts +58 -18
- package/src/protocol/models.ts +6 -26
- package/src/protocol/origin.ts +47 -0
- package/src/protocol/reduce.ts +4 -0
- package/src/protocol/thinking.ts +27 -14
- package/src/protocol/wire-api.ts +2 -2
- package/src/protocol/wire.ts +18 -0
- package/src/server/bin.ts +6 -4
- package/src/server/routes.ts +16 -5
|
@@ -179,25 +179,9 @@ export declare const TurnStartedEventSchema: z.ZodObject<{
|
|
|
179
179
|
execution: z.ZodOptional<z.ZodObject<{
|
|
180
180
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
181
181
|
model: z.ZodOptional<z.ZodString>;
|
|
182
|
-
thinkingLevel: z.ZodOptional<z.
|
|
183
|
-
off: "off";
|
|
184
|
-
low: "low";
|
|
185
|
-
medium: "medium";
|
|
186
|
-
high: "high";
|
|
187
|
-
xhigh: "xhigh";
|
|
188
|
-
max: "max";
|
|
189
|
-
ultra: "ultra";
|
|
190
|
-
}>>;
|
|
182
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
191
183
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
192
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
193
|
-
off: "off";
|
|
194
|
-
low: "low";
|
|
195
|
-
medium: "medium";
|
|
196
|
-
high: "high";
|
|
197
|
-
xhigh: "xhigh";
|
|
198
|
-
max: "max";
|
|
199
|
-
ultra: "ultra";
|
|
200
|
-
}>>;
|
|
184
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
201
185
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
186
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
203
187
|
}, z.core.$strip>>;
|
|
@@ -212,25 +196,9 @@ export declare const TurnEndedEventSchema: z.ZodObject<{
|
|
|
212
196
|
execution: z.ZodOptional<z.ZodObject<{
|
|
213
197
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
214
198
|
model: z.ZodOptional<z.ZodString>;
|
|
215
|
-
thinkingLevel: z.ZodOptional<z.
|
|
216
|
-
off: "off";
|
|
217
|
-
low: "low";
|
|
218
|
-
medium: "medium";
|
|
219
|
-
high: "high";
|
|
220
|
-
xhigh: "xhigh";
|
|
221
|
-
max: "max";
|
|
222
|
-
ultra: "ultra";
|
|
223
|
-
}>>;
|
|
199
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
224
200
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
225
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
226
|
-
off: "off";
|
|
227
|
-
low: "low";
|
|
228
|
-
medium: "medium";
|
|
229
|
-
high: "high";
|
|
230
|
-
xhigh: "xhigh";
|
|
231
|
-
max: "max";
|
|
232
|
-
ultra: "ultra";
|
|
233
|
-
}>>;
|
|
201
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
234
202
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
203
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
204
|
}, z.core.$strip>>;
|
|
@@ -264,11 +232,24 @@ export declare const MessageStartedEventSchema: z.ZodObject<{
|
|
|
264
232
|
messageId: z.ZodString;
|
|
265
233
|
outputIndex: z.ZodNumber;
|
|
266
234
|
role: z.ZodEnum<{
|
|
267
|
-
user: "user";
|
|
268
235
|
assistant: "assistant";
|
|
236
|
+
user: "user";
|
|
269
237
|
}>;
|
|
270
238
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
271
239
|
model: z.ZodOptional<z.ZodString>;
|
|
240
|
+
origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
+
kind: z.ZodLiteral<"person">;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
kind: z.ZodLiteral<"session">;
|
|
244
|
+
sessionId: z.ZodString;
|
|
245
|
+
name: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"assistant">;
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
251
|
+
kind: z.ZodString;
|
|
252
|
+
}, z.core.$loose>]>>;
|
|
272
253
|
sessionId: z.ZodString;
|
|
273
254
|
turnId: z.ZodString;
|
|
274
255
|
type: z.ZodLiteral<"message.started">;
|
|
@@ -553,10 +534,21 @@ export type PermissionOutcome = z.infer<typeof PermissionOutcomeSchema>;
|
|
|
553
534
|
* `options` is THE source of buttons — clients render the server's list,
|
|
554
535
|
* never derive affordances from local policy.
|
|
555
536
|
*/
|
|
537
|
+
/**
|
|
538
|
+
* What a permission request decides. OPEN: `tool`, whether a tool call may
|
|
539
|
+
* run (every built-in harness's tool approvals, and an ACP agent's, whose
|
|
540
|
+
* requests are tool-scoped); `plan`, whether to leave planning and carry out
|
|
541
|
+
* a plan (Claude's and Codex's plan approvals). A value this build does not
|
|
542
|
+
* know, or none, is read as `tool`: the stricter one.
|
|
543
|
+
*/
|
|
544
|
+
export declare const PERMISSION_PURPOSES: readonly ["tool", "plan"];
|
|
545
|
+
export type PermissionPurpose = (typeof PERMISSION_PURPOSES)[number] | (string & {});
|
|
546
|
+
export declare const PermissionPurposeSchema: z.ZodType<(string & {}) | "tool" | "plan", unknown, z.core.$ZodTypeInternals<(string & {}) | "tool" | "plan", unknown>>;
|
|
556
547
|
export declare const PermissionRequestedEventSchema: z.ZodObject<{
|
|
557
548
|
timestamp: z.ZodNumber;
|
|
558
549
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
559
550
|
requestId: z.ZodString;
|
|
551
|
+
purpose: z.ZodOptional<z.ZodType<(string & {}) | "tool" | "plan", unknown, z.core.$ZodTypeInternals<(string & {}) | "tool" | "plan", unknown>>>;
|
|
560
552
|
title: z.ZodString;
|
|
561
553
|
toolCall: z.ZodOptional<z.ZodObject<{
|
|
562
554
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -750,25 +742,9 @@ export declare const LifecycleEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
750
742
|
execution: z.ZodOptional<z.ZodObject<{
|
|
751
743
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
752
744
|
model: z.ZodOptional<z.ZodString>;
|
|
753
|
-
thinkingLevel: z.ZodOptional<z.
|
|
754
|
-
off: "off";
|
|
755
|
-
low: "low";
|
|
756
|
-
medium: "medium";
|
|
757
|
-
high: "high";
|
|
758
|
-
xhigh: "xhigh";
|
|
759
|
-
max: "max";
|
|
760
|
-
ultra: "ultra";
|
|
761
|
-
}>>;
|
|
745
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
762
746
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
763
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
764
|
-
off: "off";
|
|
765
|
-
low: "low";
|
|
766
|
-
medium: "medium";
|
|
767
|
-
high: "high";
|
|
768
|
-
xhigh: "xhigh";
|
|
769
|
-
max: "max";
|
|
770
|
-
ultra: "ultra";
|
|
771
|
-
}>>;
|
|
747
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
772
748
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
773
749
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
774
750
|
}, z.core.$strip>>;
|
|
@@ -781,11 +757,24 @@ export declare const LifecycleEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
781
757
|
messageId: z.ZodString;
|
|
782
758
|
outputIndex: z.ZodNumber;
|
|
783
759
|
role: z.ZodEnum<{
|
|
784
|
-
user: "user";
|
|
785
760
|
assistant: "assistant";
|
|
761
|
+
user: "user";
|
|
786
762
|
}>;
|
|
787
763
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
788
764
|
model: z.ZodOptional<z.ZodString>;
|
|
765
|
+
origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
766
|
+
kind: z.ZodLiteral<"person">;
|
|
767
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
768
|
+
kind: z.ZodLiteral<"session">;
|
|
769
|
+
sessionId: z.ZodString;
|
|
770
|
+
name: z.ZodOptional<z.ZodString>;
|
|
771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
772
|
+
kind: z.ZodLiteral<"assistant">;
|
|
773
|
+
id: z.ZodString;
|
|
774
|
+
name: z.ZodString;
|
|
775
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
776
|
+
kind: z.ZodString;
|
|
777
|
+
}, z.core.$loose>]>>;
|
|
789
778
|
sessionId: z.ZodString;
|
|
790
779
|
turnId: z.ZodString;
|
|
791
780
|
type: z.ZodLiteral<"message.started">;
|
|
@@ -990,25 +979,9 @@ export declare const LifecycleEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
990
979
|
execution: z.ZodOptional<z.ZodObject<{
|
|
991
980
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
992
981
|
model: z.ZodOptional<z.ZodString>;
|
|
993
|
-
thinkingLevel: z.ZodOptional<z.
|
|
994
|
-
off: "off";
|
|
995
|
-
low: "low";
|
|
996
|
-
medium: "medium";
|
|
997
|
-
high: "high";
|
|
998
|
-
xhigh: "xhigh";
|
|
999
|
-
max: "max";
|
|
1000
|
-
ultra: "ultra";
|
|
1001
|
-
}>>;
|
|
982
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1002
983
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
1003
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
1004
|
-
off: "off";
|
|
1005
|
-
low: "low";
|
|
1006
|
-
medium: "medium";
|
|
1007
|
-
high: "high";
|
|
1008
|
-
xhigh: "xhigh";
|
|
1009
|
-
max: "max";
|
|
1010
|
-
ultra: "ultra";
|
|
1011
|
-
}>>;
|
|
984
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1012
985
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1013
986
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1014
987
|
}, z.core.$strip>>;
|
|
@@ -1097,6 +1070,7 @@ export declare const LifecycleEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1097
1070
|
timestamp: z.ZodNumber;
|
|
1098
1071
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1099
1072
|
requestId: z.ZodString;
|
|
1073
|
+
purpose: z.ZodOptional<z.ZodType<(string & {}) | "tool" | "plan", unknown, z.core.$ZodTypeInternals<(string & {}) | "tool" | "plan", unknown>>>;
|
|
1100
1074
|
title: z.ZodString;
|
|
1101
1075
|
toolCall: z.ZodOptional<z.ZodObject<{
|
|
1102
1076
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/protocol/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/protocol/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,EAAE,KAAK,IAAI,EAAc,KAAK,WAAW,EAAc,MAAM,YAAY,CAAC;AAMjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,2FAOf,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AACvE,eAAO,MAAM,gBAAgB,iQAA+B,CAAC;AAE7D,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,qBAAsB,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GA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yFAAyF;AACzF,eAAO,MAAM,kBAAkB,EAId,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC9E,IAAI,EAAE,IAAI,GAAG,WAAW,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAC9B,OAAO,CAAC,cAAc,EAAE,gBAAgB,CAAC,GACzC,uBAAuB,CAAC;AAK3B;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,GAAG,YAAY,CAiBzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../src/protocol/model-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,EAAE;IACrC,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../src/protocol/model-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,EAAE;IACrC,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;CAsQ5C,CAAC"}
|
|
@@ -19,24 +19,8 @@ export declare const ModelDescriptorSchema: z.ZodObject<{
|
|
|
19
19
|
resolvedId: z.ZodOptional<z.ZodString>;
|
|
20
20
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
thinking: z.ZodObject<{
|
|
22
|
-
levels: z.ZodArray<z.
|
|
23
|
-
|
|
24
|
-
low: "low";
|
|
25
|
-
medium: "medium";
|
|
26
|
-
high: "high";
|
|
27
|
-
xhigh: "xhigh";
|
|
28
|
-
max: "max";
|
|
29
|
-
ultra: "ultra";
|
|
30
|
-
}>>;
|
|
31
|
-
default: z.ZodOptional<z.ZodEnum<{
|
|
32
|
-
off: "off";
|
|
33
|
-
low: "low";
|
|
34
|
-
medium: "medium";
|
|
35
|
-
high: "high";
|
|
36
|
-
xhigh: "xhigh";
|
|
37
|
-
max: "max";
|
|
38
|
-
ultra: "ultra";
|
|
39
|
-
}>>;
|
|
22
|
+
levels: z.ZodArray<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
23
|
+
default: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
40
24
|
}, z.core.$strip>;
|
|
41
25
|
images: z.ZodOptional<z.ZodBoolean>;
|
|
42
26
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -63,24 +47,8 @@ export declare const ModelListSchema: z.ZodObject<{
|
|
|
63
47
|
resolvedId: z.ZodOptional<z.ZodString>;
|
|
64
48
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
65
49
|
thinking: z.ZodObject<{
|
|
66
|
-
levels: z.ZodArray<z.
|
|
67
|
-
|
|
68
|
-
low: "low";
|
|
69
|
-
medium: "medium";
|
|
70
|
-
high: "high";
|
|
71
|
-
xhigh: "xhigh";
|
|
72
|
-
max: "max";
|
|
73
|
-
ultra: "ultra";
|
|
74
|
-
}>>;
|
|
75
|
-
default: z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
off: "off";
|
|
77
|
-
low: "low";
|
|
78
|
-
medium: "medium";
|
|
79
|
-
high: "high";
|
|
80
|
-
xhigh: "xhigh";
|
|
81
|
-
max: "max";
|
|
82
|
-
ultra: "ultra";
|
|
83
|
-
}>>;
|
|
50
|
+
levels: z.ZodArray<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
51
|
+
default: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
84
52
|
}, z.core.$strip>;
|
|
85
53
|
images: z.ZodOptional<z.ZodBoolean>;
|
|
86
54
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -93,12 +61,6 @@ export declare const ModelListSchema: z.ZodObject<{
|
|
|
93
61
|
fetchedAt: z.ZodNumber;
|
|
94
62
|
}, z.core.$strip>;
|
|
95
63
|
export type ModelList = z.infer<typeof ModelListSchema>;
|
|
96
|
-
/**
|
|
97
|
-
* Parse a model list from a server that may be newer than this build: a
|
|
98
|
-
* thinking level this build does not know is dropped from `levels` (and from
|
|
99
|
-
* `default`) instead of failing the whole list.
|
|
100
|
-
*/
|
|
101
|
-
export declare function decodeModelList(value: unknown): ModelList;
|
|
102
64
|
/**
|
|
103
65
|
* The models each harness's pinned CLI listed when this release was built
|
|
104
66
|
* (`bun run models:refresh`), for a picker without a live list. The live list
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/protocol/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,cAAc,CAAC;AAGrE,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/protocol/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,cAAc,CAAC;AAGrE,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,eAAe,CAAC;AAGxE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBAsBhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,6FAA6F;AAC7F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,eAAe,EAAmC,CAAC;AAEzF,mFAAmF;AACnF,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,MAAM,GACX,SAAS,aAAa,EAAE,GAAG,SAAS,CAEtC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Who sent a turn's or a steer's message. Absent, or `person`, is the person
|
|
4
|
+
* the product serves; anything else is an agent, and the engine tells the
|
|
5
|
+
* receiving model so in one line before the input it is given. `name` is the
|
|
6
|
+
* host's, untrusted: the engine quotes it.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The longest id or name an origin carries, in UTF-16 units: at most 765
|
|
10
|
+
* bytes of UTF-8, under the 1 KiB below which a journal never cuts a string
|
|
11
|
+
* to fit (`sync/fit.ts`), so a kept origin reads back exactly as it was sent.
|
|
12
|
+
* The line the model reads clips a name further, to 200 characters.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ORIGIN_FIELD_MAX = 255;
|
|
15
|
+
export declare const OriginSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"person">;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"session">;
|
|
19
|
+
sessionId: z.ZodString;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
kind: z.ZodLiteral<"assistant">;
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
}, z.core.$strip>], "kind">;
|
|
26
|
+
export type Origin = z.infer<typeof OriginSchema>;
|
|
27
|
+
/**
|
|
28
|
+
* An origin as the stream reports it (the user message's `origin`): one this
|
|
29
|
+
* build knows, or a newer engine's kind, kept intact rather than refused.
|
|
30
|
+
*/
|
|
31
|
+
export declare const ReportedOriginSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"person">;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"session">;
|
|
35
|
+
sessionId: z.ZodString;
|
|
36
|
+
name: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
kind: z.ZodLiteral<"assistant">;
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
42
|
+
kind: z.ZodString;
|
|
43
|
+
}, z.core.$loose>]>;
|
|
44
|
+
export type ReportedOrigin = z.infer<typeof ReportedOriginSchema>;
|
|
45
|
+
/** The origin as the engine carries it: undefined for the person, whose messages carry none. */
|
|
46
|
+
export declare function agentOrigin(origin: Origin | undefined): Exclude<Origin, {
|
|
47
|
+
kind: "person";
|
|
48
|
+
}> | undefined;
|
|
49
|
+
//# sourceMappingURL=origin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"origin.d.ts","sourceRoot":"","sources":["../../../src/protocol/origin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,YAAY;;;;;;;;;;2BAMvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;mBAM/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,gGAAgG;AAChG,wBAAgB,WAAW,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GAAG,SAAS,CAEjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduce.d.ts","sourceRoot":"","sources":["../../../src/protocol/reduce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kBAAkB,EAGlB,iBAAiB,EAGjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAEX,qBAAqB,EAErB,YAAY,EACZ,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"reduce.d.ts","sourceRoot":"","sources":["../../../src/protocol/reduce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kBAAkB,EAGlB,iBAAiB,EAGjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAEX,qBAAqB,EAErB,YAAY,EACZ,MAAM,gBAAgB,CAAC;AAwPxB,iFAAiF;AACjF,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,qBAAqB,GAAG,YAAY,GACzC,iBAAiB,CAEnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,qBAAqB,GAAG,YAAY,GACzC;IAAE,KAAK,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,kBAAkB,EAAE,CAAA;CAAE,CAI7D"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
/**
|
|
3
2
|
* A single, harness-agnostic reasoning dial. Each harness maps it to its own
|
|
4
3
|
* native control: Claude -> adaptive `thinking` + `effort`; Codex ->
|
|
5
|
-
* `ReasoningEffort`. What runs depends on the model:
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* `ReasoningEffort`. What runs depends on the model: each harness runs the
|
|
5
|
+
* nearest level the model accepts (`ultra` on a Claude model topping out at
|
|
6
|
+
* `max` runs `max`).
|
|
7
|
+
*
|
|
8
|
+
* The levels this build knows, in order, lowest first. A harness may list
|
|
9
|
+
* others for a model: the names are an open vocabulary, the harness's own.
|
|
8
10
|
*/
|
|
9
11
|
export declare const THINKING_LEVELS: readonly ["off", "low", "medium", "high", "xhigh", "max", "ultra"];
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
max: "max";
|
|
18
|
-
ultra: "ultra";
|
|
19
|
-
}>;
|
|
20
|
-
export declare function isThinkingLevel(v: string): v is ThinkingLevel;
|
|
12
|
+
/** A level this build knows and orders. */
|
|
13
|
+
export type KnownThinkingLevel = (typeof THINKING_LEVELS)[number];
|
|
14
|
+
/** A thinking level: one this build knows, or another a harness lists. OPEN. */
|
|
15
|
+
export type ThinkingLevel = KnownThinkingLevel | (string & {});
|
|
16
|
+
export declare const ThinkingLevelSchema: import("zod").ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, import("zod/v4/core").$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>;
|
|
17
|
+
/** Whether `v` is a level this build knows. */
|
|
18
|
+
export declare function isThinkingLevel(v: string): v is KnownThinkingLevel;
|
|
21
19
|
/**
|
|
22
|
-
* The level a model runs when it offers only `supported
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* `
|
|
20
|
+
* The level a model runs when it offers only `supported`. A level it lists is
|
|
21
|
+
* itself. Otherwise, for a level this build knows, the highest known level it
|
|
22
|
+
* lists at or below `level`, else its lowest known one: use it when switching
|
|
23
|
+
* models, so `ultra` on a model topping out at `max` becomes `max`, not a
|
|
24
|
+
* fixed fallback. `undefined` for a level this build does not know and the
|
|
25
|
+
* model does not list, and when the model offers none.
|
|
26
26
|
*/
|
|
27
27
|
export declare function clampThinkingLevel(level: ThinkingLevel, supported: readonly ThinkingLevel[]): ThinkingLevel | undefined;
|
|
28
28
|
//# sourceMappingURL=thinking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thinking.d.ts","sourceRoot":"","sources":["../../../src/protocol/thinking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thinking.d.ts","sourceRoot":"","sources":["../../../src/protocol/thinking.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,oEAAqE,CAAC;AAClG,2CAA2C;AAC3C,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,gFAAgF;AAChF,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE/D,eAAO,MAAM,mBAAmB,gPAAkC,CAAC;AAEnE,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,kBAAkB,CAElE;AAID;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,SAAS,aAAa,EAAE,GACjC,aAAa,GAAG,SAAS,CAY3B"}
|