@kitman-sh/cli 0.14.7 → 0.14.9

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 (27) hide show
  1. package/dist/{chunk-bty0mbn4.js → chunk-0x5r7h2g.js} +19 -19
  2. package/dist/{chunk-79g5zh2p.js → chunk-2r4jy82z.js} +2 -2
  3. package/dist/{chunk-d2bqqd9t.js → chunk-3hdjd2c3.js} +48 -22
  4. package/dist/{chunk-64zvzv63.js → chunk-6qygqj10.js} +6 -6
  5. package/dist/{chunk-w8pevmva.js → chunk-93xj74qp.js} +3 -3
  6. package/dist/{chunk-rjz0pnf9.js → chunk-axr8avvs.js} +4 -4
  7. package/dist/{chunk-cn86thbx.js → chunk-b2yy07ag.js} +4 -4
  8. package/dist/{chunk-bdd62njv.js → chunk-bmwf2ea5.js} +177 -34
  9. package/dist/{chunk-8k6adfg7.js → chunk-c80dvhxf.js} +1 -1
  10. package/dist/{chunk-s7rhz991.js → chunk-cpss81fx.js} +6 -6
  11. package/dist/{chunk-y6njjend.js → chunk-cwdrhsvk.js} +2 -2
  12. package/dist/{chunk-htxs2z8d.js → chunk-czmbgsqr.js} +25 -4
  13. package/dist/{chunk-aj2608jz.js → chunk-dd7wknyk.js} +132 -281
  14. package/dist/{chunk-hz4t408c.js → chunk-e3c15bgw.js} +4 -4
  15. package/dist/{chunk-gnhfwa99.js → chunk-enmtmq63.js} +1 -1
  16. package/dist/{chunk-9yenzg12.js → chunk-ftre6ndb.js} +18 -18
  17. package/dist/{chunk-qkh0dhad.js → chunk-h7qv6nzc.js} +3 -3
  18. package/dist/{chunk-xxx61cda.js → chunk-jsb61dsk.js} +29 -29
  19. package/dist/{chunk-b009hdm0.js → chunk-mgjer6c7.js} +5 -5
  20. package/dist/{chunk-bpx2zjh7.js → chunk-qb9jft1r.js} +2 -2
  21. package/dist/{chunk-ag19ejy7.js → chunk-qvyqfm54.js} +9 -9
  22. package/dist/{chunk-jv4p85q5.js → chunk-vjt0d9zj.js} +7 -7
  23. package/dist/{chunk-bbf0jzsc.js → chunk-vt8aqeby.js} +1 -1
  24. package/dist/{chunk-zpp4jg4a.js → chunk-wttgq85b.js} +60 -60
  25. package/dist/{chunk-c9j28q63.js → chunk-y9x0yv20.js} +23 -23
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-b009hdm0.js";
11
- import"./chunk-79g5zh2p.js";
12
- import"./chunk-bdd62njv.js";
13
- import"./chunk-zpp4jg4a.js";
10
+ } from "./chunk-mgjer6c7.js";
11
+ import"./chunk-2r4jy82z.js";
12
+ import"./chunk-bmwf2ea5.js";
13
+ import"./chunk-wttgq85b.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-htxs2z8d.js";
7
+ } from "./chunk-czmbgsqr.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,8 +96,21 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-zpp4jg4a.js";
99
+ } from "./chunk-wttgq85b.js";
100
100
  import {
101
+ interrupt,
102
+ getCurrent,
103
+ makeUnsafe2,
104
+ bounded,
105
+ offerAll,
106
+ failCause,
107
+ end,
108
+ shutdownUnsafe,
109
+ fromQueue,
110
+ unwrap
111
+ } from "./chunk-bmwf2ea5.js";
112
+ import {
113
+ Clock,
101
114
  empty,
102
115
  fromInput,
103
116
  merge,
@@ -110,20 +123,7 @@ import {
110
123
  ParseOptions,
111
124
  RpcClientDefect,
112
125
  RpcClientError
113
- } from "./chunk-aj2608jz.js";
114
- import {
115
- Clock,
116
- interrupt,
117
- getCurrent,
118
- makeUnsafe2,
119
- bounded,
120
- offerAll,
121
- failCause,
122
- end,
123
- shutdownUnsafe,
124
- fromQueue,
125
- unwrap
126
- } from "./chunk-bdd62njv.js";
126
+ } from "./chunk-dd7wknyk.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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get3(services, Scope);
240
+ const scope = get4(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
646
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zpp4jg4a.js";
27
+ } from "./chunk-wttgq85b.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-bdd62njv.js";
31
+ } from "./chunk-bmwf2ea5.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-aj2608jz.js";
42
+ } from "./chunk-dd7wknyk.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -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,
@@ -104,8 +104,21 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zpp4jg4a.js";
107
+ } from "./chunk-wttgq85b.js";
108
108
  import {
109
+ tap,
110
+ mapError,
111
+ decodeText,
112
+ run,
113
+ mkString,
114
+ FileSystem,
115
+ Path,
116
+ withDefault,
117
+ option,
118
+ String2
119
+ } from "./chunk-bmwf2ea5.js";
120
+ import {
121
+ currentTimeMillis,
109
122
  SecureRandom,
110
123
  layerWebCrypto,
111
124
  runMain,
@@ -219,27 +232,14 @@ import {
219
232
  harnessNames,
220
233
  herdrRunnerCapabilities2,
221
234
  declaredChecks
222
- } from "./chunk-aj2608jz.js";
235
+ } from "./chunk-dd7wknyk.js";
223
236
  import {
224
237
  Id
225
- } from "./chunk-8k6adfg7.js";
226
- import {
227
- currentTimeMillis,
228
- tap,
229
- mapError,
230
- decodeText,
231
- run,
232
- mkString,
233
- FileSystem,
234
- Path,
235
- withDefault,
236
- option,
237
- String2
238
- } from "./chunk-bdd62njv.js";
238
+ } from "./chunk-c80dvhxf.js";
239
239
  import {
240
240
  ChildProcessSpawner,
241
241
  make3
242
- } from "./chunk-79g5zh2p.js";
242
+ } from "./chunk-2r4jy82z.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
1020
1020
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1021
1021
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1022
1022
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1023
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-axr8avvs.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1024
1024
  });
1025
1025
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1026
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-axr8avvs.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1467,7 +1467,7 @@ var syncTargets = (harness) => gen(function* () {
1467
1467
  });
1468
1468
  var syncKits = (input) => gen(function* () {
1469
1469
  const fs = yield* FileSystem;
1470
- const { syncKitSetup } = yield* promise(() => import("./chunk-jv4p85q5.js"));
1470
+ const { syncKitSetup } = yield* promise(() => import("./chunk-vjt0d9zj.js"));
1471
1471
  const harnesses = yield* syncTargets(input.harness);
1472
1472
  const chain = yield* input.client.getKitChain(input.workspaceId);
1473
1473
  for (const { name, problem } of chain.skipped)
@@ -2386,7 +2386,7 @@ var package_default = {
2386
2386
  };
2387
2387
 
2388
2388
  // apps/cli/src/scaffold.ts
2389
- var cliVersion = "0.14.7";
2389
+ var cliVersion = "0.14.9";
2390
2390
  var packageJson = (name, scaffold) => `${JSON.stringify({
2391
2391
  name,
2392
2392
  private: true,
@@ -2538,7 +2538,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2538
2538
 
2539
2539
  // apps/cli/src/commands.ts
2540
2540
  var ClientId = "kitman-cli";
2541
- var agentRuntime = promise(() => import("./chunk-bty0mbn4.js"));
2541
+ var agentRuntime = promise(() => import("./chunk-0x5r7h2g.js"));
2542
2542
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2543
2543
  defaultValue: () => gen(function* () {
2544
2544
  const tui = yield* tryPromise({
@@ -3574,7 +3574,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3574
3574
  });
3575
3575
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3576
3576
  defaultValue: () => (options) => gen(function* () {
3577
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-64zvzv63.js"));
3577
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-6qygqj10.js"));
3578
3578
  return yield* makeRunnerRpcClient({
3579
3579
  runnerId: options.runnerId,
3580
3580
  bearer: options.bearer,
@@ -3886,7 +3886,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3886
3886
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(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);
3887
3887
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
3888
3888
  const platform = yield* context();
3889
- const updated = yield* make15();
3889
+ const updated = yield* make16();
3890
3890
  const scope = yield* scope2;
3891
3891
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3892
3892
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4141,7 +4141,7 @@ function mcpCommand(args) {
4141
4141
  if (command.action === "run") {
4142
4142
  if (command.args.length > 0)
4143
4143
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4144
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-c9j28q63.js"));
4144
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-y9x0yv20.js"));
4145
4145
  return yield* runMcpServerCommand({ flags: command.flags });
4146
4146
  }
4147
4147
  if (command.action !== "setup")
@@ -4629,7 +4629,7 @@ function programLoopCommand(command) {
4629
4629
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4630
4630
  });
4631
4631
  }
4632
- var docsModule = promise(() => import("./chunk-gnhfwa99.js"));
4632
+ var docsModule = promise(() => import("./chunk-enmtmq63.js"));
4633
4633
  function docsCommand(args) {
4634
4634
  return gen(function* () {
4635
4635
  const command = parseCommand(args);
@@ -5471,9 +5471,9 @@ function changeRequestCommand(args) {
5471
5471
  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}`);
5472
5472
  });
5473
5473
  }
5474
- var KitWriter = map8(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.writeKit);
5474
+ var KitWriter = map8(promise(() => import("./chunk-qvyqfm54.js")), (build) => build.writeKit);
5475
5475
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5476
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.buildKit(directory))
5476
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-qvyqfm54.js")), (build) => build.buildKit(directory))
5477
5477
  });
5478
5478
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5479
5479
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-zpp4jg4a.js";
28
+ } from "./chunk-wttgq85b.js";
29
29
  import {
30
- make10,
30
+ make11,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-bdd62njv.js";
33
+ } from "./chunk-bmwf2ea5.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-79g5zh2p.js";
37
+ } from "./chunk-2r4jy82z.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
173
173
  const spawner = yield* ChildProcessSpawner;
174
174
  const [command, ...args] = opencodeReaderCommand();
175
175
  const handle = yield* spawner.spawn(make3(command, args, {
176
- stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
176
+ stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
177
177
  stderr: "ignore",
178
178
  extendEnv: false,
179
179
  env: {},
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-bdd62njv.js";
19
- import"./chunk-zpp4jg4a.js";
18
+ } from "./chunk-bmwf2ea5.js";
19
+ import"./chunk-wttgq85b.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -32,8 +32,8 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-zpp4jg4a.js";
36
- import"./chunk-8k6adfg7.js";
35
+ } from "./chunk-wttgq85b.js";
36
+ import"./chunk-c80dvhxf.js";
37
37
  import {
38
38
  SecureRandom,
39
39
  layerWebCrypto,
@@ -45,7 +45,7 @@ import {
45
45
  layer4,
46
46
  kitmanMcpServer,
47
47
  RunnerRpcProtocolVersion
48
- } from "./chunk-aj2608jz.js";
48
+ } from "./chunk-dd7wknyk.js";
49
49
  import {
50
50
  decodeText,
51
51
  mkString,
@@ -53,23 +53,23 @@ import {
53
53
  Path,
54
54
  withDefault,
55
55
  String2
56
- } from "./chunk-bdd62njv.js";
56
+ } from "./chunk-bmwf2ea5.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-qkh0dhad.js";
61
- import"./chunk-s7rhz991.js";
60
+ } from "./chunk-h7qv6nzc.js";
61
+ import"./chunk-cpss81fx.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-d2bqqd9t.js";
67
+ } from "./chunk-3hdjd2c3.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
70
  make3
71
- } from "./chunk-79g5zh2p.js";
72
- import"./chunk-9yenzg12.js";
71
+ } from "./chunk-2r4jy82z.js";
72
+ import"./chunk-ftre6ndb.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -13,18 +13,18 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-zpp4jg4a.js";
17
- import"./chunk-8k6adfg7.js";
16
+ } from "./chunk-wttgq85b.js";
17
+ import"./chunk-c80dvhxf.js";
18
18
  import {
19
19
  FileSystem,
20
20
  Path
21
- } from "./chunk-bdd62njv.js";
21
+ } from "./chunk-bmwf2ea5.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-cn86thbx.js";
27
+ } from "./chunk-b2yy07ag.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
@@ -32,9 +32,9 @@ import {
32
32
  antigravityPlugins,
33
33
  materializeKitSetup,
34
34
  tomlInline
35
- } from "./chunk-aj2608jz.js";
36
- import"./chunk-qkh0dhad.js";
37
- import"./chunk-79g5zh2p.js";
35
+ } from "./chunk-dd7wknyk.js";
36
+ import"./chunk-h7qv6nzc.js";
37
+ import"./chunk-2r4jy82z.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zpp4jg4a.js";
6
+ } from "./chunk-wttgq85b.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;