@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.
- package/changesets-changelog.cjs +9955 -9539
- package/changesets-changelog.d.cts +113 -122
- package/changesets-changelog.d.ts +113 -122
- package/changesets-markdownlint.cjs +9955 -9539
- package/changesets-markdownlint.d.cts +113 -122
- package/changesets-markdownlint.d.ts +113 -122
- package/package.json +11 -10
- package/packages/silk-effects/dist/dev/pkg/changesets/index.cjs +8 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/index.js +10 -2
- package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.cjs +61 -0
- package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.js +61 -3
- package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.cjs +131 -6
- package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.js +125 -5
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.cjs +78 -0
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.js +78 -0
- package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.cjs +194 -0
- package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.js +193 -0
|
@@ -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
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
/**
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
}
|
|
6711
|
-
/**
|
|
6712
|
-
|
|
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
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
*/
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
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
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
/**
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
}
|
|
6711
|
-
/**
|
|
6712
|
-
|
|
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
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
*/
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
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
|
/**
|