@savvy-web/silk 0.4.1 → 0.5.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.
@@ -6639,88 +6639,77 @@ declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
6639
6639
  */
6640
6640
  //#endregion
6641
6641
  //#region src/changesets/services/config-inspector.d.ts
6642
- /**
6643
- * A `versionFiles` entry expanded to its absolute target paths.
6644
- *
6645
- * @public
6646
- */
6647
- interface ResolvedVersionFile {
6648
- /** The original glob from the config. */
6649
- readonly glob: string;
6650
- /** JSONPath expressions to update (defaults to `["$.version"]`). */
6651
- readonly paths: ReadonlyArray<string>;
6652
- /** Absolute file paths the glob matched at inspection time. */
6653
- readonly matchedFiles: ReadonlyArray<string>;
6654
- }
6655
- /**
6656
- * A package's release surface after the config has been resolved against the
6657
- * workspace and the globs have been materialized.
6658
- *
6659
- * @public
6660
- */
6661
- interface ResolvedPackageScope {
6662
- /** Package name (matches the workspace package's `package.json#name`). */
6663
- readonly name: string;
6664
- /** Absolute path to the package's workspace directory. */
6665
- readonly workspaceDir: string;
6666
- /** Current version from the workspace package's `package.json`. */
6667
- readonly version: string;
6668
- /** Globs declared in the config's `additionalScopes`. */
6669
- readonly additionalScopes: ReadonlyArray<string>;
6670
- /** Files matched by `additionalScopes` (absolute paths). */
6671
- readonly additionalScopeFiles: ReadonlyArray<string>;
6672
- /** Version-file entries, each with their globs materialized. */
6673
- readonly versionFiles: ReadonlyArray<ResolvedVersionFile>;
6674
- }
6675
- /**
6676
- * Structured representation of a resolved `.changeset/config.json` for
6677
- * consumers (CLI commands, agents, tests).
6678
- *
6679
- * @public
6680
- */
6681
- interface InspectedConfig {
6682
- /** Absolute path of the resolved `.changeset/config.json`. */
6683
- readonly configPath: string;
6684
- /** Absolute path of the project root (the directory containing `.changeset/`). */
6685
- readonly projectDir: string;
6686
- /** The changelog formatter ID (e.g., `"@savvy-web/changesets/changelog"`). */
6687
- readonly changelog: string | null;
6688
- /** The base branch the workflow diffs against. */
6689
- readonly baseBranch: string;
6690
- /** Whether configured packages publish as public or restricted. */
6691
- readonly access: "public" | "restricted";
6692
- /** Package names ignored by the changeset workflow. */
6693
- readonly ignore: ReadonlyArray<string>;
6694
- /** Per-package release surfaces. */
6695
- readonly packages: ReadonlyArray<ResolvedPackageScope>;
6696
- /** True when the inspected config still used the deprecated top-level `versionFiles[]`. */
6697
- readonly legacyVersionFilesUsed: boolean;
6698
- }
6699
- /**
6700
- * Reason a path was attributed to a particular package (or left unmapped).
6701
- *
6702
- * @public
6703
- */
6704
- type ClassificationReason = "workspace" | {
6705
- readonly kind: "additionalScope";
6706
- readonly glob: string;
6707
- } | {
6708
- readonly kind: "versionFile";
6709
- readonly glob: string;
6710
- } | null;
6711
- /**
6712
- * The result of classifying a single path against a resolved config.
6713
- *
6714
- * @public
6715
- */
6716
- interface Classification {
6717
- /** Repo-relative path. */
6718
- readonly path: string;
6719
- /** Owning package name, or `null` if the path is outside every known release surface. */
6720
- readonly package: string | null;
6721
- /** Why this attribution was made. `null` mirrors `package: null`. */
6722
- readonly reason: ClassificationReason;
6723
- }
6642
+ /** A `versionFiles` entry expanded to its absolute target paths. @public */
6643
+ declare const ResolvedVersionFileSchema: Schema.Struct<{
6644
+ glob: typeof Schema.String;
6645
+ paths: Schema.Array$<typeof Schema.String>;
6646
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6647
+ }>;
6648
+ /** A `versionFiles` entry expanded to its absolute target paths. @public */
6649
+ type ResolvedVersionFile = Schema.Schema.Type<typeof ResolvedVersionFileSchema>;
6650
+ /** A package's resolved release surface. @public */
6651
+ declare const ResolvedPackageScopeSchema: Schema.Struct<{
6652
+ name: typeof Schema.String;
6653
+ workspaceDir: typeof Schema.String;
6654
+ version: typeof Schema.String;
6655
+ additionalScopes: Schema.Array$<typeof Schema.String>;
6656
+ additionalScopeFiles: Schema.Array$<typeof Schema.String>;
6657
+ versionFiles: Schema.Array$<Schema.Struct<{
6658
+ glob: typeof Schema.String;
6659
+ paths: Schema.Array$<typeof Schema.String>;
6660
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6661
+ }>>;
6662
+ }>;
6663
+ /** A package's resolved release surface. @public */
6664
+ type ResolvedPackageScope = Schema.Schema.Type<typeof ResolvedPackageScopeSchema>;
6665
+ /** Structured representation of a resolved `.changeset/config.json`. @public */
6666
+ declare const InspectedConfigSchema: Schema.Struct<{
6667
+ configPath: typeof Schema.String;
6668
+ projectDir: Schema.SchemaClass<string, string, never>;
6669
+ changelog: Schema.NullOr<typeof Schema.String>;
6670
+ baseBranch: typeof Schema.String;
6671
+ access: Schema.Literal<["public", "restricted"]>;
6672
+ ignore: Schema.Array$<typeof Schema.String>;
6673
+ packages: Schema.Array$<Schema.Struct<{
6674
+ name: typeof Schema.String;
6675
+ workspaceDir: typeof Schema.String;
6676
+ version: typeof Schema.String;
6677
+ additionalScopes: Schema.Array$<typeof Schema.String>;
6678
+ additionalScopeFiles: Schema.Array$<typeof Schema.String>;
6679
+ versionFiles: Schema.Array$<Schema.Struct<{
6680
+ glob: typeof Schema.String;
6681
+ paths: Schema.Array$<typeof Schema.String>;
6682
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6683
+ }>>;
6684
+ }>>;
6685
+ legacyVersionFilesUsed: typeof Schema.Boolean;
6686
+ }>;
6687
+ /** Structured representation of a resolved `.changeset/config.json`. @public */
6688
+ type InspectedConfig = Schema.Schema.Type<typeof InspectedConfigSchema>;
6689
+ /** Reason a path was attributed to a package (or left unmapped). @public */
6690
+ declare const ClassificationReasonSchema: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6691
+ kind: Schema.Literal<["additionalScope"]>;
6692
+ glob: typeof Schema.String;
6693
+ }>, Schema.Struct<{
6694
+ kind: Schema.Literal<["versionFile"]>;
6695
+ glob: typeof Schema.String;
6696
+ }>, typeof Schema.Null]>;
6697
+ /** Reason a path was attributed to a package (or left unmapped). @public */
6698
+ type ClassificationReason = Schema.Schema.Type<typeof ClassificationReasonSchema>;
6699
+ /** The result of classifying a single path against a resolved config. @public */
6700
+ declare const ClassificationSchema: Schema.Struct<{
6701
+ path: typeof Schema.String;
6702
+ package: Schema.NullOr<typeof Schema.String>;
6703
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6704
+ kind: Schema.Literal<["additionalScope"]>;
6705
+ glob: typeof Schema.String;
6706
+ }>, Schema.Struct<{
6707
+ kind: Schema.Literal<["versionFile"]>;
6708
+ glob: typeof Schema.String;
6709
+ }>, typeof Schema.Null]>;
6710
+ }>;
6711
+ /** The result of classifying a single path against a resolved config. @public */
6712
+ type Classification = Schema.Schema.Type<typeof ClassificationSchema>;
6724
6713
  /**
6725
6714
  * Effect service interface for inspecting a project's changeset config.
6726
6715
  *
@@ -6784,7 +6773,7 @@ declare class ConfigInspector extends ConfigInspectorBase {}
6784
6773
  *
6785
6774
  * @public
6786
6775
  */
6787
- declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, ChangesetConfigReader | WorkspaceDiscovery>;
6776
+ declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, ChangesetConfigReader | WorkspaceDiscovery | FileSystem.FileSystem>;
6788
6777
  /**
6789
6778
  * Test factory — build a {@link ConfigInspector} that returns a fixed
6790
6779
  * {@link InspectedConfig} without touching the filesystem.
@@ -6797,44 +6786,46 @@ declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, Changeset
6797
6786
  */
6798
6787
  declare function makeConfigInspectorTest(fixed: InspectedConfig): Layer.Layer<ConfigInspector>; //#endregion
6799
6788
  //#region src/changesets/services/branch-analyzer.d.ts
6800
- /**
6801
- * Git diff status as reported by `--name-status`.
6802
- *
6803
- * @public
6804
- */
6805
- type FileStatus = "added" | "modified" | "deleted" | "renamed" | "copied" | "typechange" | "unmerged" | "unknown";
6806
- /**
6807
- * One file entry in the branch analysis output.
6808
- *
6809
- * @public
6810
- */
6811
- interface BranchFileEntry {
6812
- /** Repo-relative path (the new path in the case of renames). */
6813
- readonly path: string;
6814
- /** Git diff status. */
6815
- readonly status: FileStatus;
6816
- /** Owning package, or `null` if the path is outside any known release surface. */
6817
- readonly package: string | null;
6818
- /** Reason for the package attribution; mirrors {@link Classification.reason}. */
6819
- readonly reason: ClassificationReason;
6820
- }
6821
- /**
6822
- * Structured result of analyzing the current branch against its base.
6823
- *
6824
- * @public
6825
- */
6826
- interface BranchAnalysis {
6827
- /** The branch the diff was computed against. */
6828
- readonly baseBranch: string;
6829
- /** The merge-base SHA between `HEAD` and `baseBranch`. */
6830
- readonly mergeBaseSha: string;
6831
- /** Files changed since the merge base, with classification. */
6832
- readonly files: ReadonlyArray<BranchFileEntry>;
6833
- /** Unique package names that own at least one changed file. */
6834
- readonly packagesAffected: ReadonlyArray<string>;
6835
- /** Repo-relative paths whose `package` is `null` — candidates for an `AskUserQuestion`. */
6836
- readonly unmappedFiles: ReadonlyArray<string>;
6837
- }
6789
+ /** Git diff status as reported by `--name-status`. @public */
6790
+ declare const FileStatusSchema: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6791
+ /** Git diff status as reported by `--name-status`. @public */
6792
+ type FileStatus = Schema.Schema.Type<typeof FileStatusSchema>;
6793
+ /** One file entry in the branch analysis output. @public */
6794
+ declare const BranchFileEntrySchema: Schema.Struct<{
6795
+ path: Schema.SchemaClass<string, string, never>;
6796
+ status: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6797
+ package: Schema.NullOr<typeof Schema.String>;
6798
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6799
+ kind: Schema.Literal<["additionalScope"]>;
6800
+ glob: typeof Schema.String;
6801
+ }>, Schema.Struct<{
6802
+ kind: Schema.Literal<["versionFile"]>;
6803
+ glob: typeof Schema.String;
6804
+ }>, typeof Schema.Null]>;
6805
+ }>;
6806
+ /** One file entry in the branch analysis output. @public */
6807
+ type BranchFileEntry = Schema.Schema.Type<typeof BranchFileEntrySchema>;
6808
+ /** Structured result of analyzing the current branch against its base. @public */
6809
+ declare const BranchAnalysisSchema: Schema.Struct<{
6810
+ baseBranch: typeof Schema.String;
6811
+ mergeBaseSha: typeof Schema.String;
6812
+ files: Schema.Array$<Schema.Struct<{
6813
+ path: Schema.SchemaClass<string, string, never>;
6814
+ status: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6815
+ package: Schema.NullOr<typeof Schema.String>;
6816
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6817
+ kind: Schema.Literal<["additionalScope"]>;
6818
+ glob: typeof Schema.String;
6819
+ }>, Schema.Struct<{
6820
+ kind: Schema.Literal<["versionFile"]>;
6821
+ glob: typeof Schema.String;
6822
+ }>, typeof Schema.Null]>;
6823
+ }>>;
6824
+ packagesAffected: Schema.Array$<typeof Schema.String>;
6825
+ unmappedFiles: Schema.Array$<typeof Schema.String>;
6826
+ }>;
6827
+ /** Structured result of analyzing the current branch against its base. @public */
6828
+ type BranchAnalysis = Schema.Schema.Type<typeof BranchAnalysisSchema>;
6838
6829
  /**
6839
6830
  * Effect service interface for branch analysis.
6840
6831
  *
@@ -9032,7 +9023,7 @@ declare const RequiredSectionsRule: Plugin<Root, unknown>; //#endregion
9032
9023
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9033
9024
  declare const UncategorizedContentRule: Plugin<Root, unknown>;
9034
9025
  declare namespace index_d_exports {
9035
- export { AggregateDependencyTablesPlugin, BranchAnalysis, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, 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, ResolvedVersionFile, 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 };
9026
+ 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 };
9036
9027
  } //#endregion
9037
9028
  //#region src/commitlint/config/schema.d.ts
9038
9029
  /**
@@ -6639,88 +6639,77 @@ declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
6639
6639
  */
6640
6640
  //#endregion
6641
6641
  //#region src/changesets/services/config-inspector.d.ts
6642
- /**
6643
- * A `versionFiles` entry expanded to its absolute target paths.
6644
- *
6645
- * @public
6646
- */
6647
- interface ResolvedVersionFile {
6648
- /** The original glob from the config. */
6649
- readonly glob: string;
6650
- /** JSONPath expressions to update (defaults to `["$.version"]`). */
6651
- readonly paths: ReadonlyArray<string>;
6652
- /** Absolute file paths the glob matched at inspection time. */
6653
- readonly matchedFiles: ReadonlyArray<string>;
6654
- }
6655
- /**
6656
- * A package's release surface after the config has been resolved against the
6657
- * workspace and the globs have been materialized.
6658
- *
6659
- * @public
6660
- */
6661
- interface ResolvedPackageScope {
6662
- /** Package name (matches the workspace package's `package.json#name`). */
6663
- readonly name: string;
6664
- /** Absolute path to the package's workspace directory. */
6665
- readonly workspaceDir: string;
6666
- /** Current version from the workspace package's `package.json`. */
6667
- readonly version: string;
6668
- /** Globs declared in the config's `additionalScopes`. */
6669
- readonly additionalScopes: ReadonlyArray<string>;
6670
- /** Files matched by `additionalScopes` (absolute paths). */
6671
- readonly additionalScopeFiles: ReadonlyArray<string>;
6672
- /** Version-file entries, each with their globs materialized. */
6673
- readonly versionFiles: ReadonlyArray<ResolvedVersionFile>;
6674
- }
6675
- /**
6676
- * Structured representation of a resolved `.changeset/config.json` for
6677
- * consumers (CLI commands, agents, tests).
6678
- *
6679
- * @public
6680
- */
6681
- interface InspectedConfig {
6682
- /** Absolute path of the resolved `.changeset/config.json`. */
6683
- readonly configPath: string;
6684
- /** Absolute path of the project root (the directory containing `.changeset/`). */
6685
- readonly projectDir: string;
6686
- /** The changelog formatter ID (e.g., `"@savvy-web/changesets/changelog"`). */
6687
- readonly changelog: string | null;
6688
- /** The base branch the workflow diffs against. */
6689
- readonly baseBranch: string;
6690
- /** Whether configured packages publish as public or restricted. */
6691
- readonly access: "public" | "restricted";
6692
- /** Package names ignored by the changeset workflow. */
6693
- readonly ignore: ReadonlyArray<string>;
6694
- /** Per-package release surfaces. */
6695
- readonly packages: ReadonlyArray<ResolvedPackageScope>;
6696
- /** True when the inspected config still used the deprecated top-level `versionFiles[]`. */
6697
- readonly legacyVersionFilesUsed: boolean;
6698
- }
6699
- /**
6700
- * Reason a path was attributed to a particular package (or left unmapped).
6701
- *
6702
- * @public
6703
- */
6704
- type ClassificationReason = "workspace" | {
6705
- readonly kind: "additionalScope";
6706
- readonly glob: string;
6707
- } | {
6708
- readonly kind: "versionFile";
6709
- readonly glob: string;
6710
- } | null;
6711
- /**
6712
- * The result of classifying a single path against a resolved config.
6713
- *
6714
- * @public
6715
- */
6716
- interface Classification {
6717
- /** Repo-relative path. */
6718
- readonly path: string;
6719
- /** Owning package name, or `null` if the path is outside every known release surface. */
6720
- readonly package: string | null;
6721
- /** Why this attribution was made. `null` mirrors `package: null`. */
6722
- readonly reason: ClassificationReason;
6723
- }
6642
+ /** A `versionFiles` entry expanded to its absolute target paths. @public */
6643
+ declare const ResolvedVersionFileSchema: Schema.Struct<{
6644
+ glob: typeof Schema.String;
6645
+ paths: Schema.Array$<typeof Schema.String>;
6646
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6647
+ }>;
6648
+ /** A `versionFiles` entry expanded to its absolute target paths. @public */
6649
+ type ResolvedVersionFile = Schema.Schema.Type<typeof ResolvedVersionFileSchema>;
6650
+ /** A package's resolved release surface. @public */
6651
+ declare const ResolvedPackageScopeSchema: Schema.Struct<{
6652
+ name: typeof Schema.String;
6653
+ workspaceDir: typeof Schema.String;
6654
+ version: typeof Schema.String;
6655
+ additionalScopes: Schema.Array$<typeof Schema.String>;
6656
+ additionalScopeFiles: Schema.Array$<typeof Schema.String>;
6657
+ versionFiles: Schema.Array$<Schema.Struct<{
6658
+ glob: typeof Schema.String;
6659
+ paths: Schema.Array$<typeof Schema.String>;
6660
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6661
+ }>>;
6662
+ }>;
6663
+ /** A package's resolved release surface. @public */
6664
+ type ResolvedPackageScope = Schema.Schema.Type<typeof ResolvedPackageScopeSchema>;
6665
+ /** Structured representation of a resolved `.changeset/config.json`. @public */
6666
+ declare const InspectedConfigSchema: Schema.Struct<{
6667
+ configPath: typeof Schema.String;
6668
+ projectDir: Schema.SchemaClass<string, string, never>;
6669
+ changelog: Schema.NullOr<typeof Schema.String>;
6670
+ baseBranch: typeof Schema.String;
6671
+ access: Schema.Literal<["public", "restricted"]>;
6672
+ ignore: Schema.Array$<typeof Schema.String>;
6673
+ packages: Schema.Array$<Schema.Struct<{
6674
+ name: typeof Schema.String;
6675
+ workspaceDir: typeof Schema.String;
6676
+ version: typeof Schema.String;
6677
+ additionalScopes: Schema.Array$<typeof Schema.String>;
6678
+ additionalScopeFiles: Schema.Array$<typeof Schema.String>;
6679
+ versionFiles: Schema.Array$<Schema.Struct<{
6680
+ glob: typeof Schema.String;
6681
+ paths: Schema.Array$<typeof Schema.String>;
6682
+ matchedFiles: Schema.Array$<typeof Schema.String>;
6683
+ }>>;
6684
+ }>>;
6685
+ legacyVersionFilesUsed: typeof Schema.Boolean;
6686
+ }>;
6687
+ /** Structured representation of a resolved `.changeset/config.json`. @public */
6688
+ type InspectedConfig = Schema.Schema.Type<typeof InspectedConfigSchema>;
6689
+ /** Reason a path was attributed to a package (or left unmapped). @public */
6690
+ declare const ClassificationReasonSchema: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6691
+ kind: Schema.Literal<["additionalScope"]>;
6692
+ glob: typeof Schema.String;
6693
+ }>, Schema.Struct<{
6694
+ kind: Schema.Literal<["versionFile"]>;
6695
+ glob: typeof Schema.String;
6696
+ }>, typeof Schema.Null]>;
6697
+ /** Reason a path was attributed to a package (or left unmapped). @public */
6698
+ type ClassificationReason = Schema.Schema.Type<typeof ClassificationReasonSchema>;
6699
+ /** The result of classifying a single path against a resolved config. @public */
6700
+ declare const ClassificationSchema: Schema.Struct<{
6701
+ path: typeof Schema.String;
6702
+ package: Schema.NullOr<typeof Schema.String>;
6703
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6704
+ kind: Schema.Literal<["additionalScope"]>;
6705
+ glob: typeof Schema.String;
6706
+ }>, Schema.Struct<{
6707
+ kind: Schema.Literal<["versionFile"]>;
6708
+ glob: typeof Schema.String;
6709
+ }>, typeof Schema.Null]>;
6710
+ }>;
6711
+ /** The result of classifying a single path against a resolved config. @public */
6712
+ type Classification = Schema.Schema.Type<typeof ClassificationSchema>;
6724
6713
  /**
6725
6714
  * Effect service interface for inspecting a project's changeset config.
6726
6715
  *
@@ -6784,7 +6773,7 @@ declare class ConfigInspector extends ConfigInspectorBase {}
6784
6773
  *
6785
6774
  * @public
6786
6775
  */
6787
- declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, ChangesetConfigReader | WorkspaceDiscovery>;
6776
+ declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, ChangesetConfigReader | WorkspaceDiscovery | FileSystem.FileSystem>;
6788
6777
  /**
6789
6778
  * Test factory — build a {@link ConfigInspector} that returns a fixed
6790
6779
  * {@link InspectedConfig} without touching the filesystem.
@@ -6797,44 +6786,46 @@ declare const ConfigInspectorLive: Layer.Layer<ConfigInspector, never, Changeset
6797
6786
  */
6798
6787
  declare function makeConfigInspectorTest(fixed: InspectedConfig): Layer.Layer<ConfigInspector>; //#endregion
6799
6788
  //#region src/changesets/services/branch-analyzer.d.ts
6800
- /**
6801
- * Git diff status as reported by `--name-status`.
6802
- *
6803
- * @public
6804
- */
6805
- type FileStatus = "added" | "modified" | "deleted" | "renamed" | "copied" | "typechange" | "unmerged" | "unknown";
6806
- /**
6807
- * One file entry in the branch analysis output.
6808
- *
6809
- * @public
6810
- */
6811
- interface BranchFileEntry {
6812
- /** Repo-relative path (the new path in the case of renames). */
6813
- readonly path: string;
6814
- /** Git diff status. */
6815
- readonly status: FileStatus;
6816
- /** Owning package, or `null` if the path is outside any known release surface. */
6817
- readonly package: string | null;
6818
- /** Reason for the package attribution; mirrors {@link Classification.reason}. */
6819
- readonly reason: ClassificationReason;
6820
- }
6821
- /**
6822
- * Structured result of analyzing the current branch against its base.
6823
- *
6824
- * @public
6825
- */
6826
- interface BranchAnalysis {
6827
- /** The branch the diff was computed against. */
6828
- readonly baseBranch: string;
6829
- /** The merge-base SHA between `HEAD` and `baseBranch`. */
6830
- readonly mergeBaseSha: string;
6831
- /** Files changed since the merge base, with classification. */
6832
- readonly files: ReadonlyArray<BranchFileEntry>;
6833
- /** Unique package names that own at least one changed file. */
6834
- readonly packagesAffected: ReadonlyArray<string>;
6835
- /** Repo-relative paths whose `package` is `null` — candidates for an `AskUserQuestion`. */
6836
- readonly unmappedFiles: ReadonlyArray<string>;
6837
- }
6789
+ /** Git diff status as reported by `--name-status`. @public */
6790
+ declare const FileStatusSchema: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6791
+ /** Git diff status as reported by `--name-status`. @public */
6792
+ type FileStatus = Schema.Schema.Type<typeof FileStatusSchema>;
6793
+ /** One file entry in the branch analysis output. @public */
6794
+ declare const BranchFileEntrySchema: Schema.Struct<{
6795
+ path: Schema.SchemaClass<string, string, never>;
6796
+ status: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6797
+ package: Schema.NullOr<typeof Schema.String>;
6798
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6799
+ kind: Schema.Literal<["additionalScope"]>;
6800
+ glob: typeof Schema.String;
6801
+ }>, Schema.Struct<{
6802
+ kind: Schema.Literal<["versionFile"]>;
6803
+ glob: typeof Schema.String;
6804
+ }>, typeof Schema.Null]>;
6805
+ }>;
6806
+ /** One file entry in the branch analysis output. @public */
6807
+ type BranchFileEntry = Schema.Schema.Type<typeof BranchFileEntrySchema>;
6808
+ /** Structured result of analyzing the current branch against its base. @public */
6809
+ declare const BranchAnalysisSchema: Schema.Struct<{
6810
+ baseBranch: typeof Schema.String;
6811
+ mergeBaseSha: typeof Schema.String;
6812
+ files: Schema.Array$<Schema.Struct<{
6813
+ path: Schema.SchemaClass<string, string, never>;
6814
+ status: Schema.Literal<["added", "modified", "deleted", "renamed", "copied", "typechange", "unmerged", "unknown"]>;
6815
+ package: Schema.NullOr<typeof Schema.String>;
6816
+ reason: Schema.Union<[Schema.Literal<["workspace"]>, Schema.Struct<{
6817
+ kind: Schema.Literal<["additionalScope"]>;
6818
+ glob: typeof Schema.String;
6819
+ }>, Schema.Struct<{
6820
+ kind: Schema.Literal<["versionFile"]>;
6821
+ glob: typeof Schema.String;
6822
+ }>, typeof Schema.Null]>;
6823
+ }>>;
6824
+ packagesAffected: Schema.Array$<typeof Schema.String>;
6825
+ unmappedFiles: Schema.Array$<typeof Schema.String>;
6826
+ }>;
6827
+ /** Structured result of analyzing the current branch against its base. @public */
6828
+ type BranchAnalysis = Schema.Schema.Type<typeof BranchAnalysisSchema>;
6838
6829
  /**
6839
6830
  * Effect service interface for branch analysis.
6840
6831
  *
@@ -9032,7 +9023,7 @@ declare const RequiredSectionsRule: Plugin<Root, unknown>; //#endregion
9032
9023
  //#region src/changesets/remark/rules/uncategorized-content.d.ts
9033
9024
  declare const UncategorizedContentRule: Plugin<Root, unknown>;
9034
9025
  declare namespace index_d_exports {
9035
- export { AggregateDependencyTablesPlugin, BranchAnalysis, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, 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, ResolvedVersionFile, 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 };
9026
+ 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 };
9036
9027
  } //#endregion
9037
9028
  //#region src/commitlint/config/schema.d.ts
9038
9029
  /**