@kitman-sh/cli 0.25.0 → 0.27.0

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 (28) hide show
  1. package/dist/{chunk-1phk7q49.js → chunk-0mg7k9b4.js} +116 -115
  2. package/dist/{chunk-eshk0da5.js → chunk-1j38xtvp.js} +2 -2
  3. package/dist/{chunk-63b19adg.js → chunk-225hz7jt.js} +69 -34
  4. package/dist/{chunk-yh0v42dk.js → chunk-39kjyh2y.js} +12 -12
  5. package/dist/{chunk-p34frxzr.js → chunk-3xg9zbmy.js} +5 -5
  6. package/dist/{chunk-rbpn35g5.js → chunk-4qjfn1sa.js} +1 -1
  7. package/dist/{chunk-znhjs0t6.js → chunk-5kqt4bqp.js} +1 -1
  8. package/dist/{chunk-sm340tvm.js → chunk-63cyj9dh.js} +17 -17
  9. package/dist/{chunk-xk96db4j.js → chunk-7j1kf6sa.js} +6 -6
  10. package/dist/{chunk-5c1vqpf3.js → chunk-bv4gcq1h.js} +7 -7
  11. package/dist/{chunk-gf62mx34.js → chunk-cehbrs1y.js} +5 -5
  12. package/dist/{chunk-fmjgw6fw.js → chunk-dyca90hx.js} +1 -1
  13. package/dist/{chunk-3x8t5408.js → chunk-ezsh3z1w.js} +24 -24
  14. package/dist/{chunk-j021bman.js → chunk-gap0vmj7.js} +60 -14
  15. package/dist/{chunk-61dmxexa.js → chunk-h2f26xbd.js} +28 -70
  16. package/dist/{chunk-fyjet273.js → chunk-js64y97w.js} +4 -4
  17. package/dist/{chunk-30s4vp2g.js → chunk-kagajztj.js} +1 -1
  18. package/dist/{chunk-4z5s9xtq.js → chunk-msn6rrx9.js} +4 -4
  19. package/dist/{chunk-e491q405.js → chunk-my92qn4x.js} +7 -7
  20. package/dist/{chunk-4qrb09w4.js → chunk-samxkpbz.js} +3 -3
  21. package/dist/{chunk-py3zfen9.js → chunk-tbmht2qb.js} +7 -7
  22. package/dist/{chunk-1hgsf81a.js → chunk-tsx0347c.js} +1 -1
  23. package/dist/{chunk-q8e58p57.js → chunk-vz38kngm.js} +2 -2
  24. package/dist/{chunk-zn881qsb.js → chunk-yaa3gkpx.js} +4 -4
  25. package/dist/{chunk-7wyejgj2.js → chunk-ydq1nr9e.js} +22 -22
  26. package/dist/{chunk-1ync8395.js → chunk-yr7np5eb.js} +3 -3
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  FileSystem,
4
4
  Path
5
- } from "./chunk-sm340tvm.js";
5
+ } from "./chunk-63cyj9dh.js";
6
6
  import {
7
7
  isObject,
8
8
  isUint8Array,
@@ -17,13 +17,13 @@ import {
17
17
  isJsonObject,
18
18
  decodeJsonString,
19
19
  encodePrettyJsonString
20
- } from "./chunk-61dmxexa.js";
20
+ } from "./chunk-h2f26xbd.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-zn881qsb.js";
26
+ } from "./chunk-yaa3gkpx.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,10 +31,10 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-1phk7q49.js";
35
- import"./chunk-1ync8395.js";
36
- import"./chunk-j021bman.js";
37
- import"./chunk-rbpn35g5.js";
34
+ } from "./chunk-0mg7k9b4.js";
35
+ import"./chunk-yr7np5eb.js";
36
+ import"./chunk-gap0vmj7.js";
37
+ import"./chunk-4qjfn1sa.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-61dmxexa.js";
4
+ } from "./chunk-h2f26xbd.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-61dmxexa.js";
16
+ } from "./chunk-h2f26xbd.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-rbpn35g5.js";
20
+ } from "./chunk-4qjfn1sa.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -4,7 +4,7 @@ import {
4
4
  Path,
5
5
  optionalEnv,
6
6
  tempDirectoryScoped
7
- } from "./chunk-sm340tvm.js";
7
+ } from "./chunk-63cyj9dh.js";
8
8
  import {
9
9
  Reference,
10
10
  TaggedError,
@@ -31,15 +31,15 @@ import {
31
31
  isString2,
32
32
  encodePrettyJsonString,
33
33
  decodeJsonStringSync
34
- } from "./chunk-61dmxexa.js";
34
+ } from "./chunk-h2f26xbd.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-1phk7q49.js";
39
+ } from "./chunk-0mg7k9b4.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-1ync8395.js";
42
+ } from "./chunk-yr7np5eb.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make15,
15
+ make16,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -108,7 +108,7 @@ import {
108
108
  decodeJsonStringOption,
109
109
  encodeJsonStringSync,
110
110
  encodePrettyJsonString
111
- } from "./chunk-61dmxexa.js";
111
+ } from "./chunk-h2f26xbd.js";
112
112
  import {
113
113
  tap,
114
114
  mapError,
@@ -120,7 +120,7 @@ import {
120
120
  withDefault,
121
121
  option,
122
122
  String2
123
- } from "./chunk-sm340tvm.js";
123
+ } from "./chunk-63cyj9dh.js";
124
124
  import {
125
125
  currentTimeMillis,
126
126
  SecureRandom,
@@ -185,7 +185,7 @@ import {
185
185
  digestSha256,
186
186
  sha256Hasher,
187
187
  raw,
188
- make4,
188
+ make5,
189
189
  get,
190
190
  put,
191
191
  HttpClient,
@@ -251,15 +251,15 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-1phk7q49.js";
254
+ } from "./chunk-0mg7k9b4.js";
255
255
  import {
256
256
  ChildProcessSpawner,
257
- make2
258
- } from "./chunk-j021bman.js";
257
+ make3
258
+ } from "./chunk-gap0vmj7.js";
259
259
  import {
260
260
  Id,
261
261
  Timestamp
262
- } from "./chunk-rbpn35g5.js";
262
+ } from "./chunk-4qjfn1sa.js";
263
263
 
264
264
  // apps/cli/src/cli-error.ts
265
265
  function cliErrorCode(error, status) {
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-4z5s9xtq.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-4z5s9xtq.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-py3zfen9.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-tbmht2qb.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
2290
2290
  run: (command, args) => runCommand2(command, args),
2291
2291
  attach: (command, args) => gen(function* () {
2292
2292
  const spawner = yield* ChildProcessSpawner;
2293
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2293
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2294
2294
  const exitCode = yield* handle.exitCode;
2295
2295
  if (exitCode !== 0)
2296
2296
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
3268
3268
  };
3269
3269
 
3270
3270
  // apps/cli/src/scaffold-files.ts
3271
- var cliVersion = "0.25.0";
3271
+ var cliVersion = "0.27.0";
3272
3272
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3273
3273
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3274
3274
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3533
3533
 
3534
3534
  // apps/cli/src/commands.ts
3535
3535
  var ClientId = "kitman-cli";
3536
- var agentRuntime = promise(() => import("./chunk-63b19adg.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-225hz7jt.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-xk96db4j.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7j1kf6sa.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5385,7 +5385,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5385
5385
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(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);
5386
5386
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
5387
5387
  const platform = yield* context();
5388
- const updated = yield* make15();
5388
+ const updated = yield* make16();
5389
5389
  const scope = yield* scope2;
5390
5390
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
5391
5391
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
5645
5645
  if (command.action === "run") {
5646
5646
  if (command.args.length > 0)
5647
5647
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5648
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-3x8t5408.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-ezsh3z1w.js"));
5649
5649
  return yield* runMcpServerCommand({ flags: command.flags });
5650
5650
  }
5651
5651
  if (command.action !== "setup")
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
6145
6145
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6146
6146
  });
6147
6147
  }
6148
- var docsModule = promise(() => import("./chunk-fmjgw6fw.js"));
6148
+ var docsModule = promise(() => import("./chunk-dyca90hx.js"));
6149
6149
  function docsCommand(args) {
6150
6150
  return gen(function* () {
6151
6151
  const command = parseCommand(args);
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
7149
7149
  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}`);
7150
7150
  });
7151
7151
  }
7152
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-yh0v42dk.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7152
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7153
7153
  var loopOutline = (command) => gen(function* () {
7154
7154
  const path = yield* Path;
7155
7155
  const loop = requiredArg(command, "a Loop id");
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
7169
7169
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7170
7170
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7171
7171
  });
7172
- var KitWriter = map9(promise(() => import("./chunk-yh0v42dk.js")), (build) => build.writeKit);
7172
+ var KitWriter = map9(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.writeKit);
7173
7173
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-yh0v42dk.js")), (build) => build.buildKit(directory))
7174
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.buildKit(directory))
7175
7175
  });
7176
7176
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7177
7177
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -7950,7 +7950,7 @@ function downloadPresignedAsset(download, outputPath) {
7950
7950
  return gen(function* () {
7951
7951
  const fs = yield* FileSystem;
7952
7952
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
7953
- const response = yield* send(make4(download.method)(download.url), failed);
7953
+ const response = yield* send(make5(download.method)(download.url), failed);
7954
7954
  if (response.status < 200 || response.status >= 300)
7955
7955
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
7956
7956
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-61dmxexa.js";
27
+ } from "./chunk-h2f26xbd.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-sm340tvm.js";
31
+ } from "./chunk-63cyj9dh.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-1phk7q49.js";
42
+ } from "./chunk-0mg7k9b4.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
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-eshk0da5.js");
8
+ const { runSrtCli } = await import("./chunk-1j38xtvp.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-4qrb09w4.js");
11
+ const { runSrtStep } = await import("./chunk-samxkpbz.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-fyjet273.js");
14
+ const { runOpencodeReader } = await import("./chunk-js64y97w.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-7wyejgj2.js");
17
+ const { runCli } = await import("./chunk-ydq1nr9e.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.25.0",
3
+ "version": "0.27.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {