@icebreakers/monorepo 6.0.0 → 6.0.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.
Files changed (26) hide show
  1. package/dist/{baseline-CtCb_kzt.mjs → baseline-B6uEfHrm.mjs} +1 -1
  2. package/dist/{catalog-C3VMMckZ.mjs → catalog-YipXrou_.mjs} +3 -3
  3. package/dist/cli.mjs +62 -62
  4. package/dist/{commands-CB_e4fq5.mjs → commands-D1KtdxnV.mjs} +27 -19
  5. package/dist/{config-D9C_znnW.mjs → config--wYfkdsO.mjs} +3 -3
  6. package/dist/{create-flow-0R6kkzHc.mjs → create-flow-D3ZzvBw6.mjs} +3 -3
  7. package/dist/{deps-OzhKc950.mjs → deps-qu9CwEKc.mjs} +3 -3
  8. package/dist/{execute-BfrWLmU0.mjs → execute-BVtr43XS.mjs} +2 -2
  9. package/dist/{execute-D1BGgZc8.mjs → execute-DP6M6JqN.mjs} +2 -2
  10. package/dist/{format-CKP_qfPa.mjs → format-VPlFgfoH.mjs} +1 -1
  11. package/dist/index.mjs +9 -9
  12. package/dist/{inputs-dvQ05DCN.mjs → inputs-B_-kWnm2.mjs} +1 -1
  13. package/dist/{npm-DrDMz-33.mjs → npm-S2sT1UgC.mjs} +1 -1
  14. package/dist/{plan-Dug0VhqZ.mjs → plan-DuHMR5Za.mjs} +1 -1
  15. package/dist/{run-hOzO9t1R.mjs → run-BGHVj0Lj.mjs} +4 -4
  16. package/dist/{save-B8hgvfIq.mjs → save-UiJgdSaY.mjs} +3 -3
  17. package/dist/{scan-CNtEZXN2.mjs → scan-Bg1EPIk6.mjs} +2 -2
  18. package/dist/{template-drift-Doyllu5A.mjs → template-drift-BOk4oxoR.mjs} +3 -3
  19. package/dist/tooling-entry.mjs +2 -2
  20. package/dist/{transaction-C6TP-duf.mjs → transaction-Cg5I2q47.mjs} +2 -2
  21. package/dist/{tsconfig-DUQ2_Lhv.mjs → tsconfig-rZG7b9Ul.mjs} +4 -3
  22. package/dist/{vitest-uLwguaKh.mjs → vitest-BbbU7-qn.mjs} +1 -1
  23. package/dist/{workspace-tasks-CLIb98-n.mjs → workspace-tasks--x70rhb8.mjs} +5 -5
  24. package/package.json +7 -7
  25. package/resources/maintenance/workflow.yml +1 -1
  26. package/resources/skills/repoctl/references/commands.md +1 -1
@@ -1,4 +1,4 @@
1
- import { at as record, rt as hash } from "./workspace-tasks-CLIb98-n.mjs";
1
+ import { at as record, rt as hash } from "./workspace-tasks--x70rhb8.mjs";
2
2
  import path from "pathe";
3
3
  import { readFile, stat } from "node:fs/promises";
4
4
  import { isDeepStrictEqual } from "node:util";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { Ht as clearWorkspaceCache, at as record, rt as hash, st as updateManifest } from "./workspace-tasks-CLIb98-n.mjs";
3
- import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, r as parseSpecifier, t as scanDependencies } from "./scan-CNtEZXN2.mjs";
4
- import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-C6TP-duf.mjs";
2
+ import { Ht as clearWorkspaceCache, at as record, rt as hash, st as updateManifest } from "./workspace-tasks--x70rhb8.mjs";
3
+ import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, r as parseSpecifier, t as scanDependencies } from "./scan-Bg1EPIk6.mjs";
4
+ import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-Cg5I2q47.mjs";
5
5
  import { satisfies, subset, valid, validRange } from "semver";
6
6
  import YAML, { isAlias, isMap } from "yaml";
7
7
  import { isDeepStrictEqual } from "node:util";
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { Ct as message, Et as supportedLocales, J as getWorkspaceGraph, Q as whyWorkspaceDependency, St as localize, Ut as getWorkspaceData, Z as getWorkspaceImpact, a as inspectWorkspaceOwners, i as planCodeowners, jt as fs$1, n as locateWorkspace, r as applyCodeownersPlan, t as getWorkspaceTaskCatalog, vt as cliName, wt as repoctlLocale } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { d as logger } from "./execute-BfrWLmU0.mjs";
3
- import { A as applyInstallSecurityPreset, B as upgradeMonorepo, Bt as validateConfigFile, C as getMaintenanceWorkflow, Ct as planUpgrade, D as planOrganizationPresetAssets, E as applyOrganizationPresetAssets, Ft as loadTemplateCatalogContext, I as checkPublicApi, L as applyPublicApiUpdate, M as deployDocs, Mt as resolveRemoteTemplateSource, N as planDocsDeployment, Nt as createTemplateCatalog, P as checkPeerDependencies, Pt as resolveTemplateCatalog, R as planPublicApiUpdate, Rt as explainMonorepoConfig, S as checkPackages, V as formatUpgradePlan, a as planWorkspaceMove, b as applyProjectReferencesPlan, c as applyToolingCapability, ct as renderReleasePullRequest, d as planTemplateValidation, f as createReleasePlan, g as releaseSnapshot, h as formatNightlySummary, i as applyWorkspaceMovePlan, j as planInstallSecurityPreset, l as planToolingCapability, m as releaseNightly, mt as initToolingTargets, n as applyWorkspaceRemovalPlan, o as applyWorkspaceArtifactPlan, ot as parsePublishSummary, r as planWorkspaceRemoval, s as planWorkspaceArtifact, st as resolveReleaseMode, u as validateTemplate, v as checkProjectReferences, w as prepareMaintenanceUpgrade, wt as applyUpgradePlan, x as planProjectReferences, y as syncProjectReferences, z as formatPublicApiReport, zt as sanitizeConfigReport } from "./commands-CB_e4fq5.mjs";
4
- import { A as version, K as splitConfigPath, M as ConfigValidationError, S as canonicalDirectory, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, p as resolveCommandConfig, q as withLegacyHookConfig } from "./tsconfig-DUQ2_Lhv.mjs";
5
- import { s as resolveCommandValues } from "./scan-CNtEZXN2.mjs";
6
- import { E as checkDependencyAdmission, T as checkWorkspaceBoundaries, f as inspectInstallSecurity } from "./template-drift-Doyllu5A.mjs";
1
+ import { Ct as message, Et as supportedLocales, J as getWorkspaceGraph, Q as whyWorkspaceDependency, St as localize, Ut as getWorkspaceData, Z as getWorkspaceImpact, a as inspectWorkspaceOwners, i as planCodeowners, jt as fs$1, n as locateWorkspace, r as applyCodeownersPlan, t as getWorkspaceTaskCatalog, vt as cliName, wt as repoctlLocale } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { d as logger } from "./execute-BVtr43XS.mjs";
3
+ import { A as applyInstallSecurityPreset, B as upgradeMonorepo, Bt as validateConfigFile, C as getMaintenanceWorkflow, Ct as planUpgrade, D as planOrganizationPresetAssets, E as applyOrganizationPresetAssets, Ft as loadTemplateCatalogContext, I as checkPublicApi, L as applyPublicApiUpdate, M as deployDocs, Mt as resolveRemoteTemplateSource, N as planDocsDeployment, Nt as createTemplateCatalog, P as checkPeerDependencies, Pt as resolveTemplateCatalog, R as planPublicApiUpdate, Rt as explainMonorepoConfig, S as checkPackages, V as formatUpgradePlan, a as planWorkspaceMove, b as applyProjectReferencesPlan, c as applyToolingCapability, ct as renderReleasePullRequest, d as planTemplateValidation, f as createReleasePlan, g as releaseSnapshot, h as formatNightlySummary, i as applyWorkspaceMovePlan, j as planInstallSecurityPreset, l as planToolingCapability, m as releaseNightly, mt as initToolingTargets, n as applyWorkspaceRemovalPlan, o as applyWorkspaceArtifactPlan, ot as parsePublishSummary, r as planWorkspaceRemoval, s as planWorkspaceArtifact, st as resolveReleaseMode, u as validateTemplate, v as checkProjectReferences, w as prepareMaintenanceUpgrade, wt as applyUpgradePlan, x as planProjectReferences, y as syncProjectReferences, z as formatPublicApiReport, zt as sanitizeConfigReport } from "./commands-D1KtdxnV.mjs";
4
+ import { J as withLegacyHookConfig, N as ConfigValidationError, S as canonicalDirectory, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, j as version, p as resolveCommandConfig, q as splitConfigPath } from "./tsconfig-rZG7b9Ul.mjs";
5
+ import { s as resolveCommandValues } from "./scan-Bg1EPIk6.mjs";
6
+ import { E as checkDependencyAdmission, T as checkWorkspaceBoundaries, f as inspectInstallSecurity } from "./template-drift-BOk4oxoR.mjs";
7
7
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
8
8
  import path from "pathe";
9
9
  import process from "node:process";
@@ -50,8 +50,8 @@ function reportCliFailure(error) {
50
50
  async function handleAiPromptCreate(cwd, opts) {
51
51
  const [{ input }, { createTimestampFolderName, defaultAgenticBaseDir, generateAgenticTemplate, generateAgenticTemplates, loadAgenticTasks }, { resolveCommandConfig }] = await Promise.all([
52
52
  import("@icebreakers/monorepo-templates"),
53
- import("./commands-CB_e4fq5.mjs").then((n) => n.t),
54
- import("./tsconfig-DUQ2_Lhv.mjs").then((n) => n.c)
53
+ import("./commands-D1KtdxnV.mjs").then((n) => n.t),
54
+ import("./tsconfig-rZG7b9Ul.mjs").then((n) => n.c)
55
55
  ]);
56
56
  const aiConfig = await resolveCommandConfig("ai", cwd);
57
57
  const resolved = resolveCommandValues("ai", aiConfig, {
@@ -240,7 +240,7 @@ function registerConfigCommands(program, cwd) {
240
240
  if (!report.valid) throw new ConfigValidationError(report.diagnostics);
241
241
  await emitConfigInspection(report, opts, cwd, report);
242
242
  } else {
243
- const { inspectMonorepoConfig } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
243
+ const { inspectMonorepoConfig } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
244
244
  await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
245
245
  }
246
246
  } catch (error) {
@@ -293,7 +293,7 @@ const output$2 = (value) => process.stdout.write(`${JSON.stringify(value, null,
293
293
  function registerCatalogCommands(deps, cwd) {
294
294
  const catalog = deps.command("catalog").description(localize("Inspect pnpm catalogs and review coordinated migrations", "巡检 pnpm catalog 并审阅联动迁移"));
295
295
  catalog.command("check").description(localize("Inspect references, usage and direct-version bypasses without writing", "只读巡检引用、使用情况和直接版本绕过")).option("--catalog <name>", localize("Catalog policy for direct declarations and migration candidates", "直接声明与迁移候选所采用的 catalog 策略"), "default").option("--json", localize("Output a versioned catalog report", "输出有版本结构的 catalog 报告")).action(async (options) => {
296
- const { checkCatalogs } = await import("./catalog-C3VMMckZ.mjs").then((n) => n.t);
296
+ const { checkCatalogs } = await import("./catalog-YipXrou_.mjs").then((n) => n.t);
297
297
  const report = await checkCatalogs(cwd, options);
298
298
  if (options.json) output$2(report);
299
299
  else {
@@ -303,7 +303,7 @@ function registerCatalogCommands(deps, cwd) {
303
303
  if (report.summary.missing || report.summary.direct) process.exitCode = 1;
304
304
  });
305
305
  catalog.command("plan").description(localize("Preview catalog YAML and consumer manifest changes without writing", "只读预览 catalog YAML 与消费者清单的联动变更")).argument("<dependency>", localize("Dependency to migrate", "待迁移依赖")).requiredOption("--section <section>", localize("Dependency section; peer ranges remain unchanged", "依赖分区;peer 范围保留原样")).option("--catalog <name>", localize("Default or named catalog", "默认或命名 catalog"), "default").option("--group <name>", localize("Configured dependency version group", "已配置的依赖版本组"), "default").option("--to <specifier>", localize("Explicit common subrange for non-equivalent declarations", "不等价声明的明确共同子范围")).option("--dry-run", localize("Preview only (the default)", "仅预览(默认行为)")).option("--json", localize("Output a reviewed plan for catalog apply", "输出可审阅并交给 catalog apply 的计划")).action(async (dependency, options) => {
306
- const { planCatalogMigration } = await import("./catalog-C3VMMckZ.mjs").then((n) => n.t);
306
+ const { planCatalogMigration } = await import("./catalog-YipXrou_.mjs").then((n) => n.t);
307
307
  const plan = await planCatalogMigration(cwd, {
308
308
  dependency,
309
309
  ...options
@@ -315,7 +315,7 @@ function registerCatalogCommands(deps, cwd) {
315
315
  }
316
316
  });
317
317
  catalog.command("apply").description(localize("Apply a reviewed catalog migration with conflict checks and rollback", "应用已审阅的 catalog 迁移,检查冲突并支持失败恢复")).argument("<plan>", localize("Reviewed JSON plan", "已审阅的 JSON 计划")).option("--json", localize("Output the apply result as JSON", "以 JSON 输出应用结果")).action(async (file, options) => {
318
- const { applyCatalogMigrationPlan } = await import("./catalog-C3VMMckZ.mjs").then((n) => n.t);
318
+ const { applyCatalogMigrationPlan } = await import("./catalog-YipXrou_.mjs").then((n) => n.t);
319
319
  const result = await applyCatalogMigrationPlan(cwd, JSON.parse(await readFile(file, "utf8")));
320
320
  if (options.json) output$2(result);
321
321
  else process.stdout.write(`${result.status}: ${result.changed.join(", ")}\n${result.nextSteps.join("\n")}\n`);
@@ -342,7 +342,7 @@ function registerDepsCommands(program, cwd) {
342
342
  registerDependencyAdmission(deps, cwd);
343
343
  registerCatalogCommands(deps, cwd);
344
344
  deps.command("check").description(localize("Check dependency consistency without writing or accessing registries", "只读检查依赖版本一致性,不访问 registry")).option("--json", localize("Output the dependency report as JSON", "以 JSON 输出依赖报告")).action(async (options) => {
345
- const { checkDependencies } = await import("./deps-OzhKc950.mjs").then((n) => n.n);
345
+ const { checkDependencies } = await import("./deps-qu9CwEKc.mjs").then((n) => n.n);
346
346
  const report = await checkDependencies(cwd);
347
347
  if (options.json) output$1(report);
348
348
  else for (const group of report.groups) {
@@ -352,7 +352,7 @@ function registerDepsCommands(program, cwd) {
352
352
  if (report.summary.equivalent + report.summary.compatible + report.summary.conflict > 0) process.exitCode = 1;
353
353
  });
354
354
  deps.command("plan").alias("fix").description(localize("Preview an explicit dependency fix; always read-only", "预览显式依赖修复;始终只读")).argument("<dependency>", localize("Dependency name", "依赖名称")).requiredOption("--section <section>", localize("dependencies, devDependencies, peerDependencies or optionalDependencies", "依赖分区:dependencies、devDependencies、peerDependencies 或 optionalDependencies")).requiredOption("--to <specifier>", localize("Explicit target semver range or same-source npm alias", "明确的目标 semver 范围或同源 npm alias")).option("--group <name>", localize("Configured version group", "配置中的版本分组"), "default").option("--dry-run", localize("Preview only (already the default)", "仅预览(默认行为)")).option("--json", localize("Output a serializable plan for deps apply", "输出可交给 deps apply 的 JSON 计划")).action(async (dependency, options) => {
355
- const { planDependencyFix } = await import("./deps-OzhKc950.mjs").then((n) => n.n);
355
+ const { planDependencyFix } = await import("./deps-qu9CwEKc.mjs").then((n) => n.n);
356
356
  const plan = await planDependencyFix(cwd, {
357
357
  dependency,
358
358
  section: options.section,
@@ -367,7 +367,7 @@ function registerDepsCommands(program, cwd) {
367
367
  process.stdout.write(localize("Preview only. Save --json output, review it, then run deps apply <plan.json>.\n", "仅预览。保存并审阅 --json 输出,然后执行 deps apply <plan.json>。\n"));
368
368
  });
369
369
  deps.command("apply").description(localize("Apply a reviewed dependency plan with conflict checks and rollback", "应用已审阅的依赖计划,检查冲突并支持失败回滚")).argument("<plan>", localize("JSON plan file", "JSON 计划文件")).option("--json", localize("Output the result as JSON", "以 JSON 输出结果")).action(async (file, options) => {
370
- const { applyDependencyFixPlan } = await import("./deps-OzhKc950.mjs").then((n) => n.n);
370
+ const { applyDependencyFixPlan } = await import("./deps-qu9CwEKc.mjs").then((n) => n.n);
371
371
  const result = await applyDependencyFixPlan(cwd, JSON.parse(await readFile(file, "utf8")));
372
372
  if (options.json) output$1(result);
373
373
  else {
@@ -399,8 +399,8 @@ function registerDocsCommands(program, cwd) {
399
399
  function registerEnvironmentCheck(command, cwd) {
400
400
  command.command("check [tasks...]").description(localize("Check static environment references against Turbo cache declarations", "检查静态环境变量引用与 Turbo 缓存声明")).option("--json", localize("Output structured findings", "输出结构化诊断")).option("--markdown", localize("Output Markdown to stdout", "向标准输出写入 Markdown")).option("--strict", localize("Fail on warnings as well as errors", "警告也返回失败码")).option("--no-framework-inference", localize("Disable framework prefix assumptions", "不采用框架变量前缀推断")).option("--dry-run", localize("Read-only check (always enabled)", "只读检查(始终启用)")).action(async (tasks, options, action) => {
401
401
  if (options.json && options.markdown) throw new Error("--json and --markdown cannot be combined");
402
- const { checkEnvironmentCache } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.F);
403
- const { formatEnvironmentCache } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.N);
402
+ const { checkEnvironmentCache } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.F);
403
+ const { formatEnvironmentCache } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.N);
404
404
  const report = await checkEnvironmentCache(cwd, {
405
405
  ...tasks.length ? { tasks } : {},
406
406
  ...action.getOptionValueSource("frameworkInference") === "cli" ? { frameworkInference: options.frameworkInference } : {}
@@ -726,23 +726,23 @@ function registerEnvCommands(program, cwd) {
726
726
  const envCommand = program.command("env").alias("e").description(localize("Environment and support commands", "环境命令"));
727
727
  registerEnvironmentCheck(envCommand, cwd);
728
728
  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) => {
729
- const { collectEnvInfo } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
729
+ const { collectEnvInfo } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
730
730
  await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
731
731
  });
732
732
  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) => {
733
- const { collectEnvSnapshot } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
733
+ const { collectEnvSnapshot } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
734
734
  await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
735
735
  });
736
736
  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) => {
737
- const { collectEnvPaths } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
737
+ const { collectEnvPaths } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
738
738
  await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
739
739
  });
740
740
  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) => {
741
- const { collectEnvSupportBundle } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
741
+ const { collectEnvSupportBundle } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
742
742
  await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
743
743
  });
744
744
  envCommand.command("mirror").description(localize("Configure the VS Code binary mirror", "设置 VS Code binary mirror")).alias("m").action(async () => {
745
- const { setVscodeBinaryMirror } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
745
+ const { setVscodeBinaryMirror } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
746
746
  await setVscodeBinaryMirror(cwd);
747
747
  logger.success(localize("Environment mirror finished.", "环境镜像完成。"));
748
748
  });
@@ -752,7 +752,7 @@ function registerEnvCommands(program, cwd) {
752
752
  function registerGenerateCommand(program, cwd) {
753
753
  program.command("generate").alias("g").description(localize("Generate a component or route inside an existing package", "在已有包内生成组件或路由")).argument("<generator>", "vue-component, react-component, hono-route").argument("<name>", localize("Kebab-case component or route name", "kebab-case 组件或路由名称")).requiredOption("--package <name-or-path>", localize("Exact workspace package name or relative directory", "精确 workspace 包名或相对目录")).option("--directory <path>", localize("Package-relative source directory", "包内源文件相对目录")).option("--barrel <path>", localize("TypeScript export barrel, used with --export", "配合 --export 使用的 TypeScript 导出文件")).option("--export", localize("Add a named export to src/index.ts or --barrel", "向 src/index.ts 或 --barrel 添加具名导出")).option("--params <json>", localize("Additional typed generator parameters as JSON", "JSON 格式的类型化生成参数")).option("--dry-run", localize("Preview all generated changes without writing", "预览全部生成变更,不写入文件")).option("--json", localize("Print a JSON preview without writing", "以 JSON 输出预览,不写入文件")).action(async (generator, name, options) => {
754
754
  try {
755
- const { applyGeneratePlan, planGenerate } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.v);
755
+ const { applyGeneratePlan, planGenerate } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.v);
756
756
  const extra = options.params ? JSON.parse(options.params) : {};
757
757
  if (!extra || typeof extra !== "object" || Array.isArray(extra)) throw new Error("--params must contain a JSON object.");
758
758
  if (Object.hasOwn(extra, "name") || options.export !== void 0 && Object.hasOwn(extra, "export")) throw new Error("Do not supply the same generator parameter through multiple inputs.");
@@ -854,7 +854,7 @@ function registerPackageCommands(program, cwd) {
854
854
  registerPackageCheckCommand(packageCommand, cwd);
855
855
  registerPublicApiCommands(packageCommand, cwd);
856
856
  packageCommand.command("create").description(localize("Create a new workspace package", "创建一个新的子包")).alias("new").argument("[name]").option("--offline", localize("Use only verified cached remote assets", "只使用通过校验的远程资产缓存")).option("--data <file>", localize("Read typed template parameters from a JSON file", "从 JSON 文件读取类型化模板参数")).option("--cache-dir <directory>", localize("Template asset cache directory", "模板资产缓存目录")).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) => {
857
- const { runCreateFlow } = await import("./create-flow-0R6kkzHc.mjs");
857
+ const { runCreateFlow } = await import("./create-flow-D3ZzvBw6.mjs");
858
858
  const result = await runCreateFlow(cwd, inputName, {
859
859
  ...opts.offline !== void 0 ? { offline: opts.offline } : {},
860
860
  ...opts.cacheDir ? { cacheDir: opts.cacheDir } : {},
@@ -1336,7 +1336,7 @@ function registerReleaseCommands(program, cwd) {
1336
1336
  registerNpmMirror(releaseCommand, cwd);
1337
1337
  releaseCommand.command("ci").description(localize("Prepare, publish, or recover versions in CI", "在 CI 中自动准备、发布和恢复版本")).option("--stage <stage>", "all / plan / verify / prepare / upload / confirm / finalize", "all").option("--mode <mode>", "auto / prepare / publish / publish-unpublished / reconcile / oidc-audit", "auto").option("--package <name>", localize("Package used by publish-unpublished mode", "publish-unpublished 使用的 package")).option("--version <version>", localize("Version used by publish-unpublished mode", "publish-unpublished 使用的版本")).option("--source-sha <sha>", localize("Recover a prepared release from the selected line history", "从所选发布线的历史提交恢复整批发布")).option("--dry-run", localize("Preview reconcile changes without updating GitHub", "只预览 reconcile 变更,不更新 GitHub")).action(async (opts) => {
1338
1338
  await runReleaseAction(async () => {
1339
- const { releaseCi } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1339
+ const { releaseCi } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1340
1340
  const mode = resolveReleaseMode(opts);
1341
1341
  await releaseCi({
1342
1342
  ...mode === "oidc-audit" ? { cwd } : await resolveReleaseOptions(cwd),
@@ -1352,7 +1352,7 @@ function registerReleaseCommands(program, cwd) {
1352
1352
  });
1353
1353
  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")).option("--create-missing", localize("Create a missing GitHub Release after validating the published package and tag", "核验已发布 package 和 tag 后补建缺失的 GitHub Release")).action(async (opts) => {
1354
1354
  await runReleaseAction(async () => {
1355
- const { repairReleaseNotes } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1355
+ const { repairReleaseNotes } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1356
1356
  const result = await repairReleaseNotes({
1357
1357
  cwd,
1358
1358
  ...opts.all ? { all: true } : {},
@@ -1365,7 +1365,7 @@ function registerReleaseCommands(program, cwd) {
1365
1365
  });
1366
1366
  const stableCommand = releaseCommand.command("stable").description(localize("Run a stable release from the configured release line", "在配置的正式发布线执行发布")).action(async () => {
1367
1367
  await runReleaseAction(async () => {
1368
- const { releaseCi } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1368
+ const { releaseCi } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1369
1369
  await releaseCi({
1370
1370
  ...await resolveReleaseOptions(cwd),
1371
1371
  mode: "publish"
@@ -1375,7 +1375,7 @@ function registerReleaseCommands(program, cwd) {
1375
1375
  });
1376
1376
  stableCommand.command("prepare").description(localize("Consume pnpm change intents and prepare a Release PR", "消费 pnpm change intents 并准备 Release PR")).action(async () => {
1377
1377
  await runReleaseAction(async () => {
1378
- const { releaseCi } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1378
+ const { releaseCi } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1379
1379
  await releaseCi({
1380
1380
  ...await resolveReleaseOptions(cwd),
1381
1381
  mode: "prepare"
@@ -1385,7 +1385,7 @@ function registerReleaseCommands(program, cwd) {
1385
1385
  });
1386
1386
  stableCommand.command("publish").description(localize("Publish prepared versions from the configured release line", "发布所选发布线已经准备的包版本")).action(async () => {
1387
1387
  await runReleaseAction(async () => {
1388
- const { releaseCi } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1388
+ const { releaseCi } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1389
1389
  await releaseCi({
1390
1390
  ...await resolveReleaseOptions(cwd),
1391
1391
  mode: "publish"
@@ -1396,21 +1396,21 @@ function registerReleaseCommands(program, cwd) {
1396
1396
  const preCommand = releaseCommand.command("pre").description(localize("Run or manage prereleases", "执行或管理 prerelease 发布"));
1397
1397
  preCommand.command("publish").alias("run").description(localize("Publish from a configured prerelease branch", "在已配置的预发布分支发布 prerelease")).action(async () => {
1398
1398
  await runReleaseAction(async () => {
1399
- const { releaseCi } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1399
+ const { releaseCi } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1400
1400
  await releaseCi(await resolveReleaseOptions(cwd));
1401
1401
  logger.success(localize("Prerelease finished.", "预发布完成。"));
1402
1402
  });
1403
1403
  });
1404
1404
  preCommand.command("enter").description(localize("Enter a pnpm prerelease lane", "进入 pnpm prerelease lane")).argument("<tag>", localize("Configured pnpm prerelease lane", "已配置的 pnpm 预发布 lane")).action(async (tag) => {
1405
1405
  await runReleaseAction(async () => {
1406
- const { enterPrerelease } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1406
+ const { enterPrerelease } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1407
1407
  await enterPrerelease(tag, { cwd });
1408
1408
  logger.success(localize(`Entered ${tag} prerelease mode.`, `已进入 ${tag} 预发布模式。`));
1409
1409
  });
1410
1410
  });
1411
1411
  preCommand.command("exit").description(localize("Exit the pnpm prerelease lane", "退出 pnpm prerelease lane")).action(async () => {
1412
1412
  await runReleaseAction(async () => {
1413
- const { exitPrerelease } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1413
+ const { exitPrerelease } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1414
1414
  const target = await exitPrerelease({ cwd });
1415
1415
  logger.success(localize(`Exited prerelease mode. Stable target: ${target.branch}.`, `已退出预发布模式,正式目标分支:${target.branch}。`));
1416
1416
  });
@@ -1427,7 +1427,7 @@ const skillTargets = [
1427
1427
  ];
1428
1428
  function registerSkillsCommands(program, cwd) {
1429
1429
  program.command("skills").alias("sk").description(localize("AI skill commands", "技能工具集")).command("sync").description(localize("Synchronize the repoctl skill to global agent directories", "同步 resources/skills/repoctl 到全局目录")).alias("s").option("--codex", localize("Synchronize to ~/.codex/skills", "同步到 ~/.codex/skills")).option("--claude", localize("Synchronize to ~/.claude/skills", "同步到 ~/.claude/skills")).option("--cursor", localize("Synchronize to ~/.cursor/skills", "同步到 ~/.cursor/skills")).option("--agents", localize("Synchronize to ~/.agents/skills", "同步到 ~/.agents/skills")).option("--grok", localize("Synchronize to ~/.grok/skills", "同步到 ~/.grok/skills")).option("--all", localize("Synchronize every target", "同步全部目标")).action(async (opts) => {
1430
- const { syncSkills } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1430
+ const { syncSkills } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1431
1431
  const selected = /* @__PURE__ */ new Set();
1432
1432
  if (opts.all) for (const target of skillTargets) selected.add(target);
1433
1433
  else {
@@ -1463,7 +1463,7 @@ async function emitTemplateReport(value, options) {
1463
1463
  //#region src/cli/commands/template-instances/drift.ts
1464
1464
  function registerTemplateDriftCommand(templates) {
1465
1465
  templates.command("drift").description(localize("Inspect template versions and managed file drift without changing assets", "只读诊断模板版本、基线和受管文件漂移")).option("--source-dir <directory>", localize("Compare with metadata from an extracted template package", "与已解压模板包的真实版本元数据比较")).option("--remote", localize("Explicitly query the public npm latest dist-tag", "显式查询公共 npm 仓库的 latest 版本")).option("--strict", localize("Fail on active warnings, including unavailable evidence", "存在有效告警或证据不可用时失败")).option("--json", localize("Output structured JSON", "输出结构化 JSON")).option("--markdown", localize("Output a Markdown report (default)", "输出 Markdown 报告(默认)")).option("--out <file>", localize("Write only the report to this file", "仅将诊断报告写入指定文件")).action(async (options, command) => {
1466
- const { checkTemplateDrift, formatTemplateDriftReport, hasTemplateDriftIssues } = await import("./template-drift-Doyllu5A.mjs").then((n) => n.n);
1466
+ const { checkTemplateDrift, formatTemplateDriftReport, hasTemplateDriftIssues } = await import("./template-drift-BOk4oxoR.mjs").then((n) => n.n);
1467
1467
  const merged = {
1468
1468
  ...command.optsWithGlobals(),
1469
1469
  ...options
@@ -1482,7 +1482,7 @@ function registerTemplateDriftCommand(templates) {
1482
1482
  //#region src/cli/commands/template-instances/upgrade.ts
1483
1483
  function registerTemplateUpgradeCommands(templates) {
1484
1484
  templates.command("upgrade").description(localize("Preview a selected template instance upgrade, preserving business changes", "预览所选模板实例的增量升级,保留业务修改")).argument("<instance>", localize("Registered instance ID or target path", "已登记实例 ID 或目标路径")).requiredOption("--source-version <version>", localize("Exact target template package version", "目标模板包的精确版本")).option("--source-dir <directory>", localize("Read an extracted target template package", "只读使用已解压的目标模板包")).option("--exclude <paths...>", localize("Keep these relative files or directories unmanaged in future upgrades", "将这些相对文件或目录持久标记为不受管")).option("--apply", localize("Apply a conflict-free instance upgrade", "应用无冲突的实例升级")).option("--json", localize("Output structured JSON", "输出结构化 JSON")).option("--out <file>", localize("Write the report to a file", "将报告写入文件")).action(async (instance, options, command) => {
1485
- const { planTemplateUpgrade, applyTemplateUpgradePlan } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1485
+ const { planTemplateUpgrade, applyTemplateUpgradePlan } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1486
1486
  const plan = await planTemplateUpgrade({
1487
1487
  cwd: await templateWorkspaceRoot(),
1488
1488
  instance,
@@ -1496,7 +1496,7 @@ function registerTemplateUpgradeCommands(templates) {
1496
1496
  });
1497
1497
  });
1498
1498
  templates.command("recover-upgrade").description(localize("Inspect or restore an interrupted instance upgrade", "检查或恢复中断的实例升级")).argument("<instance>", localize("Registered instance ID or target path", "已登记实例 ID 或目标路径")).option("--apply", localize("Restore the recorded instance and changed files", "恢复记录中的实例信息及受影响文件")).option("--json", localize("Output structured JSON", "输出结构化 JSON")).option("--out <file>", localize("Write the report to a file", "将报告写入文件")).action(async (instance, options, command) => {
1499
- const { recoverTemplateUpgrade } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1499
+ const { recoverTemplateUpgrade } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1500
1500
  await emitTemplateReport(await recoverTemplateUpgrade(await templateWorkspaceRoot(), instance, options.apply), {
1501
1501
  ...command.optsWithGlobals(),
1502
1502
  ...options
@@ -1509,7 +1509,7 @@ function registerTemplateInstanceCommands(templates) {
1509
1509
  registerTemplateDriftCommand(templates);
1510
1510
  registerTemplateUpgradeCommands(templates);
1511
1511
  templates.command("instances").description(localize("Inspect registered template instances without changing files", "只读查询已登记模板实例")).argument("[target]", localize("Instance ID or workspace-relative target", "实例 ID 或相对工作区路径")).option("--json", localize("Output structured JSON", "输出结构化 JSON")).option("--out <file>", localize("Write the report to a file", "将报告写入文件")).action(async (target, options, command) => {
1512
- const { listTemplateInstances } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1512
+ const { listTemplateInstances } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1513
1513
  const instances = await listTemplateInstances(await templateWorkspaceRoot());
1514
1514
  const selected = target ? instances.filter((item) => item.instance.id === target || item.instance.target === target) : instances;
1515
1515
  if (target && !selected.length) throw new Error(`Unknown template instance: ${target}`);
@@ -1522,7 +1522,7 @@ function registerTemplateInstanceCommands(templates) {
1522
1522
  });
1523
1523
  });
1524
1524
  templates.command("link").description(localize("Preview an explicit historical template association; --apply writes metadata only", "预览历史模板关联;--apply 仅写登记信息")).argument("<target>", localize("Existing workspace-relative project path", "存量项目相对工作区路径")).requiredOption("--template <key>", localize("Stable template key", "稳定模板标识")).requiredOption("--source-version <version>", localize("Exact historical template package version", "模板包的精确历史版本")).option("--source-dir <directory>", localize("Read an extracted historical template package without executing it", "只读使用已解压的历史模板包,不执行其脚本")).option("--profile <profile>", localize("workspace-copy-v1 or repo-new-v1", "workspace-copy-v1 或 repo-new-v1"), "repo-new-v1").option("--package-name <name>", localize("Historical generated package name", "历史生成包名")).option("--rename-json", localize("Historical output used package.mock.json", "历史生成时使用了 package.mock.json")).option("--unverified", localize("Explicitly allow metadata-only association when the source is unavailable", "来源不可用时显式允许未验证关联")).option("--apply", localize("Apply the reviewed association without changing project files", "应用关联,不改写项目文件")).option("--json", localize("Output the plan as JSON", "以 JSON 输出计划")).option("--out <file>", localize("Write the plan or result to a file", "将计划或结果写入文件")).action(async (target, options, command) => {
1525
- const { applyTemplateLinkPlan, planTemplateLink } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1525
+ const { applyTemplateLinkPlan, planTemplateLink } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1526
1526
  const plan = await planTemplateLink({
1527
1527
  cwd: await templateWorkspaceRoot(),
1528
1528
  target,
@@ -1542,14 +1542,14 @@ function registerTemplateInstanceCommands(templates) {
1542
1542
  });
1543
1543
  });
1544
1544
  templates.command("relocate").description(localize("Associate a missing instance with an identical destination, without moving files", "显式关联已移动且可验证的实例,不移动业务文件")).argument("<instance>", localize("Registered instance ID or old path", "已登记实例 ID 或旧路径")).argument("<target>", localize("New workspace-relative path", "新相对工作区路径")).option("--apply", localize("Update the registered path", "更新登记路径")).option("--json", localize("Output JSON", "输出 JSON")).option("--out <file>", localize("Write the report to a file", "将报告写入文件")).action(async (instance, target, options, command) => {
1545
- const { relocateTemplateInstance } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1545
+ const { relocateTemplateInstance } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1546
1546
  await emitTemplateReport(await relocateTemplateInstance(await templateWorkspaceRoot(), instance, target, options.apply), {
1547
1547
  ...command.optsWithGlobals(),
1548
1548
  ...options
1549
1549
  });
1550
1550
  });
1551
1551
  templates.command("rebuild-baseline").description(localize("Reconstruct a retained baseline into a new isolated directory", "在新的隔离目录中重建留存基线")).argument("<instance>", localize("Instance ID or target", "实例 ID 或目标路径")).requiredOption("--destination <directory>", localize("A directory that does not exist", "尚不存在的目录")).option("--original", localize("Reconstruct the original template before repoctl transformations", "重建 repoctl 处理前的原始模板")).action(async (instance, options) => {
1552
- const { rebuildTemplateInstanceBaseline } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.d);
1552
+ const { rebuildTemplateInstanceBaseline } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.d);
1553
1553
  await emitTemplateReport({
1554
1554
  instance: (await rebuildTemplateInstanceBaseline(await templateWorkspaceRoot(), instance, path.resolve(options.destination), options.original ? "original" : "rendered")).id,
1555
1555
  destination: path.resolve(options.destination)
@@ -1754,7 +1754,7 @@ function registerTemplatesCommands(program) {
1754
1754
  const templates = program.command("templates").alias("tpl").description(localize("List built-in and configured 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 template configuration, 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) => {
1755
1755
  const { isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
1756
1756
  if (opts.check) {
1757
- const { checkTemplates } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1757
+ const { checkTemplates } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1758
1758
  const report = await checkTemplates();
1759
1759
  if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
1760
1760
  else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
@@ -1878,7 +1878,7 @@ function registerCapabilityCommands(toolingCommand, cwd) {
1878
1878
  function registerDevContainerCommand(command, cwd) {
1879
1879
  command.command("devcontainer").description(localize("Preview a pnpm Dev Container preset, or apply a reviewed plan", "预览 pnpm Dev Container 预设,或应用已审查的计划")).option("--node-version <version>", localize("Choose an exact Node version allowed by engines.node", "选择 engines.node 允许的精确 Node 版本")).option("--apply <plan>", localize("Apply a saved JSON plan without starting containers", "应用已保存的 JSON 计划,不启动容器")).option("--dry-run", localize("Preview only (the default)", "只读预览(默认行为)")).option("--json", localize("Output JSON with generated files and diffs", "输出包含生成文件与差异的 JSON")).option("--out <file>", localize("Save the JSON preview to a new file", "将 JSON 预览保存到一个新文件")).action(async (_options, current) => {
1880
1880
  const options = current.optsWithGlobals();
1881
- const { applyDevContainerPlan, planDevContainer } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1881
+ const { applyDevContainerPlan, planDevContainer } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1882
1882
  if (options.apply) {
1883
1883
  if (options.nodeVersion || options.dryRun || options.out) throw new Error("--apply cannot be combined with preview or selection options.");
1884
1884
  const filename = path.resolve(cwd, options.apply);
@@ -1930,7 +1930,7 @@ function registerToolingCommands(program, cwd) {
1930
1930
  registerDevContainerCommand(toolingCommand, cwd);
1931
1931
  toolingCommand.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) => {
1932
1932
  const normalizedTooling = normalizeToolingTargets(tooling);
1933
- const { initTooling } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
1933
+ const { initTooling } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
1934
1934
  await initTooling(cwd, {
1935
1935
  ...normalizedTooling ? { targets: normalizedTooling } : {},
1936
1936
  ...opts.all !== void 0 ? { all: opts.all } : {},
@@ -1954,8 +1954,8 @@ function registerCacheAnalysis(check, cwd) {
1954
1954
  const markdown = options.markdown || parent["markdown"] === true;
1955
1955
  if (json && markdown) throw new Error("--json and --markdown cannot be combined");
1956
1956
  const own = command.opts();
1957
- const { analyzeTurboRuns } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.G);
1958
- const { formatTurboAnalysis } = await import("./format-CKP_qfPa.mjs");
1957
+ const { analyzeTurboRuns } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.G);
1958
+ const { formatTurboAnalysis } = await import("./format-VPlFgfoH.mjs");
1959
1959
  const result = await analyzeTurboRuns(path.resolve(cwd, current), {
1960
1960
  ...previous !== void 0 ? { previous: path.resolve(cwd, previous) } : {},
1961
1961
  ...own.slowest !== void 0 ? { slowest: Number(own.slowest) } : {}
@@ -1983,7 +1983,7 @@ function registerKnipCheck(check, cwd) {
1983
1983
  };
1984
1984
  if (opts.saveBaseline && (opts.baseline || opts.newOnly || opts.dryRun || opts.recommendConfig)) throw new Error("--save-baseline cannot be combined with --baseline, --new-only, --dry-run or --recommend-config.");
1985
1985
  if (opts.recommendConfig && (opts.config || opts.baseline || opts.newOnly || opts.timeout || opts.production || opts.strict)) throw new Error("--recommend-config only provides native configuration suggestions; it cannot run or compare an analysis.");
1986
- const { getKnipConfigurationSuggestions, planKnipCheck, runKnipCheck, saveKnipBaseline } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.L);
1986
+ const { getKnipConfigurationSuggestions, planKnipCheck, runKnipCheck, saveKnipBaseline } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.L);
1987
1987
  if (opts.recommendConfig) {
1988
1988
  process.stdout.write(`${JSON.stringify(await getKnipConfigurationSuggestions(cwd), null, 2)}\n`);
1989
1989
  return;
@@ -2138,7 +2138,7 @@ function registerCheckCommand(program, cwd) {
2138
2138
  ...opts.globalInput ? { globalInputs: opts.globalInput } : {}
2139
2139
  };
2140
2140
  if (opts.matrix) {
2141
- const { resolveAffectedCheckMatrix } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2141
+ const { resolveAffectedCheckMatrix } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2142
2142
  const matrix = await resolveAffectedCheckMatrix({
2143
2143
  ...options,
2144
2144
  ...opts.shards !== void 0 ? { shards: Number(opts.shards) } : {}
@@ -2152,19 +2152,19 @@ function registerCheckCommand(program, cwd) {
2152
2152
  if (opts.dryRun || opts.json || opts.markdown || opts.out) throw new Error("--report cannot be combined with preview options: --dry-run, --json, --markdown, --out");
2153
2153
  const format = opts.reportFormat ?? "json";
2154
2154
  if (format !== "json" && format !== "markdown") throw new Error("--report-format must be json or markdown");
2155
- const { runCheckExecution } = await import("./execute-D1BGgZc8.mjs");
2155
+ const { runCheckExecution } = await import("./execute-DP6M6JqN.mjs");
2156
2156
  await runCheckExecution(options, opts.report, format, opts.redact);
2157
2157
  return;
2158
2158
  }
2159
- const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2159
+ const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2160
2160
  if (opts.dryRun || opts.json || opts.markdown || opts.out) {
2161
2161
  if (opts.affected) {
2162
- const { resolveAffectedCheckPlan } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2162
+ const { resolveAffectedCheckPlan } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2163
2163
  await emitCheckPlan(await resolveAffectedCheckPlan(options), opts, cwd);
2164
2164
  return;
2165
2165
  }
2166
2166
  if (opts.full) {
2167
- const { resolveFullWorkspaceCheckPlan } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2167
+ const { resolveFullWorkspaceCheckPlan } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2168
2168
  await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
2169
2169
  return;
2170
2170
  }
@@ -2172,7 +2172,7 @@ function registerCheckCommand(program, cwd) {
2172
2172
  return;
2173
2173
  }
2174
2174
  if (opts.affected) {
2175
- const { runCheckExecution } = await import("./execute-D1BGgZc8.mjs");
2175
+ const { runCheckExecution } = await import("./execute-DP6M6JqN.mjs");
2176
2176
  await runCheckExecution(options);
2177
2177
  return;
2178
2178
  }
@@ -2338,7 +2338,7 @@ async function emitDoctorReport(report, opts, cwd) {
2338
2338
  }
2339
2339
  function registerDoctorCommand(program, cwd) {
2340
2340
  registerInstallSecurityCommand(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 门禁")).option("--rules <ids>", localize("Select exact check IDs, separated by commas", "选择精确检查 ID,以逗号分隔")).option("--list-rules", localize("List all available check IDs", "列出全部可用检查 ID")).option("--fix", localize("Preview safe fixes without writing", "预览安全修复,不写入文件")).option("--apply <plan>", localize("Apply a reviewed doctor fix JSON plan", "应用已审核的 doctor 修复 JSON 计划")).action(async (opts) => {
2341
- const commands = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2341
+ const commands = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2342
2342
  if (opts.fix && opts.apply || opts.apply && opts.rules !== void 0 || opts.listRules && (opts.fix || opts.apply || opts.rules !== void 0)) throw new Error("Use one of --list-rules, --fix, or --apply; --apply cannot change the reviewed rule selection.");
2343
2343
  if (opts.listRules || opts.fix || opts.apply) {
2344
2344
  if (opts.markdown || opts.redact) throw new Error("--markdown and --redact apply to diagnostic reports, not rule lists or executable plans.");
@@ -2407,7 +2407,7 @@ function registerUpgradeCommand(parent, cwd, alias) {
2407
2407
  //#region src/cli/commands/top-level.ts
2408
2408
  function registerTopLevelCommands(program, cwd) {
2409
2409
  program.command("init").description(localize("Initialize the current workspace with recommended configuration", "初始化当前 workspace,并生成推荐配置")).option("--preset <preset>", localize("Initialization preset: minimal or standard", "初始化预设:minimal / 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) => {
2410
- const { init } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2410
+ const { init } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2411
2411
  const config = await loadMonorepoConfig(cwd);
2412
2412
  const { preset } = resolveCommandValues("init", config.commands?.init, { preset: opts.preset }, { entry: "cli" }).values;
2413
2413
  await init(cwd, {
@@ -2420,7 +2420,7 @@ function registerTopLevelCommands(program, cwd) {
2420
2420
  logger.info(localize("Next: run `pnpm install` and `pnpm build`.", "下一步:运行 `pnpm install` 和 `pnpm build`。"));
2421
2421
  });
2422
2422
  program.command("new").description(localize("Create a new package or application", "创建新的 package / app")).argument("[name]").option("--offline", localize("Use only verified cached remote assets", "只使用通过校验的远程资产缓存")).option("--data <file>", localize("Read typed template parameters from a JSON file", "从 JSON 文件读取类型化模板参数")).option("--cache-dir <directory>", localize("Template asset cache directory", "模板资产缓存目录")).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) => {
2423
- const { runCreateFlow } = await import("./create-flow-0R6kkzHc.mjs");
2423
+ const { runCreateFlow } = await import("./create-flow-D3ZzvBw6.mjs");
2424
2424
  const result = await runCreateFlow(cwd, inputName, {
2425
2425
  ...opts.offline !== void 0 ? { offline: opts.offline } : {},
2426
2426
  ...opts.cacheDir ? { cacheDir: opts.cacheDir } : {},
@@ -2443,22 +2443,22 @@ function registerTopLevelCommands(program, cwd) {
2443
2443
  function registerVerifyCommands(program, cwd) {
2444
2444
  const verifyCommand = program.command("verify").alias("v").description(localize("Local verification commands", "本地校验工具集"));
2445
2445
  verifyCommand.command("pre-push").description(localize("Run build, test, and tsd checks for pushed changes", "按推送变更范围执行 build/test/tsd 校验")).alias("push").action(async () => {
2446
- const { verifyPrePush } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2446
+ const { verifyPrePush } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2447
2447
  await verifyPrePush({ cwd });
2448
2448
  });
2449
2449
  verifyCommand.command("pre-commit").description(localize("Run Lefthook verification", "执行 Lefthook 校验")).alias("commit").action(async () => {
2450
- const { verifyPreCommit } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2450
+ const { verifyPreCommit } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2451
2451
  await verifyPreCommit({ cwd });
2452
2452
  });
2453
2453
  verifyCommand.command("commit-msg").description(localize("Run commitlint verification", "执行 commitlint 校验")).alias("msg").argument("<edit-file>").action(async (editFile) => {
2454
- const { verifyCommitMsg } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2454
+ const { verifyCommitMsg } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2455
2455
  await verifyCommitMsg({
2456
2456
  cwd,
2457
2457
  editFile
2458
2458
  });
2459
2459
  });
2460
2460
  verifyCommand.command("staged-typecheck").description(localize("Run typecheck in workspaces containing staged files", "按暂存文件所在 workspace 执行 typecheck")).alias("tc").argument("[files...]").action(async (files = []) => {
2461
- const { verifyStagedTypecheck } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2461
+ const { verifyStagedTypecheck } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2462
2462
  verifyStagedTypecheck(files.length ? files : void 0, { cwd });
2463
2463
  });
2464
2464
  }
@@ -2822,12 +2822,12 @@ function registerWorkspaceCommands(program, cwd) {
2822
2822
  registerWorkspaceRemoval(workspaceCommand, cwd);
2823
2823
  registerWorkspaceMove(workspaceCommand, cwd);
2824
2824
  workspaceCommand.command("init").description(localize("Initialize workspace metadata and repository files", "初始化工作区元信息(README、package.json、pnpm intent、issue template)")).alias("i").action(async () => {
2825
- const { initMetadata } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2825
+ const { initMetadata } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2826
2826
  await initMetadata(cwd);
2827
2827
  logger.success(localize("Workspace initialization finished.", "Workspace 初始化完成。"));
2828
2828
  });
2829
2829
  workspaceCommand.command("list").description(localize("List workspace packages", "列出 workspace 包")).alias("ls").option("--json", localize("Output JSON", "输出 JSON")).option("--markdown", localize("Output Markdown", "输出 Markdown,方便粘贴到 issue 或 PR")).option("--redact", localize("Redact workspace, cwd, and home paths", "脱敏 workspace/cwd/home 绝对路径后再输出")).option("--include-private", localize("Include private packages", "包含 private 包")).option("--include-root", localize("Include the workspace root package", "包含 workspace 根包")).option("-p, --pattern <glob>", localize("Append a workspace glob; repeatable", "追加自定义 workspace glob,可重复"), collectValues).option("--out <file>", localize("Write the package list to a file", "把当前列表输出写入文件")).action(async (opts) => {
2830
- const { getWorkspacePackageSummaries } = await import("./workspace-tasks-CLIb98-n.mjs").then((n) => n.Kt);
2830
+ const { getWorkspacePackageSummaries } = await import("./workspace-tasks--x70rhb8.mjs").then((n) => n.Kt);
2831
2831
  await emitWorkspaceList(await getWorkspacePackageSummaries(cwd, {
2832
2832
  ignorePrivatePackage: !opts.includePrivate,
2833
2833
  ignoreRootPackage: !opts.includeRoot,
@@ -2835,7 +2835,7 @@ function registerWorkspaceCommands(program, cwd) {
2835
2835
  }), opts);
2836
2836
  });
2837
2837
  workspaceCommand.command("clean").description(localize("Remove selected workspace packages", "清除选中的包")).alias("rm").option("-y, --yes", localize("Select all eligible workspace packages without prompting", "跳过交互并选择所有符合条件的工作区包")).option("--dry-run", localize("Preview directory deletions and metadata changes without writing", "预览目录删除和元数据变更,不写入文件")).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) => {
2838
- const { cleanProjects } = await import("./commands-CB_e4fq5.mjs").then((n) => n.t);
2838
+ const { cleanProjects } = await import("./commands-D1KtdxnV.mjs").then((n) => n.t);
2839
2839
  await cleanProjects(cwd, normalizeCleanOptions(opts));
2840
2840
  });
2841
2841
  }
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { A as referenceTarget, B as saveKnipBaseline, C as loadCompiler, D as ownershipFile, E as exists$1, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, Jt as GitClient, K as mergeText, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, S as configReader, St as localize, T as compare$1, Tt as resolveRepoctlLocale, Ut as getWorkspaceData, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir$1, at as record$2, b as planGenerate, c as loadTemplateInstanceRegistry$1, ct as renderCreateNewProject, dt as migrateLegacyToolingReferences, et as compareGraphValues, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, gt as validateCleanTargets, h as loadTemplateUpgradeJournal, ht as isWithin, it as readInput, j as relativeFile, jt as fs$2, k as referencePath, l as rebuildTemplateInstanceBaseline, lt as rewriteTemplateSnapshotReferences, m as planTemplateUpgrade, mt as assertSafePath, nt as workspaceDependencyTypes, o as listTemplateInstances, ot as safeFile, p as applyTemplateUpgradePlan, pt as stageFileTransaction, q as withOperationLock, qt as findWorkspacePackages, rt as hash$1, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir$1, z as runKnipCheck } from "./workspace-tasks-CLIb98-n.mjs";
3
- import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, n as resolveAffectedCheckContext, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as runPnpmCommand } from "./execute-BfrWLmU0.mjs";
4
- import { A as version$2, C as checkedFile, D as relativeFile$1, E as readOptionalSource, F as normalizeTemplateRemoteSource, G as appendConfigPath, H as presetPackageName, I as normalizeTemplateSourceRequest, J as commandConfigDirectory, M as ConfigValidationError, R as sourceRequestKey, S as canonicalDirectory, T as readOptional$1, U as presetVersion, V as resolveNightlyConfig, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, k as package_default$1, n as defineTsconfigConfig, p as resolveCommandConfig, q as withLegacyHookConfig, u as getRepoctlConfigCandidates, v as installedPresetDirectory, w as hash$2, x as readPresetFile, y as parsePresetJson, z as templateSourcePath } from "./tsconfig-DUQ2_Lhv.mjs";
5
- import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, r as parseSpecifier, s as resolveCommandValues } from "./scan-CNtEZXN2.mjs";
6
- import { A as isRootAsset, B as toWorkspaceAssetPath, C as lockfileRecord, D as baselineDirectory, E as checkDependencyAdmission, F as getWorkspacePatterns, I as summarizeChecks, L as legacyStagedConfigNames, M as templatePackage, N as getAssetTargets, O as baselinePath, P as record$3, S as inspectPnpmRuntime, a as applyDoctorSuppressions, b as resolveReleaseBranches, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as parseBaseline, k as encodeBaseline, l as getDoctorRuleIds, m as settingState, o as validateDoctorSuppressions, p as readSecuritySources, r as formatTemplateDriftReport, s as validateDoctorConfiguration, t as checkTemplateDrift, u as selectDoctorRules, v as renderReleaseWorkflow, w as parseWorkspaceLockfile, x as ReleaseCommandError, y as releasePullRequestHead } from "./template-drift-Doyllu5A.mjs";
7
- import { t as writeDependencyTransaction } from "./transaction-C6TP-duf.mjs";
8
- import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-OzhKc950.mjs";
9
- import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-C3VMMckZ.mjs";
2
+ import { A as referenceTarget, B as saveKnipBaseline, C as loadCompiler, D as ownershipFile, E as exists$1, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, J as getWorkspaceGraph, Jt as GitClient, K as mergeText, M as formatEnvironmentCache, O as readText, P as checkEnvironmentCache, R as planKnipCheck, S as configReader, St as localize, T as compare$1, Tt as resolveRepoctlLocale, Ut as getWorkspaceData, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir$1, at as record$2, b as planGenerate, c as loadTemplateInstanceRegistry$1, ct as renderCreateNewProject, dt as migrateLegacyToolingReferences, et as compareGraphValues, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, gt as validateCleanTargets, h as loadTemplateUpgradeJournal, ht as isWithin, it as readInput, j as relativeFile, jt as fs$2, k as referencePath, l as rebuildTemplateInstanceBaseline, lt as rewriteTemplateSnapshotReferences, m as planTemplateUpgrade, mt as assertSafePath, nt as workspaceDependencyTypes, o as listTemplateInstances, ot as safeFile, p as applyTemplateUpgradePlan, pt as stageFileTransaction, q as withOperationLock, qt as findWorkspacePackages, rt as hash$1, s as loadTemplateBaseline$1, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, w as validateGraph, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir$1, z as runKnipCheck } from "./workspace-tasks--x70rhb8.mjs";
3
+ import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, n as resolveAffectedCheckContext, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as runPnpmCommand } from "./execute-BVtr43XS.mjs";
4
+ import { A as package_default$1, B as templateSourcePath, C as checkedFile, D as relativeFile$1, E as readOptionalSource, H as resolveNightlyConfig, I as normalizeTemplateRemoteSource, J as withLegacyHookConfig, K as appendConfigPath, L as normalizeTemplateSourceRequest, N as ConfigValidationError, O as engines$1, S as canonicalDirectory, T as readOptional$1, U as presetPackageName, W as presetVersion, Y as commandConfigDirectory, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, j as version$2, n as defineTsconfigConfig, p as resolveCommandConfig, u as getRepoctlConfigCandidates, v as installedPresetDirectory, w as hash$2, x as readPresetFile, y as parsePresetJson, z as sourceRequestKey } from "./tsconfig-rZG7b9Ul.mjs";
5
+ import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, r as parseSpecifier, s as resolveCommandValues } from "./scan-Bg1EPIk6.mjs";
6
+ import { A as isRootAsset, B as toWorkspaceAssetPath, C as lockfileRecord, D as baselineDirectory, E as checkDependencyAdmission, F as getWorkspacePatterns, I as summarizeChecks, L as legacyStagedConfigNames, M as templatePackage, N as getAssetTargets, O as baselinePath, P as record$3, S as inspectPnpmRuntime, a as applyDoctorSuppressions, b as resolveReleaseBranches, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as parseBaseline, k as encodeBaseline, l as getDoctorRuleIds, m as settingState, o as validateDoctorSuppressions, p as readSecuritySources, r as formatTemplateDriftReport, s as validateDoctorConfiguration, t as checkTemplateDrift, u as selectDoctorRules, v as renderReleaseWorkflow, w as parseWorkspaceLockfile, x as ReleaseCommandError, y as releasePullRequestHead } from "./template-drift-BOk4oxoR.mjs";
7
+ import { t as writeDependencyTransaction } from "./transaction-Cg5I2q47.mjs";
8
+ import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-qu9CwEKc.mjs";
9
+ import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-YipXrou_.mjs";
10
10
  import { createRequire, isBuiltin } from "node:module";
11
11
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
12
12
  import { readWorkspaceManifest } from "@pnpm/workspace.read-manifest";
@@ -1541,7 +1541,7 @@ async function downloadGitTemplate(source, directory, timeout) {
1541
1541
  async function resolveRemoteTemplateSource(source, templatePath = ".", options = {}) {
1542
1542
  const request = normalizeTemplateSourceRequest(source, templatePath);
1543
1543
  const cwd = path$1.resolve(options.cwd ?? process.cwd());
1544
- const npm = request.source.kind === "npm" ? await import("./npm-DrDMz-33.mjs") : void 0;
1544
+ const npm = request.source.kind === "npm" ? await import("./npm-S2sT1UgC.mjs") : void 0;
1545
1545
  const configuration = request.source.kind === "npm" ? await npm.npmTemplateConfiguration(request.source, cwd) : void 0;
1546
1546
  if (request.source.kind === "npm") request.source.registry = configuration.registry;
1547
1547
  const cacheDir = path$1.resolve(cwd, options.cacheDir ?? path$1.join(process.env["XDG_CACHE_HOME"] ?? path$1.join(homedir(), ".cache"), "repoctl", "template-sources-v1"));
@@ -3724,6 +3724,15 @@ async function createContext(cwd) {
3724
3724
  };
3725
3725
  }
3726
3726
  //#endregion
3727
+ //#region src/core/runtime/node.ts
3728
+ const supportedNodeRange = engines$1.node;
3729
+ const defaultNodeVersion = "24.22.1";
3730
+ const devContainerNodeVersions = [
3731
+ defaultNodeVersion,
3732
+ "22.23.4",
3733
+ "26.12.1"
3734
+ ];
3735
+ //#endregion
3727
3736
  //#region src/commands/init/setChangeset.ts
3728
3737
  /**
3729
3738
  * 保留兼容的初始化入口,并确保 pnpm change 有可写入的 intent 目录。
@@ -3837,7 +3846,7 @@ var package_default = {
3837
3846
  type: "module",
3838
3847
  version: "0.0.0",
3839
3848
  "private": true,
3840
- packageManager: "pnpm@12.13.0",
3849
+ packageManager: "pnpm@12.14.0",
3841
3850
  description: "Source workspace for repoctl and Icebreaker's shared development packages",
3842
3851
  author: "ice breaker <hi@sonofmagic.top>",
3843
3852
  license: "MIT",
@@ -3854,7 +3863,7 @@ var package_default = {
3854
3863
  "turborepo",
3855
3864
  "typescript"
3856
3865
  ],
3857
- engines: { "node": ">=22.13.0" },
3866
+ engines: { "node": "^22.23.4 || ^24.22.1 || >=26.12.1" },
3858
3867
  scripts: {
3859
3868
  "build": "turbo run build",
3860
3869
  "tooling:build": "turbo run build --filter=@icebreakers/monorepo --filter=repoctl",
@@ -3944,7 +3953,7 @@ var package_default = {
3944
3953
  "@icebreakers/monorepo": "workspace:*",
3945
3954
  "@icebreakers/stylelint-config": "workspace:*",
3946
3955
  "@types/node": "^26.6.5",
3947
- "@vitest/coverage-v8": "~5.0.4",
3956
+ "@vitest/coverage-v8": "~5.0.5",
3948
3957
  "eslint": "^10.12.0",
3949
3958
  "execa": "^10.1.1",
3950
3959
  "lefthook": "2.2.2",
@@ -3958,7 +3967,7 @@ var package_default = {
3958
3967
  "tsdown": "0.23.1",
3959
3968
  "turbo": "^2.11.8",
3960
3969
  "typescript": "^6.0.3",
3961
- "vitest": "~5.0.4",
3970
+ "vitest": "~5.0.5",
3962
3971
  "yaml": "^2.9.1"
3963
3972
  },
3964
3973
  publishConfig: {
@@ -4199,7 +4208,7 @@ async function ensureRootPackageJson(cwd) {
4199
4208
  version: "0.0.0",
4200
4209
  private: true,
4201
4210
  packageManager: await getWorkspacePackageManager(),
4202
- engines: { node: ">=22.13.0" },
4211
+ engines: { node: supportedNodeRange },
4203
4212
  scripts: {},
4204
4213
  devDependencies: {}
4205
4214
  };
@@ -9943,7 +9952,6 @@ async function devContainerFiles(nodeVersion) {
9943
9952
  }
9944
9953
  //#endregion
9945
9954
  //#region src/commands/init/devcontainer/plan.ts
9946
- const supportedNodes = ["24.21.0", "22.23.3"];
9947
9955
  async function planDevContainer(cwd, options = {}) {
9948
9956
  const workspace = await findWorkspaceDir(cwd);
9949
9957
  if (!workspace) throw new Error("Dev Container presets require an existing pnpm workspace root.");
@@ -9966,8 +9974,8 @@ async function planDevContainer(cwd, options = {}) {
9966
9974
  const manifest = JSON.parse(source.toString("utf8"));
9967
9975
  const nodeRange = manifest.engines?.node;
9968
9976
  if (typeof nodeRange !== "string" || !validRange(nodeRange)) throw new Error("Declare a valid root engines.node range before planning a Dev Container.");
9969
- const nodeVersion = options.nodeVersion ?? supportedNodes.find((version) => satisfies(version, nodeRange));
9970
- if (!nodeVersion || !/^\d+\.\d+\.\d+$/u.test(nodeVersion) || valid(nodeVersion) !== nodeVersion || !satisfies(nodeVersion, ">=22.13.0") || !satisfies(nodeVersion, nodeRange)) throw new Error(`Choose an exact stable --node-version >=22.13.0 allowed by engines.node (${nodeRange}).`);
9977
+ const nodeVersion = options.nodeVersion ?? devContainerNodeVersions.find((version) => satisfies(version, nodeRange));
9978
+ if (!nodeVersion || !/^\d+\.\d+\.\d+$/u.test(nodeVersion) || valid(nodeVersion) !== nodeVersion || !satisfies(nodeVersion, supportedNodeRange) || !satisfies(nodeVersion, nodeRange)) throw new Error(`Choose an exact stable --node-version supported by repoctl (${supportedNodeRange}) and allowed by engines.node (${nodeRange}).`);
9971
9979
  const packageManager = manifest.packageManager;
9972
9980
  if (typeof packageManager !== "string" || !/^pnpm@\d+\.\d+\.\d+(?:\+sha(?:224|256|384|512)\.[a-f\d]+)?$/u.test(packageManager) || !valid(packageManager.slice(5).split("+")[0])) throw new Error("Root packageManager must pin an exact stable pnpm version, optionally with a Corepack integrity hash.");
9973
9981
  const blockers = [];
@@ -13810,7 +13818,7 @@ function playwrightWorkflow({ workspace }) {
13810
13818
  { uses: "pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413" },
13811
13819
  {
13812
13820
  uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020",
13813
- with: { "node-version": 22 }
13821
+ with: { "node-version": defaultNodeVersion }
13814
13822
  },
13815
13823
  {
13816
13824
  name: "Install workspace dependencies",
@@ -14328,7 +14336,7 @@ function storybookWorkflow({ workspace }) {
14328
14336
  { uses: "pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413" },
14329
14337
  {
14330
14338
  uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020",
14331
- with: { "node-version": 22 }
14339
+ with: { "node-version": defaultNodeVersion }
14332
14340
  },
14333
14341
  {
14334
14342
  name: "Install workspace dependencies",
@@ -1,6 +1,6 @@
1
- import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { t as knipConfigurationInputs } from "./inputs-dvQ05DCN.mjs";
3
- import { knipRoot } from "./plan-Dug0VhqZ.mjs";
1
+ import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { t as knipConfigurationInputs } from "./inputs-B_-kWnm2.mjs";
3
+ import { knipRoot } from "./plan-DuHMR5Za.mjs";
4
4
  //#region src/commands/check/knip/config.ts
5
5
  /** Return native settings for manual merging; existing Knip config always remains authoritative. */
6
6
  async function getKnipConfigurationSuggestions(cwd) {
@@ -1,6 +1,6 @@
1
- import { St as localize, jt as fs$1 } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { d as logger } from "./execute-BfrWLmU0.mjs";
3
- import { Dt as defaultTemplate, Et as createNewProject, Ft as loadTemplateCatalogContext, Nt as createTemplateCatalog, Ot as resolveCreateNewProjectPlan } from "./commands-CB_e4fq5.mjs";
1
+ import { St as localize, jt as fs$1 } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { d as logger } from "./execute-BVtr43XS.mjs";
3
+ import { Dt as defaultTemplate, Et as createNewProject, Ft as loadTemplateCatalogContext, Nt as createTemplateCatalog, Ot as resolveCreateNewProjectPlan } from "./commands-D1KtdxnV.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
6
6
  import { readFile } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-CLIb98-n.mjs";
3
- import { t as scanDependencies } from "./scan-CNtEZXN2.mjs";
4
- import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-C6TP-duf.mjs";
2
+ import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks--x70rhb8.mjs";
3
+ import { t as scanDependencies } from "./scan-Bg1EPIk6.mjs";
4
+ import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-Cg5I2q47.mjs";
5
5
  import { isDeepStrictEqual } from "node:util";
6
6
  //#region src/commands/deps/apply.ts
7
7
  async function applyDependencyFixPlan(cwd, plan) {
@@ -1,5 +1,5 @@
1
- import { H as signalExitCode, J as getWorkspaceGraph, St as localize, V as executeCheckTask, Z as getWorkspaceImpact, jt as fs$1, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { d as loadMonorepoConfig } from "./tsconfig-DUQ2_Lhv.mjs";
1
+ import { H as signalExitCode, J as getWorkspaceGraph, St as localize, V as executeCheckTask, Z as getWorkspaceImpact, jt as fs$1, tt as resolveWorkspaceGraphNode } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { d as loadMonorepoConfig } from "./tsconfig-rZG7b9Ul.mjs";
3
3
  import process from "node:process";
4
4
  import { createConsola } from "consola";
5
5
  import { execFileSync, spawnSync } from "node:child_process";
@@ -1,5 +1,5 @@
1
- import { St as localize, jt as fs } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { d as logger, t as runCheckWithReport } from "./execute-BfrWLmU0.mjs";
1
+ import { St as localize, jt as fs } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { d as logger, t as runCheckWithReport } from "./execute-BVtr43XS.mjs";
3
3
  import { t as formatAffectedCheckPlan } from "./cli.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
@@ -1,4 +1,4 @@
1
- import { St as localize } from "./workspace-tasks-CLIb98-n.mjs";
1
+ import { St as localize } from "./workspace-tasks--x70rhb8.mjs";
2
2
  //#region src/commands/check/cache/format.ts
3
3
  function label(value, markdown) {
4
4
  return markdown ? value.replace(/[\\`*_{}[\]()#+.!|<>~-]/gu, "\\$&") : value;
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-BfrWLmU0.mjs";
3
- import { $ as reconcileRelease, A as applyInstallSecurityPreset, At as getTemplateMap, B as upgradeMonorepo, Bt as validateConfigFile, C as getMaintenanceWorkflow, Ct as planUpgrade, D as planOrganizationPresetAssets, E as applyOrganizationPresetAssets, Et as createNewProject, F as resolveAffectedCheckMatrix, G as syncSkills, Gt as defaultAgenticBaseDir, H as checkTemplates, Ht as verifyStagedTypecheck, I as checkPublicApi, It as updateIssueTemplateConfig, J as recoverUnpublished, Jt as loadAgenticTasks, K as repairReleaseNotes, Kt as generateAgenticTemplate, L as applyPublicApiUpdate, Lt as inspectMonorepoConfig, M as deployDocs, Mt as resolveRemoteTemplateSource, N as planDocsDeployment, O as applyDevContainerPlan, Ot as resolveCreateNewProjectPlan, P as checkPeerDependencies, Pt as resolveTemplateCatalog, Q as releaseStable, R as planPublicApiUpdate, Rt as explainMonorepoConfig, S as checkPackages, St as planDoctorFix, T as detectMaintenanceVersionChange, Tt as applyCreateNewProjectPlan, U as getSkillTargetPaths, Ut as verifyPrePush, V as formatUpgradePlan, Vt as cleanProjects, W as skillTargets, Wt as createTimestampFolderName, X as prepareStable, Y as releaseCi, Z as publishStable, _ as createSnapshotPlan, _t as collectEnvPaths, a as planWorkspaceMove, at as GitHubApiError, b as applyProjectReferencesPlan, bt as runDoctor, c as applyToolingCapability, d as planTemplateValidation, dt as initMetadata, et as enterPrerelease, f as createReleasePlan, ft as initTooling, g as releaseSnapshot, gt as collectEnvInfo, ht as createContext, i as applyWorkspaceMovePlan, it as GitHubClient, j as planInstallSecurityPreset, jt as templateMap, k as planDevContainer, kt as getCreateChoices, l as planToolingCapability, lt as setVscodeBinaryMirror, m as releaseNightly, mt as initToolingTargets, n as applyWorkspaceRemovalPlan, nt as releasePrerelease, o as applyWorkspaceArtifactPlan, ot as parsePublishSummary, p as createNightlyPlan, pt as normalizeInitToolingTargets, q as createReleasePullRequest, qt as generateAgenticTemplates, r as planWorkspaceRemoval, rt as auditReleaseOidc, s as planWorkspaceArtifact, tt as exitPrerelease, u as validateTemplate, ut as init, v as checkProjectReferences, vt as collectEnvSnapshot, w as prepareMaintenanceUpgrade, wt as applyUpgradePlan, x as planProjectReferences, xt as applyDoctorFixPlan, y as syncProjectReferences, yt as collectEnvSupportBundle, z as formatPublicApiReport, zt as sanitizeConfigReport } from "./commands-CB_e4fq5.mjs";
4
- import { A as version, M as ConfigValidationError, N as assertMonorepoConfig, O as name, P as validateMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-DUQ2_Lhv.mjs";
5
- import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-CNtEZXN2.mjs";
6
- import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-Doyllu5A.mjs";
7
- import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-uLwguaKh.mjs";
8
- import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-OzhKc950.mjs";
9
- import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-C3VMMckZ.mjs";
1
+ import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-BVtr43XS.mjs";
3
+ import { $ as reconcileRelease, A as applyInstallSecurityPreset, At as getTemplateMap, B as upgradeMonorepo, Bt as validateConfigFile, C as getMaintenanceWorkflow, Ct as planUpgrade, D as planOrganizationPresetAssets, E as applyOrganizationPresetAssets, Et as createNewProject, F as resolveAffectedCheckMatrix, G as syncSkills, Gt as defaultAgenticBaseDir, H as checkTemplates, Ht as verifyStagedTypecheck, I as checkPublicApi, It as updateIssueTemplateConfig, J as recoverUnpublished, Jt as loadAgenticTasks, K as repairReleaseNotes, Kt as generateAgenticTemplate, L as applyPublicApiUpdate, Lt as inspectMonorepoConfig, M as deployDocs, Mt as resolveRemoteTemplateSource, N as planDocsDeployment, O as applyDevContainerPlan, Ot as resolveCreateNewProjectPlan, P as checkPeerDependencies, Pt as resolveTemplateCatalog, Q as releaseStable, R as planPublicApiUpdate, Rt as explainMonorepoConfig, S as checkPackages, St as planDoctorFix, T as detectMaintenanceVersionChange, Tt as applyCreateNewProjectPlan, U as getSkillTargetPaths, Ut as verifyPrePush, V as formatUpgradePlan, Vt as cleanProjects, W as skillTargets, Wt as createTimestampFolderName, X as prepareStable, Y as releaseCi, Z as publishStable, _ as createSnapshotPlan, _t as collectEnvPaths, a as planWorkspaceMove, at as GitHubApiError, b as applyProjectReferencesPlan, bt as runDoctor, c as applyToolingCapability, d as planTemplateValidation, dt as initMetadata, et as enterPrerelease, f as createReleasePlan, ft as initTooling, g as releaseSnapshot, gt as collectEnvInfo, ht as createContext, i as applyWorkspaceMovePlan, it as GitHubClient, j as planInstallSecurityPreset, jt as templateMap, k as planDevContainer, kt as getCreateChoices, l as planToolingCapability, lt as setVscodeBinaryMirror, m as releaseNightly, mt as initToolingTargets, n as applyWorkspaceRemovalPlan, nt as releasePrerelease, o as applyWorkspaceArtifactPlan, ot as parsePublishSummary, p as createNightlyPlan, pt as normalizeInitToolingTargets, q as createReleasePullRequest, qt as generateAgenticTemplates, r as planWorkspaceRemoval, rt as auditReleaseOidc, s as planWorkspaceArtifact, tt as exitPrerelease, u as validateTemplate, ut as init, v as checkProjectReferences, vt as collectEnvSnapshot, w as prepareMaintenanceUpgrade, wt as applyUpgradePlan, x as planProjectReferences, xt as applyDoctorFixPlan, y as syncProjectReferences, yt as collectEnvSupportBundle, z as formatPublicApiReport, zt as sanitizeConfigReport } from "./commands-D1KtdxnV.mjs";
4
+ import { F as validateMonorepoConfig, N as ConfigValidationError, P as assertMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as version, k as name, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-rZG7b9Ul.mjs";
5
+ import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-Bg1EPIk6.mjs";
6
+ import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-BOk4oxoR.mjs";
7
+ import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-BbbU7-qn.mjs";
8
+ import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-qu9CwEKc.mjs";
9
+ import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-YipXrou_.mjs";
10
10
  import crypto from "node:crypto";
11
11
  import { Buffer } from "node:buffer";
12
12
  //#region src/utils/hash.ts
@@ -1,4 +1,4 @@
1
- import { at as record, rt as hash } from "./workspace-tasks-CLIb98-n.mjs";
1
+ import { at as record, rt as hash } from "./workspace-tasks--x70rhb8.mjs";
2
2
  import path from "pathe";
3
3
  import { lstat, readFile } from "node:fs/promises";
4
4
  import YAML from "yaml";
@@ -1,4 +1,4 @@
1
- import { L as registryUrl } from "./tsconfig-DUQ2_Lhv.mjs";
1
+ import { R as registryUrl } from "./tsconfig-rZG7b9Ul.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { createWriteStream } from "node:fs";
4
4
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { at as record, yt as packageDir } from "./workspace-tasks-CLIb98-n.mjs";
1
+ import { at as record, yt as packageDir } from "./workspace-tasks--x70rhb8.mjs";
2
2
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
3
3
  import path from "pathe";
4
4
  import process from "node:process";
@@ -1,7 +1,7 @@
1
- import { U as stopCheckProcessTree } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { t as knipConfigurationInputs } from "./inputs-dvQ05DCN.mjs";
3
- import { planKnipCheck } from "./plan-Dug0VhqZ.mjs";
4
- import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-CtCb_kzt.mjs";
1
+ import { U as stopCheckProcessTree } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { t as knipConfigurationInputs } from "./inputs-B_-kWnm2.mjs";
3
+ import { planKnipCheck } from "./plan-DuHMR5Za.mjs";
4
+ import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-B6uEfHrm.mjs";
5
5
  import process from "node:process";
6
6
  import { spawn } from "node:child_process";
7
7
  import { Buffer } from "node:buffer";
@@ -1,6 +1,6 @@
1
- import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { knipRoot } from "./plan-Dug0VhqZ.mjs";
3
- import { n as validateKnipBaseline } from "./baseline-CtCb_kzt.mjs";
1
+ import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { knipRoot } from "./plan-DuHMR5Za.mjs";
3
+ import { n as validateKnipBaseline } from "./baseline-B6uEfHrm.mjs";
4
4
  import path from "pathe";
5
5
  import { link, lstat, open, readFile, rename, unlink } from "node:fs/promises";
6
6
  import { randomUUID } from "node:crypto";
@@ -1,5 +1,5 @@
1
- import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { B as commandSchemas, M as ConfigValidationError, N as assertMonorepoConfig, W as validateSchema, f as loadMonorepoConfigDetails, j as mergeConfigValues, u as getRepoctlConfigCandidates } from "./tsconfig-DUQ2_Lhv.mjs";
1
+ import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { G as validateSchema, M as mergeConfigValues, N as ConfigValidationError, P as assertMonorepoConfig, V as commandSchemas, f as loadMonorepoConfigDetails, u as getRepoctlConfigCandidates } from "./tsconfig-rZG7b9Ul.mjs";
3
3
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
4
4
  import path from "pathe";
5
5
  import { access, realpath } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-CLIb98-n.mjs";
3
- import { D as relativeFile, M as ConfigValidationError, T as readOptional, V as resolveNightlyConfig, f as loadMonorepoConfigDetails, p as resolveCommandConfig, w as hash$1 } from "./tsconfig-DUQ2_Lhv.mjs";
4
- import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-CNtEZXN2.mjs";
2
+ import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks--x70rhb8.mjs";
3
+ import { D as relativeFile, H as resolveNightlyConfig, N as ConfigValidationError, T as readOptional, f as loadMonorepoConfigDetails, p as resolveCommandConfig, w as hash$1 } from "./tsconfig-rZG7b9Ul.mjs";
4
+ import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-Bg1EPIk6.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
7
7
  import path from "pathe";
@@ -1,3 +1,3 @@
1
- import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-DUQ2_Lhv.mjs";
2
- import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-uLwguaKh.mjs";
1
+ import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-rZG7b9Ul.mjs";
2
+ import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-BbbU7-qn.mjs";
3
3
  export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
@@ -1,5 +1,5 @@
1
- import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-CLIb98-n.mjs";
2
- import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-CNtEZXN2.mjs";
1
+ import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks--x70rhb8.mjs";
2
+ import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-Bg1EPIk6.mjs";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/commands/deps/report.ts
5
5
  function classify(group) {
@@ -835,7 +835,8 @@ function mergeConfigValues(layers) {
835
835
  //#endregion
836
836
  //#region package.json
837
837
  var name = "@icebreakers/monorepo";
838
- var version = "6.0.0";
838
+ var version = "6.0.1";
839
+ var engines = { "node": "^22.23.4 || ^24.22.1 || >=26.12.1" };
839
840
  var package_default = {
840
841
  name,
841
842
  type: "module",
@@ -893,7 +894,7 @@ var package_default = {
893
894
  "resources",
894
895
  "tsconfig.base.json"
895
896
  ],
896
- engines: { "node": ">=22.13.0" },
897
+ engines,
897
898
  scripts: {
898
899
  "dev": "tsdown --watch --sourcemap",
899
900
  "build": "tsdown",
@@ -1582,4 +1583,4 @@ async function defineTsconfigConfig(input = {}) {
1582
1583
  return createMonorepoTsconfig(mergeTsconfig(await loadToolingSection("tsconfig", resolved.cwd) ?? {}, resolved.options));
1583
1584
  }
1584
1585
  //#endregion
1585
- export { version as A, commandSchemas as B, checkedFile as C, relativeFile as D, readOptionalSource as E, normalizeTemplateRemoteSource as F, appendConfigPath as G, presetPackageName as H, normalizeTemplateSourceRequest as I, commandConfigDirectory as J, splitConfigPath as K, registryUrl as L, ConfigValidationError as M, assertMonorepoConfig as N, name as O, validateMonorepoConfig as P, sourceRequestKey as R, canonicalDirectory as S, readOptional as T, presetVersion as U, resolveNightlyConfig as V, validateSchema as W, listToolingCapabilities as _, loadToolingSection as a, presetRelativePath as b, config_exports as c, loadMonorepoConfig as d, loadMonorepoConfigDetails as f, presetAssetTarget as g, resolveOrganizationPresets as h, loadMonorepoToolingConfig as i, mergeConfigValues as j, package_default as k, defineMonorepoConfig as l, resolveToolingConfig as m, defineTsconfigConfig as n, resolveConfigInput as o, resolveCommandConfig as p, withLegacyHookConfig as q, isDefineConfigWrapper as r, configExtensions as s, createMonorepoTsconfig as t, getRepoctlConfigCandidates as u, installedPresetDirectory as v, hash as w, readPresetFile as x, parsePresetJson as y, templateSourcePath as z };
1586
+ export { package_default as A, templateSourcePath as B, checkedFile as C, relativeFile as D, readOptionalSource as E, validateMonorepoConfig as F, validateSchema as G, resolveNightlyConfig as H, normalizeTemplateRemoteSource as I, withLegacyHookConfig as J, appendConfigPath as K, normalizeTemplateSourceRequest as L, mergeConfigValues as M, ConfigValidationError as N, engines as O, assertMonorepoConfig as P, registryUrl as R, canonicalDirectory as S, readOptional as T, presetPackageName as U, commandSchemas as V, presetVersion as W, commandConfigDirectory as Y, listToolingCapabilities as _, loadToolingSection as a, presetRelativePath as b, config_exports as c, loadMonorepoConfig as d, loadMonorepoConfigDetails as f, presetAssetTarget as g, resolveOrganizationPresets as h, loadMonorepoToolingConfig as i, version as j, name as k, defineMonorepoConfig as l, resolveToolingConfig as m, defineTsconfigConfig as n, resolveConfigInput as o, resolveCommandConfig as p, splitConfigPath as q, isDefineConfigWrapper as r, configExtensions as s, createMonorepoTsconfig as t, getRepoctlConfigCandidates as u, installedPresetDirectory as v, hash as w, readPresetFile as x, parsePresetJson as y, sourceRequestKey as z };
@@ -1,4 +1,4 @@
1
- import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-DUQ2_Lhv.mjs";
1
+ import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-rZG7b9Ul.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import process from "node:process";
4
4
  import fs from "node:fs";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { A as version, M as ConfigValidationError, f as loadMonorepoConfigDetails, u as getRepoctlConfigCandidates } from "./tsconfig-DUQ2_Lhv.mjs";
2
+ import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-rZG7b9Ul.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import gitUrlParse from "git-url-parse";
5
5
  import { simpleGit } from "simple-git";
@@ -1986,16 +1986,16 @@ var knip_exports = /* @__PURE__ */ __exportAll({
1986
1986
  saveKnipBaseline: () => saveKnipBaseline
1987
1987
  });
1988
1988
  async function planKnipCheck(cwd, options = {}) {
1989
- return (await import("./plan-Dug0VhqZ.mjs")).planKnipCheck(cwd, options);
1989
+ return (await import("./plan-DuHMR5Za.mjs")).planKnipCheck(cwd, options);
1990
1990
  }
1991
1991
  async function runKnipCheck(cwd, options = {}) {
1992
- return (await import("./run-hOzO9t1R.mjs")).runKnipCheck(cwd, options);
1992
+ return (await import("./run-BGHVj0Lj.mjs")).runKnipCheck(cwd, options);
1993
1993
  }
1994
1994
  async function getKnipConfigurationSuggestions(cwd) {
1995
- return (await import("./config-D9C_znnW.mjs")).getKnipConfigurationSuggestions(cwd);
1995
+ return (await import("./config--wYfkdsO.mjs")).getKnipConfigurationSuggestions(cwd);
1996
1996
  }
1997
1997
  async function saveKnipBaseline(cwd, report, file) {
1998
- return (await import("./save-B8hgvfIq.mjs")).saveKnipBaseline(cwd, report, file);
1998
+ return (await import("./save-UiJgdSaY.mjs")).saveKnipBaseline(cwd, report, file);
1999
1999
  }
2000
2000
  //#endregion
2001
2001
  //#region src/commands/env-cache/config.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "6.0.0",
4
+ "version": "6.0.1",
5
5
  "description": "Core engine and programmatic APIs for repoctl",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -60,7 +60,7 @@
60
60
  "tsconfig.base.json"
61
61
  ],
62
62
  "engines": {
63
- "node": ">=22.13.0"
63
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@commitlint/cli": "^21.2.3",
@@ -85,10 +85,10 @@
85
85
  "dependencies": {
86
86
  "@arethetypeswrong/core": "0.18.5",
87
87
  "@babel/parser": "^7.29.9",
88
- "@icebreakers/commitlint-config": "4.1.3",
89
- "@icebreakers/eslint-config": "8.0.10",
90
- "@icebreakers/monorepo-templates": "3.0.0",
91
- "@icebreakers/stylelint-config": "5.1.4",
88
+ "@icebreakers/commitlint-config": "4.1.4",
89
+ "@icebreakers/eslint-config": "8.0.11",
90
+ "@icebreakers/monorepo-templates": "3.0.1",
91
+ "@icebreakers/stylelint-config": "5.1.5",
92
92
  "@npmcli/config": "10.14.0",
93
93
  "@pnpm/find-workspace-dir": "^1000.1.5",
94
94
  "@pnpm/fs.find-packages": "^1000.0.24",
@@ -117,7 +117,7 @@
117
117
  "tar": "7.5.22",
118
118
  "tinyglobby": "^0.2.17",
119
119
  "validate-npm-package-name": "^7.0.2",
120
- "vitest": "^5.0.4",
120
+ "vitest": "^5.0.5",
121
121
  "yaml": "^2.9.1"
122
122
  },
123
123
  "devDependencies": {
@@ -33,7 +33,7 @@ jobs:
33
33
  persist-credentials: false
34
34
  - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
35
35
  with:
36
- node-version: 24
36
+ node-version: 24.22.1
37
37
  - name: Install the locked tool without lifecycle scripts
38
38
  run: |
39
39
  {
@@ -159,7 +159,7 @@ The command uses `GITHUB_TOKEN`, `GITHUB_REPOSITORY`, `GITHUB_API_URL`, and
159
159
  `GITHUB_SHA` to upsert the Release PR, package tags, and GitHub Releases. It
160
160
  consumes `pnpm-publish-summary.json` and is safe to retry.
161
161
 
162
- `oidc-audit` independently checks every versioned public child package using the current GitHub-hosted job's OIDC identity and the official npm registry. It returns safe JSON (`schemaVersion: 1`) with allowlisted identity fields, per-package HTTP status/message and aggregate success. The CLI fails if any exchange fails, but still checks all packages. It does not load release configuration, consume intents, execute quality scripts/hooks, publish, or create tags/Releases. Recovery flags (`source-sha`, `dry-run`, `package`, `version`) are incompatible. The managed workflow has a separate read-only audit job with Node 24, `id-token: write` and installation lifecycle scripts disabled; generated projects need only installed repoctl, while the source workspace builds its tooling closure.
162
+ `oidc-audit` independently checks every versioned public child package using the current GitHub-hosted job's OIDC identity and the official npm registry. It returns safe JSON (`schemaVersion: 1`) with allowlisted identity fields, per-package HTTP status/message and aggregate success. The CLI fails if any exchange fails, but still checks all packages. It does not load release configuration, consume intents, execute quality scripts/hooks, publish, or create tags/Releases. Recovery flags (`source-sha`, `dry-run`, `package`, `version`) are incompatible. The managed workflow has a separate read-only audit job with Node.js 24.22.1, `id-token: write` and installation lifecycle scripts disabled; generated projects need only installed repoctl, while the source workspace builds its tooling closure.
163
163
 
164
164
  Use `auditReleaseOidc({ cwd, env?, fetch? })` for the same programmatic report. JWTs, request tokens and exchange tokens are never included or saved. A 404 alone cannot identify expired trust: check npm package settings and repository/workflow/environment matching. If npm explicitly says `Expired`, delete/recreate the configuration and perform the first successful publish within 48 hours under [npm's policy](https://github.blog/changelog/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire/). A successful exchange does not complete that initial publish validation; auditing immediately before publishing narrows that gap.
165
165