@kitman-sh/cli 0.50.0 → 0.51.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.
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-y34fqzax.js";
7
+ } from "./chunk-vaeva1k8.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-pp76dgv5.js";
22
+ } from "./chunk-tse7tfe9.js";
23
23
  import {
24
24
  layerJson,
25
25
  make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-01tf5h5v.js";
28
+ } from "./chunk-5hsqbwzd.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-pp76dgv5.js";
126
+ } from "./chunk-tse7tfe9.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -180,7 +180,7 @@ import {
180
180
  StepManifest,
181
181
  KitSetup,
182
182
  RunnerRpcError
183
- } from "./chunk-pp76dgv5.js";
183
+ } from "./chunk-tse7tfe9.js";
184
184
  import {
185
185
  currentTimeMillis,
186
186
  getCurrent,
@@ -1007,6 +1007,7 @@ var EvidenceCheck = Struct({
1007
1007
  outputTail: optionalKey(String4),
1008
1008
  failedTests: optionalKey(ArraySchema(String4)),
1009
1009
  suggested: optionalKey(Boolean2),
1010
+ notStarted: optionalKey(Boolean2),
1010
1011
  skippedSinceBaseline: optionalKey(ArraySchema(String4)),
1011
1012
  newNotRun: optionalKey(ArraySchema(String4)),
1012
1013
  environmentFailure: optionalKey(Struct({
@@ -1021,7 +1022,12 @@ var VerifyResult = Struct({
1021
1022
  tree: String4,
1022
1023
  passed: Boolean2,
1023
1024
  unchanged: optionalKey(Boolean2),
1024
- checks: ArraySchema(EvidenceCheck)
1025
+ checks: ArraySchema(EvidenceCheck),
1026
+ runnable: optionalKey(ArraySchema(Struct({
1027
+ name: String4,
1028
+ command: String4,
1029
+ workingDirectory: optionalKey(String4)
1030
+ })))
1025
1031
  });
1026
1032
 
1027
1033
  // packages/sdk/src/loop/steps.ts
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-kc1nw3ks.js";
8
- import"./chunk-01tf5h5v.js";
9
- import"./chunk-pp76dgv5.js";
7
+ } from "./chunk-558rmyma.js";
8
+ import"./chunk-5hsqbwzd.js";
9
+ import"./chunk-tse7tfe9.js";
10
10
  import"./chunk-4vxbxjf8.js";
11
11
  import"./chunk-5smh4dp2.js";
12
12
  import"./chunk-k462v2v7.js";
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-pp76dgv5.js";
39
+ } from "./chunk-tse7tfe9.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-tpeynf2f.js";
42
+ } from "./chunk-hf0chy5n.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -253,7 +253,7 @@ import {
253
253
  harnessNames,
254
254
  herdrRunnerCapabilities2,
255
255
  declaredChecks
256
- } from "./chunk-pp76dgv5.js";
256
+ } from "./chunk-tse7tfe9.js";
257
257
  import {
258
258
  ChildProcessSpawner,
259
259
  make2
@@ -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-6n976mhk.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j3x7fcrd.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-6n976mhk.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j3x7fcrd.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1799,7 +1799,7 @@ var syncTargets = (harness) => gen(function* () {
1799
1799
  });
1800
1800
  var syncKits = (input) => gen(function* () {
1801
1801
  const fs = yield* FileSystem;
1802
- const { syncKitSetup } = yield* promise(() => import("./chunk-wkt559vb.js"));
1802
+ const { syncKitSetup } = yield* promise(() => import("./chunk-s5qejghj.js"));
1803
1803
  const harnesses = yield* syncTargets(input.harness);
1804
1804
  const chain = yield* input.client.getKitChain(input.workspaceId);
1805
1805
  for (const { name, problem } of chain.skipped)
@@ -3295,7 +3295,7 @@ var shipped_steps_generated_default = {
3295
3295
  };
3296
3296
 
3297
3297
  // apps/cli/src/scaffold-files.ts
3298
- var cliVersion = "0.50.0";
3298
+ var cliVersion = "0.51.0";
3299
3299
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3300
3300
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3301
3301
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3560,7 +3560,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3560
3560
 
3561
3561
  // apps/cli/src/commands.ts
3562
3562
  var ClientId = "kitman-cli";
3563
- var agentRuntime = promise(() => import("./chunk-w4hkd8ab.js"));
3563
+ var agentRuntime = promise(() => import("./chunk-xg5essbk.js"));
3564
3564
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3565
3565
  defaultValue: () => gen(function* () {
3566
3566
  const tui = yield* tryPromise({
@@ -5099,7 +5099,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5099
5099
  });
5100
5100
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5101
5101
  defaultValue: () => (options) => gen(function* () {
5102
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-qs1f7rh9.js"));
5102
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-adevz872.js"));
5103
5103
  return yield* makeRunnerRpcClient({
5104
5104
  runnerId: options.runnerId,
5105
5105
  bearer: options.bearer,
@@ -5711,7 +5711,7 @@ function mcpCommand(args) {
5711
5711
  if (command.action === "run") {
5712
5712
  if (command.args.length > 0)
5713
5713
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5714
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-aekx465g.js"));
5714
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-whspb67e.js"));
5715
5715
  return yield* runMcpServerCommand({ flags: command.flags });
5716
5716
  }
5717
5717
  if (command.action !== "setup")
@@ -6211,7 +6211,7 @@ function programLoopCommand(command) {
6211
6211
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6212
6212
  });
6213
6213
  }
6214
- var docsModule = promise(() => import("./chunk-32jx4pb9.js"));
6214
+ var docsModule = promise(() => import("./chunk-2d1ck2fa.js"));
6215
6215
  function docsCommand(args) {
6216
6216
  return gen(function* () {
6217
6217
  const command = parseCommand(args);
@@ -7222,7 +7222,7 @@ function changeRequestCommand(args) {
7222
7222
  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}`);
7223
7223
  });
7224
7224
  }
7225
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7225
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-ptqswdck.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7226
7226
  var loopOutline = (command) => gen(function* () {
7227
7227
  const path = yield* Path;
7228
7228
  const loop = requiredArg(command, "a Loop id");
@@ -7242,9 +7242,9 @@ var loopOutline = (command) => gen(function* () {
7242
7242
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7243
7243
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7244
7244
  });
7245
- var KitWriter = map9(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.writeKit);
7245
+ var KitWriter = map9(promise(() => import("./chunk-ptqswdck.js")), (build) => build.writeKit);
7246
7246
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7247
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.buildKit(directory))
7247
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ptqswdck.js")), (build) => build.buildKit(directory))
7248
7248
  });
7249
7249
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7250
7250
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-pp76dgv5.js";
42
+ } from "./chunk-tse7tfe9.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-pp76dgv5.js";
15
+ } from "./chunk-tse7tfe9.js";
16
16
  import"./chunk-5smh4dp2.js";
17
17
  import"./chunk-k462v2v7.js";
18
18
  export {
@@ -36,14 +36,6 @@ import {
36
36
  Json,
37
37
  encodePrettyJsonString
38
38
  } from "./chunk-k462v2v7.js";
39
- import {
40
- decodeText,
41
- mkString,
42
- FileSystem,
43
- Path,
44
- withDefault,
45
- String2
46
- } from "./chunk-5smh4dp2.js";
47
39
  import {
48
40
  SecureRandom,
49
41
  layerWebCrypto,
@@ -60,25 +52,33 @@ import {
60
52
  KitDeclarations,
61
53
  kitmanMcpServer,
62
54
  RunnerRpcProtocolVersion
63
- } from "./chunk-pp76dgv5.js";
55
+ } from "./chunk-tse7tfe9.js";
56
+ import {
57
+ decodeText,
58
+ mkString,
59
+ FileSystem,
60
+ Path,
61
+ withDefault,
62
+ String2
63
+ } from "./chunk-5smh4dp2.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-tpeynf2f.js";
67
+ } from "./chunk-hf0chy5n.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-z155a0wp.js";
75
- import"./chunk-kc1nw3ks.js";
74
+ } from "./chunk-6ryjppc7.js";
75
+ import"./chunk-558rmyma.js";
76
76
  import"./chunk-9ykh05hz.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
79
  make2
80
80
  } from "./chunk-fqh4pj6b.js";
81
- import"./chunk-01tf5h5v.js";
81
+ import"./chunk-5hsqbwzd.js";
82
82
  import"./chunk-4vxbxjf8.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
@@ -23,7 +23,7 @@ import {
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-wkfht1sx.js";
26
+ } from "./chunk-c3yzdpwf.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,8 +31,8 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-pp76dgv5.js";
35
- import"./chunk-tpeynf2f.js";
34
+ } from "./chunk-tse7tfe9.js";
35
+ import"./chunk-hf0chy5n.js";
36
36
  import"./chunk-fqh4pj6b.js";
37
37
  import"./chunk-4vxbxjf8.js";
38
38
 
@@ -361,7 +361,6 @@ import {
361
361
  SecretHosts,
362
362
  isSecretReference
363
363
  } from "./chunk-4vxbxjf8.js";
364
-
365
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
366
365
  var makeEquivalence3 = Tuple;
367
366
 
@@ -253,7 +253,7 @@ With the default workflow, the Task follows its Run:
253
253
  - the Run starts: **In Progress**;
254
254
  - its ChangeRequest opens: **In Review**;
255
255
  - its ChangeRequest merges: **Done**;
256
- - the Run finishes without a ChangeRequest, as Research does: **In Review**, for a person to look at;
256
+ - the Run finishes without a ChangeRequest, as Research does, or a Build whose implementer found nothing needed changing: **In Review**, for a person to look at;
257
257
  - the Run is blocked, as a full-auto Build is when findings still stand after its last rebuild, or when its Review rounds are not converging: **Blocked**. Its blocker is on the Task's timeline. Move the Task on once you have dealt with it; a new Run moves it to **In Progress**.
258
258
 
259
259
  A ChangeRequest someone opens by hand on a branch named with the Task's key moves the Task too. The Team's Workflow tab changes where each milestone goes. Each Run or ChangeRequest moves the Task once per milestone, and never out of Done, Canceled or Duplicate.
@@ -2230,7 +2230,7 @@ var pathOfLink = (link) => {
2230
2230
  return page === null ? link : page[1] || "index";
2231
2231
  };
2232
2232
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2233
- var pinnedLink2 = (link, version = "0.50.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2233
+ var pinnedLink2 = (link, version = "0.51.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2234
2234
  var pageOf = (path) => path.split("#")[0];
2235
2235
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2236
2236
  function excerpt(text, queryTerms) {
@@ -170,7 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-pp76dgv5.js";
173
+ } from "./chunk-tse7tfe9.js";
174
174
  import {
175
175
  currentTimeMillis,
176
176
  join,
@@ -192,7 +192,7 @@ import {
192
192
  import {
193
193
  searchDocs2,
194
194
  readDoc2
195
- } from "./chunk-y34fqzax.js";
195
+ } from "./chunk-vaeva1k8.js";
196
196
  import {
197
197
  nextInt
198
198
  } from "./chunk-04wqa07j.js";
@@ -205,7 +205,7 @@ import {
205
205
  withHeaders,
206
206
  layerProtocolSocket,
207
207
  ConnectionHooks
208
- } from "./chunk-01tf5h5v.js";
208
+ } from "./chunk-5hsqbwzd.js";
209
209
  import {
210
210
  guard,
211
211
  Id,
@@ -277,7 +277,7 @@ import {
277
277
  checkServicesFile,
278
278
  checkServices,
279
279
  serviceChecks
280
- } from "./chunk-pp76dgv5.js";
280
+ } from "./chunk-tse7tfe9.js";
281
281
  import {
282
282
  empty2,
283
283
  currentTimeMillis,
@@ -346,8 +346,8 @@ import {
346
346
  applyAgentEnvironmentMaterialization2,
347
347
  isPathWithin2,
348
348
  skillIdentity2
349
- } from "./chunk-wkfht1sx.js";
350
- import"./chunk-tpeynf2f.js";
349
+ } from "./chunk-c3yzdpwf.js";
350
+ import"./chunk-hf0chy5n.js";
351
351
  import {
352
352
  egressAllowed,
353
353
  writeSecretRegistry,
@@ -374,8 +374,8 @@ import {
374
374
  rpcRunFiles,
375
375
  programHostsEnv,
376
376
  undeclaredHostsEnv
377
- } from "./chunk-z155a0wp.js";
378
- import"./chunk-kc1nw3ks.js";
377
+ } from "./chunk-6ryjppc7.js";
378
+ import"./chunk-558rmyma.js";
379
379
  import {
380
380
  nextInt
381
381
  } from "./chunk-04wqa07j.js";
@@ -384,7 +384,7 @@ import {
384
384
  ChildProcessSpawner,
385
385
  make2
386
386
  } from "./chunk-fqh4pj6b.js";
387
- import"./chunk-01tf5h5v.js";
387
+ import"./chunk-5hsqbwzd.js";
388
388
  import {
389
389
  Id,
390
390
  secretReference,
@@ -9935,15 +9935,16 @@ var runCheck = (worktree, check, run, keeper, services, postgres) => gen(functio
9935
9935
  const filesDir = yield* tempDirectoryScoped(fs, { prefix: "kitman-check-files-" });
9936
9936
  const output = path.join(yield* tempDirectoryScoped(fs, { prefix: "kitman-check-output-" }), "output");
9937
9937
  const sink = yield* fs.open(output, { flag: "w" });
9938
- const docker = check.pipeline === true ? yield* pipelineDaemon(services, check.name) : undefined;
9939
- const ran = yield* run({
9938
+ const cwd = path.join(worktree, check.workingDirectory ?? ".");
9939
+ const isDirectory = yield* fs.stat(cwd).pipe(map9((info) => info.type === "Directory"), orElseSucceed(() => false));
9940
+ const ran = isDirectory ? yield* run({
9940
9941
  command: check.command,
9941
- cwd: path.join(worktree, check.workingDirectory ?? "."),
9942
+ cwd,
9942
9943
  filesDir,
9943
9944
  ...postgres === undefined ? undefined : { postgres },
9944
- ...docker === undefined ? undefined : { docker },
9945
+ ...check.pipeline === true ? { docker: yield* pipelineDaemon(services, check.name) } : undefined,
9945
9946
  onOutput: (chunk) => sink.writeAll(chunk)
9946
- });
9947
+ }) : { exitCode: 127, output: `No directory ${check.workingDirectory ?? "."} in this checkout` };
9947
9948
  const durationMs = (yield* currentTimeMillis) - startedAt;
9948
9949
  const printed = ran.exitCode === 0 ? [] : yield* printedFailures(output);
9949
9950
  const failedInParallel = ran.exitCode === 0 ? [] : yield* parallelFailures(output);
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-tfwgeqx5.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-0nqjdqnc.js");
17
+ const { runCli } = await import("./chunk-hasds4yd.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.50.0",
3
+ "version": "0.51.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {