@kitman-sh/cli 0.23.0 → 0.24.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-sav8v9gm.js";
7
+ } from "./chunk-s1xwbden.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-04d4x86f.js";
22
+ } from "./chunk-j35nm5gm.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-fqrwy31z.js";
28
+ } from "./chunk-nhseg19m.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -251,15 +251,15 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-04d4x86f.js";
255
- import {
256
- ChildProcessSpawner,
257
- make3
258
- } from "./chunk-bsgvmq34.js";
254
+ } from "./chunk-j35nm5gm.js";
259
255
  import {
260
256
  Id,
261
257
  Timestamp
262
258
  } from "./chunk-4qjfn1sa.js";
259
+ import {
260
+ ChildProcessSpawner,
261
+ make3
262
+ } from "./chunk-bsgvmq34.js";
263
263
 
264
264
  // apps/cli/src/cli-error.ts
265
265
  function cliErrorCode(error, status) {
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t29q8gpv.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t37r3rg3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t29q8gpv.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-t37r3rg3.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-qy058s0g.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-zk8rctse.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
3268
3268
  };
3269
3269
 
3270
3270
  // apps/cli/src/scaffold-files.ts
3271
- var cliVersion = "0.23.0";
3271
+ var cliVersion = "0.24.0";
3272
3272
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3273
3273
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3274
3274
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3533
3533
 
3534
3534
  // apps/cli/src/commands.ts
3535
3535
  var ClientId = "kitman-cli";
3536
- var agentRuntime = promise(() => import("./chunk-ny4e59e1.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-b9er95qh.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-k36dmqfv.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-swc2ra32.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
5645
5645
  if (command.action === "run") {
5646
5646
  if (command.args.length > 0)
5647
5647
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5648
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-55dseafb.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-qmbz7jch.js"));
5649
5649
  return yield* runMcpServerCommand({ flags: command.flags });
5650
5650
  }
5651
5651
  if (command.action !== "setup")
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
6145
6145
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6146
6146
  });
6147
6147
  }
6148
- var docsModule = promise(() => import("./chunk-v2fpdbhy.js"));
6148
+ var docsModule = promise(() => import("./chunk-0v7bz5y1.js"));
6149
6149
  function docsCommand(args) {
6150
6150
  return gen(function* () {
6151
6151
  const command = parseCommand(args);
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
7149
7149
  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}`);
7150
7150
  });
7151
7151
  }
7152
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-aa8yfnh4.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7152
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-wh096b50.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7153
7153
  var loopOutline = (command) => gen(function* () {
7154
7154
  const path = yield* Path;
7155
7155
  const loop = requiredArg(command, "a Loop id");
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
7169
7169
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7170
7170
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7171
7171
  });
7172
- var KitWriter = map9(promise(() => import("./chunk-aa8yfnh4.js")), (build) => build.writeKit);
7172
+ var KitWriter = map9(promise(() => import("./chunk-wh096b50.js")), (build) => build.writeKit);
7173
7173
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-aa8yfnh4.js")), (build) => build.buildKit(directory))
7174
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wh096b50.js")), (build) => build.buildKit(directory))
7175
7175
  });
7176
7176
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7177
7177
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -176,7 +176,13 @@ import {
176
176
  StepManifest,
177
177
  KitSetup,
178
178
  RunnerRpcError
179
- } from "./chunk-04d4x86f.js";
179
+ } from "./chunk-j35nm5gm.js";
180
+ import {
181
+ guard,
182
+ Id,
183
+ Timestamp,
184
+ ActorType
185
+ } from "./chunk-4qjfn1sa.js";
180
186
  import {
181
187
  getCurrent,
182
188
  runForEach,
@@ -187,12 +193,6 @@ import {
187
193
  recommendationProblem,
188
194
  questionAdvice
189
195
  } from "./chunk-tsx0347c.js";
190
- import {
191
- guard,
192
- Id,
193
- Timestamp,
194
- ActorType
195
- } from "./chunk-4qjfn1sa.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-04d4x86f.js";
39
+ } from "./chunk-j35nm5gm.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-ngjf7xwq.js";
42
+ } from "./chunk-j28yqnk0.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -173,6 +173,11 @@ import {
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
175
  } from "./chunk-h2f26xbd.js";
176
+ import {
177
+ Id,
178
+ secretReference,
179
+ secretPlaceholder
180
+ } from "./chunk-4qjfn1sa.js";
176
181
  import {
177
182
  currentTimeMillis,
178
183
  SecureRandom,
@@ -261,7 +266,7 @@ import {
261
266
  checkServicesFile,
262
267
  checkServices,
263
268
  serviceChecks
264
- } from "./chunk-04d4x86f.js";
269
+ } from "./chunk-j35nm5gm.js";
265
270
  import {
266
271
  join,
267
272
  interrupt,
@@ -323,8 +328,8 @@ import {
323
328
  applyAgentEnvironmentMaterialization2,
324
329
  isPathWithin2,
325
330
  skillIdentity2
326
- } from "./chunk-1gmwktwn.js";
327
- import"./chunk-ngjf7xwq.js";
331
+ } from "./chunk-a3wsye48.js";
332
+ import"./chunk-j28yqnk0.js";
328
333
  import {
329
334
  egressAllowed,
330
335
  writeSecretRegistry,
@@ -349,8 +354,8 @@ import {
349
354
  rpcRunFiles,
350
355
  programHostsEnv,
351
356
  undeclaredHostsEnv
352
- } from "./chunk-akzy04yn.js";
353
- import"./chunk-rf580d8n.js";
357
+ } from "./chunk-9s82d4g0.js";
358
+ import"./chunk-112etn4t.js";
354
359
  import {
355
360
  nextInt
356
361
  } from "./chunk-5kqt4bqp.js";
@@ -359,12 +364,7 @@ import {
359
364
  ChildProcessSpawner,
360
365
  make3
361
366
  } from "./chunk-bsgvmq34.js";
362
- import"./chunk-fqrwy31z.js";
363
- import {
364
- Id,
365
- secretReference,
366
- secretPlaceholder
367
- } from "./chunk-4qjfn1sa.js";
367
+ import"./chunk-nhseg19m.js";
368
368
 
369
369
  // packages/core/src/sync-kit.ts
370
370
  import { createHash } from "crypto";
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-04d4x86f.js";
42
+ } from "./chunk-j35nm5gm.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -333,6 +333,19 @@ import {
333
333
  harnessesUnsupportedInSrt2,
334
334
  harnessesUnsupportedInDocker2
335
335
  } from "./chunk-j4b1yvcd.js";
336
+ import {
337
+ isDateTime,
338
+ Numeric,
339
+ isWholeNumber,
340
+ guard,
341
+ Id,
342
+ Timestamp,
343
+ ActorType,
344
+ SecretName,
345
+ SecretScope,
346
+ SecretHosts,
347
+ isSecretReference
348
+ } from "./chunk-4qjfn1sa.js";
336
349
  import {
337
350
  isRedacted,
338
351
  make,
@@ -347,19 +360,6 @@ import {
347
360
  parseFdName,
348
361
  fdName
349
362
  } from "./chunk-bsgvmq34.js";
350
- import {
351
- isDateTime,
352
- Numeric,
353
- isWholeNumber,
354
- guard,
355
- Id,
356
- Timestamp,
357
- ActorType,
358
- SecretName,
359
- SecretScope,
360
- SecretHosts,
361
- isSecretReference
362
- } from "./chunk-4qjfn1sa.js";
363
363
 
364
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
365
  var makeEquivalence3 = Tuple;
@@ -3220,7 +3220,7 @@ var waitingOnWords = ({ keys, hidden }) => {
3220
3220
  };
3221
3221
 
3222
3222
  // packages/core/src/run-queue.ts
3223
- var ClaimRanks = ["in_progress", "finishing", "new"];
3223
+ var ClaimRanks = ["shipping", "in_progress", "finishing", "new"];
3224
3224
  var utcTime = (timestamp) => {
3225
3225
  const iso = toIso(Math.ceil(toDate(timestamp).getTime() / 1000) * 1000);
3226
3226
  return `${iso.slice(0, iso.endsWith(":00.000Z") ? 16 : 19).replace("T", " ")} UTC`;
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-04d4x86f.js";
126
+ } from "./chunk-j35nm5gm.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")) {