@kitman-sh/cli 0.27.1 → 0.29.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 (28) hide show
  1. package/dist/{chunk-ja48xvcs.js → chunk-18x6rmkq.js} +9 -9
  2. package/dist/{chunk-tsx0347c.js → chunk-1hgsf81a.js} +1 -1
  3. package/dist/{chunk-nhe2pgzz.js → chunk-1yyq4nh2.js} +24 -24
  4. package/dist/{chunk-samxkpbz.js → chunk-4qrb09w4.js} +3 -3
  5. package/dist/{chunk-t6ynnbcb.js → chunk-4tdk1w0k.js} +7 -7
  6. package/dist/{chunk-h2f26xbd.js → chunk-61dmxexa.js} +70 -28
  7. package/dist/{chunk-1vnvmeqr.js → chunk-801jtbdq.js} +3 -3
  8. package/dist/{chunk-sxjz1jg3.js → chunk-89eskdmq.js} +26 -23
  9. package/dist/{chunk-vv7zg8rb.js → chunk-8andwyqa.js} +5 -5
  10. package/dist/{chunk-zysde2fp.js → chunk-9zxzmsmm.js} +9 -9
  11. package/dist/{chunk-mpxtpwqp.js → chunk-cbkj3km5.js} +1 -1
  12. package/dist/{chunk-dfvamygr.js → chunk-cm2sr223.js} +129 -87
  13. package/dist/{chunk-7re3n1ze.js → chunk-e491q405.js} +10 -10
  14. package/dist/{chunk-8t2wcrvv.js → chunk-eshk0da5.js} +2 -2
  15. package/dist/{chunk-220vzyz9.js → chunk-f9fhdprs.js} +4 -4
  16. package/dist/{chunk-npfdbssf.js → chunk-fyjet273.js} +4 -4
  17. package/dist/{chunk-bsgvmq34.js → chunk-j021bman.js} +14 -60
  18. package/dist/{chunk-g9z2pdfh.js → chunk-pyjx5q5s.js} +1 -1
  19. package/dist/{chunk-ks4q040v.js → chunk-q1medqp5.js} +6 -6
  20. package/dist/{chunk-vz38kngm.js → chunk-q8e58p57.js} +2 -2
  21. package/dist/{chunk-4qjfn1sa.js → chunk-rbpn35g5.js} +1 -1
  22. package/dist/{chunk-j4b1yvcd.js → chunk-sm340tvm.js} +26 -17
  23. package/dist/{chunk-z05pkzhf.js → chunk-vshy6fm5.js} +10 -10
  24. package/dist/{chunk-mvqggmpj.js → chunk-wqdxszpm.js} +19 -19
  25. package/dist/{chunk-xppw33hz.js → chunk-y6petreh.js} +116 -124
  26. package/dist/{chunk-5kqt4bqp.js → chunk-znhjs0t6.js} +1 -1
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-t6ynnbcb.js";
8
- import"./chunk-vv7zg8rb.js";
9
- import"./chunk-xppw33hz.js";
10
- import"./chunk-4qjfn1sa.js";
11
- import"./chunk-j4b1yvcd.js";
12
- import"./chunk-h2f26xbd.js";
7
+ } from "./chunk-4tdk1w0k.js";
8
+ import"./chunk-8andwyqa.js";
9
+ import"./chunk-y6petreh.js";
10
+ import"./chunk-rbpn35g5.js";
11
+ import"./chunk-sm340tvm.js";
12
+ import"./chunk-61dmxexa.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-h2f26xbd.js";
16
+ } from "./chunk-61dmxexa.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-4qjfn1sa.js";
20
+ } from "./chunk-rbpn35g5.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-h2f26xbd.js";
21
+ } from "./chunk-61dmxexa.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];
@@ -203,7 +203,7 @@ import {
203
203
  String4,
204
204
  toCodecStringTree,
205
205
  encodeUnknownJsonStringSync
206
- } from "./chunk-h2f26xbd.js";
206
+ } from "./chunk-61dmxexa.js";
207
207
 
208
208
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
209
209
  var headUnsafe = (self) => {
@@ -252,6 +252,15 @@ var makeEquivalence = (equivalence) => {
252
252
  return (self, that) => is(self, that) && is(that, self);
253
253
  };
254
254
 
255
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
256
+ var BigInt2 = globalThis.BigInt;
257
+ var toNumber = (b) => {
258
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
259
+ return none();
260
+ }
261
+ return some(Number(b));
262
+ };
263
+
255
264
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
256
265
  var bigint0 = /* @__PURE__ */ BigInt(0);
257
266
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1131,7 +1140,7 @@ var MutableRefProto = {
1131
1140
  };
1132
1141
  }
1133
1142
  };
1134
- var make8 = (value) => {
1143
+ var make7 = (value) => {
1135
1144
  const ref = Object.create(MutableRefProto);
1136
1145
  ref.current = value;
1137
1146
  return ref;
@@ -1292,7 +1301,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1292
1301
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1293
1302
  var TypeId3 = "~effect/PubSub";
1294
1303
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1295
- var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1304
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1296
1305
  var unbounded = (options) => make5({
1297
1306
  atomicPubSub: () => makeAtomicUnbounded(options),
1298
1307
  strategy: () => new DroppingStrategy
@@ -1387,7 +1396,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1387
1396
  subscribers.delete(subscription);
1388
1397
  }
1389
1398
  };
1390
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1399
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1391
1400
  class UnboundedPubSub {
1392
1401
  publisherHead = {
1393
1402
  value: AbsentValue,
@@ -1804,7 +1813,7 @@ var QueueProto = {
1804
1813
  };
1805
1814
  }
1806
1815
  };
1807
- var make9 = (options) => withFiber((fiber) => {
1816
+ var make8 = (options) => withFiber((fiber) => {
1808
1817
  const self = Object.create(QueueProto);
1809
1818
  self.dispatcher = fiber.currentDispatcher;
1810
1819
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
@@ -1819,14 +1828,14 @@ var make9 = (options) => withFiber((fiber) => {
1819
1828
  };
1820
1829
  return succeed2(self);
1821
1830
  });
1822
- var bounded = (capacity) => make9({
1831
+ var bounded = (capacity) => make8({
1823
1832
  capacity
1824
1833
  });
1825
- var sliding = (capacity) => make9({
1834
+ var sliding = (capacity) => make8({
1826
1835
  capacity,
1827
1836
  strategy: "sliding"
1828
1837
  });
1829
- var unbounded2 = () => make9();
1838
+ var unbounded2 = () => make8();
1830
1839
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1831
1840
  var offerUnsafe = (self, message) => {
1832
1841
  if (self.state._tag !== "Open") {
@@ -2252,7 +2261,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2252
2261
  return onError(pull, onCause);
2253
2262
  }));
2254
2263
  var toTransform = (channel) => channel.transform;
2255
- var asyncQueue = (scope, f, options) => make9({
2264
+ var asyncQueue = (scope, f, options) => make8({
2256
2265
  capacity: options?.bufferSize,
2257
2266
  strategy: options?.strategy
2258
2267
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2293,7 +2302,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2293
2302
  }));
2294
2303
  var readableStreamToPullUnsafe = (options) => {
2295
2304
  const reader = options.readable.getReader();
2296
- const exit = options.exit ?? make8(undefined);
2305
+ const exit = options.exit ?? make7(undefined);
2297
2306
  const pull = suspend3(() => {
2298
2307
  if (exit.current)
2299
2308
  return exit.current;
@@ -2947,7 +2956,7 @@ var release = (self, state) => {
2947
2956
  };
2948
2957
 
2949
2958
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2950
- var make10 = make6;
2959
+ var make9 = make6;
2951
2960
  var get3 = get2;
2952
2961
 
2953
2962
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2959,7 +2968,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
2959
2968
  var toChannel2 = (stream) => stream.channel;
2960
2969
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2961
2970
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2962
- var make11 = (...values) => fromArray2(values);
2971
+ var make10 = (...values) => fromArray2(values);
2963
2972
  var suspend = (stream) => {
2964
2973
  const suspended = fromChannel2(suspend4(() => stream().channel));
2965
2974
  suspendedStreams.set(suspended, stream);
@@ -3159,7 +3168,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
3159
3168
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3160
3169
  var TypeId10 = "~effect/FileSystem";
3161
3170
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3162
- var make12 = (impl) => FileSystem.of({
3171
+ var make11 = (impl) => FileSystem.of({
3163
3172
  ...impl,
3164
3173
  [TypeId10]: TypeId10,
3165
3174
  glob: make2(impl),
@@ -3219,7 +3228,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3219
3228
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3220
3229
  var TypeId11 = "~effect/Path";
3221
3230
  var Path = /* @__PURE__ */ Service2("effect/Path");
3222
- var make13 = (impl) => Path.of({
3231
+ var make12 = (impl) => Path.of({
3223
3232
  ...impl,
3224
3233
  [TypeId11]: TypeId11,
3225
3234
  resolveWithin(root, input) {
@@ -3294,7 +3303,7 @@ function makeProvider(load, mapInput) {
3294
3303
  function makeSource(get, transform) {
3295
3304
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3296
3305
  }
3297
- function make7(get) {
3306
+ function make13(get) {
3298
3307
  return makeSource(get, identityPath);
3299
3308
  }
3300
3309
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3303,7 +3312,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3303
3312
  function fromEnvRecord(env, options) {
3304
3313
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3305
3314
  const trie = buildEnvTrie(env);
3306
- return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3315
+ return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3307
3316
  }
3308
3317
  function fromEnv(options) {
3309
3318
  const env = options?.env ?? {
@@ -3635,4 +3644,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3635
3644
  ...argv
3636
3645
  ];
3637
3646
 
3638
- export { map, makeEquivalence, 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, 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 };
3647
+ 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, take2, mapAccum, 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, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-sm340tvm.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -13,17 +17,13 @@ import {
13
17
  isJsonObject,
14
18
  decodeJsonString,
15
19
  encodePrettyJsonString
16
- } from "./chunk-h2f26xbd.js";
17
- import {
18
- FileSystem,
19
- Path
20
- } from "./chunk-j4b1yvcd.js";
20
+ } from "./chunk-61dmxexa.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-zysde2fp.js";
26
+ } from "./chunk-9zxzmsmm.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,10 +31,10 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-xppw33hz.js";
35
- import"./chunk-1vnvmeqr.js";
36
- import"./chunk-bsgvmq34.js";
37
- import"./chunk-4qjfn1sa.js";
34
+ } from "./chunk-y6petreh.js";
35
+ import"./chunk-801jtbdq.js";
36
+ import"./chunk-j021bman.js";
37
+ import"./chunk-rbpn35g5.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -1,4 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ decodeText,
4
+ mkString,
5
+ FileSystem,
6
+ Path,
7
+ withDefault,
8
+ String2
9
+ } from "./chunk-sm340tvm.js";
2
10
  import {
3
11
  isString,
4
12
  isObject,
@@ -35,7 +43,7 @@ import {
35
43
  toCodecJson,
36
44
  Json,
37
45
  encodePrettyJsonString
38
- } from "./chunk-h2f26xbd.js";
46
+ } from "./chunk-61dmxexa.js";
39
47
  import {
40
48
  SecureRandom,
41
49
  layerWebCrypto,
@@ -52,34 +60,26 @@ import {
52
60
  KitDeclarations,
53
61
  kitmanMcpServer,
54
62
  RunnerRpcProtocolVersion
55
- } from "./chunk-xppw33hz.js";
56
- import {
57
- decodeText,
58
- mkString,
59
- FileSystem,
60
- Path,
61
- withDefault,
62
- String2
63
- } from "./chunk-j4b1yvcd.js";
63
+ } from "./chunk-y6petreh.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-1vnvmeqr.js";
67
+ } from "./chunk-801jtbdq.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-ja48xvcs.js";
75
- import"./chunk-t6ynnbcb.js";
76
- import"./chunk-tsx0347c.js";
74
+ } from "./chunk-18x6rmkq.js";
75
+ import"./chunk-4tdk1w0k.js";
76
+ import"./chunk-1hgsf81a.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
- make3
80
- } from "./chunk-bsgvmq34.js";
81
- import"./chunk-vv7zg8rb.js";
82
- import"./chunk-4qjfn1sa.js";
79
+ make2
80
+ } from "./chunk-j021bman.js";
81
+ import"./chunk-8andwyqa.js";
82
+ import"./chunk-rbpn35g5.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
3891
3891
  }));
3892
3892
  var run = (command, args, cwd) => gen(function* () {
3893
3893
  const spawner = yield* ChildProcessSpawner;
3894
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
3894
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
3895
3895
  const [stdout, stderr, exitCode] = yield* all3([
3896
3896
  mkString(decodeText(handle.stdout)),
3897
3897
  mkString(decodeText(handle.stderr)),