@kitman-sh/cli 0.13.6 → 0.13.7

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 (27) hide show
  1. package/dist/{chunk-r08sz4ry.js → chunk-1nxcn08k.js} +4 -4
  2. package/dist/{chunk-xc1grg7y.js → chunk-22z1yemd.js} +67 -47
  3. package/dist/{chunk-mm2m3bys.js → chunk-24h0y27w.js} +1 -1
  4. package/dist/{chunk-vmzr8xcg.js → chunk-4bgj3b5r.js} +10 -8
  5. package/dist/{chunk-27pv44t3.js → chunk-4crf5vhd.js} +2 -2
  6. package/dist/{chunk-mwkn1c5q.js → chunk-4x3zm541.js} +17 -10
  7. package/dist/{chunk-j974anp7.js → chunk-8v0t5kzg.js} +1 -1
  8. package/dist/{chunk-3teferzd.js → chunk-9g8tc40f.js} +12 -12
  9. package/dist/{chunk-xy7ze8dj.js → chunk-bbks1scp.js} +16 -16
  10. package/dist/{chunk-qj412x98.js → chunk-bs5bh8ys.js} +16 -16
  11. package/dist/{chunk-s06x2ktk.js → chunk-byg71zra.js} +10 -10
  12. package/dist/{chunk-skqn4h13.js → chunk-ggmwpwhf.js} +2 -2
  13. package/dist/{chunk-a0wt1r43.js → chunk-jbjz7b6n.js} +54 -54
  14. package/dist/{chunk-2x1q8z5t.js → chunk-kk32jckf.js} +4 -4
  15. package/dist/{chunk-cg3xstek.js → chunk-m079pjdy.js} +3 -3
  16. package/dist/{chunk-9t8afbrw.js → chunk-m406nanz.js} +6 -6
  17. package/dist/{chunk-bz4bp0q7.js → chunk-mmd7mjv0.js} +3 -3
  18. package/dist/{chunk-cabmcvy1.js → chunk-mtdz4k32.js} +7 -7
  19. package/dist/{chunk-s8m2tzdr.js → chunk-pxvd8w2v.js} +1 -1
  20. package/dist/{chunk-hg8wgm04.js → chunk-t37qzgmb.js} +4 -4
  21. package/dist/{chunk-vktjb2p7.js → chunk-t82w7459.js} +163 -26
  22. package/dist/{chunk-4nfan8t6.js → chunk-vxfajzpz.js} +2 -2
  23. package/dist/{chunk-at4e0xvg.js → chunk-x44re8th.js} +4 -4
  24. package/dist/{chunk-89hds8q4.js → chunk-xt97vb58.js} +95 -72
  25. package/dist/{chunk-x3cc7dfc.js → chunk-zgraq2y3.js} +13 -157
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-t82w7459.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -13,27 +17,23 @@ import {
13
17
  isJsonObject,
14
18
  decodeJsonString,
15
19
  encodePrettyJsonString
16
- } from "./chunk-x3cc7dfc.js";
17
- import"./chunk-s8m2tzdr.js";
18
- import {
19
- FileSystem,
20
- Path
21
- } from "./chunk-vktjb2p7.js";
20
+ } from "./chunk-zgraq2y3.js";
21
+ import"./chunk-pxvd8w2v.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-3teferzd.js";
27
+ } from "./chunk-9g8tc40f.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-mwkn1c5q.js";
35
- import"./chunk-cg3xstek.js";
36
- import"./chunk-4nfan8t6.js";
34
+ } from "./chunk-4x3zm541.js";
35
+ import"./chunk-m079pjdy.js";
36
+ import"./chunk-vxfajzpz.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-x3cc7dfc.js";
16
+ } from "./chunk-zgraq2y3.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-s8m2tzdr.js";
20
+ } from "./chunk-pxvd8w2v.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -168,13 +168,55 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-x3cc7dfc.js";
171
+ } from "./chunk-zgraq2y3.js";
172
+ import {
173
+ join,
174
+ interrupt,
175
+ unbounded,
176
+ publishUnsafe,
177
+ unbounded2,
178
+ offer,
179
+ makeUnsafe3,
180
+ make10,
181
+ fromQueue,
182
+ fromPubSub,
183
+ map2,
184
+ filter,
185
+ decodeText,
186
+ encodeText,
187
+ splitLines,
188
+ run,
189
+ runHead,
190
+ runForEach,
191
+ FileSystem,
192
+ Path,
193
+ embeddedFile,
194
+ extractEmbeddedFile,
195
+ optionalEnv,
196
+ operatorConfigHome,
197
+ tempDirectoryScoped,
198
+ harnessesUnsupportedInSrt2,
199
+ compiled2,
200
+ pinnedSrtCommand2,
201
+ pinnedSrtStepCommand2,
202
+ runSrtCli2,
203
+ kitmanCacheDirectory2,
204
+ srtSettings2,
205
+ srtCacheEnvironment2,
206
+ srtInheritedEnv2,
207
+ inheritedEnvironment2,
208
+ withOnlyEnvironment2,
209
+ writeSrtSettings2,
210
+ srtStepArgv2,
211
+ srtArgv2
212
+ } from "./chunk-t82w7459.js";
172
213
  import {
173
214
  Id,
174
215
  secretReference,
175
216
  secretPlaceholder
176
- } from "./chunk-s8m2tzdr.js";
217
+ } from "./chunk-pxvd8w2v.js";
177
218
  import {
219
+ currentTimeMillis,
178
220
  SecureRandom,
179
221
  layerWebCrypto,
180
222
  layer,
@@ -246,49 +288,7 @@ import {
246
288
  installCommand,
247
289
  checkServicesFile,
248
290
  checkServices
249
- } from "./chunk-mwkn1c5q.js";
250
- import {
251
- currentTimeMillis,
252
- join,
253
- interrupt,
254
- unbounded,
255
- publishUnsafe,
256
- unbounded2,
257
- offer,
258
- makeUnsafe3,
259
- make10,
260
- fromQueue,
261
- fromPubSub,
262
- map2,
263
- filter,
264
- decodeText,
265
- encodeText,
266
- splitLines,
267
- run,
268
- runHead,
269
- runForEach,
270
- FileSystem,
271
- Path,
272
- embeddedFile,
273
- extractEmbeddedFile,
274
- optionalEnv,
275
- operatorConfigHome,
276
- tempDirectoryScoped,
277
- harnessesUnsupportedInSrt2,
278
- compiled2,
279
- pinnedSrtCommand2,
280
- pinnedSrtStepCommand2,
281
- runSrtCli2,
282
- kitmanCacheDirectory2,
283
- srtSettings2,
284
- srtCacheEnvironment2,
285
- srtInheritedEnv2,
286
- inheritedEnvironment2,
287
- withOnlyEnvironment2,
288
- writeSrtSettings2,
289
- srtStepArgv2,
290
- srtArgv2
291
- } from "./chunk-vktjb2p7.js";
291
+ } from "./chunk-4x3zm541.js";
292
292
  import {
293
293
  writeAgentEnvironmentConfigFile2,
294
294
  readManifestSkillPaths2,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-3teferzd.js";
308
- import"./chunk-cg3xstek.js";
307
+ } from "./chunk-9g8tc40f.js";
308
+ import"./chunk-m079pjdy.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -315,7 +315,7 @@ import {
315
315
  secretFilter2,
316
316
  opaqueTunnelRefusal2,
317
317
  isOpaqueConnectReason2
318
- } from "./chunk-skqn4h13.js";
318
+ } from "./chunk-ggmwpwhf.js";
319
319
  import {
320
320
  sliceBytes2,
321
321
  maxLineBytes2,
@@ -323,23 +323,23 @@ import {
323
323
  decodedOption2,
324
324
  decoded2,
325
325
  readOpencode2
326
- } from "./chunk-cabmcvy1.js";
326
+ } from "./chunk-mtdz4k32.js";
327
327
  import {
328
328
  uploadRunFile,
329
329
  programLease,
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-vmzr8xcg.js";
334
- import"./chunk-at4e0xvg.js";
333
+ } from "./chunk-4bgj3b5r.js";
334
+ import"./chunk-x44re8th.js";
335
335
  import {
336
336
  nextInt
337
- } from "./chunk-mm2m3bys.js";
337
+ } from "./chunk-24h0y27w.js";
338
338
  import {
339
339
  ChildProcessSpawner,
340
340
  make2
341
- } from "./chunk-4nfan8t6.js";
342
- import"./chunk-r08sz4ry.js";
341
+ } from "./chunk-vxfajzpz.js";
342
+ import"./chunk-1nxcn08k.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-cabmcvy1.js";
11
- import"./chunk-4nfan8t6.js";
12
- import"./chunk-vktjb2p7.js";
13
- import"./chunk-x3cc7dfc.js";
10
+ } from "./chunk-mtdz4k32.js";
11
+ import"./chunk-vxfajzpz.js";
12
+ import"./chunk-t82w7459.js";
13
+ import"./chunk-zgraq2y3.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-x3cc7dfc.js";
27
+ } from "./chunk-zgraq2y3.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-vktjb2p7.js";
31
+ } from "./chunk-t82w7459.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-mwkn1c5q.js";
42
+ } from "./chunk-4x3zm541.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-at4e0xvg.js";
8
- import"./chunk-r08sz4ry.js";
9
- import"./chunk-mwkn1c5q.js";
10
- import"./chunk-s8m2tzdr.js";
11
- import"./chunk-vktjb2p7.js";
12
- import"./chunk-x3cc7dfc.js";
7
+ } from "./chunk-x44re8th.js";
8
+ import"./chunk-1nxcn08k.js";
9
+ import"./chunk-4x3zm541.js";
10
+ import"./chunk-pxvd8w2v.js";
11
+ import"./chunk-t82w7459.js";
12
+ import"./chunk-zgraq2y3.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-skqn4h13.js";
8
- import"./chunk-s8m2tzdr.js";
9
- import"./chunk-x3cc7dfc.js";
7
+ } from "./chunk-ggmwpwhf.js";
8
+ import"./chunk-pxvd8w2v.js";
9
+ import"./chunk-zgraq2y3.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -1,4 +1,9 @@
1
1
  // @bun
2
+ import {
3
+ make10,
4
+ runForEach,
5
+ compiled2
6
+ } from "./chunk-t82w7459.js";
2
7
  import {
3
8
  getOrUndefined,
4
9
  liftThrowable,
@@ -25,16 +30,11 @@ import {
25
30
  isJsonObject,
26
31
  isString2,
27
32
  encodeUnknownJsonStringSync
28
- } from "./chunk-x3cc7dfc.js";
29
- import {
30
- make10,
31
- runForEach,
32
- compiled2
33
- } from "./chunk-vktjb2p7.js";
33
+ } from "./chunk-zgraq2y3.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make2
37
- } from "./chunk-4nfan8t6.js";
37
+ } from "./chunk-vxfajzpz.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-x3cc7dfc.js";
21
+ } from "./chunk-zgraq2y3.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-4nfan8t6.js";
2
+ import"./chunk-vxfajzpz.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-mwkn1c5q.js";
16
- import"./chunk-vktjb2p7.js";
17
- import"./chunk-x3cc7dfc.js";
15
+ } from "./chunk-4x3zm541.js";
16
+ import"./chunk-t82w7459.js";
17
+ import"./chunk-zgraq2y3.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -79,8 +79,6 @@ import {
79
79
  fiberRunIn,
80
80
  makeLatchUnsafe,
81
81
  makeLatch,
82
- ClockRef,
83
- currentTimeMillis2,
84
82
  succeed3,
85
83
  failCause2,
86
84
  fail4,
@@ -188,7 +186,6 @@ import {
188
186
  mapEager,
189
187
  flatMapEager,
190
188
  catchEager,
191
- fromInputUnsafe2,
192
189
  Pointer,
193
190
  passthrough,
194
191
  transformEffect,
@@ -204,7 +201,7 @@ import {
204
201
  String4,
205
202
  toCodecStringTree,
206
203
  encodeUnknownJsonStringSync
207
- } from "./chunk-x3cc7dfc.js";
204
+ } from "./chunk-zgraq2y3.js";
208
205
 
