stitchkit 0.78.0 → 0.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-runtime-browser.js +53 -581
- package/dist/agent-runtime-coding-tools.js +6 -5
- package/dist/agent-runtime-harness.js +21 -94
- package/dist/agent-runtime-openrouter.js +1 -1
- package/dist/agent-runtime.js +68 -64
- package/dist/application/kernel.d.ts.map +1 -1
- package/dist/application/schemas.d.ts +2 -0
- package/dist/application/schemas.d.ts.map +1 -1
- package/dist/application/watch-hub.d.ts.map +1 -1
- package/dist/application-diagnostic-journal.js +14 -96
- package/dist/application-opentelemetry.js +6 -92
- package/dist/application-schemas.js +2 -1
- package/dist/application.js +158 -1802
- package/dist/cli.js +13 -11
- package/dist/contract/index.js +7 -4
- package/dist/index-2qzskm8h.js +63 -0
- package/dist/{index-93xp5tgg.js → index-2rwwmr7v.js} +3 -3
- package/dist/{index-kw12fsbc.js → index-3gye9wzb.js} +7 -3
- package/dist/{index-1ckavx4h.js → index-3z73fh2c.js} +1 -49
- package/dist/index-4fpa9dy2.js +51 -0
- package/dist/{index-cwp38wxn.js → index-5mtc969c.js} +2 -2
- package/dist/index-5s3zajp8.js +192 -0
- package/dist/index-6s7n2v50.js +583 -0
- package/dist/{index-qaajjfp6.js → index-758zx2ha.js} +15 -94
- package/dist/{index-qyrqwr4c.js → index-77fekveh.js} +4 -1
- package/dist/{index-k45qqrdh.js → index-7ag81v2f.js} +13 -166
- package/dist/{index-n1g2xm6a.js → index-7gnkny4z.js} +124 -1
- package/dist/index-7zbps32p.js +89 -0
- package/dist/index-85vfqd7m.js +135 -0
- package/dist/{index-4ntp63ps.js → index-9s6z8vgf.js} +18 -142
- package/dist/index-a916km3r.js +45 -0
- package/dist/index-b9aefrqd.js +20 -0
- package/dist/index-dre2ywck.js +48 -0
- package/dist/{index-s5tn4kdv.js → index-dwf1f2ap.js} +3 -3
- package/dist/{index-wwst0td5.js → index-dx9xehwt.js} +1 -1
- package/dist/{index-5r0ak8fr.js → index-dxesg10d.js} +4 -4
- package/dist/{index-aczggrty.js → index-dxjjv399.js} +2 -2
- package/dist/{index-j6mfaw26.js → index-egaabxkz.js} +3 -3
- package/dist/index-evcnmsc3.js +866 -0
- package/dist/{index-efm026pw.js → index-fxz0v7vg.js} +86 -86
- package/dist/{index-56fm73re.js → index-hb5pf3s4.js} +1 -1
- package/dist/{index-n7apa6sy.js → index-k9ay6v6d.js} +24 -275
- package/dist/index-kzfs85xp.js +9 -0
- package/dist/{index-vbf2p6me.js → index-m9kzax52.js} +91 -89
- package/dist/{index-22by16v6.js → index-mgtxfe6b.js} +1 -1
- package/dist/index-p7hgdyhb.js +22 -0
- package/dist/index-pq95qkbf.js +0 -0
- package/dist/index-t0z5p5w6.js +318 -0
- package/dist/{index-31k1ns1s.js → index-vwp69871.js} +13 -11
- package/dist/index-wc4x00bn.js +103 -0
- package/dist/{index-aewy3x5j.js → index-xcetq6j3.js} +10 -8
- package/dist/{index-7z69kyrh.js → index-y01f4223.js} +24 -40
- package/dist/{index-dmfn9m4x.js → index-ywd0y6m1.js} +20 -341
- package/dist/index.js +46 -407
- package/dist/live.js +6 -3
- package/dist/node.js +17 -14
- package/dist/observability/index.js +8 -7
- package/dist/primitives.js +4 -2
- package/dist/react.js +1 -1
- package/dist/remote.js +7 -3
- package/dist/server/index.js +32 -45
- package/dist/telegram.js +1 -1
- package/dist/testing.js +90 -1576
- package/dist/tool-invoker.js +11 -9
- package/dist/tools/async-operation-contract.d.ts +93 -0
- package/dist/tools/async-operation-contract.d.ts.map +1 -0
- package/dist/tools/async-operation.d.ts +2 -47
- package/dist/tools/async-operation.d.ts.map +1 -1
- package/dist/tools/view-file-contract.d.ts +98 -0
- package/dist/tools/view-file-contract.d.ts.map +1 -0
- package/dist/tools/view-file.d.ts +4 -83
- package/dist/tools/view-file.d.ts.map +1 -1
- package/dist/tools-contract.d.ts +29 -0
- package/dist/tools-contract.d.ts.map +1 -0
- package/dist/tools-contract.js +24 -0
- package/dist/tools.d.ts +3 -3
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +61 -140
- package/llms-full.txt +86 -3
- package/package.json +9 -6
- package/dist/index-anyqnqcv.js +0 -79
- package/dist/index-ksp6e2ye.js +0 -24
- package/dist/index-vj3vvpaa.js +0 -307
- package/dist/index-wfq8zerm.js +0 -92
package/dist/server/index.js
CHANGED
|
@@ -13,7 +13,19 @@ import {
|
|
|
13
13
|
sseRoute,
|
|
14
14
|
streamingRoute,
|
|
15
15
|
webSocketLane
|
|
16
|
-
} from "../index-
|
|
16
|
+
} from "../index-k9ay6v6d.js";
|
|
17
|
+
import {
|
|
18
|
+
withDeadline
|
|
19
|
+
} from "../index-b9aefrqd.js";
|
|
20
|
+
import {
|
|
21
|
+
ShutdownOptionsSchema,
|
|
22
|
+
ShutdownResultSchema,
|
|
23
|
+
ShutdownStateSchema,
|
|
24
|
+
ShutdownStatusSchema,
|
|
25
|
+
createServerLifecycle
|
|
26
|
+
} from "../index-3z73fh2c.js";
|
|
27
|
+
import"../index-t0z5p5w6.js";
|
|
28
|
+
import"../index-2qzskm8h.js";
|
|
17
29
|
import {
|
|
18
30
|
composeAuthHooks,
|
|
19
31
|
createAuthHook,
|
|
@@ -26,7 +38,7 @@ import {
|
|
|
26
38
|
signJwt,
|
|
27
39
|
verifyJwt,
|
|
28
40
|
verifyPkce
|
|
29
|
-
} from "../index-
|
|
41
|
+
} from "../index-xcetq6j3.js";
|
|
30
42
|
import {
|
|
31
43
|
DEFAULT_CORS_ALLOW_HEADERS,
|
|
32
44
|
DEFAULT_CORS_EXPOSE_HEADERS,
|
|
@@ -40,27 +52,11 @@ import {
|
|
|
40
52
|
defineMultipartStream,
|
|
41
53
|
implement,
|
|
42
54
|
implementRegistry
|
|
43
|
-
} from "../index-
|
|
55
|
+
} from "../index-m9kzax52.js";
|
|
44
56
|
import {
|
|
45
57
|
isWithinDir,
|
|
46
58
|
realPathWithinDir
|
|
47
59
|
} from "../index-sbdmyz75.js";
|
|
48
|
-
import {
|
|
49
|
-
inputIsQuery,
|
|
50
|
-
parseSSE,
|
|
51
|
-
streamSSE
|
|
52
|
-
} from "../index-56fm73re.js";
|
|
53
|
-
import {
|
|
54
|
-
ShutdownOptionsSchema,
|
|
55
|
-
ShutdownResultSchema,
|
|
56
|
-
ShutdownStateSchema,
|
|
57
|
-
ShutdownStatusSchema,
|
|
58
|
-
createServerLifecycle
|
|
59
|
-
} from "../index-1ckavx4h.js";
|
|
60
|
-
import {
|
|
61
|
-
jsonSchemaFields,
|
|
62
|
-
toJsonSchema
|
|
63
|
-
} from "../index-cby4ar3v.js";
|
|
64
60
|
import {
|
|
65
61
|
extractIp,
|
|
66
62
|
generateTraceId,
|
|
@@ -69,21 +65,28 @@ import {
|
|
|
69
65
|
isPublicIp,
|
|
70
66
|
resolveSocketIp,
|
|
71
67
|
resolveTraceId
|
|
72
|
-
} from "../index-
|
|
68
|
+
} from "../index-dwf1f2ap.js";
|
|
69
|
+
import {
|
|
70
|
+
jsonSchemaFields,
|
|
71
|
+
toJsonSchema
|
|
72
|
+
} from "../index-cby4ar3v.js";
|
|
73
|
+
import {
|
|
74
|
+
inputIsQuery,
|
|
75
|
+
parseSSE,
|
|
76
|
+
streamSSE
|
|
77
|
+
} from "../index-hb5pf3s4.js";
|
|
73
78
|
import {
|
|
74
79
|
errorCode,
|
|
75
80
|
formatZodError,
|
|
76
81
|
normalizeError,
|
|
77
82
|
zodIssues
|
|
78
|
-
} from "../index-
|
|
83
|
+
} from "../index-fxz0v7vg.js";
|
|
79
84
|
import {
|
|
80
85
|
DEFAULT_CONTRACT_STREAM_FRAME_BYTES,
|
|
81
86
|
joinRoutePath,
|
|
82
87
|
parseTrailingWildcard
|
|
83
|
-
} from "../index-
|
|
84
|
-
import
|
|
85
|
-
isRecord
|
|
86
|
-
} from "../index-qyrqwr4c.js";
|
|
88
|
+
} from "../index-y01f4223.js";
|
|
89
|
+
import"../index-6k1937bx.js";
|
|
87
90
|
import {
|
|
88
91
|
AppError,
|
|
89
92
|
STITCH_ERROR_STATUS,
|
|
@@ -96,7 +99,10 @@ import {
|
|
|
96
99
|
rateLimited,
|
|
97
100
|
unauthorized
|
|
98
101
|
} from "../index-0w9abg87.js";
|
|
99
|
-
import"../index-
|
|
102
|
+
import"../index-kzfs85xp.js";
|
|
103
|
+
import {
|
|
104
|
+
isRecord
|
|
105
|
+
} from "../index-77fekveh.js";
|
|
100
106
|
// src/server/bun.ts
|
|
101
107
|
import { chmodSync, statSync, unlinkSync } from "node:fs";
|
|
102
108
|
function reclaimStaleUnixSocket(path) {
|
|
@@ -404,25 +410,6 @@ function createErrorHook(config) {
|
|
|
404
410
|
});
|
|
405
411
|
};
|
|
406
412
|
}
|
|
407
|
-
// src/internal/deadline.ts
|
|
408
|
-
async function withDeadline(value, timeoutMs) {
|
|
409
|
-
if (!(value instanceof Promise))
|
|
410
|
-
return { settled: true, value };
|
|
411
|
-
let timer;
|
|
412
|
-
const expiry = new Promise((resolve) => {
|
|
413
|
-
timer = setTimeout(() => resolve({ settled: false }), timeoutMs);
|
|
414
|
-
});
|
|
415
|
-
try {
|
|
416
|
-
return await Promise.race([
|
|
417
|
-
value.then((settledValue) => ({ settled: true, value: settledValue })),
|
|
418
|
-
expiry
|
|
419
|
-
]);
|
|
420
|
-
} finally {
|
|
421
|
-
if (timer !== undefined)
|
|
422
|
-
clearTimeout(timer);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
413
|
// src/server/event-bus.ts
|
|
427
414
|
function isDecision(value) {
|
|
428
415
|
if (typeof value !== "object" || value === null)
|