@icebreakers/monorepo 5.7.0 → 5.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{baseline-DPfotf4y.mjs → baseline-CRCTiMNM.mjs} +1 -1
- package/dist/{catalog-CDEyc1uA.mjs → catalog-D0Sk385O.mjs} +3 -3
- package/dist/cli.mjs +62 -62
- package/dist/{commands-TS8ABFdP.mjs → commands-Bj0sX3R9.mjs} +43 -14
- package/dist/{config-C38c_Q8L.mjs → config-Dg-voj8q.mjs} +3 -3
- package/dist/{create-flow-CCr2hfSY.mjs → create-flow-BWFWDWR4.mjs} +3 -3
- package/dist/{deps-CUdI2DaB.mjs → deps-BbykICqB.mjs} +3 -3
- package/dist/{execute-PX1hT0qv.mjs → execute-D2GlX018.mjs} +2 -2
- package/dist/{execute-Vi4qHe-D.mjs → execute-DI1mgVLv.mjs} +2 -2
- package/dist/{format-DZ7L34rf.mjs → format-Dbs0fupU.mjs} +1 -1
- package/dist/index.mjs +9 -9
- package/dist/{inputs-_xIVONmB.mjs → inputs-BKtLcrQ9.mjs} +1 -1
- package/dist/{npm-B25nrSyz.mjs → npm-Bh6HBy5V.mjs} +1 -1
- package/dist/{plan-B5aE_WNF.mjs → plan-CxySMaLN.mjs} +1 -1
- package/dist/{run-Lu7y1bNf.mjs → run-D_bceMqf.mjs} +4 -4
- package/dist/{save-CdCf630Z.mjs → save-DzIWKs0T.mjs} +3 -3
- package/dist/{scan-4nboHNXP.mjs → scan-B_-E6BWh.mjs} +2 -2
- package/dist/{template-drift-BBhnrHY1.mjs → template-drift-D0hKxixr.mjs} +3 -3
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-DAhY8EpG.mjs → transaction-DFam8_dp.mjs} +2 -2
- package/dist/{tsconfig-CGntrzBM.mjs → tsconfig-BZ6E1fBA.mjs} +1 -1
- package/dist/{vitest-DkGh4Ygo.mjs → vitest-XbNmiloj.mjs} +1 -1
- package/dist/{workspace-tasks-CnB8kkS0.mjs → workspace-tasks-C5W-QwWj.mjs} +5 -5
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as record, rt as hash } from "./workspace-tasks-
|
|
1
|
+
import { at as record, rt as hash } from "./workspace-tasks-C5W-QwWj.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-
|
|
3
|
-
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, r as parseSpecifier, t as scanDependencies } from "./scan-
|
|
4
|
-
import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-
|
|
2
|
+
import { Ht as clearWorkspaceCache, at as record, rt as hash, st as updateManifest } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
3
|
+
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, r as parseSpecifier, t as scanDependencies } from "./scan-B_-E6BWh.mjs";
|
|
4
|
+
import { i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-DFam8_dp.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, 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-
|
|
2
|
-
import { f as logger } from "./execute-
|
|
3
|
-
import { C as applyOrganizationPresetAssets, D as applyInstallSecurityPreset, Dt as createTemplateCatalog, Et as resolveRemoteTemplateSource, F as upgradeMonorepo, I as formatUpgradePlan, M as applyPublicApiUpdate, Mt as explainMonorepoConfig, N as planPublicApiUpdate, Nt as sanitizeConfigReport, O as planInstallSecurityPreset, Ot as resolveTemplateCatalog, P as formatPublicApiReport, Pt as validateConfigFile, _ as applyProjectReferencesPlan, a as planWorkspaceMove, b as getMaintenanceWorkflow, c as applyToolingCapability, d as planTemplateValidation, f as releaseSnapshot, g as syncProjectReferences, gt as planUpgrade, h as checkProjectReferences, i as applyWorkspaceMovePlan, j as checkPublicApi, k as checkPeerDependencies, kt as loadTemplateCatalogContext, l as planToolingCapability, m as createReleasePlan, n as applyWorkspaceRemovalPlan, o as applyWorkspaceArtifactPlan, r as planWorkspaceRemoval, s as planWorkspaceArtifact, st as initToolingTargets, tt as renderReleasePullRequest, u as validateTemplate, v as planProjectReferences, vt as applyUpgradePlan, w as planOrganizationPresetAssets, x as prepareMaintenanceUpgrade, y as checkPackages } from "./commands-
|
|
4
|
-
import { S as canonicalDirectory, W as splitConfigPath, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, j as ConfigValidationError, k as version, p as resolveCommandConfig } from "./tsconfig-
|
|
5
|
-
import { s as resolveCommandValues } from "./scan-
|
|
6
|
-
import { S as checkDependencyAdmission, f as inspectInstallSecurity, x as checkWorkspaceBoundaries } from "./template-drift-
|
|
1
|
+
import { Ct as message, Et as supportedLocales, J as getWorkspaceGraph, Q as whyWorkspaceDependency, St as localize, 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-C5W-QwWj.mjs";
|
|
2
|
+
import { f as logger } from "./execute-DI1mgVLv.mjs";
|
|
3
|
+
import { C as applyOrganizationPresetAssets, D as applyInstallSecurityPreset, Dt as createTemplateCatalog, Et as resolveRemoteTemplateSource, F as upgradeMonorepo, I as formatUpgradePlan, M as applyPublicApiUpdate, Mt as explainMonorepoConfig, N as planPublicApiUpdate, Nt as sanitizeConfigReport, O as planInstallSecurityPreset, Ot as resolveTemplateCatalog, P as formatPublicApiReport, Pt as validateConfigFile, _ as applyProjectReferencesPlan, a as planWorkspaceMove, b as getMaintenanceWorkflow, c as applyToolingCapability, d as planTemplateValidation, f as releaseSnapshot, g as syncProjectReferences, gt as planUpgrade, h as checkProjectReferences, i as applyWorkspaceMovePlan, j as checkPublicApi, k as checkPeerDependencies, kt as loadTemplateCatalogContext, l as planToolingCapability, m as createReleasePlan, n as applyWorkspaceRemovalPlan, o as applyWorkspaceArtifactPlan, r as planWorkspaceRemoval, s as planWorkspaceArtifact, st as initToolingTargets, tt as renderReleasePullRequest, u as validateTemplate, v as planProjectReferences, vt as applyUpgradePlan, w as planOrganizationPresetAssets, x as prepareMaintenanceUpgrade, y as checkPackages } from "./commands-Bj0sX3R9.mjs";
|
|
4
|
+
import { S as canonicalDirectory, W as splitConfigPath, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, j as ConfigValidationError, k as version, p as resolveCommandConfig } from "./tsconfig-BZ6E1fBA.mjs";
|
|
5
|
+
import { s as resolveCommandValues } from "./scan-B_-E6BWh.mjs";
|
|
6
|
+
import { S as checkDependencyAdmission, f as inspectInstallSecurity, x as checkWorkspaceBoundaries } from "./template-drift-D0hKxixr.mjs";
|
|
7
7
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
8
8
|
import path from "pathe";
|
|
9
9
|
import process from "node:process";
|
|
@@ -43,8 +43,8 @@ function reportCliFailure(error) {
|
|
|
43
43
|
async function handleAiPromptCreate(cwd, opts) {
|
|
44
44
|
const [{ input }, { createTimestampFolderName, defaultAgenticBaseDir, generateAgenticTemplate, generateAgenticTemplates, loadAgenticTasks }, { resolveCommandConfig }] = await Promise.all([
|
|
45
45
|
import("@icebreakers/monorepo-templates"),
|
|
46
|
-
import("./commands-
|
|
47
|
-
import("./tsconfig-
|
|
46
|
+
import("./commands-Bj0sX3R9.mjs").then((n) => n.t),
|
|
47
|
+
import("./tsconfig-BZ6E1fBA.mjs").then((n) => n.c)
|
|
48
48
|
]);
|
|
49
49
|
const aiConfig = await resolveCommandConfig("ai", cwd);
|
|
50
50
|
const resolved = resolveCommandValues("ai", aiConfig, {
|
|
@@ -233,7 +233,7 @@ function registerConfigCommands(program, cwd) {
|
|
|
233
233
|
if (!report.valid) throw new ConfigValidationError(report.diagnostics);
|
|
234
234
|
await emitConfigInspection(report, opts, cwd, report);
|
|
235
235
|
} else {
|
|
236
|
-
const { inspectMonorepoConfig } = await import("./commands-
|
|
236
|
+
const { inspectMonorepoConfig } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
237
237
|
await emitConfigInspection(await inspectMonorepoConfig(cwd), opts, cwd);
|
|
238
238
|
}
|
|
239
239
|
} catch (error) {
|
|
@@ -286,7 +286,7 @@ const output$2 = (value) => process.stdout.write(`${JSON.stringify(value, null,
|
|
|
286
286
|
function registerCatalogCommands(deps, cwd) {
|
|
287
287
|
const catalog = deps.command("catalog").description(localize("Inspect pnpm catalogs and review coordinated migrations", "巡检 pnpm catalog 并审阅联动迁移"));
|
|
288
288
|
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) => {
|
|
289
|
-
const { checkCatalogs } = await import("./catalog-
|
|
289
|
+
const { checkCatalogs } = await import("./catalog-D0Sk385O.mjs").then((n) => n.t);
|
|
290
290
|
const report = await checkCatalogs(cwd, options);
|
|
291
291
|
if (options.json) output$2(report);
|
|
292
292
|
else {
|
|
@@ -296,7 +296,7 @@ function registerCatalogCommands(deps, cwd) {
|
|
|
296
296
|
if (report.summary.missing || report.summary.direct) process.exitCode = 1;
|
|
297
297
|
});
|
|
298
298
|
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) => {
|
|
299
|
-
const { planCatalogMigration } = await import("./catalog-
|
|
299
|
+
const { planCatalogMigration } = await import("./catalog-D0Sk385O.mjs").then((n) => n.t);
|
|
300
300
|
const plan = await planCatalogMigration(cwd, {
|
|
301
301
|
dependency,
|
|
302
302
|
...options
|
|
@@ -308,7 +308,7 @@ function registerCatalogCommands(deps, cwd) {
|
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
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) => {
|
|
311
|
-
const { applyCatalogMigrationPlan } = await import("./catalog-
|
|
311
|
+
const { applyCatalogMigrationPlan } = await import("./catalog-D0Sk385O.mjs").then((n) => n.t);
|
|
312
312
|
const result = await applyCatalogMigrationPlan(cwd, JSON.parse(await readFile(file, "utf8")));
|
|
313
313
|
if (options.json) output$2(result);
|
|
314
314
|
else process.stdout.write(`${result.status}: ${result.changed.join(", ")}\n${result.nextSteps.join("\n")}\n`);
|
|
@@ -335,7 +335,7 @@ function registerDepsCommands(program, cwd) {
|
|
|
335
335
|
registerDependencyAdmission(deps, cwd);
|
|
336
336
|
registerCatalogCommands(deps, cwd);
|
|
337
337
|
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) => {
|
|
338
|
-
const { checkDependencies } = await import("./deps-
|
|
338
|
+
const { checkDependencies } = await import("./deps-BbykICqB.mjs").then((n) => n.n);
|
|
339
339
|
const report = await checkDependencies(cwd);
|
|
340
340
|
if (options.json) output$1(report);
|
|
341
341
|
else for (const group of report.groups) {
|
|
@@ -345,7 +345,7 @@ function registerDepsCommands(program, cwd) {
|
|
|
345
345
|
if (report.summary.equivalent + report.summary.compatible + report.summary.conflict > 0) process.exitCode = 1;
|
|
346
346
|
});
|
|
347
347
|
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) => {
|
|
348
|
-
const { planDependencyFix } = await import("./deps-
|
|
348
|
+
const { planDependencyFix } = await import("./deps-BbykICqB.mjs").then((n) => n.n);
|
|
349
349
|
const plan = await planDependencyFix(cwd, {
|
|
350
350
|
dependency,
|
|
351
351
|
section: options.section,
|
|
@@ -360,7 +360,7 @@ function registerDepsCommands(program, cwd) {
|
|
|
360
360
|
process.stdout.write(localize("Preview only. Save --json output, review it, then run deps apply <plan.json>.\n", "仅预览。保存并审阅 --json 输出,然后执行 deps apply <plan.json>。\n"));
|
|
361
361
|
});
|
|
362
362
|
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) => {
|
|
363
|
-
const { applyDependencyFixPlan } = await import("./deps-
|
|
363
|
+
const { applyDependencyFixPlan } = await import("./deps-BbykICqB.mjs").then((n) => n.n);
|
|
364
364
|
const result = await applyDependencyFixPlan(cwd, JSON.parse(await readFile(file, "utf8")));
|
|
365
365
|
if (options.json) output$1(result);
|
|
366
366
|
else {
|
|
@@ -374,8 +374,8 @@ function registerDepsCommands(program, cwd) {
|
|
|
374
374
|
function registerEnvironmentCheck(command, cwd) {
|
|
375
375
|
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) => {
|
|
376
376
|
if (options.json && options.markdown) throw new Error("--json and --markdown cannot be combined");
|
|
377
|
-
const { checkEnvironmentCache } = await import("./workspace-tasks-
|
|
378
|
-
const { formatEnvironmentCache } = await import("./workspace-tasks-
|
|
377
|
+
const { checkEnvironmentCache } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.F);
|
|
378
|
+
const { formatEnvironmentCache } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.N);
|
|
379
379
|
const report = await checkEnvironmentCache(cwd, {
|
|
380
380
|
...tasks.length ? { tasks } : {},
|
|
381
381
|
...action.getOptionValueSource("frameworkInference") === "cli" ? { frameworkInference: options.frameworkInference } : {}
|
|
@@ -701,23 +701,23 @@ function registerEnvCommands(program, cwd) {
|
|
|
701
701
|
const envCommand = program.command("env").alias("e").description(localize("Environment and support commands", "环境命令"));
|
|
702
702
|
registerEnvironmentCheck(envCommand, cwd);
|
|
703
703
|
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) => {
|
|
704
|
-
const { collectEnvInfo } = await import("./commands-
|
|
704
|
+
const { collectEnvInfo } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
705
705
|
await emitEnvInfo(await collectEnvInfo(cwd), opts, cwd);
|
|
706
706
|
});
|
|
707
707
|
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) => {
|
|
708
|
-
const { collectEnvSnapshot } = await import("./commands-
|
|
708
|
+
const { collectEnvSnapshot } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
709
709
|
await emitEnvSnapshot(await collectEnvSnapshot(cwd), opts, cwd);
|
|
710
710
|
});
|
|
711
711
|
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) => {
|
|
712
|
-
const { collectEnvPaths } = await import("./commands-
|
|
712
|
+
const { collectEnvPaths } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
713
713
|
await emitEnvPaths(await collectEnvPaths(cwd), opts, cwd);
|
|
714
714
|
});
|
|
715
715
|
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) => {
|
|
716
|
-
const { collectEnvSupportBundle } = await import("./commands-
|
|
716
|
+
const { collectEnvSupportBundle } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
717
717
|
await emitEnvSupportBundle(await collectEnvSupportBundle(cwd), opts, cwd);
|
|
718
718
|
});
|
|
719
719
|
envCommand.command("mirror").description(localize("Configure the VS Code binary mirror", "设置 VS Code binary mirror")).alias("m").action(async () => {
|
|
720
|
-
const { setVscodeBinaryMirror } = await import("./commands-
|
|
720
|
+
const { setVscodeBinaryMirror } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
721
721
|
await setVscodeBinaryMirror(cwd);
|
|
722
722
|
logger.success(localize("Environment mirror finished.", "环境镜像完成。"));
|
|
723
723
|
});
|
|
@@ -727,7 +727,7 @@ function registerEnvCommands(program, cwd) {
|
|
|
727
727
|
function registerGenerateCommand(program, cwd) {
|
|
728
728
|
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) => {
|
|
729
729
|
try {
|
|
730
|
-
const { applyGeneratePlan, planGenerate } = await import("./workspace-tasks-
|
|
730
|
+
const { applyGeneratePlan, planGenerate } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.v);
|
|
731
731
|
const extra = options.params ? JSON.parse(options.params) : {};
|
|
732
732
|
if (!extra || typeof extra !== "object" || Array.isArray(extra)) throw new Error("--params must contain a JSON object.");
|
|
733
733
|
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.");
|
|
@@ -829,7 +829,7 @@ function registerPackageCommands(program, cwd) {
|
|
|
829
829
|
registerPackageCheckCommand(packageCommand, cwd);
|
|
830
830
|
registerPublicApiCommands(packageCommand, cwd);
|
|
831
831
|
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) => {
|
|
832
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
832
|
+
const { runCreateFlow } = await import("./create-flow-BWFWDWR4.mjs");
|
|
833
833
|
const result = await runCreateFlow(cwd, inputName, {
|
|
834
834
|
...opts.offline !== void 0 ? { offline: opts.offline } : {},
|
|
835
835
|
...opts.cacheDir ? { cacheDir: opts.cacheDir } : {},
|
|
@@ -982,7 +982,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
982
982
|
registerSnapshot(releaseCommand, cwd);
|
|
983
983
|
releaseCommand.command("ci").description(localize("Prepare, publish, or recover versions in CI", "在 CI 中自动准备、发布和恢复版本")).option("--mode <mode>", localize("auto / prepare / publish / publish-unpublished / reconcile", "auto / prepare / publish / publish-unpublished / reconcile"), "auto").option("--package <name>", localize("Package used by publish-unpublished mode", "publish-unpublished 使用的 package")).option("--version <version>", localize("Version used by publish-unpublished mode", "publish-unpublished 使用的版本")).option("--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) => {
|
|
984
984
|
await runReleaseAction(async () => {
|
|
985
|
-
const { releaseCi } = await import("./commands-
|
|
985
|
+
const { releaseCi } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
986
986
|
await releaseCi({
|
|
987
987
|
...await resolveReleaseOptions(cwd),
|
|
988
988
|
...opts.mode ? { mode: opts.mode } : {},
|
|
@@ -996,7 +996,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
996
996
|
});
|
|
997
997
|
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) => {
|
|
998
998
|
await runReleaseAction(async () => {
|
|
999
|
-
const { repairReleaseNotes } = await import("./commands-
|
|
999
|
+
const { repairReleaseNotes } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1000
1000
|
const result = await repairReleaseNotes({
|
|
1001
1001
|
cwd,
|
|
1002
1002
|
...opts.all ? { all: true } : {},
|
|
@@ -1009,7 +1009,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
1009
1009
|
});
|
|
1010
1010
|
const stableCommand = releaseCommand.command("stable").description(localize("Run a stable release from the configured release line", "在配置的正式发布线执行发布")).action(async () => {
|
|
1011
1011
|
await runReleaseAction(async () => {
|
|
1012
|
-
const { releaseCi } = await import("./commands-
|
|
1012
|
+
const { releaseCi } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1013
1013
|
await releaseCi({
|
|
1014
1014
|
...await resolveReleaseOptions(cwd),
|
|
1015
1015
|
mode: "publish"
|
|
@@ -1019,7 +1019,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
stableCommand.command("prepare").description(localize("Consume pnpm change intents and prepare a Release PR", "消费 pnpm change intents 并准备 Release PR")).action(async () => {
|
|
1021
1021
|
await runReleaseAction(async () => {
|
|
1022
|
-
const { releaseCi } = await import("./commands-
|
|
1022
|
+
const { releaseCi } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1023
1023
|
await releaseCi({
|
|
1024
1024
|
...await resolveReleaseOptions(cwd),
|
|
1025
1025
|
mode: "prepare"
|
|
@@ -1029,7 +1029,7 @@ function registerReleaseCommands(program, cwd) {
|
|
|
1029
1029
|
});
|
|
1030
1030
|
stableCommand.command("publish").description(localize("Publish prepared versions from the configured release line", "发布所选发布线已经准备的包版本")).action(async () => {
|
|
1031
1031
|
await runReleaseAction(async () => {
|
|
1032
|
-
const { releaseCi } = await import("./commands-
|
|
1032
|
+
const { releaseCi } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1033
1033
|
await releaseCi({
|
|
1034
1034
|
...await resolveReleaseOptions(cwd),
|
|
1035
1035
|
mode: "publish"
|
|
@@ -1040,21 +1040,21 @@ function registerReleaseCommands(program, cwd) {
|
|
|
1040
1040
|
const preCommand = releaseCommand.command("pre").description(localize("Run or manage prereleases", "执行或管理 prerelease 发布"));
|
|
1041
1041
|
preCommand.command("publish").alias("run").description(localize("Publish from a configured prerelease branch", "在已配置的预发布分支发布 prerelease")).action(async () => {
|
|
1042
1042
|
await runReleaseAction(async () => {
|
|
1043
|
-
const { releaseCi } = await import("./commands-
|
|
1043
|
+
const { releaseCi } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1044
1044
|
await releaseCi(await resolveReleaseOptions(cwd));
|
|
1045
1045
|
logger.success(localize("Prerelease finished.", "预发布完成。"));
|
|
1046
1046
|
});
|
|
1047
1047
|
});
|
|
1048
1048
|
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) => {
|
|
1049
1049
|
await runReleaseAction(async () => {
|
|
1050
|
-
const { enterPrerelease } = await import("./commands-
|
|
1050
|
+
const { enterPrerelease } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1051
1051
|
await enterPrerelease(tag, { cwd });
|
|
1052
1052
|
logger.success(localize(`Entered ${tag} prerelease mode.`, `已进入 ${tag} 预发布模式。`));
|
|
1053
1053
|
});
|
|
1054
1054
|
});
|
|
1055
1055
|
preCommand.command("exit").description(localize("Exit the pnpm prerelease lane", "退出 pnpm prerelease lane")).action(async () => {
|
|
1056
1056
|
await runReleaseAction(async () => {
|
|
1057
|
-
const { exitPrerelease } = await import("./commands-
|
|
1057
|
+
const { exitPrerelease } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1058
1058
|
const target = await exitPrerelease({ cwd });
|
|
1059
1059
|
logger.success(localize(`Exited prerelease mode. Stable target: ${target.branch}.`, `已退出预发布模式,正式目标分支:${target.branch}。`));
|
|
1060
1060
|
});
|
|
@@ -1071,7 +1071,7 @@ const skillTargets = [
|
|
|
1071
1071
|
];
|
|
1072
1072
|
function registerSkillsCommands(program, cwd) {
|
|
1073
1073
|
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) => {
|
|
1074
|
-
const { syncSkills } = await import("./commands-
|
|
1074
|
+
const { syncSkills } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1075
1075
|
const selected = /* @__PURE__ */ new Set();
|
|
1076
1076
|
if (opts.all) for (const target of skillTargets) selected.add(target);
|
|
1077
1077
|
else {
|
|
@@ -1107,7 +1107,7 @@ async function emitTemplateReport(value, options) {
|
|
|
1107
1107
|
//#region src/cli/commands/template-instances/drift.ts
|
|
1108
1108
|
function registerTemplateDriftCommand(templates) {
|
|
1109
1109
|
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) => {
|
|
1110
|
-
const { checkTemplateDrift, formatTemplateDriftReport, hasTemplateDriftIssues } = await import("./template-drift-
|
|
1110
|
+
const { checkTemplateDrift, formatTemplateDriftReport, hasTemplateDriftIssues } = await import("./template-drift-D0hKxixr.mjs").then((n) => n.n);
|
|
1111
1111
|
const merged = {
|
|
1112
1112
|
...command.optsWithGlobals(),
|
|
1113
1113
|
...options
|
|
@@ -1126,7 +1126,7 @@ function registerTemplateDriftCommand(templates) {
|
|
|
1126
1126
|
//#region src/cli/commands/template-instances/upgrade.ts
|
|
1127
1127
|
function registerTemplateUpgradeCommands(templates) {
|
|
1128
1128
|
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) => {
|
|
1129
|
-
const { planTemplateUpgrade, applyTemplateUpgradePlan } = await import("./workspace-tasks-
|
|
1129
|
+
const { planTemplateUpgrade, applyTemplateUpgradePlan } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1130
1130
|
const plan = await planTemplateUpgrade({
|
|
1131
1131
|
cwd: await templateWorkspaceRoot(),
|
|
1132
1132
|
instance,
|
|
@@ -1140,7 +1140,7 @@ function registerTemplateUpgradeCommands(templates) {
|
|
|
1140
1140
|
});
|
|
1141
1141
|
});
|
|
1142
1142
|
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) => {
|
|
1143
|
-
const { recoverTemplateUpgrade } = await import("./workspace-tasks-
|
|
1143
|
+
const { recoverTemplateUpgrade } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1144
1144
|
await emitTemplateReport(await recoverTemplateUpgrade(await templateWorkspaceRoot(), instance, options.apply), {
|
|
1145
1145
|
...command.optsWithGlobals(),
|
|
1146
1146
|
...options
|
|
@@ -1153,7 +1153,7 @@ function registerTemplateInstanceCommands(templates) {
|
|
|
1153
1153
|
registerTemplateDriftCommand(templates);
|
|
1154
1154
|
registerTemplateUpgradeCommands(templates);
|
|
1155
1155
|
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) => {
|
|
1156
|
-
const { listTemplateInstances } = await import("./workspace-tasks-
|
|
1156
|
+
const { listTemplateInstances } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1157
1157
|
const instances = await listTemplateInstances(await templateWorkspaceRoot());
|
|
1158
1158
|
const selected = target ? instances.filter((item) => item.instance.id === target || item.instance.target === target) : instances;
|
|
1159
1159
|
if (target && !selected.length) throw new Error(`Unknown template instance: ${target}`);
|
|
@@ -1166,7 +1166,7 @@ function registerTemplateInstanceCommands(templates) {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
});
|
|
1168
1168
|
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) => {
|
|
1169
|
-
const { applyTemplateLinkPlan, planTemplateLink } = await import("./workspace-tasks-
|
|
1169
|
+
const { applyTemplateLinkPlan, planTemplateLink } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1170
1170
|
const plan = await planTemplateLink({
|
|
1171
1171
|
cwd: await templateWorkspaceRoot(),
|
|
1172
1172
|
target,
|
|
@@ -1186,14 +1186,14 @@ function registerTemplateInstanceCommands(templates) {
|
|
|
1186
1186
|
});
|
|
1187
1187
|
});
|
|
1188
1188
|
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) => {
|
|
1189
|
-
const { relocateTemplateInstance } = await import("./workspace-tasks-
|
|
1189
|
+
const { relocateTemplateInstance } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1190
1190
|
await emitTemplateReport(await relocateTemplateInstance(await templateWorkspaceRoot(), instance, target, options.apply), {
|
|
1191
1191
|
...command.optsWithGlobals(),
|
|
1192
1192
|
...options
|
|
1193
1193
|
});
|
|
1194
1194
|
});
|
|
1195
1195
|
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) => {
|
|
1196
|
-
const { rebuildTemplateInstanceBaseline } = await import("./workspace-tasks-
|
|
1196
|
+
const { rebuildTemplateInstanceBaseline } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.d);
|
|
1197
1197
|
await emitTemplateReport({
|
|
1198
1198
|
instance: (await rebuildTemplateInstanceBaseline(await templateWorkspaceRoot(), instance, path.resolve(options.destination), options.original ? "original" : "rendered")).id,
|
|
1199
1199
|
destination: path.resolve(options.destination)
|
|
@@ -1398,7 +1398,7 @@ function registerTemplatesCommands(program) {
|
|
|
1398
1398
|
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) => {
|
|
1399
1399
|
const { isTemplateCategory, suggestTemplateKey, templateCategories } = await import("@icebreakers/monorepo-templates");
|
|
1400
1400
|
if (opts.check) {
|
|
1401
|
-
const { checkTemplates } = await import("./commands-
|
|
1401
|
+
const { checkTemplates } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1402
1402
|
const report = await checkTemplates();
|
|
1403
1403
|
if (opts.json) await emitTemplateOutput(JSON.stringify(report, null, 2), opts);
|
|
1404
1404
|
else await emitTemplateOutput(formatTemplateHealthReport(report, !opts.out), opts);
|
|
@@ -1522,7 +1522,7 @@ function registerCapabilityCommands(toolingCommand, cwd) {
|
|
|
1522
1522
|
function registerDevContainerCommand(command, cwd) {
|
|
1523
1523
|
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) => {
|
|
1524
1524
|
const options = current.optsWithGlobals();
|
|
1525
|
-
const { applyDevContainerPlan, planDevContainer } = await import("./commands-
|
|
1525
|
+
const { applyDevContainerPlan, planDevContainer } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1526
1526
|
if (options.apply) {
|
|
1527
1527
|
if (options.nodeVersion || options.dryRun || options.out) throw new Error("--apply cannot be combined with preview or selection options.");
|
|
1528
1528
|
const filename = path.resolve(cwd, options.apply);
|
|
@@ -1574,7 +1574,7 @@ function registerToolingCommands(program, cwd) {
|
|
|
1574
1574
|
registerDevContainerCommand(toolingCommand, cwd);
|
|
1575
1575
|
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) => {
|
|
1576
1576
|
const normalizedTooling = normalizeToolingTargets(tooling);
|
|
1577
|
-
const { initTooling } = await import("./commands-
|
|
1577
|
+
const { initTooling } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1578
1578
|
await initTooling(cwd, {
|
|
1579
1579
|
...normalizedTooling ? { targets: normalizedTooling } : {},
|
|
1580
1580
|
...opts.all !== void 0 ? { all: opts.all } : {},
|
|
@@ -1598,8 +1598,8 @@ function registerCacheAnalysis(check, cwd) {
|
|
|
1598
1598
|
const markdown = options.markdown || parent["markdown"] === true;
|
|
1599
1599
|
if (json && markdown) throw new Error("--json and --markdown cannot be combined");
|
|
1600
1600
|
const own = command.opts();
|
|
1601
|
-
const { analyzeTurboRuns } = await import("./workspace-tasks-
|
|
1602
|
-
const { formatTurboAnalysis } = await import("./format-
|
|
1601
|
+
const { analyzeTurboRuns } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.G);
|
|
1602
|
+
const { formatTurboAnalysis } = await import("./format-Dbs0fupU.mjs");
|
|
1603
1603
|
const result = await analyzeTurboRuns(path.resolve(cwd, current), {
|
|
1604
1604
|
...previous !== void 0 ? { previous: path.resolve(cwd, previous) } : {},
|
|
1605
1605
|
...own.slowest !== void 0 ? { slowest: Number(own.slowest) } : {}
|
|
@@ -1627,7 +1627,7 @@ function registerKnipCheck(check, cwd) {
|
|
|
1627
1627
|
};
|
|
1628
1628
|
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.");
|
|
1629
1629
|
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.");
|
|
1630
|
-
const { getKnipConfigurationSuggestions, planKnipCheck, runKnipCheck, saveKnipBaseline } = await import("./workspace-tasks-
|
|
1630
|
+
const { getKnipConfigurationSuggestions, planKnipCheck, runKnipCheck, saveKnipBaseline } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.L);
|
|
1631
1631
|
if (opts.recommendConfig) {
|
|
1632
1632
|
process.stdout.write(`${JSON.stringify(await getKnipConfigurationSuggestions(cwd), null, 2)}\n`);
|
|
1633
1633
|
return;
|
|
@@ -1782,7 +1782,7 @@ function registerCheckCommand(program, cwd) {
|
|
|
1782
1782
|
...opts.globalInput ? { globalInputs: opts.globalInput } : {}
|
|
1783
1783
|
};
|
|
1784
1784
|
if (opts.matrix) {
|
|
1785
|
-
const { resolveAffectedCheckMatrix } = await import("./commands-
|
|
1785
|
+
const { resolveAffectedCheckMatrix } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1786
1786
|
const matrix = await resolveAffectedCheckMatrix({
|
|
1787
1787
|
...options,
|
|
1788
1788
|
...opts.shards !== void 0 ? { shards: Number(opts.shards) } : {}
|
|
@@ -1796,19 +1796,19 @@ function registerCheckCommand(program, cwd) {
|
|
|
1796
1796
|
if (opts.dryRun || opts.json || opts.markdown || opts.out) throw new Error("--report cannot be combined with preview options: --dry-run, --json, --markdown, --out");
|
|
1797
1797
|
const format = opts.reportFormat ?? "json";
|
|
1798
1798
|
if (format !== "json" && format !== "markdown") throw new Error("--report-format must be json or markdown");
|
|
1799
|
-
const { runCheckExecution } = await import("./execute-
|
|
1799
|
+
const { runCheckExecution } = await import("./execute-D2GlX018.mjs");
|
|
1800
1800
|
await runCheckExecution(options, opts.report, format, opts.redact);
|
|
1801
1801
|
return;
|
|
1802
1802
|
}
|
|
1803
|
-
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-
|
|
1803
|
+
const { resolveRecommendedCheckPlan, runRecommendedCheck } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1804
1804
|
if (opts.dryRun || opts.json || opts.markdown || opts.out) {
|
|
1805
1805
|
if (opts.affected) {
|
|
1806
|
-
const { resolveAffectedCheckPlan } = await import("./commands-
|
|
1806
|
+
const { resolveAffectedCheckPlan } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1807
1807
|
await emitCheckPlan(await resolveAffectedCheckPlan(options), opts, cwd);
|
|
1808
1808
|
return;
|
|
1809
1809
|
}
|
|
1810
1810
|
if (opts.full) {
|
|
1811
|
-
const { resolveFullWorkspaceCheckPlan } = await import("./commands-
|
|
1811
|
+
const { resolveFullWorkspaceCheckPlan } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1812
1812
|
await emitCheckPlan(await resolveFullWorkspaceCheckPlan(cwd), opts, cwd);
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
@@ -1816,7 +1816,7 @@ function registerCheckCommand(program, cwd) {
|
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (opts.affected) {
|
|
1819
|
-
const { runCheckExecution } = await import("./execute-
|
|
1819
|
+
const { runCheckExecution } = await import("./execute-D2GlX018.mjs");
|
|
1820
1820
|
await runCheckExecution(options);
|
|
1821
1821
|
return;
|
|
1822
1822
|
}
|
|
@@ -1982,7 +1982,7 @@ async function emitDoctorReport(report, opts, cwd) {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
function registerDoctorCommand(program, cwd) {
|
|
1984
1984
|
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) => {
|
|
1985
|
-
const commands = await import("./commands-
|
|
1985
|
+
const commands = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
1986
1986
|
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.");
|
|
1987
1987
|
if (opts.listRules || opts.fix || opts.apply) {
|
|
1988
1988
|
if (opts.markdown || opts.redact) throw new Error("--markdown and --redact apply to diagnostic reports, not rule lists or executable plans.");
|
|
@@ -2051,7 +2051,7 @@ function registerUpgradeCommand(parent, cwd, alias) {
|
|
|
2051
2051
|
//#region src/cli/commands/top-level.ts
|
|
2052
2052
|
function registerTopLevelCommands(program, cwd) {
|
|
2053
2053
|
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) => {
|
|
2054
|
-
const { init } = await import("./commands-
|
|
2054
|
+
const { init } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2055
2055
|
const config = await loadMonorepoConfig(cwd);
|
|
2056
2056
|
const { preset } = resolveCommandValues("init", config.commands?.init, { preset: opts.preset }, { entry: "cli" }).values;
|
|
2057
2057
|
await init(cwd, {
|
|
@@ -2064,7 +2064,7 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
2064
2064
|
logger.info(localize("Next: run `pnpm install` and `pnpm build`.", "下一步:运行 `pnpm install` 和 `pnpm build`。"));
|
|
2065
2065
|
});
|
|
2066
2066
|
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) => {
|
|
2067
|
-
const { runCreateFlow } = await import("./create-flow-
|
|
2067
|
+
const { runCreateFlow } = await import("./create-flow-BWFWDWR4.mjs");
|
|
2068
2068
|
const result = await runCreateFlow(cwd, inputName, {
|
|
2069
2069
|
...opts.offline !== void 0 ? { offline: opts.offline } : {},
|
|
2070
2070
|
...opts.cacheDir ? { cacheDir: opts.cacheDir } : {},
|
|
@@ -2087,22 +2087,22 @@ function registerTopLevelCommands(program, cwd) {
|
|
|
2087
2087
|
function registerVerifyCommands(program, cwd) {
|
|
2088
2088
|
const verifyCommand = program.command("verify").alias("v").description(localize("Local verification commands", "本地校验工具集"));
|
|
2089
2089
|
verifyCommand.command("pre-push").description(localize("Run build, test, and tsd checks for pushed changes", "按推送变更范围执行 build/test/tsd 校验")).alias("push").action(async () => {
|
|
2090
|
-
const { verifyPrePush } = await import("./commands-
|
|
2090
|
+
const { verifyPrePush } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2091
2091
|
await verifyPrePush({ cwd });
|
|
2092
2092
|
});
|
|
2093
2093
|
verifyCommand.command("pre-commit").description(localize("Run lint-staged verification", "执行 lint-staged 校验")).alias("commit").action(async () => {
|
|
2094
|
-
const { verifyPreCommit } = await import("./commands-
|
|
2094
|
+
const { verifyPreCommit } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2095
2095
|
await verifyPreCommit({ cwd });
|
|
2096
2096
|
});
|
|
2097
2097
|
verifyCommand.command("commit-msg").description(localize("Run commitlint verification", "执行 commitlint 校验")).alias("msg").argument("<edit-file>").action(async (editFile) => {
|
|
2098
|
-
const { verifyCommitMsg } = await import("./commands-
|
|
2098
|
+
const { verifyCommitMsg } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2099
2099
|
await verifyCommitMsg({
|
|
2100
2100
|
cwd,
|
|
2101
2101
|
editFile
|
|
2102
2102
|
});
|
|
2103
2103
|
});
|
|
2104
2104
|
verifyCommand.command("staged-typecheck").description(localize("Run typecheck in workspaces containing staged files", "按暂存文件所在 workspace 执行 typecheck")).alias("tc").argument("[files...]").action(async (files = []) => {
|
|
2105
|
-
const { verifyStagedTypecheck } = await import("./commands-
|
|
2105
|
+
const { verifyStagedTypecheck } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2106
2106
|
verifyStagedTypecheck(files, { cwd });
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
@@ -2466,12 +2466,12 @@ function registerWorkspaceCommands(program, cwd) {
|
|
|
2466
2466
|
registerWorkspaceRemoval(workspaceCommand, cwd);
|
|
2467
2467
|
registerWorkspaceMove(workspaceCommand, cwd);
|
|
2468
2468
|
workspaceCommand.command("init").description(localize("Initialize workspace metadata and repository files", "初始化工作区元信息(README、package.json、pnpm intent、issue template)")).alias("i").action(async () => {
|
|
2469
|
-
const { initMetadata } = await import("./commands-
|
|
2469
|
+
const { initMetadata } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2470
2470
|
await initMetadata(cwd);
|
|
2471
2471
|
logger.success(localize("Workspace initialization finished.", "Workspace 初始化完成。"));
|
|
2472
2472
|
});
|
|
2473
2473
|
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) => {
|
|
2474
|
-
const { getWorkspacePackageSummaries } = await import("./workspace-tasks-
|
|
2474
|
+
const { getWorkspacePackageSummaries } = await import("./workspace-tasks-C5W-QwWj.mjs").then((n) => n.Kt);
|
|
2475
2475
|
await emitWorkspaceList(await getWorkspacePackageSummaries(cwd, {
|
|
2476
2476
|
ignorePrivatePackage: !opts.includePrivate,
|
|
2477
2477
|
ignoreRootPackage: !opts.includeRoot,
|
|
@@ -2479,7 +2479,7 @@ function registerWorkspaceCommands(program, cwd) {
|
|
|
2479
2479
|
}), opts);
|
|
2480
2480
|
});
|
|
2481
2481
|
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) => {
|
|
2482
|
-
const { cleanProjects } = await import("./commands-
|
|
2482
|
+
const { cleanProjects } = await import("./commands-Bj0sX3R9.mjs").then((n) => n.t);
|
|
2483
2483
|
await cleanProjects(cwd, normalizeCleanOptions(opts));
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
5
|
-
import { c as selectCommandOverrides, i as rangesOverlap, l as chinaMirrorsEnvs, r as parseSpecifier, s as resolveCommandValues } from "./scan-
|
|
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-
|
|
7
|
-
import { t as writeDependencyTransaction } from "./transaction-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
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";
|
|
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";
|
|
@@ -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-
|
|
1462
|
+
const npm = request.source.kind === "npm" ? await import("./npm-Bh6HBy5V.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"));
|
|
@@ -4830,11 +4830,28 @@ function runScripts(scripts, options, extraEnv) {
|
|
|
4830
4830
|
} } : {}
|
|
4831
4831
|
});
|
|
4832
4832
|
}
|
|
4833
|
+
function verificationEnvironment(options) {
|
|
4834
|
+
const env = { ...options.env ?? process.env };
|
|
4835
|
+
for (const variable of [
|
|
4836
|
+
"REPO_RELEASE_MODE",
|
|
4837
|
+
"REPO_RELEASE_PACKAGE",
|
|
4838
|
+
"REPO_RELEASE_VERSION",
|
|
4839
|
+
"REPO_RELEASE_DRY_RUN",
|
|
4840
|
+
"REPO_RELEASE_RECOVERY_SOURCE_SHA",
|
|
4841
|
+
"REPO_RELEASE_SOURCE_SHA",
|
|
4842
|
+
"REPO_RELEASE_ACKNOWLEDGE_HOOKS"
|
|
4843
|
+
]) delete env[variable];
|
|
4844
|
+
return env;
|
|
4845
|
+
}
|
|
4833
4846
|
async function runQualityScripts(options) {
|
|
4834
4847
|
await assertWorkspaceDependencyProtocols(options.cwd);
|
|
4835
4848
|
const config = resolveCommandValues("release", options.config).values;
|
|
4836
|
-
|
|
4837
|
-
|
|
4849
|
+
const verificationOptions = {
|
|
4850
|
+
...options,
|
|
4851
|
+
env: verificationEnvironment(options)
|
|
4852
|
+
};
|
|
4853
|
+
runScripts(config.qualityScripts, verificationOptions);
|
|
4854
|
+
runScripts(config.hooks?.verify ?? [], verificationOptions);
|
|
4838
4855
|
}
|
|
4839
4856
|
function runReleaseHooks(phase, options) {
|
|
4840
4857
|
runScripts(options.config?.hooks?.[phase] ?? [], options);
|
|
@@ -5501,12 +5518,14 @@ var PublishState = class {
|
|
|
5501
5518
|
};
|
|
5502
5519
|
//#endregion
|
|
5503
5520
|
//#region src/commands/release/publish/registry.ts
|
|
5504
|
-
const visibilityBudget =
|
|
5521
|
+
const visibilityBudget = 9e5;
|
|
5522
|
+
const refreshBudget = 3e5;
|
|
5505
5523
|
const pollInterval = 1e4;
|
|
5524
|
+
const progressInterval = 6e4;
|
|
5506
5525
|
function sleep(milliseconds, options) {
|
|
5507
5526
|
return options.sleep?.(milliseconds) ?? new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
5508
5527
|
}
|
|
5509
|
-
async function refreshRegistry(state, options, packages = state.candidates, deadline = performance.now() +
|
|
5528
|
+
async function refreshRegistry(state, options, packages = state.candidates, deadline = performance.now() + refreshBudget) {
|
|
5510
5529
|
const unknown = [];
|
|
5511
5530
|
const pending = state.unconfirmed(packages);
|
|
5512
5531
|
for (const [index, pkg] of pending.entries()) {
|
|
@@ -5542,6 +5561,9 @@ async function refreshRegistry(state, options, packages = state.candidates, dead
|
|
|
5542
5561
|
async function confirmVisibility(state, options, packages, initialDelay = 0) {
|
|
5543
5562
|
let remaining = visibilityBudget;
|
|
5544
5563
|
let delay = initialDelay;
|
|
5564
|
+
let lastProgress = 0;
|
|
5565
|
+
let pendingVersions = state.unconfirmed(packages).map(packageKey).join(", ");
|
|
5566
|
+
if (pendingVersions && !options.quiet) logger.info(`Waiting up to ${visibilityBudget / 6e4} minutes for npm registry visibility; pending versions: ${pendingVersions}`);
|
|
5545
5567
|
while (state.unconfirmed(packages).length && remaining > 0) {
|
|
5546
5568
|
const started = performance.now();
|
|
5547
5569
|
const wait = Math.min(delay, remaining);
|
|
@@ -5551,10 +5573,17 @@ async function confirmVisibility(state, options, packages, initialDelay = 0) {
|
|
|
5551
5573
|
await refreshRegistry(state, options, packages, queryStarted + remaining);
|
|
5552
5574
|
await state.save(options.cwd, "confirming");
|
|
5553
5575
|
remaining -= performance.now() - queryStarted;
|
|
5576
|
+
const elapsed = visibilityBudget - remaining;
|
|
5577
|
+
const nextPendingVersions = state.unconfirmed(packages).map(packageKey).join(", ");
|
|
5578
|
+
if (nextPendingVersions && remaining > 0 && !options.quiet && (nextPendingVersions !== pendingVersions || elapsed - lastProgress >= progressInterval)) {
|
|
5579
|
+
logger.info(`Waiting for npm registry visibility (${Math.floor(elapsed / 1e3)}s/${visibilityBudget / 1e3}s); pending versions: ${nextPendingVersions}`);
|
|
5580
|
+
lastProgress = elapsed;
|
|
5581
|
+
}
|
|
5582
|
+
pendingVersions = nextPendingVersions;
|
|
5554
5583
|
delay = pollInterval;
|
|
5555
5584
|
}
|
|
5556
5585
|
const pending = state.unconfirmed(packages);
|
|
5557
|
-
if (pending.length) throw new ReleaseCommandError(`npm registry visibility confirmation timed out after
|
|
5586
|
+
if (pending.length) throw new ReleaseCommandError(`npm registry visibility confirmation timed out after ${visibilityBudget / 6e4} minutes; pending versions: ${pending.map(packageKey).join(", ")}. Upload evidence is preserved in repoctl-publish-progress.json; resume confirmation without re-uploading accepted versions.`);
|
|
5558
5587
|
if (packages.length && !options.quiet) logger.info("npm registry visibility confirmed for all requested versions.");
|
|
5559
5588
|
}
|
|
5560
5589
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { knipRoot } from "./plan-
|
|
1
|
+
import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-BKtLcrQ9.mjs";
|
|
3
|
+
import { knipRoot } from "./plan-CxySMaLN.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-
|
|
2
|
-
import { f as logger } from "./execute-
|
|
3
|
-
import { Dt as createTemplateCatalog, St as resolveCreateNewProjectPlan, bt as createNewProject, kt as loadTemplateCatalogContext, xt as defaultTemplate } from "./commands-
|
|
1
|
+
import { St as localize, jt as fs$1 } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { f as logger } from "./execute-DI1mgVLv.mjs";
|
|
3
|
+
import { Dt as createTemplateCatalog, St as resolveCreateNewProjectPlan, bt as createNewProject, kt as loadTemplateCatalogContext, xt as defaultTemplate } from "./commands-Bj0sX3R9.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-
|
|
3
|
-
import { t as scanDependencies } from "./scan-
|
|
4
|
-
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-
|
|
2
|
+
import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
3
|
+
import { t as scanDependencies } from "./scan-B_-E6BWh.mjs";
|
|
4
|
+
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-DFam8_dp.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 { St as localize, jt as fs } from "./workspace-tasks-
|
|
2
|
-
import { f as logger, t as runCheckWithReport } from "./execute-
|
|
1
|
+
import { St as localize, jt as fs } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { f as logger, t as runCheckWithReport } from "./execute-DI1mgVLv.mjs";
|
|
3
3
|
import { t as formatAffectedCheckPlan } from "./cli.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
@@ -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-
|
|
2
|
-
import { d as loadMonorepoConfig, m as resolveToolingConfig } from "./tsconfig-
|
|
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-C5W-QwWj.mjs";
|
|
2
|
+
import { d as loadMonorepoConfig, m as resolveToolingConfig } from "./tsconfig-BZ6E1fBA.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { createConsola } from "consola";
|
|
5
5
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as localize } from "./workspace-tasks-
|
|
1
|
+
import { St as localize } from "./workspace-tasks-C5W-QwWj.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, 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, qt as GitClient, 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-
|
|
2
|
-
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, f as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as verifyStagedTypecheck } from "./execute-
|
|
3
|
-
import { $ as GitHubApiError, A as resolveAffectedCheckMatrix, At as updateIssueTemplateConfig, B as syncSkills, Bt as generateAgenticTemplates, C as applyOrganizationPresetAssets, Ct as getCreateChoices, D as applyInstallSecurityPreset, E as planDevContainer, Et as resolveRemoteTemplateSource, F as upgradeMonorepo, Ft as cleanProjects, G as prepareStable, H as createReleasePullRequest, I as formatUpgradePlan, It as verifyPrePush, J as reconcileRelease, K as publishStable, L as checkTemplates, Lt as createTimestampFolderName, M as applyPublicApiUpdate, Mt as explainMonorepoConfig, N as planPublicApiUpdate, Nt as sanitizeConfigReport, O as planInstallSecurityPreset, Ot as resolveTemplateCatalog, P as formatPublicApiReport, Pt as validateConfigFile, Q as GitHubClient, R as getSkillTargetPaths, Rt as defaultAgenticBaseDir, S as detectMaintenanceVersionChange, St as resolveCreateNewProjectPlan, T as applyDevContainerPlan, Tt as templateMap, U as recoverUnpublished, V as repairReleaseNotes, Vt as loadAgenticTasks, W as releaseCi, X as exitPrerelease, Y as enterPrerelease, Z as releasePrerelease, _ as applyProjectReferencesPlan, _t as resolveReleaseBranches, a as planWorkspaceMove, at as initTooling, b as getMaintenanceWorkflow, bt as createNewProject, c as applyToolingCapability, ct as createContext, d as planTemplateValidation, dt as collectEnvSnapshot, et as parsePublishSummary, f as releaseSnapshot, ft as collectEnvSupportBundle, g as syncProjectReferences, gt as planUpgrade, h as checkProjectReferences, ht as planDoctorFix, i as applyWorkspaceMovePlan, it as initMetadata, j as checkPublicApi, jt as inspectMonorepoConfig, k as checkPeerDependencies, l as planToolingCapability, lt as collectEnvInfo, m as createReleasePlan, mt as applyDoctorFixPlan, n as applyWorkspaceRemovalPlan, nt as setVscodeBinaryMirror, o as applyWorkspaceArtifactPlan, ot as normalizeInitToolingTargets, p as createSnapshotPlan, pt as runDoctor, q as releaseStable, r as planWorkspaceRemoval, rt as init, s as planWorkspaceArtifact, st as initToolingTargets, u as validateTemplate, ut as collectEnvPaths, v as planProjectReferences, vt as applyUpgradePlan, w as planOrganizationPresetAssets, wt as getTemplateMap, x as prepareMaintenanceUpgrade, y as checkPackages, yt as applyCreateNewProjectPlan, z as skillTargets, zt as generateAgenticTemplate } from "./commands-
|
|
4
|
-
import { D as name, M as assertMonorepoConfig, N as validateMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as ConfigValidationError, k as version, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
5
|
-
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-
|
|
6
|
-
import { F as toWorkspaceAssetPath, I as toWorkspaceGitignorePath, N as isGitignoreFile, P as toPublishGitignorePath, S as checkDependencyAdmission, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, x as checkWorkspaceBoundaries } from "./template-drift-
|
|
7
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, d as createMonorepoLintStagedConfig, f as defineLintStagedConfig, 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-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
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, 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, qt as GitClient, 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-C5W-QwWj.mjs";
|
|
2
|
+
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, f as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport, u as verifyStagedTypecheck } from "./execute-DI1mgVLv.mjs";
|
|
3
|
+
import { $ as GitHubApiError, A as resolveAffectedCheckMatrix, At as updateIssueTemplateConfig, B as syncSkills, Bt as generateAgenticTemplates, C as applyOrganizationPresetAssets, Ct as getCreateChoices, D as applyInstallSecurityPreset, E as planDevContainer, Et as resolveRemoteTemplateSource, F as upgradeMonorepo, Ft as cleanProjects, G as prepareStable, H as createReleasePullRequest, I as formatUpgradePlan, It as verifyPrePush, J as reconcileRelease, K as publishStable, L as checkTemplates, Lt as createTimestampFolderName, M as applyPublicApiUpdate, Mt as explainMonorepoConfig, N as planPublicApiUpdate, Nt as sanitizeConfigReport, O as planInstallSecurityPreset, Ot as resolveTemplateCatalog, P as formatPublicApiReport, Pt as validateConfigFile, Q as GitHubClient, R as getSkillTargetPaths, Rt as defaultAgenticBaseDir, S as detectMaintenanceVersionChange, St as resolveCreateNewProjectPlan, T as applyDevContainerPlan, Tt as templateMap, U as recoverUnpublished, V as repairReleaseNotes, Vt as loadAgenticTasks, W as releaseCi, X as exitPrerelease, Y as enterPrerelease, Z as releasePrerelease, _ as applyProjectReferencesPlan, _t as resolveReleaseBranches, a as planWorkspaceMove, at as initTooling, b as getMaintenanceWorkflow, bt as createNewProject, c as applyToolingCapability, ct as createContext, d as planTemplateValidation, dt as collectEnvSnapshot, et as parsePublishSummary, f as releaseSnapshot, ft as collectEnvSupportBundle, g as syncProjectReferences, gt as planUpgrade, h as checkProjectReferences, ht as planDoctorFix, i as applyWorkspaceMovePlan, it as initMetadata, j as checkPublicApi, jt as inspectMonorepoConfig, k as checkPeerDependencies, l as planToolingCapability, lt as collectEnvInfo, m as createReleasePlan, mt as applyDoctorFixPlan, n as applyWorkspaceRemovalPlan, nt as setVscodeBinaryMirror, o as applyWorkspaceArtifactPlan, ot as normalizeInitToolingTargets, p as createSnapshotPlan, pt as runDoctor, q as releaseStable, r as planWorkspaceRemoval, rt as init, s as planWorkspaceArtifact, st as initToolingTargets, u as validateTemplate, ut as collectEnvPaths, v as planProjectReferences, vt as applyUpgradePlan, w as planOrganizationPresetAssets, wt as getTemplateMap, x as prepareMaintenanceUpgrade, y as checkPackages, yt as applyCreateNewProjectPlan, z as skillTargets, zt as generateAgenticTemplate } from "./commands-Bj0sX3R9.mjs";
|
|
4
|
+
import { D as name, M as assertMonorepoConfig, N as validateMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as ConfigValidationError, k as version, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-BZ6E1fBA.mjs";
|
|
5
|
+
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-B_-E6BWh.mjs";
|
|
6
|
+
import { F as toWorkspaceAssetPath, I as toWorkspaceGitignorePath, N as isGitignoreFile, P as toPublishGitignorePath, S as checkDependencyAdmission, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, x as checkWorkspaceBoundaries } from "./template-drift-D0hKxixr.mjs";
|
|
7
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, d as createMonorepoLintStagedConfig, f as defineLintStagedConfig, 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-XbNmiloj.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";
|
|
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, yt as packageDir } from "./workspace-tasks-
|
|
1
|
+
import { at as record, yt as packageDir } from "./workspace-tasks-C5W-QwWj.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-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { planKnipCheck } from "./plan-
|
|
4
|
-
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-
|
|
1
|
+
import { U as stopCheckProcessTree } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-BKtLcrQ9.mjs";
|
|
3
|
+
import { planKnipCheck } from "./plan-CxySMaLN.mjs";
|
|
4
|
+
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-CRCTiMNM.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-
|
|
2
|
-
import { knipRoot } from "./plan-
|
|
3
|
-
import { n as validateKnipBaseline } from "./baseline-
|
|
1
|
+
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { knipRoot } from "./plan-CxySMaLN.mjs";
|
|
3
|
+
import { n as validateKnipBaseline } from "./baseline-CRCTiMNM.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, rt as hash } from "./workspace-tasks-
|
|
2
|
-
import { A as mergeConfigValues, H as validateSchema, M as assertMonorepoConfig, f as loadMonorepoConfigDetails, j as ConfigValidationError, u as getRepoctlConfigCandidates, z as commandSchemas } from "./tsconfig-
|
|
1
|
+
import { St as localize, at as record, it as readInput, rt as hash } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { A as mergeConfigValues, H as validateSchema, M as assertMonorepoConfig, f as loadMonorepoConfigDetails, j as ConfigValidationError, u as getRepoctlConfigCandidates, z as commandSchemas } from "./tsconfig-BZ6E1fBA.mjs";
|
|
3
3
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
4
|
import { findWorkspacePackages } from "@pnpm/workspace.find-packages";
|
|
5
5
|
import path from "pathe";
|
|
@@ -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$3, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-
|
|
3
|
-
import { E as relativeFile, T as readOptional, f as loadMonorepoConfigDetails, j as ConfigValidationError, w as hash$1 } from "./tsconfig-
|
|
4
|
-
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-
|
|
2
|
+
import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$3, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
3
|
+
import { E as relativeFile, T as readOptional, f as loadMonorepoConfigDetails, j as ConfigValidationError, w as hash$1 } from "./tsconfig-BZ6E1fBA.mjs";
|
|
4
|
+
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-B_-E6BWh.mjs";
|
|
5
5
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
6
6
|
import path from "pathe";
|
|
7
7
|
import process from "node:process";
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-
|
|
2
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, d as createMonorepoLintStagedConfig, f as defineLintStagedConfig, 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-
|
|
1
|
+
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-BZ6E1fBA.mjs";
|
|
2
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, d as createMonorepoLintStagedConfig, f as defineLintStagedConfig, 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-XbNmiloj.mjs";
|
|
3
3
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, 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-
|
|
2
|
-
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-
|
|
1
|
+
import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-C5W-QwWj.mjs";
|
|
2
|
+
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-B_-E6BWh.mjs";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
//#region src/commands/deps/report.ts
|
|
5
5
|
function classify(group) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-
|
|
1
|
+
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-BZ6E1fBA.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { f as loadMonorepoConfigDetails, j as ConfigValidationError, k as version, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
2
|
+
import { f as loadMonorepoConfigDetails, j as ConfigValidationError, k as version, u as getRepoctlConfigCandidates } from "./tsconfig-BZ6E1fBA.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import gitUrlParse from "git-url-parse";
|
|
5
5
|
import { simpleGit } from "simple-git";
|
|
@@ -1977,16 +1977,16 @@ var knip_exports = /* @__PURE__ */ __exportAll({
|
|
|
1977
1977
|
saveKnipBaseline: () => saveKnipBaseline
|
|
1978
1978
|
});
|
|
1979
1979
|
async function planKnipCheck(cwd, options = {}) {
|
|
1980
|
-
return (await import("./plan-
|
|
1980
|
+
return (await import("./plan-CxySMaLN.mjs")).planKnipCheck(cwd, options);
|
|
1981
1981
|
}
|
|
1982
1982
|
async function runKnipCheck(cwd, options = {}) {
|
|
1983
|
-
return (await import("./run-
|
|
1983
|
+
return (await import("./run-D_bceMqf.mjs")).runKnipCheck(cwd, options);
|
|
1984
1984
|
}
|
|
1985
1985
|
async function getKnipConfigurationSuggestions(cwd) {
|
|
1986
|
-
return (await import("./config-
|
|
1986
|
+
return (await import("./config-Dg-voj8q.mjs")).getKnipConfigurationSuggestions(cwd);
|
|
1987
1987
|
}
|
|
1988
1988
|
async function saveKnipBaseline(cwd, report, file) {
|
|
1989
|
-
return (await import("./save-
|
|
1989
|
+
return (await import("./save-DzIWKs0T.mjs")).saveKnipBaseline(cwd, report, file);
|
|
1990
1990
|
}
|
|
1991
1991
|
//#endregion
|
|
1992
1992
|
//#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": "5.7.
|
|
4
|
+
"version": "5.7.1",
|
|
5
5
|
"description": "Core engine and programmatic APIs for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@babel/parser": "^7.29.8",
|
|
81
81
|
"@icebreakers/commitlint-config": "4.1.1",
|
|
82
82
|
"@icebreakers/eslint-config": "8.0.7",
|
|
83
|
-
"@icebreakers/monorepo-templates": "2.2.
|
|
83
|
+
"@icebreakers/monorepo-templates": "2.2.1",
|
|
84
84
|
"@icebreakers/stylelint-config": "5.1.3",
|
|
85
85
|
"@npmcli/config": "10.14.0",
|
|
86
86
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|