@kitman-sh/cli 0.50.0 → 0.50.1

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-4vxbxjf8.js → chunk-5tgpa02q.js} +1 -1
  2. package/dist/{chunk-8gkrs473.js → chunk-72ht3484.js} +4 -4
  3. package/dist/{chunk-aekx465g.js → chunk-7y1w0dhd.js} +11 -9
  4. package/dist/{chunk-fqh4pj6b.js → chunk-8r9k7pqk.js} +9 -3
  5. package/dist/{chunk-y34fqzax.js → chunk-9jz94mb7.js} +1 -1
  6. package/dist/{chunk-0nqjdqnc.js → chunk-9vdy85kg.js} +20 -20
  7. package/dist/{chunk-tfwgeqx5.js → chunk-ag79vvjy.js} +4 -4
  8. package/dist/{chunk-04wqa07j.js → chunk-apv9h5tz.js} +1 -1
  9. package/dist/{chunk-1gxrhdb3.js → chunk-bk28dr40.js} +20 -20
  10. package/dist/{chunk-a71b15k3.js → chunk-brbym443.js} +2 -2
  11. package/dist/{chunk-w4hkd8ab.js → chunk-ecweehc6.js} +24 -23
  12. package/dist/{chunk-32jx4pb9.js → chunk-g3c1vesf.js} +1 -1
  13. package/dist/{chunk-wkt559vb.js → chunk-h3wes7wf.js} +7 -7
  14. package/dist/{chunk-5smh4dp2.js → chunk-hyaq30ne.js} +21 -161
  15. package/dist/{chunk-9ykh05hz.js → chunk-k1fdsn2c.js} +1 -1
  16. package/dist/{chunk-01tf5h5v.js → chunk-k5cqc0cs.js} +6 -4
  17. package/dist/{chunk-tpeynf2f.js → chunk-mtrhqr16.js} +3 -3
  18. package/dist/{chunk-n3jpxd14.js → chunk-n00cpb86.js} +2 -2
  19. package/dist/{chunk-k462v2v7.js → chunk-n381rqax.js} +157 -13
  20. package/dist/{chunk-kc1nw3ks.js → chunk-q8m2ygyt.js} +4 -4
  21. package/dist/{chunk-5pjbxhxy.js → chunk-qfwhsqej.js} +3 -3
  22. package/dist/{chunk-qs1f7rh9.js → chunk-rr0rem5d.js} +6 -6
  23. package/dist/{chunk-6n976mhk.js → chunk-s6z4sdkw.js} +4 -4
  24. package/dist/{chunk-pp76dgv5.js → chunk-s8ws5fqj.js} +8 -17
  25. package/dist/{chunk-wkfht1sx.js → chunk-v96hm634.js} +4 -4
  26. package/dist/{chunk-z155a0wp.js → chunk-watq46xe.js} +15 -7
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-k462v2v7.js";
21
+ } from "./chunk-n381rqax.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -35,19 +35,19 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-k462v2v7.js";
38
+ } from "./chunk-n381rqax.js";
39
39
  import {
40
- currentTimeMillis,
41
40
  make10,
42
41
  runForEach,
43
42
  toPull,
44
43
  FileSystem,
45
44
  compiled2
46
- } from "./chunk-5smh4dp2.js";
45
+ } from "./chunk-hyaq30ne.js";
47
46
  import {
47
+ currentTimeMillis,
48
48
  ChildProcessSpawner,
49
49
  make2
50
- } from "./chunk-fqh4pj6b.js";
50
+ } from "./chunk-8r9k7pqk.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-k462v2v7.js";
121
+ } from "./chunk-n381rqax.js";
122
122
  import {
123
123
  SecureRandom,
124
124
  makeUnsafe,
@@ -170,9 +170,8 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-pp76dgv5.js";
173
+ } from "./chunk-s8ws5fqj.js";
174
174
  import {
175
- currentTimeMillis,
176
175
  join,
177
176
  interrupt,
178
177
  empty3,
@@ -188,30 +187,33 @@ import {
188
187
  withDefault,
189
188
  option,
190
189
  String2
191
- } from "./chunk-5smh4dp2.js";
190
+ } from "./chunk-hyaq30ne.js";
192
191
  import {
193
192
  searchDocs2,
194
193
  readDoc2
195
- } from "./chunk-y34fqzax.js";
194
+ } from "./chunk-9jz94mb7.js";
196
195
  import {
197
196
  nextInt
198
- } from "./chunk-04wqa07j.js";
197
+ } from "./chunk-apv9h5tz.js";
199
198
  import {
200
199
  recommendationProblem
201
- } from "./chunk-9ykh05hz.js";
200
+ } from "./chunk-k1fdsn2c.js";
201
+ import {
202
+ currentTimeMillis
203
+ } from "./chunk-8r9k7pqk.js";
202
204
  import {
203
205
  layerJson,
204
206
  make3,
205
207
  withHeaders,
206
208
  layerProtocolSocket,
207
209
  ConnectionHooks
208
- } from "./chunk-01tf5h5v.js";
210
+ } from "./chunk-k5cqc0cs.js";
209
211
  import {
210
212
  guard,
211
213
  Id,
212
214
  Timestamp,
213
215
  ActorType
214
- } from "./chunk-4vxbxjf8.js";
216
+ } from "./chunk-5tgpa02q.js";
215
217
 
216
218
  // apps/cli/src/mcp.ts
217
219
  import { tmpdir as tmpdir2 } from "os";
@@ -9,6 +9,8 @@ import {
9
9
  fail3,
10
10
  getOrThrow,
11
11
  TaggedError,
12
+ ClockRef,
13
+ currentTimeMillis2,
12
14
  never,
13
15
  flatMap3,
14
16
  andThen2,
@@ -18,7 +20,7 @@ import {
18
20
  isRedacted,
19
21
  make16,
20
22
  value
21
- } from "./chunk-k462v2v7.js";
23
+ } from "./chunk-n381rqax.js";
22
24
  import {
23
25
  unwrap,
24
26
  drainFork,
@@ -27,7 +29,11 @@ import {
27
29
  runCollect,
28
30
  runDrain,
29
31
  mkString
30
- } from "./chunk-5smh4dp2.js";
32
+ } from "./chunk-hyaq30ne.js";
33
+
34
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
35
+ var Clock = ClockRef;
36
+ var currentTimeMillis = currentTimeMillis2;
31
37
 
32
38
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
39
  function nominal() {
@@ -340,4 +346,4 @@ var shellScript = (templates, expressions) => {
340
346
  }
341
347
  return script;
342
348
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
349
+ export { Clock, currentTimeMillis, ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
@@ -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.50.1") => 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) {
@@ -109,9 +109,8 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-k462v2v7.js";
112
+ } from "./chunk-n381rqax.js";
113
113
  import {
114
- currentTimeMillis,
115
114
  tap,
116
115
  mapError,
117
116
  decodeText,
@@ -122,7 +121,12 @@ import {
122
121
  withDefault,
123
122
  option,
124
123
  String2
125
- } from "./chunk-5smh4dp2.js";
124
+ } from "./chunk-hyaq30ne.js";
125
+ import {
126
+ currentTimeMillis,
127
+ ChildProcessSpawner,
128
+ make2
129
+ } from "./chunk-8r9k7pqk.js";
126
130
  import {
127
131
  SecureRandom,
128
132
  layerWebCrypto,
@@ -253,15 +257,11 @@ import {
253
257
  harnessNames,
254
258
  herdrRunnerCapabilities2,
255
259
  declaredChecks
256
- } from "./chunk-pp76dgv5.js";
257
- import {
258
- ChildProcessSpawner,
259
- make2
260
- } from "./chunk-fqh4pj6b.js";
260
+ } from "./chunk-s8ws5fqj.js";
261
261
  import {
262
262
  Id,
263
263
  Timestamp
264
- } from "./chunk-4vxbxjf8.js";
264
+ } from "./chunk-5tgpa02q.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-6n976mhk.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-s6z4sdkw.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-s6z4sdkw.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-h3wes7wf.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.50.1";
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-ecweehc6.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-rr0rem5d.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-7y1w0dhd.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-g3c1vesf.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-bk28dr40.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-bk28dr40.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-bk28dr40.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) });
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-8gkrs473.js";
13
- import"./chunk-fqh4pj6b.js";
14
- import"./chunk-5smh4dp2.js";
15
- import"./chunk-k462v2v7.js";
12
+ } from "./chunk-72ht3484.js";
13
+ import"./chunk-8r9k7pqk.js";
14
+ import"./chunk-hyaq30ne.js";
15
+ import"./chunk-n381rqax.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-k462v2v7.js";
6
+ } from "./chunk-n381rqax.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -35,15 +35,7 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-k462v2v7.js";
39
- import {
40
- decodeText,
41
- mkString,
42
- FileSystem,
43
- Path,
44
- withDefault,
45
- String2
46
- } from "./chunk-5smh4dp2.js";
38
+ } from "./chunk-n381rqax.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-pp76dgv5.js";
55
+ } from "./chunk-s8ws5fqj.js";
56
+ import {
57
+ decodeText,
58
+ mkString,
59
+ FileSystem,
60
+ Path,
61
+ withDefault,
62
+ String2
63
+ } from "./chunk-hyaq30ne.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-tpeynf2f.js";
67
+ } from "./chunk-mtrhqr16.js";
68
+ import {
69
+ ChildProcessSpawner,
70
+ make2
71
+ } from "./chunk-8r9k7pqk.js";
68
72
  import {
69
73
  stepDefinedTwice,
70
74
  hostSteps,
71
75
  exports_activities,
72
76
  describeFlag,
73
77
  Described
74
- } from "./chunk-z155a0wp.js";
75
- import"./chunk-kc1nw3ks.js";
76
- import"./chunk-9ykh05hz.js";
77
- import {
78
- ChildProcessSpawner,
79
- make2
80
- } from "./chunk-fqh4pj6b.js";
81
- import"./chunk-01tf5h5v.js";
82
- import"./chunk-4vxbxjf8.js";
78
+ } from "./chunk-watq46xe.js";
79
+ import"./chunk-q8m2ygyt.js";
80
+ import"./chunk-k1fdsn2c.js";
81
+ import"./chunk-k5cqc0cs.js";
82
+ import"./chunk-5tgpa02q.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-5smh4dp2.js";
19
- import"./chunk-k462v2v7.js";
18
+ } from "./chunk-hyaq30ne.js";
19
+ import"./chunk-n381rqax.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -186,7 +186,7 @@ import {
186
186
  decodeJsonStringSync,
187
187
  encodeUnknownJsonStringSync,
188
188
  storable
189
- } from "./chunk-k462v2v7.js";
189
+ } from "./chunk-n381rqax.js";
190
190
  import {
191
191
  SecureRandom,
192
192
  layerWebCrypto,
@@ -277,10 +277,9 @@ import {
277
277
  checkServicesFile,
278
278
  checkServices,
279
279
  serviceChecks
280
- } from "./chunk-pp76dgv5.js";
280
+ } from "./chunk-s8ws5fqj.js";
281
281
  import {
282
282
  empty2,
283
- currentTimeMillis,
284
283
  join,
285
284
  interrupt,
286
285
  interruptAll,
@@ -330,7 +329,7 @@ import {
330
329
  writeSrtSettings2,
331
330
  srtStepArgv2,
332
331
  srtArgv2
333
- } from "./chunk-5smh4dp2.js";
332
+ } from "./chunk-hyaq30ne.js";
334
333
  import {
335
334
  writeAgentEnvironmentConfigFile2,
336
335
  readManifestSkillPaths2,
@@ -346,8 +345,13 @@ import {
346
345
  applyAgentEnvironmentMaterialization2,
347
346
  isPathWithin2,
348
347
  skillIdentity2
349
- } from "./chunk-wkfht1sx.js";
350
- import"./chunk-tpeynf2f.js";
348
+ } from "./chunk-v96hm634.js";
349
+ import"./chunk-mtrhqr16.js";
350
+ import {
351
+ currentTimeMillis,
352
+ ChildProcessSpawner,
353
+ make2
354
+ } from "./chunk-8r9k7pqk.js";
351
355
  import {
352
356
  egressAllowed,
353
357
  writeSecretRegistry,
@@ -357,7 +361,7 @@ import {
357
361
  secretFilter2,
358
362
  opaqueTunnelRefusal2,
359
363
  isOpaqueConnectReason2
360
- } from "./chunk-n3jpxd14.js";
364
+ } from "./chunk-n00cpb86.js";
361
365
  import {
362
366
  sliceBytes2,
363
367
  maxLineBytes2,
@@ -367,29 +371,25 @@ import {
367
371
  lookAtOpencode2,
368
372
  readOpencode2,
369
373
  databaseStamp2
370
- } from "./chunk-8gkrs473.js";
374
+ } from "./chunk-72ht3484.js";
371
375
  import {
372
376
  uploadRunFile,
373
377
  programLease,
374
378
  rpcRunFiles,
375
379
  programHostsEnv,
376
380
  undeclaredHostsEnv
377
- } from "./chunk-z155a0wp.js";
378
- import"./chunk-kc1nw3ks.js";
381
+ } from "./chunk-watq46xe.js";
382
+ import"./chunk-q8m2ygyt.js";
379
383
  import {
380
384
  nextInt
381
- } from "./chunk-04wqa07j.js";
382
- import"./chunk-9ykh05hz.js";
383
- import {
384
- ChildProcessSpawner,
385
- make2
386
- } from "./chunk-fqh4pj6b.js";
387
- import"./chunk-01tf5h5v.js";
385
+ } from "./chunk-apv9h5tz.js";
386
+ import"./chunk-k1fdsn2c.js";
387
+ import"./chunk-k5cqc0cs.js";
388
388
  import {
389
389
  Id,
390
390
  secretReference,
391
391
  secretPlaceholder
392
- } from "./chunk-4vxbxjf8.js";
392
+ } from "./chunk-5tgpa02q.js";
393
393
 
394
394
  // packages/core/src/sync-kit.ts
395
395
  import { createHash } from "crypto";
@@ -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);
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-y34fqzax.js";
7
+ } from "./chunk-9jz94mb7.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-k462v2v7.js";
16
+ } from "./chunk-n381rqax.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-5smh4dp2.js";
20
+ } from "./chunk-hyaq30ne.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-wkfht1sx.js";
26
+ } from "./chunk-v96hm634.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-pp76dgv5.js";
35
- import"./chunk-tpeynf2f.js";
36
- import"./chunk-fqh4pj6b.js";
37
- import"./chunk-4vxbxjf8.js";
34
+ } from "./chunk-s8ws5fqj.js";
35
+ import"./chunk-8r9k7pqk.js";
36
+ import"./chunk-mtrhqr16.js";
37
+ import"./chunk-5tgpa02q.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {