@kitman-sh/cli 0.42.1 → 0.42.2

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 (28) hide show
  1. package/dist/{chunk-6xnkbrs7.js → chunk-17715h5w.js} +33 -33
  2. package/dist/{chunk-4v0dkm5t.js → chunk-1gr39h4v.js} +1 -1
  3. package/dist/{chunk-6e1fq0ct.js → chunk-1w517sym.js} +7 -7
  4. package/dist/{chunk-cnryphhh.js → chunk-2bt9e1fj.js} +5 -5
  5. package/dist/{chunk-evpyks4h.js → chunk-33zd0yt4.js} +17 -17
  6. package/dist/{chunk-6x08g7m6.js → chunk-3gax0xq6.js} +2 -2
  7. package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
  8. package/dist/{chunk-dgqjmd95.js → chunk-c3ms91a6.js} +18 -18
  9. package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
  10. package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
  11. package/dist/{chunk-1ay659hm.js → chunk-gqgbah9q.js} +6 -6
  12. package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
  13. package/dist/{chunk-rv8t9jzj.js → chunk-hg9y4ykj.js} +4 -4
  14. package/dist/{chunk-8q04gtg1.js → chunk-mc0xxx2z.js} +6 -6
  15. package/dist/{chunk-kqr3ts9q.js → chunk-q6qn9c47.js} +277 -121
  16. package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
  17. package/dist/{chunk-hgvft7vy.js → chunk-r5b36fgg.js} +4 -4
  18. package/dist/{chunk-4pcknv14.js → chunk-rc4wvjf2.js} +23 -23
  19. package/dist/{chunk-7n64vjb2.js → chunk-re7cr0kk.js} +13 -13
  20. package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
  21. package/dist/{chunk-nk35kh6w.js → chunk-sbk4evb4.js} +3 -3
  22. package/dist/{chunk-p4asjq9r.js → chunk-t8y2y7ha.js} +1 -1
  23. package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
  24. package/dist/{chunk-7091bpsv.js → chunk-vjkgbsry.js} +4 -4
  25. package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
  26. package/dist/{chunk-gf2np1ak.js → chunk-y6mjtq6n.js} +13 -13
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-bqbfyqx6.js";
21
+ } from "./chunk-b4td2pgc.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-cnryphhh.js";
13
- import"./chunk-6x08g7m6.js";
14
- import"./chunk-etrfc5cn.js";
15
- import"./chunk-bqbfyqx6.js";
12
+ } from "./chunk-2bt9e1fj.js";
13
+ import"./chunk-3gax0xq6.js";
14
+ import"./chunk-sasjamqz.js";
15
+ import"./chunk-b4td2pgc.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -45,7 +45,7 @@ import {
45
45
  isFailure2,
46
46
  hasInterrupts,
47
47
  makeUnsafe5,
48
- make16,
48
+ make15,
49
49
  _await,
50
50
  fail5,
51
51
  isDoneUnsafe,
@@ -175,12 +175,7 @@ import {
175
175
  decodeJsonStringSync,
176
176
  encodeUnknownJsonStringSync,
177
177
  storable
178
- } from "./chunk-bqbfyqx6.js";
179
- import {
180
- Id,
181
- secretReference,
182
- secretPlaceholder
183
- } from "./chunk-ea29sbaq.js";
178
+ } from "./chunk-b4td2pgc.js";
184
179
  import {
185
180
  SecureRandom,
186
181
  layerWebCrypto,
@@ -269,7 +264,7 @@ import {
269
264
  checkServicesFile,
270
265
  checkServices,
271
266
  serviceChecks
272
- } from "./chunk-kqr3ts9q.js";
267
+ } from "./chunk-q6qn9c47.js";
273
268
  import {
274
269
  currentTimeMillis,
275
270
  join,
@@ -279,7 +274,7 @@ import {
279
274
  unbounded2,
280
275
  offer,
281
276
  makeUnsafe3,
282
- make11,
277
+ make10,
283
278
  fromQueue,
284
279
  fromPubSub,
285
280
  map2,
@@ -318,7 +313,7 @@ import {
318
313
  writeSrtSettings2,
319
314
  srtStepArgv2,
320
315
  srtArgv2
321
- } from "./chunk-etrfc5cn.js";
316
+ } from "./chunk-sasjamqz.js";
322
317
  import {
323
318
  writeAgentEnvironmentConfigFile2,
324
319
  readManifestSkillPaths2,
@@ -334,8 +329,8 @@ import {
334
329
  applyAgentEnvironmentMaterialization2,
335
330
  isPathWithin2,
336
331
  skillIdentity2
337
- } from "./chunk-7091bpsv.js";
338
- import"./chunk-nk35kh6w.js";
332
+ } from "./chunk-vjkgbsry.js";
333
+ import"./chunk-sbk4evb4.js";
339
334
  import {
340
335
  egressAllowed,
341
336
  writeSecretRegistry,
@@ -345,7 +340,7 @@ import {
345
340
  secretFilter2,
346
341
  opaqueTunnelRefusal2,
347
342
  isOpaqueConnectReason2
348
- } from "./chunk-wy6gmtd9.js";
343
+ } from "./chunk-dhe1fwhw.js";
349
344
  import {
350
345
  sliceBytes2,
351
346
  maxLineBytes2,
@@ -355,24 +350,29 @@ import {
355
350
  lookAtOpencode2,
356
351
  readOpencode2,
357
352
  databaseStamp2
358
- } from "./chunk-cnryphhh.js";
353
+ } from "./chunk-2bt9e1fj.js";
359
354
  import {
360
355
  uploadRunFile,
361
356
  programLease,
362
357
  rpcRunFiles,
363
358
  programHostsEnv,
364
359
  undeclaredHostsEnv
365
- } from "./chunk-7n64vjb2.js";
366
- import"./chunk-1ay659hm.js";
360
+ } from "./chunk-re7cr0kk.js";
361
+ import"./chunk-gqgbah9q.js";
367
362
  import {
368
363
  nextInt
369
- } from "./chunk-8b02x7vv.js";
370
- import"./chunk-98azvx6g.js";
364
+ } from "./chunk-wre79w3z.js";
365
+ import"./chunk-tpmyf5mk.js";
371
366
  import {
372
367
  ChildProcessSpawner,
373
368
  make3
374
- } from "./chunk-6x08g7m6.js";
375
- import"./chunk-dgqjmd95.js";
369
+ } from "./chunk-3gax0xq6.js";
370
+ import"./chunk-c3ms91a6.js";
371
+ import {
372
+ Id,
373
+ secretReference,
374
+ secretPlaceholder
375
+ } from "./chunk-qndcafax.js";
376
376
 
377
377
  // packages/core/src/sync-kit.ts
378
378
  import { createHash } from "crypto";
@@ -8689,7 +8689,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8689
8689
  return {
8690
8690
  request: (method, params) => gen(function* () {
8691
8691
  const id = ++lastId;
8692
- const deferred = yield* make16();
8692
+ const deferred = yield* make15();
8693
8693
  pending.set(id, deferred);
8694
8694
  yield* send({ id, method, params });
8695
8695
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -8832,7 +8832,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
8832
8832
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
8833
8833
  extendEnv: true,
8834
8834
  env: mcp.env,
8835
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
8835
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
8836
8836
  stderr: "ignore"
8837
8837
  }));
8838
8838
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -8906,7 +8906,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
8906
8906
  const exitCode = sandbox === undefined ? yield* gen(function* () {
8907
8907
  const spawner = yield* ChildProcessSpawner;
8908
8908
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
8909
- stdin: make11(new TextEncoder().encode(stdin)),
8909
+ stdin: make10(new TextEncoder().encode(stdin)),
8910
8910
  stdout: "inherit",
8911
8911
  stderr: "inherit",
8912
8912
  extendEnv: false,
@@ -12,7 +12,7 @@ import {
12
12
  empty3,
13
13
  add,
14
14
  getOrUndefined2,
15
- get4,
15
+ get3,
16
16
  merge3,
17
17
  Reference,
18
18
  fromInputUnsafe,
@@ -138,7 +138,7 @@ import {
138
138
  toJsonSchemaDocument,
139
139
  toCodecJson,
140
140
  Json
141
- } from "./chunk-bqbfyqx6.js";
141
+ } from "./chunk-b4td2pgc.js";
142
142
  import {
143
143
  WebCrypto,
144
144
  makeUnsafe,
@@ -175,24 +175,24 @@ import {
175
175
  StepManifest,
176
176
  KitSetup,
177
177
  RunnerRpcError
178
- } from "./chunk-kqr3ts9q.js";
179
- import {
180
- guard,
181
- Id,
182
- Timestamp,
183
- ActorType
184
- } from "./chunk-ea29sbaq.js";
178
+ } from "./chunk-q6qn9c47.js";
185
179
  import {
186
180
  currentTimeMillis,
187
181
  getCurrent,
188
182
  runForEach,
189
183
  FileSystem
190
- } from "./chunk-etrfc5cn.js";
184
+ } from "./chunk-sasjamqz.js";
191
185
  import {
192
186
  splitQuestionOptions,
193
187
  recommendationProblem,
194
188
  questionAdvice
195
- } from "./chunk-98azvx6g.js";
189
+ } from "./chunk-tpmyf5mk.js";
190
+ import {
191
+ guard,
192
+ Id,
193
+ Timestamp,
194
+ ActorType
195
+ } from "./chunk-qndcafax.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -769,7 +769,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
769
769
  [ResultTypeId] = ResultTypeId;
770
770
  }
771
771
  var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
772
- const instance = get4(context, InstanceTag);
772
+ const instance = get3(context, InstanceTag);
773
773
  return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
774
774
  releaseActivityUnsafe(registration);
775
775
  const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
@@ -1420,7 +1420,7 @@ var scopingActivities = (engine) => ({
1420
1420
  }),
1421
1421
  activityExecute: (activity, attempt) => gen(function* () {
1422
1422
  const scope = yield* StepScope;
1423
- if (scope === "" || get4(activity.annotations, ActivityNamed))
1423
+ if (scope === "" || get3(activity.annotations, ActivityNamed))
1424
1424
  return yield* engine.activityExecute(activity, attempt);
1425
1425
  return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
1426
1426
  })
@@ -34,11 +34,8 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- add,
38
- get4,
37
+ get3,
39
38
  Reference,
40
- fromInputUnsafe,
41
- isFinite,
42
39
  normalize,
43
40
  succeed,
44
41
  fail3,
@@ -88,7 +85,6 @@ import {
88
85
  fail4,
89
86
  interrupt2,
90
87
  void_2,
91
- isSuccess2,
92
88
  isFailure2,
93
89
  asVoidAll,
94
90
  makeUnsafe5,
@@ -160,14 +156,12 @@ import {
160
156
  tapError2,
161
157
  ignoreCause,
162
158
  orElseSucceed,
163
- sleep,
164
159
  raceFirst,
165
160
  when,
166
161
  matchCauseEffect,
167
162
  context,
168
163
  contextWith,
169
164
  provideContext2,
170
- scope2,
171
165
  scoped,
172
166
  scopedWith,
173
167
  acquireRelease,
@@ -178,7 +172,6 @@ import {
178
172
  interrupt3,
179
173
  onInterrupt,
180
174
  uninterruptible,
181
- uninterruptibleMask2,
182
175
  forever,
183
176
  forkChild,
184
177
  forkIn,
@@ -201,11 +194,11 @@ import {
201
194
  toEncoded,
202
195
  decodeUnknownEffect,
203
196
  SchemaError,
204
- make17,
197
+ make16,
205
198
  String4,
206
199
  toCodecStringTree,
207
200
  encodeUnknownJsonStringSync
208
- } from "./chunk-bqbfyqx6.js";
201
+ } from "./chunk-b4td2pgc.js";
209
202
 
210
203
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
211
204
  var headUnsafe = (self) => {
@@ -378,7 +371,7 @@ var fromStringUnsafe = (input) => {
378
371
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
379
372
  return make(value);
380
373
  };
381
- var fromInputUnsafe2 = (input) => {
374
+ var fromInputUnsafe = (input) => {
382
375
  switch (typeof input) {
383
376
  case "bigint":
384
377
  if (input < bigint0)
@@ -391,7 +384,7 @@ var fromInputUnsafe2 = (input) => {
391
384
  }
392
385
  return invalid(`unsupported input ${input}`);
393
386
  };
394
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
387
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
395
388
 
396
389
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
397
390
  var join = fiberJoin;
@@ -1317,7 +1310,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1317
1310
  return false;
1318
1311
  });
1319
1312
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1320
- const localScope = get4(services, Scope);
1313
+ const localScope = get3(services, Scope);
1321
1314
  const scope = forkUnsafe(self.scope);
1322
1315
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1323
1316
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2760,7 +2753,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
2760
2753
  var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
2761
2754
  const semaphore = makeUnsafe3(1);
2762
2755
  const context2 = yield* context();
2763
- const scope = get4(context2, Scope);
2756
+ const scope = get3(context2, Scope);
2764
2757
  const pull = yield* toTransform(self)(done(), scope);
2765
2758
  return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
2766
2759
  }, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
@@ -2821,158 +2814,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2821
2814
  }), catchDone(() => endVoid)));
