@kitman-sh/cli 0.51.0 → 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-fqh4pj6b.js → chunk-2nq80r46.js} +60 -14
  2. package/dist/{chunk-5hsqbwzd.js → chunk-2t1hcdeq.js} +20 -20
  3. package/dist/{chunk-04wqa07j.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-2d1ck2fa.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-adevz872.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-hf0chy5n.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-s5qejghj.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-5pjbxhxy.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-5smh4dp2.js → chunk-bj0zchck.js} +35 -184
  10. package/dist/{chunk-6ryjppc7.js → chunk-chbdcf34.js} +8 -8
  11. package/dist/{chunk-whspb67e.js → chunk-eqh0h088.js} +24 -24
  12. package/dist/{chunk-xg5essbk.js → chunk-h5ydhdhx.js} +20 -20
  13. package/dist/{chunk-558rmyma.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-a71b15k3.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-c3yzdpwf.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-8gkrs473.js → chunk-pppryg54.js} +5 -5
  17. package/dist/{chunk-tfwgeqx5.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-j3x7fcrd.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-tse7tfe9.js → chunk-qsbq9gvr.js} +338 -181
  20. package/dist/{chunk-n3jpxd14.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-9ykh05hz.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-vaeva1k8.js → chunk-trtgab3h.js} +2 -2
  23. package/dist/{chunk-hasds4yd.js → chunk-wb04fv2s.js} +32 -32
  24. package/dist/{chunk-4vxbxjf8.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-ptqswdck.js → chunk-xbqd3kqc.js} +12 -12
  26. package/dist/{chunk-k462v2v7.js → chunk-zb4t1yrt.js} +60 -102
  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,
@@ -14,11 +21,8 @@ import {
14
21
  andThen2,
15
22
  map9,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-k462v2v7.js";
24
+ scoped
25
+ } from "./chunk-zb4t1yrt.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-5smh4dp2.js";
34
+ } from "./chunk-bj0zchck.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(map9((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 };
@@ -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,20 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-k462v2v7.js";
100
- import {
101
- Clock,
102
- interrupt,
103
- getCurrent,
104
- makeUnsafe2,
105
- bounded,
106
- offerAll,
107
- failCause,
108
- end,
109
- shutdownUnsafe,
110
- fromQueue,
111
- unwrap
112
- } from "./chunk-5smh4dp2.js";
99
+ } from "./chunk-zb4t1yrt.js";
113
100
  import {
114
101
  empty,
115
102
  fromInput,
@@ -123,7 +110,20 @@ import {
123
110
  ParseOptions,
124
111
  RpcClientDefect,
125
112
  RpcClientError
126
- } from "./chunk-tse7tfe9.js";
113
+ } from "./chunk-qsbq9gvr.js";
114
+ import {
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";
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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get4(services, Scope);
240
+ const scope = get3(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -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,
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get4(rpc.annotations, ParseOptions);
646
+ const parseOptions = get3(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -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 };
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-k462v2v7.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-vaeva1k8.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-558rmyma.js";
8
- import"./chunk-5hsqbwzd.js";
9
- import"./chunk-tse7tfe9.js";
10
- import"./chunk-4vxbxjf8.js";
11
- import"./chunk-5smh4dp2.js";
12
- import"./chunk-k462v2v7.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-k462v2v7.js";
27
+ } from "./chunk-zb4t1yrt.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-5smh4dp2.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-tse7tfe9.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-k462v2v7.js";
16
+ } from "./chunk-zb4t1yrt.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-5smh4dp2.js";
20
+ } from "./chunk-bj0zchck.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-c3yzdpwf.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-tse7tfe9.js";
35
- import"./chunk-hf0chy5n.js";
36
- import"./chunk-fqh4pj6b.js";
37
- import"./chunk-4vxbxjf8.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-n3jpxd14.js";
8
- import"./chunk-4vxbxjf8.js";
9
- import"./chunk-k462v2v7.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,