@kitman-sh/cli 0.13.8 → 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-q5w3v4k1.js → chunk-0tjg9eya.js} +1 -1
  2. package/dist/{chunk-zz589n7a.js → chunk-0wj65j5e.js} +12 -12
  3. package/dist/{chunk-7bytsxkf.js → chunk-1ht6jwzm.js} +13 -12
  4. package/dist/{chunk-5zth85pj.js → chunk-53qp6kcp.js} +2 -2
  5. package/dist/{chunk-gj1padza.js → chunk-69fcvx7d.js} +39 -39
  6. package/dist/{chunk-eg1n8wvf.js → chunk-6jtjcvnc.js} +44 -44
  7. package/dist/{chunk-vm2qy986.js → chunk-9gg1w4aa.js} +283 -375
  8. package/dist/{chunk-96svx416.js → chunk-a44ebqzx.js} +6 -6
  9. package/dist/{chunk-0h49y8gf.js → chunk-aezq3fyy.js} +74 -214
  10. package/dist/{chunk-gq7y5v3e.js → chunk-cw61zyh5.js} +1 -1
  11. package/dist/{chunk-5zhh41gb.js → chunk-ezv4p0zr.js} +4 -4
  12. package/dist/{chunk-gy9rf14f.js → chunk-fh58za51.js} +3 -3
  13. package/dist/{chunk-byeasm6x.js → chunk-hezxa6q5.js} +7 -7
  14. package/dist/{chunk-mtkstrh3.js → chunk-kq88aaa3.js} +4 -4
  15. package/dist/{chunk-cq2h8q9e.js → chunk-ksgt1tdc.js} +4 -4
  16. package/dist/{chunk-c4ccpwjy.js → chunk-pj3mer60.js} +4 -4
  17. package/dist/{chunk-zw3gf6r5.js → chunk-qjqa338f.js} +333 -94
  18. package/dist/{chunk-h1rmw7yk.js → chunk-qkjfx2ts.js} +14 -14
  19. package/dist/{chunk-08dyrk6y.js → chunk-rz18qefg.js} +10 -10
  20. package/dist/{chunk-gr17n0z3.js → chunk-s63fjc69.js} +25 -25
  21. package/dist/{chunk-cbpb2rww.js → chunk-tspf987k.js} +8 -8
  22. package/dist/{chunk-ff1r9vcq.js → chunk-v190zzc5.js} +1 -1
  23. package/dist/{chunk-a24jc5rx.js → chunk-wzr1n3zy.js} +7 -3
  24. package/dist/{chunk-z68rzf0f.js → chunk-x8sewxzm.js} +145 -145
  25. package/dist/{chunk-y1krmnbv.js → chunk-z5f7g1w1.js} +2 -2
  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,
@@ -20,6 +20,7 @@ import {
20
20
  provideMerge,
21
21
  squash,
22
22
  pretty,
23
+ currentTimeMillis,
23
24
  max2,
24
25
  during,
25
26
  min2,
@@ -42,7 +43,7 @@ import {
42
43
  andThen2,
43
44
  tap2,
44
45
  result,
45
- map8,
46
+ map7,
46
47
  as,
47
48
  asSome2,
48
49
  asVoid,
@@ -104,7 +105,7 @@ import {
104
105
  decodeJsonString,
105
106
  encodeJsonStringSync,
106
107
  encodePrettyJsonString
107
- } from "./chunk-zw3gf6r5.js";
108
+ } from "./chunk-qjqa338f.js";
108
109
  import {
109
110
  tap,
110
111
  mapError,
@@ -116,9 +117,8 @@ import {
116
117
  withDefault,
117
118
  option,
118
119
  String2
119
- } from "./chunk-0h49y8gf.js";
120
+ } from "./chunk-aezq3fyy.js";
120
121
  import {
121
- currentTimeMillis,
122
122
  SecureRandom,
123
123
  layerWebCrypto,
124
124
  runMain,
@@ -230,14 +230,14 @@ import {
230
230
  harnessNames,
231
231
  herdrRunnerCapabilities2,
232
232
  declaredChecks
233
- } from "./chunk-vm2qy986.js";
233
+ } from "./chunk-9gg1w4aa.js";
234
234
  import {
235
235
  Id
236
- } from "./chunk-q5w3v4k1.js";
236
+ } from "./chunk-0tjg9eya.js";
237
237
  import {
238
238
  ChildProcessSpawner,
239
239
  make3
240
- } from "./chunk-mtkstrh3.js";
240
+ } from "./chunk-kq88aaa3.js";
241
241
 
242
242
  // apps/cli/src/cli-error.ts
243
243
  function cliErrorCode(error, status) {
@@ -868,7 +868,7 @@ function herdrRunnerCredentialName(runnerId) {
868
868
  return `herdr-runner:${runnerId}`;
869
869
  }
870
870
  function storedHerdrRunnerCredential(apiUrl, runnerId) {
871
- return map8(readAuthStore(), (auth) => agentCredentialForApi(auth, apiUrl, herdrRunnerCredentialName(runnerId)));
871
+ return map7(readAuthStore(), (auth) => agentCredentialForApi(auth, apiUrl, herdrRunnerCredentialName(runnerId)));
872
872
  }
873
873
  function writeRunnerCredentialFile(path, file) {
874
874
  return gen(function* () {
@@ -993,10 +993,10 @@ var sandboxMissing = (sandbox, missing) => ({
993
993
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
994
994
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
995
995
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
996
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c4ccpwjy.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
996
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pj3mer60.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
997
997
  });
998
998
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
999
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c4ccpwjy.js")), (module) => module.updateHerdrCore(options))
999
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pj3mer60.js")), (module) => module.updateHerdrCore(options))
1000
1000
  });
1001
1001
  var herdrCoreMissing = (error) => {
1002
1002
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1188,7 +1188,7 @@ var managedKitmanPath = gen(function* () {
1188
1188
  var installedKitmanVersion = gen(function* () {
1189
1189
  const fs = yield* FileSystem;
1190
1190
  const path = yield* Path;
1191
- return yield* fs.readLink(yield* managedKitmanPath).pipe(map8((target) => path.basename(path.dirname(target))), orElseSucceed(() => {
1191
+ return yield* fs.readLink(yield* managedKitmanPath).pipe(map7((target) => path.basename(path.dirname(target))), orElseSucceed(() => {
1192
1192
  return;
1193
1193
  }));
1194
1194
  });
@@ -1233,7 +1233,7 @@ var downloadManagedKitman = (apiUrl, platform) => gen(function* () {
1233
1233
  const binary = yield* fetchFrom(release.url).pipe(filterOrFail((downloaded) => downloaded.ok, (downloaded) => new CliError({ message: `Downloading kitman ${manifest.version} answered ${downloaded.status}` })), flatMap3((downloaded) => tryPromise({
1234
1234
  try: () => downloaded.arrayBuffer(),
1235
1235
  catch: (error) => new CliError({ message: `Downloading kitman ${manifest.version} failed: ${String(error)}` })
1236
- })), map8((bytes) => new Uint8Array(bytes)));
1236
+ })), map7((bytes) => new Uint8Array(bytes)));
1237
1237
  if (digestSha256(binary, "hex") !== release.sha256)
1238
1238
  return yield* new CliError({
1239
1239
  message: `The downloaded kitman ${manifest.version} for ${os}/${architecture} does not match its sha256; nothing was installed`
@@ -1422,12 +1422,12 @@ var syncTargets = (harness) => gen(function* () {
1422
1422
  });
1423
1423
  var syncKits = (input) => gen(function* () {
1424
1424
  const fs = yield* FileSystem;
1425
- const { syncKitSetup } = yield* promise(() => import("./chunk-08dyrk6y.js"));
1425
+ const { syncKitSetup } = yield* promise(() => import("./chunk-rz18qefg.js"));
1426
1426
  const harnesses = yield* syncTargets(input.harness);
1427
1427
  const chain = yield* input.client.getKitChain(input.workspaceId);
1428
1428
  for (const { name, problem } of chain.skipped)
1429
1429
  yield* log(`Warning: skipped Kit ${name}: ${problem}`);
1430
- const kits = yield* forEach(chain.kits, (kit) => map8(flatMap3(setupArchive(input.client, input.workspaceId, kit.setupDigest), decodeArchive), (archive) => ({ name: kit.name, version: kit.version, archive })));
1430
+ const kits = yield* forEach(chain.kits, (kit) => map7(flatMap3(setupArchive(input.client, input.workspaceId, kit.setupDigest), decodeArchive), (archive) => ({ name: kit.name, version: kit.version, archive })));
1431
1431
  const manifest = yield* userHarnessSyncPath;
1432
1432
  const previous = yield* fs.readFileString(manifest).pipe(flatMap3(decodeEffect(SyncedHarnesses)), orElseSucceed(() => ({})));
1433
1433
  const kitman = (yield* runningManagedInstall(process.platform)) ? yield* managedKitmanPath : "kitman";
@@ -1568,7 +1568,7 @@ function idempotencyKey(value, operation) {
1568
1568
  const explicit = value?.trim();
1569
1569
  if (explicit)
1570
1570
  return succeed6(explicit);
1571
- return SecureRandom.pipe(flatMap3((random) => random.uuidV4()), map8((id) => `kitman-cli:${operation}:${id}`), provide3(layerWebCrypto));
1571
+ return SecureRandom.pipe(flatMap3((random) => random.uuidV4()), map7((id) => `kitman-cli:${operation}:${id}`), provide3(layerWebCrypto));
1572
1572
  }
1573
1573
  function segment(value) {
1574
1574
  return encodeURIComponent(value);
@@ -1686,7 +1686,7 @@ var machineRunnerServices = gen(function* () {
1686
1686
  return yield* forEach(files.flatMap((file) => {
1687
1687
  const runnerId = pattern.exec(file)?.[1];
1688
1688
  return runnerId === undefined ? [] : [{ runnerId, file: path.join(directory, file) }];
1689
- }), ({ runnerId, file }) => map8(fs.readFileString(file), (definition) => ({
1689
+ }), ({ runnerId, file }) => map7(fs.readFileString(file), (definition) => ({
1690
1690
  runnerId,
1691
1691
  command: serviceCommand(platform, definition)
1692
1692
  })));
@@ -1701,7 +1701,7 @@ var ownersRunners = (apiUrl) => gen(function* () {
1701
1701
  return;
1702
1702
  const client = yield* clientFor(apiUrl, session);
1703
1703
  const workspaces = (yield* client.listWorkspaces()).items;
1704
- const lists = yield* forEach(workspaces, (workspace) => map8(client.listRunners(workspace.id), (list) => list.items));
1704
+ const lists = yield* forEach(workspaces, (workspace) => map7(client.listRunners(workspace.id), (list) => list.items));
1705
1705
  return new Map(lists.flat().map((runner) => [runner.id, runner]));
1706
1706
  }).pipe(orElseSucceed(() => {
1707
1707
  return;
@@ -1824,7 +1824,7 @@ var machineRunnerCommand = (action, apiUrl, options) => gen(function* () {
1824
1824
 
1825
1825
  // apps/cli/src/repo-binding-setup.ts
1826
1826
  var Git = Reference("kitman/cli/Git", {
1827
- defaultValue: () => (args) => runCommand2("git", args).pipe(map8((stdout) => stdout.trim()))
1827
+ defaultValue: () => (args) => runCommand2("git", args).pipe(map7((stdout) => stdout.trim()))
1828
1828
  });
1829
1829
  var repoBindingInputFromCurrentRepo = flatMap3(Git, repoBindingInput);
1830
1830
  function repoBindingInput(git) {
@@ -1961,8 +1961,8 @@ function initCommand(args) {
1961
1961
  const apiUrl = yield* resolveApiUrl(flags.apiUrl);
1962
1962
  const steps = [];
1963
1963
  const step = (name, outcome, detail) => andThen2(sync2(() => steps.push({ name, outcome, detail })), log(`${name}: ${outcomeLabel[outcome]} (${detail})`));
1964
- const ask = (prompt, fallback) => flags.yes ? succeed6(fallback) : promptLine(fallback === "" ? `${prompt}: ` : `${prompt} [${fallback}]: `).pipe(map8((answer) => answer.trim() || fallback));
1965
- const confirm = (prompt, fallback) => map8(ask(`${prompt} (y/n)`, fallback ? "y" : "n"), (answer) => /^y(es)?$/i.test(answer));
1964
+ const ask = (prompt, fallback) => flags.yes ? succeed6(fallback) : promptLine(fallback === "" ? `${prompt}: ` : `${prompt} [${fallback}]: `).pipe(map7((answer) => answer.trim() || fallback));
1965
+ const confirm = (prompt, fallback) => map7(ask(`${prompt} (y/n)`, fallback ? "y" : "n"), (answer) => /^y(es)?$/i.test(answer));
1966
1966
  const existingSession = yield* sessionForApiWithRefresh(apiUrl);
1967
1967
  const session = existingSession ?? (yield* (yield* Login)(apiUrl));
1968
1968
  yield* step("Login", existingSession === undefined ? "set_up" : "already", apiUrl);
@@ -2147,7 +2147,7 @@ var runnerServiceStep = (apiUrl, runnerId, change, step) => gen(function* () {
2147
2147
  yield* step("Runner service", change.fresh ? "set_up" : "repaired", "started");
2148
2148
  });
2149
2149
  var credentialNote = { missing: ", credential restored", refused: ", credential re-keyed", accepted: "" };
2150
- var machineName = map8(option(String2("KITMAN_RUNNER_NAME")), (name) => getOrElse(name, () => hostname()));
2150
+ var machineName = map7(option(String2("KITMAN_RUNNER_NAME")), (name) => getOrElse(name, () => hostname()));
2151
2151
  var managedRunnerService = (runnerId, apiUrl) => gen(function* () {
2152
2152
  const kitman = yield* managedKitmanPath;
2153
2153
  const bin = (yield* Path).dirname(kitman);
@@ -2268,9 +2268,9 @@ function runnerServiceState(name) {
2268
2268
  return gen(function* () {
2269
2269
  const manager = yield* ServiceManager;
2270
2270
  if (manager.platform === "linux")
2271
- return yield* manager.run("systemctl", ["--user", "is-active", `${name}.service`]).pipe(map8((state) => `systemd: ${state.trim()}`), orElseSucceed(() => "systemd: not running"));
2271
+ return yield* manager.run("systemctl", ["--user", "is-active", `${name}.service`]).pipe(map7((state) => `systemd: ${state.trim()}`), orElseSucceed(() => "systemd: not running"));
2272
2272
  if (manager.platform === "darwin")
2273
- return yield* manager.run("launchctl", ["print", `${yield* launchdDomain}/${launchdLabel(name)}`]).pipe(map8((printed) => `launchd: ${/^\s*state = (\S+)/mu.exec(printed)?.[1] ?? "loaded"}`), orElseSucceed(() => "launchd: not installed"));
2273
+ return yield* manager.run("launchctl", ["print", `${yield* launchdDomain}/${launchdLabel(name)}`]).pipe(map7((printed) => `launchd: ${/^\s*state = (\S+)/mu.exec(printed)?.[1] ?? "loaded"}`), orElseSucceed(() => "launchd: not installed"));
2274
2274
  return;
2275
2275
  });
2276
2276
  }
@@ -2341,7 +2341,7 @@ var package_default = {
2341
2341
  };
2342
2342
 
2343
2343
  // apps/cli/src/scaffold.ts
2344
- var cliVersion = "0.13.8";
2344
+ var cliVersion = "0.13.9";
2345
2345
  var packageJson = (name, scaffold) => `${JSON.stringify({
2346
2346
  name,
2347
2347
  private: true,
@@ -2493,7 +2493,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2493
2493
 
2494
2494
  // apps/cli/src/commands.ts
2495
2495
  var ClientId = "kitman-cli";
2496
- var agentRuntime = promise(() => import("./chunk-z68rzf0f.js"));
2496
+ var agentRuntime = promise(() => import("./chunk-x8sewxzm.js"));
2497
2497
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2498
2498
  defaultValue: () => gen(function* () {
2499
2499
  const tui = yield* tryPromise({
@@ -2925,7 +2925,7 @@ function harnessSync(args) {
2925
2925
  });
2926
2926
  });
2927
2927
  }
2928
- var readStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map8((text) => text.trim()));
2928
+ var readStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map7((text) => text.trim()));
2929
2929
  function promptLine(prompt) {
2930
2930
  return gen(function* () {
2931
2931
  const terminal = yield* Terminal;
@@ -3529,7 +3529,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3529
3529
  });
3530
3530
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3531
3531
  defaultValue: () => (options) => gen(function* () {
3532
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-96svx416.js"));
3532
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-a44ebqzx.js"));
3533
3533
  return yield* makeRunnerRpcClient({
3534
3534
  runnerId: options.runnerId,
3535
3535
  bearer: options.bearer,
@@ -3544,7 +3544,7 @@ var runnerHostSettings = gen(function* () {
3544
3544
  "KITMAN_RUNNER_FULL_ACCESS",
3545
3545
  "SSH_AUTH_SOCK"
3546
3546
  ];
3547
- const environment = Object.fromEntries(yield* forEach(names, (name) => String2(name).pipe(option, map8((value) => [name, getOrUndefined(value)?.trim()]))));
3547
+ const environment = Object.fromEntries(yield* forEach(names, (name) => String2(name).pipe(option, map7((value) => [name, getOrUndefined(value)?.trim()]))));
3548
3548
  return {
3549
3549
  fullAccess: environment["KITMAN_RUNNER_FULL_ACCESS"] === "1",
3550
3550
  sshAgentAvailable: environment["SSH_AUTH_SOCK"] !== undefined,
@@ -3828,13 +3828,13 @@ function startCanonicalHerdrRunnerCommand(input) {
3828
3828
  }).pipe(tap2((opened) => opened.settledRuns([])))));
3829
3829
  const signals = yield* makeReplicaSignals;
3830
3830
  const bundles = yield* kitmanBundles({
3831
- fetch: (digest) => rpc.bundle(digest).pipe(map8((found) => found.bundle)),
3831
+ fetch: (digest) => rpc.bundle(digest).pipe(map7((found) => found.bundle)),
3832
3832
  cacheDir: bundleCache
3833
3833
  });
3834
3834
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
3835
- 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);
3835
+ yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map7(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);
3836
3836
  const platform = yield* context();
3837
- const updated = yield* make16();
3837
+ const updated = yield* make15();
3838
3838
  const scope = yield* scope2;
3839
3839
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3840
3840
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -3942,18 +3942,18 @@ function startCanonicalHerdrRunnerCommand(input) {
3942
3942
  ...work.secretDestinations === undefined ? undefined : { secretDestinations: work.secretDestinations }
3943
3943
  },
3944
3944
  recordRefusal: refused,
3945
- revokedSecrets: heartbeatOf(work).pipe(map8((state) => state.revokedSecrets ?? [])),
3945
+ revokedSecrets: heartbeatOf(work).pipe(map7((state) => state.revokedSecrets ?? [])),
3946
3946
  sandbox: {
3947
3947
  backend: work.sandbox ?? sandboxOf(work),
3948
3948
  policy: agentStepSandboxPolicy(work, input.apiUrl, runnerState)
3949
3949
  },
3950
- settled: heartbeatOf(work).pipe(map8((state) => state.settled || state.outputSubmitted === true)),
3950
+ settled: heartbeatOf(work).pipe(map7((state) => state.settled || state.outputSubmitted === true)),
3951
3951
  ...agentStepExecutionLimit(work, now),
3952
3952
  steering: {
3953
3953
  ...signals.steers(work.id),
3954
3954
  report: (note, delivered) => andThen2(delivered ? steered(note) : void_3, rpc.reportSteer({ workUnitId: work.id, messageId: note.messageId, delivered }).pipe(catch_((error) => logWarning("runner_steer_report_failed", error.message))))
3955
3955
  }
3956
- }).pipe(map8((outcome) => agentStepRunOutcome(outcome, {
3956
+ }).pipe(map7((outcome) => agentStepRunOutcome(outcome, {
3957
3957
  sandbox: work.sandbox ?? sandboxOf(work),
3958
3958
  lacksLoginSecret: lacksLoginSecret(work.brief.harness, work.secrets)
3959
3959
  })), catch_((refusal) => succeed6({ status: "failed", summary: refusal.summary }))))
@@ -4086,7 +4086,7 @@ function mcpCommand(args) {
4086
4086
  if (command.action === "run") {
4087
4087
  if (command.args.length > 0)
4088
4088
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4089
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-gj1padza.js"));
4089
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-69fcvx7d.js"));
4090
4090
  return yield* runMcpServerCommand({ flags: command.flags });
4091
4091
  }
4092
4092
  if (command.action !== "setup")
@@ -4574,7 +4574,7 @@ function programLoopCommand(command) {
4574
4574
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4575
4575
  });
4576
4576
  }
4577
- var docsModule = promise(() => import("./chunk-ff1r9vcq.js"));
4577
+ var docsModule = promise(() => import("./chunk-v190zzc5.js"));
4578
4578
  function docsCommand(args) {
4579
4579
  return gen(function* () {
4580
4580
  const command = parseCommand(args);
@@ -4994,7 +4994,7 @@ function transcriptCommand(args) {
4994
4994
  return yield* new CliError({
4995
4995
  message: `Run ${runId} has no ${stepKey === undefined ? "Step attempts" : `attempt of ${stepKey}`}${attempt === undefined ? "" : ` numbered ${attempt}`}`
4996
4996
  });
4997
- const items = yield* forEach(asked, (found) => map8(transcriptAfter(client, runId, found.id, 0), (entries) => ({
4997
+ const items = yield* forEach(asked, (found) => map7(transcriptAfter(client, runId, found.id, 0), (entries) => ({
4998
4998
  stepKey: found.stepKey,
4999
4999
  attempt: found.attempt,
5000
5000
  stepAttemptId: found.id,
@@ -5274,7 +5274,7 @@ function verifyCommand(args) {
5274
5274
  }
5275
5275
  });
5276
5276
  }
5277
- var secretValueFromStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map8((text) => text.replace(/\r?\n$/, "")));
5277
+ var secretValueFromStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map7((text) => text.replace(/\r?\n$/, "")));
5278
5278
  function secretCommand(args) {
5279
5279
  return gen(function* () {
5280
5280
  const command = parseCommand(args.length === 1 ? [...args, "list"] : args);
@@ -5408,9 +5408,9 @@ function changeRequestCommand(args) {
5408
5408
  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}`);
5409
5409
  });
5410
5410
  }
5411
- var KitWriter = map8(promise(() => import("./chunk-gr17n0z3.js")), (build) => build.writeKit);
5411
+ var KitWriter = map7(promise(() => import("./chunk-s63fjc69.js")), (build) => build.writeKit);
5412
5412
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5413
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-gr17n0z3.js")), (build) => build.buildKit(directory))
5413
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-s63fjc69.js")), (build) => build.buildKit(directory))
5414
5414
  });
5415
5415
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5416
5416
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -5427,7 +5427,7 @@ var buildKitInto = (command) => gen(function* () {
5427
5427
  yield* (yield* KitWriter)(directory, built, out).pipe(mapError2(() => new CliError({ message: `${path.join(directory, "package.json")} is not a JSON object` })));
5428
5428
  yield* log(`Built ${built.name} ${built.version} into ${out}`);
5429
5429
  });
5430
- var optionalEnv = (name) => String2(name).pipe(option, map8(getOrUndefined));
5430
+ var optionalEnv = (name) => String2(name).pipe(option, map7(getOrUndefined));
5431
5431
  var ciIdToken = (apiUrl) => gen(function* () {
5432
5432
  const gitlab = yield* optionalEnv("KITMAN_ID_TOKEN");
5433
5433
  if (gitlab !== undefined)
@@ -6104,9 +6104,9 @@ var runnerDelivery = (client, runner, askedTeamId) => {
6104
6104
  providerActions: postures === undefined ? "" : Object.entries(postures).map(([action, posture]) => `${action}=${posture}`).join(",")
6105
6105
  };
6106
6106
  };
6107
- return teamId === undefined ? succeed6(row("per_team")) : client.getTeamDeliverySettings(teamId).pipe(map8((settings) => row(settings.delivery)), catchTag("KitmanClientError", (error) => succeed6(row("unknown", error.message))));
6107
+ return teamId === undefined ? succeed6(row("per_team")) : client.getTeamDeliverySettings(teamId).pipe(map7((settings) => row(settings.delivery)), catchTag("KitmanClientError", (error) => succeed6(row("unknown", error.message))));
6108
6108
  };
6109
- var runnerDoctorRowOnThisMachine = (runner) => map8(runnerServiceState(runnerServiceName(runner.id)), (service) => ({
6109
+ var runnerDoctorRowOnThisMachine = (runner) => map7(runnerServiceState(runnerServiceName(runner.id)), (service) => ({
6110
6110
  ...runnerDoctorRow(runner),
6111
6111
  ...service === undefined ? undefined : { service }
6112
6112
  }));