2822
2815
  var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
2823
2816
 
2824
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2825
- var TypeId8 = "~effect/RcRef";
2826
- var stateEmpty = {
2827
- _tag: "Empty"
2828
- };
2829
- var stateClosed = {
2830
- _tag: "Closed"
2831
- };
2832
- var variance2 = {
2833
- _A: identity,
2834
- _E: identity
2835
- };
2836
-
2837
- class RcRefImpl {
2838
- [TypeId8] = variance2;
2839
- pipe() {
2840
- return pipeArguments(this, arguments);
2841
- }
2842
- state = stateEmpty;
2843
- acquire;
2844
- context;
2845
- scope;
2846
- idleTimeToLive;
2847
- constructor(acquire, context, scope, idleTimeToLive) {
2848
- this.acquire = acquire;
2849
- this.context = context;
2850
- this.scope = scope;
2851
- this.idleTimeToLive = idleTimeToLive;
2852
- }
2853
- }
2854
- var make6 = (options) => withFiber2((fiber) => {
2855
- const context = fiber.context;
2856
- const scope = get4(context, Scope);
2857
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2858
- return as(addFinalizerExit(scope, () => {
2859
- const state = ref.state;
2860
- ref.state = stateClosed;
2861
- if (state._tag === "Acquired")
2862
- return close(state.scope, void_2);
2863
- if (state._tag === "Acquiring")
2864
- return interrupt(state.fiber);
2865
- return void_3;
2866
- }), ref);
2867
- });
2868
- var getState = (self, restore) => {
2869
- switch (self.state._tag) {
2870
- case "Closed": {
2871
- return interrupt3;
2872
- }
2873
- case "Acquired": {
2874
- const state = self.state;
2875
- state.refCount++;
2876
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2877
- }
2878
- case "Acquiring": {
2879
- const state = self.state;
2880
- state.awaiters++;
2881
- return awaitAcquiring(self, state, restore);
2882
- }
2883
- case "Empty": {
2884
- const acquiring = {
2885
- _tag: "Acquiring",
2886
- fiber: undefined,
2887
- awaiters: 1,
2888
- acquired: undefined
2889
- };
2890
- self.state = acquiring;
2891
- const scope = makeUnsafe6();
2892
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2893
- if (self.state !== acquiring) {
2894
- return interrupt3;
2895
- }
2896
- const state = {
2897
- _tag: "Acquired",
2898
- value,
2899
- scope,
2900
- fiber: undefined,
2901
- refCount: acquiring.awaiters,
2902
- invalidated: false
2903
- };
2904
- self.state = state;
2905
- acquiring.acquired = state;
2906
- return succeed6(state);
2907
- }), onExit((exit) => {
2908
- if (isSuccess2(exit))
2909
- return void_3;
2910
- if (self.state === acquiring)
2911
- self.state = stateEmpty;
2912
- return close(scope, exit);
2913
- }));
2914
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2915
- return awaitAcquiring(self, acquiring, restore);
2916
- }
2917
- }
2918
- };
2919
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2920
- const acquired = acquiring.acquired;
2921
- if (acquired !== undefined) {
2922
- return isFailure2(exit) ? release(self, acquired) : void_3;
2923
- }
2924
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
2925
- return void_3;
2926
- self.state = stateEmpty;
2927
- return interrupt(acquiring.fiber);
2928
- });
2929
- var get2 = (self_) => {
2930
- const self = self_;
2931
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2932
- };
2933
- var release = (self, state) => {
2934
- state.refCount--;
2935
- if (state.refCount > 0) {
2936
- return void_3;
2937
- }
2938
- const idleTimeToLive = self.idleTimeToLive;
2939
- if (idleTimeToLive === undefined || state.invalidated) {
2940
- if (self.state === state) {
2941
- self.state = stateEmpty;
2942
- }
2943
- return close(state.scope, void_2);
2944
- } else if (!isFinite(idleTimeToLive)) {
2945
- return void_3;
2946
- }
2947
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2948
- if (self.state === state && state.refCount === 0) {
2949
- self.state = stateEmpty;
2950
- return ignoreCause(close(state.scope, void_2), {
2951
- log: "Unhandled",
2952
- message: "Unhandled error in RcRef finalizer"
2953
- });
2954
- }
2955
- return void_3;
2956
- })).pipe(ensuring2(sync2(() => {
2957
- state.fiber = undefined;
2958
- })), runForkWith(self.context), runIn(self.scope));
2959
- return void_3;
2960
- };
2961
-
2962
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2963
- var make10 = make6;
2964
- var get3 = get2;
2965
-
2966
2817
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2967
- var TypeId9 = "~effect/Stream";
2968
- var isStream = (u) => hasProperty(u, TypeId9);
2818
+ var TypeId8 = "~effect/Stream";
2819
+ var isStream = (u) => hasProperty(u, TypeId8);
2969
2820
  var fromChannel2 = fromChannel3;
2970
2821
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2971
2822
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2972
2823
  var toChannel2 = (stream) => stream.channel;
2973
2824
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2974
2825
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2975
- var make11 = (...values) => fromArray2(values);
2826
+ var make10 = (...values) => fromArray2(values);
2976
2827
  var suspend = (stream) => {
2977
2828
  const suspended = fromChannel2(suspend4(() => stream().channel));
2978
2829
  suspendedStreams.set(suspended, stream);
@@ -3171,11 +3022,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3171
3022
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
3172
3023
 
3173
3024
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3174
- var TypeId10 = "~effect/FileSystem";
3025
+ var TypeId9 = "~effect/FileSystem";
3175
3026
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3176
- var make12 = (impl) => FileSystem.of({
3027
+ var make11 = (impl) => FileSystem.of({
3177
3028
  ...impl,
3178
- [TypeId10]: TypeId10,
3029
+ [TypeId9]: TypeId9,
3179
3030
  glob: make2(impl),
3180
3031
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3181
3032
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -3191,11 +3042,11 @@ var make12 = (impl) => FileSystem.of({
3191
3042
  const file = yield* impl.open(path, {
3192
3043
  flag: "r"
3193
3044
  });
3194
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
3045
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3195
3046
  if (offset) {
3196
3047
  yield* file.seek(offset, "start");
3197
3048
  }
3198
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
3049
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3199
3050
  let totalBytesRead = BigInt(0);
3200
3051
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3201
3052
  const readChunk = file.readAlloc(chunkSize);
@@ -3231,11 +3082,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3231
3082
  }
3232
3083
 
3233
3084
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3234
- var TypeId11 = "~effect/Path";
3085
+ var TypeId10 = "~effect/Path";
3235
3086
  var Path = /* @__PURE__ */ Service2("effect/Path");
3236
- var make13 = (impl) => Path.of({
3087
+ var make12 = (impl) => Path.of({
3237
3088
  ...impl,
3238
- [TypeId11]: TypeId11,
3089
+ [TypeId10]: TypeId10,
3239
3090
  resolveWithin(root, input) {
3240
3091
  if (impl.parse(input).root !== "")
3241
3092
  return none();
@@ -3308,7 +3159,7 @@ function makeProvider(load, mapInput) {
3308
3159
  function makeSource(get, transform) {
3309
3160
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3310
3161
  }
3311
- function make7(get) {
3162
+ function make6(get) {
3312
3163
  return makeSource(get, identityPath);
3313
3164
  }
3314
3165
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3317,7 +3168,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3317
3168
  function fromEnvRecord(env, options) {
3318
3169
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3319
3170
  const trie = buildEnvTrie(env);
3320
- return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3171
+ return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3321
3172
  }
3322
3173
  function fromEnv(options) {
3323
3174
  const env = options?.env ?? {
@@ -3370,7 +3221,7 @@ function trieNodeAt(root, path) {
3370
3221
  }
3371
3222
 
3372
3223
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3373
- var TypeId12 = "~effect/Config";
3224
+ var TypeId11 = "~effect/Config";
3374
3225
  class ConfigError {
3375
3226
  _tag = "ConfigError";
3376
3227
  name = "ConfigError";
@@ -3392,14 +3243,14 @@ var Proto2 = {
3392
3243
  return this.parse(fiber.getRef(ConfigProvider));
3393
3244
  }
3394
3245
  }),
3395
- [TypeId12]: TypeId12,
3246
+ [TypeId11]: TypeId11,
3396
3247
  toJSON() {
3397
3248
  return {
3398
3249
  _id: "Config"
3399
3250
  };
3400
3251
  }
3401
3252
  };
3402
- function make14(evaluator) {
3253
+ function make7(evaluator) {
3403
3254
  const self = Object.create(Proto2);
3404
3255
  self.evaluator = evaluator;
3405
3256
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3407,14 +3258,14 @@ function make14(evaluator) {
3407
3258
  }
3408
3259
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3409
3260
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3410
- return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3261
+ return make7((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3411
3262
  });
3412
3263
  function all(arg) {
3413
3264
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3414
- return make14((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3265
+ return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3415
3266
  }
3416
3267
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3417
- return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3268
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3418
3269
  });
3419
3270
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3420
3271
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3531,9 +3382,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3531
3382
  function schema(codec, path) {
3532
3383
  const codecStringTree = toCodecStringTree(codec);
3533
3384
  const encodedAst = toEncoded(codecStringTree.ast);
3534
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3385
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3535
3386
  const localPath = typeof path === "string" ? [path] : path ?? [];
3536
- return make14((provider, pathPrefix) => {
3387
+ return make7((provider, pathPrefix) => {
3537
3388
  const fullPath = [...pathPrefix, ...localPath];
3538
3389
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3539
3390
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3663,4 +3514,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3663
3514
  ...argv
3664
3515
  ];
3665
3516
 
3666
- export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3517
+ export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-bqbfyqx6.js";
27
+ } from "./chunk-b4td2pgc.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-etrfc5cn.js";
31
+ } from "./chunk-sasjamqz.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-kqr3ts9q.js";
42
+ } from "./chunk-q6qn9c47.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-4v0dkm5t.js";
7
+ } from "./chunk-1gr39h4v.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-bqbfyqx6.js";
4
+ } from "./chunk-b4td2pgc.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-bqbfyqx6.js";
28
+ } from "./chunk-b4td2pgc.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-etrfc5cn.js";
34
+ } from "./chunk-sasjamqz.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-kqr3ts9q.js";
39
+ } from "./chunk-q6qn9c47.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-nk35kh6w.js";
42
+ } from "./chunk-sbk4evb4.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-bqbfyqx6.js";
6
+ } from "./chunk-b4td2pgc.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;