@kitman-sh/cli 0.12.0-rc.6 → 0.12.0-rc.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 (28) hide show
  1. package/dist/{chunk-15geyg2d.js → chunk-3cgshf16.js} +98 -101
  2. package/dist/{chunk-j5t5nye5.js → chunk-3kxwb7qn.js} +7 -7
  3. package/dist/{chunk-x6vj1tf8.js → chunk-6pqxsnk1.js} +15 -16
  4. package/dist/{chunk-e4an66v2.js → chunk-7959aeck.js} +5 -5
  5. package/dist/{chunk-xwya1er0.js → chunk-892qrkb3.js} +14 -60
  6. package/dist/{chunk-0346hwh6.js → chunk-8sz25ptv.js} +4 -5
  7. package/dist/{chunk-1t12wvv1.js → chunk-9c9vrbh4.js} +205 -216
  8. package/dist/{chunk-bvf6e6yg.js → chunk-9q7qc1dg.js} +1 -1
  9. package/dist/{chunk-z450wa10.js → chunk-bz4bp0q7.js} +3 -4
  10. package/dist/{chunk-znar1th3.js → chunk-d8qcmqh5.js} +4 -4
  11. package/dist/{chunk-fxm2jhbd.js → chunk-det0tmx7.js} +1 -1
  12. package/dist/{chunk-r7f8tjc8.js → chunk-dh09wyed.js} +127 -129
  13. package/dist/{chunk-ewhzaqp3.js → chunk-e711ebdj.js} +2 -2
  14. package/dist/{chunk-wc2kba4z.js → chunk-ey4mf341.js} +6 -7
  15. package/dist/{chunk-qrm334c6.js → chunk-jg8n8z0z.js} +4 -4
  16. package/dist/{chunk-4w4spvb1.js → chunk-jwc8bdga.js} +5 -5
  17. package/dist/{chunk-nzjb36ad.js → chunk-mm2m3bys.js} +1 -1
  18. package/dist/{chunk-r5sw3fe0.js → chunk-mmpcdj8f.js} +10 -12
  19. package/dist/{chunk-0qz10ek8.js → chunk-s8m2tzdr.js} +4 -4
  20. package/dist/{chunk-ktr2smac.js → chunk-scb6qgy2.js} +47 -49
  21. package/dist/{chunk-5j848ckb.js → chunk-skqn4h13.js} +2 -2
  22. package/dist/{chunk-56knbdt6.js → chunk-vkchn89k.js} +23 -25
  23. package/dist/{chunk-pd2vz4bm.js → chunk-vrms6e1m.js} +13 -15
  24. package/dist/{chunk-vtfwjhzh.js → chunk-x3cc7dfc.js} +379 -63
  25. package/dist/{chunk-gspfm7qh.js → chunk-y7vjk8vv.js} +31 -165
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
  28. package/dist/chunk-c6rbt85q.js +0 -141
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-vtfwjhzh.js";
9
+ } from "./chunk-x3cc7dfc.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-gspfm7qh.js";
12
+ } from "./chunk-y7vjk8vv.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-1t12wvv1.js";
22
+ } from "./chunk-9c9vrbh4.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-4w4spvb1.js";
28
+ } from "./chunk-jwc8bdga.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  import {
3
- isString2,
3
+ isString,
4
4
  hasProperty,
5
5
  isTagged,
6
6
  Reference,
@@ -32,9 +32,8 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-vtfwjhzh.js";
36
- import"./chunk-0qz10ek8.js";
37
- import"./chunk-c6rbt85q.js";
35
+ } from "./chunk-x3cc7dfc.js";
36
+ import"./chunk-s8m2tzdr.js";
38
37
  import {
39
38
  SecureRandom,
40
39
  layerWebCrypto,
@@ -46,7 +45,7 @@ import {
46
45
  layer4,
47
46
  kitmanMcpServer,
48
47
  RunnerRpcProtocolVersion
49
- } from "./chunk-1t12wvv1.js";
48
+ } from "./chunk-9c9vrbh4.js";
50
49
  import {
51
50
  decodeText,
52
51
  mkString,
@@ -54,23 +53,23 @@ import {
54
53
  Path,
55
54
  withDefault,
56
55
  String2
57
- } from "./chunk-gspfm7qh.js";
56
+ } from "./chunk-y7vjk8vv.js";
58
57
  import {
59
58
  Packument,
60
59
  tarballMatches
61
- } from "./chunk-e4an66v2.js";
62
- import"./chunk-j5t5nye5.js";
60
+ } from "./chunk-7959aeck.js";
61
+ import {
62
+ ChildProcessSpawner,
63
+ make2
64
+ } from "./chunk-892qrkb3.js";
65
+ import"./chunk-3kxwb7qn.js";
63
66
  import {
64
67
  AgentDeclaration,
65
68
  KitDeclarations,
66
69
  describeFlag,
67
70
  Described
68
- } from "./chunk-qrm334c6.js";
69
- import {
70
- ChildProcessSpawner,
71
- make3
72
- } from "./chunk-xwya1er0.js";
73
- import"./chunk-4w4spvb1.js";
71
+ } from "./chunk-jg8n8z0z.js";
72
+ import"./chunk-jwc8bdga.js";
74
73
 
75
74
  // packages/sdk/src/build/index.ts
76
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -109,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
109
108
  }));
110
109
  var run = (command, args, cwd) => gen(function* () {
111
110
  const spawner = yield* ChildProcessSpawner;
112
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
113
112
  const [stdout, stderr, exitCode] = yield* all3([
114
113
  mkString(decodeText(handle.stdout)),
115
114
  mkString(decodeText(handle.stderr)),
@@ -139,7 +138,7 @@ var inKit = (directory, file, what) => gen(function* () {
139
138
  return resolved;
140
139
  });
141
140
  var readText = (directory, text, what) => gen(function* () {
142
- if (isString2(text))
141
+ if (isString(text))
143
142
  return text;
144
143
  const fs = yield* FileSystem;
145
144
  const file = yield* inKit(directory, text.file, what);
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  import {
3
- isString2,
3
+ isString,
4
4
  isNone,
5
5
  match,
6
6
  fromUndefinedOr,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-vtfwjhzh.js";
27
+ } from "./chunk-x3cc7dfc.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-gspfm7qh.js";
31
+ } from "./chunk-y7vjk8vv.js";
32
32
  import {
33
33
  digestSha256,
34
34
  digestSha512,
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-1t12wvv1.js";
41
+ } from "./chunk-9c9vrbh4.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -101,7 +101,7 @@ var untar = (tar) => {
101
101
  };
102
102
  var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
103
103
  var npmRegistryAt = (url = registryUrl) => {
104
- const base = (isString2(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
104
+ const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
105
105
  const unreachable = (name, version) => (error) => new NpmRegistryError({
106
106
  kind: "unreachable",
107
107
  message: `npm did not answer for ${name}@${version}: ${error.message}; try again`
@@ -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-vtfwjhzh.js";
17
+ scoped,
18
+ isRedacted,
19
+ make16,
20
+ value
21
+ } from "./chunk-x3cc7dfc.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-gspfm7qh.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-y7vjk8vv.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 };
@@ -7,11 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-56knbdt6.js";
11
- import"./chunk-xwya1er0.js";
12
- import"./chunk-c6rbt85q.js";
13
- import"./chunk-gspfm7qh.js";
14
- import"./chunk-vtfwjhzh.js";
10
+ } from "./chunk-vkchn89k.js";
11
+ import"./chunk-892qrkb3.js";
12
+ import"./chunk-y7vjk8vv.js";
13
+ import"./chunk-x3cc7dfc.js";
15
14
  export {
16
15
  decoded2 as decoded,
17
16
  decodedOption2 as decodedOption,