@savvy-web/silk 3.11.1 → 3.11.3

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.
@@ -54456,6 +54456,8 @@ function makeReleasePlannerTest(fixed) {
54456
54456
  * either shells out through `npx` (network) or to an ambient binary, so a
54457
54457
  * fixture that names one passes or fails on what the machine happens to have
54458
54458
  * installed rather than on this rewrite.
54459
+ *
54460
+ * @internal
54459
54461
  */
54460
54462
  function withChangelogModules(config, changelogModules, phase) {
54461
54463
  const unformatted = {
@@ -54476,7 +54478,11 @@ function withChangelogModules(config, changelogModules, phase) {
54476
54478
  changelog: [changelogModules[configuredId], config.changelog[1]]
54477
54479
  });
54478
54480
  }
54479
- /** Extract the `## <version>` block (down to the next H2 or EOF) from a changelog. */
54481
+ /**
54482
+ * Extract the `## <version>` block (down to the next H2 or EOF) from a changelog.
54483
+ *
54484
+ * @internal
54485
+ */
54480
54486
  function extractVersionBlock(changelog, version) {
54481
54487
  const lines = changelog.split("\n");
54482
54488
  const start = lines.findIndex((l) => l.trim() === `## ${version}`);
@@ -55006,6 +55012,78 @@ const DependencyUpdateSchema = effect.Schema.Struct({
55006
55012
  newVersion: effect.Schema.String
55007
55013
  });
55008
55014
  //#endregion
55015
+ //#region ../silk-effects/dist/dev/pkg/changesets/schemas/deps-regen.js
55016
+ /**
55017
+ * Result schemas for DepsRegen: the side-effect-free regen plan and the result
55018
+ * of applying it.
55019
+ *
55020
+ */
55021
+ const RegenDeleteEntrySchema = effect.Schema.Struct({
55022
+ file: effect.Schema.String,
55023
+ package: effect.Schema.String
55024
+ }).annotate({ identifier: "RegenDeleteEntry" });
55025
+ /**
55026
+ * One dependency-diff row emitted by the deps-regen planner.
55027
+ *
55028
+ * @remarks
55029
+ * `computeWorkspaceDependencyDiffs` intentionally falls back to raw unresolved
55030
+ * specifier strings (`*`, `>=5.7.0`, `^1.2`, `latest`, etc.). This in-memory
55031
+ * plan schema therefore accepts any non-empty `from`/`to` cell instead of the
55032
+ * stricter changelog-table version pattern.
55033
+ *
55034
+ * @public
55035
+ */
55036
+ const RegenDiffRowSchema = effect.Schema.Struct({
55037
+ dependency: NonEmptyString,
55038
+ type: DependencyTableTypeSchema,
55039
+ action: DependencyActionSchema,
55040
+ from: NonEmptyString,
55041
+ to: NonEmptyString
55042
+ }).annotate({ identifier: "RegenDiffRow" });
55043
+ const WorkspaceDependencyDiffPayloadSchema = effect.Schema.Struct({
55044
+ package: effect.Schema.String,
55045
+ relativePath: effect.Schema.String,
55046
+ rows: effect.Schema.Array(RegenDiffRowSchema).check(effect.Schema.isMinLength(1))
55047
+ }).annotate({ identifier: "WorkspaceDependencyDiffPayload" });
55048
+ const RegenWriteEntrySchema = effect.Schema.Struct({
55049
+ file: effect.Schema.String,
55050
+ package: effect.Schema.String,
55051
+ diff: WorkspaceDependencyDiffPayloadSchema
55052
+ }).annotate({ identifier: "RegenWriteEntry" });
55053
+ /**
55054
+ * A prose-only changeset that coexists with a deps-regen run (informational).
55055
+ *
55056
+ * @public
55057
+ */
55058
+ const CoexistingChangesetSchema = effect.Schema.Struct({
55059
+ /** Absolute path of the untouched prose changeset. */
55060
+ file: effect.Schema.String,
55061
+ /** In-scope packages released by this changeset's frontmatter. */
55062
+ packages: effect.Schema.Array(effect.Schema.String)
55063
+ }).annotate({ identifier: "CoexistingChangeset" });
55064
+ /**
55065
+ * Complete side-effect-free deps-regen plan.
55066
+ *
55067
+ * @public
55068
+ */
55069
+ const RegenPlanSchema = effect.Schema.Struct({
55070
+ toDelete: effect.Schema.Array(RegenDeleteEntrySchema),
55071
+ toWrite: effect.Schema.Array(RegenWriteEntrySchema),
55072
+ skippedMixed: effect.Schema.Array(effect.Schema.String),
55073
+ coexisting: effect.Schema.Array(CoexistingChangesetSchema)
55074
+ }).annotate({ identifier: "RegenPlan" });
55075
+ /**
55076
+ * Result of applying a {@link RegenPlan}.
55077
+ *
55078
+ * @public
55079
+ */
55080
+ const RegenResultSchema = effect.Schema.Struct({
55081
+ deleted: effect.Schema.Array(effect.Schema.String),
55082
+ written: effect.Schema.Array(effect.Schema.String),
55083
+ skippedMixed: effect.Schema.Array(effect.Schema.String),
55084
+ coexisting: effect.Schema.Array(CoexistingChangesetSchema)
55085
+ }).annotate({ identifier: "RegenResult" });
55086
+ //#endregion
55009
55087
  //#region ../silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js
55010
55088
  /**
55011
55089
  * Result schemas for the {@link ReleasePlanner} service — the structured
@@ -55591,6 +55669,7 @@ const changelogFunctions = (/* @__PURE__ */ __exportAll({
55591
55669
  ChangesetValidationError: () => ChangesetValidationError,
55592
55670
  ClassificationReasonSchema: () => ClassificationReasonSchema,
55593
55671
  ClassificationSchema: () => ClassificationSchema,
55672
+ CoexistingChangesetSchema: () => CoexistingChangesetSchema,
55594
55673
  CommitHashSchema: () => CommitHashSchema,
55595
55674
  ConfigInspector: () => ConfigInspector,
55596
55675
  ConfigurationError: () => ConfigurationError,
@@ -55637,6 +55716,9 @@ const changelogFunctions = (/* @__PURE__ */ __exportAll({
55637
55716
  PendingChangesetSchema: () => PendingChangesetSchema,
55638
55717
  PositiveInteger: () => PositiveInteger,
55639
55718
  PreviewReleaseSchema: () => PreviewReleaseSchema,
55719
+ RegenDiffRowSchema: () => RegenDiffRowSchema,
55720
+ RegenPlanSchema: () => RegenPlanSchema,
55721
+ RegenResultSchema: () => RegenResultSchema,
55640
55722
  ReleasePlanError: () => ReleasePlanError,
55641
55723
  ReleasePlanner: () => ReleasePlanner,
55642
55724
  ReorderSectionsPlugin: () => ReorderSectionsPlugin,
@@ -7061,34 +7061,109 @@ declare class ChangesetConfig extends ChangesetConfig_base {
7061
7061
  static readonly layer: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
7062
7062
  }
7063
7063
  //#endregion
7064
- //#region src/changesets/utils/dep-diff.d.ts
7064
+ //#region src/changesets/schemas/deps-regen.d.ts
7065
7065
  /**
7066
- * A workspace package's worth of dependency-table rows.
7066
+ * One dependency-diff row emitted by the deps-regen planner.
7067
+ *
7068
+ * @remarks
7069
+ * `computeWorkspaceDependencyDiffs` intentionally falls back to raw unresolved
7070
+ * specifier strings (`*`, `>=5.7.0`, `^1.2`, `latest`, etc.). This in-memory
7071
+ * plan schema therefore accepts any non-empty `from`/`to` cell instead of the
7072
+ * stricter changelog-table version pattern.
7067
7073
  *
7068
7074
  * @public
7069
7075
  */
7070
- interface WorkspaceDependencyDiff {
7071
- /** The workspace package whose `package.json` changed. */
7072
- readonly package: string;
7073
- /** Repo-relative path of the package directory (taken from the `after` snapshot). */
7074
- readonly relativePath: string;
7075
- /** One row per dependency change, sorted by the existing `sortDependencyRows` convention. */
7076
- readonly rows: ReadonlyArray<DependencyTableRow>;
7077
- }
7076
+ declare const RegenDiffRowSchema: Schema.Struct<{
7077
+ readonly dependency: Schema.String;
7078
+ readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
7079
+ readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
7080
+ readonly from: Schema.String;
7081
+ readonly to: Schema.String;
7082
+ }>;
7078
7083
  /**
7079
- * Diff two workspace snapshots and return per-package dependency-table rows,
7080
- * comparing already-resolved specifier values per side.
7084
+ * One dependency-diff row emitted by the deps-regen planner.
7081
7085
  *
7082
- * @param before - Snapshot at the older ref (typically the merge base). A
7083
- * workspace package absent here reports every declared dep as `"added"`.
7084
- * @param after - Snapshot at the newer ref (typically the working tree).
7085
- * @returns One {@link WorkspaceDependencyDiff} entry per workspace package
7086
- * that has at least one row. Packages with no resolved-value changes are
7087
- * omitted.
7086
+ * @public
7087
+ */
7088
+ type RegenDiffRow = Schema.Schema.Type<typeof RegenDiffRowSchema>;
7089
+ /**
7090
+ * A prose-only changeset that coexists with a deps-regen run (informational).
7088
7091
  *
7089
7092
  * @public
7090
7093
  */
7091
- declare function computeWorkspaceDependencyDiffs(before: WorkspaceStateSnapshot, after: WorkspaceStateSnapshot): ReadonlyArray<WorkspaceDependencyDiff>;
7094
+ declare const CoexistingChangesetSchema: Schema.Struct<{
7095
+ /** Absolute path of the untouched prose changeset. */
7096
+ readonly file: Schema.String;
7097
+ /** In-scope packages released by this changeset's frontmatter. */
7098
+ readonly packages: Schema.$Array<Schema.String>;
7099
+ }>;
7100
+ /**
7101
+ * A prose-only changeset that coexists with a deps-regen run (informational).
7102
+ *
7103
+ * @public
7104
+ */
7105
+ type CoexistingChangeset = Schema.Schema.Type<typeof CoexistingChangesetSchema>;
7106
+ /**
7107
+ * Complete side-effect-free deps-regen plan.
7108
+ *
7109
+ * @public
7110
+ */
7111
+ declare const RegenPlanSchema: Schema.Struct<{
7112
+ readonly toDelete: Schema.$Array<Schema.Struct<{
7113
+ readonly file: Schema.String;
7114
+ readonly package: Schema.String;
7115
+ }>>;
7116
+ readonly toWrite: Schema.$Array<Schema.Struct<{
7117
+ readonly file: Schema.String;
7118
+ readonly package: Schema.String;
7119
+ readonly diff: Schema.Struct<{
7120
+ readonly package: Schema.String;
7121
+ readonly relativePath: Schema.String;
7122
+ readonly rows: Schema.$Array<Schema.Struct<{
7123
+ readonly dependency: Schema.String;
7124
+ readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
7125
+ readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
7126
+ readonly from: Schema.String;
7127
+ readonly to: Schema.String;
7128
+ }>>;
7129
+ }>;
7130
+ }>>;
7131
+ readonly skippedMixed: Schema.$Array<Schema.String>;
7132
+ readonly coexisting: Schema.$Array<Schema.Struct<{
7133
+ /** Absolute path of the untouched prose changeset. */
7134
+ readonly file: Schema.String;
7135
+ /** In-scope packages released by this changeset's frontmatter. */
7136
+ readonly packages: Schema.$Array<Schema.String>;
7137
+ }>>;
7138
+ }>;
7139
+ /**
7140
+ * Complete side-effect-free deps-regen plan.
7141
+ *
7142
+ * @public
7143
+ */
7144
+ type RegenPlan = Schema.Schema.Type<typeof RegenPlanSchema>;
7145
+ /**
7146
+ * Result of applying a {@link RegenPlan}.
7147
+ *
7148
+ * @public
7149
+ */
7150
+ declare const RegenResultSchema: Schema.Struct<{
7151
+ readonly deleted: Schema.$Array<Schema.String>;
7152
+ readonly written: Schema.$Array<Schema.String>;
7153
+ readonly skippedMixed: Schema.$Array<Schema.String>;
7154
+ readonly coexisting: Schema.$Array<Schema.Struct<{
7155
+ /** Absolute path of the untouched prose changeset. */
7156
+ readonly file: Schema.String;
7157
+ /** In-scope packages released by this changeset's frontmatter. */
7158
+ readonly packages: Schema.$Array<Schema.String>;
7159
+ }>>;
7160
+ }>;
7161
+ /**
7162
+ * Result of applying a {@link RegenPlan}.
7163
+ *
7164
+ * @public
7165
+ */
7166
+ type RegenResult = Schema.Schema.Type<typeof RegenResultSchema>;
7092
7167
  //#endregion
7093
7168
  //#region src/changesets/services/deps-regen.d.ts
7094
7169
  /**
@@ -7119,58 +7194,6 @@ declare function isPureDependencyChangeset(content: string): {
7119
7194
  * @public
7120
7195
  */
7121
7196
  declare function parseChangesetPackages(content: string): ReadonlyArray<string>;
7122
- /**
7123
- * A prose-only changeset that coexists with the run: it releases at least one
7124
- * package in scope for this run but was left untouched because it carries no
7125
- * `## Dependencies` section. Purely informational (#279) — surfaced so the
7126
- * regen/detect result accounts for every changeset touching an in-scope
7127
- * package, instead of leaving prose entries invisible and forcing a manual
7128
- * `.changeset/` cross-check.
7129
- *
7130
- * @public
7131
- */
7132
- interface CoexistingChangeset {
7133
- /** Absolute path of the untouched prose changeset. */
7134
- readonly file: string;
7135
- /** The in-scope packages its frontmatter releases (out-of-scope names are dropped). */
7136
- readonly packages: ReadonlyArray<string>;
7137
- }
7138
- /**
7139
- * A complete, side-effect-free regen plan: which stale pure-dependency
7140
- * changesets to delete, which fresh changesets to write (carrying the
7141
- * already-resolved diff), which mixed changesets were left untouched, and
7142
- * which coexisting prose changesets reference in-scope packages.
7143
- *
7144
- * @public
7145
- */
7146
- interface RegenPlan {
7147
- readonly toDelete: ReadonlyArray<{
7148
- readonly file: string;
7149
- readonly package: string;
7150
- }>;
7151
- readonly toWrite: ReadonlyArray<{
7152
- readonly file: string;
7153
- readonly package: string;
7154
- readonly diff: WorkspaceDependencyDiff;
7155
- }>;
7156
- readonly skippedMixed: ReadonlyArray<string>;
7157
- /** Informational: untouched prose changesets releasing in-scope packages (#279). */
7158
- readonly coexisting: ReadonlyArray<CoexistingChangeset>;
7159
- }
7160
- /**
7161
- * The result of applying a {@link RegenPlan}: the files actually deleted
7162
- * and written, plus the mixed changesets that were skipped and the
7163
- * coexisting prose changesets carried through from the plan.
7164
- *
7165
- * @public
7166
- */
7167
- interface RegenResult {
7168
- readonly deleted: ReadonlyArray<string>;
7169
- readonly written: ReadonlyArray<string>;
7170
- readonly skippedMixed: ReadonlyArray<string>;
7171
- /** Informational: untouched prose changesets releasing in-scope packages (#279). */
7172
- readonly coexisting: ReadonlyArray<CoexistingChangeset>;
7173
- }
7174
7197
  /**
7175
7198
  * Options for {@link DepsRegenShape.plan}.
7176
7199
  *
@@ -8134,6 +8157,35 @@ declare const LegacyVersionFilesSchema: Schema.$Array<Schema.Struct<{
8134
8157
  readonly package: Schema.optional<Schema.String>;
8135
8158
  }>>;
8136
8159
  //#endregion
8160
+ //#region src/changesets/utils/dep-diff.d.ts
8161
+ /**
8162
+ * A workspace package's worth of dependency-table rows.
8163
+ *
8164
+ * @public
8165
+ */
8166
+ interface WorkspaceDependencyDiff {
8167
+ /** The workspace package whose `package.json` changed. */
8168
+ readonly package: string;
8169
+ /** Repo-relative path of the package directory (taken from the `after` snapshot). */
8170
+ readonly relativePath: string;
8171
+ /** One row per dependency change, sorted by the existing `sortDependencyRows` convention. */
8172
+ readonly rows: ReadonlyArray<DependencyTableRow>;
8173
+ }
8174
+ /**
8175
+ * Diff two workspace snapshots and return per-package dependency-table rows,
8176
+ * comparing already-resolved specifier values per side.
8177
+ *
8178
+ * @param before - Snapshot at the older ref (typically the merge base). A
8179
+ * workspace package absent here reports every declared dep as `"added"`.
8180
+ * @param after - Snapshot at the newer ref (typically the working tree).
8181
+ * @returns One {@link WorkspaceDependencyDiff} entry per workspace package
8182
+ * that has at least one row. Packages with no resolved-value changes are
8183
+ * omitted.
8184
+ *
8185
+ * @public
8186
+ */
8187
+ declare function computeWorkspaceDependencyDiffs(before: WorkspaceStateSnapshot, after: WorkspaceStateSnapshot): ReadonlyArray<WorkspaceDependencyDiff>;
8188
+ //#endregion
8137
8189
  //#region src/changesets/utils/dependency-table.d.ts
8138
8190
  /**
8139
8191
  * Serialize dependency table rows to a markdown table string.
@@ -9164,7 +9216,7 @@ declare const RequiredSectionsRule: Plugin<Root, unknown>;
9164
9216
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9165
9217
  declare const UncategorizedContentRule: Plugin<Root, unknown>;
9166
9218
  declare namespace index_d_exports {
9167
- export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, 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, RegenPlan, RegenResult, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
9219
+ export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CoexistingChangesetSchema, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, 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, RegenDiffRow, RegenDiffRowSchema, RegenPlan, RegenPlanSchema, RegenResult, RegenResultSchema, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
9168
9220
  }
9169
9221
  //#endregion
9170
9222
  //#region src/changesets/changelog.d.ts
@@ -7061,34 +7061,109 @@ declare class ChangesetConfig extends ChangesetConfig_base {
7061
7061
  static readonly layer: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
7062
7062
  }
7063
7063
  //#endregion
7064
- //#region src/changesets/utils/dep-diff.d.ts
7064
+ //#region src/changesets/schemas/deps-regen.d.ts
7065
7065
  /**
7066
- * A workspace package's worth of dependency-table rows.
7066
+ * One dependency-diff row emitted by the deps-regen planner.
7067
+ *
7068
+ * @remarks
7069
+ * `computeWorkspaceDependencyDiffs` intentionally falls back to raw unresolved
7070
+ * specifier strings (`*`, `>=5.7.0`, `^1.2`, `latest`, etc.). This in-memory
7071
+ * plan schema therefore accepts any non-empty `from`/`to` cell instead of the
7072
+ * stricter changelog-table version pattern.
7067
7073
  *
7068
7074
  * @public
7069
7075
  */
7070
- interface WorkspaceDependencyDiff {
7071
- /** The workspace package whose `package.json` changed. */
7072
- readonly package: string;
7073
- /** Repo-relative path of the package directory (taken from the `after` snapshot). */
7074
- readonly relativePath: string;
7075
- /** One row per dependency change, sorted by the existing `sortDependencyRows` convention. */
7076
- readonly rows: ReadonlyArray<DependencyTableRow>;
7077
- }
7076
+ declare const RegenDiffRowSchema: Schema.Struct<{
7077
+ readonly dependency: Schema.String;
7078
+ readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
7079
+ readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
7080
+ readonly from: Schema.String;
7081
+ readonly to: Schema.String;
7082
+ }>;
7078
7083
  /**
7079
- * Diff two workspace snapshots and return per-package dependency-table rows,
7080
- * comparing already-resolved specifier values per side.
7084
+ * One dependency-diff row emitted by the deps-regen planner.
7081
7085
  *
7082
- * @param before - Snapshot at the older ref (typically the merge base). A
7083
- * workspace package absent here reports every declared dep as `"added"`.
7084
- * @param after - Snapshot at the newer ref (typically the working tree).
7085
- * @returns One {@link WorkspaceDependencyDiff} entry per workspace package
7086
- * that has at least one row. Packages with no resolved-value changes are
7087
- * omitted.
7086
+ * @public
7087
+ */
7088
+ type RegenDiffRow = Schema.Schema.Type<typeof RegenDiffRowSchema>;
7089
+ /**
7090
+ * A prose-only changeset that coexists with a deps-regen run (informational).
7088
7091
  *
7089
7092
  * @public
7090
7093
  */
7091
- declare function computeWorkspaceDependencyDiffs(before: WorkspaceStateSnapshot, after: WorkspaceStateSnapshot): ReadonlyArray<WorkspaceDependencyDiff>;
7094
+ declare const CoexistingChangesetSchema: Schema.Struct<{
7095
+ /** Absolute path of the untouched prose changeset. */
7096
+ readonly file: Schema.String;
7097
+ /** In-scope packages released by this changeset's frontmatter. */
7098
+ readonly packages: Schema.$Array<Schema.String>;
7099
+ }>;
7100
+ /**
7101
+ * A prose-only changeset that coexists with a deps-regen run (informational).
7102
+ *
7103
+ * @public
7104
+ */
7105
+ type CoexistingChangeset = Schema.Schema.Type<typeof CoexistingChangesetSchema>;
7106
+ /**
7107
+ * Complete side-effect-free deps-regen plan.
7108
+ *
7109
+ * @public
7110
+ */
7111
+ declare const RegenPlanSchema: Schema.Struct<{
7112
+ readonly toDelete: Schema.$Array<Schema.Struct<{
7113
+ readonly file: Schema.String;
7114
+ readonly package: Schema.String;
7115
+ }>>;
7116
+ readonly toWrite: Schema.$Array<Schema.Struct<{
7117
+ readonly file: Schema.String;
7118
+ readonly package: Schema.String;
7119
+ readonly diff: Schema.Struct<{
7120
+ readonly package: Schema.String;
7121
+ readonly relativePath: Schema.String;
7122
+ readonly rows: Schema.$Array<Schema.Struct<{
7123
+ readonly dependency: Schema.String;
7124
+ readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
7125
+ readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
7126
+ readonly from: Schema.String;
7127
+ readonly to: Schema.String;
7128
+ }>>;
7129
+ }>;
7130
+ }>>;
7131
+ readonly skippedMixed: Schema.$Array<Schema.String>;
7132
+ readonly coexisting: Schema.$Array<Schema.Struct<{
7133
+ /** Absolute path of the untouched prose changeset. */
7134
+ readonly file: Schema.String;
7135
+ /** In-scope packages released by this changeset's frontmatter. */
7136
+ readonly packages: Schema.$Array<Schema.String>;
7137
+ }>>;
7138
+ }>;
7139
+ /**
7140
+ * Complete side-effect-free deps-regen plan.
7141
+ *
7142
+ * @public
7143
+ */
7144
+ type RegenPlan = Schema.Schema.Type<typeof RegenPlanSchema>;
7145
+ /**
7146
+ * Result of applying a {@link RegenPlan}.
7147
+ *
7148
+ * @public
7149
+ */
7150
+ declare const RegenResultSchema: Schema.Struct<{
7151
+ readonly deleted: Schema.$Array<Schema.String>;
7152
+ readonly written: Schema.$Array<Schema.String>;
7153
+ readonly skippedMixed: Schema.$Array<Schema.String>;
7154
+ readonly coexisting: Schema.$Array<Schema.Struct<{
7155
+ /** Absolute path of the untouched prose changeset. */
7156
+ readonly file: Schema.String;
7157
+ /** In-scope packages released by this changeset's frontmatter. */
7158
+ readonly packages: Schema.$Array<Schema.String>;
7159
+ }>>;
7160
+ }>;
7161
+ /**
7162
+ * Result of applying a {@link RegenPlan}.
7163
+ *
7164
+ * @public
7165
+ */
7166
+ type RegenResult = Schema.Schema.Type<typeof RegenResultSchema>;
7092
7167
  //#endregion
7093
7168
  //#region src/changesets/services/deps-regen.d.ts
7094
7169
  /**
@@ -7119,58 +7194,6 @@ declare function isPureDependencyChangeset(content: string): {
7119
7194
  * @public
7120
7195
  */
7121
7196
  declare function parseChangesetPackages(content: string): ReadonlyArray<string>;
7122
- /**
7123
- * A prose-only changeset that coexists with the run: it releases at least one
7124
- * package in scope for this run but was left untouched because it carries no
7125
- * `## Dependencies` section. Purely informational (#279) — surfaced so the
7126
- * regen/detect result accounts for every changeset touching an in-scope
7127
- * package, instead of leaving prose entries invisible and forcing a manual
7128
- * `.changeset/` cross-check.
7129
- *
7130
- * @public
7131
- */
7132
- interface CoexistingChangeset {
7133
- /** Absolute path of the untouched prose changeset. */
7134
- readonly file: string;
7135
- /** The in-scope packages its frontmatter releases (out-of-scope names are dropped). */
7136
- readonly packages: ReadonlyArray<string>;
7137
- }
7138
- /**
7139
- * A complete, side-effect-free regen plan: which stale pure-dependency
7140
- * changesets to delete, which fresh changesets to write (carrying the
7141
- * already-resolved diff), which mixed changesets were left untouched, and
7142
- * which coexisting prose changesets reference in-scope packages.
7143
- *
7144
- * @public
7145
- */
7146
- interface RegenPlan {
7147
- readonly toDelete: ReadonlyArray<{
7148
- readonly file: string;
7149
- readonly package: string;
7150
- }>;
7151
- readonly toWrite: ReadonlyArray<{
7152
- readonly file: string;
7153
- readonly package: string;
7154
- readonly diff: WorkspaceDependencyDiff;
7155
- }>;
7156
- readonly skippedMixed: ReadonlyArray<string>;
7157
- /** Informational: untouched prose changesets releasing in-scope packages (#279). */
7158
- readonly coexisting: ReadonlyArray<CoexistingChangeset>;
7159
- }
7160
- /**
7161
- * The result of applying a {@link RegenPlan}: the files actually deleted
7162
- * and written, plus the mixed changesets that were skipped and the
7163
- * coexisting prose changesets carried through from the plan.
7164
- *
7165
- * @public
7166
- */
7167
- interface RegenResult {
7168
- readonly deleted: ReadonlyArray<string>;
7169
- readonly written: ReadonlyArray<string>;
7170
- readonly skippedMixed: ReadonlyArray<string>;
7171
- /** Informational: untouched prose changesets releasing in-scope packages (#279). */
7172
- readonly coexisting: ReadonlyArray<CoexistingChangeset>;
7173
- }
7174
7197
  /**
7175
7198
  * Options for {@link DepsRegenShape.plan}.
7176
7199
  *
@@ -8134,6 +8157,35 @@ declare const LegacyVersionFilesSchema: Schema.$Array<Schema.Struct<{
8134
8157
  readonly package: Schema.optional<Schema.String>;
8135
8158
  }>>;
8136
8159
  //#endregion
8160
+ //#region src/changesets/utils/dep-diff.d.ts
8161
+ /**
8162
+ * A workspace package's worth of dependency-table rows.
8163
+ *
8164
+ * @public
8165
+ */
8166
+ interface WorkspaceDependencyDiff {
8167
+ /** The workspace package whose `package.json` changed. */
8168
+ readonly package: string;
8169
+ /** Repo-relative path of the package directory (taken from the `after` snapshot). */
8170
+ readonly relativePath: string;
8171
+ /** One row per dependency change, sorted by the existing `sortDependencyRows` convention. */
8172
+ readonly rows: ReadonlyArray<DependencyTableRow>;
8173
+ }
8174
+ /**
8175
+ * Diff two workspace snapshots and return per-package dependency-table rows,
8176
+ * comparing already-resolved specifier values per side.
8177
+ *
8178
+ * @param before - Snapshot at the older ref (typically the merge base). A
8179
+ * workspace package absent here reports every declared dep as `"added"`.
8180
+ * @param after - Snapshot at the newer ref (typically the working tree).
8181
+ * @returns One {@link WorkspaceDependencyDiff} entry per workspace package
8182
+ * that has at least one row. Packages with no resolved-value changes are
8183
+ * omitted.
8184
+ *
8185
+ * @public
8186
+ */
8187
+ declare function computeWorkspaceDependencyDiffs(before: WorkspaceStateSnapshot, after: WorkspaceStateSnapshot): ReadonlyArray<WorkspaceDependencyDiff>;
8188
+ //#endregion
8137
8189
  //#region src/changesets/utils/dependency-table.d.ts
8138
8190
  /**
8139
8191
  * Serialize dependency table rows to a markdown table string.
@@ -9164,7 +9216,7 @@ declare const RequiredSectionsRule: Plugin<Root, unknown>;
9164
9216
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9165
9217
  declare const UncategorizedContentRule: Plugin<Root, unknown>;
9166
9218
  declare namespace index_d_exports {
9167
- export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, 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, RegenPlan, RegenResult, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
9219
+ export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CoexistingChangesetSchema, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, 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, RegenDiffRow, RegenDiffRowSchema, RegenPlan, RegenPlanSchema, RegenResult, RegenResultSchema, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
9168
9220
  }
9169
9221
  //#endregion
9170
9222
  //#region src/changesets/changelog.d.ts