@kitman-sh/cli 0.13.6 → 0.13.8

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-s06x2ktk.js → chunk-08dyrk6y.js} +7 -7
  2. package/dist/{chunk-vktjb2p7.js → chunk-0h49y8gf.js} +164 -36
  3. package/dist/{chunk-2x1q8z5t.js → chunk-5zhh41gb.js} +4 -4
  4. package/dist/{chunk-27pv44t3.js → chunk-5zth85pj.js} +2 -2
  5. package/dist/{chunk-vmzr8xcg.js → chunk-7bytsxkf.js} +7 -5
  6. package/dist/{chunk-9t8afbrw.js → chunk-96svx416.js} +6 -6
  7. package/dist/{chunk-xc1grg7y.js → chunk-a24jc5rx.js} +69 -47
  8. package/dist/{chunk-cg3xstek.js → chunk-byeasm6x.js} +3 -3
  9. package/dist/{chunk-hg8wgm04.js → chunk-c4ccpwjy.js} +4 -4
  10. package/dist/{chunk-cabmcvy1.js → chunk-cbpb2rww.js} +7 -7
  11. package/dist/{chunk-at4e0xvg.js → chunk-cq2h8q9e.js} +7 -7
  12. package/dist/{chunk-xy7ze8dj.js → chunk-eg1n8wvf.js} +36 -22
  13. package/dist/{chunk-j974anp7.js → chunk-ff1r9vcq.js} +1 -1
  14. package/dist/{chunk-89hds8q4.js → chunk-gj1padza.js} +156 -89
  15. package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
  16. package/dist/{chunk-qj412x98.js → chunk-gr17n0z3.js} +11 -11
  17. package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
  18. package/dist/{chunk-r08sz4ry.js → chunk-h1rmw7yk.js} +6 -6
  19. package/dist/{chunk-4nfan8t6.js → chunk-mtkstrh3.js} +60 -14
  20. package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
  21. package/dist/{chunk-mwkn1c5q.js → chunk-vm2qy986.js} +129 -111
  22. package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
  23. package/dist/{chunk-a0wt1r43.js → chunk-z68rzf0f.js} +23 -23
  24. package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
  25. package/dist/{chunk-3teferzd.js → chunk-zz589n7a.js} +7 -7
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-x3cc7dfc.js";
6
+ } from "./chunk-zw3gf6r5.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -32,8 +32,8 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-x3cc7dfc.js";
36
- import"./chunk-s8m2tzdr.js";
35
+ } from "./chunk-zw3gf6r5.js";
36
+ import"./chunk-q5w3v4k1.js";
37
37
  import {
38
38
  SecureRandom,
39
39
  layerWebCrypto,
@@ -45,7 +45,7 @@ import {
45
45
  layer4,
46
46
  kitmanMcpServer,
47
47
  RunnerRpcProtocolVersion
48
- } from "./chunk-mwkn1c5q.js";
48
+ } from "./chunk-vm2qy986.js";
49
49
  import {
50
50
  decodeText,
51
51
  mkString,
@@ -53,23 +53,23 @@ import {
53
53
  Path,
54
54
  withDefault,
55
55
  String2
56
- } from "./chunk-vktjb2p7.js";
56
+ } from "./chunk-0h49y8gf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-cg3xstek.js";
61
- import"./chunk-at4e0xvg.js";
60
+ } from "./chunk-byeasm6x.js";
61
+ import"./chunk-cq2h8q9e.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-vmzr8xcg.js";
67
+ } from "./chunk-7bytsxkf.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make2
71
- } from "./chunk-4nfan8t6.js";
72
- import"./chunk-r08sz4ry.js";
70
+ make3
71
+ } from "./chunk-mtkstrh3.js";
72
+ import"./chunk-h1rmw7yk.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
@@ -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-y1krmnbv.js";
8
+ import"./chunk-q5w3v4k1.js";
9
+ import"./chunk-zw3gf6r5.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -96,9 +96,8 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-x3cc7dfc.js";
99
+ } from "./chunk-zw3gf6r5.js";
100
100
  import {
101
- Clock,
102
101
  interrupt,
103
102
  getCurrent,
104
103
  makeUnsafe2,
@@ -109,8 +108,9 @@ import {
109
108
  shutdownUnsafe,
110
109
  fromQueue,
111
110
  unwrap
112
- } from "./chunk-vktjb2p7.js";
111
+ } from "./chunk-0h49y8gf.js";
113
112
  import {
113
+ Clock,
114
114
  empty,
115
115
  fromInput,
116
116
  merge,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-mwkn1c5q.js";
126
+ } from "./chunk-vm2qy986.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")) {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
830
  }
831
831
 
832
- export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -1,6 +1,13 @@
1
1
  // @bun
2
2
  import {
3
+ isString,
4
+ hasProperty,
5
+ symbol,
6
+ hash,
7
+ symbol2,
8
+ equals,
3
9
  BaseProto,
10
+ PipeInspectableProto,
4
11
  Prototype,
5
12
  some,
6
13
  Service2,
@@ -14,11 +21,8 @@ import {
14
21
  andThen2,
15
22
  map8,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-x3cc7dfc.js";
24
+ scoped
25
+ } from "./chunk-zw3gf6r5.js";
22
26
  import {
23
27
  unwrap,
24
28
  drainFork,
@@ -27,7 +31,49 @@ import {
27
31
  runCollect,
28
32
  runDrain,
29
33
  mkString
30
- } from "./chunk-vktjb2p7.js";
34
+ } from "./chunk-0h49y8gf.js";
35
+
36
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
+ var redactedRegistry = /* @__PURE__ */ new WeakMap;
38
+ var value2 = (self) => {
39
+ if (redactedRegistry.has(self)) {
40
+ return redactedRegistry.get(self);
41
+ } else {
42
+ throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
43
+ }
44
+ };
45
+
46
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
47
+ var TypeId = "~effect/Redacted";
48
+ var isRedacted = (u) => hasProperty(u, TypeId);
49
+ var make = (value, options) => {
50
+ const self = Object.create(Proto);
51
+ if (options?.label) {
52
+ self.label = options.label;
53
+ }
54
+ redactedRegistry.set(self, value);
55
+ return self;
56
+ };
57
+ var Proto = {
58
+ [TypeId]: {
59
+ _A: (_) => _
60
+ },
61
+ label: undefined,
62
+ ...PipeInspectableProto,
63
+ toJSON() {
64
+ return this.toString();
65
+ },
66
+ toString() {
67
+ return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
68
+ },
69
+ [symbol]() {
70
+ return hash(redactedRegistry.get(this));
71
+ },
72
+ [symbol2](that) {
73
+ return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
74
+ }
75
+ };
76
+ var value = value2;
31
77
 
32
78
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
79
  function nominal() {
@@ -55,7 +101,7 @@ var HandleProto = {
55
101
  var makeHandle = (params) => Object.setPrototypeOf({
56
102
  ...params
57
103
  }, HandleProto);
58
- var make = (spawn) => {
104
+ var make2 = (spawn) => {
59
105
  const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
60
106
  const streamLines = (command, options) => splitLines(streamString(command, options));
61
107
  return ChildProcessSpawner.of({
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
176
222
  if (word.length === 0)
177
223
  return;
178
224
  const value = word.map(unwrap2).join("");
179
- words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
225
+ words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
180
226
  word = [];
181
227
  plain = true;
182
228
  braceDepth = 0;
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
266
312
  };
267
313
 
268
314
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
269
- var TypeId = "~effect/process/ChildProcess";
270
- var Proto = {
315
+ var TypeId2 = "~effect/process/ChildProcess";
316
+ var Proto2 = {
271
317
  .../* @__PURE__ */ Prototype({
272
318
  label: "Command",
273
319
  evaluate(fiber) {
274
320
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
275
321
  }
276
322
  }),
277
- [TypeId]: TypeId
323
+ [TypeId2]: TypeId2
278
324
  };
279
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
325
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
280
326
  _tag: "StandardCommand",
281
327
  command,
282
328
  args,
283
329
  options
284
330
  });
285
- var make2 = function make(...args) {
331
+ var make3 = function make(...args) {
286
332
  if (isTemplateString(args[0])) {
287
333
  const [templates, ...expressions] = args;
288
334
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
340
386
  }
341
387
  return script;
342
388
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
389
+ export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-x3cc7dfc.js";
21
+ } from "./chunk-zw3gf6r5.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"];