@onexapis/cli 1.1.46 → 1.1.47

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/dist/cli.mjs CHANGED
@@ -5067,7 +5067,9 @@ async function mcpSetupCommand(options = {}) {
5067
5067
  const missing = statuses.filter((s) => !s.exists);
5068
5068
  if (missing.length === 0) {
5069
5069
  logger.success("All AI context files are already present.");
5070
- logger.log("Run `onexthm mcp upgrade` to refresh them to the latest version.");
5070
+ logger.log(
5071
+ "Run `onexthm mcp upgrade` to refresh them to the latest version."
5072
+ );
5071
5073
  return;
5072
5074
  }
5073
5075
  logger.log(`Will install ${missing.length} file(s):`);
@@ -5099,7 +5101,9 @@ async function mcpSetupCommand(options = {}) {
5099
5101
  logger.success("Done. Restart your AI client to pick up the new MCP server.");
5100
5102
  logger.log("");
5101
5103
  logger.log("Tip: if your theme uses the Figma MCP, edit .mcp.json and");
5102
- logger.log("replace __FIGMA_API_KEY__ with your Figma personal access token.");
5104
+ logger.log(
5105
+ "replace __FIGMA_API_KEY__ with your Figma personal access token."
5106
+ );
5103
5107
  }
5104
5108
  async function mcpUpgradeCommand(options = {}) {
5105
5109
  const targetDir = resolveTargetDir(options);
@@ -5188,7 +5192,9 @@ async function mcpDoctorCommand(options = {}) {
5188
5192
  if (servers.figma) {
5189
5193
  const arg = (servers.figma.args ?? []).join(" ");
5190
5194
  if (arg.includes("__FIGMA_API_KEY__")) {
5191
- logger.warning("figma server uses placeholder API key \u2014 replace __FIGMA_API_KEY__");
5195
+ logger.warning(
5196
+ "figma server uses placeholder API key \u2014 replace __FIGMA_API_KEY__"
5197
+ );
5192
5198
  } else {
5193
5199
  logger.success(".mcp.json registers `figma`");
5194
5200
  }
@@ -5213,7 +5219,9 @@ async function mcpDoctorCommand(options = {}) {
5213
5219
  if (fs.existsSync(registryPath)) {
5214
5220
  logger.success("sections-registry.ts present");
5215
5221
  } else {
5216
- logger.warning("sections-registry.ts missing \u2014 section tools won't auto-register");
5222
+ logger.warning(
5223
+ "sections-registry.ts missing \u2014 section tools won't auto-register"
5224
+ );
5217
5225
  }
5218
5226
  }
5219
5227
 
@@ -5283,8 +5291,12 @@ program.command("login").description("Login to OneX platform").action(loginComma
5283
5291
  program.command("logout").description("Logout from OneX platform").action(logoutCommand);
5284
5292
  program.command("whoami").description("Show current logged-in developer").action(whoamiCommand);
5285
5293
  var mcpCmd = program.command("mcp").description("Manage MCP server registration and AI-context files");
5286
- mcpCmd.command("setup").description("Install .mcp.json + CLAUDE.md + AGENTS.md + .cursorrules into the current theme").option("-y, --yes", "Skip confirmation prompts").action(mcpSetupCommand);
5287
- mcpCmd.command("upgrade").description("Refresh AI-context files to the latest version from the bundled template").option("-y, --yes", "Skip confirmation prompts").action(mcpUpgradeCommand);
5294
+ mcpCmd.command("setup").description(
5295
+ "Install .mcp.json + CLAUDE.md + AGENTS.md + .cursorrules into the current theme"
5296
+ ).option("-y, --yes", "Skip confirmation prompts").action(mcpSetupCommand);
5297
+ mcpCmd.command("upgrade").description(
5298
+ "Refresh AI-context files to the latest version from the bundled template"
5299
+ ).option("-y, --yes", "Skip confirmation prompts").action(mcpUpgradeCommand);
5288
5300
  mcpCmd.command("doctor").description("Diagnose MCP setup in the current theme directory").action(mcpDoctorCommand);
5289
5301
  program.command("publish").description("Build, scan, and publish theme to marketplace (requires login)").option("-t, --theme <path>", "Theme directory path").option(
5290
5302
  "--bump <type>",