@icebreakers/monorepo 5.4.9 → 5.5.1

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
@@ -1,4 +1,4 @@
1
- import { b as fs, d as localize, f as message, h as logger, m as supportedLocales, r as cliName, t as initToolingTargets, u as version } from "./types-C-aVvG6i.mjs";
1
+ import { d as message, l as version, m as logger, p as supportedLocales, r as cliName, t as initToolingTargets, u as localize, y as fs } from "./types-B7zNkQpy.mjs";
2
2
  import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
3
3
  import path from "pathe";
4
4
  import process from "node:process";
@@ -10,7 +10,7 @@ import { Command, Option } from "commander";
10
10
  async function handleAiPromptCreate(cwd, opts) {
11
11
  const [{ input }, { createTimestampFolderName, defaultAgenticBaseDir, generateAgenticTemplate, generateAgenticTemplates, loadAgenticTasks }, { resolveCommandConfig }] = await Promise.all([
12
12
  import("@icebreakers/monorepo-templates"),
13
- import("./commands-ChVgQ-MD.mjs").then((n) => n.t),
13
+ import("./commands-CtYIB-DG.mjs").then((n) => n.t),
14
14
  import("./config-p842Knhq.mjs").then((n) => n.n)
15
15
  ]);
16
16
  const aiConfig = await resolveCommandConfig("ai", cwd);
@@ -125,7 +125,7 @@ async function emitConfigInspection(inspection, opts, cwd) {
125
125
  }
126
126
  function registerConfigCommands(program, cwd) {
127
127
  program.command("config").alias("cfg").description(localize("Configuration commands", "配置命令")).command("inspect").description(localize("Show the active repoctl config file and resolved configuration", "输出当前 repoctl 配置文件和已解析配置")).alias("i").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact cwd, configDir, and home paths", "脱敏 cwd/configDir/home 绝对路径后再输出")).action(async (opts) => {
128
- const { inspectMonorepoConfig } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
128
+ const { inspectMonorepoConfig } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
129
129
  await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
130
130
  });
131
131
  }
@@ -445,23 +445,23 @@ async function emitEnvSupportBundle(bundle, opts, cwd) {
445
445
  function registerEnvCommands(program, cwd) {
446
446
  const envCommand = program.command("env").alias("e").description(localize("Environment and support commands", "环境命令"));
447
447
  envCommand.command("info").description(localize("Show environment information for the current repository", "输出当前仓库环境信息")).alias("i").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).action(async (opts) => {
448
- const { collectEnvInfo } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
448
+ const { collectEnvInfo } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
449
449
  await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
450
450
  });
451
451
  envCommand.command("snapshot").description(localize("Create a support snapshot with environment, doctor, and check data", "输出排障快照,包含环境、doctor 和 check 计划")).alias("s").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Fail when doctor reports a failure or warning", "输出快照后,如果 doctor 有 fail 或 warn 则返回失败码")).action(async (opts) => {
452
- const { collectEnvSnapshot } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
452
+ const { collectEnvSnapshot } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
453
453
  await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
454
454
  });
455
455
  envCommand.command("paths").description(localize("Show important repository and report paths", "输出当前仓库关键路径和报告建议位置")).alias("p").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).action(async (opts) => {
456
- const { collectEnvPaths } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
456
+ const { collectEnvPaths } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
457
457
  await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
458
458
  });
459
459
  envCommand.command("support").description(localize("Create a complete support bundle", "输出完整排障包,包含环境、路径、配置、doctor 和 check 计划")).alias("b").option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Fail when doctor reports a failure or warning", "输出排障包后,如果 doctor 有 fail 或 warn 则返回失败码")).action(async (opts) => {
460
- const { collectEnvSupportBundle } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
460
+ const { collectEnvSupportBundle } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
461
461
  await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
462
462
  });
463
463
  envCommand.command("mirror").description(localize("Configure the VS Code binary mirror", "设置 VS Code binary mirror")).alias("m").action(async () => {
464
- const { setVscodeBinaryMirror } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
464
+ const { setVscodeBinaryMirror } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
465
465
  await setVscodeBinaryMirror(cwd);
466
466
  logger.success(localize("Environment mirror finished.", "环境镜像完成。"));
467
467
  });
@@ -470,7 +470,7 @@ function registerEnvCommands(program, cwd) {
470
470
  //#region src/cli/commands/package.ts
471
471
  function registerPackageCommands(program, cwd) {
472
472
  program.command("package").alias("pkg").description(localize("Package commands", "子包命令")).command("create").description(localize("Create a new workspace package", "创建一个新的子包")).alias("new").argument("[name]").option("-t, --template <template>", localize("Use a template key without prompting", "直接使用指定模板,跳过模板选择")).option("--dry-run", localize("Preview without writing files", "预览将要创建的目录与 package 信息,不写入文件")).option("--json", localize("Output JSON; implies --dry-run", "以 JSON 输出创建预览,隐含 --dry-run")).option("--out <file>", localize("Write the preview to a file; implies --dry-run", "把创建预览写入文件,隐含 --dry-run")).action(async (inputName, opts) => {
473
- const { runCreateFlow } = await import("./create-flow-BiiHvQTm.mjs");
473
+ const { runCreateFlow } = await import("./create-flow-Bj8v-mjF.mjs");
474
474
  const result = await runCreateFlow(cwd, inputName, {
475
475
  ...opts.template !== void 0 ? { template: opts.template } : {},
476
476
  ...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
@@ -500,21 +500,22 @@ async function resolveReleaseOptions(cwd) {
500
500
  }
501
501
  function registerReleaseCommands(program, cwd) {
502
502
  const releaseCommand = program.command("release").description(localize("Release and pnpm versioning commands", "发布与 pnpm versioning 工具集"));
503
- releaseCommand.command("ci").description(localize("Prepare, publish, or recover versions in CI", "在 CI 中自动准备、发布和恢复版本")).option("--mode <mode>", localize("auto / prepare / publish / publish-unpublished", "auto / prepare / publish / publish-unpublished"), "auto").option("--package <name>", localize("Package used by publish-unpublished mode", "publish-unpublished 使用的 package")).option("--version <version>", localize("Version used by publish-unpublished mode", "publish-unpublished 使用的版本")).action(async (opts) => {
503
+ releaseCommand.command("ci").description(localize("Prepare, publish, or recover versions in CI", "在 CI 中自动准备、发布和恢复版本")).option("--mode <mode>", localize("auto / prepare / publish / publish-unpublished / reconcile", "auto / prepare / publish / publish-unpublished / reconcile"), "auto").option("--package <name>", localize("Package used by publish-unpublished mode", "publish-unpublished 使用的 package")).option("--version <version>", localize("Version used by publish-unpublished mode", "publish-unpublished 使用的版本")).option("--dry-run", localize("Preview reconcile changes without updating GitHub", "只预览 reconcile 变更,不更新 GitHub")).action(async (opts) => {
504
504
  await runReleaseAction(async () => {
505
- const { releaseCi } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
505
+ const { releaseCi } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
506
506
  await releaseCi({
507
507
  ...await resolveReleaseOptions(cwd),
508
508
  ...opts.mode ? { mode: opts.mode } : {},
509
509
  ...opts.package ? { packageName: opts.package } : {},
510
- ...opts.version ? { packageVersion: opts.version } : {}
510
+ ...opts.version ? { packageVersion: opts.version } : {},
511
+ ...opts.dryRun ? { dryRun: true } : {}
511
512
  });
512
513
  logger.success(localize("Release CI finished.", "Release CI 完成。"));
513
514
  });
514
515
  });
515
516
  releaseCommand.command("notes").description(localize("Manage GitHub Release notes", "维护 GitHub Release 正文")).command("repair").description(localize("Rebuild GitHub Release notes from the changelog for each release tag", "按每个发布 tag 对应的 changelog 重建 GitHub Release 正文")).option("--all", localize("Repair every recognized GitHub Release", "修复所有可识别的 GitHub Release")).option("--tag <package@version>", localize("Repair only the specified package@version", "只修复指定 package@version")).option("--dry-run", localize("Generate and summarize without updating GitHub Releases", "只生成并统计,不更新 GitHub Release")).action(async (opts) => {
516
517
  await runReleaseAction(async () => {
517
- const { repairReleaseNotes } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
518
+ const { repairReleaseNotes } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
518
519
  const result = await repairReleaseNotes({
519
520
  cwd,
520
521
  ...opts.all ? { all: true } : {},
@@ -526,7 +527,7 @@ function registerReleaseCommands(program, cwd) {
526
527
  });
527
528
  const stableCommand = releaseCommand.command("stable").description(localize("Run a stable release from main", "在 main 分支执行正式发布")).action(async () => {
528
529
  await runReleaseAction(async () => {
529
- const { releaseCi } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
530
+ const { releaseCi } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
530
531
  await releaseCi({
531
532
  ...await resolveReleaseOptions(cwd),
532
533
  mode: "publish"
@@ -536,7 +537,7 @@ function registerReleaseCommands(program, cwd) {
536
537
  });
537
538
  stableCommand.command("prepare").description(localize("Consume pnpm change intents and prepare a Release PR", "消费 pnpm change intents 并准备 Release PR")).action(async () => {
538
539
  await runReleaseAction(async () => {
539
- const { releaseCi } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
540
+ const { releaseCi } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
540
541
  await releaseCi({
541
542
  ...await resolveReleaseOptions(cwd),
542
543
  mode: "prepare"
@@ -546,7 +547,7 @@ function registerReleaseCommands(program, cwd) {
546
547
  });
547
548
  stableCommand.command("publish").description(localize("Publish versions on main that are not yet on npm", "发布 main 分支上尚未发布的包")).action(async () => {
548
549
  await runReleaseAction(async () => {
549
- const { releaseCi } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
550
+ const { releaseCi } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
550
551
  await releaseCi({
551
552
  ...await resolveReleaseOptions(cwd),
552
553
  mode: "publish"
@@ -557,21 +558,21 @@ function registerReleaseCommands(program, cwd) {
557
558
  const preCommand = releaseCommand.command("pre").description(localize("Run or manage prereleases", "执行或管理 prerelease 发布"));
558
559
  preCommand.command("publish").alias("run").description(localize("Publish a prerelease from an alpha, beta, rc, or next lane", "在 alpha/beta/rc/next 分支发布 prerelease")).action(async () => {
559
560
  await runReleaseAction(async () => {
560
- const { releaseCi } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
561
+ const { releaseCi } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
561
562
  await releaseCi(await resolveReleaseOptions(cwd));
562
563
  logger.success(localize("Prerelease finished.", "预发布完成。"));
563
564
  });
564
565
  });
565
566
  preCommand.command("enter").description(localize("Enter a pnpm prerelease lane", "进入 pnpm prerelease lane")).argument("<tag>", localize("alpha / beta / rc / next", "alpha / beta / rc / next")).action(async (tag) => {
566
567
  await runReleaseAction(async () => {
567
- const { enterPrerelease } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
568
+ const { enterPrerelease } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
568
569
  await enterPrerelease(tag, { cwd });
569
570
  logger.success(localize(`Entered ${tag} prerelease mode.`, `已进入 ${tag} 预发布模式。`));
570
571
  });
571
572
  });
572
573
  preCommand.command("exit").description(localize("Exit the pnpm prerelease lane", "退出 pnpm prerelease lane")).action(async () => {
573
574
  await runReleaseAction(async () => {
574
- const { exitPrerelease } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
575
+ const { exitPrerelease } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
575
576
  await exitPrerelease({ cwd });
576
577
  logger.success(localize("Exited prerelease mode.", "已退出预发布模式。"));
577
578
  });
@@ -579,15 +580,24 @@ function registerReleaseCommands(program, cwd) {
579
580
  }
580
581
  //#endregion
581
582
  //#region src/cli/commands/skills.ts
582
- const skillTargets = ["codex", "claude"];
583
+ const skillTargets = [
584
+ "codex",
585
+ "claude",
586
+ "cursor",
587
+ "agents",
588
+ "grok"
589
+ ];
583
590
  function registerSkillsCommands(program, cwd) {
584
- program.command("skills").alias("sk").description(localize("AI skill commands", "技能工具集")).command("sync").description(localize("Synchronize the repoctl skill to global agent directories", "同步 resources/skills/icebreakers-monorepo-cli 到全局目录")).alias("s").option("--codex", localize("Synchronize to ~/.codex/skills", "同步到 ~/.codex/skills")).option("--claude", localize("Synchronize to ~/.claude/skills", "同步到 ~/.claude/skills")).option("--all", localize("Synchronize every target", "同步全部目标")).action(async (opts) => {
585
- const { syncSkills } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
591
+ program.command("skills").alias("sk").description(localize("AI skill commands", "技能工具集")).command("sync").description(localize("Synchronize the repoctl skill to global agent directories", "同步 resources/skills/repoctl 到全局目录")).alias("s").option("--codex", localize("Synchronize to ~/.codex/skills", "同步到 ~/.codex/skills")).option("--claude", localize("Synchronize to ~/.claude/skills", "同步到 ~/.claude/skills")).option("--cursor", localize("Synchronize to ~/.cursor/skills", "同步到 ~/.cursor/skills")).option("--agents", localize("Synchronize to ~/.agents/skills", "同步到 ~/.agents/skills")).option("--grok", localize("Synchronize to ~/.grok/skills", "同步到 ~/.grok/skills")).option("--all", localize("Synchronize every target", "同步全部目标")).action(async (opts) => {
592
+ const { syncSkills } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
586
593
  const selected = /* @__PURE__ */ new Set();
587
594
  if (opts.all) for (const target of skillTargets) selected.add(target);
588
595
  else {
589
596
  if (opts.codex) selected.add("codex");
590
597
  if (opts.claude) selected.add("claude");
598
+ if (opts.cursor) selected.add("cursor");
599
+ if (opts.agents) selected.add("agents");
600
+ if (opts.grok) selected.add("grok");
591
601
  }
592
602
  const results = await syncSkills(selected.size ? {
593
603
  cwd,
@@ -702,7 +712,7 @@ function registerTemplatesCommands(program) {
702
712
  program.command("templates").alias("tpl").description(localize("List the built-in templates", "列出可用的内置模板")).argument("[key]", localize("Show details for a template key", "查看指定模板详情")).option("-c, --category <category>", localize("Filter by library, app, service, docs, or tool", "按模板分类过滤:library / app / service / docs / tool")).option("--check", localize("Check built-in template metadata and directories", "检查内置模板元数据、目录和临时文件")).option("--json", localize("Output JSON for scripts", "输出 JSON,方便脚本消费")).option("--markdown", localize("Output Markdown for documentation", "输出 Markdown,方便同步文档")).option("--out <file>", localize("Write output to a file", "把当前输出写入文件")).action(async (key, opts) => {
703
713
  const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
704
714
  if (opts.check) {
705
- const { checkTemplates } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
715
+ const { checkTemplates } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
706
716
  const report = await checkTemplates();
707
717
  if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
708
718
  else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
@@ -781,7 +791,7 @@ function normalizeToolingTargets(tooling) {
781
791
  function registerToolingCommands(program, cwd) {
782
792
  program.command("tooling").alias("tg").description(localize("Tooling configuration commands", "工程化配置命令")).command("init").description(localize(`Generate tooling configuration (${initToolingTargets.join(", ")})`, `生成 tooling 配置(可选值:${initToolingTargets.join(", ")})`)).alias("i").argument("[tooling...]").option("-a, --all", localize("Generate every tooling configuration", "生成全部 tooling 配置")).option("-f, --force", localize("Overwrite existing tooling configuration files", "覆盖已存在的 tooling 配置文件")).action(async (tooling = [], opts) => {
783
793
  const normalizedTooling = normalizeToolingTargets(tooling);
784
- const { initTooling } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
794
+ const { initTooling } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
785
795
  await initTooling(cwd, {
786
796
  ...normalizedTooling ? { targets: normalizedTooling } : {},
787
797
  ...opts.all !== void 0 ? { all: opts.all } : {},
@@ -952,7 +962,7 @@ async function emitCheckPlan(plan, opts, cwd) {
952
962
  }
953
963
  function registerTopLevelCommands(program, cwd) {
954
964
  program.command("init").description(localize("Initialize the current workspace with recommended configuration", "初始化当前 workspace,并生成推荐配置")).option("--preset <preset>", localize("Initialization preset: minimal or standard", "初始化预设:minimal / standard"), "standard").option("-f, --force", localize("Overwrite existing tooling configuration files", "覆盖已存在的 tooling 配置文件")).option("--overwrite", localize("Overwrite existing managed files", "覆盖受管的已存在文件")).option("-y, --yes", localize("Use defaults without prompting; suitable for CI", "使用默认值跳过所有交互,适合 CI")).action(async (opts) => {
955
- const { init } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
965
+ const { init } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
956
966
  await init(cwd, {
957
967
  ...opts.preset !== void 0 ? { preset: opts.preset } : {},
958
968
  ...opts.force !== void 0 ? { force: opts.force } : {},
@@ -963,7 +973,7 @@ function registerTopLevelCommands(program, cwd) {
963
973
  logger.info(localize("Next: run `pnpm install` and `pnpm build`.", "下一步:运行 `pnpm install` 和 `pnpm build`。"));
964
974
  });
965
975
  program.command("new").description(localize("Create a new package or application", "创建新的 package / app")).argument("[name]").option("-t, --template <template>", localize("Use a template key without prompting", "直接使用指定模板,跳过模板选择")).option("--dry-run", localize("Preview directories and package metadata without writing", "预览将要创建的目录与 package 信息,不写入文件")).option("--json", localize("Output the creation preview as JSON; implies --dry-run", "以 JSON 输出创建预览,隐含 --dry-run")).option("--out <file>", localize("Write the creation preview to a file; implies --dry-run", "把创建预览写入文件,隐含 --dry-run")).action(async (inputName, opts) => {
966
- const { runCreateFlow } = await import("./create-flow-BiiHvQTm.mjs");
976
+ const { runCreateFlow } = await import("./create-flow-Bj8v-mjF.mjs");
967
977
  const result = await runCreateFlow(cwd, inputName, {
968
978
  ...opts.template !== void 0 ? { template: opts.template } : {},
969
979
  ...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
@@ -981,10 +991,10 @@ function registerTopLevelCommands(program, cwd) {
981
991
  ...opts.staged !== void 0 ? { staged: opts.staged } : {},
982
992
  ...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
983
993
  };
984
- const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
994
+ const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
985
995
  if (opts.dryRun || opts.json || opts.markdown || opts.out) {
986
996
  if (opts.full) {
987
- const { resolveFullWorkspaceCheckPlan } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
997
+ const { resolveFullWorkspaceCheckPlan } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
988
998
  await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
989
999
  return;
990
1000
  }
@@ -995,7 +1005,7 @@ function registerTopLevelCommands(program, cwd) {
995
1005
  logger.success(localize("Checks finished.", "检查完成。"));
996
1006
  });
997
1007
  program.command("doctor").description(localize("Diagnose whether the current repository is ready to use", "诊断当前仓库是否适合直接开始使用")).option("--json", localize("Output JSON for CI or scripts", "输出 JSON 报告,方便 CI 或脚本消费")).option("--markdown", localize("Output Markdown for an issue or pull request", "输出 Markdown 报告,方便粘贴到 issue 或 PR")).option("--out <file>", localize("Write the diagnostic report to a file", "把诊断报告写入文件")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--strict", localize("Treat warnings as failures", "把 warning 也视为失败,适合 CI 门禁")).action(async (opts) => {
998
- const { runDoctor } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1008
+ const { runDoctor } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
999
1009
  const report = await runDoctor(cwd);
1000
1010
  await emitDoctorReport(report, opts, cwd);
1001
1011
  if (opts.out || opts.json || opts.markdown) {
@@ -1018,7 +1028,7 @@ function registerTopLevelCommands(program, cwd) {
1018
1028
  logger.success(localize("Doctor finished.", "Doctor 诊断完成。"));
1019
1029
  });
1020
1030
  program.command("upgrade").description(localize("Synchronize standard repository assets and scripts", "同步仓库标准资产与脚本")).option("-i,--interactive", localize("Select managed files interactively", "交互式选择受管文件")).option("-c,--core", localize("Synchronize core configuration without GitHub assets", "仅同步核心配置,跳过 GitHub 相关资产")).option("--outDir <dir>", localize("Output directory", "输出目录")).option("-s,--skip-overwrite", localize("Preserve existing files", "保留已存在文件")).option("-y, --yes", localize("Skip prompts and overwrite drifted managed assets", "跳过交互并覆盖 drifted 标准资产")).option("--overwrite", localize("Overwrite drifted managed assets", "覆盖 drifted 标准资产")).option("--no-overwrite", localize("Preserve drifted managed assets", "不覆盖 drifted 标准资产")).option("--overwrite-release", localize("Overwrite an unmarked custom release workflow", "覆盖未标记的自定义 release workflow")).action(async (opts) => {
1021
- const { upgradeMonorepo } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1031
+ const { upgradeMonorepo } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1022
1032
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1023
1033
  logger.success(localize("Upgrade finished.", "升级完成。"));
1024
1034
  });
@@ -1028,22 +1038,22 @@ function registerTopLevelCommands(program, cwd) {
1028
1038
  function registerVerifyCommands(program, cwd) {
1029
1039
  const verifyCommand = program.command("verify").alias("v").description(localize("Local verification commands", "本地校验工具集"));
1030
1040
  verifyCommand.command("pre-push").description(localize("Run build, test, and tsd checks for pushed changes", "按推送变更范围执行 build/test/tsd 校验")).alias("push").action(async () => {
1031
- const { verifyPrePush } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1041
+ const { verifyPrePush } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1032
1042
  await verifyPrePush({ cwd });
1033
1043
  });
1034
1044
  verifyCommand.command("pre-commit").description(localize("Run lint-staged verification", "执行 lint-staged 校验")).alias("commit").action(async () => {
1035
- const { verifyPreCommit } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1045
+ const { verifyPreCommit } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1036
1046
  await verifyPreCommit({ cwd });
1037
1047
  });
1038
1048
  verifyCommand.command("commit-msg").description(localize("Run commitlint verification", "执行 commitlint 校验")).alias("msg").argument("<edit-file>").action(async (editFile) => {
1039
- const { verifyCommitMsg } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1049
+ const { verifyCommitMsg } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1040
1050
  await verifyCommitMsg({
1041
1051
  cwd,
1042
1052
  editFile
1043
1053
  });
1044
1054
  });
1045
1055
  verifyCommand.command("staged-typecheck").description(localize("Run typecheck in workspaces containing staged files", "按暂存文件所在 workspace 执行 typecheck")).alias("tc").argument("[files...]").action(async (files = []) => {
1046
- const { verifyStagedTypecheck } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1056
+ const { verifyStagedTypecheck } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1047
1057
  verifyStagedTypecheck(files, { cwd });
1048
1058
  });
1049
1059
  }
@@ -1122,12 +1132,12 @@ async function emitWorkspaceList(result, opts) {
1122
1132
  function registerWorkspaceCommands(program, cwd) {
1123
1133
  const workspaceCommand = program.command("workspace").alias("ws").description(localize("Workspace commands", "工作区命令"));
1124
1134
  workspaceCommand.command("upgrade").description(localize("Upgrade or synchronize monorepo packages", "升级/同步 monorepo 相关包")).alias("up").option("-i,--interactive", localize("Select managed files interactively", "交互式选择受管文件")).option("-c,--core", localize("Synchronize core configuration without GitHub assets", "仅同步核心配置,跳过 GitHub 相关资产")).option("--outDir <dir>", localize("Output directory", "输出目录")).option("-s,--skip-overwrite", localize("Preserve existing files", "保留已存在文件")).option("-y, --yes", localize("Skip prompts and overwrite drifted managed assets", "跳过交互并覆盖 drifted 标准资产")).option("--overwrite", localize("Overwrite drifted managed assets", "覆盖 drifted 标准资产")).option("--no-overwrite", localize("Preserve drifted managed assets", "不覆盖 drifted 标准资产")).option("--overwrite-release", localize("Overwrite an unmarked custom release workflow", "覆盖未标记的自定义 release workflow")).action(async (opts) => {
1125
- const { upgradeMonorepo } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1135
+ const { upgradeMonorepo } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1126
1136
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1127
1137
  logger.success(localize("Workspace upgrade finished.", "Workspace 升级完成。"));
1128
1138
  });
1129
1139
  workspaceCommand.command("init").description(localize("Initialize workspace metadata and repository files", "初始化工作区元信息(README、package.json、pnpm intent、issue template)")).alias("i").action(async () => {
1130
- const { initMetadata } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1140
+ const { initMetadata } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1131
1141
  await initMetadata(cwd);
1132
1142
  logger.success(localize("Workspace initialization finished.", "Workspace 初始化完成。"));
1133
1143
  });
@@ -1140,7 +1150,7 @@ function registerWorkspaceCommands(program, cwd) {
1140
1150
  }), opts);
1141
1151
  });
1142
1152
  workspaceCommand.command("clean").description(localize("Remove selected workspace packages", "清除选中的包")).alias("rm").option("-y, --yes", localize("Skip prompts and clean immediately", "跳过交互直接清理(等价 autoConfirm)")).option("--include-private", localize("Include private packages", "包含 private 包")).option("--pinned-version <version>", localize("Override the repoctl version written to the root package", "覆盖写入的 repoctl 版本")).action(async (opts) => {
1143
- const { cleanProjects } = await import("./commands-ChVgQ-MD.mjs").then((n) => n.t);
1153
+ const { cleanProjects } = await import("./commands-CtYIB-DG.mjs").then((n) => n.t);
1144
1154
  await cleanProjects(cwd, normalizeCleanOptions(opts));
1145
1155
  logger.success(localize("Workspace cleanup finished.", "Workspace 清理完成。"));
1146
1156
  });