stitchkit 0.136.0 → 0.136.1
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 +13 -0
- package/README.md +12 -0
- package/dist/agent-executor/executor-contract.d.ts.map +1 -1
- package/dist/agent-executor/vocabulary.d.ts +80 -0
- package/dist/agent-executor/vocabulary.d.ts.map +1 -1
- package/dist/agent-parts/model.d.ts +94 -0
- package/dist/agent-parts/model.d.ts.map +1 -1
- package/dist/agent-parts/parts.d.ts +176 -0
- package/dist/agent-parts/parts.d.ts.map +1 -1
- package/dist/agent-runtime/browser/browser-control-contract.d.ts +440 -0
- package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser/control-schema.d.ts +528 -0
- package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +704 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/history/run-history-parts.d.ts.map +1 -1
- package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts +0 -2
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-approval-signature.d.ts +5 -1
- package/dist/agent-runtime/loop/run-approval-signature.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-loop-events.d.ts +6 -1
- package/dist/agent-runtime/loop/run-loop-events.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-stream-recorded.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-call.d.ts +11 -3
- package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -1
- package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts +4 -0
- package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts.map +1 -1
- package/dist/agent-runtime/providers/ai-sdk-tools.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-internals.d.ts +1 -3
- package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-json-projection.d.ts +29 -0
- package/dist/agent-runtime/schemas-json-projection.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-message.d.ts +88 -0
- package/dist/agent-runtime/schemas-message.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-run.d.ts +88 -0
- package/dist/agent-runtime/schemas-run.d.ts.map +1 -1
- package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -1
- package/dist/agent-runtime/stores/branch-replay.d.ts +264 -0
- package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -1
- package/dist/agent-runtime/stores/conversations.d.ts +88 -0
- package/dist/agent-runtime/stores/conversations.d.ts.map +1 -1
- package/dist/agent-runtime/stores/sql-rows.d.ts +64 -0
- package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store-driver-contract.d.ts +616 -0
- package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store-events.d.ts +1056 -0
- package/dist/agent-runtime/stores/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store.d.ts +1232 -0
- package/dist/agent-runtime/stores/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +69 -5
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +164 -36
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/testing/store-conformance-support.d.ts +82 -18
- package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-manager.d.ts +1 -1
- package/dist/application/diagnostic-journal-manager.d.ts.map +1 -1
- package/dist/application/notification-delivery.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +5 -4
- package/dist/entrypoints/agent-executor/claude-sdk.js +7 -6
- package/dist/entrypoints/agent-executor/claude.js +7 -6
- package/dist/entrypoints/agent-executor/codex.js +6 -5
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +4 -3
- package/dist/entrypoints/agent-executor/testing.js +7 -6
- package/dist/entrypoints/agent-executor.js +7 -7
- package/dist/entrypoints/agent-runtime/ai-sdk.js +30 -24
- package/dist/entrypoints/agent-runtime/anthropic.js +3 -3
- package/dist/entrypoints/agent-runtime/browser.js +8 -7
- package/dist/entrypoints/agent-runtime/harness.js +14 -14
- package/dist/entrypoints/agent-runtime/openai.js +3 -3
- package/dist/entrypoints/agent-runtime/openrouter.js +3 -3
- package/dist/entrypoints/agent-runtime/postgres.js +9 -9
- package/dist/entrypoints/agent-runtime/realtime.js +9 -8
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +10 -10
- package/dist/entrypoints/agent-runtime/sqlite/node.js +10 -10
- package/dist/entrypoints/agent-runtime/testing.js +8 -8
- package/dist/entrypoints/agent-runtime.js +21 -21
- package/dist/entrypoints/application/diagnostic-journal.js +14 -10
- package/dist/entrypoints/application.js +16 -4
- package/dist/entrypoints/tools/agent.js +2 -2
- package/dist/entrypoints/tools/toolkit.js +1 -1
- package/dist/entrypoints/tools.js +5 -3
- package/dist/index-1psbyyhj.js +21 -0
- package/dist/{index-kzsetgh9.js → index-26v8hjqm.js} +4 -4
- package/dist/{index-4243301z.js → index-2wm9b9vs.js} +5 -5
- package/dist/{index-tb36xawm.js → index-32ew02z1.js} +1 -1
- package/dist/{index-1en7k3q5.js → index-4q9tmzea.js} +3 -3
- package/dist/{index-shte29pg.js → index-8cnfgwg8.js} +148 -106
- package/dist/{index-mkmep637.js → index-9m1m92rg.js} +1 -1
- package/dist/index-a1rjr381.js +114 -0
- package/dist/{index-6kwdfb9m.js → index-akesakvj.js} +23 -4
- package/dist/{index-rg08syp1.js → index-d5mhgx72.js} +7 -5
- package/dist/{index-36mtj8xm.js → index-e4w0sfm1.js} +2 -2
- package/dist/{index-jperyn0c.js → index-gj4wdts6.js} +1 -1
- package/dist/{index-pd9e8rz4.js → index-gvv7y0s4.js} +1 -1
- package/dist/{index-vebzvse6.js → index-jy907kcs.js} +24 -1
- package/dist/{index-54wp467c.js → index-k5azb3v3.js} +4 -21
- package/dist/{index-qcy8et93.js → index-kaq9nb7h.js} +6 -6
- package/dist/{index-vse7x1qt.js → index-knqye3gv.js} +1 -1
- package/dist/{index-tav72wz5.js → index-ks4rhtcc.js} +5 -0
- package/dist/{index-xnqab06h.js → index-mtpcax6d.js} +3 -3
- package/dist/{index-7qza24g1.js → index-px9r6wv1.js} +1 -1
- package/dist/{index-epwvp88y.js → index-r9w7wfgn.js} +1 -1
- package/dist/{index-aacwkve4.js → index-sjq4akrx.js} +3 -5
- package/dist/{index-5dxgx3yj.js → index-tcv71frn.js} +1 -1
- package/dist/{index-1zy31r3b.js → index-v92djygb.js} +1 -1
- package/dist/{index-9f60gnfn.js → index-xaa3603f.js} +4 -11
- package/dist/{index-j3r7r1mh.js → index-yv7d6tav.js} +1 -1
- package/dist/{index-hberxns4.js → index-zagc12j1.js} +5 -5
- package/dist/{index-j5vzhj3d.js → index-zqc64g69.js} +3 -3
- package/dist/{index-hpzhz1vm.js → index-zthekmrt.js} +2 -2
- package/dist/internal/json-stringify.d.ts +37 -0
- package/dist/internal/json-stringify.d.ts.map +1 -0
- package/llms/agent-runtime.5.txt +1 -1
- package/llms/agent-runtime.txt +14 -0
- package/llms/application.2.txt +6 -3
- package/llms/application.3.txt +2 -1
- package/llms/application.txt +4 -1
- package/llms-full.txt +27 -6
- package/llms.txt +2 -2
- package/package.json +1 -1
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
assertImageFrameBytes,
|
|
8
8
|
imageTurnStarter
|
|
9
9
|
} from "../../index-65p8v81y.js";
|
|
10
|
-
import"../../index-
|
|
11
|
-
import"../../index-
|
|
10
|
+
import"../../index-jy907kcs.js";
|
|
11
|
+
import"../../index-ks4rhtcc.js";
|
|
12
|
+
import"../../index-akesakvj.js";
|
|
12
13
|
import {
|
|
13
14
|
ENGINE_LINE_BYTES,
|
|
14
15
|
assertEngineWrapCommand,
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
runEngineCli,
|
|
23
24
|
stopConnection,
|
|
24
25
|
emitStartupPhase
|
|
25
|
-
} from "../../index-
|
|
26
|
+
} from "../../index-sjq4akrx.js";
|
|
26
27
|
import"../../index-02kdtrcd.js";
|
|
27
28
|
import {
|
|
28
29
|
claudeUserContent,
|
|
@@ -39,14 +40,14 @@ import {
|
|
|
39
40
|
claudeTranscriptHasUuid2,
|
|
40
41
|
claudeTranscriptExists,
|
|
41
42
|
findTranscriptInput2
|
|
42
|
-
} from "../../index-
|
|
43
|
-
import"../../index-
|
|
43
|
+
} from "../../index-mtpcax6d.js";
|
|
44
|
+
import"../../index-9m1m92rg.js";
|
|
44
45
|
import {
|
|
45
46
|
holdEngineRequest,
|
|
46
47
|
loseEngineTurn,
|
|
47
48
|
interruptEngineTurn,
|
|
48
49
|
respondToEngineRequest
|
|
49
|
-
} from "../../index-
|
|
50
|
+
} from "../../index-tcv71frn.js";
|
|
50
51
|
import"../../index-8cek82ar.js";
|
|
51
52
|
import"../../index-0sxj3y45.js";
|
|
52
53
|
import {
|
|
@@ -2,8 +2,9 @@ import"../../index-02kdtrcd.js";
|
|
|
2
2
|
import"../../index-tgehj4bp.js";
|
|
3
3
|
import"../../index-5c4m8zdf.js";
|
|
4
4
|
import"../../index-6kec3b14.js";
|
|
5
|
-
import"../../index-
|
|
6
|
-
import"../../index-
|
|
5
|
+
import"../../index-jy907kcs.js";
|
|
6
|
+
import"../../index-ks4rhtcc.js";
|
|
7
|
+
import"../../index-akesakvj.js";
|
|
7
8
|
import {
|
|
8
9
|
InteractionReplySchema2,
|
|
9
10
|
PlanWindowSchema2,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
invokeObserver,
|
|
31
32
|
emitStartupPhase,
|
|
32
33
|
clampUniqueWindowName
|
|
33
|
-
} from "../../index-
|
|
34
|
+
} from "../../index-sjq4akrx.js";
|
|
34
35
|
import {
|
|
35
36
|
JsonRpcValueSchema2,
|
|
36
37
|
JsonRpcError2,
|
|
@@ -83,7 +84,7 @@ import {
|
|
|
83
84
|
} from "../../index-c7fj4yw9.js";
|
|
84
85
|
import {
|
|
85
86
|
planLimitsReadFailed2
|
|
86
|
-
} from "../../index-
|
|
87
|
+
} from "../../index-9m1m92rg.js";
|
|
87
88
|
import {
|
|
88
89
|
holdEngineRequest,
|
|
89
90
|
endEngineTurn,
|
|
@@ -92,7 +93,7 @@ import {
|
|
|
92
93
|
refuseEngineTurnRequests,
|
|
93
94
|
interruptEngineTurn,
|
|
94
95
|
respondToEngineRequest
|
|
95
|
-
} from "../../index-
|
|
96
|
+
} from "../../index-tcv71frn.js";
|
|
96
97
|
import"../../index-8cek82ar.js";
|
|
97
98
|
import"../../index-0sxj3y45.js";
|
|
98
99
|
import {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import"../../../index-1w69rj9f.js";
|
|
2
2
|
import"../../../index-c9j8441q.js";
|
|
3
|
-
import"../../../index-
|
|
4
|
-
import"../../../index-
|
|
3
|
+
import"../../../index-jy907kcs.js";
|
|
4
|
+
import"../../../index-ks4rhtcc.js";
|
|
5
|
+
import"../../../index-akesakvj.js";
|
|
5
6
|
import {
|
|
6
7
|
unexpected,
|
|
7
8
|
noopClose,
|
|
8
9
|
pickOptional
|
|
9
|
-
} from "../../../index-
|
|
10
|
+
} from "../../../index-r9w7wfgn.js";
|
|
10
11
|
import {
|
|
11
12
|
untilAborted,
|
|
12
13
|
linkAbortSignals
|
|
@@ -2,12 +2,13 @@ import"../../index-snef22zr.js";
|
|
|
2
2
|
import {
|
|
3
3
|
createLocalStepDurability2
|
|
4
4
|
} from "../../index-xrsryvd2.js";
|
|
5
|
-
import"../../index-
|
|
5
|
+
import"../../index-jy907kcs.js";
|
|
6
|
+
import"../../index-ks4rhtcc.js";
|
|
6
7
|
import {
|
|
7
8
|
ExecutorThreadDispositionSchema2,
|
|
8
9
|
ExecutorStartupPhaseSchema2,
|
|
9
10
|
ExecutorErrorKindSchema2
|
|
10
|
-
} from "../../index-
|
|
11
|
+
} from "../../index-akesakvj.js";
|
|
11
12
|
import {
|
|
12
13
|
InteractionReplySchema2,
|
|
13
14
|
ExecutorEngineSchema2,
|
|
@@ -19,7 +20,7 @@ import {
|
|
|
19
20
|
sessionAbort,
|
|
20
21
|
sessionLiveness,
|
|
21
22
|
emitStartupPhase
|
|
22
|
-
} from "../../index-
|
|
23
|
+
} from "../../index-sjq4akrx.js";
|
|
23
24
|
import {
|
|
24
25
|
JsonRpcValueSchema2,
|
|
25
26
|
JsonRpcError2,
|
|
@@ -43,7 +44,7 @@ import {
|
|
|
43
44
|
createStubAgentEngineTurn2,
|
|
44
45
|
createStubCodexTurn2,
|
|
45
46
|
createStubAcpSession2
|
|
46
|
-
} from "../../index-
|
|
47
|
+
} from "../../index-r9w7wfgn.js";
|
|
47
48
|
import {
|
|
48
49
|
dispatchTurn2,
|
|
49
50
|
projectExecutorDeltas2
|
|
@@ -55,14 +56,14 @@ import {
|
|
|
55
56
|
} from "../../index-c7fj4yw9.js";
|
|
56
57
|
import {
|
|
57
58
|
mergeRateLimitEvent2
|
|
58
|
-
} from "../../index-
|
|
59
|
+
} from "../../index-9m1m92rg.js";
|
|
59
60
|
import {
|
|
60
61
|
holdEngineRequest,
|
|
61
62
|
endEngineTurn,
|
|
62
63
|
loseEngineTurn,
|
|
63
64
|
interruptEngineTurn,
|
|
64
65
|
respondToEngineRequest
|
|
65
|
-
} from "../../index-
|
|
66
|
+
} from "../../index-tcv71frn.js";
|
|
66
67
|
import"../../index-8cek82ar.js";
|
|
67
68
|
import"../../index-0sxj3y45.js";
|
|
68
69
|
import {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
defineRealtimeContract2
|
|
9
9
|
} from "../index-814xpr6d.js";
|
|
10
|
+
import"../index-jy907kcs.js";
|
|
11
|
+
import"../index-ks4rhtcc.js";
|
|
10
12
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../index-tav72wz5.js";
|
|
13
|
-
import {
|
|
13
|
+
ExecutorMessagePartSchema,
|
|
14
14
|
ExecutorRawSchema2,
|
|
15
15
|
ExecutorTokenUsageSchema2,
|
|
16
16
|
ExecutorModelUsageSchema2,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ExecutorPlanDeltaSchema2,
|
|
24
24
|
ExecutorErrorKindSchema2,
|
|
25
25
|
ExecutorDeltaSchema2
|
|
26
|
-
} from "../index-
|
|
26
|
+
} from "../index-akesakvj.js";
|
|
27
27
|
import {
|
|
28
28
|
ThreadClaimSchema2,
|
|
29
29
|
ThreadLeaseSchema2,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
engineEnvironment2,
|
|
55
55
|
ownCredentials2,
|
|
56
56
|
helloProfile2
|
|
57
|
-
} from "../index-
|
|
57
|
+
} from "../index-sjq4akrx.js";
|
|
58
58
|
import"../index-tgehj4bp.js";
|
|
59
59
|
import"../index-5c4m8zdf.js";
|
|
60
60
|
import"../index-6kec3b14.js";
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
planLimitsDue2,
|
|
78
78
|
planLimitsReadFailed2,
|
|
79
79
|
mergeRateLimitEvent2
|
|
80
|
-
} from "../index-
|
|
80
|
+
} from "../index-9m1m92rg.js";
|
|
81
81
|
import"../index-8cek82ar.js";
|
|
82
82
|
import"../index-0sxj3y45.js";
|
|
83
83
|
import {
|
|
@@ -201,7 +201,7 @@ var ContextHandoffMessageEntrySchema = z2.strictObject({
|
|
|
201
201
|
kind: z2.literal("message"),
|
|
202
202
|
id: IdSchema,
|
|
203
203
|
role: z2.enum(["user", "assistant"]),
|
|
204
|
-
parts: z2.array(
|
|
204
|
+
parts: z2.array(ExecutorMessagePartSchema).max(HANDOFF_LIMITS.partsPerEntry),
|
|
205
205
|
turnId: IdSchema.optional(),
|
|
206
206
|
providerThreadId: IdSchema.optional(),
|
|
207
207
|
status: z2.enum(["completed", "interrupted", "failed"]).optional()
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
AgentCacheControlSchema2,
|
|
3
|
+
AgentToolModelOutputSchema2
|
|
4
|
+
} from "../../index-jy907kcs.js";
|
|
5
|
+
import"../../index-ks4rhtcc.js";
|
|
6
|
+
import"../../index-yv7d6tav.js";
|
|
7
|
+
import"../../index-px9r6wv1.js";
|
|
4
8
|
import {
|
|
5
9
|
providerEnvelope,
|
|
6
10
|
normalizeTokenUsage
|
|
7
|
-
} from "../../index-
|
|
11
|
+
} from "../../index-xaa3603f.js";
|
|
8
12
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
describeJsonRefusal,
|
|
14
|
+
projectJson,
|
|
15
|
+
recordedJson
|
|
16
|
+
} from "../../index-a1rjr381.js";
|
|
12
17
|
import {
|
|
13
18
|
runWithCompatToolCallContext
|
|
14
19
|
} from "../../index-125ks2ec.js";
|
|
20
|
+
import {
|
|
21
|
+
AgentToolError2
|
|
22
|
+
} from "../../index-1psbyyhj.js";
|
|
15
23
|
import {
|
|
16
24
|
abortReason,
|
|
17
25
|
raceAbort
|
|
@@ -340,20 +348,7 @@ function toV4CallOptions(request, signal) {
|
|
|
340
348
|
|
|
341
349
|
// src/agent-runtime/providers/ai-sdk-normalize.ts
|
|
342
350
|
function toAgentJsonValue(value) {
|
|
343
|
-
|
|
344
|
-
return value;
|
|
345
|
-
}
|
|
346
|
-
if (Array.isArray(value))
|
|
347
|
-
return value.map(toAgentJsonValue);
|
|
348
|
-
if (isRecord(value)) {
|
|
349
|
-
const nested = {};
|
|
350
|
-
for (const [k, v] of Object.entries(value)) {
|
|
351
|
-
if (v !== undefined)
|
|
352
|
-
nested[k] = toAgentJsonValue(v);
|
|
353
|
-
}
|
|
354
|
-
return nested;
|
|
355
|
-
}
|
|
356
|
-
return String(value);
|
|
351
|
+
return recordedJson(value);
|
|
357
352
|
}
|
|
358
353
|
function toAgentProviderOptions(raw) {
|
|
359
354
|
if (!isRecord(raw))
|
|
@@ -661,12 +656,17 @@ function fromAiSdkModel(model, options = {}) {
|
|
|
661
656
|
}
|
|
662
657
|
// src/agent-runtime/providers/ai-sdk-tools.ts
|
|
663
658
|
import { asSchema } from "ai";
|
|
659
|
+
function jsonText(raw) {
|
|
660
|
+
if (raw === undefined || typeof raw === "function" || typeof raw === "symbol")
|
|
661
|
+
return "";
|
|
662
|
+
return JSON.stringify(toAgentJsonValue(raw));
|
|
663
|
+
}
|
|
664
664
|
function normalizeExternalToolOutput(raw) {
|
|
665
665
|
const direct = AgentToolModelOutputSchema2.safeParse(raw);
|
|
666
666
|
if (direct.success)
|
|
667
667
|
return direct.data;
|
|
668
668
|
if (!isRecord(raw) || typeof raw.type !== "string") {
|
|
669
|
-
return { type: "text", value:
|
|
669
|
+
return { type: "text", value: jsonText(raw) };
|
|
670
670
|
}
|
|
671
671
|
const topOpts = toAgentProviderOptions(raw.providerOptions);
|
|
672
672
|
const parsedCc = AgentCacheControlSchema2.safeParse(raw.cacheControl);
|
|
@@ -678,7 +678,13 @@ function normalizeExternalToolOutput(raw) {
|
|
|
678
678
|
return { type: raw.type, value: raw.value, ...topFields };
|
|
679
679
|
}
|
|
680
680
|
if ((raw.type === "json" || raw.type === "error-json") && "value" in raw) {
|
|
681
|
-
|
|
681
|
+
const value = projectJson(raw.value);
|
|
682
|
+
if (!value.ok) {
|
|
683
|
+
throw new AgentToolError2({
|
|
684
|
+
message: `toModelOutput value cannot be sent as JSON: ${describeJsonRefusal(value.refusal)}`
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
return { type: raw.type, value: value.value, ...topFields };
|
|
682
688
|
}
|
|
683
689
|
if (raw.type === "execution-denied") {
|
|
684
690
|
return {
|
|
@@ -688,7 +694,7 @@ function normalizeExternalToolOutput(raw) {
|
|
|
688
694
|
};
|
|
689
695
|
}
|
|
690
696
|
if (raw.type !== "content" || !Array.isArray(raw.value)) {
|
|
691
|
-
return { type: "text", value:
|
|
697
|
+
return { type: "text", value: jsonText(raw) };
|
|
692
698
|
}
|
|
693
699
|
const parts = [];
|
|
694
700
|
for (const entry of raw.value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentCacheControlSchema2
|
|
3
|
-
} from "../../index-
|
|
3
|
+
} from "../../index-jy907kcs.js";
|
|
4
4
|
import {
|
|
5
5
|
reportedInt,
|
|
6
6
|
computedInt,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
historyHasToolTraffic,
|
|
18
18
|
parseSseStream,
|
|
19
19
|
parseSseJson
|
|
20
|
-
} from "../../index-
|
|
20
|
+
} from "../../index-32ew02z1.js";
|
|
21
21
|
import {
|
|
22
22
|
MAX_CACHE_BREAKPOINTS,
|
|
23
23
|
toWireCacheControl,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
readPortableCacheControl,
|
|
37
37
|
AgentProviderError2,
|
|
38
38
|
AgentProviderStreamCutError2
|
|
39
|
-
} from "../../index-
|
|
39
|
+
} from "../../index-knqye3gv.js";
|
|
40
40
|
import {
|
|
41
41
|
base64ToBytes
|
|
42
42
|
} from "../../index-edtg4tak.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import"../../index-814xpr6d.js";
|
|
2
|
+
import"../../index-jy907kcs.js";
|
|
2
3
|
import {
|
|
3
4
|
AgentProviderEnvelopeSchema2,
|
|
4
5
|
AgentTextPartSchema2,
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
AgentOpaquePartSchema2,
|
|
13
14
|
AgentControlPartSchema2,
|
|
14
15
|
AgentMessagePartSchema2
|
|
15
|
-
} from "../../index-
|
|
16
|
+
} from "../../index-ks4rhtcc.js";
|
|
16
17
|
import {
|
|
17
18
|
AgentRecordIdSchema2,
|
|
18
19
|
AgentRecordVersionSchema2,
|
|
@@ -26,10 +27,10 @@ import {
|
|
|
26
27
|
AgentUsageValueSchema2,
|
|
27
28
|
AgentCostValueSchema2,
|
|
28
29
|
AgentUsageSchema2
|
|
29
|
-
} from "../../index-
|
|
30
|
+
} from "../../index-yv7d6tav.js";
|
|
30
31
|
import {
|
|
31
32
|
AgentProviderResponseSchema2
|
|
32
|
-
} from "../../index-
|
|
33
|
+
} from "../../index-px9r6wv1.js";
|
|
33
34
|
import {
|
|
34
35
|
AgentRunStateSchema2,
|
|
35
36
|
AgentRunQueuePrioritySchema2,
|
|
@@ -41,7 +42,7 @@ import {
|
|
|
41
42
|
AgentRunSchema2,
|
|
42
43
|
AgentSnapshotSchema2,
|
|
43
44
|
AgentRunMetricsSchema2
|
|
44
|
-
} from "../../index-
|
|
45
|
+
} from "../../index-gvv7y0s4.js";
|
|
45
46
|
import {
|
|
46
47
|
isDurableAgentRuntimeEvent,
|
|
47
48
|
AgentAdmissionEventSchema2,
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
AgentRuntimeEventCursorSchema2,
|
|
62
63
|
advanceAgentRuntimeEventCursor2,
|
|
63
64
|
agentDurableEventId2
|
|
64
|
-
} from "../../index-
|
|
65
|
+
} from "../../index-4q9tmzea.js";
|
|
65
66
|
import {
|
|
66
67
|
AgentPermissionModeSchema2,
|
|
67
68
|
AgentHostStatusSchema2,
|
|
@@ -82,11 +83,11 @@ import {
|
|
|
82
83
|
AgentControlDeliverySchema2,
|
|
83
84
|
AgentMultiSessionCursorSchema2,
|
|
84
85
|
advanceAgentMultiSessionCursor2
|
|
85
|
-
} from "../../index-
|
|
86
|
+
} from "../../index-26v8hjqm.js";
|
|
86
87
|
import {
|
|
87
88
|
AgentBrowserRequestSchema2,
|
|
88
89
|
agentControlRealtimeContract2
|
|
89
|
-
} from "../../index-
|
|
90
|
+
} from "../../index-zthekmrt.js";
|
|
90
91
|
import"../../index-0k1ba0ss.js";
|
|
91
92
|
import"../../index-4s0fep5q.js";
|
|
92
93
|
import {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import"../../index-7an2fs5h.js";
|
|
2
|
-
import"../../index-
|
|
3
|
-
import"../../index-
|
|
4
|
-
import"../../index-
|
|
5
|
-
import"../../index-
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
8
|
-
import"../../index-
|
|
2
|
+
import"../../index-yv7d6tav.js";
|
|
3
|
+
import"../../index-jy907kcs.js";
|
|
4
|
+
import"../../index-ks4rhtcc.js";
|
|
5
|
+
import"../../index-px9r6wv1.js";
|
|
6
|
+
import"../../index-gvv7y0s4.js";
|
|
7
|
+
import"../../index-4q9tmzea.js";
|
|
8
|
+
import"../../index-kaq9nb7h.js";
|
|
9
9
|
import {
|
|
10
10
|
createAgentRuntime2,
|
|
11
11
|
composeAgentPrompt2
|
|
12
|
-
} from "../../index-
|
|
13
|
-
import"../../index-vebzvse6.js";
|
|
12
|
+
} from "../../index-8cnfgwg8.js";
|
|
14
13
|
import"../../index-dsa676h8.js";
|
|
15
14
|
import"../../index-ha1tv70k.js";
|
|
16
15
|
import"../../index-d1pdv8qc.js";
|
|
@@ -29,19 +28,20 @@ import {
|
|
|
29
28
|
AgentModelDescriptorSchema2
|
|
30
29
|
} from "../../index-refgnzy0.js";
|
|
31
30
|
import"../../index-6kec3b14.js";
|
|
32
|
-
import"../../index-
|
|
31
|
+
import"../../index-26v8hjqm.js";
|
|
33
32
|
import {
|
|
34
33
|
createAgentHarnessControlServer2
|
|
35
|
-
} from "../../index-
|
|
34
|
+
} from "../../index-e4w0sfm1.js";
|
|
35
|
+
import"../../index-xaa3603f.js";
|
|
36
36
|
import {
|
|
37
37
|
walkContainedFiles
|
|
38
38
|
} from "../../index-p9cab61p.js";
|
|
39
|
-
import"../../index-
|
|
40
|
-
import"../../index-
|
|
39
|
+
import"../../index-gj4wdts6.js";
|
|
40
|
+
import"../../index-knqye3gv.js";
|
|
41
41
|
import"../../index-fatke81t.js";
|
|
42
42
|
import"../../index-gq35s3bm.js";
|
|
43
43
|
import"../../index-4gbybjg6.js";
|
|
44
|
-
import"../../index-
|
|
44
|
+
import"../../index-k5azb3v3.js";
|
|
45
45
|
import"../../index-xrgn784x.js";
|
|
46
46
|
import"../../index-bjrcbcn2.js";
|
|
47
47
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../index-
|
|
1
|
+
import"../../index-jy907kcs.js";
|
|
2
2
|
import {
|
|
3
3
|
reportedInt,
|
|
4
4
|
buildProviderUsage,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeProviderHistory,
|
|
12
12
|
parseSseStream,
|
|
13
13
|
parseSseJson
|
|
14
|
-
} from "../../index-
|
|
14
|
+
} from "../../index-32ew02z1.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeOpenAiJsonSchema
|
|
17
17
|
} from "../../index-6y3eae97.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
fallbackFilenameForMediaType,
|
|
24
24
|
AgentProviderError2,
|
|
25
25
|
AgentProviderStreamCutError2
|
|
26
|
-
} from "../../index-
|
|
26
|
+
} from "../../index-knqye3gv.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "../../index-ps3djm8d.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
historyHasToolTraffic,
|
|
27
27
|
parseSseStream,
|
|
28
28
|
parseSseJson
|
|
29
|
-
} from "../../index-
|
|
29
|
+
} from "../../index-32ew02z1.js";
|
|
30
30
|
import {
|
|
31
31
|
AgentCacheControlSchema2
|
|
32
|
-
} from "../../index-
|
|
32
|
+
} from "../../index-jy907kcs.js";
|
|
33
33
|
import {
|
|
34
34
|
openAiCompatibleUsage2
|
|
35
35
|
} from "../../index-6t4c98gr.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
readPortableCacheControl,
|
|
56
56
|
AgentProviderError2,
|
|
57
57
|
AgentProviderStreamCutError2
|
|
58
|
-
} from "../../index-
|
|
58
|
+
} from "../../index-knqye3gv.js";
|
|
59
59
|
import {
|
|
60
60
|
readBoundedChunks,
|
|
61
61
|
concatChunks,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import"../../index-
|
|
2
|
-
import"../../index-
|
|
3
|
-
import"../../index-
|
|
4
|
-
import"../../index-
|
|
1
|
+
import"../../index-yv7d6tav.js";
|
|
2
|
+
import"../../index-jy907kcs.js";
|
|
3
|
+
import"../../index-ks4rhtcc.js";
|
|
4
|
+
import"../../index-px9r6wv1.js";
|
|
5
|
+
import"../../index-gvv7y0s4.js";
|
|
5
6
|
import {
|
|
6
7
|
CountRowSchema,
|
|
7
8
|
agentSqlTables,
|
|
@@ -11,8 +12,8 @@ import {
|
|
|
11
12
|
setPostgresTransactionIsolation,
|
|
12
13
|
runPostgresTransaction,
|
|
13
14
|
createAgentRuntimeStore2
|
|
14
|
-
} from "../../index-
|
|
15
|
-
import"../../index-
|
|
15
|
+
} from "../../index-d5mhgx72.js";
|
|
16
|
+
import"../../index-kaq9nb7h.js";
|
|
16
17
|
import"../../index-brhhaygm.js";
|
|
17
18
|
import"../../index-64t6pheq.js";
|
|
18
19
|
import {
|
|
@@ -26,14 +27,13 @@ import {
|
|
|
26
27
|
scanSqlRecoverable,
|
|
27
28
|
listSqlConversations,
|
|
28
29
|
pageSqlConversationMessages
|
|
29
|
-
} from "../../index-
|
|
30
|
-
import"../../index-
|
|
30
|
+
} from "../../index-zagc12j1.js";
|
|
31
|
+
import"../../index-v92djygb.js";
|
|
31
32
|
import"../../index-werjqesf.js";
|
|
32
33
|
import"../../index-6kec3b14.js";
|
|
33
34
|
import"../../index-tgehj4bp.js";
|
|
34
35
|
import"../../index-5c4m8zdf.js";
|
|
35
36
|
import"../../index-snef22zr.js";
|
|
36
|
-
import"../../index-vebzvse6.js";
|
|
37
37
|
import"../../index-p9cab61p.js";
|
|
38
38
|
import"../../index-rjs94dny.js";
|
|
39
39
|
import"../../index-xrgn784x.js";
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import"../../index-0k1ba0ss.js";
|
|
2
2
|
import"../../index-4s0fep5q.js";
|
|
3
3
|
import"../../index-814xpr6d.js";
|
|
4
|
-
import"../../index-
|
|
5
|
-
import"../../index-
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
8
|
-
import"../../index-
|
|
4
|
+
import"../../index-jy907kcs.js";
|
|
5
|
+
import"../../index-ks4rhtcc.js";
|
|
6
|
+
import"../../index-yv7d6tav.js";
|
|
7
|
+
import"../../index-gvv7y0s4.js";
|
|
8
|
+
import"../../index-4q9tmzea.js";
|
|
9
|
+
import"../../index-26v8hjqm.js";
|
|
9
10
|
import {
|
|
10
11
|
agentControlRealtimeContract2
|
|
11
|
-
} from "../../index-
|
|
12
|
+
} from "../../index-zthekmrt.js";
|
|
12
13
|
import"../../index-7an2fs5h.js";
|
|
13
14
|
import {
|
|
14
15
|
reportAgentControlError,
|
|
15
16
|
createAgentHarnessControlServer2
|
|
16
|
-
} from "../../index-
|
|
17
|
+
} from "../../index-e4w0sfm1.js";
|
|
17
18
|
import {
|
|
18
19
|
bindRealtimeServer2
|
|
19
20
|
} from "../../index-y68gavb5.js";
|
|
20
|
-
import"../../index-
|
|
21
|
+
import"../../index-gj4wdts6.js";
|
|
21
22
|
import {
|
|
22
23
|
assertPositiveSafeInteger
|
|
23
24
|
} from "../../index-gr0kxymw.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import"../../../index-
|
|
2
|
-
import"../../../index-
|
|
3
|
-
import"../../../index-
|
|
4
|
-
import"../../../index-
|
|
5
|
-
import"../../../index-
|
|
6
|
-
import"../../../index-
|
|
1
|
+
import"../../../index-yv7d6tav.js";
|
|
2
|
+
import"../../../index-jy907kcs.js";
|
|
3
|
+
import"../../../index-ks4rhtcc.js";
|
|
4
|
+
import"../../../index-px9r6wv1.js";
|
|
5
|
+
import"../../../index-gvv7y0s4.js";
|
|
6
|
+
import"../../../index-d5mhgx72.js";
|
|
7
|
+
import"../../../index-kaq9nb7h.js";
|
|
7
8
|
import"../../../index-brhhaygm.js";
|
|
8
9
|
import"../../../index-64t6pheq.js";
|
|
9
|
-
import"../../../index-
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-zagc12j1.js";
|
|
11
|
+
import"../../../index-v92djygb.js";
|
|
11
12
|
import {
|
|
12
13
|
initializeAgentRuntimeSqlite2,
|
|
13
14
|
createSqliteAgentRuntimeStore2
|
|
14
|
-
} from "../../../index-
|
|
15
|
+
} from "../../../index-2wm9b9vs.js";
|
|
15
16
|
import"../../../index-werjqesf.js";
|
|
16
17
|
import"../../../index-6kec3b14.js";
|
|
17
18
|
import"../../../index-tgehj4bp.js";
|
|
18
19
|
import"../../../index-5c4m8zdf.js";
|
|
19
20
|
import"../../../index-snef22zr.js";
|
|
20
|
-
import"../../../index-vebzvse6.js";
|
|
21
21
|
import"../../../index-p9cab61p.js";
|
|
22
22
|
import"../../../index-rjs94dny.js";
|
|
23
23
|
import"../../../index-xrgn784x.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import"../../../index-
|
|
2
|
-
import"../../../index-
|
|
3
|
-
import"../../../index-
|
|
4
|
-
import"../../../index-
|
|
5
|
-
import"../../../index-
|
|
6
|
-
import"../../../index-
|
|
1
|
+
import"../../../index-yv7d6tav.js";
|
|
2
|
+
import"../../../index-jy907kcs.js";
|
|
3
|
+
import"../../../index-ks4rhtcc.js";
|
|
4
|
+
import"../../../index-px9r6wv1.js";
|
|
5
|
+
import"../../../index-gvv7y0s4.js";
|
|
6
|
+
import"../../../index-d5mhgx72.js";
|
|
7
|
+
import"../../../index-kaq9nb7h.js";
|
|
7
8
|
import"../../../index-brhhaygm.js";
|
|
8
9
|
import"../../../index-64t6pheq.js";
|
|
9
|
-
import"../../../index-
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-zagc12j1.js";
|
|
11
|
+
import"../../../index-v92djygb.js";
|
|
11
12
|
import {
|
|
12
13
|
initializeAgentRuntimeSqlite2,
|
|
13
14
|
createSqliteAgentRuntimeStore2
|
|
14
|
-
} from "../../../index-
|
|
15
|
+
} from "../../../index-2wm9b9vs.js";
|
|
15
16
|
import"../../../index-werjqesf.js";
|
|
16
17
|
import"../../../index-6kec3b14.js";
|
|
17
18
|
import"../../../index-tgehj4bp.js";
|
|
18
19
|
import"../../../index-5c4m8zdf.js";
|
|
19
20
|
import"../../../index-snef22zr.js";
|
|
20
|
-
import"../../../index-vebzvse6.js";
|
|
21
21
|
import"../../../index-p9cab61p.js";
|
|
22
22
|
import"../../../index-rjs94dny.js";
|
|
23
23
|
import"../../../index-xrgn784x.js";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import"../../index-
|
|
1
|
+
import"../../index-jy907kcs.js";
|
|
2
|
+
import"../../index-ks4rhtcc.js";
|
|
2
3
|
import {
|
|
3
4
|
AgentMessageSchema2
|
|
4
|
-
} from "../../index-
|
|
5
|
-
import"../../index-
|
|
5
|
+
} from "../../index-yv7d6tav.js";
|
|
6
|
+
import"../../index-px9r6wv1.js";
|
|
6
7
|
import {
|
|
7
8
|
AgentRunSchema2,
|
|
8
9
|
AgentSnapshotSchema2
|
|
9
|
-
} from "../../index-
|
|
10
|
+
} from "../../index-gvv7y0s4.js";
|
|
10
11
|
import"../../index-brhhaygm.js";
|
|
11
12
|
import {
|
|
12
13
|
canonicalAgentJson2,
|
|
13
14
|
encodeAgentConversationArchive2,
|
|
14
15
|
decodeAgentConversationArchive2
|
|
15
|
-
} from "../../index-
|
|
16
|
+
} from "../../index-kaq9nb7h.js";
|
|
16
17
|
import {
|
|
17
18
|
AgentConversationBranchRefusedError2,
|
|
18
19
|
AgentStoreUnsupportedCapabilityError2
|
|
19
|
-
} from "../../index-
|
|
20
|
+
} from "../../index-d5mhgx72.js";
|
|
20
21
|
import"../../index-64t6pheq.js";
|
|
21
22
|
import"../../index-werjqesf.js";
|
|
22
23
|
import"../../index-6kec3b14.js";
|
|
23
24
|
import"../../index-tgehj4bp.js";
|
|
24
25
|
import"../../index-5c4m8zdf.js";
|
|
25
26
|
import"../../index-snef22zr.js";
|
|
26
|
-
import"../../index-vebzvse6.js";
|
|
27
27
|
import {
|
|
28
28
|
createMemoryAgentRuntimeStore2
|
|
29
|
-
} from "../../index-
|
|
29
|
+
} from "../../index-zqc64g69.js";
|
|
30
30
|
import {
|
|
31
31
|
createToolChronology,
|
|
32
32
|
advanceToolChronology
|