@kitman-sh/cli 0.13.7 → 0.13.9

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 (27) hide show
  1. package/dist/{chunk-pxvd8w2v.js → chunk-0tjg9eya.js} +1 -1
  2. package/dist/{chunk-9g8tc40f.js → chunk-0wj65j5e.js} +7 -7
  3. package/dist/{chunk-4bgj3b5r.js → chunk-1ht6jwzm.js} +10 -9
  4. package/dist/{chunk-4crf5vhd.js → chunk-53qp6kcp.js} +2 -2
  5. package/dist/{chunk-xt97vb58.js → chunk-69fcvx7d.js} +109 -65
  6. package/dist/{chunk-bbks1scp.js → chunk-6jtjcvnc.js} +60 -46
  7. package/dist/{chunk-4x3zm541.js → chunk-9gg1w4aa.js} +353 -434
  8. package/dist/{chunk-m406nanz.js → chunk-a44ebqzx.js} +6 -6
  9. package/dist/{chunk-t82w7459.js → chunk-aezq3fyy.js} +69 -218
  10. package/dist/{chunk-24h0y27w.js → chunk-cw61zyh5.js} +1 -1
  11. package/dist/{chunk-kk32jckf.js → chunk-ezv4p0zr.js} +4 -4
  12. package/dist/{chunk-mmd7mjv0.js → chunk-fh58za51.js} +3 -3
  13. package/dist/{chunk-m079pjdy.js → chunk-hezxa6q5.js} +7 -7
  14. package/dist/{chunk-vxfajzpz.js → chunk-kq88aaa3.js} +62 -16
  15. package/dist/{chunk-x44re8th.js → chunk-ksgt1tdc.js} +7 -7
  16. package/dist/{chunk-t37qzgmb.js → chunk-pj3mer60.js} +4 -4
  17. package/dist/{chunk-zgraq2y3.js → chunk-qjqa338f.js} +308 -111
  18. package/dist/{chunk-1nxcn08k.js → chunk-qkjfx2ts.js} +16 -16
  19. package/dist/{chunk-byg71zra.js → chunk-rz18qefg.js} +7 -7
  20. package/dist/{chunk-bs5bh8ys.js → chunk-s63fjc69.js} +20 -20
  21. package/dist/{chunk-mtdz4k32.js → chunk-tspf987k.js} +5 -5
  22. package/dist/{chunk-8v0t5kzg.js → chunk-v190zzc5.js} +1 -1
  23. package/dist/{chunk-22z1yemd.js → chunk-wzr1n3zy.js} +11 -5
  24. package/dist/{chunk-jbjz7b6n.js → chunk-x8sewxzm.js} +106 -106
  25. package/dist/{chunk-ggmwpwhf.js → chunk-z5f7g1w1.js} +2 -2
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zgraq2y3.js";
6
+ } from "./chunk-qjqa338f.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-mtdz4k32.js";
11
- import"./chunk-vxfajzpz.js";
12
- import"./chunk-t82w7459.js";
13
- import"./chunk-zgraq2y3.js";
10
+ } from "./chunk-tspf987k.js";
11
+ import"./chunk-kq88aaa3.js";
12
+ import"./chunk-aezq3fyy.js";
13
+ import"./chunk-qjqa338f.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-ggmwpwhf.js";
8
- import"./chunk-pxvd8w2v.js";
9
- import"./chunk-zgraq2y3.js";
7
+ } from "./chunk-z5f7g1w1.js";
8
+ import"./chunk-0tjg9eya.js";
9
+ import"./chunk-qjqa338f.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -12,7 +12,7 @@ import {
12
12
  gen,
13
13
  fail7,
14
14
  flatMap3,
15
- map8,
15
+ map7,
16
16
  mapError2,
17
17
  orDie,
18
18
  provide3,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zgraq2y3.js";
27
+ } from "./chunk-qjqa338f.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-t82w7459.js";
31
+ } from "./chunk-aezq3fyy.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-4x3zm541.js";
42
+ } from "./chunk-9gg1w4aa.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -73,7 +73,7 @@ var PackageJson = Struct({ kitman: optionalKey(Unknown) });
73
73
  var decodePackageJson = decodeUnknownOption(fromJsonString(PackageJson));
74
74
  var decodeManifest = decodeUnknownOption(KitManifest);
75
75
  var decodeJson = decodeUnknownOption(fromJsonString(Unknown));
76
- var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map8((buffer) => new Uint8Array(buffer)));
76
+ var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map7((buffer) => new Uint8Array(buffer)));
77
77
  var text = (bytes) => new TextDecoder().decode(bytes).replace(/\0.*$/su, "");
78
78
  var untar = (tar) => {
79
79
  const files = new Map;
@@ -103,7 +103,7 @@ var untar = (tar) => {
103
103
  var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
104
104
  var newerOf = (latest, next) => latest === undefined || next !== undefined && newerKitmanVersion(next, latest) ? next : latest;
105
105
  var npmRegistryAt = (url = registryUrl) => {
106
- const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
106
+ const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map7((value) => value.replace(/\/+$/u, "")));
107
107
  const unreachable = (name, version) => (error) => new NpmRegistryError({
108
108
  kind: "unreachable",
109
109
  message: `npm did not answer for ${name}@${version}: ${error.message}; try again`
@@ -131,7 +131,7 @@ var npmRegistryAt = (url = registryUrl) => {
131
131
  const dist = found.versions[version]?.dist;
132
132
  if (dist === undefined)
133
133
  return yield* new NpmRegistryError({ kind: "not_found", message: `npm has no ${name}@${wanted}` });
134
- const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map8((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
134
+ const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
135
135
  if (!tarballMatches(tarball, dist))
136
136
  return yield* new NpmRegistryError({
137
137
  kind: "integrity",
@@ -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,
@@ -12,13 +19,10 @@ import {
12
19
  never,
13
20
  flatMap3,
14
21
  andThen2,
15
- map8,
22
+ map7,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-zgraq2y3.js";
24
+ scoped
25
+ } from "./chunk-qjqa338f.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-t82w7459.js";
34
+ } from "./chunk-aezq3fyy.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,8 +101,8 @@ var HandleProto = {
55
101
  var makeHandle = (params) => Object.setPrototypeOf({
56
102
  ...params
57
103
  }, HandleProto);
58
- var make = (spawn) => {
59
- const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
104
+ var make2 = (spawn) => {
105
+ const streamString = (command, options) => spawn(command).pipe(map7((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({
62
108
  spawn,
@@ -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 };
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zgraq2y3.js";
9
+ } from "./chunk-qjqa338f.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-t82w7459.js";
12
+ } from "./chunk-aezq3fyy.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-4x3zm541.js";
22
+ } from "./chunk-9gg1w4aa.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-1nxcn08k.js";
28
+ } from "./chunk-qkjfx2ts.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* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(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* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-vxfajzpz.js";
2
+ import"./chunk-kq88aaa3.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-4x3zm541.js";
16
- import"./chunk-t82w7459.js";
17
- import"./chunk-zgraq2y3.js";
15
+ } from "./chunk-9gg1w4aa.js";
16
+ import"./chunk-aezq3fyy.js";
17
+ import"./chunk-qjqa338f.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,