stitchkit 0.111.1 → 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.
- package/CHANGELOG.md +17 -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/process.d.ts +1 -0
- package/dist/entrypoints/process.d.ts.map +1 -1
- package/dist/entrypoints/process.js +76 -1
- 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-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-v2eyj2ws.js → index-jprxv2an.js} +6 -6
- 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/process/stream.d.ts +27 -0
- package/dist/process/stream.d.ts.map +1 -0
- 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 +10 -0
- package/llms/files.txt +1 -1
- package/llms/process.2.txt +32 -0
- package/llms/process.txt +36 -23
- package/llms/tools-connections.txt +1 -1
- package/llms/tools.txt +8 -3
- package/llms-full.txt +54 -5
- package/llms.txt +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,23 @@ 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
|
+
|
|
29
|
+
## [0.111.2] - 2026-10-17
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- `stitchkit/process`: `streamNativeCommand` starts a command like `runNativeCommand` and returns its stdout and stderr as `ReadableStream<Uint8Array>` while it runs, with `result` and `stop()`. It uses the same owner, so a stream keeps the group ownership, the `stop` policy, the bounds and every group-stop fix of `runNativeCommand`; a slow reader slows the child through pipe backpressure. The `stitchkit/process` surface ceiling rises from 12 to 15 for `streamNativeCommand` and its two types.
|
|
34
|
+
|
|
18
35
|
## [0.111.1] - 2026-10-17
|
|
19
36
|
|
|
20
37
|
### Fixed
|
|
@@ -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;AAKp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AC,EAAE,qCAAqC,CAAC;IAClE,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClF;AAED,MAAM,WAAW,iBAAiB,CAAC,KAAK;IACtC,6EAA6E;IAC7E,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,6BAA6B,CAAC;IACpD,8FAA8F;IAC9F,KAAK,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACpF,SAAS,IAAI,uBAAuB,CAAC;IACrC,kGAAkG;IAClG,KAAK,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;CACtF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE3E;AAaD,kGAAkG;AAClG,MAAM,WAAW,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-
|
|
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-jprxv2an.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
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
export { observeProcessInstance, type ProcessInstance, type ProcessInstanceObservation, ProcessInstanceSchema, type ProcessOwnerEvidence, probeProcessOwner, } from '../internal/process-instance.js';
|
|
3
3
|
export { runNativeCommand } from '../process/command.js';
|
|
4
4
|
export { NativeCommandError, type NativeCommandOptions, type NativeCommandResult, type NativeCommandSettlement, type NativeCommandStopPolicy, } from '../process/contract.js';
|
|
5
|
+
export { type NativeCommandStream, type NativeCommandStreamOptions, streamNativeCommand, } from '../process/stream.js';
|
|
5
6
|
//# sourceMappingURL=process.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/entrypoints/process.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/entrypoints/process.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,mBAAmB,GACpB,MAAM,mBAAmB,CAAC"}
|
|
@@ -10,14 +10,89 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
startNativeCommand
|
|
12
12
|
} from "../index-7r4knwf8.js";
|
|
13
|
+
import {
|
|
14
|
+
untilAborted
|
|
15
|
+
} from "../index-a5qr2rj6.js";
|
|
13
16
|
// src/process/command.ts
|
|
14
17
|
function runNativeCommand(input) {
|
|
15
18
|
return startNativeCommand(input).result;
|
|
16
19
|
}
|
|
20
|
+
// src/process/stream.ts
|
|
21
|
+
function streamNativeCommand(input) {
|
|
22
|
+
for (const owned of ["capture", "onOutput", "stdio"])
|
|
23
|
+
if (owned in input)
|
|
24
|
+
throw new TypeError(`streamNativeCommand owns ${owned}`);
|
|
25
|
+
const channels = { stdout: channel(), stderr: channel() };
|
|
26
|
+
const owner = startNativeCommand({
|
|
27
|
+
...input,
|
|
28
|
+
onOutput: async (bytes, name, signal) => {
|
|
29
|
+
await channels[name].push(Uint8Array.from(bytes), signal);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
owner.result.then(() => {
|
|
33
|
+
channels.stdout.close();
|
|
34
|
+
channels.stderr.close();
|
|
35
|
+
}, (error) => {
|
|
36
|
+
channels.stdout.fail(error);
|
|
37
|
+
channels.stderr.fail(error);
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
stdout: channels.stdout.stream,
|
|
41
|
+
stderr: channels.stderr.stream,
|
|
42
|
+
result: owner.result,
|
|
43
|
+
stop: () => owner.stop()
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var QUEUED_BYTES = 1024 * 1024;
|
|
47
|
+
function channel() {
|
|
48
|
+
let controller;
|
|
49
|
+
let cancelled = false;
|
|
50
|
+
let settled = false;
|
|
51
|
+
let resume = Promise.withResolvers();
|
|
52
|
+
const stream = new ReadableStream({
|
|
53
|
+
start(c) {
|
|
54
|
+
controller = c;
|
|
55
|
+
},
|
|
56
|
+
pull() {
|
|
57
|
+
resume.resolve();
|
|
58
|
+
},
|
|
59
|
+
cancel() {
|
|
60
|
+
cancelled = true;
|
|
61
|
+
resume.resolve();
|
|
62
|
+
}
|
|
63
|
+
}, new ByteLengthQueuingStrategy({ highWaterMark: QUEUED_BYTES }));
|
|
64
|
+
return {
|
|
65
|
+
stream,
|
|
66
|
+
async push(bytes, signal) {
|
|
67
|
+
if (cancelled || settled)
|
|
68
|
+
return;
|
|
69
|
+
controller.enqueue(bytes);
|
|
70
|
+
while (!cancelled && !signal.aborted && (controller.desiredSize ?? 0) <= 0) {
|
|
71
|
+
resume = Promise.withResolvers();
|
|
72
|
+
await untilAborted(resume.promise, signal).catch(() => {
|
|
73
|
+
return;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
close() {
|
|
78
|
+
if (cancelled || settled)
|
|
79
|
+
return;
|
|
80
|
+
settled = true;
|
|
81
|
+
controller.close();
|
|
82
|
+
},
|
|
83
|
+
fail(error) {
|
|
84
|
+
if (cancelled || settled)
|
|
85
|
+
return;
|
|
86
|
+
settled = true;
|
|
87
|
+
controller.error(error);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
17
91
|
export {
|
|
18
92
|
NativeCommandError2 as NativeCommandError,
|
|
19
93
|
ProcessInstanceSchema2 as ProcessInstanceSchema,
|
|
20
94
|
observeProcessInstance2 as observeProcessInstance,
|
|
21
95
|
probeProcessOwner2 as probeProcessOwner,
|
|
22
|
-
runNativeCommand
|
|
96
|
+
runNativeCommand,
|
|
97
|
+
streamNativeCommand
|
|
23
98
|
};
|
|
@@ -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,
|