209
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
210
207
  var headUnsafe = (self) => {
@@ -253,9 +250,149 @@ var makeEquivalence = (equivalence) => {
253
250
  return (self, that) => is(self, that) && is(that, self);
254
251
  };
255
252
 
256
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
257
- var Clock = ClockRef;
258
- var currentTimeMillis = currentTimeMillis2;
253
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
254
+ var BigInt2 = globalThis.BigInt;
255
+ var toNumber = (b) => {
256
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
257
+ return none();
258
+ }
259
+ return some(Number(b));
260
+ };
261
+
262
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
263
+ var bigint0 = /* @__PURE__ */ BigInt(0);
264
+ var bigint1 = /* @__PURE__ */ BigInt(1);
265
+ var decimalBase = /* @__PURE__ */ BigInt(1000);
266
+ var binaryBase = /* @__PURE__ */ BigInt(1024);
267
+ var decimalUnits = [{
268
+ symbol: "B",
269
+ factor: bigint1,
270
+ names: ["B", "byte", "bytes"]
271
+ }, {
272
+ symbol: "kB",
273
+ factor: decimalBase,
274
+ names: ["kB", "kilobyte", "kilobytes"]
275
+ }, {
276
+ symbol: "MB",
277
+ factor: decimalBase ** /* @__PURE__ */ BigInt(2),
278
+ names: ["MB", "megabyte", "megabytes"]
279
+ }, {
280
+ symbol: "GB",
281
+ factor: decimalBase ** /* @__PURE__ */ BigInt(3),
282
+ names: ["GB", "gigabyte", "gigabytes"]
283
+ }, {
284
+ symbol: "TB",
285
+ factor: decimalBase ** /* @__PURE__ */ BigInt(4),
286
+ names: ["TB", "terabyte", "terabytes"]
287
+ }, {
288
+ symbol: "PB",
289
+ factor: decimalBase ** /* @__PURE__ */ BigInt(5),
290
+ names: ["PB", "petabyte", "petabytes"]
291
+ }, {
292
+ symbol: "EB",
293
+ factor: decimalBase ** /* @__PURE__ */ BigInt(6),
294
+ names: ["EB", "exabyte", "exabytes"]
295
+ }, {
296
+ symbol: "ZB",
297
+ factor: decimalBase ** /* @__PURE__ */ BigInt(7),
298
+ names: ["ZB", "zettabyte", "zettabytes"]
299
+ }, {
300
+ symbol: "YB",
301
+ factor: decimalBase ** /* @__PURE__ */ BigInt(8),
302
+ names: ["YB", "yottabyte", "yottabytes"]
303
+ }, {
304
+ symbol: "RB",
305
+ factor: decimalBase ** /* @__PURE__ */ BigInt(9),
306
+ names: ["RB", "ronnabyte", "ronnabytes"]
307
+ }, {
308
+ symbol: "QB",
309
+ factor: decimalBase ** /* @__PURE__ */ BigInt(10),
310
+ names: ["QB", "quettabyte", "quettabytes"]
311
+ }];
312
+ var binaryUnits = [decimalUnits[0], {
313
+ symbol: "KiB",
314
+ factor: binaryBase,
315
+ names: ["KiB", "kibibyte", "kibibytes"]
316
+ }, {
317
+ symbol: "MiB",
318
+ factor: binaryBase ** /* @__PURE__ */ BigInt(2),
319
+ names: ["MiB", "mebibyte", "mebibytes"]
320
+ }, {
321
+ symbol: "GiB",
322
+ factor: binaryBase ** /* @__PURE__ */ BigInt(3),
323
+ names: ["GiB", "gibibyte", "gibibytes"]
324
+ }, {
325
+ symbol: "TiB",
326
+ factor: binaryBase ** /* @__PURE__ */ BigInt(4),
327
+ names: ["TiB", "tebibyte", "tebibytes"]
328
+ }, {
329
+ symbol: "PiB",
330
+ factor: binaryBase ** /* @__PURE__ */ BigInt(5),
331
+ names: ["PiB", "pebibyte", "pebibytes"]
332
+ }, {
333
+ symbol: "EiB",
334
+ factor: binaryBase ** /* @__PURE__ */ BigInt(6),
335
+ names: ["EiB", "exbibyte", "exbibytes"]
336
+ }, {
337
+ symbol: "ZiB",
338
+ factor: binaryBase ** /* @__PURE__ */ BigInt(7),
339
+ names: ["ZiB", "zebibyte", "zebibytes"]
340
+ }, {
341
+ symbol: "YiB",
342
+ factor: binaryBase ** /* @__PURE__ */ BigInt(8),
343
+ names: ["YiB", "yobibyte", "yobibytes"]
344
+ }];
345
+ var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
346
+ var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
347
+ var make = (value) => value;
348
+ var invalid = (message) => {
349
+ throw new Error(`Invalid ByteSize: ${message}`);
350
+ };
351
+ var fromNumber = (input) => {
352
+ if (!Number.isSafeInteger(input) || input < 0) {
353
+ return invalid(`expected a non-negative safe integer, received ${input}`);
354
+ }
355
+ return make(BigInt(input));
356
+ };
357
+ var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
358
+ var scaleDecimal = (quantity, factor) => {
359
+ const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
360
+ if (match === null)
361
+ return;
362
+ const fraction = match[2] ?? "";
363
+ const numerator = BigInt(match[1] + fraction) * factor;
364
+ const shift = Number(match[3] ?? 0) - fraction.length;
365
+ if (shift >= 0)
366
+ return numerator * BigInt(10) ** BigInt(shift);
367
+ const scale = BigInt(10) ** BigInt(-shift);
368
+ return numerator % scale === bigint0 ? numerator / scale : undefined;
369
+ };
370
+ var fromStringUnsafe = (input) => {
371
+ const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
372
+ if (match === null)
373
+ return invalid(`unsupported syntax ${JSON.stringify(input)}`);
374
+ const unit = unitsByName.get(match[2]);
375
+ if (unit === undefined)
376
+ return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
377
+ const value = scaleDecimal(match[1], unit.factor);
378
+ if (value === undefined)
379
+ return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
380
+ return make(value);
381
+ };
382
+ var fromInputUnsafe2 = (input) => {
383
+ switch (typeof input) {
384
+ case "bigint":
385
+ if (input < bigint0)
386
+ return invalid(`expected a non-negative bigint, received ${input}`);
387
+ return make(input);
388
+ case "number":
389
+ return fromNumber(input);
390
+ case "string":
391
+ return fromStringUnsafe(input);
392
+ }
393
+ return invalid(`unsupported input ${input}`);
394
+ };
395
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
259
396
 
260
397
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
261
398
  var join = fiberJoin;
@@ -809,7 +946,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
809
946
  var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
810
947
  var DIRECTORY_CONCURRENCY = 16;
811
948
  var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
812
- var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
949
+ var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
813
950
  var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
814
951
  if (compiled.initial.size === 0) {
815
952
  return [];
@@ -987,7 +1124,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
987
1124
 
988
1125
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
989
1126
  var makeUnsafe2 = makeLatchUnsafe;
990
- var make2 = makeLatch;
1127
+ var make3 = makeLatch;
991
1128
 
992
1129
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
993
1130
  var TypeId2 = "~effect/MutableRef";
@@ -1013,7 +1150,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
1013
1150
 
1014
1151
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
1015
1152
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
1016
- var make3 = () => ({
1153
+ var make4 = () => ({
1017
1154
  head: undefined,
1018
1155
  tail: undefined,
1019
1156
  length: 0
@@ -1162,8 +1299,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1162
1299
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1163
1300
  var TypeId3 = "~effect/PubSub";
1164
1301
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1165
- var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1166
- var unbounded = (options) => make4({
1302
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1303
+ var unbounded = (options) => make5({
1167
1304
  atomicPubSub: () => makeAtomicUnbounded(options),
1168
1305
  strategy: () => new DroppingStrategy
1169
1306
  });
@@ -1257,7 +1394,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1257
1394
  subscribers.delete(subscription);
1258
1395
  }
1259
1396
  };
1260
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1397
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1261
1398
  class UnboundedPubSub {
1262
1399
  publisherHead = {
1263
1400
  value: AbsentValue,
@@ -1679,7 +1816,7 @@ var make8 = (options) => withFiber((fiber) => {
1679
1816
  self.dispatcher = fiber.currentDispatcher;
1680
1817
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
1681
1818
  self.strategy = options?.strategy ?? "suspend";
1682
- self.messages = make3();
1819
+ self.messages = make4();
1683
1820
  self.scheduleRunning = false;
1684
1821
  self.state = {
1685
1822
  _tag: "Open",
@@ -2331,7 +2468,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2331
2468
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2332
2469
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2333
2470
  const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2334
- const doneLatch = yield* make2(true);
2471
+ const doneLatch = yield* make3(true);
2335
2472
  const fibers = new Map;
2336
2473
  const queue = yield* bounded(bufferSize);
2337
2474
  yield* addFinalizer(forkedScope, shutdown(queue));
@@ -2668,7 +2805,7 @@ class RcRefImpl {
2668
2805
  this.idleTimeToLive = idleTimeToLive;
2669
2806
  }
2670
2807
  }
2671
- var make5 = (options) => withFiber2((fiber) => {
2808
+ var make6 = (options) => withFiber2((fiber) => {
2672
2809
  const context = fiber.context;
2673
2810
  const scope = get4(context, Scope);
2674
2811
  const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
@@ -2777,7 +2914,7 @@ var release = (self, state) => {
2777
2914
  };
2778
2915
 
2779
2916
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2780
- var make9 = make5;
2917
+ var make9 = make6;
2781
2918
  var get3 = get2;
2782
2919
 
2783
2920
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2957,7 +3094,7 @@ var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2957
3094
  var make11 = (impl) => FileSystem.of({
2958
3095
  ...impl,
2959
3096
  [TypeId10]: TypeId10,
2960
- glob: make(impl),
3097
+ glob: make2(impl),
2961
3098
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2962
3099
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
2963
3100
  try: () => new TextDecoder(encoding).decode(_),
@@ -3089,7 +3226,7 @@ function makeProvider(load, mapInput) {
3089
3226
  function makeSource(get, transform) {
3090
3227
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3091
3228
  }
3092
- function make6(get) {
3229
+ function make13(get) {
3093
3230
  return makeSource(get, identityPath);
3094
3231
  }
3095
3232
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3098,7 +3235,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3098
3235
  function fromEnvRecord(env, options) {
3099
3236
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3100
3237
  const trie = buildEnvTrie(env);
3101
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3238
+ return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3102
3239
  }
3103
3240
  function fromEnv(options) {
3104
3241
  const env = options?.env ?? {
@@ -3180,7 +3317,7 @@ var Proto2 = {
3180
3317
  };
3181
3318
  }
3182
3319
  };
3183
- function make13(evaluator) {
3320
+ function make14(evaluator) {
3184
3321
  const self = Object.create(Proto2);
3185
3322
  self.evaluator = evaluator;
3186
3323
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3188,14 +3325,14 @@ function make13(evaluator) {
3188
3325
  }
3189
3326
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3190
3327
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3191
- return make13((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3328
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3192
3329
  });
3193
3330
  function all(arg) {
3194
3331
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3195
- return make13((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));
3332
+ 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));
3196
3333
  }
3197
3334
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3198
- return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3335
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3199
3336
  });
3200
3337
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3201
3338
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3314,7 +3451,7 @@ function schema(codec, path) {
3314
3451
  const encodedAst = toEncoded(codecStringTree.ast);
3315
3452
  const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3316
3453
  const localPath = typeof path === "string" ? [path] : path ?? [];
3317
- return make13((provider, pathPrefix) => {
3454
+ return make14((provider, pathPrefix) => {
3318
3455
  const fullPath = [...pathPrefix, ...localPath];
3319
3456
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3320
3457
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3429,4 +3566,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3429
3566
  ...argv
3430
3567
  ];
3431
3568
 
3432
- export { map, makeEquivalence, Clock, currentTimeMillis, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3569
+ export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };