stitchkit 0.128.0 → 0.129.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/agent-executor/claude/transcript.d.ts +2 -2
  3. package/dist/agent-executor/claude/transcript.d.ts.map +1 -1
  4. package/dist/agent-executor/claude-sdk/controls.d.ts +19 -0
  5. package/dist/agent-executor/claude-sdk/controls.d.ts.map +1 -0
  6. package/dist/agent-executor/claude-sdk/driver.d.ts +114 -4
  7. package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
  8. package/dist/agent-executor/claude-sdk/query-loop.d.ts +46 -0
  9. package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -0
  10. package/dist/agent-executor/claude-sdk/query-options.d.ts +27 -0
  11. package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -0
  12. package/dist/agent-executor/claude-sdk/session.d.ts +6 -5
  13. package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
  14. package/dist/agent-executor/codex/classify.d.ts.map +1 -1
  15. package/dist/agent-executor/codex/connect.d.ts +45 -0
  16. package/dist/agent-executor/codex/connect.d.ts.map +1 -0
  17. package/dist/agent-executor/codex/driver.d.ts +51 -10
  18. package/dist/agent-executor/codex/driver.d.ts.map +1 -1
  19. package/dist/agent-executor/codex/limits.d.ts +11 -2
  20. package/dist/agent-executor/codex/limits.d.ts.map +1 -1
  21. package/dist/agent-executor/codex/protocol.d.ts +49 -4
  22. package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
  23. package/dist/agent-executor/codex/session-controls.d.ts +155 -0
  24. package/dist/agent-executor/codex/session-controls.d.ts.map +1 -0
  25. package/dist/agent-executor/codex/session.d.ts +27 -31
  26. package/dist/agent-executor/codex/session.d.ts.map +1 -1
  27. package/dist/agent-executor/codex/unix-socket-target.d.ts +26 -0
  28. package/dist/agent-executor/codex/unix-socket-target.d.ts.map +1 -0
  29. package/dist/agent-executor/codex/unix-socket.d.ts +26 -0
  30. package/dist/agent-executor/codex/unix-socket.d.ts.map +1 -0
  31. package/dist/agent-executor/codex/ws-frame.d.ts +15 -0
  32. package/dist/agent-executor/codex/ws-frame.d.ts.map +1 -0
  33. package/dist/agent-executor/contract.d.ts +2 -0
  34. package/dist/agent-executor/contract.d.ts.map +1 -1
  35. package/dist/agent-executor/engine-process.d.ts +9 -0
  36. package/dist/agent-executor/engine-process.d.ts.map +1 -1
  37. package/dist/agent-executor/hello.d.ts +8 -0
  38. package/dist/agent-executor/hello.d.ts.map +1 -1
  39. package/dist/agent-runtime/branch-observations.d.ts +5 -5
  40. package/dist/agent-runtime/branch-provider.d.ts +2 -2
  41. package/dist/agent-runtime/sql-rows.d.ts +10 -10
  42. package/dist/agent-runtime/terminal-commit.d.ts +10 -10
  43. package/dist/entrypoints/agent-executor/acp.js +7 -7
  44. package/dist/entrypoints/agent-executor/claude-sdk.d.ts +1 -1
  45. package/dist/entrypoints/agent-executor/claude-sdk.d.ts.map +1 -1
  46. package/dist/entrypoints/agent-executor/claude-sdk.js +532 -101
  47. package/dist/entrypoints/agent-executor/claude.js +8 -8
  48. package/dist/entrypoints/agent-executor/codex.d.ts +4 -0
  49. package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
  50. package/dist/entrypoints/agent-executor/codex.js +1491 -228
  51. package/dist/entrypoints/agent-executor.js +7 -7
  52. package/dist/entrypoints/agent-runtime/browser.js +1 -1
  53. package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
  54. package/dist/entrypoints/agent-runtime/harness.js +8 -8
  55. package/dist/entrypoints/agent-runtime/openrouter.js +2 -2
  56. package/dist/entrypoints/agent-runtime/postgres.js +6 -6
  57. package/dist/entrypoints/agent-runtime/realtime.js +4 -4
  58. package/dist/entrypoints/agent-runtime/sandbox.js +5 -5
  59. package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
  60. package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
  61. package/dist/entrypoints/agent-runtime/testing.js +5 -5
  62. package/dist/entrypoints/agent-runtime.js +17 -17
  63. package/dist/entrypoints/application/directory-inbox.js +2 -2
  64. package/dist/entrypoints/application/opentelemetry.js +2 -2
  65. package/dist/entrypoints/application.js +2 -2
  66. package/dist/entrypoints/cli/publish.js +3 -3
  67. package/dist/entrypoints/cli.js +8 -8
  68. package/dist/entrypoints/contract.js +2 -2
  69. package/dist/entrypoints/files/packaging.js +2 -2
  70. package/dist/entrypoints/files.js +7 -7
  71. package/dist/entrypoints/handler.js +4 -4
  72. package/dist/entrypoints/http.js +5 -5
  73. package/dist/entrypoints/index.js +7 -7
  74. package/dist/entrypoints/node.js +5 -5
  75. package/dist/entrypoints/observability.js +4 -4
  76. package/dist/entrypoints/primitives.js +2 -2
  77. package/dist/entrypoints/process.js +5 -5
  78. package/dist/entrypoints/react.js +1 -1
  79. package/dist/entrypoints/remote.js +2 -2
  80. package/dist/entrypoints/server.js +6 -6
  81. package/dist/entrypoints/service-host/macos.js +5 -5
  82. package/dist/entrypoints/service-host.js +7 -7
  83. package/dist/entrypoints/spend.js +1 -1
  84. package/dist/entrypoints/sync/postgres.js +1 -1
  85. package/dist/entrypoints/sync.js +2 -2
  86. package/dist/entrypoints/telegram.js +2 -2
  87. package/dist/entrypoints/testing.js +5 -5
  88. package/dist/entrypoints/tools/agent.js +5 -5
  89. package/dist/entrypoints/tools/connections.js +2 -2
  90. package/dist/entrypoints/tools/invoker.js +4 -4
  91. package/dist/entrypoints/tools/mcp.js +5 -5
  92. package/dist/entrypoints/tools/toolkit.js +8 -8
  93. package/dist/entrypoints/tools.js +12 -12
  94. package/dist/entrypoints/tracking/contract.js +1 -1
  95. package/dist/entrypoints/xlsx.js +1 -1
  96. package/dist/{index-prf6ayhf.js → index-13wmzpa6.js} +1 -1
  97. package/dist/{index-n7f89hjw.js → index-17qgm6xe.js} +3 -3
  98. package/dist/{index-wv8dqy7q.js → index-205456mf.js} +1 -1
  99. package/dist/{index-pwskmywy.js → index-21cfxc4z.js} +1 -1
  100. package/dist/{index-d4svrknj.js → index-39c2hj6h.js} +2 -2
  101. package/dist/{index-sfzfd2m2.js → index-39rmc00v.js} +1 -1
  102. package/dist/{index-ky3ardqn.js → index-3fym4j8n.js} +1 -1
  103. package/dist/{index-c5gp2gh6.js → index-5tdc0q43.js} +1 -1
  104. package/dist/{index-3ypvpkwr.js → index-669374qc.js} +1 -1
  105. package/dist/{index-m18xm96h.js → index-7jqn3b3g.js} +4 -4
  106. package/dist/{index-5jyjb4s0.js → index-80acsm27.js} +1 -1
  107. package/dist/{index-xmr47znh.js → index-827bgv33.js} +1 -1
  108. package/dist/{index-v1mxss62.js → index-93n6jwy0.js} +3 -3
  109. package/dist/{index-d54npte7.js → index-9kpxz49v.js} +2 -2
  110. package/dist/{index-xv9jb84s.js → index-9sfhje6y.js} +3 -3
  111. package/dist/{index-bh4pmtr9.js → index-afb6z77w.js} +3 -1
  112. package/dist/{index-9y0afd5f.js → index-apf5g7y9.js} +1 -1
  113. package/dist/{index-4qvyhn23.js → index-bjmj2q1z.js} +1 -1
  114. package/dist/{index-g3e57qj6.js → index-dcsxj68j.js} +2 -2
  115. package/dist/{index-waa6t4zx.js → index-dnzxxf8a.js} +1 -1
  116. package/dist/{index-gf92hc87.js → index-fgahdc7s.js} +2 -2
  117. package/dist/{index-kzavdze2.js → index-gr0kxymw.js} +5 -1
  118. package/dist/{index-e06z0tkb.js → index-gya4hwh3.js} +2 -2
  119. package/dist/{index-gzny6zsw.js → index-hab790s6.js} +5 -5
  120. package/dist/{index-bz3gn6cs.js → index-j0ef04jw.js} +2 -2
  121. package/dist/{index-rhb33thr.js → index-jcge9tx3.js} +1 -1
  122. package/dist/{index-pn5b11ce.js → index-mkfhpk11.js} +1 -1
  123. package/dist/{index-1qwrczr1.js → index-mttkdm5a.js} +1 -1
  124. package/dist/{index-rxnyygke.js → index-n3bm7zqq.js} +1 -1
  125. package/dist/{index-6wp4dn9d.js → index-p06z7g7w.js} +3 -3
  126. package/dist/{index-kt6dh1n6.js → index-p16q492v.js} +1 -1
  127. package/dist/{index-t7wa7k12.js → index-pp97q86a.js} +1 -1
  128. package/dist/{index-39n02e0q.js → index-psye60qn.js} +1 -1
  129. package/dist/{index-5ptwb6ka.js → index-pzhqydxb.js} +1 -1
  130. package/dist/{index-7kfcb576.js → index-qa2jjb65.js} +1 -1
  131. package/dist/{index-rzeezh79.js → index-qhjmmsm2.js} +2 -2
  132. package/dist/{index-7grgs8cx.js → index-qpzyahe3.js} +2 -2
  133. package/dist/{index-jfecdk1e.js → index-r97ppg0g.js} +2 -2
  134. package/dist/{index-bmaz3jzy.js → index-rjs94dny.js} +1 -1
  135. package/dist/{index-5v5vg85s.js → index-rxh3qy4x.js} +32 -5
  136. package/dist/{index-en8e5zsj.js → index-ryxb427v.js} +1 -1
  137. package/dist/{index-y065r8g5.js → index-sd4e5x5j.js} +7 -7
  138. package/dist/{index-g56ht6qf.js → index-t3qcac2a.js} +1 -1
  139. package/dist/{index-13dnv6d0.js → index-wv2amqm4.js} +4 -4
  140. package/dist/{index-4j8efqr3.js → index-x2fb37t0.js} +2 -2
  141. package/dist/{index-0gqs8ght.js → index-y71zn1gw.js} +32 -4
  142. package/dist/{index-wavv538x.js → index-ybdq8kk2.js} +3 -3
  143. package/dist/{index-4gk6k3zc.js → index-ycr4pk0z.js} +1 -1
  144. package/dist/{index-0tyt97nk.js → index-yrr3n391.js} +1 -1
  145. package/dist/{index-v37b2cd6.js → index-z20pdxeb.js} +2 -2
  146. package/dist/{index-8x22nprv.js → index-z9d74jmb.js} +3 -3
  147. package/dist/{index-3tnwtz38.js → index-zhshhxew.js} +1 -1
  148. package/dist/{index-hj1zq7mh.js → index-znd1b57f.js} +3 -3
  149. package/dist/internal/positive-integer.d.ts +2 -0
  150. package/dist/internal/positive-integer.d.ts.map +1 -1
  151. package/dist/internal/unix-socket.d.ts +7 -0
  152. package/dist/internal/unix-socket.d.ts.map +1 -1
  153. package/llms/agent-executor-claude-sdk.txt +13 -10
  154. package/llms/agent-executor-claude.txt +1 -1
  155. package/llms/agent-executor-codex.txt +9 -3
  156. package/llms/agent-executor.txt +2 -2
  157. package/llms/stitchkit.txt +74 -74
  158. package/llms/{upgrading-0.128.0.txt → upgrading-0.128.0-0.129.0.txt} +31 -3
  159. package/llms/upgrading.txt +1 -1
  160. package/llms-full.txt +127 -90
  161. package/llms.txt +6 -6
  162. package/package.json +1 -1
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  ToolExecutionControlError2,
22
22
  isToolExecutionControlError2
23
- } from "../index-rxnyygke.js";
23
+ } from "../index-n3bm7zqq.js";
24
24
  import {
25
25
  ALL_TRANSPORTS2,
26
26
  TOOL_TRANSPORTS2
@@ -32,15 +32,15 @@ import {
32
32
  findNonPortableFormats2,
33
33
  flattenToolJsonSchema2,
34
34
  findUntypedProperties2
35
- } from "../index-3ypvpkwr.js";
35
+ } from "../index-669374qc.js";
36
36
  import {
37
37
  collectTools2
38
- } from "../index-gf92hc87.js";
38
+ } from "../index-fgahdc7s.js";
39
39
  import"../index-m38ej7e5.js";
40
40
  import"../index-werjqesf.js";
41
41
  import {
42
42
  defineContract2
43
- } from "../index-d4svrknj.js";
43
+ } from "../index-39c2hj6h.js";
44
44
  import {
45
45
  AsyncOperationCancelResultSchema2,
46
46
  createAsyncOperationSnapshotSchema2
@@ -64,11 +64,11 @@ import {
64
64
  import {
65
65
  describeToolCatalog2,
66
66
  buildToolManifest2
67
- } from "../index-c5gp2gh6.js";
67
+ } from "../index-5tdc0q43.js";
68
68
  import {
69
69
  listToolNames2,
70
70
  listContractToolNames2
71
- } from "../index-pn5b11ce.js";
71
+ } from "../index-mkfhpk11.js";
72
72
  import"../index-wa6h4tz6.js";
73
73
  import"../index-jb4m241t.js";
74
74
  import {
@@ -84,7 +84,7 @@ import {
84
84
  } from "../index-1psbyyhj.js";
85
85
  import {
86
86
  createToolInvoker2
87
- } from "../index-6wp4dn9d.js";
87
+ } from "../index-p06z7g7w.js";
88
88
  import {
89
89
  WaitTimeoutError,
90
90
  runWaitOperation,
@@ -92,7 +92,7 @@ import {
92
92
  } from "../index-n20tybgk.js";
93
93
  import {
94
94
  collectToolSurface
95
- } from "../index-4j8efqr3.js";
95
+ } from "../index-x2fb37t0.js";
96
96
  import {
97
97
  getTraceId2
98
98
  } from "../index-x6sp5vpa.js";
@@ -106,12 +106,12 @@ import {
106
106
  } from "../index-akfgymyr.js";
107
107
  import {
108
108
  ManagedFileError2
109
- } from "../index-jfecdk1e.js";
109
+ } from "../index-r97ppg0g.js";
110
110
  import {
111
111
  fetchGuarded,
112
112
  fetchPinnedDocument,
113
113
  readCapped
114
- } from "../index-9y0afd5f.js";
114
+ } from "../index-apf5g7y9.js";
115
115
  import {
116
116
  mediaTypeEssence
117
117
  } from "../index-zs8cze4j.js";
