@savvy-web/silk 1.1.2 → 1.2.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/changesets-changelog.cjs +25723 -879
- package/changesets-changelog.d.cts +153 -1
- package/changesets-changelog.d.ts +153 -1
- package/changesets-markdownlint.cjs +25723 -879
- package/changesets-markdownlint.d.cts +153 -1
- package/changesets-markdownlint.d.ts +153 -1
- package/package.json +4 -4
- package/packages/silk-effects/dist/dev/pkg/changesets/errors.cjs +26 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/errors.js +25 -1
- package/packages/silk-effects/dist/dev/pkg/changesets/index.cjs +16 -1
- package/packages/silk-effects/dist/dev/pkg/changesets/index.js +17 -2
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.cjs +63 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js +57 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.cjs +255 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.js +252 -0
|
@@ -4328,6 +4328,11 @@ type Changeset$1 = {
|
|
|
4328
4328
|
type NewChangeset = Changeset$1 & {
|
|
4329
4329
|
id: string;
|
|
4330
4330
|
};
|
|
4331
|
+
type ReleasePlan = {
|
|
4332
|
+
changesets: NewChangeset[];
|
|
4333
|
+
releases: ComprehensiveRelease[];
|
|
4334
|
+
preState: PreState | undefined;
|
|
4335
|
+
};
|
|
4331
4336
|
type PackageJSON = {
|
|
4332
4337
|
name: string;
|
|
4333
4338
|
version: string;
|
|
@@ -4365,6 +4370,14 @@ type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenc
|
|
|
4365
4370
|
type ChangelogFunctions = {
|
|
4366
4371
|
getReleaseLine: GetReleaseLine;
|
|
4367
4372
|
getDependencyReleaseLine: GetDependencyReleaseLine;
|
|
4373
|
+
};
|
|
4374
|
+
type PreState = {
|
|
4375
|
+
mode: "pre" | "exit";
|
|
4376
|
+
tag: string;
|
|
4377
|
+
initialVersions: {
|
|
4378
|
+
[pkgName: string]: string;
|
|
4379
|
+
};
|
|
4380
|
+
changesets: string[];
|
|
4368
4381
|
}; //#endregion
|
|
4369
4382
|
//#region src/changesets/api/changelog.d.ts
|
|
4370
4383
|
/**
|
|
@@ -6490,6 +6503,33 @@ declare class GitError extends GitErrorBase<{
|
|
|
6490
6503
|
readonly reason: string;
|
|
6491
6504
|
}> {
|
|
6492
6505
|
get message(): string;
|
|
6506
|
+
}
|
|
6507
|
+
/**
|
|
6508
|
+
* Base class for {@link ReleasePlanError}.
|
|
6509
|
+
*
|
|
6510
|
+
* @privateRemarks
|
|
6511
|
+
* Required export for api-extractor (anonymous Data.TaggedError base). Do not delete.
|
|
6512
|
+
*
|
|
6513
|
+
* @internal
|
|
6514
|
+
*/
|
|
6515
|
+
declare const ReleasePlanErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6516
|
+
readonly _tag: "ReleasePlanError";
|
|
6517
|
+
} & Readonly<A>;
|
|
6518
|
+
/**
|
|
6519
|
+
* Release planning, preview, or apply failure.
|
|
6520
|
+
*
|
|
6521
|
+
* @remarks
|
|
6522
|
+
* Wraps any failure from the underlying `@changesets/*` machinery
|
|
6523
|
+
* (`getReleasePlan`, `applyReleasePlan`, config resolution) into a typed
|
|
6524
|
+
* Effect error, tagged with the phase that failed.
|
|
6525
|
+
*
|
|
6526
|
+
* @public
|
|
6527
|
+
*/
|
|
6528
|
+
declare class ReleasePlanError extends ReleasePlanErrorBase<{
|
|
6529
|
+
/** The phase that failed. */readonly phase: "plan" | "preview" | "apply"; /** Human-readable failure reason. */
|
|
6530
|
+
readonly reason: string;
|
|
6531
|
+
}> {
|
|
6532
|
+
get message(): string;
|
|
6493
6533
|
} //#endregion
|
|
6494
6534
|
//#region src/errors/ChangesetConfigError.d.ts
|
|
6495
6535
|
declare const ChangesetConfigError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
@@ -7402,6 +7442,118 @@ declare const ChangelogServiceBase: Context.TagClass<ChangelogService, "Changelo
|
|
|
7402
7442
|
* @public
|
|
7403
7443
|
*/
|
|
7404
7444
|
declare class ChangelogService extends ChangelogServiceBase {} //#endregion
|
|
7445
|
+
//#region src/changesets/schemas/release-plan.d.ts
|
|
7446
|
+
/** A semantic-version bump level (the `"none"` plan type is filtered out upstream). @public */
|
|
7447
|
+
declare const BumpTypeSchema: Schema.Literal<["major", "minor", "patch"]>;
|
|
7448
|
+
/** A semantic-version bump level. @public */
|
|
7449
|
+
type BumpType = Schema.Schema.Type<typeof BumpTypeSchema>;
|
|
7450
|
+
/** One package's previewed release: version transition + rendered changelog block. @public */
|
|
7451
|
+
declare const PreviewReleaseSchema: Schema.Struct<{
|
|
7452
|
+
name: typeof Schema.String;
|
|
7453
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7454
|
+
oldVersion: typeof Schema.String;
|
|
7455
|
+
newVersion: typeof Schema.String;
|
|
7456
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
7457
|
+
changelogEntry: typeof Schema.String;
|
|
7458
|
+
}>;
|
|
7459
|
+
/** One package's previewed release. @public */
|
|
7460
|
+
type PreviewRelease = Schema.Schema.Type<typeof PreviewReleaseSchema>;
|
|
7461
|
+
/** A parsed pending changeset (id + summary + the packages it bumps). @public */
|
|
7462
|
+
declare const PendingChangesetSchema: Schema.Struct<{
|
|
7463
|
+
id: typeof Schema.String;
|
|
7464
|
+
summary: typeof Schema.String;
|
|
7465
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7466
|
+
name: typeof Schema.String;
|
|
7467
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7468
|
+
}>>;
|
|
7469
|
+
}>;
|
|
7470
|
+
/** A parsed pending changeset. @public */
|
|
7471
|
+
type PendingChangeset = Schema.Schema.Type<typeof PendingChangesetSchema>;
|
|
7472
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
7473
|
+
declare const ChangesetPreviewSchema: Schema.Struct<{
|
|
7474
|
+
preMode: Schema.NullOr<Schema.Literal<["exit", "pre"]>>;
|
|
7475
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7476
|
+
name: typeof Schema.String;
|
|
7477
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7478
|
+
oldVersion: typeof Schema.String;
|
|
7479
|
+
newVersion: typeof Schema.String;
|
|
7480
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
7481
|
+
changelogEntry: typeof Schema.String;
|
|
7482
|
+
}>>;
|
|
7483
|
+
changesets: Schema.Array$<Schema.Struct<{
|
|
7484
|
+
id: typeof Schema.String;
|
|
7485
|
+
summary: typeof Schema.String;
|
|
7486
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7487
|
+
name: typeof Schema.String;
|
|
7488
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7489
|
+
}>>;
|
|
7490
|
+
}>>;
|
|
7491
|
+
}>;
|
|
7492
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
7493
|
+
type ChangesetPreview = Schema.Schema.Type<typeof ChangesetPreviewSchema>;
|
|
7494
|
+
/** One applied package release (version transition). @public */
|
|
7495
|
+
declare const AppliedReleaseEntrySchema: Schema.Struct<{
|
|
7496
|
+
name: typeof Schema.String;
|
|
7497
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7498
|
+
oldVersion: typeof Schema.String;
|
|
7499
|
+
newVersion: typeof Schema.String;
|
|
7500
|
+
}>;
|
|
7501
|
+
/** A single versionFiles update applied (or planned, when dry). @public */
|
|
7502
|
+
declare const VersionFileUpdateRecordSchema: Schema.Struct<{
|
|
7503
|
+
filePath: typeof Schema.String;
|
|
7504
|
+
version: typeof Schema.String;
|
|
7505
|
+
}>;
|
|
7506
|
+
/** Result of {@link ReleasePlanner.apply}. @public */
|
|
7507
|
+
declare const AppliedReleaseSchema: Schema.Struct<{
|
|
7508
|
+
dryRun: typeof Schema.Boolean;
|
|
7509
|
+
touchedFiles: Schema.Array$<typeof Schema.String>;
|
|
7510
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7511
|
+
name: typeof Schema.String;
|
|
7512
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7513
|
+
oldVersion: typeof Schema.String;
|
|
7514
|
+
newVersion: typeof Schema.String;
|
|
7515
|
+
}>>;
|
|
7516
|
+
versionFileUpdates: Schema.Array$<Schema.Struct<{
|
|
7517
|
+
filePath: typeof Schema.String;
|
|
7518
|
+
version: typeof Schema.String;
|
|
7519
|
+
}>>;
|
|
7520
|
+
}>;
|
|
7521
|
+
/** Result of a native apply. @public */
|
|
7522
|
+
type AppliedRelease = Schema.Schema.Type<typeof AppliedReleaseSchema>; //#endregion
|
|
7523
|
+
//#region src/changesets/services/release-planner.d.ts
|
|
7524
|
+
/** The `ReleasePlanner` service surface. @public */
|
|
7525
|
+
interface ReleasePlannerShape {
|
|
7526
|
+
/** Compute the in-memory release plan (read-only). */
|
|
7527
|
+
readonly plan: (root: string) => Effect.Effect<ReleasePlan, ReleasePlanError>;
|
|
7528
|
+
/** Render a non-destructive preview of the next release. */
|
|
7529
|
+
readonly preview: (root: string) => Effect.Effect<ChangesetPreview, ReleasePlanError>;
|
|
7530
|
+
/** Natively apply the release (destructive unless `dryRun`). */
|
|
7531
|
+
readonly apply: (root: string, options?: {
|
|
7532
|
+
readonly dryRun?: boolean;
|
|
7533
|
+
}) => Effect.Effect<AppliedRelease, ReleasePlanError>;
|
|
7534
|
+
}
|
|
7535
|
+
/**
|
|
7536
|
+
* Base class for {@link ReleasePlanner}.
|
|
7537
|
+
*
|
|
7538
|
+
* @privateRemarks Required export for api-extractor (anonymous Context.Tag base). Do not delete.
|
|
7539
|
+
* @internal
|
|
7540
|
+
*/
|
|
7541
|
+
declare const ReleasePlannerBase: Context.TagClass<ReleasePlanner, "ReleasePlanner", ReleasePlannerShape>;
|
|
7542
|
+
/** Effect service tag for the release planner. @public */
|
|
7543
|
+
declare class ReleasePlanner extends ReleasePlannerBase {}
|
|
7544
|
+
/** Production layer. Requires {@link ConfigInspector} (used by `apply`). @public */
|
|
7545
|
+
declare const ReleasePlannerLive: Layer.Layer<ReleasePlanner, never, ConfigInspector>;
|
|
7546
|
+
/**
|
|
7547
|
+
* Test factory — supply fixed results for any subset of methods. Unsupplied
|
|
7548
|
+
* methods fail with a `ReleasePlanError`.
|
|
7549
|
+
*
|
|
7550
|
+
* @public
|
|
7551
|
+
*/
|
|
7552
|
+
declare function makeReleasePlannerTest(fixed: {
|
|
7553
|
+
readonly plan?: ReleasePlan;
|
|
7554
|
+
readonly preview?: ChangesetPreview;
|
|
7555
|
+
readonly apply?: AppliedRelease;
|
|
7556
|
+
}): Layer.Layer<ReleasePlanner>; //#endregion
|
|
7405
7557
|
//#region src/changesets/services/workspace-snapshot.d.ts
|
|
7406
7558
|
/**
|
|
7407
7559
|
* One workspace package as it existed at a specific git ref.
|
|
@@ -9036,7 +9188,7 @@ declare const RequiredSectionsRule$2: Plugin<Root, unknown>; //#endregion
|
|
|
9036
9188
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
9037
9189
|
declare const UncategorizedContentRule$2: Plugin<Root, unknown>;
|
|
9038
9190
|
declare namespace index_d_exports {
|
|
9039
|
-
export { AggregateDependencyTablesPlugin, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PositiveInteger, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
9191
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PendingChangeset, PendingChangesetSchema, PositiveInteger, PreviewRelease, PreviewReleaseSchema, ReleasePlanError, ReleasePlanErrorBase, ReleasePlanner, ReleasePlannerBase, ReleasePlannerLive, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, makeReleasePlannerTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
9040
9192
|
} //#endregion
|
|
9041
9193
|
//#region src/commitlint/config/schema.d.ts
|
|
9042
9194
|
/**
|
|
@@ -4328,6 +4328,11 @@ type Changeset$1 = {
|
|
|
4328
4328
|
type NewChangeset = Changeset$1 & {
|
|
4329
4329
|
id: string;
|
|
4330
4330
|
};
|
|
4331
|
+
type ReleasePlan = {
|
|
4332
|
+
changesets: NewChangeset[];
|
|
4333
|
+
releases: ComprehensiveRelease[];
|
|
4334
|
+
preState: PreState | undefined;
|
|
4335
|
+
};
|
|
4331
4336
|
type PackageJSON = {
|
|
4332
4337
|
name: string;
|
|
4333
4338
|
version: string;
|
|
@@ -4365,6 +4370,14 @@ type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenc
|
|
|
4365
4370
|
type ChangelogFunctions = {
|
|
4366
4371
|
getReleaseLine: GetReleaseLine;
|
|
4367
4372
|
getDependencyReleaseLine: GetDependencyReleaseLine;
|
|
4373
|
+
};
|
|
4374
|
+
type PreState = {
|
|
4375
|
+
mode: "pre" | "exit";
|
|
4376
|
+
tag: string;
|
|
4377
|
+
initialVersions: {
|
|
4378
|
+
[pkgName: string]: string;
|
|
4379
|
+
};
|
|
4380
|
+
changesets: string[];
|
|
4368
4381
|
}; //#endregion
|
|
4369
4382
|
//#region src/changesets/api/changelog.d.ts
|
|
4370
4383
|
/**
|
|
@@ -6490,6 +6503,33 @@ declare class GitError extends GitErrorBase<{
|
|
|
6490
6503
|
readonly reason: string;
|
|
6491
6504
|
}> {
|
|
6492
6505
|
get message(): string;
|
|
6506
|
+
}
|
|
6507
|
+
/**
|
|
6508
|
+
* Base class for {@link ReleasePlanError}.
|
|
6509
|
+
*
|
|
6510
|
+
* @privateRemarks
|
|
6511
|
+
* Required export for api-extractor (anonymous Data.TaggedError base). Do not delete.
|
|
6512
|
+
*
|
|
6513
|
+
* @internal
|
|
6514
|
+
*/
|
|
6515
|
+
declare const ReleasePlanErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6516
|
+
readonly _tag: "ReleasePlanError";
|
|
6517
|
+
} & Readonly<A>;
|
|
6518
|
+
/**
|
|
6519
|
+
* Release planning, preview, or apply failure.
|
|
6520
|
+
*
|
|
6521
|
+
* @remarks
|
|
6522
|
+
* Wraps any failure from the underlying `@changesets/*` machinery
|
|
6523
|
+
* (`getReleasePlan`, `applyReleasePlan`, config resolution) into a typed
|
|
6524
|
+
* Effect error, tagged with the phase that failed.
|
|
6525
|
+
*
|
|
6526
|
+
* @public
|
|
6527
|
+
*/
|
|
6528
|
+
declare class ReleasePlanError extends ReleasePlanErrorBase<{
|
|
6529
|
+
/** The phase that failed. */readonly phase: "plan" | "preview" | "apply"; /** Human-readable failure reason. */
|
|
6530
|
+
readonly reason: string;
|
|
6531
|
+
}> {
|
|
6532
|
+
get message(): string;
|
|
6493
6533
|
} //#endregion
|
|
6494
6534
|
//#region src/errors/ChangesetConfigError.d.ts
|
|
6495
6535
|
declare const ChangesetConfigError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
@@ -7402,6 +7442,118 @@ declare const ChangelogServiceBase: Context.TagClass<ChangelogService, "Changelo
|
|
|
7402
7442
|
* @public
|
|
7403
7443
|
*/
|
|
7404
7444
|
declare class ChangelogService extends ChangelogServiceBase {} //#endregion
|
|
7445
|
+
//#region src/changesets/schemas/release-plan.d.ts
|
|
7446
|
+
/** A semantic-version bump level (the `"none"` plan type is filtered out upstream). @public */
|
|
7447
|
+
declare const BumpTypeSchema: Schema.Literal<["major", "minor", "patch"]>;
|
|
7448
|
+
/** A semantic-version bump level. @public */
|
|
7449
|
+
type BumpType = Schema.Schema.Type<typeof BumpTypeSchema>;
|
|
7450
|
+
/** One package's previewed release: version transition + rendered changelog block. @public */
|
|
7451
|
+
declare const PreviewReleaseSchema: Schema.Struct<{
|
|
7452
|
+
name: typeof Schema.String;
|
|
7453
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7454
|
+
oldVersion: typeof Schema.String;
|
|
7455
|
+
newVersion: typeof Schema.String;
|
|
7456
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
7457
|
+
changelogEntry: typeof Schema.String;
|
|
7458
|
+
}>;
|
|
7459
|
+
/** One package's previewed release. @public */
|
|
7460
|
+
type PreviewRelease = Schema.Schema.Type<typeof PreviewReleaseSchema>;
|
|
7461
|
+
/** A parsed pending changeset (id + summary + the packages it bumps). @public */
|
|
7462
|
+
declare const PendingChangesetSchema: Schema.Struct<{
|
|
7463
|
+
id: typeof Schema.String;
|
|
7464
|
+
summary: typeof Schema.String;
|
|
7465
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7466
|
+
name: typeof Schema.String;
|
|
7467
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7468
|
+
}>>;
|
|
7469
|
+
}>;
|
|
7470
|
+
/** A parsed pending changeset. @public */
|
|
7471
|
+
type PendingChangeset = Schema.Schema.Type<typeof PendingChangesetSchema>;
|
|
7472
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
7473
|
+
declare const ChangesetPreviewSchema: Schema.Struct<{
|
|
7474
|
+
preMode: Schema.NullOr<Schema.Literal<["exit", "pre"]>>;
|
|
7475
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7476
|
+
name: typeof Schema.String;
|
|
7477
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7478
|
+
oldVersion: typeof Schema.String;
|
|
7479
|
+
newVersion: typeof Schema.String;
|
|
7480
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
7481
|
+
changelogEntry: typeof Schema.String;
|
|
7482
|
+
}>>;
|
|
7483
|
+
changesets: Schema.Array$<Schema.Struct<{
|
|
7484
|
+
id: typeof Schema.String;
|
|
7485
|
+
summary: typeof Schema.String;
|
|
7486
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7487
|
+
name: typeof Schema.String;
|
|
7488
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7489
|
+
}>>;
|
|
7490
|
+
}>>;
|
|
7491
|
+
}>;
|
|
7492
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
7493
|
+
type ChangesetPreview = Schema.Schema.Type<typeof ChangesetPreviewSchema>;
|
|
7494
|
+
/** One applied package release (version transition). @public */
|
|
7495
|
+
declare const AppliedReleaseEntrySchema: Schema.Struct<{
|
|
7496
|
+
name: typeof Schema.String;
|
|
7497
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7498
|
+
oldVersion: typeof Schema.String;
|
|
7499
|
+
newVersion: typeof Schema.String;
|
|
7500
|
+
}>;
|
|
7501
|
+
/** A single versionFiles update applied (or planned, when dry). @public */
|
|
7502
|
+
declare const VersionFileUpdateRecordSchema: Schema.Struct<{
|
|
7503
|
+
filePath: typeof Schema.String;
|
|
7504
|
+
version: typeof Schema.String;
|
|
7505
|
+
}>;
|
|
7506
|
+
/** Result of {@link ReleasePlanner.apply}. @public */
|
|
7507
|
+
declare const AppliedReleaseSchema: Schema.Struct<{
|
|
7508
|
+
dryRun: typeof Schema.Boolean;
|
|
7509
|
+
touchedFiles: Schema.Array$<typeof Schema.String>;
|
|
7510
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
7511
|
+
name: typeof Schema.String;
|
|
7512
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
7513
|
+
oldVersion: typeof Schema.String;
|
|
7514
|
+
newVersion: typeof Schema.String;
|
|
7515
|
+
}>>;
|
|
7516
|
+
versionFileUpdates: Schema.Array$<Schema.Struct<{
|
|
7517
|
+
filePath: typeof Schema.String;
|
|
7518
|
+
version: typeof Schema.String;
|
|
7519
|
+
}>>;
|
|
7520
|
+
}>;
|
|
7521
|
+
/** Result of a native apply. @public */
|
|
7522
|
+
type AppliedRelease = Schema.Schema.Type<typeof AppliedReleaseSchema>; //#endregion
|
|
7523
|
+
//#region src/changesets/services/release-planner.d.ts
|
|
7524
|
+
/** The `ReleasePlanner` service surface. @public */
|
|
7525
|
+
interface ReleasePlannerShape {
|
|
7526
|
+
/** Compute the in-memory release plan (read-only). */
|
|
7527
|
+
readonly plan: (root: string) => Effect.Effect<ReleasePlan, ReleasePlanError>;
|
|
7528
|
+
/** Render a non-destructive preview of the next release. */
|
|
7529
|
+
readonly preview: (root: string) => Effect.Effect<ChangesetPreview, ReleasePlanError>;
|
|
7530
|
+
/** Natively apply the release (destructive unless `dryRun`). */
|
|
7531
|
+
readonly apply: (root: string, options?: {
|
|
7532
|
+
readonly dryRun?: boolean;
|
|
7533
|
+
}) => Effect.Effect<AppliedRelease, ReleasePlanError>;
|
|
7534
|
+
}
|
|
7535
|
+
/**
|
|
7536
|
+
* Base class for {@link ReleasePlanner}.
|
|
7537
|
+
*
|
|
7538
|
+
* @privateRemarks Required export for api-extractor (anonymous Context.Tag base). Do not delete.
|
|
7539
|
+
* @internal
|
|
7540
|
+
*/
|
|
7541
|
+
declare const ReleasePlannerBase: Context.TagClass<ReleasePlanner, "ReleasePlanner", ReleasePlannerShape>;
|
|
7542
|
+
/** Effect service tag for the release planner. @public */
|
|
7543
|
+
declare class ReleasePlanner extends ReleasePlannerBase {}
|
|
7544
|
+
/** Production layer. Requires {@link ConfigInspector} (used by `apply`). @public */
|
|
7545
|
+
declare const ReleasePlannerLive: Layer.Layer<ReleasePlanner, never, ConfigInspector>;
|
|
7546
|
+
/**
|
|
7547
|
+
* Test factory — supply fixed results for any subset of methods. Unsupplied
|
|
7548
|
+
* methods fail with a `ReleasePlanError`.
|
|
7549
|
+
*
|
|
7550
|
+
* @public
|
|
7551
|
+
*/
|
|
7552
|
+
declare function makeReleasePlannerTest(fixed: {
|
|
7553
|
+
readonly plan?: ReleasePlan;
|
|
7554
|
+
readonly preview?: ChangesetPreview;
|
|
7555
|
+
readonly apply?: AppliedRelease;
|
|
7556
|
+
}): Layer.Layer<ReleasePlanner>; //#endregion
|
|
7405
7557
|
//#region src/changesets/services/workspace-snapshot.d.ts
|
|
7406
7558
|
/**
|
|
7407
7559
|
* One workspace package as it existed at a specific git ref.
|
|
@@ -9036,7 +9188,7 @@ declare const RequiredSectionsRule$2: Plugin<Root, unknown>; //#endregion
|
|
|
9036
9188
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
9037
9189
|
declare const UncategorizedContentRule$2: Plugin<Root, unknown>;
|
|
9038
9190
|
declare namespace index_d_exports {
|
|
9039
|
-
export { AggregateDependencyTablesPlugin, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PositiveInteger, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
9191
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PendingChangeset, PendingChangesetSchema, PositiveInteger, PreviewRelease, PreviewReleaseSchema, ReleasePlanError, ReleasePlanErrorBase, ReleasePlanner, ReleasePlannerBase, ReleasePlannerLive, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, makeReleasePlannerTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
9040
9192
|
} //#endregion
|
|
9041
9193
|
//#region src/commitlint/config/schema.d.ts
|
|
9042
9194
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The single Silk Suite dev-tooling package — changeset, commitlint, lint, and biome conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@effect/platform": "^0.96.1",
|
|
69
|
-
"@savvy-web/silk-effects": "1.
|
|
69
|
+
"@savvy-web/silk-effects": "1.4.0",
|
|
70
70
|
"effect": "^3.21.3",
|
|
71
71
|
"semver": "^7.8.4"
|
|
72
72
|
},
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@changesets/cli": "^2.31.0",
|
|
76
76
|
"@commitlint/cli": "^21.0.1",
|
|
77
77
|
"@commitlint/config-conventional": "^21.0.2",
|
|
78
|
-
"@savvy-web/cli": "1.
|
|
79
|
-
"@savvy-web/mcp": "1.
|
|
78
|
+
"@savvy-web/cli": "1.2.0",
|
|
79
|
+
"@savvy-web/mcp": "1.2.0",
|
|
80
80
|
"@types/node": "^25.9.0",
|
|
81
81
|
"@typescript/native-preview": "^7.0.0-dev.20260513.1",
|
|
82
82
|
"commitizen": "^4.3.0",
|
|
@@ -300,6 +300,30 @@ var GitError = class extends GitErrorBase {
|
|
|
300
300
|
return `git command failed in ${this.cwd}: ${this.command}\n${this.reason}`;
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* Base class for {@link ReleasePlanError}.
|
|
305
|
+
*
|
|
306
|
+
* @privateRemarks
|
|
307
|
+
* Required export for api-extractor (anonymous Data.TaggedError base). Do not delete.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
const ReleasePlanErrorBase = effect.Data.TaggedError("ReleasePlanError");
|
|
312
|
+
/**
|
|
313
|
+
* Release planning, preview, or apply failure.
|
|
314
|
+
*
|
|
315
|
+
* @remarks
|
|
316
|
+
* Wraps any failure from the underlying `@changesets/*` machinery
|
|
317
|
+
* (`getReleasePlan`, `applyReleasePlan`, config resolution) into a typed
|
|
318
|
+
* Effect error, tagged with the phase that failed.
|
|
319
|
+
*
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
var ReleasePlanError = class extends ReleasePlanErrorBase {
|
|
323
|
+
get message() {
|
|
324
|
+
return `Release plan error (${this.phase}): ${this.reason}`;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
303
327
|
|
|
304
328
|
//#endregion
|
|
305
329
|
exports.ChangesetValidationError = ChangesetValidationError;
|
|
@@ -312,5 +336,7 @@ exports.GitHubApiError = GitHubApiError;
|
|
|
312
336
|
exports.GitHubApiErrorBase = GitHubApiErrorBase;
|
|
313
337
|
exports.MarkdownParseError = MarkdownParseError;
|
|
314
338
|
exports.MarkdownParseErrorBase = MarkdownParseErrorBase;
|
|
339
|
+
exports.ReleasePlanError = ReleasePlanError;
|
|
340
|
+
exports.ReleasePlanErrorBase = ReleasePlanErrorBase;
|
|
315
341
|
exports.VersionFileError = VersionFileError;
|
|
316
342
|
exports.VersionFileErrorBase = VersionFileErrorBase;
|
|
@@ -300,6 +300,30 @@ var GitError = class extends GitErrorBase {
|
|
|
300
300
|
return `git command failed in ${this.cwd}: ${this.command}\n${this.reason}`;
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* Base class for {@link ReleasePlanError}.
|
|
305
|
+
*
|
|
306
|
+
* @privateRemarks
|
|
307
|
+
* Required export for api-extractor (anonymous Data.TaggedError base). Do not delete.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
const ReleasePlanErrorBase = Data.TaggedError("ReleasePlanError");
|
|
312
|
+
/**
|
|
313
|
+
* Release planning, preview, or apply failure.
|
|
314
|
+
*
|
|
315
|
+
* @remarks
|
|
316
|
+
* Wraps any failure from the underlying `@changesets/*` machinery
|
|
317
|
+
* (`getReleasePlan`, `applyReleasePlan`, config resolution) into a typed
|
|
318
|
+
* Effect error, tagged with the phase that failed.
|
|
319
|
+
*
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
var ReleasePlanError = class extends ReleasePlanErrorBase {
|
|
323
|
+
get message() {
|
|
324
|
+
return `Release plan error (${this.phase}): ${this.reason}`;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
303
327
|
|
|
304
328
|
//#endregion
|
|
305
|
-
export { ChangesetValidationError, ChangesetValidationErrorBase, ConfigurationError, ConfigurationErrorBase, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, MarkdownParseError, MarkdownParseErrorBase, VersionFileError, VersionFileErrorBase };
|
|
329
|
+
export { ChangesetValidationError, ChangesetValidationErrorBase, ConfigurationError, ConfigurationErrorBase, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, MarkdownParseError, MarkdownParseErrorBase, ReleasePlanError, ReleasePlanErrorBase, VersionFileError, VersionFileErrorBase };
|
|
@@ -28,13 +28,15 @@ const require_transformer = require('./api/transformer.cjs');
|
|
|
28
28
|
const require_config_inspector = require('./services/config-inspector.cjs');
|
|
29
29
|
const require_branch_analyzer = require('./services/branch-analyzer.cjs');
|
|
30
30
|
const require_changelog$1 = require('./services/changelog.cjs');
|
|
31
|
+
const require_version_files$1 = require('./utils/version-files.cjs');
|
|
32
|
+
const require_release_planner = require('./services/release-planner.cjs');
|
|
31
33
|
const require_workspace_snapshot = require('./services/workspace-snapshot.cjs');
|
|
32
34
|
const require_types = require('./categories/types.cjs');
|
|
33
35
|
const require_git = require('./schemas/git.cjs');
|
|
34
36
|
const require_changeset = require('./schemas/changeset.cjs');
|
|
37
|
+
const require_release_plan = require('./schemas/release-plan.cjs');
|
|
35
38
|
const require_dep_diff = require('./utils/dep-diff.cjs');
|
|
36
39
|
const require_publishability = require('./utils/publishability.cjs');
|
|
37
|
-
const require_version_files$1 = require('./utils/version-files.cjs');
|
|
38
40
|
const require_worktree_snapshot = require('./utils/worktree-snapshot.cjs');
|
|
39
41
|
const require_content_structure$1 = require('./markdownlint/rules/content-structure.cjs');
|
|
40
42
|
const require_dependency_table_format = require('./markdownlint/rules/dependency-table-format.cjs');
|
|
@@ -49,11 +51,14 @@ const require_presets = require('./remark/presets.cjs');
|
|
|
49
51
|
//#region ../silk-effects/dist/dev/pkg/changesets/index.js
|
|
50
52
|
var changesets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
51
53
|
AggregateDependencyTablesPlugin: () => require_aggregate_dependency_tables.AggregateDependencyTablesPlugin,
|
|
54
|
+
AppliedReleaseEntrySchema: () => require_release_plan.AppliedReleaseEntrySchema,
|
|
55
|
+
AppliedReleaseSchema: () => require_release_plan.AppliedReleaseSchema,
|
|
52
56
|
BranchAnalysisSchema: () => require_branch_analyzer.BranchAnalysisSchema,
|
|
53
57
|
BranchAnalyzer: () => require_branch_analyzer.BranchAnalyzer,
|
|
54
58
|
BranchAnalyzerBase: () => require_branch_analyzer.BranchAnalyzerBase,
|
|
55
59
|
BranchAnalyzerLive: () => require_branch_analyzer.BranchAnalyzerLive,
|
|
56
60
|
BranchFileEntrySchema: () => require_branch_analyzer.BranchFileEntrySchema,
|
|
61
|
+
BumpTypeSchema: () => require_release_plan.BumpTypeSchema,
|
|
57
62
|
Categories: () => require_categories.Categories,
|
|
58
63
|
Changelog: () => require_changelog.Changelog,
|
|
59
64
|
ChangelogService: () => require_changelog$1.ChangelogService,
|
|
@@ -61,6 +66,7 @@ var changesets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
61
66
|
ChangelogTransformer: () => require_transformer.ChangelogTransformer,
|
|
62
67
|
ChangesetLinter: () => require_linter.ChangesetLinter,
|
|
63
68
|
ChangesetOptionsSchema: () => require_options.ChangesetOptionsSchema,
|
|
69
|
+
ChangesetPreviewSchema: () => require_release_plan.ChangesetPreviewSchema,
|
|
64
70
|
ChangesetSchema: () => require_changeset.ChangesetSchema,
|
|
65
71
|
ChangesetSummarySchema: () => require_changeset.ChangesetSummarySchema,
|
|
66
72
|
ChangesetValidationError: () => require_errors.ChangesetValidationError,
|
|
@@ -116,7 +122,14 @@ var changesets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
116
122
|
NormalizeFormatPlugin: () => require_normalize_format.NormalizeFormatPlugin,
|
|
117
123
|
PackageScopeSchema: () => require_package_scope.PackageScopeSchema,
|
|
118
124
|
PackagesRecordSchema: () => require_package_scope.PackagesRecordSchema,
|
|
125
|
+
PendingChangesetSchema: () => require_release_plan.PendingChangesetSchema,
|
|
119
126
|
PositiveInteger: () => require_primitives.PositiveInteger,
|
|
127
|
+
PreviewReleaseSchema: () => require_release_plan.PreviewReleaseSchema,
|
|
128
|
+
ReleasePlanError: () => require_errors.ReleasePlanError,
|
|
129
|
+
ReleasePlanErrorBase: () => require_errors.ReleasePlanErrorBase,
|
|
130
|
+
ReleasePlanner: () => require_release_planner.ReleasePlanner,
|
|
131
|
+
ReleasePlannerBase: () => require_release_planner.ReleasePlannerBase,
|
|
132
|
+
ReleasePlannerLive: () => require_release_planner.ReleasePlannerLive,
|
|
120
133
|
ReorderSectionsPlugin: () => require_reorder_sections.ReorderSectionsPlugin,
|
|
121
134
|
RepoSchema: () => require_options.RepoSchema,
|
|
122
135
|
RequiredSectionsRule: () => require_required_sections.RequiredSectionsRule,
|
|
@@ -132,6 +145,7 @@ var changesets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
132
145
|
VersionFileConfigSchema: () => require_version_files.VersionFileConfigSchema,
|
|
133
146
|
VersionFileError: () => require_errors.VersionFileError,
|
|
134
147
|
VersionFileErrorBase: () => require_errors.VersionFileErrorBase,
|
|
148
|
+
VersionFileUpdateRecordSchema: () => require_release_plan.VersionFileUpdateRecordSchema,
|
|
135
149
|
VersionFiles: () => require_version_files$1.VersionFiles,
|
|
136
150
|
VersionFilesSchema: () => require_version_files.VersionFilesSchema,
|
|
137
151
|
VersionOrEmptySchema: () => require_dependency_table.VersionOrEmptySchema,
|
|
@@ -146,6 +160,7 @@ var changesets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
146
160
|
makeBranchAnalyzerTest: () => require_branch_analyzer.makeBranchAnalyzerTest,
|
|
147
161
|
makeConfigInspectorTest: () => require_config_inspector.makeConfigInspectorTest,
|
|
148
162
|
makeGitHubTest: () => require_github.makeGitHubTest,
|
|
163
|
+
makeReleasePlannerTest: () => require_release_planner.makeReleasePlannerTest,
|
|
149
164
|
serializeDependencyTableToMarkdown: () => require_dependency_table$1.serializeDependencyTableToMarkdown,
|
|
150
165
|
snapshotFromWorktree: () => require_worktree_snapshot.snapshotFromWorktree
|
|
151
166
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { Categories } from "./api/categories.js";
|
|
3
|
-
import { ChangesetValidationError, ChangesetValidationErrorBase, ConfigurationError, ConfigurationErrorBase, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, MarkdownParseError, MarkdownParseErrorBase, VersionFileError, VersionFileErrorBase } from "./errors.js";
|
|
3
|
+
import { ChangesetValidationError, ChangesetValidationErrorBase, ConfigurationError, ConfigurationErrorBase, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, MarkdownParseError, MarkdownParseErrorBase, ReleasePlanError, ReleasePlanErrorBase, VersionFileError, VersionFileErrorBase } from "./errors.js";
|
|
4
4
|
import { JsonPathSchema, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, VersionFileConfigSchema, VersionFilesSchema } from "./schemas/version-files.js";
|
|
5
5
|
import { GlobSchema, PackageScopeSchema, PackagesRecordSchema } from "./schemas/package-scope.js";
|
|
6
6
|
import { ChangesetOptionsSchema, RepoSchema } from "./schemas/options.js";
|
|
@@ -28,13 +28,15 @@ import { ChangelogTransformer } from "./api/transformer.js";
|
|
|
28
28
|
import { ClassificationReasonSchema, ClassificationSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, InspectedConfigSchema, ResolvedPackageScopeSchema, ResolvedVersionFileSchema, makeConfigInspectorTest } from "./services/config-inspector.js";
|
|
29
29
|
import { BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchFileEntrySchema, FileStatusSchema, makeBranchAnalyzerTest } from "./services/branch-analyzer.js";
|
|
30
30
|
import { ChangelogService, ChangelogServiceBase } from "./services/changelog.js";
|
|
31
|
+
import { VersionFiles } from "./utils/version-files.js";
|
|
32
|
+
import { ReleasePlanner, ReleasePlannerBase, ReleasePlannerLive, makeReleasePlannerTest } from "./services/release-planner.js";
|
|
31
33
|
import { WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive } from "./services/workspace-snapshot.js";
|
|
32
34
|
import { SectionCategorySchema } from "./categories/types.js";
|
|
33
35
|
import { CommitHashSchema, VersionTypeSchema } from "./schemas/git.js";
|
|
34
36
|
import { ChangesetSchema, ChangesetSummarySchema, DependencyTypeSchema, DependencyUpdateSchema } from "./schemas/changeset.js";
|
|
37
|
+
import { AppliedReleaseEntrySchema, AppliedReleaseSchema, BumpTypeSchema, ChangesetPreviewSchema, PendingChangesetSchema, PreviewReleaseSchema, VersionFileUpdateRecordSchema } from "./schemas/release-plan.js";
|
|
35
38
|
import { computeWorkspaceDependencyDiffs } from "./utils/dep-diff.js";
|
|
36
39
|
import { listPublishablePackageNames } from "./utils/publishability.js";
|
|
37
|
-
import { VersionFiles } from "./utils/version-files.js";
|
|
38
40
|
import { gitMergeBase, snapshotFromWorktree } from "./utils/worktree-snapshot.js";
|
|
39
41
|
import { ContentStructureRule as ContentStructureRule$1 } from "./markdownlint/rules/content-structure.js";
|
|
40
42
|
import { DependencyTableFormatRule } from "./markdownlint/rules/dependency-table-format.js";
|
|
@@ -49,11 +51,14 @@ import { SilkChangesetPreset, SilkChangesetTransformPreset } from "./remark/pres
|
|
|
49
51
|
//#region ../silk-effects/dist/dev/pkg/changesets/index.js
|
|
50
52
|
var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
51
53
|
AggregateDependencyTablesPlugin: () => AggregateDependencyTablesPlugin,
|
|
54
|
+
AppliedReleaseEntrySchema: () => AppliedReleaseEntrySchema,
|
|
55
|
+
AppliedReleaseSchema: () => AppliedReleaseSchema,
|
|
52
56
|
BranchAnalysisSchema: () => BranchAnalysisSchema,
|
|
53
57
|
BranchAnalyzer: () => BranchAnalyzer,
|
|
54
58
|
BranchAnalyzerBase: () => BranchAnalyzerBase,
|
|
55
59
|
BranchAnalyzerLive: () => BranchAnalyzerLive,
|
|
56
60
|
BranchFileEntrySchema: () => BranchFileEntrySchema,
|
|
61
|
+
BumpTypeSchema: () => BumpTypeSchema,
|
|
57
62
|
Categories: () => Categories,
|
|
58
63
|
Changelog: () => Changelog,
|
|
59
64
|
ChangelogService: () => ChangelogService,
|
|
@@ -61,6 +66,7 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
61
66
|
ChangelogTransformer: () => ChangelogTransformer,
|
|
62
67
|
ChangesetLinter: () => ChangesetLinter,
|
|
63
68
|
ChangesetOptionsSchema: () => ChangesetOptionsSchema,
|
|
69
|
+
ChangesetPreviewSchema: () => ChangesetPreviewSchema,
|
|
64
70
|
ChangesetSchema: () => ChangesetSchema,
|
|
65
71
|
ChangesetSummarySchema: () => ChangesetSummarySchema,
|
|
66
72
|
ChangesetValidationError: () => ChangesetValidationError,
|
|
@@ -116,7 +122,14 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
116
122
|
NormalizeFormatPlugin: () => NormalizeFormatPlugin,
|
|
117
123
|
PackageScopeSchema: () => PackageScopeSchema,
|
|
118
124
|
PackagesRecordSchema: () => PackagesRecordSchema,
|
|
125
|
+
PendingChangesetSchema: () => PendingChangesetSchema,
|
|
119
126
|
PositiveInteger: () => PositiveInteger,
|
|
127
|
+
PreviewReleaseSchema: () => PreviewReleaseSchema,
|
|
128
|
+
ReleasePlanError: () => ReleasePlanError,
|
|
129
|
+
ReleasePlanErrorBase: () => ReleasePlanErrorBase,
|
|
130
|
+
ReleasePlanner: () => ReleasePlanner,
|
|
131
|
+
ReleasePlannerBase: () => ReleasePlannerBase,
|
|
132
|
+
ReleasePlannerLive: () => ReleasePlannerLive,
|
|
120
133
|
ReorderSectionsPlugin: () => ReorderSectionsPlugin,
|
|
121
134
|
RepoSchema: () => RepoSchema,
|
|
122
135
|
RequiredSectionsRule: () => RequiredSectionsRule,
|
|
@@ -132,6 +145,7 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
132
145
|
VersionFileConfigSchema: () => VersionFileConfigSchema,
|
|
133
146
|
VersionFileError: () => VersionFileError,
|
|
134
147
|
VersionFileErrorBase: () => VersionFileErrorBase,
|
|
148
|
+
VersionFileUpdateRecordSchema: () => VersionFileUpdateRecordSchema,
|
|
135
149
|
VersionFiles: () => VersionFiles,
|
|
136
150
|
VersionFilesSchema: () => VersionFilesSchema,
|
|
137
151
|
VersionOrEmptySchema: () => VersionOrEmptySchema,
|
|
@@ -146,6 +160,7 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
146
160
|
makeBranchAnalyzerTest: () => makeBranchAnalyzerTest,
|
|
147
161
|
makeConfigInspectorTest: () => makeConfigInspectorTest,
|
|
148
162
|
makeGitHubTest: () => makeGitHubTest,
|
|
163
|
+
makeReleasePlannerTest: () => makeReleasePlannerTest,
|
|
149
164
|
serializeDependencyTableToMarkdown: () => serializeDependencyTableToMarkdown,
|
|
150
165
|
snapshotFromWorktree: () => snapshotFromWorktree
|
|
151
166
|
});
|