stitchkit 0.111.2 → 0.111.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/application/diagnostic-journal-contract.d.ts +1 -1
  3. package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
  4. package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
  5. package/dist/entrypoints/agent-runtime/harness.js +6 -6
  6. package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
  7. package/dist/entrypoints/agent-runtime/sqlite/bun.js +5 -5
  8. package/dist/entrypoints/agent-runtime/sqlite/node.js +5 -5
  9. package/dist/entrypoints/agent-runtime/testing.js +5 -5
  10. package/dist/entrypoints/agent-runtime.js +12 -12
  11. package/dist/entrypoints/application/diagnostic-journal.js +1 -1
  12. package/dist/entrypoints/application/directory-inbox.js +3 -3
  13. package/dist/entrypoints/cli/publish.js +2 -2
  14. package/dist/entrypoints/cli.js +8 -8
  15. package/dist/entrypoints/files.js +2 -2
  16. package/dist/entrypoints/server.js +3 -3
  17. package/dist/entrypoints/telegram.js +1 -1
  18. package/dist/entrypoints/testing.js +1 -1
  19. package/dist/entrypoints/tools/connections.js +6 -4
  20. package/dist/entrypoints/tools/contract.js +2 -2
  21. package/dist/entrypoints/tools/invoker.js +6 -6
  22. package/dist/entrypoints/tools/mcp.js +8 -8
  23. package/dist/entrypoints/tools.js +11 -11
  24. package/dist/{index-mha6b4vk.js → index-02h0dfpr.js} +12 -5
  25. package/dist/{index-0z3kfphz.js → index-38gvr73z.js} +1 -1
  26. package/dist/{index-8jv0trhg.js → index-5as18gs2.js} +1 -1
  27. package/dist/{index-t2bsd0hm.js → index-5v5a9k2n.js} +92 -43
  28. package/dist/{index-c5374vpt.js → index-651xsm48.js} +4 -4
  29. package/dist/{index-w9mqgnz9.js → index-6b3pcq5z.js} +1 -1
  30. package/dist/{index-7c046kxr.js → index-c7h371gr.js} +4 -4
  31. package/dist/{index-mnk5vgdr.js → index-d4cnhfdn.js} +1 -1
  32. package/dist/{index-t5sjh517.js → index-epmnrnth.js} +18 -1
  33. package/dist/{index-636mggad.js → index-ff3agzaf.js} +1 -1
  34. package/dist/{index-7c957abz.js → index-fh2ht88b.js} +1 -1
  35. package/dist/{index-q6crhe1n.js → index-h7accrrv.js} +19 -6
  36. package/dist/{index-0d8m0kee.js → index-hvg9hctd.js} +3 -3
  37. package/dist/{index-nx49x0tw.js → index-hy802jnr.js} +1 -1
  38. package/dist/{index-dd1z5kxb.js → index-jfk93gja.js} +3 -3
  39. package/dist/{index-v2eyj2ws.js → index-jprxv2an.js} +6 -6
  40. package/dist/{index-cykxpxz5.js → index-jy9wq8tp.js} +1 -1
  41. package/dist/{index-ey15wx6j.js → index-n0adphfg.js} +1 -1
  42. package/dist/{index-ghwntn9n.js → index-vqdjym30.js} +2 -2
  43. package/dist/internal/exclusive-lock-owner.d.ts +53 -0
  44. package/dist/internal/exclusive-lock-owner.d.ts.map +1 -0
  45. package/dist/internal/exclusive-lock.d.ts +1 -28
  46. package/dist/internal/exclusive-lock.d.ts.map +1 -1
  47. package/dist/internal/open-descriptors.d.ts +18 -0
  48. package/dist/internal/open-descriptors.d.ts.map +1 -0
  49. package/dist/internal/with-exclusive-lock.d.ts +2 -12
  50. package/dist/internal/with-exclusive-lock.d.ts.map +1 -1
  51. package/dist/tools/connections/runtime.d.ts +1 -1
  52. package/dist/tools/connections/runtime.d.ts.map +1 -1
  53. package/dist/tools/execute-args.d.ts.map +1 -1
  54. package/dist/tools/schema/flatten-join.d.ts.map +1 -1
  55. package/dist/tools/schema/json-schema-origin.d.ts +17 -0
  56. package/dist/tools/schema/json-schema-origin.d.ts.map +1 -1
  57. package/llms/cli.2.txt +10 -0
  58. package/llms/files.txt +1 -1
  59. package/llms/process.txt +10 -0
  60. package/llms/tools-connections.txt +1 -1
  61. package/llms/tools.txt +8 -3
  62. package/llms-full.txt +30 -5
  63. package/llms.txt +5 -5
  64. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,17 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.111.3] - 2026-10-20
19
+
20
+ ### Fixed
21
+
22
+ - `stitchkit/files` — **a lock an earlier image of the same process left is taken over at once.** A process image replaced in place (`bun --watch` restarts with `execve`) keeps its PID and kernel start time, so the lock the previous image held matched the new one in every field and stayed held until the PID changed (`liveness alive, identity matched`). A record that names this very process is now held only while a descriptor of this process is open on the lock; without one the owner is gone (`identity descriptor-closed`) and the lock is reclaimed under the usual guard. A hold taken by a worker thread or another copy of the package in the same process is never displaced. → ADR 0265
23
+ **Affects:** `stitchkit/files` withExclusiveLock; `stitchkit/server` createFileStateStore; `stitchkit/application/diagnostic-journal` createDiagnosticJournal; `stitchkit/telegram` runTelegramBroadcast
24
+ - `stitchkit/tools/connections` — **a value inside a union of a discovered tool's schema is judged by the server, not by the client.** A server with `flattenUnionInput` advertises a nested discriminated union as one object whose shared field is an unlabelled `anyOf`, so a CLI or agent call through `defineMcpClientConnection` refused a wrong block with `No union branch matched — branch 1 … and 6 more branches` while the server would have named the field. A refusal that is only a union's now sends the value and shows the server's answer (`blocks.0.data.artifactId: expected string`); every other local refusal still stops the call, without the union lines. → ADR 0266
25
+ **Affects:** `stitchkit/tools/connections` defineMcpClientConnection, defineOpenApiConnection, mountConnections
26
+ - `stitchkit/tools` — **with `flattenUnionInput`, each `anyOf` alternative of a field the variants share says which discriminator values select it.** The flat object advertised the discriminator as an enum and the field as alternatives in canonical order, so a model saw `type: text | image | quiz` beside three `data` shapes with no way to pair them. Each alternative now carries `description: "When type = image."` (`When type = photo | video.` for a shape two values share); the schema stays without `oneOf`. → ADR 0267
27
+ **Affects:** `stitchkit/tools` behaviour
28
+
18
29
  ## [0.111.2] - 2026-10-17
19
30
 
20
31
  ### Added
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { ExclusiveLockDiagnosis, ExclusiveLockOwner } from '../internal/exclusive-lock.js';
2
+ import type { ExclusiveLockDiagnosis, ExclusiveLockOwner } from '../internal/exclusive-lock-owner.js';
3
3
  export { type DiagnosticJournalFrame, DiagnosticJournalFrameSchema, } from './diagnostic-journal-frame.js';
4
4
  export declare const DiagnosticJournalLimitsSchema: z.ZodReadonly<z.ZodObject<{
5
5
  maxEventBytes: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic-journal-contract.d.ts","sourceRoot":"","sources":["../../src/application/diagnostic-journal-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAI7F,OAAO,EACL,KAAK,sBAAsB,EAC3B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAKpC,eAAO,MAAM,6BAA6B;;;;;;mBAS7B,CAAC;AACd,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,iCAAiC;;;EAAsC,CAAC;AACrF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;EAA4B,CAAC;AAC5E,wEAAwE;AACxE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,2CAA2C;;;EAAiC,CAAC;AAC1F,iFAAiF;AACjF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,2CAA2C,CACnD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;EAAmD,CAAC;AAC7F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,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W,8BAA8B;IAC7C,QAAQ,CAAC,WAAW,EAAE,cAAc,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;IAC5E,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IACnD,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;CACxD;AAED,yFAAyF;AACzF,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,GACb,8BAA8B,GAAG,SAAS,CAM5C"}
@@ -1,17 +1,17 @@
1
1
  import"../../index-ct75c3at.js";
2
- import"../../index-q6crhe1n.js";
2
+ import"../../index-h7accrrv.js";
3
3
  import"../../index-fynr93w4.js";
4
4
  import {
5
5
  AgentCodingToolLimitsSchema2,
6
6
  AgentCodingToolAuthorizationSchema2,
7
7
  AgentCodingToolPathAuthorizationSchema2,
8
8
  createAgentCodingTools2
9
- } from "../../index-ey15wx6j.js";
9
+ } from "../../index-n0adphfg.js";
10
10
  import"../../index-2kbysk9s.js";
