@savvy-web/silk 1.1.1 → 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.
@@ -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: Plugin<Root, unknown>; //#endregion
9036
9188
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9037
9189
  declare const UncategorizedContentRule: 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, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions$1 as 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, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions$1 as 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: Plugin<Root, unknown>; //#endregion
9036
9188
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9037
9189
  declare const UncategorizedContentRule: 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, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions$1 as 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, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions$1 as changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, makeReleasePlannerTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
9040
9192
  } //#endregion
9041
9193
  //#region src/commitlint/config/schema.d.ts
9042
9194
  /**