@icebreakers/monorepo 6.0.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{baseline-B6uEfHrm.mjs → baseline-Dpdng8Pw.mjs} +1 -1
- package/dist/{catalog-YipXrou_.mjs → catalog-A1_tGyBz.mjs} +3 -3
- package/dist/cli.mjs +186 -115
- package/dist/{commands-D1KtdxnV.mjs → commands-C8PiGh9h.mjs} +1507 -149
- package/dist/{config--wYfkdsO.mjs → config-CtnhpveO.mjs} +3 -3
- package/dist/{create-flow-D3ZzvBw6.mjs → create-flow-CqtNwZs7.mjs} +3 -3
- package/dist/{deps-qu9CwEKc.mjs → deps-CFZftEq2.mjs} +3 -3
- package/dist/docs-context-entry.d.mts +25 -0
- package/dist/docs-context-entry.mjs +88 -0
- package/dist/{execute-DP6M6JqN.mjs → execute-Brlvq-TY.mjs} +2 -2
- package/dist/{execute-BVtr43XS.mjs → execute-DE3pJ4nx.mjs} +2 -2
- package/dist/{format-VPlFgfoH.mjs → format-BXQ2yRvk.mjs} +1 -1
- package/dist/{index-DewDhzGv.d.mts → index-BJaI8Sig.d.mts} +170 -2
- package/dist/index.d.mts +45 -116
- package/dist/index.mjs +10 -10
- package/dist/{inputs-B_-kWnm2.mjs → inputs-DRWom7Va.mjs} +1 -1
- package/dist/{npm-S2sT1UgC.mjs → npm-CrQi6Gci.mjs} +1 -1
- package/dist/{plan-DuHMR5Za.mjs → plan-DT1Gz8tE.mjs} +1 -1
- package/dist/{run-BGHVj0Lj.mjs → run-BBf92Scj.mjs} +4 -4
- package/dist/{save-UiJgdSaY.mjs → save-CCCUswjG.mjs} +3 -3
- package/dist/{scan-Bg1EPIk6.mjs → scan-KcMaJTx2.mjs} +5 -4
- package/dist/{template-drift-BOk4oxoR.mjs → template-drift-BKCMx9vC.mjs} +3 -3
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-Cg5I2q47.mjs → transaction-CTFrGYJO.mjs} +2 -2
- package/dist/{tsconfig-rZG7b9Ul.mjs → tsconfig-CO_6DRDo.mjs} +127 -42
- package/dist/{vitest-BbbU7-qn.mjs → vitest-Deitv0TQ.mjs} +1 -1
- package/dist/{workspace-tasks--x70rhb8.mjs → workspace-tasks-CbetXdoh.mjs} +6 -6
- package/package.json +8 -3
- package/resources/maintenance/validate.mjs +14 -0
- package/resources/skills/repoctl/references/commands.md +36 -0
- package/resources/skills/repoctl/references/config.md +10 -1
- package/resources/skills/repoctl/references/dependencies.md +2 -0
- package/resources/skills/repoctl/references/templates.md +6 -0
|
@@ -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-CbetXdoh.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-DRWom7Va.mjs";
|
|
3
|
+
import { knipRoot } from "./plan-DT1Gz8tE.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 { d as logger } from "./execute-
|
|
3
|
-
import { Dt as
|
|
1
|
+
import { St as localize, jt as fs$1 } from "./workspace-tasks-CbetXdoh.mjs";
|
|
2
|
+
import { d as logger } from "./execute-DE3pJ4nx.mjs";
|
|
3
|
+
import { Dt as createNewProject, It as loadTemplateCatalogContext, Ot as defaultTemplate, Pt as createTemplateCatalog, kt as resolveCreateNewProjectPlan } from "./commands-C8PiGh9h.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-CbetXdoh.mjs";
|
|
3
|
+
import { t as scanDependencies } from "./scan-KcMaJTx2.mjs";
|
|
4
|
+
import { a as prepareDependencyFix, i as dependencyNextSteps, n as inspectDependencyPlanInputs, o as dependencyReport, r as validateDependencyPlan, t as writeDependencyTransaction } from "./transaction-CTFrGYJO.mjs";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
|
6
6
|
//#region src/commands/deps/apply.ts
|
|
7
7
|
async function applyDependencyFixPlan(cwd, plan) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/docs-context/context.d.ts
|
|
2
|
+
type DocsChannel = 'preview' | 'stable';
|
|
3
|
+
interface DocsContextOptions {
|
|
4
|
+
channel?: string | undefined;
|
|
5
|
+
url?: string | undefined;
|
|
6
|
+
previewOrigin: string;
|
|
7
|
+
stableOrigin: string;
|
|
8
|
+
}
|
|
9
|
+
interface DocsContext {
|
|
10
|
+
channel: DocsChannel;
|
|
11
|
+
preview: boolean;
|
|
12
|
+
origin: string;
|
|
13
|
+
stableOrigin: string;
|
|
14
|
+
}
|
|
15
|
+
/** Resolve public build metadata only; deployment authorization belongs to repo docs. */
|
|
16
|
+
export declare function resolveDocsContext(options: DocsContextOptions): DocsContext;
|
|
17
|
+
export declare const docsPreviewRobots = "noindex, nofollow, noarchive";
|
|
18
|
+
/** Sitemap paths belong to the framework; preview never advertises one. */
|
|
19
|
+
export declare function docsRobots(context: DocsContext, sitemapUrl?: string): string;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/docs-context/headers.d.ts
|
|
22
|
+
/** Preserve owner and Nimbus headers; remove only this helper's marked preview policy. */
|
|
23
|
+
export declare function mergeDocsHeaders(existing: string, context: DocsContext): string;
|
|
24
|
+
//#endregion
|
|
25
|
+
export type { DocsChannel, DocsContext, DocsContextOptions };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
//#region src/docs-context/context.ts
|
|
2
|
+
function origin(value, label) {
|
|
3
|
+
try {
|
|
4
|
+
const url = new URL(value);
|
|
5
|
+
if (!/^https?:\/\/[^/?#\\\s]+\/?$/i.test(value) || url.username || url.password || url.search || url.hash || url.pathname !== "/" || value !== value.trim()) throw new Error("Invalid origin");
|
|
6
|
+
return url.origin;
|
|
7
|
+
} catch {
|
|
8
|
+
throw new Error(`${label} must be an HTTP(S) origin without credentials, path, query or fragment`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/** Resolve public build metadata only; deployment authorization belongs to repo docs. */
|
|
12
|
+
function resolveDocsContext(options) {
|
|
13
|
+
const channel = options.channel === void 0 || options.channel === "" ? "preview" : options.channel;
|
|
14
|
+
if (channel !== "preview" && channel !== "stable") throw new Error("Unsupported documentation channel; expected preview or stable");
|
|
15
|
+
const previewOrigin = origin(options.previewOrigin, "Documentation previewOrigin");
|
|
16
|
+
const stableOrigin = origin(options.stableOrigin, "Documentation stableOrigin");
|
|
17
|
+
if (previewOrigin === stableOrigin) throw new Error("Documentation preview and stable origins must be distinct");
|
|
18
|
+
const selected = channel === "preview" ? previewOrigin : stableOrigin;
|
|
19
|
+
if (options.url !== void 0 && options.url !== "" && origin(options.url, "Documentation URL") !== selected) throw new Error("Documentation URL does not match the configured channel origin");
|
|
20
|
+
return {
|
|
21
|
+
channel,
|
|
22
|
+
preview: channel === "preview",
|
|
23
|
+
origin: selected,
|
|
24
|
+
stableOrigin
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const docsPreviewRobots = "noindex, nofollow, noarchive";
|
|
28
|
+
/** Sitemap paths belong to the framework; preview never advertises one. */
|
|
29
|
+
function docsRobots(context, sitemapUrl = `${context.origin}/sitemap.xml`) {
|
|
30
|
+
if (context.preview) return "User-agent: *\nDisallow: /\n";
|
|
31
|
+
const sitemap = new URL(sitemapUrl);
|
|
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
|
+
return `User-agent: *\nAllow: /\nDisallow: /_headers\n\nSitemap: ${sitemap.href}\n`;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/docs-context/headers.ts
|
|
37
|
+
const blockStart = "# repoctl docs preview (generated)";
|
|
38
|
+
const blockEnd = "# End repoctl docs preview";
|
|
39
|
+
const fieldsStart = "# repoctl docs preview headers (generated)";
|
|
40
|
+
const fieldsEnd = "# End repoctl docs preview headers";
|
|
41
|
+
const markers = /* @__PURE__ */ new Map([[blockStart, blockEnd], [fieldsStart, fieldsEnd]]);
|
|
42
|
+
const ends = new Set(markers.values());
|
|
43
|
+
function removeOwnedHeaders(existing) {
|
|
44
|
+
const lines = existing.match(/[^\n]*(?:\n|$)/g)?.filter(Boolean) ?? [];
|
|
45
|
+
const clean = [];
|
|
46
|
+
let expectedEnd;
|
|
47
|
+
for (const line of lines) {
|
|
48
|
+
const text = line.trim();
|
|
49
|
+
const end = markers.get(text);
|
|
50
|
+
if (end) {
|
|
51
|
+
if (expectedEnd) throw new Error("Nested repoctl documentation header markers");
|
|
52
|
+
expectedEnd = end;
|
|
53
|
+
} else if (ends.has(text)) {
|
|
54
|
+
if (text !== expectedEnd) throw new Error("Unbalanced repoctl documentation header markers");
|
|
55
|
+
expectedEnd = void 0;
|
|
56
|
+
} else if (/^# (?:End )?repoctl docs preview\b/.test(text)) throw new Error("Malformed repoctl documentation header marker");
|
|
57
|
+
else if (!expectedEnd) clean.push(line);
|
|
58
|
+
}
|
|
59
|
+
if (expectedEnd) throw new Error("Unbalanced repoctl documentation header markers");
|
|
60
|
+
return clean;
|
|
61
|
+
}
|
|
62
|
+
/** Preserve owner and Nimbus headers; remove only this helper's marked preview policy. */
|
|
63
|
+
function mergeDocsHeaders(existing, context) {
|
|
64
|
+
const lines = removeOwnedHeaders(existing);
|
|
65
|
+
if (!context.preview) return lines.join("");
|
|
66
|
+
const newline = existing.includes("\r\n") ? "\r\n" : "\n";
|
|
67
|
+
const wildcard = lines.findIndex((line) => /^\/\*[ \t]*(?:\r?\n)?$/.test(line));
|
|
68
|
+
if (wildcard !== -1) {
|
|
69
|
+
if (!lines[wildcard].endsWith("\n")) lines[wildcard] += newline;
|
|
70
|
+
lines.splice(wildcard + 1, 0, [
|
|
71
|
+
` ${fieldsStart}`,
|
|
72
|
+
` X-Robots-Tag: ${docsPreviewRobots}`,
|
|
73
|
+
` ${fieldsEnd}`,
|
|
74
|
+
""
|
|
75
|
+
].join(newline));
|
|
76
|
+
return lines.join("");
|
|
77
|
+
}
|
|
78
|
+
const content = lines.join("");
|
|
79
|
+
return `${content}${content && !content.endsWith("\n") ? newline : ""}${[
|
|
80
|
+
blockStart,
|
|
81
|
+
"/*",
|
|
82
|
+
` X-Robots-Tag: ${docsPreviewRobots}`,
|
|
83
|
+
blockEnd,
|
|
84
|
+
""
|
|
85
|
+
].join(newline)}`;
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { docsPreviewRobots, docsRobots, mergeDocsHeaders, resolveDocsContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as localize, jt as fs } from "./workspace-tasks
|
|
2
|
-
import { d as logger, t as runCheckWithReport } from "./execute-
|
|
1
|
+
import { St as localize, jt as fs } from "./workspace-tasks-CbetXdoh.mjs";
|
|
2
|
+
import { d as logger, t as runCheckWithReport } from "./execute-DE3pJ4nx.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 } 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-CbetXdoh.mjs";
|
|
2
|
+
import { d as loadMonorepoConfig } from "./tsconfig-CO_6DRDo.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-CbetXdoh.mjs";
|
|
2
2
|
//#region src/commands/check/cache/format.ts
|
|
3
3
|
function label(value, markdown) {
|
|
4
4
|
return markdown ? value.replace(/[\\`*_{}[\]()#+.!|<>~-]/gu, "\\$&") : value;
|
|
@@ -1258,11 +1258,36 @@ interface ToolingConfig {
|
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region src/types/docs.d.ts
|
|
1260
1260
|
type DocsChannel = 'preview' | 'stable';
|
|
1261
|
-
|
|
1261
|
+
/** Opt in to exact public deployment-identity verification before advancing current. */
|
|
1262
|
+
interface DocsReadinessConfig {
|
|
1263
|
+
/** Total polling budget per invocation, 1..600000 ms; defaults to 120000. */
|
|
1264
|
+
timeoutMs?: number;
|
|
1265
|
+
/** Header and body budget per request, 1..30000 ms; defaults to 10000. */
|
|
1266
|
+
requestTimeoutMs?: number;
|
|
1267
|
+
}
|
|
1268
|
+
interface DocsScriptDeploymentTarget {
|
|
1262
1269
|
/** Root package.json script; the provider writes { versionId, url? } to REPO_DOCS_RESULT_FILE. */
|
|
1263
1270
|
deployScript: string;
|
|
1264
1271
|
url?: string;
|
|
1272
|
+
readiness?: DocsReadinessConfig;
|
|
1273
|
+
provider?: never;
|
|
1274
|
+
config?: never;
|
|
1275
|
+
workerName?: never;
|
|
1276
|
+
accountId?: never;
|
|
1277
|
+
environment?: never;
|
|
1278
|
+
}
|
|
1279
|
+
/** Static, assets-only Worker; identities are checked against the frozen Wrangler configuration. */
|
|
1280
|
+
interface DocsCloudflareWorkersTarget {
|
|
1281
|
+
provider: 'cloudflare-workers';
|
|
1282
|
+
config: string;
|
|
1283
|
+
workerName: string;
|
|
1284
|
+
accountId: string;
|
|
1285
|
+
environment?: string;
|
|
1286
|
+
url?: string;
|
|
1287
|
+
readiness?: DocsReadinessConfig;
|
|
1288
|
+
deployScript?: never;
|
|
1265
1289
|
}
|
|
1290
|
+
type DocsDeploymentTarget = DocsScriptDeploymentTarget | DocsCloudflareWorkersTarget;
|
|
1266
1291
|
interface DocsSiteConfig {
|
|
1267
1292
|
/** Product packages documented by this site; workspace runtime dependencies are included. */
|
|
1268
1293
|
packages: string[];
|
|
@@ -1456,6 +1481,147 @@ interface ReleaseCommandConfig {
|
|
|
1456
1481
|
};
|
|
1457
1482
|
}
|
|
1458
1483
|
//#endregion
|
|
1484
|
+
//#region src/types/upgrade.d.ts
|
|
1485
|
+
/** Keep one reviewed local override (including its absence), not an entire file. */
|
|
1486
|
+
interface UpgradeKeepDecision {
|
|
1487
|
+
file: 'pnpm-workspace.yaml';
|
|
1488
|
+
path: ['overrides', string];
|
|
1489
|
+
reason: string;
|
|
1490
|
+
upstreamHash: string;
|
|
1491
|
+
localHash: string;
|
|
1492
|
+
/** Inclusive UTC calendar date; changed values always require renewed review. */
|
|
1493
|
+
expires?: string;
|
|
1494
|
+
}
|
|
1495
|
+
interface UpgradeOverrideFinding {
|
|
1496
|
+
path: ['overrides', string];
|
|
1497
|
+
status: 'compatible' | 'unverified' | 'deferred' | 'conflict' | 'kept' | 'stale-decision' | 'expired-decision';
|
|
1498
|
+
detail: string;
|
|
1499
|
+
upstreamHash: string;
|
|
1500
|
+
localHash: string;
|
|
1501
|
+
affected: {
|
|
1502
|
+
path: string;
|
|
1503
|
+
specifier: string;
|
|
1504
|
+
section?: string;
|
|
1505
|
+
group?: string;
|
|
1506
|
+
reason?: string;
|
|
1507
|
+
}[];
|
|
1508
|
+
}
|
|
1509
|
+
interface UpgradeWorkspacePolicy {
|
|
1510
|
+
findings: UpgradeOverrideFinding[];
|
|
1511
|
+
/** Earliest inclusive expiry of a decision used by this plan. */
|
|
1512
|
+
expires?: string;
|
|
1513
|
+
}
|
|
1514
|
+
interface UpgradeOptions extends CliOpts {
|
|
1515
|
+
/** Return a complete plan without preparing assets, prompting or writing files. */
|
|
1516
|
+
dryRun?: boolean;
|
|
1517
|
+
/** Override the configured asset selection with exact files or directory prefixes. */
|
|
1518
|
+
targets?: string[];
|
|
1519
|
+
/** Whether configured targets extend the default asset selection. */
|
|
1520
|
+
mergeTargets?: boolean;
|
|
1521
|
+
/** Attest an exact previous template version when no migration history exists. */
|
|
1522
|
+
fromVersion?: string;
|
|
1523
|
+
}
|
|
1524
|
+
type UpgradeFileStatus = 'add' | 'modify' | 'delete' | 'identical' | 'skip' | 'conflict';
|
|
1525
|
+
/** A reviewed, transactional change to one root asset's upstream baseline. */
|
|
1526
|
+
interface UpgradeBaselineChange {
|
|
1527
|
+
path: string;
|
|
1528
|
+
beforeHash: string | null;
|
|
1529
|
+
afterHash: string | null;
|
|
1530
|
+
content: string | null;
|
|
1531
|
+
}
|
|
1532
|
+
interface UpgradeMergeDetails {
|
|
1533
|
+
baseHash: string | null;
|
|
1534
|
+
localHash: string | null;
|
|
1535
|
+
upstreamHash: string | null;
|
|
1536
|
+
conflicts: {
|
|
1537
|
+
baseStart: number;
|
|
1538
|
+
baseEnd: number;
|
|
1539
|
+
base: string;
|
|
1540
|
+
local: string;
|
|
1541
|
+
upstream: string;
|
|
1542
|
+
}[];
|
|
1543
|
+
}
|
|
1544
|
+
interface UpgradeFilePlan {
|
|
1545
|
+
path: string;
|
|
1546
|
+
status: UpgradeFileStatus;
|
|
1547
|
+
/** Stable machine-readable explanation. */
|
|
1548
|
+
reason: string;
|
|
1549
|
+
detail: string;
|
|
1550
|
+
beforeHash: string | null;
|
|
1551
|
+
afterHash: string | null;
|
|
1552
|
+
/** Exact planned bytes in base64; null means deletion or no write. */
|
|
1553
|
+
content: string | null;
|
|
1554
|
+
binary: boolean;
|
|
1555
|
+
diff: string | null;
|
|
1556
|
+
/** Files in a group must be applied together. */
|
|
1557
|
+
group: string | null;
|
|
1558
|
+
/** The legacy interactive command can approve these changes without a prompt. */
|
|
1559
|
+
automatic: boolean;
|
|
1560
|
+
/** Present only when this reviewed selection also changes its baseline. */
|
|
1561
|
+
baseline?: UpgradeBaselineChange;
|
|
1562
|
+
merge?: UpgradeMergeDetails;
|
|
1563
|
+
workspacePolicy?: UpgradeWorkspacePolicy;
|
|
1564
|
+
}
|
|
1565
|
+
interface UpgradeInput {
|
|
1566
|
+
/** package is the installed template package's read-only package.json. */
|
|
1567
|
+
area: 'target' | 'asset' | 'package' | 'config';
|
|
1568
|
+
path: string;
|
|
1569
|
+
hash: string | null;
|
|
1570
|
+
}
|
|
1571
|
+
interface UpgradeMigrationStep {
|
|
1572
|
+
id: string;
|
|
1573
|
+
version: string;
|
|
1574
|
+
status: 'pending' | 'completed' | 'failed' | 'skipped' | 'blocked';
|
|
1575
|
+
reason: string;
|
|
1576
|
+
files: string[];
|
|
1577
|
+
}
|
|
1578
|
+
interface UpgradeMigrationsPlan {
|
|
1579
|
+
fromVersion: string | null;
|
|
1580
|
+
toVersion: string;
|
|
1581
|
+
steps: UpgradeMigrationStep[];
|
|
1582
|
+
/** Recovery explicitly distinguishes files already written before interruption. */
|
|
1583
|
+
recovery: {
|
|
1584
|
+
path: string;
|
|
1585
|
+
state: 'before' | 'after';
|
|
1586
|
+
}[];
|
|
1587
|
+
/** Reviewed intermediate states; completed content is a normal plan file. */
|
|
1588
|
+
ledger?: {
|
|
1589
|
+
path: string;
|
|
1590
|
+
pending: string;
|
|
1591
|
+
failed: string;
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
interface UpgradePlan {
|
|
1595
|
+
schemaVersion: 1;
|
|
1596
|
+
cwd: string;
|
|
1597
|
+
rootDir: string;
|
|
1598
|
+
assetDir: string;
|
|
1599
|
+
status: 'ready' | 'blocked';
|
|
1600
|
+
targets: string[];
|
|
1601
|
+
discovery: {
|
|
1602
|
+
patterns: string[] | null;
|
|
1603
|
+
manifests: string[];
|
|
1604
|
+
} | null;
|
|
1605
|
+
inputs: UpgradeInput[];
|
|
1606
|
+
files: UpgradeFilePlan[];
|
|
1607
|
+
blockers: {
|
|
1608
|
+
id: string;
|
|
1609
|
+
path: string | null;
|
|
1610
|
+
detail: string;
|
|
1611
|
+
}[];
|
|
1612
|
+
migrations?: UpgradeMigrationsPlan;
|
|
1613
|
+
}
|
|
1614
|
+
interface UpgradeApplyOptions {
|
|
1615
|
+
/** Apply only these reviewed paths; omitted means every actionable plan entry. */
|
|
1616
|
+
files?: string[];
|
|
1617
|
+
}
|
|
1618
|
+
interface UpgradeApplyResult {
|
|
1619
|
+
status: 'applied' | 'unchanged';
|
|
1620
|
+
changed: string[];
|
|
1621
|
+
/** Unresolved files are never written or recorded as successfully upgraded. */
|
|
1622
|
+
conflicts?: string[];
|
|
1623
|
+
}
|
|
1624
|
+
//#endregion
|
|
1459
1625
|
//#region src/types/config.d.ts
|
|
1460
1626
|
interface AiCommandConfig {
|
|
1461
1627
|
/**
|
|
@@ -1544,6 +1710,8 @@ interface CreateChoiceOption {
|
|
|
1544
1710
|
* `repo workspace upgrade` 命令配置,覆盖脚本、目标文件等能力。
|
|
1545
1711
|
*/
|
|
1546
1712
|
interface UpgradeCommandConfig extends Partial<CliOpts> {
|
|
1713
|
+
/** Fingerprint-bound decisions retaining individual local pnpm overrides. */
|
|
1714
|
+
keep?: UpgradeKeepDecision[];
|
|
1547
1715
|
/**
|
|
1548
1716
|
* 额外需要写入的目标文件列表。
|
|
1549
1717
|
* @default []
|
|
@@ -2107,4 +2275,4 @@ declare function createMonorepoVitestProjectConfig(options?: MonorepoVitestProje
|
|
|
2107
2275
|
*/
|
|
2108
2276
|
declare function defineVitestProjectConfig(input?: DefineVitestProjectConfigOptions): Promise<MonorepoVitestProjectConfigResult>;
|
|
2109
2277
|
//#endregion
|
|
2110
|
-
export {
|
|
2278
|
+
export { UpgradeKeepDecision as $, DependencyAdmissionReport as $n, WorkspaceBoundariesConfig as $t, WorkspaceMoveOptions as A, initTooling as An, AgenticTemplateFormat as Ar, EslintToolingConfig as At, AiCommandConfig as B, DoctorCheck as Bn, DependencyApplyResult as Br, ProjectReferencesOperation as Bt, MonorepoVitestConfigOverrides as C, CodeownersDiagnostic as Cn, OrganizationPresetDiagnostic as Cr, DocsCloudflareWorkersTarget as Ct, ConfigValues as D, WorkspaceOwnership as Dn, OrganizationPresetResolution as Dr, DocsScriptDeploymentTarget as Dt, MonorepoVitestProjectConfigResult as E, CodeownersReport as En, OrganizationPresetReference as Er, DocsReadinessConfig as Et, WorkspaceRemovalEntry as F, InstallSecurityExpectations as Fn, generateAgenticTemplate as Fr, VitestToolingConfig as Ft, MonorepoConfig as G, DoctorCommandConfig as Gn, DependencyGroupStatus as Gr, PublicApiEntryReport as Gt, CreateCommandConfig as H, DoctorStatus as Hn, DependencyFileChange as Hr, PublicApiConfig as Ht, WorkspaceRemovalFile as I, InstallSecurityOptions as In, generateAgenticTemplates as Ir, ProjectReferencesApplyResult as It, UpgradeApplyResult as J, AdmissionDeclaration as Jn, DependencyReport as Jr, PublicApiReport as Jt, UpgradeCommandConfig as K, DoctorOptions as Kn, DependencyOccurrence as Kr, PublicApiOptions as Kt, WorkspaceRemovalOptions as L, InstallSecurityPresetPlan as Ln, loadAgenticTasks as Lr, ProjectReferencesCheck as Lt, WorkspaceMoveResult as M, initToolingTargets as Mn, GenerateAgenticTemplateOptions as Mr, ToolingConfig as Mt, WorkspaceMoveReview as N, InstallBuildDecision as Nn, createTimestampFolderName as Nr, TsconfigToolingConfig as Nt, SimpleGit as O, init as On, OrganizationPresetSource as Or, DocsSiteConfig as Ot, WorkspaceRemovalBlocker as P, InstallPolicyKey as Pn, defaultAgenticBaseDir as Pr, VitestProjectToolingConfig as Pt, UpgradeInput as Q, DependencyAdmissionOptions as Qn, BoundarySeverity as Qt, WorkspaceRemovalPlan as R, InstallSecurityReport as Rn, CliOpts as Rr, ProjectReferencesConfig as Rt, MonorepoVitestConfigOptions as S, CodeownersConfig as Sn, OrganizationPresetAsset as Sr, DocsChannel as St, MonorepoVitestProjectConfigOptions as T, CodeownersPlan as Tn, OrganizationPresetManifest as Tr, DocsDeploymentTarget as Tt, InitCommandConfig as U, DoctorSummary as Un, DependencyFixOptions as Ur, PublicApiDiagnostic as Ut, CreateChoiceOption as V, DoctorReport as Vn, DependencyConsistencyGroup as Vr, ProjectReferencesPlan as Vt, MirrorCommandConfig as W, DoctorSuppressionReport as Wn, DependencyFixPlan as Wr, PublicApiEntryConfig as Wt, UpgradeFilePlan as X, DependencyAdmissionException as Xn, DependencyVersionGroup as Xr, PublicApiUpdateResult as Xt, UpgradeBaselineChange as Y, DependencyAdmissionConfig as Yn, DependencySection as Yr, PublicApiUpdatePlan as Yt, UpgradeFileStatus as Z, DependencyAdmissionFinding as Zn, CleanCommandConfig as Zt, DefineVitestProjectConfigOptions as _, WorkspacePackage as _n, TemplateCatalogDiagnostic as _r, EnvCacheOptions as _t, createMonorepoTsconfig as a, WorkspaceDependencyType as an, resolveCreateNewProjectPlan as ar, UpgradePlan as at, MonorepoStylelintConfig as b, WorkspacePackageSummaryData as bn, ConfigSourceLayer as br, EnvCacheTask as bt, createMonorepoCommitlintConfig as c, WorkspaceGraphEdge as cn, TemplateSourceOptions as cr, ReleaseAfterPublishHookConfig as ct, defineCommitlintConfig as d, WorkspaceGraphOptions as dn, getTemplateMap as dr, ReleaseRegistryConfig as dt, WorkspaceBoundariesReport as en, DependencyAdmissionRule as er, UpgradeMergeDetails as et, defineEslintConfig as f, WorkspaceImpactOptions as fn, templateMap as fr, ReleaseBranchRule as ft, DefineVitestConfigOptions as g, WorkspaceData as gn, TemplateCatalog as gr, EnvCacheFinding as gt, DefineEslintConfigOptions as h, GetWorkspacePackagesOptions as hn, ResolveTemplateCatalogOptions as hr, EnvCacheEvidence as ht, defineVitestProjectConfig as i, WorkspaceBoundarySelector as in, CreateNewProjectPlan as ir, UpgradeOverrideFinding as it, WorkspaceMovePlan as j, normalizeInitToolingTargets as jn, AgenticTemplateTask as jr, StylelintToolingConfig as jt, SimpleGitOptions as k, initMetadata as kn, OrganizationPresetTemplate as kr, CommitlintToolingConfig as kt, createMonorepoEslintConfig as l, WorkspaceGraphFilter as ln, TemplateSourceRequest as lr, ReleaseCommandConfig as lt, DefineConfigOptions as m, WorkspaceWhyResult as mn, CreateTemplateDefinition as mr, EnvCacheConfig as mt, createMonorepoVitestProjectConfig as n, WorkspaceBoundaryFinding as nn, createNewProject as nr, UpgradeMigrationsPlan as nt, defineTsconfigConfig as o, WorkspaceGraph as on, resolveRemoteTemplateSource as or, UpgradeWorkspacePolicy as ot, defineStylelintConfig as p, WorkspaceImpactResult as pn, resolveTemplateCatalog as pr, ReleaseBranchesConfig as pt, UpgradeApplyOptions as q, DoctorSuppression as qn, DependencyProtocol as qr, PublicApiPackageConfig as qt, defineVitestConfig as r, WorkspaceBoundaryRule as rn, CreateNewProjectOptions as rr, UpgradeOptions as rt, loadMonorepoToolingConfig as s, WorkspaceGraphDiagnostic as sn, ResolvedTemplateSource as sr, NightlyProvider as st, createMonorepoVitestConfig as t, WorkspaceBoundaryException as tn, applyCreateNewProjectPlan as tr, UpgradeMigrationStep as tt, createMonorepoStylelintConfig as u, WorkspaceGraphNode as un, getCreateChoices as ur, ReleaseNightlyConfig as ut, MonorepoCommitlintConfig as v, WorkspacePackageManifest as vn, TemplateCatalogEntry as vr, EnvCacheReport as vt, MonorepoVitestConfigResult as w, CodeownersOptions as wn, OrganizationPresetLayer as wr, DocsCommandConfig as wt, MonorepoTsconfig as x, WorkspacePackageWithJsonPath as xn, ConfigValueSource as xr, EnvCacheVariable as xt, MonorepoEslintConfig as y, WorkspacePackageSummary as yn, ConfigDiagnostic as yr, EnvCacheSuppression as yt, WorkspaceRemovalResult as z, InstallSecuritySetting as zn, DependenciesCommandConfig as zr, ProjectReferencesDiagnostic as zt };
|