@outerlayer/cli 0.41.1-next.20261118213315 → 0.41.2-next.20261119010339

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 (40) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{agent-setup-BJRTAU3H.js → agent-setup-RWS247BZ.js} +1 -1
  3. package/dist/build-info.json +1 -1
  4. package/dist/{check-YN3NMNHB.js → check-BXJBIMLW.js} +5 -5
  5. package/dist/{chunk-UE6OJBU6.js → chunk-3ZZSQG2A.js} +1 -1
  6. package/dist/{chunk-6XSVJ7O7.js → chunk-72NCZTEG.js} +2 -2
  7. package/dist/{chunk-QLHEU44A.js → chunk-7HH6C45Q.js} +1 -1
  8. package/dist/{chunk-MI3YC7JL.js → chunk-AAL7FZPH.js} +66 -9
  9. package/dist/chunk-CBSURJ2P.js +88 -0
  10. package/dist/{chunk-U74IJMMN.js → chunk-DQ3IKV5Q.js} +5 -5
  11. package/dist/chunk-IMGBXZUX.js +41 -0
  12. package/dist/{chunk-7CMRGY4Z.js → chunk-OLXB2YMX.js} +1 -1
  13. package/dist/{chunk-SVALMZJU.js → chunk-RCE5YQFT.js} +1 -1
  14. package/dist/{chunk-ND6R4UHO.js → chunk-U5MLUAY3.js} +1 -1
  15. package/dist/{chunk-B2TOGQHU.js → chunk-X6WL4AQY.js} +3 -2
  16. package/dist/{chunk-4JVYALPL.js → chunk-YPS6YOYK.js} +12 -8
  17. package/dist/{chunk-F2FZG6FG.js → chunk-Z27PY2OJ.js} +1 -1
  18. package/dist/{chunk-4GXROH35.js → chunk-ZN3RUNOZ.js} +5 -87
  19. package/dist/{cli-B7VPNSJB.js → cli-7QRILUMX.js} +51 -34
  20. package/dist/{command-23WALNEO.js → command-TOAYBFFZ.js} +2 -2
  21. package/dist/{container-start-ZWE4BSMK.js → container-start-6FSO54P4.js} +3 -3
  22. package/dist/{doctor-N4USOXZL.js → doctor-XDN7XS64.js} +3 -3
  23. package/dist/{fleet-readiness-6WFZ6DSU.js → fleet-readiness-452TASWD.js} +2 -1
  24. package/dist/{host-checks-QYSWXJHF.js → host-checks-XGFTDLLF.js} +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/{init-OFLW5CQN.js → init-JU5GZJWH.js} +1 -1
  27. package/dist/{init-5XO6SUSS.js → init-VOKKIEKX.js} +1 -1
  28. package/dist/{init-agent-K7GN7NAJ.js → init-agent-XMC3ZJWR.js} +1 -1
  29. package/dist/{init-cmd-OEPA6SZX.js → init-cmd-CKMBOAZ5.js} +4 -3
  30. package/dist/{init-update-ZBCOQJEX.js → init-update-TKH2L4VO.js} +3 -2
  31. package/dist/{loop-6CVDHR4M.js → loop-WPT6ILVY.js} +5 -5
  32. package/dist/{machine-7SELY76I.js → machine-BZBJNTTU.js} +1 -1
  33. package/dist/{runner-key-ZT6HBAUY.js → runner-key-LTA6PHOI.js} +1 -1
  34. package/dist/{setup-cmd-VFKTGD52.js → setup-cmd-ANDLH2E7.js} +97 -13
  35. package/dist/{setup-wiring-MF3FYG4U.js → setup-wiring-4YSYU7OV.js} +17 -10
  36. package/dist/{status-XSXYRYU6.js → status-4MTM45CS.js} +1 -1
  37. package/dist/{update-steps-U6LUOXPF.js → update-steps-GJ6WGON2.js} +2 -2
  38. package/dist/{work-proofs-cmd-UXBOOBIG.js → work-proofs-cmd-FIEPKCPW.js} +1 -1
  39. package/dist/{work-proofs-record-BQOPO3NI.js → work-proofs-record-BQ7EAT5R.js} +1 -1
  40. package/package.json +1 -1
@@ -1,18 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { machineSkillsState, staleAgentSkills } from './chunk-B5ENFQHF.js';
4
- import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
5
4
  import { isAgentsMdLayout } from './chunk-IEVG36GC.js';
6
- import { resolveGatewayCredentials, defaultFetch } from './chunk-E7HPIXAM.js';
7
- import { versionAtLeast } from './chunk-LIPSGE6C.js';
8
- import { findGitDirs } from './chunk-BJ3KTMDH.js';
9
5
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
6
  import { hasSymlinkComponent } from './chunk-DZOOVU5A.js';
11
7
  import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-V3ZIIURQ.js';
12
8
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
13
- import { execFileSync } from 'child_process';
14
9
  import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
15
10
  import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
11
+ import { execFileSync } from 'child_process';
16
12
 
17
13
  createRequire(import.meta.url);
18
14
  var PROSE_FILE = /\.mdc?$/;
@@ -22,7 +18,7 @@ var RELATIVE_NOTE = ", relative to this skill's folder";
22
18
  var escape = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
23
19
  function withMachinePaths(text, fileDir, skills) {
24
20
  let out = text;
25
- const named2 = [];
21
+ const named = [];
26
22
  for (const skill of skills) {
27
23
  const spellings = /* @__PURE__ */ new Set();
28
24
  for (const base of skillFolders()) {
@@ -34,10 +30,10 @@ function withMachinePaths(text, fileDir, skills) {
34
30
  const alternatives = [...spellings].map(escape);
35
31
  const pattern = new RegExp(`(?<![\\w~./-])(?:${alternatives.join("|")})/([\\w./-]*)(?:${escape(RELATIVE_NOTE)},?)?`, "g");
36
32
  const next = out.replace(pattern, (_match, rest) => `${MACHINE_SKILL_PATH}/${skill}/${rest}`);
37
- if (next !== out) named2.push(skill);
33
+ if (next !== out) named.push(skill);
38
34
  out = next;
39
35
  }
40
- return { text: out, skills: named2 };
36
+ return { text: out, skills: named };
41
37
  }
42
38
  function filesUnder(root, rel) {
43
39
  const found = [];
@@ -71,8 +67,6 @@ function maintainedReferenceRewrites(root, removing) {
71
67
  function applyReferenceRewrites(root, rewrites) {
72
68
  for (const rewrite of rewrites) writeFileSync(join(root, rewrite.path), rewrite.text);
73
69
  }
74
-
75
- // src/build-skill.ts
76
70
  var BUILD_PHASES = ["Intake", "Criteria", "Implement", "Pull request", "Evidence"];
77
71
  var SPEC_STEPS = ["Scope", "Draft", "Verdict", "Size", "Reader pass", "Checkpoint", "File", "Build"];
78
72
  var MACHINE_CORE = `${MACHINE_SKILL_PATH}/outerlayer-build/SKILL.md`;
@@ -316,80 +310,4 @@ function checkIgnoredSkillFolders(repoRoot, agents = defaultAgents()) {
316
310
  }));
317
311
  }
318
312
 
319
- // src/fleet-readiness.ts
320
- var FIRST_VERSION_WITH_MACHINE_SKILLS = "0.27.0";
321
- var HOSTS_TIMEOUT_MS = 1e4;
322
- function shortVersion(host) {
323
- return host.cliVersion === null ? "no version" : /\d+\.\d+\.\d+\S*/.exec(host.cliVersion)?.[0] ?? host.cliVersion;
324
- }
325
- function judgeFleet(hosts) {
326
- const old = (h) => !versionAtLeast(h.cliVersion ?? "", FIRST_VERSION_WITH_MACHINE_SKILLS);
327
- const staleBehind = hosts.filter((h) => h.stale && old(h));
328
- const behind = hosts.filter((h) => !h.stale && old(h));
329
- if (behind.length > 0) return { state: "behind", behind, staleBehind };
330
- return { state: "ready", current: hosts.filter((h) => !old(h)), staleBehind };
331
- }
332
- function parseHosts(body) {
333
- const data = body?.data;
334
- if (!Array.isArray(data)) return void 0;
335
- const hosts = [];
336
- for (const row of data) {
337
- if (typeof row?.host !== "string") return void 0;
338
- hosts.push({
339
- host: row.host,
340
- cliVersion: typeof row.cliVersion === "string" ? row.cliVersion : null,
341
- lastHeartbeatAt: typeof row.lastHeartbeatAt === "string" ? row.lastHeartbeatAt : null,
342
- stale: row.status === "stale"
343
- });
344
- }
345
- return hosts;
346
- }
347
- async function fleetReadiness(opts = {}) {
348
- const resolved = resolveGatewayCredentials(opts);
349
- if (!resolved.ok) return { state: "unknown", reason: sanitizeTerminal(resolved.message) };
350
- const fetchImpl = opts.fetchImpl ?? defaultFetch;
351
- let status;
352
- let body;
353
- try {
354
- const res = await fetchImpl(`${resolved.url.replace(/\/+$/, "")}/v1/hosts`, {
355
- method: "GET",
356
- headers: { authorization: `Bearer ${resolved.credential}`, "x-outerlayer-app-id": resolved.appId },
357
- signal: AbortSignal.timeout(HOSTS_TIMEOUT_MS)
358
- });
359
- status = res.status;
360
- body = await res.json().catch(() => void 0);
361
- } catch (err) {
362
- return { state: "unknown", reason: `the gateway did not answer: ${sanitizeTerminal(err instanceof Error ? err.message : String(err))}` };
363
- }
364
- if (status === 401) return { state: "unknown", reason: `the gateway refused the credential (HTTP 401); run \`${cliInvocation()} login\`` };
365
- if (status === 403) return { state: "unknown", reason: "the credential cannot list the factory's runner hosts (HTTP 403); it needs the hosts.read permission" };
366
- if (status >= 300) return { state: "unknown", reason: `the gateway did not list the runner hosts (HTTP ${status})` };
367
- const hosts = parseHosts(body);
368
- if (hosts === void 0) return { state: "unknown", reason: "the gateway's list of runner hosts was not in the expected shape" };
369
- return judgeFleet(hosts);
370
- }
371
- var named = (hosts) => hosts.map((h) => `${sanitizeTerminal(h.host)} (${sanitizeTerminal(shortVersion(h))})`).join(", ");
372
- var lastSeen = (hosts) => hosts.map((h) => `${sanitizeTerminal(h.host)} (${sanitizeTerminal(shortVersion(h))}, last heartbeat ${h.lastHeartbeatAt?.slice(0, 10) ?? "never"})`).join(", ");
373
- function describeFleet(fleet) {
374
- const minimum = FIRST_VERSION_WITH_MACHINE_SKILLS;
375
- if (fleet.state === "unknown") return [`The runner hosts were not checked: ${fleet.reason}.`];
376
- const lines = fleet.state === "behind" ? [`These runner hosts run a CLI older than ${minimum}: ${named(fleet.behind)}. Do not commit the removal until each one updates.`] : fleet.current.length === 0 ? ["No runner host has reported to this factory."] : [`Every runner host that is sending heartbeats runs ${minimum} or later: ${named(fleet.current)}.`];
377
- if (fleet.staleBehind.length > 0) {
378
- lines.push(`These runner hosts stopped sending heartbeats on an older CLI: ${lastSeen(fleet.staleBehind)}. Update each one before it builds again.`);
379
- }
380
- return lines;
381
- }
382
- var CHECK_NAME = "Runner hosts for the maintained skills";
383
- async function fleetCheck(opts = {}) {
384
- const dirs = findGitDirs(opts.cwd ?? process.cwd());
385
- if (dirs === void 0 || checkCommittedMaintainedSkills(dirs.repoRoot).length === 0) return [];
386
- const fleet = await fleetReadiness(opts);
387
- const detail = describeFleet(fleet).join(" ");
388
- if (fleet.state === "unknown") return [{ name: CHECK_NAME, status: "skipped", detail }];
389
- if (fleet.state === "behind") {
390
- return [{ name: CHECK_NAME, status: "warn", detail, fix: `Wait for each host to update, or run \`${cliInvocation()} runner status\` on it to see why it has not.` }];
391
- }
392
- return [{ name: CHECK_NAME, status: "pass", detail }];
393
- }
394
-
395
- export { applyReferenceRewrites, checkBuildSkill, checkCommittedMaintainedSkills, checkIgnoredSkillFolders, checkMachineSkills, checkMaintainedReferences, checkSpecSkill, committedMaintainedFolders, describeFleet, fleetCheck, fleetReadiness, maintainedReferenceRewrites, skillsFolders };
313
+ export { applyReferenceRewrites, checkBuildSkill, checkCommittedMaintainedSkills, checkIgnoredSkillFolders, checkMachineSkills, checkMaintainedReferences, checkSpecSkill, committedMaintainedFolders, ignoreRuleFor, maintainedReferenceRewrites, skillsFolders };
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-B2TOGQHU.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-X6WL4AQY.js';
4
4
  import './chunk-CNEOUUPF.js';
5
+ import { SETUP_AGENTS, setupAgentLabel } from './chunk-IMGBXZUX.js';
5
6
  import { verifiedTrackerNames, TRACKERS } from './chunk-ASAIS67T.js';
6
7
  import './chunk-XGXGS54U.js';
7
8
  import './chunk-EKJ37Z6K.js';
8
- import './chunk-4GXROH35.js';
9
+ import './chunk-CBSURJ2P.js';
10
+ import './chunk-ZN3RUNOZ.js';
9
11
  import './chunk-ZQHGY6K2.js';
10
12
  import './chunk-B5ENFQHF.js';
11
13
  import './chunk-WHXF2MLU.js';
@@ -3907,8 +3909,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
3907
3909
  what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
3908
3910
  ).action(async (opts) => {
3909
3911
  if (opts.update || opts.dryRun) {
3910
- const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-ZBCOQJEX.js');
3911
- const { fleetReadiness } = await import('./fleet-readiness-6WFZ6DSU.js');
3912
+ const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-TKH2L4VO.js');
3913
+ const { fleetReadiness } = await import('./fleet-readiness-452TASWD.js');
3912
3914
  const problem = updateFlagProblem(opts);
3913
3915
  if (problem !== void 0) {
3914
3916
  fail(problem);
@@ -3959,13 +3961,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3959
3961
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3960
3962
  `);
3961
3963
  }
3962
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-OEPA6SZX.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3964
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-CKMBOAZ5.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3963
3965
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3964
3966
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3965
3967
  return;
3966
3968
  }
3967
3969
  await installMachineSkillsForSetup();
3968
- const { runInitCommand } = await import('./init-cmd-OEPA6SZX.js');
3970
+ const { runInitCommand } = await import('./init-cmd-CKMBOAZ5.js');
3969
3971
  const code = await runInitCommand(
3970
3972
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3971
3973
  {
@@ -3977,7 +3979,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3977
3979
  return { ok, text, detail };
3978
3980
  },
3979
3981
  runAgentSetup: async () => {
3980
- const { runAgentSetup } = await import('./agent-setup-BJRTAU3H.js');
3982
+ const { runAgentSetup } = await import('./agent-setup-RWS247BZ.js');
3981
3983
  return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
3982
3984
  },
3983
3985
  runDoctorChecks: gatherDoctorChecks,
@@ -4001,7 +4003,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
4001
4003
  );
4002
4004
  if (code !== 0) process.exitCode = code;
4003
4005
  });
4004
- program2.command("setup").description("Set up this repository and a runner, step by step; run again to go on").option("--factory <org/factory>", "the factory to set up, as <org>/<factory> from its dashboard address").option("--dashboard <address>", "the dashboard to sign in on (default: https://app.outerlayer.ai)").option("--open-pr", "push the setup files to a new branch and open its pull request").option("--no-browser", "print the sign-in link without opening a browser").option("--json", "machine-readable JSON output").addHelpText(
4006
+ program2.command("setup").description("Set up this repository and a runner, step by step; run again to go on").option("--factory <org/factory>", "the factory to set up, as <org>/<factory> from its dashboard address").option("--dashboard <address>", "the dashboard to sign in on (default: https://app.outerlayer.ai)").addOption(new Option("--agent <id>", "the agent to set this repository up for").choices([...SETUP_AGENTS])).option("--open-pr", "push the setup files to a new branch and open its pull request").option("--no-browser", "print the sign-in link without opening a browser").option("--json", "machine-readable JSON output").addHelpText(
4005
4007
  "after",
4006
4008
  `
4007
4009
  Setup does each step it can, then stops at the first one that waits on you,
@@ -4015,29 +4017,44 @@ for a person. It never prints a secret. The sign-in is approved in your
4015
4017
  browser. The runner key and the agent credential are typed into
4016
4018
  \`${cliInvocation()} runner init\`, which setup tells you to run in your own terminal.
4017
4019
 
4020
+ --agent chooses the agent: ${SETUP_AGENTS.join(" or ")}. Without it, setup takes the
4021
+ agent that .outerlayer/config.json names, then the agent whose session runs
4022
+ setup, then ${setupAgentLabel(SETUP_AGENTS[0])}. It says which agent it chose and why. For Codex, a
4023
+ new config names codex as the target and as the agent that builds the
4024
+ repository's items. On managed runners, setup asks for the chosen agent's
4025
+ model key.
4026
+
4018
4027
  --open-pr creates the outerlayer-setup branch from the base branch, commits the
4019
4028
  setup files alone, pushes it, and opens the pull request with \`gh\` where gh is
4020
- signed in. Without gh it prints GitHub's page to open it. It refuses when the
4029
+ signed in to github.com. A file setup wrote is committed even when a
4030
+ .gitignore rule matches it, and setup names the rule. A rule that names a
4031
+ whole setup path keeps that path out. When gh cannot open the pull request,
4032
+ setup says why, then prints GitHub's page to open it. It refuses when the
4021
4033
  checkout is on another branch, or the base branch has commits origin does
4022
4034
  not have, and prints the commit commands instead.
4035
+
4036
+ The setup is merged when the base branch holds .outerlayer/config.json and the
4037
+ build skill. With the config alone, setup names the missing file, why it is
4038
+ missing and the commands that add it, and exits 1.
4023
4039
  `
4024
4040
  ).action(async (opts) => {
4025
- const { runSetupCommand } = await import('./setup-cmd-VFKTGD52.js');
4026
- const { realSetupDeps } = await import('./setup-wiring-MF3FYG4U.js');
4041
+ const { runSetupCommand } = await import('./setup-cmd-ANDLH2E7.js');
4042
+ const { realSetupDeps } = await import('./setup-wiring-4YSYU7OV.js');
4027
4043
  const cliBin = resolveCliBin();
4028
4044
  const agentWords = runnerHelpWords();
4029
4045
  const code = await runSetupCommand(
4030
- { factory: opts.factory, dashboard: opts.dashboard, openPr: opts.openPr, json: opts.json, browser: opts.browser },
4046
+ { factory: opts.factory, dashboard: opts.dashboard, agent: opts.agent, openPr: opts.openPr, json: opts.json, browser: opts.browser },
4031
4047
  realSetupDeps({
4032
4048
  home: homeFromEnv(),
4033
4049
  cwd: process.cwd(),
4034
4050
  stdout: process.stdout,
4035
4051
  installMachineSkills: installMachineSkillsForSetup,
4036
4052
  installHooks: (connected) => installHooks({ wrapHooks: true, statusline: true }, cliBin, connected, void 0, false),
4037
- runAgentSetup: async () => (await import('./agent-setup-BJRTAU3H.js')).runAgentSetup({ cwd: process.cwd(), skillsLink: true }),
4053
+ runAgentSetup: async (agent) => (await import('./agent-setup-RWS247BZ.js')).runAgentSetup({ cwd: process.cwd(), skillsLink: true, configAgent: agent }),
4038
4054
  connectDeps: realConnectDepsForCwd,
4039
4055
  runDoctorChecks: gatherDoctorChecks,
4040
- runnerAgent: { name: agentWords.runnerName, label: agentWords.label, setupCommand: agentWords.setupCommand }
4056
+ runnerAgent: { name: agentWords.runnerName, label: agentWords.label, setupCommand: agentWords.setupCommand },
4057
+ env: process.env
4041
4058
  })
4042
4059
  );
4043
4060
  if (code !== 0) process.exitCode = code;
@@ -5249,7 +5266,7 @@ a runner build, no row is failed.
5249
5266
  fail(trackerNumberError("--pr", opts.pr));
5250
5267
  return;
5251
5268
  }
5252
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-UXBOOBIG.js');
5269
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-FIEPKCPW.js');
5253
5270
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5254
5271
  });
5255
5272
  workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
@@ -5473,7 +5490,7 @@ function registerRunnerCommands(program2) {
5473
5490
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5474
5491
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5475
5492
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5476
- const { start, RunnerStartError } = await import('./loop-6CVDHR4M.js');
5493
+ const { start, RunnerStartError } = await import('./loop-WPT6ILVY.js');
5477
5494
  const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
5478
5495
  const configPath = opts.config ?? defaultRunnerConfigPath();
5479
5496
  try {
@@ -5497,8 +5514,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5497
5514
  `
5498
5515
  ).action(async () => {
5499
5516
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5500
- const { containerStart, containerStartExit } = await import('./container-start-ZWE4BSMK.js');
5501
- const { start, RunnerStartError } = await import('./loop-6CVDHR4M.js');
5517
+ const { containerStart, containerStartExit } = await import('./container-start-6FSO54P4.js');
5518
+ const { start, RunnerStartError } = await import('./loop-WPT6ILVY.js');
5502
5519
  const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
5503
5520
  try {
5504
5521
  const outcome = containerStartExit(await containerStart({
@@ -5522,14 +5539,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5522
5539
  ).action(async (opts) => {
5523
5540
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5524
5541
  const { runnerDir } = await import('./paths-2NB6OM44.js');
5525
- const { runUpdateSteps } = await import('./update-steps-U6LUOXPF.js');
5542
+ const { runUpdateSteps } = await import('./update-steps-GJ6WGON2.js');
5526
5543
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5527
5544
  process.stdout.write(`${text}
5528
5545
  `);
5529
5546
  });
5530
5547
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5531
5548
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5532
- const { runRunnerCheck } = await import('./check-YN3NMNHB.js');
5549
+ const { runRunnerCheck } = await import('./check-BXJBIMLW.js');
5533
5550
  const configPath = opts.config ?? defaultRunnerConfigPath();
5534
5551
  const result = await runRunnerCheck(configPath);
5535
5552
  if (!result.ok) {
@@ -5563,13 +5580,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5563
5580
  }
5564
5581
  }
5565
5582
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5566
- if (buildCpusMax !== void 0 && !(await import('./command-23WALNEO.js')).cpusAreValid(buildCpusMax)) {
5583
+ if (buildCpusMax !== void 0 && !(await import('./command-TOAYBFFZ.js')).cpusAreValid(buildCpusMax)) {
5567
5584
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5568
5585
  return;
5569
5586
  }
5570
5587
  try {
5571
5588
  if (opts.service === true) {
5572
- const { installServiceCommand, serviceSuccessText } = await import('./command-23WALNEO.js');
5589
+ const { installServiceCommand, serviceSuccessText } = await import('./command-TOAYBFFZ.js');
5573
5590
  const result2 = await installServiceCommand({
5574
5591
  configPath,
5575
5592
  print: opts.print,
@@ -5624,7 +5641,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5624
5641
  return;
5625
5642
  }
5626
5643
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
5627
- const { uninstallServiceCommand } = await import('./command-23WALNEO.js');
5644
+ const { uninstallServiceCommand } = await import('./command-TOAYBFFZ.js');
5628
5645
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5629
5646
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5630
5647
  `);
@@ -5657,11 +5674,11 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
5657
5674
  `
5658
5675
  ).action(async (opts) => {
5659
5676
  const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
5660
- const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-OFLW5CQN.js');
5661
- const { askManagedSandboxes } = await import('./check-YN3NMNHB.js');
5662
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-ZT6HBAUY.js');
5663
- const { detectMachine } = await import('./machine-7SELY76I.js');
5664
- const { chooseVm, runVmInit, VmInitError } = await import('./init-5XO6SUSS.js');
5677
+ const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-JU5GZJWH.js');
5678
+ const { askManagedSandboxes } = await import('./check-BXJBIMLW.js');
5679
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-LTA6PHOI.js');
5680
+ const { detectMachine } = await import('./machine-BZBJNTTU.js');
5681
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-VOKKIEKX.js');
5665
5682
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-UIHWITLB.js');
5666
5683
  const { headlessNames: headlessNames2 } = await import('./runner-agents-YGVCO7DM.js');
5667
5684
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5687,7 +5704,7 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
5687
5704
  return;
5688
5705
  }
5689
5706
  try {
5690
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-K7GN7NAJ.js');
5707
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-XMC3ZJWR.js');
5691
5708
  agent = await initAgent({
5692
5709
  flag: agent,
5693
5710
  handOff: opts.configStdin === true,
@@ -5869,7 +5886,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5869
5886
  let serviceUp = false;
5870
5887
  let restart;
5871
5888
  if (installedLayout) {
5872
- const { installServiceCommand } = await import('./command-23WALNEO.js');
5889
+ const { installServiceCommand } = await import('./command-TOAYBFFZ.js');
5873
5890
  const service = await installServiceCommand({
5874
5891
  configPath,
5875
5892
  entryPath: process.argv[1] ?? "",
@@ -6009,7 +6026,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6009
6026
  });
6010
6027
  runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
6011
6028
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
6012
- const { requestStop } = await import('./loop-6CVDHR4M.js');
6029
+ const { requestStop } = await import('./loop-WPT6ILVY.js');
6013
6030
  const configPath = opts.config ?? defaultRunnerConfigPath();
6014
6031
  const { runnerImageVersion } = await import('./image-tag-UI33PH7Y.js');
6015
6032
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -6017,8 +6034,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6017
6034
  runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
6018
6035
  const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-Y4PCLHUG.js');
6019
6036
  const { jobsDir, runnerDir } = await import('./paths-2NB6OM44.js');
6020
- const { listJobFiles, runnerProcessState } = await import('./loop-6CVDHR4M.js');
6021
- const { renderStatus } = await import('./status-XSXYRYU6.js');
6037
+ const { listJobFiles, runnerProcessState } = await import('./loop-WPT6ILVY.js');
6038
+ const { renderStatus } = await import('./status-4MTM45CS.js');
6022
6039
  const { readHousekeepingRecord } = await import('./record-FQ2LFBZH.js');
6023
6040
  const path2 = await import('path');
6024
6041
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -6101,7 +6118,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
6101
6118
  });
6102
6119
  runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
6103
6120
  const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
6104
- const { listJobFiles } = await import('./loop-6CVDHR4M.js');
6121
+ const { listJobFiles } = await import('./loop-WPT6ILVY.js');
6105
6122
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-EVHVINVW.js');
6106
6123
  const configPath = opts.config ?? defaultRunnerConfigPath();
6107
6124
  const jobs = listJobFiles(configPath);
@@ -4,10 +4,10 @@ import { realLaunchAgentHost } from './chunk-3FCYURWW.js';
4
4
  import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-KRYJAO4X.js';
5
5
  import { installSandboxAgent, uninstallSandboxAgent } from './chunk-57F62BIL.js';
6
6
  import './chunk-TXKHD4Q6.js';
7
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-QLHEU44A.js';
7
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-7HH6C45Q.js';
8
8
  import './chunk-RFBEF4AF.js';
9
9
  import { currentLink, execStartCommand } from './chunk-CYQSTT5N.js';
10
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-SVALMZJU.js';
10
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-RCE5YQFT.js';
11
11
  import './chunk-7TDLQUJ5.js';
12
12
  import './chunk-2QK7L3WV.js';
13
13
  import './chunk-2PGI6RDE.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-ND6R4UHO.js';
4
- import { readOwnContainer } from './chunk-UE6OJBU6.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-SVALMZJU.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-U5MLUAY3.js';
4
+ import { readOwnContainer } from './chunk-3ZZSQG2A.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-RCE5YQFT.js';
6
6
  import './chunk-7TDLQUJ5.js';
7
7
  import './chunk-2QK7L3WV.js';
8
8
  import './chunk-2PGI6RDE.js';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperBinaryFor } from './chunk-QLHEU44A.js';
4
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-7CMRGY4Z.js';
3
+ import { helperBinaryFor } from './chunk-7HH6C45Q.js';
4
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-OLXB2YMX.js';
5
5
  import { launcherCheck } from './chunk-RFBEF4AF.js';
6
6
  import './chunk-CYQSTT5N.js';
7
- import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-SVALMZJU.js';
7
+ import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-RCE5YQFT.js';
8
8
  import './chunk-7TDLQUJ5.js';
9
9
  import './chunk-2QK7L3WV.js';
10
10
  import './chunk-2PGI6RDE.js';
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeFleet, fleetCheck, fleetReadiness } from './chunk-4GXROH35.js';
3
+ export { describeFleet, fleetCheck, fleetReadiness } from './chunk-CBSURJ2P.js';
4
+ import './chunk-ZN3RUNOZ.js';
4
5
  import './chunk-B5ENFQHF.js';
5
6
  import './chunk-V3NMSDOC.js';
6
7
  import './chunk-IEVG36GC.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-SVALMZJU.js';
3
+ export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-RCE5YQFT.js';
4
4
  import './chunk-7TDLQUJ5.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-EJNVXLNB.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-PUFMMGLY.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-B7VPNSJB.js');
28
+ var { runCli } = await import('./cli-7QRILUMX.js');
29
29
  await runCli(process.argv);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-SVALMZJU.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-RCE5YQFT.js';
4
4
  import './chunk-7TDLQUJ5.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
4
- import { RunnerInitError, readConfigObject } from './chunk-SVALMZJU.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-RCE5YQFT.js';
5
5
  import './chunk-7TDLQUJ5.js';
6
6
  import './chunk-2QK7L3WV.js';
7
7
  import './chunk-2PGI6RDE.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RunnerInitError } from './chunk-SVALMZJU.js';
3
+ import { RunnerInitError } from './chunk-RCE5YQFT.js';
4
4
  import './chunk-7TDLQUJ5.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { applyShellFunctionFlag, runInitCommand } from './chunk-F2FZG6FG.js';
4
- import './chunk-B2TOGQHU.js';
3
+ export { applyShellFunctionFlag, runInitCommand } from './chunk-Z27PY2OJ.js';
4
+ import './chunk-X6WL4AQY.js';
5
5
  import './chunk-CNEOUUPF.js';
6
6
  import './chunk-UWRXRSCE.js';
7
7
  import './chunk-ASAIS67T.js';
8
8
  import './chunk-XGXGS54U.js';
9
9
  import './chunk-EKJ37Z6K.js';
10
- import './chunk-4GXROH35.js';
10
+ import './chunk-CBSURJ2P.js';
11
+ import './chunk-ZN3RUNOZ.js';
11
12
  import './chunk-ZQHGY6K2.js';
12
13
  import './chunk-B5ENFQHF.js';
13
14
  import './chunk-WHXF2MLU.js';
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { contextIsGoverned, inspectStarterFiles, readShippedManifest, contentHash, canonical } from './chunk-CNEOUUPF.js';
4
- import { keepHandWritten } from './chunk-4JVYALPL.js';
4
+ import { keepHandWritten } from './chunk-YPS6YOYK.js';
5
5
  import './chunk-ZMXG7DQ5.js';
6
6
  import { runEmit, inspectReplacedOutputs } from './chunk-DPS4OOL5.js';
7
- import { maintainedReferenceRewrites, applyReferenceRewrites, describeFleet, committedMaintainedFolders, skillsFolders } from './chunk-4GXROH35.js';
7
+ import { describeFleet } from './chunk-CBSURJ2P.js';
8
+ import { maintainedReferenceRewrites, applyReferenceRewrites, committedMaintainedFolders, skillsFolders } from './chunk-ZN3RUNOZ.js';
8
9
  import './chunk-B5ENFQHF.js';
9
10
  import { setMcpEntry } from './chunk-WHXF2MLU.js';
10
11
  import { COMMIT_LINE, agentsLayoutCommitLine, listWithAnd } from './chunk-7O37CF6M.js';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-U74IJMMN.js';
3
+ export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-DQ3IKV5Q.js';
4
4
  import './chunk-6YBI24YT.js';
5
5
  import './chunk-E7R2GIAW.js';
6
- import './chunk-ND6R4UHO.js';
7
- import './chunk-UE6OJBU6.js';
6
+ import './chunk-U5MLUAY3.js';
7
+ import './chunk-3ZZSQG2A.js';
8
8
  import './chunk-TXKHD4Q6.js';
9
9
  import './chunk-GFXXAXPF.js';
10
10
  import './chunk-AVYR5USX.js';
11
- import './chunk-7CMRGY4Z.js';
11
+ import './chunk-OLXB2YMX.js';
12
12
  import './chunk-CYQSTT5N.js';
13
- import './chunk-SVALMZJU.js';
13
+ import './chunk-RCE5YQFT.js';
14
14
  import './chunk-7TDLQUJ5.js';
15
15
  import './chunk-2QK7L3WV.js';
16
16
  import './chunk-2PGI6RDE.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-SVALMZJU.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-RCE5YQFT.js';
4
4
  import './chunk-7TDLQUJ5.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readConfigObject, RunnerInitError } from './chunk-SVALMZJU.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-RCE5YQFT.js';
4
4
  import './chunk-7TDLQUJ5.js';
5
5
  import './chunk-2QK7L3WV.js';
6
6
  import './chunk-2PGI6RDE.js';