@kitman-sh/cli 0.12.7 → 0.12.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 (27) hide show
  1. package/dist/{chunk-q5w3v4k1.js → chunk-0tjg9eya.js} +1 -1
  2. package/dist/{chunk-cbpb2rww.js → chunk-31gpnkq3.js} +5 -5
  3. package/dist/{chunk-gxbcvd4q.js → chunk-3x6cbhzd.js} +4 -4
  4. package/dist/{chunk-mtkstrh3.js → chunk-6d53ezj1.js} +4 -4
  5. package/dist/{chunk-fyvtc3xv.js → chunk-6w7ajkm8.js} +18 -18
  6. package/dist/{chunk-vkg40ysx.js → chunk-93ypzdpa.js} +7 -7
  7. package/dist/{chunk-8b8pw0md.js → chunk-9qp59fht.js} +32 -32
  8. package/dist/{chunk-p7hxrkmf.js → chunk-bh9k3kty.js} +55 -55
  9. package/dist/{chunk-jn7w2ntt.js → chunk-c8hwfktd.js} +7 -7
  10. package/dist/{chunk-0h49y8gf.js → chunk-c8wpw9nh.js} +65 -214
  11. package/dist/{chunk-4w0c1ykv.js → chunk-cr3qw0xf.js} +297 -381
  12. package/dist/{chunk-gq7y5v3e.js → chunk-cw61zyh5.js} +1 -1
  13. package/dist/{chunk-gy9rf14f.js → chunk-fh58za51.js} +3 -3
  14. package/dist/{chunk-4gy4ty6k.js → chunk-gyek54h3.js} +8 -8
  15. package/dist/{chunk-5zhh41gb.js → chunk-j1cnq2j0.js} +4 -4
  16. package/dist/{chunk-gwnyxm1r.js → chunk-jwrs9pfa.js} +107 -107
  17. package/dist/{chunk-5zth85pj.js → chunk-kzwdhdej.js} +2 -2
  18. package/dist/{chunk-azfjx5d8.js → chunk-n9351czb.js} +7 -7
  19. package/dist/{chunk-7dahw7e2.js → chunk-pjpfc3sd.js} +1 -1
  20. package/dist/{chunk-zw3gf6r5.js → chunk-qjqa338f.js} +333 -94
  21. package/dist/{chunk-ywzxwgrz.js → chunk-s5pzy86v.js} +6 -6
  22. package/dist/{chunk-7afnkx5b.js → chunk-tgwa9vqw.js} +6 -6
  23. package/dist/{chunk-fr79hgq2.js → chunk-wcvfkdwd.js} +24 -24
  24. package/dist/{chunk-b9rbh1va.js → chunk-xng6j3a8.js} +1 -1
  25. package/dist/{chunk-y1krmnbv.js → chunk-z5f7g1w1.js} +2 -2
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-7afnkx5b.js";
8
- import"./chunk-fr79hgq2.js";
9
- import"./chunk-4w0c1ykv.js";
10
- import"./chunk-q5w3v4k1.js";
11
- import"./chunk-0h49y8gf.js";
12
- import"./chunk-zw3gf6r5.js";
7
+ } from "./chunk-tgwa9vqw.js";
8
+ import"./chunk-wcvfkdwd.js";
9
+ import"./chunk-cr3qw0xf.js";
10
+ import"./chunk-0tjg9eya.js";
11
+ import"./chunk-c8wpw9nh.js";
12
+ import"./chunk-qjqa338f.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -6,10 +6,7 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zw3gf6r5.js";
10
- import {
11
- runForEach
12
- } from "./chunk-0h49y8gf.js";
9
+ } from "./chunk-qjqa338f.js";
13
10
  import {
14
11
  WebSocketConstructor,
15
12
  layerWebSocketConstructorGlobal,
@@ -19,13 +16,16 @@ import {
19
16
  RunnerReplicaRpcs,
20
17
  RunnerRunFileRpcs,
21
18
  ProgramRpcs
22
- } from "./chunk-4w0c1ykv.js";
19
+ } from "./chunk-cr3qw0xf.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-c8wpw9nh.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-fr79hgq2.js";
28
+ } from "./chunk-wcvfkdwd.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -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,
@@ -22,7 +22,7 @@ import {
22
22
  interrupt2,
23
23
  void_2,
24
24
  isFailure2,
25
- makeUnsafe5,
25
+ makeUnsafe4,
26
26
  _await,
27
27
  isDoneUnsafe,
28
28
  succeed4,
@@ -36,6 +36,7 @@ import {
36
36
  findError,
37
37
  hasInterrupts2,
38
38
  interruptors,
39
+ Clock,
39
40
  min2,
40
41
  exponential,
41
42
  spaced,
@@ -51,7 +52,7 @@ import {
51
52
  withFiber2,
52
53
  flatMap3,
53
54
  andThen2,
54
- map8,
55
+ map7,
55
56
  catchCause2,
56
57
  catchCauseIf,
57
58
  orDie,
@@ -96,21 +97,8 @@ import {
96
97
  Defect,
97
98
  Exit,
98
99
  toCodecJson
99
- } from "./chunk-zw3gf6r5.js";
100
- import {
101
- interrupt,
102
- getCurrent,
103
- makeUnsafe2,
104
- bounded,
105
- offerAll,
106
- failCause,
107
- end,
108
- shutdownUnsafe,
109
- fromQueue,
110
- unwrap
111
- } from "./chunk-0h49y8gf.js";
100
+ } from "./chunk-qjqa338f.js";
112
101
  import {
113
- Clock,
114
102
  empty,
115
103
  fromInput,
116
104
  merge,
@@ -123,7 +111,19 @@ import {
123
111
  ParseOptions,
124
112
  RpcClientDefect,
125
113
  RpcClientError
126
- } from "./chunk-4w0c1ykv.js";
114
+ } from "./chunk-cr3qw0xf.js";
115
+ import {
116
+ interrupt,
117
+ getCurrent,
118
+ makeUnsafe,
119
+ bounded,
120
+ offerAll,
121
+ failCause,
122
+ end,
123
+ shutdownUnsafe,
124
+ fromQueue,
125
+ unwrap
126
+ } from "./chunk-c8wpw9nh.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 map8(f((clientId, data) => {
203
+ return map7(f((clientId, data) => {
204
204
  const clientWrite = clientWrites.get(clientId);
205
205
  if (clientWrite) {
206
206
  return clientWrite(data);
@@ -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) => {
@@ -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(map8(queue, fromQueue));
274
+ return unwrap(map7(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 = makeUnsafe5();
498
+ const closing = makeUnsafe4();
499
499
  const interruptRequest = (requestId) => {
500
500
  if (!entries.has(requestId))
501
501
  return void_3;
@@ -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 = {
@@ -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 = makeUnsafe2();
807
+ const latch = makeUnsafe();
808
808
  const onFrame = () => {
809
809
  lastSeen = clock.currentTimeMillisUnsafe();
810
810
  awaitingResponse = false;
@@ -1481,7 +1481,7 @@ var pathOfLink = (link) => {
1481
1481
  return page === null ? link : page[1] || "index";
1482
1482
  };
1483
1483
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1484
- var pinnedLink2 = (link, version = "0.12.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1484
+ var pinnedLink2 = (link, version = "0.12.8") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1485
1485
  var pageOf = (path) => path.split("#")[0];
1486
1486
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1487
1487
  function excerpt(text, queryTerms) {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zw3gf6r5.js";
16
+ } from "./chunk-qjqa338f.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-q5w3v4k1.js";
20
+ } from "./chunk-0tjg9eya.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
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-5zth85pj.js");
8
+ const { runSrtCli } = await import("./chunk-kzwdhdej.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-gy9rf14f.js");
11
+ const { runSrtStep } = await import("./chunk-fh58za51.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
14
+ const { runOpencodeReader } = await import("./chunk-j1cnq2j0.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-p7hxrkmf.js");
17
+ const { runCli } = await import("./chunk-bh9k3kty.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.12.7",
3
+ "version": "0.12.8",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {