@kitman-sh/cli 0.13.4 → 0.13.6

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-5zth85pj.js → chunk-27pv44t3.js} +2 -2
  2. package/dist/{chunk-5zhh41gb.js → chunk-2x1q8z5t.js} +4 -4
  3. package/dist/{chunk-x97wk81p.js → chunk-3teferzd.js} +4 -4
  4. package/dist/{chunk-mtkstrh3.js → chunk-4nfan8t6.js} +14 -60
  5. package/dist/{chunk-80w7aane.js → chunk-89hds8q4.js} +26 -26
  6. package/dist/{chunk-fhy47ebn.js → chunk-9t8afbrw.js} +6 -6
  7. package/dist/{chunk-fw4zkr03.js → chunk-a0wt1r43.js} +24 -24
  8. package/dist/{chunk-wyrxh8rq.js → chunk-at4e0xvg.js} +7 -7
  9. package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
  10. package/dist/{chunk-cbpb2rww.js → chunk-cabmcvy1.js} +7 -7
  11. package/dist/{chunk-8r76zwpy.js → chunk-cg3xstek.js} +3 -3
  12. package/dist/{chunk-1yr345dx.js → chunk-hg8wgm04.js} +4 -4
  13. package/dist/{chunk-f7qygpcv.js → chunk-j974anp7.js} +1 -1
  14. package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
  15. package/dist/{chunk-vys24xfp.js → chunk-mwkn1c5q.js} +113 -123
  16. package/dist/{chunk-12qchvpn.js → chunk-qj412x98.js} +11 -11
  17. package/dist/{chunk-ny4ek749.js → chunk-r08sz4ry.js} +6 -6
  18. package/dist/{chunk-9cj69m9m.js → chunk-s06x2ktk.js} +7 -7
  19. package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
  20. package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
  21. package/dist/{chunk-0h49y8gf.js → chunk-vktjb2p7.js} +36 -164
  22. package/dist/{chunk-ce73tjqv.js → chunk-vmzr8xcg.js} +7 -6
  23. package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
  24. package/dist/{chunk-pdrm1nty.js → chunk-xc1grg7y.js} +9 -3
  25. package/dist/{chunk-1avftsk4.js → chunk-xy7ze8dj.js} +22 -22
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make16,
15
+ make15,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,8 +104,9 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zw3gf6r5.js";
107
+ } from "./chunk-x3cc7dfc.js";
108
108
  import {
109
+ currentTimeMillis,
109
110
  tap,
110
111
  mapError,
111
112
  decodeText,
@@ -116,9 +117,8 @@ import {
116
117
  withDefault,
117
118
  option,
118
119
  String2
119
- } from "./chunk-0h49y8gf.js";
120
+ } from "./chunk-vktjb2p7.js";
120
121
  import {
121
- currentTimeMillis,
122
122
  SecureRandom,
123
123
  layerWebCrypto,
124
124
  runMain,
@@ -167,7 +167,7 @@ import {
167
167
  digestSha256,
168
168
  sha256Hasher,
169
169
  raw,
170
- make5,
170
+ make4,
171
171
  get,
172
172
  put,
173
173
  HttpClient,
@@ -230,14 +230,14 @@ import {
230
230
  harnessNames,
231
231
  herdrRunnerCapabilities2,
232
232
  declaredChecks
233
- } from "./chunk-vys24xfp.js";
233
+ } from "./chunk-mwkn1c5q.js";
234
234
  import {
235
235
  Id
236
- } from "./chunk-q5w3v4k1.js";
236
+ } from "./chunk-s8m2tzdr.js";
237
237
  import {
238
238
  ChildProcessSpawner,
239
- make3
240
- } from "./chunk-mtkstrh3.js";
239
+ make2
240
+ } from "./chunk-4nfan8t6.js";
241
241
 
242
242
  // apps/cli/src/cli-error.ts
243
243
  function cliErrorCode(error, status) {
@@ -991,10 +991,10 @@ var sandboxMissing = (sandbox, missing) => ({
991
991
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
992
992
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
993
993
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
994
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-1yr345dx.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
994
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg8wgm04.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
995
995
  });
996
996
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
997
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-1yr345dx.js")), (module) => module.updateHerdrCore(options))
997
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg8wgm04.js")), (module) => module.updateHerdrCore(options))
998
998
  });
999
999
  var herdrCoreMissing = (error) => {
1000
1000
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1420,7 +1420,7 @@ var syncTargets = (harness) => gen(function* () {
1420
1420
  });
1421
1421
  var syncKits = (input) => gen(function* () {
1422
1422
  const fs = yield* FileSystem;
1423
- const { syncKitSetup } = yield* promise(() => import("./chunk-9cj69m9m.js"));
1423
+ const { syncKitSetup } = yield* promise(() => import("./chunk-s06x2ktk.js"));
1424
1424
  const harnesses = yield* syncTargets(input.harness);
1425
1425
  const chain = yield* input.client.getKitChain(input.workspaceId);
1426
1426
  for (const { name, problem } of chain.skipped)
@@ -1937,7 +1937,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1937
1937
  run: (command, args) => runCommand2(command, args),
1938
1938
  attach: (command, args) => gen(function* () {
1939
1939
  const spawner = yield* ChildProcessSpawner;
1940
- const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1940
+ const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1941
1941
  const exitCode = yield* handle.exitCode;
1942
1942
  if (exitCode !== 0)
1943
1943
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2339,7 +2339,7 @@ var package_default = {
2339
2339
  };
2340
2340
 
2341
2341
  // apps/cli/src/scaffold.ts
2342
- var cliVersion = "0.13.4";
2342
+ var cliVersion = "0.13.6";
2343
2343
  var packageJson = (name, scaffold) => `${JSON.stringify({
2344
2344
  name,
2345
2345
  private: true,
@@ -2491,7 +2491,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2491
2491
 
2492
2492
  // apps/cli/src/commands.ts
2493
2493
  var ClientId = "kitman-cli";
2494
- var agentRuntime = promise(() => import("./chunk-fw4zkr03.js"));
2494
+ var agentRuntime = promise(() => import("./chunk-a0wt1r43.js"));
2495
2495
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2496
2496
  defaultValue: () => gen(function* () {
2497
2497
  const tui = yield* tryPromise({
@@ -3515,7 +3515,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3515
3515
  });
3516
3516
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3517
3517
  defaultValue: () => (options) => gen(function* () {
3518
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-fhy47ebn.js"));
3518
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-9t8afbrw.js"));
3519
3519
  return yield* makeRunnerRpcClient({
3520
3520
  runnerId: options.runnerId,
3521
3521
  bearer: options.bearer,
@@ -3820,7 +3820,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3820
3820
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
3821
3821
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3822
3822
  const platform = yield* context();
3823
- const updated = yield* make16();
3823
+ const updated = yield* make15();
3824
3824
  const scope = yield* scope2;
3825
3825
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3826
3826
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4072,7 +4072,7 @@ function mcpCommand(args) {
4072
4072
  if (command.action === "run") {
4073
4073
  if (command.args.length > 0)
4074
4074
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4075
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-80w7aane.js"));
4075
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-89hds8q4.js"));
4076
4076
  return yield* runMcpServerCommand({ flags: command.flags });
4077
4077
  }
4078
4078
  if (command.action !== "setup")
@@ -4560,7 +4560,7 @@ function programLoopCommand(command) {
4560
4560
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4561
4561
  });
4562
4562
  }
4563
- var docsModule = promise(() => import("./chunk-f7qygpcv.js"));
4563
+ var docsModule = promise(() => import("./chunk-j974anp7.js"));
4564
4564
  function docsCommand(args) {
4565
4565
  return gen(function* () {
4566
4566
  const command = parseCommand(args);
@@ -5394,9 +5394,9 @@ function changeRequestCommand(args) {
5394
5394
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5395
5395
  });
5396
5396
  }
5397
- var KitWriter = map8(promise(() => import("./chunk-12qchvpn.js")), (build) => build.writeKit);
5397
+ var KitWriter = map8(promise(() => import("./chunk-qj412x98.js")), (build) => build.writeKit);
5398
5398
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5399
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-12qchvpn.js")), (build) => build.buildKit(directory))
5399
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-qj412x98.js")), (build) => build.buildKit(directory))
5400
5400
  });
5401
5401
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5402
5402
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6173,7 +6173,7 @@ function downloadPresignedAsset(download, outputPath) {
6173
6173
  return gen(function* () {
6174
6174
  const fs = yield* FileSystem;
6175
6175
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6176
- const response = yield* send(make5(download.method)(download.url), failed);
6176
+ const response = yield* send(make4(download.method)(download.url), failed);
6177
6177
  if (response.status < 200 || response.status >= 300)
6178
6178
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6179
6179
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
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-27pv44t3.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-bz4bp0q7.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-2x1q8z5t.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-1avftsk4.js");
17
+ const { runCli } = await import("./chunk-xy7ze8dj.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.13.4",
3
+ "version": "0.13.6",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {