stitchkit 0.111.2 → 0.112.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 +20 -0
- package/dist/application/diagnostic-journal-contract.d.ts +1 -1
- package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +6 -6
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +5 -5
- package/dist/entrypoints/agent-runtime/sqlite/node.js +5 -5
- package/dist/entrypoints/agent-runtime/testing.js +5 -5
- package/dist/entrypoints/agent-runtime.js +12 -12
- package/dist/entrypoints/application/diagnostic-journal.js +1 -1
- package/dist/entrypoints/application/directory-inbox.js +3 -3
- package/dist/entrypoints/cli/publish.js +2 -2
- package/dist/entrypoints/cli.js +8 -8
- package/dist/entrypoints/files.js +2 -2
- package/dist/entrypoints/server.js +3 -3
- package/dist/entrypoints/telegram.js +1 -1
- package/dist/entrypoints/testing.js +1 -1
- package/dist/entrypoints/tools/connections.js +6 -4
- package/dist/entrypoints/tools/contract.js +2 -2
- package/dist/entrypoints/tools/invoker.js +6 -6
- package/dist/entrypoints/tools/mcp.js +8 -8
- package/dist/entrypoints/tools.js +11 -11
- package/dist/{index-mha6b4vk.js → index-02h0dfpr.js} +12 -5
- package/dist/{index-0z3kfphz.js → index-38gvr73z.js} +1 -1
- package/dist/{index-8jv0trhg.js → index-5as18gs2.js} +1 -1
- package/dist/{index-t2bsd0hm.js → index-5v5a9k2n.js} +92 -43
- package/dist/{index-c5374vpt.js → index-651xsm48.js} +4 -4
- package/dist/{index-w9mqgnz9.js → index-6b3pcq5z.js} +1 -1
- package/dist/{index-v2eyj2ws.js → index-bd7spznx.js} +20 -7
- package/dist/{index-7c046kxr.js → index-c7h371gr.js} +4 -4
- package/dist/{index-mnk5vgdr.js → index-d4cnhfdn.js} +1 -1
- package/dist/{index-t5sjh517.js → index-epmnrnth.js} +18 -1
- package/dist/{index-636mggad.js → index-ff3agzaf.js} +1 -1
- package/dist/{index-7c957abz.js → index-fh2ht88b.js} +1 -1
- package/dist/{index-q6crhe1n.js → index-h7accrrv.js} +19 -6
- package/dist/{index-0d8m0kee.js → index-hvg9hctd.js} +3 -3
- package/dist/{index-nx49x0tw.js → index-hy802jnr.js} +1 -1
- package/dist/{index-dd1z5kxb.js → index-jfk93gja.js} +3 -3
- package/dist/{index-cykxpxz5.js → index-jy9wq8tp.js} +1 -1
- package/dist/{index-ey15wx6j.js → index-n0adphfg.js} +1 -1
- package/dist/{index-ghwntn9n.js → index-vqdjym30.js} +2 -2
- package/dist/internal/exclusive-lock-owner.d.ts +53 -0
- package/dist/internal/exclusive-lock-owner.d.ts.map +1 -0
- package/dist/internal/exclusive-lock.d.ts +1 -28
- package/dist/internal/exclusive-lock.d.ts.map +1 -1
- package/dist/internal/open-descriptors.d.ts +18 -0
- package/dist/internal/open-descriptors.d.ts.map +1 -0
- package/dist/internal/with-exclusive-lock.d.ts +2 -12
- package/dist/internal/with-exclusive-lock.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/dist/tools/connections/runtime.d.ts +1 -1
- package/dist/tools/connections/runtime.d.ts.map +1 -1
- package/dist/tools/execute-args.d.ts.map +1 -1
- package/dist/tools/schema/flatten-join.d.ts.map +1 -1
- package/dist/tools/schema/json-schema-origin.d.ts +17 -0
- package/dist/tools/schema/json-schema-origin.d.ts.map +1 -1
- package/llms/cli.2.txt +11 -1
- package/llms/cli.txt +10 -1
- package/llms/files.txt +1 -1
- package/llms/process.txt +10 -0
- package/llms/stitchkit.txt +3 -3
- package/llms/tools-connections.txt +1 -1
- package/llms/tools.txt +8 -3
- package/llms/{upgrading-0.101.0-0.111.0.txt → upgrading-0.103.0-0.112.0.txt} +34 -63
- package/llms/{upgrading-0.61.0-0.73.0.txt → upgrading-0.61.0-0.74.0.txt} +64 -3
- package/llms/{upgrading-0.74.0-0.100.0.txt → upgrading-0.75.0-0.102.0.txt} +63 -64
- package/llms/upgrading.txt +3 -3
- package/llms-full.txt +75 -10
- package/llms.txt +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,26 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.112.0] - 2026-10-24
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking changes
|
|
21
|
+
|
|
22
|
+
**Who must act:** scripts that combine named array options with bare positional arguments without an explicit `positionals` policy must name the scalar fields or declare their destinations. Flag-only calls and explicitly declared positional policies need no migration.
|
|
23
|
+
|
|
24
|
+
- `stitchkit/cli` — **array options require named arguments or an explicit positional policy.** Without a declared `positionals` policy, a named array option together with any bare positional is now a usage error before dispatch. Schema-order inference could mistake the array's remaining elements for unrelated optional fields and execute a different call. Before: `app resolve --references alpha.md beta.md gamma.md` could assign `beta.md` and `gamma.md` to other fields. After: `app resolve --references alpha.md --references beta.md --references gamma.md`, or `app resolve --references:='["alpha.md","beta.md","gamma.md"]'`. Name scalar fields with flags too, or declare their exact positional policy. Command help describes one element per option; only a declared trailing positional array is variadic. See [ADR 0268](docs/decisions/0268-named-cli-arrays-require-explicit-positional-destinations.md) and the [migration](docs/guide/upgrading.md).
|
|
25
|
+
**Affects:** `stitchkit/cli` createCli, parseCliArgs
|
|
26
|
+
|
|
27
|
+
## [0.111.3] - 2026-10-20
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- `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
|
|
32
|
+
**Affects:** `stitchkit/files` withExclusiveLock; `stitchkit/server` createFileStateStore; `stitchkit/application/diagnostic-journal` createDiagnosticJournal; `stitchkit/telegram` runTelegramBroadcast
|
|
33
|
+
- `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
|
|
34
|
+
**Affects:** `stitchkit/tools/connections` defineMcpClientConnection, defineOpenApiConnection, mountConnections
|
|
35
|
+
- `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
|
|
36
|
+
**Affects:** `stitchkit/tools` behaviour
|
|
37
|
+
|
|
18
38
|
## [0.111.2] - 2026-10-17
|
|
19
39
|
|
|
20
40
|
### 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,
|
|
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,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAI1C,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,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,oCAAoC;;;;;;;EAO/C,CAAC;AACH,MA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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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import"../../index-
|
|
12
|
+
import"../../index-epmnrnth.js";
|
|
13
|
+
import"../../index-jy9wq8tp.js";
|
|
14
14
|
import"../../index-ct75c3at.js";
|
|
15
|
-
import"../../index-
|
|
16
|
-
import"../../index-
|
|
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-
|
|
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-
|
|
6
|
+
} from "../../index-n0adphfg.js";
|
|
7
7
|
import"../../index-ct75c3at.js";
|
|
8
|
-
import"../../index-
|
|
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-
|
|
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-
|
|
2
|
+
import"../../../index-38gvr73z.js";
|
|
3
3
|
import"../../../index-8kzct1d6.js";
|
|
4
4
|
import {
|
|
5
5
|
initializeAgentRuntimeSqlite2,
|
|
6
6
|
createSqliteAgentRuntimeStore2
|
|
7
|
-
} from "../../../index-
|
|
7
|
+
} from "../../../index-fh2ht88b.js";
|
|
8
8
|
import"../../../index-kqnd6a85.js";
|
|
9
9
|
import"../../../index-5w6t91ze.js";
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-n0adphfg.js";
|
|
11
11
|
import"../../../index-ct75c3at.js";
|
|
12
|
-
import"../../../index-
|
|
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-
|
|
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-
|
|
2
|
+
import"../../../index-38gvr73z.js";
|
|
3
3
|
import"../../../index-8kzct1d6.js";
|
|
4
4
|
import {
|
|
5
5
|
initializeAgentRuntimeSqlite2,
|
|
6
6
|
createSqliteAgentRuntimeStore2
|
|
7
|
-
} from "../../../index-
|
|
7
|
+
} from "../../../index-fh2ht88b.js";
|
|
8
8
|
import"../../../index-kqnd6a85.js";
|
|
9
9
|
import"../../../index-5w6t91ze.js";
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-n0adphfg.js";
|
|
11
11
|
import"../../../index-ct75c3at.js";
|
|
12
|
-
import"../../../index-
|
|
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-
|
|
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-
|
|
14
|
-
import"../../index-
|
|
13
|
+
import"../../index-n0adphfg.js";
|
|
14
|
+
import"../../index-38gvr73z.js";
|
|
15
15
|
import"../../index-ct75c3at.js";
|
|
16
|
-
import"../../index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
134
|
-
import"../index-
|
|
133
|
+
import"../index-epmnrnth.js";
|
|
134
|
+
import"../index-jy9wq8tp.js";
|
|
135
135
|
import"../index-ct75c3at.js";
|
|
136
|
-
import"../index-
|
|
137
|
-
import"../index-
|
|
138
|
-
import"../index-
|
|
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-
|
|
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-
|
|
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-
|
|
205
|
+
import"../index-hvg9hctd.js";
|
|
206
206
|
import {
|
|
207
207
|
defineRuntimeTool2,
|
|
208
208
|
executableAgentRuntimeTools
|
|
209
|
-
} from "../index-
|
|
209
|
+
} from "../index-ff3agzaf.js";
|
|
210
210
|
import {
|
|
211
211
|
createTraceContext2,
|
|
212
212
|
childSpan2
|
|
@@ -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-
|
|
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-
|
|
25
|
-
import"../../index-
|
|
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-
|
|
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-
|
|
21
|
+
} from "../../index-6b3pcq5z.js";
|
|
22
22
|
import {
|
|
23
23
|
ManagedFileError2,
|
|
24
24
|
createManagedFileBoundary2
|
package/dist/entrypoints/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import"../index-
|
|
1
|
+
import"../index-epmnrnth.js";
|
|
2
2
|
import {
|
|
3
3
|
coerceJsonArgs2
|
|
4
|
-
} from "../index-
|
|
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-
|
|
19
|
+
} from "../index-bd7spznx.js";
|
|
20
20
|
import"../index-fynr93w4.js";
|
|
21
21
|
import"../index-ct75c3at.js";
|
|
22
|
-
import"../index-
|
|
23
|
-
import"../index-
|
|
24
|
-
import"../index-
|
|
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-
|
|
48
|
-
import"../index-
|
|
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-
|
|
7
|
+
import"../index-5v5a9k2n.js";
|
|
8
8
|
import {
|
|
9
9
|
ExclusiveLockError2,
|
|
10
10
|
withExclusiveLock2
|
|
11
|
-
} from "../index-
|
|
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-
|
|
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-
|
|
55
|
+
} from "../index-hy802jnr.js";
|
|
56
56
|
import {
|
|
57
57
|
bindRealtimeServer2
|
|
58
58
|
} from "../index-xmgjtkvr.js";
|
|
59
|
-
import"../index-
|
|
59
|
+
import"../index-6b3pcq5z.js";
|
|
60
60
|
import {
|
|
61
61
|
withDeadline
|
|
62
62
|
} from "../index-9tqbxv5p.js";
|
|
@@ -2,11 +2,12 @@ import"../../index-ct75c3at.js";
|
|
|
2
2
|
import {
|
|
3
3
|
declaresDraft07,
|
|
4
4
|
withDefsDialect
|
|
5
|
-
} from "../../index-
|
|
5
|
+
} from "../../index-h7accrrv.js";
|
|
6
6
|
import"../../index-fynr93w4.js";
|
|
7
7
|
import {
|
|
8
|
-
markJsonSchemaObjectGuards
|
|
9
|
-
|
|
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-
|
|
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-
|
|
13
|
-
import"../../index-
|
|
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-
|
|
3
|
-
import"../../index-
|
|
2
|
+
import"../../index-epmnrnth.js";
|
|
3
|
+
import"../../index-jy9wq8tp.js";
|
|
4
4
|
import"../../index-ct75c3at.js";
|
|
5
|
-
import"../../index-
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
5
|
+
import"../../index-h7accrrv.js";
|
|
6
|
+
import"../../index-02h0dfpr.js";
|
|
7
|
+
import"../../index-vqdjym30.js";
|
|
8
8
|
import {
|
|
9
9
|
createToolInvoker2
|
|
10
|
-
} from "../../index-
|
|
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-
|
|
4
|
-
import"../../index-
|
|
5
|
-
import"../../index-
|
|
6
|
-
import"../../index-
|
|
7
|
-
import"../../index-
|
|
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-
|
|
24
|
-
import"../../index-
|
|
25
|
-
import"../../index-
|
|
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-
|
|
12
|
+
import"../index-epmnrnth.js";
|
|
13
13
|
import {
|
|
14
14
|
coerceJsonArgs2
|
|
15
|
-
} from "../index-
|
|
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-
|
|
24
|
+
} from "../index-h7accrrv.js";
|
|
25
25
|
import {
|
|
26
26
|
ToolExecutionControlError2,
|
|
27
27
|
isToolExecutionControlError2
|
|
28
|
-
} from "../index-
|
|
28
|
+
} from "../index-02h0dfpr.js";
|
|
29
29
|
import {
|
|
30
30
|
collectTools2
|
|
31
|
-
} from "../index-
|
|
31
|
+
} from "../index-vqdjym30.js";
|
|
32
32
|
import {
|
|
33
33
|
mountAgent2,
|
|
34
34
|
describeToolCatalog2,
|
|
35
35
|
buildToolManifest2
|
|
36
|
-
} from "../index-
|
|
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-
|
|
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-
|
|
77
|
+
} from "../index-bd7spznx.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-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
+
} from "./index-jy9wq8tp.js";
|
|
8
11
|
import {
|
|
9
12
|
applyToolViewDefaults,
|
|
10
13
|
projectToolView,
|
|
11
14
|
objectShapeKeys
|
|
12
|
-
} from "./index-
|
|
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 (
|
|
95
|
-
|
|
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
|
}
|