@kitman-sh/cli 0.13.13 → 0.13.15

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.
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-pvza175a.js";
126
+ } from "./chunk-b07c43pg.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")) {
@@ -624,7 +624,7 @@ Turning a start off stops new Runs from it. Runs it already started go on. \`kit
624
624
  path: "loop-operations#agents-and-effort",
625
625
  level: 2,
626
626
  link: "https://kitman.sh/knowledge/docs/loop-operations#agents-and-effort",
627
- text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; and the `planner` runs on Claude Fable 5.2 at `high` effort. The others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
627
+ text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `planned-implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; the `planner` runs on Claude Fable 5.2 at `high` effort; and the `implementer` runs on Claude alone, waiting out a known quota reset rather than falling back to Pi. The `planned-implementer` extends `implementer` at `low` effort: Build runs it for the first implementation of a Task that plan review passed, and `implementer` at `medium` for everything else. The implementers and the others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
628
628
  },
629
629
  {
630
630
  title: "Projects and Saved Views",
@@ -881,7 +881,7 @@ await kitman.runs.start({
881
881
 
882
882
  From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project, and \`repoBindingId\` when they change another repository than the Team's default: the review reads it, and each Task is filed for it. A ticket that changes another repository than that names its own \`repoBindingId\`. Each ticket needs a \`promise\` and an \`outOfScope\` list, which may be empty.
883
883
 
884
- When the plan review has concerns, File Tasks files none of the tickets. The Run completes with an Output whose \`concerns\` each name a \`ticket\` and what is wrong with it. Revise the tickets and start File Tasks again with all of them. With no concerns, \`concerns\` is empty and \`tasks\` gives each ticket's Task.
884
+ When the plan review has concerns, File Tasks files none of the tickets. The Run completes with an Output whose \`concerns\` each name a \`ticket\` and what is wrong with it. Revise the tickets and start File Tasks again with all of them. With no concerns, \`concerns\` is empty and \`tasks\` gives each ticket's Task, which records that plan review passed it.
885
885
 
886
886
  In a Plan Run, write the tickets in the plan: Plan files them.`
887
887
  },
@@ -1555,7 +1555,7 @@ var pathOfLink = (link) => {
1555
1555
  return page === null ? link : page[1] || "index";
1556
1556
  };
1557
1557
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1558
- var pinnedLink2 = (link, version = "0.13.13") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1558
+ var pinnedLink2 = (link, version = "0.13.15") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1559
1559
  var pageOf = (path) => path.split("#")[0];
1560
1560
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1561
1561
  function excerpt(text, queryTerms) {
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-s364dren.js";
8
- import"./chunk-7jege23c.js";
9
- import"./chunk-pvza175a.js";
7
+ } from "./chunk-my63gy4t.js";
8
+ import"./chunk-3syr8kyv.js";
9
+ import"./chunk-b07c43pg.js";
10
10
  import"./chunk-q5w3v4k1.js";
11
11
  import"./chunk-nf9gdnsf.js";
12
12
  import"./chunk-zw3gf6r5.js";
@@ -230,7 +230,7 @@ import {
230
230
  harnessNames,
231
231
  herdrRunnerCapabilities2,
232
232
  declaredChecks
233
- } from "./chunk-pvza175a.js";
233
+ } from "./chunk-b07c43pg.js";
234
234
  import {
235
235
  Id
236
236
  } from "./chunk-q5w3v4k1.js";
@@ -1018,10 +1018,10 @@ var sandboxMissing = (sandbox, missing) => ({
1018
1018
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1019
1019
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1020
1020
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1021
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j2aw5bss.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1021
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rqrtf7sb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1022
1022
  });
1023
1023
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1024
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j2aw5bss.js")), (module) => module.updateHerdrCore(options))
1024
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rqrtf7sb.js")), (module) => module.updateHerdrCore(options))
1025
1025
  });
1026
1026
  var herdrCoreMissing = (error) => {
1027
1027
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1447,7 +1447,7 @@ var syncTargets = (harness) => gen(function* () {
1447
1447
  });
1448
1448
  var syncKits = (input) => gen(function* () {
1449
1449
  const fs = yield* FileSystem;
1450
- const { syncKitSetup } = yield* promise(() => import("./chunk-vbygjtdw.js"));
1450
+ const { syncKitSetup } = yield* promise(() => import("./chunk-z4x9m2bv.js"));
1451
1451
  const harnesses = yield* syncTargets(input.harness);
1452
1452
  const chain = yield* input.client.getKitChain(input.workspaceId);
1453
1453
  for (const { name, problem } of chain.skipped)
@@ -2366,7 +2366,7 @@ var package_default = {
2366
2366
  };
2367
2367
 
2368
2368
  // apps/cli/src/scaffold.ts
2369
- var cliVersion = "0.13.13";
2369
+ var cliVersion = "0.13.15";
2370
2370
  var packageJson = (name, scaffold) => `${JSON.stringify({
2371
2371
  name,
2372
2372
  private: true,
@@ -2518,7 +2518,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2518
2518
 
2519
2519
  // apps/cli/src/commands.ts
2520
2520
  var ClientId = "kitman-cli";
2521
- var agentRuntime = promise(() => import("./chunk-3z0wep73.js"));
2521
+ var agentRuntime = promise(() => import("./chunk-ydz5ctsj.js"));
2522
2522
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2523
2523
  defaultValue: () => gen(function* () {
2524
2524
  const tui = yield* tryPromise({
@@ -3554,7 +3554,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3554
3554
  });
3555
3555
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3556
3556
  defaultValue: () => (options) => gen(function* () {
3557
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-cxc8d0r3.js"));
3557
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-6qdhhk6r.js"));
3558
3558
  return yield* makeRunnerRpcClient({
3559
3559
  runnerId: options.runnerId,
3560
3560
  bearer: options.bearer,
@@ -4118,7 +4118,7 @@ function mcpCommand(args) {
4118
4118
  if (command.action === "run") {
4119
4119
  if (command.args.length > 0)
4120
4120
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4121
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-b5abe9c7.js"));
4121
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-jattyebv.js"));
4122
4122
  return yield* runMcpServerCommand({ flags: command.flags });
4123
4123
  }
4124
4124
  if (command.action !== "setup")
@@ -4606,7 +4606,7 @@ function programLoopCommand(command) {
4606
4606
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4607
4607
  });
4608
4608
  }
4609
- var docsModule = promise(() => import("./chunk-9rez0yze.js"));
4609
+ var docsModule = promise(() => import("./chunk-h0jf48ew.js"));
4610
4610
  function docsCommand(args) {
4611
4611
  return gen(function* () {
4612
4612
  const command = parseCommand(args);
@@ -5441,9 +5441,9 @@ function changeRequestCommand(args) {
5441
5441
  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}`);
5442
5442
  });
5443
5443
  }
5444
- var KitWriter = map8(promise(() => import("./chunk-7hf2d50x.js")), (build) => build.writeKit);
5444
+ var KitWriter = map8(promise(() => import("./chunk-zem7mg1b.js")), (build) => build.writeKit);
5445
5445
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5446
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-7hf2d50x.js")), (build) => build.buildKit(directory))
5446
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zem7mg1b.js")), (build) => build.buildKit(directory))
5447
5447
  });
5448
5448
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5449
5449
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -105,7 +105,7 @@ import {
105
105
  KitDigest,
106
106
  KitSetup,
107
107
  RunnerRpcError
108
- } from "./chunk-pvza175a.js";
108
+ } from "./chunk-b07c43pg.js";
109
109
  import {
110
110
  runForEach,
111
111
  FileSystem
@@ -670,7 +670,8 @@ var CreateTasksRequest = Struct({
670
670
  tickets: ArraySchema(PlanTicket),
671
671
  projectId: optionalKey(String4),
672
672
  builds: optionalKey(Boolean2),
673
- releases: optionalKey(Boolean2)
673
+ releases: optionalKey(Boolean2),
674
+ planReviewed: optionalKey(Boolean2)
674
675
  });
675
676
  var CreateTasksResult = Struct({
676
677
  tasks: ArraySchema(Struct({ key: String4, taskId: String4 }))
@@ -8657,7 +8657,12 @@ var TaskStateCategories = [
8657
8657
  var TaskPriorities = ["none", "urgent", "high", "medium", "low"];
8658
8658
  var TaskOrigin = Union([
8659
8659
  Struct({ kind: Literal("manual") }),
8660
- Struct({ kind: Literal("plan_ticket"), runId: String4, ticketKey: String4 }),
8660
+ Struct({
8661
+ kind: Literal("plan_ticket"),
8662
+ runId: String4,
8663
+ ticketKey: String4,
8664
+ planReviewed: optionalKey(Boolean2)
8665
+ }),
8661
8666
  Struct({ kind: Literal("launch"), runId: String4 }),
8662
8667
  Struct({ kind: Literal("event"), eventId: String4 }),
8663
8668
  Struct({ kind: Literal("alert"), fingerprint: String4 }),
@@ -14870,6 +14875,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14870
14875
  projectId: optionalKey(String4),
14871
14876
  builds: optionalKey(Boolean2),
14872
14877
  releases: optionalKey(Boolean2),
14878
+ planReviewed: optionalKey(Boolean2),
14873
14879
  tickets: ArraySchema(Struct({
14874
14880
  key: String4,
14875
14881
  title: String4,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-jwr0rr2p.js";
7
+ } from "./chunk-5qeqhjxy.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-pvza175a.js";
42
+ } from "./chunk-b07c43pg.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({