@kitman-sh/cli 0.12.15 → 0.12.16

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.
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-m9revazf.js";
7
+ } from "./chunk-6ymzrhwd.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -6000,12 +6000,11 @@ var deleteRef = (checkouts, repoBinding, ref) => gen(function* () {
6000
6000
  var listenForSignals = (input) => gen(function* () {
6001
6001
  const services = yield* context();
6002
6002
  const clearCheckpoints = clearSettledCheckpoints(input.rpc, input.checkouts).pipe(catch_((error) => logWarning("runner_checkpoints_not_cleared", error.message)), provideContext2(services));
6003
- const held = yield* input.checkouts.held;
6004
- const settled = held.length === 0 ? [] : yield* input.rpc.settledRuns(held);
6005
- yield* forEach(settled, input.checkouts.drop, { discard: true });
6006
6003
  const scope = yield* scope2;
6007
- yield* forkIn(clearCheckpoints, scope);
6008
- yield* input.rpc.listen(input.runnerReplicaId, (signal) => isUpdateAvailable(signal) ? input.update?.(signal.version) ?? void_3 : isRunSettled(signal) ? ignore(input.checkouts.drop(signal.runId)).pipe(provideContext2(services), andThen2(forkIn(clearCheckpoints, scope)), asVoid) : input.signals.push(signal));
6004
+ const dropSettled = (runIds) => forEach(runIds, (runId) => ignore(input.checkouts.drop(runId)), { discard: true }).pipe(provideContext2(services), andThen2(clearCheckpoints), forkIn(scope), asVoid);
6005
+ const held = yield* input.checkouts.held;
6006
+ yield* dropSettled(held.length === 0 ? [] : yield* input.rpc.settledRuns(held));
6007
+ yield* input.rpc.listen(input.runnerReplicaId, (signal) => isUpdateAvailable(signal) ? input.update?.(signal.version) ?? void_3 : isRunSettled(signal) ? dropSettled([signal.runId]) : input.signals.push(signal));
6009
6008
  }).pipe(scoped, catch_((error) => logWarning("runner_signals_disconnected", error.message)), catchDefect((defect) => logError("runner_signals_failed", pretty(die2(defect)))), andThen2(sleep(input.reconnectAfter)), forever);
6010
6009
  var pushWork = (worktree, branch, step, shared, env) => gen(function* () {
6011
6010
  const git = (...args) => runCommand2("git", ["-C", worktree, ...args]);
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-saeb3621.js");
17
+ const { runCli } = await import("./chunk-7vkmemp0.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.15",
3
+ "version": "0.12.16",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -34,6 +34,14 @@ import {
34
34
  encodePrettyJsonString
35
35
  } from "./chunk-zw3gf6r5.js";
36
36
  import"./chunk-q5w3v4k1.js";
37
+ import {
38
+ decodeText,
39
+ mkString,
40
+ FileSystem,
41
+ Path,
42
+ withDefault,
43
+ String2
44
+ } from "./chunk-0h49y8gf.js";
37
45
  import {
38
46
  SecureRandom,
39
47
  layerWebCrypto,
@@ -46,14 +54,6 @@ import {
46
54
  kitmanMcpServer,
47
55
  RunnerRpcProtocolVersion
48
56
  } from "./chunk-cjzcg317.js";
49
- import {
50
- decodeText,
51
- mkString,
52
- FileSystem,
53
- Path,
54
- withDefault,
55
- String2
56
- } from "./chunk-0h49y8gf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches