@savvy-web/silk 2.0.0 → 2.1.1

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 (159) hide show
  1. package/README.md +7 -5
  2. package/changesets-changelog.cjs +109 -61
  3. package/changesets-changelog.d.cts +1 -1
  4. package/changesets-changelog.d.ts +1 -1
  5. package/changesets-changelog.js +54099 -1
  6. package/changesets-markdownlint.cjs +109 -61
  7. package/changesets-markdownlint.d.cts +1 -1
  8. package/changesets-markdownlint.d.ts +1 -1
  9. package/changesets-markdownlint.js +54099 -1
  10. package/package.json +5 -4
  11. package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
  12. package/_virtual/_rolldown/runtime.cjs +0 -45
  13. package/_virtual/_rolldown/runtime.js +0 -45
  14. package/packages/silk-effects/dist/dev/pkg/_virtual/_rolldown/runtime.cjs +0 -15
  15. package/packages/silk-effects/dist/dev/pkg/_virtual/_rolldown/runtime.js +0 -14
  16. package/packages/silk-effects/dist/dev/pkg/changesets/api/categories.cjs +0 -247
  17. package/packages/silk-effects/dist/dev/pkg/changesets/api/categories.js +0 -247
  18. package/packages/silk-effects/dist/dev/pkg/changesets/api/changelog.cjs +0 -134
  19. package/packages/silk-effects/dist/dev/pkg/changesets/api/changelog.js +0 -134
  20. package/packages/silk-effects/dist/dev/pkg/changesets/api/dependency-table.cjs +0 -163
  21. package/packages/silk-effects/dist/dev/pkg/changesets/api/dependency-table.js +0 -163
  22. package/packages/silk-effects/dist/dev/pkg/changesets/api/linter.cjs +0 -170
  23. package/packages/silk-effects/dist/dev/pkg/changesets/api/linter.js +0 -170
  24. package/packages/silk-effects/dist/dev/pkg/changesets/api/transformer.cjs +0 -134
  25. package/packages/silk-effects/dist/dev/pkg/changesets/api/transformer.js +0 -134
  26. package/packages/silk-effects/dist/dev/pkg/changesets/categories/index.cjs +0 -317
  27. package/packages/silk-effects/dist/dev/pkg/changesets/categories/index.js +0 -299
  28. package/packages/silk-effects/dist/dev/pkg/changesets/categories/types.cjs +0 -65
  29. package/packages/silk-effects/dist/dev/pkg/changesets/categories/types.js +0 -65
  30. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/formatting.cjs +0 -114
  31. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/formatting.js +0 -113
  32. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getDependencyReleaseLine.cjs +0 -118
  33. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getDependencyReleaseLine.js +0 -118
  34. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getReleaseLine.cjs +0 -122
  35. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getReleaseLine.js +0 -122
  36. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/index.cjs +0 -97
  37. package/packages/silk-effects/dist/dev/pkg/changesets/changelog/index.js +0 -97
  38. package/packages/silk-effects/dist/dev/pkg/changesets/constants.cjs +0 -43
  39. package/packages/silk-effects/dist/dev/pkg/changesets/constants.js +0 -42
  40. package/packages/silk-effects/dist/dev/pkg/changesets/errors.cjs +0 -386
  41. package/packages/silk-effects/dist/dev/pkg/changesets/errors.js +0 -371
  42. package/packages/silk-effects/dist/dev/pkg/changesets/index.cjs +0 -300
  43. package/packages/silk-effects/dist/dev/pkg/changesets/index.js +0 -179
  44. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/index.cjs +0 -34
  45. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/index.js +0 -29
  46. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.cjs +0 -98
  47. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.js +0 -98
  48. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/dependency-table-format.cjs +0 -170
  49. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/dependency-table-format.js +0 -170
  50. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/heading-hierarchy.cjs +0 -61
  51. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/heading-hierarchy.js +0 -61
  52. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/required-sections.cjs +0 -54
  53. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/required-sections.js +0 -54
  54. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/uncategorized-content.cjs +0 -54
  55. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/uncategorized-content.js +0 -54
  56. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/utils.cjs +0 -31
  57. package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/utils.js +0 -30
  58. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/aggregate-dependency-tables.cjs +0 -47
  59. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/aggregate-dependency-tables.js +0 -47
  60. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/contributor-footnotes.cjs +0 -123
  61. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/contributor-footnotes.js +0 -123
  62. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/deduplicate-items.cjs +0 -32
  63. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/deduplicate-items.js +0 -32
  64. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/issue-link-refs.cjs +0 -59
  65. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/issue-link-refs.js +0 -59
  66. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/maintenance-note.cjs +0 -61
  67. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/maintenance-note.js +0 -61
  68. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/merge-sections.cjs +0 -43
  69. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/merge-sections.js +0 -43
  70. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/normalize-format.cjs +0 -47
  71. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/normalize-format.js +0 -47
  72. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/reorder-sections.cjs +0 -34
  73. package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/reorder-sections.js +0 -34
  74. package/packages/silk-effects/dist/dev/pkg/changesets/remark/presets.cjs +0 -120
  75. package/packages/silk-effects/dist/dev/pkg/changesets/remark/presets.js +0 -119
  76. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/content-structure.cjs +0 -22
  77. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/content-structure.js +0 -22
  78. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/dependency-table-format.cjs +0 -40
  79. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/dependency-table-format.js +0 -40
  80. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/heading-hierarchy.cjs +0 -19
  81. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/heading-hierarchy.js +0 -19
  82. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/required-sections.cjs +0 -17
  83. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/required-sections.js +0 -17
  84. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/uncategorized-content.cjs +0 -31
  85. package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/uncategorized-content.js +0 -31
  86. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/changeset.cjs +0 -148
  87. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/changeset.js +0 -145
  88. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/dependency-table.cjs +0 -203
  89. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/dependency-table.js +0 -198
  90. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/git.cjs +0 -69
  91. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/git.js +0 -68
  92. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/github.cjs +0 -177
  93. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/github.js +0 -174
  94. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/options.cjs +0 -183
  95. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/options.js +0 -181
  96. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/package-scope.cjs +0 -129
  97. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/package-scope.js +0 -127
  98. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/primitives.cjs +0 -72
  99. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/primitives.js +0 -71
  100. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.cjs +0 -62
  101. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js +0 -56
  102. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/version-files.cjs +0 -154
  103. package/packages/silk-effects/dist/dev/pkg/changesets/schemas/version-files.js +0 -150
  104. package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.cjs +0 -300
  105. package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.js +0 -294
  106. package/packages/silk-effects/dist/dev/pkg/changesets/services/changelog.cjs +0 -50
  107. package/packages/silk-effects/dist/dev/pkg/changesets/services/changelog.js +0 -49
  108. package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.cjs +0 -489
  109. package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.js +0 -481
  110. package/packages/silk-effects/dist/dev/pkg/changesets/services/deps-regen.cjs +0 -375
  111. package/packages/silk-effects/dist/dev/pkg/changesets/services/deps-regen.js +0 -371
  112. package/packages/silk-effects/dist/dev/pkg/changesets/services/github.cjs +0 -160
  113. package/packages/silk-effects/dist/dev/pkg/changesets/services/github.js +0 -157
  114. package/packages/silk-effects/dist/dev/pkg/changesets/services/maintenance-reason.cjs +0 -68
  115. package/packages/silk-effects/dist/dev/pkg/changesets/services/maintenance-reason.js +0 -66
  116. package/packages/silk-effects/dist/dev/pkg/changesets/services/markdown.cjs +0 -87
  117. package/packages/silk-effects/dist/dev/pkg/changesets/services/markdown.js +0 -85
  118. package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.cjs +0 -352
  119. package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.js +0 -348
  120. package/packages/silk-effects/dist/dev/pkg/changesets/utils/commit-parser.cjs +0 -81
  121. package/packages/silk-effects/dist/dev/pkg/changesets/utils/commit-parser.js +0 -80
  122. package/packages/silk-effects/dist/dev/pkg/changesets/utils/dep-diff.cjs +0 -111
  123. package/packages/silk-effects/dist/dev/pkg/changesets/utils/dep-diff.js +0 -111
  124. package/packages/silk-effects/dist/dev/pkg/changesets/utils/dependency-table.cjs +0 -351
  125. package/packages/silk-effects/dist/dev/pkg/changesets/utils/dependency-table.js +0 -347
  126. package/packages/silk-effects/dist/dev/pkg/changesets/utils/git.cjs +0 -51
  127. package/packages/silk-effects/dist/dev/pkg/changesets/utils/git.js +0 -51
  128. package/packages/silk-effects/dist/dev/pkg/changesets/utils/issue-refs.cjs +0 -102
  129. package/packages/silk-effects/dist/dev/pkg/changesets/utils/issue-refs.js +0 -101
  130. package/packages/silk-effects/dist/dev/pkg/changesets/utils/jsonpath.cjs +0 -178
  131. package/packages/silk-effects/dist/dev/pkg/changesets/utils/jsonpath.js +0 -175
  132. package/packages/silk-effects/dist/dev/pkg/changesets/utils/logger.cjs +0 -51
  133. package/packages/silk-effects/dist/dev/pkg/changesets/utils/logger.js +0 -50
  134. package/packages/silk-effects/dist/dev/pkg/changesets/utils/markdown-link.cjs +0 -59
  135. package/packages/silk-effects/dist/dev/pkg/changesets/utils/markdown-link.js +0 -57
  136. package/packages/silk-effects/dist/dev/pkg/changesets/utils/publishability.cjs +0 -50
  137. package/packages/silk-effects/dist/dev/pkg/changesets/utils/publishability.js +0 -50
  138. package/packages/silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.cjs +0 -81
  139. package/packages/silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.js +0 -79
  140. package/packages/silk-effects/dist/dev/pkg/changesets/utils/section-parser.cjs +0 -94
  141. package/packages/silk-effects/dist/dev/pkg/changesets/utils/section-parser.js +0 -94
  142. package/packages/silk-effects/dist/dev/pkg/changesets/utils/strip-frontmatter.cjs +0 -47
  143. package/packages/silk-effects/dist/dev/pkg/changesets/utils/strip-frontmatter.js +0 -46
  144. package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-blocks.cjs +0 -110
  145. package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-blocks.js +0 -108
  146. package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-files.cjs +0 -336
  147. package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-files.js +0 -336
  148. package/packages/silk-effects/dist/dev/pkg/changesets/vendor/github-info.cjs +0 -77
  149. package/packages/silk-effects/dist/dev/pkg/changesets/vendor/github-info.js +0 -77
  150. package/packages/silk-effects/dist/dev/pkg/errors/ChangesetConfigError.cjs +0 -21
  151. package/packages/silk-effects/dist/dev/pkg/errors/ChangesetConfigError.js +0 -21
  152. package/packages/silk-effects/dist/dev/pkg/schemas/VersioningSchemas.cjs +0 -101
  153. package/packages/silk-effects/dist/dev/pkg/schemas/VersioningSchemas.js +0 -99
  154. package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.cjs +0 -81
  155. package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.js +0 -80
  156. package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfigReader.cjs +0 -109
  157. package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfigReader.js +0 -108
  158. package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.cjs +0 -238
  159. package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.js +0 -236
@@ -1,72 +0,0 @@
1
- let effect = require("effect");
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/primitives.js
4
- /**
5
- * Primitive reusable schemas for common constrained types.
6
- *
7
- * @remarks
8
- * These schemas serve as building blocks for more complex schemas throughout
9
- * the \@savvy-web/changesets package. They encode common constraints
10
- * (non-empty strings, positive integers) as Effect Schemas so that validation
11
- * is enforced at system boundaries.
12
- *
13
- * @see {@link https://effect.website/docs/schema/introduction | Effect Schema documentation}
14
- *
15
- */
16
- /**
17
- * A non-empty string schema.
18
- *
19
- * @remarks
20
- * Validates that a string has at least one character. Used as the base
21
- * constraint for package names, dependency identifiers, and other fields
22
- * that must not be blank.
23
- *
24
- * @example
25
- * ```typescript
26
- * import { Schema } from "effect";
27
- * import { NonEmptyString } from "@savvy-web/changesets";
28
- *
29
- * // Succeeds — non-empty string
30
- * const name = Schema.decodeUnknownSync(NonEmptyString)("react");
31
- *
32
- * // Throws ParseError — empty string
33
- * Schema.decodeUnknownSync(NonEmptyString)("");
34
- * ```
35
- *
36
- * @see {@link ChangesetSummarySchema} for a length-bounded variant used for changeset summaries
37
- *
38
- * @public
39
- */
40
- const NonEmptyString = effect.Schema.String.pipe(effect.Schema.minLength(1));
41
- /**
42
- * A positive integer schema.
43
- *
44
- * @remarks
45
- * Validates that a number is both an integer and strictly greater than zero.
46
- * Used as the base constraint for GitHub issue numbers and similar
47
- * identifiers that must be positive whole numbers.
48
- *
49
- * @example
50
- * ```typescript
51
- * import { Schema } from "effect";
52
- * import { PositiveInteger } from "@savvy-web/changesets";
53
- *
54
- * // Succeeds — positive integer
55
- * const issueNum = Schema.decodeUnknownSync(PositiveInteger)(42);
56
- *
57
- * // Throws ParseError — zero is not positive
58
- * Schema.decodeUnknownSync(PositiveInteger)(0);
59
- *
60
- * // Throws ParseError — floats are not integers
61
- * Schema.decodeUnknownSync(PositiveInteger)(3.14);
62
- * ```
63
- *
64
- * @see {@link IssueNumberSchema} which builds on this for GitHub issue/PR numbers
65
- *
66
- * @public
67
- */
68
- const PositiveInteger = effect.Schema.Number.pipe(effect.Schema.int(), effect.Schema.positive());
69
-
70
- //#endregion
71
- exports.NonEmptyString = NonEmptyString;
72
- exports.PositiveInteger = PositiveInteger;
@@ -1,71 +0,0 @@
1
- import { Schema } from "effect";
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/primitives.js
4
- /**
5
- * Primitive reusable schemas for common constrained types.
6
- *
7
- * @remarks
8
- * These schemas serve as building blocks for more complex schemas throughout
9
- * the \@savvy-web/changesets package. They encode common constraints
10
- * (non-empty strings, positive integers) as Effect Schemas so that validation
11
- * is enforced at system boundaries.
12
- *
13
- * @see {@link https://effect.website/docs/schema/introduction | Effect Schema documentation}
14
- *
15
- */
16
- /**
17
- * A non-empty string schema.
18
- *
19
- * @remarks
20
- * Validates that a string has at least one character. Used as the base
21
- * constraint for package names, dependency identifiers, and other fields
22
- * that must not be blank.
23
- *
24
- * @example
25
- * ```typescript
26
- * import { Schema } from "effect";
27
- * import { NonEmptyString } from "@savvy-web/changesets";
28
- *
29
- * // Succeeds — non-empty string
30
- * const name = Schema.decodeUnknownSync(NonEmptyString)("react");
31
- *
32
- * // Throws ParseError — empty string
33
- * Schema.decodeUnknownSync(NonEmptyString)("");
34
- * ```
35
- *
36
- * @see {@link ChangesetSummarySchema} for a length-bounded variant used for changeset summaries
37
- *
38
- * @public
39
- */
40
- const NonEmptyString = Schema.String.pipe(Schema.minLength(1));
41
- /**
42
- * A positive integer schema.
43
- *
44
- * @remarks
45
- * Validates that a number is both an integer and strictly greater than zero.
46
- * Used as the base constraint for GitHub issue numbers and similar
47
- * identifiers that must be positive whole numbers.
48
- *
49
- * @example
50
- * ```typescript
51
- * import { Schema } from "effect";
52
- * import { PositiveInteger } from "@savvy-web/changesets";
53
- *
54
- * // Succeeds — positive integer
55
- * const issueNum = Schema.decodeUnknownSync(PositiveInteger)(42);
56
- *
57
- * // Throws ParseError — zero is not positive
58
- * Schema.decodeUnknownSync(PositiveInteger)(0);
59
- *
60
- * // Throws ParseError — floats are not integers
61
- * Schema.decodeUnknownSync(PositiveInteger)(3.14);
62
- * ```
63
- *
64
- * @see {@link IssueNumberSchema} which builds on this for GitHub issue/PR numbers
65
- *
66
- * @public
67
- */
68
- const PositiveInteger = Schema.Number.pipe(Schema.int(), Schema.positive());
69
-
70
- //#endregion
71
- export { NonEmptyString, PositiveInteger };
@@ -1,62 +0,0 @@
1
- let effect = require("effect");
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js
4
- /**
5
- * Result schemas for the {@link ReleasePlanner} service — the structured
6
- * preview of pending releases and the result of a native apply.
7
- *
8
- */
9
- /** A semantic-version bump level (the `"none"` plan type is filtered out upstream). @public */
10
- const BumpTypeSchema = effect.Schema.Literal("major", "minor", "patch");
11
- /** One package's previewed release: version transition + rendered changelog block. @public */
12
- const PreviewReleaseSchema = effect.Schema.Struct({
13
- name: effect.Schema.String,
14
- type: BumpTypeSchema,
15
- oldVersion: effect.Schema.String,
16
- newVersion: effect.Schema.String,
17
- changesetIds: effect.Schema.Array(effect.Schema.String),
18
- changelogEntry: effect.Schema.String
19
- }).annotations({ identifier: "PreviewRelease" });
20
- /** A parsed pending changeset (id + summary + the packages it bumps). @public */
21
- const PendingChangesetSchema = effect.Schema.Struct({
22
- id: effect.Schema.String,
23
- summary: effect.Schema.String,
24
- releases: effect.Schema.Array(effect.Schema.Struct({
25
- name: effect.Schema.String,
26
- type: BumpTypeSchema
27
- }))
28
- }).annotations({ identifier: "PendingChangeset" });
29
- /** Read-only preview of what the next release would produce. @public */
30
- const ChangesetPreviewSchema = effect.Schema.Struct({
31
- preMode: effect.Schema.NullOr(effect.Schema.Literal("exit", "pre")),
32
- releases: effect.Schema.Array(PreviewReleaseSchema),
33
- changesets: effect.Schema.Array(PendingChangesetSchema)
34
- }).annotations({ identifier: "ChangesetPreview" });
35
- /** One applied package release (version transition). @public */
36
- const AppliedReleaseEntrySchema = effect.Schema.Struct({
37
- name: effect.Schema.String,
38
- type: BumpTypeSchema,
39
- oldVersion: effect.Schema.String,
40
- newVersion: effect.Schema.String
41
- }).annotations({ identifier: "AppliedReleaseEntry" });
42
- /** A single versionFiles update applied (or planned, when dry). @public */
43
- const VersionFileUpdateRecordSchema = effect.Schema.Struct({
44
- filePath: effect.Schema.String,
45
- version: effect.Schema.String
46
- }).annotations({ identifier: "VersionFileUpdateRecord" });
47
- /** Result of {@link ReleasePlanner.apply}. @public */
48
- const AppliedReleaseSchema = effect.Schema.Struct({
49
- dryRun: effect.Schema.Boolean,
50
- touchedFiles: effect.Schema.Array(effect.Schema.String),
51
- releases: effect.Schema.Array(AppliedReleaseEntrySchema),
52
- versionFileUpdates: effect.Schema.Array(VersionFileUpdateRecordSchema)
53
- }).annotations({ identifier: "AppliedRelease" });
54
-
55
- //#endregion
56
- exports.AppliedReleaseEntrySchema = AppliedReleaseEntrySchema;
57
- exports.AppliedReleaseSchema = AppliedReleaseSchema;
58
- exports.BumpTypeSchema = BumpTypeSchema;
59
- exports.ChangesetPreviewSchema = ChangesetPreviewSchema;
60
- exports.PendingChangesetSchema = PendingChangesetSchema;
61
- exports.PreviewReleaseSchema = PreviewReleaseSchema;
62
- exports.VersionFileUpdateRecordSchema = VersionFileUpdateRecordSchema;
@@ -1,56 +0,0 @@
1
- import { Schema } from "effect";
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js
4
- /**
5
- * Result schemas for the {@link ReleasePlanner} service — the structured
6
- * preview of pending releases and the result of a native apply.
7
- *
8
- */
9
- /** A semantic-version bump level (the `"none"` plan type is filtered out upstream). @public */
10
- const BumpTypeSchema = Schema.Literal("major", "minor", "patch");
11
- /** One package's previewed release: version transition + rendered changelog block. @public */
12
- const PreviewReleaseSchema = Schema.Struct({
13
- name: Schema.String,
14
- type: BumpTypeSchema,
15
- oldVersion: Schema.String,
16
- newVersion: Schema.String,
17
- changesetIds: Schema.Array(Schema.String),
18
- changelogEntry: Schema.String
19
- }).annotations({ identifier: "PreviewRelease" });
20
- /** A parsed pending changeset (id + summary + the packages it bumps). @public */
21
- const PendingChangesetSchema = Schema.Struct({
22
- id: Schema.String,
23
- summary: Schema.String,
24
- releases: Schema.Array(Schema.Struct({
25
- name: Schema.String,
26
- type: BumpTypeSchema
27
- }))
28
- }).annotations({ identifier: "PendingChangeset" });
29
- /** Read-only preview of what the next release would produce. @public */
30
- const ChangesetPreviewSchema = Schema.Struct({
31
- preMode: Schema.NullOr(Schema.Literal("exit", "pre")),
32
- releases: Schema.Array(PreviewReleaseSchema),
33
- changesets: Schema.Array(PendingChangesetSchema)
34
- }).annotations({ identifier: "ChangesetPreview" });
35
- /** One applied package release (version transition). @public */
36
- const AppliedReleaseEntrySchema = Schema.Struct({
37
- name: Schema.String,
38
- type: BumpTypeSchema,
39
- oldVersion: Schema.String,
40
- newVersion: Schema.String
41
- }).annotations({ identifier: "AppliedReleaseEntry" });
42
- /** A single versionFiles update applied (or planned, when dry). @public */
43
- const VersionFileUpdateRecordSchema = Schema.Struct({
44
- filePath: Schema.String,
45
- version: Schema.String
46
- }).annotations({ identifier: "VersionFileUpdateRecord" });
47
- /** Result of {@link ReleasePlanner.apply}. @public */
48
- const AppliedReleaseSchema = Schema.Struct({
49
- dryRun: Schema.Boolean,
50
- touchedFiles: Schema.Array(Schema.String),
51
- releases: Schema.Array(AppliedReleaseEntrySchema),
52
- versionFileUpdates: Schema.Array(VersionFileUpdateRecordSchema)
53
- }).annotations({ identifier: "AppliedRelease" });
54
-
55
- //#endregion
56
- export { AppliedReleaseEntrySchema, AppliedReleaseSchema, BumpTypeSchema, ChangesetPreviewSchema, PendingChangesetSchema, PreviewReleaseSchema, VersionFileUpdateRecordSchema };
@@ -1,154 +0,0 @@
1
- let effect = require("effect");
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/version-files.js
4
- /**
5
- * Schemas for `versionFiles` configuration entries.
6
- *
7
- * @remarks
8
- * `versionFiles` lets \@savvy-web/changesets update version fields in
9
- * arbitrary JSON files (beyond `package.json`) during the
10
- * `changeset version` command. Each entry specifies a glob pattern to
11
- * match files and optional JSONPath expressions to locate version fields
12
- * within those files.
13
- *
14
- * Two related schemas live here:
15
- *
16
- * - {@link VersionFileConfigSchema} — the **new** per-package entry shape
17
- * used inside `packages[*].versionFiles`. It has no `package` field
18
- * because the parent record key already names the owning package.
19
- * - {@link LegacyVersionFileConfigSchema} — the **deprecated** entry shape
20
- * used by the top-level `versionFiles[]` array on the changelog options.
21
- * It carries an optional `package` field so the owner can be named
22
- * inline. Accepted in 0.9.0 with a deprecation warning; removed in
23
- * 1.0.0.
24
- *
25
- * @see {@link ChangesetOptionsSchema} for the consuming options shape
26
- * @see {@link PackageScopeSchema} for the new per-package container
27
- * @see {@link https://effect.website/docs/schema/introduction | Effect Schema documentation}
28
- *
29
- */
30
- /**
31
- * Schema for a JSONPath expression starting with `$.`.
32
- *
33
- * @remarks
34
- * Supports property access (`$.foo.bar`), array wildcard (`$.foo[*].bar`),
35
- * and array index access (`$.foo[0].bar`). The expression must begin with
36
- * `$.` followed by at least one property segment.
37
- *
38
- * @example
39
- * ```typescript
40
- * import { Schema } from "effect";
41
- * import { JsonPathSchema } from "@savvy-web/changesets";
42
- *
43
- * // Succeeds — simple property access
44
- * Schema.decodeUnknownSync(JsonPathSchema)("$.version");
45
- *
46
- * // Succeeds — nested property access
47
- * Schema.decodeUnknownSync(JsonPathSchema)("$.metadata.version");
48
- *
49
- * // Throws ParseError — missing "$." prefix
50
- * Schema.decodeUnknownSync(JsonPathSchema)("version");
51
- * ```
52
- *
53
- * @see {@link VersionFileConfigSchema} which uses this for the `paths` field
54
- *
55
- * @public
56
- */
57
- const JsonPathSchema = effect.Schema.String.pipe(effect.Schema.pattern(/^\$\.[^.]/, { message: () => "JSONPath must start with \"$.\" followed by a property (e.g., \"$.version\", \"$.metadata.version\")" }));
58
- /**
59
- * Schema for a single version file configuration entry — **new shape**.
60
- *
61
- * @remarks
62
- * Used inside `packages[*].versionFiles` (i.e., underneath a parent
63
- * record key that names the owning package). Has no `package` field
64
- * because the parent key already supplies that information.
65
- *
66
- * @example
67
- * ```typescript
68
- * import { Schema } from "effect";
69
- * import { VersionFileConfigSchema } from "@savvy-web/changesets";
70
- *
71
- * const entry = Schema.decodeUnknownSync(VersionFileConfigSchema)({
72
- * glob: "plugin/.claude-plugin/plugin.json",
73
- * paths: ["$.version"],
74
- * });
75
- * ```
76
- *
77
- * @see {@link VersionFileConfig} for the inferred TypeScript type
78
- * @see {@link LegacyVersionFileConfigSchema} for the deprecated shape
79
- * used by the top-level `versionFiles[]` array
80
- * @see {@link JsonPathSchema} for JSONPath validation rules
81
- *
82
- * @public
83
- */
84
- const VersionFileConfigSchema = effect.Schema.Struct({
85
- /** Glob pattern to match JSON files. */
86
- glob: effect.Schema.String.pipe(effect.Schema.minLength(1)),
87
- /** JSONPath expressions to locate version fields. Defaults to `["$.version"]`. */
88
- paths: effect.Schema.optional(effect.Schema.Array(JsonPathSchema))
89
- });
90
- /**
91
- * Schema for an array of new-shape {@link VersionFileConfigSchema} entries.
92
- *
93
- * @public
94
- */
95
- const VersionFilesSchema = effect.Schema.Array(VersionFileConfigSchema);
96
- /**
97
- * Schema for a single version file configuration entry — **legacy shape**.
98
- *
99
- * @remarks
100
- * DEPRECATED. Used only for parsing the top-level `versionFiles[]` array on
101
- * the changelog options block. Carries an optional `package` field so the
102
- * owning package can be named inline (alternatively, the runtime falls back
103
- * to longest-prefix path matching against workspace package directories).
104
- *
105
- * Accepted in 0.9.0 with a deprecation warning emitted by `ConfigInspector`
106
- * at config-load time. Removed in 1.0.0 — migrate to the new
107
- * {@link VersionFileConfigSchema} under
108
- * `changelog[1].packages[<name>].versionFiles`.
109
- *
110
- * @example
111
- * ```typescript
112
- * import { Schema } from "effect";
113
- * import { LegacyVersionFileConfigSchema } from "@savvy-web/changesets";
114
- *
115
- * // Owner named inline via the `package` field
116
- * const entry = Schema.decodeUnknownSync(LegacyVersionFileConfigSchema)({
117
- * glob: "plugin/.claude-plugin/plugin.json",
118
- * paths: ["$.version"],
119
- * package: "@savvy-web/changesets",
120
- * });
121
- * ```
122
- *
123
- * @see {@link VersionFileConfigSchema} for the replacement (new) shape
124
- * @see {@link LegacyVersionFileConfig} for the inferred TypeScript type
125
- *
126
- * @deprecated 0.9.0 — migrate to {@link VersionFileConfigSchema} inside
127
- * `packages[*].versionFiles`. Removed in 1.0.0.
128
- * @public
129
- */
130
- const LegacyVersionFileConfigSchema = effect.Schema.Struct({
131
- /** Glob pattern to match JSON files. */
132
- glob: effect.Schema.String.pipe(effect.Schema.minLength(1)),
133
- /** JSONPath expressions to locate version fields. Defaults to `["$.version"]`. */
134
- paths: effect.Schema.optional(effect.Schema.Array(JsonPathSchema)),
135
- /** Workspace package name to source the version from, bypassing path-based resolution. */
136
- package: effect.Schema.optional(effect.Schema.String.pipe(effect.Schema.minLength(1)))
137
- });
138
- /**
139
- * Schema for an array of legacy {@link LegacyVersionFileConfigSchema}
140
- * entries — used by the deprecated top-level `versionFiles[]` array on
141
- * `ChangesetOptionsSchema`.
142
- *
143
- * @deprecated 0.9.0 — migrate to {@link VersionFilesSchema} inside
144
- * `packages[*].versionFiles`. Removed in 1.0.0.
145
- * @public
146
- */
147
- const LegacyVersionFilesSchema = effect.Schema.Array(LegacyVersionFileConfigSchema);
148
-
149
- //#endregion
150
- exports.JsonPathSchema = JsonPathSchema;
151
- exports.LegacyVersionFileConfigSchema = LegacyVersionFileConfigSchema;
152
- exports.LegacyVersionFilesSchema = LegacyVersionFilesSchema;
153
- exports.VersionFileConfigSchema = VersionFileConfigSchema;
154
- exports.VersionFilesSchema = VersionFilesSchema;
@@ -1,150 +0,0 @@
1
- import { Schema } from "effect";
2
-
3
- //#region ../silk-effects/dist/dev/pkg/changesets/schemas/version-files.js
4
- /**
5
- * Schemas for `versionFiles` configuration entries.
6
- *
7
- * @remarks
8
- * `versionFiles` lets \@savvy-web/changesets update version fields in
9
- * arbitrary JSON files (beyond `package.json`) during the
10
- * `changeset version` command. Each entry specifies a glob pattern to
11
- * match files and optional JSONPath expressions to locate version fields
12
- * within those files.
13
- *
14
- * Two related schemas live here:
15
- *
16
- * - {@link VersionFileConfigSchema} — the **new** per-package entry shape
17
- * used inside `packages[*].versionFiles`. It has no `package` field
18
- * because the parent record key already names the owning package.
19
- * - {@link LegacyVersionFileConfigSchema} — the **deprecated** entry shape
20
- * used by the top-level `versionFiles[]` array on the changelog options.
21
- * It carries an optional `package` field so the owner can be named
22
- * inline. Accepted in 0.9.0 with a deprecation warning; removed in
23
- * 1.0.0.
24
- *
25
- * @see {@link ChangesetOptionsSchema} for the consuming options shape
26
- * @see {@link PackageScopeSchema} for the new per-package container
27
- * @see {@link https://effect.website/docs/schema/introduction | Effect Schema documentation}
28
- *
29
- */
30
- /**
31
- * Schema for a JSONPath expression starting with `$.`.
32
- *
33
- * @remarks
34
- * Supports property access (`$.foo.bar`), array wildcard (`$.foo[*].bar`),
35
- * and array index access (`$.foo[0].bar`). The expression must begin with
36
- * `$.` followed by at least one property segment.
37
- *
38
- * @example
39
- * ```typescript
40
- * import { Schema } from "effect";
41
- * import { JsonPathSchema } from "@savvy-web/changesets";
42
- *
43
- * // Succeeds — simple property access
44
- * Schema.decodeUnknownSync(JsonPathSchema)("$.version");
45
- *
46
- * // Succeeds — nested property access
47
- * Schema.decodeUnknownSync(JsonPathSchema)("$.metadata.version");
48
- *
49
- * // Throws ParseError — missing "$." prefix
50
- * Schema.decodeUnknownSync(JsonPathSchema)("version");
51
- * ```
52
- *
53
- * @see {@link VersionFileConfigSchema} which uses this for the `paths` field
54
- *
55
- * @public
56
- */
57
- const JsonPathSchema = Schema.String.pipe(Schema.pattern(/^\$\.[^.]/, { message: () => "JSONPath must start with \"$.\" followed by a property (e.g., \"$.version\", \"$.metadata.version\")" }));
58
- /**
59
- * Schema for a single version file configuration entry — **new shape**.
60
- *
61
- * @remarks
62
- * Used inside `packages[*].versionFiles` (i.e., underneath a parent
63
- * record key that names the owning package). Has no `package` field
64
- * because the parent key already supplies that information.
65
- *
66
- * @example
67
- * ```typescript
68
- * import { Schema } from "effect";
69
- * import { VersionFileConfigSchema } from "@savvy-web/changesets";
70
- *
71
- * const entry = Schema.decodeUnknownSync(VersionFileConfigSchema)({
72
- * glob: "plugin/.claude-plugin/plugin.json",
73
- * paths: ["$.version"],
74
- * });
75
- * ```
76
- *
77
- * @see {@link VersionFileConfig} for the inferred TypeScript type
78
- * @see {@link LegacyVersionFileConfigSchema} for the deprecated shape
79
- * used by the top-level `versionFiles[]` array
80
- * @see {@link JsonPathSchema} for JSONPath validation rules
81
- *
82
- * @public
83
- */
84
- const VersionFileConfigSchema = Schema.Struct({
85
- /** Glob pattern to match JSON files. */
86
- glob: Schema.String.pipe(Schema.minLength(1)),
87
- /** JSONPath expressions to locate version fields. Defaults to `["$.version"]`. */
88
- paths: Schema.optional(Schema.Array(JsonPathSchema))
89
- });
90
- /**
91
- * Schema for an array of new-shape {@link VersionFileConfigSchema} entries.
92
- *
93
- * @public
94
- */
95
- const VersionFilesSchema = Schema.Array(VersionFileConfigSchema);
96
- /**
97
- * Schema for a single version file configuration entry — **legacy shape**.
98
- *
99
- * @remarks
100
- * DEPRECATED. Used only for parsing the top-level `versionFiles[]` array on
101
- * the changelog options block. Carries an optional `package` field so the
102
- * owning package can be named inline (alternatively, the runtime falls back
103
- * to longest-prefix path matching against workspace package directories).
104
- *
105
- * Accepted in 0.9.0 with a deprecation warning emitted by `ConfigInspector`
106
- * at config-load time. Removed in 1.0.0 — migrate to the new
107
- * {@link VersionFileConfigSchema} under
108
- * `changelog[1].packages[<name>].versionFiles`.
109
- *
110
- * @example
111
- * ```typescript
112
- * import { Schema } from "effect";
113
- * import { LegacyVersionFileConfigSchema } from "@savvy-web/changesets";
114
- *
115
- * // Owner named inline via the `package` field
116
- * const entry = Schema.decodeUnknownSync(LegacyVersionFileConfigSchema)({
117
- * glob: "plugin/.claude-plugin/plugin.json",
118
- * paths: ["$.version"],
119
- * package: "@savvy-web/changesets",
120
- * });
121
- * ```
122
- *
123
- * @see {@link VersionFileConfigSchema} for the replacement (new) shape
124
- * @see {@link LegacyVersionFileConfig} for the inferred TypeScript type
125
- *
126
- * @deprecated 0.9.0 — migrate to {@link VersionFileConfigSchema} inside
127
- * `packages[*].versionFiles`. Removed in 1.0.0.
128
- * @public
129
- */
130
- const LegacyVersionFileConfigSchema = Schema.Struct({
131
- /** Glob pattern to match JSON files. */
132
- glob: Schema.String.pipe(Schema.minLength(1)),
133
- /** JSONPath expressions to locate version fields. Defaults to `["$.version"]`. */
134
- paths: Schema.optional(Schema.Array(JsonPathSchema)),
135
- /** Workspace package name to source the version from, bypassing path-based resolution. */
136
- package: Schema.optional(Schema.String.pipe(Schema.minLength(1)))
137
- });
138
- /**
139
- * Schema for an array of legacy {@link LegacyVersionFileConfigSchema}
140
- * entries — used by the deprecated top-level `versionFiles[]` array on
141
- * `ChangesetOptionsSchema`.
142
- *
143
- * @deprecated 0.9.0 — migrate to {@link VersionFilesSchema} inside
144
- * `packages[*].versionFiles`. Removed in 1.0.0.
145
- * @public
146
- */
147
- const LegacyVersionFilesSchema = Schema.Array(LegacyVersionFileConfigSchema);
148
-
149
- //#endregion
150
- export { JsonPathSchema, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, VersionFileConfigSchema, VersionFilesSchema };