@kitman-sh/cli 0.11.0-rc.4 → 0.11.0-rc.6

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 (26) hide show
  1. package/dist/{chunk-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
  2. package/dist/{chunk-7d8prq0a.js → chunk-248msks2.js} +4 -4
  3. package/dist/{chunk-znh6xbze.js → chunk-3d4d52e5.js} +177 -28
  4. package/dist/{chunk-pqz98b85.js → chunk-5hx3j5x8.js} +5 -5
  5. package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
  6. package/dist/{chunk-9ew87kjc.js → chunk-6pyxykt1.js} +212 -7
  7. package/dist/{chunk-nb36pw5d.js → chunk-7fbpsnt7.js} +8 -8
  8. package/dist/{chunk-k6mfj25g.js → chunk-9a2r12ye.js} +3 -3
  9. package/dist/{chunk-y0q2574w.js → chunk-b6m9rfzj.js} +12 -12
  10. package/dist/{chunk-6zrq5xq2.js → chunk-bs81bt3q.js} +7 -7
  11. package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
  12. package/dist/{chunk-k2b10qys.js → chunk-cnzz61ta.js} +19 -19
  13. package/dist/{chunk-kbhm8p3c.js → chunk-d9bv70qb.js} +5 -5
  14. package/dist/{chunk-0h5et1rg.js → chunk-egb7pjjz.js} +6 -6
  15. package/dist/{chunk-anf9ddey.js → chunk-japwbj9n.js} +2 -2
  16. package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
  17. package/dist/{chunk-4ngdyd3k.js → chunk-q9pbynx3.js} +17 -17
  18. package/dist/{chunk-cbwmsy27.js → chunk-rtqdqr0v.js} +114 -464
  19. package/dist/{chunk-2sfgqfgq.js → chunk-sk6ceghr.js} +2 -2
  20. package/dist/{chunk-2aj4ym2c.js → chunk-vkgqtwqm.js} +7 -7
  21. package/dist/{chunk-tx61h9d8.js → chunk-vmv7gwwr.js} +6 -6
  22. package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
  23. package/dist/{chunk-dc681k94.js → chunk-x7b9bwk6.js} +4 -4
  24. package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,6 +38,7 @@ import {
38
38
  fnUntraced,
39
39
  makeFormatterStandardSchemaV1,
40
40
  transform,
41
+ declare,
41
42
  is,
42
43
  encodeEffect,
43
44
  isSchema,
@@ -45,6 +46,7 @@ import {
45
46
  optional,
46
47
  Literal,
47
48
  Never,
49
+ Null,
48
50
  String4,
49
51
  Boolean2,
50
52
  Void,
@@ -70,15 +72,24 @@ import {
70
72
  Cause,
71
73
  Class2,
72
74
  TaggedError2,
75
+ toEquivalence,
73
76
  toCodecJson,
74
77
  Json
75
- } from "./chunk-txyp31q5.js";
78
+ } from "./chunk-vtfwjhzh.js";
76
79
  import {
77
80
  guard
78
- } from "./chunk-bv9e34qz.js";
81
+ } from "./chunk-0qz10ek8.js";
79
82
  import {
80
83
  currentTimeMillis,
81
84
  WebCrypto,
85
+ SafeJson,
86
+ AgentSandboxNetwork,
87
+ AgentEfforts,
88
+ AgentCapabilities,
89
+ LoopDataSchemaRef,
90
+ LoopVersion,
91
+ ProgramLoop,
92
+ AgentFallback,
82
93
  ProgramWorkUnit,
83
94
  MeasureEvidence,
84
95
  CatchUp,
@@ -90,15 +101,15 @@ import {
90
101
  bodyUint8Array,
91
102
  filterStatusOk,
92
103
  HttpClient,
93
- LoopCapabilities,
94
- LoopManifest,
104
+ KitName,
105
+ KitDigest,
95
106
  KitSetup,
96
107
  RunnerRpcError
97
- } from "./chunk-cbwmsy27.js";
108
+ } from "./chunk-rtqdqr0v.js";
98
109
  import {
99
110
  runForEach,
100
111
  FileSystem
101
- } from "./chunk-znh6xbze.js";
112
+ } from "./chunk-3d4d52e5.js";
102
113
 
103
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
104
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -124,6 +135,200 @@ var sha256 = {
124
135
  implementation: undefined
125
136
  };
126
137
 
138
+ // packages/core/src/schedule.ts
139
+ var ScheduleFrequency = ["daily", "weekly"];
140
+ var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
141
+ var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
142
+ var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
143
+ var ScheduleCalendarRule = Struct({
144
+ frequency: Literals(ScheduleFrequency),
145
+ hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
146
+ minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
147
+ second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
148
+ daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
149
+ });
150
+ var ScheduleCronRule = Struct({
151
+ cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
152
+ });
153
+ var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
154
+ var cronBounds = [
155
+ [0, 59],
156
+ [0, 23],
157
+ [1, 31],
158
+ [1, 12],
159
+ [0, 7]
160
+ ];
161
+ function cronField(field, [min, max]) {
162
+ const values = new Set;
163
+ for (const part of field.split(",")) {
164
+ const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
165
+ if (match === null)
166
+ return;
167
+ const from = match[1] === "*" ? min : Number(match[2]);
168
+ const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
169
+ const step = match[4] === undefined ? 1 : Number(match[4]);
170
+ if (from < min || to > max || from > to || step < 1)
171
+ return;
172
+ for (let value = from;value <= to; value += step)
173
+ values.add(value);
174
+ }
175
+ return values;
176
+ }
177
+ function parseCron(cron) {
178
+ const fields = cron.split(" ");
179
+ const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
180
+ if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
181
+ return;
182
+ return {
183
+ minutes,
184
+ hours,
185
+ days,
186
+ months,
187
+ weekdays: new Set([...weekdays].map((value) => value % 7)),
188
+ dayRestricted: !(fields[2] ?? "").startsWith("*"),
189
+ weekdayRestricted: !(fields[4] ?? "").startsWith("*")
190
+ };
191
+ }
192
+ function isScheduleRule(value) {
193
+ return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
194
+ }
195
+ var ScheduleVersion = Struct({
196
+ contractVersion: Literal("schedule.v1"),
197
+ id: String4.check(isMinLength(1)),
198
+ scheduleId: String4.check(isMinLength(1)),
199
+ workspaceId: String4.check(isMinLength(1)),
200
+ teamId: optionalKey(String4.check(isMinLength(1))),
201
+ loopId: optionalKey(String4.check(isMinLength(1))),
202
+ name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
203
+ version: Int.check(isGreaterThanOrEqualTo(1)),
204
+ status: Literals(ScheduleVersionStatuses),
205
+ timezone: String4.check(isMinLength(1), isMaxLength(80)),
206
+ rule: ScheduleRule,
207
+ misfirePolicy: Literals(ScheduleMisfirePolicies),
208
+ overlapPolicy: Literals(ScheduleOverlapPolicies),
209
+ maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
210
+ misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
211
+ inputSchemaRef: optionalKey(LoopDataSchemaRef),
212
+ input: optionalKey(SafeJson),
213
+ createdAt: String4.check(isMinLength(1))
214
+ });
215
+ var zones = new Map;
216
+ var resolvedLocalDateTimes = new Map;
217
+
218
+ // packages/core/src/kit-declarations.ts
219
+ var LoopCapabilities = [
220
+ "agent_work",
221
+ "ask",
222
+ "call",
223
+ "verify",
224
+ "change_request",
225
+ "write_back",
226
+ "post_comment",
227
+ "create_tasks",
228
+ "merge_change_request",
229
+ "approve_change_request",
230
+ "publish_release",
231
+ "read_transcripts",
232
+ "read_change_request",
233
+ "measure",
234
+ "claim",
235
+ "propose",
236
+ "read_project",
237
+ "draft_update"
238
+ ];
239
+ var JsonObject = Record(String4, Json);
240
+ var SecretName = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
241
+ var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
242
+ var LoopManifest = Struct({
243
+ id: String4,
244
+ title: String4,
245
+ version: optionalKey(LoopVersion),
246
+ input: JsonObject,
247
+ output: JsonObject,
248
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
249
+ agents: Record(String4, String4),
250
+ checkout: Literals(["none", "read", "write"]),
251
+ when: ArraySchema(Struct({
252
+ event: String4,
253
+ filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
254
+ input: Record(String4, String4),
255
+ values: optionalKey(JsonObject)
256
+ })),
257
+ offers: ArraySchema(Struct({
258
+ id: String4,
259
+ title: String4,
260
+ loop: String4,
261
+ from: optionalKey(String4)
262
+ })),
263
+ capabilities: ArraySchema(Literals(LoopCapabilities)),
264
+ ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
265
+ secrets: optionalKey(ArraySchema(SecretName)),
266
+ network: optionalKey(AgentSandboxNetwork),
267
+ schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
268
+ });
269
+ var LoopDetail = Struct({
270
+ id: String4,
271
+ resolved: optionalKey(Struct({
272
+ ...ProgramLoop.fields,
273
+ agents: LoopManifest.fields.agents,
274
+ when: LoopManifest.fields.when,
275
+ schedule: optionalKey(Struct({
276
+ rule: ScheduleRule,
277
+ timezone: String4,
278
+ on: Boolean2,
279
+ nextRunAt: optionalKey(String4)
280
+ }))
281
+ }))
282
+ });
283
+ var AgentDeclaration = Struct({
284
+ extends: optionalKey(String4),
285
+ instructions: optionalKey(String4),
286
+ harness: optionalKey(String4),
287
+ model: optionalKey(String4),
288
+ effort: optionalKey(Literals(AgentEfforts)),
289
+ fallbacks: optionalKey(ArraySchema(AgentFallback)),
290
+ tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
291
+ skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
292
+ network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
293
+ sandbox: optionalKey(Literal("docker"))
294
+ });
295
+ var scheduleFields = {
296
+ name: String4.check(isMinLength(1)),
297
+ loop: String4,
298
+ team: optionalKey(String4),
299
+ input: optionalKey(JsonObject),
300
+ timezone: String4,
301
+ misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
302
+ overlap: optionalKey(Literals(ScheduleOverlapPolicies))
303
+ };
304
+ var ScheduleDeclaration = Union([
305
+ Struct({
306
+ ...scheduleFields,
307
+ cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
308
+ }),
309
+ Struct({
310
+ ...scheduleFields,
311
+ rule: declare((value) => isScheduleRule(value), {
312
+ expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
313
+ })
314
+ })
315
+ ]);
316
+ var CarriedKit = Struct({
317
+ name: KitName,
318
+ version: String4.check(isMinLength(1)),
319
+ setup: KitDigest,
320
+ loops: ArraySchema(String4),
321
+ agents: ArraySchema(String4)
322
+ });
323
+ var KitDeclarations = Struct({
324
+ loops: ArraySchema(LoopManifest),
325
+ agents: Record(String4, AgentDeclaration),
326
+ schedules: optionalKey(Record(String4, ScheduleDeclaration)),
327
+ carried: optionalKey(ArraySchema(CarriedKit))
328
+ });
329
+ var sameLoop = toEquivalence(LoopManifest);
330
+ var sameAgent = toEquivalence(AgentDeclaration);
331
+
127
332
  // packages/sdk/src/loop/define.ts
128
333
  var LoopOutcome = Literals([
129
334
  "feature",
@@ -931,4 +1136,4 @@ var redirectStatuses = new Set([301, 302, 303, 307, 308]);
931
1136
  var readStdin = tryPromise(() => Bun.stdin.text());
932
1137
  var isWorkUnit = guard(ProgramWorkUnit);
933
1138
 
934
- export { uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
1139
+ export { AgentDeclaration, KitDeclarations, uploadRunFile, programLease, rpcRunFiles, describeFlag, Described, programHostsEnv, undeclaredHostsEnv };
@@ -12,30 +12,30 @@ import {
12
12
  orElseSucceed,
13
13
  decodeJsonString,
14
14
  encodePrettyJsonString
15
- } from "./chunk-txyp31q5.js";
16
- import"./chunk-bv9e34qz.js";
15
+ } from "./chunk-vtfwjhzh.js";
16
+ import"./chunk-0qz10ek8.js";
17
17
  import {
18
18
  isJsonObject
19
- } from "./chunk-xmq9zpr1.js";
19
+ } from "./chunk-c6rbt85q.js";
20
20
  import {
21
21
  FileSystem,
22
22
  Path
23
- } from "./chunk-znh6xbze.js";
23
+ } from "./chunk-3d4d52e5.js";
24
24
  import {
25
25
  tomlTableHeader2,
26
26
  tomlKeyPath2,
27
27
  kitmanSkillEntry,
28
28
  isPathWithin2
29
- } from "./chunk-pqz98b85.js";
29
+ } from "./chunk-5hx3j5x8.js";
30
30
  import {
31
31
  instructionsStart,
32
32
  instructionsEnd,
33
33
  renderMcpServer,
34
34
  materializeKitSetup,
35
35
  tomlInline
36
- } from "./chunk-cbwmsy27.js";
37
- import"./chunk-k6mfj25g.js";
38
- import"./chunk-2sfgqfgq.js";
36
+ } from "./chunk-rtqdqr0v.js";
37
+ import"./chunk-9a2r12ye.js";
38
+ import"./chunk-sk6ceghr.js";
39
39
 
40
40
  // packages/agent-runtime/src/kit-setup-sync.ts
41
41
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-txyp31q5.js";
27
+ } from "./chunk-vtfwjhzh.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-znh6xbze.js";
31
+ } from "./chunk-3d4d52e5.js";
32
32
  import {
33
33
  digestSha256,
34
34
  digestSha512,
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-cbwmsy27.js";
41
+ } from "./chunk-rtqdqr0v.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -32,9 +32,9 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-txyp31q5.js";
36
- import"./chunk-bv9e34qz.js";
37
- import"./chunk-xmq9zpr1.js";
35
+ } from "./chunk-vtfwjhzh.js";
36
+ import"./chunk-0qz10ek8.js";
37
+ import"./chunk-c6rbt85q.js";
38
38
  import {
39
39
  SecureRandom,
40
40
  layerWebCrypto,
@@ -44,11 +44,9 @@ import {
44
44
  filterStatusOk,
45
45
  get2,
46
46
  layer4,
47
- AgentDeclaration,
48
- KitDeclarations,
49
47
  kitmanMcpServer,
50
48
  RunnerRpcProtocolVersion
51
- } from "./chunk-cbwmsy27.js";
49
+ } from "./chunk-rtqdqr0v.js";
52
50
  import {
53
51
  decodeText,
54
52
  mkString,
@@ -56,21 +54,23 @@ import {
56
54
  Path,
57
55
  withDefault,
58
56
  String2
59
- } from "./chunk-znh6xbze.js";
57
+ } from "./chunk-3d4d52e5.js";
60
58
  import {
61
59
  Packument,
62
60
  tarballMatches
63
- } from "./chunk-k6mfj25g.js";
64
- import"./chunk-7d8prq0a.js";
61
+ } from "./chunk-9a2r12ye.js";
62
+ import"./chunk-248msks2.js";
65
63
  import {
64
+ AgentDeclaration,
65
+ KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-9ew87kjc.js";
68
+ } from "./chunk-6pyxykt1.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
71
  make3
72
- } from "./chunk-2sfgqfgq.js";
73
- import"./chunk-0h5et1rg.js";
72
+ } from "./chunk-sk6ceghr.js";
73
+ import"./chunk-egb7pjjz.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -107,7 +107,7 @@ import {
107
107
  decodeJsonStringOption,
108
108
  encodeJsonStringSync,
109
109
  encodePrettyJsonString
