@kitman-sh/cli 0.10.84 → 0.10.85

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.
@@ -76,10 +76,6 @@ import {
76
76
  toCodecJson,
77
77
  Json
78
78
  } from "./chunk-jbwk6k6m.js";
79
- import {
80
- runForEach,
81
- FileSystem
82
- } from "./chunk-397fax43.js";
83
79
  import {
84
80
  guard
85
81
  } from "./chunk-kgdppbdr.js";
@@ -109,7 +105,11 @@ import {
109
105
  KitDigest,
110
106
  KitSetup,
111
107
  RunnerRpcError
112
- } from "./chunk-d53rckf0.js";
108
+ } from "./chunk-w5smxtzc.js";
109
+ import {
110
+ runForEach,
111
+ FileSystem
112
+ } from "./chunk-xb70ys3n.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -7,46 +7,6 @@ import {
7
7
  isJsonObject,
8
8
  isString
9
9
  } from "./chunk-tzz4fv17.js";
10
- import {
11
- join,
12
- interrupt,
13
- unbounded,
14
- publishUnsafe,
15
- unbounded2,
16
- offer,
17
- makeUnsafe3,
18
- make11,
19
- fromQueue,
20
- fromPubSub,
21
- map2,
22
- filter,
23
- decodeText,
24
- encodeText,
25
- splitLines,
26
- run,
27
- runHead,
28
- runForEach,
29
- FileSystem,
30
- Path,
31
- embeddedFile,
32
- extractEmbeddedFile,
33
- optionalEnv,
34
- operatorConfigHome,
35
- harnessesUnsupportedInSrt2,
36
- compiled2,
37
- pinnedSrtCommand2,
38
- pinnedSrtStepCommand2,
39
- runSrtCli2,
40
- kitmanCacheDirectory2,
41
- srtSettings2,
42
- srtCacheEnvironment2,
43
- srtInheritedEnv2,
44
- inheritedEnvironment2,
45
- withOnlyEnvironment2,
46
- writeSrtSettings2,
47
- srtStepArgv2,
48
- srtArgv2
49
- } from "./chunk-397fax43.js";
50
10
  import {
51
11
  pipeArguments,
52
12
  dual,
@@ -283,7 +243,47 @@ import {
283
243
  installCommand,
284
244
  checkServicesFile,
285
245
  checkServices
286
- } from "./chunk-d53rckf0.js";
246
+ } from "./chunk-w5smxtzc.js";
247
+ import {
248
+ join,
249
+ interrupt,
250
+ unbounded,
251
+ publishUnsafe,
252
+ unbounded2,
253
+ offer,
254
+ makeUnsafe3,
255
+ make11,
256
+ fromQueue,
257
+ fromPubSub,
258
+ map2,
259
+ filter,
260
+ decodeText,
261
+ encodeText,
262
+ splitLines,
263
+ run,
264
+ runHead,
265
+ runForEach,
266
+ FileSystem,
267
+ Path,
268
+ embeddedFile,
269
+ extractEmbeddedFile,
270
+ optionalEnv,
271
+ operatorConfigHome,
272
+ harnessesUnsupportedInSrt2,
273
+ compiled2,
274
+ pinnedSrtCommand2,
275
+ pinnedSrtStepCommand2,
276
+ runSrtCli2,
277
+ kitmanCacheDirectory2,
278
+ srtSettings2,
279
+ srtCacheEnvironment2,
280
+ srtInheritedEnv2,
281
+ inheritedEnvironment2,
282
+ withOnlyEnvironment2,
283
+ writeSrtSettings2,
284
+ srtStepArgv2,
285
+ srtArgv2
286
+ } from "./chunk-xb70ys3n.js";
287
287
  import {
288
288
  writeAgentEnvironmentConfigFile2,
289
289
  readManifestSkillPaths2,
@@ -299,8 +299,8 @@ import {
299
299
  applyAgentEnvironmentMaterialization2,
300
300
  isPathWithin2,
301
301
  skillIdentity2
302
- } from "./chunk-7qbchfkf.js";
303
- import"./chunk-2tpysgqk.js";
302
+ } from "./chunk-myjfc5nh.js";
303
+ import"./chunk-bk31f16e.js";
304
304
  import {
305
305
  egressAllowed,
306
306
  writeSecretRegistry,
@@ -318,23 +318,23 @@ import {
318
318
  decodedOption2,
319
319
  decoded2,
320
320
  readOpencode2
321
- } from "./chunk-0mgbryyd.js";
321
+ } from "./chunk-e8zm8z3a.js";
322
322
  import {
323
323
  uploadRunFile,
324
324
  programLease,
325
325
  rpcRunFiles,
326
326
  programHostsEnv,
327
327
  undeclaredHostsEnv
328
- } from "./chunk-92mjxge4.js";
329
- import"./chunk-2k1qfyvx.js";
328
+ } from "./chunk-m0yvvg6r.js";
329
+ import"./chunk-fhgfsets.js";
330
330
  import {
331
331
  nextInt
332
332
  } from "./chunk-76ctrqm6.js";
333
333
  import {
334
334
  ChildProcessSpawner,
335
335
  make3
336
- } from "./chunk-cakmwaed.js";
337
- import"./chunk-98r2t1s6.js";
336
+ } from "./chunk-98sg1yyd.js";
337
+ import"./chunk-11pnta38.js";
338
338
 
339
339
  // packages/core/src/sync-kit.ts
340
340
  import { createHash } from "crypto";
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path,
5
- optionalEnv
6
- } from "./chunk-397fax43.js";
7
2
  import {
8
3
  Reference,
9
4
  TaggedError,
@@ -33,14 +28,19 @@ import {
33
28
  isJsonObject,
34
29
  isString
35
30
  } from "./chunk-tzz4fv17.js";
31
+ import {
32
+ FileSystem,
33
+ Path,
34
+ optionalEnv
35
+ } from "./chunk-xb70ys3n.js";
36
36
  import {
37
37
  AgentHarnessIds,
38
38
  sha2562,
39
39
  runCommand2
40
- } from "./chunk-d53rckf0.js";
40
+ } from "./chunk-w5smxtzc.js";
41
41
  import {
42
42
  NpmRegistry
43
- } from "./chunk-2tpysgqk.js";
43
+ } from "./chunk-bk31f16e.js";
44
44
 
45
45
  // packages/agent-runtime/src/config-convergence.ts
46
46
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-2k1qfyvx.js";
8
- import"./chunk-98r2t1s6.js";
9
- import"./chunk-d53rckf0.js";
7
+ } from "./chunk-fhgfsets.js";
8
+ import"./chunk-11pnta38.js";
9
+ import"./chunk-w5smxtzc.js";
10
10
  import"./chunk-kgdppbdr.js";
11
11
  import"./chunk-tzz4fv17.js";
12
- import"./chunk-397fax43.js";
12
+ import"./chunk-xb70ys3n.js";
13
13
  import"./chunk-jbwk6k6m.js";
14
14
  export {
15
15
  makeProgramRpcClient2 as makeProgramRpcClient,
@@ -253,7 +253,6 @@ import {
253
253
  import {
254
254
  map,
255
255
  makeEquivalence,
256
- toNumber,
257
256
  bytes,
258
257
  BadArgument,
259
258
  systemError,
@@ -317,7 +316,7 @@ import {
317
316
  String2,
318
317
  optionalEnv,
319
318
  harnessesUnsupportedInSrt2
320
- } from "./chunk-397fax43.js";
319
+ } from "./chunk-xb70ys3n.js";
321
320
  import {
322
321
  isDateTime,
323
322
  Numeric,
@@ -358,7 +357,7 @@ import {
358
357
  make3,
359
358
  parseFdName,
360
359
  fdName
361
- } from "./chunk-cakmwaed.js";
360
+ } from "./chunk-98sg1yyd.js";
362
361
 
363
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
364
363
  var makeEquivalence3 = Tuple;
@@ -900,6 +899,15 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
900
899
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
901
900
  var runMain = runMain2;
902
901
 
902
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
903
+ var BigInt2 = globalThis.BigInt;
904
+ var toNumber = (b) => {
905
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
906
+ return none();
907
+ }
908
+ return some(Number(b));
909
+ };
910
+
903
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
904
912
  var makeUnsafe = makeUnsafe6;
905
913
  var make18 = make4;
@@ -6381,7 +6389,8 @@ var RunDisplayStates = [
6381
6389
  var RunDisplay = Struct({
6382
6390
  state: Literals(RunDisplayStates),
6383
6391
  retried: Boolean2,
6384
- summary: optionalKey(String4)
6392
+ summary: optionalKey(String4),
6393
+ childQuestion: optionalKey(Struct({ runId: Id, name: String4, questionId: Id, prompt: String4 }))
6385
6394
  });
6386
6395
  var RunGraphNodeKinds = ["agent", "check", "question", "child", "wait", "activity"];
6387
6396
  var RunGraphNode = Struct({
@@ -248,15 +248,6 @@ var makeEquivalence = (equivalence) => {
248
248
  return (self, that) => is(self, that) && is(that, self);
249
249
  };
250
250
 
251
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
252
- var BigInt2 = globalThis.BigInt;
253
- var toNumber = (b) => {
254
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
255
- return none();
256
- }
257
- return some(Number(b));
258
- };
259
-
260
251
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
261
252
  var bigint0 = /* @__PURE__ */ BigInt(0);
262
253
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -3561,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3561
3552
  ...argv
3562
3553
  ];
3563
3554
 
3564
- export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3555
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -97,7 +97,7 @@ import {
97
97
  withDefault,
98
98
  option,
99
99
  String2
100
- } from "./chunk-397fax43.js";
100
+ } from "./chunk-xb70ys3n.js";
101
101
  import {
102
102
  currentTimeMillis,
103
103
  SecureRandom,
@@ -197,7 +197,7 @@ import {
197
197
  harnessNames,
198
198
  herdrRunnerCapabilities2,
199
199
  declaredChecks
200
- } from "./chunk-d53rckf0.js";
200
+ } from "./chunk-w5smxtzc.js";
201
201
  import {
202
202
  Id
203
203
  } from "./chunk-kgdppbdr.js";
@@ -214,7 +214,7 @@ import {
214
214
  import {
215
215
  ChildProcessSpawner,
216
216
  make3
217
- } from "./chunk-cakmwaed.js";
217
+ } from "./chunk-98sg1yyd.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -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-hgx1dq68.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-193zkyhj.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-hgx1dq68.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-193zkyhj.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
733
733
  });
734
734
  var syncKits = (input) => gen(function* () {
735
735
  const fs = yield* FileSystem;
736
- const { syncKitSetup } = yield* promise(() => import("./chunk-ze0f51ds.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-4s08g8x1.js"));
737
737
  const harnesses = yield* syncTargets(input.harness);
738
738
  const chain = yield* input.client.getKitChain(input.workspaceId);
739
739
  for (const { name, problem } of chain.skipped)
@@ -1651,7 +1651,7 @@ var package_default = {
1651
1651
  };
1652
1652
 
1653
1653
  // apps/cli/src/scaffold.ts
1654
- var cliVersion = "0.10.84";
1654
+ var cliVersion = "0.10.85";
1655
1655
  var packageJson = (name, scaffold) => `${JSON.stringify({
1656
1656
  name,
1657
1657
  private: true,
@@ -1901,7 +1901,7 @@ var Usage = [
1901
1901
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1902
1902
  ].join(`
1903
1903
  `);
1904
- var agentRuntime = promise(() => import("./chunk-ynn6jk0w.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-mxkx0vj5.js"));
1905
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1906
1906
  defaultValue: () => gen(function* () {
1907
1907
  const tui = yield* tryPromise({
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2777
2777
  });
2778
2778
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2779
2779
  defaultValue: () => (options) => gen(function* () {
2780
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-9gztfcvf.js"));
2780
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-rxcy9h90.js"));
2781
2781
  return yield* makeRunnerRpcClient({
2782
2782
  runnerId: options.runnerId,
2783
2783
  bearer: options.bearer,
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
3161
3161
  if (command.action === "run") {
3162
3162
  if (command.args.length > 0)
3163
3163
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3164
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-kp01bv8f.js"));
3164
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-gaxp5nmx.js"));
3165
3165
  return yield* runMcpServerCommand({ flags: command.flags });
3166
3166
  }
3167
3167
  if (command.action !== "setup")
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
4372
4372
  }
4373
4373
  });
4374
4374
  }
4375
- var KitWriter = map8(promise(() => import("./chunk-krh0gek1.js")), (build) => build.writeKit);
4375
+ var KitWriter = map8(promise(() => import("./chunk-dcxtztbx.js")), (build) => build.writeKit);
4376
4376
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4377
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-krh0gek1.js")), (build) => build.buildKit(directory))
4377
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-dcxtztbx.js")), (build) => build.buildKit(directory))
4378
4378
  });
4379
4379
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4380
4380
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
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-ebd5zjnx.js");
8
+ const { runSrtCli } = await import("./chunk-fq47a5yd.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
11
  const { runSrtStep } = await import("./chunk-ky974pcr.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-kxtmk59a.js");
14
+ const { runOpencodeReader } = await import("./chunk-9zd52pda.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-93b1hdfa.js");
17
+ const { runCli } = await import("./chunk-ycmnmmep.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.10.84",
3
+ "version": "0.10.85",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {