@savvy-web/silk-effects 1.3.1 → 1.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.
Files changed (62) hide show
  1. package/changesets/categories/types.js +0 -1
  2. package/changesets/changelog/index.js +0 -2
  3. package/changesets/constants.js +0 -1
  4. package/changesets/errors.js +25 -2
  5. package/changesets/index.js +17 -2
  6. package/changesets/markdownlint/rules/dependency-table-format.js +2 -2
  7. package/changesets/remark/rules/uncategorized-content.js +1 -1
  8. package/changesets/schemas/changeset.js +0 -1
  9. package/changesets/schemas/dependency-table.js +0 -1
  10. package/changesets/schemas/git.js +0 -1
  11. package/changesets/schemas/github.js +0 -1
  12. package/changesets/schemas/options.js +0 -1
  13. package/changesets/schemas/package-scope.js +0 -1
  14. package/changesets/schemas/primitives.js +0 -1
  15. package/changesets/schemas/release-plan.js +56 -0
  16. package/changesets/schemas/version-files.js +0 -1
  17. package/changesets/services/branch-analyzer.js +0 -1
  18. package/changesets/services/config-inspector.js +1 -2
  19. package/changesets/services/release-planner.js +251 -0
  20. package/changesets/services/workspace-snapshot.js +0 -1
  21. package/changesets/utils/publishability.js +2 -3
  22. package/changesets/utils/worktree-snapshot.js +1 -1
  23. package/commitlint/config/factory.js +1 -1
  24. package/commitlint/hook/diagnostics/package-manager.js +1 -1
  25. package/commitlint/index.js +0 -1
  26. package/errors/BiomeSyncError.js +2 -1
  27. package/errors/ChangesetConfigError.js +2 -1
  28. package/errors/ConfigNotFoundError.js +2 -1
  29. package/errors/SectionParseError.js +1 -0
  30. package/errors/SectionValidationError.js +1 -0
  31. package/errors/SectionWriteError.js +1 -0
  32. package/errors/TagFormatError.js +2 -1
  33. package/errors/ToolNotFoundError.js +1 -0
  34. package/errors/ToolResolutionError.js +1 -0
  35. package/errors/ToolVersionMismatchError.js +1 -0
  36. package/errors/VersioningDetectionError.js +2 -1
  37. package/errors/WorkspaceAnalysisError.js +2 -1
  38. package/index.d.ts +420 -85
  39. package/lint/handlers/PnpmWorkspace.js +1 -1
  40. package/package.json +5 -1
  41. package/schemas/CommentStyle.js +1 -0
  42. package/schemas/ResolvedTool.js +2 -1
  43. package/schemas/SavvySections.js +6 -1
  44. package/schemas/SectionBlock.js +3 -2
  45. package/schemas/SectionDefinition.js +4 -2
  46. package/schemas/SectionResults.js +12 -3
  47. package/schemas/TagStrategySchemas.js +2 -1
  48. package/schemas/ToolDefinition.js +2 -1
  49. package/schemas/ToolResults.js +18 -4
  50. package/schemas/VersioningSchemas.js +7 -3
  51. package/schemas/WorkspaceAnalysisSchemas.js +3 -0
  52. package/services/BiomeSchemaSync.js +4 -0
  53. package/services/ChangesetConfig.js +2 -0
  54. package/services/ChangesetConfigReader.js +4 -2
  55. package/services/ConfigDiscovery.js +2 -0
  56. package/services/ManagedSection.js +2 -0
  57. package/services/SilkPublishability.js +16 -12
  58. package/services/SilkWorkspaceAnalyzer.js +4 -2
  59. package/services/TagStrategy.js +3 -1
  60. package/services/ToolDiscovery.js +2 -0
  61. package/services/VersioningStrategy.js +2 -0
  62. package/utils/ToolCommand.js +2 -1
@@ -5,11 +5,12 @@ import { Data } from "effect";
5
5
  * Raised when a Biome config file cannot be read or its `$schema` URL cannot be updated.
6
6
  *
7
7
  * @remarks
8
- * Returned by {@link BiomeSchemaSync.sync} and {@link BiomeSchemaSync.check} when
8
+ * Returned by `BiomeSchemaSync.sync` and `BiomeSchemaSync.check` when
9
9
  * a `biome.json` or `biome.jsonc` file exists but cannot be read, contains invalid JSON,
10
10
  * or cannot be written back to disk.
11
11
  *
12
12
  * @since 0.1.0
13
+ * @public
13
14
  */
14
15
  var BiomeSyncError = class extends Data.TaggedError("BiomeSyncError") {
15
16
  get message() {
@@ -5,10 +5,11 @@ import { Data } from "effect";
5
5
  * Raised when the `.changeset/config.json` file cannot be read or decoded.
6
6
  *
7
7
  * @remarks
8
- * Returned by {@link ChangesetConfigReader.read} when the file is missing,
8
+ * Returned by `ChangesetConfigReader.read` when the file is missing,
9
9
  * contains invalid JSON, or fails Effect Schema validation.
10
10
  *
11
11
  * @since 0.1.0
12
+ * @public
12
13
  */
13
14
  var ChangesetConfigError = class extends Data.TaggedError("ChangesetConfigError") {
14
15
  get message() {
@@ -5,11 +5,12 @@ import { Data } from "effect";
5
5
  * Raised when a config file cannot be located in any of the expected locations.
6
6
  *
7
7
  * @remarks
8
- * Returned by consumers that require a config file to exist. {@link ConfigDiscovery.find}
8
+ * Returned by consumers that require a config file to exist. `ConfigDiscovery.find`
9
9
  * itself returns `null` instead of failing — callers that need a hard failure should
10
10
  * map `null` to this error.
11
11
  *
12
12
  * @since 0.1.0
13
+ * @public
13
14
  */
14
15
  var ConfigNotFoundError = class extends Data.TaggedError("ConfigNotFoundError") {
15
16
  get message() {
@@ -5,6 +5,7 @@ import { Data } from "effect";
5
5
  * Raised when a managed section cannot be parsed from a file.
6
6
  *
7
7
  * @since 0.2.0
8
+ * @public
8
9
  */
9
10
  var SectionParseError = class extends Data.TaggedError("SectionParseError") {
10
11
  get message() {
@@ -5,6 +5,7 @@ import { Data } from "effect";
5
5
  * Raised when a {@link SectionBlock} fails validation at creation time.
6
6
  *
7
7
  * @since 0.2.0
8
+ * @public
8
9
  */
9
10
  var SectionValidationError = class extends Data.TaggedError("SectionValidationError") {
10
11
  get message() {
@@ -5,6 +5,7 @@ import { Data } from "effect";
5
5
  * Raised when a managed section cannot be written to a file.
6
6
  *
7
7
  * @since 0.2.0
8
+ * @public
8
9
  */
9
10
  var SectionWriteError = class extends Data.TaggedError("SectionWriteError") {
10
11
  get message() {
@@ -5,10 +5,11 @@ import { Data } from "effect";
5
5
  * Raised when a git tag string cannot be formatted for the given package name and version.
6
6
  *
7
7
  * @remarks
8
- * Returned by {@link TagStrategy.formatTag} when the `version` argument is an empty string
8
+ * Returned by `TagStrategy.formatTag` when the `version` argument is an empty string
9
9
  * or another invariant prevents tag construction.
10
10
  *
11
11
  * @since 0.1.0
12
+ * @public
12
13
  */
13
14
  var TagFormatError = class extends Data.TaggedError("TagFormatError") {
14
15
  get message() {
@@ -1,6 +1,7 @@
1
1
  import { Data } from "effect";
2
2
 
3
3
  //#region src/errors/ToolNotFoundError.ts
4
+ /** @public */
4
5
  var ToolNotFoundError = class extends Data.TaggedError("ToolNotFoundError") {
5
6
  get message() {
6
7
  return `Tool not found: ${this.name} — ${this.reason}`;
@@ -1,6 +1,7 @@
1
1
  import { Data } from "effect";
2
2
 
3
3
  //#region src/errors/ToolResolutionError.ts
4
+ /** @public */
4
5
  var ToolResolutionError = class extends Data.TaggedError("ToolResolutionError") {
5
6
  get message() {
6
7
  return `Tool resolution failed: ${this.name} — ${this.reason}`;
@@ -1,6 +1,7 @@
1
1
  import { Data } from "effect";
2
2
 
3
3
  //#region src/errors/ToolVersionMismatchError.ts
4
+ /** @public */
4
5
  var ToolVersionMismatchError = class extends Data.TaggedError("ToolVersionMismatchError") {
5
6
  get message() {
6
7
  return `Tool version mismatch: ${this.name} — global ${this.globalVersion} vs local ${this.localVersion}`;
@@ -5,10 +5,11 @@ import { Data } from "effect";
5
5
  * Raised when the versioning strategy cannot be determined from the workspace state.
6
6
  *
7
7
  * @remarks
8
- * Returned by {@link VersioningStrategy.detect} when an unexpected condition
8
+ * Returned by `VersioningStrategy.detect` when an unexpected condition
9
9
  * prevents strategy classification.
10
10
  *
11
11
  * @since 0.1.0
12
+ * @public
12
13
  */
13
14
  var VersioningDetectionError = class extends Data.TaggedError("VersioningDetectionError") {
14
15
  get message() {
@@ -5,11 +5,12 @@ import { Data } from "effect";
5
5
  * Raised when workspace analysis fails for a given root directory.
6
6
  *
7
7
  * @remarks
8
- * Returned by {@link SilkWorkspaceAnalyzer.analyze} when the analysis pipeline
8
+ * Returned by `SilkWorkspaceAnalyzer.analyze` when the analysis pipeline
9
9
  * encounters an unrecoverable error — e.g. workspace discovery failure,
10
10
  * package manager detection failure, or publishability detection errors.
11
11
  *
12
12
  * @since 0.2.0
13
+ * @public
13
14
  */
14
15
  var WorkspaceAnalysisError = class extends Data.TaggedError("WorkspaceAnalysisError") {
15
16
  get message() {