stitchkit 0.108.2 → 0.108.4

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 CHANGED
@@ -15,6 +15,30 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.108.4] - 2026-10-09
19
+
20
+ ### Fixed
21
+
22
+ - `stitchkit/agent-runtime/coding-tools` — `edit_file` now inserts `newText` literally when
23
+ `replaceAll: true`; JavaScript replacement tokens such as `$$`, `$&`, `` $` `` and `$'` no
24
+ longer rewrite the requested text. Single replacements already had this literal behavior.
25
+
26
+ ## [0.108.3] - 2026-10-09
27
+
28
+ ### Added
29
+
30
+ - `stitchkit/process/owner-loss` — `bootstrapNativeCommandOwnerLoss()` lets a single-file Bun
31
+ application keep `stitchkit/process` behind a dynamic import while carrying the same package-owned
32
+ owner-loss guard in its bundle. Call it before application argv routing and skip that routing when
33
+ it returns `true`; consumers do not inspect or copy the private guard protocol. → ADR 0255
34
+
35
+ ### Fixed
36
+
37
+ - `stitchkit/cli` — numeric, bigint and boolean `z.literal()` fields now receive their primitive
38
+ values from argv, including homogeneous literal sets, unions, wrappers and array elements. String
39
+ literals retain their lexical form (`007` stays `"007"`), and mixed-type literal sets remain raw
40
+ rather than guessing a type from spelling.
41
+
18
42
  ## [0.108.2] - 2026-10-09
19
43
 
20
44
  ### Added
@@ -1 +1 @@
1
- {"version":3,"file":"coding-tool-search-patch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-search-patch.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AA+VhC,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,SAAS,yBAAyB,EAAE,CAsBtC"}
1
+ {"version":3,"file":"coding-tool-search-patch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-search-patch.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAgWhC,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,SAAS,yBAAyB,EAAE,CAsBtC"}
@@ -6,10 +6,11 @@ import {
6
6
  AgentCodingToolAuthorizationSchema2,
7
7
  AgentCodingToolPathAuthorizationSchema2,
8
8
  createAgentCodingTools2
9
- } from "../../index-vyaehh67.js";
9
+ } from "../../index-sjntc4az.js";
10
10
  import"../../index-2kbysk9s.js";
11
- import"../../index-k0kzhdw9.js";
11
+ import"../../index-dj1aycxw.js";
12
12
  import"../../index-8ks9b85e.js";
13
+ import"../../index-dasy32c8.js";
13
14
  import"../../index-zrtrjkbf.js";
14
15
  import"../../index-636mggad.js";
15
16
  export {
@@ -8,16 +8,18 @@ import"../../index-q6crhe1n.js";
8
8
  import"../../index-fynr93w4.js";
9
9
  import {
10
10
  createAgentCodingTools2
11
- } from "../../index-vyaehh67.js";
11
+ } from "../../index-sjntc4az.js";
12
12
  import"../../index-2kbysk9s.js";
13
13
  import {
14
14
  COMMAND_CLEANUP_TIMEOUT_MS,
15
- NativeCommandError2,
15
+ NativeCommandError2
16
+ } from "../../index-dj1aycxw.js";
17
+ import {
16
18
  spawnOwnedCommand,
17
19
  nativeCommandOwner,
18
20
  terminateOwnedGroup,
19
21
  startNativeCommand
20
- } from "../../index-k0kzhdw9.js";
22
+ } from "../../index-dasy32c8.js";
21
23
  import"../../index-zrtrjkbf.js";
22
24
  import {
23
25
  MAX_TIMER_MS
@@ -15,7 +15,7 @@ import {
15
15
  renderCliView2,
16
16
  pollUntilDone2,
17
17
  createCli2
18
- } from "../index-4qh90tyw.js";
18
+ } from "../index-fgq4w9bf.js";
19
19
  import"../index-fynr93w4.js";
20
20
  import"../index-ct75c3at.js";
21
21
  import"../index-q6crhe1n.js";
@@ -4,7 +4,7 @@ import {
4
4
  paginatedSchema2,
5
5
  encodeCursor2,
6
6
  decodeCursor2
7
- } from "../index-q4hjtyye.js";
7
+ } from "../index-qd8x73e8.js";
8
8
  import {
9
9
  DEFAULT_CONTRACT_STREAM_FRAME_BYTES2,
10
10
  ContractStreamFrameSchema2
@@ -44,7 +44,7 @@ import {
44
44
  paginatedSchema2,
45
45
  encodeCursor2,
46
46
  decodeCursor2
47
- } from "../index-q4hjtyye.js";
47
+ } from "../index-qd8x73e8.js";
48
48
  import {
49
49
  ManagedFilePathSchema2,
50
50
  ManagedFileRefSchema2
@@ -11,7 +11,7 @@ import {
11
11
  import"../index-ykdcnq1f.js";
12
12
  import"../index-4s0fep5q.js";
13
13
  import"../index-fsw1ybf3.js";
14
- import"../index-q4hjtyye.js";
14
+ import"../index-qd8x73e8.js";
15
15
  import"../index-xqhede6x.js";
16
16
  import {
17
17
  createHandler2,
@@ -0,0 +1,3 @@
1
+ /** Narrow startup bootstrap for a bundled application that lazy-imports `stitchkit/process`. */
2
+ export { bootstrapNativeCommandOwnerLoss } from '../../process/owner-loss-guard.js';
3
+ //# sourceMappingURL=owner-loss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"owner-loss.d.ts","sourceRoot":"","sources":["../../../src/entrypoints/process/owner-loss.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import {
2
+ bootstrapNativeCommandOwnerLoss2
3
+ } from "../../index-dj1aycxw.js";
4
+ export {
5
+ bootstrapNativeCommandOwnerLoss2 as bootstrapNativeCommandOwnerLoss
6
+ };
@@ -5,9 +5,11 @@ import {
5
5
  probeProcessOwner2
6
6
  } from "../index-bh2ht9y5.js";
7
7
  import {
8
- NativeCommandError2,
8
+ NativeCommandError2
9
+ } from "../index-dj1aycxw.js";
10
+ import {
9
11
  startNativeCommand
10
- } from "../index-k0kzhdw9.js";
12
+ } from "../index-dasy32c8.js";
11
13
  // src/process/command.ts
12
14
  function runNativeCommand(input) {
13
15
  return startNativeCommand(input).result;
@@ -26,7 +26,7 @@ import {
26
26
  import"../index-ykdcnq1f.js";
27
27
  import"../index-4s0fep5q.js";
28
28
  import"../index-fsw1ybf3.js";
29
- import"../index-q4hjtyye.js";
29
+ import"../index-qd8x73e8.js";
30
30
  import"../index-xqhede6x.js";
31
31
  import {
32
32
  contextContributionDelta,
@@ -71,7 +71,7 @@ import {
71
71
  WaitTimeoutError,
72
72
  runWaitOperation,
73
73
  createCli2
74
- } from "../index-4qh90tyw.js";
74
+ } from "../index-fgq4w9bf.js";
75
75
  import {
76
76
  ManagedFilePathSchema2,
77
77
  ManagedFileRefSchema2