stitchkit 0.100.1 → 0.100.3
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 +99 -0
- package/README.md +2 -1
- package/dist/application/process-lifecycle-transitions.d.ts +13 -2
- package/dist/application/process-lifecycle-transitions.d.ts.map +1 -1
- package/dist/application/process-lifecycle.d.ts +2 -1
- package/dist/application/process-lifecycle.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +119 -119
- package/dist/entrypoints/agent-runtime/coding-tools.js +15 -20
- package/dist/entrypoints/agent-runtime/harness.js +55 -63
- package/dist/entrypoints/agent-runtime/openrouter.js +6 -6
- package/dist/entrypoints/agent-runtime/sandbox.js +20 -25
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +11 -13
- package/dist/entrypoints/agent-runtime/sqlite/node.js +11 -13
- package/dist/entrypoints/agent-runtime/testing.js +32 -34
- package/dist/entrypoints/agent-runtime.js +395 -402
- package/dist/entrypoints/application/diagnostic-journal.js +26 -27
- package/dist/entrypoints/application/directory-inbox.js +16 -17
- package/dist/entrypoints/application/grammy.js +13 -13
- package/dist/entrypoints/application/opentelemetry.js +13 -13
- package/dist/entrypoints/application/schemas.js +24 -24
- package/dist/entrypoints/application.d.ts +1 -1
- package/dist/entrypoints/application.d.ts.map +1 -1
- package/dist/entrypoints/application.js +218 -214
- package/dist/entrypoints/bin/upgrade-cli.js +2 -2
- package/dist/entrypoints/cli.js +81 -84
- package/dist/entrypoints/contract.js +54 -57
- package/dist/entrypoints/declaration.js +22 -22
- package/dist/entrypoints/files.js +18 -21
- package/dist/entrypoints/geo.js +7 -8
- package/dist/entrypoints/google.js +2 -2
- package/dist/entrypoints/index.js +150 -154
- package/dist/entrypoints/live.js +45 -47
- package/dist/entrypoints/node.js +68 -74
- package/dist/entrypoints/oauth.js +6 -6
- package/dist/entrypoints/observability.d.ts +1 -0
- package/dist/entrypoints/observability.d.ts.map +1 -1
- package/dist/entrypoints/observability.js +115 -87
- package/dist/entrypoints/primitives.js +35 -35
- package/dist/entrypoints/react/keyboard.d.ts +4 -0
- package/dist/entrypoints/react/keyboard.d.ts.map +1 -0
- package/dist/entrypoints/react/keyboard.js +397 -0
- package/dist/entrypoints/react.js +10 -10
- package/dist/entrypoints/release.js +7 -7
- package/dist/entrypoints/remote.js +15 -17
- package/dist/entrypoints/server.js +198 -200
- package/dist/entrypoints/telegram/html.d.ts +5 -0
- package/dist/entrypoints/telegram/html.d.ts.map +1 -0
- package/dist/entrypoints/telegram/html.js +26 -0
- package/dist/entrypoints/telegram/screens.d.ts +14 -0
- package/dist/entrypoints/telegram/screens.d.ts.map +1 -0
- package/dist/entrypoints/telegram/screens.js +2028 -0
- package/dist/entrypoints/telegram.d.ts +5 -1
- package/dist/entrypoints/telegram.d.ts.map +1 -1
- package/dist/entrypoints/telegram.js +548 -156
- package/dist/entrypoints/testing.js +75 -79
- package/dist/entrypoints/tools/connections.js +30 -32
- package/dist/entrypoints/tools/contract.js +18 -20
- package/dist/entrypoints/tools/invoker.js +12 -17
- package/dist/entrypoints/tools.js +223 -229
- package/dist/entrypoints/tracking/server.js +6 -6
- package/dist/entrypoints/tracking.js +40 -42
- package/dist/entrypoints/voice.js +3 -3
- package/dist/{index-eaysmdtq.js → index-0ndk4555.js} +56 -56
- package/dist/{index-2bxbyab0.js → index-1bx1xv1k.js} +1 -1
- package/dist/{index-p5r7qpdd.js → index-1eeqpadm.js} +4 -4
- package/dist/{index-hadmp193.js → index-3ct7hhq6.js} +210 -210
- package/dist/{index-e01r054k.js → index-45tdvqa3.js} +26 -26
- package/dist/{index-dce5wxcq.js → index-4s0fep5q.js} +8 -8
- package/dist/index-50ejfz75.js +9 -0
- package/dist/{index-m9zn6cpq.js → index-5107q189.js} +12 -12
- package/dist/{index-sbdmyz75.js → index-5cc6r990.js} +3 -3
- package/dist/index-6k1svmjh.js +141 -0
- package/dist/{index-c6bxbsnc.js → index-7kxw1awn.js} +2 -2
- package/dist/{index-0r0fbk7z.js → index-7z9ym7t8.js} +28 -28
- package/dist/{index-p7hgdyhb.js → index-814xpr6d.js} +2 -2
- package/dist/{index-gtj3zc53.js → index-8kzct1d6.js} +99 -99
- package/dist/{index-1zbbzgfh.js → index-9pw0a51a.js} +4 -4
- package/dist/{index-79z7m7dt.js → index-a9pd417t.js} +35 -35
- package/dist/{index-ham5sz8m.js → index-aaj97r4y.js} +45 -45
- package/dist/{index-s812ycat.js → index-aan6hqb9.js} +3 -3
- package/dist/{index-10x2hbx0.js → index-adhgd4pe.js} +44 -44
- package/dist/{index-2gxzjvyr.js → index-afjvjyck.js} +23 -23
- package/dist/{index-qmy6zq75.js → index-ahvsksw5.js} +16 -16
- package/dist/{index-hr4tzbwq.js → index-ap3gqe56.js} +3 -3
- package/dist/{index-znfs20ss.js → index-b2bz0kdm.js} +16 -16
- package/dist/{index-r066jx76.js → index-c6aagrbd.js} +148 -120
- package/dist/{index-k30h66yd.js → index-ck71tbcf.js} +9 -9
- package/dist/{index-eqqvgdb3.js → index-ct75c3at.js} +2 -2
- package/dist/{index-gw8bmyaj.js → index-djjhhgjk.js} +41 -41
- package/dist/{index-8qt2m66q.js → index-dvwj1f43.js} +43 -43
- package/dist/{index-fhwqwxe0.js → index-ej331hah.js} +1 -1
- package/dist/{index-9t3dffv2.js → index-ewbaywk5.js} +5 -5
- package/dist/{index-7p1f0vp2.js → index-fyphpknh.js} +25 -25
- package/dist/{index-83bdg97s.js → index-g149e9pk.js} +1 -1
- package/dist/{index-ngfhvfpd.js → index-g6a3na27.js} +4 -4
- package/dist/{index-qwhynv6x.js → index-h124epcf.js} +20 -20
- package/dist/{index-h6eeys1v.js → index-h97tqqp1.js} +9 -9
- package/dist/{index-zcgf3gqf.js → index-hby4qhax.js} +10 -10
- package/dist/{index-5jrd0yng.js → index-j8aw2c0e.js} +4 -4
- package/dist/{index-d8m8zpd8.js → index-jzczzcsb.js} +14 -14
- package/dist/index-kqnd6a85.js +26 -0
- package/dist/{index-35mh5bhj.js → index-kw1ws0cs.js} +12 -12
- package/dist/{index-yw4fzmdz.js → index-kzz6rq0w.js} +28 -17
- package/dist/{index-4gcnakhx.js → index-m38ej7e5.js} +2 -2
- package/dist/{index-ndddxtyx.js → index-m79yr938.js} +19 -19
- package/dist/{index-5p2m7we1.js → index-m9fndta6.js} +11 -11
- package/dist/index-mnkk1ffz.js +150 -0
- package/dist/index-n15jny5b.js +4 -0
- package/dist/{index-2vtcmrj9.js → index-n53mswt3.js} +20 -20
- package/dist/{index-bt14acb5.js → index-n5yqxd3d.js} +21 -21
- package/dist/{index-bm5rx7n6.js → index-n9tyz8z3.js} +12 -12
- package/dist/index-nmaqxdx7.js +463 -0
- package/dist/{index-mqv3b5rh.js → index-nx6eazt0.js} +30 -30
- package/dist/{index-3z73fh2c.js → index-q0th8q0z.js} +9 -9
- package/dist/{index-v260df89.js → index-qjeggp8w.js} +20 -20
- package/dist/{index-zfrhfn82.js → index-r1z0rd9c.js} +20 -20
- package/dist/{index-wqgjfstn.js → index-r5c4fedv.js} +3 -3
- package/dist/{index-cyktc4bp.js → index-r5hsgkz5.js} +118 -118
- package/dist/{index-0b1ess5e.js → index-r7a7r7ha.js} +1 -1
- package/dist/{index-1j8pm5t0.js → index-rfkh44ss.js} +15 -15
- package/dist/index-rz3z13e9.js +47 -0
- package/dist/{index-k6gpggb9.js → index-s80awwsw.js} +35 -35
- package/dist/{index-vqr7f7v8.js → index-ssmd41kh.js} +124 -124
- package/dist/{index-ensd0r74.js → index-v14qqmys.js} +41 -41
- package/dist/{index-paz6sgdp.js → index-v4a2fjtk.js} +36 -36
- package/dist/{index-d9pk3td4.js → index-w0eqdhyd.js} +14 -14
- package/dist/{index-5qn1kx34.js → index-w575evhq.js} +29 -29
- package/dist/{index-3gye9wzb.js → index-w5s3xftz.js} +26 -26
- package/dist/{index-tm88avnj.js → index-wykebpn9.js} +3 -3
- package/dist/{index-sh3s86na.js → index-xkhk5d6g.js} +17 -17
- package/dist/{index-6k1937bx.js → index-xqhede6x.js} +4 -4
- package/dist/{index-f4fx2tza.js → index-zs4ms3th.js} +181 -181
- package/dist/{index-k5hsfc3j.js → index-zsvzhjtk.js} +1 -1
- package/dist/observability/bounded-logger.d.ts +2 -0
- package/dist/observability/bounded-logger.d.ts.map +1 -1
- package/dist/observability/sanitize.d.ts +6 -0
- package/dist/observability/sanitize.d.ts.map +1 -1
- package/dist/observability/secret-values.d.ts +25 -0
- package/dist/observability/secret-values.d.ts.map +1 -0
- package/dist/react/keyboard/hooks.d.ts +71 -0
- package/dist/react/keyboard/hooks.d.ts.map +1 -0
- package/dist/react/keyboard/layers.d.ts +98 -0
- package/dist/react/keyboard/layers.d.ts.map +1 -0
- package/dist/react/keyboard/zone.d.ts +139 -0
- package/dist/react/keyboard/zone.d.ts.map +1 -0
- package/dist/telegram/crypto.d.ts +16 -0
- package/dist/telegram/crypto.d.ts.map +1 -0
- package/dist/telegram/html/check.d.ts +26 -0
- package/dist/telegram/html/check.d.ts.map +1 -0
- package/dist/telegram/html/nodes.d.ts +70 -0
- package/dist/telegram/html/nodes.d.ts.map +1 -0
- package/dist/telegram/html/parse.d.ts +35 -0
- package/dist/telegram/html/parse.d.ts.map +1 -0
- package/dist/telegram/html/render.d.ts +39 -0
- package/dist/telegram/html/render.d.ts.map +1 -0
- package/dist/telegram/init-data.d.ts.map +1 -1
- package/dist/telegram/operator-channel.d.ts +36 -3
- package/dist/telegram/operator-channel.d.ts.map +1 -1
- package/dist/telegram/screens/callback-codec.d.ts +34 -0
- package/dist/telegram/screens/callback-codec.d.ts.map +1 -0
- package/dist/telegram/screens/dispatch.d.ts +22 -0
- package/dist/telegram/screens/dispatch.d.ts.map +1 -0
- package/dist/telegram/screens/display.d.ts +70 -0
- package/dist/telegram/screens/display.d.ts.map +1 -0
- package/dist/telegram/screens/execute.d.ts +57 -0
- package/dist/telegram/screens/execute.d.ts.map +1 -0
- package/dist/telegram/screens/html.d.ts +36 -0
- package/dist/telegram/screens/html.d.ts.map +1 -0
- package/dist/telegram/screens/outcome.d.ts +74 -0
- package/dist/telegram/screens/outcome.d.ts.map +1 -0
- package/dist/telegram/screens/path.d.ts +29 -0
- package/dist/telegram/screens/path.d.ts.map +1 -0
- package/dist/telegram/screens/reconcile.d.ts +67 -0
- package/dist/telegram/screens/reconcile.d.ts.map +1 -0
- package/dist/telegram/screens/registry.d.ts +23 -0
- package/dist/telegram/screens/registry.d.ts.map +1 -0
- package/dist/telegram/screens/render.d.ts +70 -0
- package/dist/telegram/screens/render.d.ts.map +1 -0
- package/dist/telegram/screens/runtime.d.ts +133 -0
- package/dist/telegram/screens/runtime.d.ts.map +1 -0
- package/dist/telegram/screens/screen-types.d.ts +130 -0
- package/dist/telegram/screens/screen-types.d.ts.map +1 -0
- package/dist/telegram/screens/screen.d.ts +138 -0
- package/dist/telegram/screens/screen.d.ts.map +1 -0
- package/dist/telegram/screens/state.d.ts +115 -0
- package/dist/telegram/screens/state.d.ts.map +1 -0
- package/dist/telegram/screens/telegram-screens.d.ts +18 -0
- package/dist/telegram/screens/telegram-screens.d.ts.map +1 -0
- package/dist/telegram/screens/test-chat-telegram.d.ts +47 -0
- package/dist/telegram/screens/test-chat-telegram.d.ts.map +1 -0
- package/dist/telegram/screens/test-chat.d.ts +66 -0
- package/dist/telegram/screens/test-chat.d.ts.map +1 -0
- package/dist/telegram/screens/view.d.ts +89 -0
- package/dist/telegram/screens/view.d.ts.map +1 -0
- package/dist/telegram/send-failure.d.ts +19 -0
- package/dist/telegram/send-failure.d.ts.map +1 -1
- package/dist/telegram/update-intake.d.ts +78 -0
- package/dist/telegram/update-intake.d.ts.map +1 -0
- package/dist/telegram/update-store-sqlite.d.ts +26 -0
- package/dist/telegram/update-store-sqlite.d.ts.map +1 -0
- package/dist/telegram/update-store.d.ts +67 -0
- package/dist/telegram/update-store.d.ts.map +1 -0
- package/dist/telegram/webhook.d.ts +105 -0
- package/dist/telegram/webhook.d.ts.map +1 -0
- package/dist/tools/cli/args-fields.d.ts +8 -0
- package/dist/tools/cli/args-fields.d.ts.map +1 -1
- package/dist/tools/cli/args-route.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/help.d.ts.map +1 -1
- package/llms/application.2.txt +26 -1
- package/llms/application.txt +18 -27
- package/llms/cli.txt +8 -2
- package/llms/observability.txt +2 -1
- package/llms/react-keyboard.txt +193 -0
- package/llms/stitchkit.txt +7 -1
- package/llms/telegram-html.txt +35 -0
- package/llms/telegram-screens.txt +365 -0
- package/llms/telegram.txt +160 -4
- package/llms-full.txt +755 -11
- package/llms.txt +11 -6
- package/package.json +17 -2
- package/dist/index-2k4yrqkc.js +0 -9
- package/dist/index-crykmqkr.js +0 -26
- package/dist/index-y64k3s0h.js +0 -150
- package/dist/index-y91ry9h2.js +0 -4
- /package/dist/{index-hffjpmq9.js → index-9jfdm5tg.js} +0 -0
- /package/dist/{index-zjjyynm3.js → index-d4pa2bgs.js} +0 -0
- /package/dist/{index-rxfy4cq7.js → index-dwfv9a85.js} +0 -0
- /package/dist/{index-5jm36zv1.js → index-gfk7nrht.js} +0 -0
- /package/dist/{index-b9aefrqd.js → index-n1dqr7gf.js} +0 -0
- /package/dist/{index-q3pyb9n0.js → index-sykb5ag7.js} +0 -0
- /package/dist/{index-48ffdxgk.js → index-xhzq2qvj.js} +0 -0
- /package/dist/{index-kzfs85xp.js → index-zsarb5xp.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./index-
|
|
2
|
+
createTraceContext2,
|
|
3
|
+
formatTraceparent2
|
|
4
|
+
} from "./index-hby4qhax.js";
|
|
5
5
|
import {
|
|
6
6
|
isRecord,
|
|
7
7
|
transportResult
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9jfdm5tg.js";
|
|
9
9
|
|
|
10
10
|
// src/browser/http.ts
|
|
11
11
|
import ky, {
|
|
@@ -150,7 +150,7 @@ function messageForCode(code, message) {
|
|
|
150
150
|
return message !== undefined && message.length > 0 ? message : `${code} (no message supplied)`;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
class
|
|
153
|
+
class ApiError2 extends Error {
|
|
154
154
|
code;
|
|
155
155
|
status;
|
|
156
156
|
details;
|
|
@@ -171,7 +171,7 @@ class ApiError extends Error {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
function refuseLocally(path, message) {
|
|
174
|
-
return new
|
|
174
|
+
return new ApiError2("VALIDATION_ERROR", 0, { issues: [{ path, code: "invalid_type", message }] }, message);
|
|
175
175
|
}
|
|
176
176
|
function isAbortLikeError(error) {
|
|
177
177
|
if (error instanceof RequestCancellationError)
|
|
@@ -179,7 +179,7 @@ function isAbortLikeError(error) {
|
|
|
179
179
|
return typeof error === "object" && error !== null && "name" in error && (error.name === "AbortError" || error.name === "TimeoutError");
|
|
180
180
|
}
|
|
181
181
|
function shouldRetryBunNetworkError(error) {
|
|
182
|
-
if (
|
|
182
|
+
if (ApiError2.is(error) || isHTTPError(error) || isNetworkError(error) || isTimeoutError(error) || isAbortLikeError(error)) {
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
if (!(error instanceof Error))
|
|
@@ -215,17 +215,17 @@ function assertTransportChoice(config) {
|
|
|
215
215
|
}
|
|
216
216
|
function requestFailure(error, emit) {
|
|
217
217
|
if (error instanceof RequestCancellationError) {
|
|
218
|
-
return new
|
|
218
|
+
return new ApiError2(error.cause === "caller" ? "REQUEST_ABORTED" : "REQUEST_TIMEOUT", 0, undefined, error.message);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (ApiError2.is(error))
|
|
221
221
|
return error;
|
|
222
222
|
emit({ type: "network_error" });
|
|
223
223
|
const response = isHTTPError(error) ? error.response : undefined;
|
|
224
224
|
const status = response?.status ?? 0;
|
|
225
225
|
const msg = error instanceof Error ? error.message : undefined;
|
|
226
|
-
return new
|
|
226
|
+
return new ApiError2("UNKNOWN_ERROR", status, msg ? { message: msg } : undefined, msg, undefined, responseTraceId(response), { cause: error });
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function createHttpClient2(config) {
|
|
229
229
|
assertTransportChoice(config);
|
|
230
230
|
let ssrCookies = null;
|
|
231
231
|
let isLoggedOut = false;
|
|
@@ -251,30 +251,30 @@ function createHttpClient(config) {
|
|
|
251
251
|
},
|
|
252
252
|
hooks: {
|
|
253
253
|
beforeRequest: [
|
|
254
|
-
({ request
|
|
254
|
+
({ request }) => {
|
|
255
255
|
if (ssrCookies) {
|
|
256
|
-
|
|
256
|
+
request.headers.set("Cookie", ssrCookies);
|
|
257
257
|
}
|
|
258
258
|
const extra = typeof config.headers === "function" ? config.headers() : config.headers;
|
|
259
259
|
if (extra) {
|
|
260
260
|
for (const [key, value] of Object.entries(extra)) {
|
|
261
|
-
|
|
261
|
+
request.headers.set(key, value);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
if (config.trace && !
|
|
265
|
-
|
|
264
|
+
if (config.trace && !request.headers.has("traceparent")) {
|
|
265
|
+
request.headers.set("traceparent", formatTraceparent2(createTraceContext2()));
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
],
|
|
269
269
|
afterResponse: [
|
|
270
|
-
async ({ request
|
|
270
|
+
async ({ request, response }) => {
|
|
271
271
|
if (config.release) {
|
|
272
272
|
try {
|
|
273
273
|
config.release.observe(response.headers.get("x-build-id"));
|
|
274
274
|
} catch {}
|
|
275
275
|
}
|
|
276
276
|
if (response.status === 401) {
|
|
277
|
-
const url = new URL(
|
|
277
|
+
const url = new URL(request.url).pathname;
|
|
278
278
|
if (!isLoggedOut && !suppressUnauthorizedFor.some((matches) => matches(url))) {
|
|
279
279
|
isLoggedOut = true;
|
|
280
280
|
emit({ type: "unauthorized" });
|
|
@@ -285,7 +285,7 @@ function createHttpClient(config) {
|
|
|
285
285
|
if (body) {
|
|
286
286
|
const parsed = parseError(body);
|
|
287
287
|
if (parsed) {
|
|
288
|
-
throw new
|
|
288
|
+
throw new ApiError2(parsed.code, response.status, parsed.details, parsed.message, parsed.hint, responseTraceId(response));
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
@@ -339,4 +339,4 @@ function createHttpClient(config) {
|
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
export { RequestCancellationError, createRequestCancellation, responseTraceId,
|
|
342
|
+
export { RequestCancellationError, createRequestCancellation, responseTraceId, ApiError2, refuseLocally, isAbortLikeError, parseApiErrorBody, createHttpClient2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./index-35mh5bhj.js";
|
|
2
|
+
resolveTraceContext2
|
|
3
|
+
} from "./index-hby4qhax.js";
|
|
5
4
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
resolveSocketIp2,
|
|
6
|
+
getClientInfo2
|
|
7
|
+
} from "./index-kw1ws0cs.js";
|
|
8
8
|
import {
|
|
9
9
|
isUnsafeKey
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-zsarb5xp.js";
|
|
11
11
|
|
|
12
12
|
// src/observability/context.ts
|
|
13
13
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -16,24 +16,24 @@ var requestStorage = () => {
|
|
|
16
16
|
storage ??= new AsyncLocalStorage;
|
|
17
17
|
return storage;
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function runWithRequestContext2(ctx, fn) {
|
|
20
20
|
return requestStorage().run(ctx, fn);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function getRequestContext2() {
|
|
23
23
|
return requestStorage().getStore();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function getTraceId2() {
|
|
26
26
|
return requestStorage().getStore()?.trace.traceId;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function getUserId2() {
|
|
29
29
|
return requestStorage().getStore()?.userId;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function setRequestUser2(userId) {
|
|
32
32
|
const ctx = requestStorage().getStore();
|
|
33
33
|
if (ctx)
|
|
34
34
|
ctx.userId = userId;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function setRequestEndpoint2(serviceName, action) {
|
|
37
37
|
const ctx = requestStorage().getStore();
|
|
38
38
|
if (ctx) {
|
|
39
39
|
ctx.serviceName = serviceName;
|
|
@@ -41,7 +41,7 @@ function setRequestEndpoint(serviceName, action) {
|
|
|
41
41
|
ctx.action = action;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function setRequestDimensions2(dimensions, options = {}) {
|
|
45
45
|
const ctx = requestStorage().getStore();
|
|
46
46
|
if (!ctx)
|
|
47
47
|
return;
|
|
@@ -59,27 +59,27 @@ function setRequestDimensions(dimensions, options = {}) {
|
|
|
59
59
|
}
|
|
60
60
|
ctx.dimensions = next;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function setRequestError2(error) {
|
|
63
63
|
const ctx = requestStorage().getStore();
|
|
64
64
|
if (ctx)
|
|
65
65
|
ctx.error = error;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function wrapInRequestContext2(handler, options = {}) {
|
|
68
68
|
return (req, server) => {
|
|
69
69
|
const ctx = {
|
|
70
|
-
trace:
|
|
70
|
+
trace: resolveTraceContext2(req),
|
|
71
71
|
source: "http",
|
|
72
72
|
kind: "request",
|
|
73
73
|
method: req.method,
|
|
74
74
|
path: new URL(req.url, "http://localhost").pathname,
|
|
75
75
|
startedAt: process.hrtime.bigint(),
|
|
76
|
-
...
|
|
76
|
+
...getClientInfo2(req, {
|
|
77
77
|
trustProxy: options.trustProxy,
|
|
78
|
-
socketIp:
|
|
78
|
+
socketIp: resolveSocketIp2(req, server)
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
|
-
return
|
|
81
|
+
return runWithRequestContext2(ctx, () => handler(req, server));
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export {
|
|
85
|
+
export { runWithRequestContext2, getRequestContext2, getTraceId2, getUserId2, setRequestUser2, setRequestEndpoint2, setRequestDimensions2, setRequestError2, wrapInRequestContext2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/contract/stream.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var DEFAULT_CONTRACT_STREAM_FRAME_BYTES2 = 256 * 1024;
|
|
4
|
+
var ContractStreamFrameSchema2 = z.discriminatedUnion("type", [
|
|
5
5
|
z.object({ type: z.literal("data"), data: z.unknown() }).strict(),
|
|
6
6
|
z.object({
|
|
7
7
|
type: z.literal("error"),
|
|
@@ -15,4 +15,4 @@ var ContractStreamFrameSchema = z.discriminatedUnion("type", [
|
|
|
15
15
|
z.object({ type: z.literal("end") }).strict()
|
|
16
16
|
]);
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { DEFAULT_CONTRACT_STREAM_FRAME_BYTES2, ContractStreamFrameSchema2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./index-
|
|
2
|
+
AgentRecordIdSchema2,
|
|
3
|
+
AgentRecordVersionSchema2,
|
|
4
|
+
AgentMessageSchema2,
|
|
5
|
+
AgentRunOperationSchema2,
|
|
6
|
+
AgentTerminalReasonSchema2,
|
|
7
|
+
AgentUsageSchema2,
|
|
8
|
+
AgentRunSchema2,
|
|
9
|
+
AgentSnapshotSchema2
|
|
10
|
+
} from "./index-8kzct1d6.js";
|
|
11
11
|
import {
|
|
12
12
|
serializeCanonicalJson
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-zsvzhjtk.js";
|
|
14
14
|
|
|
15
15
|
// src/durability/events.ts
|
|
16
16
|
import { z } from "zod";
|
|
17
|
-
var
|
|
17
|
+
var AgentStoreEventKindSchema2 = z.enum([
|
|
18
18
|
"runtime/baseline",
|
|
19
19
|
"runtime/transition",
|
|
20
20
|
"invocation/started",
|
|
@@ -42,7 +42,7 @@ var AgentStoreEventKindSchema = z.enum([
|
|
|
42
42
|
"durability/event",
|
|
43
43
|
"durability/effect"
|
|
44
44
|
]);
|
|
45
|
-
var
|
|
45
|
+
var AgentStoreEventEnvelopeSchema2 = z.object({
|
|
46
46
|
schemaVersion: z.int().positive(),
|
|
47
47
|
eventId: z.string().min(1),
|
|
48
48
|
conversationId: z.string().min(1),
|
|
@@ -52,152 +52,152 @@ var AgentStoreEventEnvelopeSchema = z.object({
|
|
|
52
52
|
payload: z.json(),
|
|
53
53
|
ignorable: z.literal(true).optional()
|
|
54
54
|
}).strict();
|
|
55
|
-
var
|
|
55
|
+
var AppendAgentStoreEventSchema2 = z.object({
|
|
56
56
|
conversationId: z.string().min(1),
|
|
57
|
-
kind:
|
|
57
|
+
kind: AgentStoreEventKindSchema2,
|
|
58
58
|
occurredAt: z.iso.datetime({ offset: true }).optional(),
|
|
59
59
|
payload: z.json(),
|
|
60
60
|
ignorable: z.literal(true).optional()
|
|
61
61
|
}).strict();
|
|
62
|
-
var
|
|
62
|
+
var ReadAgentStoreEventsSchema2 = z.object({
|
|
63
63
|
conversationId: z.string().min(1),
|
|
64
64
|
fromSeq: z.int().positive().optional(),
|
|
65
65
|
toSeq: z.int().positive().optional(),
|
|
66
66
|
limit: z.int().positive().max(1e4).default(1000)
|
|
67
67
|
}).strict().refine((input) => input.fromSeq === undefined || input.toSeq === undefined || input.fromSeq <= input.toSeq, { message: "fromSeq must not exceed toSeq" });
|
|
68
|
-
var
|
|
69
|
-
items: z.array(
|
|
68
|
+
var AgentStoreEventPageSchema2 = z.object({
|
|
69
|
+
items: z.array(AgentStoreEventEnvelopeSchema2),
|
|
70
70
|
nextSeq: z.int().positive().optional()
|
|
71
71
|
}).strict();
|
|
72
72
|
|
|
73
73
|
// src/agent-runtime/store.ts
|
|
74
74
|
import { z as z2 } from "zod";
|
|
75
|
-
var
|
|
75
|
+
var AgentStoreConflictSchema2 = z2.object({
|
|
76
76
|
outcome: z2.literal("conflict"),
|
|
77
|
-
actualVersion:
|
|
77
|
+
actualVersion: AgentRecordVersionSchema2
|
|
78
78
|
});
|
|
79
|
-
var
|
|
80
|
-
var
|
|
79
|
+
var AgentStoreNotFoundSchema2 = z2.object({ outcome: z2.literal("not_found") });
|
|
80
|
+
var AgentStoreAppliedSchema2 = z2.object({
|
|
81
81
|
outcome: z2.literal("applied"),
|
|
82
|
-
snapshot:
|
|
82
|
+
snapshot: AgentSnapshotSchema2
|
|
83
83
|
});
|
|
84
|
-
var
|
|
84
|
+
var AgentStoreDuplicateSchema2 = z2.object({
|
|
85
85
|
outcome: z2.literal("duplicate"),
|
|
86
|
-
input:
|
|
87
|
-
inputMessageId:
|
|
88
|
-
runId:
|
|
89
|
-
assistantMessageId:
|
|
90
|
-
run:
|
|
91
|
-
assistant:
|
|
92
|
-
snapshot:
|
|
86
|
+
input: AgentMessageSchema2,
|
|
87
|
+
inputMessageId: AgentRecordIdSchema2,
|
|
88
|
+
runId: AgentRecordIdSchema2,
|
|
89
|
+
assistantMessageId: AgentRecordIdSchema2,
|
|
90
|
+
run: AgentRunSchema2,
|
|
91
|
+
assistant: AgentMessageSchema2.optional(),
|
|
92
|
+
snapshot: AgentSnapshotSchema2
|
|
93
93
|
});
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
var AgentStoreMutationResultSchema2 = z2.discriminatedUnion("outcome", [
|
|
95
|
+
AgentStoreAppliedSchema2,
|
|
96
|
+
AgentStoreDuplicateSchema2,
|
|
97
|
+
AgentStoreConflictSchema2,
|
|
98
|
+
AgentStoreNotFoundSchema2
|
|
99
99
|
]);
|
|
100
|
-
var
|
|
101
|
-
snapshotVersion:
|
|
102
|
-
run:
|
|
103
|
-
assistant:
|
|
100
|
+
var AgentRunViewSchema2 = z2.object({
|
|
101
|
+
snapshotVersion: AgentRecordVersionSchema2,
|
|
102
|
+
run: AgentRunSchema2,
|
|
103
|
+
assistant: AgentMessageSchema2.optional()
|
|
104
104
|
});
|
|
105
|
-
var
|
|
105
|
+
var AcceptInputAndAssignRunSchema2 = z2.object({
|
|
106
106
|
idempotencyKey: z2.string().min(1),
|
|
107
|
-
expectedVersion:
|
|
108
|
-
input:
|
|
109
|
-
run:
|
|
110
|
-
coalesceIntoRunId:
|
|
107
|
+
expectedVersion: AgentRecordVersionSchema2.optional(),
|
|
108
|
+
input: AgentMessageSchema2,
|
|
109
|
+
run: AgentRunSchema2,
|
|
110
|
+
coalesceIntoRunId: AgentRecordIdSchema2.optional()
|
|
111
111
|
});
|
|
112
|
-
var
|
|
113
|
-
conversationId:
|
|
114
|
-
runId:
|
|
115
|
-
expectedRevision:
|
|
112
|
+
var AcquireAgentRunSchema2 = z2.object({
|
|
113
|
+
conversationId: AgentRecordIdSchema2,
|
|
114
|
+
runId: AgentRecordIdSchema2,
|
|
115
|
+
expectedRevision: AgentRecordVersionSchema2,
|
|
116
116
|
ownerId: z2.string().min(1)
|
|
117
117
|
});
|
|
118
|
-
var
|
|
119
|
-
conversationId:
|
|
120
|
-
runId:
|
|
121
|
-
expectedRevision:
|
|
118
|
+
var CheckpointRunAssistantSchema2 = z2.object({
|
|
119
|
+
conversationId: AgentRecordIdSchema2,
|
|
120
|
+
runId: AgentRecordIdSchema2,
|
|
121
|
+
expectedRevision: AgentRecordVersionSchema2,
|
|
122
122
|
ownerId: z2.string().min(1),
|
|
123
|
-
fencingToken:
|
|
124
|
-
assistant:
|
|
125
|
-
usage:
|
|
123
|
+
fencingToken: AgentRecordVersionSchema2.optional(),
|
|
124
|
+
assistant: AgentMessageSchema2,
|
|
125
|
+
usage: AgentUsageSchema2.optional()
|
|
126
126
|
});
|
|
127
|
-
var
|
|
128
|
-
conversationId:
|
|
129
|
-
runId:
|
|
130
|
-
expectedRevision:
|
|
127
|
+
var RecordRunOperationSchema2 = z2.object({
|
|
128
|
+
conversationId: AgentRecordIdSchema2,
|
|
129
|
+
runId: AgentRecordIdSchema2,
|
|
130
|
+
expectedRevision: AgentRecordVersionSchema2,
|
|
131
131
|
ownerId: z2.string().min(1),
|
|
132
|
-
fencingToken:
|
|
133
|
-
operation:
|
|
132
|
+
fencingToken: AgentRecordVersionSchema2.optional(),
|
|
133
|
+
operation: AgentRunOperationSchema2
|
|
134
134
|
});
|
|
135
|
-
var
|
|
136
|
-
conversationId:
|
|
137
|
-
runId:
|
|
138
|
-
expectedRevision:
|
|
135
|
+
var CommitRunTerminalSchema2 = z2.object({
|
|
136
|
+
conversationId: AgentRecordIdSchema2,
|
|
137
|
+
runId: AgentRecordIdSchema2,
|
|
138
|
+
expectedRevision: AgentRecordVersionSchema2,
|
|
139
139
|
ownerId: z2.string().min(1),
|
|
140
|
-
fencingToken:
|
|
141
|
-
assistant:
|
|
142
|
-
reason:
|
|
140
|
+
fencingToken: AgentRecordVersionSchema2.optional(),
|
|
141
|
+
assistant: AgentMessageSchema2,
|
|
142
|
+
reason: AgentTerminalReasonSchema2,
|
|
143
143
|
policyName: z2.string().min(1).optional(),
|
|
144
|
-
usage:
|
|
144
|
+
usage: AgentUsageSchema2.optional(),
|
|
145
145
|
absorb: z2.array(z2.object({
|
|
146
|
-
runId:
|
|
147
|
-
inputMessageIds: z2.array(
|
|
146
|
+
runId: AgentRecordIdSchema2,
|
|
147
|
+
inputMessageIds: z2.array(AgentRecordIdSchema2).min(1)
|
|
148
148
|
})).min(1).optional()
|
|
149
149
|
});
|
|
150
|
-
var
|
|
151
|
-
conversationId:
|
|
152
|
-
runId:
|
|
153
|
-
expectedRevision:
|
|
150
|
+
var RequestRunInterruptSchema2 = z2.object({
|
|
151
|
+
conversationId: AgentRecordIdSchema2,
|
|
152
|
+
runId: AgentRecordIdSchema2,
|
|
153
|
+
expectedRevision: AgentRecordVersionSchema2
|
|
154
154
|
});
|
|
155
|
-
var
|
|
156
|
-
conversationId:
|
|
157
|
-
runId:
|
|
158
|
-
expectedRevision:
|
|
155
|
+
var RecoverAgentRunSchema2 = z2.object({
|
|
156
|
+
conversationId: AgentRecordIdSchema2,
|
|
157
|
+
runId: AgentRecordIdSchema2,
|
|
158
|
+
expectedRevision: AgentRecordVersionSchema2,
|
|
159
159
|
action: z2.enum(["requeue", "abandon"]),
|
|
160
160
|
replaySafe: z2.boolean().optional()
|
|
161
161
|
});
|
|
162
|
-
var
|
|
163
|
-
conversationId:
|
|
164
|
-
expectedVersion:
|
|
165
|
-
replacedMessageIds: z2.array(
|
|
166
|
-
summary:
|
|
162
|
+
var ReplaceCompactedRangeSchema2 = z2.object({
|
|
163
|
+
conversationId: AgentRecordIdSchema2,
|
|
164
|
+
expectedVersion: AgentRecordVersionSchema2,
|
|
165
|
+
replacedMessageIds: z2.array(AgentRecordIdSchema2).min(1),
|
|
166
|
+
summary: AgentMessageSchema2
|
|
167
167
|
});
|
|
168
|
-
var
|
|
169
|
-
conversationId:
|
|
168
|
+
var SeedConversationInputSchema2 = z2.object({
|
|
169
|
+
conversationId: AgentRecordIdSchema2,
|
|
170
170
|
seedKey: z2.string().min(1),
|
|
171
|
-
inputs: z2.array(
|
|
171
|
+
inputs: z2.array(AgentMessageSchema2).min(1)
|
|
172
172
|
});
|
|
173
|
-
var
|
|
174
|
-
conversationId:
|
|
175
|
-
run:
|
|
173
|
+
var AgentRecoverableDescriptorSchema2 = z2.object({
|
|
174
|
+
conversationId: AgentRecordIdSchema2,
|
|
175
|
+
run: AgentRunSchema2
|
|
176
176
|
});
|
|
177
|
-
var
|
|
178
|
-
items: z2.array(
|
|
177
|
+
var AgentRecoverablePageSchema2 = z2.object({
|
|
178
|
+
items: z2.array(AgentRecoverableDescriptorSchema2),
|
|
179
179
|
nextCursor: z2.string().min(1).optional()
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
// src/agent-runtime/store-events.ts
|
|
183
183
|
import { randomUUID } from "node:crypto";
|
|
184
184
|
import { z as z3 } from "zod";
|
|
185
|
-
var
|
|
186
|
-
z3.object({ type: z3.literal("accept"), input:
|
|
187
|
-
z3.object({ type: z3.literal("acquire"), input:
|
|
188
|
-
z3.object({ type: z3.literal("checkpoint"), input:
|
|
189
|
-
z3.object({ type: z3.literal("operation"), input:
|
|
190
|
-
z3.object({ type: z3.literal("interrupt"), input:
|
|
191
|
-
z3.object({ type: z3.literal("recover"), input:
|
|
192
|
-
z3.object({ type: z3.literal("terminal"), input:
|
|
193
|
-
z3.object({ type: z3.literal("compact"), input:
|
|
194
|
-
z3.object({ type: z3.literal("seed"), input:
|
|
185
|
+
var AgentStoreTransitionSchema2 = z3.discriminatedUnion("type", [
|
|
186
|
+
z3.object({ type: z3.literal("accept"), input: AcceptInputAndAssignRunSchema2 }).strict(),
|
|
187
|
+
z3.object({ type: z3.literal("acquire"), input: AcquireAgentRunSchema2 }).strict(),
|
|
188
|
+
z3.object({ type: z3.literal("checkpoint"), input: CheckpointRunAssistantSchema2 }).strict(),
|
|
189
|
+
z3.object({ type: z3.literal("operation"), input: RecordRunOperationSchema2 }).strict(),
|
|
190
|
+
z3.object({ type: z3.literal("interrupt"), input: RequestRunInterruptSchema2 }).strict(),
|
|
191
|
+
z3.object({ type: z3.literal("recover"), input: RecoverAgentRunSchema2 }).strict(),
|
|
192
|
+
z3.object({ type: z3.literal("terminal"), input: CommitRunTerminalSchema2 }).strict(),
|
|
193
|
+
z3.object({ type: z3.literal("compact"), input: ReplaceCompactedRangeSchema2 }).strict(),
|
|
194
|
+
z3.object({ type: z3.literal("seed"), input: SeedConversationInputSchema2 }).strict()
|
|
195
195
|
]);
|
|
196
196
|
var CURRENT_EVENT_SCHEMA_VERSION = 1;
|
|
197
|
-
function
|
|
198
|
-
const envelope =
|
|
197
|
+
function decodeAgentStoreEvent2(value) {
|
|
198
|
+
const envelope = AgentStoreEventEnvelopeSchema2.parse(value);
|
|
199
199
|
const knownVersion = envelope.schemaVersion === CURRENT_EVENT_SCHEMA_VERSION;
|
|
200
|
-
const knownKind =
|
|
200
|
+
const knownKind = AgentStoreEventKindSchema2.safeParse(envelope.kind).success;
|
|
201
201
|
if (knownVersion && knownKind)
|
|
202
202
|
return { outcome: "accepted", event: envelope };
|
|
203
203
|
if (!envelope.ignorable) {
|
|
@@ -213,7 +213,7 @@ function decodeAgentStoreEvent(value) {
|
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
function agentStoreEventDraft(input) {
|
|
216
|
-
const parsed =
|
|
216
|
+
const parsed = AppendAgentStoreEventSchema2.parse(input);
|
|
217
217
|
return {
|
|
218
218
|
schemaVersion: CURRENT_EVENT_SCHEMA_VERSION,
|
|
219
219
|
eventId: randomUUID(),
|
|
@@ -224,24 +224,24 @@ function agentStoreEventDraft(input) {
|
|
|
224
224
|
...parsed.ignorable && { ignorable: true }
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function canonicalAgentJson2(value) {
|
|
228
228
|
return serializeCanonicalJson(z3.json().parse(value));
|
|
229
229
|
}
|
|
230
|
-
var
|
|
230
|
+
var AgentConversationArchiveSchema2 = z3.object({
|
|
231
231
|
format: z3.literal("stitchkit.agent-conversation"),
|
|
232
232
|
formatVersion: z3.literal(1),
|
|
233
233
|
conversationId: z3.string().min(1),
|
|
234
|
-
events: z3.array(
|
|
234
|
+
events: z3.array(AgentStoreEventEnvelopeSchema2),
|
|
235
235
|
projections: z3.array(z3.json()).default([]),
|
|
236
236
|
spills: z3.array(z3.json()).default([])
|
|
237
237
|
}).strict();
|
|
238
|
-
function
|
|
239
|
-
const parsed =
|
|
240
|
-
return new TextEncoder().encode(
|
|
238
|
+
function encodeAgentConversationArchive2(archive) {
|
|
239
|
+
const parsed = AgentConversationArchiveSchema2.parse(archive);
|
|
240
|
+
return new TextEncoder().encode(canonicalAgentJson2(parsed));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function decodeAgentConversationArchive2(bytes) {
|
|
243
243
|
const value = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes));
|
|
244
|
-
const archive =
|
|
244
|
+
const archive = AgentConversationArchiveSchema2.parse(value);
|
|
245
245
|
let previous = 0;
|
|
246
246
|
const ids = new Set;
|
|
247
247
|
for (const event of archive.events) {
|
|
@@ -252,7 +252,7 @@ function decodeAgentConversationArchive(bytes) {
|
|
|
252
252
|
throw new TypeError("Conversation archive event sequence is not increasing");
|
|
253
253
|
if (ids.has(event.eventId))
|
|
254
254
|
throw new TypeError("Conversation archive contains a duplicate event id");
|
|
255
|
-
|
|
255
|
+
decodeAgentStoreEvent2(event);
|
|
256
256
|
previous = event.seq;
|
|
257
257
|
ids.add(event.eventId);
|
|
258
258
|
}
|
|
@@ -306,7 +306,7 @@ function canProjectToolChronology(state) {
|
|
|
306
306
|
function isSpeakableAssistantStatus(status) {
|
|
307
307
|
return status === "completed" || status === "interrupted" || status === "committed";
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function isAssistantHistoryEvidence2(status, policy) {
|
|
310
310
|
return isSpeakableAssistantStatus(status) || status === "failed" && policy?.failedAssistant === "assistant-marked";
|
|
311
311
|
}
|
|
312
312
|
function isCompleteAgentHistoryTurn(messages, policy) {
|
|
@@ -316,7 +316,7 @@ function isCompleteAgentHistoryTurn(messages, policy) {
|
|
|
316
316
|
let assistantCount = 0;
|
|
317
317
|
for (const message of messages) {
|
|
318
318
|
if (message.role === "assistant") {
|
|
319
|
-
if (!
|
|
319
|
+
if (!isAssistantHistoryEvidence2(message.status, policy))
|
|
320
320
|
return false;
|
|
321
321
|
assistantCount += 1;
|
|
322
322
|
}
|
|
@@ -341,4 +341,4 @@ function assistantStatus(reason) {
|
|
|
341
341
|
return "failed";
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { AgentStoreEventKindSchema2, AgentStoreEventEnvelopeSchema2, AppendAgentStoreEventSchema2, ReadAgentStoreEventsSchema2, AgentStoreEventPageSchema2, AgentStoreConflictSchema2, AgentStoreNotFoundSchema2, AgentStoreAppliedSchema2, AgentStoreDuplicateSchema2, AgentStoreMutationResultSchema2, AgentRunViewSchema2, AcceptInputAndAssignRunSchema2, AcquireAgentRunSchema2, CheckpointRunAssistantSchema2, RecordRunOperationSchema2, CommitRunTerminalSchema2, RequestRunInterruptSchema2, RecoverAgentRunSchema2, ReplaceCompactedRangeSchema2, SeedConversationInputSchema2, AgentRecoverableDescriptorSchema2, AgentRecoverablePageSchema2, AgentStoreTransitionSchema2, decodeAgentStoreEvent2, agentStoreEventDraft, canonicalAgentJson2, AgentConversationArchiveSchema2, encodeAgentConversationArchive2, decodeAgentConversationArchive2, createToolChronology, advanceToolChronology, canProjectToolChronology, isAssistantHistoryEvidence2, isCompleteAgentHistoryTurn, assistantStatus };
|