@icebreakers/monorepo 5.7.1 → 5.8.0

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-CRCTiMNM.mjs → baseline-Cx3VuGue.mjs} +1 -1
  2. package/dist/{catalog-D0Sk385O.mjs → catalog-BKW8udNq.mjs} +3 -3
  3. package/dist/cli.mjs +67 -65
  4. package/dist/{commands-Bj0sX3R9.mjs → commands-C1KOgvKa.mjs} +239 -83
  5. package/dist/{config-Dg-voj8q.mjs → config-ITi4Uywg.mjs} +3 -3
  6. package/dist/{create-flow-BWFWDWR4.mjs → create-flow-C_ar-XrN.mjs} +3 -3
  7. package/dist/{deps-BbykICqB.mjs → deps-_M128Hqi.mjs} +3 -3
  8. package/dist/{execute-DI1mgVLv.mjs → execute-CNGJsU9v.mjs} +2 -2
  9. package/dist/{execute-D2GlX018.mjs → execute-DTrS4Jqx.mjs} +2 -2
  10. package/dist/{format-Dbs0fupU.mjs → format-Dxe0grKF.mjs} +1 -1
  11. package/dist/index.d.mts +28 -3
  12. package/dist/index.mjs +10 -10
  13. package/dist/{inputs-BKtLcrQ9.mjs → inputs-DkBp5uc7.mjs} +1 -1
  14. package/dist/{npm-Bh6HBy5V.mjs → npm-BttWVZSI.mjs} +1 -1
  15. package/dist/{plan-CxySMaLN.mjs → plan-DkRsq9Oj.mjs} +1 -1
  16. package/dist/{run-D_bceMqf.mjs → run-BHsnON3k.mjs} +4 -4
  17. package/dist/{save-DzIWKs0T.mjs → save-DTVXKc6k.mjs} +3 -3
  18. package/dist/{scan-B_-E6BWh.mjs → scan-uUmUqFA6.mjs} +2 -2
  19. package/dist/{template-drift-D0hKxixr.mjs → template-drift-Bhvs_DPa.mjs} +3 -3
  20. package/dist/tooling-entry.mjs +2 -2
  21. package/dist/{transaction-DFam8_dp.mjs → transaction-ut5-TLoD.mjs} +2 -2
  22. package/dist/{tsconfig-BZ6E1fBA.mjs → tsconfig-DtgBJ7Vi.mjs} +6 -6
  23. package/dist/{vitest-XbNmiloj.mjs → vitest-DkD49zO4.mjs} +1 -1
  24. package/dist/{workspace-tasks-C5W-QwWj.mjs → workspace-tasks-PcOR82ko.mjs} +5 -5
  25. package/package.json +9 -9
  26. package/resources/skills/repoctl/references/commands.md +5 -0
@@ -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, 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 GitClient, 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-C5W-QwWj.mjs";
3
- import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as runPnpmCommand, f 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 verifyStagedTypecheck } from "./execute-DI1mgVLv.mjs";
4
- import { B as presetPackageName, C as checkedFile, E as relativeFile$1, F as normalizeTemplateSourceRequest, G as commandConfigDirectory, L as sourceRequestKey, O as package_default$1, P as normalizeTemplateRemoteSource, R as templateSourcePath, S as canonicalDirectory, T as readOptional$1, U as appendConfigPath, V as presetVersion, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, j as ConfigValidationError, k 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 } from "./tsconfig-BZ6E1fBA.mjs";
5
- import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, r as parseSpecifier, s as resolveCommandValues } from "./scan-B_-E6BWh.mjs";
6
- import { A as record$3, C as baselineDirectory, D as parseBaseline, E as isRootAsset, F as toWorkspaceAssetPath, M as summarizeChecks, O as templatePackage, S as checkDependencyAdmission, T as encodeBaseline, a as applyDoctorSuppressions, b as parseWorkspaceLockfile, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as getWorkspacePatterns, k as getAssetTargets, 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 inspectPnpmRuntime, w as baselinePath, y as lockfileRecord } from "./template-drift-D0hKxixr.mjs";
7
- import { t as writeDependencyTransaction } from "./transaction-DFam8_dp.mjs";
8
- import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-BbykICqB.mjs";
9
- import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-D0Sk385O.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, 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$3, 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 GitClient, 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-PcOR82ko.mjs";
3
+ import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as runPnpmCommand, f 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 verifyStagedTypecheck } from "./execute-CNGJsU9v.mjs";
4
+ import { B as presetPackageName, C as checkedFile, E as relativeFile$1, F as normalizeTemplateSourceRequest, G as commandConfigDirectory, L as sourceRequestKey, O as package_default$1, P as normalizeTemplateRemoteSource, R as templateSourcePath, S as canonicalDirectory, T as readOptional$1, U as appendConfigPath, V as presetVersion, _ as listToolingCapabilities, b as presetRelativePath, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, g as presetAssetTarget, j as ConfigValidationError, k 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 } from "./tsconfig-DtgBJ7Vi.mjs";
5
+ import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, r as parseSpecifier, s as resolveCommandValues } from "./scan-uUmUqFA6.mjs";
6
+ import { A as record$4, C as baselineDirectory, D as parseBaseline, E as isRootAsset, F as toWorkspaceAssetPath, M as summarizeChecks, O as templatePackage, S as checkDependencyAdmission, T as encodeBaseline, a as applyDoctorSuppressions, b as parseWorkspaceLockfile, c as collectSelectedDoctorChecks, d as recommendedRepoScripts, f as inspectInstallSecurity, g as isLegacyReleaseWorkflow, h as supportedVersion, i as hasTemplateDriftIssues, j as getWorkspacePatterns, k as getAssetTargets, 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 inspectPnpmRuntime, w as baselinePath, y as lockfileRecord } from "./template-drift-Bhvs_DPa.mjs";
7
+ import { t as writeDependencyTransaction } from "./transaction-ut5-TLoD.mjs";
8
+ import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-_M128Hqi.mjs";
9
+ import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-BKW8udNq.mjs";
10
10
  import { createRequire, isBuiltin } from "node:module";
11
11
  import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
12
12
  import { findWorkspacePackages } from "@pnpm/workspace.find-packages";
@@ -932,14 +932,14 @@ function presetTemplateDeclarations(layers) {
932
932
  }
933
933
  //#endregion
934
934
  //#region src/core/template-catalog/entries.ts
935
- function record$1(value) {
935
+ function record$2(value) {
936
936
  return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
937
937
  }
938
938
  function definition(value) {
939
939
  const data = typeof value === "string" ? {
940
940
  source: value,
941
941
  target: value
942
- } : record$1(value);
942
+ } : record$2(value);
943
943
  if (!data || ["source", "target"].some((key) => typeof data[key] !== "string" || !data[key].trim() || data[key].includes("\0"))) return;
944
944
  if (["label", "description"].some((key) => data[key] !== void 0 && typeof data[key] !== "string")) return;
945
945
  if (data["category"] !== void 0 && (typeof data["category"] !== "string" || !isTemplateCategory(data["category"]))) return;
@@ -981,7 +981,7 @@ function resolveCatalogEntries(context, diagnostics) {
981
981
  "templatesDir",
982
982
  "templateMap",
983
983
  "choices"
984
- ].filter((field) => record$1(raw)?.[field] === null).map((field) => `commands.create.${field}`), ...Object.entries(record$1(raw?.templateMap) ?? {}).filter(([, value]) => value === null).map(([key]) => appendConfigPath("commands.create.templateMap", key))];
984
+ ].filter((field) => record$2(raw)?.[field] === null).map((field) => `commands.create.${field}`), ...Object.entries(record$2(raw?.templateMap) ?? {}).filter(([, value]) => value === null).map(([key]) => appendConfigPath("commands.create.templateMap", key))];
985
985
  for (const configPath of paths) if (!diagnostics.some((item) => item.configPath === configPath)) diagnostics.push({
986
986
  id: "template-definition",
987
987
  status: "fail",
@@ -990,7 +990,7 @@ function resolveCatalogEntries(context, diagnostics) {
990
990
  detail: localize("Template configuration cannot be null.", "模板配置不能为 null。")
991
991
  });
992
992
  }
993
- const extra = record$1(createConfig.templateMap);
993
+ const extra = record$2(createConfig.templateMap);
994
994
  if (createConfig.templateMap !== void 0 && !extra) diagnostics.push({
995
995
  id: "template-definition",
996
996
  status: "fail",
@@ -1058,7 +1058,7 @@ function resolveCatalogChoices(context, entries, diagnostics) {
1058
1058
  detail: localize("choices must be an array.", "choices 必须是数组。")
1059
1059
  });
1060
1060
  for (const [index, raw] of (Array.isArray(choices) ? choices : []).entries()) {
1061
- const choice = record$1(raw);
1061
+ const choice = record$2(raw);
1062
1062
  const key = choice?.["value"];
1063
1063
  const configPath = `commands.create.choices[${index}]`;
1064
1064
  if (!choice || typeof key !== "string" || !entries.has(key) || selected.has(key) || [
@@ -1459,7 +1459,7 @@ async function downloadGitTemplate(source, directory, timeout) {
1459
1459
  async function resolveRemoteTemplateSource(source, templatePath = ".", options = {}) {
1460
1460
  const request = normalizeTemplateSourceRequest(source, templatePath);
1461
1461
  const cwd = path$1.resolve(options.cwd ?? process.cwd());
1462
- const npm = request.source.kind === "npm" ? await import("./npm-Bh6HBy5V.mjs") : void 0;
1462
+ const npm = request.source.kind === "npm" ? await import("./npm-BttWVZSI.mjs") : void 0;
1463
1463
  const configuration = request.source.kind === "npm" ? await npm.npmTemplateConfiguration(request.source, cwd) : void 0;
1464
1464
  if (request.source.kind === "npm") request.source.registry = configuration.registry;
1465
1465
  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"));
@@ -1715,7 +1715,7 @@ async function discoverDoctorManifests(workspaceDir, patterns) {
1715
1715
  try {
1716
1716
  const text = (await readFile(path$1.join(workspaceDir, filename), "utf8")).replace(/^\uFEFF/, "");
1717
1717
  const value = filename.endsWith(".yaml") ? YAML.parse(text) : filename.endsWith(".json5") ? JSON5.parse(text) : JSON.parse(text);
1718
- const data = record$3(value);
1718
+ const data = record$4(value);
1719
1719
  if (!data) entry.error = "invalid_structure";
1720
1720
  else {
1721
1721
  entry.data = data;
@@ -1731,11 +1731,11 @@ async function discoverDoctorManifests(workspaceDir, patterns) {
1731
1731
  //#endregion
1732
1732
  //#region src/commands/doctor/context.ts
1733
1733
  function rootPackageJson(data = {}) {
1734
- const stringMap = (value) => Object.fromEntries(Object.entries(record$3(value) ?? {}).filter((item) => typeof item[1] === "string"));
1734
+ const stringMap = (value) => Object.fromEntries(Object.entries(record$4(value) ?? {}).filter((item) => typeof item[1] === "string"));
1735
1735
  return {
1736
1736
  ...data,
1737
1737
  packageManager: typeof data["packageManager"] === "string" ? data["packageManager"] : void 0,
1738
- engines: typeof record$3(data["engines"])?.["node"] === "string" ? { node: record$3(data["engines"])["node"] } : {},
1738
+ engines: typeof record$4(data["engines"])?.["node"] === "string" ? { node: record$4(data["engines"])["node"] } : {},
1739
1739
  dependencies: stringMap(data["dependencies"]),
1740
1740
  devDependencies: stringMap(data["devDependencies"]),
1741
1741
  scripts: stringMap(data["scripts"])
@@ -1776,7 +1776,7 @@ async function collectDoctorContext(cwd) {
1776
1776
  let workspacePatterns = [];
1777
1777
  let workspaceManifestError = false;
1778
1778
  if (hasWorkspaceManifest) try {
1779
- const workspace = record$3(YAML.parse(await fs$2.readFile(workspaceManifestPath, "utf8")));
1779
+ const workspace = record$4(YAML.parse(await fs$2.readFile(workspaceManifestPath, "utf8")));
1780
1780
  const patterns = workspace?.["packages"];
1781
1781
  if (!workspace || patterns !== void 0 && (!Array.isArray(patterns) || patterns.some((value) => typeof value !== "string" || !value))) throw new Error("Invalid workspace patterns");
1782
1782
  workspacePatterns = patterns === void 0 ? [".", "**"] : getWorkspacePatterns(workspace);
@@ -2458,7 +2458,7 @@ var ReleaseCommandError = class extends Error {
2458
2458
  function invalid(field) {
2459
2459
  throw new ReleaseCommandError(`Invalid release branch configuration: ${field}`);
2460
2460
  }
2461
- function record(value, fields, field) {
2461
+ function record$1(value, fields, field) {
2462
2462
  if (!value || typeof value !== "object" || Array.isArray(value) || Object.keys(value).some((key) => !fields.includes(key))) invalid(field);
2463
2463
  return value;
2464
2464
  }
@@ -2485,7 +2485,7 @@ function releasePullRequestHead(rule) {
2485
2485
  }
2486
2486
  /** Build one deterministic mapping used by planning, preparation, publishing, CI and recovery. */
2487
2487
  function resolveReleaseBranches(input = {}) {
2488
- const config = record(input, [
2488
+ const config = record$1(input, [
2489
2489
  "stable",
2490
2490
  "maintenance",
2491
2491
  "prerelease"
@@ -2493,7 +2493,7 @@ function resolveReleaseBranches(input = {}) {
2493
2493
  const stable = branch$1(config["stable"] === void 0 ? "main" : config["stable"], "branches.stable");
2494
2494
  const maintenance = list(config["maintenance"] === void 0 ? [] : config["maintenance"], "branches.maintenance").map((value, index) => {
2495
2495
  const field = `branches.maintenance[${index}]`;
2496
- const item = record(value, [
2496
+ const item = record$1(value, [
2497
2497
  "branch",
2498
2498
  "range",
2499
2499
  "tag"
@@ -2539,7 +2539,7 @@ function resolveReleaseBranches(input = {}) {
2539
2539
  }));
2540
2540
  const prerelease = list(config["prerelease"] === void 0 ? defaults : config["prerelease"], "branches.prerelease").map((value, index) => {
2541
2541
  const field = `branches.prerelease[${index}]`;
2542
- const item = record(value, [
2542
+ const item = record$1(value, [
2543
2543
  "branch",
2544
2544
  "lane",
2545
2545
  "tag",
@@ -3289,10 +3289,10 @@ async function readDoctorManifest(workspaceDir) {
3289
3289
  function planMissingRootScripts(original) {
3290
3290
  let manifest;
3291
3291
  try {
3292
- manifest = record$2(JSON.parse(original.replace(/^\uFEFF/, "")));
3292
+ manifest = record$3(JSON.parse(original.replace(/^\uFEFF/, "")));
3293
3293
  } catch {}
3294
3294
  if (!manifest) return { notes: ["package.json must be a valid JSON object; repair it manually."] };
3295
- const scripts = manifest["scripts"] === void 0 ? {} : record$2(manifest["scripts"]);
3295
+ const scripts = manifest["scripts"] === void 0 ? {} : record$3(manifest["scripts"]);
3296
3296
  if (!scripts) return { notes: ["scripts is not an object; repair it manually before adding recommended scripts."] };
3297
3297
  const additions = Object.entries(recommendedRepoScripts).filter(([name]) => !Object.hasOwn(scripts, name)).map(([name, command]) => ({
3298
3298
  name,
@@ -3353,10 +3353,10 @@ async function planDoctorFix(cwd, options = {}) {
3353
3353
  };
3354
3354
  }
3355
3355
  function validatePlan(value, workspaceDir) {
3356
- const plan = record$2(value);
3356
+ const plan = record$3(value);
3357
3357
  if (!plan || plan["schemaVersion"] !== 1 || plan["workspaceDir"] !== workspaceDir || !Array.isArray(plan["operations"]) || plan["operations"].length > 1) throw new Error("Invalid doctor fix plan or workspace. Generate a new plan.");
3358
3358
  return plan["operations"].map((value) => {
3359
- const operation = record$2(value);
3359
+ const operation = record$3(value);
3360
3360
  if (!operation || typeof operation["before"] !== "string") throw new Error("Invalid doctor fix operation.");
3361
3361
  const expected = planMissingRootScripts(operation["before"]).operation;
3362
3362
  if (!expected || !isDeepStrictEqual(operation, expected)) throw new Error("Unsupported or modified doctor fix operation. Generate a new plan.");
@@ -3631,7 +3631,7 @@ var package_default = {
3631
3631
  type: "module",
3632
3632
  version: "0.0.0",
3633
3633
  "private": true,
3634
- packageManager: "pnpm@12.8.1",
3634
+ packageManager: "pnpm@12.9.1",
3635
3635
  description: "Source workspace for repoctl and Icebreaker's shared development packages",
3636
3636
  author: "ice breaker <hi@sonofmagic.top>",
3637
3637
  license: "MIT",
@@ -3729,10 +3729,10 @@ var package_default = {
3729
3729
  "@icebreakers/eslint-config": "workspace:*",
3730
3730
  "@icebreakers/monorepo": "workspace:*",
3731
3731
  "@icebreakers/stylelint-config": "workspace:*",
3732
- "@types/node": "^26.6.3",
3732
+ "@types/node": "^26.6.4",
3733
3733
  "@vitest/coverage-v8": "~5.0.3",
3734
- "eslint": "^10.11.0",
3735
- "execa": "^10.0.1",
3734
+ "eslint": "^10.12.0",
3735
+ "execa": "^10.1.0",
3736
3736
  "husky": "^9.1.7",
3737
3737
  "lint-staged": "^17.6.0",
3738
3738
  "make-fetch-happen": "15.0.6",
@@ -3743,7 +3743,7 @@ var package_default = {
3743
3743
  "tailwindcss": "^4.3.3",
3744
3744
  "tsd": "^0.33.0",
3745
3745
  "tsdown": "0.23.0",
3746
- "turbo": "^2.11.6",
3746
+ "turbo": "^2.11.7",
3747
3747
  "typescript": "^6.0.3",
3748
3748
  "vitest": "~5.0.3",
3749
3749
  "yaml": "^2.9.1"
@@ -4517,6 +4517,11 @@ async function readPendingIntents(cwd) {
4517
4517
  function getReleaseEnv(options) {
4518
4518
  return options.env ?? process.env;
4519
4519
  }
4520
+ /** CLI 预检与发布调度共享模式优先级,确保核验入口不加载可执行配置。 */
4521
+ function resolveReleaseMode(options) {
4522
+ const requested = options.mode && options.mode !== "auto" ? options.mode : (options.env ?? process.env)["REPO_RELEASE_MODE"]?.trim();
4523
+ return requested && requested !== "auto" ? requested : "auto";
4524
+ }
4520
4525
  function run(command, args, options) {
4521
4526
  const result = (options.spawn ?? spawnSync)(command, args, {
4522
4527
  cwd: options.cwd,
@@ -5972,6 +5977,160 @@ async function publishLifecycle(options, selected, distTag = "latest") {
5972
5977
  return packages;
5973
5978
  }
5974
5979
  //#endregion
5980
+ //#region src/core/oidc/identity.ts
5981
+ const npmRegistry = "https://registry.npmjs.org";
5982
+ const npmAudience = "npm:registry.npmjs.org";
5983
+ const requestTimeout = 15e3;
5984
+ const identityKeys = [
5985
+ "iss",
5986
+ "aud",
5987
+ "sub",
5988
+ "repository",
5989
+ "repository_id",
5990
+ "repository_owner_id",
5991
+ "workflow_ref",
5992
+ "job_workflow_ref",
5993
+ "event_name",
5994
+ "runner_environment",
5995
+ "environment"
5996
+ ];
5997
+ function publicMessage(value, secrets) {
5998
+ let message = typeof value === "string" ? value : "npm did not return a recognizable error message";
5999
+ for (const secret of secrets) if (secret) message = message.replaceAll(secret, "[redacted]");
6000
+ return message.replaceAll(/\beyJ[\w-]+\.[\w-]+\.[\w-]+\b/g, "[redacted]").replaceAll(/\bnpm_[a-z0-9]+\b/gi, "[redacted]").replaceAll(/\p{Cc}/gu, " ").slice(0, 500);
6001
+ }
6002
+ function record(value) {
6003
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
6004
+ }
6005
+ async function requestIdentity(env, fetcher) {
6006
+ const requestToken = env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];
6007
+ const requestUrl = env["ACTIONS_ID_TOKEN_REQUEST_URL"];
6008
+ if (!requestToken || !requestUrl || !env["GITHUB_REPOSITORY"] || !env["GITHUB_WORKFLOW_REF"]) throw new Error("OIDC audit requires a GitHub-hosted job with id-token: write, GITHUB_REPOSITORY and GITHUB_WORKFLOW_REF");
6009
+ let response;
6010
+ try {
6011
+ const url = new URL(requestUrl);
6012
+ if (url.protocol !== "https:" || url.username || url.password) throw new Error("invalid OIDC request URL");
6013
+ url.searchParams.set("audience", npmAudience);
6014
+ response = await fetcher(url, {
6015
+ headers: { Authorization: `Bearer ${requestToken}` },
6016
+ signal: AbortSignal.timeout(requestTimeout),
6017
+ redirect: "error"
6018
+ });
6019
+ } catch {
6020
+ throw new Error("GitHub OIDC request failed, timed out or returned an invalid response; no credentials were saved");
6021
+ }
6022
+ if (!response.ok) throw new Error(`GitHub OIDC request failed: HTTP ${response.status}`);
6023
+ let body;
6024
+ try {
6025
+ body = record(await response.json());
6026
+ } catch {
6027
+ throw new Error("GitHub OIDC returned an invalid JSON response");
6028
+ }
6029
+ if (typeof body["value"] !== "string" || !body["value"]) throw new Error("GitHub OIDC response is missing an identity token");
6030
+ const idToken = body["value"];
6031
+ let claims;
6032
+ try {
6033
+ const segments = idToken.split(".");
6034
+ if (segments.length !== 3) throw new Error("invalid JWT");
6035
+ claims = record(JSON.parse(Buffer.from(segments[1], "base64url").toString("utf8")));
6036
+ } catch {
6037
+ throw new Error("GitHub OIDC identity claims could not be parsed");
6038
+ }
6039
+ if (claims["iss"] !== "https://token.actions.githubusercontent.com" || claims["aud"] !== "npm:registry.npmjs.org" || claims["repository"] !== env["GITHUB_REPOSITORY"] || claims["workflow_ref"] !== env["GITHUB_WORKFLOW_REF"] || claims["runner_environment"] !== "github-hosted") throw new Error("GitHub OIDC identity does not match the current GitHub-hosted workflow; no npm exchanges were attempted");
6040
+ return {
6041
+ idToken,
6042
+ requestToken,
6043
+ identity: Object.fromEntries(identityKeys.filter((key) => typeof claims[key] === "string").map((key) => [key, publicMessage(claims[key], [idToken, requestToken])]))
6044
+ };
6045
+ }
6046
+ //#endregion
6047
+ //#region src/core/oidc/exchange.ts
6048
+ async function exchangePackage(name, idToken, requestToken, fetcher) {
6049
+ try {
6050
+ const response = await fetcher(new URL(`/-/npm/v1/oidc/token/exchange/package/${encodeURIComponent(name)}`, npmRegistry), {
6051
+ method: "POST",
6052
+ headers: {
6053
+ Authorization: `Bearer ${idToken}`,
6054
+ Accept: "application/json"
6055
+ },
6056
+ body: "",
6057
+ signal: AbortSignal.timeout(requestTimeout),
6058
+ redirect: "error"
6059
+ });
6060
+ let body;
6061
+ try {
6062
+ body = record(await response.json());
6063
+ } catch {
6064
+ return {
6065
+ package: name,
6066
+ ok: false,
6067
+ status: response.status,
6068
+ message: "npm returned an invalid JSON response"
6069
+ };
6070
+ }
6071
+ const token = typeof body["token"] === "string" ? body["token"] : "";
6072
+ const ok = response.ok && token.length > 0;
6073
+ return {
6074
+ package: name,
6075
+ ok,
6076
+ status: response.status,
6077
+ message: ok ? "OIDC token exchange succeeded" : response.ok ? "npm response is missing an exchange token" : publicMessage(body["message"] ?? record(body["body"])["message"], [
6078
+ idToken,
6079
+ requestToken,
6080
+ token
6081
+ ])
6082
+ };
6083
+ } catch {
6084
+ return {
6085
+ package: name,
6086
+ ok: false,
6087
+ status: null,
6088
+ message: "npm token exchange request failed or timed out"
6089
+ };
6090
+ }
6091
+ }
6092
+ //#endregion
6093
+ //#region src/commands/release/oidc/index.ts
6094
+ /** 逐包核验官方 npm 的短时凭据交换;不发布、不执行 hooks,也不保存凭据。 */
6095
+ async function auditReleaseOidc(options) {
6096
+ clearWorkspaceCache();
6097
+ const { packages } = await getWorkspaceData(options.cwd);
6098
+ const candidates = packages.filter(({ manifest }) => typeof manifest.name === "string" && typeof manifest.version === "string");
6099
+ if (!candidates.length) throw new ReleaseCommandError("OIDC audit found no versioned publishable workspace packages");
6100
+ if (candidates.some(({ manifest }) => {
6101
+ const registry = record(record(manifest)["publishConfig"])["registry"];
6102
+ return registry !== void 0 && (typeof registry !== "string" || registry.replace(/\/$/, "") !== "https://registry.npmjs.org");
6103
+ })) throw new ReleaseCommandError("OIDC audit supports only the official npm registry; no credentials were requested");
6104
+ const fetcher = options.fetch ?? globalThis.fetch;
6105
+ const { idToken, requestToken, identity } = await requestIdentity(options.env ?? process.env, fetcher);
6106
+ const names = [...new Set(candidates.map((pkg) => pkg.manifest.name))].sort();
6107
+ const results = [];
6108
+ for (let start = 0; start < names.length; start += 4) results.push(...await Promise.all(names.slice(start, start + 4).map((name) => exchangePackage(name, idToken, requestToken, fetcher))));
6109
+ const hints = results.some((result) => result.status === 404) ? [
6110
+ "HTTP 404 alone does not prove that a package is missing or that its trusted publisher has expired. Check the npm package settings and the repository, workflow and environment identity.",
6111
+ "If npm explicitly reports Expired, delete and recreate the trusted publisher, then complete its first successful publish within 48 hours. Token exchange alone does not validate the configuration.",
6112
+ "npm policy: https://github.blog/changelog/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire/"
6113
+ ] : ["Token exchange success confirms current exchange access only. It does not complete the first successful publish required to validate a new trusted publisher."];
6114
+ return {
6115
+ schemaVersion: 1,
6116
+ identity,
6117
+ results,
6118
+ ok: results.every((result) => result.ok),
6119
+ hints
6120
+ };
6121
+ }
6122
+ async function runReleaseOidcAudit(options) {
6123
+ const env = getReleaseEnv(options);
6124
+ if (options.sourceSha || env["REPO_RELEASE_RECOVERY_SOURCE_SHA"]?.trim() || options.dryRun || env["REPO_RELEASE_DRY_RUN"] === "true" || options.packageName || options.packageVersion || env["REPO_RELEASE_PACKAGE"]?.trim() || env["REPO_RELEASE_VERSION"]?.trim()) throw new ReleaseCommandError("oidc-audit cannot be combined with source-sha, dry-run, package or version recovery options");
6125
+ const report = await auditReleaseOidc({
6126
+ cwd: options.cwd,
6127
+ env
6128
+ });
6129
+ process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
6130
+ if (!report.ok) throw new ReleaseCommandError(`npm OIDC audit failed for ${report.results.filter((result) => !result.ok).length}/${report.results.length} packages; see the safe report above`);
6131
+ return report;
6132
+ }
6133
+ //#endregion
5975
6134
  //#region src/commands/release/plan/native.ts
5976
6135
  var PlanError = class extends Error {
5977
6136
  id;
@@ -6750,11 +6909,6 @@ async function recoverUnpublished(options) {
6750
6909
  runAfterPublishHooks(packages, options);
6751
6910
  return packages;
6752
6911
  }
6753
- function resolveMode(options) {
6754
- const requested = options.mode && options.mode !== "auto" ? options.mode : getReleaseEnv(options)["REPO_RELEASE_MODE"]?.trim();
6755
- if (requested && requested !== "auto") return requested;
6756
- return "auto";
6757
- }
6758
6912
  async function publishStableCi(options) {
6759
6913
  const github = resolveGitHub(options);
6760
6914
  if (github.readReleaseState && github.writeReleaseState) {
@@ -6770,11 +6924,12 @@ async function publishStableCi(options) {
6770
6924
  return packages;
6771
6925
  }
6772
6926
  async function releaseCi(options) {
6927
+ const mode = resolveReleaseMode(options);
6928
+ if (mode === "oidc-audit") return runReleaseOidcAudit(options);
6773
6929
  options = {
6774
6930
  ...options,
6775
6931
  config: options.config ?? await resolveCommandConfig("release", options.cwd) ?? {}
6776
6932
  };
6777
- const mode = resolveMode(options);
6778
6933
  const source = options.sourceSha ?? getReleaseEnv(options)["REPO_RELEASE_RECOVERY_SOURCE_SHA"]?.trim();
6779
6934
  if (source) return recoverSource({
6780
6935
  ...options,
@@ -6790,7 +6945,7 @@ async function releaseCi(options) {
6790
6945
  ...options,
6791
6946
  dryRun: options.dryRun ?? getReleaseEnv(options)["REPO_RELEASE_DRY_RUN"] === "true"
6792
6947
  });
6793
- if (mode !== "auto") throw new ReleaseCommandError(`unknown release CI mode ${mode}; expected auto, prepare, publish, publish-unpublished, or reconcile`);
6948
+ if (mode !== "auto") throw new ReleaseCommandError(`unknown release CI mode ${mode}; expected auto, prepare, publish, publish-unpublished, reconcile, or oidc-audit`);
6794
6949
  const eventName = getReleaseEnv(options)["GITHUB_EVENT_NAME"]?.trim();
6795
6950
  if (eventName && eventName !== "workflow_dispatch") {
6796
6951
  if (!shouldRunRelease(await readReleaseTriggerContext(options))) {
@@ -7344,7 +7499,7 @@ function reportPath(value) {
7344
7499
  }
7345
7500
  function targets(value) {
7346
7501
  if (typeof value === "string") return [value];
7347
- const conditions = record$2(value);
7502
+ const conditions = record$3(value);
7348
7503
  if (!conditions || Object.keys(conditions).some((condition) => condition.startsWith("types@"))) return [];
7349
7504
  if (Object.hasOwn(conditions, "types")) return targets(conditions["types"]);
7350
7505
  return Object.values(conditions).flatMap(targets);
@@ -7356,7 +7511,7 @@ async function entryPaths(root, workspace, subpath, config, tsconfig = "tsconfig
7356
7511
  const relative = (filename) => workspace === "." ? filename : `${workspace}/${filename}`;
7357
7512
  const packageJson = await safeFile(root, relative("package.json"));
7358
7513
  const manifest = JSON.parse(await readFile(packageJson, "utf8"));
7359
- const exports = record$2(manifest["exports"]);
7514
+ const exports = record$3(manifest["exports"]);
7360
7515
  const exported = exports && Object.keys(exports).some((key) => key.startsWith(".")) ? exports[subpath] : subpath === "." ? manifest["exports"] : void 0;
7361
7516
  const declarations = targets(exported).map((item) => item.replace(/^\.\//u, "").replace(/(?<!\.d)\.(cjs|mjs|js)$/u, (_, ext) => ext === "js" ? ".d.ts" : ext === "mjs" ? ".d.mts" : ".d.cts"));
7362
7517
  const types = manifest["types"] ?? manifest["typings"];
@@ -7376,14 +7531,14 @@ async function entryPaths(root, workspace, subpath, config, tsconfig = "tsconfig
7376
7531
  //#endregion
7377
7532
  //#region src/commands/api-report/settings.ts
7378
7533
  function configValue(input) {
7379
- const config = record$2(input);
7534
+ const config = record$3(input);
7380
7535
  if (!config) throw new Error("tooling.apiReports must map exact workspace selectors to entry configurations.");
7381
7536
  for (const value of Object.values(config)) {
7382
- const item = record$2(value);
7383
- const entries = record$2(item?.["entries"]);
7537
+ const item = record$3(value);
7538
+ const entries = record$3(item?.["entries"]);
7384
7539
  if (!item || Object.keys(item).some((key) => !["entries", "tsconfig"].includes(key)) || !entries || !Object.keys(entries).length || item["tsconfig"] !== void 0 && typeof item["tsconfig"] !== "string") throw new Error("Each apiReports package requires a nonempty entries map and optional tsconfig path.");
7385
7540
  for (const [subpath, entry] of Object.entries(entries)) {
7386
- const data = record$2(entry);
7541
+ const data = record$3(entry);
7387
7542
  if (subpath !== "." && !/^\.\/[\w./-]+$/iu.test(subpath) || subpath.includes("..") || !data || Object.keys(data).some((key) => !["entryPoint", "baseline"].includes(key)) || typeof data["entryPoint"] !== "string" || typeof data["baseline"] !== "string") throw new Error("API entries require a literal public subpath, entryPoint and baseline strings.");
7388
7543
  }
7389
7544
  }
@@ -7483,11 +7638,11 @@ async function extractPublicApi(root, tool, packageJson, entryPoint, tsconfig, o
7483
7638
  }
7484
7639
  let result;
7485
7640
  try {
7486
- result = record$2(JSON.parse(stdout));
7641
+ result = record$3(JSON.parse(stdout));
7487
7642
  } catch {
7488
7643
  throw new Error("API Extractor returned invalid analysis output.");
7489
7644
  }
7490
- if (!result || typeof result["succeeded"] !== "boolean" || !Array.isArray(result["diagnostics"]) || result["report"] !== null && typeof result["report"] !== "string" || result["succeeded"] && (!Array.isArray(result["inputs"]) || result["inputs"].some((item) => !record$2(item) || typeof item.path !== "string" || !path.isAbsolute(item.path) || typeof item.hash !== "string" || !/^[a-f\d]{64}$/u.test(item.hash))) || result["succeeded"] && (processFailed || typeof result["inputHash"] !== "string" || !/^[a-f\d]{64}$/u.test(result["inputHash"]) || typeof result["report"] !== "string" || !result["report"].startsWith("## API Report File for ")) || result["diagnostics"].some((item) => !record$2(item) || typeof item.code !== "string" || typeof item.message !== "string" || !["warning", "error"].includes(item.severity))) throw new Error("API Extractor returned an incomplete analysis result.");
7645
+ if (!result || typeof result["succeeded"] !== "boolean" || !Array.isArray(result["diagnostics"]) || result["report"] !== null && typeof result["report"] !== "string" || result["succeeded"] && (!Array.isArray(result["inputs"]) || result["inputs"].some((item) => !record$3(item) || typeof item.path !== "string" || !path.isAbsolute(item.path) || typeof item.hash !== "string" || !/^[a-f\d]{64}$/u.test(item.hash))) || result["succeeded"] && (processFailed || typeof result["inputHash"] !== "string" || !/^[a-f\d]{64}$/u.test(result["inputHash"]) || typeof result["report"] !== "string" || !result["report"].startsWith("## API Report File for ")) || result["diagnostics"].some((item) => !record$3(item) || typeof item.code !== "string" || typeof item.message !== "string" || !["warning", "error"].includes(item.severity))) throw new Error("API Extractor returned an incomplete analysis result.");
7491
7646
  return {
7492
7647
  inputs: result["inputs"] ?? [],
7493
7648
  inputHash: typeof result["inputHash"] === "string" ? result["inputHash"] : null,
@@ -7734,18 +7889,18 @@ async function readPeerLockfile(root) {
7734
7889
  try {
7735
7890
  const documents = parseAllDocuments(await readFile(path$1.join(root, "pnpm-lock.yaml"), "utf8"));
7736
7891
  if (documents.some((doc) => doc.errors.length)) return { state: "unsupported" };
7737
- const candidates = documents.map((doc) => record$2(doc.toJSON())).filter((doc) => {
7738
- const importers = record$2(doc?.["importers"]);
7892
+ const candidates = documents.map((doc) => record$3(doc.toJSON())).filter((doc) => {
7893
+ const importers = record$3(doc?.["importers"]);
7739
7894
  return importers && Object.values(importers).some((value) => [
7740
7895
  "dependencies",
7741
7896
  "devDependencies",
7742
7897
  "optionalDependencies"
7743
- ].some((section) => record$2(value)?.[section] !== void 0));
7898
+ ].some((section) => record$3(value)?.[section] !== void 0));
7744
7899
  });
7745
7900
  if (candidates.length !== 1 || Number(candidates[0]["lockfileVersion"]) !== 9) return { state: "unsupported" };
7746
7901
  return {
7747
7902
  state: "supported",
7748
- importers: record$2(candidates[0]["importers"])
7903
+ importers: record$3(candidates[0]["importers"])
7749
7904
  };
7750
7905
  } catch (error) {
7751
7906
  if (error.code === "ENOENT") return { state: "absent" };
@@ -7754,7 +7909,7 @@ async function readPeerLockfile(root) {
7754
7909
  }
7755
7910
  function lockedPeerVersion(lock, directory, name, specifiers, source, range) {
7756
7911
  if (lock.state !== "supported") return { state: lock.state };
7757
- const entry = record$2(record$2(record$2(lock.importers[directory])?.["devDependencies"])?.[name]);
7912
+ const entry = record$3(record$3(record$3(lock.importers[directory])?.["devDependencies"])?.[name]);
7758
7913
  if (!entry || typeof entry["specifier"] !== "string" || !specifiers.includes(entry["specifier"]) || typeof entry["version"] !== "string") return { state: "stale" };
7759
7914
  let version = entry["version"].split("(")[0];
7760
7915
  if (version.startsWith(`${source}@`)) version = version.slice(source.length + 1);
@@ -7811,10 +7966,10 @@ function resolvePeerSpecifier(name, input, directory, packages, workspace) {
7811
7966
  let effective = input;
7812
7967
  if (input.startsWith("catalog:")) {
7813
7968
  const catalog = input.slice(8);
7814
- const named = record$2(workspace["catalogs"]);
7969
+ const named = record$3(workspace["catalogs"]);
7815
7970
  const isDefault = !catalog || catalog === "default";
7816
7971
  const duplicateDefault = workspace["catalog"] != null && named?.["default"] != null;
7817
- const value = (isDefault ? duplicateDefault ? void 0 : record$2(workspace["catalog"] ?? named?.["default"]) : record$2(named?.[catalog]))?.[name];
7972
+ const value = (isDefault ? duplicateDefault ? void 0 : record$3(workspace["catalog"] ?? named?.["default"]) : record$3(named?.[catalog]))?.[name];
7818
7973
  if (typeof value === "string" && !value.startsWith("catalog:")) effective = value;
7819
7974
  else return {
7820
7975
  source: null,
@@ -7863,7 +8018,7 @@ async function checkPeerDependencies(cwd) {
7863
8018
  ignorePrivatePackage: false,
7864
8019
  ignoreRootPackage: false
7865
8020
  });
7866
- const workspace = record$2(parse$1(await readFile(path$1.join(workspaceDir, "pnpm-workspace.yaml"), "utf8"))) ?? {};
8021
+ const workspace = record$3(parse$1(await readFile(path$1.join(workspaceDir, "pnpm-workspace.yaml"), "utf8"))) ?? {};
7867
8022
  const lockfile = await readPeerLockfile(workspaceDir);
7868
8023
  const targets = packages.map((pkg) => ({
7869
8024
  name: pkg.manifest.name ?? null,
@@ -7888,11 +8043,11 @@ async function checkPeerDependencies(cwd) {
7888
8043
  }
7889
8044
  };
7890
8045
  for (const pkg of packages.toSorted((a, b) => a.rootDir.localeCompare(b.rootDir))) {
7891
- const manifest = record$2(pkg.manifest);
7892
- const peers = record$2(manifest["peerDependencies"]);
7893
- const dev = record$2(manifest["devDependencies"]);
8046
+ const manifest = record$3(pkg.manifest);
8047
+ const peers = record$3(manifest["peerDependencies"]);
8048
+ const dev = record$3(manifest["devDependencies"]);
7894
8049
  if (manifest["peerDependencies"] !== void 0 && !peers || manifest["devDependencies"] !== void 0 && !dev) throw new Error(`Invalid peer/development dependency map: ${pkg.rootDir}`);
7895
- const metadata = record$2(manifest["peerDependenciesMeta"]);
8050
+ const metadata = record$3(manifest["peerDependenciesMeta"]);
7896
8051
  for (const [name, value] of Object.entries(peers ?? {}).sort(([a], [b]) => a.localeCompare(b))) {
7897
8052
  const testValue = dev?.[name];
7898
8053
  if (typeof value !== "string" || testValue !== void 0 && typeof testValue !== "string") throw new Error(`Invalid peer/development specifier: ${pkg.rootDir} ${name}`);
@@ -7902,7 +8057,7 @@ async function checkPeerDependencies(cwd) {
7902
8057
  packageName: pkg.manifest.name ?? null,
7903
8058
  path: path$1.relative(workspaceDir, pkg.rootDir).replaceAll("\\", "/") || ".",
7904
8059
  peer: name,
7905
- optional: record$2(metadata?.[name])?.["optional"] === true,
8060
+ optional: record$3(metadata?.[name])?.["optional"] === true,
7906
8061
  peerSpecifier: value,
7907
8062
  testSpecifier: typeof testValue === "string" ? testValue : null,
7908
8063
  peerRange: peer.range,
@@ -7933,7 +8088,7 @@ const presetValues = {
7933
8088
  };
7934
8089
  function renderAdditions(content, additions) {
7935
8090
  const document = YAML.parseDocument(content);
7936
- if (document.errors.length || !record$2(document.toJS())) throw new Error("Cannot plan changes to invalid pnpm-workspace.yaml.");
8091
+ if (document.errors.length || !record$3(document.toJS())) throw new Error("Cannot plan changes to invalid pnpm-workspace.yaml.");
7937
8092
  for (const [key, value] of Object.entries(additions)) {
7938
8093
  if (document.has(key)) throw new Error(`Preset refuses to overwrite an existing ${key}.`);
7939
8094
  document.set(key, structuredClone(value));
@@ -7977,7 +8132,7 @@ async function planInstallSecurityPreset(cwd, options = {}) {
7977
8132
  };
7978
8133
  }
7979
8134
  async function applyInstallSecurityPreset(cwd, plan) {
7980
- if (!plan || plan.schemaVersion !== 1 || plan.kind !== "install-security-preset" || plan.preset !== "balanced" || typeof plan.workspaceDir !== "string" || typeof plan.pnpmVersion !== "string" || !/^[a-f\d]{64}$/u.test(plan.policyHash) || !/^[a-f\d]{64}$/u.test(plan.beforeHash) || !/^[a-f\d]{64}$/u.test(plan.afterHash) || !record$2(plan.additions) || Object.entries(plan.additions).some(([key, value]) => !Object.hasOwn(presetValues, key) || !isDeepStrictEqual(value, presetValues[key]))) throw new Error("Invalid installation security preset plan.");
8135
+ if (!plan || plan.schemaVersion !== 1 || plan.kind !== "install-security-preset" || plan.preset !== "balanced" || typeof plan.workspaceDir !== "string" || typeof plan.pnpmVersion !== "string" || !/^[a-f\d]{64}$/u.test(plan.policyHash) || !/^[a-f\d]{64}$/u.test(plan.beforeHash) || !/^[a-f\d]{64}$/u.test(plan.afterHash) || !record$3(plan.additions) || Object.entries(plan.additions).some(([key, value]) => !Object.hasOwn(presetValues, key) || !isDeepStrictEqual(value, presetValues[key]))) throw new Error("Invalid installation security preset plan.");
7981
8136
  const current = await planInstallSecurityPreset(cwd);
7982
8137
  if (current.workspaceDir !== plan.workspaceDir || current.pnpmVersion !== plan.pnpmVersion) throw new Error("Security preset belongs to a different workspace or pnpm version.");
7983
8138
  const original = await readInput(current.workspaceDir, "pnpm-workspace.yaml");
@@ -9534,8 +9689,8 @@ async function readOwnership(root, inputs) {
9534
9689
  }
9535
9690
  const original = await readText(root, ownershipFile, inputs);
9536
9691
  const state = JSON.parse(original.replace(/^\uFEFF/, ""));
9537
- if (record$2(state) && Object.hasOwn(state, "transaction")) throw new Error("Pending TypeScript references transaction. Verify no writer is active, preserve backups and reconcile the registry before retrying.");
9538
- if (!record$2(state) || state.schemaVersion !== 1 || Object.keys(state).some((key) => !["schemaVersion", "configs"].includes(key)) || !record$2(state.configs)) throw new Error("Invalid TypeScript reference ownership registry.");
9692
+ if (record$3(state) && Object.hasOwn(state, "transaction")) throw new Error("Pending TypeScript references transaction. Verify no writer is active, preserve backups and reconcile the registry before retrying.");
9693
+ if (!record$3(state) || state.schemaVersion !== 1 || Object.keys(state).some((key) => !["schemaVersion", "configs"].includes(key)) || !record$3(state.configs)) throw new Error("Invalid TypeScript reference ownership registry.");
9539
9694
  for (const [file, references] of Object.entries(state.configs)) {
9540
9695
  relativeFile(file);
9541
9696
  if (!Array.isArray(references) || references.length !== new Set(references).size || references.some((ref) => typeof ref !== "string" || referencePath(file, referenceTarget(file, ref)) !== ref)) throw new Error(`Invalid managed project references: ${file}`);
@@ -9597,7 +9752,7 @@ function renderReferences(ts, config, references) {
9597
9752
  //#region src/commands/project-references/settings.ts
9598
9753
  function parseSettings(value) {
9599
9754
  if (value === void 0) return {};
9600
- const config = record$2(value);
9755
+ const config = record$3(value);
9601
9756
  if (!config || Object.keys(config).some((key) => ![
9602
9757
  "enabled",
9603
9758
  "root",
@@ -9611,7 +9766,7 @@ function parseSettings(value) {
9611
9766
  if (config["relations"] !== void 0) {
9612
9767
  if (!Array.isArray(config["relations"])) throw new TypeError("projectReferences.relations must be an array.");
9613
9768
  for (const value of config["relations"]) {
9614
- const edge = record$2(value);
9769
+ const edge = record$3(value);
9615
9770
  if (!edge || Object.keys(edge).some((key) => !["source", "target"].includes(key))) throw new Error("Invalid projectReferences relation.");
9616
9771
  relativeFile(edge["source"]);
9617
9772
  relativeFile(edge["target"]);
@@ -9621,7 +9776,7 @@ function parseSettings(value) {
9621
9776
  }
9622
9777
  function validateLayers(layers) {
9623
9778
  for (const layer of layers) {
9624
- const tooling = record$2(record$2(layer)?.["tooling"]);
9779
+ const tooling = record$3(record$3(layer)?.["tooling"]);
9625
9780
  if (tooling && Object.hasOwn(tooling, "projectReferences")) parseSettings(tooling["projectReferences"]);
9626
9781
  }
9627
9782
  }
@@ -9748,7 +9903,7 @@ async function planProjectReferences(cwd) {
9748
9903
  await validateGraph([.../* @__PURE__ */ new Set([plan.root, ...projected.keys()])].sort(compare$1), projected, read, plan.diagnostics);
9749
9904
  for (const project of plan.projects) {
9750
9905
  const pkg = packages.filter((pkg) => project.startsWith(`${pkg.relative}/`)).at(-1);
9751
- const script = record$2(record$2(pkg.manifest)?.["scripts"])?.["typecheck"];
9906
+ const script = record$3(record$3(pkg.manifest)?.["scripts"])?.["typecheck"];
9752
9907
  plan.validation.push({
9753
9908
  config: project,
9754
9909
  cwd: pkg.relative,
@@ -12822,14 +12977,14 @@ function moveManifestChanges(contents, graph, target, to, name, gitRoot = graph.
12822
12977
  manifest.name = name;
12823
12978
  fields.push("name");
12824
12979
  }
12825
- const repository = record$2(manifest.repository);
12980
+ const repository = record$3(manifest.repository);
12826
12981
  if (to !== target.id && repository && typeof repository["directory"] === "string" && path.resolve(gitRoot, repository["directory"]) === path.join(graph.workspaceDir, target.id)) {
12827
12982
  repository["directory"] = path.relative(gitRoot, path.join(graph.workspaceDir, to));
12828
12983
  fields.push("repository.directory");
12829
12984
  }
12830
12985
  }
12831
12986
  for (const section of workspaceDependencyTypes) {
12832
- const dependencies = record$2(manifest[section]);
12987
+ const dependencies = record$3(manifest[section]);
12833
12988
  for (const [dependency, specifier] of Object.entries(dependencies ?? {})) {
12834
12989
  if (typeof specifier !== "string") continue;
12835
12990
  const next = dependencyValue(graph.workspaceDir, node.id, specifier, target, to, name);
@@ -12845,7 +13000,7 @@ function moveManifestChanges(contents, graph, target, to, name, gitRoot = graph.
12845
13000
  }
12846
13001
  }
12847
13002
  for (const section of ["dependenciesMeta", "peerDependenciesMeta"]) {
12848
- const metadata = record$2(manifest[section]);
13003
+ const metadata = record$3(manifest[section]);
12849
13004
  for (const dependency of renamedDependencies) if (metadata && Object.hasOwn(metadata, dependency)) {
12850
13005
  renameKey(metadata, dependency, name);
12851
13006
  fields.push(`${section}.${dependency} → ${name}`);
@@ -12859,7 +13014,7 @@ function moveWorkspaceManifest(before, from, to) {
12859
13014
  if (from === to) return;
12860
13015
  const document = YAML.parseDocument(before);
12861
13016
  const original = document.toJS();
12862
- if (document.errors.length || !record$2(original) || !Array.isArray(original.packages) || original.packages.some((item) => typeof item !== "string")) throw new Error("Moving requires a valid packages array in pnpm-workspace.yaml.");
13017
+ if (document.errors.length || !record$3(original) || !Array.isArray(original.packages) || original.packages.some((item) => typeof item !== "string")) throw new Error("Moving requires a valid packages array in pnpm-workspace.yaml.");
12863
13018
  const packages = original.packages;
12864
13019
  if (packages.some((item) => item.startsWith("!") && matchesGlob(to, item.slice(1)))) throw new Error("The destination is excluded by pnpm-workspace.yaml; review its package patterns first.");
12865
13020
  const updated = packages.map((item) => item === from || item === `./${from}` ? to : item);
@@ -12878,7 +13033,7 @@ function moveTypeScriptConfig(root, file, before, target, to, name) {
12878
13033
  const fields = [];
12879
13034
  let config;
12880
13035
  try {
12881
- config = record$2(parse$2(before));
13036
+ config = record$3(parse$2(before));
12882
13037
  } catch {
12883
13038
  tasks.push({
12884
13039
  path: file,
@@ -12921,9 +13076,9 @@ function moveTypeScriptConfig(root, file, before, target, to, name) {
12921
13076
  update(config, key, "");
12922
13077
  }
12923
13078
  if (Array.isArray(config["references"])) {
12924
- for (const [index, reference] of config["references"].entries()) if (record$2(reference)) update(reference, "path", `references.${index}.`);
13079
+ for (const [index, reference] of config["references"].entries()) if (record$3(reference)) update(reference, "path", `references.${index}.`);
12925
13080
  }
12926
- const options = record$2(config["compilerOptions"]);
13081
+ const options = record$3(config["compilerOptions"]);
12927
13082
  if (options) {
12928
13083
  const base = path.relative(root, path.resolve(root, directory, typeof options["baseUrl"] === "string" ? options["baseUrl"] : "."));
12929
13084
  const nextBase = movedPath(base, target.id, to);
@@ -12935,7 +13090,7 @@ function moveTypeScriptConfig(root, file, before, target, to, name) {
12935
13090
  "declarationDir",
12936
13091
  "typeRoots"
12937
13092
  ]) update(options, key, "compilerOptions.");
12938
- const aliases = record$2(options["paths"]);
13093
+ const aliases = record$3(options["paths"]);
12939
13094
  if (aliases && config["extends"] && typeof options["baseUrl"] !== "string") tasks.push({
12940
13095
  path: file,
12941
13096
  line: 1,
@@ -13100,7 +13255,7 @@ async function planWorkspaceMove(cwd, options) {
13100
13255
  code: "nested_repository",
13101
13256
  paths: inventory.repositories
13102
13257
  });
13103
- const diagnostics = await relevantDiagnostics(graph, target, record$2(YAML.parse(contents.get("pnpm-workspace.yaml"))) ?? {});
13258
+ const diagnostics = await relevantDiagnostics(graph, target, record$3(YAML.parse(contents.get("pnpm-workspace.yaml"))) ?? {});
13104
13259
  if (diagnostics.length) blockers.push({
13105
13260
  code: "graph_incomplete",
13106
13261
  paths: [...new Set(diagnostics.flatMap((item) => item.source ? [item.source] : item.candidates))].sort()
@@ -13170,7 +13325,7 @@ async function planWorkspaceMove(cwd, options) {
13170
13325
  //#endregion
13171
13326
  //#region src/commands/workspace/move/verify.ts
13172
13327
  function validateMovePlan(plan) {
13173
- if (!record$2(plan) || plan.schemaVersion !== 1 || plan.kind !== "workspace-move" || typeof plan.workspaceDir !== "string" || !record$2(plan.selection) || !record$2(plan.target) || !record$2(plan.destination) || typeof plan.target.id !== "string" || typeof plan.destination.id !== "string" || plan.selection.target !== `./${plan.target.id}` || plan.selection.to !== plan.destination.id || plan.selection.name !== plan.destination.name || typeof plan.canApply !== "boolean" || !Array.isArray(plan.blockers) || !Array.isArray(plan.inputs) || !Array.isArray(plan.files) || !Array.isArray(plan.inventory) || !Array.isArray(plan.workspaces) || plan.inputs.some((item) => !record$2(item) || typeof item.path !== "string" || !/^[a-f\d]{64}$/u.test(item.hash)) || plan.files.some((item) => !record$2(item) || typeof item.path !== "string" || typeof item.before !== "string" || typeof item.after !== "string" || item.beforeHash !== hash$1(item.before) || item.afterHash !== hash$1(item.after) || !plan.inputs.some((input) => input.path === item.path && input.hash === item.beforeHash)) || new Set(plan.inputs.map((item) => item.path)).size !== plan.inputs.length || new Set(plan.files.map((item) => item.path)).size !== plan.files.length || !record$2(plan.templateInstances) || plan.templateInstances.from !== plan.target.id || plan.templateInstances.to !== plan.destination.id || !/^[a-f\d]{64}$/u.test(plan.templateInstances.beforeHash) || !/^[a-f\d]{64}$/u.test(plan.templateInstances.afterHash) || !Array.isArray(plan.templateInstances.relocations) || plan.templateInstances.relocations.some((item) => !record$2(item) || !/^[a-f\d]{24}$/u.test(item.id) || typeof item.from !== "string" || item.to !== movedPath(item.from, plan.target.id, plan.destination.id))) throw new Error("Invalid workspace move plan.");
13328
+ if (!record$3(plan) || plan.schemaVersion !== 1 || plan.kind !== "workspace-move" || typeof plan.workspaceDir !== "string" || !record$3(plan.selection) || !record$3(plan.target) || !record$3(plan.destination) || typeof plan.target.id !== "string" || typeof plan.destination.id !== "string" || plan.selection.target !== `./${plan.target.id}` || plan.selection.to !== plan.destination.id || plan.selection.name !== plan.destination.name || typeof plan.canApply !== "boolean" || !Array.isArray(plan.blockers) || !Array.isArray(plan.inputs) || !Array.isArray(plan.files) || !Array.isArray(plan.inventory) || !Array.isArray(plan.workspaces) || plan.inputs.some((item) => !record$3(item) || typeof item.path !== "string" || !/^[a-f\d]{64}$/u.test(item.hash)) || plan.files.some((item) => !record$3(item) || typeof item.path !== "string" || typeof item.before !== "string" || typeof item.after !== "string" || item.beforeHash !== hash$1(item.before) || item.afterHash !== hash$1(item.after) || !plan.inputs.some((input) => input.path === item.path && input.hash === item.beforeHash)) || new Set(plan.inputs.map((item) => item.path)).size !== plan.inputs.length || new Set(plan.files.map((item) => item.path)).size !== plan.files.length || !record$3(plan.templateInstances) || plan.templateInstances.from !== plan.target.id || plan.templateInstances.to !== plan.destination.id || !/^[a-f\d]{64}$/u.test(plan.templateInstances.beforeHash) || !/^[a-f\d]{64}$/u.test(plan.templateInstances.afterHash) || !Array.isArray(plan.templateInstances.relocations) || plan.templateInstances.relocations.some((item) => !record$3(item) || !/^[a-f\d]{24}$/u.test(item.id) || typeof item.from !== "string" || item.to !== movedPath(item.from, plan.target.id, plan.destination.id))) throw new Error("Invalid workspace move plan.");
13174
13329
  }
13175
13330
  async function verifyMovePostState(plan, recoveryPaths = [], requireHead = true) {
13176
13331
  const root = plan.workspaceDir;
@@ -13359,16 +13514,16 @@ function removalManifestChanges(contents, references) {
13359
13514
  const manifest = JSON.parse(before);
13360
13515
  const fields = [];
13361
13516
  for (const edge of edges) {
13362
- const dependencies = record$2(manifest[edge.type]);
13517
+ const dependencies = record$3(manifest[edge.type]);
13363
13518
  if (!dependencies || dependencies[edge.dependency] !== edge.specifier) throw new Error(`Manifest changed while computing removal references: ${file}`);
13364
13519
  delete dependencies[edge.dependency];
13365
13520
  fields.push(`${edge.type}.${edge.dependency}`);
13366
- if (edge.type === "peerDependencies" && Object.hasOwn(record$2(manifest.peerDependenciesMeta) ?? {}, edge.dependency)) {
13521
+ if (edge.type === "peerDependencies" && Object.hasOwn(record$3(manifest.peerDependenciesMeta) ?? {}, edge.dependency)) {
13367
13522
  delete manifest.peerDependenciesMeta[edge.dependency];
13368
13523
  fields.push(`peerDependenciesMeta.${edge.dependency}`);
13369
13524
  }
13370
13525
  }
13371
- for (const name of new Set(edges.map((edge) => edge.dependency))) if (workspaceDependencyTypes.every((section) => !Object.hasOwn(record$2(manifest[section]) ?? {}, name)) && Object.hasOwn(record$2(manifest.dependenciesMeta) ?? {}, name)) {
13526
+ for (const name of new Set(edges.map((edge) => edge.dependency))) if (workspaceDependencyTypes.every((section) => !Object.hasOwn(record$3(manifest[section]) ?? {}, name)) && Object.hasOwn(record$3(manifest.dependenciesMeta) ?? {}, name)) {
13372
13527
  delete manifest.dependenciesMeta[name];
13373
13528
  fields.push(`dependenciesMeta.${name}`);
13374
13529
  }
@@ -13494,7 +13649,7 @@ async function planWorkspaceRemoval(cwd, options) {
13494
13649
  code: "consumers",
13495
13650
  paths: consumers.map((item) => item.id)
13496
13651
  });
13497
- const diagnostics = await relevantDiagnostics(graph, target, record$2(YAML.parse(contents.get("pnpm-workspace.yaml"))) ?? {});
13652
+ const diagnostics = await relevantDiagnostics(graph, target, record$3(YAML.parse(contents.get("pnpm-workspace.yaml"))) ?? {});
13498
13653
  if (diagnostics.length) blockers.push({
13499
13654
  code: "graph_incomplete",
13500
13655
  paths: [...new Set(diagnostics.flatMap((item) => item.source ? [item.source] : item.candidates))].sort()
@@ -13621,7 +13776,7 @@ async function cleanupRemovalRecovery(root, recovery, inventory) {
13621
13776
  //#endregion
13622
13777
  //#region src/commands/workspace/remove/verify.ts
13623
13778
  function validateRemovalPlan(plan) {
13624
- if (!record$2(plan) || plan.schemaVersion !== 1 || plan.kind !== "workspace-removal" || typeof plan.workspaceDir !== "string" || !record$2(plan.selection) || !record$2(plan.target) || typeof plan.target.id !== "string" || typeof plan.selection.target !== "string" || typeof plan.selection.removeReferences !== "boolean" || typeof plan.canApply !== "boolean" || !Array.isArray(plan.inputs) || !Array.isArray(plan.files) || !Array.isArray(plan.inventory) || !Array.isArray(plan.workspaces) || !Array.isArray(plan.blockers) || !record$2(plan.review) || !Array.isArray(plan.nextSteps) || plan.nextSteps.some((step) => typeof step !== "string") || plan.inputs.some((item) => !record$2(item) || typeof item.path !== "string" || typeof item.hash !== "string") || plan.files.some((item) => !record$2(item) || typeof item.path !== "string" || typeof item.before !== "string" || typeof item.after !== "string" || item.beforeHash !== hash$1(item.before) || item.afterHash !== hash$1(item.after) || !plan.inputs.some((input) => input.path === item.path && input.hash === item.beforeHash)) || plan.workspaces.some((item) => typeof item !== "string") || !plan.workspaces.includes(plan.target.id) || plan.selection.target !== `./${plan.target.id}` || plan.review.scope !== "git-tracked-text-literal-matches" || !Array.isArray(plan.review.scanned) || !Array.isArray(plan.review.matches) || !Array.isArray(plan.review.skipped) || new Set(plan.inputs.map((item) => item.path)).size !== plan.inputs.length || new Set(plan.files.map((item) => item.path)).size !== plan.files.length) throw new Error("Invalid workspace removal plan.");
13779
+ if (!record$3(plan) || plan.schemaVersion !== 1 || plan.kind !== "workspace-removal" || typeof plan.workspaceDir !== "string" || !record$3(plan.selection) || !record$3(plan.target) || typeof plan.target.id !== "string" || typeof plan.selection.target !== "string" || typeof plan.selection.removeReferences !== "boolean" || typeof plan.canApply !== "boolean" || !Array.isArray(plan.inputs) || !Array.isArray(plan.files) || !Array.isArray(plan.inventory) || !Array.isArray(plan.workspaces) || !Array.isArray(plan.blockers) || !record$3(plan.review) || !Array.isArray(plan.nextSteps) || plan.nextSteps.some((step) => typeof step !== "string") || plan.inputs.some((item) => !record$3(item) || typeof item.path !== "string" || typeof item.hash !== "string") || plan.files.some((item) => !record$3(item) || typeof item.path !== "string" || typeof item.before !== "string" || typeof item.after !== "string" || item.beforeHash !== hash$1(item.before) || item.afterHash !== hash$1(item.after) || !plan.inputs.some((input) => input.path === item.path && input.hash === item.beforeHash)) || plan.workspaces.some((item) => typeof item !== "string") || !plan.workspaces.includes(plan.target.id) || plan.selection.target !== `./${plan.target.id}` || plan.review.scope !== "git-tracked-text-literal-matches" || !Array.isArray(plan.review.scanned) || !Array.isArray(plan.review.matches) || !Array.isArray(plan.review.skipped) || new Set(plan.inputs.map((item) => item.path)).size !== plan.inputs.length || new Set(plan.files.map((item) => item.path)).size !== plan.files.length) throw new Error("Invalid workspace removal plan.");
13625
13780
  }
13626
13781
  async function verifyRemovalPostState(plan, requireHead = true) {
13627
13782
  const root = plan.workspaceDir;
@@ -13738,6 +13893,7 @@ var commands_exports = /* @__PURE__ */ __exportAll({
13738
13893
  applyWorkspaceArtifactPlan: () => applyWorkspaceArtifactPlan,
13739
13894
  applyWorkspaceMovePlan: () => applyWorkspaceMovePlan,
13740
13895
  applyWorkspaceRemovalPlan: () => applyWorkspaceRemovalPlan,
13896
+ auditReleaseOidc: () => auditReleaseOidc,
13741
13897
  checkCatalogs: () => checkCatalogs,
13742
13898
  checkDependencies: () => checkDependencies,
13743
13899
  checkDependencyAdmission: () => checkDependencyAdmission,
@@ -13846,4 +14002,4 @@ var commands_exports = /* @__PURE__ */ __exportAll({
13846
14002
  verifyStagedTypecheck: () => verifyStagedTypecheck
13847
14003
  });
13848
14004
  //#endregion
13849
- export { GitHubApiError as $, resolveAffectedCheckMatrix as A, updateIssueTemplateConfig as At, syncSkills as B, generateAgenticTemplates as Bt, applyOrganizationPresetAssets as C, getCreateChoices as Ct, applyInstallSecurityPreset as D, createTemplateCatalog as Dt, planDevContainer as E, resolveRemoteTemplateSource as Et, upgradeMonorepo as F, cleanProjects as Ft, prepareStable as G, createReleasePullRequest as H, formatUpgradePlan as I, verifyPrePush as It, reconcileRelease as J, publishStable as K, checkTemplates as L, createTimestampFolderName as Lt, applyPublicApiUpdate as M, explainMonorepoConfig as Mt, planPublicApiUpdate as N, sanitizeConfigReport as Nt, planInstallSecurityPreset as O, resolveTemplateCatalog as Ot, formatPublicApiReport as P, validateConfigFile as Pt, GitHubClient as Q, getSkillTargetPaths as R, defaultAgenticBaseDir as Rt, detectMaintenanceVersionChange as S, resolveCreateNewProjectPlan as St, applyDevContainerPlan as T, templateMap as Tt, recoverUnpublished as U, repairReleaseNotes as V, loadAgenticTasks as Vt, releaseCi as W, exitPrerelease as X, enterPrerelease as Y, releasePrerelease as Z, applyProjectReferencesPlan as _, resolveReleaseBranches as _t, planWorkspaceMove as a, initTooling as at, getMaintenanceWorkflow as b, createNewProject as bt, applyToolingCapability as c, createContext as ct, planTemplateValidation as d, collectEnvSnapshot as dt, parsePublishSummary as et, releaseSnapshot as f, collectEnvSupportBundle as ft, syncProjectReferences as g, planUpgrade as gt, checkProjectReferences as h, planDoctorFix as ht, applyWorkspaceMovePlan as i, initMetadata as it, checkPublicApi as j, inspectMonorepoConfig as jt, checkPeerDependencies as k, loadTemplateCatalogContext as kt, planToolingCapability as l, collectEnvInfo as lt, createReleasePlan as m, applyDoctorFixPlan as mt, applyWorkspaceRemovalPlan as n, setVscodeBinaryMirror as nt, applyWorkspaceArtifactPlan as o, normalizeInitToolingTargets as ot, createSnapshotPlan as p, runDoctor as pt, releaseStable as q, planWorkspaceRemoval as r, init as rt, planWorkspaceArtifact as s, initToolingTargets as st, commands_exports as t, renderReleasePullRequest as tt, validateTemplate as u, collectEnvPaths as ut, planProjectReferences as v, applyUpgradePlan as vt, planOrganizationPresetAssets as w, getTemplateMap as wt, prepareMaintenanceUpgrade as x, defaultTemplate as xt, checkPackages as y, applyCreateNewProjectPlan as yt, skillTargets as z, generateAgenticTemplate as zt };
14005
+ export { GitHubClient as $, resolveAffectedCheckMatrix as A, resolveTemplateCatalog as At, syncSkills as B, defaultAgenticBaseDir as Bt, applyOrganizationPresetAssets as C, defaultTemplate as Ct, applyInstallSecurityPreset as D, templateMap as Dt, planDevContainer as E, getTemplateMap as Et, upgradeMonorepo as F, sanitizeConfigReport as Ft, prepareStable as G, createReleasePullRequest as H, generateAgenticTemplates as Ht, formatUpgradePlan as I, validateConfigFile as It, reconcileRelease as J, publishStable as K, checkTemplates as L, cleanProjects as Lt, applyPublicApiUpdate as M, updateIssueTemplateConfig as Mt, planPublicApiUpdate as N, inspectMonorepoConfig as Nt, planInstallSecurityPreset as O, resolveRemoteTemplateSource as Ot, formatPublicApiReport as P, explainMonorepoConfig as Pt, auditReleaseOidc as Q, getSkillTargetPaths as R, verifyPrePush as Rt, detectMaintenanceVersionChange as S, createNewProject as St, applyDevContainerPlan as T, getCreateChoices as Tt, recoverUnpublished as U, loadAgenticTasks as Ut, repairReleaseNotes as V, generateAgenticTemplate as Vt, releaseCi as W, exitPrerelease as X, enterPrerelease as Y, releasePrerelease as Z, applyProjectReferencesPlan as _, planDoctorFix as _t, planWorkspaceMove as a, init as at, getMaintenanceWorkflow as b, applyUpgradePlan as bt, applyToolingCapability as c, normalizeInitToolingTargets as ct, planTemplateValidation as d, collectEnvInfo as dt, GitHubApiError as et, releaseSnapshot as f, collectEnvPaths as ft, syncProjectReferences as g, applyDoctorFixPlan as gt, checkProjectReferences as h, runDoctor as ht, applyWorkspaceMovePlan as i, setVscodeBinaryMirror as it, checkPublicApi as j, loadTemplateCatalogContext as jt, checkPeerDependencies as k, createTemplateCatalog as kt, planToolingCapability as l, initToolingTargets as lt, createReleasePlan as m, collectEnvSupportBundle as mt, applyWorkspaceRemovalPlan as n, resolveReleaseMode as nt, applyWorkspaceArtifactPlan as o, initMetadata as ot, createSnapshotPlan as p, collectEnvSnapshot as pt, releaseStable as q, planWorkspaceRemoval as r, renderReleasePullRequest as rt, planWorkspaceArtifact as s, initTooling as st, commands_exports as t, parsePublishSummary as tt, validateTemplate as u, createContext as ut, planProjectReferences as v, planUpgrade as vt, planOrganizationPresetAssets as w, resolveCreateNewProjectPlan as wt, prepareMaintenanceUpgrade as x, applyCreateNewProjectPlan as xt, checkPackages as y, resolveReleaseBranches as yt, skillTargets as z, createTimestampFolderName as zt };