@kitman-sh/cli 0.12.1 → 0.12.3

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.
@@ -24,15 +24,15 @@ import {
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-rgby07sa.js";
27
+ } from "./chunk-gveecr3x.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-c7253rcg.js";
35
- import"./chunk-1wbdexzg.js";
34
+ } from "./chunk-7xhv4h5g.js";
35
+ import"./chunk-sk1hv006.js";
36
36
  import"./chunk-mtkstrh3.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-c7253rcg.js";
22
+ } from "./chunk-7xhv4h5g.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-fs72937p.js";
28
+ } from "./chunk-t274t00k.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -6253,6 +6253,8 @@ var Run = Struct({
6253
6253
  failureSummary: optionalKey(String4),
6254
6254
  closure: optionalKey(RunClosure),
6255
6255
  alignment: optionalKey(RunAlignment),
6256
+ pausedAt: optionalKey(Timestamp),
6257
+ pausedBy: optionalKey(RunActorRef),
6256
6258
  startedAt: optionalKey(Timestamp),
6257
6259
  completedAt: optionalKey(Timestamp),
6258
6260
  createdAt: Timestamp,
@@ -6516,6 +6518,7 @@ var RunSteer = Struct({
6516
6518
  text: LoopSafeText,
6517
6519
  delivery: Literals(RunSteerDeliveries),
6518
6520
  step: optionalKey(String4),
6521
+ sender: optionalKey(RunActorRef),
6519
6522
  createdAt: Timestamp
6520
6523
  });
6521
6524
  var RunSteerInput = Struct({
@@ -6536,6 +6539,7 @@ var RunSteerSent = Struct({
6536
6539
  var RunDisplayStates = [
6537
6540
  "queued",
6538
6541
  "running",
6542
+ "paused",
6539
6543
  "needs_you",
6540
6544
  "blocked",
6541
6545
  "failed",
@@ -6615,7 +6619,7 @@ var RunShow = Struct({
6615
6619
  })),
6616
6620
  artifacts: ArraySchema(RunArtifact),
6617
6621
  findings: ArraySchema(RunArtifact),
6618
- events: ArraySchema(Struct({ id: Id, type: String4, occurredAt: Timestamp })),
6622
+ events: ArraySchema(Struct({ id: Id, type: String4, actor: optionalKey(RunActorRef), occurredAt: Timestamp })),
6619
6623
  evidence: ArraySchema(RunEvidence),
6620
6624
  steers: ArraySchema(RunSteer),
6621
6625
  waiting: ArraySchema(RunWaiting),
@@ -6722,7 +6726,7 @@ var RunAnswer = Struct({
6722
6726
  question: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
6723
6727
  idempotencyKey: String4.check(isMinLength(1), isMaxLength(240))
6724
6728
  });
6725
- var RunActionKinds = ["offer", "stop", "resume"];
6729
+ var RunActionKinds = ["offer", "stop", "pause", "resume"];
6726
6730
  var RunActionSummary = Struct({
6727
6731
  id: String4.check(isMinLength(1)),
6728
6732
  title: String4,
@@ -11334,6 +11338,7 @@ var metricLabels = new Map;
11334
11338
  var runDisplayLabels = {
11335
11339
  queued: "Queued",
11336
11340
  running: "Running",
11341
+ paused: "Paused",
11337
11342
  needs_you: "Needs you",
11338
11343
  blocked: "Blocked",
11339
11344
  failed: "Failed",
@@ -12448,6 +12453,9 @@ class KitmanEffectClient {
12448
12453
  headers: this.headers()
12449
12454
  });
12450
12455
  }
12456
+ pauseRun(runId) {
12457
+ return this.request("pauseRun", `/runs/${segment(runId)}/pause`, { method: "POST", headers: this.headers() });
12458
+ }
12451
12459
  resumeRun(runId, input = {}) {
12452
12460
  return this.request("resumeRun", `/runs/${segment(runId)}/resume`, {
12453
12461
  method: "POST",
@@ -228,7 +228,7 @@ import {
228
228
  harnessNames,
229
229
  herdrRunnerCapabilities2,
230
230
  declaredChecks
231
- } from "./chunk-c7253rcg.js";
231
+ } from "./chunk-7xhv4h5g.js";
232
232
  import {
233
233
  Id
234
234
  } from "./chunk-q5w3v4k1.js";
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
989
989
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
990
990
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
991
991
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
992
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y39h1gzp.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
992
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hgwz7dph.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
993
993
  });
994
994
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
995
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y39h1gzp.js")), (module) => module.updateHerdrCore(options))
995
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hgwz7dph.js")), (module) => module.updateHerdrCore(options))
996
996
  });
997
997
  var herdrCoreMissing = (error) => {
998
998
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
1412
1412
  });
1413
1413
  var syncKits = (input) => gen(function* () {
1414
1414
  const fs = yield* FileSystem;
1415
- const { syncKitSetup } = yield* promise(() => import("./chunk-c76ngzr6.js"));
1415
+ const { syncKitSetup } = yield* promise(() => import("./chunk-4e01r6b8.js"));
1416
1416
  const harnesses = yield* syncTargets(input.harness);
1417
1417
  const chain = yield* input.client.getKitChain(input.workspaceId);
1418
1418
  for (const { name, problem } of chain.skipped)
@@ -2331,7 +2331,7 @@ var package_default = {
2331
2331
  };
2332
2332
 
2333
2333
  // apps/cli/src/scaffold.ts
2334
- var cliVersion = "0.12.1";
2334
+ var cliVersion = "0.12.3";
2335
2335
  var packageJson = (name, scaffold) => `${JSON.stringify({
2336
2336
  name,
2337
2337
  private: true,
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2483
2483
 
2484
2484
  // apps/cli/src/commands.ts
2485
2485
  var ClientId = "kitman-cli";
2486
- var agentRuntime = promise(() => import("./chunk-hvwkpnv5.js"));
2486
+ var agentRuntime = promise(() => import("./chunk-hgmrjscs.js"));
2487
2487
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2488
2488
  defaultValue: () => gen(function* () {
2489
2489
  const tui = yield* tryPromise({
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3507
3507
  });
3508
3508
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3509
3509
  defaultValue: () => (options) => gen(function* () {
3510
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-kvt8cr8m.js"));
3510
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-rnp744p4.js"));
3511
3511
  return yield* makeRunnerRpcClient({
3512
3512
  runnerId: options.runnerId,
3513
3513
  bearer: options.bearer,
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
4039
4039
  if (command.action === "run") {
4040
4040
  if (command.args.length > 0)
4041
4041
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4042
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-0367j54r.js"));
4042
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-mme8k4ed.js"));
4043
4043
  return yield* runMcpServerCommand({ flags: command.flags });
4044
4044
  }
4045
4045
  if (command.action !== "setup")
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
4527
4527
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4528
4528
  });
4529
4529
  }
4530
- var docsModule = promise(() => import("./chunk-adbzjs9g.js"));
4530
+ var docsModule = promise(() => import("./chunk-v0pdng3f.js"));
4531
4531
  function docsCommand(args) {
4532
4532
  return gen(function* () {
4533
4533
  const command = parseCommand(args);
@@ -4751,6 +4751,7 @@ var graphNodeText = (node) => `${node.name} ${node.kind} ${runDisplayLabels[node
4751
4751
  var displayGlyphs = {
4752
4752
  queued: "\u25CB",
4753
4753
  running: "\u25D0",
4754
+ paused: "\u2016",
4754
4755
  needs_you: "?",
4755
4756
  blocked: "\u25B2",
4756
4757
  failed: "\u2717",
@@ -5360,9 +5361,9 @@ function changeRequestCommand(args) {
5360
5361
  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}`);
5361
5362
  });
5362
5363
  }
5363
- var KitWriter = map8(promise(() => import("./chunk-711r4pfw.js")), (build) => build.writeKit);
5364
+ var KitWriter = map8(promise(() => import("./chunk-wjras2ww.js")), (build) => build.writeKit);
5364
5365
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5365
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-711r4pfw.js")), (build) => build.buildKit(directory))
5366
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wjras2ww.js")), (build) => build.buildKit(directory))
5366
5367
  });
5367
5368
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5368
5369
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-c7253rcg.js";
39
+ } from "./chunk-7xhv4h5g.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-1wbdexzg.js";
42
+ } from "./chunk-sk1hv006.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -247,7 +247,7 @@ import {
247
247
  installCommand,
248
248
  checkServicesFile,
249
249
  checkServices
250
- } from "./chunk-c7253rcg.js";
250
+ } from "./chunk-7xhv4h5g.js";
251
251
  import {
252
252
  join,
253
253
  interrupt,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-rgby07sa.js";
308
- import"./chunk-1wbdexzg.js";
307
+ } from "./chunk-gveecr3x.js";
308
+ import"./chunk-sk1hv006.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -330,8 +330,8 @@ import {
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-4d4n8qjs.js";
334
- import"./chunk-13yrey2v.js";
333
+ } from "./chunk-pgwsdqmv.js";
334
+ import"./chunk-7shcaqyz.js";
335
335
  import {
336
336
  nextInt
337
337
  } from "./chunk-gq7y5v3e.js";
@@ -339,7 +339,7 @@ import {
339
339
  ChildProcessSpawner,
340
340
  make3
341
341
  } from "./chunk-mtkstrh3.js";
342
- import"./chunk-fs72937p.js";
342
+ import"./chunk-t274t00k.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-c7253rcg.js";
15
+ } from "./chunk-7xhv4h5g.js";
16
16
  import"./chunk-0h49y8gf.js";
17
17
  import"./chunk-zw3gf6r5.js";
18
18
  export {