stitchkit 0.128.0 → 0.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/dist/agent-executor/claude/transcript.d.ts +2 -2
- package/dist/agent-executor/claude/transcript.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/controls.d.ts +19 -0
- package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/driver.d.ts +114 -4
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +46 -0
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/query-options.d.ts +27 -0
- package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/session.d.ts +6 -5
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/classify.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +45 -0
- package/dist/agent-executor/codex/connect.d.ts.map +1 -0
- package/dist/agent-executor/codex/driver.d.ts +51 -10
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +11 -2
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +49 -4
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-controls.d.ts +155 -0
- package/dist/agent-executor/codex/session-controls.d.ts.map +1 -0
- package/dist/agent-executor/codex/session.d.ts +27 -31
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/unix-socket-target.d.ts +26 -0
- package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -0
- package/dist/agent-executor/codex/unix-socket.d.ts +26 -0
- package/dist/agent-executor/codex/unix-socket.d.ts.map +1 -0
- package/dist/agent-executor/codex/ws-frame.d.ts +15 -0
- package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -0
- package/dist/agent-executor/contract.d.ts +2 -0
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +9 -0
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/hello.d.ts +8 -0
- package/dist/agent-executor/hello.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +5 -5
- package/dist/agent-runtime/branch-provider.d.ts +2 -2
- package/dist/agent-runtime/sql-rows.d.ts +10 -10
- package/dist/agent-runtime/terminal-commit.d.ts +10 -10
- package/dist/entrypoints/agent-executor/acp.js +7 -7
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/claude-sdk.js +532 -101
- package/dist/entrypoints/agent-executor/claude.js +8 -8
- package/dist/entrypoints/agent-executor/codex.d.ts +4 -0
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +1491 -228
- package/dist/entrypoints/agent-executor.js +7 -7
- package/dist/entrypoints/agent-runtime/browser.js +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +8 -8
- package/dist/entrypoints/agent-runtime/openrouter.js +2 -2
- package/dist/entrypoints/agent-runtime/postgres.js +6 -6
- package/dist/entrypoints/agent-runtime/realtime.js +4 -4
- package/dist/entrypoints/agent-runtime/sandbox.js +5 -5
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
- package/dist/entrypoints/agent-runtime/testing.js +5 -5
- package/dist/entrypoints/agent-runtime.js +17 -17
- package/dist/entrypoints/application/directory-inbox.js +2 -2
- package/dist/entrypoints/application/opentelemetry.js +2 -2
- package/dist/entrypoints/application.js +2 -2
- package/dist/entrypoints/cli/publish.js +3 -3
- package/dist/entrypoints/cli.js +8 -8
- package/dist/entrypoints/contract.js +2 -2
- package/dist/entrypoints/files/packaging.js +2 -2
- package/dist/entrypoints/files.js +7 -7
- package/dist/entrypoints/handler.js +4 -4
- package/dist/entrypoints/http.js +5 -5
- package/dist/entrypoints/index.js +7 -7
- package/dist/entrypoints/node.js +5 -5
- package/dist/entrypoints/observability.js +4 -4
- package/dist/entrypoints/primitives.js +2 -2
- package/dist/entrypoints/process.js +5 -5
- package/dist/entrypoints/react.js +1 -1
- package/dist/entrypoints/remote.js +2 -2
- package/dist/entrypoints/server.js +6 -6
- package/dist/entrypoints/service-host/macos.js +5 -5
- package/dist/entrypoints/service-host.js +7 -7
- package/dist/entrypoints/spend.js +1 -1
- package/dist/entrypoints/sync/postgres.js +1 -1
- package/dist/entrypoints/sync.js +2 -2
- package/dist/entrypoints/telegram.js +2 -2
- package/dist/entrypoints/testing.js +5 -5
- package/dist/entrypoints/tools/agent.js +5 -5
- package/dist/entrypoints/tools/connections.js +2 -2
- package/dist/entrypoints/tools/invoker.js +4 -4
- package/dist/entrypoints/tools/mcp.js +5 -5
- package/dist/entrypoints/tools/toolkit.js +8 -8
- package/dist/entrypoints/tools.js +12 -12
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/xlsx.js +1 -1
- package/dist/{index-prf6ayhf.js → index-13wmzpa6.js} +1 -1
- package/dist/{index-n7f89hjw.js → index-17qgm6xe.js} +3 -3
- package/dist/{index-wv8dqy7q.js → index-205456mf.js} +1 -1
- package/dist/{index-pwskmywy.js → index-21cfxc4z.js} +1 -1
- package/dist/{index-d4svrknj.js → index-39c2hj6h.js} +2 -2
- package/dist/{index-sfzfd2m2.js → index-39rmc00v.js} +1 -1
- package/dist/{index-ky3ardqn.js → index-3fym4j8n.js} +1 -1
- package/dist/{index-c5gp2gh6.js → index-5tdc0q43.js} +1 -1
- package/dist/{index-3ypvpkwr.js → index-669374qc.js} +1 -1
- package/dist/{index-m18xm96h.js → index-7jqn3b3g.js} +4 -4
- package/dist/{index-5jyjb4s0.js → index-80acsm27.js} +1 -1
- package/dist/{index-xmr47znh.js → index-827bgv33.js} +1 -1
- package/dist/{index-v1mxss62.js → index-93n6jwy0.js} +3 -3
- package/dist/{index-d54npte7.js → index-9kpxz49v.js} +2 -2
- package/dist/{index-xv9jb84s.js → index-9sfhje6y.js} +3 -3
- package/dist/{index-bh4pmtr9.js → index-afb6z77w.js} +3 -1
- package/dist/{index-9y0afd5f.js → index-apf5g7y9.js} +1 -1
- package/dist/{index-4qvyhn23.js → index-bjmj2q1z.js} +1 -1
- package/dist/{index-g3e57qj6.js → index-dcsxj68j.js} +2 -2
- package/dist/{index-waa6t4zx.js → index-dnzxxf8a.js} +1 -1
- package/dist/{index-gf92hc87.js → index-fgahdc7s.js} +2 -2
- package/dist/{index-kzavdze2.js → index-gr0kxymw.js} +5 -1
- package/dist/{index-e06z0tkb.js → index-gya4hwh3.js} +2 -2
- package/dist/{index-gzny6zsw.js → index-hab790s6.js} +5 -5
- package/dist/{index-bz3gn6cs.js → index-j0ef04jw.js} +2 -2
- package/dist/{index-rhb33thr.js → index-jcge9tx3.js} +1 -1
- package/dist/{index-pn5b11ce.js → index-mkfhpk11.js} +1 -1
- package/dist/{index-1qwrczr1.js → index-mttkdm5a.js} +1 -1
- package/dist/{index-rxnyygke.js → index-n3bm7zqq.js} +1 -1
- package/dist/{index-6wp4dn9d.js → index-p06z7g7w.js} +3 -3
- package/dist/{index-kt6dh1n6.js → index-p16q492v.js} +1 -1
- package/dist/{index-t7wa7k12.js → index-pp97q86a.js} +1 -1
- package/dist/{index-39n02e0q.js → index-psye60qn.js} +1 -1
- package/dist/{index-5ptwb6ka.js → index-pzhqydxb.js} +1 -1
- package/dist/{index-7kfcb576.js → index-qa2jjb65.js} +1 -1
- package/dist/{index-rzeezh79.js → index-qhjmmsm2.js} +2 -2
- package/dist/{index-7grgs8cx.js → index-qpzyahe3.js} +2 -2
- package/dist/{index-jfecdk1e.js → index-r97ppg0g.js} +2 -2
- package/dist/{index-bmaz3jzy.js → index-rjs94dny.js} +1 -1
- package/dist/{index-5v5vg85s.js → index-rxh3qy4x.js} +32 -5
- package/dist/{index-en8e5zsj.js → index-ryxb427v.js} +1 -1
- package/dist/{index-y065r8g5.js → index-sd4e5x5j.js} +7 -7
- package/dist/{index-g56ht6qf.js → index-t3qcac2a.js} +1 -1
- package/dist/{index-13dnv6d0.js → index-wv2amqm4.js} +4 -4
- package/dist/{index-4j8efqr3.js → index-x2fb37t0.js} +2 -2
- package/dist/{index-0gqs8ght.js → index-y71zn1gw.js} +32 -4
- package/dist/{index-wavv538x.js → index-ybdq8kk2.js} +3 -3
- package/dist/{index-4gk6k3zc.js → index-ycr4pk0z.js} +1 -1
- package/dist/{index-0tyt97nk.js → index-yrr3n391.js} +1 -1
- package/dist/{index-v37b2cd6.js → index-z20pdxeb.js} +2 -2
- package/dist/{index-8x22nprv.js → index-z9d74jmb.js} +3 -3
- package/dist/{index-3tnwtz38.js → index-zhshhxew.js} +1 -1
- package/dist/{index-hj1zq7mh.js → index-znd1b57f.js} +3 -3
- package/dist/internal/positive-integer.d.ts +2 -0
- package/dist/internal/positive-integer.d.ts.map +1 -1
- package/dist/internal/unix-socket.d.ts +7 -0
- package/dist/internal/unix-socket.d.ts.map +1 -1
- package/llms/agent-executor-claude-sdk.txt +13 -10
- package/llms/agent-executor-claude.txt +1 -1
- package/llms/agent-executor-codex.txt +9 -3
- package/llms/agent-executor.txt +2 -2
- package/llms/stitchkit.txt +74 -74
- package/llms/{upgrading-0.128.0.txt → upgrading-0.128.0-0.129.0.txt} +31 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +127 -90
- package/llms.txt +6 -6
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
ToolExecutionControlError2,
|
|
22
22
|
isToolExecutionControlError2
|
|
23
|
-
} from "../index-
|
|
23
|
+
} from "../index-n3bm7zqq.js";
|
|
24
24
|
import {
|
|
25
25
|
ALL_TRANSPORTS2,
|
|
26
26
|
TOOL_TRANSPORTS2
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
findNonPortableFormats2,
|
|
33
33
|
flattenToolJsonSchema2,
|
|
34
34
|
findUntypedProperties2
|
|
35
|
-
} from "../index-
|
|
35
|
+
} from "../index-669374qc.js";
|
|
36
36
|
import {
|
|
37
37
|
collectTools2
|
|
38
|
-
} from "../index-
|
|
38
|
+
} from "../index-fgahdc7s.js";
|
|
39
39
|
import"../index-m38ej7e5.js";
|
|
40
40
|
import"../index-werjqesf.js";
|
|
41
41
|
import {
|
|
42
42
|
defineContract2
|
|
43
|
-
} from "../index-
|
|
43
|
+
} from "../index-39c2hj6h.js";
|
|
44
44
|
import {
|
|
45
45
|
AsyncOperationCancelResultSchema2,
|
|
46
46
|
createAsyncOperationSnapshotSchema2
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
describeToolCatalog2,
|
|
66
66
|
buildToolManifest2
|
|
67
|
-
} from "../index-
|
|
67
|
+
} from "../index-5tdc0q43.js";
|
|
68
68
|
import {
|
|
69
69
|
listToolNames2,
|
|
70
70
|
listContractToolNames2
|
|
71
|
-
} from "../index-
|
|
71
|
+
} from "../index-mkfhpk11.js";
|
|
72
72
|
import"../index-wa6h4tz6.js";
|
|
73
73
|
import"../index-jb4m241t.js";
|
|
74
74
|
import {
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
} from "../index-1psbyyhj.js";
|
|
85
85
|
import {
|
|
86
86
|
createToolInvoker2
|
|
87
|
-
} from "../index-
|
|
87
|
+
} from "../index-p06z7g7w.js";
|
|
88
88
|
import {
|
|
89
89
|
WaitTimeoutError,
|
|
90
90
|
runWaitOperation,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "../index-n20tybgk.js";
|
|
93
93
|
import {
|
|
94
94
|
collectToolSurface
|
|
95
|
-
} from "../index-
|
|
95
|
+
} from "../index-x2fb37t0.js";
|
|
96
96
|
import {
|
|
97
97
|
getTraceId2
|
|
98
98
|
} from "../index-x6sp5vpa.js";
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
} from "../index-akfgymyr.js";
|
|
107
107
|
import {
|
|
108
108
|
ManagedFileError2
|
|
109
|
-
} from "../index-
|
|
109
|
+
} from "../index-r97ppg0g.js";
|
|
110
110
|
import {
|
|
111
111
|
fetchGuarded,
|
|
112
112
|
fetchPinnedDocument,
|
|
113
113
|
readCapped
|
|
114
|
-
} from "../index-
|
|
114
|
+
} from "../index-apf5g7y9.js";
|
|
115
115
|
import {
|
|
116
116
|
mediaTypeEssence
|
|
117
117
|
} from "../index-zs8cze4j.js";
|
|
@@ -124,10 +124,10 @@ import {
|
|
|
124
124
|
} from "../index-9pv126eh.js";
|
|
125
125
|
import {
|
|
126
126
|
readBoundedText
|
|
127
|
-
} from "../index-
|
|
127
|
+
} from "../index-827bgv33.js";
|
|
128
128
|
import {
|
|
129
129
|
assertPositiveSafeInteger
|
|
130
|
-
} from "../index-
|
|
130
|
+
} from "../index-gr0kxymw.js";
|
|
131
131
|
import {
|
|
132
132
|
isRecord
|
|
133
133
|
} from "../index-ps3djm8d.js";
|
package/dist/entrypoints/xlsx.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
ToolExecutionControlError2,
|
|
73
73
|
isToolExecutionControlError2
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-n3bm7zqq.js";
|
|
75
75
|
import {
|
|
76
76
|
contractOperationEffects2
|
|
77
77
|
} from "./index-werjqesf.js";
|
|
@@ -97,14 +97,14 @@ import {
|
|
|
97
97
|
} from "./index-r9kq5ark.js";
|
|
98
98
|
import {
|
|
99
99
|
listContractToolNames2
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-mkfhpk11.js";
|
|
101
101
|
import {
|
|
102
102
|
AgentToolError2,
|
|
103
103
|
isAgentToolError2
|
|
104
104
|
} from "./index-1psbyyhj.js";
|
|
105
105
|
import {
|
|
106
106
|
assertPositiveSafeInteger
|
|
107
|
-
} from "./index-
|
|
107
|
+
} from "./index-gr0kxymw.js";
|
|
108
108
|
import {
|
|
109
109
|
isRecord,
|
|
110
110
|
transportResult,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
assertRawBodyEndpoint,
|
|
20
20
|
assertSafelistedBodyEndpoint,
|
|
21
21
|
assertResponseMetaEndpoint
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-ryxb427v.js";
|
|
23
23
|
import {
|
|
24
24
|
assertPositiveSafeInteger
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-gr0kxymw.js";
|
|
26
26
|
import {
|
|
27
27
|
isRecord
|
|
28
28
|
} from "./index-ps3djm8d.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parseToolCallArguments,
|
|
11
11
|
toolResultFromError,
|
|
12
12
|
observed
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-n3bm7zqq.js";
|
|
14
14
|
import {
|
|
15
15
|
toolSurfaceOutputSchema,
|
|
16
16
|
staticInputRounds,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
validateResolvedInputRounds,
|
|
19
19
|
presentationMetadata,
|
|
20
20
|
prepareProjectedMcpTools
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-669374qc.js";
|
|
22
22
|
import {
|
|
23
23
|
collectTools2,
|
|
24
24
|
createToolRunner,
|
|
25
25
|
formatToolError
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-fgahdc7s.js";
|
|
27
27
|
import {
|
|
28
28
|
publishedToolAnnotations
|
|
29
29
|
} from "./index-0x4mnwg5.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./index-tazm4dxf.js";
|
|
52
52
|
import {
|
|
53
53
|
collectToolSurface
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-x2fb37t0.js";
|
|
55
55
|
import {
|
|
56
56
|
runWithRequestContext2,
|
|
57
57
|
getRequestContext2
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
} from "./index-2nwvn7m2.js";
|
|
5
5
|
import {
|
|
6
6
|
writeFileAtomicSync2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-pp97q86a.js";
|
|
8
8
|
import {
|
|
9
9
|
fetchGuarded,
|
|
10
10
|
PrivateAddressRefusal,
|
|
11
11
|
readCapped
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-apf5g7y9.js";
|
|
13
13
|
import {
|
|
14
14
|
serializeCanonicalJson
|
|
15
15
|
} from "./index-fmzg39a8.js";
|
|
16
16
|
import {
|
|
17
17
|
assertPositiveSafeInteger
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gr0kxymw.js";
|
|
19
19
|
import {
|
|
20
20
|
assertTimerMs,
|
|
21
21
|
withSignalDeadline
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./index-2nwvn7m2.js";
|
|
4
4
|
import {
|
|
5
5
|
writeAtomicFileData
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-pp97q86a.js";
|
|
7
7
|
import {
|
|
8
8
|
publishAtomicFile
|
|
9
9
|
} from "./index-2c5w2d1d.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./index-jj9228tt.js";
|
|
16
16
|
import {
|
|
17
17
|
assertPositiveSafeInteger
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gr0kxymw.js";
|
|
19
19
|
|
|
20
20
|
// src/application/file-state-store.ts
|
|
21
21
|
import { mkdir, open, unlink } from "node:fs/promises";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RegularFileError2,
|
|
3
3
|
readRegularFile2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-21cfxc4z.js";
|
|
5
5
|
import {
|
|
6
6
|
runNativeCommand2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-pzhqydxb.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pp97q86a.js";
|
|
11
11
|
import {
|
|
12
12
|
errnoOf
|
|
13
13
|
} from "./index-jj9228tt.js";
|
|
@@ -196,7 +196,9 @@ var ExecutorReconcileSchema2 = z3.enum(["client-id", "none"]);
|
|
|
196
196
|
var PlanWindowSchema2 = z3.strictObject({
|
|
197
197
|
name: Name,
|
|
198
198
|
usedPercent: z3.number().min(0).max(100),
|
|
199
|
-
resetsAt: z3.iso.datetime({ offset: true }).optional()
|
|
199
|
+
resetsAt: z3.iso.datetime({ offset: true }).optional(),
|
|
200
|
+
windowDurationMins: z3.int().positive().optional(),
|
|
201
|
+
label: Name.optional()
|
|
200
202
|
});
|
|
201
203
|
var PlanLimitsSchema2 = z3.strictObject({
|
|
202
204
|
answer: z3.enum(["known", "no-plan-limit", "unpublished"]),
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
AgentSandboxRestrictionSchema2,
|
|
22
22
|
AgentSandboxGradeSchema2,
|
|
23
23
|
AGENT_CODING_TOOL_NAMES
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-ybdq8kk2.js";
|
|
25
25
|
import {
|
|
26
26
|
AgentRuntimeHeadSchema2,
|
|
27
27
|
AgentStoredRunSchema2,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
} from "./index-snef22zr.js";
|
|
71
71
|
import {
|
|
72
72
|
assertPositiveSafeInteger
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-gr0kxymw.js";
|
|
74
74
|
|
|
75
75
|
// src/agent-runtime/branch-contract.ts
|
|
76
76
|
import { z as z2 } from "zod";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
toolErrorFromResult,
|
|
7
7
|
executeToolMethod
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-n3bm7zqq.js";
|
|
9
9
|
import {
|
|
10
10
|
assertToolExtensionCompatible,
|
|
11
11
|
projectToolSurface
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-669374qc.js";
|
|
13
13
|
import {
|
|
14
14
|
isRetryableStatus2
|
|
15
15
|
} from "./index-9pv126eh.js";
|
|
@@ -5,6 +5,10 @@ function assertSafeIntegerFrom(least, rule, name, value, errorType, options) {
|
|
|
5
5
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < least)
|
|
6
6
|
throw new errorType(`${name} ${rule}, received ${value}`);
|
|
7
7
|
}
|
|
8
|
+
function isPositiveSafeInteger(value) {
|
|
9
|
+
const least = 1;
|
|
10
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= least;
|
|
11
|
+
}
|
|
8
12
|
function assertPositiveSafeInteger(name, value, errorType = TypeError, options = {}) {
|
|
9
13
|
assertSafeIntegerFrom(1, "must be a positive safe integer", name, value, errorType, options);
|
|
10
14
|
}
|
|
@@ -12,4 +16,4 @@ function assertNonNegativeSafeInteger(name, value, errorType = TypeError, option
|
|
|
12
16
|
assertSafeIntegerFrom(0, "must be a non-negative safe integer", name, value, errorType, options);
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
export { assertPositiveSafeInteger, assertNonNegativeSafeInteger };
|
|
19
|
+
export { isPositiveSafeInteger, assertPositiveSafeInteger, assertNonNegativeSafeInteger };
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
isAbortLikeError,
|
|
20
20
|
classifyUnixTransportRetry,
|
|
21
21
|
parseApiErrorBody
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-jcge9tx3.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_STREAM_LINE_BYTES,
|
|
25
25
|
createBoundedLineDecoder,
|
|
26
26
|
readBoundedUtf8Lines
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-39rmc00v.js";
|
|
28
28
|
import {
|
|
29
29
|
inputIsQuery
|
|
30
30
|
} from "./index-xhzq2qvj.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./index-jj9228tt.js";
|
|
18
18
|
import {
|
|
19
19
|
assertNonNegativeSafeInteger
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-gr0kxymw.js";
|
|
21
21
|
import {
|
|
22
22
|
randomHex
|
|
23
23
|
} from "./index-c9d05kvt.js";
|
|
@@ -334,7 +334,7 @@ function assertExpectedOwnerUid(uid, caller) {
|
|
|
334
334
|
throw new TypeError(`[stitchkit] ${caller}: expectedOwnerUid must be a 32-bit unsigned integer (0..${MAX_POSIX_UID}), got ${String(uid)}`);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function unixSocketDirectoryViolation(dir, stats, caller, expectedUid) {
|
|
338
338
|
if (stats.isSymbolicLink()) {
|
|
339
339
|
return `[stitchkit] ${caller}: unix socket directory "${dir}" must not be a symlink`;
|
|
340
340
|
}
|
|
@@ -357,7 +357,7 @@ function assertPrivateUnixSocketDirectory(socketPath, caller) {
|
|
|
357
357
|
if (stats === undefined) {
|
|
358
358
|
throw new Error(`[stitchkit] ${caller}: unix socket directory "${dir}" does not exist`);
|
|
359
359
|
}
|
|
360
|
-
const violation =
|
|
360
|
+
const violation = unixSocketDirectoryViolation(dir, stats, caller);
|
|
361
361
|
if (violation !== undefined)
|
|
362
362
|
throw new Error(violation);
|
|
363
363
|
}
|
|
@@ -383,7 +383,7 @@ function assertUnixSocketClientTarget(socketPath, caller = "createUnixClientTran
|
|
|
383
383
|
const dirStats = statForClientTarget(dir, "directory", caller, socketPath);
|
|
384
384
|
if (dirStats === undefined)
|
|
385
385
|
return;
|
|
386
|
-
const dirViolation =
|
|
386
|
+
const dirViolation = unixSocketDirectoryViolation(dir, dirStats, caller, requiredUid);
|
|
387
387
|
if (dirViolation !== undefined)
|
|
388
388
|
refuse(dirViolation);
|
|
389
389
|
const socketStats = statForClientTarget(socketPath, "path", caller, socketPath);
|
|
@@ -484,4 +484,4 @@ function bindUnixSocket2(socket, bind) {
|
|
|
484
484
|
return bound;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
export { withUnixSocketLockSync, assertUnixSocketMode, unlinkUnixSocketIfMatching, unlinkUnixSocketIfOwned, assertUnixSocketPathLength, assertExpectedOwnerUid, assertPrivateUnixSocketDirectory, assertUnixSocketClientTarget, publishStagedUnixSocket, bindUnixSocket2 };
|
|
487
|
+
export { withUnixSocketLockSync, assertUnixSocketMode, unlinkUnixSocketIfMatching, unlinkUnixSocketIfOwned, assertUnixSocketPathLength, assertExpectedOwnerUid, unixSocketDirectoryViolation, assertPrivateUnixSocketDirectory, assertUnixSocketClientTarget, publishStagedUnixSocket, bindUnixSocket2 };
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
decodeJsonText,
|
|
8
8
|
parseJsonText,
|
|
9
9
|
validateJsonValue
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-21cfxc4z.js";
|
|
11
11
|
import {
|
|
12
12
|
messageOf
|
|
13
13
|
} from "./index-r9kq5ark.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./index-jj9228tt.js";
|
|
20
20
|
import {
|
|
21
21
|
assertPositiveSafeInteger
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-gr0kxymw.js";
|
|
23
23
|
|
|
24
24
|
// src/files/json-file-reading.ts
|
|
25
25
|
var VALUE_REFUSALS = new Set([
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveToolAccess,
|
|
3
3
|
toolErrorFromResult
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-n3bm7zqq.js";
|
|
5
5
|
import {
|
|
6
6
|
assertUniqueToolName
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-669374qc.js";
|
|
8
8
|
import {
|
|
9
9
|
collectTools2,
|
|
10
10
|
createToolRunner
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-fgahdc7s.js";
|
|
12
12
|
import {
|
|
13
13
|
AppError2
|
|
14
14
|
} from "./index-9pv126eh.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
nextEventSeqByMaximum,
|
|
8
8
|
agentSqlTables,
|
|
9
9
|
createAgentRuntimeStore2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-dcsxj68j.js";
|
|
11
11
|
import {
|
|
12
12
|
canonicalAgentJson2
|
|
13
13
|
} from "./index-9xr44d2g.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
scanSqlRecoverable,
|
|
23
23
|
listSqlConversations,
|
|
24
24
|
pageSqlConversationMessages
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-zhshhxew.js";
|
|
26
26
|
import {
|
|
27
27
|
rollbackSqliteFailure
|
|
28
28
|
} from "./index-ttexdtjj.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./index-0p0s5hrj.js";
|
|
5
5
|
import {
|
|
6
6
|
createAgentRuntimeEventSink2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-205456mf.js";
|
|
8
8
|
import {
|
|
9
9
|
assertPositiveSafeInteger
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gr0kxymw.js";
|
|
11
11
|
|
|
12
12
|
// src/agent-runtime/harness-control.ts
|
|
13
13
|
function reportAgentControlError(config, error, context) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
writeAllBytes,
|
|
10
10
|
writeAtomicFileStaged
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-pp97q86a.js";
|
|
12
12
|
import {
|
|
13
13
|
AtomicFilePublicationError2
|
|
14
14
|
} from "./index-2c5w2d1d.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./index-jj9228tt.js";
|
|
22
22
|
import {
|
|
23
23
|
assertPositiveSafeInteger
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-gr0kxymw.js";
|
|
25
25
|
import {
|
|
26
26
|
assertTimerMs
|
|
27
27
|
} from "./index-agy5fqgf.js";
|