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.
- package/CHANGELOG.md +26 -0
- package/dist/agent-executor/acp/v1-connect.d.ts +87 -19
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +4 -2
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +56 -0
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-map.d.ts +13 -2
- package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-permission.d.ts +44 -0
- package/dist/agent-executor/acp/v1-permission.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts +63 -10
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +34 -7
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-turn.d.ts +51 -13
- package/dist/agent-executor/acp/v1-turn.d.ts.map +1 -1
- package/dist/agent-executor/claude/classify.d.ts +10 -0
- package/dist/agent-executor/claude/classify.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +4 -1
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/events.d.ts +146 -0
- package/dist/agent-executor/claude/events.d.ts.map +1 -0
- package/dist/agent-executor/claude/limits.d.ts +7 -1
- package/dist/agent-executor/claude/limits.d.ts.map +1 -1
- package/dist/agent-executor/claude/protocol.d.ts +49 -9
- package/dist/agent-executor/claude/protocol.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +2 -0
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +10 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +97 -3
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/probe.d.ts +29 -0
- package/dist/agent-executor/claude-sdk/probe.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +53 -5
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-options.d.ts +2 -0
- package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/session.d.ts +2 -3
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/turn-usage.d.ts +81 -0
- package/dist/agent-executor/claude-sdk/turn-usage.d.ts.map +1 -0
- package/dist/agent-executor/codex/classify.d.ts +4 -0
- package/dist/agent-executor/codex/classify.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +2 -1
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/control-client.d.ts +168 -0
- package/dist/agent-executor/codex/control-client.d.ts.map +1 -0
- package/dist/agent-executor/codex/driver.d.ts +22 -2
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/handlers.d.ts +47 -0
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -0
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +124 -0
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +101 -0
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -0
- package/dist/agent-executor/codex/session-controls.d.ts +91 -51
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -1
- package/dist/agent-executor/codex/session.d.ts +34 -12
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts +29 -0
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -0
- package/dist/agent-executor/codex/shared-thread.d.ts +46 -0
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -0
- package/dist/agent-executor/codex/thread-controls.d.ts +128 -0
- package/dist/agent-executor/codex/thread-controls.d.ts.map +1 -0
- package/dist/agent-executor/codex/turn-input.d.ts +30 -0
- package/dist/agent-executor/codex/turn-input.d.ts.map +1 -0
- package/dist/agent-executor/contract.d.ts +77 -0
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine.d.ts +6 -2
- package/dist/agent-executor/engine.d.ts.map +1 -1
- package/dist/agent-executor/executor-contract.d.ts +54 -0
- package/dist/agent-executor/executor-contract.d.ts.map +1 -1
- package/dist/agent-executor/handoff-schemas.d.ts +407 -0
- package/dist/agent-executor/handoff-schemas.d.ts.map +1 -0
- package/dist/agent-executor/handoff.d.ts +12 -0
- package/dist/agent-executor/handoff.d.ts.map +1 -0
- package/dist/agent-executor/hello.d.ts +72 -0
- package/dist/agent-executor/hello.d.ts.map +1 -1
- package/dist/agent-executor/image-input.d.ts +22 -0
- package/dist/agent-executor/image-input.d.ts.map +1 -1
- package/dist/agent-executor/projection.d.ts +2 -2
- package/dist/agent-executor/projection.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +10 -1
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/conformance.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-driver.d.ts +41 -0
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-gate.d.ts +11 -0
- package/dist/agent-executor/testing/replay-gate.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-runner.d.ts +27 -0
- package/dist/agent-executor/testing/replay-runner.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-scenarios.d.ts +21 -0
- package/dist/agent-executor/testing/replay-scenarios.d.ts.map +1 -0
- package/dist/agent-executor/testing/replay-transcript.d.ts +296 -0
- package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -0
- package/dist/agent-executor/vocabulary.d.ts +135 -0
- package/dist/agent-executor/vocabulary.d.ts.map +1 -1
- package/dist/agent-runtime/branch-provider.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-selection.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts +4 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +847 -214
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts +5 -1
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.js +713 -205
- package/dist/entrypoints/agent-executor/claude.js +44 -19
- package/dist/entrypoints/agent-executor/codex.d.ts +9 -2
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +1775 -359
- package/dist/entrypoints/agent-executor/testing.d.ts +4 -0
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +1002 -2
- package/dist/entrypoints/agent-executor.d.ts +4 -2
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +411 -23
- package/dist/entrypoints/agent-runtime.js +4 -23
- package/dist/entrypoints/tools/mcp.d.ts +1 -0
- package/dist/entrypoints/tools/mcp.d.ts.map +1 -1
- package/dist/entrypoints/tools/mcp.js +1 -1
- package/dist/entrypoints/tools/toolkit.js +1 -1
- package/dist/{index-wv2amqm4.js → index-2s8sy57y.js} +36 -103
- package/dist/{index-afb6z77w.js → index-dbp6xemn.js} +75 -7
- package/dist/{index-bjmj2q1z.js → index-jrn3prgm.js} +1 -1
- package/dist/index-kne9g2c5.js +30 -0
- package/dist/index-p1qmpq0p.js +1300 -0
- package/dist/{index-7jqn3b3g.js → index-v759mzed.js} +152 -2
- package/dist/{index-cbhxhma2.js → index-x5ayy5bn.js} +1 -0
- package/dist/index-y0a4gt1s.js +142 -0
- package/dist/tools/internal/rank-tools.d.ts +10 -0
- package/dist/tools/internal/rank-tools.d.ts.map +1 -0
- package/dist/tools/mcp/handler.d.ts +7 -3
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/tools/mcp/lazy-discovery.d.ts +47 -0
- package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -0
- package/dist/tools/mcp/mount.d.ts +7 -0
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/register.d.ts +2 -2
- package/dist/tools/mcp/register.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +7 -8
- package/llms/agent-executor-claude-sdk.txt +4 -2
- package/llms/agent-executor-codex.txt +8 -4
- package/llms/agent-executor-testing.txt +5 -1
- package/llms/agent-executor.txt +7 -6
- package/llms/stitchkit.txt +74 -74
- package/llms/tools-mcp.txt +3 -2
- package/llms/tools.txt +24 -0
- package/llms/{upgrading-0.128.0-0.129.0.txt → upgrading-0.128.0-0.130.0.txt} +30 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +159 -97
- package/llms.txt +8 -8
- package/package.json +1 -1
- package/dist/index-y71zn1gw.js +0 -586
|
@@ -34,6 +34,29 @@ declare const agentExecutorEndpoints: {
|
|
|
34
34
|
answer: z.ZodLiteral<"failed">;
|
|
35
35
|
error: z.ZodString;
|
|
36
36
|
}, z.core.$strict>], "answer">;
|
|
37
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
runtimePolicyEnforcement: z.ZodEnum<{
|
|
39
|
+
"client-boundary": "client-boundary";
|
|
40
|
+
native: "native";
|
|
41
|
+
}>;
|
|
42
|
+
sessionApproval: z.ZodBoolean;
|
|
43
|
+
interruptOnDeny: z.ZodBoolean;
|
|
44
|
+
updatedToolInput: z.ZodBoolean;
|
|
45
|
+
structuredInput: z.ZodBoolean;
|
|
46
|
+
steer: z.ZodBoolean;
|
|
47
|
+
fork: z.ZodBoolean;
|
|
48
|
+
revert: z.ZodBoolean;
|
|
49
|
+
compact: z.ZodBoolean;
|
|
50
|
+
injectItems: z.ZodBoolean;
|
|
51
|
+
backgroundWorkOutlivesTurn: z.ZodBoolean;
|
|
52
|
+
multiThreadPerProcess: z.ZodBoolean;
|
|
53
|
+
images: z.ZodBoolean;
|
|
54
|
+
planLimits: z.ZodEnum<{
|
|
55
|
+
none: "none";
|
|
56
|
+
passive: "passive";
|
|
57
|
+
pull: "pull";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strict>>;
|
|
37
60
|
}, z.core.$strict>>;
|
|
38
61
|
profiles: z.ZodArray<z.ZodObject<{
|
|
39
62
|
profileId: z.ZodString;
|
|
@@ -261,7 +284,38 @@ declare const agentExecutorEndpoints: {
|
|
|
261
284
|
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
262
285
|
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
263
286
|
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
287
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
288
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
289
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
264
290
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
total: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
293
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
294
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
295
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
296
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
297
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
modelUsage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
300
|
+
inputTokens: z.ZodInt;
|
|
301
|
+
outputTokens: z.ZodInt;
|
|
302
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodInt>;
|
|
303
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
304
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
305
|
+
cacheCreationEphemeral5mInputTokens: z.ZodOptional<z.ZodInt>;
|
|
306
|
+
cacheCreationEphemeral1hInputTokens: z.ZodOptional<z.ZodInt>;
|
|
307
|
+
webSearchRequests: z.ZodOptional<z.ZodInt>;
|
|
308
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
contextWindow: z.ZodOptional<z.ZodInt>;
|
|
310
|
+
maxOutputTokens: z.ZodOptional<z.ZodInt>;
|
|
311
|
+
canonicalModel: z.ZodOptional<z.ZodString>;
|
|
312
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
313
|
+
costBasis: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
list: "list";
|
|
315
|
+
managed: "managed";
|
|
316
|
+
unknown: "unknown";
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strict>>>;
|
|
265
319
|
}, z.core.$strict>, z.ZodObject<{
|
|
266
320
|
turnId: z.ZodString;
|
|
267
321
|
itemId: z.ZodString;
|
|
@@ -272,6 +326,15 @@ declare const agentExecutorEndpoints: {
|
|
|
272
326
|
type: z.ZodLiteral<"context-usage">;
|
|
273
327
|
usedTokens: z.ZodInt;
|
|
274
328
|
windowTokens: z.ZodInt;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
+
turnId: z.ZodString;
|
|
331
|
+
itemId: z.ZodString;
|
|
332
|
+
raw: z.ZodObject<{
|
|
333
|
+
source: z.ZodString;
|
|
334
|
+
type: z.ZodString;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
type: z.ZodLiteral<"status">;
|
|
337
|
+
phase: z.ZodString;
|
|
275
338
|
}, z.core.$strict>, z.ZodObject<{
|
|
276
339
|
turnId: z.ZodString;
|
|
277
340
|
itemId: z.ZodString;
|
|
@@ -285,6 +348,10 @@ declare const agentExecutorEndpoints: {
|
|
|
285
348
|
failed: "failed";
|
|
286
349
|
interrupted: "interrupted";
|
|
287
350
|
}>;
|
|
351
|
+
threadDisposition: z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
broken: "broken";
|
|
353
|
+
reusable: "reusable";
|
|
354
|
+
}>>;
|
|
288
355
|
}, z.core.$strict>, z.ZodObject<{
|
|
289
356
|
turnId: z.ZodString;
|
|
290
357
|
itemId: z.ZodString;
|
|
@@ -326,6 +393,10 @@ declare const agentExecutorEndpoints: {
|
|
|
326
393
|
timeout: "timeout";
|
|
327
394
|
}>;
|
|
328
395
|
message: z.ZodString;
|
|
396
|
+
threadDisposition: z.ZodOptional<z.ZodEnum<{
|
|
397
|
+
broken: "broken";
|
|
398
|
+
reusable: "reusable";
|
|
399
|
+
}>>;
|
|
329
400
|
}, z.core.$strict>>;
|
|
330
401
|
}, z.core.$strict>;
|
|
331
402
|
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -440,9 +511,15 @@ declare const agentExecutorServerEvents: {
|
|
|
440
511
|
interactionId: z.ZodString;
|
|
441
512
|
reply: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
442
513
|
kind: z.ZodLiteral<"approve">;
|
|
514
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
515
|
+
once: "once";
|
|
516
|
+
session: "session";
|
|
517
|
+
}>>;
|
|
518
|
+
updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
443
519
|
}, z.core.$strict>, z.ZodObject<{
|
|
444
520
|
kind: z.ZodLiteral<"deny">;
|
|
445
521
|
message: z.ZodString;
|
|
522
|
+
interrupt: z.ZodOptional<z.ZodBoolean>;
|
|
446
523
|
}, z.core.$strict>, z.ZodObject<{
|
|
447
524
|
kind: z.ZodLiteral<"input">;
|
|
448
525
|
value: z.ZodJSONSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAc9B,yFAAyF;AACzF,QAAA,MAAM,sBAAsB;;iBAExB,MAAM,EAAE,MAAM;iBACd,IAAI,EAAE,QAAQ;iBACd,MAAM;iBACN,MAAM,EAAE,OAAO;iBACf,IAAI,EAAE,mGAAmG;iBACzG,KAAK
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAc9B,yFAAyF;AACzF,QAAA,MAAM,sBAAsB;;iBAExB,MAAM,EAAE,MAAM;iBACd,IAAI,EAAE,QAAQ;iBACd,MAAM;iBACN,MAAM,EAAE,OAAO;iBACf,IAAI,EAAE,mGAAmG;iBACzG,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,MAAM;;;;;;;;;;;;;iBAGN,MAAM,EAAE,MAAM;iBACd,IAAI,EAAE,gBAAgB;iBACtB,MAAM;iBACN,MAAM,EAAE,OAAO;iBACf,IAAI,EAAE,gEAAgE;iBACtE,KAAK;;;;;;iBACL,MAAM;;;;;;;iBAGN,MAAM,EAAE,MAAM;iBACd,IAAI,EAAE,gBAAgB;iBACtB,MAAM;iBACN,MAAM,EAAE,OAAO;iBACf,IAAI,EAAE,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type { AgentMessagePart } from '../agent-parts/parts.js';
|
|
2
2
|
import type { InteractionReply } from './executor-contract.js';
|
|
3
|
-
import type { ExecutorEngine, ExecutorEngineInfo, ExecutorProfile, PlanLimits } from './hello.js';
|
|
3
|
+
import type { ExecutorDriverCapabilities, ExecutorEngine, ExecutorEngineInfo, ExecutorProfile, PlanLimits } from './hello.js';
|
|
4
4
|
import type { ExecutorProfileConfig } from './profile.js';
|
|
5
|
-
import type { ExecutorDelta } from './vocabulary.js';
|
|
5
|
+
import type { ExecutorDelta, ExecutorStartupPhase } from './vocabulary.js';
|
|
6
6
|
/** One turn running in an engine: its deltas, and the two ways to steer it. */
|
|
7
7
|
export interface AgentEngineTurn {
|
|
8
8
|
/** Ends after the `turn-end` delta, or with an error when the engine died. */
|
|
@@ -40,6 +40,8 @@ export interface AgentEngineDriver {
|
|
|
40
40
|
readonly engine: ExecutorEngine;
|
|
41
41
|
/** `client-id`: `findInput` can answer; `none`: an unknown send stays unknown. */
|
|
42
42
|
readonly reconcile: 'client-id' | 'none';
|
|
43
|
+
/** Declarative driver capabilities advertised for this driver and configuration. */
|
|
44
|
+
readonly capabilities?: ExecutorDriverCapabilities;
|
|
43
45
|
info(): Promise<ExecutorEngineInfo>;
|
|
44
46
|
status(profile: ExecutorProfileConfig): Promise<{
|
|
45
47
|
login: ExecutorProfile['login'];
|
|
@@ -51,6 +53,8 @@ export interface AgentEngineDriver {
|
|
|
51
53
|
cwd: string;
|
|
52
54
|
/** Resume this native session; a fresh one is started without it. */
|
|
53
55
|
nativeThreadId?: string;
|
|
56
|
+
/** Optional observer invoked with startup phases (`spawning`, `initializing`, `verifying`) during open. */
|
|
57
|
+
onStartupPhase?: (phase: ExecutorStartupPhase) => void;
|
|
54
58
|
signal?: AbortSignal;
|
|
55
59
|
}): Promise<AgentEngineSession>;
|
|
56
60
|
/** Whether the engine holds the input sent under `clientId`; only for `reconcile: 'client-id'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/agent-executor/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/agent-executor/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAExE,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,yEAAyE;IACzE,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjF;AAED,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;KACpC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7B;;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putTokens: z.ZodOptional<z.ZodInt>;
|
|
264
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
265
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
266
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
264
267
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
total: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
270
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
271
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
272
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
273
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
274
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
275
|
+
}, z.core.$strict>>;
|
|
276
|
+
modelUsage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
277
|
+
inputTokens: z.ZodInt;
|
|
278
|
+
outputTokens: z.ZodInt;
|
|
279
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodInt>;
|
|
280
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodInt>;
|
|
281
|
+
thinkingTokens: z.ZodOptional<z.ZodInt>;
|
|
282
|
+
cacheCreationEphemeral5mInputTokens: z.ZodOptional<z.ZodInt>;
|
|
283
|
+
cacheCreationEphemeral1hInputTokens: z.ZodOptional<z.ZodInt>;
|
|
284
|
+
webSearchRequests: z.ZodOptional<z.ZodInt>;
|
|
285
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
contextWindow: z.ZodOptional<z.ZodInt>;
|
|
287
|
+
maxOutputTokens: z.ZodOptional<z.ZodInt>;
|
|
288
|
+
canonicalModel: z.ZodOptional<z.ZodString>;
|
|
289
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
290
|
+
costBasis: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
list: "list";
|
|
292
|
+
managed: "managed";
|
|
293
|
+
unknown: "unknown";
|
|
294
|
+
}>>;
|
|
295
|
+
}, z.core.$strict>>>;
|
|
265
296
|
}, z.core.$strict>, z.ZodObject<{
|
|
266
297
|
turnId: z.ZodString;
|
|
267
298
|
itemId: z.ZodString;
|
|
@@ -272,6 +303,15 @@ export declare const TurnReportSchema: z.ZodObject<{
|
|
|
272
303
|
type: z.ZodLiteral<"context-usage">;
|
|
273
304
|
usedTokens: z.ZodInt;
|
|
274
305
|
windowTokens: z.ZodInt;
|
|
306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
307
|
+
turnId: z.ZodString;
|
|
308
|
+
itemId: z.ZodString;
|
|
309
|
+
raw: z.ZodObject<{
|
|
310
|
+
source: z.ZodString;
|
|
311
|
+
type: z.ZodString;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
type: z.ZodLiteral<"status">;
|
|
314
|
+
phase: z.ZodString;
|
|
275
315
|
}, z.core.$strict>, z.ZodObject<{
|
|
276
316
|
turnId: z.ZodString;
|
|
277
317
|
itemId: z.ZodString;
|
|
@@ -285,6 +325,10 @@ export declare const TurnReportSchema: z.ZodObject<{
|
|
|
285
325
|
failed: "failed";
|
|
286
326
|
interrupted: "interrupted";
|
|
287
327
|
}>;
|
|
328
|
+
threadDisposition: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
broken: "broken";
|
|
330
|
+
reusable: "reusable";
|
|
331
|
+
}>>;
|
|
288
332
|
}, z.core.$strict>, z.ZodObject<{
|
|
289
333
|
turnId: z.ZodString;
|
|
290
334
|
itemId: z.ZodString;
|
|
@@ -326,6 +370,10 @@ export declare const TurnReportSchema: z.ZodObject<{
|
|
|
326
370
|
timeout: "timeout";
|
|
327
371
|
}>;
|
|
328
372
|
message: z.ZodString;
|
|
373
|
+
threadDisposition: z.ZodOptional<z.ZodEnum<{
|
|
374
|
+
broken: "broken";
|
|
375
|
+
reusable: "reusable";
|
|
376
|
+
}>>;
|
|
329
377
|
}, z.core.$strict>>;
|
|
330
378
|
}, z.core.$strict>;
|
|
331
379
|
/**
|
|
@@ -355,9 +403,15 @@ export declare const InteractionReplySchema: z.ZodObject<{
|
|
|
355
403
|
interactionId: z.ZodString;
|
|
356
404
|
reply: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
357
405
|
kind: z.ZodLiteral<"approve">;
|
|
406
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
once: "once";
|
|
408
|
+
session: "session";
|
|
409
|
+
}>>;
|
|
410
|
+
updatedInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
358
411
|
}, z.core.$strict>, z.ZodObject<{
|
|
359
412
|
kind: z.ZodLiteral<"deny">;
|
|
360
413
|
message: z.ZodString;
|
|
414
|
+
interrupt: z.ZodOptional<z.ZodBoolean>;
|
|
361
415
|
}, z.core.$strict>, z.ZodObject<{
|
|
362
416
|
kind: z.ZodLiteral<"input">;
|
|
363
417
|
value: z.ZodJSONSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor-contract.d.ts","sourceRoot":"","sources":["../../src/agent-executor/executor-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,aAA6B,CAAC;AAG3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAqB,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;kBAK5B,CAAC;AACH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;kBAI5B,CAAC;AACH,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB;;;;kBAI5B,CAAC;AACH,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB;;;;kBAAoB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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