@@ -124,10 +124,10 @@ import {
124
124
  } from "../index-9pv126eh.js";
125
125
  import {
126
126
  readBoundedText
127
- } from "../index-xmr47znh.js";
127
+ } from "../index-827bgv33.js";
128
128
  import {
129
129
  assertPositiveSafeInteger
130
- } from "../index-kzavdze2.js";
130
+ } from "../index-gr0kxymw.js";
131
131
  import {
132
132
  isRecord
133
133
  } from "../index-ps3djm8d.js";
@@ -3,7 +3,7 @@ import"../../index-yt1gg11x.js";
3
3
  import"../../index-werjqesf.js";
4
4
  import {
5
5
  defineContract2
6
- } from "../../index-d4svrknj.js";
6
+ } from "../../index-39c2hj6h.js";
7
7
 
8
8
  // src/tracking/schemas.ts
9
9
  import { z } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DecimalInputSchema2,
3
3
  moneyToDecimal2
4
- } from "../index-5jyjb4s0.js";
4
+ } from "../index-80acsm27.js";
5
5
 
6
6
  // src/xlsx/cells.ts
7
7
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertPositiveSafeInteger
3
- } from "./index-kzavdze2.js";
3
+ } from "./index-gr0kxymw.js";
4
4
  import {
5
5
  assertTimerMs
6
6
  } from "./index-agy5fqgf.js";
@@ -71,7 +71,7 @@ import {
71
71
  import {
72
72
  ToolExecutionControlError2,
73
73
  isToolExecutionControlError2
74
- } from "./index-rxnyygke.js";
74
+ } from "./index-n3bm7zqq.js";
75
75
  import {
76
76
  contractOperationEffects2
77
77
  } from "./index-werjqesf.js";
@@ -97,14 +97,14 @@ import {
97
97
  } from "./index-r9kq5ark.js";
98
98
  import {
99
99
  listContractToolNames2
100
- } from "./index-pn5b11ce.js";
100
+ } from "./index-mkfhpk11.js";
101
101
  import {
102
102
  AgentToolError2,
103
103
  isAgentToolError2
104
104
  } from "./index-1psbyyhj.js";
105
105
  import {
106
106
  assertPositiveSafeInteger
107
- } from "./index-kzavdze2.js";
107
+ } from "./index-gr0kxymw.js";
108
108
  import {
109
109
  isRecord,
110
110
  transportResult,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createBoundedSinkManager
3
- } from "./index-prf6ayhf.js";
3
+ } from "./index-13wmzpa6.js";
4
4
  import {
5
5
  AgentRuntimeEventSchema2
6
6
  } from "./index-paff5y0r.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./index-1eeqpadm.js";
15
15
  import {
16
16
  assertPositiveSafeInteger
17
- } from "./index-kzavdze2.js";
17
+ } from "./index-gr0kxymw.js";
18
18
 
19
19
  // src/files/regular-file.ts
20
20
  import { constants, openSync } from "node:fs";
@@ -19,10 +19,10 @@ import {
19
19
  assertRawBodyEndpoint,
20
20
  assertSafelistedBodyEndpoint,
21
21
  assertResponseMetaEndpoint
22
- } from "./index-en8e5zsj.js";
22
+ } from "./index-ryxb427v.js";
23
23
  import {
24
24
  assertPositiveSafeInteger
25
- } from "./index-kzavdze2.js";
25
+ } from "./index-gr0kxymw.js";
26
26
  import {
27
27
  isRecord
28
28
  } from "./index-ps3djm8d.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-877e9y8r.js";
4
4
  import {
5
5
  assertPositiveSafeInteger
6
- } from "./index-kzavdze2.js";
6
+ } from "./index-gr0kxymw.js";
7
7
 
8
8
  // src/internal/bounded-lines.ts
9
9
  var DEFAULT_STREAM_LINE_BYTES = 1024 * 1024;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startNativeCommand
3
- } from "./index-7kfcb576.js";
3
+ } from "./index-qa2jjb65.js";
4
4
  import {
5
5
  raceAbort
6
6
  } from "./index-rptj3qnc.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  projectToolSurface
3
- } from "./index-3ypvpkwr.js";
3
+ } from "./index-669374qc.js";
4
4
 
5
5
  // src/tools/manifest.ts
6
6
  function utf8Length(value) {
@@ -27,7 +27,7 @@ import {
27
27
  } from "./index-akfgymyr.js";
28
28
  import {
29
29
  assertInputRecursionDepth
30
- } from "./index-en8e5zsj.js";
30
+ } from "./index-ryxb427v.js";
31
31
  import {
32
32
  AppError2
33
33
  } from "./index-9pv126eh.js";
@@ -10,7 +10,7 @@ import {
10
10
  parseToolCallArguments,
11
11
  toolResultFromError,
12
12
  observed
13
- } from "./index-rxnyygke.js";
13
+ } from "./index-n3bm7zqq.js";
14
14
  import {
15
15
  toolSurfaceOutputSchema,
16
16
  staticInputRounds,
@@ -18,12 +18,12 @@ import {
18
18
  validateResolvedInputRounds,
19
19
  presentationMetadata,
20
20
  prepareProjectedMcpTools
21
- } from "./index-3ypvpkwr.js";
21
+ } from "./index-669374qc.js";
22
22
  import {
23
23
  collectTools2,
24
24
  createToolRunner,
25
25
  formatToolError
26
- } from "./index-gf92hc87.js";
26
+ } from "./index-fgahdc7s.js";
27
27
  import {
28
28
  publishedToolAnnotations
29
29
  } from "./index-0x4mnwg5.js";
@@ -51,7 +51,7 @@ import {
51
51
  } from "./index-tazm4dxf.js";
52
52
  import {
53
53
  collectToolSurface
54
- } from "./index-4j8efqr3.js";
54
+ } from "./index-x2fb37t0.js";
55
55
  import {
56
56
  runWithRequestContext2,
57
57
  getRequestContext2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertPositiveSafeInteger
3
- } from "./index-kzavdze2.js";
3
+ } from "./index-gr0kxymw.js";
4
4
 
5
5
  // src/primitives/decimal.ts
6
6
  import { z } from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-877e9y8r.js";
4
4
  import {
5
5
  assertPositiveSafeInteger
6
- } from "./index-kzavdze2.js";
6
+ } from "./index-gr0kxymw.js";
7
7
  import {
8
8
  abortReason,
9
9
  raceAbort
@@ -4,18 +4,18 @@ import {
4
4
  } from "./index-2nwvn7m2.js";
5
5
  import {
6
6
  writeFileAtomicSync2
7
- } from "./index-t7wa7k12.js";
7
+ } from "./index-pp97q86a.js";
8
8
  import {
9
9
  fetchGuarded,
10
10
  PrivateAddressRefusal,
11
11
  readCapped
12
- } from "./index-9y0afd5f.js";
12
+ } from "./index-apf5g7y9.js";
13
13
  import {
14
14
  serializeCanonicalJson
15
15
  } from "./index-fmzg39a8.js";
16
16
  import {
17
17
  assertPositiveSafeInteger
18
- } from "./index-kzavdze2.js";
18
+ } from "./index-gr0kxymw.js";
19
19
  import {
20
20
  assertTimerMs,
21
21
  withSignalDeadline
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-2nwvn7m2.js";
4
4
  import {
5
5
  writeAtomicFileData
6
- } from "./index-t7wa7k12.js";
6
+ } from "./index-pp97q86a.js";
7
7
  import {
8
8
  publishAtomicFile
9
9
  } from "./index-2c5w2d1d.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./index-jj9228tt.js";
16
16
  import {
17
17
  assertPositiveSafeInteger
18
- } from "./index-kzavdze2.js";
18
+ } from "./index-gr0kxymw.js";
19
19
 
20
20
  // src/application/file-state-store.ts
21
21
  import { mkdir, open, unlink } from "node:fs/promises";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  RegularFileError2,
3
3
  readRegularFile2
4
- } from "./index-pwskmywy.js";
4
+ } from "./index-21cfxc4z.js";
5
5
  import {
6
6
  runNativeCommand2
7
- } from "./index-5ptwb6ka.js";
7
+ } from "./index-pzhqydxb.js";
8
8
  import {
9
9
  writeFileAtomic2
10
- } from "./index-t7wa7k12.js";
10
+ } from "./index-pp97q86a.js";
11
11
  import {
12
12
  errnoOf
13
13
  } from "./index-jj9228tt.js";
@@ -196,7 +196,9 @@ var ExecutorReconcileSchema2 = z3.enum(["client-id", "none"]);
196
196
  var PlanWindowSchema2 = z3.strictObject({
197
197
  name: Name,
198
198
  usedPercent: z3.number().min(0).max(100),
199
- resetsAt: z3.iso.datetime({ offset: true }).optional()
199
+ resetsAt: z3.iso.datetime({ offset: true }).optional(),
200
+ windowDurationMins: z3.int().positive().optional(),
201
+ label: Name.optional()
200
202
  });
201
203
  var PlanLimitsSchema2 = z3.strictObject({
202
204
  answer: z3.enum(["known", "no-plan-limit", "unpublished"]),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readBoundedChunks
3
- } from "./index-xmr47znh.js";
3
+ } from "./index-827bgv33.js";
4
4
  import {
5
5
  assertTimerMs,
6
6
  startIdleTimer
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PlanWindowSchema2,
3
3
  PlanLimitsSchema2
4
- } from "./index-bh4pmtr9.js";
4
+ } from "./index-afb6z77w.js";
5
5
 
6
6
  // src/agent-executor/plan-limits.ts
7
7
  function planWindowExpired2(window, now) {
@@ -21,7 +21,7 @@ import {
21
21
  AgentSandboxRestrictionSchema2,
22
22
  AgentSandboxGradeSchema2,
23
23
  AGENT_CODING_TOOL_NAMES
24
- } from "./index-wavv538x.js";
24
+ } from "./index-ybdq8kk2.js";
25
25
  import {
26
26
  AgentRuntimeHeadSchema2,
27
27
  AgentStoredRunSchema2,
@@ -70,7 +70,7 @@ import {
70
70
  } from "./index-snef22zr.js";
71
71
  import {
72
72
  assertPositiveSafeInteger
73
- } from "./index-kzavdze2.js";
73
+ } from "./index-gr0kxymw.js";
74
74
 
75
75
  // src/agent-runtime/branch-contract.ts
76
76
  import { z as z2 } from "zod";
@@ -25,7 +25,7 @@ import {
25
25
  replaceMessage,
26
26
  ArchiveSpillSchema,
27
27
  createAgentRuntimeStore2
28
- } from "./index-g3e57qj6.js";
28
+ } from "./index-dcsxj68j.js";
29
29
 
30
30
  // src/agent-runtime/store-memory.ts
31
31
  import { z as z2 } from "zod";
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  toolErrorFromResult,
7
7
  executeToolMethod
8
- } from "./index-rxnyygke.js";
8
+ } from "./index-n3bm7zqq.js";
9
9
  import {
10
10
  assertToolExtensionCompatible,
11
11
  projectToolSurface
12
- } from "./index-3ypvpkwr.js";
12
+ } from "./index-669374qc.js";
13
13
  import {
14
14
  isRetryableStatus2
15
15
  } from "./index-9pv126eh.js";
@@ -5,6 +5,10 @@ function assertSafeIntegerFrom(least, rule, name, value, errorType, options) {
5
5
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < least)
6
6
  throw new errorType(`${name} ${rule}, received ${value}`);
7
7
  }
8
+ function isPositiveSafeInteger(value) {
9
+ const least = 1;
10
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= least;
11
+ }
8
12
  function assertPositiveSafeInteger(name, value, errorType = TypeError, options = {}) {
9
13
  assertSafeIntegerFrom(1, "must be a positive safe integer", name, value, errorType, options);
10
14
  }
@@ -12,4 +16,4 @@ function assertNonNegativeSafeInteger(name, value, errorType = TypeError, option
12
16
  assertSafeIntegerFrom(0, "must be a non-negative safe integer", name, value, errorType, options);
13
17
  }
14
18
 
15
- export { assertPositiveSafeInteger, assertNonNegativeSafeInteger };
19
+ export { isPositiveSafeInteger, assertPositiveSafeInteger, assertNonNegativeSafeInteger };
@@ -19,12 +19,12 @@ import {
19
19
  isAbortLikeError,
20
20
  classifyUnixTransportRetry,
21
21
  parseApiErrorBody
22
- } from "./index-rhb33thr.js";
22
+ } from "./index-jcge9tx3.js";
23
23
  import {
24
24
  DEFAULT_STREAM_LINE_BYTES,
25
25
  createBoundedLineDecoder,
26
26
  readBoundedUtf8Lines
27
- } from "./index-sfzfd2m2.js";
27
+ } from "./index-39rmc00v.js";
28
28
  import {
29
29
  inputIsQuery
30
30
  } from "./index-xhzq2qvj.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./index-jj9228tt.js";
18
18
  import {
19
19
  assertNonNegativeSafeInteger
20
- } from "./index-kzavdze2.js";
20
+ } from "./index-gr0kxymw.js";
21
21
  import {
22
22
  randomHex
23
23
  } from "./index-c9d05kvt.js";
@@ -334,7 +334,7 @@ function assertExpectedOwnerUid(uid, caller) {
334
334
  throw new TypeError(`[stitchkit] ${caller}: expectedOwnerUid must be a 32-bit unsigned integer (0..${MAX_POSIX_UID}), got ${String(uid)}`);
335
335
  }
336
336
  }
337
- function directoryPrivacyViolation(dir, stats, caller, expectedUid) {
337
+ function unixSocketDirectoryViolation(dir, stats, caller, expectedUid) {
338
338
  if (stats.isSymbolicLink()) {
339
339
  return `[stitchkit] ${caller}: unix socket directory "${dir}" must not be a symlink`;
340
340
  }
@@ -357,7 +357,7 @@ function assertPrivateUnixSocketDirectory(socketPath, caller) {
357
357
  if (stats === undefined) {
358
358
  throw new Error(`[stitchkit] ${caller}: unix socket directory "${dir}" does not exist`);
359
359
  }
360
- const violation = directoryPrivacyViolation(dir, stats, caller);
360
+ const violation = unixSocketDirectoryViolation(dir, stats, caller);
361
361
  if (violation !== undefined)
362
362
  throw new Error(violation);
363
363
  }
@@ -383,7 +383,7 @@ function assertUnixSocketClientTarget(socketPath, caller = "createUnixClientTran
383
383
  const dirStats = statForClientTarget(dir, "directory", caller, socketPath);
384
384
  if (dirStats === undefined)
385
385
  return;
386
- const dirViolation = directoryPrivacyViolation(dir, dirStats, caller, requiredUid);
386
+ const dirViolation = unixSocketDirectoryViolation(dir, dirStats, caller, requiredUid);
387
387
  if (dirViolation !== undefined)
388
388
  refuse(dirViolation);
389
389
  const socketStats = statForClientTarget(socketPath, "path", caller, socketPath);
@@ -484,4 +484,4 @@ function bindUnixSocket2(socket, bind) {
484
484
  return bound;
485
485
  }
486
486
 
487
- export { withUnixSocketLockSync, assertUnixSocketMode, unlinkUnixSocketIfMatching, unlinkUnixSocketIfOwned, assertUnixSocketPathLength, assertExpectedOwnerUid, assertPrivateUnixSocketDirectory, assertUnixSocketClientTarget, publishStagedUnixSocket, bindUnixSocket2 };
487
+ export { withUnixSocketLockSync, assertUnixSocketMode, unlinkUnixSocketIfMatching, unlinkUnixSocketIfOwned, assertUnixSocketPathLength, assertExpectedOwnerUid, unixSocketDirectoryViolation, assertPrivateUnixSocketDirectory, assertUnixSocketClientTarget, publishStagedUnixSocket, bindUnixSocket2 };
@@ -7,7 +7,7 @@ import {
7
7
  decodeJsonText,
8
8
  parseJsonText,
9
9
  validateJsonValue
10
- } from "./index-pwskmywy.js";
10
+ } from "./index-21cfxc4z.js";
11
11
  import {
12
12
  messageOf
13
13
  } from "./index-r9kq5ark.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./index-jj9228tt.js";
20
20
  import {
21
21
  assertPositiveSafeInteger
22
- } from "./index-kzavdze2.js";
22
+ } from "./index-gr0kxymw.js";
23
23
 
24
24
  // src/files/json-file-reading.ts
25
25
  var VALUE_REFUSALS = new Set([
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-y7sy1xdp.js";
11
11
  import {
12
12
  utf8ByteLength
13
- } from "./index-xmr47znh.js";
13
+ } from "./index-827bgv33.js";
14
14
  import {
15
15
  isRecord,
16
16
  transportResult
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-yt1gg11x.js";
4
4
  import {
5
5
  projectToolSurface
6
- } from "./index-3ypvpkwr.js";
6
+ } from "./index-669374qc.js";
7
7
  import {
8
8
  contractOnlyService
9
9
  } from "./index-wa6h4tz6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeFileAtomic2
3
- } from "./index-t7wa7k12.js";
3
+ } from "./index-pp97q86a.js";
4
4
  import {
5
5
  errnoOf
6
6
  } from "./index-jj9228tt.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  applyToolViewDefaults,
16
16
  projectToolView
17
- } from "./index-3ypvpkwr.js";
17
+ } from "./index-669374qc.js";
18
18
  import {
19
19
  runWithRequestContext2,
20
20
  getRequestContext2
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveToolAccess,
3
3
  toolErrorFromResult
4
- } from "./index-rxnyygke.js";
4
+ } from "./index-n3bm7zqq.js";
5
5
  import {
6
6
  assertUniqueToolName
7
- } from "./index-3ypvpkwr.js";
7
+ } from "./index-669374qc.js";
8
8
  import {
9
9
  collectTools2,
10
10
  createToolRunner
11
- } from "./index-gf92hc87.js";
11
+ } from "./index-fgahdc7s.js";
12
12
  import {
13
13
  AppError2
14
14
  } from "./index-9pv126eh.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-yt1gg11x.js";
8
8
  import {
9
9
  defineContract2
10
- } from "./index-d4svrknj.js";
10
+ } from "./index-39c2hj6h.js";
11
11
  import {
12
12
  canonicalDigest
13
13
  } from "./index-3dq8466w.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./index-s2e3h616.js";
14
14
  import {
15
15
  stagingPath
16
- } from "./index-39n02e0q.js";
16
+ } from "./index-psye60qn.js";
17
17
  import {
18
18
  errnoOf
19
19
  } from "./index-jj9228tt.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-jj9228tt.js";
4
4
  import {
5
5
  assertPositiveSafeInteger
6
- } from "./index-kzavdze2.js";
6
+ } from "./index-gr0kxymw.js";
7
7
 
8
8
  // src/internal/atomic-staging.ts
9
9
  import { randomBytes } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startNativeCommand
3
- } from "./index-7kfcb576.js";
3
+ } from "./index-qa2jjb65.js";
4
4
 
5
5
  // src/process/command.ts
6
6
  function runNativeCommand2(input) {
@@ -17,7 +17,7 @@ import {
17
17
  } from "./index-jj9228tt.js";
18
18
  import {
19
19
  assertPositiveSafeInteger
20
- } from "./index-kzavdze2.js";
20
+ } from "./index-gr0kxymw.js";
21
21
  import {
22
22
  monotonicTimerClock,
23
23
  scheduleAt,
@@ -7,7 +7,7 @@ import {
7
7
  nextEventSeqByMaximum,
8
8
  agentSqlTables,
9
9
  createAgentRuntimeStore2
10
- } from "./index-g3e57qj6.js";
10
+ } from "./index-dcsxj68j.js";
11
11
  import {
12
12
  canonicalAgentJson2
13
13
  } from "./index-9xr44d2g.js";
@@ -22,7 +22,7 @@ import {
22
22
  scanSqlRecoverable,
23
23
  listSqlConversations,
24
24
  pageSqlConversationMessages
25
- } from "./index-3tnwtz38.js";
25
+ } from "./index-zhshhxew.js";
26
26
  import {
27
27
  rollbackSqliteFailure
28
28
  } from "./index-ttexdtjj.js";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./index-0p0s5hrj.js";
5
5
  import {
6
6
  createAgentRuntimeEventSink2
7
- } from "./index-wv8dqy7q.js";
7
+ } from "./index-205456mf.js";
8
8
  import {
9
9
  assertPositiveSafeInteger
10
- } from "./index-kzavdze2.js";
10
+ } from "./index-gr0kxymw.js";
11
11
 
12
12
  // src/agent-runtime/harness-control.ts
13
13
  function reportAgentControlError(config, error, context) {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  writeAllBytes,
10
10
  writeAtomicFileStaged
11
- } from "./index-t7wa7k12.js";
11
+ } from "./index-pp97q86a.js";
12
12
  import {
13
13
  AtomicFilePublicationError2
14
14
  } from "./index-2c5w2d1d.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./index-jj9228tt.js";
22
22
  import {
23
23
  assertPositiveSafeInteger
24
- } from "./index-kzavdze2.js";
24
+ } from "./index-gr0kxymw.js";
25
25
  import {
26
26
  assertTimerMs
27
27
  } from "./index-agy5fqgf.js";