@icebreakers/monorepo 5.4.3 → 5.4.5

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-CrUVxg6T.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-DsoEY_cl.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-CMupqLsN.mjs").then((n) => n.t),
13
+ import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
128
+ const { inspectMonorepoConfig } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
448
+ const { collectEnvInfo } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
452
+ const { collectEnvSnapshot } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
456
+ const { collectEnvPaths } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
460
+ const { collectEnvSupportBundle } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
464
+ const { setVscodeBinaryMirror } = await import("./commands-CbYTYyWv.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-E3Al_7uK.mjs");
473
+ const { runCreateFlow } = await import("./create-flow-igIWR7nU.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-CMupqLsN.mjs").then((n) => n.t);
505
+ const { releaseCi } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
517
+ const { repairReleaseNotes } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
529
+ const { releaseCi } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
539
+ const { releaseCi } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
549
+ const { releaseCi } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
560
+ const { releaseCi } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
567
+ const { enterPrerelease } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
574
+ const { exitPrerelease } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
585
+ const { syncSkills } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
705
+ const { checkTemplates } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
784
+ const { initTooling } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
955
+ const { init } = await import("./commands-CbYTYyWv.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-E3Al_7uK.mjs");
966
+ const { runCreateFlow } = await import("./create-flow-igIWR7nU.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-CMupqLsN.mjs").then((n) => n.t);
984
+ const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
987
+ const { resolveFullWorkspaceCheckPlan } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
998
+ const { runDoctor } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1021
+ const { upgradeMonorepo } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1031
+ const { verifyPrePush } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1035
+ const { verifyPreCommit } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1039
+ const { verifyCommitMsg } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1046
+ const { verifyStagedTypecheck } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1125
+ const { upgradeMonorepo } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1130
+ const { initMetadata } = await import("./commands-CbYTYyWv.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-CMupqLsN.mjs").then((n) => n.t);
1143
+ const { cleanProjects } = await import("./commands-CbYTYyWv.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-CrUVxg6T.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-DsoEY_cl.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-Cicm3wJh.mjs";
6
6
  import gitUrlParse from "git-url-parse";
@@ -8,7 +8,7 @@ import { simpleGit } from "simple-git";
8
8
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
9
9
  import path from "pathe";
10
10
  import process from "node:process";
11
- import { access, readFile, readdir, realpath, rm } from "node:fs/promises";
11
+ import { access, readFile, readdir, realpath, rm, writeFile } from "node:fs/promises";
12
12
  import { execFileSync, spawnSync } from "node:child_process";
13
13
  import fs from "node:fs";
14
14
  import path$1 from "node:path";
@@ -1819,16 +1819,16 @@ async function setReadme_default(ctx, options = {}) {
1819
1819
  var devDependencies = {
1820
1820
  "@commitlint/cli": "^21.2.2",
1821
1821
  "@icebreakers/monorepo": "workspace:*",
1822
- "@types/node": "^26.3.0",
1822
+ "@types/node": "^26.4.0",
1823
1823
  "@types/semver": "^7.8.0",
1824
1824
  "@vitest/coverage-v8": "~4.1.11",
1825
1825
  "ci-info": "^4.4.0",
1826
1826
  "cross-env": "^10.1.0",
1827
1827
  "defu": "^6.1.7",
1828
- "es-toolkit": "^1.51.0",
1828
+ "es-toolkit": "^1.52.0",
1829
1829
  "eslint": "^10.9.1",
1830
1830
  "husky": "^9.1.7",
1831
- "lint-staged": "^17.3.0",
1831
+ "lint-staged": "^17.4.1",
1832
1832
  "only-allow": "^1.2.2",
1833
1833
  "pathe": "^2.0.3",
1834
1834
  "pkg-types": "^2.3.1",
@@ -1838,9 +1838,9 @@ var devDependencies = {
1838
1838
  "tsd": "^0.33.0",
1839
1839
  "tsdown": "0.22.14",
1840
1840
  "tslib": "^2.8.1",
1841
- "tsx": "^4.23.12",
1841
+ "tsx": "^4.23.13",
1842
1842
  "turbo": "^2.10.12",
1843
- "type-fest": "^5.8.0",
1843
+ "type-fest": "^5.9.0",
1844
1844
  "typescript": "^6.0.3",
1845
1845
  "vitest": "~4.1.11",
1846
1846
  "yaml": "^2.9.0"
@@ -1853,7 +1853,7 @@ const packageDependencies = {
1853
1853
  type: "module",
1854
1854
  version: "0.0.0",
1855
1855
  "private": true,
1856
- packageManager: "pnpm@11.24.0",
1856
+ packageManager: "pnpm@11.25.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
1859
  homepage: "https://repoctl.icebreaker.top",
@@ -2322,6 +2322,20 @@ function uniqueCommits(commits) {
2322
2322
  function isAutomationContributor(value) {
2323
2323
  return /github-actions|dependabot|renovate|\[bot\]$/i.test(value);
2324
2324
  }
2325
+ /** Normalizes contributor text emitted by changelog and GitHub Markdown. */
2326
+ function normalizeContributor(value) {
2327
+ return value.replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/^\s*(?:\*{1,3}|_{1,3})\s*/, "").replace(/\s*(?:\*{1,3}|_{1,3})\s*$/, "").replace(/`/g, "").replace(/\s+/g, " ").trim();
2328
+ }
2329
+ function uniqueContributors(contributors) {
2330
+ const unique = /* @__PURE__ */ new Map();
2331
+ for (const contributor of contributors) {
2332
+ const normalized = normalizeContributor(contributor);
2333
+ if (!normalized || isAutomationContributor(normalized)) continue;
2334
+ const key = normalized.replace(/^@/, "").toLocaleLowerCase();
2335
+ if (!unique.has(key)) unique.set(key, normalized);
2336
+ }
2337
+ return [...unique.values()];
2338
+ }
2325
2339
  function buildPackageCompareUrl(release, metadata) {
2326
2340
  if (!release.previousVersion || !metadata.repository || !/^[^/]+\/[^/]+$/.test(metadata.repository)) return;
2327
2341
  const serverUrl = (metadata.serverUrl || "https://github.com").replace(/\/$/, "");
@@ -2450,7 +2464,7 @@ function normalizeMarkdownEntry(item) {
2450
2464
  commits,
2451
2465
  pullRequests: [...new Set(pullRequests)],
2452
2466
  issues: [...new Set(issues)],
2453
- authors: [...new Set(authors)],
2467
+ authors: uniqueContributors(authors),
2454
2468
  raw
2455
2469
  };
2456
2470
  }
@@ -2490,7 +2504,7 @@ function buildEntries(release, commits) {
2490
2504
  commits: entryCommits,
2491
2505
  pullRequests: [.../* @__PURE__ */ new Set([...refs.pullRequests, ...normalized.pullRequests])].sort((a, b) => a - b),
2492
2506
  issues: [.../* @__PURE__ */ new Set([...refs.issues, ...normalized.issues])].sort((a, b) => a - b),
2493
- authors: [.../* @__PURE__ */ new Set([...normalized.authors, ...entryCommits.map((commit) => commit.author).filter((author) => Boolean(author))])]
2507
+ authors: uniqueContributors([...normalized.authors, ...entryCommits.map((commit) => commit.author).filter((author) => Boolean(author))])
2494
2508
  }];
2495
2509
  });
2496
2510
  }
@@ -2532,7 +2546,7 @@ function formatContributor(value) {
2532
2546
  return /^[\w-]+$/.test(value) ? `@${value}` : value;
2533
2547
  }
2534
2548
  function formatContributors(contributors, metadata) {
2535
- const unique = [...new Set(contributors.map((value) => value.trim()).filter((value) => value && !isAutomationContributor(value)))].sort((a, b) => a.localeCompare(b));
2549
+ const unique = uniqueContributors(contributors).sort((a, b) => a.localeCompare(b));
2536
2550
  return unique.length ? [
2537
2551
  `## ❤️ ${localized(metadata, "Contributors", "贡献者")}`,
2538
2552
  "",
@@ -2581,7 +2595,7 @@ function renderGitHubRelease(document, metadata = {}) {
2581
2595
  const section = formatCategoryEntries(document.entries, category, metadata, 3, true);
2582
2596
  if (section.length) sections.push(...sections.length ? ["", ...section] : section);
2583
2597
  }
2584
- const contributors = [...new Set(document.contributors)].filter((value) => !isAutomationContributor(value)).sort((a, b) => a.localeCompare(b));
2598
+ const contributors = uniqueContributors(document.contributors).sort((a, b) => a.localeCompare(b));
2585
2599
  if (contributors.length) sections.push("", `### ❤️ ${localized(metadata, "Contributors", "贡献者")}`, "", `${localized(metadata, "Thanks to", "感谢")} ${contributors.map(formatContributor).join(" · ")}`);
2586
2600
  if (document.compareUrls.length) sections.push("", `##### [${localized(metadata, "View changes on GitHub", "在 GitHub 查看变更")}](${document.compareUrls[0]})`);
2587
2601
  return sections.join("\n");
@@ -2804,7 +2818,7 @@ function buildReleasePackage(release) {
2804
2818
  }
2805
2819
  function buildReleaseNoteDocumentFromReleases(releases, metadata) {
2806
2820
  const entries = releases.flatMap((release) => buildEntries(release, metadata.commits ?? []));
2807
- const contributors = [.../* @__PURE__ */ new Set([...metadata.contributors ?? [], ...entries.flatMap((entry) => entry.authors)])].filter((value) => !isAutomationContributor(value));
2821
+ const contributors = uniqueContributors([...metadata.contributors ?? [], ...entries.flatMap((entry) => entry.authors)]);
2808
2822
  const compareUrls = releases.map((release) => buildPackageCompareUrl(release, metadata)).filter((url) => Boolean(url));
2809
2823
  return {
2810
2824
  packages: releases.map(buildReleasePackage),
@@ -2813,7 +2827,7 @@ function buildReleaseNoteDocumentFromReleases(releases, metadata) {
2813
2827
  compareUrls
2814
2828
  };
2815
2829
  }
2816
- async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
2830
+ async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}, packageNames) {
2817
2831
  const workspacePackages = await getWorkspacePackages(cwd);
2818
2832
  const releases = [];
2819
2833
  for (const pkg of workspacePackages) {
@@ -2824,6 +2838,7 @@ async function buildReleaseNoteDocument(cwd, previousVersions, metadata = {}) {
2824
2838
  continue;
2825
2839
  }
2826
2840
  if (typeof manifest.name !== "string" || typeof manifest.version !== "string") continue;
2841
+ if (packageNames && !packageNames.has(manifest.name)) continue;
2827
2842
  if (previousVersions?.get(manifest.name) === manifest.version) continue;
2828
2843
  const release = await readPackageRelease(manifest.name, manifest.version, pkg.rootDir);
2829
2844
  if (release) {
@@ -2854,7 +2869,56 @@ function buildGitHubReleaseBodyFromChangelog(packageName, packageVersion, change
2854
2869
  }], metadata), metadata);
2855
2870
  }
2856
2871
  //#endregion
2857
- //#region src/commands/release/github.ts
2872
+ //#region src/commands/release/github/metadata.ts
2873
+ function parseReleasePullRequestContributors(body) {
2874
+ if (!body) return [];
2875
+ const contributors = body.match(/(?:Thanks to|感谢)\s+([^\n]+)/i)?.[1];
2876
+ return contributors ? uniqueContributors(contributors.split(/\s+·\s+/)) : [];
2877
+ }
2878
+ function isReleasePullRequest(pullRequest) {
2879
+ return pullRequest.title?.startsWith("chore(release):") === true || pullRequest.body?.includes("# Release Notes") === true || pullRequest.body?.includes("# 发布说明") === true;
2880
+ }
2881
+ async function readReleasePullRequestContributors(request, target) {
2882
+ try {
2883
+ return parseReleasePullRequestContributors(((await request("GET", `/commits/${encodeURIComponent(target)}/pulls`)).data ?? []).find(isReleasePullRequest)?.body);
2884
+ } catch {
2885
+ return [];
2886
+ }
2887
+ }
2888
+ async function enrichReleaseNote(request, document) {
2889
+ const commitAuthors = /* @__PURE__ */ new Map();
2890
+ const commitShas = [...new Set(document.entries.flatMap((entry) => entry.commits.map((commit) => commit.sha)))];
2891
+ for (const sha of commitShas) try {
2892
+ const response = await request("GET", `/commits/${encodeURIComponent(sha)}`);
2893
+ const author = response.data?.author?.login || response.data?.commit?.author?.name;
2894
+ if (author) commitAuthors.set(sha, author);
2895
+ } catch {}
2896
+ const referenceAuthors = /* @__PURE__ */ new Map();
2897
+ const referenceNumbers = [...new Set(document.entries.flatMap((entry) => [...entry.pullRequests, ...entry.issues]))];
2898
+ for (const number of referenceNumbers) try {
2899
+ const author = (await request("GET", `/issues/${number}`)).data?.user?.login;
2900
+ if (author) referenceAuthors.set(number, author);
2901
+ } catch {}
2902
+ const entries = document.entries.map((entry) => {
2903
+ const authors = uniqueContributors([
2904
+ ...entry.authors,
2905
+ ...entry.commits.map((commit) => commitAuthors.get(commit.sha)).filter((author) => Boolean(author)),
2906
+ ...entry.pullRequests.map((number) => referenceAuthors.get(number)).filter((author) => Boolean(author)),
2907
+ ...entry.issues.map((number) => referenceAuthors.get(number)).filter((author) => Boolean(author))
2908
+ ]);
2909
+ return authors.length ? {
2910
+ ...entry,
2911
+ authors
2912
+ } : entry;
2913
+ });
2914
+ return {
2915
+ ...document,
2916
+ entries,
2917
+ contributors: uniqueContributors([...document.contributors, ...entries.flatMap((entry) => entry.authors)])
2918
+ };
2919
+ }
2920
+ //#endregion
2921
+ //#region src/commands/release/github/client.ts
2858
2922
  var GitHubApiError = class extends ReleaseCommandError {
2859
2923
  status;
2860
2924
  responseBody;
@@ -2914,6 +2978,9 @@ var GitHubClient = class {
2914
2978
  data
2915
2979
  };
2916
2980
  }
2981
+ getRequest() {
2982
+ return this.request.bind(this);
2983
+ }
2917
2984
  async ensurePullRequest(options) {
2918
2985
  const [owner] = this.getRepository().split("/");
2919
2986
  const head = options.head.includes(":") ? options.head : `${owner}:${options.head}`;
@@ -3011,41 +3078,16 @@ var GitHubClient = class {
3011
3078
  }
3012
3079
  async enrichReleaseNote(document) {
3013
3080
  try {
3014
- const commitAuthors = /* @__PURE__ */ new Map();
3015
- const commitShas = [...new Set(document.entries.flatMap((entry) => entry.commits.map((commit) => commit.sha)))];
3016
- for (const sha of commitShas) {
3017
- const response = await this.request("GET", `/commits/${encodeURIComponent(sha)}`);
3018
- const author = response.data?.author?.login || response.data?.commit?.author?.name;
3019
- if (author) commitAuthors.set(sha, author);
3020
- }
3021
- const referenceNumbers = [...new Set(document.entries.flatMap((entry) => [...entry.pullRequests, ...entry.issues]))];
3022
- const referenceAuthors = /* @__PURE__ */ new Set();
3023
- for (const number of referenceNumbers) {
3024
- const author = (await this.request("GET", `/issues/${number}`)).data?.user?.login;
3025
- if (author) referenceAuthors.add(author);
3026
- }
3027
- const entries = document.entries.map((entry) => {
3028
- const authors = [.../* @__PURE__ */ new Set([...entry.authors, ...entry.commits.map((commit) => commitAuthors.get(commit.sha)).filter((author) => Boolean(author))])];
3029
- return authors.length ? {
3030
- ...entry,
3031
- authors
3032
- } : entry;
3033
- });
3034
- return {
3035
- ...document,
3036
- entries,
3037
- contributors: [.../* @__PURE__ */ new Set([
3038
- ...document.contributors,
3039
- ...commitAuthors.values(),
3040
- ...referenceAuthors
3041
- ])].filter((value) => !isAutomationContributor(value))
3042
- };
3081
+ return await enrichReleaseNote(this.getRequest(), document);
3043
3082
  } catch (error) {
3044
3083
  const message = error instanceof Error ? error.message : String(error);
3045
3084
  logger.warn(`GitHub release note metadata enrichment skipped: ${message}`);
3046
3085
  return document;
3047
3086
  }
3048
3087
  }
3088
+ async readReleasePullRequestContributors(target) {
3089
+ return readReleasePullRequestContributors(this.getRequest(), target);
3090
+ }
3049
3091
  async ensureTag(options) {
3050
3092
  const endpoint = `/git/ref/tags/${encodeURIComponent(options.tag)}`;
3051
3093
  try {
@@ -3148,6 +3190,123 @@ function runAfterPublishHooks(packages, options) {
3148
3190
  }
3149
3191
  }
3150
3192
  //#endregion
3193
+ //#region src/commands/release/publish.ts
3194
+ const publishAttempts = 3;
3195
+ const retryDelays = [2e4, 4e4];
3196
+ function outputText(output) {
3197
+ return output == null ? "" : String(output);
3198
+ }
3199
+ function commandOutput(result) {
3200
+ return `${outputText(result.stdout)}\n${outputText(result.stderr)}`;
3201
+ }
3202
+ function isTransientPublishFailure(output) {
3203
+ return /CA_CREATE_SIGNING_CERTIFICATE_ERROR|\b(?:429|5\d{2})\b|EAI_AGAIN|ECONNRESET|ETIMEDOUT/i.test(output);
3204
+ }
3205
+ function isPublishConflict(output) {
3206
+ return /cannot publish over|EPUBLISHCONFLICT|previously published|already exists/i.test(output);
3207
+ }
3208
+ function sleep(milliseconds, options) {
3209
+ return options.sleep?.(milliseconds) ?? new Promise((resolve) => setTimeout(resolve, milliseconds));
3210
+ }
3211
+ function runPublishAttempt(args, options) {
3212
+ const result = (options.spawn ?? spawnSync)("pnpm", args, {
3213
+ cwd: options.cwd,
3214
+ encoding: "utf8",
3215
+ env: getReleaseEnv(options),
3216
+ shell: false,
3217
+ stdio: [
3218
+ "ignore",
3219
+ "pipe",
3220
+ "pipe"
3221
+ ]
3222
+ });
3223
+ const stdout = outputText(result.stdout);
3224
+ const stderr = outputText(result.stderr);
3225
+ if (stdout) process.stdout.write(stdout);
3226
+ if (stderr) process.stderr.write(stderr);
3227
+ return {
3228
+ ...result,
3229
+ stdout,
3230
+ stderr
3231
+ };
3232
+ }
3233
+ function queryPublishedVersion(candidate, options) {
3234
+ const result = (options.spawn ?? spawnSync)("npm", [
3235
+ "view",
3236
+ `${candidate.name}@${candidate.version}`,
3237
+ "version"
3238
+ ], {
3239
+ cwd: options.cwd,
3240
+ encoding: "utf8",
3241
+ env: getReleaseEnv(options),
3242
+ shell: false,
3243
+ stdio: [
3244
+ "ignore",
3245
+ "pipe",
3246
+ "pipe"
3247
+ ]
3248
+ });
3249
+ return result.status === 0 && outputText(result.stdout).trim() === candidate.version;
3250
+ }
3251
+ function readPublishedCandidates(candidates, options) {
3252
+ return candidates.filter((candidate) => queryPublishedVersion(candidate, options));
3253
+ }
3254
+ function addPackageFilters(args, candidates) {
3255
+ return [...args, ...candidates.flatMap((candidate) => ["--filter", candidate.name])];
3256
+ }
3257
+ function mergePackages(...groups) {
3258
+ const packages = /* @__PURE__ */ new Map();
3259
+ for (const group of groups) for (const pkg of group) packages.set(`${pkg.name}@${pkg.version}`, pkg);
3260
+ return [...packages.values()];
3261
+ }
3262
+ async function preservePublishSummary(cwd, previous) {
3263
+ if (!previous.length) return;
3264
+ const merged = mergePackages(previous, await readPublishSummary(cwd));
3265
+ await writeFile(path.join(cwd, "pnpm-publish-summary.json"), `${JSON.stringify({ publishedPackages: merged }, null, 2)}\n`, "utf8");
3266
+ }
3267
+ async function getPublishCandidates(cwd) {
3268
+ const candidates = (await getWorkspacePackages(cwd)).flatMap(({ manifest }) => typeof manifest.name === "string" && typeof manifest.version === "string" ? [{
3269
+ name: manifest.name,
3270
+ version: manifest.version
3271
+ }] : []);
3272
+ if (!candidates.length) throw new ReleaseCommandError("no versioned publishable workspace packages were found");
3273
+ return candidates;
3274
+ }
3275
+ /**
3276
+ * 发布 workspace 包,并在 provenance 服务出现瞬时错误时按包重试。
3277
+ *
3278
+ * 首次尝试仍交给 pnpm 处理 workspace 发布顺序;只有失败后才查询已上传的
3279
+ * 版本,并为剩余包追加筛选条件,避免重复发布已成功上传的包。
3280
+ */
3281
+ async function publishWithRetry(args, options, candidates) {
3282
+ let attemptArgs = args;
3283
+ let publishedBeforeRetry = await readPublishSummary(options.cwd);
3284
+ for (let attempt = 1; attempt <= publishAttempts; attempt += 1) {
3285
+ const result = runPublishAttempt(attemptArgs, options);
3286
+ const currentSummary = await readPublishSummary(options.cwd);
3287
+ publishedBeforeRetry = mergePackages(publishedBeforeRetry, currentSummary);
3288
+ if (result.status === 0) {
3289
+ await preservePublishSummary(options.cwd, publishedBeforeRetry);
3290
+ return;
3291
+ }
3292
+ const output = commandOutput(result);
3293
+ const published = readPublishedCandidates(candidates, options);
3294
+ publishedBeforeRetry = mergePackages(publishedBeforeRetry, published);
3295
+ const unpublished = candidates.filter((candidate) => !published.some((pkg) => pkg.name === candidate.name && pkg.version === candidate.version));
3296
+ if (!unpublished.length) {
3297
+ await preservePublishSummary(options.cwd, publishedBeforeRetry);
3298
+ logger.warn("npm publish returned an error, but all requested package versions are present in the registry; continuing.");
3299
+ return;
3300
+ }
3301
+ if (!isTransientPublishFailure(output) && !isPublishConflict(output)) throw new ReleaseCommandError(`command failed: pnpm ${args.join(" ")}`, result.status ?? 1);
3302
+ if (attempt === publishAttempts) throw new ReleaseCommandError(`command failed after ${publishAttempts} publish attempts: pnpm ${args.join(" ")}`, result.status ?? 1);
3303
+ const delay = retryDelays[attempt - 1] ?? retryDelays[retryDelays.length - 1] ?? 0;
3304
+ logger.warn(`npm publish transient failure; retrying ${unpublished.length} package(s) in ${delay / 1e3}s (attempt ${attempt + 1}/${publishAttempts}).`);
3305
+ await sleep(delay, options);
3306
+ attemptArgs = addPackageFilters(args, unpublished);
3307
+ }
3308
+ }
3309
+ //#endregion
3151
3310
  //#region src/commands/release/types.ts
3152
3311
  const prereleaseBranches$1 = /* @__PURE__ */ new Set([
3153
3312
  "alpha",
@@ -3179,7 +3338,7 @@ async function releasePrerelease(options) {
3179
3338
  ], options);
3180
3339
  runReleaseHooks("beforePublish", options);
3181
3340
  await clearPublishSummary(options.cwd);
3182
- run("pnpm", [
3341
+ await publishWithRetry([
3183
3342
  "publish",
3184
3343
  "-r",
3185
3344
  "--tag",
@@ -3187,7 +3346,7 @@ async function releasePrerelease(options) {
3187
3346
  "--report-summary",
3188
3347
  "--provenance",
3189
3348
  "--no-git-checks"
3190
- ], options);
3349
+ ], options, await getPublishCandidates(options.cwd));
3191
3350
  run("git", [
3192
3351
  "push",
3193
3352
  "--follow-tags",
@@ -3228,13 +3387,13 @@ async function publishStable(options) {
3228
3387
  await runQualityScripts(options);
3229
3388
  runReleaseHooks("beforePublish", options);
3230
3389
  await clearPublishSummary(options.cwd);
3231
- run("pnpm", [
3390
+ await publishWithRetry([
3232
3391
  "publish",
3233
3392
  "-r",
3234
3393
  "--report-summary",
3235
3394
  "--provenance",
3236
3395
  "--no-git-checks"
3237
- ], options);
3396
+ ], options, await getPublishCandidates(options.cwd));
3238
3397
  return readPublishSummary(options.cwd);
3239
3398
  }
3240
3399
  /** Compatibility entry point retained for existing generated repositories. */
@@ -3393,12 +3552,21 @@ async function publishMetadata(packages, options, prerelease = false) {
3393
3552
  const github = resolveGitHub(options);
3394
3553
  const target = resolveTarget(options);
3395
3554
  const releaseEnv = getReleaseEnv(options);
3555
+ let releaseContributors = [];
3556
+ if (github.readReleasePullRequestContributors) try {
3557
+ releaseContributors = await github.readReleasePullRequestContributors(target);
3558
+ } catch (error) {
3559
+ const message = error instanceof Error ? error.message : String(error);
3560
+ logger.warn(`GitHub release PR contributor lookup skipped: ${message}`);
3561
+ }
3396
3562
  const metadata = {
3397
3563
  locale: resolveReleaseLocale(options),
3564
+ ...releaseContributors.length ? { contributors: releaseContributors } : {},
3398
3565
  ...releaseEnv["GITHUB_REPOSITORY"] ? { repository: releaseEnv["GITHUB_REPOSITORY"] } : {},
3399
3566
  ...releaseEnv["GITHUB_SERVER_URL"] ? { serverUrl: releaseEnv["GITHUB_SERVER_URL"] } : {}
3400
3567
  };
3401
- let noteDocument = await buildReleaseNoteDocument(options.cwd, void 0, metadata);
3568
+ const publishedPackageNames = new Set(packages.map((pkg) => pkg.name));
3569
+ let noteDocument = await buildReleaseNoteDocument(options.cwd, void 0, metadata, publishedPackageNames);
3402
3570
  if (github.enrichReleaseNote) noteDocument = await github.enrichReleaseNote(noteDocument);
3403
3571
  for (const pkg of packages) {
3404
3572
  const tag = `${pkg.name}@${pkg.version}`;
@@ -3526,7 +3694,7 @@ async function recoverUnpublished(options) {
3526
3694
  await runQualityScripts(options);
3527
3695
  runReleaseHooks("beforePublish", options);
3528
3696
  await clearPublishSummary(options.cwd);
3529
- run("pnpm", [
3697
+ await publishWithRetry([
3530
3698
  "publish",
3531
3699
  "-r",
3532
3700
  "--filter",
@@ -3534,7 +3702,10 @@ async function recoverUnpublished(options) {
3534
3702
  "--report-summary",
3535
3703
  "--provenance",
3536
3704
  "--no-git-checks"
3537
- ], options);
3705
+ ], options, [{
3706
+ name: packageName,
3707
+ version: packageVersion
3708
+ }]);
3538
3709
  if (capture("npm", [
3539
3710
  "view",
3540
3711
  `${packageName}@${packageVersion}`,
@@ -3675,7 +3846,15 @@ async function repairReleaseNotes(options) {
3675
3846
  skipped.push(release.tag_name);
3676
3847
  continue;
3677
3848
  }
3678
- const body = buildGitHubReleaseBodyFromChangelog(parsed.packageName, parsed.version, changelog, metadata);
3849
+ let releaseMetadataForBody = metadata;
3850
+ if (release.target_commitish && github.readReleasePullRequestContributors) try {
3851
+ const contributors = await github.readReleasePullRequestContributors(release.target_commitish);
3852
+ if (contributors.length) releaseMetadataForBody = {
3853
+ ...metadata,
3854
+ contributors
3855
+ };
3856
+ } catch {}
3857
+ const body = buildGitHubReleaseBodyFromChangelog(parsed.packageName, parsed.version, changelog, releaseMetadataForBody);
3679
3858
  if (!options.dryRun && (release.name !== release.tag_name || release.body !== body)) await github.updateRelease({
3680
3859
  id: release.id,
3681
3860
  name: release.tag_name,
@@ -1,5 +1,5 @@
1
- import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-CMupqLsN.mjs";
2
- import { b as fs, d as localize, h as logger } from "./types-CrUVxg6T.mjs";
1
+ import { A as getCreateChoices, M as resolveCreateNewProjectPlan, O as createNewProject, k as defaultTemplate } from "./commands-CbYTYyWv.mjs";
2
+ import { b as fs, d as localize, h as logger } from "./types-DsoEY_cl.mjs";
3
3
  import { s as resolveCommandConfig } from "./config-p842Knhq.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
package/dist/index.d.mts CHANGED
@@ -73,6 +73,7 @@ interface GetWorkspacePackagesOptions {
73
73
  */
74
74
  interface WorkspacePackageManifest {
75
75
  name?: string;
76
+ version?: string;
76
77
  private?: boolean;
77
78
  description?: string;
78
79
  }
@@ -272,19 +273,14 @@ interface ReleaseNoteDocument {
272
273
  compareUrls: string[];
273
274
  }
274
275
  //#endregion
275
- //#region src/commands/release/errors.d.ts
276
- declare class ReleaseCommandError extends Error {
277
- readonly exitCode: number;
278
- constructor(message: string, exitCode?: number);
279
- }
280
- //#endregion
281
- //#region src/commands/release/github.d.ts
276
+ //#region src/commands/release/github/types.d.ts
282
277
  interface GitHubPullRequest {
283
278
  number: number;
284
279
  html_url: string;
285
280
  state: string;
286
281
  title?: string;
287
282
  body?: string | null;
283
+ merged_at?: string | null;
288
284
  head?: {
289
285
  ref?: string;
290
286
  };
@@ -293,6 +289,7 @@ interface GitHubRelease {
293
289
  id: number;
294
290
  html_url: string;
295
291
  tag_name: string;
292
+ target_commitish?: string;
296
293
  name?: string;
297
294
  body?: string | null;
298
295
  draft?: boolean;
@@ -336,9 +333,18 @@ interface GitHubOperations {
336
333
  ensureRelease: (options: EnsureReleaseOptions) => Promise<GitHubRelease>;
337
334
  ensureTag?: (options: EnsureTagOptions) => Promise<void>;
338
335
  enrichReleaseNote?: (document: ReleaseNoteDocument) => Promise<ReleaseNoteDocument>;
336
+ readReleasePullRequestContributors?: (target: string) => Promise<string[]>;
339
337
  listReleases?: () => Promise<GitHubRelease[]>;
340
338
  updateRelease?: (options: UpdateReleaseOptions) => Promise<GitHubRelease>;
341
339
  }
340
+ //#endregion
341
+ //#region src/commands/release/errors.d.ts
342
+ declare class ReleaseCommandError extends Error {
343
+ readonly exitCode: number;
344
+ constructor(message: string, exitCode?: number);
345
+ }
346
+ //#endregion
347
+ //#region src/commands/release/github/client.d.ts
342
348
  declare class GitHubApiError extends ReleaseCommandError {
343
349
  readonly status: number;
344
350
  readonly responseBody?: string | undefined;
@@ -352,12 +358,14 @@ declare class GitHubClient implements GitHubOperations {
352
358
  constructor(options?: GitHubClientOptions);
353
359
  private getRepository;
354
360
  private request;
361
+ private getRequest;
355
362
  ensurePullRequest(options: EnsurePullRequestOptions): Promise<GitHubPullRequest>;
356
363
  closeLegacyReleasePullRequests(options: CloseLegacyPullRequestsOptions): Promise<void>;
357
364
  ensureRelease(options: EnsureReleaseOptions): Promise<GitHubRelease>;
358
365
  listReleases(): Promise<GitHubRelease[]>;
359
366
  updateRelease(options: UpdateReleaseOptions): Promise<GitHubRelease>;
360
367
  enrichReleaseNote(document: ReleaseNoteDocument): Promise<ReleaseNoteDocument>;
368
+ readReleasePullRequestContributors(target: string): Promise<string[]>;
361
369
  ensureTag(options: EnsureTagOptions): Promise<void>;
362
370
  }
363
371
  //#endregion
@@ -369,6 +377,8 @@ interface ReleaseOptions {
369
377
  spawn?: typeof spawnSync;
370
378
  env?: NodeJS.ProcessEnv;
371
379
  config?: ReleaseCommandConfig;
380
+ /** 发布重试等待器,主要用于测试注入。 */
381
+ sleep?: (milliseconds: number) => Promise<void>;
372
382
  }
373
383
  interface ReleaseCiOptions extends ReleaseOptions {
374
384
  mode?: ReleaseMode;
@@ -396,7 +406,7 @@ interface RepairReleaseNotesOptions extends ReleaseOptions {
396
406
  tag?: string;
397
407
  all?: boolean;
398
408
  dryRun?: boolean;
399
- github?: Pick<GitHubOperations, 'listReleases' | 'updateRelease'>;
409
+ github?: Pick<GitHubOperations, 'listReleases' | 'updateRelease' | 'readReleasePullRequestContributors'>;
400
410
  }
401
411
  declare function repairReleaseNotes(options: RepairReleaseNotesOptions): Promise<{
402
412
  repaired: string[];
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-CMupqLsN.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-CbYTYyWv.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-CrUVxg6T.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-DsoEY_cl.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-Cicm3wJh.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 };
@@ -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.4.3";
346
+ var version = "5.4.5";
347
347
  var dependencies = {
348
348
  "@icebreakers/commitlint-config": "^4.0.5",
349
349
  "@icebreakers/eslint-config": "^7.1.0",
@@ -351,8 +351,8 @@ var dependencies = {
351
351
  "@icebreakers/stylelint-config": "^5.0.6",
352
352
  "@pnpm/find-workspace-dir": "^1000.1.5",
353
353
  "@pnpm/logger": "^1100.0.0",
354
- "@pnpm/types": "^1102.0.0",
355
- "@pnpm/worker": "^1100.3.0",
354
+ "@pnpm/types": "^1102.1.0",
355
+ "@pnpm/worker": "^1100.4.0",
356
356
  "@pnpm/workspace.find-packages": "^1000.0.65",
357
357
  "@pnpm/workspace.read-manifest": "^1000.3.1",
358
358
  "c12": "^3.3.4",
@@ -361,7 +361,7 @@ var dependencies = {
361
361
  "consola": "^3.4.2",
362
362
  "git-url-parse": "^16.1.0",
363
363
  "klaw": "^4.1.0",
364
- "lint-staged": "^17.3.0",
364
+ "lint-staged": "^17.4.1",
365
365
  "p-queue": "^9.3.3",
366
366
  "pathe": "^2.0.3",
367
367
  "picocolors": "^1.1.1",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "5.4.3",
4
+ "version": "5.4.5",
5
5
  "description": "Core engine and programmatic APIs for repoctl",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -81,8 +81,8 @@
81
81
  "@icebreakers/stylelint-config": "^5.0.6",
82
82
  "@pnpm/find-workspace-dir": "^1000.1.5",
83
83
  "@pnpm/logger": "^1100.0.0",
84
- "@pnpm/types": "^1102.0.0",
85
- "@pnpm/worker": "^1100.3.0",
84
+ "@pnpm/types": "^1102.1.0",
85
+ "@pnpm/worker": "^1100.4.0",
86
86
  "@pnpm/workspace.find-packages": "^1000.0.65",
87
87
  "@pnpm/workspace.read-manifest": "^1000.3.1",
88
88
  "c12": "^3.3.4",
@@ -91,7 +91,7 @@
91
91
  "consola": "^3.4.2",
92
92
  "git-url-parse": "^16.1.0",
93
93
  "klaw": "^4.1.0",
94
- "lint-staged": "^17.3.0",
94
+ "lint-staged": "^17.4.1",
95
95
  "p-queue": "^9.3.3",
96
96
  "pathe": "^2.0.3",
97
97
  "picocolors": "^1.1.1",