11
11
  import"../../index-84bf5spd.js";
12
12
  import"../../index-7r4knwf8.js";
13
13
  import"../../index-zrtrjkbf.js";
14
- import"../../index-636mggad.js";
14
+ import"../../index-ff3agzaf.js";
15
15
  export {
16
16
  AgentCodingToolAuthorizationSchema2 as AgentCodingToolAuthorizationSchema,
17
17
  AgentCodingToolLimitsSchema2 as AgentCodingToolLimitsSchema,
@@ -5,15 +5,15 @@ import"../../index-8kzct1d6.js";
5
5
  import {
6
6
  composeAgentPrompt2,
7
7
  createAgentRuntime2
8
- } from "../../index-8jv0trhg.js";
8
+ } from "../../index-5as18gs2.js";
9
9
  import"../../index-qaet40b2.js";
10
10
  import"../../index-mnkk1ffz.js";
11
11
  import"../../index-fynr93w4.js";
12
- import"../../index-t5sjh517.js";
13
- import"../../index-cykxpxz5.js";
12
+ import"../../index-epmnrnth.js";
13
+ import"../../index-jy9wq8tp.js";
14
14
  import"../../index-ct75c3at.js";
15
- import"../../index-q6crhe1n.js";
16
- import"../../index-mha6b4vk.js";
15
+ import"../../index-h7accrrv.js";
16
+ import"../../index-02h0dfpr.js";
17
17
  import"../../index-snef22zr.js";
18
18
  import"../../index-56yx8dxp.js";
19
19
  import"../../index-jna0ejsa.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "../../index-zrtrjkbf.js";
30
30
  import {
31
31
  defineRuntimeTool2
32
- } from "../../index-636mggad.js";
32
+ } from "../../index-ff3agzaf.js";
33
33
 
34
34
  // src/agent-runtime/harness-contract.ts
35
35
  import { z } from "zod";
@@ -3,9 +3,9 @@ import {
3
3
  missingSandboxRestrictions2,
4
4
  codingRefusal,
5
5
  createAgentCodingTools2
6
- } from "../../index-ey15wx6j.js";
6
+ } from "../../index-n0adphfg.js";
7
7
  import"../../index-ct75c3at.js";
8
- import"../../index-q6crhe1n.js";
8
+ import"../../index-h7accrrv.js";
9
9
  import"../../index-fynr93w4.js";
10
10
  import"../../index-2kbysk9s.js";
11
11
  import {
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  MAX_TIMER_MS
27
27
  } from "../../index-eemvahkc.js";
28
- import"../../index-636mggad.js";
28
+ import"../../index-ff3agzaf.js";
29
29
 
30
30
  // src/agent-runtime/sandbox-bubblewrap.ts
31
31
  import { mkdir as mkdir2, mkdtemp, realpath, rm as rm2 } from "node:fs/promises";
@@ -1,22 +1,22 @@
1
1
  import"../../../index-jna0ejsa.js";
2
- import"../../../index-0z3kfphz.js";
2
+ import"../../../index-38gvr73z.js";
3
3
  import"../../../index-8kzct1d6.js";
4
4
  import {
5
5
  initializeAgentRuntimeSqlite2,
6
6
  createSqliteAgentRuntimeStore2
7
- } from "../../../index-7c957abz.js";
7
+ } from "../../../index-fh2ht88b.js";
8
8
  import"../../../index-kqnd6a85.js";
9
9
  import"../../../index-5w6t91ze.js";
10
- import"../../../index-ey15wx6j.js";
10
+ import"../../../index-n0adphfg.js";
11
11
  import"../../../index-ct75c3at.js";
12
- import"../../../index-q6crhe1n.js";
12
+ import"../../../index-h7accrrv.js";
13
13
  import"../../../index-fynr93w4.js";
14
14
  import"../../../index-2kbysk9s.js";
15
15
  import"../../../index-84bf5spd.js";
16
16
  import"../../../index-7r4knwf8.js";
17
17
  import"../../../index-snef22zr.js";
18
18
  import"../../../index-zrtrjkbf.js";
19
- import"../../../index-636mggad.js";
19
+ import"../../../index-ff3agzaf.js";
20
20
 
21
21
  // src/agent-runtime/sqlite-bun.ts
22
22
  import { Database } from "bun:sqlite";
@@ -1,22 +1,22 @@
1
1
  import"../../../index-jna0ejsa.js";
2
- import"../../../index-0z3kfphz.js";
2
+ import"../../../index-38gvr73z.js";
3
3
  import"../../../index-8kzct1d6.js";
4
4
  import {
5
5
  initializeAgentRuntimeSqlite2,
6
6
  createSqliteAgentRuntimeStore2
7
- } from "../../../index-7c957abz.js";
7
+ } from "../../../index-fh2ht88b.js";
8
8
  import"../../../index-kqnd6a85.js";
9
9
  import"../../../index-5w6t91ze.js";
10
- import"../../../index-ey15wx6j.js";
10
+ import"../../../index-n0adphfg.js";
11
11
  import"../../../index-ct75c3at.js";
12
- import"../../../index-q6crhe1n.js";
12
+ import"../../../index-h7accrrv.js";
13
13
  import"../../../index-fynr93w4.js";
14
14
  import"../../../index-2kbysk9s.js";
15
15
  import"../../../index-84bf5spd.js";
16
16
  import"../../../index-7r4knwf8.js";
17
17
  import"../../../index-snef22zr.js";
18
18
  import"../../../index-zrtrjkbf.js";
19
- import"../../../index-636mggad.js";
19
+ import"../../../index-ff3agzaf.js";
20
20
 
21
21
  // src/agent-runtime/sqlite-node.ts
22
22
  import { DatabaseSync } from "node:sqlite";
@@ -10,10 +10,10 @@ import {
10
10
  advanceToolChronology
11
11
  } from "../../index-jna0ejsa.js";
12
12
  import"../../index-5w6t91ze.js";
13
- import"../../index-ey15wx6j.js";
14
- import"../../index-0z3kfphz.js";
13
+ import"../../index-n0adphfg.js";
14
+ import"../../index-38gvr73z.js";
15
15
  import"../../index-ct75c3at.js";
16
- import"../../index-q6crhe1n.js";
16
+ import"../../index-h7accrrv.js";
17
17
  import"../../index-fynr93w4.js";
18
18
  import"../../index-2kbysk9s.js";
19
19
  import"../../index-84bf5spd.js";
@@ -21,12 +21,12 @@ import"../../index-7r4knwf8.js";
21
21
  import"../../index-snef22zr.js";
22
22
  import {
23
23
  createMemoryAgentRuntimeStore2
24
- } from "../../index-mnk5vgdr.js";
24
+ } from "../../index-d4cnhfdn.js";
25
25
  import"../../index-zrtrjkbf.js";
26
26
  import {
27
27
  assertPositiveSafeInteger
28
28
  } from "../../index-0s4xebbg.js";
29
- import"../../index-636mggad.js";
29
+ import"../../index-ff3agzaf.js";
30
30
 
31
31
  // src/agent-runtime/fault-bench.ts
32
32
  import { createServer } from "node:http";
@@ -5,7 +5,7 @@ import {
5
5
  missingSandboxRestrictions2,
6
6
  recordAgentSandboxProbe2,
7
7
  refuseUnknownSpillReference
8
- } from "../index-ey15wx6j.js";
8
+ } from "../index-n0adphfg.js";
9
9
  import {
10
10
  AgentRecordIdSchema2,
11
11
  AgentRecordVersionSchema2,
@@ -58,7 +58,7 @@ import {
58
58
  AgentHistoryMutationSchema2,
59
59
  ACTIVE_AGENT_RUN_STATES2,
60
60
  createAgentRuntimeStore2
61
- } from "../index-0z3kfphz.js";
61
+ } from "../index-38gvr73z.js";
62
62
  import {
63
63
  AgentStoreEventKindSchema2,
64
64
  AgentStoreEventEnvelopeSchema2,
@@ -123,23 +123,23 @@ import {
123
123
  agentGoalStateSlot2,
124
124
  agentTodoStateSlot2,
125
125
  createAgentRuntime2
126
- } from "../index-8jv0trhg.js";
126
+ } from "../index-5as18gs2.js";
127
127
  import {
128
128
  AgentConversationSummarySchema2,
129
129
  AgentConversationPageSchema2,
130
130
  AgentConversationMessagePageSchema2
131
131
  } from "../index-kqnd6a85.js";
132
132
  import"../index-fynr93w4.js";
133
- import"../index-t5sjh517.js";
134
- import"../index-cykxpxz5.js";
133
+ import"../index-epmnrnth.js";
134
+ import"../index-jy9wq8tp.js";
135
135
  import"../index-ct75c3at.js";
136
- import"../index-q6crhe1n.js";
137
- import"../index-mha6b4vk.js";
138
- import"../index-ghwntn9n.js";
136
+ import"../index-h7accrrv.js";
137
+ import"../index-02h0dfpr.js";
138
+ import"../index-vqdjym30.js";
139
139
  import {
140
140
  mountAgent2,
141
141
  buildToolManifest2
142
- } from "../index-7c046kxr.js";
142
+ } from "../index-c7h371gr.js";
143
143
  import {
144
144
  createBoundedSinkManager
145
145
  } from "../index-qaet40b2.js";
@@ -191,7 +191,7 @@ import"../index-84bf5spd.js";
191
191
  import"../index-7r4knwf8.js";
192
192
  import {
193
193
  createMemoryAgentRuntimeStore2
194
- } from "../index-mnk5vgdr.js";
194
+ } from "../index-d4cnhfdn.js";
195
195
  import {
196
196
  createAgentRuntimeEventSink2
197
197
  } from "../index-616xh7f2.js";
@@ -202,11 +202,11 @@ import {
202
202
  import {
203
203
  assertPositiveSafeInteger
204
204
  } from "../index-0s4xebbg.js";
205
- import"../index-0d8m0kee.js";
205
+ import"../index-hvg9hctd.js";
206
206
  import {
207
207
  defineRuntimeTool2,
208
208
  executableAgentRuntimeTools
209
- } from "../index-636mggad.js";
209
+ } from "../index-ff3agzaf.js";
210
210
  import {
211
211
  createTraceContext2,
212
212
  childSpan2
@@ -21,7 +21,7 @@ import"../../index-2kbysk9s.js";
21
21
  import"../../index-bh2ht9y5.js";
22
22
  import {
23
23
  attemptExclusiveLock
24
- } from "../../index-t2bsd0hm.js";
24
+ } from "../../index-5v5a9k2n.js";
25
25
  import {
26
26
  BoundedFileReadError,
27
27
  openRegularFile
@@ -15,14 +15,14 @@ import {
15
15
  } from "../../index-g6a3na27.js";
16
16
  import"../../index-2kbysk9s.js";
17
17
  import"../../index-bh2ht9y5.js";
18
- import"../../index-t2bsd0hm.js";
18
+ import"../../index-5v5a9k2n.js";
19
19
  import {
20
20
  defineManagedResource2
21
21
  } from "../../index-50ejfz75.js";
22
22
  import {
23
23
  createFileStateStore2
24
- } from "../../index-nx49x0tw.js";
25
- import"../../index-w9mqgnz9.js";
24
+ } from "../../index-hy802jnr.js";
25
+ import"../../index-6b3pcq5z.js";
26
26
  import {
27
27
  BoundedFileReadError,
28
28
  openRegularFile,
@@ -1,7 +1,7 @@
1
1
  import"../../index-xqhede6x.js";
2
2
  import"../../index-2kbysk9s.js";
3
3
  import"../../index-bh2ht9y5.js";
4
- import"../../index-t2bsd0hm.js";
4
+ import"../../index-5v5a9k2n.js";
5
5
  import {
6
6
  signCliManifest2,
7
7
  verifyCliManifest2,
@@ -18,7 +18,7 @@ import {
18
18
  } from "../../index-erv5shjq.js";
19
19
  import {
20
20
  withExclusiveLock2
21
- } from "../../index-w9mqgnz9.js";
21
+ } from "../../index-6b3pcq5z.js";
22
22
  import {
23
23
  ManagedFileError2,
24
24
  createManagedFileBoundary2
@@ -1,7 +1,7 @@
1
- import"../index-t5sjh517.js";
1
+ import"../index-epmnrnth.js";
2
2
  import {
3
3
  coerceJsonArgs2
4
- } from "../index-cykxpxz5.js";
4
+ } from "../index-jy9wq8tp.js";
5
5
  import {
6
6
  defineCliCommand2,
7
7
  DEFAULT_EXIT_CODES2,
@@ -16,12 +16,12 @@ import {
16
16
  renderCliView2,
17
17
  pollUntilDone2,
18
18
  createCli2
19
- } from "../index-v2eyj2ws.js";
19
+ } from "../index-jprxv2an.js";
20
20
  import"../index-fynr93w4.js";
21
21
  import"../index-ct75c3at.js";
22
- import"../index-q6crhe1n.js";
23
- import"../index-mha6b4vk.js";
24
- import"../index-ghwntn9n.js";
22
+ import"../index-h7accrrv.js";
23
+ import"../index-02h0dfpr.js";
24
+ import"../index-vqdjym30.js";
25
25
  import {
26
26
  CliBuildSignatureSchema2,
27
27
  cliManifestSigningPayload2,
@@ -44,8 +44,8 @@ import {
44
44
  import {
45
45
  writeFileAtomicSync2
46
46
  } from "../index-07dcf2yn.js";
47
- import"../index-0d8m0kee.js";
48
- import"../index-636mggad.js";
47
+ import"../index-hvg9hctd.js";
48
+ import"../index-ff3agzaf.js";
49
49
  import {
50
50
  safeJsonParse
51
51
  } from "../index-zsarb5xp.js";
@@ -4,11 +4,11 @@ import {
4
4
  } from "../index-xqhede6x.js";
5
5
  import"../index-2kbysk9s.js";
6
6
  import"../index-bh2ht9y5.js";
7
- import"../index-t2bsd0hm.js";
7
+ import"../index-5v5a9k2n.js";
8
8
  import {
9
9
  ExclusiveLockError2,
10
10
  withExclusiveLock2
11
- } from "../index-w9mqgnz9.js";
11
+ } from "../index-6b3pcq5z.js";
12
12
  import {
13
13
  ManagedFileError2,
14
14
  createManagedFileBoundary2
@@ -1,6 +1,6 @@
1
1
  import"../index-2kbysk9s.js";
2
2
  import"../index-bh2ht9y5.js";
3
- import"../index-t2bsd0hm.js";
3
+ import"../index-5v5a9k2n.js";
4
4
  import {
5
5
  errorCode2,
6
6
  normalizeError2
@@ -52,11 +52,11 @@ import {
52
52
  } from "../index-2qymcsq2.js";
53
53
  import {
54
54
  createFileStateStore2
55
- } from "../index-nx49x0tw.js";
55
+ } from "../index-hy802jnr.js";
56
56
  import {
57
57
  bindRealtimeServer2
58
58
  } from "../index-xmgjtkvr.js";
59
- import"../index-w9mqgnz9.js";
59
+ import"../index-6b3pcq5z.js";
60
60
  import {
61
61
  withDeadline
62
62
  } from "../index-9tqbxv5p.js";
@@ -5,7 +5,7 @@ import"../index-2kbysk9s.js";
5
5
  import"../index-bh2ht9y5.js";
6
6
  import {
7
7
  attemptExclusiveLock
8
- } from "../index-t2bsd0hm.js";
8
+ } from "../index-5v5a9k2n.js";
9
9
  import {
10
10
  TelegramNotDispatchedError2,
11
11
  isTelegramNotDispatchedError,
@@ -30,7 +30,7 @@ import {
30
30
  projectToolSurface,
31
31
  mcpProjectionCandidate,
32
32
  prepareProjectedMcpTools
33
- } from "../index-q6crhe1n.js";
33
+ } from "../index-h7accrrv.js";
34
34
  import"../index-fynr93w4.js";
35
35
  import {
36
36
  createClient2,
@@ -2,11 +2,12 @@ import"../../index-ct75c3at.js";
2
2
  import {
3
3
  declaresDraft07,
4
4
  withDefsDialect
5
- } from "../../index-q6crhe1n.js";
5
+ } from "../../index-h7accrrv.js";
6
6
  import"../../index-fynr93w4.js";
7
7
  import {
8
- markJsonSchemaObjectGuards
9
- } from "../../index-t5sjh517.js";
8
+ markJsonSchemaObjectGuards,
9
+ markRemoteUnionVerdict
10
+ } from "../../index-epmnrnth.js";
10
11
  import {
11
12
  withSignalDeadline
12
13
  } from "../../index-9tqbxv5p.js";
@@ -25,7 +26,7 @@ import {
25
26
  } from "../../index-0s4xebbg.js";
26
27
  import {
27
28
  defineRuntimeTool2
28
- } from "../../index-636mggad.js";
29
+ } from "../../index-ff3agzaf.js";
29
30
  import {
30
31
  TOOL_ERROR_PROJECTION
31
32
  } from "../../index-556g5hsh.js";