110
- } from "./chunk-txyp31q5.js";
110
+ } from "./chunk-vtfwjhzh.js";
111
111
  import {
112
112
  currentTimeMillis,
113
113
  SecureRandom,
@@ -159,13 +159,13 @@ import {
159
159
  runMcpEffect,
160
160
  createAgentAuthSignedFetch,
161
161
  setupMcpAgentCredential
162
- } from "./chunk-cbwmsy27.js";
162
+ } from "./chunk-rtqdqr0v.js";
163
163
  import {
164
164
  guard,
165
165
  Id,
166
166
  Timestamp,
167
167
  ActorType
168
- } from "./chunk-bv9e34qz.js";
168
+ } from "./chunk-0qz10ek8.js";
169
169
  import {
170
170
  toJsonValue,
171
171
  isOneOf,
@@ -178,7 +178,7 @@ import {
178
178
  isJsonObject,
179
179
  isString,
180
180
  kindOf
181
- } from "./chunk-xmq9zpr1.js";
181
+ } from "./chunk-c6rbt85q.js";
182
182
  import {
183
183
  join,
184
184
  interrupt,
@@ -192,17 +192,17 @@ import {
192
192
  withDefault,
193
193
  option,
194
194
  String2
195
- } from "./chunk-znh6xbze.js";
195
+ } from "./chunk-3d4d52e5.js";
196
196
  import {
197
197
  nextInt
198
- } from "./chunk-bj73db3f.js";
198
+ } from "./chunk-nzjb36ad.js";
199
199
  import {
200
200
  layerJson,
201
201
  make4,
202
202
  withHeaders,
203
203
  layerProtocolSocket,
204
204
  ConnectionHooks
205
- } from "./chunk-0h5et1rg.js";
205
+ } from "./chunk-egb7pjjz.js";
206
206
 
207
207
  // apps/cli/src/mcp.ts
208
208
  import { tmpdir as tmpdir2 } from "os";
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-txyp31q5.js";
11
+ } from "./chunk-vtfwjhzh.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -6,7 +6,7 @@ import {
6
6
  isObject,
7
7
  isJsonObject,
8
8
  isString
9
- } from "./chunk-xmq9zpr1.js";
9
+ } from "./chunk-c6rbt85q.js";
10
10
  import {
11
11
  pipeArguments,
12
12
  dual,
@@ -48,7 +48,7 @@ import {
48
48
  isFailure2,
49
49
  hasInterrupts,
50
50
  makeUnsafe5,
51
- make15,
51
+ make16,
52
52
  _await,
53
53
  fail5,
54
54
  isDoneUnsafe,
@@ -168,12 +168,12 @@ import {
168
168
  encodePrettyJsonString,
169
169
  decodeJsonStringSync,
170
170
  encodeUnknownJsonStringSync
171
- } from "./chunk-txyp31q5.js";
171
+ } from "./chunk-vtfwjhzh.js";
172
172
  import {
173
173
  Id,
174
174
  secretReference,
175
175
  secretPlaceholder
176
- } from "./chunk-bv9e34qz.js";
176
+ } from "./chunk-0qz10ek8.js";
177
177
  import {
178
178
  currentTimeMillis,
179
179
  SecureRandom,
@@ -246,7 +246,7 @@ import {
246
246
  installCommand,
247
247
  checkServicesFile,
248
248
  checkServices
249
- } from "./chunk-cbwmsy27.js";
249
+ } from "./chunk-rtqdqr0v.js";
250
250
  import {
251
251
  join,
252
252
  interrupt,
@@ -255,7 +255,7 @@ import {
255
255
  unbounded2,
256
256
  offer,
257
257
  makeUnsafe3,
258
- make10,
258
+ make11,
259
259
  fromQueue,
260
260
  fromPubSub,
261
261
  map2,
@@ -286,7 +286,7 @@ import {
286
286
  writeSrtSettings2,
287
287
  srtStepArgv2,
288
288
  srtArgv2
289
- } from "./chunk-znh6xbze.js";
289
+ } from "./chunk-3d4d52e5.js";
290
290
  import {
291
291
  writeAgentEnvironmentConfigFile2,
292
292
  readManifestSkillPaths2,
@@ -302,8 +302,8 @@ import {
302
302
  applyAgentEnvironmentMaterialization2,
303
303
  isPathWithin2,
304
304
  skillIdentity2
305
- } from "./chunk-pqz98b85.js";
306
- import"./chunk-k6mfj25g.js";
305
+ } from "./chunk-5hx3j5x8.js";
306
+ import"./chunk-9a2r12ye.js";
307
307
  import {
308
308
  egressAllowed,
309
309
  writeSecretRegistry,
@@ -313,7 +313,7 @@ import {
313
313
  secretFilter2,
314
314
  opaqueTunnelRefusal2,
315
315
  isOpaqueConnectReason2
316
- } from "./chunk-cegdw7gw.js";
316
+ } from "./chunk-5j848ckb.js";
317
317
  import {
318
318
  sliceBytes2,
319
319
  maxLineBytes2,
@@ -321,23 +321,23 @@ import {
321
321
  decodedOption2,
322
322
  decoded2,
323
323
  readOpencode2
324
- } from "./chunk-tx61h9d8.js";
324
+ } from "./chunk-vmv7gwwr.js";
325
325
  import {
326
326
  uploadRunFile,
327
327
  programLease,
328
328
  rpcRunFiles,
329
329
  programHostsEnv,
330
330
  undeclaredHostsEnv
331
- } from "./chunk-9ew87kjc.js";
332
- import"./chunk-7d8prq0a.js";
331
+ } from "./chunk-6pyxykt1.js";
332
+ import"./chunk-248msks2.js";
333
333
  import {
334
334
  nextInt
335
- } from "./chunk-bj73db3f.js";
335
+ } from "./chunk-nzjb36ad.js";
336
336
  import {
337
337
  ChildProcessSpawner,
338
338
  make3
339
- } from "./chunk-2sfgqfgq.js";
340
- import"./chunk-0h5et1rg.js";
339
+ } from "./chunk-sk6ceghr.js";
340
+ import"./chunk-egb7pjjz.js";
341
341
 
