@icebreakers/monorepo 6.4.0 → 6.4.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-BahTYIy-.mjs → baseline-CgvgNCUI.mjs} +3 -5
- package/dist/{bundle-B9vRch4R.mjs → bundle-BT26jZsH.mjs} +1 -2
- package/dist/{catalog-CXITrKhb.mjs → catalog-zafyCCYH.mjs} +11 -18
- package/dist/cli.mjs +141 -220
- package/dist/{commands-1ApnhvJF.mjs → commands-By0wXIqB.mjs} +371 -725
- package/dist/{config-BmK7bacv.mjs → config-CnB1hpD_.mjs} +4 -5
- package/dist/{create-flow-B2sFa_5j.mjs → create-flow-B6mkhe47.mjs} +6 -9
- package/dist/{deps-BbkQSTqk.mjs → deps-BJyokXyG.mjs} +6 -8
- package/dist/docs-context-entry.d.mts +0 -4
- package/dist/docs-context-entry.mjs +2 -4
- package/dist/{execute-0NGtp4hR.mjs → execute-By0DFwdk.mjs} +12 -22
- package/dist/{execute-BdnLU2-t.mjs → execute-dyUt94Dv.mjs} +4 -6
- package/dist/{format-BcU-hzT_.mjs → format-qyk-2EXc.mjs} +2 -3
- package/dist/{index-BBYRSLAi.d.mts → index-CyUOTGW4.d.mts} +1 -85
- package/dist/index.d.mts +3 -345
- package/dist/index.mjs +11 -13
- package/dist/{inputs-DCMUM9kz.mjs → inputs-D0jkn1xJ.mjs} +2 -3
- package/dist/{npm-DB-0FHcW.mjs → npm-BkilS3Rx.mjs} +2 -3
- package/dist/{plan-C47MSubl.mjs → plan-lepevajA.mjs} +2 -3
- package/dist/{rolldown-runtime-8H4AJuhK.mjs → rolldown-runtime-BJohB4LM.mjs} +1 -2
- package/dist/{run-5IdtzJJR.mjs → run-Coc92Trs.mjs} +6 -8
- package/dist/{save-cKCfFQrh.mjs → save-6C5t4ZGp.mjs} +4 -5
- package/dist/{scan-Diyd5MkZ.mjs → scan-DsiJldTw.mjs} +7 -12
- package/dist/{template-drift-C8gMh7d5.mjs → template-drift-DOG6iGjV.mjs} +60 -113
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-B33_Cacq.mjs → transaction-DWst6RWq.mjs} +6 -10
- package/dist/{tsconfig-B32VPzfD.mjs → tsconfig-KnvwNzkL.mjs} +36 -63
- package/dist/{vitest-HFe4zq1M.mjs → vitest-YHXyRHui.mjs} +6 -9
- package/dist/{workspace-tasks-xyIJwdmH.mjs → workspace-tasks-i69iIhom.mjs} +78 -157
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { $ as UpgradeKeepDecision, $n as DependencyAdmissionConfig, $r as DependencySection, $t as PublicApiUpdatePlan, A as WorkspaceMoveOptions, An as CodeownersReport, Ar as OrganizationPresetReference, At as EslintToolingConfig, B as AiCommandConfig, Bn as InstallSecurityOptions, Br as generateAgenticTemplates, Bt as ProjectReferencesOperation, C as MonorepoVitestConfigOverrides, Cn as WorkspacePackageSummary, Cr as ConfigDiagnostic, Ct as DocsCloudflareWorkersTarget, D as ConfigValues, Dn as CodeownersDiagnostic, Dr as OrganizationPresetDiagnostic, Dt as DocsScriptDeploymentTarget, E as MonorepoVitestProjectConfigResult, En as CodeownersConfig, Er as OrganizationPresetAsset, Et as DocsReadinessConfig, F as WorkspaceRemovalEntry, Fn as normalizeInitToolingTargets, Fr as AgenticTemplateTask, Ft as VitestToolingConfig, G as MonorepoConfig, Gn as DoctorReport, Gr as DependencyConsistencyGroup, Gt as GitHooksInstallResult, H as CreateCommandConfig, Hn as InstallSecurityReport, Hr as CliOpts, Ht as GitHookCheck, I as WorkspaceRemovalFile, In as initToolingTargets, Ir as GenerateAgenticTemplateOptions, It as ProjectReferencesApplyResult, J as UpgradeApplyResult, Jn as DoctorSuppressionReport, Jr as DependencyFixPlan, Jt as PublicApiEntryConfig, K as UpgradeCommandConfig, Kn as DoctorStatus, Kr as DependencyFileChange, Kt as PublicApiConfig, L as WorkspaceRemovalOptions, Ln as InstallBuildDecision, Lr as createTimestampFolderName, Lt as ProjectReferencesCheck, M as WorkspaceMoveResult, Mn as init, Mr as OrganizationPresetSource, Mt as ToolingConfig, N as WorkspaceMoveReview, Nn as initMetadata, Nr as OrganizationPresetTemplate, Nt as TsconfigToolingConfig, O as SimpleGit, On as CodeownersOptions, Or as OrganizationPresetLayer, Ot as DocsSiteConfig, P as WorkspaceRemovalBlocker, Pn as initTooling, Pr as AgenticTemplateFormat, Pt as VitestProjectToolingConfig, Q as UpgradeInput, Qn as AdmissionDeclaration, Qr as DependencyReport, Qt as PublicApiReport, R as WorkspaceRemovalPlan, Rn as InstallPolicyKey, Rr as defaultAgenticBaseDir, Rt as ProjectReferencesConfig, S as MonorepoVitestConfigOptions, Sn as WorkspacePackageManifest, Sr as TemplateCatalogEntry, St as DocsChannel, T as MonorepoVitestProjectConfigOptions, Tn as WorkspacePackageWithJsonPath, Tr as ConfigValueSource, Tt as DocsDeploymentTarget, U as InitCommandConfig, Un as InstallSecuritySetting, Ur as DependenciesCommandConfig, Ut as GitHooksConfig, V as CreateChoiceOption, Vn as InstallSecurityPresetPlan, Vr as loadAgenticTasks, Vt as ProjectReferencesPlan, W as MirrorCommandConfig, Wn as DoctorCheck, Wr as DependencyApplyResult, Wt as GitHooksInstallOptions, X as UpgradeFilePlan, Xn as DoctorOptions, Xr as DependencyOccurrence, Xt as PublicApiOptions, Y as UpgradeBaselineChange, Yn as DoctorCommandConfig, Yr as DependencyGroupStatus, Yt as PublicApiEntryReport, Z as UpgradeFileStatus, Zn as DoctorSuppression, Zr as DependencyProtocol, Zt as PublicApiPackageConfig, _ as DefineVitestProjectConfigOptions, _n as WorkspaceImpactResult, _r as resolveTemplateCatalog, _t as EnvCacheOptions, a as createMonorepoTsconfig, an as WorkspaceBoundaryException, ar as applyCreateNewProjectPlan, at as UpgradePlan, b as MonorepoStylelintConfig, bn as WorkspaceData, br as TemplateCatalog, bt as EnvCacheTask, c as createMonorepoCommitlintConfig, cn as WorkspaceBoundarySelector, cr as CreateNewProjectPlan, ct as ReleaseAfterPublishHookConfig, d as defineCommitlintConfig, dn as WorkspaceGraphDiagnostic, dr as ResolvedTemplateSource, dt as ReleaseRegistryConfig, ei as DependencyVersionGroup, en as PublicApiUpdateResult, er as DependencyAdmissionException, et as UpgradeMergeDetails, f as defineEslintConfig, fn as WorkspaceGraphEdge, fr as TemplateSourceOptions, ft as ReleaseBranchRule, g as DefineVitestConfigOptions, gn as WorkspaceImpactOptions, gr as templateMap, gt as EnvCacheFinding, h as DefineEslintConfigOptions, hn as WorkspaceGraphOptions, hr as getTemplateMap, ht as EnvCacheEvidence, i as defineVitestProjectConfig, in as WorkspaceBoundariesReport, ir as DependencyAdmissionRule, it as UpgradeOverrideFinding, j as WorkspaceMovePlan, jn as WorkspaceOwnership, jr as OrganizationPresetResolution, jt as StylelintToolingConfig, k as SimpleGitOptions, kn as CodeownersPlan, kr as OrganizationPresetManifest, kt as CommitlintToolingConfig, l as createMonorepoEslintConfig, ln as WorkspaceDependencyType, lr as resolveCreateNewProjectPlan, lt as ReleaseCommandConfig, m as DefineConfigOptions, mn as WorkspaceGraphNode, mr as getCreateChoices, mt as EnvCacheConfig, n as createMonorepoVitestProjectConfig, nn as BoundarySeverity, nr as DependencyAdmissionOptions, nt as UpgradeMigrationsPlan, o as defineTsconfigConfig, on as WorkspaceBoundaryFinding, or as createNewProject, ot as UpgradeWorkspacePolicy, p as defineStylelintConfig, pn as WorkspaceGraphFilter, pr as TemplateSourceRequest, pt as ReleaseBranchesConfig, q as UpgradeApplyOptions, qn as DoctorSummary, qr as DependencyFixOptions, qt as PublicApiDiagnostic, r as defineVitestConfig, rn as WorkspaceBoundariesConfig, rr as DependencyAdmissionReport, rt as UpgradeOptions, s as loadMonorepoToolingConfig, sn as WorkspaceBoundaryRule, sr as CreateNewProjectOptions, st as NightlyProvider, t as createMonorepoVitestConfig, tn as CleanCommandConfig, tr as DependencyAdmissionFinding, tt as UpgradeMigrationStep, u as createMonorepoStylelintConfig, un as WorkspaceGraph, ur as resolveRemoteTemplateSource, ut as ReleaseNightlyConfig, v as MonorepoCommitlintConfig, vn as WorkspaceWhyResult, vr as CreateTemplateDefinition, vt as EnvCacheReport, w as MonorepoVitestConfigResult, wn as WorkspacePackageSummaryData, wr as ConfigSourceLayer, wt as DocsCommandConfig, x as MonorepoTsconfig, xn as WorkspacePackage, xr as TemplateCatalogDiagnostic, xt as EnvCacheVariable, y as MonorepoEslintConfig, yn as GetWorkspacePackagesOptions, yr as ResolveTemplateCatalogOptions, yt as EnvCacheSuppression, z as WorkspaceRemovalResult, zn as InstallSecurityExpectations, zr as generateAgenticTemplate, zt as ProjectReferencesDiagnostic } from "./index-
|
|
1
|
+
import { $ as UpgradeKeepDecision, $n as DependencyAdmissionConfig, $r as DependencySection, $t as PublicApiUpdatePlan, A as WorkspaceMoveOptions, An as CodeownersReport, Ar as OrganizationPresetReference, At as EslintToolingConfig, B as AiCommandConfig, Bn as InstallSecurityOptions, Br as generateAgenticTemplates, Bt as ProjectReferencesOperation, C as MonorepoVitestConfigOverrides, Cn as WorkspacePackageSummary, Cr as ConfigDiagnostic, Ct as DocsCloudflareWorkersTarget, D as ConfigValues, Dn as CodeownersDiagnostic, Dr as OrganizationPresetDiagnostic, Dt as DocsScriptDeploymentTarget, E as MonorepoVitestProjectConfigResult, En as CodeownersConfig, Er as OrganizationPresetAsset, Et as DocsReadinessConfig, F as WorkspaceRemovalEntry, Fn as normalizeInitToolingTargets, Fr as AgenticTemplateTask, Ft as VitestToolingConfig, G as MonorepoConfig, Gn as DoctorReport, Gr as DependencyConsistencyGroup, Gt as GitHooksInstallResult, H as CreateCommandConfig, Hn as InstallSecurityReport, Hr as CliOpts, Ht as GitHookCheck, I as WorkspaceRemovalFile, In as initToolingTargets, Ir as GenerateAgenticTemplateOptions, It as ProjectReferencesApplyResult, J as UpgradeApplyResult, Jn as DoctorSuppressionReport, Jr as DependencyFixPlan, Jt as PublicApiEntryConfig, K as UpgradeCommandConfig, Kn as DoctorStatus, Kr as DependencyFileChange, Kt as PublicApiConfig, L as WorkspaceRemovalOptions, Ln as InstallBuildDecision, Lr as createTimestampFolderName, Lt as ProjectReferencesCheck, M as WorkspaceMoveResult, Mn as init, Mr as OrganizationPresetSource, Mt as ToolingConfig, N as WorkspaceMoveReview, Nn as initMetadata, Nr as OrganizationPresetTemplate, Nt as TsconfigToolingConfig, O as SimpleGit, On as CodeownersOptions, Or as OrganizationPresetLayer, Ot as DocsSiteConfig, P as WorkspaceRemovalBlocker, Pn as initTooling, Pr as AgenticTemplateFormat, Pt as VitestProjectToolingConfig, Q as UpgradeInput, Qn as AdmissionDeclaration, Qr as DependencyReport, Qt as PublicApiReport, R as WorkspaceRemovalPlan, Rn as InstallPolicyKey, Rr as defaultAgenticBaseDir, Rt as ProjectReferencesConfig, S as MonorepoVitestConfigOptions, Sn as WorkspacePackageManifest, Sr as TemplateCatalogEntry, St as DocsChannel, T as MonorepoVitestProjectConfigOptions, Tn as WorkspacePackageWithJsonPath, Tr as ConfigValueSource, Tt as DocsDeploymentTarget, U as InitCommandConfig, Un as InstallSecuritySetting, Ur as DependenciesCommandConfig, Ut as GitHooksConfig, V as CreateChoiceOption, Vn as InstallSecurityPresetPlan, Vr as loadAgenticTasks, Vt as ProjectReferencesPlan, W as MirrorCommandConfig, Wn as DoctorCheck, Wr as DependencyApplyResult, Wt as GitHooksInstallOptions, X as UpgradeFilePlan, Xn as DoctorOptions, Xr as DependencyOccurrence, Xt as PublicApiOptions, Y as UpgradeBaselineChange, Yn as DoctorCommandConfig, Yr as DependencyGroupStatus, Yt as PublicApiEntryReport, Z as UpgradeFileStatus, Zn as DoctorSuppression, Zr as DependencyProtocol, Zt as PublicApiPackageConfig, _ as DefineVitestProjectConfigOptions, _n as WorkspaceImpactResult, _r as resolveTemplateCatalog, _t as EnvCacheOptions, a as createMonorepoTsconfig, an as WorkspaceBoundaryException, ar as applyCreateNewProjectPlan, at as UpgradePlan, b as MonorepoStylelintConfig, bn as WorkspaceData, br as TemplateCatalog, bt as EnvCacheTask, c as createMonorepoCommitlintConfig, cn as WorkspaceBoundarySelector, cr as CreateNewProjectPlan, ct as ReleaseAfterPublishHookConfig, d as defineCommitlintConfig, dn as WorkspaceGraphDiagnostic, dr as ResolvedTemplateSource, dt as ReleaseRegistryConfig, ei as DependencyVersionGroup, en as PublicApiUpdateResult, er as DependencyAdmissionException, et as UpgradeMergeDetails, f as defineEslintConfig, fn as WorkspaceGraphEdge, fr as TemplateSourceOptions, ft as ReleaseBranchRule, g as DefineVitestConfigOptions, gn as WorkspaceImpactOptions, gr as templateMap, gt as EnvCacheFinding, h as DefineEslintConfigOptions, hn as WorkspaceGraphOptions, hr as getTemplateMap, ht as EnvCacheEvidence, i as defineVitestProjectConfig, in as WorkspaceBoundariesReport, ir as DependencyAdmissionRule, it as UpgradeOverrideFinding, j as WorkspaceMovePlan, jn as WorkspaceOwnership, jr as OrganizationPresetResolution, jt as StylelintToolingConfig, k as SimpleGitOptions, kn as CodeownersPlan, kr as OrganizationPresetManifest, kt as CommitlintToolingConfig, l as createMonorepoEslintConfig, ln as WorkspaceDependencyType, lr as resolveCreateNewProjectPlan, lt as ReleaseCommandConfig, m as DefineConfigOptions, mn as WorkspaceGraphNode, mr as getCreateChoices, mt as EnvCacheConfig, n as createMonorepoVitestProjectConfig, nn as BoundarySeverity, nr as DependencyAdmissionOptions, nt as UpgradeMigrationsPlan, o as defineTsconfigConfig, on as WorkspaceBoundaryFinding, or as createNewProject, ot as UpgradeWorkspacePolicy, p as defineStylelintConfig, pn as WorkspaceGraphFilter, pr as TemplateSourceRequest, pt as ReleaseBranchesConfig, q as UpgradeApplyOptions, qn as DoctorSummary, qr as DependencyFixOptions, qt as PublicApiDiagnostic, r as defineVitestConfig, rn as WorkspaceBoundariesConfig, rr as DependencyAdmissionReport, rt as UpgradeOptions, s as loadMonorepoToolingConfig, sn as WorkspaceBoundaryRule, sr as CreateNewProjectOptions, st as NightlyProvider, t as createMonorepoVitestConfig, tn as CleanCommandConfig, tr as DependencyAdmissionFinding, tt as UpgradeMigrationStep, u as createMonorepoStylelintConfig, un as WorkspaceGraph, ur as resolveRemoteTemplateSource, ut as ReleaseNightlyConfig, v as MonorepoCommitlintConfig, vn as WorkspaceWhyResult, vr as CreateTemplateDefinition, vt as EnvCacheReport, w as MonorepoVitestConfigResult, wn as WorkspacePackageSummaryData, wr as ConfigSourceLayer, wt as DocsCommandConfig, x as MonorepoTsconfig, xn as WorkspacePackage, xr as TemplateCatalogDiagnostic, xt as EnvCacheVariable, y as MonorepoEslintConfig, yn as GetWorkspacePackagesOptions, yr as ResolveTemplateCatalogOptions, yt as EnvCacheSuppression, z as WorkspaceRemovalResult, zn as InstallSecurityExpectations, zr as generateAgenticTemplate, zt as ProjectReferencesDiagnostic } from "./index-CyUOTGW4.mjs";
|
|
2
2
|
import { mkdtemp, readFile, readdir, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
4
4
|
import crypto from "node:crypto";
|
|
5
5
|
import { ResolvedTemplateRemoteSource, TemplateCategory, TemplateFileDifference, TemplateGenerationParameters, TemplateGenerationProfile, TemplateInstance, TemplateInstance as TemplateInstance$1, TemplateInstanceBaseline, TemplateInstanceInfo, TemplateInstanceRegistry, TemplateInstanceSource, TemplateInstanceSource as TemplateInstanceSource$1, TemplateParameterValues, TemplateRemoteSource, TemplateSnapshotFile, isGitignoreFile, listTemplateInstances, loadTemplateBaseline, loadTemplateInstanceRegistry, rebuildTemplateInstanceBaseline, relocateTemplateInstance, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath } from "@icebreakers/monorepo-templates";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
|
-
//#region src/i18n/types.d.ts
|
|
8
7
|
type RepoctlLocale = 'en' | 'zh-CN';
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/types/artifact.d.ts
|
|
11
8
|
interface WorkspaceArtifactOptions {
|
|
12
9
|
/** One exact workspace package name or explicit ./directory. */
|
|
13
10
|
target: string;
|
|
@@ -74,8 +71,6 @@ interface WorkspaceArtifactResult {
|
|
|
74
71
|
excluded: string[];
|
|
75
72
|
cleanupPending: string[];
|
|
76
73
|
}
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region src/types/catalogs.d.ts
|
|
79
74
|
export interface CatalogCheckOptions {
|
|
80
75
|
/** Catalog whose direct-version bypasses and migration candidates should be inspected. */
|
|
81
76
|
catalog?: string;
|
|
@@ -160,8 +155,6 @@ export interface CatalogMigrationPlan {
|
|
|
160
155
|
consumers: DependencyOccurrence[];
|
|
161
156
|
nextSteps: string[];
|
|
162
157
|
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/core/config/validation/index.d.ts
|
|
165
158
|
export declare class ConfigValidationError extends Error {
|
|
166
159
|
readonly diagnostics: ConfigDiagnostic[];
|
|
167
160
|
readonly code = "REPOCTL_CONFIG_INVALID";
|
|
@@ -170,8 +163,6 @@ export declare class ConfigValidationError extends Error {
|
|
|
170
163
|
/** Validate owned fields only. C12 metadata and environment layers retain their native shape. */
|
|
171
164
|
export declare function validateMonorepoConfig(value: unknown): ConfigDiagnostic[];
|
|
172
165
|
export declare function assertMonorepoConfig(value: unknown): void;
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/core/workspace-graph/query.d.ts
|
|
175
166
|
/** Keep selected packages and their immediate consumers/dependencies, without mutating the graph. */
|
|
176
167
|
export declare function filterWorkspaceGraph(graph: WorkspaceGraph, options?: WorkspaceGraphFilter): WorkspaceGraph;
|
|
177
168
|
/** One shortest path, found with breadth-first search; cyclic graphs never enumerate all paths. */
|
|
@@ -180,8 +171,6 @@ export declare function whyWorkspaceDependency(graph: WorkspaceGraph, from: stri
|
|
|
180
171
|
}): WorkspaceWhyResult;
|
|
181
172
|
/** Reverse reachability; the queried package itself is excluded even in a cycle. */
|
|
182
173
|
export declare function getWorkspaceImpact(graph: WorkspaceGraph, selector: string, options?: WorkspaceImpactOptions): WorkspaceImpactResult;
|
|
183
|
-
//#endregion
|
|
184
|
-
//#region src/core/workspace-graph/shared.d.ts
|
|
185
174
|
export declare class WorkspaceGraphQueryError extends Error {
|
|
186
175
|
code: 'package_not_found' | 'ambiguous_package';
|
|
187
176
|
selector: string;
|
|
@@ -189,12 +178,8 @@ export declare class WorkspaceGraphQueryError extends Error {
|
|
|
189
178
|
constructor(code: 'package_not_found' | 'ambiguous_package', selector: string, candidates: string[]);
|
|
190
179
|
}
|
|
191
180
|
export declare function resolveWorkspaceGraphNode(graph: WorkspaceGraph, selector: string): WorkspaceGraphNode;
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/core/workspace-graph/index.d.ts
|
|
194
181
|
/** Read manifest relationships, including private packages by default; never writes files. */
|
|
195
182
|
export declare function getWorkspaceGraph(cwd: string, options?: WorkspaceGraphOptions): Promise<WorkspaceGraph>;
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/types/devcontainer.d.ts
|
|
198
183
|
export interface DevContainerOptions {
|
|
199
184
|
/** Exact stable Node version; otherwise choose a supported version allowed by engines.node. */
|
|
200
185
|
nodeVersion?: string;
|
|
@@ -229,8 +214,6 @@ export interface DevContainerResult {
|
|
|
229
214
|
workspaceDir: string;
|
|
230
215
|
files: string[];
|
|
231
216
|
}
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region src/types/git.d.ts
|
|
234
217
|
/**
|
|
235
218
|
* Parsed repository metadata returned by GitClient.
|
|
236
219
|
*
|
|
@@ -268,8 +251,6 @@ interface GitUrlMetadata {
|
|
|
268
251
|
/** Format the repository URL using an optional protocol. */
|
|
269
252
|
toString: (type?: string) => string;
|
|
270
253
|
}
|
|
271
|
-
//#endregion
|
|
272
|
-
//#region src/types/knip.d.ts
|
|
273
254
|
export interface KnipCheckOptions {
|
|
274
255
|
/** Native Knip config path, relative to cwd when supplied. */
|
|
275
256
|
config?: string;
|
|
@@ -385,8 +366,6 @@ export interface KnipConfigurationSuggestions {
|
|
|
385
366
|
reason: string;
|
|
386
367
|
}[];
|
|
387
368
|
}
|
|
388
|
-
//#endregion
|
|
389
|
-
//#region src/types/package-json.d.ts
|
|
390
369
|
export interface PackageJsonPerson {
|
|
391
370
|
name?: string;
|
|
392
371
|
email?: string;
|
|
@@ -424,8 +403,6 @@ export interface PackageJson extends Record<string, unknown> {
|
|
|
424
403
|
bin?: string | Record<string, string | undefined>;
|
|
425
404
|
exports?: PackageJsonExports;
|
|
426
405
|
}
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region src/commands/check.d.ts
|
|
429
406
|
interface RecommendedCheckOptions {
|
|
430
407
|
cwd: string;
|
|
431
408
|
full?: boolean;
|
|
@@ -449,8 +426,6 @@ export declare function resolveRecommendedCheckPlan(options: RecommendedCheckOpt
|
|
|
449
426
|
export declare function getKnownRepoCheckCommands(): Set<string>;
|
|
450
427
|
export declare function resolveFullWorkspaceCheckPlan(cwd: string): Promise<RecommendedCheckPlan>;
|
|
451
428
|
export declare function runRecommendedCheck(options: RecommendedCheckOptions): Promise<void>;
|
|
452
|
-
//#endregion
|
|
453
|
-
//#region src/core/config/resolution.d.ts
|
|
454
429
|
export type ConfigCommand = keyof NonNullable<MonorepoConfig['commands']>;
|
|
455
430
|
export type CommandConfig<Name extends ConfigCommand> = NonNullable<NonNullable<MonorepoConfig['commands']>[Name]>;
|
|
456
431
|
export type CommandConfigOverrides<Name extends ConfigCommand> = { [Key in keyof CommandConfig<Name>]?: CommandConfig<Name>[Key] | undefined; };
|
|
@@ -470,8 +445,6 @@ export declare function resolveCommandValues<Name extends ConfigCommand>(name: N
|
|
|
470
445
|
}): ResolvedCommandConfig<Name>;
|
|
471
446
|
/** Separate the config contract from command-only controls such as cwd, apply and signals. */
|
|
472
447
|
export declare function selectCommandOverrides<Name extends ConfigCommand>(name: Name, input: object): Partial<CommandConfig<Name>>;
|
|
473
|
-
//#endregion
|
|
474
|
-
//#region src/core/config/inspection.d.ts
|
|
475
448
|
export type ConfigReportValue = null | boolean | number | string | ConfigReportValue[] | {
|
|
476
449
|
[key: string]: ConfigReportValue;
|
|
477
450
|
};
|
|
@@ -503,8 +476,6 @@ export declare function explainMonorepoConfig(cwd: string, options?: {
|
|
|
503
476
|
overrides?: Record<string, unknown>;
|
|
504
477
|
}): Promise<ConfigExplanation>;
|
|
505
478
|
export declare function validateConfigFile(cwd: string): Promise<ConfigValidationReport>;
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/commands/config.d.ts
|
|
508
479
|
interface ConfigInspection {
|
|
509
480
|
cwd: string;
|
|
510
481
|
file: string | null;
|
|
@@ -522,8 +493,6 @@ interface ConfigInspection {
|
|
|
522
493
|
}>;
|
|
523
494
|
}
|
|
524
495
|
export declare function inspectMonorepoConfig(cwd: string): Promise<ConfigInspection>;
|
|
525
|
-
//#endregion
|
|
526
|
-
//#region src/commands/doctor/fix/types.d.ts
|
|
527
496
|
interface DoctorScriptAddition {
|
|
528
497
|
name: string;
|
|
529
498
|
command: string;
|
|
@@ -552,16 +521,10 @@ interface DoctorFixResult {
|
|
|
552
521
|
changed: string[];
|
|
553
522
|
verification: DoctorReport;
|
|
554
523
|
}
|
|
555
|
-
//#endregion
|
|
556
|
-
//#region src/commands/doctor/fix/index.d.ts
|
|
557
524
|
export declare function planDoctorFix(cwd: string, options?: DoctorOptions): Promise<DoctorFixPlan>;
|
|
558
525
|
export declare function applyDoctorFixPlan(cwd: string, plan: DoctorFixPlan): Promise<DoctorFixResult>;
|
|
559
|
-
//#endregion
|
|
560
|
-
//#region src/commands/doctor/rules.d.ts
|
|
561
526
|
/** Stable IDs shared by config, CLI, and report consumers. */
|
|
562
527
|
export declare function getDoctorRuleIds(): string[];
|
|
563
|
-
//#endregion
|
|
564
|
-
//#region src/commands/doctor/index.d.ts
|
|
565
528
|
export declare function runDoctor(cwd: string, options?: DoctorOptions): Promise<{
|
|
566
529
|
rawSummary?: DoctorSummary;
|
|
567
530
|
suppressions?: DoctorSuppressionReport[];
|
|
@@ -571,8 +534,6 @@ export declare function runDoctor(cwd: string, options?: DoctorOptions): Promise
|
|
|
571
534
|
checks: DoctorCheck[];
|
|
572
535
|
summary: DoctorSummary;
|
|
573
536
|
}>;
|
|
574
|
-
//#endregion
|
|
575
|
-
//#region src/commands/env.d.ts
|
|
576
537
|
interface EnvInfo {
|
|
577
538
|
cwd: string;
|
|
578
539
|
workspaceDir: string;
|
|
@@ -623,8 +584,6 @@ export declare function collectEnvInfo(cwd: string): Promise<EnvInfo>;
|
|
|
623
584
|
export declare function collectEnvPaths(cwd: string): Promise<EnvPaths>;
|
|
624
585
|
export declare function collectEnvSnapshot(cwd: string, now?: Date): Promise<EnvSnapshot>;
|
|
625
586
|
export declare function collectEnvSupportBundle(cwd: string, now?: Date): Promise<EnvSupportBundle>;
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region src/commands/release/auto-changeset/types.d.ts
|
|
628
587
|
type AutoChangesetLevel = 'patch' | 'minor' | 'major';
|
|
629
588
|
type AutoChangesetDependencyField = 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'devDependencies';
|
|
630
589
|
/** Declarative JSON read from the default branch, or supplied by a trusted API caller. */
|
|
@@ -722,19 +681,11 @@ interface AutoChangesetWorkflowOptions extends AutoChangesetApproval {
|
|
|
722
681
|
workflowName?: string;
|
|
723
682
|
policyPath?: string;
|
|
724
683
|
}
|
|
725
|
-
//#endregion
|
|
726
|
-
//#region src/commands/release/auto-changeset/apply.d.ts
|
|
727
684
|
/** Recompute the approved proposal, then atomically append one commit to exactly the frozen head. */
|
|
728
685
|
export declare function applyAutoChangeset(options: AutoChangesetApplyOptions): Promise<AutoChangesetReport>;
|
|
729
|
-
//#endregion
|
|
730
|
-
//#region src/commands/release/auto-changeset/plan.d.ts
|
|
731
686
|
/** Build a deterministic proposal from immutable metadata without executing candidate code. */
|
|
732
687
|
export declare function createAutoChangesetPlan(options: AutoChangesetOptions): Promise<AutoChangesetReport>;
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region src/commands/release/auto-changeset/workflow.d.ts
|
|
735
688
|
export declare function getAutoChangesetWorkflow(options?: AutoChangesetWorkflowOptions): Promise<string>;
|
|
736
|
-
//#endregion
|
|
737
|
-
//#region src/commands/release/notes/model.d.ts
|
|
738
689
|
type ReleaseCategory = 'breaking' | 'features' | 'fixes' | 'performance' | 'docs' | 'maintenance' | 'other';
|
|
739
690
|
interface ReleaseCommit {
|
|
740
691
|
sha: string;
|
|
@@ -769,8 +720,6 @@ interface ReleaseNoteDocument {
|
|
|
769
720
|
contributors: string[];
|
|
770
721
|
compareUrls: string[];
|
|
771
722
|
}
|
|
772
|
-
//#endregion
|
|
773
|
-
//#region src/commands/release/lifecycle/types.d.ts
|
|
774
723
|
interface ReleaseTarget extends PublishedPackage {
|
|
775
724
|
target: string;
|
|
776
725
|
}
|
|
@@ -792,8 +741,6 @@ interface ReleaseStateSnapshot {
|
|
|
792
741
|
revision: string;
|
|
793
742
|
state: ReleaseLifecycleState;
|
|
794
743
|
}
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/commands/release/github/types.d.ts
|
|
797
744
|
interface GitHubPullRequest {
|
|
798
745
|
number: number;
|
|
799
746
|
html_url: string;
|
|
@@ -876,8 +823,6 @@ interface GitHubOperations {
|
|
|
876
823
|
listReleases?: () => Promise<GitHubRelease[]>;
|
|
877
824
|
updateRelease?: (options: UpdateReleaseOptions) => Promise<GitHubRelease>;
|
|
878
825
|
}
|
|
879
|
-
//#endregion
|
|
880
|
-
//#region src/commands/release/github/client/transport.d.ts
|
|
881
826
|
/** Shared authenticated transport; mutation callers own reconciliation. */
|
|
882
827
|
declare class GitHubTransport {
|
|
883
828
|
private readonly token;
|
|
@@ -894,21 +839,15 @@ declare class GitHubTransport {
|
|
|
894
839
|
data: T | undefined;
|
|
895
840
|
}>;
|
|
896
841
|
}
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region src/commands/release/errors.d.ts
|
|
899
842
|
declare class ReleaseCommandError extends Error {
|
|
900
843
|
readonly exitCode: number;
|
|
901
844
|
constructor(message: string, exitCode?: number);
|
|
902
845
|
}
|
|
903
|
-
//#endregion
|
|
904
|
-
//#region src/commands/release/github/errors.d.ts
|
|
905
846
|
export declare class GitHubApiError extends ReleaseCommandError {
|
|
906
847
|
readonly status: number;
|
|
907
848
|
readonly responseBody?: string | undefined;
|
|
908
849
|
constructor(message: string, status: number, responseBody?: string | undefined);
|
|
909
850
|
}
|
|
910
|
-
//#endregion
|
|
911
|
-
//#region src/commands/release/github/client.d.ts
|
|
912
851
|
export declare class GitHubClient extends GitHubTransport implements GitHubOperations {
|
|
913
852
|
private getRequest;
|
|
914
853
|
readReleaseState(key: string): Promise<ReleaseStateSnapshot | undefined>;
|
|
@@ -931,8 +870,6 @@ export declare class GitHubClient extends GitHubTransport implements GitHubOpera
|
|
|
931
870
|
readBranchHead(branch: string): Promise<string>;
|
|
932
871
|
ensureTag(options: EnsureTagOptions): Promise<void>;
|
|
933
872
|
}
|
|
934
|
-
//#endregion
|
|
935
|
-
//#region src/commands/release/types.d.ts
|
|
936
873
|
type ReleaseMode = 'auto' | 'prepare' | 'publish' | 'publish-unpublished' | 'reconcile' | 'oidc-audit';
|
|
937
874
|
type ReleaseCiStage = 'all' | 'plan' | 'verify' | 'prepare' | 'upload' | 'confirm' | 'finalize';
|
|
938
875
|
type ReleaseBootstrapStage = 'prepare' | 'publish' | 'verify';
|
|
@@ -962,8 +899,6 @@ interface PublishedPackage {
|
|
|
962
899
|
name: string;
|
|
963
900
|
version: string;
|
|
964
901
|
}
|
|
965
|
-
//#endregion
|
|
966
|
-
//#region src/commands/package-check/types.d.ts
|
|
967
902
|
interface PackageCheckOptions {
|
|
968
903
|
cwd: string;
|
|
969
904
|
/** pnpm filter selectors; repeated selectors form a union. */
|
|
@@ -1084,8 +1019,6 @@ interface ConsumerEntry {
|
|
|
1084
1019
|
/** Resources without their own declaration contract are resolved as files, not imported as types. */
|
|
1085
1020
|
typecheck?: boolean;
|
|
1086
1021
|
}
|
|
1087
|
-
//#endregion
|
|
1088
|
-
//#region src/commands/release/bootstrap/types.d.ts
|
|
1089
1022
|
/** 默认分支工作流在执行候选代码前冻结的 GitHub 身份。 */
|
|
1090
1023
|
interface BootstrapSource {
|
|
1091
1024
|
repository: string;
|
|
@@ -1191,30 +1124,18 @@ interface BootstrapReport {
|
|
|
1191
1124
|
interface PrepareBootstrapOptions extends BootstrapOptions {
|
|
1192
1125
|
plan: BootstrapPlan;
|
|
1193
1126
|
}
|
|
1194
|
-
//#endregion
|
|
1195
|
-
//#region src/commands/release/bootstrap/plan.d.ts
|
|
1196
1127
|
/** 冻结单包预发布与稳定发布线保护,不执行安装、构建或生命周期。 */
|
|
1197
1128
|
export declare function createBootstrapPlan(options: BootstrapOptions): Promise<BootstrapPlan>;
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region src/commands/release/bootstrap/prepare.d.ts
|
|
1200
1129
|
/** 在无发布凭据的隔离目录构建、检查并原生打包一个冻结的公开包。 */
|
|
1201
1130
|
export declare function prepareBootstrap(options: PrepareBootstrapOptions): Promise<BootstrapReport>;
|
|
1202
|
-
//#endregion
|
|
1203
|
-
//#region src/commands/release/bootstrap/publication.d.ts
|
|
1204
1131
|
/** 发布端只处理核验后的字节,不 checkout 或执行候选工作区代码。 */
|
|
1205
1132
|
export declare function publishBootstrap(options: BootstrapOptions): Promise<BootstrapReport>;
|
|
1206
|
-
//#endregion
|
|
1207
|
-
//#region src/commands/release/bootstrap/recovery.d.ts
|
|
1208
1133
|
/** 恢复只使用原运行的不可变证据,不构建、不交换凭据,也不重新上传。 */
|
|
1209
1134
|
export declare function verifyBootstrapPublication(options: BootstrapOptions): Promise<BootstrapReport>;
|
|
1210
|
-
//#endregion
|
|
1211
|
-
//#region src/commands/release/bootstrap/index.d.ts
|
|
1212
1135
|
/** 默认只准备;实际上传与只读恢复必须显式选择独立工作流阶段。 */
|
|
1213
1136
|
export declare function releaseBootstrap(options: BootstrapOptions & {
|
|
1214
1137
|
stage?: ReleaseBootstrapStage;
|
|
1215
1138
|
}): Promise<BootstrapReport>;
|
|
1216
|
-
//#endregion
|
|
1217
|
-
//#region src/core/oidc/types.d.ts
|
|
1218
1139
|
interface ReleaseOidcAuditPackage {
|
|
1219
1140
|
name: string;
|
|
1220
1141
|
version: string;
|
|
@@ -1250,32 +1171,22 @@ interface ReleaseOidcAuditReport {
|
|
|
1250
1171
|
ok: boolean;
|
|
1251
1172
|
hints: string[];
|
|
1252
1173
|
}
|
|
1253
|
-
//#endregion
|
|
1254
|
-
//#region src/commands/release/oidc/index.d.ts
|
|
1255
1174
|
/** 逐包核验官方 npm 的短时凭据交换;不发布、不执行 hooks,也不保存凭据。 */
|
|
1256
1175
|
export declare function auditReleaseOidc(options: ReleaseOidcAuditOptions | ReleaseOidcArtifactAuditOptions): Promise<ReleaseOidcAuditReport>;
|
|
1257
|
-
//#endregion
|
|
1258
|
-
//#region src/commands/release/ci.d.ts
|
|
1259
1176
|
declare function createReleasePullRequest(options: ReleaseCiOptions): Promise<boolean>;
|
|
1260
1177
|
declare function recoverUnpublished(options: ReleaseCiOptions): Promise<PublishedPackage[]>;
|
|
1261
|
-
export declare function releaseCi(options: ReleaseCiOptions): Promise<ReleaseOidcAuditReport | PublishedPackage[] |
|
|
1178
|
+
export declare function releaseCi(options: ReleaseCiOptions): Promise<ReleaseOidcAuditReport | PublishedPackage[] | {
|
|
1262
1179
|
repaired: string[];
|
|
1263
1180
|
pending: string[];
|
|
1264
1181
|
skipped: string[];
|
|
1265
|
-
} | undefined>;
|
|
1266
|
-
//#endregion
|
|
1267
|
-
//#region src/commands/release/shared.d.ts
|
|
1182
|
+
} | StageReceipt | undefined>;
|
|
1268
1183
|
export declare function parsePublishSummary(content: string): PublishedPackage[];
|
|
1269
|
-
//#endregion
|
|
1270
|
-
//#region src/commands/release/prerelease.d.ts
|
|
1271
1184
|
export declare function releasePrerelease(options: ReleaseCiOptions, publish?: () => Promise<PublishedPackage[]>): Promise<PublishedPackage[] | undefined>;
|
|
1272
1185
|
export declare function enterPrerelease(tag: string, options: ReleaseOptions): Promise<void>;
|
|
1273
1186
|
export declare function exitPrerelease(options: ReleaseOptions): Promise<{
|
|
1274
1187
|
branch: string;
|
|
1275
1188
|
lane: string;
|
|
1276
1189
|
}>;
|
|
1277
|
-
//#endregion
|
|
1278
|
-
//#region src/commands/release/reconcile.d.ts
|
|
1279
1190
|
interface ReleaseReconcileOptions extends ReleaseOptions {
|
|
1280
1191
|
packageName?: string;
|
|
1281
1192
|
packageVersion?: string;
|
|
@@ -1287,8 +1198,6 @@ export declare function reconcileRelease(options: ReleaseReconcileOptions): Prom
|
|
|
1287
1198
|
pending: string[];
|
|
1288
1199
|
skipped: string[];
|
|
1289
1200
|
}>;
|
|
1290
|
-
//#endregion
|
|
1291
|
-
//#region src/commands/release/repair.d.ts
|
|
1292
1201
|
interface RepairReleaseNotesOptions extends ReleaseOptions {
|
|
1293
1202
|
tag?: string;
|
|
1294
1203
|
all?: boolean;
|
|
@@ -1300,18 +1209,12 @@ export declare function repairReleaseNotes(options: RepairReleaseNotesOptions):
|
|
|
1300
1209
|
repaired: string[];
|
|
1301
1210
|
skipped: string[];
|
|
1302
1211
|
}>;
|
|
1303
|
-
//#endregion
|
|
1304
|
-
//#region src/commands/release/lines/config.d.ts
|
|
1305
1212
|
/** Build one deterministic mapping used by planning, preparation, publishing, CI and recovery. */
|
|
1306
1213
|
export declare function resolveReleaseBranches(input?: ReleaseBranchesConfig): ReleaseBranchRule[];
|
|
1307
|
-
//#endregion
|
|
1308
|
-
//#region src/commands/release/stable.d.ts
|
|
1309
1214
|
export declare function prepareStable(options: ReleaseOptions): Promise<boolean>;
|
|
1310
1215
|
export declare function publishStable(options: ReleaseOptions): Promise<PublishedPackage[]>;
|
|
1311
1216
|
/** Compatibility entry point retained for existing generated repositories. */
|
|
1312
1217
|
export declare function releaseStable(options: ReleaseOptions): Promise<PublishedPackage[]>;
|
|
1313
|
-
//#endregion
|
|
1314
|
-
//#region src/commands/release/stages/receipt.d.ts
|
|
1315
1218
|
interface StageReceipt {
|
|
1316
1219
|
schemaVersion: 1;
|
|
1317
1220
|
id: string;
|
|
@@ -1332,8 +1235,6 @@ interface StageReceipt {
|
|
|
1332
1235
|
pending: string[];
|
|
1333
1236
|
}>;
|
|
1334
1237
|
}
|
|
1335
|
-
//#endregion
|
|
1336
|
-
//#region src/commands/release/plan/types.d.ts
|
|
1337
1238
|
interface ReleasePlanPackage {
|
|
1338
1239
|
name: string;
|
|
1339
1240
|
directory: string;
|
|
@@ -1365,8 +1266,6 @@ interface ReleasePlan {
|
|
|
1365
1266
|
notes: ReleaseNoteDocument;
|
|
1366
1267
|
}
|
|
1367
1268
|
type ReleasePlanOptions = Pick<ReleaseOptions, 'cwd' | 'env' | 'spawn' | 'branch' | 'config'>;
|
|
1368
|
-
//#endregion
|
|
1369
|
-
//#region src/commands/release/validation/types.d.ts
|
|
1370
1269
|
interface ReleasePreparationGeneratedFileContext {
|
|
1371
1270
|
path: string;
|
|
1372
1271
|
base: string;
|
|
@@ -1417,20 +1316,14 @@ interface ReleasePreparationValidationReport {
|
|
|
1417
1316
|
detail: string;
|
|
1418
1317
|
}>;
|
|
1419
1318
|
}
|
|
1420
|
-
//#endregion
|
|
1421
|
-
//#region src/commands/release/validation/git.d.ts
|
|
1422
1319
|
type GitOptions = Pick<ReleasePreparationValidationOptions, 'cwd' | 'spawn' | 'env'>;
|
|
1423
1320
|
/** Read policy as data from the trusted frozen base, without loading checkout configuration. */
|
|
1424
1321
|
export declare function readReleasePreparationPolicy(options: GitOptions & {
|
|
1425
1322
|
base: string;
|
|
1426
1323
|
path: string;
|
|
1427
1324
|
}): unknown;
|
|
1428
|
-
//#endregion
|
|
1429
|
-
//#region src/commands/release/validation/index.d.ts
|
|
1430
1325
|
/** Verify frozen commits by replaying native versioning in disposable inert metadata. */
|
|
1431
1326
|
export declare function validateReleasePreparation(options: ReleasePreparationValidationOptions): Promise<ReleasePreparationValidationReport>;
|
|
1432
|
-
//#endregion
|
|
1433
|
-
//#region src/commands/skills.d.ts
|
|
1434
1327
|
/**
|
|
1435
1328
|
* 当前支持的 skills 同步目标。
|
|
1436
1329
|
*/
|
|
@@ -1466,8 +1359,6 @@ export declare function syncSkills(options?: SyncSkillsOptions): Promise<{
|
|
|
1466
1359
|
target: SkillTarget;
|
|
1467
1360
|
dest: string;
|
|
1468
1361
|
}[]>;
|
|
1469
|
-
//#endregion
|
|
1470
|
-
//#region src/commands/templates.d.ts
|
|
1471
1362
|
type TemplateHealthStatus = 'pass' | 'warn' | 'fail';
|
|
1472
1363
|
interface TemplateHealthCheck {
|
|
1473
1364
|
id: string;
|
|
@@ -1498,8 +1389,6 @@ interface CheckTemplatesOptions {
|
|
|
1498
1389
|
cacheDir?: string;
|
|
1499
1390
|
}
|
|
1500
1391
|
export declare function checkTemplates(options?: CheckTemplatesOptions): Promise<TemplateHealthReport>;
|
|
1501
|
-
//#endregion
|
|
1502
|
-
//#region src/commands/verify/types.d.ts
|
|
1503
1392
|
interface VerifyCommandOptions {
|
|
1504
1393
|
/**
|
|
1505
1394
|
* 命令执行根目录。
|
|
@@ -1556,16 +1445,12 @@ interface PreCommitVerifyOptions extends VerifyCommandOptions {
|
|
|
1556
1445
|
*/
|
|
1557
1446
|
spawn?: typeof spawnSync;
|
|
1558
1447
|
}
|
|
1559
|
-
//#endregion
|
|
1560
|
-
//#region src/commands/verify/pre-push/index.d.ts
|
|
1561
1448
|
/**
|
|
1562
1449
|
* 根据 push 范围校验改动所属的 pnpm workspace(含 private 包,不重复运行根包)。
|
|
1563
1450
|
* 按包执行已有 build/test/tsd,根配置变更补跑根任务,始终执行根 lint/typecheck。
|
|
1564
1451
|
* 显式 workspaces 覆盖自动发现;只按文件归属选择,不扩展依赖闭包。
|
|
1565
1452
|
*/
|
|
1566
1453
|
export declare function verifyPrePush(options?: PrePushVerifyOptions): Promise<void>;
|
|
1567
|
-
//#endregion
|
|
1568
|
-
//#region src/commands/verify/staged.d.ts
|
|
1569
1454
|
/**
|
|
1570
1455
|
* 对暂存区中涉及类型检查的文件,按最近的 workspace 归属执行 `typecheck`。
|
|
1571
1456
|
*
|
|
@@ -1575,14 +1460,10 @@ export declare function verifyPrePush(options?: PrePushVerifyOptions): Promise<v
|
|
|
1575
1460
|
* @param options 运行参数
|
|
1576
1461
|
*/
|
|
1577
1462
|
export declare function verifyStagedTypecheck(stagedFiles: string[] | undefined, options?: StagedTypecheckOptions): void;
|
|
1578
|
-
//#endregion
|
|
1579
|
-
//#region src/commands/verify/index.d.ts
|
|
1580
1463
|
/** Validate a commit message using the repository's commitlint configuration. */
|
|
1581
1464
|
export declare function verifyCommitMsg(options: CommitMsgVerifyOptions): Promise<void>;
|
|
1582
1465
|
/** Run the native Lefthook pipeline; its jobs must not call this wrapper. */
|
|
1583
1466
|
export declare function verifyPreCommit(options?: PreCommitVerifyOptions): Promise<void>;
|
|
1584
|
-
//#endregion
|
|
1585
|
-
//#region src/core/git.d.ts
|
|
1586
1467
|
/**
|
|
1587
1468
|
* 对 simple-git 的轻量封装,集中处理配置缓存与常用查询。
|
|
1588
1469
|
*/
|
|
@@ -1622,8 +1503,6 @@ export declare class GitClient {
|
|
|
1622
1503
|
*/
|
|
1623
1504
|
getRepoRoot(): Promise<string | undefined>;
|
|
1624
1505
|
}
|
|
1625
|
-
//#endregion
|
|
1626
|
-
//#region src/core/workspace.d.ts
|
|
1627
1506
|
/**
|
|
1628
1507
|
* 清空当前进程内的 workspace 发现缓存。
|
|
1629
1508
|
*
|
|
@@ -1654,45 +1533,25 @@ export declare function getWorkspaceData(cwd: string, options?: GetWorkspacePack
|
|
|
1654
1533
|
* 返回适合展示和程序化消费的 workspace package 摘要。
|
|
1655
1534
|
*/
|
|
1656
1535
|
export declare function getWorkspacePackageSummaries(cwd: string, options?: GetWorkspacePackagesOptions): Promise<WorkspacePackageSummaryData>;
|
|
1657
|
-
//#endregion
|
|
1658
|
-
//#region src/commands/clean/index.d.ts
|
|
1659
1536
|
/** Remove only selected workspace directories; dry-run prints every resulting change. */
|
|
1660
1537
|
export declare function cleanProjects(cwd: string, overrides?: Partial<CleanCommandConfig>): Promise<void>;
|
|
1661
|
-
//#endregion
|
|
1662
|
-
//#region src/commands/mirror/binaryMirror.d.ts
|
|
1663
1538
|
/**
|
|
1664
1539
|
* 根据中国大陆镜像源,自动向 VSCode settings.json 注入终端环境变量。
|
|
1665
1540
|
*/
|
|
1666
1541
|
export declare function setVscodeBinaryMirror(cwd: string): Promise<void>;
|
|
1667
|
-
//#endregion
|
|
1668
|
-
//#region src/commands/upgrade/apply/index.d.ts
|
|
1669
1542
|
/** Hold the same lock through preconditions, no-op detection, writes and recovery. */
|
|
1670
1543
|
export declare function applyUpgradePlan(cwd: string, plan: UpgradePlan, options?: UpgradeApplyOptions): Promise<UpgradeApplyResult>;
|
|
1671
|
-
//#endregion
|
|
1672
|
-
//#region src/commands/upgrade/format.d.ts
|
|
1673
1544
|
export declare function formatUpgradePlan(plan: UpgradePlan, format?: 'text' | 'markdown'): string;
|
|
1674
|
-
//#endregion
|
|
1675
|
-
//#region src/commands/upgrade/plan/index.d.ts
|
|
1676
1545
|
export declare function planUpgrade(options?: UpgradeOptions): Promise<UpgradePlan>;
|
|
1677
|
-
//#endregion
|
|
1678
|
-
//#region src/commands/upgrade/index.d.ts
|
|
1679
1546
|
export declare function upgradeMonorepo(options: UpgradeOptions & {
|
|
1680
1547
|
dryRun: true;
|
|
1681
1548
|
}): Promise<UpgradePlan>;
|
|
1682
1549
|
export declare function upgradeMonorepo(options: CliOpts): Promise<void>;
|
|
1683
1550
|
export declare function upgradeMonorepo(options: UpgradeOptions): Promise<UpgradePlan | void>;
|
|
1684
|
-
//#endregion
|
|
1685
|
-
//#region src/commands/api-report/report.d.ts
|
|
1686
1551
|
export declare function formatPublicApiReport(report: PublicApiReport): string;
|
|
1687
|
-
//#endregion
|
|
1688
|
-
//#region src/commands/api-report/update.d.ts
|
|
1689
1552
|
export declare function planPublicApiUpdate(cwd: string, options?: PublicApiOptions): Promise<PublicApiUpdatePlan>;
|
|
1690
1553
|
export declare function applyPublicApiUpdate(cwd: string, plan: PublicApiUpdatePlan, options?: Pick<PublicApiOptions, 'signal' | 'timeoutMs'>): Promise<PublicApiUpdateResult>;
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region src/commands/api-report/index.d.ts
|
|
1693
1554
|
export declare function checkPublicApi(cwd: string, options?: PublicApiOptions): Promise<PublicApiReport>;
|
|
1694
|
-
//#endregion
|
|
1695
|
-
//#region src/commands/check/affected/types.d.ts
|
|
1696
1555
|
interface AffectedCheckSettings {
|
|
1697
1556
|
base?: string;
|
|
1698
1557
|
head?: string;
|
|
@@ -1760,12 +1619,8 @@ interface AffectedCheckPlan {
|
|
|
1760
1619
|
packages: AffectedPackage[];
|
|
1761
1620
|
commands: AffectedCheckCommand[];
|
|
1762
1621
|
}
|
|
1763
|
-
//#endregion
|
|
1764
|
-
//#region src/commands/check/affected/index.d.ts
|
|
1765
1622
|
/** Resolve one explainable plan; Git uncertainty expands checks rather than yielding an empty selection. */
|
|
1766
1623
|
export declare function resolveAffectedCheckPlan(options: AffectedCheckOptions): Promise<AffectedCheckPlan>;
|
|
1767
|
-
//#endregion
|
|
1768
|
-
//#region src/commands/check/cache/types.d.ts
|
|
1769
1624
|
interface TurboAnalysisOptions {
|
|
1770
1625
|
previous?: string;
|
|
1771
1626
|
/** Maximum slow tasks to show; 1–100, defaults to 10. */
|
|
@@ -1832,12 +1687,8 @@ interface TurboRunAnalysis {
|
|
|
1832
1687
|
criticalPath: TurboCriticalPath;
|
|
1833
1688
|
limitations: TurboAnalysisLimitation[];
|
|
1834
1689
|
}
|
|
1835
|
-
//#endregion
|
|
1836
|
-
//#region src/commands/check/cache/index.d.ts
|
|
1837
1690
|
/** Analyze existing evidence only. Never invoke Turbo, package scripts, or cache mutation. */
|
|
1838
1691
|
export declare function analyzeTurboRuns(current: string, options?: TurboAnalysisOptions): Promise<TurboRunAnalysis>;
|
|
1839
|
-
//#endregion
|
|
1840
|
-
//#region src/commands/check/types.d.ts
|
|
1841
1692
|
type CheckExecutionStatus = 'success' | 'failed' | 'skipped' | 'interrupted';
|
|
1842
1693
|
interface CheckExecutionTask {
|
|
1843
1694
|
name: string;
|
|
@@ -1871,18 +1722,12 @@ interface CheckExecutionOptions extends Omit<RecommendedCheckOptions, 'spawn'>,
|
|
|
1871
1722
|
/** Abort stops the active child and leaves remaining tasks skipped. */
|
|
1872
1723
|
signal?: AbortSignal;
|
|
1873
1724
|
}
|
|
1874
|
-
//#endregion
|
|
1875
|
-
//#region src/commands/check/execute.d.ts
|
|
1876
1725
|
/** Run checks without exiting the caller, retaining every completed and skipped stage. */
|
|
1877
1726
|
export declare function runCheckWithReport(options: CheckExecutionOptions): Promise<CheckExecutionReport>;
|
|
1878
|
-
//#endregion
|
|
1879
|
-
//#region src/commands/check/knip/index.d.ts
|
|
1880
1727
|
export declare function planKnipCheck(cwd: string, options?: KnipCheckOptions): Promise<KnipCheckPlan>;
|
|
1881
1728
|
export declare function runKnipCheck(cwd: string, options?: KnipCheckOptions): Promise<KnipCheckReport>;
|
|
1882
1729
|
export declare function getKnipConfigurationSuggestions(cwd: string): Promise<KnipConfigurationSuggestions>;
|
|
1883
1730
|
export declare function saveKnipBaseline(cwd: string, report: KnipCheckReport, file: string): Promise<KnipBaselineSaveResult>;
|
|
1884
|
-
//#endregion
|
|
1885
|
-
//#region src/commands/check/matrix/types.d.ts
|
|
1886
1731
|
interface AffectedCheckMatrixOptions extends AffectedCheckOptions {
|
|
1887
1732
|
/** Maximum number of deterministic round-robin groups (1–256). Full fallback stays in one job. */
|
|
1888
1733
|
shards?: number;
|
|
@@ -1911,30 +1756,16 @@ interface AffectedCheckMatrix {
|
|
|
1911
1756
|
};
|
|
1912
1757
|
affectedPlan: AffectedCheckPlan;
|
|
1913
1758
|
}
|
|
1914
|
-
//#endregion
|
|
1915
|
-
//#region src/commands/check/matrix/index.d.ts
|
|
1916
1759
|
/** Generate data only; preserve stage ordering, build dependencies and full-fallback semantics. */
|
|
1917
1760
|
export declare function resolveAffectedCheckMatrix(options: AffectedCheckMatrixOptions): Promise<AffectedCheckMatrix>;
|
|
1918
|
-
//#endregion
|
|
1919
|
-
//#region src/commands/deps/apply.d.ts
|
|
1920
1761
|
export declare function applyDependencyFixPlan(cwd: string, plan: DependencyFixPlan): Promise<DependencyApplyResult>;
|
|
1921
|
-
//#endregion
|
|
1922
|
-
//#region src/commands/deps/index.d.ts
|
|
1923
1762
|
export declare function checkDependencies(cwd: string): Promise<DependencyReport>;
|
|
1924
1763
|
export declare function planDependencyFix(cwd: string, options: DependencyFixOptions): Promise<DependencyFixPlan>;
|
|
1925
|
-
//#endregion
|
|
1926
|
-
//#region src/commands/deps/admission/index.d.ts
|
|
1927
1764
|
/** Offline inspection of third-party direct declarations; never changes manifests or lockfiles. */
|
|
1928
1765
|
export declare function checkDependencyAdmission(cwd: string, options?: DependencyAdmissionOptions): Promise<DependencyAdmissionReport>;
|
|
1929
|
-
//#endregion
|
|
1930
|
-
//#region src/commands/deps/catalog/apply.d.ts
|
|
1931
1766
|
export declare function applyCatalogMigrationPlan(cwd: string, plan: CatalogMigrationPlan): Promise<DependencyApplyResult>;
|
|
1932
|
-
//#endregion
|
|
1933
|
-
//#region src/commands/deps/catalog/index.d.ts
|
|
1934
1767
|
export declare function checkCatalogs(cwd: string, options?: CatalogCheckOptions): Promise<CatalogReport>;
|
|
1935
1768
|
export declare function planCatalogMigration(cwd: string, options: CatalogMigrationOptions): Promise<CatalogMigrationPlan>;
|
|
1936
|
-
//#endregion
|
|
1937
|
-
//#region src/commands/deps/peers/types.d.ts
|
|
1938
1769
|
type PeerCheckStatus = 'pass' | 'fail' | 'unknown' | 'skipped';
|
|
1939
1770
|
interface PeerCompatibilityCheck {
|
|
1940
1771
|
packageName: string | null;
|
|
@@ -1959,12 +1790,8 @@ interface PeerCompatibilityReport {
|
|
|
1959
1790
|
checks: PeerCompatibilityCheck[];
|
|
1960
1791
|
summary: Record<PeerCheckStatus, number>;
|
|
1961
1792
|
}
|
|
1962
|
-
//#endregion
|
|
1963
|
-
//#region src/commands/deps/peers/index.d.ts
|
|
1964
1793
|
/** Compare explicit devDependencies with peer promises, without installs or writes. */
|
|
1965
1794
|
export declare function checkPeerDependencies(cwd: string): Promise<PeerCompatibilityReport>;
|
|
1966
|
-
//#endregion
|
|
1967
|
-
//#region src/commands/release/completion/types.d.ts
|
|
1968
1795
|
interface ReleaseCompletionRecord {
|
|
1969
1796
|
schemaVersion: 1;
|
|
1970
1797
|
id: string;
|
|
@@ -1980,8 +1807,6 @@ interface ReleaseCompletionRecord {
|
|
|
1980
1807
|
releasedPackages: string[];
|
|
1981
1808
|
checkpointKey: string;
|
|
1982
1809
|
}
|
|
1983
|
-
//#endregion
|
|
1984
|
-
//#region src/commands/docs/types.d.ts
|
|
1985
1810
|
type DocsStateStore = Required<Pick<GitHubOperations, 'readAutomationState' | 'writeAutomationState' | 'readBranchHead'>>;
|
|
1986
1811
|
interface DocsOptions {
|
|
1987
1812
|
cwd: string;
|
|
@@ -2055,25 +1880,15 @@ interface DocsDeploymentReport {
|
|
|
2055
1880
|
/** Reporting failures do not change the deployment outcome or hide its primary error. */
|
|
2056
1881
|
warnings?: Array<'summary-write-failed'>;
|
|
2057
1882
|
}
|
|
2058
|
-
//#endregion
|
|
2059
|
-
//#region src/commands/docs/deploy.d.ts
|
|
2060
1883
|
/** Build, deploy and optionally verify an independently recoverable documentation snapshot. */
|
|
2061
1884
|
export declare function deployDocs(options: DocsOptions): Promise<DocsDeploymentResult>;
|
|
2062
|
-
//#endregion
|
|
2063
|
-
//#region src/commands/docs/plan.d.ts
|
|
2064
1885
|
/** Inspect a frozen checkout without installing, building, deploying, or writing remote state. */
|
|
2065
1886
|
export declare function planDocsDeployment(options: DocsOptions): Promise<DocsDeploymentPlan>;
|
|
2066
|
-
//#endregion
|
|
2067
|
-
//#region src/commands/docs/report/index.d.ts
|
|
2068
1887
|
export declare class DocsDeploymentError extends Error {
|
|
2069
1888
|
readonly report: DocsDeploymentReport;
|
|
2070
1889
|
constructor(report: DocsDeploymentReport);
|
|
2071
1890
|
}
|
|
2072
|
-
//#endregion
|
|
2073
|
-
//#region src/commands/doctor/security/index.d.ts
|
|
2074
1891
|
export declare function inspectInstallSecurity(cwd: string, options?: InstallSecurityOptions, selected?: ReadonlySet<string>): Promise<InstallSecurityReport>;
|
|
2075
|
-
//#endregion
|
|
2076
|
-
//#region src/commands/doctor/security/preset.d.ts
|
|
2077
1892
|
/** Add only absent defaults. Every existing project, global or inherited environment value is retained. */
|
|
2078
1893
|
export declare function planInstallSecurityPreset(cwd: string, options?: InstallSecurityOptions): Promise<InstallSecurityPresetPlan>;
|
|
2079
1894
|
export declare function applyInstallSecurityPreset(cwd: string, plan: InstallSecurityPresetPlan): Promise<{
|
|
@@ -2083,14 +1898,8 @@ export declare function applyInstallSecurityPreset(cwd: string, plan: InstallSec
|
|
|
2083
1898
|
status: "applied";
|
|
2084
1899
|
changed: string[];
|
|
2085
1900
|
}>;
|
|
2086
|
-
//#endregion
|
|
2087
|
-
//#region src/commands/env-cache/index.d.ts
|
|
2088
1901
|
export declare function checkEnvironmentCache(cwd: string, options?: EnvCacheOptions): Promise<EnvCacheReport>;
|
|
2089
|
-
//#endregion
|
|
2090
|
-
//#region src/commands/env-cache/format.d.ts
|
|
2091
1902
|
export declare function formatEnvironmentCache(report: EnvCacheReport, markdown?: boolean): string;
|
|
2092
|
-
//#endregion
|
|
2093
|
-
//#region src/commands/generate/types.d.ts
|
|
2094
1903
|
type GeneratorName = 'vue-component' | 'react-component' | 'hono-route';
|
|
2095
1904
|
interface GenerateOptions {
|
|
2096
1905
|
cwd: string;
|
|
@@ -2124,18 +1933,10 @@ interface GenerateResult {
|
|
|
2124
1933
|
recoveryFiles: string[];
|
|
2125
1934
|
nextSteps: string[];
|
|
2126
1935
|
}
|
|
2127
|
-
//#endregion
|
|
2128
|
-
//#region src/commands/generate/apply.d.ts
|
|
2129
1936
|
export declare function applyGeneratePlan(plan: GeneratePlan): Promise<GenerateResult>;
|
|
2130
|
-
//#endregion
|
|
2131
|
-
//#region src/commands/generate/plan.d.ts
|
|
2132
1937
|
/** Resolve one package, validate its framework, and derive every byte without writing. */
|
|
2133
1938
|
export declare function planGenerate(options: GenerateOptions): Promise<GeneratePlan>;
|
|
2134
|
-
//#endregion
|
|
2135
|
-
//#region src/commands/generate/render.d.ts
|
|
2136
1939
|
export declare const generators: readonly ["vue-component", "react-component", "hono-route"];
|
|
2137
|
-
//#endregion
|
|
2138
|
-
//#region src/commands/hooks/index.d.ts
|
|
2139
1940
|
/**
|
|
2140
1941
|
* Install native Lefthook hooks without overriding custom or inherited Git hook paths.
|
|
2141
1942
|
* Use `prepare: "repo tooling hooks install"` with `allowBuilds.lefthook: false`
|
|
@@ -2143,14 +1944,8 @@ export declare const generators: readonly ["vue-component", "react-component", "
|
|
|
2143
1944
|
* CI and disabled hooks skip before project configuration is evaluated.
|
|
2144
1945
|
*/
|
|
2145
1946
|
export declare function installGitHooks(cwd: string, options?: GitHooksInstallOptions): Promise<GitHooksInstallResult>;
|
|
2146
|
-
//#endregion
|
|
2147
|
-
//#region src/commands/init/devcontainer/apply.d.ts
|
|
2148
1947
|
export declare function applyDevContainerPlan(cwd: string, plan: DevContainerPlan): Promise<DevContainerResult>;
|
|
2149
|
-
//#endregion
|
|
2150
|
-
//#region src/commands/init/devcontainer/plan.d.ts
|
|
2151
1948
|
export declare function planDevContainer(cwd: string, options?: DevContainerOptions): Promise<DevContainerPlan>;
|
|
2152
|
-
//#endregion
|
|
2153
|
-
//#region src/core/file-transaction/write.d.ts
|
|
2154
1949
|
/** Exact reviewed bytes; null content deletes a file. */
|
|
2155
1950
|
interface FileTransactionChange {
|
|
2156
1951
|
path: string;
|
|
@@ -2158,8 +1953,6 @@ interface FileTransactionChange {
|
|
|
2158
1953
|
afterHash: string | null;
|
|
2159
1954
|
content: string | null;
|
|
2160
1955
|
}
|
|
2161
|
-
//#endregion
|
|
2162
|
-
//#region src/core/presets/asset-plan/types.d.ts
|
|
2163
1956
|
interface OrganizationPresetAssetPlan {
|
|
2164
1957
|
schemaVersion: 1;
|
|
2165
1958
|
kind: 'organization-preset-assets';
|
|
@@ -2208,8 +2001,6 @@ interface OrganizationPresetAssetResult {
|
|
|
2208
2001
|
status: 'applied' | 'unchanged';
|
|
2209
2002
|
changed: string[];
|
|
2210
2003
|
}
|
|
2211
|
-
//#endregion
|
|
2212
|
-
//#region src/commands/maintenance/types.d.ts
|
|
2213
2004
|
interface MaintenanceUpgradeOptions {
|
|
2214
2005
|
cwd: string;
|
|
2215
2006
|
base: string;
|
|
@@ -2277,43 +2068,25 @@ interface MaintenanceUpgradeReport {
|
|
|
2277
2068
|
patchHash: string | null;
|
|
2278
2069
|
errors: string[];
|
|
2279
2070
|
}
|
|
2280
|
-
//#endregion
|
|
2281
|
-
//#region src/commands/maintenance/prepare.d.ts
|
|
2282
2071
|
/** Prepare a review artifact in a disposable clean checkout. Blocked runs retain their report and logs. */
|
|
2283
2072
|
export declare function prepareMaintenanceUpgrade(input: MaintenanceUpgradeOptions): Promise<MaintenanceUpgradeReport>;
|
|
2284
|
-
//#endregion
|
|
2285
|
-
//#region src/commands/maintenance/versions.d.ts
|
|
2286
2073
|
/** Compare resolved root versions; unrelated dependency and peer-context changes are no-ops. */
|
|
2287
2074
|
export declare function detectMaintenanceVersionChange(before: string, after: string): MaintenanceVersionChange;
|
|
2288
|
-
//#endregion
|
|
2289
|
-
//#region src/commands/maintenance/workflow.d.ts
|
|
2290
2075
|
/** Export an opt-in workflow. The publisher embeds trusted code and never imports workspace scripts. */
|
|
2291
2076
|
export declare function getMaintenanceWorkflow(cwd?: string): Promise<string>;
|
|
2292
|
-
//#endregion
|
|
2293
|
-
//#region src/commands/package-check/index.d.ts
|
|
2294
2077
|
/** Build, pack, and consume actual publish artifacts without publishing or versioning. */
|
|
2295
2078
|
export declare function checkPackages(options: PackageCheckOptions): Promise<PackageCheckReport>;
|
|
2296
|
-
//#endregion
|
|
2297
|
-
//#region src/commands/project-references/apply.d.ts
|
|
2298
2079
|
export declare function applyProjectReferencesPlan(plan: ProjectReferencesPlan): Promise<ProjectReferencesApplyResult>;
|
|
2299
|
-
//#endregion
|
|
2300
|
-
//#region src/commands/project-references/plan.d.ts
|
|
2301
2080
|
/** Inspect existing references without opt-in, or preview explicitly enabled managed discovery. */
|
|
2302
2081
|
export declare function planProjectReferences(cwd: string): Promise<ProjectReferencesPlan>;
|
|
2303
|
-
//#endregion
|
|
2304
|
-
//#region src/commands/project-references/index.d.ts
|
|
2305
2082
|
export declare function checkProjectReferences(cwd: string): Promise<{
|
|
2306
2083
|
schemaVersion: 1;
|
|
2307
2084
|
ok: boolean;
|
|
2308
2085
|
plan: ProjectReferencesPlan;
|
|
2309
2086
|
}>;
|
|
2310
2087
|
export declare function syncProjectReferences(cwd: string): Promise<ProjectReferencesApplyResult>;
|
|
2311
|
-
//#endregion
|
|
2312
|
-
//#region src/commands/release/plan/index.d.ts
|
|
2313
2088
|
/** Preview unconsumed intents under one explicit release line, without executing hooks or writes. */
|
|
2314
2089
|
export declare function createReleasePlan(options: ReleasePlanOptions): Promise<ReleasePlan>;
|
|
2315
|
-
//#endregion
|
|
2316
|
-
//#region src/commands/release/snapshot/types.d.ts
|
|
2317
2090
|
type SnapshotIdentity = {
|
|
2318
2091
|
kind: 'pr';
|
|
2319
2092
|
pullRequest: number;
|
|
@@ -2397,8 +2170,6 @@ interface SnapshotPreparationReceipt extends SnapshotPreparationResult {
|
|
|
2397
2170
|
commit: string;
|
|
2398
2171
|
tree: string;
|
|
2399
2172
|
}
|
|
2400
|
-
//#endregion
|
|
2401
|
-
//#region src/commands/release/nightly/types.d.ts
|
|
2402
2173
|
interface NightlyOptions extends Pick<ReleaseOptions, 'cwd' | 'env' | 'spawn' | 'sleep' | 'registryFetch' | 'config'>, Pick<SnapshotOptions, 'referenceGitlinks' | 'prepareSource'> {
|
|
2403
2174
|
/** Parent directory for retained reports and artifacts, outside the source checkout. */
|
|
2404
2175
|
outputDirectory?: string;
|
|
@@ -2447,22 +2218,14 @@ interface NightlyReport {
|
|
|
2447
2218
|
confirmed?: boolean;
|
|
2448
2219
|
consumer?: NightlyConsumerReport;
|
|
2449
2220
|
}
|
|
2450
|
-
//#endregion
|
|
2451
|
-
//#region src/commands/release/nightly/index.d.ts
|
|
2452
2221
|
/** Read-only source and provider inspection, with an external diagnostic report. */
|
|
2453
2222
|
export declare function createNightlyPlan(options: NightlyOptions): Promise<NightlyReport>;
|
|
2454
2223
|
/** Prepare by default; publish only when explicitly requested and authorized. */
|
|
2455
2224
|
export declare function releaseNightly(options: NightlyOptions): Promise<NightlyReport>;
|
|
2456
|
-
//#endregion
|
|
2457
|
-
//#region src/commands/release/snapshot/plan.d.ts
|
|
2458
2225
|
/** Reuse pnpm's version explanations, while snapshotting every public package together. */
|
|
2459
2226
|
export declare function createSnapshotPlan(options: SnapshotOptions): Promise<SnapshotReport>;
|
|
2460
|
-
//#endregion
|
|
2461
|
-
//#region src/commands/release/snapshot/index.d.ts
|
|
2462
2227
|
/** Prepare immutable package artifacts in an archive of HEAD; original files and Git refs are never versioned. */
|
|
2463
2228
|
export declare function releaseSnapshot(options: SnapshotOptions): Promise<SnapshotReport>;
|
|
2464
|
-
//#endregion
|
|
2465
|
-
//#region src/commands/release/snapshot/prepared/types.d.ts
|
|
2466
2229
|
/** GitHub facts frozen by the trusted preparation job, before candidate execution. */
|
|
2467
2230
|
interface SnapshotSource {
|
|
2468
2231
|
repository: string;
|
|
@@ -2540,8 +2303,6 @@ interface PreparedSnapshot {
|
|
|
2540
2303
|
/** Portable bundle containing only snapshot-manifest.json and declared tarballs. */
|
|
2541
2304
|
directory: string;
|
|
2542
2305
|
}
|
|
2543
|
-
//#endregion
|
|
2544
|
-
//#region src/commands/release/snapshot/prepared/github/types.d.ts
|
|
2545
2306
|
interface SnapshotGitHubOptions {
|
|
2546
2307
|
repository: string;
|
|
2547
2308
|
/** Defaults to GITHUB_TOKEN; never forwarded to artifact storage redirects. */
|
|
@@ -2588,8 +2349,6 @@ interface VerifiedSnapshotRun {
|
|
|
2588
2349
|
/** Recheck the run attempt, live PR refs and merge parents before publication. */
|
|
2589
2350
|
assertCurrent: () => Promise<void>;
|
|
2590
2351
|
}
|
|
2591
|
-
//#endregion
|
|
2592
|
-
//#region src/commands/release/snapshot/prepared/publish/types.d.ts
|
|
2593
2352
|
interface PreparedSnapshotPublishOptions extends VerifySnapshotRunOptions, Pick<ReleaseOptions, 'env' | 'spawn' | 'sleep' | 'registryFetch'> {
|
|
2594
2353
|
outputDirectory: string;
|
|
2595
2354
|
/** Exact trusted publisher filename; defaults to the exported official recipe. */
|
|
@@ -2614,8 +2373,6 @@ interface PreparedSnapshotPublishReport {
|
|
|
2614
2373
|
outputDirectory: string;
|
|
2615
2374
|
error?: string;
|
|
2616
2375
|
}
|
|
2617
|
-
//#endregion
|
|
2618
|
-
//#region src/commands/release/snapshot/prepared/consumer/types.d.ts
|
|
2619
2376
|
interface PreparedSnapshotConsumerOptions extends Pick<ReleaseOptions, 'env' | 'spawn' | 'sleep' | 'registryFetch'> {
|
|
2620
2377
|
report: PreparedSnapshotPublishReport;
|
|
2621
2378
|
outputDirectory: string;
|
|
@@ -2632,35 +2389,19 @@ interface PreparedSnapshotConsumerReport {
|
|
|
2632
2389
|
commands: PackageCheckCommand[];
|
|
2633
2390
|
error?: string;
|
|
2634
2391
|
}
|
|
2635
|
-
//#endregion
|
|
2636
|
-
//#region src/commands/release/snapshot/prepared/consumer/index.d.ts
|
|
2637
2392
|
/** Execute candidate packages only in a separate consumer job with a credential-free child environment. */
|
|
2638
2393
|
export declare function verifyPreparedSnapshotConsumer(options: PreparedSnapshotConsumerOptions): Promise<PreparedSnapshotConsumerReport>;
|
|
2639
|
-
//#endregion
|
|
2640
|
-
//#region src/commands/release/snapshot/prepared/github/source.d.ts
|
|
2641
2394
|
/** Resolve authoritative source identities before checking out any candidate code. */
|
|
2642
2395
|
export declare function freezeSnapshotSource(options: FreezeSnapshotSourceOptions): Promise<SnapshotSource>;
|
|
2643
|
-
//#endregion
|
|
2644
|
-
//#region src/commands/release/snapshot/prepared/github/index.d.ts
|
|
2645
2396
|
/** Verify GitHub evidence and portable artifacts without executing any candidate code. */
|
|
2646
2397
|
export declare function verifySnapshotRun(options: VerifySnapshotRunOptions): Promise<VerifiedSnapshotRun>;
|
|
2647
|
-
//#endregion
|
|
2648
|
-
//#region src/commands/release/snapshot/prepared/schema.d.ts
|
|
2649
2398
|
export declare function snapshotPlanDigest(plan: SnapshotBuildPlan): string;
|
|
2650
|
-
//#endregion
|
|
2651
|
-
//#region src/commands/release/snapshot/prepared/plan.d.ts
|
|
2652
2399
|
/** Freeze the existing version solver and workspace graph without installing or building candidates. */
|
|
2653
2400
|
export declare function createSnapshotBuildPlan(options: SnapshotBuildPlanOptions): Promise<SnapshotBuildPlan>;
|
|
2654
|
-
//#endregion
|
|
2655
|
-
//#region src/commands/release/snapshot/prepared/prepare.d.ts
|
|
2656
2401
|
/** Build on an unprivileged runner; emit a portable bundle separate from retained diagnostics. */
|
|
2657
2402
|
export declare function prepareSnapshot(options: PrepareSnapshotOptions): Promise<PreparedSnapshot>;
|
|
2658
|
-
//#endregion
|
|
2659
|
-
//#region src/commands/release/snapshot/prepared/publish/index.d.ts
|
|
2660
2403
|
/** Publish only a GitHub-verified portable bundle; candidate code is never loaded. */
|
|
2661
2404
|
export declare function publishPreparedSnapshot(options: PreparedSnapshotPublishOptions): Promise<PreparedSnapshotPublishReport>;
|
|
2662
|
-
//#endregion
|
|
2663
|
-
//#region src/commands/release/snapshot/prepared/workflow/options.d.ts
|
|
2664
2405
|
interface SnapshotWorkflowOptions {
|
|
2665
2406
|
/** Trusted pnpm pin matching the consumer workspace packageManager; defaults to 12.14.0. */
|
|
2666
2407
|
pnpmVersion?: string;
|
|
@@ -2674,16 +2415,12 @@ interface SnapshotWorkflowOptions {
|
|
|
2674
2415
|
builderWorkflowName?: string;
|
|
2675
2416
|
publisherWorkflowName?: string;
|
|
2676
2417
|
}
|
|
2677
|
-
//#endregion
|
|
2678
|
-
//#region src/commands/release/snapshot/prepared/workflow/index.d.ts
|
|
2679
2418
|
interface SnapshotWorkflows {
|
|
2680
2419
|
build: string;
|
|
2681
2420
|
publish: string;
|
|
2682
2421
|
}
|
|
2683
2422
|
/** Export a matched, opt-in workflow pair with an exact trusted tool and builder policy. */
|
|
2684
2423
|
export declare function getSnapshotWorkflows(options?: SnapshotWorkflowOptions): Promise<SnapshotWorkflows>;
|
|
2685
|
-
//#endregion
|
|
2686
|
-
//#region src/commands/template-drift/types.d.ts
|
|
2687
2424
|
interface TemplateDriftOptions {
|
|
2688
2425
|
/** Compare with metadata from an explicitly supplied extracted template package. */
|
|
2689
2426
|
sourceDir?: string;
|
|
@@ -2746,15 +2483,9 @@ interface TemplateDriftReport extends TemplateDriftCollection {
|
|
|
2746
2483
|
rawSummary: DoctorSummary;
|
|
2747
2484
|
suppressions: DoctorSuppressionReport[];
|
|
2748
2485
|
}
|
|
2749
|
-
//#endregion
|
|
2750
|
-
//#region src/commands/template-drift/report.d.ts
|
|
2751
2486
|
export declare function hasTemplateDriftIssues(report: TemplateDriftReport, strict?: boolean): boolean;
|
|
2752
2487
|
export declare function formatTemplateDriftReport(report: TemplateDriftReport): string;
|
|
2753
|
-
//#endregion
|
|
2754
|
-
//#region src/commands/template-drift/index.d.ts
|
|
2755
2488
|
export declare function checkTemplateDrift(cwd: string, options?: TemplateDriftOptions): Promise<TemplateDriftReport>;
|
|
2756
|
-
//#endregion
|
|
2757
|
-
//#region src/commands/template-instances/types.d.ts
|
|
2758
2489
|
interface TemplateLinkOptions {
|
|
2759
2490
|
cwd: string;
|
|
2760
2491
|
target: string;
|
|
@@ -2778,8 +2509,6 @@ interface TemplateLinkPlan {
|
|
|
2778
2509
|
targetDigest: string;
|
|
2779
2510
|
fingerprint: string;
|
|
2780
2511
|
}
|
|
2781
|
-
//#endregion
|
|
2782
|
-
//#region src/commands/template-instances/link.d.ts
|
|
2783
2512
|
export declare function planTemplateLink(options: TemplateLinkOptions): Promise<TemplateLinkPlan>;
|
|
2784
2513
|
export declare function applyTemplateLinkPlan(plan: TemplateLinkPlan): Promise<{
|
|
2785
2514
|
applied: boolean;
|
|
@@ -2795,8 +2524,6 @@ export declare function applyTemplateLinkPlan(plan: TemplateLinkPlan): Promise<{
|
|
|
2795
2524
|
targetDigest: string;
|
|
2796
2525
|
fingerprint: string;
|
|
2797
2526
|
}>;
|
|
2798
|
-
//#endregion
|
|
2799
|
-
//#region src/core/merge-text/index.d.ts
|
|
2800
2527
|
interface TextMergeConflict {
|
|
2801
2528
|
baseStart: number;
|
|
2802
2529
|
baseEnd: number;
|
|
@@ -2804,8 +2531,6 @@ interface TextMergeConflict {
|
|
|
2804
2531
|
local: string;
|
|
2805
2532
|
upstream: string;
|
|
2806
2533
|
}
|
|
2807
|
-
//#endregion
|
|
2808
|
-
//#region src/commands/template-instances/upgrade/types.d.ts
|
|
2809
2534
|
interface TemplateUpgradeOptions {
|
|
2810
2535
|
cwd: string;
|
|
2811
2536
|
instance: string;
|
|
@@ -2859,18 +2584,10 @@ interface TemplateUpgradeRecoveryResult {
|
|
|
2859
2584
|
}[];
|
|
2860
2585
|
recoveryPath?: string;
|
|
2861
2586
|
}
|
|
2862
|
-
//#endregion
|
|
2863
|
-
//#region src/commands/template-instances/upgrade/apply.d.ts
|
|
2864
2587
|
export declare function applyTemplateUpgradePlan(plan: TemplateUpgradePlan): Promise<TemplateUpgradeResult>;
|
|
2865
|
-
//#endregion
|
|
2866
|
-
//#region src/commands/template-instances/upgrade/plan.d.ts
|
|
2867
2588
|
export declare function planTemplateUpgrade(options: TemplateUpgradeOptions): Promise<TemplateUpgradePlan>;
|
|
2868
|
-
//#endregion
|
|
2869
|
-
//#region src/commands/template-instances/upgrade/recover.d.ts
|
|
2870
2589
|
/** Inspect or restore one interrupted operation, retaining every concurrent business edit. */
|
|
2871
2590
|
export declare function recoverTemplateUpgrade(cwd: string, selector: string, apply?: boolean): Promise<TemplateUpgradeRecoveryResult>;
|
|
2872
|
-
//#endregion
|
|
2873
|
-
//#region src/commands/template-validation/types.d.ts
|
|
2874
2591
|
type TemplateValidationStage = 'inspect' | 'generate' | 'install' | 'build' | 'lint' | 'lint:styles' | 'typecheck' | 'tsd' | 'test' | 'test:e2e' | 'artifact';
|
|
2875
2592
|
interface TemplateValidationOptions {
|
|
2876
2593
|
template: string;
|
|
@@ -2937,15 +2654,9 @@ interface TemplateValidationReport {
|
|
|
2937
2654
|
temporaryDirectory?: string;
|
|
2938
2655
|
retained: boolean;
|
|
2939
2656
|
}
|
|
2940
|
-
//#endregion
|
|
2941
|
-
//#region src/commands/template-validation/plan.d.ts
|
|
2942
2657
|
export declare function planTemplateValidation(options: TemplateValidationOptions): Promise<TemplateValidationPlan>;
|
|
2943
|
-
//#endregion
|
|
2944
|
-
//#region src/commands/template-validation/index.d.ts
|
|
2945
2658
|
/** Explicitly execute a template author's generated project and publication checks. */
|
|
2946
2659
|
export declare function validateTemplate(options: TemplateValidationOptions): Promise<TemplateValidationReport>;
|
|
2947
|
-
//#endregion
|
|
2948
|
-
//#region src/commands/tooling-capabilities/types.d.ts
|
|
2949
2660
|
interface ToolingCapability {
|
|
2950
2661
|
id: 'playwright' | 'storybook';
|
|
2951
2662
|
version: 1;
|
|
@@ -3045,40 +2756,20 @@ interface ToolingCapabilityResult {
|
|
|
3045
2756
|
changed: string[];
|
|
3046
2757
|
nextSteps: string[];
|
|
3047
2758
|
}
|
|
3048
|
-
//#endregion
|
|
3049
|
-
//#region src/commands/tooling-capabilities/apply.d.ts
|
|
3050
2759
|
export declare function applyToolingCapability(plan: ToolingCapabilityPlan): Promise<ToolingCapabilityResult>;
|
|
3051
|
-
//#endregion
|
|
3052
|
-
//#region src/commands/tooling-capabilities/plan.d.ts
|
|
3053
2760
|
export declare function planToolingCapability(cwd: string, input: ToolingCapabilityOptions): Promise<ToolingCapabilityPlan>;
|
|
3054
|
-
//#endregion
|
|
3055
|
-
//#region src/commands/tooling-capabilities/registry.d.ts
|
|
3056
2761
|
/** Discovery is static: it never imports project configuration or installs a browser. */
|
|
3057
2762
|
export declare function listToolingCapabilities(): ToolingCapability[];
|
|
3058
|
-
//#endregion
|
|
3059
|
-
//#region src/commands/workspace/artifact/index.d.ts
|
|
3060
2763
|
export declare function planWorkspaceArtifact(cwd: string, options: WorkspaceArtifactOptions): Promise<WorkspaceArtifactPlan>;
|
|
3061
2764
|
export declare function applyWorkspaceArtifactPlan(cwd: string, plan: WorkspaceArtifactPlan, options?: WorkspaceArtifactApplyOptions): Promise<WorkspaceArtifactResult>;
|
|
3062
|
-
//#endregion
|
|
3063
|
-
//#region src/commands/workspace/move/apply.d.ts
|
|
3064
2765
|
/** Keep replay checks, validation, mutation and recovery under the same workspace lock. */
|
|
3065
2766
|
export declare function applyWorkspaceMovePlan(cwd: string, plan: WorkspaceMovePlan): Promise<WorkspaceMoveResult>;
|
|
3066
|
-
//#endregion
|
|
3067
|
-
//#region src/commands/workspace/move/plan.d.ts
|
|
3068
2767
|
export declare function planWorkspaceMove(cwd: string, options: WorkspaceMoveOptions): Promise<WorkspaceMovePlan>;
|
|
3069
|
-
//#endregion
|
|
3070
|
-
//#region src/commands/workspace/remove/apply.d.ts
|
|
3071
2768
|
/** Keep replay checks, validation, mutation and recovery under the same workspace lock. */
|
|
3072
2769
|
export declare function applyWorkspaceRemovalPlan(cwd: string, plan: WorkspaceRemovalPlan): Promise<WorkspaceRemovalResult>;
|
|
3073
|
-
//#endregion
|
|
3074
|
-
//#region src/commands/workspace/remove/plan.d.ts
|
|
3075
2770
|
export declare function planWorkspaceRemoval(cwd: string, options: WorkspaceRemovalOptions): Promise<WorkspaceRemovalPlan>;
|
|
3076
|
-
//#endregion
|
|
3077
|
-
//#region package.json.d.ts
|
|
3078
2771
|
declare let name: string;
|
|
3079
2772
|
export declare let version: string;
|
|
3080
|
-
//#endregion
|
|
3081
|
-
//#region src/constants.d.ts
|
|
3082
2773
|
/**
|
|
3083
2774
|
* 用户默认看到的 CLI 名称,帮助文案和生成脚本都统一引导到 repo。
|
|
3084
2775
|
*/
|
|
@@ -3093,11 +2784,7 @@ export declare const templatesDir: string;
|
|
|
3093
2784
|
* monorepo 根目录,方便需要跳出当前包的逻辑(例如定位工作区文件)。
|
|
3094
2785
|
*/
|
|
3095
2786
|
export declare const rootDir: string;
|
|
3096
|
-
//#endregion
|
|
3097
|
-
//#region src/core/codeowners/ownership.d.ts
|
|
3098
2787
|
export declare function inspectWorkspaceOwners(options: CodeownersOptions): Promise<CodeownersReport>;
|
|
3099
|
-
//#endregion
|
|
3100
|
-
//#region src/core/codeowners/index.d.ts
|
|
3101
2788
|
/** Read-only preview; the output file must be explicitly selected. */
|
|
3102
2789
|
export declare function planCodeowners(options: Omit<CodeownersOptions, 'query'> & {
|
|
3103
2790
|
file: string;
|
|
@@ -3107,8 +2794,6 @@ export declare function applyCodeownersPlan(plan: CodeownersPlan): Promise<{
|
|
|
3107
2794
|
status: 'applied' | 'unchanged';
|
|
3108
2795
|
file: string;
|
|
3109
2796
|
}>;
|
|
3110
|
-
//#endregion
|
|
3111
|
-
//#region src/core/config.d.ts
|
|
3112
2797
|
export interface LoadedMonorepoConfig {
|
|
3113
2798
|
file: string | null;
|
|
3114
2799
|
/** Canonical absolute dependency paths with normalized separators for comparisons. */
|
|
@@ -3172,8 +2857,6 @@ export declare function resolveCommandConfig<Name extends keyof NonNullable<Mono
|
|
|
3172
2857
|
* @returns `tooling` 配置;未配置时返回空对象
|
|
3173
2858
|
*/
|
|
3174
2859
|
export declare function resolveToolingConfig(cwd: string): Promise<NonNullable<MonorepoConfig['tooling']>>;
|
|
3175
|
-
//#endregion
|
|
3176
|
-
//#region src/core/context.d.ts
|
|
3177
2860
|
export interface Context {
|
|
3178
2861
|
cwd: string;
|
|
3179
2862
|
git: GitClient;
|
|
@@ -3188,31 +2871,19 @@ export interface Context {
|
|
|
3188
2871
|
* 构建命令执行上下文,封装常用的工作区、Git、配置等信息。
|
|
3189
2872
|
*/
|
|
3190
2873
|
export declare function createContext(cwd: string): Promise<Context>;
|
|
3191
|
-
//#endregion
|
|
3192
|
-
//#region src/core/logger.d.ts
|
|
3193
2874
|
/**
|
|
3194
2875
|
* 统一的日志实例,便于在命令行中输出带有前缀和颜色的消息。
|
|
3195
2876
|
*/
|
|
3196
2877
|
export declare const logger: import("consola").ConsolaInstance;
|
|
3197
|
-
//#endregion
|
|
3198
|
-
//#region src/core/presets/asset-plan/apply.d.ts
|
|
3199
2878
|
export declare function applyOrganizationPresetAssets(plan: OrganizationPresetAssetPlan): Promise<OrganizationPresetAssetResult>;
|
|
3200
|
-
//#endregion
|
|
3201
|
-
//#region src/core/presets/asset-plan/plan.d.ts
|
|
3202
2879
|
/** Inspection is read-only. Applying this plan is the only preset asset write entrypoint. */
|
|
3203
2880
|
export declare function planOrganizationPresetAssets(cwd: string, targets?: string[]): Promise<OrganizationPresetAssetPlan>;
|
|
3204
|
-
//#endregion
|
|
3205
|
-
//#region src/core/presets/load.d.ts
|
|
3206
2881
|
/** Read installed data only: no importing package entrypoints, download, cache write or lifecycle execution. */
|
|
3207
2882
|
export declare function resolveOrganizationPresets(cwd: string, references: OrganizationPresetReference[]): Promise<OrganizationPresetResolution>;
|
|
3208
|
-
//#endregion
|
|
3209
|
-
//#region src/core/workspace-boundaries/index.d.ts
|
|
3210
2883
|
/** Manifest graph inspection only: never executes tasks, rewrites dependencies or scans imports. */
|
|
3211
2884
|
export declare function checkWorkspaceBoundaries(cwd: string, options?: {
|
|
3212
2885
|
config?: WorkspaceBoundariesConfig;
|
|
3213
2886
|
}): Promise<WorkspaceBoundariesReport>;
|
|
3214
|
-
//#endregion
|
|
3215
|
-
//#region src/core/workspace-tasks/types.d.ts
|
|
3216
2887
|
interface WorkspaceTask {
|
|
3217
2888
|
name: string;
|
|
3218
2889
|
command: string;
|
|
@@ -3254,14 +2925,10 @@ interface WorkspaceLocation {
|
|
|
3254
2925
|
status: 'found' | 'ambiguous' | 'not_found';
|
|
3255
2926
|
candidates: WorkspaceTaskPackage[];
|
|
3256
2927
|
}
|
|
3257
|
-
//#endregion
|
|
3258
|
-
//#region src/core/workspace-tasks/index.d.ts
|
|
3259
2928
|
/** Discover script capabilities; commands remain data and are never executed. */
|
|
3260
2929
|
export declare function getWorkspaceTaskCatalog(cwd: string, options?: WorkspaceTaskOptions): Promise<WorkspaceTaskCatalog>;
|
|
3261
2930
|
/** Prefer exact names/paths, then literal fuzzy search; never silently choose a candidate. */
|
|
3262
2931
|
export declare function locateWorkspace(cwd: string, query: string): Promise<WorkspaceLocation>;
|
|
3263
|
-
//#endregion
|
|
3264
|
-
//#region src/utils/fs.d.ts
|
|
3265
2932
|
/**
|
|
3266
2933
|
* JSON 输出选项。
|
|
3267
2934
|
*/
|
|
@@ -3335,14 +3002,10 @@ export declare const outputJSON: typeof outputJson;
|
|
|
3335
3002
|
* - EBUSY: Windows 中资源被系统占用
|
|
3336
3003
|
*/
|
|
3337
3004
|
export declare function isIgnorableFsError(error: unknown): error is NodeJS.ErrnoException;
|
|
3338
|
-
//#endregion
|
|
3339
|
-
//#region src/utils/github.d.ts
|
|
3340
3005
|
/**
|
|
3341
3006
|
* 将 Issue 模版里的 discussions 链接同步为当前仓库的 discussions 地址。
|
|
3342
3007
|
*/
|
|
3343
3008
|
export declare function updateIssueTemplateConfig(source: string, repoName?: string): string;
|
|
3344
|
-
//#endregion
|
|
3345
|
-
//#region src/utils/hash.d.ts
|
|
3346
3009
|
/**
|
|
3347
3010
|
* 生成给定内容的 md5 摘要。
|
|
3348
3011
|
*
|
|
@@ -3358,12 +3021,8 @@ export declare function getFileHash(data: crypto.BinaryLike | ArrayBufferLike):
|
|
|
3358
3021
|
* @returns 两者 md5 不一致时返回 `true`
|
|
3359
3022
|
*/
|
|
3360
3023
|
export declare function isFileChanged(src: crypto.BinaryLike | ArrayBufferLike, dest: crypto.BinaryLike | ArrayBufferLike): boolean;
|
|
3361
|
-
//#endregion
|
|
3362
|
-
//#region src/utils/object.d.ts
|
|
3363
3024
|
type PathInput = readonly string[] | string;
|
|
3364
3025
|
export declare function setByPath(target: Record<PropertyKey, any>, path: PathInput, value: unknown): Record<PropertyKey, any>;
|
|
3365
|
-
//#endregion
|
|
3366
|
-
//#region src/utils/regexp.d.ts
|
|
3367
3026
|
/**
|
|
3368
3027
|
* 逃逸正则表达式中所有特殊字符,避免被当做模式解析。
|
|
3369
3028
|
*/
|
|
@@ -3372,5 +3031,4 @@ export declare function escapeStringRegexp(str: string): string;
|
|
|
3372
3031
|
* 判断字符串是否命中任意一个正则,用于过滤要同步的资产文件。
|
|
3373
3032
|
*/
|
|
3374
3033
|
export declare function isMatch(str: string, arr: RegExp[]): boolean;
|
|
3375
|
-
//#endregion
|
|
3376
3034
|
export { type AdmissionDeclaration, type AffectedCheckCommand, type AffectedCheckMatrix, type AffectedCheckMatrixJob, type AffectedCheckMatrixOptions, type AffectedCheckOptions, type AffectedCheckPlan, type AffectedCheckSettings, type AffectedFallback, type AffectedFile, type AffectedGitRange, type AffectedPackage, type AgenticTemplateFormat, type AgenticTemplateTask, AiCommandConfig, type ArtifactFile, type AutoChangesetApplyOptions, type AutoChangesetApproval, type AutoChangesetDecision, type AutoChangesetDependencyField, type AutoChangesetLevel, type AutoChangesetOptions, type AutoChangesetPolicy, type AutoChangesetReport, type AutoChangesetRevision, type AutoChangesetWorkflowOptions, type BootstrapConsumerReport, type BootstrapManifest, type BootstrapOptions, type BootstrapPackage, type BootstrapPlan, type BootstrapReport, type BootstrapSource, type BoundarySeverity, type CheckExecutionOptions, type CheckExecutionReport, type CheckExecutionStatus, type CheckExecutionTask, type CheckTemplatesOptions, type CleanCommandConfig, CliOpts, type CodeownersConfig, type CodeownersDiagnostic, type CodeownersOptions, type CodeownersPlan, type CodeownersReport, type CommitMsgVerifyOptions, type CommitlintToolingConfig, type ConfigDiagnostic, type ConfigInspection, ConfigSourceLayer, ConfigValueSource, type ConfigValues, type ConsumerApplicability, type ConsumerHost, type ConsumerPackageApplicability, type ConsumerRuntimeContext, CreateChoiceOption, CreateCommandConfig, type CreateNewProjectOptions, type CreateNewProjectPlan, type CreateTemplateDefinition, DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, DependenciesCommandConfig, type DependencyAdmissionConfig, type DependencyAdmissionException, type DependencyAdmissionFinding, type DependencyAdmissionOptions, type DependencyAdmissionReport, type DependencyAdmissionRule, DependencyApplyResult, DependencyConsistencyGroup, DependencyFileChange, DependencyFixOptions, DependencyFixPlan, DependencyGroupStatus, DependencyOccurrence, DependencyProtocol, DependencyReport, DependencySection, DependencyVersionGroup, DocsChannel, DocsCloudflareWorkersTarget, DocsCommandConfig, type DocsDeploymentPlan, type DocsDeploymentReport, type DocsDeploymentResult, type DocsDeploymentStage, type DocsDeploymentStageKey, DocsDeploymentTarget, type DocsOptions, type DocsProviderReceipt, DocsReadinessConfig, DocsScriptDeploymentTarget, DocsSiteConfig, type DocsStateStore, type DoctorCheck, type DoctorCommandConfig, type DoctorFixPlan, type DoctorFixResult, type DoctorOptions, type DoctorReport, type DoctorStatus, type DoctorSummary, type DoctorSuppression, type DoctorSuppressionReport, type EnsurePullRequestOptions, type EnsureReleaseOptions, type EnsureTagOptions, type EnvCacheConfig, type EnvCacheEvidence, type EnvCacheFinding, type EnvCacheOptions, type EnvCacheReport, type EnvCacheSuppression, type EnvCacheTask, type EnvCacheVariable, type EnvInfo, type EnvPathEntry, type EnvPaths, type EnvSnapshot, type EnvSupportBundle, type EslintToolingConfig, type FreezeSnapshotSourceOptions, type GenerateAgenticTemplateOptions, type GenerateFile, type GenerateOptions, type GeneratePlan, type GenerateResult, type GeneratorName, GetWorkspacePackagesOptions, type GitHookCheck, type GitHooksConfig, type GitHooksInstallOptions, type GitHooksInstallResult, type GitHubClientOptions, type GitHubOperations, type GitHubRelease, type GitUrlMetadata, InitCommandConfig, type InstallBuildDecision, type InstallPolicyKey, type InstallSecurityExpectations, type InstallSecurityOptions, type InstallSecurityPresetPlan, type InstallSecurityReport, type InstallSecuritySetting, type MaintenanceFile, type MaintenancePresetChange, type MaintenancePresetUpgrade, type MaintenanceUpgradeOptions, type MaintenanceUpgradeReport, type MaintenanceVersionChange, MirrorCommandConfig, MonorepoCommitlintConfig, MonorepoConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, type NightlyConsumerReport, type NightlyOptions, type NightlyPackage, type NightlyProvider, type NightlyReport, OrganizationPresetAsset, type OrganizationPresetAssetPlan, type OrganizationPresetAssetResult, OrganizationPresetDiagnostic, OrganizationPresetLayer, OrganizationPresetManifest, OrganizationPresetReference, OrganizationPresetResolution, OrganizationPresetSource, OrganizationPresetTemplate, type PackageCheckCommand, type PackageCheckDiagnostic, type PackageCheckManifestOptions, type PackageCheckOptions, type PackageCheckReport, type PackageCheckResult, type PeerCheckStatus, type PeerCompatibilityCheck, type PeerCompatibilityReport, type PlaywrightCapabilityOptions, type PlaywrightInteraction, type PreCommitVerifyOptions, type PrePushVerifyOptions, type PrepareBootstrapOptions, type PrepareSnapshotOptions, type PreparedSnapshot, type PreparedSnapshotConsumerOptions, type PreparedSnapshotConsumerReport, type PreparedSnapshotManifest, type PreparedSnapshotPublishOptions, type PreparedSnapshotPublishReport, ProjectReferencesApplyResult, ProjectReferencesCheck, ProjectReferencesConfig, ProjectReferencesDiagnostic, ProjectReferencesOperation, ProjectReferencesPlan, type PublicApiConfig, type PublicApiDiagnostic, type PublicApiEntryConfig, type PublicApiEntryReport, type PublicApiOptions, type PublicApiPackageConfig, type PublicApiReport, type PublicApiUpdatePlan, type PublicApiUpdateResult, type RecommendedCheckMode, type RecommendedCheckOptions, type RecommendedCheckPlan, type RecommendedCheckPlanCommand, type ReleaseAfterPublishHookConfig, type ReleaseBootstrapStage, type ReleaseBranchRule, type ReleaseBranchesConfig, type ReleaseCiOptions, type ReleaseCiStage, type StageReceipt as ReleaseCiStageResult, type ReleaseCommandConfig, type ReleaseCompletionRecord, type ReleaseLifecycleState, type ReleaseNightlyConfig, type ReleaseOidcArtifactAuditOptions, type ReleaseOidcAuditOptions, type ReleaseOidcAuditPackage, type ReleaseOidcAuditReport, type ReleaseOidcPackageResult, type ReleasePlan, type ReleasePlanOptions, type ReleasePlanPackage, type ReleasePreparationGeneratedFile, type ReleasePreparationGeneratedFileContext, type ReleasePreparationPolicy, type ReleasePreparationValidationFile, type ReleasePreparationValidationOptions, type ReleasePreparationValidationReport, type ReleaseRegistryConfig, type ReleaseStateSnapshot, type ReleaseTarget, type RepoctlLocale, type ResolveTemplateCatalogOptions, type ResolvedTemplateRemoteSource, type ResolvedTemplateSource, type SimpleGit, type SimpleGitOptions, type SkillTarget, type SnapshotBuildPackage, type SnapshotBuildPlan, type SnapshotBuildPlanOptions, type SnapshotDependency, type SnapshotIdentity, type SnapshotOptions, type SnapshotPackage, type SnapshotPreparationContext, type SnapshotPreparationReceipt, type SnapshotPreparationResult, type SnapshotReferenceGitlink, type SnapshotReport, type SnapshotRunEvidence, type SnapshotSource, type SnapshotWorkflowOptions, type SnapshotWorkflowPolicy, type SnapshotWorkflows, type StagedTypecheckOptions, type StorybookArgs, type StorybookCapabilityOptions, type StylelintToolingConfig, type SyncSkillsOptions, type TemplateCatalog, type TemplateCatalogDiagnostic, type TemplateCatalogEntry, type TemplateDriftCollection, type TemplateDriftFile, type TemplateDriftOptions, type TemplateDriftOwner, type TemplateDriftRegistry, type TemplateDriftReport, type TemplateHealthCheck, type TemplateHealthReport, type TemplateHealthStatus, type TemplateHealthSummary, type TemplateInstance, type TemplateInstanceBaseline, type TemplateInstanceInfo, type TemplateInstanceRegistry, type TemplateInstanceSource, type TemplateLinkOptions, type TemplateLinkPlan, type TemplateRemoteSource, type TemplateSourceOptions, type TemplateSourceRequest, type TemplateUpgradeChange, type TemplateUpgradeEntry, type TemplateUpgradeOptions, type TemplateUpgradePlan, type TemplateUpgradeRecoveryResult, type TemplateUpgradeResult, type TemplateValidationDiagnostic, type TemplateValidationOptions, type TemplateValidationParameterSet, type TemplateValidationPlan, type TemplateValidationReport, type TemplateValidationSample, type TemplateValidationStage, type TemplateValidationStep, type TemplateVersionComparison, type TemplateVersionEvidence, type ToolingCapability, type ToolingCapabilityFile, type ToolingCapabilityOptions, type ToolingCapabilityPlan, type ToolingCapabilityResult, type ToolingConfig, type TsconfigToolingConfig, type TurboAnalysisLimitation, type TurboAnalysisOptions, type TurboCriticalPath, type TurboHashEvidence, type TurboRunAnalysis, type TurboTaskAnalysis, UpgradeApplyOptions, UpgradeApplyResult, UpgradeBaselineChange, UpgradeCommandConfig, UpgradeFilePlan, UpgradeFileStatus, UpgradeInput, UpgradeKeepDecision, UpgradeMergeDetails, UpgradeMigrationStep, UpgradeMigrationsPlan, UpgradeOptions, UpgradeOverrideFinding, UpgradePlan, UpgradeWorkspacePolicy, type VerifiedSnapshotRun, type VerifyCommandOptions, type VerifySnapshotRunOptions, type VitestProjectToolingConfig, type VitestToolingConfig, type WorkspaceArtifactApplyOptions, type WorkspaceArtifactOptions, type WorkspaceArtifactPlan, type WorkspaceArtifactResult, type WorkspaceBoundariesConfig, type WorkspaceBoundariesReport, type WorkspaceBoundaryException, type WorkspaceBoundaryFinding, type WorkspaceBoundaryRule, type WorkspaceBoundarySelector, WorkspaceData, type WorkspaceDependencyType, type WorkspaceGraph, type WorkspaceGraphDiagnostic, type WorkspaceGraphEdge, type WorkspaceGraphFilter, type WorkspaceGraphNode, type WorkspaceGraphOptions, type WorkspaceImpactOptions, type WorkspaceImpactResult, type WorkspaceLocation, WorkspaceMoveOptions, WorkspaceMovePlan, WorkspaceMoveResult, WorkspaceMoveReview, type WorkspaceOwnership, WorkspacePackage, WorkspacePackageManifest, WorkspacePackageSummary, WorkspacePackageSummaryData, WorkspacePackageWithJsonPath, WorkspaceRemovalBlocker, WorkspaceRemovalEntry, WorkspaceRemovalFile, WorkspaceRemovalOptions, WorkspaceRemovalPlan, WorkspaceRemovalResult, type WorkspaceTask, type WorkspaceTaskCatalog, type WorkspaceTaskOptions, type WorkspaceTaskPackage, type WorkspaceWhyResult, applyCreateNewProjectPlan, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createReleasePullRequest, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, generateAgenticTemplate, generateAgenticTemplates, getCreateChoices, getTemplateMap, init, initMetadata, initTooling, initToolingTargets, isGitignoreFile, listTemplateInstances, loadAgenticTasks, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, normalizeInitToolingTargets, name as packageName, rebuildTemplateInstanceBaseline, recoverUnpublished, relocateTemplateInstance, resolveCreateNewProjectPlan, resolveRemoteTemplateSource, resolveTemplateCatalog, templateMap, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath };
|