@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.js CHANGED
@@ -5110,7 +5110,9 @@ async function mcpSetupCommand(options = {}) {
5110
5110
  const missing = statuses.filter((s) => !s.exists);
5111
5111
  if (missing.length === 0) {
5112
5112
  logger.success("All AI context files are already present.");
5113
- logger.log("Run `onexthm mcp upgrade` to refresh them to the latest version.");
5113
+ logger.log(
5114
+ "Run `onexthm mcp upgrade` to refresh them to the latest version."
5115
+ );
5114
5116
  return;
5115
5117
  }
5116
5118
  logger.log(`Will install ${missing.length} file(s):`);
@@ -5142,7 +5144,9 @@ async function mcpSetupCommand(options = {}) {
5142
5144
  logger.success("Done. Restart your AI client to pick up the new MCP server.");
5143
5145
  logger.log("");
5144
5146
  logger.log("Tip: if your theme uses the Figma MCP, edit .mcp.json and");
5145
- logger.log("replace __FIGMA_API_KEY__ with your Figma personal access token.");
5147
+ logger.log(
5148
+ "replace __FIGMA_API_KEY__ with your Figma personal access token."
5149
+ );
5146
5150
  }
5147
5151
  async function mcpUpgradeCommand(options = {}) {
5148
5152
  const targetDir = resolveTargetDir(options);
@@ -5231,7 +5235,9 @@ async function mcpDoctorCommand(options = {}) {
5231
5235
  if (servers.figma) {
5232
5236
  const arg = (servers.figma.args ?? []).join(" ");
5233
5237
  if (arg.includes("__FIGMA_API_KEY__")) {
5234
- logger.warning("figma server uses placeholder API key \u2014 replace __FIGMA_API_KEY__");
5238
+ logger.warning(
5239
+ "figma server uses placeholder API key \u2014 replace __FIGMA_API_KEY__"
5240
+ );
5235
5241
  } else {
5236
5242
  logger.success(".mcp.json registers `figma`");
5237
5243
  }
@@ -5256,7 +5262,9 @@ async function mcpDoctorCommand(options = {}) {
5256
5262
  if (fs__default.default.existsSync(registryPath)) {
5257
5263
  logger.success("sections-registry.ts present");
5258
5264
  } else {
5259
- logger.warning("sections-registry.ts missing \u2014 section tools won't auto-register");
5265
+ logger.warning(
5266
+ "sections-registry.ts missing \u2014 section tools won't auto-register"
5267
+ );
5260
5268
  }
5261
5269
  }
5262
5270
 
@@ -5326,8 +5334,12 @@ program.command("login").description("Login to OneX platform").action(loginComma
5326
5334
  program.command("logout").description("Logout from OneX platform").action(logoutCommand);
5327
5335
  program.command("whoami").description("Show current logged-in developer").action(whoamiCommand);
5328
5336
  var mcpCmd = program.command("mcp").description("Manage MCP server registration and AI-context files");
5329
- mcpCmd.command("setup").description("Install .mcp.json + CLAUDE.md + AGENTS.md + .cursorrules into the current theme").option("-y, --yes", "Skip confirmation prompts").action(mcpSetupCommand);
5330
- mcpCmd.command("upgrade").description("Refresh AI-context files to the latest version from the bundled template").option("-y, --yes", "Skip confirmation prompts").action(mcpUpgradeCommand);
5337
+ mcpCmd.command("setup").description(
5338
+ "Install .mcp.json + CLAUDE.md + AGENTS.md + .cursorrules into the current theme"
5339
+ ).option("-y, --yes", "Skip confirmation prompts").action(mcpSetupCommand);
5340
+ mcpCmd.command("upgrade").description(
5341
+ "Refresh AI-context files to the latest version from the bundled template"
5342
+ ).option("-y, --yes", "Skip confirmation prompts").action(mcpUpgradeCommand);
5331
5343
  mcpCmd.command("doctor").description("Diagnose MCP setup in the current theme directory").action(mcpDoctorCommand);
5332
5344
  program.command("publish").description("Build, scan, and publish theme to marketplace (requires login)").option("-t, --theme <path>", "Theme directory path").option(
5333
5345
  "--bump <type>",