@standardagents/cli 0.45.1 → 0.45.2

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.
package/README.md CHANGED
@@ -108,11 +108,17 @@ deploys from the Artifacts push event.
108
108
  npx @standardagents/cli skill
109
109
  ```
110
110
 
111
- Opens an interactive picker and installs the bundled `agentbuilder` guidance
112
- into a supported coding agent. Right now that means:
111
+ Opens an interactive picker and installs the bundled `agentbuilder` skill as an
112
+ [Agent Skills](https://agentskills.io) folder. Every target gets the same
113
+ `agentbuilder/SKILL.md`:
113
114
 
114
- - Codex: installs a skill folder into `$CODEX_HOME/skills` or `~/.codex/skills`
115
- - Claude Code: installs a user subagent into `~/.claude/agents/agentbuilder.md`
115
+ - Codex and other coding agents (Cursor, Gemini CLI, GitHub Copilot, OpenCode,
116
+ and others): `~/.agents/skills`
117
+ - Claude Code: `~/.claude/skills`
118
+
119
+ The skill tells your coding agent to read the published specification at
120
+ `https://standardagentspec.org/llms.txt`. There is no separate specification
121
+ skill to install.
116
122
 
117
123
  Use `--force` to overwrite an existing installed copy:
118
124
 
@@ -123,7 +129,7 @@ npx @standardagents/cli skill --force
123
129
  Skip the picker with an explicit target:
124
130
 
125
131
  ```bash
126
- npx @standardagents/cli skill --agent codex
132
+ npx @standardagents/cli skill --agent agents
127
133
  npx @standardagents/cli skill --agent claude
128
134
  ```
129
135
 
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { useState, useMemo } from 'react';
17
17
  import { render, renderToString, Box, Text, useApp, useInput } from 'ink';
18
18
  import { TextInput } from '@inkjs/ui';
19
19
  import { jsx, jsxs } from 'react/jsx-runtime';
20
- import { copySkill, readSkillFile } from '@standardagents/skill';
20
+ import { copySkill } from '@standardagents/skill';
21
21
 
22
22
  function findPnpmWorkspaceRoot(startDir) {
23
23
  let currentDir = startDir;
@@ -336,7 +336,7 @@ function getScaffoldStandardAgentsVersion() {
336
336
  if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
337
337
  return workspacePackageLink("@standardagents/builder");
338
338
  }
339
- return "0.45.1";
339
+ return "0.45.2";
340
340
  }
341
341
  function findViteConfig(cwd) {
342
342
  const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
@@ -1642,7 +1642,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
1642
1642
  return { connected: true, mode: "standardagents" };
1643
1643
  }
1644
1644
  function getCliVersion() {
1645
- return "0.45.1";
1645
+ return "0.45.2";
1646
1646
  }
1647
1647
  function getSipVersion() {
1648
1648
  return "1.0.1";
@@ -2000,48 +2000,45 @@ async function configurePlatformGitCredentialHelper(projectPath) {
2000
2000
  function isRetryablePlatformAuthStatus(status) {
2001
2001
  return status === 502 || status === 503 || status === 504;
2002
2002
  }
2003
- async function waitForPlatformProjectStatus(statusUrl, expiresAt, options = {}) {
2004
- let lastProgressKey = "";
2005
- while (Date.now() < expiresAt) {
2006
- const response = await fetch(statusUrl, {
2003
+ async function readPlatformProjectStatus(statusUrl, options = {}) {
2004
+ let response;
2005
+ try {
2006
+ response = await fetch(statusUrl, {
2007
2007
  headers: { Accept: "application/json" }
2008
2008
  });
2009
- if (!response.ok) {
2010
- if (isRetryablePlatformAuthStatus(response.status)) {
2011
- await sleep(options.pollIntervalMs ?? 1500);
2012
- continue;
2013
- }
2014
- throw new Error(`Platform auth status failed (${response.status})`);
2015
- }
2016
- const status = await response.json();
2017
- if (status.progress?.message) {
2018
- const progressKey = `${status.progress.status}:${status.progress.message}:${status.progress.updated_at}`;
2019
- if (progressKey !== lastProgressKey) {
2020
- lastProgressKey = progressKey;
2021
- options.onProgress?.(status.progress);
2022
- }
2023
- }
2024
- if (status.status === "completed" && status.type === "project" && status.project) {
2025
- return status.project;
2026
- }
2027
- if (status.status === "completed") {
2028
- throw new Error(LEGACY_BOOTSTRAP_RESPONSE_MESSAGE);
2029
- }
2030
- if (status.status === "expired") {
2031
- throw new Error("Onboarding session expired. Run the init command again to start a new session.");
2032
- }
2033
- if (status.status === "cancelled") {
2034
- throw new Error("Onboarding was cancelled in the browser. Run the init command again when you are ready.");
2035
- }
2036
- await sleep(options.pollIntervalMs ?? 1500);
2009
+ } catch {
2010
+ return null;
2037
2011
  }
2038
- throw new Error("Timed out waiting for platform project creation");
2012
+ if (!response.ok) {
2013
+ if (isRetryablePlatformAuthStatus(response.status)) return null;
2014
+ throw new Error(`Platform auth status failed (${response.status})`);
2015
+ }
2016
+ const status = await response.json();
2017
+ if (status.progress?.message) {
2018
+ options.onProgress?.(status.progress);
2019
+ }
2020
+ if (status.status === "completed" && status.type === "project" && status.project) {
2021
+ return status.project;
2022
+ }
2023
+ if (status.status === "completed") {
2024
+ throw new Error(LEGACY_BOOTSTRAP_RESPONSE_MESSAGE);
2025
+ }
2026
+ if (status.status === "expired") {
2027
+ throw new Error("Onboarding session expired. Run the init command again to start a new session.");
2028
+ }
2029
+ if (status.status === "cancelled") {
2030
+ throw new Error("Onboarding was cancelled in the browser. Run the init command again when you are ready.");
2031
+ }
2032
+ return null;
2039
2033
  }
2034
+ var PLATFORM_AUTH_KEEPALIVE_INTERVAL_MS = 3e4;
2035
+ var PLATFORM_AUTH_SILENCE_LIMIT_MS = 75e3;
2036
+ var PLATFORM_AUTH_RECONNECT_DELAYS_MS = [1e3, 2e3, 5e3, 1e4];
2040
2037
  function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2041
2038
  return new Promise((resolve, reject) => {
2042
2039
  const WebSocketCtor = globalThis.WebSocket;
2043
2040
  if (!WebSocketCtor) {
2044
- reject(new PlatformAuthWsTransportError("This Node.js runtime does not provide WebSocket support"));
2041
+ reject(new Error("This Node.js runtime does not provide WebSocket support. Use Node.js 22 or newer."));
2045
2042
  return;
2046
2043
  }
2047
2044
  let socket;
@@ -2055,8 +2052,12 @@ function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2055
2052
  }
2056
2053
  let settled = false;
2057
2054
  let lastProgressKey = "";
2055
+ let keepalive;
2056
+ let platformAnswersKeepalive = false;
2057
+ let lastFrameAt = Date.now();
2058
2058
  const timeout = setTimeout(() => {
2059
2059
  settled = true;
2060
+ clearInterval(keepalive);
2060
2061
  socket.close();
2061
2062
  reject(new Error("Timed out waiting for platform project creation"));
2062
2063
  }, Math.max(1e3, expiresAt - Date.now()));
@@ -2064,6 +2065,7 @@ function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2064
2065
  if (settled) return;
2065
2066
  settled = true;
2066
2067
  clearTimeout(timeout);
2068
+ clearInterval(keepalive);
2067
2069
  socket.close();
2068
2070
  fn();
2069
2071
  };
@@ -2072,9 +2074,24 @@ function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2072
2074
  socket.send(JSON.stringify({ type: "ready" }));
2073
2075
  } catch {
2074
2076
  settle(() => reject(new PlatformAuthWsTransportError("Platform auth websocket could not send ready")));
2077
+ return;
2075
2078
  }
2079
+ lastFrameAt = Date.now();
2080
+ options.onOpen?.();
2081
+ keepalive = setInterval(() => {
2082
+ if (platformAnswersKeepalive && Date.now() - lastFrameAt > PLATFORM_AUTH_SILENCE_LIMIT_MS) {
2083
+ settle(() => reject(new PlatformAuthWsTransportError("Platform auth websocket went silent")));
2084
+ return;
2085
+ }
2086
+ try {
2087
+ socket.send(JSON.stringify({ type: "ping" }));
2088
+ } catch {
2089
+ settle(() => reject(new PlatformAuthWsTransportError("Platform auth websocket could not send ping")));
2090
+ }
2091
+ }, PLATFORM_AUTH_KEEPALIVE_INTERVAL_MS);
2076
2092
  });
2077
2093
  socket.addEventListener("message", (event) => {
2094
+ lastFrameAt = Date.now();
2078
2095
  if (typeof event.data !== "string") {
2079
2096
  settle(() => reject(new PlatformAuthWsTransportError("Platform auth websocket sent a non-text frame")));
2080
2097
  return;
@@ -2086,6 +2103,10 @@ function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2086
2103
  settle(() => reject(new PlatformAuthWsTransportError("Platform auth websocket sent invalid JSON")));
2087
2104
  return;
2088
2105
  }
2106
+ if (message.type === "pong" || message.type === "keepalive") {
2107
+ platformAnswersKeepalive = true;
2108
+ return;
2109
+ }
2089
2110
  if (message.type === "progress" && message.progress?.message) {
2090
2111
  const progress = message.progress;
2091
2112
  const progressKey = `${progress.status}:${progress.message}:${progress.updated_at}`;
@@ -2114,19 +2135,41 @@ function waitForPlatformProjectWs(wsUrl, expiresAt, options = {}) {
2114
2135
  });
2115
2136
  });
2116
2137
  }
2117
- function waitForPlatformProject(session, onProgress) {
2118
- if (session.ws_url) {
2119
- return waitForPlatformProjectWs(session.ws_url, session.expires_at, { onProgress }).catch((error) => {
2120
- if (error instanceof PlatformAuthWsTransportError && session.status_url && Date.now() < session.expires_at) {
2121
- return waitForPlatformProjectStatus(session.status_url, session.expires_at, { onProgress });
2122
- }
2123
- throw error;
2124
- });
2138
+ async function waitForPlatformProject(session, onProgress) {
2139
+ if (!session.ws_url) {
2140
+ throw new Error("Platform auth session provided no ws_url");
2125
2141
  }
2126
- if (session.status_url) {
2127
- return waitForPlatformProjectStatus(session.status_url, session.expires_at, { onProgress });
2142
+ let lastProgressKey = "";
2143
+ const reportProgress = (progress) => {
2144
+ const progressKey = `${progress.status}:${progress.message}:${progress.updated_at}`;
2145
+ if (progressKey === lastProgressKey) return;
2146
+ lastProgressKey = progressKey;
2147
+ onProgress?.(progress);
2148
+ };
2149
+ let statusReadDue = true;
2150
+ let failedAttempts = 0;
2151
+ while (Date.now() < session.expires_at) {
2152
+ try {
2153
+ return await waitForPlatformProjectWs(session.ws_url, session.expires_at, {
2154
+ onProgress: reportProgress,
2155
+ onOpen: () => {
2156
+ statusReadDue = true;
2157
+ failedAttempts = 0;
2158
+ }
2159
+ });
2160
+ } catch (error) {
2161
+ if (!(error instanceof PlatformAuthWsTransportError)) throw error;
2162
+ }
2163
+ if (statusReadDue && session.status_url && Date.now() < session.expires_at) {
2164
+ statusReadDue = false;
2165
+ const project = await readPlatformProjectStatus(session.status_url, { onProgress: reportProgress });
2166
+ if (project) return project;
2167
+ }
2168
+ const delay = PLATFORM_AUTH_RECONNECT_DELAYS_MS[Math.min(failedAttempts, PLATFORM_AUTH_RECONNECT_DELAYS_MS.length - 1)];
2169
+ failedAttempts += 1;
2170
+ await sleep(Math.min(delay, Math.max(0, session.expires_at - Date.now())));
2128
2171
  }
2129
- return Promise.reject(new Error("Platform auth session provided no ws_url or status_url"));
2172
+ throw new Error("Timed out waiting for platform project creation");
2130
2173
  }
2131
2174
  function upsertEnvLine(lines, key, value) {
2132
2175
  return [
@@ -4629,6 +4672,15 @@ function resolveCodexHome(env = process.env, homeDir = os3.homedir()) {
4629
4672
  function resolveClaudeHome(homeDir = os3.homedir()) {
4630
4673
  return path8.join(homeDir, ".claude");
4631
4674
  }
4675
+ function resolveAgentsHome(homeDir = os3.homedir()) {
4676
+ return path8.join(homeDir, ".agents");
4677
+ }
4678
+ function normalizeTargetId(target) {
4679
+ if (target === "codex" || target === "agents") {
4680
+ return "agents";
4681
+ }
4682
+ return target === "claude" ? "claude" : null;
4683
+ }
4632
4684
  function expandHomePath(inputPath, homeDir = os3.homedir()) {
4633
4685
  if (inputPath === "~") {
4634
4686
  return homeDir;
@@ -4640,45 +4692,43 @@ function expandHomePath(inputPath, homeDir = os3.homedir()) {
4640
4692
  }
4641
4693
  function buildInstallTargets(options = {}, env = process.env, homeDir = os3.homedir()) {
4642
4694
  const customRoot = options.dir ? path8.resolve(expandHomePath(options.dir, homeDir)) : null;
4643
- const codexHome = resolveCodexHome(env, homeDir);
4695
+ const agentsHome = resolveAgentsHome(homeDir);
4644
4696
  const claudeHome = resolveClaudeHome(homeDir);
4645
4697
  return [
4646
4698
  {
4647
- id: "codex",
4648
- label: "Codex",
4649
- summary: "Install as a Codex skill folder",
4650
- detected: fs5.existsSync(codexHome),
4651
- installPath: customRoot ?? path8.join(codexHome, "skills")
4699
+ id: "agents",
4700
+ label: "Codex and other coding agents",
4701
+ summary: "Agent Skills folder read by Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, and others",
4702
+ detected: fs5.existsSync(agentsHome) || fs5.existsSync(resolveCodexHome(env, homeDir)),
4703
+ installPath: customRoot ?? path8.join(agentsHome, "skills")
4652
4704
  },
4653
4705
  {
4654
4706
  id: "claude",
4655
4707
  label: "Claude Code",
4656
- summary: "Install as a Claude Code user subagent",
4708
+ summary: "Agent Skills folder read by Claude Code",
4657
4709
  detected: fs5.existsSync(claudeHome),
4658
- installPath: customRoot ?? path8.join(claudeHome, "agents")
4710
+ installPath: customRoot ?? path8.join(claudeHome, "skills")
4659
4711
  }
4660
4712
  ];
4661
4713
  }
4662
4714
  function resolveSelectedTarget(targetId, options = {}, env = process.env, homeDir = os3.homedir()) {
4715
+ const normalizedId = normalizeTargetId(targetId);
4663
4716
  const target = buildInstallTargets(options, env, homeDir).find(
4664
- (candidate) => candidate.id === targetId
4717
+ (candidate) => candidate.id === normalizedId
4665
4718
  );
4666
4719
  if (!target) {
4667
- throw new Error(`Unknown install target "${targetId}".`);
4720
+ throw new Error(
4721
+ `Unknown install target "${targetId}". Expected agents, claude, or codex.`
4722
+ );
4668
4723
  }
4669
4724
  return target;
4670
4725
  }
4671
- function buildClaudeSubagentMarkdown(skillName, description, body) {
4672
- const normalizedBody = body.replace(/^\uFEFF/, "").trim();
4673
- return [
4674
- "---",
4675
- `name: ${skillName}`,
4676
- `description: ${description}`,
4677
- "---",
4678
- "",
4679
- normalizedBody,
4680
- ""
4681
- ].join("\n");
4726
+ function findSupersededInstalls(targetId, skillName = DEFAULT_SKILL_NAME, options = {}, env = process.env, homeDir = os3.homedir()) {
4727
+ if (options.dir) {
4728
+ return [];
4729
+ }
4730
+ const superseded = normalizeTargetId(targetId) === "claude" ? path8.join(resolveClaudeHome(homeDir), "agents", `${skillName}.md`) : path8.join(resolveCodexHome(env, homeDir), "skills", skillName);
4731
+ return fs5.existsSync(superseded) ? [superseded] : [];
4682
4732
  }
4683
4733
  async function selectInstallTarget(targets) {
4684
4734
  return new Promise((resolve) => {
@@ -4742,39 +4792,22 @@ async function selectInstallTarget(targets) {
4742
4792
  }
4743
4793
  async function installBundledSkill(targetId, skillName = DEFAULT_SKILL_NAME, options = {}) {
4744
4794
  const target = resolveSelectedTarget(targetId, options);
4745
- if (target.id === "codex") {
4746
- const targetDir = path8.join(target.installPath, skillName);
4747
- if (fs5.existsSync(targetDir) && !options.force) {
4748
- throw new Error(
4749
- `Skill already exists at ${targetDir}. Re-run with --force to overwrite it.`
4750
- );
4751
- }
4752
- return copySkill(skillName, target.installPath, {
4753
- overwrite: options.force ?? false
4754
- });
4755
- }
4756
- const targetFile = path8.join(target.installPath, `${skillName}.md`);
4757
- if (fs5.existsSync(targetFile) && !options.force) {
4795
+ const targetDir = path8.join(target.installPath, skillName);
4796
+ if (fs5.existsSync(targetDir) && !options.force) {
4758
4797
  throw new Error(
4759
- `Claude subagent already exists at ${targetFile}. Re-run with --force to overwrite it.`
4798
+ `Skill already exists at ${targetDir}. Re-run with --force to overwrite it.`
4760
4799
  );
4761
4800
  }
4762
- const skillBody = await readSkillFile(skillName);
4763
- const subagentMarkdown = buildClaudeSubagentMarkdown(
4764
- skillName,
4765
- "Use for Standard Agents and AgentBuilder architecture, composition, subagent design, and implementation work.",
4766
- skillBody
4767
- );
4768
- fs5.mkdirSync(target.installPath, { recursive: true });
4769
- fs5.writeFileSync(targetFile, subagentMarkdown, "utf8");
4770
- return targetFile;
4801
+ return copySkill(skillName, target.installPath, {
4802
+ overwrite: options.force ?? false
4803
+ });
4771
4804
  }
4772
4805
  function isInteractiveTerminal() {
4773
4806
  return Boolean(process.stdin.isTTY && process.stdout.isTTY);
4774
4807
  }
4775
4808
  async function skill(options = {}) {
4776
4809
  try {
4777
- const selectedTarget = options.agent ? resolveSelectedTarget(options.agent, options) : isInteractiveTerminal() ? await selectInstallTarget(buildInstallTargets(options)) : resolveSelectedTarget("codex", options);
4810
+ const selectedTarget = options.agent ? resolveSelectedTarget(options.agent, options) : isInteractiveTerminal() ? await selectInstallTarget(buildInstallTargets(options)) : resolveSelectedTarget("agents", options);
4778
4811
  logger.log("");
4779
4812
  logger.info(`Installing AgentBuilder skill into ${selectedTarget.label}...`);
4780
4813
  const installedPath = await installBundledSkill(
@@ -4787,14 +4820,15 @@ async function skill(options = {}) {
4787
4820
  logger.log(`Path: ${installedPath}`);
4788
4821
  logger.log("");
4789
4822
  logger.log("Next steps:");
4790
- if (selectedTarget.id === "codex") {
4791
- logger.log(" Restart Codex if it is already running");
4792
- logger.log(` Edit ${path8.join(installedPath, "SKILL.md")} to continue customizing the skill`);
4793
- } else {
4794
- logger.log(" Restart Claude Code if it is already running");
4795
- logger.log(` Edit ${installedPath} to continue customizing the subagent`);
4823
+ logger.log(` Restart ${selectedTarget.id === "claude" ? "Claude Code" : "your coding agent"} if it is already running`);
4824
+ logger.log(` Edit ${path8.join(installedPath, "SKILL.md")} to continue customizing the skill`);
4825
+ for (const superseded of findSupersededInstalls(
4826
+ selectedTarget.id,
4827
+ DEFAULT_SKILL_NAME,
4828
+ options
4829
+ )) {
4830
+ logger.log(` Delete ${superseded}, the copy an earlier release installed, so the agent loads one copy`);
4796
4831
  }
4797
- logger.log(" Install the specification skill: npx skills add standardagents/skills@spec");
4798
4832
  } catch (error) {
4799
4833
  logger.log("");
4800
4834
  logger.error(error instanceof Error ? error.message : "Failed to install skill");
@@ -5962,7 +5996,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
5962
5996
  }
5963
5997
  }
5964
5998
  var program = new Command();
5965
- program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.45.1");
5999
+ program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.45.2");
5966
6000
  program.command("init [project-name]").description("Create a new Standard Agents project").option("-y, --yes", "Skip prompts and use defaults").option("--local", "Use local project scaffolding instead of browser platform onboarding").option("--cli", "Use classic line-by-line CLI prompts instead of the TUI wizard").option("--api-url <url>", "Standard Agents platform API URL").option("--endpoint <url>", "Platform API endpoint for auth/bootstrap exchange").option("--package-manager <manager>", "Package manager for generated project: npm, pnpm, yarn, or bun").option("--template <template>", "Vite template to use", "vanilla-ts").option("--workspace", "Link local @standardagents packages with pnpm outside workspace membership").option("--no-dev", "Clone and configure the project without starting the dev server").addOption(new Option("--bootstrap <code>", "Exchange a web onboarding bootstrap code")).action(init);
5967
6001
  program.command("login").description("Authenticate this machine (or use --bootstrap for project bootstrap auth)").option("--bootstrap <code>", "Bootstrap code from web onboarding").option("--endpoint <url>", "Platform API endpoint (default: https://api.standardagents.ai)").option("--no-open", "Do not auto-open browser URL").action(login);
5968
6002
  program.command("logout").description("Clear stored Standard Agents auth and local org-scoped project auth").option("--org <org-id-or-slug>", "Org ID or slug to logout (defaults to active org)").option("--endpoint <url>", "Platform API endpoint (default: https://api.standardagents.ai)").action(logout);
@@ -5974,7 +6008,7 @@ program.command("deploy").description("Push the current branch to the Standard A
5974
6008
  program.command("git-credential <operation>").description("Git credential helper for Standard Agents platform repositories").option("--endpoint <url>", "Platform API endpoint").action(gitCredential);
5975
6009
  program.command("git-login").description("Authenticate Git for Standard Agents platform repositories").option("--bootstrap <code>", "Bootstrap code from web onboarding").option("--endpoint <url>", "Platform API endpoint (default: https://api.standardagents.ai)").option("--helper-command <command>", "Credential helper command to add to global git config").option("--no-config", "Store Git auth but do not update global git config").option("--no-open", "Do not auto-open browser URL").action(gitLogin);
5976
6010
  program.command("support-files").description("Write generated local support files for a Standard Agents platform repository").option("--project-name <name>", "Project name to use in the generated package manifest").option("--package-manager <manager>", "Package manager: npm, pnpm, yarn, or bun").action(supportFiles);
5977
- program.command("skill").description("Install the bundled AgentBuilder guidance into a supported coding agent").option("--agent <target>", "Install target: codex or claude").option("--dir <path>", "Install directory override for the selected target").option("--force", "Overwrite an existing installed skill").action(skill);
6011
+ program.command("skill").description("Install the bundled AgentBuilder skill for your coding agent").option("--agent <target>", "Install target: agents (Codex and other coding agents) or claude").option("--dir <path>", "Install directory override for the selected target").option("--force", "Overwrite an existing installed skill").action(skill);
5978
6012
  program.command("current-models").description("Print the live curated model guide from standardagentspec.com").option("--url <url>", "Override the models markdown URL").action(currentModels);
5979
6013
  program.command("available-models").description("List every available model for one configured provider in the current project").option("--provider <provider>", "Provider to query, for example cerebras or openai").action(availableModels);
5980
6014
  registerDiagCommand(program);