@icebreakers/monorepo 6.4.0 → 6.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{baseline-BahTYIy-.mjs → baseline-C7AzTpzx.mjs} +3 -5
  2. package/dist/{bundle-B9vRch4R.mjs → bundle-BT26jZsH.mjs} +1 -2
  3. package/dist/{catalog-CXITrKhb.mjs → catalog-CgAeI6ht.mjs} +11 -18
  4. package/dist/cli.mjs +141 -220
  5. package/dist/{commands-1ApnhvJF.mjs → commands-DkveHqwW.mjs} +371 -725
  6. package/dist/{config-BmK7bacv.mjs → config-BRw2Aj0M.mjs} +4 -5
  7. package/dist/{create-flow-B2sFa_5j.mjs → create-flow-Caa-flvY.mjs} +6 -9
  8. package/dist/{deps-BbkQSTqk.mjs → deps-4G3KWbLQ.mjs} +6 -8
  9. package/dist/docs-context-entry.d.mts +0 -4
  10. package/dist/docs-context-entry.mjs +2 -4
  11. package/dist/{execute-0NGtp4hR.mjs → execute-Cp_mqcRD.mjs} +12 -22
  12. package/dist/{execute-BdnLU2-t.mjs → execute-Cyp4-qZ-.mjs} +4 -6
  13. package/dist/{format-BcU-hzT_.mjs → format-u-vrkLOi.mjs} +2 -3
  14. package/dist/{index-BBYRSLAi.d.mts → index-CyUOTGW4.d.mts} +1 -85
  15. package/dist/index.d.mts +1 -343
  16. package/dist/index.mjs +11 -13
  17. package/dist/{inputs-DCMUM9kz.mjs → inputs-D9UKdDxG.mjs} +2 -3
  18. package/dist/{npm-DB-0FHcW.mjs → npm-BQ46TTzM.mjs} +2 -3
  19. package/dist/{plan-C47MSubl.mjs → plan-ChKB4Poy.mjs} +2 -3
  20. package/dist/{rolldown-runtime-8H4AJuhK.mjs → rolldown-runtime-BJohB4LM.mjs} +1 -2
  21. package/dist/{run-5IdtzJJR.mjs → run-BidBMxiB.mjs} +6 -8
  22. package/dist/{save-cKCfFQrh.mjs → save-CCITDy0e.mjs} +4 -5
  23. package/dist/{scan-Diyd5MkZ.mjs → scan-CE1y2g7H.mjs} +7 -12
  24. package/dist/{template-drift-C8gMh7d5.mjs → template-drift-HhrxfJbO.mjs} +60 -113
  25. package/dist/tooling-entry.d.mts +1 -1
  26. package/dist/tooling-entry.mjs +2 -2
  27. package/dist/{transaction-B33_Cacq.mjs → transaction-CnUuLnSv.mjs} +6 -10
  28. package/dist/{tsconfig-B32VPzfD.mjs → tsconfig-73z0Y3Nr.mjs} +39 -66
  29. package/dist/{vitest-HFe4zq1M.mjs → vitest-BE1YjbqG.mjs} +6 -9
  30. package/dist/{workspace-tasks-xyIJwdmH.mjs → workspace-tasks-MQ7IXpVF.mjs} +78 -157
  31. package/package.json +13 -13
@@ -1,7 +1,7 @@
1
- import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-xyIJwdmH.mjs";
2
- import { t as knipConfigurationInputs } from "./inputs-DCMUM9kz.mjs";
3
- import { knipRoot } from "./plan-C47MSubl.mjs";
4
- //#region src/commands/check/knip/config.ts
1
+ import { Ht as clearWorkspaceCache, Wt as getWorkspacePackageSummaries, rt as hash } from "./workspace-tasks-MQ7IXpVF.mjs";
2
+ import { t as knipConfigurationInputs } from "./inputs-D9UKdDxG.mjs";
3
+ import { knipRoot } from "./plan-ChKB4Poy.mjs";
4
+ // 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) {
7
7
  const root = await knipRoot(cwd);
@@ -62,5 +62,4 @@ async function getKnipConfigurationSuggestions(cwd) {
62
62
  ]
63
63
  };
64
64
  }
65
- //#endregion
66
65
  export { getKnipConfigurationSuggestions };
@@ -1,11 +1,11 @@
1
- import { St as localize, jt as fs$1 } from "./workspace-tasks-xyIJwdmH.mjs";
2
- import { d as logger } from "./execute-0NGtp4hR.mjs";
3
- import { $t as resolveCreateNewProjectPlan, Qt as defaultTemplate, Zt as createNewProject, in as createTemplateCatalog, on as loadTemplateCatalogContext } from "./commands-1ApnhvJF.mjs";
1
+ import { $t as resolveCreateNewProjectPlan, Qt as defaultTemplate, Zt as createNewProject, in as createTemplateCatalog, on as loadTemplateCatalogContext } from "./commands-DkveHqwW.mjs";
2
+ import { d as logger } from "./execute-Cp_mqcRD.mjs";
3
+ import { St as localize, jt as fs$1 } from "./workspace-tasks-MQ7IXpVF.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
6
6
  import { readFile } from "node:fs/promises";
7
7
  import { input, password, select } from "@icebreakers/monorepo-templates";
8
- //#region src/cli/commands/package/intents.ts
8
+ // src/cli/commands/package/intents.ts
9
9
  const createIntentChoices = [
10
10
  {
11
11
  value: "library",
@@ -38,8 +38,7 @@ const createIntentChoices = [
38
38
  defaultTemplate: "cli"
39
39
  }
40
40
  ];
41
- //#endregion
42
- //#region src/cli/commands/package/parameter-input.ts
41
+ // src/cli/commands/package/parameter-input.ts
43
42
  async function readParameterData(cwd, filename) {
44
43
  if (!filename) return;
45
44
  const contents = await readFile(path.resolve(cwd, filename));
@@ -80,8 +79,7 @@ const promptParameter = async (name, definition) => {
80
79
  });
81
80
  return value === "" && !definition.required ? void 0 : value;
82
81
  };
83
- //#endregion
84
- //#region src/cli/commands/package/create-flow.ts
82
+ // src/cli/commands/package/create-flow.ts
85
83
  function normalizeTargetName(name, baseDir) {
86
84
  if (name.includes("/")) return name;
87
85
  return `${baseDir}/${name}`;
@@ -258,5 +256,4 @@ async function runCreateFlow(cwd, inputName, options = {}) {
258
256
  return handleCreateFlowError(error, options.json);
259
257
  }
260
258
  }
261
- //#endregion
262
259
  export { runCreateFlow };
@@ -1,9 +1,9 @@
1
- import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-xyIJwdmH.mjs";
3
- import { t as scanDependencies } from "./scan-Diyd5MkZ.mjs";
4
- import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-B33_Cacq.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.mjs";
2
+ import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-CnUuLnSv.mjs";
3
+ import { t as scanDependencies } from "./scan-CE1y2g7H.mjs";
4
+ import { Ht as clearWorkspaceCache, St as localize } from "./workspace-tasks-MQ7IXpVF.mjs";
5
5
  import { isDeepStrictEqual } from "node:util";
6
- //#region src/commands/deps/apply.ts
6
+ // src/commands/deps/apply.ts
7
7
  async function applyDependencyFixPlan(cwd, plan) {
8
8
  validateDependencyPlan(plan);
9
9
  const scan = await scanDependencies(cwd);
@@ -30,8 +30,7 @@ async function applyDependencyFixPlan(cwd, plan) {
30
30
  nextSteps: [...dependencyNextSteps]
31
31
  };
32
32
  }
33
- //#endregion
34
- //#region src/commands/deps/index.ts
33
+ // src/commands/deps/index.ts
35
34
  var deps_exports = /* @__PURE__ */ __exportAll({
36
35
  applyDependencyFixPlan: () => applyDependencyFixPlan,
37
36
  checkDependencies: () => checkDependencies,
@@ -43,5 +42,4 @@ async function checkDependencies(cwd) {
43
42
  async function planDependencyFix(cwd, options) {
44
43
  return prepareDependencyFix(await scanDependencies(cwd), options).plan;
45
44
  }
46
- //#endregion
47
45
  export { applyDependencyFixPlan as i, deps_exports as n, planDependencyFix as r, checkDependencies as t };
@@ -1,4 +1,3 @@
1
- //#region src/docs-context/context.d.ts
2
1
  type DocsChannel = 'preview' | 'stable';
3
2
  interface DocsContextOptions {
4
3
  channel?: string | undefined;
@@ -17,9 +16,6 @@ export declare function resolveDocsContext(options: DocsContextOptions): DocsCon
17
16
  export declare const docsPreviewRobots = "noindex, nofollow, noarchive";
18
17
  /** Sitemap paths belong to the framework; preview never advertises one. */
19
18
  export declare function docsRobots(context: DocsContext, sitemapUrl?: string): string;
20
- //#endregion
21
- //#region src/docs-context/headers.d.ts
22
19
  /** Preserve owner and Nimbus headers; remove only this helper's marked preview policy. */
23
20
  export declare function mergeDocsHeaders(existing: string, context: DocsContext): string;
24
- //#endregion
25
21
  export type { DocsChannel, DocsContext, DocsContextOptions };
@@ -1,4 +1,4 @@
1
- //#region src/docs-context/context.ts
1
+ // src/docs-context/context.ts
2
2
  function origin(value, label) {
3
3
  try {
4
4
  const url = new URL(value);
@@ -32,8 +32,7 @@ function docsRobots(context, sitemapUrl = `${context.origin}/sitemap.xml`) {
32
32
  if (sitemap.origin !== context.origin || sitemap.username || sitemap.password || sitemap.search || sitemap.hash) throw new Error("Documentation sitemap must use the selected channel origin");
33
33
  return `User-agent: *\nAllow: /\nDisallow: /_headers\n\nSitemap: ${sitemap.href}\n`;
34
34
  }
35
- //#endregion
36
- //#region src/docs-context/headers.ts
35
+ // src/docs-context/headers.ts
37
36
  const blockStart = "# repoctl docs preview (generated)";
38
37
  const blockEnd = "# End repoctl docs preview";
39
38
  const fieldsStart = "# repoctl docs preview headers (generated)";
@@ -84,5 +83,4 @@ function mergeDocsHeaders(existing, context) {
84
83
  ""
85
84
  ].join(newline)}`;
86
85
  }
87
- //#endregion
88
86
  export { docsPreviewRobots, docsRobots, mergeDocsHeaders, resolveDocsContext };
@@ -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-xyIJwdmH.mjs";
2
- import { d as loadMonorepoConfig } from "./tsconfig-B32VPzfD.mjs";
1
+ import { H as signalExitCode, J as getWorkspaceGraph, St as localize, V as executeCheckTask, Z as getWorkspaceImpact, jt as fs$1, tt as resolveWorkspaceGraphNode } from "./workspace-tasks-MQ7IXpVF.mjs";
2
+ import { d as loadMonorepoConfig } from "./tsconfig-73z0Y3Nr.mjs";
3
3
  import process from "node:process";
4
4
  import { createConsola } from "consola";
5
5
  import { execFileSync, spawnSync } from "node:child_process";
@@ -9,13 +9,12 @@ import { fileURLToPath } from "node:url";
9
9
  import crossSpawn from "cross-spawn";
10
10
  import { parse } from "comment-json";
11
11
  import { performance } from "node:perf_hooks";
12
- //#region src/core/logger.ts
12
+ // src/core/logger.ts
13
13
  /**
14
14
  * 统一的日志实例,便于在命令行中输出带有前缀和颜色的消息。
15
15
  */
16
16
  const logger = createConsola();
17
- //#endregion
18
- //#region src/commands/verify/run.ts
17
+ // src/commands/verify/run.ts
19
18
  function runPnpmCommand(cwd, label, args, spawn) {
20
19
  process.stdout.write(`${label}\n`);
21
20
  const options = {
@@ -25,8 +24,7 @@ function runPnpmCommand(cwd, label, args, spawn) {
25
24
  const result = (spawn === spawnSync ? crossSpawn.sync : spawn)("pnpm", args, options);
26
25
  if (result.status !== 0) process.exit(result.status ?? 1);
27
26
  }
28
- //#endregion
29
- //#region src/commands/verify/index.ts
27
+ // src/commands/verify/index.ts
30
28
  /** Validate a commit message using the repository's commitlint configuration. */
31
29
  async function verifyCommitMsg(options) {
32
30
  runPnpmCommand(options.cwd ?? process.cwd(), `[commit-msg] ${options.editFile}`, [
@@ -45,8 +43,7 @@ async function verifyPreCommit(options = {}) {
45
43
  "pre-commit"
46
44
  ], options.spawn ?? spawnSync);
47
45
  }
48
- //#endregion
49
- //#region src/commands/check.ts
46
+ // src/commands/check.ts
50
47
  function resolveRecommendedCheckPlan(options) {
51
48
  const { cwd, full, staged, editFile } = options;
52
49
  if (editFile) return {
@@ -147,8 +144,7 @@ async function runRecommendedCheck(options) {
147
144
  }
148
145
  await verifyPreCommit({ cwd });
149
146
  }
150
- //#endregion
151
- //#region src/commands/check/affected/selection.ts
147
+ // src/commands/check/affected/selection.ts
152
148
  function selectAffectedPackages(graph, files, full, filters) {
153
149
  const packages = graph.nodes.map((node) => ({
154
150
  id: node.id,
@@ -189,8 +185,7 @@ function includeBuildPrerequisites(graph, selected) {
189
185
  }
190
186
  return [...included].sort();
191
187
  }
192
- //#endregion
193
- //#region src/commands/check/affected/commands.ts
188
+ // src/commands/check/affected/commands.ts
194
189
  const stages = [
195
190
  "build",
196
191
  "lint",
@@ -244,8 +239,7 @@ function createAffectedCommandPlanner(graph) {
244
239
  });
245
240
  };
246
241
  }
247
- //#endregion
248
- //#region src/commands/check/affected/git.ts
242
+ // src/commands/check/affected/git.ts
249
243
  function readAffectedGitRange(cwd, base = "origin/main", head = "HEAD") {
250
244
  const git = (args) => execFileSync("git", args, {
251
245
  cwd,
@@ -367,8 +361,7 @@ function readAffectedGitRange(cwd, base = "origin/main", head = "HEAD") {
367
361
  fallback
368
362
  };
369
363
  }
370
- //#endregion
371
- //#region src/commands/check/affected/inputs.ts
364
+ // src/commands/check/affected/inputs.ts
372
365
  const defaultAffectedGlobalInputs = [
373
366
  "package.json",
374
367
  "pnpm-workspace.yaml",
@@ -435,8 +428,7 @@ function classifyAffectedFiles(files, ids, globalInputs) {
435
428
  });
436
429
  return fallback;
437
430
  }
438
- //#endregion
439
- //#region src/commands/check/affected/index.ts
431
+ // src/commands/check/affected/index.ts
440
432
  /** Internal shared snapshot used by local checks and matrix generation. */
441
433
  async function resolveAffectedCheckContext(options) {
442
434
  const graph = await getWorkspaceGraph(options.cwd);
@@ -474,8 +466,7 @@ async function resolveAffectedCheckContext(options) {
474
466
  async function resolveAffectedCheckPlan(options) {
475
467
  return (await resolveAffectedCheckContext(options)).plan;
476
468
  }
477
- //#endregion
478
- //#region src/commands/check/execute.ts
469
+ // src/commands/check/execute.ts
479
470
  /** Run checks without exiting the caller, retaining every completed and skipped stage. */
480
471
  async function runCheckWithReport(options) {
481
472
  const start = performance.now();
@@ -552,5 +543,4 @@ async function runCheckWithReport(options) {
552
543
  ...affectedPlan ? { affectedPlan } : {}
553
544
  };
554
545
  }
555
- //#endregion
556
546
  export { resolveFullWorkspaceCheckPlan as a, verifyCommitMsg as c, logger as d, getKnownRepoCheckCommands as i, verifyPreCommit as l, resolveAffectedCheckContext as n, resolveRecommendedCheckPlan as o, resolveAffectedCheckPlan as r, runRecommendedCheck as s, runCheckWithReport as t, runPnpmCommand as u };
@@ -1,10 +1,10 @@
1
- import { St as localize, jt as fs } from "./workspace-tasks-xyIJwdmH.mjs";
2
- import { d as logger, t as runCheckWithReport } from "./execute-0NGtp4hR.mjs";
1
+ import { d as logger, t as runCheckWithReport } from "./execute-Cp_mqcRD.mjs";
2
+ import { St as localize, jt as fs } from "./workspace-tasks-MQ7IXpVF.mjs";
3
3
  import { t as formatAffectedCheckPlan } from "./cli.mjs";
4
4
  import path from "pathe";
5
5
  import process from "node:process";
6
6
  import os from "node:os";
7
- //#region src/cli/commands/check/report.ts
7
+ // src/cli/commands/check/report.ts
8
8
  function createCheckReportOutput(report, format, redact = false) {
9
9
  let serialized = JSON.stringify(report);
10
10
  if (redact) {
@@ -39,8 +39,7 @@ function createCheckReportOutput(report, format, redact = false) {
39
39
  ...output.affectedPlan ? ["", formatAffectedCheckPlan(output.affectedPlan, true)] : []
40
40
  ].join("\n");
41
41
  }
42
- //#endregion
43
- //#region src/cli/commands/check/execute.ts
42
+ // src/cli/commands/check/execute.ts
44
43
  async function runCheckExecution(options, reportFile, format = "json", redact) {
45
44
  const controller = new AbortController();
46
45
  const onInterrupt = () => controller.abort("SIGINT");
@@ -64,5 +63,4 @@ async function runCheckExecution(options, reportFile, format = "json", redact) {
64
63
  process.removeListener("SIGTERM", onTerminate);
65
64
  }
66
65
  }
67
- //#endregion
68
66
  export { runCheckExecution };
@@ -1,5 +1,5 @@
1
- import { St as localize } from "./workspace-tasks-xyIJwdmH.mjs";
2
- //#region src/commands/check/cache/format.ts
1
+ import { St as localize } from "./workspace-tasks-MQ7IXpVF.mjs";
2
+ // src/commands/check/cache/format.ts
3
3
  function label(value, markdown) {
4
4
  return markdown ? value.replace(/[\\`*_{}[\]()#+.!|<>~-]/gu, "\\$&") : value;
5
5
  }
@@ -24,5 +24,4 @@ function formatTurboAnalysis(report, markdown = false) {
24
24
  ...report.limitations.map((item) => `! ${item.code}: ${item.summary}${item.taskId ? ` / ${display(item.taskId)}` : ""}${item.field ? ` / ${display(item.field)}` : ""}`)
25
25
  ].join("\n");
26
26
  }
27
- //#endregion
28
27
  export { formatTurboAnalysis };
@@ -1,10 +1,9 @@
1
1
  import { ConfigValues, SimpleGit, SimpleGitOptions } from "simple-git";
2
2
  import { ResolvedTemplateParameters, ResolvedTemplateRemoteSource, TemplateCategory, TemplateChoice, TemplateDefinition, TemplateInstanceMovePlan, TemplateParameterPrompt, TemplateParameterRender, TemplateParameterValues, TemplateRemoteSource } from "@icebreakers/monorepo-templates";
3
3
  import { IcebreakerCommitlintConfig, IcebreakerCommitlintOptions } from "@icebreakers/commitlint-config";
4
- import { IcebreakerStylelintConfig, StylelintConfig } from "@icebreakers/stylelint-config";
5
4
  import { IcebreakerEslintConfig, UserConfigItem, UserDefinedOptions } from "@icebreakers/eslint-config";
5
+ import { IcebreakerStylelintConfig, StylelintConfig } from "@icebreakers/stylelint-config";
6
6
  import { ViteUserConfig } from "vitest/config";
7
- //#region src/types/dependencies.d.ts
8
7
  type DependencySection = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
9
8
  /** An intentional version cohort, selected by exact workspace-relative directories. */
10
9
  interface DependencyVersionGroup {
@@ -81,8 +80,6 @@ interface DependencyApplyResult {
81
80
  changed: string[];
82
81
  nextSteps: string[];
83
82
  }
84
- //#endregion
85
- //#region src/types/cli.d.ts
86
83
  /**
87
84
  * CLI 公用参数,保证各命令对外暴露一致的行为。
88
85
  */
@@ -133,8 +130,6 @@ interface CliOpts {
133
130
  */
134
131
  overwriteRelease?: boolean;
135
132
  }
136
- //#endregion
137
- //#region src/commands/ai.d.ts
138
133
  type AgenticTemplateFormat = 'md' | 'json';
139
134
  interface GenerateAgenticTemplateOptions {
140
135
  cwd?: string;
@@ -167,8 +162,6 @@ declare function createTimestampFolderName(date?: Date): string;
167
162
  declare function generateAgenticTemplate(options?: GenerateAgenticTemplateOptions): Promise<string>;
168
163
  declare function loadAgenticTasks(filePath: string, cwd: string): Promise<AgenticTemplateTask[]>;
169
164
  declare function generateAgenticTemplates(tasks: AgenticTemplateTask[], defaults?: GenerateAgenticTemplateOptions): Promise<string[]>;
170
- //#endregion
171
- //#region src/types/presets.d.ts
172
165
  /** Explicit identity of an already installed npm package; ranges and tags are not accepted. */
173
166
  interface OrganizationPresetReference {
174
167
  packageName: string;
@@ -246,8 +239,6 @@ interface ConfigSourceLayer {
246
239
  source: ConfigValueSource;
247
240
  config: MonorepoConfig;
248
241
  }
249
- //#endregion
250
- //#region src/core/config/validation/schema.d.ts
251
242
  interface ConfigDiagnostic {
252
243
  id: 'config.unknown-field' | 'config.invalid-type' | 'config.invalid-value' | 'config.conflict' | 'config.load-failed';
253
244
  path: string;
@@ -255,8 +246,6 @@ interface ConfigDiagnostic {
255
246
  expected: string;
256
247
  suggestion: string;
257
248
  }
258
- //#endregion
259
- //#region src/core/template-catalog/types.d.ts
260
249
  type CreateTemplateDefinition = TemplateDefinition & Partial<Pick<TemplateChoice, 'label' | 'category' | 'description'>>;
261
250
  interface TemplateCatalogEntry extends TemplateChoice {
262
251
  sourceDir: string;
@@ -292,12 +281,8 @@ interface ResolveTemplateCatalogOptions {
292
281
  /** Override the template root for inspection; relative paths use the invocation directory. */
293
282
  templatesDir?: string;
294
283
  }
295
- //#endregion
296
- //#region src/core/template-catalog/index.d.ts
297
284
  /** Resolve declarations only; never generate files or execute template code. */
298
285
  declare function resolveTemplateCatalog(options?: ResolveTemplateCatalogOptions): Promise<TemplateCatalog>;
299
- //#endregion
300
- //#region src/core/template-catalog/definitions.d.ts
301
286
  interface BuiltinTemplatePaths {
302
287
  'tsdown': ['tsdown', 'packages/tsdown'];
303
288
  'vue-lib': ['vue-lib', 'packages/vue-lib'];
@@ -316,8 +301,6 @@ declare const templateMap: { readonly [Key in keyof BuiltinTemplatePaths]: {
316
301
  }; };
317
302
  declare function getTemplateMap(extra?: Record<string, string | TemplateDefinition>): Record<string, TemplateDefinition>;
318
303
  declare function getCreateChoices(choices?: CreateChoiceOption[]): CreateChoiceOption[];
319
- //#endregion
320
- //#region src/core/template-source/types.d.ts
321
304
  interface TemplateSourceOptions {
322
305
  cwd?: string;
323
306
  cacheDir?: string;
@@ -335,12 +318,8 @@ interface ResolvedTemplateSource {
335
318
  digest: string;
336
319
  cache: 'hit' | 'downloaded';
337
320
  }
338
- //#endregion
339
- //#region src/core/template-source/index.d.ts
340
321
  /** Prepare verified assets only. Never installs dependencies, executes remote scripts or writes the target workspace. */
341
322
  declare function resolveRemoteTemplateSource(source: TemplateRemoteSource, templatePath?: string, options?: TemplateSourceOptions): Promise<ResolvedTemplateSource>;
342
- //#endregion
343
- //#region src/commands/create/parameters/prepare.d.ts
344
323
  interface CreateParameterReport {
345
324
  schemaVersion: 1;
346
325
  values: ResolvedTemplateParameters['report'];
@@ -348,8 +327,6 @@ interface CreateParameterReport {
348
327
  package: TemplateParameterRender['package'];
349
328
  excludedPaths: string[];
350
329
  }
351
- //#endregion
352
- //#region src/commands/create/plan.d.ts
353
330
  type CreateNewProjectType = keyof typeof templateMap;
354
331
  interface CreateNewProjectOptions {
355
332
  /** Strict values for repoctl.template.json; sensitive values stay in memory only. */
@@ -403,14 +380,10 @@ interface CreateNewProjectPlan {
403
380
  }
404
381
  /** Read-only creation preview; fetch remote assets explicitly before planning. */
405
382
  declare function resolveCreateNewProjectPlan(options?: CreateNewProjectOptions): Promise<CreateNewProjectPlan>;
406
- //#endregion
407
- //#region src/commands/create/index.d.ts
408
383
  /** Shared generation path for creation and disposable author validation. */
409
384
  declare function applyCreateNewProjectPlan(plan: CreateNewProjectPlan, includeGitMetadata?: boolean): Promise<void>;
410
385
  /** Create files first and atomically register provenance only after every transformation succeeds. */
411
386
  declare function createNewProject(options?: CreateNewProjectOptions): Promise<void>;
412
- //#endregion
413
- //#region src/commands/deps/admission/types.d.ts
414
387
  interface DependencyAdmissionRule {
415
388
  id: string;
416
389
  /** Exact workspace names, relative paths, directory/**, or * for all. */
@@ -489,8 +462,6 @@ interface DependencyAdmissionOptions {
489
462
  /** Optional deterministic clock for programmatic integrations. */
490
463
  now?: Date;
491
464
  }
492
- //#endregion
493
- //#region src/types/doctor.d.ts
494
465
  /** Reasoned waiver for one stable doctor rule ID. */
495
466
  interface DoctorSuppression {
496
467
  id: string;
@@ -506,8 +477,6 @@ interface DoctorCommandConfig {
506
477
  suppressions?: DoctorSuppression[];
507
478
  }
508
479
  interface DoctorOptions extends DoctorCommandConfig {}
509
- //#endregion
510
- //#region src/commands/doctor/types.d.ts
511
480
  type DoctorStatus = 'pass' | 'warn' | 'fail';
512
481
  interface DoctorCheck {
513
482
  id: string;
@@ -543,8 +512,6 @@ interface DoctorReport {
543
512
  rawSummary?: DoctorSummary;
544
513
  suppressions?: DoctorSuppressionReport[];
545
514
  }
546
- //#endregion
547
- //#region src/commands/doctor/security/types.d.ts
548
515
  type InstallPolicyKey = 'minimumReleaseAge' | 'minimumReleaseAgeStrict' | 'minimumReleaseAgeExclude' | 'minimumReleaseAgeIgnoreMissingTime' | 'trustPolicy' | 'trustPolicyExclude' | 'trustPolicyIgnoreAfter' | 'trustLockfile' | 'allowBuilds' | 'onlyBuiltDependencies' | 'onlyBuiltDependenciesFile' | 'neverBuiltDependencies' | 'ignoredBuiltDependencies' | 'ignoreDepScripts' | 'ignoreScripts' | 'dangerouslyAllowAllBuilds' | 'strictDepBuilds';
549
516
  interface InstallSecurityExpectations {
550
517
  minimumReleaseAge?: number;
@@ -615,8 +582,6 @@ interface InstallSecurityPresetPlan {
615
582
  preserved: InstallPolicyKey[];
616
583
  diff: string;
617
584
  }
618
- //#endregion
619
- //#region src/commands/init/tooling/types.d.ts
620
585
  declare const initToolingTargets: readonly ["commitlint", "eslint", "stylelint", "lefthook", "tsconfig", "vitest"];
621
586
  type InitToolingTarget = (typeof initToolingTargets)[number];
622
587
  interface InitToolingExecutionOptions {
@@ -630,12 +595,8 @@ interface InitToolingResult {
630
595
  skippedFiles: string[];
631
596
  updatedPackageJson: boolean;
632
597
  }
633
- //#endregion
634
- //#region src/commands/init/tooling/index.d.ts
635
598
  declare function normalizeInitToolingTargets(input: string[]): InitToolingTarget[];
636
599
  declare function initTooling(cwd: string, options?: InitToolingExecutionOptions): Promise<InitToolingResult>;
637
- //#endregion
638
- //#region src/commands/init/index.d.ts
639
600
  type InitPreset = 'minimal' | 'standard';
640
601
  interface InitCommandRuntimeOptions {
641
602
  tooling?: readonly InitToolingTarget[];
@@ -650,8 +611,6 @@ declare function initMetadata(cwd: string): Promise<void>;
650
611
  * 初始化命令入口,根据配置逐步生成基础文件。
651
612
  */
652
613
  declare function init(cwd: string, options?: InitCommandRuntimeOptions): Promise<void>;
653
- //#endregion
654
- //#region src/core/codeowners/types.d.ts
655
614
  interface CodeownersConfig {
656
615
  /** Exact package names or workspace-relative directory paths. */
657
616
  owners: Record<string, string[]>;
@@ -691,8 +650,6 @@ interface CodeownersOptions {
691
650
  cwd: string;
692
651
  query?: string;
693
652
  }
694
- //#endregion
695
- //#region src/types/workspace.d.ts
696
653
  /**
697
654
  * 工作区工具可接收的筛选选项。
698
655
  */
@@ -770,8 +727,6 @@ interface WorkspaceData {
770
727
  workspaceDir: string;
771
728
  packages: WorkspacePackageWithJsonPath[];
772
729
  }
773
- //#endregion
774
- //#region src/core/workspace-graph/types.d.ts
775
730
  type WorkspaceDependencyType = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
776
731
  interface WorkspaceGraphNode {
777
732
  /** Stable workspace-relative directory; names need not be unique. */
@@ -844,8 +799,6 @@ interface WorkspaceImpactResult {
844
799
  }>;
845
800
  diagnostics: WorkspaceGraphDiagnostic[];
846
801
  }
847
- //#endregion
848
- //#region src/core/workspace-boundaries/types.d.ts
849
802
  type BoundarySeverity = 'warn' | 'fail';
850
803
  /** Fields intersect; values within a field are alternatives. */
851
804
  interface WorkspaceBoundarySelector {
@@ -913,8 +866,6 @@ interface WorkspaceBoundariesReport {
913
866
  waived: number;
914
867
  };
915
868
  }
916
- //#endregion
917
- //#region src/types/clean.d.ts
918
869
  /**
919
870
  * `repo workspace clean` 命令配置,可控制自动选择、排除包等行为。
920
871
  */
@@ -942,8 +893,6 @@ interface CleanCommandConfig {
942
893
  */
943
894
  pinnedVersion?: string;
944
895
  }
945
- //#endregion
946
- //#region src/commands/api-report/types.d.ts
947
896
  interface PublicApiEntryConfig {
948
897
  /** Built declaration path relative to this workspace package. */
949
898
  entryPoint: string;
@@ -1019,8 +968,6 @@ interface PublicApiUpdateResult {
1019
968
  status: 'applied' | 'unchanged';
1020
969
  changed: string[];
1021
970
  }
1022
- //#endregion
1023
- //#region src/commands/hooks/types.d.ts
1024
971
  interface GitHookCheck {
1025
972
  /** Unique check name; repoctl prefixes generated native job names. */
1026
973
  name: string;
@@ -1044,8 +991,6 @@ interface GitHooksInstallResult {
1044
991
  configuredChecks: string[];
1045
992
  hooksPath?: string;
1046
993
  }
1047
- //#endregion
1048
- //#region src/types/project-references.d.ts
1049
994
  /** Explicit compilation projects, independently of npm dependency relationships. */
1050
995
  interface ProjectReferencesConfig {
1051
996
  /** Required for plan application; existing references can always be checked. */
@@ -1104,8 +1049,6 @@ interface ProjectReferencesApplyResult {
1104
1049
  recoveryFiles: string[];
1105
1050
  validation: ProjectReferencesPlan['validation'];
1106
1051
  }
1107
- //#endregion
1108
- //#region src/types/config/tooling.d.ts
1109
1052
  /**
1110
1053
  * `tooling.commitlint` 配置块。
1111
1054
  *
@@ -1282,8 +1225,6 @@ interface ToolingConfig {
1282
1225
  vitest?: VitestToolingConfig;
1283
1226
  vitestProject?: VitestProjectToolingConfig;
1284
1227
  }
1285
- //#endregion
1286
- //#region src/types/docs.d.ts
1287
1228
  type DocsChannel = 'preview' | 'stable';
1288
1229
  /** Opt in to exact public deployment-identity verification before advancing current. */
1289
1230
  interface DocsReadinessConfig {
@@ -1331,8 +1272,6 @@ interface DocsCommandConfig {
1331
1272
  /** Sites are explicitly enabled; an empty map does not deploy anything. */
1332
1273
  sites?: Record<string, DocsSiteConfig>;
1333
1274
  }
1334
- //#endregion
1335
- //#region src/types/env-cache.d.ts
1336
1275
  interface EnvCacheSuppression {
1337
1276
  rule: string;
1338
1277
  reason: string;
@@ -1409,8 +1348,6 @@ interface EnvCacheReport {
1409
1348
  };
1410
1349
  limitations: string[];
1411
1350
  }
1412
- //#endregion
1413
- //#region src/commands/release/lines/types.d.ts
1414
1351
  /** Git branches and npm channels; stable and maintenance use pnpm's native main lane. */
1415
1352
  interface ReleaseBranchesConfig {
1416
1353
  /** Primary stable branch. Defaults to main. */
@@ -1438,8 +1375,6 @@ interface ReleaseBranchRule {
1438
1375
  /** Stable or maintenance branch reached when exiting this prerelease lane. */
1439
1376
  target: string;
1440
1377
  }
1441
- //#endregion
1442
- //#region src/types/release.d.ts
1443
1378
  interface ReleaseAfterPublishHookConfig {
1444
1379
  /** 执行结果未知时是否允许重试;仅适用于可安全重复执行的脚本。默认 false。 */
1445
1380
  idempotent?: boolean;
@@ -1509,8 +1444,6 @@ interface ReleaseCommandConfig {
1509
1444
  afterPublish?: ReleaseAfterPublishHookConfig[];
1510
1445
  };
1511
1446
  }
1512
- //#endregion
1513
- //#region src/types/upgrade.d.ts
1514
1447
  /** Keep one reviewed local override (including its absence), not an entire file. */
1515
1448
  interface UpgradeKeepDecision {
1516
1449
  file: 'pnpm-workspace.yaml';
@@ -1650,8 +1583,6 @@ interface UpgradeApplyResult {
1650
1583
  /** Unresolved files are never written or recorded as successfully upgraded. */
1651
1584
  conflicts?: string[];
1652
1585
  }
1653
- //#endregion
1654
- //#region src/types/config.d.ts
1655
1586
  interface AiCommandConfig {
1656
1587
  /**
1657
1588
  * 默认输出路径,不填则自动创建 `agentic/prompts/<timestamp>/prompt.md` 文件夹与模板。
@@ -1851,8 +1782,6 @@ interface MonorepoConfig {
1851
1782
  */
1852
1783
  tooling?: ToolingConfig;
1853
1784
  }
1854
- //#endregion
1855
- //#region src/types/removal.d.ts
1856
1785
  interface WorkspaceRemovalOptions {
1857
1786
  target: string;
1858
1787
  /** Remove only the exact manifest dependency fields shown by the plan. */
@@ -1925,8 +1854,6 @@ interface WorkspaceRemovalResult {
1925
1854
  cleanupPending: string[];
1926
1855
  nextSteps: string[];
1927
1856
  }
1928
- //#endregion
1929
- //#region src/types/move.d.ts
1930
1857
  interface WorkspaceMoveOptions {
1931
1858
  target: string;
1932
1859
  /** Workspace-relative destination; omit for a package-name-only change. */
@@ -1997,8 +1924,6 @@ interface WorkspaceMoveResult {
1997
1924
  cleanupPending: string[];
1998
1925
  nextSteps: string[];
1999
1926
  }
2000
- //#endregion
2001
- //#region src/tooling/types.d.ts
2002
1927
  /**
2003
1928
  * `commitlint.config.*` 最终导出的配置类型。
2004
1929
  *
@@ -2093,8 +2018,6 @@ interface DefineVitestProjectConfigOptions {
2093
2018
  cwd?: string;
2094
2019
  options?: MonorepoVitestProjectConfigOptions;
2095
2020
  }
2096
- //#endregion
2097
- //#region src/tooling/linters.d.ts
2098
2021
  /**
2099
2022
  * 基于 `@icebreakers/commitlint-config` 创建 commitlint 配置。
2100
2023
  *
@@ -2181,8 +2104,6 @@ declare function createMonorepoStylelintConfig(options?: StylelintToolingConfig)
2181
2104
  * @returns 可直接导出的 Stylelint 配置对象
2182
2105
  */
2183
2106
  declare function defineStylelintConfig(input?: DefineConfigOptions<StylelintToolingConfig>): Promise<MonorepoStylelintConfig>;
2184
- //#endregion
2185
- //#region src/tooling/shared.d.ts
2186
2107
  /**
2187
2108
  * 读取当前工作目录下的 `repoctl.config.*` 中 `tooling` 配置块。
2188
2109
  *
@@ -2198,8 +2119,6 @@ declare function defineStylelintConfig(input?: DefineConfigOptions<StylelintTool
2198
2119
  * ```
2199
2120
  */
2200
2121
  declare function loadMonorepoToolingConfig(cwd?: string): Promise<NonNullable<ToolingConfig>>;
2201
- //#endregion
2202
- //#region src/tooling/tsconfig.d.ts
2203
2122
  /**
2204
2123
  * 创建 monorepo 内置的 TypeScript 基线配置。
2205
2124
  *
@@ -2214,8 +2133,6 @@ declare function createMonorepoTsconfig(options?: TsconfigToolingConfig): Monore
2214
2133
  * @returns 可直接写入或导出的 `tsconfig.json` 配置对象
2215
2134
  */
2216
2135
  declare function defineTsconfigConfig(input?: DefineConfigOptions<TsconfigToolingConfig>): Promise<MonorepoTsconfig>;
2217
- //#endregion
2218
- //#region src/tooling/vitest/index.d.ts
2219
2136
  /**
2220
2137
  * 创建 monorepo 根级 Vitest 配置。
2221
2138
  *
@@ -2303,5 +2220,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
2303
2220
  * @returns 可直接传给 `defineProject()` 或与其他 Vite/Vitest 配置 merge 的项目级配置片段
2304
2221
  */
2305
2222
  declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
2306
- //#endregion
2307
2223
  export { UpgradeKeepDecision as $, DependencyAdmissionConfig as $n, DependencySection as $r, PublicApiUpdatePlan as $t, WorkspaceMoveOptions as A, CodeownersReport as An, OrganizationPresetReference as Ar, EslintToolingConfig as At, AiCommandConfig as B, InstallSecurityOptions as Bn, generateAgenticTemplates as Br, ProjectReferencesOperation as Bt, MonorepoVitestConfigOverrides as C, WorkspacePackageSummary as Cn, ConfigDiagnostic as Cr, DocsCloudflareWorkersTarget as Ct, ConfigValues as D, CodeownersDiagnostic as Dn, OrganizationPresetDiagnostic as Dr, DocsScriptDeploymentTarget as Dt, MonorepoVitestProjectConfigResult as E, CodeownersConfig as En, OrganizationPresetAsset as Er, DocsReadinessConfig as Et, WorkspaceRemovalEntry as F, normalizeInitToolingTargets as Fn, AgenticTemplateTask as Fr, VitestToolingConfig as Ft, MonorepoConfig as G, DoctorReport as Gn, DependencyConsistencyGroup as Gr, GitHooksInstallResult as Gt, CreateCommandConfig as H, InstallSecurityReport as Hn, CliOpts as Hr, GitHookCheck as Ht, WorkspaceRemovalFile as I, initToolingTargets as In, GenerateAgenticTemplateOptions as Ir, ProjectReferencesApplyResult as It, UpgradeApplyResult as J, DoctorSuppressionReport as Jn, DependencyFixPlan as Jr, PublicApiEntryConfig as Jt, UpgradeCommandConfig as K, DoctorStatus as Kn, DependencyFileChange as Kr, PublicApiConfig as Kt, WorkspaceRemovalOptions as L, InstallBuildDecision as Ln, createTimestampFolderName as Lr, ProjectReferencesCheck as Lt, WorkspaceMoveResult as M, init as Mn, OrganizationPresetSource as Mr, ToolingConfig as Mt, WorkspaceMoveReview as N, initMetadata as Nn, OrganizationPresetTemplate as Nr, TsconfigToolingConfig as Nt, SimpleGit as O, CodeownersOptions as On, OrganizationPresetLayer as Or, DocsSiteConfig as Ot, WorkspaceRemovalBlocker as P, initTooling as Pn, AgenticTemplateFormat as Pr, VitestProjectToolingConfig as Pt, UpgradeInput as Q, AdmissionDeclaration as Qn, DependencyReport as Qr, PublicApiReport as Qt, WorkspaceRemovalPlan as R, InstallPolicyKey as Rn, defaultAgenticBaseDir as Rr, ProjectReferencesConfig as Rt, MonorepoVitestConfigOptions as S, WorkspacePackageManifest as Sn, TemplateCatalogEntry as Sr, DocsChannel as St, MonorepoVitestProjectConfigOptions as T, WorkspacePackageWithJsonPath as Tn, ConfigValueSource as Tr, DocsDeploymentTarget as Tt, InitCommandConfig as U, InstallSecuritySetting as Un, DependenciesCommandConfig as Ur, GitHooksConfig as Ut, CreateChoiceOption as V, InstallSecurityPresetPlan as Vn, loadAgenticTasks as Vr, ProjectReferencesPlan as Vt, MirrorCommandConfig as W, DoctorCheck as Wn, DependencyApplyResult as Wr, GitHooksInstallOptions as Wt, UpgradeFilePlan as X, DoctorOptions as Xn, DependencyOccurrence as Xr, PublicApiOptions as Xt, UpgradeBaselineChange as Y, DoctorCommandConfig as Yn, DependencyGroupStatus as Yr, PublicApiEntryReport as Yt, UpgradeFileStatus as Z, DoctorSuppression as Zn, DependencyProtocol as Zr, PublicApiPackageConfig as Zt, DefineVitestProjectConfigOptions as _, WorkspaceImpactResult as _n, resolveTemplateCatalog as _r, EnvCacheOptions as _t, createMonorepoTsconfig as a, WorkspaceBoundaryException as an, applyCreateNewProjectPlan as ar, UpgradePlan as at, MonorepoStylelintConfig as b, WorkspaceData as bn, TemplateCatalog as br, EnvCacheTask as bt, createMonorepoCommitlintConfig as c, WorkspaceBoundarySelector as cn, CreateNewProjectPlan as cr, ReleaseAfterPublishHookConfig as ct, defineCommitlintConfig as d, WorkspaceGraphDiagnostic as dn, ResolvedTemplateSource as dr, ReleaseRegistryConfig as dt, DependencyVersionGroup as ei, PublicApiUpdateResult as en, DependencyAdmissionException as er, UpgradeMergeDetails as et, defineEslintConfig as f, WorkspaceGraphEdge as fn, TemplateSourceOptions as fr, ReleaseBranchRule as ft, DefineVitestConfigOptions as g, WorkspaceImpactOptions as gn, templateMap as gr, EnvCacheFinding as gt, DefineEslintConfigOptions as h, WorkspaceGraphOptions as hn, getTemplateMap as hr, EnvCacheEvidence as ht, defineVitestProjectConfig as i, WorkspaceBoundariesReport as in, DependencyAdmissionRule as ir, UpgradeOverrideFinding as it, WorkspaceMovePlan as j, WorkspaceOwnership as jn, OrganizationPresetResolution as jr, StylelintToolingConfig as jt, SimpleGitOptions as k, CodeownersPlan as kn, OrganizationPresetManifest as kr, CommitlintToolingConfig as kt, createMonorepoEslintConfig as l, WorkspaceDependencyType as ln, resolveCreateNewProjectPlan as lr, ReleaseCommandConfig as lt, DefineConfigOptions as m, WorkspaceGraphNode as mn, getCreateChoices as mr, EnvCacheConfig as mt, createMonorepoVitestProjectConfig as n, BoundarySeverity as nn, DependencyAdmissionOptions as nr, UpgradeMigrationsPlan as nt, defineTsconfigConfig as o, WorkspaceBoundaryFinding as on, createNewProject as or, UpgradeWorkspacePolicy as ot, defineStylelintConfig as p, WorkspaceGraphFilter as pn, TemplateSourceRequest as pr, ReleaseBranchesConfig as pt, UpgradeApplyOptions as q, DoctorSummary as qn, DependencyFixOptions as qr, PublicApiDiagnostic as qt, defineVitestConfig as r, WorkspaceBoundariesConfig as rn, DependencyAdmissionReport as rr, UpgradeOptions as rt, loadMonorepoToolingConfig as s, WorkspaceBoundaryRule as sn, CreateNewProjectOptions as sr, NightlyProvider as st, createMonorepoVitestConfig as t, CleanCommandConfig as tn, DependencyAdmissionFinding as tr, UpgradeMigrationStep as tt, createMonorepoStylelintConfig as u, WorkspaceGraph as un, resolveRemoteTemplateSource as ur, ReleaseNightlyConfig as ut, MonorepoCommitlintConfig as v, WorkspaceWhyResult as vn, CreateTemplateDefinition as vr, EnvCacheReport as vt, MonorepoVitestConfigResult as w, WorkspacePackageSummaryData as wn, ConfigSourceLayer as wr, DocsCommandConfig as wt, MonorepoTsconfig as x, WorkspacePackage as xn, TemplateCatalogDiagnostic as xr, EnvCacheVariable as xt, MonorepoEslintConfig as y, GetWorkspacePackagesOptions as yn, ResolveTemplateCatalogOptions as yr, EnvCacheSuppression as yt, WorkspaceRemovalResult as z, InstallSecurityExpectations as zn, generateAgenticTemplate as zr, ProjectReferencesDiagnostic as zt };