stitchkit 0.110.0 → 0.110.2
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 +17 -0
- package/dist/agent-runtime/archive-spill.d.ts +61 -0
- package/dist/agent-runtime/archive-spill.d.ts.map +1 -0
- package/dist/agent-runtime/branch-contract.d.ts +102 -0
- package/dist/agent-runtime/branch-contract.d.ts.map +1 -0
- package/dist/agent-runtime/branch-events.d.ts +18 -0
- package/dist/agent-runtime/branch-events.d.ts.map +1 -0
- package/dist/agent-runtime/branch-identities.d.ts +20 -0
- package/dist/agent-runtime/branch-identities.d.ts.map +1 -0
- package/dist/agent-runtime/branch-messages.d.ts +32 -0
- package/dist/agent-runtime/branch-messages.d.ts.map +1 -0
- package/dist/agent-runtime/branch-observations.d.ts +104 -0
- package/dist/agent-runtime/branch-observations.d.ts.map +1 -0
- package/dist/agent-runtime/branch-provider.d.ts +130 -0
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -0
- package/dist/agent-runtime/branch-replay.d.ts +426 -0
- package/dist/agent-runtime/branch-replay.d.ts.map +1 -0
- package/dist/agent-runtime/branch-source.d.ts +16 -0
- package/dist/agent-runtime/branch-source.d.ts.map +1 -0
- package/dist/agent-runtime/branch-transitions.d.ts +6 -0
- package/dist/agent-runtime/branch-transitions.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-history.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite-purge.d.ts.map +1 -1
- package/dist/agent-runtime/store-archive.d.ts +1 -0
- package/dist/agent-runtime/store-archive.d.ts.map +1 -1
- package/dist/agent-runtime/store-branch.d.ts +5 -0
- package/dist/agent-runtime/store-branch.d.ts.map +1 -0
- package/dist/agent-runtime/store-conformance-branch.d.ts +4 -0
- package/dist/agent-runtime/store-conformance-branch.d.ts.map +1 -0
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +10 -10
- package/dist/agent-runtime/store-conformance.d.ts.map +1 -1
- package/dist/agent-runtime/store-create.d.ts +1 -1
- package/dist/agent-runtime/store-create.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +6 -0
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +90 -0
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store-memory-archive.d.ts +8 -0
- package/dist/agent-runtime/store-memory-archive.d.ts.map +1 -0
- package/dist/agent-runtime/store-memory-events.d.ts +7 -0
- package/dist/agent-runtime/store-memory-events.d.ts.map +1 -0
- package/dist/agent-runtime/store-memory.d.ts +1 -1
- package/dist/agent-runtime/store-memory.d.ts.map +1 -1
- package/dist/agent-runtime/store-purge.d.ts +2 -0
- package/dist/agent-runtime/store-purge.d.ts.map +1 -1
- package/dist/agent-runtime/store-reduce-run.d.ts +2 -2
- package/dist/agent-runtime/store-reduce-run.d.ts.map +1 -1
- package/dist/agent-runtime/store-reduce-shared.d.ts +1 -0
- package/dist/agent-runtime/store-reduce-shared.d.ts.map +1 -1
- package/dist/agent-runtime/store-reducer.d.ts +2 -2
- package/dist/agent-runtime/store-reducer.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +3 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/browser/socket-io-client.d.ts +6 -0
- package/dist/browser/socket-io-client.d.ts.map +1 -0
- package/dist/browser/socket-io-contract.d.ts +183 -0
- package/dist/browser/socket-io-contract.d.ts.map +1 -0
- package/dist/browser/socket-io-default-peer.d.ts +3 -0
- package/dist/browser/socket-io-default-peer.d.ts.map +1 -0
- package/dist/browser/socket-io-explicit-peer.d.ts +12 -0
- package/dist/browser/socket-io-explicit-peer.d.ts.map +1 -0
- package/dist/browser/socket-io-peer.d.ts +2 -11
- package/dist/browser/socket-io-peer.d.ts.map +1 -1
- package/dist/browser/socket-io.d.ts +5 -224
- package/dist/browser/socket-io.d.ts.map +1 -1
- package/dist/durability/events.d.ts +4 -0
- package/dist/durability/events.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.js +2 -3
- package/dist/entrypoints/agent-runtime/harness.js +5 -4
- package/dist/entrypoints/agent-runtime/realtime.js +3 -3
- package/dist/entrypoints/agent-runtime/sandbox.js +4 -6
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +13 -3
- package/dist/entrypoints/agent-runtime/sqlite/node.js +13 -3
- package/dist/entrypoints/agent-runtime/testing.js +89 -5
- package/dist/entrypoints/agent-runtime.d.ts +1 -0
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +28 -18
- package/dist/entrypoints/application/directory-inbox.js +6 -6
- package/dist/entrypoints/application.js +1 -1
- package/dist/entrypoints/cli/publish.js +2 -2
- package/dist/entrypoints/cli.js +8 -8
- package/dist/entrypoints/contract.js +1 -1
- package/dist/entrypoints/files.js +1 -1
- package/dist/entrypoints/http.d.ts +1 -0
- package/dist/entrypoints/http.d.ts.map +1 -1
- package/dist/entrypoints/http.js +6 -2
- package/dist/entrypoints/index.js +20 -411
- package/dist/entrypoints/node.js +3 -3
- package/dist/entrypoints/observability.js +1 -1
- package/dist/entrypoints/process.js +1 -1
- package/dist/entrypoints/realtime.d.ts +6 -0
- package/dist/entrypoints/realtime.d.ts.map +1 -0
- package/dist/entrypoints/realtime.js +25 -0
- package/dist/entrypoints/remote.js +1 -1
- package/dist/entrypoints/server.js +11 -11
- package/dist/entrypoints/telegram/screens.js +9 -9
- package/dist/entrypoints/telegram.js +3 -3
- package/dist/entrypoints/testing.js +2 -2
- package/dist/entrypoints/tools/connections.js +3 -3
- package/dist/entrypoints/tools/invoker.js +3 -3
- package/dist/entrypoints/tools/mcp.js +4 -4
- package/dist/entrypoints/tools.js +26 -24
- package/dist/{index-61m15a18.js → index-0d8m0kee.js} +1 -1
- package/dist/{index-dmfr2cg5.js → index-2tazbwhv.js} +6 -6
- package/dist/{index-c17xcx4k.js → index-56yx8dxp.js} +19 -96
- package/dist/{index-0gs4ymfj.js → index-6qeqdz0z.js} +7 -1
- package/dist/{index-064zxbwj.js → index-79zxnh52.js} +3 -3
- package/dist/{index-2pevnh0x.js → index-7c046kxr.js} +4 -4
- package/dist/index-86sxnvpr.js +336 -0
- package/dist/{index-jyw90rps.js → index-bm180f2d.js} +204 -84
- package/dist/{index-mnhtbqrb.js → index-dd1z5kxb.js} +2 -2
- package/dist/{index-7a1xhhdx.js → index-e1sjcjfy.js} +31 -11
- package/dist/{index-5p55xreg.js → index-e9rbhw1s.js} +67 -29
- package/dist/{index-p6mvqcbq.js → index-ghwntn9n.js} +1 -1
- package/dist/index-hqsbtvta.js +92 -0
- package/dist/{index-73cz22ds.js → index-mha6b4vk.js} +6 -6
- package/dist/index-s2bgwsyr.js +2280 -0
- package/dist/{index-fnra8n1j.js → index-s2eybn7b.js} +9 -9
- package/dist/{index-njs9gvrh.js → index-s6d8zsha.js} +6 -6
- package/dist/index-snef22zr.js +94 -0
- package/dist/{index-c0hffcmj.js → index-zbssway3.js} +19 -2
- package/dist/process/group-presence.d.ts +3 -0
- package/dist/process/group-presence.d.ts.map +1 -0
- package/dist/process/group-settlement.d.ts.map +1 -1
- package/dist/process/group.d.ts.map +1 -1
- package/llms/agent-runtime.3.txt +3 -0
- package/llms/agent-runtime.txt +60 -0
- package/llms/realtime.txt +31 -0
- package/llms/stitchkit.txt +1 -0
- package/llms-full.txt +85 -0
- package/llms.txt +3 -2
- package/package.json +5 -1
- package/dist/index-8ks9b85e.js +0 -129
- package/dist/index-d2h99n7d.js +0 -1071
- package/dist/{index-9j2atjte.js → index-2f9r0jgr.js} +3 -3
- package/dist/{index-y70v24cw.js → index-8asb62xn.js} +0 -0
- package/dist/{index-k7qdkh3n.js → index-h1spd9kv.js} +3 -3
- package/dist/{index-zgwkwr1g.js → index-jk44mbqb.js} +0 -0
- package/dist/{index-qd8x73e8.js → index-k8fbzggr.js} +0 -0
- package/dist/{index-85qve8mq.js → index-pzw0fpek.js} +0 -0
- package/dist/{index-y3nemndz.js → index-r6v4mc67.js} +3 -3
- package/dist/{index-ktjmgq9p.js → index-s0xbnpfh.js} +3 -3
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
joinRoutePath,
|
|
3
3
|
parseRoutePattern
|
|
4
4
|
} from "../../index-m38ej7e5.js";
|
|
5
|
-
import {
|
|
6
|
-
checkTelegramHtml2
|
|
7
|
-
} from "../../index-rz3z13e9.js";
|
|
8
5
|
import {
|
|
9
6
|
classifyTelegramEditRefusal
|
|
10
7
|
} from "../../index-xvj9h8yh.js";
|
|
8
|
+
import {
|
|
9
|
+
checkTelegramHtml2
|
|
10
|
+
} from "../../index-rz3z13e9.js";
|
|
11
11
|
import {
|
|
12
12
|
TELEGRAM_TEXT_LIMIT2,
|
|
13
13
|
TELEGRAM_CAPTION_LIMIT2,
|
|
@@ -16,22 +16,22 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
createMutationQueue
|
|
18
18
|
} from "../../index-sykb5ag7.js";
|
|
19
|
-
import {
|
|
20
|
-
MAX_TIMER_MS
|
|
21
|
-
} from "../../index-eemvahkc.js";
|
|
22
19
|
import {
|
|
23
20
|
bytesToBase64Url,
|
|
24
21
|
base64UrlToBytes
|
|
25
22
|
} from "../../index-dwfv9a85.js";
|
|
23
|
+
import {
|
|
24
|
+
MAX_TIMER_MS
|
|
25
|
+
} from "../../index-eemvahkc.js";
|
|
26
|
+
import {
|
|
27
|
+
isUnsafeKey
|
|
28
|
+
} from "../../index-zsarb5xp.js";
|
|
26
29
|
import {
|
|
27
30
|
argumentsDigest
|
|
28
31
|
} from "../../index-r7a7r7ha.js";
|
|
29
32
|
import {
|
|
30
33
|
compareCodeUnits
|
|
31
34
|
} from "../../index-zsvzhjtk.js";
|
|
32
|
-
import {
|
|
33
|
-
isUnsafeKey
|
|
34
|
-
} from "../../index-zsarb5xp.js";
|
|
35
35
|
import {
|
|
36
36
|
isRecord,
|
|
37
37
|
transportResult
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
untilAborted
|
|
21
21
|
} from "../index-a5qr2rj6.js";
|
|
22
|
-
import {
|
|
23
|
-
raceAbort
|
|
24
|
-
} from "../index-b0kddvzw.js";
|
|
25
22
|
import {
|
|
26
23
|
writeFileAtomic2
|
|
27
24
|
} from "../index-07dcf2yn.js";
|
|
25
|
+
import {
|
|
26
|
+
raceAbort
|
|
27
|
+
} from "../index-b0kddvzw.js";
|
|
28
28
|
import {
|
|
29
29
|
MAX_TIMER_MS,
|
|
30
30
|
sleep
|
|
@@ -6,7 +6,7 @@ import"../index-p6apg0jg.js";
|
|
|
6
6
|
import"../index-q0th8q0z.js";
|
|
7
7
|
import {
|
|
8
8
|
createApplication2
|
|
9
|
-
} from "../index-
|
|
9
|
+
} from "../index-8asb62xn.js";
|
|
10
10
|
import"../index-w5s3xftz.js";
|
|
11
11
|
import {
|
|
12
12
|
RealtimeRequestTimeoutError2,
|
|
@@ -35,7 +35,7 @@ import"../index-fynr93w4.js";
|
|
|
35
35
|
import {
|
|
36
36
|
createClient2,
|
|
37
37
|
createClients2
|
|
38
|
-
} from "../index-
|
|
38
|
+
} from "../index-jk44mbqb.js";
|
|
39
39
|
import {
|
|
40
40
|
assertPositiveSafeInteger
|
|
41
41
|
} from "../index-0s4xebbg.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
TOOL_ERROR_PROJECTION
|
|
27
27
|
} from "../../index-556g5hsh.js";
|
|
28
|
+
import {
|
|
29
|
+
safeJsonParse
|
|
30
|
+
} from "../../index-zsarb5xp.js";
|
|
28
31
|
import {
|
|
29
32
|
AppError2,
|
|
30
33
|
STITCH_ERROR_STATUS2,
|
|
31
34
|
isRetryableStatus2
|
|
32
35
|
} from "../../index-j9gxbztg.js";
|
|
33
|
-
import {
|
|
34
|
-
safeJsonParse
|
|
35
|
-
} from "../../index-zsarb5xp.js";
|
|
36
36
|
import {
|
|
37
37
|
isRecord
|
|
38
38
|
} from "../../index-9jfdm5tg.js";
|
|
@@ -3,11 +3,11 @@ import"../../index-t5sjh517.js";
|
|
|
3
3
|
import"../../index-cykxpxz5.js";
|
|
4
4
|
import"../../index-ct75c3at.js";
|
|
5
5
|
import"../../index-q6crhe1n.js";
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
6
|
+
import"../../index-mha6b4vk.js";
|
|
7
|
+
import"../../index-ghwntn9n.js";
|
|
8
8
|
import {
|
|
9
9
|
createToolInvoker2
|
|
10
|
-
} from "../../index-
|
|
10
|
+
} from "../../index-dd1z5kxb.js";
|
|
11
11
|
export {
|
|
12
12
|
createToolInvoker2 as createToolInvoker
|
|
13
13
|
};
|
|
@@ -3,8 +3,8 @@ import"../../index-fynr93w4.js";
|
|
|
3
3
|
import"../../index-t5sjh517.js";
|
|
4
4
|
import"../../index-cykxpxz5.js";
|
|
5
5
|
import"../../index-q6crhe1n.js";
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
6
|
+
import"../../index-mha6b4vk.js";
|
|
7
|
+
import"../../index-ghwntn9n.js";
|
|
8
8
|
import {
|
|
9
9
|
RESOURCE_MIME_TYPE2,
|
|
10
10
|
EXT_APPS_BUNDLE_PLACEHOLDER2,
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
createMcpHttpRoute2,
|
|
21
21
|
createStdioMcpServer2,
|
|
22
22
|
bindStdioProcessSignals2
|
|
23
|
-
} from "../../index-
|
|
24
|
-
import"../../index-
|
|
23
|
+
} from "../../index-s2eybn7b.js";
|
|
24
|
+
import"../../index-0d8m0kee.js";
|
|
25
25
|
import"../../index-636mggad.js";
|
|
26
26
|
export {
|
|
27
27
|
EXT_APPS_BUNDLE_PLACEHOLDER2 as EXT_APPS_BUNDLE_PLACEHOLDER,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
EffectUnresolvedError2
|
|
2
|
+
EffectUnresolvedError2
|
|
3
|
+
} from "../index-snef22zr.js";
|
|
4
|
+
import {
|
|
3
5
|
createLocalStepDurability2,
|
|
4
6
|
AgentToolError2,
|
|
5
7
|
isAgentToolError2
|
|
6
|
-
} from "../index-
|
|
8
|
+
} from "../index-56yx8dxp.js";
|
|
7
9
|
import {
|
|
8
10
|
normalizeError2
|
|
9
11
|
} from "../index-fynr93w4.js";
|
|
@@ -23,15 +25,15 @@ import {
|
|
|
23
25
|
import {
|
|
24
26
|
ToolExecutionControlError2,
|
|
25
27
|
isToolExecutionControlError2
|
|
26
|
-
} from "../index-
|
|
28
|
+
} from "../index-mha6b4vk.js";
|
|
27
29
|
import {
|
|
28
30
|
collectTools2
|
|
29
|
-
} from "../index-
|
|
31
|
+
} from "../index-ghwntn9n.js";
|
|
30
32
|
import {
|
|
31
33
|
mountAgent2,
|
|
32
34
|
describeToolCatalog2,
|
|
33
35
|
buildToolManifest2
|
|
34
|
-
} from "../index-
|
|
36
|
+
} from "../index-7c046kxr.js";
|
|
35
37
|
import"../index-m38ej7e5.js";
|
|
36
38
|
import {
|
|
37
39
|
ALL_TRANSPORTS2,
|
|
@@ -58,7 +60,7 @@ import {
|
|
|
58
60
|
createMcpHttpRoute2,
|
|
59
61
|
createStdioMcpServer2,
|
|
60
62
|
bindStdioProcessSignals2
|
|
61
|
-
} from "../index-
|
|
63
|
+
} from "../index-s2eybn7b.js";
|
|
62
64
|
import {
|
|
63
65
|
AsyncOperationCancelResultSchema2,
|
|
64
66
|
createAsyncOperationSnapshotSchema2,
|
|
@@ -72,44 +74,44 @@ import {
|
|
|
72
74
|
WaitTimeoutError,
|
|
73
75
|
runWaitOperation,
|
|
74
76
|
createCli2
|
|
75
|
-
} from "../index-
|
|
77
|
+
} from "../index-2tazbwhv.js";
|
|
76
78
|
import {
|
|
77
79
|
ManagedFilePathSchema2,
|
|
78
80
|
ManagedFileRefSchema2
|
|
79
81
|
} from "../index-xqhede6x.js";
|
|
82
|
+
import {
|
|
83
|
+
signJwt2,
|
|
84
|
+
verifyPkce2
|
|
85
|
+
} from "../index-h1spd9kv.js";
|
|
86
|
+
import {
|
|
87
|
+
contractOnlyService,
|
|
88
|
+
mediaTypeEssence
|
|
89
|
+
} from "../index-pzw0fpek.js";
|
|
80
90
|
import {
|
|
81
91
|
createToolInvoker2
|
|
82
|
-
} from "../index-
|
|
92
|
+
} from "../index-dd1z5kxb.js";
|
|
83
93
|
import {
|
|
84
94
|
ManagedFileError2
|
|
85
|
-
} from "../index-
|
|
95
|
+
} from "../index-2f9r0jgr.js";
|
|
86
96
|
import {
|
|
87
97
|
fetchGuarded,
|
|
88
98
|
fetchPinnedDocument,
|
|
89
99
|
readCapped
|
|
90
100
|
} from "../index-3h0ztg0z.js";
|
|
91
|
-
import {
|
|
92
|
-
signJwt2,
|
|
93
|
-
verifyPkce2
|
|
94
|
-
} from "../index-k7qdkh3n.js";
|
|
95
|
-
import {
|
|
96
|
-
contractOnlyService,
|
|
97
|
-
mediaTypeEssence
|
|
98
|
-
} from "../index-85qve8mq.js";
|
|
99
101
|
import"../index-1bx1xv1k.js";
|
|
102
|
+
import {
|
|
103
|
+
DEFAULT_CORS_ALLOW_HEADERS2
|
|
104
|
+
} from "../index-yk4g8805.js";
|
|
100
105
|
import {
|
|
101
106
|
collectToolSurface
|
|
102
|
-
} from "../index-
|
|
107
|
+
} from "../index-0d8m0kee.js";
|
|
108
|
+
import {
|
|
109
|
+
getTraceId2
|
|
110
|
+
} from "../index-r6v4mc67.js";
|
|
103
111
|
import {
|
|
104
112
|
defineRuntimeTool2,
|
|
105
113
|
createRuntimeToolFactory2
|
|
106
114
|
} from "../index-636mggad.js";
|
|
107
|
-
import {
|
|
108
|
-
DEFAULT_CORS_ALLOW_HEADERS2
|
|
109
|
-
} from "../index-yk4g8805.js";
|
|
110
|
-
import {
|
|
111
|
-
getTraceId2
|
|
112
|
-
} from "../index-y3nemndz.js";
|
|
113
115
|
import {
|
|
114
116
|
formatZodError2
|
|
115
117
|
} from "../index-1eeqpadm.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
toolResultFromError,
|
|
20
20
|
toolErrorFromResult
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-mha6b4vk.js";
|
|
22
22
|
import {
|
|
23
23
|
createToolRunner,
|
|
24
24
|
formatToolError
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-ghwntn9n.js";
|
|
26
26
|
import {
|
|
27
27
|
fetchGuarded,
|
|
28
28
|
readCapped
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
} from "./index-eemvahkc.js";
|
|
36
36
|
import {
|
|
37
37
|
collectToolSurface
|
|
38
|
-
} from "./index-
|
|
39
|
-
import {
|
|
40
|
-
formatZodError2
|
|
41
|
-
} from "./index-1eeqpadm.js";
|
|
38
|
+
} from "./index-0d8m0kee.js";
|
|
42
39
|
import {
|
|
43
40
|
isUnsafeKey,
|
|
44
41
|
safeJsonParse
|
|
45
42
|
} from "./index-zsarb5xp.js";
|
|
43
|
+
import {
|
|
44
|
+
formatZodError2
|
|
45
|
+
} from "./index-1eeqpadm.js";
|
|
46
46
|
import {
|
|
47
47
|
isRecord
|
|
48
48
|
} from "./index-9jfdm5tg.js";
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DURABILITY_STEP_EVENT_KIND2,
|
|
3
|
+
DURABILITY_PARK_EVENT_KIND,
|
|
4
|
+
DURABILITY_EVENT_EVENT_KIND,
|
|
5
|
+
DURABILITY_EFFECT_EVENT_KIND,
|
|
6
|
+
StepEventPayloadSchema,
|
|
7
|
+
ParkEventPayloadSchema,
|
|
8
|
+
DeliveredEventPayloadSchema,
|
|
9
|
+
EffectEventPayloadSchema,
|
|
10
|
+
StepResultDecodeError2,
|
|
11
|
+
StepResultNotSerializableError2,
|
|
12
|
+
StepAbortedError2,
|
|
13
|
+
EffectUnresolvedError2,
|
|
14
|
+
ParkRecordDecodeError2,
|
|
15
|
+
ParkAbortedError2
|
|
16
|
+
} from "./index-snef22zr.js";
|
|
1
17
|
import {
|
|
2
18
|
raceAbort
|
|
3
19
|
} from "./index-b0kddvzw.js";
|
|
@@ -8,102 +24,9 @@ import {
|
|
|
8
24
|
MAX_TIMER_MS
|
|
9
25
|
} from "./index-eemvahkc.js";
|
|
10
26
|
|
|
11
|
-
// src/durability/contract.ts
|
|
12
|
-
import { z } from "zod";
|
|
13
|
-
var DURABILITY_STEP_EVENT_KIND2 = "durability/step";
|
|
14
|
-
var DURABILITY_PARK_EVENT_KIND = "durability/park";
|
|
15
|
-
var DURABILITY_EVENT_EVENT_KIND = "durability/event";
|
|
16
|
-
var DURABILITY_EFFECT_EVENT_KIND = "durability/effect";
|
|
17
|
-
var StepEventPayloadSchema = z.object({
|
|
18
|
-
runId: z.string().min(1),
|
|
19
|
-
stepName: z.string().min(1),
|
|
20
|
-
encoded: z.string()
|
|
21
|
-
});
|
|
22
|
-
var SleepParkSchema = z.object({
|
|
23
|
-
runId: z.string().min(1),
|
|
24
|
-
kind: z.literal("sleep"),
|
|
25
|
-
name: z.string().min(1),
|
|
26
|
-
deadline: z.number()
|
|
27
|
-
});
|
|
28
|
-
var WaitParkSchema = z.object({
|
|
29
|
-
runId: z.string().min(1),
|
|
30
|
-
kind: z.literal("wait"),
|
|
31
|
-
event: z.string().min(1),
|
|
32
|
-
id: z.string().min(1)
|
|
33
|
-
});
|
|
34
|
-
var ParkEventPayloadSchema = z.discriminatedUnion("kind", [
|
|
35
|
-
SleepParkSchema,
|
|
36
|
-
WaitParkSchema
|
|
37
|
-
]);
|
|
38
|
-
var DeliveredEventPayloadSchema = z.object({
|
|
39
|
-
runId: z.string().min(1),
|
|
40
|
-
event: z.string().min(1),
|
|
41
|
-
id: z.string().min(1),
|
|
42
|
-
encoded: z.string()
|
|
43
|
-
});
|
|
44
|
-
var EffectIdentity = { runId: z.string().min(1), effectName: z.string().min(1) };
|
|
45
|
-
var EffectEventPayloadSchema = z.discriminatedUnion("phase", [
|
|
46
|
-
z.object({ ...EffectIdentity, phase: z.literal("intent") }),
|
|
47
|
-
z.object({
|
|
48
|
-
...EffectIdentity,
|
|
49
|
-
phase: z.literal("accepted"),
|
|
50
|
-
encoded: z.string(),
|
|
51
|
-
via: z.enum(["run", "reconcile"])
|
|
52
|
-
}),
|
|
53
|
-
z.object({ ...EffectIdentity, phase: z.literal("uncertain") })
|
|
54
|
-
]);
|
|
55
|
-
|
|
56
|
-
class StepResultDecodeError2 extends Error {
|
|
57
|
-
constructor(message, options) {
|
|
58
|
-
super(message, options);
|
|
59
|
-
this.name = "StepResultDecodeError";
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
class StepResultNotSerializableError2 extends Error {
|
|
64
|
-
constructor(stepName, cause) {
|
|
65
|
-
super(`Step "${stepName}" returned a value that is not JSON-serializable`, {
|
|
66
|
-
cause
|
|
67
|
-
});
|
|
68
|
-
this.name = "StepResultNotSerializableError";
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
class StepAbortedError2 extends Error {
|
|
73
|
-
constructor(stepName) {
|
|
74
|
-
super(`Step "${stepName}" was aborted before it started`);
|
|
75
|
-
this.name = "StepAbortedError";
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
class EffectUnresolvedError2 extends Error {
|
|
80
|
-
effectName;
|
|
81
|
-
reason;
|
|
82
|
-
constructor(effectName, reason, options) {
|
|
83
|
-
super(`Effect "${effectName}" is unresolved (${reason}); its intent stands`, options);
|
|
84
|
-
this.effectName = effectName;
|
|
85
|
-
this.reason = reason;
|
|
86
|
-
this.name = "EffectUnresolvedError";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
class ParkRecordDecodeError2 extends Error {
|
|
91
|
-
constructor(message, options) {
|
|
92
|
-
super(message, options);
|
|
93
|
-
this.name = "ParkRecordDecodeError";
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
class ParkAbortedError2 extends Error {
|
|
98
|
-
constructor(park) {
|
|
99
|
-
super(`Park "${park}" was aborted before it was satisfied`);
|
|
100
|
-
this.name = "ParkAbortedError";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
27
|
// src/durability/json.ts
|
|
105
|
-
import { z
|
|
106
|
-
var DurableJsonSchema =
|
|
28
|
+
import { z } from "zod";
|
|
29
|
+
var DurableJsonSchema = z.custom((value) => isJsonData(value, {
|
|
107
30
|
maxDepth: 100,
|
|
108
31
|
maxNodes: Number.MAX_SAFE_INTEGER,
|
|
109
32
|
omitObjectUndefined: false
|
|
@@ -653,4 +576,4 @@ function resolveToolDurability(context, callId, signal) {
|
|
|
653
576
|
return contexts.get(context)?.(callId, signal);
|
|
654
577
|
}
|
|
655
578
|
|
|
656
|
-
export {
|
|
579
|
+
export { createLocalStepDurability2, AgentToolError2, isAgentToolError2, createToolDurabilityContext, resolveToolDurability };
|
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
var AgentStoreEventKindSchema2 = z.enum([
|
|
18
18
|
"runtime/baseline",
|
|
19
|
+
"runtime/branched",
|
|
20
|
+
"runtime/branch-observation",
|
|
19
21
|
"runtime/transition",
|
|
20
22
|
"invocation/started",
|
|
21
23
|
"invocation/finished",
|
|
@@ -188,7 +190,11 @@ var AgentStoreTransitionSchema2 = z3.discriminatedUnion("type", [
|
|
|
188
190
|
z3.object({ type: z3.literal("checkpoint"), input: CheckpointRunAssistantSchema2 }).strict(),
|
|
189
191
|
z3.object({ type: z3.literal("operation"), input: RecordRunOperationSchema2 }).strict(),
|
|
190
192
|
z3.object({ type: z3.literal("interrupt"), input: RequestRunInterruptSchema2 }).strict(),
|
|
191
|
-
z3.object({
|
|
193
|
+
z3.object({
|
|
194
|
+
type: z3.literal("recover"),
|
|
195
|
+
input: RecoverAgentRunSchema2,
|
|
196
|
+
assistant: AgentMessageSchema2.optional()
|
|
197
|
+
}).strict(),
|
|
192
198
|
z3.object({ type: z3.literal("terminal"), input: CommitRunTerminalSchema2 }).strict(),
|
|
193
199
|
z3.object({ type: z3.literal("compact"), input: ReplaceCompactedRangeSchema2 }).strict(),
|
|
194
200
|
z3.object({ type: z3.literal("seed"), input: SeedConversationInputSchema2 }).strict()
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
ToolExecutionControlError2,
|
|
16
16
|
isToolExecutionControlError2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-mha6b4vk.js";
|
|
18
18
|
import {
|
|
19
19
|
agentDurableEventId2
|
|
20
20
|
} from "./index-mnkk1ffz.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
createLocalStepDurability2,
|
|
23
23
|
isAgentToolError2,
|
|
24
24
|
createToolDurabilityContext
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-56yx8dxp.js";
|
|
26
26
|
import {
|
|
27
27
|
canonicalAgentJson2,
|
|
28
28
|
createToolChronology,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isAssistantHistoryEvidence2,
|
|
32
32
|
isCompleteAgentHistoryTurn,
|
|
33
33
|
assistantStatus
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-6qeqdz0z.js";
|
|
35
35
|
import {
|
|
36
36
|
messageOf
|
|
37
37
|
} from "./index-g149e9pk.js";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
toolResultFromError,
|
|
3
3
|
toolCauseFromResult,
|
|
4
4
|
isToolExecutionControlError2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-mha6b4vk.js";
|
|
6
6
|
import {
|
|
7
7
|
createToolRunner,
|
|
8
8
|
formatToolError
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-ghwntn9n.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentToolError2,
|
|
12
12
|
resolveToolDurability
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-56yx8dxp.js";
|
|
14
14
|
import {
|
|
15
15
|
collectToolSurface
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0d8m0kee.js";
|
|
17
17
|
import {
|
|
18
18
|
agentPresenterOf
|
|
19
19
|
} from "./index-636mggad.js";
|