@kitman-sh/cli 0.10.57 → 0.10.58

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 (26) hide show
  1. package/dist/{chunk-a1yf46xt.js → chunk-4jbn6hma.js} +3 -3
  2. package/dist/{chunk-wd0rvdt4.js → chunk-59n1m39j.js} +8 -8
  3. package/dist/{chunk-7evwar6b.js → chunk-76y7v9rj.js} +1 -1
  4. package/dist/{chunk-4kssrezn.js → chunk-8y8ax1bt.js} +1 -1
  5. package/dist/{chunk-mjzvfh9d.js → chunk-9rxwzn7y.js} +11 -11
  6. package/dist/{chunk-q5s64k8g.js → chunk-ac19vqmc.js} +61 -61
  7. package/dist/{chunk-99ver3za.js → chunk-ac851090.js} +4 -4
  8. package/dist/{chunk-x3mgznk2.js → chunk-ahtfwz4b.js} +2 -2
  9. package/dist/{chunk-h8s4vh47.js → chunk-bbsh3a70.js} +37 -37
  10. package/dist/{chunk-nrkwrajj.js → chunk-c6gyfqv4.js} +7 -7
  11. package/dist/{chunk-g53wn1q8.js → chunk-ec5df6ea.js} +2 -2
  12. package/dist/{chunk-fmhy6tss.js → chunk-edf91eyv.js} +4 -4
  13. package/dist/{chunk-23vene3j.js → chunk-hegberew.js} +7 -7
  14. package/dist/{chunk-gwcqz1bj.js → chunk-jd8xhqgm.js} +1 -1
  15. package/dist/{chunk-cy5fbrfm.js → chunk-kvv9vzzr.js} +45 -191
  16. package/dist/{chunk-hwd2gg2f.js → chunk-mfhmj6r6.js} +9 -9
  17. package/dist/{chunk-253add07.js → chunk-n1m89pnt.js} +5 -5
  18. package/dist/{chunk-61k67vxh.js → chunk-nk5h4cvx.js} +115 -73
  19. package/dist/{chunk-jc920h47.js → chunk-qbyxcjy1.js} +11 -11
  20. package/dist/{chunk-kyqsbr2n.js → chunk-qkbnbr47.js} +22 -22
  21. package/dist/{chunk-qhpyzn7c.js → chunk-qmmer308.js} +349 -198
  22. package/dist/{chunk-5tfxtw9z.js → chunk-tr80mjnp.js} +14 -60
  23. package/dist/{chunk-de4cfe40.js → chunk-zc214v7k.js} +9 -9
  24. package/dist/{chunk-v43h8s08.js → chunk-zxs37afg.js} +19 -19
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -1,13 +1,6 @@
1
1
  // @bun
2
2
  import {
3
- isString2,
4
- hasProperty,
5
- symbol,
6
- hash,
7
- symbol2,
8
- equals,
9
3
  BaseProto,
10
- PipeInspectableProto,
11
4
  Prototype,
12
5
  some,
13
6
  Service2,
@@ -21,8 +14,11 @@ import {
21
14
  andThen2,
22
15
  map8,
23
16
  raceFirst,
24
- scoped
25
- } from "./chunk-61k67vxh.js";
17
+ scoped,
18
+ isRedacted,
19
+ make15,
20
+ value
21
+ } from "./chunk-nk5h4cvx.js";
26
22
  import {
27
23
  unwrap,
28
24
  drainFork,
@@ -31,49 +27,7 @@ import {
31
27
  runCollect,
32
28
  runDrain,
33
29
  mkString
34
- } from "./chunk-cy5fbrfm.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${isString2(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;
30
+ } from "./chunk-kvv9vzzr.js";
77
31
 
78
32
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
79
33
  function nominal() {
@@ -101,7 +55,7 @@ var HandleProto = {
101
55
  var makeHandle = (params) => Object.setPrototypeOf({
102
56
  ...params
103
57
  }, HandleProto);
104
- var make2 = (spawn) => {
58
+ var make = (spawn) => {
105
59
  const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
106
60
  const streamLines = (command, options) => splitLines(streamString(command, options));
107
61
  return ChildProcessSpawner.of({
@@ -222,7 +176,7 @@ var parseTemplate = (texts, values) => {
222
176
  if (word.length === 0)
223
177
  return;
224
178
  const value = word.map(unwrap2).join("");
225
- words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
179
+ words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make15(value) : value);
226
180
  word = [];
227
181
  plain = true;
228
182
  braceDepth = 0;
@@ -312,23 +266,23 @@ var parseTemplate = (texts, values) => {
312
266
  };
313
267
 
314
268
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
315
- var TypeId2 = "~effect/process/ChildProcess";
316
- var Proto2 = {
269
+ var TypeId = "~effect/process/ChildProcess";
270
+ var Proto = {
317
271
  .../* @__PURE__ */ Prototype({
318
272
  label: "Command",
319
273
  evaluate(fiber) {
320
274
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
321
275
  }
322
276
  }),
323
- [TypeId2]: TypeId2
277
+ [TypeId]: TypeId
324
278
  };
325
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
279
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
326
280
  _tag: "StandardCommand",
327
281
  command,
328
282
  args,
329
283
  options
330
284
  });
331
- var make3 = function make(...args) {
285
+ var make2 = function make(...args) {
332
286
  if (isTemplateString(args[0])) {
333
287
  const [templates, ...expressions] = args;
334
288
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -386,4 +340,4 @@ var shellScript = (templates, expressions) => {
386
340
  }
387
341
  return script;
388
342
  };
389
- export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
343
+ export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, 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,9 +96,8 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-61k67vxh.js";
99
+ } from "./chunk-nk5h4cvx.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-cy5fbrfm.js";
111
+ } from "./chunk-kvv9vzzr.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-qhpyzn7c.js";
126
+ } from "./chunk-qmmer308.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 make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make3 = /* @__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, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -1,4 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ decodeText,
4
+ mkString,
5
+ FileSystem,
6
+ Path,
7
+ withDefault,
8
+ String2
9
+ } from "./chunk-kvv9vzzr.js";
2
10
  import {
3
11
  isString2,
4
12
  hasProperty,
@@ -32,9 +40,9 @@ import {
32
40
  toCodecJson,
33
41
  Json,
34
42
  encodePrettyJsonString
35
- } from "./chunk-61k67vxh.js";
36
- import"./chunk-4kssrezn.js";
37
- import"./chunk-7evwar6b.js";
43
+ } from "./chunk-nk5h4cvx.js";
44
+ import"./chunk-8y8ax1bt.js";
45
+ import"./chunk-76y7v9rj.js";
38
46
  import {
39
47
  SecureRandom,
40
48
  layerWebCrypto,
@@ -46,31 +54,23 @@ import {
46
54
  layer4,
47
55
  kitmanMcpServer,
48
56
  RunnerRpcProtocolVersion
49
- } from "./chunk-qhpyzn7c.js";
50
- import {
51
- decodeText,
52
- mkString,
53
- FileSystem,
54
- Path,
55
- withDefault,
56
- String2
57
- } from "./chunk-cy5fbrfm.js";
57
+ } from "./chunk-qmmer308.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-a1yf46xt.js";
62
- import"./chunk-23vene3j.js";
61
+ } from "./chunk-4jbn6hma.js";
62
+ import"./chunk-hegberew.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-wd0rvdt4.js";
68
+ } from "./chunk-59n1m39j.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
- make3
72
- } from "./chunk-5tfxtw9z.js";
73
- import"./chunk-de4cfe40.js";
71
+ make2
72
+ } from "./chunk-tr80mjnp.js";
73
+ import"./chunk-zc214v7k.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
109
109
  }));
110
110
  var run = (command, args, cwd) => gen(function* () {
111
111
  const spawner = yield* ChildProcessSpawner;
112
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
112
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
113
113
  const [stdout, stderr, exitCode] = yield* all3([
114
114
  mkString(decodeText(handle.stdout)),
115
115
  mkString(decodeText(handle.stderr)),
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-x3mgznk2.js");
8
+ const { runSrtCli } = await import("./chunk-ahtfwz4b.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-99ver3za.js");
11
+ const { runSrtStep } = await import("./chunk-ac851090.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-253add07.js");
14
+ const { runOpencodeReader } = await import("./chunk-n1m89pnt.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-kyqsbr2n.js");
17
+ const { runCli } = await import("./chunk-qkbnbr47.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.10.57",
3
+ "version": "0.10.58",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {