@icebreakers/monorepo 5.3.0 → 5.4.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/README.md CHANGED
@@ -29,4 +29,4 @@ Tooling wrappers are available from either `@icebreakers/monorepo/tooling` or th
29
29
 
30
30
  This package retains the `repo` and `repoctl` bins for existing installations. New user documentation recommends the `repoctl` package; the command surface is shared.
31
31
 
32
- Documentation: https://repo.icebreaker.top
32
+ Documentation: https://repoctl.icebreaker.top
package/README.zh-CN.md CHANGED
@@ -20,4 +20,4 @@ const report = await runDoctor(workspace.workspaceDir)
20
20
 
21
21
  本包为已有安装保留 `repo` 和 `repoctl` bin。新用户文档统一推荐 `repoctl` 包。
22
22
 
23
- 文档:https://repo.icebreaker.top
23
+ 文档:https://repoctl.icebreaker.top
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-CGwtAKfx.mjs";
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-B65KhEtV.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-D7bVEzen.mjs").then((n) => n.t),
13
+ import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
128
+ const { inspectMonorepoConfig } = await import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
448
+ const { collectEnvInfo } = await import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
452
+ const { collectEnvSnapshot } = await import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
456
+ const { collectEnvPaths } = await import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
460
+ const { collectEnvSupportBundle } = await import("./commands-DuQtsnlm.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-D7bVEzen.mjs").then((n) => n.t);
464
+ const { setVscodeBinaryMirror } = await import("./commands-DuQtsnlm.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-DbgrqNec.mjs");
473
+ const { runCreateFlow } = await import("./create-flow-CbTjaQqY.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 } : {},
@@ -502,7 +502,7 @@ function registerReleaseCommands(program, cwd) {
502
502
  const releaseCommand = program.command("release").description(localize("Release and pnpm versioning commands", "发布与 pnpm versioning 工具集"));
503
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) => {
504
504
  await runReleaseAction(async () => {
505
- const { releaseCi } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
505
+ const { releaseCi } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
506
506
  await releaseCi({
507
507
  ...await resolveReleaseOptions(cwd),
508
508
  ...opts.mode ? { mode: opts.mode } : {},
@@ -514,7 +514,7 @@ function registerReleaseCommands(program, cwd) {
514
514
  });
515
515
  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
516
  await runReleaseAction(async () => {
517
- const { repairReleaseNotes } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
517
+ const { repairReleaseNotes } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
518
518
  const result = await repairReleaseNotes({
519
519
  cwd,
520
520
  ...opts.all ? { all: true } : {},
@@ -526,7 +526,7 @@ function registerReleaseCommands(program, cwd) {
526
526
  });
527
527
  const stableCommand = releaseCommand.command("stable").description(localize("Run a stable release from main", "在 main 分支执行正式发布")).action(async () => {
528
528
  await runReleaseAction(async () => {
529
- const { releaseCi } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
529
+ const { releaseCi } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
530
530
  await releaseCi({
531
531
  ...await resolveReleaseOptions(cwd),
532
532
  mode: "publish"
@@ -536,7 +536,7 @@ function registerReleaseCommands(program, cwd) {
536
536
  });
537
537
  stableCommand.command("prepare").description(localize("Consume pnpm change intents and prepare a Release PR", "消费 pnpm change intents 并准备 Release PR")).action(async () => {
538
538
  await runReleaseAction(async () => {
539
- const { releaseCi } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
539
+ const { releaseCi } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
540
540
  await releaseCi({
541
541
  ...await resolveReleaseOptions(cwd),
542
542
  mode: "prepare"
@@ -546,7 +546,7 @@ function registerReleaseCommands(program, cwd) {
546
546
  });
547
547
  stableCommand.command("publish").description(localize("Publish versions on main that are not yet on npm", "发布 main 分支上尚未发布的包")).action(async () => {
548
548
  await runReleaseAction(async () => {
549
- const { releaseCi } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
549
+ const { releaseCi } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
550
550
  await releaseCi({
551
551
  ...await resolveReleaseOptions(cwd),
552
552
  mode: "publish"
@@ -557,21 +557,21 @@ function registerReleaseCommands(program, cwd) {
557
557
  const preCommand = releaseCommand.command("pre").description(localize("Run or manage prereleases", "执行或管理 prerelease 发布"));
558
558
  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
559
  await runReleaseAction(async () => {
560
- const { releaseCi } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
560
+ const { releaseCi } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
561
561
  await releaseCi(await resolveReleaseOptions(cwd));
562
562
  logger.success(localize("Prerelease finished.", "预发布完成。"));
563
563
  });
564
564
  });
565
565
  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
566
  await runReleaseAction(async () => {
567
- const { enterPrerelease } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
567
+ const { enterPrerelease } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
568
568
  await enterPrerelease(tag, { cwd });
569
569
  logger.success(localize(`Entered ${tag} prerelease mode.`, `已进入 ${tag} 预发布模式。`));
570
570
  });
571
571
  });
572
572
  preCommand.command("exit").description(localize("Exit the pnpm prerelease lane", "退出 pnpm prerelease lane")).action(async () => {
573
573
  await runReleaseAction(async () => {
574
- const { exitPrerelease } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
574
+ const { exitPrerelease } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
575
575
  await exitPrerelease({ cwd });
576
576
  logger.success(localize("Exited prerelease mode.", "已退出预发布模式。"));
577
577
  });
@@ -582,7 +582,7 @@ function registerReleaseCommands(program, cwd) {
582
582
  const skillTargets = ["codex", "claude"];
583
583
  function registerSkillsCommands(program, cwd) {
584
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-D7bVEzen.mjs").then((n) => n.t);
585
+ const { syncSkills } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
586
586
  const selected = /* @__PURE__ */ new Set();
587
587
  if (opts.all) for (const target of skillTargets) selected.add(target);
588
588
  else {
@@ -702,7 +702,7 @@ function registerTemplatesCommands(program) {
702
702
  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
703
  const { getTemplateChoice, getTemplateChoices, isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
704
704
  if (opts.check) {
705
- const { checkTemplates } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
705
+ const { checkTemplates } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
706
706
  const report = await checkTemplates();
707
707
  if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
708
708
  else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
@@ -781,7 +781,7 @@ function normalizeToolingTargets(tooling) {
781
781
  function registerToolingCommands(program, cwd) {
782
782
  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
783
  const normalizedTooling = normalizeToolingTargets(tooling);
784
- const { initTooling } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
784
+ const { initTooling } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
785
785
  await initTooling(cwd, {
786
786
  ...normalizedTooling ? { targets: normalizedTooling } : {},
787
787
  ...opts.all !== void 0 ? { all: opts.all } : {},
@@ -952,7 +952,7 @@ async function emitCheckPlan(plan, opts, cwd) {
952
952
  }
953
953
  function registerTopLevelCommands(program, cwd) {
954
954
  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-D7bVEzen.mjs").then((n) => n.t);
955
+ const { init } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
956
956
  await init(cwd, {
957
957
  ...opts.preset !== void 0 ? { preset: opts.preset } : {},
958
958
  ...opts.force !== void 0 ? { force: opts.force } : {},
@@ -963,7 +963,7 @@ function registerTopLevelCommands(program, cwd) {
963
963
  logger.info(localize("Next: run `pnpm install` and `pnpm build`.", "下一步:运行 `pnpm install` 和 `pnpm build`。"));
964
964
  });
965
965
  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-DbgrqNec.mjs");
966
+ const { runCreateFlow } = await import("./create-flow-CbTjaQqY.mjs");
967
967
  const result = await runCreateFlow(cwd, inputName, {
968
968
  ...opts.template !== void 0 ? { template: opts.template } : {},
969
969
  ...opts.dryRun || opts.json || opts.out ? { dryRun: true } : {},
@@ -981,10 +981,10 @@ function registerTopLevelCommands(program, cwd) {
981
981
  ...opts.staged !== void 0 ? { staged: opts.staged } : {},
982
982
  ...opts.editFile !== void 0 ? { editFile: opts.editFile } : {}
983
983
  };
984
- const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
984
+ const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
985
985
  if (opts.dryRun || opts.json || opts.markdown || opts.out) {
986
986
  if (opts.full) {
987
- const { resolveFullWorkspaceCheckPlan } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
987
+ const { resolveFullWorkspaceCheckPlan } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
988
988
  await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
989
989
  return;
990
990
  }
@@ -995,7 +995,7 @@ function registerTopLevelCommands(program, cwd) {
995
995
  logger.success(localize("Checks finished.", "检查完成。"));
996
996
  });
997
997
  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-D7bVEzen.mjs").then((n) => n.t);
998
+ const { runDoctor } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
999
999
  const report = await runDoctor(cwd);
1000
1000
  await emitDoctorReport(report, opts, cwd);
1001
1001
  if (opts.out || opts.json || opts.markdown) {
@@ -1018,7 +1018,7 @@ function registerTopLevelCommands(program, cwd) {
1018
1018
  logger.success(localize("Doctor finished.", "Doctor 诊断完成。"));
1019
1019
  });
1020
1020
  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-D7bVEzen.mjs").then((n) => n.t);
1021
+ const { upgradeMonorepo } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1022
1022
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1023
1023
  logger.success(localize("Upgrade finished.", "升级完成。"));
1024
1024
  });
@@ -1028,22 +1028,22 @@ function registerTopLevelCommands(program, cwd) {
1028
1028
  function registerVerifyCommands(program, cwd) {
1029
1029
  const verifyCommand = program.command("verify").alias("v").description(localize("Local verification commands", "本地校验工具集"));
1030
1030
  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-D7bVEzen.mjs").then((n) => n.t);
1031
+ const { verifyPrePush } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1032
1032
  await verifyPrePush({ cwd });
1033
1033
  });
1034
1034
  verifyCommand.command("pre-commit").description(localize("Run lint-staged verification", "执行 lint-staged 校验")).alias("commit").action(async () => {
1035
- const { verifyPreCommit } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
1035
+ const { verifyPreCommit } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1036
1036
  await verifyPreCommit({ cwd });
1037
1037
  });
1038
1038
  verifyCommand.command("commit-msg").description(localize("Run commitlint verification", "执行 commitlint 校验")).alias("msg").argument("<edit-file>").action(async (editFile) => {
1039
- const { verifyCommitMsg } = await import("./commands-D7bVEzen.mjs").then((n) => n.t);
1039
+ const { verifyCommitMsg } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1040
1040
  await verifyCommitMsg({
1041
1041
  cwd,
1042
1042
  editFile
1043
1043
  });
1044
1044
  });
1045
1045
  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-D7bVEzen.mjs").then((n) => n.t);
1046
+ const { verifyStagedTypecheck } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1047
1047
  verifyStagedTypecheck(files, { cwd });
1048
1048
  });
1049
1049
  }
@@ -1122,12 +1122,12 @@ async function emitWorkspaceList(result, opts) {
1122
1122
  function registerWorkspaceCommands(program, cwd) {
1123
1123
  const workspaceCommand = program.command("workspace").alias("ws").description(localize("Workspace commands", "工作区命令"));
1124
1124
  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-D7bVEzen.mjs").then((n) => n.t);
1125
+ const { upgradeMonorepo } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1126
1126
  await upgradeMonorepo(normalizeCliOpts(cwd, opts));
1127
1127
  logger.success(localize("Workspace upgrade finished.", "Workspace 升级完成。"));
1128
1128
  });
1129
1129
  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-D7bVEzen.mjs").then((n) => n.t);
1130
+ const { initMetadata } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1131
1131
  await initMetadata(cwd);
1132
1132
  logger.success(localize("Workspace initialization finished.", "Workspace 初始化完成。"));
1133
1133
  });
@@ -1140,7 +1140,7 @@ function registerWorkspaceCommands(program, cwd) {
1140
1140
  }), opts);
1141
1141
  });
1142
1142
  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-D7bVEzen.mjs").then((n) => n.t);
1143
+ const { cleanProjects } = await import("./commands-DuQtsnlm.mjs").then((n) => n.t);
1144
1144
  await cleanProjects(cwd, normalizeCleanOptions(opts));
1145
1145
  logger.success(localize("Workspace cleanup finished.", "Workspace 清理完成。"));
1146
1146
  });
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
2
  import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries } from "./workspace-MCKewElu.mjs";
3
- import { b as fs$1, c as devDependencies$1, d as localize, h as logger, i as packageDir, n as assetsDir, o as templatesDir, p as resolveRepoctlLocale, s as dependencies, t as initToolingTargets, u as version$1, x as isIgnorableFsError } from "./types-CGwtAKfx.mjs";
3
+ import { b as fs$1, c as devDependencies$1, d as localize, h as logger, i as packageDir, n as assetsDir, o as templatesDir, p as resolveRepoctlLocale, s as dependencies, t as initToolingTargets, u as version$1, x as isIgnorableFsError } from "./types-B65KhEtV.mjs";
4
4
  import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, s as resolveCommandConfig } from "./config-p842Knhq.mjs";
5
5
  import { f as defineTsconfigConfig } from "./tooling-CdZRpvYw.mjs";
6
6
  import gitUrlParse from "git-url-parse";
@@ -1856,7 +1856,7 @@ const packageDependencies = {
1856
1856
  packageManager: "pnpm@11.22.0",
1857
1857
  description: "Source workspace for repoctl, a task-first CLI for pnpm and Turborepo monorepos",
1858
1858
  author: "ice breaker <hi@sonofmagic.top>",
1859
- homepage: "https://repo.icebreaker.top",
1859
+ homepage: "https://repoctl.icebreaker.top",
1860
1860
  repository: {
1861
1861
  "type": "git",
1862
1862
  "url": "git+https://github.com/sonofmagic/repoctl.git"
@@ -1875,6 +1875,7 @@ const packageDependencies = {
1875
1875
  "tooling:build": "turbo run build --filter=@icebreakers/monorepo --filter=repoctl",
1876
1876
  "dev": "turbo run dev --parallel",
1877
1877
  "test": "vitest run",
1878
+ "test:packaged-doctor": "node scripts/smoke-packaged-doctor.mjs",
1878
1879
  "test:dev": "vitest",
1879
1880
  "lint": "pnpm run tooling:build && turbo run lint",
1880
1881
  "tsd": "turbo run tsd",
@@ -2639,7 +2640,7 @@ function hasGitChanges(options) {
2639
2640
  }
2640
2641
  async function hasPendingIntents(cwd) {
2641
2642
  try {
2642
- return (await readdir(path.join(cwd, ".changeset"), { withFileTypes: true })).some((entry) => entry.isFile() && entry.name.endsWith(".md"));
2643
+ return (await readdir(path.join(cwd, ".changeset"), { withFileTypes: true })).some((entry) => entry.isFile() && entry.name.endsWith(".md") && entry.name !== "README.md");
2643
2644
  } catch {
2644
2645
  return false;
2645
2646
  }
@@ -3065,6 +3066,46 @@ var GitHubClient = class {
3065
3066
  }
3066
3067
  };
3067
3068
  //#endregion
3069
+ //#region src/commands/release/workspace-protocol.ts
3070
+ const EXPECTED_WORKSPACE_SPEC = "workspace:*";
3071
+ const DEPENDENCY_SECTIONS = [
3072
+ "dependencies",
3073
+ "devDependencies",
3074
+ "optionalDependencies",
3075
+ "peerDependencies"
3076
+ ];
3077
+ function displayPath(workspaceDir, packagePath) {
3078
+ return path.relative(workspaceDir, packagePath).replaceAll("\\", "/");
3079
+ }
3080
+ function collectWorkspaceProtocolViolations(options) {
3081
+ const violations = [];
3082
+ for (const entry of options.packages) {
3083
+ if (entry.packageJson.private === true || typeof entry.packageJson.name !== "string") continue;
3084
+ for (const section of DEPENDENCY_SECTIONS) {
3085
+ const dependencies = entry.packageJson[section];
3086
+ if (!dependencies) continue;
3087
+ for (const [dependencyName, spec] of Object.entries(dependencies)) if (options.workspacePackageNames.has(dependencyName) && spec !== EXPECTED_WORKSPACE_SPEC) violations.push(`${displayPath(options.workspaceDir, entry.file)} -> ${section}.${dependencyName}=${spec}`);
3088
+ }
3089
+ }
3090
+ return violations;
3091
+ }
3092
+ async function readPackageManifest(file) {
3093
+ return JSON.parse(await readFile(file, "utf8"));
3094
+ }
3095
+ async function assertWorkspaceDependencyProtocols(cwd) {
3096
+ const { workspaceDir, packages } = await getWorkspaceData(cwd, { ignorePrivatePackage: false });
3097
+ const manifests = await Promise.all(packages.map(async (pkg) => ({
3098
+ file: pkg.pkgJsonPath,
3099
+ packageJson: await readPackageManifest(pkg.pkgJsonPath)
3100
+ })));
3101
+ const violations = collectWorkspaceProtocolViolations({
3102
+ workspaceDir,
3103
+ packages: manifests,
3104
+ workspacePackageNames: new Set(manifests.map(({ packageJson }) => packageJson.name).filter((name) => typeof name === "string"))
3105
+ });
3106
+ if (violations.length > 0) throw new ReleaseCommandError([`Expected publishable workspace dependencies to use ${EXPECTED_WORKSPACE_SPEC}:`, ...violations.map((violation) => `- ${violation}`)].join("\n"));
3107
+ }
3108
+ //#endregion
3068
3109
  //#region src/commands/release/hooks.ts
3069
3110
  const defaultQualityScripts = [
3070
3111
  "build",
@@ -3085,21 +3126,30 @@ function runScripts(scripts, options, extraEnv) {
3085
3126
  } } : {}
3086
3127
  });
3087
3128
  }
3088
- function runQualityScripts(options) {
3129
+ async function runQualityScripts(options) {
3130
+ await assertWorkspaceDependencyProtocols(options.cwd);
3089
3131
  runScripts(options.config?.qualityScripts ?? defaultQualityScripts, options);
3132
+ runScripts(options.config?.hooks?.verify ?? [], options);
3090
3133
  }
3091
3134
  function runReleaseHooks(phase, options) {
3092
3135
  runScripts(options.config?.hooks?.[phase] ?? [], options);
3093
3136
  }
3094
3137
  function runAfterPublishHooks(packages, options) {
3095
- runScripts(options.config?.hooks?.afterPublish ?? [], options, {
3138
+ if (!packages.length) return;
3139
+ const extraEnv = {
3096
3140
  REPO_RELEASE_PUBLISHED_PACKAGES: JSON.stringify(packages),
3097
3141
  REPO_RELEASE_PUBLISH_SUMMARY: path.resolve(options.cwd, "pnpm-publish-summary.json")
3098
- });
3142
+ };
3143
+ for (const hook of options.config?.hooks?.afterPublish ?? []) try {
3144
+ runScripts([hook.script], options, extraEnv);
3145
+ } catch (error) {
3146
+ if (!hook.continueOnError) throw error;
3147
+ logger.warn(`release afterPublish hook failed and was ignored: ${hook.script}`);
3148
+ }
3099
3149
  }
3100
3150
  //#endregion
3101
3151
  //#region src/commands/release/types.ts
3102
- const prereleaseBranches = /* @__PURE__ */ new Set([
3152
+ const prereleaseBranches$1 = /* @__PURE__ */ new Set([
3103
3153
  "alpha",
3104
3154
  "beta",
3105
3155
  "rc",
@@ -3109,11 +3159,11 @@ const prereleaseBranches = /* @__PURE__ */ new Set([
3109
3159
  //#region src/commands/release/prerelease.ts
3110
3160
  async function releasePrerelease(options) {
3111
3161
  const branch = resolveBranch(options);
3112
- if (!prereleaseBranches.has(branch)) throw new ReleaseCommandError(`repo release pre is only allowed on alpha, beta, rc, or next branches, got ${branch}`);
3162
+ if (!prereleaseBranches$1.has(branch)) throw new ReleaseCommandError(`repo release pre is only allowed on alpha, beta, rc, or next branches, got ${branch}`);
3113
3163
  await assertLaneAssignments(branch, options);
3114
3164
  if (!await hasPendingIntents(options.cwd)) return;
3115
3165
  runReleaseHooks("beforeVersion", options);
3116
- runQualityScripts(options);
3166
+ await runQualityScripts(options);
3117
3167
  run("pnpm", [
3118
3168
  "version",
3119
3169
  "-r",
@@ -3147,7 +3197,7 @@ async function releasePrerelease(options) {
3147
3197
  return readPublishSummary(options.cwd);
3148
3198
  }
3149
3199
  async function enterPrerelease(tag, options) {
3150
- if (!prereleaseBranches.has(tag)) throw new ReleaseCommandError(`unknown prerelease lane ${tag}; expected alpha, beta, rc, or next`);
3200
+ if (!prereleaseBranches$1.has(tag)) throw new ReleaseCommandError(`unknown prerelease lane ${tag}; expected alpha, beta, rc, or next`);
3151
3201
  await runLane(tag, options);
3152
3202
  }
3153
3203
  async function exitPrerelease(options) {
@@ -3161,7 +3211,7 @@ async function prepareStable(options) {
3161
3211
  await assertStableLaneAssignments(options);
3162
3212
  if (!await hasPendingIntents(options.cwd)) return false;
3163
3213
  runReleaseHooks("beforeVersion", options);
3164
- runQualityScripts(options);
3214
+ await runQualityScripts(options);
3165
3215
  run("pnpm", [
3166
3216
  "version",
3167
3217
  "-r",
@@ -3175,7 +3225,7 @@ async function publishStable(options) {
3175
3225
  if (branch !== "main") throw new ReleaseCommandError(`repo release stable publish is only allowed on main, got ${branch}`);
3176
3226
  await assertStableLaneAssignments(options);
3177
3227
  if (await hasPendingIntents(options.cwd)) throw new ReleaseCommandError("stable publish found unconsumed change intents; prepare and merge the Release PR before publishing");
3178
- runQualityScripts(options);
3228
+ await runQualityScripts(options);
3179
3229
  runReleaseHooks("beforePublish", options);
3180
3230
  await clearPublishSummary(options.cwd);
3181
3231
  run("pnpm", [
@@ -3192,6 +3242,108 @@ async function releaseStable(options) {
3192
3242
  return publishStable(options);
3193
3243
  }
3194
3244
  //#endregion
3245
+ //#region src/commands/release/trigger.ts
3246
+ const releaseBranches = /* @__PURE__ */ new Set([
3247
+ "main",
3248
+ "alpha",
3249
+ "beta",
3250
+ "rc",
3251
+ "next"
3252
+ ]);
3253
+ const prereleaseBranches = /* @__PURE__ */ new Set([
3254
+ "alpha",
3255
+ "beta",
3256
+ "rc",
3257
+ "next"
3258
+ ]);
3259
+ function normalizePath(file) {
3260
+ return file.replaceAll("\\", "/").replace(/^\.\//, "");
3261
+ }
3262
+ function hasPendingChangeset(files) {
3263
+ return files.some((file) => {
3264
+ const normalized = normalizePath(file);
3265
+ return normalized.startsWith(".changeset/") && normalized.endsWith(".md") && !normalized.endsWith("/README.md");
3266
+ });
3267
+ }
3268
+ function isReleaseCommitMessage(message = "") {
3269
+ const subject = message.trim().split(/\r?\n/, 1)[0] ?? "";
3270
+ return /^chore\(release\):\s*.+/i.test(subject) || /^version packages(?:\s|$)/i.test(subject);
3271
+ }
3272
+ function hasReleaseArtifactPair(files) {
3273
+ const artifactsByDirectory = /* @__PURE__ */ new Map();
3274
+ for (const file of files) {
3275
+ const normalized = normalizePath(file);
3276
+ const slashIndex = normalized.lastIndexOf("/");
3277
+ if (slashIndex < 1) continue;
3278
+ const directory = normalized.slice(0, slashIndex);
3279
+ const basename = normalized.slice(slashIndex + 1);
3280
+ if (basename !== "package.json" && basename !== "CHANGELOG.md") continue;
3281
+ const artifacts = artifactsByDirectory.get(directory) ?? /* @__PURE__ */ new Set();
3282
+ artifacts.add(basename);
3283
+ artifactsByDirectory.set(directory, artifacts);
3284
+ }
3285
+ return [...artifactsByDirectory.values()].some((artifacts) => artifacts.has("package.json") && artifacts.has("CHANGELOG.md"));
3286
+ }
3287
+ function shouldRunRelease(context) {
3288
+ if (context.eventName === "workflow_dispatch") return true;
3289
+ if (context.eventName !== "push" || !releaseBranches.has(context.branch)) return false;
3290
+ if (hasPendingChangeset(context.pendingChangesetFiles)) return true;
3291
+ if (prereleaseBranches.has(context.branch)) return false;
3292
+ return isReleaseCommitMessage(context.commitMessage) || hasReleaseArtifactPair(context.changedFiles);
3293
+ }
3294
+ async function readPendingChangesetFiles(cwd) {
3295
+ try {
3296
+ return (await readdir(path.join(cwd, ".changeset"), { withFileTypes: true })).filter((entry) => entry.isFile() && entry.name.endsWith(".md") && entry.name !== "README.md").map((entry) => `.changeset/${entry.name}`);
3297
+ } catch {
3298
+ return [];
3299
+ }
3300
+ }
3301
+ function readGitOutput(options, args) {
3302
+ try {
3303
+ return capture("git", args, options);
3304
+ } catch {
3305
+ return "";
3306
+ }
3307
+ }
3308
+ async function readChangedFiles(options) {
3309
+ const env = getReleaseEnv(options);
3310
+ let diffRange = [];
3311
+ const eventPath = env["GITHUB_EVENT_NAME"] === "push" ? env["GITHUB_EVENT_PATH"] : void 0;
3312
+ if (eventPath) try {
3313
+ const event = JSON.parse(await readFile(eventPath, "utf8"));
3314
+ if (event.before && event.after && !/^0+$/.test(event.before)) diffRange = [event.before, event.after];
3315
+ } catch {}
3316
+ const output = readGitOutput(options, diffRange.length > 0 ? [
3317
+ "diff",
3318
+ "--name-only",
3319
+ ...diffRange
3320
+ ] : [
3321
+ "diff",
3322
+ "--name-only",
3323
+ "HEAD^",
3324
+ "HEAD"
3325
+ ]);
3326
+ return output ? output.split(/\r?\n/).filter(Boolean) : [];
3327
+ }
3328
+ async function readReleaseTriggerContext(options) {
3329
+ const env = getReleaseEnv(options);
3330
+ const eventName = env["GITHUB_EVENT_NAME"]?.trim() || "push";
3331
+ const branch = options.branch?.trim() || env["GITHUB_REF_NAME"]?.trim() || "";
3332
+ const sha = env["GITHUB_SHA"]?.trim() || "HEAD";
3333
+ return {
3334
+ eventName,
3335
+ branch,
3336
+ pendingChangesetFiles: await readPendingChangesetFiles(options.cwd),
3337
+ changedFiles: await readChangedFiles(options),
3338
+ commitMessage: readGitOutput(options, [
3339
+ "log",
3340
+ "-1",
3341
+ "--format=%s",
3342
+ sha
3343
+ ])
3344
+ };
3345
+ }
3346
+ //#endregion
3195
3347
  //#region src/commands/release/ci.ts
3196
3348
  const releaseBranch = "release/pnpm-version";
3197
3349
  function gitRefExists(ref, options) {
@@ -3371,7 +3523,7 @@ async function recoverUnpublished(options) {
3371
3523
  "require('./package.json').version"
3372
3524
  ], options);
3373
3525
  if (actualVersion !== packageVersion) throw new ReleaseCommandError(`expected ${packageName}@${packageVersion} in the workspace, found ${actualVersion}`);
3374
- runQualityScripts(options);
3526
+ await runQualityScripts(options);
3375
3527
  runReleaseHooks("beforePublish", options);
3376
3528
  await clearPublishSummary(options.cwd);
3377
3529
  run("pnpm", [
@@ -3412,8 +3564,15 @@ async function releaseCi(options) {
3412
3564
  }
3413
3565
  if (mode === "publish-unpublished") return recoverUnpublished(options);
3414
3566
  if (mode !== "auto") throw new ReleaseCommandError(`unknown release CI mode ${mode}; expected auto, prepare, publish, or publish-unpublished`);
3567
+ const eventName = getReleaseEnv(options)["GITHUB_EVENT_NAME"]?.trim();
3568
+ if (eventName && eventName !== "workflow_dispatch") {
3569
+ if (!shouldRunRelease(await readReleaseTriggerContext(options))) {
3570
+ logger.info("No release trigger detected; skipping release CI.");
3571
+ return;
3572
+ }
3573
+ }
3415
3574
  const branch = resolveBranch(options);
3416
- if (prereleaseBranches.has(branch)) {
3575
+ if (prereleaseBranches$1.has(branch)) {
3417
3576
  const packages = await releasePrerelease(options);
3418
3577
  if (!packages) return;
3419
3578
  await publishMetadata(packages, options, true);
@@ -4198,11 +4357,16 @@ async function upgradeMonorepo(opts) {
4198
4357
  const migrated = migrateLegacyToolingReferences(textSource, "repoctl/tooling");
4199
4358
  source = Buffer.from(migrated === textSource ? migrateLegacyToolingReferences(source.toString("utf8"), "repoctl/tooling") : migrated);
4200
4359
  }
4201
- const intent = await evaluateWriteIntent(targetPath, buildWriteIntentOptions(source));
4202
4360
  const action = async () => {
4203
4361
  await fs$1.outputFile(targetPath, source);
4204
4362
  logger.success(targetPath);
4205
4363
  };
4364
+ const forceReleaseWorkflow = relPath === ".github/workflows/release.yml" && merged.overwriteRelease === true;
4365
+ const intent = await evaluateWriteIntent(targetPath, forceReleaseWorkflow ? { source } : buildWriteIntentOptions(source));
4366
+ if (forceReleaseWorkflow && intent.type !== "skip") {
4367
+ await action();
4368
+ continue;
4369
+ }
4206
4370
  await scheduleOverwrite(intent, {
4207
4371
  relPath,
4208
4372
  targetPath,
@@ -1,5 +1,5 @@
1
- import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-D7bVEzen.mjs";
2
- import { b as fs, d as localize, h as logger } from "./types-CGwtAKfx.mjs";
1
+ import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-DuQtsnlm.mjs";
2
+ import { b as fs, d as localize, h as logger } from "./types-B65KhEtV.mjs";
3
3
  import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
@@ -591,6 +591,15 @@ interface HuskyToolingConfig {
591
591
  */
592
592
  commitMsgCommand?: string;
593
593
  }
594
+ interface ReleaseAfterPublishHookConfig {
595
+ /** package.json 中要通过 `pnpm run` 执行的脚本名。 */
596
+ script: string;
597
+ /**
598
+ * 脚本失败时是否只记录警告并继续。
599
+ * @default false
600
+ */
601
+ continueOnError?: boolean;
602
+ }
594
603
  interface ReleaseCommandConfig {
595
604
  /**
596
605
  * version 与 publish 阶段执行的根 package.json 校验脚本。
@@ -599,6 +608,12 @@ interface ReleaseCommandConfig {
599
608
  */
600
609
  qualityScripts?: string[];
601
610
  hooks?: {
611
+ /**
612
+ * qualityScripts 通过后追加执行的校验脚本。
613
+ * 任一脚本失败都会中止版本或发布流程。
614
+ * @default []
615
+ */
616
+ verify?: string[];
602
617
  /**
603
618
  * pnpm version 前执行的根 package.json 脚本。
604
619
  * @default []
@@ -616,10 +631,10 @@ interface ReleaseCommandConfig {
616
631
  beforePublish?: string[];
617
632
  /**
618
633
  * npm metadata 与 GitHub Release 处理完成后执行的根 package.json 脚本。
619
- * 即使没有 npm 包发布也会执行。
634
+ * 仅在确有 npm 包发布后执行。
620
635
  * @default []
621
636
  */
622
- afterPublish?: string[];
637
+ afterPublish?: ReleaseAfterPublishHookConfig[];
623
638
  };
624
639
  }
625
640
  /**
@@ -1003,4 +1018,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
1003
1018
  */
1004
1019
  declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
1005
1020
  //#endregion
1006
- export { initMetadata as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, ReleaseCommandConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, TsconfigToolingConfig as J, StylelintToolingConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, init as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, VitestProjectToolingConfig as X, UpgradeCommandConfig as Y, VitestToolingConfig as Z, createMonorepoEslintConfig as _, loadAgenticTasks as _t, MonorepoCommitlintConfig as a, CreateNewProjectPlan as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, resolveCreateNewProjectPlan as ct, MonorepoVitestConfigOptions as d, AgenticTemplateTask as dt, initTooling as et, MonorepoVitestConfigOverrides as f, GenerateAgenticTemplateOptions as ft, createMonorepoCommitlintConfig as g, generateAgenticTemplates as gt, MonorepoVitestProjectConfigResult as h, generateAgenticTemplate as ht, DefineVitestProjectConfigOptions as i, CreateNewProjectOptions as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, templateMap as lt, MonorepoVitestProjectConfigOptions as m, defaultAgenticBaseDir as mt, DefineEslintConfigOptions as n, initToolingTargets as nt, MonorepoEslintConfig as o, getCreateChoices as ot, MonorepoVitestConfigResult as p, createTimestampFolderName as pt, ToolingConfig as q, DefineVitestConfigOptions as r, createNewProject as rt, MonorepoLintStagedConfig as s, getTemplateMap as st, DefineConfigOptions as t, normalizeInitToolingTargets as tt, MonorepoTsconfig as u, AgenticTemplateFormat as ut, createMonorepoLintStagedConfig as v, CliOpts as vt, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, EslintToolingConfig as z };
1021
+ export { init as $, loadMonorepoToolingConfig as A, HuskyToolingConfig as B, defineCommitlintConfig as C, defineTsconfigConfig as D, defineStylelintConfig as E, CleanCommandConfig as F, ReleaseAfterPublishHookConfig as G, LintStagedToolingConfig as H, CommitlintToolingConfig as I, ToolingConfig as J, ReleaseCommandConfig as K, CreateChoiceOption as L, SimpleGit as M, SimpleGitOptions as N, defineVitestConfig as O, AiCommandConfig as P, VitestToolingConfig as Q, CreateCommandConfig as R, createMonorepoVitestProjectConfig as S, defineLintStagedConfig as T, MirrorCommandConfig as U, InitCommandConfig as V, MonorepoConfig as W, UpgradeCommandConfig as X, TsconfigToolingConfig as Y, VitestProjectToolingConfig as Z, createMonorepoEslintConfig as _, generateAgenticTemplates as _t, MonorepoCommitlintConfig as a, CreateNewProjectOptions as at, createMonorepoTsconfig as b, MonorepoLintStagedConfigOptions as c, getTemplateMap as ct, MonorepoVitestConfigOptions as d, AgenticTemplateFormat as dt, initMetadata as et, MonorepoVitestConfigOverrides as f, AgenticTemplateTask as ft, createMonorepoCommitlintConfig as g, generateAgenticTemplate as gt, MonorepoVitestProjectConfigResult as h, defaultAgenticBaseDir as ht, DefineVitestProjectConfigOptions as i, createNewProject as it, ConfigValues as j, defineVitestProjectConfig as k, MonorepoStylelintConfig as l, resolveCreateNewProjectPlan as lt, MonorepoVitestProjectConfigOptions as m, createTimestampFolderName as mt, DefineEslintConfigOptions as n, normalizeInitToolingTargets as nt, MonorepoEslintConfig as o, CreateNewProjectPlan as ot, MonorepoVitestConfigResult as p, GenerateAgenticTemplateOptions as pt, StylelintToolingConfig as q, DefineVitestConfigOptions as r, initToolingTargets as rt, MonorepoLintStagedConfig as s, getCreateChoices as st, DefineConfigOptions as t, initTooling as tt, MonorepoTsconfig as u, templateMap as ut, createMonorepoLintStagedConfig as v, loadAgenticTasks as vt, defineEslintConfig as w, createMonorepoVitestConfig as x, createMonorepoStylelintConfig as y, CliOpts as yt, EslintToolingConfig as z };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as initMetadata, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as ReleaseCommandConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as TsconfigToolingConfig, K as StylelintToolingConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as init, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as VitestProjectToolingConfig, Y as UpgradeCommandConfig, Z as VitestToolingConfig, _ as createMonorepoEslintConfig, _t as loadAgenticTasks, a as MonorepoCommitlintConfig, at as CreateNewProjectPlan, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as resolveCreateNewProjectPlan, d as MonorepoVitestConfigOptions, dt as AgenticTemplateTask, et as initTooling, f as MonorepoVitestConfigOverrides, ft as GenerateAgenticTemplateOptions, g as createMonorepoCommitlintConfig, gt as generateAgenticTemplates, h as MonorepoVitestProjectConfigResult, ht as generateAgenticTemplate, i as DefineVitestProjectConfigOptions, it as CreateNewProjectOptions, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as templateMap, m as MonorepoVitestProjectConfigOptions, mt as defaultAgenticBaseDir, n as DefineEslintConfigOptions, nt as initToolingTargets, o as MonorepoEslintConfig, ot as getCreateChoices, p as MonorepoVitestConfigResult, pt as createTimestampFolderName, q as ToolingConfig, r as DefineVitestConfigOptions, rt as createNewProject, s as MonorepoLintStagedConfig, st as getTemplateMap, t as DefineConfigOptions, tt as normalizeInitToolingTargets, u as MonorepoTsconfig, ut as AgenticTemplateFormat, v as createMonorepoLintStagedConfig, vt as CliOpts, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, z as EslintToolingConfig } from "./index-G16qsfde.mjs";
1
+ import { $ as init, A as loadMonorepoToolingConfig, B as HuskyToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, F as CleanCommandConfig, G as ReleaseAfterPublishHookConfig, H as LintStagedToolingConfig, I as CommitlintToolingConfig, J as ToolingConfig, K as ReleaseCommandConfig, L as CreateChoiceOption, M as SimpleGit, N as SimpleGitOptions, O as defineVitestConfig, P as AiCommandConfig, Q as VitestToolingConfig, R as CreateCommandConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, U as MirrorCommandConfig, V as InitCommandConfig, W as MonorepoConfig, X as UpgradeCommandConfig, Y as TsconfigToolingConfig, Z as VitestProjectToolingConfig, _ as createMonorepoEslintConfig, _t as generateAgenticTemplates, a as MonorepoCommitlintConfig, at as CreateNewProjectOptions, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, ct as getTemplateMap, d as MonorepoVitestConfigOptions, dt as AgenticTemplateFormat, et as initMetadata, f as MonorepoVitestConfigOverrides, ft as AgenticTemplateTask, g as createMonorepoCommitlintConfig, gt as generateAgenticTemplate, h as MonorepoVitestProjectConfigResult, ht as defaultAgenticBaseDir, i as DefineVitestProjectConfigOptions, it as createNewProject, j as ConfigValues, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, lt as resolveCreateNewProjectPlan, m as MonorepoVitestProjectConfigOptions, mt as createTimestampFolderName, n as DefineEslintConfigOptions, nt as normalizeInitToolingTargets, o as MonorepoEslintConfig, ot as CreateNewProjectPlan, p as MonorepoVitestConfigResult, pt as GenerateAgenticTemplateOptions, q as StylelintToolingConfig, r as DefineVitestConfigOptions, rt as initToolingTargets, s as MonorepoLintStagedConfig, st as getCreateChoices, t as DefineConfigOptions, tt as initTooling, u as MonorepoTsconfig, ut as templateMap, v as createMonorepoLintStagedConfig, vt as loadAgenticTasks, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig, yt as CliOpts, z as EslintToolingConfig } from "./index-BTR2XH8f.mjs";
2
2
  import gitUrlParse from "git-url-parse";
3
3
  import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
4
4
  import { execFileSync, spawnSync } from "node:child_process";
@@ -872,4 +872,4 @@ declare function escapeStringRegexp(str: string): string;
872
872
  */
873
873
  declare function isMatch(str: string, arr: RegExp[]): boolean;
874
874
  //#endregion
875
- export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, GetWorkspacePackagesOptions, GitClient, GitHubApiError, GitHubClient, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, ReleaseCommandConfig, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
875
+ export { type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type CheckTemplatesOptions, CleanCommandConfig, CliOpts, type CommitMsgVerifyOptions, CommitlintToolingConfig, type ConfigInspection, type ConfigValues, Context, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, type DoctorCheck, type DoctorReport, type DoctorStatus, type DoctorSummary, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, EslintToolingConfig, type GenerateAgenticTemplateOptions, GetWorkspacePackagesOptions, GitClient, GitHubApiError, GitHubClient, type GitHubClientOptions, type GitHubOperations, HuskyToolingConfig, InitCommandConfig, JsonWriteOptions, LintStagedToolingConfig, LoadedMonorepoConfig, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, PackageJson, PackageJsonBugs, PackageJsonExports, PackageJsonPerson, PackageJsonRepository, type PreCommitVerifyOptions, type PrePushVerifyOptions, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, ReleaseAfterPublishHookConfig, ReleaseCommandConfig, type RepoctlLocale, type SimpleGit, type SimpleGitOptions, type SkillTarget, type StagedTypecheckOptions, StylelintToolingConfig, type SyncSkillsOptions, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, ToolingConfig, TsconfigToolingConfig, UpgradeCommandConfig, type VerifyCommandOptions, VitestProjectToolingConfig, VitestToolingConfig, WorkspaceData, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as verifyPreCommit, A as getCreateChoices, B as isMatch, C as collectEnvInfo, D as runDoctor, E as collectEnvSupportBundle, F as cleanProjects, G as toPublishGitignorePath, H as getFileHash, I as getSkillTargetPaths, J as getKnownRepoCheckCommands, K as toWorkspaceGitignorePath, L as skillTargets, M as resolveCreateNewProjectPlan, N as templateMap, O as createNewProject, P as inspectMonorepoConfig, Q as verifyCommitMsg, R as syncSkills, S as createContext, T as collectEnvSnapshot, U as isFileChanged, V as setByPath, W as isGitignoreFile, X as resolveRecommendedCheckPlan, Y as resolveFullWorkspaceCheckPlan, Z as runRecommendedCheck, _ as setVscodeBinaryMirror, a as createReleasePullRequest, at as generateAgenticTemplates, b as initTooling, c as prepareStable, d as enterPrerelease, et as verifyPrePush, f as exitPrerelease, g as parsePublishSummary, h as GitHubClient, i as repairReleaseNotes, it as generateAgenticTemplate, j as getTemplateMap, l as publishStable, m as GitHubApiError, n as upgradeMonorepo, nt as createTimestampFolderName, o as recoverUnpublished, ot as loadAgenticTasks, p as releasePrerelease, q as updateIssueTemplateConfig, r as checkTemplates, rt as defaultAgenticBaseDir, s as releaseCi, st as GitClient, tt as verifyStagedTypecheck, u as releaseStable, v as init, w as collectEnvPaths, x as normalizeInitToolingTargets, y as initMetadata, z as escapeStringRegexp } from "./commands-D7bVEzen.mjs";
1
+ import { $ as verifyPreCommit, A as getCreateChoices, B as isMatch, C as collectEnvInfo, D as runDoctor, E as collectEnvSupportBundle, F as cleanProjects, G as toPublishGitignorePath, H as getFileHash, I as getSkillTargetPaths, J as getKnownRepoCheckCommands, K as toWorkspaceGitignorePath, L as skillTargets, M as resolveCreateNewProjectPlan, N as templateMap, O as createNewProject, P as inspectMonorepoConfig, Q as verifyCommitMsg, R as syncSkills, S as createContext, T as collectEnvSnapshot, U as isFileChanged, V as setByPath, W as isGitignoreFile, X as resolveRecommendedCheckPlan, Y as resolveFullWorkspaceCheckPlan, Z as runRecommendedCheck, _ as setVscodeBinaryMirror, a as createReleasePullRequest, at as generateAgenticTemplates, b as initTooling, c as prepareStable, d as enterPrerelease, et as verifyPrePush, f as exitPrerelease, g as parsePublishSummary, h as GitHubClient, i as repairReleaseNotes, it as generateAgenticTemplate, j as getTemplateMap, l as publishStable, m as GitHubApiError, n as upgradeMonorepo, nt as createTimestampFolderName, o as recoverUnpublished, ot as loadAgenticTasks, p as releasePrerelease, q as updateIssueTemplateConfig, r as checkTemplates, rt as defaultAgenticBaseDir, s as releaseCi, st as GitClient, tt as verifyStagedTypecheck, u as releaseStable, v as init, w as collectEnvPaths, x as normalizeInitToolingTargets, y as initMetadata, z as escapeStringRegexp } from "./commands-DuQtsnlm.mjs";
2
2
  import { i as getWorkspacePackages, n as getWorkspaceData, r as getWorkspacePackageSummaries, t as clearWorkspaceCache } from "./workspace-MCKewElu.mjs";
3
- import { A as writeJson, C as outputJSON, D as readJson, E as readJSON, O as remove, S as outputFile, T as pathExists, _ as ensureDir, a as rootDir, g as copy, h as logger, i as packageDir, k as writeJSON, l as name, n as assetsDir, o as templatesDir, r as cliName, t as initToolingTargets, u as version, v as ensureFile, w as outputJson, x as isIgnorableFsError, y as exists } from "./types-CGwtAKfx.mjs";
3
+ import { A as writeJson, C as outputJSON, D as readJson, E as readJSON, O as remove, S as outputFile, T as pathExists, _ as ensureDir, a as rootDir, g as copy, h as logger, i as packageDir, k as writeJSON, l as name, n as assetsDir, o as templatesDir, r as cliName, t as initToolingTargets, u as version, v as ensureFile, w as outputJson, x as isIgnorableFsError, y as exists } from "./types-B65KhEtV.mjs";
4
4
  import { a as loadMonorepoConfig, c as resolveToolingConfig, i as getRepoctlConfigCandidates, o as loadMonorepoConfigDetails, r as defineMonorepoConfig, s as resolveCommandConfig, t as configExtensions } from "./config-p842Knhq.mjs";
5
5
  import { a as createMonorepoTsconfig, c as defineCommitlintConfig, d as defineStylelintConfig, f as defineTsconfigConfig, h as loadMonorepoToolingConfig, i as createMonorepoStylelintConfig, l as defineEslintConfig, m as defineVitestProjectConfig, n as createMonorepoEslintConfig, o as createMonorepoVitestConfig, p as defineVitestConfig, r as createMonorepoLintStagedConfig, s as createMonorepoVitestProjectConfig, t as createMonorepoCommitlintConfig, u as defineLintStagedConfig } from "./tooling-CdZRpvYw.mjs";
6
6
  export { GitClient, GitHubApiError, GitHubClient, assetsDir, checkTemplates, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getFileHash, getKnownRepoCheckCommands, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspacePackageSummaries, getWorkspacePackages, init, initMetadata, initTooling, initToolingTargets, inspectMonorepoConfig, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, prepareStable, publishStable, readJSON, readJson, recoverUnpublished, releaseCi, releasePrerelease, releaseStable, remove, repairReleaseNotes, resolveCommandConfig, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveRecommendedCheckPlan, resolveToolingConfig, rootDir, runDoctor, runRecommendedCheck, setByPath, setVscodeBinaryMirror, skillTargets, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, writeJSON, writeJson };
@@ -1,2 +1,2 @@
1
- import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-G16qsfde.mjs";
1
+ import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-BTR2XH8f.mjs";
2
2
  export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
@@ -343,7 +343,7 @@ function message(key, values = {}) {
343
343
  //#endregion
344
344
  //#region package.json
345
345
  var name = "@icebreakers/monorepo";
346
- var version = "5.3.0";
346
+ var version = "5.4.1";
347
347
  var dependencies = {
348
348
  "@icebreakers/commitlint-config": "^4.0.4",
349
349
  "@icebreakers/eslint-config": "^7.0.4",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "5.3.0",
4
+ "version": "5.4.1",
5
5
  "description": "Core engine and programmatic APIs for repoctl",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
8
- "homepage": "https://repo.icebreaker.top",
8
+ "homepage": "https://repoctl.icebreaker.top",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/sonofmagic/repoctl.git",
@@ -58,8 +58,7 @@
58
58
  "@commitlint/cli": "^21.2.2",
59
59
  "eslint": "^9.0.0 || ^10.0.0",
60
60
  "stylelint": "^17.14.1",
61
- "typescript": "^5.0.0 || ^6.0.0",
62
- "vitest": "^4.1.10"
61
+ "typescript": "^5.0.0 || ^6.0.0"
63
62
  },
64
63
  "peerDependenciesMeta": {
65
64
  "@commitlint/cli": {
@@ -73,9 +72,6 @@
73
72
  },
74
73
  "typescript": {
75
74
  "optional": true
76
- },
77
- "vitest": {
78
- "optional": true
79
75
  }
80
76
  },
81
77
  "dependencies": {
@@ -102,7 +98,7 @@
102
98
  "simple-git": "^3.36.0",
103
99
  "vitest": "^4.1.10",
104
100
  "yaml": "^2.9.0",
105
- "@icebreakers/monorepo-templates": "1.2.1"
101
+ "@icebreakers/monorepo-templates": "1.3.0"
106
102
  },
107
103
  "devDependencies": {
108
104
  "@types/klaw": "^3.0.7",