@kitman-sh/cli 0.50.1 → 0.52.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-8r9k7pqk.js → chunk-2nq80r46.js} +59 -19
  2. package/dist/{chunk-k5cqc0cs.js → chunk-2t1hcdeq.js} +19 -21
  3. package/dist/{chunk-apv9h5tz.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-g3c1vesf.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-rr0rem5d.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-mtrhqr16.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-h3wes7wf.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-qfwhsqej.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-hyaq30ne.js → chunk-bj0zchck.js} +179 -188
  10. package/dist/{chunk-watq46xe.js → chunk-chbdcf34.js} +9 -11
  11. package/dist/{chunk-7y1w0dhd.js → chunk-eqh0h088.js} +25 -27
  12. package/dist/{chunk-ecweehc6.js → chunk-h5ydhdhx.js} +23 -23
  13. package/dist/{chunk-q8m2ygyt.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-brbym443.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-v96hm634.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-72ht3484.js → chunk-pppryg54.js} +6 -6
  17. package/dist/{chunk-ag79vvjy.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-s6z4sdkw.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-s8ws5fqj.js → chunk-qsbq9gvr.js} +350 -185
  20. package/dist/{chunk-n00cpb86.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-k1fdsn2c.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-9jz94mb7.js → chunk-trtgab3h.js} +3 -3
  23. package/dist/{chunk-9vdy85kg.js → chunk-wb04fv2s.js} +34 -34
  24. package/dist/{chunk-5tgpa02q.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-bk28dr40.js → chunk-xbqd3kqc.js} +14 -14
  26. package/dist/{chunk-n381rqax.js → chunk-zb4t1yrt.js} +71 -257
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -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,
@@ -9,18 +16,13 @@ import {
9
16
  fail3,
10
17
  getOrThrow,
11
18
  TaggedError,
12
- ClockRef,
13
- currentTimeMillis2,
14
19
  never,
15
20
  flatMap3,
16
21
  andThen2,
17
22
  map9,
18
23
  raceFirst,
19
- scoped,
20
- isRedacted,
21
- make16,
22
- value
23
- } from "./chunk-n381rqax.js";
24
+ scoped
25
+ } from "./chunk-zb4t1yrt.js";
24
26
  import {
25
27
  unwrap,
26
28
  drainFork,
@@ -29,11 +31,49 @@ import {
29
31
  runCollect,
30
32
  runDrain,
31
33
  mkString
32
- } from "./chunk-hyaq30ne.js";
34
+ } from "./chunk-bj0zchck.js";
33
35
 
34
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
35
- var Clock = ClockRef;
36
- var currentTimeMillis = currentTimeMillis2;
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;
37
77
 
38
78
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
39
79
  function nominal() {
@@ -61,7 +101,7 @@ var HandleProto = {
61
101
  var makeHandle = (params) => Object.setPrototypeOf({
62
102
  ...params
63
103
  }, HandleProto);
64
- var make = (spawn) => {
104
+ var make2 = (spawn) => {
65
105
  const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
66
106
  const streamLines = (command, options) => splitLines(streamString(command, options));
67
107
  return ChildProcessSpawner.of({
@@ -182,7 +222,7 @@ var parseTemplate = (texts, values) => {
182
222
  if (word.length === 0)
183
223
  return;
184
224
  const value = word.map(unwrap2).join("");
185
- 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);
186
226
  word = [];
187
227
  plain = true;
188
228
  braceDepth = 0;
@@ -272,23 +312,23 @@ var parseTemplate = (texts, values) => {
272
312
  };
273
313
 
274
314
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
275
- var TypeId = "~effect/process/ChildProcess";
276
- var Proto = {
315
+ var TypeId2 = "~effect/process/ChildProcess";
316
+ var Proto2 = {
277
317
  .../* @__PURE__ */ Prototype({
278
318
  label: "Command",
279
319
  evaluate(fiber) {
280
320
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
281
321
  }
282
322
  }),
283
- [TypeId]: TypeId
323
+ [TypeId2]: TypeId2
284
324
  };
285
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
325
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
286
326
  _tag: "StandardCommand",
287
327
  command,
288
328
  args,
289
329
  options
290
330
  });
291
- var make2 = function make(...args) {
331
+ var make3 = function make(...args) {
292
332
  if (isTemplateString(args[0])) {
293
333
  const [templates, ...expressions] = args;
294
334
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -346,4 +386,4 @@ var shellScript = (templates, expressions) => {
346
386
  }
347
387
  return script;
348
388
  };
349
- export { Clock, currentTimeMillis, ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
389
+ export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get4,
15
+ get3,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,19 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-n381rqax.js";
100
- import {
101
- interrupt,
102
- getCurrent,
103
- makeUnsafe2,
104
- bounded,
105
- offerAll,
106
- failCause,
107
- end,
108
- shutdownUnsafe,
109
- fromQueue,
110
- unwrap
111
- } from "./chunk-hyaq30ne.js";
99
+ } from "./chunk-zb4t1yrt.js";
112
100
  import {
113
101
  empty,
114
102
  fromInput,
@@ -122,10 +110,20 @@ import {
122
110
  ParseOptions,
123
111
  RpcClientDefect,
124
112
  RpcClientError
125
- } from "./chunk-s8ws5fqj.js";
113
+ } from "./chunk-qsbq9gvr.js";
126
114
  import {
127
- Clock
128
- } from "./chunk-8r9k7pqk.js";
115
+ Clock,
116
+ interrupt,
117
+ getCurrent,
118
+ makeUnsafe2,
119
+ bounded,
120
+ offerAll,
121
+ failCause,
122
+ end,
123
+ shutdownUnsafe,
124
+ fromQueue,
125
+ unwrap
126
+ } from "./chunk-bj0zchck.js";
129
127
 
130
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
131
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -239,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
239
237
  const disableTracing = options?.disableTracing ?? false;
240
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
241
239
  const services = yield* context();
242
- const scope = get4(services, Scope);
240
+ const scope = get3(services, Scope);
243
241
  const entries = new Map;
244
242
  let isShutdown = false;
245
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -485,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
485
483
  };
486
484
  });
487
485
  var clientIdCounter = 0;
488
- var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
489
487
  const clientId = clientIdCounter++;
490
488
  const {
491
489
  codecFor,
@@ -645,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
645
643
  return entry;
646
644
  }
647
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
648
- const parseOptions = get4(rpc.annotations, ParseOptions);
646
+ const parseOptions = get3(rpc.annotations, ParseOptions);
649
647
  const exitSchema2 = exitSchema(rpc);
650
648
  let decodeDiscardExit;
651
649
  entry = {
@@ -831,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
831
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
832
830
  }
833
831
 
834
- export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-n381rqax.js";
6
+ } from "./chunk-zb4t1yrt.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-9jz94mb7.js";
7
+ } from "./chunk-trtgab3h.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-q8m2ygyt.js";
8
- import"./chunk-k5cqc0cs.js";
9
- import"./chunk-s8ws5fqj.js";
10
- import"./chunk-5tgpa02q.js";
11
- import"./chunk-hyaq30ne.js";
12
- import"./chunk-n381rqax.js";
7
+ } from "./chunk-kt26vpwf.js";
8
+ import"./chunk-2t1hcdeq.js";
9
+ import"./chunk-qsbq9gvr.js";
10
+ import"./chunk-wxg9k10v.js";
11
+ import"./chunk-bj0zchck.js";
12
+ import"./chunk-zb4t1yrt.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-n381rqax.js";
27
+ } from "./chunk-zb4t1yrt.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-hyaq30ne.js";
31
+ } from "./chunk-bj0zchck.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-s8ws5fqj.js";
42
+ } from "./chunk-qsbq9gvr.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-n381rqax.js";
16
+ } from "./chunk-zb4t1yrt.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-hyaq30ne.js";
20
+ } from "./chunk-bj0zchck.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-v96hm634.js";
26
+ } from "./chunk-my9db578.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-s8ws5fqj.js";
35
- import"./chunk-8r9k7pqk.js";
36
- import"./chunk-mtrhqr16.js";
37
- import"./chunk-5tgpa02q.js";
34
+ } from "./chunk-qsbq9gvr.js";
35
+ import"./chunk-a40yta1r.js";
36
+ import"./chunk-2nq80r46.js";
37
+ import"./chunk-wxg9k10v.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-n00cpb86.js";
8
- import"./chunk-5tgpa02q.js";
9
- import"./chunk-n381rqax.js";
7
+ } from "./chunk-tfznw549.js";
8
+ import"./chunk-wxg9k10v.js";
9
+ import"./chunk-zb4t1yrt.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,