342
342
  // packages/core/src/sync-kit.ts
343
343
  import { createHash } from "crypto";
@@ -6812,7 +6812,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
6812
6812
  return {
6813
6813
  request: (method, params) => gen(function* () {
6814
6814
  const id = ++lastId;
6815
- const deferred = yield* make15();
6815
+ const deferred = yield* make16();
6816
6816
  pending.set(id, deferred);
6817
6817
  yield* send({ id, method, params });
6818
6818
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -6955,7 +6955,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
6955
6955
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
6956
6956
  extendEnv: true,
6957
6957
  env: mcp.env,
6958
- stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
6958
+ stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
6959
6959
  stderr: "ignore"
6960
6960
  }));
6961
6961
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7029,7 +7029,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7029
7029
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7030
7030
  const spawner = yield* ChildProcessSpawner;
7031
7031
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7032
- stdin: make10(new TextEncoder().encode(stdin)),
7032
+ stdin: make11(new TextEncoder().encode(stdin)),
7033
7033
  stdout: "inherit",
7034
7034
  stderr: "inherit",
7035
7035
  extendEnv: false,
@@ -7,11 +7,11 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-tx61h9d8.js";
11
- import"./chunk-2sfgqfgq.js";
12
- import"./chunk-xmq9zpr1.js";
13
- import"./chunk-znh6xbze.js";
14
- import"./chunk-txyp31q5.js";
10
+ } from "./chunk-vmv7gwwr.js";
11
+ import"./chunk-sk6ceghr.js";
12
+ import"./chunk-c6rbt85q.js";
13
+ import"./chunk-3d4d52e5.js";
14
+ import"./chunk-vtfwjhzh.js";
15
15
  export {
16
16
  decoded2 as decoded,
17
17
  decodedOption2 as decodedOption,
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-txyp31q5.js";
99
+ } from "./chunk-vtfwjhzh.js";
100
100
  import {
101
101
  interrupt,
102
102
  getCurrent,
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-znh6xbze.js";
111
+ } from "./chunk-3d4d52e5.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-cbwmsy27.js";
126
+ } from "./chunk-rtqdqr0v.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get3(services, Scope);
240
+ const scope = get4(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
646
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-znh6xbze.js";
18
- import"./chunk-txyp31q5.js";
17
+ } from "./chunk-3d4d52e5.js";
18
+ import"./chunk-vtfwjhzh.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-txyp31q5.js";
6
+ } from "./chunk-vtfwjhzh.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;