@kitman-sh/cli 0.10.62 → 0.10.64

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-a4798jzf.js → chunk-3z0p2wtr.js} +3 -3
  2. package/dist/{chunk-d3ksv8y1.js → chunk-677etczq.js} +70 -28
  3. package/dist/{chunk-wtpwkjws.js → chunk-9p6v3jd2.js} +4 -4
  4. package/dist/{chunk-hxkk42cg.js → chunk-a31qjdsm.js} +7 -7
  5. package/dist/{chunk-5y050gx7.js → chunk-b9xcawfx.js} +36 -36
  6. package/dist/{chunk-1z9p4q8b.js → chunk-byhwksbq.js} +2 -2
  7. package/dist/{chunk-d8awdfdj.js → chunk-dzxahdb7.js} +60 -60
  8. package/dist/{chunk-sdpjvc1r.js → chunk-fm4m4v6j.js} +107 -116
  9. package/dist/{chunk-phmma642.js → chunk-fznm6es2.js} +7 -7
  10. package/dist/{chunk-v01c0k6j.js → chunk-h6360r1c.js} +1 -1
  11. package/dist/{chunk-rrz0v4fg.js → chunk-ksx5nt4b.js} +5 -5
  12. package/dist/{chunk-kz8e6cfc.js → chunk-m9v1z0gz.js} +21 -21
  13. package/dist/{chunk-q3c7vmby.js → chunk-p23kedha.js} +1 -1
  14. package/dist/{chunk-0fdgam8v.js → chunk-qdn9tnav.js} +26 -17
  15. package/dist/{chunk-wkccjgwb.js → chunk-rv4r0n7d.js} +4 -4
  16. package/dist/{chunk-1w81w56v.js → chunk-rzr11xyn.js} +2 -2
  17. package/dist/{chunk-smgvtzd2.js → chunk-s2d1a2my.js} +7 -7
  18. package/dist/{chunk-z0z56a72.js → chunk-smmgt31x.js} +9 -9
  19. package/dist/{chunk-hvev0dve.js → chunk-t47h82ew.js} +11 -11
  20. package/dist/{chunk-ft2fm6ye.js → chunk-tdp34kqg.js} +19 -19
  21. package/dist/{chunk-e3tv8mv2.js → chunk-wjs5fpv0.js} +5 -5
  22. package/dist/{chunk-rrnee9mk.js → chunk-wnwyp9qn.js} +1 -1
  23. package/dist/{chunk-09jf8588.js → chunk-x306t6v1.js} +11 -11
  24. package/dist/{chunk-eawcprsb.js → chunk-zej59tf2.js} +14 -60
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -1,4 +1,9 @@
1
1
  // @bun
2
+ import {
3
+ make10,
4
+ runForEach,
5
+ compiled2
6
+ } from "./chunk-qdn9tnav.js";
2
7
  import {
3
8
  getOrUndefined,
4
9
  liftThrowable,
@@ -22,21 +27,16 @@ import {
22
27
  NullOr,
23
28
  Finite,
24
29
  encodeUnknownJsonStringSync
25
- } from "./chunk-d3ksv8y1.js";
30
+ } from "./chunk-677etczq.js";
26
31
  import {
27
32
  isNumber,
28
33
  isJsonObject,
29
34
  isString
30
- } from "./chunk-v01c0k6j.js";
31
- import {
32
- make11,
33
- runForEach,
34
- compiled2
35
- } from "./chunk-0fdgam8v.js";
35
+ } from "./chunk-h6360r1c.js";
36
36
  import {
37
37
  ChildProcessSpawner,
38
- make3
39
- } from "./chunk-eawcprsb.js";
38
+ make2
39
+ } from "./chunk-zej59tf2.js";
40
40
 
41
41
  // packages/agent-runtime/src/opencode-store.ts
42
42
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -169,8 +169,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
169
169
  var isolatedRead = (store, name, input) => gen(function* () {
170
170
  const spawner = yield* ChildProcessSpawner;
171
171
  const [command, ...args] = opencodeReaderCommand();
172
- const handle = yield* spawner.spawn(make3(command, args, {
173
- stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
172
+ const handle = yield* spawner.spawn(make2(command, args, {
173
+ stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
174
174
  stderr: "ignore",
175
175
  extendEnv: false,
176
176
  env: {},
@@ -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-d3ksv8y1.js";
17
+ scoped,
18
+ isRedacted,
19
+ make16,
20
+ value
21
+ } from "./chunk-677etczq.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-0fdgam8v.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-qdn9tnav.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) ? make16(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 };
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-1z9p4q8b.js");
8
+ const { runSrtCli } = await import("./chunk-byhwksbq.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-wtpwkjws.js");
11
+ const { runSrtStep } = await import("./chunk-9p6v3jd2.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-rrz0v4fg.js");
14
+ const { runOpencodeReader } = await import("./chunk-ksx5nt4b.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-kz8e6cfc.js");
17
+ const { runCli } = await import("./chunk-m9v1z0gz.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.62",
3
+ "version": "0.10.64",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {