@kitman-sh/cli 0.10.98 → 0.10.100

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-nym2zmz3.js → chunk-0rf10v29.js} +4 -4
  2. package/dist/{chunk-g1xmj2nb.js → chunk-1k3cvdbt.js} +4 -4
  3. package/dist/{chunk-qrxkpwzy.js → chunk-1kww1jdz.js} +1 -1
  4. package/dist/{chunk-7c3pgktm.js → chunk-1nw7sbtr.js} +8 -8
  5. package/dist/{chunk-gfqm22x7.js → chunk-4c78jfqk.js} +5 -5
  6. package/dist/{chunk-s90hj0mb.js → chunk-5z0cwmet.js} +348 -120
  7. package/dist/{chunk-n8c1wh6t.js → chunk-6sanfepb.js} +4 -4
  8. package/dist/{chunk-fd39ch4n.js → chunk-9xj0djtp.js} +8 -8
  9. package/dist/{chunk-07p2dcq3.js → chunk-ayfdkptb.js} +100 -338
  10. package/dist/{chunk-6dc0x5cg.js → chunk-cpx45jzk.js} +8 -8
  11. package/dist/{chunk-j8vq6sk1.js → chunk-cy7cy84h.js} +19 -19
  12. package/dist/{chunk-xwhybbj2.js → chunk-gs6qdy2k.js} +2 -2
  13. package/dist/{chunk-95mkdtzk.js → chunk-hcpjfshb.js} +4 -4
  14. package/dist/{chunk-s5p94z8x.js → chunk-mjrr0wzp.js} +44 -44
  15. package/dist/{chunk-7ya2q09c.js → chunk-mk8vsaj7.js} +1 -1
  16. package/dist/{chunk-797w5qe6.js → chunk-mtz8f1hn.js} +7 -7
  17. package/dist/{chunk-p83y21hp.js → chunk-p3kwtm82.js} +4 -4
  18. package/dist/{chunk-cgjyv52e.js → chunk-qv9te9gr.js} +2 -2
  19. package/dist/{chunk-sy8d7bfa.js → chunk-r3rap6hz.js} +117 -105
  20. package/dist/{chunk-aba9zdpb.js → chunk-tk85pw4z.js} +144 -48
  21. package/dist/{chunk-bqg9gy2e.js → chunk-tqw2rkc9.js} +7 -7
  22. package/dist/{chunk-c6h3fhtb.js → chunk-vatjyw59.js} +11 -11
  23. package/dist/{chunk-3bjekzn7.js → chunk-wyh06par.js} +501 -193
  24. package/dist/{chunk-d1sqb8rt.js → chunk-wzkdjdb7.js} +1 -1
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -12,7 +12,7 @@ import {
12
12
  gen,
13
13
  fail7,
14
14
  flatMap3,
15
- map7,
15
+ map8,
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-07p2dcq3.js";
27
+ } from "./chunk-ayfdkptb.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-s5p94z8x.js";
31
+ } from "./chunk-mjrr0wzp.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-3bjekzn7.js";
41
+ } from "./chunk-wyh06par.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -72,7 +72,7 @@ var PackageJson = Struct({ kitman: optionalKey(Unknown) });
72
72
  var decodePackageJson = decodeUnknownOption(fromJsonString(PackageJson));
73
73
  var decodeManifest = decodeUnknownOption(KitManifest);
74
74
  var decodeJson = decodeUnknownOption(fromJsonString(Unknown));
75
- var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map7((buffer) => new Uint8Array(buffer)));
75
+ var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map8((buffer) => new Uint8Array(buffer)));
76
76
  var text = (bytes) => new TextDecoder().decode(bytes).replace(/\0.*$/su, "");
77
77
  var untar = (tar) => {
78
78
  const files = new Map;
@@ -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(map7((value) => value.replace(/\/+$/u, "")));
104
+ const base = (isString2(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`
@@ -123,7 +123,7 @@ var npmRegistryAt = (url = registryUrl) => {
123
123
  const dist = found.versions[version]?.dist;
124
124
  if (dist === undefined)
125
125
  return yield* new NpmRegistryError({ kind: "not_found", message: `npm has no ${name}@${wanted}` });
126
- const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
126
+ const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map8((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
127
127
  if (!tarballMatches(tarball, dist))
128
128
  return yield* new NpmRegistryError({
129
129
  kind: "integrity",
@@ -22,7 +22,7 @@ import {
22
22
  interrupt2,
23
23
  void_2,
24
24
  isFailure2,
25
- makeUnsafe4,
25
+ makeUnsafe5,
26
26
  _await,
27
27
  isDoneUnsafe,
28
28
  succeed4,
@@ -36,7 +36,6 @@ import {
36
36
  findError,
37
37
  hasInterrupts2,
38
38
  interruptors,
39
- Clock,
40
39
  min2,
41
40
  exponential,
42
41
  spaced,
@@ -52,7 +51,7 @@ import {
52
51
  withFiber2,
53
52
  flatMap3,
54
53
  andThen2,
55
- map7,
54
+ map8,
56
55
  catchCause2,
57
56
  catchCauseIf,
58
57
  orDie,
@@ -97,8 +96,9 @@ import {
97
96
  Defect,
98
97
  Exit,
99
98
  toCodecJson
100
- } from "./chunk-07p2dcq3.js";
99
+ } from "./chunk-ayfdkptb.js";
101
100
  import {
101
+ Clock,
102
102
  empty,
103
103
  fromInput,
104
104
  merge,
@@ -111,11 +111,11 @@ import {
111
111
  ParseOptions,
112
112
  RpcClientDefect,
113
113
  RpcClientError
114
- } from "./chunk-3bjekzn7.js";
114
+ } from "./chunk-wyh06par.js";
115
115
  import {
116
116
  interrupt,
117
117
  getCurrent,
118
- makeUnsafe,
118
+ makeUnsafe2,
119
119
  bounded,
120
120
  offerAll,
121
121
  failCause,
@@ -123,7 +123,7 @@ import {
123
123
  shutdownUnsafe,
124
124
  fromQueue,
125
125
  unwrap
126
- } from "./chunk-s5p94z8x.js";
126
+ } from "./chunk-mjrr0wzp.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")) {
@@ -200,7 +200,7 @@ var withRunClient = (f) => suspend3(() => {
200
200
  buffer.push([data, context]);
201
201
  return void_3;
202
202
  });
203
- return map7(f((clientId, data) => {
203
+ return map8(f((clientId, data) => {
204
204
  const clientWrite = clientWrites.get(clientId);
205
205
  if (clientWrite) {
206
206
  return clientWrite(data);
@@ -271,7 +271,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
271
271
  const queue = onStreamRequest(rpc, middleware, rpc.payloadSchema.make(payload), headers, opts?.streamBufferSize ?? 16, context);
272
272
  if (opts?.asQueue)
273
273
  return queue;
274
- return unwrap(map7(queue, fromQueue));
274
+ return unwrap(map8(queue, fromQueue));
275
275
  };
276
276
  };
277
277
  const onEffectRequest = (rpc, middleware, span, payload, headers, context, discard) => withFiber2((parentFiber) => {
@@ -495,7 +495,7 @@ var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
495
495
  const rpcSchemas = makeRpcSchemas(codecFor);
496
496
  const decodeDefect = decodeSync(codecFor(Defect()));
497
497
  const entries = new Map;
498
- const closing = makeUnsafe4();
498
+ const closing = makeUnsafe5();
499
499
  const interruptRequest = (requestId) => {
500
500
  if (!entries.has(requestId))
501
501
  return void_3;
@@ -804,7 +804,7 @@ var makePinger = /* @__PURE__ */ fnUntraced(function* (writePing, options) {
804
804
  const timeoutMillis = toMillis(options?.pingTimeout ?? interval);
805
805
  let lastSeen = clock.currentTimeMillisUnsafe();
806
806
  let awaitingResponse = false;
807
- const latch = makeUnsafe();
807
+ const latch = makeUnsafe2();
808
808
  const onFrame = () => {
809
809
  lastSeen = clock.currentTimeMillisUnsafe();
810
810
  awaitingResponse = false;