@@ -846,6 +847,7 @@ function zodObjectFromJsonSchema(schema) {
846
847
  const parsed = z.fromJSONSchema(reconcileDefinitionKeyword(schema));
847
848
  if (parsed instanceof z.ZodObject) {
848
849
  markJsonSchemaObjectGuards(parsed);
850
+ markRemoteUnionVerdict(parsed);
849
851
  return parsed;
850
852
  }
851
853
  return z.looseObject({});
@@ -9,8 +9,8 @@ import {
9
9
  } from "../../index-0gxvns6s.js";
10
10
  import {
11
11
  coerceJsonArgs2
12
- } from "../../index-cykxpxz5.js";
13
- import"../../index-t5sjh517.js";
12
+ } from "../../index-jy9wq8tp.js";
13
+ import"../../index-epmnrnth.js";
14
14
  export {
15
15
  AsyncOperationCancelResultSchema2 as AsyncOperationCancelResultSchema,
16
16
  McpAnnotationsSchema2 as McpAnnotationsSchema,
@@ -1,13 +1,13 @@
1
1
  import"../../index-fynr93w4.js";
2
- import"../../index-t5sjh517.js";
3
- import"../../index-cykxpxz5.js";
2
+ import"../../index-epmnrnth.js";
3
+ import"../../index-jy9wq8tp.js";
4
4
  import"../../index-ct75c3at.js";
5
- import"../../index-q6crhe1n.js";
6
- import"../../index-mha6b4vk.js";
7
- import"../../index-ghwntn9n.js";
5
+ import"../../index-h7accrrv.js";
6
+ import"../../index-02h0dfpr.js";
7
+ import"../../index-vqdjym30.js";
8
8
  import {
9
9
  createToolInvoker2
10
- } from "../../index-dd1z5kxb.js";
10
+ } from "../../index-jfk93gja.js";
11
11
  export {
12
12
  createToolInvoker2 as createToolInvoker
13
13
  };
@@ -1,10 +1,10 @@
1
1
  import"../../index-ct75c3at.js";
2
2
  import"../../index-fynr93w4.js";
3
- import"../../index-t5sjh517.js";
4
- import"../../index-cykxpxz5.js";
5
- import"../../index-q6crhe1n.js";
6
- import"../../index-mha6b4vk.js";
7
- import"../../index-ghwntn9n.js";
3
+ import"../../index-epmnrnth.js";
4
+ import"../../index-jy9wq8tp.js";
5
+ import"../../index-h7accrrv.js";
6
+ import"../../index-02h0dfpr.js";
7
+ import"../../index-vqdjym30.js";
8
8
  import {
9
9
  RESOURCE_MIME_TYPE2,
10
10
  EXT_APPS_BUNDLE_PLACEHOLDER2,
@@ -20,9 +20,9 @@ import {
20
20
  createMcpHttpRoute2,
21
21
  createStdioMcpServer2,
22
22
  bindStdioProcessSignals2
23
- } from "../../index-c5374vpt.js";
24
- import"../../index-0d8m0kee.js";
25
- import"../../index-636mggad.js";
23
+ } from "../../index-651xsm48.js";
24
+ import"../../index-hvg9hctd.js";
25
+ import"../../index-ff3agzaf.js";
26
26
  export {
27
27
  EXT_APPS_BUNDLE_PLACEHOLDER2 as EXT_APPS_BUNDLE_PLACEHOLDER,
28
28
  MCP_CATALOG_META_KEY2 as MCP_CATALOG_META_KEY,
@@ -9,10 +9,10 @@ import {
9
9
  import {
10
10
  normalizeError2
11
11
  } from "../index-fynr93w4.js";
12
- import"../index-t5sjh517.js";
12
+ import"../index-epmnrnth.js";
13
13
  import {
14
14
  coerceJsonArgs2
15
- } from "../index-cykxpxz5.js";
15
+ } from "../index-jy9wq8tp.js";
16
16
  import"../index-ct75c3at.js";
17
17
  import {
18
18
  assertToolName,
@@ -21,19 +21,19 @@ import {
21
21
  findNonPortableFormats2,
22
22
  flattenToolJsonSchema2,
23
23
  findUntypedProperties2
24
- } from "../index-q6crhe1n.js";
24
+ } from "../index-h7accrrv.js";
25
25
  import {
26
26
  ToolExecutionControlError2,
27
27
  isToolExecutionControlError2
28
- } from "../index-mha6b4vk.js";
28
+ } from "../index-02h0dfpr.js";
29
29
  import {
30
30
  collectTools2
31
- } from "../index-ghwntn9n.js";
31
+ } from "../index-vqdjym30.js";
32
32
  import {
33
33
  mountAgent2,
34
34
  describeToolCatalog2,
35
35
  buildToolManifest2
36
- } from "../index-7c046kxr.js";
36
+ } from "../index-c7h371gr.js";
37
37
  import"../index-m38ej7e5.js";
38
38
  import {
39
39
  ALL_TRANSPORTS2,
@@ -60,7 +60,7 @@ import {
60
60
  createMcpHttpRoute2,
61
61
  createStdioMcpServer2,
62
62
  bindStdioProcessSignals2
63
- } from "../index-c5374vpt.js";
63
+ } from "../index-651xsm48.js";
64
64
  import {
65
65
  AsyncOperationCancelResultSchema2,
66
66
  createAsyncOperationSnapshotSchema2,
@@ -74,7 +74,7 @@ import {
74
74
  WaitTimeoutError,
75
75
  runWaitOperation,
76
76
  createCli2
77
- } from "../index-v2eyj2ws.js";
77
+ } from "../index-jprxv2an.js";
78
78
  import {
79
79
  ManagedFilePathSchema2,
80
80
  ManagedFileRefSchema2
@@ -89,7 +89,7 @@ import {
89
89
  } from "../index-pzw0fpek.js";
90
90
  import {
91
91
  createToolInvoker2
92
- } from "../index-dd1z5kxb.js";
92
+ } from "../index-jfk93gja.js";
93
93
  import {
94
94
  ManagedFileError2
95
95
  } from "../index-2f9r0jgr.js";
@@ -111,14 +111,14 @@ import {
111
111
  } from "../index-yk4g8805.js";
112
112
  import {
113
113
  collectToolSurface
114
- } from "../index-0d8m0kee.js";
114
+ } from "../index-hvg9hctd.js";
115
115
  import {
116
116
  getTraceId2
117
117
  } from "../index-r6v4mc67.js";
118
118
  import {
119
119
  defineRuntimeTool2,
120
120
  createRuntimeToolFactory2
121
- } from "../index-636mggad.js";
121
+ } from "../index-ff3agzaf.js";
122
122
  import {
123
123
  formatZodError2
124
124
  } from "../index-1eeqpadm.js";
@@ -2,14 +2,17 @@ import {
2
2
  normalizeError2,
3
3
  validateDeclaredOutput
4
4
  } from "./index-fynr93w4.js";
5
+ import {
6
+ localVerdict
7
+ } from "./index-epmnrnth.js";
5
8
  import {
6
9
  coerceJsonArgs2
7
- } from "./index-cykxpxz5.js";
10
+ } from "./index-jy9wq8tp.js";
8
11
  import {
9
12
  applyToolViewDefaults,
10
13
  projectToolView,
11
14
  objectShapeKeys
12
- } from "./index-q6crhe1n.js";
15
+ } from "./index-h7accrrv.js";
13
16
  import {
14
17
  runWithRequestContext2,
15
18
  getRequestContext2
@@ -91,10 +94,14 @@ function parseToolCallArguments(method, callArgs, {
91
94
  } catch (err) {
92
95
  return { ok: false, message: "Invalid input", thrown: err };
93
96
  }
94
- if (!result.success) {
95
- return { ok: false, message: `Invalid input: ${formatZodError2(result.error)}` };
97
+ if (result.success)
98
+ input = result.data;
99
+ else {
100
+ const refused = localVerdict(method.inputSchema, result.error);
101
+ if (refused)
102
+ return { ok: false, message: `Invalid input: ${formatZodError2(refused)}` };
103
+ input = inputArgs;
96
104
  }
97
- input = result.data;
98
105
  }
99
106
  return { ok: true, params, input };
100
107
  }
@@ -4,7 +4,7 @@ import {
4
4
  AgentSandboxRestrictionSchema2,
5
5
  AgentSandboxGradeSchema2,
6
6
  AGENT_CODING_TOOL_NAMES
7
- } from "./index-ey15wx6j.js";
7
+ } from "./index-n0adphfg.js";
8
8
  import {
9
9
  AgentRecordIdSchema2,
10
10
  AgentRecordVersionSchema2,