@kitman-sh/cli 0.10.96 → 0.10.98

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-ampzxrqe.js → chunk-07p2dcq3.js} +333 -94
  2. package/dist/{chunk-2kr43ps6.js → chunk-3bjekzn7.js} +312 -395
  3. package/dist/{chunk-dh3108wk.js → chunk-6dc0x5cg.js} +8 -8
  4. package/dist/{chunk-q3nygncv.js → chunk-797w5qe6.js} +7 -7
  5. package/dist/{chunk-4psvc86s.js → chunk-7c3pgktm.js} +9 -8
  6. package/dist/{chunk-a244myqw.js → chunk-7ya2q09c.js} +1 -1
  7. package/dist/{chunk-qacvrg7j.js → chunk-95mkdtzk.js} +6 -6
  8. package/dist/{chunk-tpdcq44c.js → chunk-aba9zdpb.js} +32 -32
  9. package/dist/{chunk-mcpesyz2.js → chunk-bqg9gy2e.js} +7 -7
  10. package/dist/{chunk-8tq7n7wc.js → chunk-c6h3fhtb.js} +24 -24
  11. package/dist/{chunk-fv6kgtze.js → chunk-cgjyv52e.js} +2 -2
  12. package/dist/{chunk-bk3dpjxq.js → chunk-d1sqb8rt.js} +1 -1
  13. package/dist/{chunk-c9wzakrx.js → chunk-fd39ch4n.js} +8 -8
  14. package/dist/{chunk-6aa8y66v.js → chunk-g1xmj2nb.js} +4 -4
  15. package/dist/{chunk-abf4m4b2.js → chunk-gfqm22x7.js} +5 -5
  16. package/dist/{chunk-15w92pn6.js → chunk-j8vq6sk1.js} +19 -19
  17. package/dist/{chunk-t7ncjd6s.js → chunk-n8c1wh6t.js} +6 -6
  18. package/dist/{chunk-rdv42ygn.js → chunk-nym2zmz3.js} +4 -4
  19. package/dist/{chunk-3r7ahnwy.js → chunk-p83y21hp.js} +4 -4
  20. package/dist/{chunk-et6qa95h.js → chunk-qrxkpwzy.js} +1 -1
  21. package/dist/{chunk-vjcn82g3.js → chunk-s5p94z8x.js} +65 -214
  22. package/dist/{chunk-q2d37e4x.js → chunk-s90hj0mb.js} +53 -53
  23. package/dist/{chunk-s3qgchay.js → chunk-sy8d7bfa.js} +98 -98
  24. package/dist/{chunk-g3r5xp0t.js → chunk-xwhybbj2.js} +2 -2
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -6,13 +6,14 @@ import {
6
6
  getOrUndefined,
7
7
  Reference,
8
8
  TaggedError,
9
- make16,
9
+ make15,
10
10
  _await,
11
11
  fail5,
12
12
  succeed5,
13
13
  provide2,
14
14
  provideMerge,
15
15
  squash,
16
+ currentTimeMillis,
16
17
  max2,
17
18
  during,
18
19
  min2,
@@ -34,7 +35,7 @@ import {
34
35
  flatMap3,
35
36
  andThen2,
36
37
  tap2,
37
- map8,
38
+ map7,
38
39
  as,
39
40
  asVoid,
40
41
  catch_,
@@ -85,21 +86,8 @@ import {
85
86
  decodeJsonString,
86
87
  encodeJsonStringSync,
87
88
  encodePrettyJsonString
88
- } from "./chunk-ampzxrqe.js";
89
- import {
90
- tap,
91
- mapError,
92
- decodeText,
93
- run,
94
- mkString,
95
- FileSystem,
96
- Path,
97
- withDefault,
98
- option,
99
- String2
100
- } from "./chunk-vjcn82g3.js";
89
+ } from "./chunk-07p2dcq3.js";
101
90
  import {
102
- currentTimeMillis,
103
91
  SecureRandom,
104
92
  layerWebCrypto,
105
93
  runMain,
@@ -197,10 +185,10 @@ import {
197
185
  harnessNames,
198
186
  herdrRunnerCapabilities2,
199
187
  declaredChecks
200
- } from "./chunk-2kr43ps6.js";
188
+ } from "./chunk-3bjekzn7.js";
201
189
  import {
202
190
  Id
203
- } from "./chunk-et6qa95h.js";
191
+ } from "./chunk-qrxkpwzy.js";
204
192
  import {
205
193
  toJsonValue,
206
194
  isOneOf,
@@ -210,11 +198,23 @@ import {
210
198
  isObject,
211
199
  isJsonObject,
212
200
  isString
213
- } from "./chunk-bk3dpjxq.js";
201
+ } from "./chunk-d1sqb8rt.js";
202
+ import {
203
+ tap,
204
+ mapError,
205
+ decodeText,
206
+ run,
207
+ mkString,
208
+ FileSystem,
209
+ Path,
210
+ withDefault,
211
+ option,
212
+ String2
213
+ } from "./chunk-s5p94z8x.js";
214
214
  import {
215
215
  ChildProcessSpawner,
216
216
  make3
217
- } from "./chunk-3r7ahnwy.js";
217
+ } from "./chunk-p83y21hp.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -384,7 +384,7 @@ function herdrRunnerCredentialName(runnerId) {
384
384
  return `herdr-runner:${runnerId}`;
385
385
  }
386
386
  function storedHerdrRunnerCredential(apiUrl, runnerId) {
387
- return map8(readAuthStore(), (auth) => agentCredentialForApi(auth, apiUrl, herdrRunnerCredentialName(runnerId)));
387
+ return map7(readAuthStore(), (auth) => agentCredentialForApi(auth, apiUrl, herdrRunnerCredentialName(runnerId)));
388
388
  }
389
389
  function writeRunnerCredentialFile(path, file) {
390
390
  return gen(function* () {
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
504
504
  var checkRegistryImageSetting = pinnedImage;
505
505
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
506
506
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
507
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6aa8y66v.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-g1xmj2nb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
508
508
  });
509
509
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-6aa8y66v.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-g1xmj2nb.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -578,7 +578,7 @@ var managedKitmanPath = gen(function* () {
578
578
  var installedKitmanVersion = gen(function* () {
579
579
  const fs = yield* FileSystem;
580
580
  const path = yield* Path;
581
- return yield* fs.readLink(yield* managedKitmanPath).pipe(map8((target) => path.basename(path.dirname(target))), orElseSucceed(() => {
581
+ return yield* fs.readLink(yield* managedKitmanPath).pipe(map7((target) => path.basename(path.dirname(target))), orElseSucceed(() => {
582
582
  return;
583
583
  }));
584
584
  });
@@ -616,7 +616,7 @@ var downloadManagedKitman = (apiUrl, platform) => gen(function* () {
616
616
  const binary = yield* get(release.url).pipe(filterOrFail((downloaded) => downloaded.ok, (downloaded) => new CliError({ message: `Downloading kitman ${manifest.version} answered ${downloaded.status}` })), flatMap3((downloaded) => tryPromise({
617
617
  try: () => downloaded.arrayBuffer(),
618
618
  catch: (error) => new CliError({ message: `Downloading kitman ${manifest.version} failed: ${String(error)}` })
619
- })), map8((bytes) => new Uint8Array(bytes)));
619
+ })), map7((bytes) => new Uint8Array(bytes)));
620
620
  if (digestSha256(binary, "hex") !== release.sha256)
621
621
  return yield* new CliError({
622
622
  message: `The downloaded kitman ${manifest.version} for ${os}/${architecture} does not match its sha256; nothing was installed`
@@ -739,12 +739,12 @@ var syncTargets = (harness) => gen(function* () {
739
739
  });
740
740
  var syncKits = (input) => gen(function* () {
741
741
  const fs = yield* FileSystem;
742
- const { syncKitSetup } = yield* promise(() => import("./chunk-c9wzakrx.js"));
742
+ const { syncKitSetup } = yield* promise(() => import("./chunk-fd39ch4n.js"));
743
743
  const harnesses = yield* syncTargets(input.harness);
744
744
  const chain = yield* input.client.getKitChain(input.workspaceId);
745
745
  for (const { name, problem } of chain.skipped)
746
746
  yield* log(`Warning: skipped Kit ${name}: ${problem}`);
747
- 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 })));
747
+ 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 })));
748
748
  const manifest = yield* userHarnessSyncPath;
749
749
  const previous = yield* fs.readFileString(manifest).pipe(flatMap3(decodeEffect(SyncedHarnesses)), orElseSucceed(() => ({})));
750
750
  const kitman = (yield* runningManagedInstall(process.platform)) ? yield* managedKitmanPath : "kitman";
@@ -885,7 +885,7 @@ function idempotencyKey(value, operation) {
885
885
  const explicit = value?.trim();
886
886
  if (explicit)
887
887
  return succeed6(explicit);
888
- return SecureRandom.pipe(flatMap3((random) => random.uuidV4()), map8((id) => `kitman-cli:${operation}:${id}`), provide3(layerWebCrypto));
888
+ return SecureRandom.pipe(flatMap3((random) => random.uuidV4()), map7((id) => `kitman-cli:${operation}:${id}`), provide3(layerWebCrypto));
889
889
  }
890
890
  function segment(value) {
891
891
  return encodeURIComponent(value);
@@ -1003,7 +1003,7 @@ var machineRunnerServices = gen(function* () {
1003
1003
  return yield* forEach(files.flatMap((file) => {
1004
1004
  const runnerId = pattern.exec(file)?.[1];
1005
1005
  return runnerId === undefined ? [] : [{ runnerId, file: path.join(directory, file) }];
1006
- }), ({ runnerId, file }) => map8(fs.readFileString(file), (definition) => ({
1006
+ }), ({ runnerId, file }) => map7(fs.readFileString(file), (definition) => ({
1007
1007
  runnerId,
1008
1008
  command: serviceCommand(platform, definition)
1009
1009
  })));
@@ -1018,7 +1018,7 @@ var ownersRunners = (apiUrl) => gen(function* () {
1018
1018
  return;
1019
1019
  const client = yield* clientFor(apiUrl, session);
1020
1020
  const workspaces = (yield* client.listWorkspaces()).items;
1021
- const lists = yield* forEach(workspaces, (workspace) => map8(client.listRunners(workspace.id), (list) => list.items));
1021
+ const lists = yield* forEach(workspaces, (workspace) => map7(client.listRunners(workspace.id), (list) => list.items));
1022
1022
  return new Map(lists.flat().map((runner) => [runner.id, runner]));
1023
1023
  }).pipe(orElseSucceed(() => {
1024
1024
  return;
@@ -1140,7 +1140,7 @@ var machineRunnerCommand = (action, apiUrl, options) => gen(function* () {
1140
1140
 
1141
1141
  // apps/cli/src/repo-binding-setup.ts
1142
1142
  var Git = Reference("kitman/cli/Git", {
1143
- defaultValue: () => (args) => runCommand2("git", args).pipe(map8((stdout) => stdout.trim()))
1143
+ defaultValue: () => (args) => runCommand2("git", args).pipe(map7((stdout) => stdout.trim()))
1144
1144
  });
1145
1145
  var repoBindingInputFromCurrentRepo = flatMap3(Git, repoBindingInput);
1146
1146
  function repoBindingInput(git) {
@@ -1277,8 +1277,8 @@ function initCommand(args) {
1277
1277
  const apiUrl = yield* resolveApiUrl(flags.apiUrl);
1278
1278
  const steps = [];
1279
1279
  const step = (name, outcome, detail) => andThen2(sync2(() => steps.push({ name, outcome, detail })), log(`${name}: ${outcomeLabel[outcome]} (${detail})`));
1280
- const ask = (prompt, fallback) => flags.yes ? succeed6(fallback) : promptLine(fallback === "" ? `${prompt}: ` : `${prompt} [${fallback}]: `).pipe(map8((answer) => answer.trim() || fallback));
1281
- const confirm = (prompt, fallback) => map8(ask(`${prompt} (y/n)`, fallback ? "y" : "n"), (answer) => /^y(es)?$/i.test(answer));
1280
+ const ask = (prompt, fallback) => flags.yes ? succeed6(fallback) : promptLine(fallback === "" ? `${prompt}: ` : `${prompt} [${fallback}]: `).pipe(map7((answer) => answer.trim() || fallback));
1281
+ const confirm = (prompt, fallback) => map7(ask(`${prompt} (y/n)`, fallback ? "y" : "n"), (answer) => /^y(es)?$/i.test(answer));
1282
1282
  const existingSession = yield* sessionForApiWithRefresh(apiUrl);
1283
1283
  const session = existingSession ?? (yield* (yield* Login)(apiUrl));
1284
1284
  yield* step("Login", existingSession === undefined ? "set_up" : "already", apiUrl);
@@ -1463,7 +1463,7 @@ var runnerServiceStep = (apiUrl, runnerId, change, step) => gen(function* () {
1463
1463
  yield* step("Runner service", change.fresh ? "set_up" : "repaired", "started");
1464
1464
  });
1465
1465
  var credentialNote = { missing: ", credential restored", refused: ", credential re-keyed", accepted: "" };
1466
- var machineName = map8(option(String2("KITMAN_RUNNER_NAME")), (name) => getOrElse(name, () => hostname()));
1466
+ var machineName = map7(option(String2("KITMAN_RUNNER_NAME")), (name) => getOrElse(name, () => hostname()));
1467
1467
  var managedRunnerService = (runnerId, apiUrl) => gen(function* () {
1468
1468
  const kitman = yield* managedKitmanPath;
1469
1469
  const bin = (yield* Path).dirname(kitman);
@@ -1584,9 +1584,9 @@ function runnerServiceState(name) {
1584
1584
  return gen(function* () {
1585
1585
  const manager = yield* ServiceManager;
1586
1586
  if (manager.platform === "linux")
1587
- return yield* manager.run("systemctl", ["--user", "is-active", `${name}.service`]).pipe(map8((state) => `systemd: ${state.trim()}`), orElseSucceed(() => "systemd: not running"));
1587
+ return yield* manager.run("systemctl", ["--user", "is-active", `${name}.service`]).pipe(map7((state) => `systemd: ${state.trim()}`), orElseSucceed(() => "systemd: not running"));
1588
1588
  if (manager.platform === "darwin")
1589
- 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"));
1589
+ 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"));
1590
1590
  return;
1591
1591
  });
1592
1592
  }
@@ -1657,7 +1657,7 @@ var package_default = {
1657
1657
  };
1658
1658
 
1659
1659
  // apps/cli/src/scaffold.ts
1660
- var cliVersion = "0.10.96";
1660
+ var cliVersion = "0.10.98";
1661
1661
  var packageJson = (name, scaffold) => `${JSON.stringify({
1662
1662
  name,
1663
1663
  private: true,
@@ -1907,7 +1907,7 @@ var Usage = [
1907
1907
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1908
1908
  ].join(`
1909
1909
  `);
1910
- var agentRuntime = promise(() => import("./chunk-s3qgchay.js"));
1910
+ var agentRuntime = promise(() => import("./chunk-sy8d7bfa.js"));
1911
1911
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1912
1912
  defaultValue: () => gen(function* () {
1913
1913
  const tui = yield* tryPromise({
@@ -2321,7 +2321,7 @@ function harnessSync(args) {
2321
2321
  });
2322
2322
  });
2323
2323
  }
2324
- var readStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map8((text) => text.trim()));
2324
+ var readStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map7((text) => text.trim()));
2325
2325
  function promptLine(prompt) {
2326
2326
  return gen(function* () {
2327
2327
  const terminal = yield* Terminal;
@@ -2783,7 +2783,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2783
2783
  });
2784
2784
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2785
2785
  defaultValue: () => (options) => gen(function* () {
2786
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-q3nygncv.js"));
2786
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-797w5qe6.js"));
2787
2787
  return yield* makeRunnerRpcClient({
2788
2788
  runnerId: options.runnerId,
2789
2789
  bearer: options.bearer,
@@ -2792,7 +2792,7 @@ var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2792
2792
  })
2793
2793
  });
2794
2794
  var runnerSettings = gen(function* () {
2795
- const optional = (name) => String2(name).pipe(option, map8((value) => getOrUndefined(value)?.trim()));
2795
+ const optional = (name) => String2(name).pipe(option, map7((value) => getOrUndefined(value)?.trim()));
2796
2796
  const concurrency = Number(yield* optional("KITMAN_RUNNER_CONCURRENCY")) || 1;
2797
2797
  const configuredSandbox = (yield* optional("KITMAN_RUNNER_SANDBOX")) || "srt";
2798
2798
  const sandboxes = ["host", "srt", "docker"];
@@ -2981,12 +2981,12 @@ function startCanonicalHerdrRunnerCommand(input) {
2981
2981
  }).pipe(tap2((opened) => opened.settledRuns([])))));
2982
2982
  const signals = yield* makeReplicaSignals;
2983
2983
  const bundles = yield* kitmanBundles({
2984
- fetch: (digest) => rpc.bundle(digest).pipe(map8((found) => found.bundle)),
2984
+ fetch: (digest) => rpc.bundle(digest).pipe(map7((found) => found.bundle)),
2985
2985
  cacheDir: bundleCache
2986
2986
  });
2987
2987
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
2988
2988
  const platform = yield* context();
2989
- const updated = yield* make16();
2989
+ const updated = yield* make15();
2990
2990
  const scope = yield* scope2;
2991
2991
  yield* listenForSignals({
2992
2992
  rpc,
@@ -3052,18 +3052,18 @@ function startCanonicalHerdrRunnerCommand(input) {
3052
3052
  ...work.secretDestinations === undefined ? undefined : { secretDestinations: work.secretDestinations }
3053
3053
  },
3054
3054
  recordRefusal: refused,
3055
- revokedSecrets: heartbeatOf(work).pipe(map8((state) => state.revokedSecrets ?? [])),
3055
+ revokedSecrets: heartbeatOf(work).pipe(map7((state) => state.revokedSecrets ?? [])),
3056
3056
  sandbox: {
3057
3057
  backend: work.sandbox ?? sandbox,
3058
3058
  policy: agentStepSandboxPolicy(work, input.apiUrl, runnerState)
3059
3059
  },
3060
- settled: heartbeatOf(work).pipe(map8((state) => state.settled || state.outputSubmitted === true)),
3060
+ settled: heartbeatOf(work).pipe(map7((state) => state.settled || state.outputSubmitted === true)),
3061
3061
  ...agentStepExecutionLimit(work, now),
3062
3062
  steering: {
3063
3063
  ...signals.steers(work.id),
3064
3064
  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))))
3065
3065
  }
3066
- }).pipe(map8((outcome) => agentStepRunOutcome(outcome, {
3066
+ }).pipe(map7((outcome) => agentStepRunOutcome(outcome, {
3067
3067
  sandbox: work.sandbox ?? sandbox,
3068
3068
  lacksLoginSecret: lacksLoginSecret(work.brief.harness, work.secrets)
3069
3069
  })), catch_((refusal) => succeed6({ status: "failed", summary: refusal.summary }))))
@@ -3175,7 +3175,7 @@ function mcpCommand(args) {
3175
3175
  if (command.action === "run") {
3176
3176
  if (command.args.length > 0)
3177
3177
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3178
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-tpdcq44c.js"));
3178
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-aba9zdpb.js"));
3179
3179
  return yield* runMcpServerCommand({ flags: command.flags });
3180
3180
  }
3181
3181
  if (command.action !== "setup")
@@ -4016,7 +4016,7 @@ function transcriptCommand(args) {
4016
4016
  return yield* new CliError({
4017
4017
  message: `Run ${runId} has no ${stepKey === undefined ? "Step attempts" : `attempt of ${stepKey}`}${attempt === undefined ? "" : ` numbered ${attempt}`}`
4018
4018
  });
4019
- const items = yield* forEach(asked, (found) => map8(transcriptAfter(client, runId, found.id, 0), (entries) => ({
4019
+ const items = yield* forEach(asked, (found) => map7(transcriptAfter(client, runId, found.id, 0), (entries) => ({
4020
4020
  stepKey: found.stepKey,
4021
4021
  attempt: found.attempt,
4022
4022
  stepAttemptId: found.id,
@@ -4295,7 +4295,7 @@ function verifyCommand(args) {
4295
4295
  }
4296
4296
  });
4297
4297
  }
4298
- var secretValueFromStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map8((text) => text.replace(/\r?\n$/, "")));
4298
+ var secretValueFromStdin = Stdio.pipe(flatMap3((stdio) => mkString(decodeText(stdio.stdin))), map7((text) => text.replace(/\r?\n$/, "")));
4299
4299
  function secretCommand(args) {
4300
4300
  return gen(function* () {
4301
4301
  const command = parseCommand(args.length === 1 ? [...args, "list"] : args);
@@ -4386,9 +4386,9 @@ function claimCommand(args) {
4386
4386
  }
4387
4387
  });
4388
4388
  }
4389
- var KitWriter = map8(promise(() => import("./chunk-15w92pn6.js")), (build) => build.writeKit);
4389
+ var KitWriter = map7(promise(() => import("./chunk-j8vq6sk1.js")), (build) => build.writeKit);
4390
4390
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4391
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-15w92pn6.js")), (build) => build.buildKit(directory))
4391
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-j8vq6sk1.js")), (build) => build.buildKit(directory))
4392
4392
  });
4393
4393
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4394
4394
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -4405,7 +4405,7 @@ var buildKitInto = (command) => gen(function* () {
4405
4405
  yield* (yield* KitWriter)(directory, built, out).pipe(mapError2(() => new CliError({ message: `${path.join(directory, "package.json")} is not a JSON object` })));
4406
4406
  yield* log(`Built ${built.name} ${built.version} into ${out}`);
4407
4407
  });
4408
- var optionalEnv = (name) => String2(name).pipe(option, map8(getOrUndefined));
4408
+ var optionalEnv = (name) => String2(name).pipe(option, map7(getOrUndefined));
4409
4409
  var ciIdToken = (apiUrl) => gen(function* () {
4410
4410
  const gitlab = yield* optionalEnv("KITMAN_ID_TOKEN");
4411
4411
  if (gitlab !== undefined)
@@ -5065,7 +5065,7 @@ function runnerDoctorRow(runner) {
5065
5065
  maxConcurrentRuns: runner.capabilities.resourceLimits?.maxConcurrentRuns
5066
5066
  };
5067
5067
  }
5068
- var runnerDoctorRowHere = (runner) => map8(runnerServiceState(runnerServiceName(runner.id)), (service) => ({
5068
+ var runnerDoctorRowHere = (runner) => map7(runnerServiceState(runnerServiceName(runner.id)), (service) => ({
5069
5069
  ...runnerDoctorRow(runner),
5070
5070
  ...service === undefined ? undefined : { service }
5071
5071
  }));