stitchkit 0.114.2 → 0.116.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 +54 -0
- package/dist/agent-runtime/coding-tool-files.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-listing.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-paths.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-refusals.d.ts +6 -0
- package/dist/agent-runtime/coding-tool-refusals.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +1 -1
- package/dist/agent-runtime/contained-scan.d.ts +1 -1
- package/dist/agent-runtime/contained-scan.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-broker.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-bubblewrap-storage.d.ts.map +1 -1
- package/dist/application/directory-inbox-files.d.ts.map +1 -1
- package/dist/application/file-state-store.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/coding-tools.js +6 -4
- package/dist/entrypoints/agent-runtime/harness.js +2 -1
- package/dist/entrypoints/agent-runtime/sandbox.js +13 -8
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +8 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.js +8 -6
- package/dist/entrypoints/agent-runtime/testing.js +8 -6
- package/dist/entrypoints/agent-runtime.js +8 -6
- package/dist/entrypoints/application/diagnostic-journal.js +2 -2
- package/dist/entrypoints/application/directory-inbox.js +10 -7
- package/dist/entrypoints/cli/publish.js +11 -8
- package/dist/entrypoints/cli.js +6 -3
- package/dist/entrypoints/files.js +10 -7
- package/dist/entrypoints/process/owner-loss.js +1 -1
- package/dist/entrypoints/process.js +3 -3
- package/dist/entrypoints/react/keyboard/testing.js +1 -1
- package/dist/entrypoints/react/keyboard.js +11 -11
- package/dist/entrypoints/server.js +4 -4
- package/dist/entrypoints/telegram/grammy.js +2 -2
- package/dist/entrypoints/telegram.d.ts +1 -1
- package/dist/entrypoints/telegram.d.ts.map +1 -1
- package/dist/entrypoints/telegram.js +30 -14
- package/dist/entrypoints/tools.js +5 -2
- package/dist/files/chunk-spool.d.ts.map +1 -1
- package/dist/{index-2f9r0jgr.js → index-364k2zwa.js} +4 -4
- package/dist/{index-dc9ere5p.js → index-4g6qmgdx.js} +1 -1
- package/dist/index-6f49krb5.js +107 -0
- package/dist/{index-912sza5h.js → index-90p34rts.js} +1 -1
- package/dist/{index-07dcf2yn.js → index-ac6vvm30.js} +5 -2
- package/dist/{index-zrtrjkbf.js → index-arjmb6de.js} +183 -172
- package/dist/{index-7r4knwf8.js → index-dr3t5n1v.js} +14 -4
- package/dist/{index-84bf5spd.js → index-f6m4c545.js} +5 -2
- package/dist/{index-qj1sy4ep.js → index-fa435yq2.js} +1 -1
- package/dist/{index-hy802jnr.js → index-fdk4r4r6.js} +6 -3
- package/dist/index-jj9228tt.js +6 -0
- package/dist/{index-a3462dqf.js → index-jq2ky8fw.js} +1 -1
- package/dist/{index-s47ac8zt.js → index-n5sv4z0w.js} +142 -156
- package/dist/{index-bh2ht9y5.js → index-n8z3rvzw.js} +4 -1
- package/dist/index-q968hy6y.js +100 -0
- package/dist/{index-j4zh647a.js → index-tt30h7mr.js} +4 -1
- package/dist/{index-tnxsq7cw.js → index-w7jq3fz9.js} +113 -38
- package/dist/{index-p02zgk8x.js → index-y4rxnvgp.js} +6 -0
- package/dist/{index-5v5a9k2n.js → index-z3d6smer.js} +1 -1
- package/dist/{index-6b3pcq5z.js → index-zqkz4af9.js} +1 -1
- package/dist/internal/atomic-file.d.ts.map +1 -1
- package/dist/internal/atomic-staging.d.ts.map +1 -1
- package/dist/internal/contained-directory.d.ts +20 -0
- package/dist/internal/contained-directory.d.ts.map +1 -0
- package/dist/{agent-runtime → internal}/contained-files.d.ts +24 -13
- package/dist/internal/contained-files.d.ts.map +1 -0
- package/dist/internal/contained-handle.d.ts +30 -0
- package/dist/internal/contained-handle.d.ts.map +1 -0
- package/dist/internal/contained-write.d.ts +12 -0
- package/dist/internal/contained-write.d.ts.map +1 -0
- package/dist/internal/darwin-binding.d.ts +1 -1
- package/dist/internal/darwin-binding.d.ts.map +1 -1
- package/dist/internal/errno.d.ts +3 -0
- package/dist/internal/errno.d.ts.map +1 -0
- package/dist/internal/process-instance.d.ts.map +1 -1
- package/dist/internal/write-download.d.ts +5 -14
- package/dist/internal/write-download.d.ts.map +1 -1
- package/dist/process/group-diagnostics.d.ts +1 -0
- package/dist/process/group-diagnostics.d.ts.map +1 -1
- package/dist/process/group-settlement.d.ts +2 -0
- package/dist/process/group-settlement.d.ts.map +1 -1
- package/dist/process/group.d.ts.map +1 -1
- package/dist/process/owner-loss-control.d.ts.map +1 -1
- package/dist/react/keyboard/hooks.d.ts +2 -2
- package/dist/react/keyboard/hooks.d.ts.map +1 -1
- package/dist/react/keyboard/layers.d.ts +2 -0
- package/dist/react/keyboard/layers.d.ts.map +1 -1
- package/dist/telegram/broadcast-state.d.ts.map +1 -1
- package/dist/telegram/budget-transformer.d.ts +5 -2
- package/dist/telegram/budget-transformer.d.ts.map +1 -1
- package/dist/telegram/outbound-budget.d.ts +26 -11
- package/dist/telegram/outbound-budget.d.ts.map +1 -1
- package/dist/tools/cli/download.d.ts.map +1 -1
- package/dist/tools/cli/publication-storage.d.ts.map +1 -1
- package/dist/tools/cli/publication.d.ts.map +1 -1
- package/dist/tools/cli/view.d.ts +7 -1
- package/dist/tools/cli/view.d.ts.map +1 -1
- package/llms/agent-runtime.txt +16 -6
- package/llms/cli.txt +37 -3
- package/llms/process.txt +2 -2
- package/llms/react-keyboard.txt +18 -2
- package/llms/stitchkit.txt +3 -3
- package/llms/telegram.txt +10 -3
- package/llms/{upgrading-0.104.0-0.114.0.txt → upgrading-0.105.0-0.116.0.txt} +85 -124
- package/llms/{upgrading-0.44.0-0.61.0.txt → upgrading-0.44.0-0.62.0.txt} +120 -3
- package/llms/{upgrading-0.62.0-0.78.0.txt → upgrading-0.63.0-0.83.0.txt} +181 -120
- package/llms/{upgrading-0.79.0-0.103.13.txt → upgrading-0.84.0-0.104.0.txt} +124 -181
- package/llms/upgrading.txt +4 -4
- package/llms-full.txt +168 -19
- package/llms.txt +9 -9
- package/native/darwin-arm64.node +0 -0
- package/native/darwin-x64.node +0 -0
- package/native-assets.json +4 -4
- package/package.json +1 -1
- package/dist/agent-runtime/contained-darwin.d.ts +0 -21
- package/dist/agent-runtime/contained-darwin.d.ts.map +0 -1
- package/dist/agent-runtime/contained-files.d.ts.map +0 -1
- package/dist/agent-runtime/contained-write.d.ts +0 -9
- package/dist/agent-runtime/contained-write.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,60 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.116.0] - 2026-11-02
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking changes
|
|
21
|
+
|
|
22
|
+
**Who must act:** code that relied on a 429 from an edit or a read to stop a token's sends. See the [migration](docs/guide/upgrading.md).
|
|
23
|
+
|
|
24
|
+
- `stitchkit/telegram` — **a 429 pauses the token only on a method that spends the budget.** A limit on editing one message said nothing about sending the next one, and one progress card stopped a whole campaign. An edit or a read that sees a 429 returns it unchanged and pauses nothing. `// before: budget.run('editMessageText', …) paused the token` → `// after: call budget.pauseAfter(error) where you want that` → [ADR 0277](docs/decisions/0277-a-telegram-budget-serves-replies-first.md)
|
|
25
|
+
**Affects:** `stitchkit/telegram` TelegramOutboundBudget(run)
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- `stitchkit/telegram` — the outbound budget has `interactive` and `bulk` lanes over one rate: `run(…, { lane })`, `acquire(cost, signal, { lane })`, and `stats().queuedBulk`. A waiting interactive call is granted first, so a reply does not queue behind a campaign.
|
|
30
|
+
**Affects:** `stitchkit/telegram` TelegramOutboundBudget, TelegramOutboundLane
|
|
31
|
+
|
|
32
|
+
- `stitchkit/telegram/grammy` — `telegramBudgetTransformer(budget, { lane })` runs a client's calls in one lane.
|
|
33
|
+
**Affects:** `stitchkit/telegram/grammy` telegramBudgetTransformer
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- `stitchkit/agent-runtime/coding-tools` — a path spelled differently from the name stored on disk refuses before any policy reads it, so a rule on `credentials` cannot be passed by asking for `CREDENTIALS` on a case-insensitive volume.
|
|
38
|
+
**Affects:** `stitchkit/agent-runtime/coding-tools` createAgentCodingTools
|
|
39
|
+
|
|
40
|
+
- `stitchkit/cli` — grouped views print largest first even when a key looks like a number, and a string equal to `null` or `(absent)` is quoted instead of merging with the missing value. `renderCliView` returns the order as `order`.
|
|
41
|
+
**Affects:** `stitchkit/cli` createCli, renderCliView
|
|
42
|
+
|
|
43
|
+
## [0.115.0] - 2026-11-02
|
|
44
|
+
|
|
45
|
+
### ⚠️ Breaking changes
|
|
46
|
+
|
|
47
|
+
**Who must act:** a CLI that uses `--output-dir` on Windows, from a macOS bundle built without `createNativePackaging`, into a directory it cannot write or over bind-mounted files; a coding-tools host that allows `edit` but refuses `read` for a path; code that reads `zoneProps['aria-orientation']` or selects `[aria-orientation]` in a `role: 'none'` zone. See the [migration](docs/guide/upgrading.md).
|
|
48
|
+
|
|
49
|
+
- `stitchkit/cli` — **`--output-dir` downloads write through a pinned directory, so they need a contained filesystem backend.** A lexical check could not stop `writeFile` following an existing symbolic link out of the output directory. The configured directory is pinned once per batch and direct children are atomically replaced through its descriptor: a pre-existing symbolic link or hard link cannot redirect bytes into an external file, and replacing the output path while a response is in flight does not redirect later files. Initial root aliases select the configured directory once; missing roots are created through pinned parents. Ordinary overwrites retain permission bits, and new files honour the process umask. Replacing is a new file, not a rewrite: it needs write permission on the directory, gives the file to the process user, replaces a read-only file, and refuses a bind-mounted one. There is no path-based fallback: Windows and other unsupported platforms refuse the download, and a macOS bundle or compiled binary must carry the native backend. A partial failure keeps the operation result on stdout and returns a non-zero exit. `// before: bun build --compile cli.ts` → `// after: createNativePackaging from stitchkit/files/packaging`. → [ADR 0276](docs/decisions/0276-a-download-writes-through-its-root-capability.md)
|
|
50
|
+
**Affects:** `stitchkit/cli` createCli(download)
|
|
51
|
+
|
|
52
|
+
- `stitchkit/react/keyboard` — **`NavZoneProps['aria-orientation']` is optional.** `useNavZone({ role: 'none' })` omits `aria-orientation` along with the container and item roles, preserving native links and buttons without an unsupported ARIA attribute. Listbox and tablist zones keep their orientation; arrow navigation and roving focus still follow the configured axis. `// before: const axis: ZoneOrientation = zone.zoneProps['aria-orientation']` → `// after: read the `orientation` option you passed`
|
|
53
|
+
**Affects:** `stitchkit/react/keyboard` useNavZone, NavZoneProps
|
|
54
|
+
|
|
55
|
+
- `stitchkit/agent-runtime/coding-tools` — **`edit_file` asks `read` before it reads.** A miss, an occurrence count or a digest told a caller about a file the host refused, one guess at a time. `authorize({ operation: 'read', path })` now runs before the content is read, and a refused or doomed edit never reaches `operation: 'edit'`. `// before: a host allowing only edit` → `// after: allow read for that path too`
|
|
56
|
+
**Affects:** `stitchkit/agent-runtime/coding-tools` createAgentCodingTools(edit_file)
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- `stitchkit/agent-runtime/coding-tools` — NUL paths refuse before host authorization and native entry lookup. Reads and edits reject special files without blocking on a writerless FIFO. Writes create only the missing directories the host approved; a changed directory plan refuses with `CONFLICT`. A write over a directory, one that loses a race for a new name, and a path that changed while the host decided are named `CONFLICT` refusals rather than internal errors; a socket refuses like other special files. `edit_file` rereads the file after authorization, so a change made while the host decided is a `CONFLICT` rather than lost, and `write_file` takes the same path lock. Overwrites keep exact permission bits under any umask and drop setuid and setgid. The macOS filesystem backend preserves the errno codes used by these guards, including `ENOENT` for approved nested creation, and a listing survives an entry removed while it runs.
|
|
61
|
+
**Affects:** `stitchkit/agent-runtime/coding-tools` createAgentCodingTools
|
|
62
|
+
|
|
63
|
+
- `stitchkit/cli` — record views read only own properties at every dotted path segment; inherited properties are unknown fields, including a getter of a class instance a handler returned in process. Legitimate own `constructor`, `prototype` and `toString` keys remain readable. Descending sort keeps `null` and absent values last, matching ascending sort. `--table` columns are checked against the whole collection, so `--top` no longer reports a field that only later records carry as unknown.
|
|
64
|
+
**Affects:** `stitchkit/cli` createCli, renderCliView
|
|
65
|
+
|
|
66
|
+
- `stitchkit/cli` — aggregate views accept empty collections: count and grouped sum return `{}`, ungrouped sum returns `0`, sorted records return `[]`, and tables retain their header without data rows. Field paths remain validated; a field of the result object around an empty collection, or an unknown field in a nonempty one, still preserves the canonical result with a presentation failure.
|
|
67
|
+
**Affects:** `stitchkit/cli` createCli, renderCliView
|
|
68
|
+
|
|
69
|
+
- `stitchkit/react/keyboard` — key layers register, update and clean up in the browser layout-effect phase. An active layer receives a key dispatched by the caller's later layout effect on the initial mount or an activation commit, with the current handler; inactive, inert and removed layers do not. Abandoned renders leave the last committed state intact, a layer hidden behind a Suspense fallback goes quiet and returns to its place on reveal, and SSR installs no listener. `useEscapeLayer` and the outside-key layer of `useNavZone` share this lifecycle.
|
|
70
|
+
**Affects:** `stitchkit/react/keyboard` useKeyLayer, useEscapeLayer, useNavZone
|
|
71
|
+
|
|
18
72
|
## [0.114.2] - 2026-10-31
|
|
19
73
|
|
|
20
74
|
### Fixed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-files.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coding-tool-files.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-files.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAK3B,MAAM,wBAAwB,CAAC;AAmDhC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,SAAS,yBAAyB,EAAE,CAyKtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-listing.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-listing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coding-tool-listing.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-listing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAehC,iFAAiF;AACjF,eAAO,MAAM,4BAA4B,UAQxC,CAAC;AA6CF;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA2B5D;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,SAAS,yBAAyB,EAAE,CA6HtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-paths.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coding-tool-paths.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-paths.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,qBAAqB,EAE3B,MAAM,wBAAwB,CAAC;AAwChC,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACnB,MAAM,CA6CR;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM;;;GAKrB;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM;;;GAarB;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM;;;GAQrB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAIlB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAoBf;AAID,2FAA2F;AAC3F,wBAAsB,kBAAkB,CAAC,CAAC,EACxC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,CAAC,CAAC,CAeZ;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAUtE"}
|
|
@@ -61,6 +61,12 @@ export declare function codingPathRefusal(code: CodingRefusalCode, message: stri
|
|
|
61
61
|
* model can do about it, and keeps being scrubbed. Default-deny by omission.
|
|
62
62
|
*/
|
|
63
63
|
export declare function refuseMissingCodingPath(error: unknown, relative: string): never;
|
|
64
|
+
/**
|
|
65
|
+
* The write failures a caller can act on: something else occupies the path. A
|
|
66
|
+
* lost race and a stale check end here too, so each has one answer however it
|
|
67
|
+
* was reached. Everything else stays internal, as above.
|
|
68
|
+
*/
|
|
69
|
+
export declare function refuseWriteConflict(error: unknown, relative: string, details?: Record<string, unknown>): never;
|
|
64
70
|
/**
|
|
65
71
|
* Refuse a spill reference the store does not hold.
|
|
66
72
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-refusals.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-refusals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"coding-tool-refusals.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-refusals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,0IAQ4B,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAClF,KAAK,CAUP;AAED,iEAAiE;AACjE,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GACjE,KAAK,CAKP;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAmC/E;AAgBD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACpC,KAAK,CAkCP;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,CASpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-search-patch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-search-patch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coding-tool-search-patch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-search-patch.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAyWhC,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,SAAS,yBAAyB,EAAE,CAsBtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ContainedFile, type ContainedFileScan } from '
|
|
1
|
+
import { type ContainedFile, type ContainedFileScan } from '../internal/contained-files.js';
|
|
2
2
|
/** One deterministic descriptor-anchored walker for harness resources and workspace search. */
|
|
3
3
|
export declare function walkContainedFiles(input: {
|
|
4
4
|
root: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contained-scan.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contained-scan.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAIvB,MAAM,6BAA6B,CAAC;AAGrC,+FAA+F;AAC/F,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC,CAIpC;AAED,4FAA4F;AAC5F,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,aAAa,CAAC,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,KAC7C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA8F7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-broker.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sandbox-broker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sandbox-broker.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sandbox-broker.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,6FAA6F;AAC7F,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,oBAAoB,EACrC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;;;GA2GlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-bubblewrap-storage.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sandbox-bubblewrap-storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sandbox-bubblewrap-storage.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sandbox-bubblewrap-storage.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAC;AAK5B,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;qBAEzB,mBAAmB;;;;uBA0EjB,MAAM,UAAU,YAAY;;;;;;;;;;kBApBjC,MAAM;;;;EAsElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-inbox-files.d.ts","sourceRoot":"","sources":["../../src/application/directory-inbox-files.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"directory-inbox-files.d.ts","sourceRoot":"","sources":["../../src/application/directory-inbox-files.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAY7D,MAAM,MAAM,SAAS,CAAC,MAAM,IACxB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAAC,WAAW,EAAE,eAAe,CAAA;CAAE,GAClF;IACE,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,GACD,IAAI,CAAC;AAET,eAAO,MAAM,gBAAgB,UAAW,OAAO,KAAG,OAAsC,CAAC;AAEzF;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IAEtC,QAAQ,CAAC,GAAG,EAAE,MAAM;IADtB,YACW,GAAG,EAAE,MAAM,EACpB,KAAK,EAAE,OAAO,EAIf;CACF;AA6CD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM,CAQtE;AAED,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,sBAAsB,GAAG,SAAS,EACrC,CAAC,EAAE,sBAAsB,GACxB,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAC7C,QAAQ,EAAE,sBAAsB,EAChC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,QAAQ,EAAE,MAAM,GACf,MAAM,CAgBR;AAED,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;kBA0BlD,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;SASnC,MAAM,OAAO,MAAM,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;0BA0D1D,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;iBAezE,MAAM,SACJ,MAAM,WACJ,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC;gBAgBT,MAAM,WACF,uBAAuB,gBAClB,eAAe,GAC5B,OAAO,CAAC,IAAI,CAAC;kBAMT,MAAM,WACF,uBAAuB,gBAClB,eAAe,GAC5B,OAAO,CAAC,IAAI,CAAC;GAyBnB;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-state-store.d.ts","sourceRoot":"","sources":["../../src/application/file-state-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"file-state-store.d.ts","sourceRoot":"","sources":["../../src/application/file-state-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,eAAe,CAAC;AAEzE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB,CAAC,MAAM;IAC3C,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,uFAAuF;IACvF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjF,uFAAuF;IACvF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,OAAO,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,IAAI,EAAE,OAAO,iBAAiB,CAAC;CACzC;AASD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EACzC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,qBAAqB,CAAC,MAAM,CAAC,GACrC,UAAU,CAAC,MAAM,CAAC,CAEpB;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,CAAC,MAAM,EAC3C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,qBAAqB,CAAC,MAAM,CAAC,EACtC,EAAE,EAAE,gBAAgB,GACnB,UAAU,CAAC,MAAM,CAAC,CAyEpB"}
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
AgentCodingToolAuthorizationSchema2,
|
|
7
7
|
AgentCodingToolPathAuthorizationSchema2,
|
|
8
8
|
createAgentCodingTools2
|
|
9
|
-
} from "../../index-
|
|
9
|
+
} from "../../index-n5sv4z0w.js";
|
|
10
10
|
import"../../index-2kbysk9s.js";
|
|
11
|
-
import"../../index-
|
|
12
|
-
import"../../index-
|
|
13
|
-
import"../../index-
|
|
11
|
+
import"../../index-f6m4c545.js";
|
|
12
|
+
import"../../index-dr3t5n1v.js";
|
|
13
|
+
import"../../index-6f49krb5.js";
|
|
14
|
+
import"../../index-q968hy6y.js";
|
|
15
|
+
import"../../index-arjmb6de.js";
|
|
14
16
|
import"../../index-ega3yz4c.js";
|
|
15
17
|
export {
|
|
16
18
|
AgentCodingToolAuthorizationSchema2 as AgentCodingToolAuthorizationSchema,
|
|
@@ -26,7 +26,8 @@ import {
|
|
|
26
26
|
import"../../index-4qnzda76.js";
|
|
27
27
|
import {
|
|
28
28
|
walkContainedFiles
|
|
29
|
-
} from "../../index-
|
|
29
|
+
} from "../../index-6f49krb5.js";
|
|
30
|
+
import"../../index-arjmb6de.js";
|
|
30
31
|
import {
|
|
31
32
|
defineRuntimeTool2
|
|
32
33
|
} from "../../index-ega3yz4c.js";
|
|
@@ -3,23 +3,28 @@ import {
|
|
|
3
3
|
missingSandboxRestrictions2,
|
|
4
4
|
codingRefusal,
|
|
5
5
|
createAgentCodingTools2
|
|
6
|
-
} from "../../index-
|
|
6
|
+
} from "../../index-n5sv4z0w.js";
|
|
7
|
+
import"../../index-2kbysk9s.js";
|
|
7
8
|
import"../../index-ct75c3at.js";
|
|
8
9
|
import"../../index-rhzkndr5.js";
|
|
9
10
|
import"../../index-k42ckyzx.js";
|
|
10
|
-
import"../../index-2kbysk9s.js";
|
|
11
11
|
import {
|
|
12
12
|
COMMAND_CLEANUP_TIMEOUT_MS,
|
|
13
13
|
NativeCommandError2
|
|
14
|
-
} from "../../index-
|
|
14
|
+
} from "../../index-f6m4c545.js";
|
|
15
15
|
import {
|
|
16
16
|
spawnOwnedCommand,
|
|
17
17
|
nativeCommandOwner,
|
|
18
18
|
terminateOwnedGroup,
|
|
19
19
|
startNativeCommand
|
|
20
|
-
} from "../../index-
|
|
21
|
-
import"../../index-
|
|
20
|
+
} from "../../index-dr3t5n1v.js";
|
|
21
|
+
import"../../index-6f49krb5.js";
|
|
22
|
+
import"../../index-q968hy6y.js";
|
|
23
|
+
import"../../index-arjmb6de.js";
|
|
22
24
|
import"../../index-ega3yz4c.js";
|
|
25
|
+
import {
|
|
26
|
+
errnoOf
|
|
27
|
+
} from "../../index-jj9228tt.js";
|
|
23
28
|
import {
|
|
24
29
|
readBoundedBody2
|
|
25
30
|
} from "../../index-qndsr7f0.js";
|
|
@@ -188,7 +193,7 @@ Connection: close\r
|
|
|
188
193
|
server.closeAllConnections();
|
|
189
194
|
});
|
|
190
195
|
await unlink(socketPath).catch((error) => {
|
|
191
|
-
if (
|
|
196
|
+
if (errnoOf(error) !== "ENOENT")
|
|
192
197
|
throw error;
|
|
193
198
|
});
|
|
194
199
|
}
|
|
@@ -358,7 +363,7 @@ function sandboxStorage(root, name) {
|
|
|
358
363
|
await lease.close();
|
|
359
364
|
}
|
|
360
365
|
} catch (error) {
|
|
361
|
-
if (error
|
|
366
|
+
if (errnoOf(error) === "EEXIST")
|
|
362
367
|
throw new SandboxError("SANDBOX_BUSY", "Sandbox session already has an owner");
|
|
363
368
|
throw error;
|
|
364
369
|
}
|
|
@@ -402,7 +407,7 @@ function sandboxStorage(root, name) {
|
|
|
402
407
|
return { prewarm, create, acquire };
|
|
403
408
|
}
|
|
404
409
|
function missing(error) {
|
|
405
|
-
return error
|
|
410
|
+
return errnoOf(error) === "ENOENT";
|
|
406
411
|
}
|
|
407
412
|
|
|
408
413
|
// src/agent-runtime/sandbox-coding.ts
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import"../../../index-fggxgbrk.js";
|
|
2
|
-
import"../../../index-
|
|
2
|
+
import"../../../index-jq2ky8fw.js";
|
|
3
3
|
import"../../../index-8kzct1d6.js";
|
|
4
4
|
import {
|
|
5
5
|
initializeAgentRuntimeSqlite2,
|
|
6
6
|
createSqliteAgentRuntimeStore2
|
|
7
|
-
} from "../../../index-
|
|
7
|
+
} from "../../../index-fa435yq2.js";
|
|
8
8
|
import"../../../index-kqnd6a85.js";
|
|
9
9
|
import"../../../index-5w6t91ze.js";
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-n5sv4z0w.js";
|
|
11
11
|
import"../../../index-ct75c3at.js";
|
|
12
12
|
import"../../../index-rhzkndr5.js";
|
|
13
13
|
import"../../../index-k42ckyzx.js";
|
|
14
14
|
import"../../../index-2kbysk9s.js";
|
|
15
|
-
import"../../../index-
|
|
16
|
-
import"../../../index-
|
|
15
|
+
import"../../../index-f6m4c545.js";
|
|
16
|
+
import"../../../index-dr3t5n1v.js";
|
|
17
17
|
import"../../../index-snef22zr.js";
|
|
18
|
-
import"../../../index-
|
|
18
|
+
import"../../../index-6f49krb5.js";
|
|
19
|
+
import"../../../index-q968hy6y.js";
|
|
20
|
+
import"../../../index-arjmb6de.js";
|
|
19
21
|
import"../../../index-ega3yz4c.js";
|
|
20
22
|
|
|
21
23
|
// src/agent-runtime/sqlite-bun.ts
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import"../../../index-fggxgbrk.js";
|
|
2
|
-
import"../../../index-
|
|
2
|
+
import"../../../index-jq2ky8fw.js";
|
|
3
3
|
import"../../../index-8kzct1d6.js";
|
|
4
4
|
import {
|
|
5
5
|
initializeAgentRuntimeSqlite2,
|
|
6
6
|
createSqliteAgentRuntimeStore2
|
|
7
|
-
} from "../../../index-
|
|
7
|
+
} from "../../../index-fa435yq2.js";
|
|
8
8
|
import"../../../index-kqnd6a85.js";
|
|
9
9
|
import"../../../index-5w6t91ze.js";
|
|
10
|
-
import"../../../index-
|
|
10
|
+
import"../../../index-n5sv4z0w.js";
|
|
11
11
|
import"../../../index-ct75c3at.js";
|
|
12
12
|
import"../../../index-rhzkndr5.js";
|
|
13
13
|
import"../../../index-k42ckyzx.js";
|
|
14
14
|
import"../../../index-2kbysk9s.js";
|
|
15
|
-
import"../../../index-
|
|
16
|
-
import"../../../index-
|
|
15
|
+
import"../../../index-f6m4c545.js";
|
|
16
|
+
import"../../../index-dr3t5n1v.js";
|
|
17
17
|
import"../../../index-snef22zr.js";
|
|
18
|
-
import"../../../index-
|
|
18
|
+
import"../../../index-6f49krb5.js";
|
|
19
|
+
import"../../../index-q968hy6y.js";
|
|
20
|
+
import"../../../index-arjmb6de.js";
|
|
19
21
|
import"../../../index-ega3yz4c.js";
|
|
20
22
|
|
|
21
23
|
// src/agent-runtime/sqlite-node.ts
|
|
@@ -10,19 +10,21 @@ import {
|
|
|
10
10
|
advanceToolChronology
|
|
11
11
|
} from "../../index-fggxgbrk.js";
|
|
12
12
|
import"../../index-5w6t91ze.js";
|
|
13
|
-
import"../../index-
|
|
14
|
-
import"../../index-
|
|
13
|
+
import"../../index-n5sv4z0w.js";
|
|
14
|
+
import"../../index-jq2ky8fw.js";
|
|
15
15
|
import"../../index-ct75c3at.js";
|
|
16
16
|
import"../../index-rhzkndr5.js";
|
|
17
17
|
import"../../index-k42ckyzx.js";
|
|
18
18
|
import"../../index-2kbysk9s.js";
|
|
19
|
-
import"../../index-
|
|
20
|
-
import"../../index-
|
|
19
|
+
import"../../index-f6m4c545.js";
|
|
20
|
+
import"../../index-dr3t5n1v.js";
|
|
21
21
|
import"../../index-snef22zr.js";
|
|
22
22
|
import {
|
|
23
23
|
createMemoryAgentRuntimeStore2
|
|
24
|
-
} from "../../index-
|
|
25
|
-
import"../../index-
|
|
24
|
+
} from "../../index-4g6qmgdx.js";
|
|
25
|
+
import"../../index-6f49krb5.js";
|
|
26
|
+
import"../../index-q968hy6y.js";
|
|
27
|
+
import"../../index-arjmb6de.js";
|
|
26
28
|
import"../../index-ega3yz4c.js";
|
|
27
29
|
import {
|
|
28
30
|
assertPositiveSafeInteger
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
missingSandboxRestrictions2,
|
|
6
6
|
recordAgentSandboxProbe2,
|
|
7
7
|
refuseUnknownSpillReference
|
|
8
|
-
} from "../index-
|
|
8
|
+
} from "../index-n5sv4z0w.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-jq2ky8fw.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentStoreEventKindSchema2,
|
|
64
64
|
AgentStoreEventEnvelopeSchema2,
|
|
@@ -187,15 +187,17 @@ import {
|
|
|
187
187
|
} from "../index-snef22zr.js";
|
|
188
188
|
import"../index-tvtacc9a.js";
|
|
189
189
|
import"../index-2kbysk9s.js";
|
|
190
|
-
import"../index-
|
|
191
|
-
import"../index-
|
|
190
|
+
import"../index-f6m4c545.js";
|
|
191
|
+
import"../index-dr3t5n1v.js";
|
|
192
192
|
import {
|
|
193
193
|
createMemoryAgentRuntimeStore2
|
|
194
|
-
} from "../index-
|
|
194
|
+
} from "../index-4g6qmgdx.js";
|
|
195
195
|
import {
|
|
196
196
|
createAgentRuntimeEventSink2
|
|
197
197
|
} from "../index-4qnzda76.js";
|
|
198
|
-
import"../index-
|
|
198
|
+
import"../index-6f49krb5.js";
|
|
199
|
+
import"../index-q968hy6y.js";
|
|
200
|
+
import"../index-arjmb6de.js";
|
|
199
201
|
import"../index-86nbfysb.js";
|
|
200
202
|
import {
|
|
201
203
|
defineRuntimeTool2,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
createBoundedChannel2
|
|
19
19
|
} from "../../index-w0eqdhyd.js";
|
|
20
20
|
import"../../index-2kbysk9s.js";
|
|
21
|
-
import"../../index-
|
|
21
|
+
import"../../index-n8z3rvzw.js";
|
|
22
22
|
import {
|
|
23
23
|
attemptExclusiveLock
|
|
24
|
-
} from "../../index-
|
|
24
|
+
} from "../../index-z3d6smer.js";
|
|
25
25
|
import {
|
|
26
26
|
BoundedFileReadError,
|
|
27
27
|
openRegularFile
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
backoffDelay
|
|
15
15
|
} from "../../index-g6a3na27.js";
|
|
16
16
|
import"../../index-2kbysk9s.js";
|
|
17
|
-
import"../../index-
|
|
18
|
-
import"../../index-
|
|
17
|
+
import"../../index-n8z3rvzw.js";
|
|
18
|
+
import"../../index-z3d6smer.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-fdk4r4r6.js";
|
|
25
|
+
import"../../index-zqkz4af9.js";
|
|
26
26
|
import {
|
|
27
27
|
isJsonData
|
|
28
28
|
} from "../../index-m6w6jtda.js";
|
|
@@ -33,11 +33,14 @@ import {
|
|
|
33
33
|
} from "../../index-m616f0yz.js";
|
|
34
34
|
import {
|
|
35
35
|
writeAtomicFileData
|
|
36
|
-
} from "../../index-
|
|
36
|
+
} from "../../index-ac6vvm30.js";
|
|
37
37
|
import {
|
|
38
38
|
closeAfter,
|
|
39
39
|
publishAtomicFile
|
|
40
40
|
} from "../../index-b56nnscm.js";
|
|
41
|
+
import {
|
|
42
|
+
errnoOf
|
|
43
|
+
} from "../../index-jj9228tt.js";
|
|
41
44
|
import {
|
|
42
45
|
raceAbort
|
|
43
46
|
} from "../../index-b0kddvzw.js";
|
|
@@ -62,7 +65,7 @@ var EnvelopeSchema = z.object({
|
|
|
62
65
|
identity: DirectoryInboxIdentitySchema2,
|
|
63
66
|
entry: z.unknown()
|
|
64
67
|
}).strict();
|
|
65
|
-
var missingInboxFile = (error) =>
|
|
68
|
+
var missingInboxFile = (error) => errnoOf(error) === "ENOENT";
|
|
66
69
|
|
|
67
70
|
class InboxEntryError extends Error {
|
|
68
71
|
key;
|
|
@@ -79,7 +82,7 @@ var entryFile = async (key, run) => {
|
|
|
79
82
|
throw new InboxEntryError(key, error);
|
|
80
83
|
}
|
|
81
84
|
};
|
|
82
|
-
var existsAlready = (error) =>
|
|
85
|
+
var existsAlready = (error) => errnoOf(error) === "EEXIST";
|
|
83
86
|
var ignoreMissing = (error) => {
|
|
84
87
|
if (!missingInboxFile(error))
|
|
85
88
|
throw error;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import"../../index-xqhede6x.js";
|
|
2
2
|
import"../../index-2kbysk9s.js";
|
|
3
|
-
import"../../index-
|
|
4
|
-
import"../../index-
|
|
3
|
+
import"../../index-n8z3rvzw.js";
|
|
4
|
+
import"../../index-z3d6smer.js";
|
|
5
5
|
import {
|
|
6
6
|
signCliManifest2,
|
|
7
7
|
verifyCliManifest2,
|
|
@@ -15,22 +15,25 @@ import {
|
|
|
15
15
|
gzipCliAsset,
|
|
16
16
|
decodeCliAsset,
|
|
17
17
|
compareCliVersions2
|
|
18
|
-
} from "../../index-
|
|
18
|
+
} from "../../index-90p34rts.js";
|
|
19
19
|
import {
|
|
20
20
|
withExclusiveLock2
|
|
21
|
-
} from "../../index-
|
|
21
|
+
} from "../../index-zqkz4af9.js";
|
|
22
22
|
import {
|
|
23
23
|
ManagedFileError2,
|
|
24
24
|
createManagedFileBoundary2
|
|
25
|
-
} from "../../index-
|
|
25
|
+
} from "../../index-364k2zwa.js";
|
|
26
26
|
import {
|
|
27
27
|
writeFileAtomic2
|
|
28
|
-
} from "../../index-
|
|
28
|
+
} from "../../index-ac6vvm30.js";
|
|
29
29
|
import {
|
|
30
30
|
AtomicFilePublicationError2,
|
|
31
31
|
assertDirectoryDurability,
|
|
32
32
|
syncDirectory
|
|
33
33
|
} from "../../index-b56nnscm.js";
|
|
34
|
+
import {
|
|
35
|
+
errnoOf
|
|
36
|
+
} from "../../index-jj9228tt.js";
|
|
34
37
|
import {
|
|
35
38
|
MAX_TIMER_MS
|
|
36
39
|
} from "../../index-eemvahkc.js";
|
|
@@ -130,7 +133,7 @@ async function bindPublicationStorage(data, signal) {
|
|
|
130
133
|
try {
|
|
131
134
|
await mkdir(requested, { mode: 448 });
|
|
132
135
|
} catch (error) {
|
|
133
|
-
if (
|
|
136
|
+
if (errnoOf(error) !== "EEXIST")
|
|
134
137
|
throw error;
|
|
135
138
|
}
|
|
136
139
|
await directoryGeneration(requested);
|
|
@@ -426,7 +429,7 @@ async function buildVersion(storage, data, options, lock, prior, signal) {
|
|
|
426
429
|
await lstat2(join2(storage.root, data.version));
|
|
427
430
|
throw new Error("CLI version directory already exists");
|
|
428
431
|
} catch (error) {
|
|
429
|
-
if (
|
|
432
|
+
if (errnoOf(error) !== "ENOENT")
|
|
430
433
|
throw error;
|
|
431
434
|
}
|
|
432
435
|
signal.throwIfAborted();
|
package/dist/entrypoints/cli.js
CHANGED
|
@@ -16,12 +16,13 @@ import {
|
|
|
16
16
|
renderCliView2,
|
|
17
17
|
pollUntilDone2,
|
|
18
18
|
createCli2
|
|
19
|
-
} from "../index-
|
|
19
|
+
} from "../index-w7jq3fz9.js";
|
|
20
20
|
import"../index-k42ckyzx.js";
|
|
21
21
|
import"../index-ct75c3at.js";
|
|
22
22
|
import"../index-rhzkndr5.js";
|
|
23
23
|
import"../index-v6vb5qx8.js";
|
|
24
24
|
import"../index-htxh46ej.js";
|
|
25
|
+
import"../index-2kbysk9s.js";
|
|
25
26
|
import {
|
|
26
27
|
CliBuildSignatureSchema2,
|
|
27
28
|
cliManifestSigningPayload2,
|
|
@@ -40,12 +41,14 @@ import {
|
|
|
40
41
|
checkCliUpdate2,
|
|
41
42
|
applyCliUpdate2,
|
|
42
43
|
rollbackCliUpdate2
|
|
43
|
-
} from "../index-
|
|
44
|
+
} from "../index-90p34rts.js";
|
|
45
|
+
import"../index-q968hy6y.js";
|
|
46
|
+
import"../index-arjmb6de.js";
|
|
44
47
|
import"../index-86nbfysb.js";
|
|
45
48
|
import"../index-ega3yz4c.js";
|
|
46
49
|
import {
|
|
47
50
|
writeFileAtomicSync2
|
|
48
|
-
} from "../index-
|
|
51
|
+
} from "../index-ac6vvm30.js";
|
|
49
52
|
import {
|
|
50
53
|
safeJsonParse
|
|
51
54
|
} from "../index-zsarb5xp.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
ManagedFileRefSchema2
|
|
4
4
|
} from "../index-xqhede6x.js";
|
|
5
5
|
import"../index-2kbysk9s.js";
|
|
6
|
-
import"../index-
|
|
7
|
-
import"../index-
|
|
6
|
+
import"../index-n8z3rvzw.js";
|
|
7
|
+
import"../index-z3d6smer.js";
|
|
8
8
|
import {
|
|
9
9
|
ExclusiveLockError2,
|
|
10
10
|
withExclusiveLock2
|
|
11
|
-
} from "../index-
|
|
11
|
+
} from "../index-zqkz4af9.js";
|
|
12
12
|
import {
|
|
13
13
|
ManagedFileError2,
|
|
14
14
|
createManagedFileBoundary2
|
|
15
|
-
} from "../index-
|
|
15
|
+
} from "../index-364k2zwa.js";
|
|
16
16
|
import {
|
|
17
17
|
writeFileAtomic2,
|
|
18
18
|
writeFileAtomicSync2
|
|
19
|
-
} from "../index-
|
|
19
|
+
} from "../index-ac6vvm30.js";
|
|
20
20
|
import {
|
|
21
21
|
AtomicFilePublicationError2
|
|
22
22
|
} from "../index-b56nnscm.js";
|
|
@@ -24,7 +24,10 @@ import {
|
|
|
24
24
|
stagingPath,
|
|
25
25
|
isAtomicStagingName2,
|
|
26
26
|
sweepAtomicStaging2
|
|
27
|
-
} from "../index-
|
|
27
|
+
} from "../index-tt30h7mr.js";
|
|
28
|
+
import {
|
|
29
|
+
errnoOf
|
|
30
|
+
} from "../index-jj9228tt.js";
|
|
28
31
|
import {
|
|
29
32
|
AppError2
|
|
30
33
|
} from "../index-qcn84byh.js";
|
|
@@ -71,7 +74,7 @@ var Declaration = z.object({
|
|
|
71
74
|
});
|
|
72
75
|
var READ_BYTES = 64 * 1024;
|
|
73
76
|
function isErrorCode(error, code) {
|
|
74
|
-
return error
|
|
77
|
+
return errnoOf(error) === code;
|
|
75
78
|
}
|
|
76
79
|
async function publishOnce(path, bytes) {
|
|
77
80
|
const staging = stagingPath(path);
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
ProcessInstanceSchema2,
|
|
4
4
|
observeProcessInstance2,
|
|
5
5
|
probeProcessOwner2
|
|
6
|
-
} from "../index-
|
|
6
|
+
} from "../index-n8z3rvzw.js";
|
|
7
7
|
import {
|
|
8
8
|
NativeCommandError2
|
|
9
|
-
} from "../index-
|
|
9
|
+
} from "../index-f6m4c545.js";
|
|
10
10
|
import {
|
|
11
11
|
startNativeCommand
|
|
12
|
-
} from "../index-
|
|
12
|
+
} from "../index-dr3t5n1v.js";
|
|
13
13
|
import {
|
|
14
14
|
untilAborted
|
|
15
15
|
} from "../index-a5qr2rj6.js";
|