@kitman-sh/cli 0.42.1 → 0.42.2

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-6xnkbrs7.js → chunk-17715h5w.js} +33 -33
  2. package/dist/{chunk-4v0dkm5t.js → chunk-1gr39h4v.js} +1 -1
  3. package/dist/{chunk-6e1fq0ct.js → chunk-1w517sym.js} +7 -7
  4. package/dist/{chunk-cnryphhh.js → chunk-2bt9e1fj.js} +5 -5
  5. package/dist/{chunk-evpyks4h.js → chunk-33zd0yt4.js} +17 -17
  6. package/dist/{chunk-6x08g7m6.js → chunk-3gax0xq6.js} +2 -2
  7. package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
  8. package/dist/{chunk-dgqjmd95.js → chunk-c3ms91a6.js} +18 -18
  9. package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
  10. package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
  11. package/dist/{chunk-1ay659hm.js → chunk-gqgbah9q.js} +6 -6
  12. package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
  13. package/dist/{chunk-rv8t9jzj.js → chunk-hg9y4ykj.js} +4 -4
  14. package/dist/{chunk-8q04gtg1.js → chunk-mc0xxx2z.js} +6 -6
  15. package/dist/{chunk-kqr3ts9q.js → chunk-q6qn9c47.js} +277 -121
  16. package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
  17. package/dist/{chunk-hgvft7vy.js → chunk-r5b36fgg.js} +4 -4
  18. package/dist/{chunk-4pcknv14.js → chunk-rc4wvjf2.js} +23 -23
  19. package/dist/{chunk-7n64vjb2.js → chunk-re7cr0kk.js} +13 -13
  20. package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
  21. package/dist/{chunk-nk35kh6w.js → chunk-sbk4evb4.js} +3 -3
  22. package/dist/{chunk-p4asjq9r.js → chunk-t8y2y7ha.js} +1 -1
  23. package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
  24. package/dist/{chunk-7091bpsv.js → chunk-vjkgbsry.js} +4 -4
  25. package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
  26. package/dist/{chunk-gf2np1ak.js → chunk-y6mjtq6n.js} +13 -13
  27. package/dist/index.js +4 -4
  28. 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
  succeed4,
@@ -109,20 +109,7 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-bqbfyqx6.js";
113
- import {
114
- currentTimeMillis,
115
- tap,
116
- mapError,
117
- decodeText,
118
- run,
119
- mkString,
120
- FileSystem,
121
- Path,
122
- withDefault,
123
- option,
124
- String2
125
- } from "./chunk-etrfc5cn.js";
112
+ } from "./chunk-b4td2pgc.js";
126
113
  import {
127
114
  SecureRandom,
128
115
  layerWebCrypto,
@@ -253,15 +240,28 @@ import {
253
240
  harnessNames,
254
241
  herdrRunnerCapabilities2,
255
242
  declaredChecks
256
- } from "./chunk-kqr3ts9q.js";
243
+ } from "./chunk-q6qn9c47.js";
257
244
  import {
258
- Id,
259
- Timestamp
260
- } from "./chunk-ea29sbaq.js";
245
+ currentTimeMillis,
246
+ tap,
247
+ mapError,
248
+ decodeText,
249
+ run,
250
+ mkString,
251
+ FileSystem,
252
+ Path,
253
+ withDefault,
254
+ option,
255
+ String2
256
+ } from "./chunk-sasjamqz.js";
261
257
  import {
262
258
  ChildProcessSpawner,
263
259
  make3
264
- } from "./chunk-6x08g7m6.js";
260
+ } from "./chunk-3gax0xq6.js";
261
+ import {
262
+ Id,
263
+ Timestamp
264
+ } from "./chunk-qndcafax.js";
265
265
 
266
266
  // apps/cli/src/cli-error.ts
267
267
  function cliErrorCode(error, status) {
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
1329
1329
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1330
1330
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1331
1331
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rv8t9jzj.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg9y4ykj.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1333
1333
  });
1334
1334
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1335
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rv8t9jzj.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg9y4ykj.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1643,7 +1643,7 @@ var runnerUpdater = (input) => {
1643
1643
  const drain = (version) => gen(function* () {
1644
1644
  claiming = false;
1645
1645
  const since = yield* currentTimeMillis;
1646
- const switchNow = yield* make16();
1646
+ const switchNow = yield* make15();
1647
1647
  if (version !== undefined)
1648
1648
  draining = {
1649
1649
  report: {
@@ -1796,7 +1796,7 @@ var syncTargets = (harness) => gen(function* () {
1796
1796
  });
1797
1797
  var syncKits = (input) => gen(function* () {
1798
1798
  const fs = yield* FileSystem;
1799
- const { syncKitSetup } = yield* promise(() => import("./chunk-6e1fq0ct.js"));
1799
+ const { syncKitSetup } = yield* promise(() => import("./chunk-1w517sym.js"));
1800
1800
  const harnesses = yield* syncTargets(input.harness);
1801
1801
  const chain = yield* input.client.getKitChain(input.workspaceId);
1802
1802
  for (const { name, problem } of chain.skipped)
@@ -3291,7 +3291,7 @@ var shipped_steps_generated_default = {
3291
3291
  };
3292
3292
 
3293
3293
  // apps/cli/src/scaffold-files.ts
3294
- var cliVersion = "0.42.1";
3294
+ var cliVersion = "0.42.2";
3295
3295
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3296
3296
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3297
3297
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3556,7 +3556,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3556
3556
 
3557
3557
  // apps/cli/src/commands.ts
3558
3558
  var ClientId = "kitman-cli";
3559
- var agentRuntime = promise(() => import("./chunk-4pcknv14.js"));
3559
+ var agentRuntime = promise(() => import("./chunk-rc4wvjf2.js"));
3560
3560
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3561
3561
  defaultValue: () => gen(function* () {
3562
3562
  const tui = yield* tryPromise({
@@ -5095,7 +5095,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5095
5095
  });
5096
5096
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5097
5097
  defaultValue: () => (options) => gen(function* () {
5098
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-8q04gtg1.js"));
5098
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-mc0xxx2z.js"));
5099
5099
  return yield* makeRunnerRpcClient({
5100
5100
  runnerId: options.runnerId,
5101
5101
  bearer: options.bearer,
@@ -5431,7 +5431,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5431
5431
  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);
5432
5432
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
5433
5433
  const platform = yield* context();
5434
- const updated = yield* make16();
5434
+ const updated = yield* make15();
5435
5435
  const scope = yield* scope2;
5436
5436
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
5437
5437
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -5695,7 +5695,7 @@ function mcpCommand(args) {
5695
5695
  if (command.action === "run") {
5696
5696
  if (command.args.length > 0)
5697
5697
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5698
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-gf2np1ak.js"));
5698
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-y6mjtq6n.js"));
5699
5699
  return yield* runMcpServerCommand({ flags: command.flags });
5700
5700
  }
5701
5701
  if (command.action !== "setup")
@@ -6195,7 +6195,7 @@ function programLoopCommand(command) {
6195
6195
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6196
6196
  });
6197
6197
  }
6198
- var docsModule = promise(() => import("./chunk-p4asjq9r.js"));
6198
+ var docsModule = promise(() => import("./chunk-t8y2y7ha.js"));
6199
6199
  function docsCommand(args) {
6200
6200
  return gen(function* () {
6201
6201
  const command = parseCommand(args);
@@ -7199,7 +7199,7 @@ function changeRequestCommand(args) {
7199
7199
  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}`);
7200
7200
  });
7201
7201
  }
7202
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7202
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7203
7203
  var loopOutline = (command) => gen(function* () {
7204
7204
  const path = yield* Path;
7205
7205
  const loop = requiredArg(command, "a Loop id");
@@ -7219,9 +7219,9 @@ var loopOutline = (command) => gen(function* () {
7219
7219
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7220
7220
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7221
7221
  });
7222
- var KitWriter = map9(promise(() => import("./chunk-evpyks4h.js")), (build) => build.writeKit);
7222
+ var KitWriter = map9(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.writeKit);
7223
7223
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7224
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.js")), (build) => build.buildKit(directory))
7224
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.buildKit(directory))
7225
7225
  });
7226
7226
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7227
7227
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
2211
2211
  return page === null ? link : page[1] || "index";
2212
2212
  };
2213
2213
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2214
- var pinnedLink2 = (link, version = "0.42.1") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2214
+ var pinnedLink2 = (link, version = "0.42.2") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2215
2215
  var pageOf = (path) => path.split("#")[0];
2216
2216
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2217
2217
  function excerpt(text, queryTerms) {
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-bqbfyqx6.js";
16
+ } from "./chunk-b4td2pgc.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-etrfc5cn.js";
20
+ } from "./chunk-sasjamqz.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-7091bpsv.js";
26
+ } from "./chunk-vjkgbsry.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-kqr3ts9q.js";
35
- import"./chunk-ea29sbaq.js";
36
- import"./chunk-nk35kh6w.js";
37
- import"./chunk-6x08g7m6.js";
34
+ } from "./chunk-q6qn9c47.js";
35
+ import"./chunk-sbk4evb4.js";
36
+ import"./chunk-3gax0xq6.js";
37
+ import"./chunk-qndcafax.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -35,19 +35,19 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-bqbfyqx6.js";
38
+ } from "./chunk-b4td2pgc.js";
39
39
  import {
40
40
  currentTimeMillis,
41
- make11,
41
+ make10,
42
42
  runForEach,
43
43
  toPull,
44
44
  FileSystem,
45
45
  compiled2
46
- } from "./chunk-etrfc5cn.js";
46
+ } from "./chunk-sasjamqz.js";
47
47
  import {
48
48
  ChildProcessSpawner,
49
49
  make3
50
- } from "./chunk-6x08g7m6.js";
50
+ } from "./chunk-3gax0xq6.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -266,7 +266,7 @@ var spawnReader = (request) => gen(function* () {
266
266
  const spawner = yield* ChildProcessSpawner;
267
267
  const [command, ...args] = opencodeReaderCommand();
268
268
  return yield* spawner.spawn(make3(command, args, {
269
- stdin: make11(new TextEncoder().encode(request)),
269
+ stdin: make10(new TextEncoder().encode(request)),
270
270
  stderr: "ignore",
271
271
  extendEnv: false,
272
272
  env: {},
@@ -35,15 +35,7 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-bqbfyqx6.js";
39
- import {
40
- decodeText,
41
- mkString,
42
- FileSystem,
43
- Path,
44
- withDefault,
45
- String2
46
- } from "./chunk-etrfc5cn.js";
38
+ } from "./chunk-b4td2pgc.js";
47
39
  import {
48
40
  SecureRandom,
49
41
  layerWebCrypto,
@@ -60,26 +52,34 @@ import {
60
52
  KitDeclarations,
61
53
  kitmanMcpServer,
62
54
  RunnerRpcProtocolVersion
63
- } from "./chunk-kqr3ts9q.js";
55
+ } from "./chunk-q6qn9c47.js";
56
+ import {
57
+ decodeText,
58
+ mkString,
59
+ FileSystem,
60
+ Path,
61
+ withDefault,
62
+ String2
63
+ } from "./chunk-sasjamqz.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-nk35kh6w.js";
68
- import"./chunk-ea29sbaq.js";
67
+ } from "./chunk-sbk4evb4.js";
69
68
  import {
70
69
  stepDefinedTwice,
71
70
  hostSteps,
72
71
  exports_activities,
73
72
  describeFlag,
74
73
  Described
75
- } from "./chunk-7n64vjb2.js";
76
- import"./chunk-1ay659hm.js";
77
- import"./chunk-98azvx6g.js";
74
+ } from "./chunk-re7cr0kk.js";
75
+ import"./chunk-gqgbah9q.js";
76
+ import"./chunk-tpmyf5mk.js";
78
77
  import {
79
78
  ChildProcessSpawner,
80
79
  make3
81
- } from "./chunk-6x08g7m6.js";
82
- import"./chunk-dgqjmd95.js";
80
+ } from "./chunk-3gax0xq6.js";
81
+ import"./chunk-c3ms91a6.js";
82
+ import"./chunk-qndcafax.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -22,7 +22,7 @@ import {
22
22
  map9,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-bqbfyqx6.js";
25
+ } from "./chunk-b4td2pgc.js";
26
26
  import {
27
27
  unwrap,
28
28
  drainFork,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-etrfc5cn.js";
34
+ } from "./chunk-sasjamqz.js";
35
35
 
36
36
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
37
  var redactedRegistry = /* @__PURE__ */ new WeakMap;