@savvy-web/silk-effects 1.4.0 → 1.5.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.
- package/changesets/categories/types.js +0 -1
- package/changesets/changelog/index.js +0 -2
- package/changesets/constants.js +0 -1
- package/changesets/errors.js +0 -1
- package/changesets/index.js +1 -1
- package/changesets/markdownlint/index.js +1 -1
- package/changesets/markdownlint/rules/dependency-table-format.js +2 -2
- package/changesets/markdownlint/rules/utils.js +1 -1
- package/changesets/remark/rules/uncategorized-content.js +1 -1
- package/changesets/schemas/changeset.js +0 -1
- package/changesets/schemas/dependency-table.js +0 -1
- package/changesets/schemas/git.js +0 -1
- package/changesets/schemas/github.js +0 -1
- package/changesets/schemas/options.js +0 -1
- package/changesets/schemas/package-scope.js +0 -1
- package/changesets/schemas/primitives.js +0 -1
- package/changesets/schemas/release-plan.js +0 -1
- package/changesets/schemas/version-files.js +0 -1
- package/changesets/services/branch-analyzer.js +0 -1
- package/changesets/services/config-inspector.js +1 -2
- package/changesets/services/release-planner.js +1 -2
- package/changesets/services/workspace-snapshot.js +0 -1
- package/changesets/utils/jsonpath.js +1 -1
- package/changesets/utils/publishability.js +2 -3
- package/changesets/utils/remark-pipeline.js +1 -1
- package/changesets/utils/worktree-snapshot.js +2 -2
- package/commitlint/config/factory.js +1 -1
- package/commitlint/config/schema.js +1 -1
- package/commitlint/hook/diagnostics/package-manager.js +1 -1
- package/commitlint/index.js +1 -2
- package/errors/BiomeSyncError.js +2 -1
- package/errors/ChangesetConfigError.js +2 -1
- package/errors/ConfigNotFoundError.js +2 -1
- package/errors/SectionParseError.js +1 -0
- package/errors/SectionValidationError.js +1 -0
- package/errors/SectionWriteError.js +1 -0
- package/errors/TagFormatError.js +2 -1
- package/errors/ToolNotFoundError.js +1 -0
- package/errors/ToolResolutionError.js +1 -0
- package/errors/ToolVersionMismatchError.js +1 -0
- package/errors/VersioningDetectionError.js +2 -1
- package/errors/WorkspaceAnalysisError.js +2 -1
- package/index.d.ts +265 -84
- package/lint/handlers/PnpmWorkspace.js +1 -1
- package/lint/index.js +1 -1
- package/package.json +2 -2
- package/schemas/CommentStyle.js +1 -0
- package/schemas/ResolvedTool.js +2 -1
- package/schemas/SavvySections.js +6 -1
- package/schemas/SectionBlock.js +3 -2
- package/schemas/SectionDefinition.js +4 -2
- package/schemas/SectionResults.js +12 -3
- package/schemas/TagStrategySchemas.js +2 -1
- package/schemas/ToolDefinition.js +2 -1
- package/schemas/ToolResults.js +18 -4
- package/schemas/VersioningSchemas.js +8 -4
- package/schemas/WorkspaceAnalysisSchemas.js +3 -0
- package/services/BiomeSchemaSync.js +4 -0
- package/services/ChangesetConfig.js +2 -0
- package/services/ChangesetConfigReader.js +4 -2
- package/services/ConfigDiscovery.js +2 -0
- package/services/ManagedSection.js +2 -0
- package/services/SilkPublishability.js +16 -12
- package/services/SilkWorkspaceAnalyzer.js +4 -2
- package/services/TagStrategy.js +3 -1
- package/services/ToolDiscovery.js +2 -0
- package/services/VersioningStrategy.js +2 -0
- package/turbo/index.js +1 -1
- package/utils/ToolCommand.js +2 -1
package/index.d.ts
CHANGED
|
@@ -2192,7 +2192,6 @@ declare const changelogFunctions: ChangelogFunctions;
|
|
|
2192
2192
|
*
|
|
2193
2193
|
* @see {@link https://effect.website/docs/data-types/data#taggerror | Effect TaggedError documentation}
|
|
2194
2194
|
*
|
|
2195
|
-
* @packageDocumentation
|
|
2196
2195
|
*/
|
|
2197
2196
|
/**
|
|
2198
2197
|
* Base class for {@link ChangesetValidationError}.
|
|
@@ -2531,10 +2530,11 @@ declare const ChangesetConfigError_base: new <A extends Record<string, any> = {}
|
|
|
2531
2530
|
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
2532
2531
|
*
|
|
2533
2532
|
* @remarks
|
|
2534
|
-
* Returned by
|
|
2533
|
+
* Returned by `ChangesetConfigReader.read` when the file is missing,
|
|
2535
2534
|
* contains invalid JSON, or fails Effect Schema validation.
|
|
2536
2535
|
*
|
|
2537
2536
|
* @since 0.1.0
|
|
2537
|
+
* @public
|
|
2538
2538
|
*/
|
|
2539
2539
|
declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
2540
2540
|
readonly path: string;
|
|
@@ -2549,11 +2549,12 @@ declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
|
2549
2549
|
*
|
|
2550
2550
|
* @remarks
|
|
2551
2551
|
* Represents the parsed `.changeset/config.json` file. All fields are optional
|
|
2552
|
-
* to allow partial configs. Use {@link SilkChangesetConfigFile} when the Silk changelog
|
|
2552
|
+
* to allow partial configs. Use {@link (SilkChangesetConfigFile:type)} when the Silk changelog
|
|
2553
2553
|
* adapter is detected.
|
|
2554
2554
|
*
|
|
2555
2555
|
* @since 0.1.0
|
|
2556
2556
|
*/
|
|
2557
|
+
/** @public */
|
|
2557
2558
|
declare const ChangesetConfigFile: Schema.Struct<{
|
|
2558
2559
|
changelog: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.Unknown>, Schema.Literal<[false]>]>>;
|
|
2559
2560
|
commit: Schema.optional<Schema.Union<[typeof Schema.Boolean, typeof Schema.String, Schema.Array$<typeof Schema.Unknown>]>>;
|
|
@@ -2575,18 +2576,22 @@ declare const ChangesetConfigFile: Schema.Struct<{
|
|
|
2575
2576
|
prereleaseTemplate: Schema.optional<typeof Schema.String>;
|
|
2576
2577
|
}>>;
|
|
2577
2578
|
}>;
|
|
2578
|
-
/**
|
|
2579
|
+
/**
|
|
2580
|
+
* @since 0.1.0
|
|
2581
|
+
* @public
|
|
2582
|
+
*/
|
|
2579
2583
|
type ChangesetConfigFile = typeof ChangesetConfigFile.Type;
|
|
2580
2584
|
/**
|
|
2581
2585
|
* Extended changeset config for repos using the `@savvy-web/changesets` changelog adapter.
|
|
2582
2586
|
*
|
|
2583
2587
|
* @remarks
|
|
2584
|
-
* Extends {@link ChangesetConfigFile} with a `_isSilk` marker flag that is automatically
|
|
2588
|
+
* Extends {@link (ChangesetConfigFile:type)} with a `_isSilk` marker flag that is automatically
|
|
2585
2589
|
* set to `true`. Detected by {@link ChangesetConfigReader} when the `changelog` field
|
|
2586
2590
|
* references `@savvy-web/changesets`.
|
|
2587
2591
|
*
|
|
2588
2592
|
* @since 0.1.0
|
|
2589
2593
|
*/
|
|
2594
|
+
/** @public */
|
|
2590
2595
|
declare const SilkChangesetConfigFile: Schema.extend<Schema.Struct<{
|
|
2591
2596
|
changelog: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.Unknown>, Schema.Literal<[false]>]>>;
|
|
2592
2597
|
commit: Schema.optional<Schema.Union<[typeof Schema.Boolean, typeof Schema.String, Schema.Array$<typeof Schema.Unknown>]>>;
|
|
@@ -2612,7 +2617,10 @@ declare const SilkChangesetConfigFile: Schema.extend<Schema.Struct<{
|
|
|
2612
2617
|
default: () => true;
|
|
2613
2618
|
}>;
|
|
2614
2619
|
}>>;
|
|
2615
|
-
/**
|
|
2620
|
+
/**
|
|
2621
|
+
* @since 0.1.0
|
|
2622
|
+
* @public
|
|
2623
|
+
*/
|
|
2616
2624
|
type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
2617
2625
|
/**
|
|
2618
2626
|
* Versioning strategy classification for a workspace.
|
|
@@ -2623,25 +2631,33 @@ type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
|
2623
2631
|
* - `"independent"` — multiple publishable packages with independent version bumps.
|
|
2624
2632
|
*
|
|
2625
2633
|
* @since 0.1.0
|
|
2634
|
+
* @public
|
|
2626
2635
|
*/
|
|
2627
2636
|
declare const VersioningStrategyType: Schema.Literal<["single", "fixed-group", "independent"]>;
|
|
2628
|
-
/**
|
|
2637
|
+
/**
|
|
2638
|
+
* @since 0.1.0
|
|
2639
|
+
* @public
|
|
2640
|
+
*/
|
|
2629
2641
|
type VersioningStrategyType = typeof VersioningStrategyType.Type;
|
|
2630
2642
|
/**
|
|
2631
2643
|
* Output of the versioning strategy detection, combining the strategy type with group metadata.
|
|
2632
2644
|
*
|
|
2633
2645
|
* @remarks
|
|
2634
|
-
* Produced by
|
|
2646
|
+
* Produced by `VersioningStrategy.detect` and consumed by `TagStrategy.determine`
|
|
2635
2647
|
* to decide on the appropriate git-tag format.
|
|
2636
2648
|
*
|
|
2637
2649
|
* @since 0.1.0
|
|
2650
|
+
* @public
|
|
2638
2651
|
*/
|
|
2639
2652
|
declare const VersioningStrategyResult: Schema.Struct<{
|
|
2640
2653
|
type: Schema.Literal<["single", "fixed-group", "independent"]>;
|
|
2641
2654
|
fixedGroups: Schema.Array$<Schema.Array$<typeof Schema.String>>;
|
|
2642
2655
|
publishablePackages: Schema.Array$<typeof Schema.String>;
|
|
2643
2656
|
}>;
|
|
2644
|
-
/**
|
|
2657
|
+
/**
|
|
2658
|
+
* @since 0.1.0
|
|
2659
|
+
* @public
|
|
2660
|
+
*/
|
|
2645
2661
|
type VersioningStrategyResult = typeof VersioningStrategyResult.Type;
|
|
2646
2662
|
//#endregion
|
|
2647
2663
|
//#region src/services/ChangesetConfigReader.d.ts
|
|
@@ -2661,8 +2677,8 @@ declare const ChangesetConfigReader_base: Context.TagClass<ChangesetConfigReader
|
|
|
2661
2677
|
*
|
|
2662
2678
|
* @remarks
|
|
2663
2679
|
* Automatically detects whether the config uses the Silk changelog adapter
|
|
2664
|
-
* (`@savvy-web/changesets`) and decodes as {@link SilkChangesetConfigFile} or the
|
|
2665
|
-
* standard {@link ChangesetConfigFile} accordingly.
|
|
2680
|
+
* (`@savvy-web/changesets`) and decodes as {@link (SilkChangesetConfigFile:type)} or the
|
|
2681
|
+
* standard {@link (ChangesetConfigFile:type)} accordingly.
|
|
2666
2682
|
*
|
|
2667
2683
|
* @example
|
|
2668
2684
|
* ```typescript
|
|
@@ -2678,6 +2694,7 @@ declare const ChangesetConfigReader_base: Context.TagClass<ChangesetConfigReader
|
|
|
2678
2694
|
* ```
|
|
2679
2695
|
*
|
|
2680
2696
|
* @since 0.1.0
|
|
2697
|
+
* @public
|
|
2681
2698
|
*/
|
|
2682
2699
|
declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
|
|
2683
2700
|
/**
|
|
@@ -2688,6 +2705,7 @@ declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
|
|
|
2688
2705
|
* `BunContext.layer` to satisfy this dependency.
|
|
2689
2706
|
*
|
|
2690
2707
|
* @since 0.1.0
|
|
2708
|
+
* @public
|
|
2691
2709
|
*/
|
|
2692
2710
|
declare const ChangesetConfigReaderLive: Layer.Layer<ChangesetConfigReader, never, FileSystem.FileSystem>;
|
|
2693
2711
|
//#endregion
|
|
@@ -2821,7 +2839,7 @@ declare class ConfigInspector extends ConfigInspectorBase {}
|
|
|
2821
2839
|
/**
|
|
2822
2840
|
* Live layer for {@link ConfigInspector}.
|
|
2823
2841
|
*
|
|
2824
|
-
* Requires {@link ChangesetConfigReader} and
|
|
2842
|
+
* Requires {@link ChangesetConfigReader} and `WorkspaceDiscovery`
|
|
2825
2843
|
* in the environment.
|
|
2826
2844
|
*
|
|
2827
2845
|
* @public
|
|
@@ -4333,7 +4351,7 @@ declare function serializeDependencyTableToMarkdown(rows: DependencyTableRow[]):
|
|
|
4333
4351
|
* Compute the set of currently-publishable workspace package names.
|
|
4334
4352
|
*
|
|
4335
4353
|
* @remarks
|
|
4336
|
-
* Uses the currently-active {@link
|
|
4354
|
+
* Uses the currently-active {@link SilkPublishability} — wire the
|
|
4337
4355
|
* {@link SilkPublishabilityDetectorLive} layer to get silk semantics.
|
|
4338
4356
|
*
|
|
4339
4357
|
* @param packages - The workspace packages to evaluate
|
|
@@ -5373,7 +5391,7 @@ interface ConfigOptions {
|
|
|
5373
5391
|
*
|
|
5374
5392
|
* @public
|
|
5375
5393
|
*/
|
|
5376
|
-
type RuleSeverity
|
|
5394
|
+
type RuleSeverity = 0 | 1 | 2;
|
|
5377
5395
|
/**
|
|
5378
5396
|
* Rule applicability.
|
|
5379
5397
|
*
|
|
@@ -5385,7 +5403,7 @@ type RuleApplicability = "always" | "never";
|
|
|
5385
5403
|
*
|
|
5386
5404
|
* @public
|
|
5387
5405
|
*/
|
|
5388
|
-
type RuleConfigTuple<T = unknown> = readonly [RuleSeverity
|
|
5406
|
+
type RuleConfigTuple<T = unknown> = readonly [RuleSeverity] | readonly [RuleSeverity, RuleApplicability] | readonly [RuleSeverity, RuleApplicability, T];
|
|
5389
5407
|
/**
|
|
5390
5408
|
* Commitlint rules configuration.
|
|
5391
5409
|
*
|
|
@@ -6067,15 +6085,15 @@ declare function buildSigningDiagnostic(raw: RawSigningInputs): SigningDiagnosti
|
|
|
6067
6085
|
declare function readSigningDiagnostic(): Effect.Effect<SigningDiagnostic>;
|
|
6068
6086
|
//#endregion
|
|
6069
6087
|
//#region src/commitlint/hook/rules/types.d.ts
|
|
6070
|
-
type RuleSeverity = "deny" | "advise";
|
|
6088
|
+
type RuleSeverity$1 = "deny" | "advise";
|
|
6071
6089
|
interface RuleHit {
|
|
6072
6090
|
ruleId: string;
|
|
6073
|
-
severity: RuleSeverity;
|
|
6091
|
+
severity: RuleSeverity$1;
|
|
6074
6092
|
message: string;
|
|
6075
6093
|
}
|
|
6076
6094
|
interface Rule<Input, Ctx, E = never, R = never> {
|
|
6077
6095
|
id: string;
|
|
6078
|
-
severity: RuleSeverity;
|
|
6096
|
+
severity: RuleSeverity$1;
|
|
6079
6097
|
check: (input: Input, ctx: Ctx) => Effect.Effect<RuleHit | null, E, R>;
|
|
6080
6098
|
}
|
|
6081
6099
|
declare function partitionHits(hits: ReadonlyArray<RuleHit>): {
|
|
@@ -6129,7 +6147,7 @@ declare const VERBOSITY_LINE_THRESHOLD = 25;
|
|
|
6129
6147
|
declare const VERBOSITY_WORD_THRESHOLD = 400;
|
|
6130
6148
|
declare const verbosityRule: Rule<VerbosityInput, never>;
|
|
6131
6149
|
declare namespace index_d_exports$1 {
|
|
6132
|
-
export { BranchInfo, COMMIT_TYPES, COMMIT_TYPE_DEFINITIONS, ClosesTrailerCtx, ClosesTrailerInput, CommitType, CommitTypeDefinition, CommitlintConfig, CommitlintPlugin, CommitlintUserConfig, ConfigOptions, DCO_SIGNOFF_TEXT, DEFAULT_BODY_MAX_LINE_LENGTH, ERROR_EXPLANATIONS, ERROR_SUGGESTIONS, ForbiddenContentInput, FormatterResult, HookOutput, RuleSeverity as HookRuleSeverity, HookSilencer, ISSUES_CACHE_RELATIVE_PATH, ISSUES_CACHE_TTL_SECONDS, Inquirer, LintOutcome, LockfilePresence, OpenIssue, PackageManager$1 as PackageManager, ParsedCommit, ParsedKind, PlanLeakageInput, PostToolUseEnvelope, PostToolUseEnvelope as PostToolUseEnvelopeType, PreToolUseEnvelope, PreToolUseEnvelope as PreToolUseEnvelopeType, PromptConfig, PromptConfigOptions, PromptQuestion, PromptSettings, PrompterOptions, Question, RawSigningInputs, ReleaseFormat, ResolvedPromptConfig, Rule, RuleApplicability, RuleConfigTuple, RuleHit, RuleResult, RuleSeverity
|
|
6150
|
+
export { BranchInfo, COMMIT_TYPES, COMMIT_TYPE_DEFINITIONS, ClosesTrailerCtx, ClosesTrailerInput, CommitType, CommitTypeDefinition, CommitlintConfig, CommitlintPlugin, CommitlintUserConfig, ConfigOptions, DCO_SIGNOFF_TEXT, DEFAULT_BODY_MAX_LINE_LENGTH, ERROR_EXPLANATIONS, ERROR_SUGGESTIONS, ForbiddenContentInput, FormatterResult, HookOutput, RuleSeverity$1 as HookRuleSeverity, HookSilencer, ISSUES_CACHE_RELATIVE_PATH, ISSUES_CACHE_TTL_SECONDS, Inquirer, LintOutcome, LockfilePresence, OpenIssue, PackageManager$1 as PackageManager, ParsedCommit, ParsedKind, PlanLeakageInput, PostToolUseEnvelope, PostToolUseEnvelope as PostToolUseEnvelopeType, PreToolUseEnvelope, PreToolUseEnvelope as PreToolUseEnvelopeType, PromptConfig, PromptConfigOptions, PromptQuestion, PromptSettings, PrompterOptions, Question, RawSigningInputs, ReleaseFormat, ResolvedPromptConfig, Rule, RuleApplicability, RuleConfigTuple, RuleHit, RuleResult, RuleSeverity, RulesConfig, SessionStartEnvelope, SessionStartEnvelope as SessionStartEnvelopeType, SigningDiagnostic, SigningFlagCtx, SigningFlagInput, SoftWrapInput, TDD_SCOPE_PATTERN, TDD_STATES, TYPE_EMOJIS, TYPE_EMOJIS_UNICODE, TypeEnumEntry, VERBOSITY_LINE_THRESHOLD, VERBOSITY_WORD_THRESHOLD, VerbosityInput, buildSigningDiagnostic, closesTrailerRule, createPromptConfig, createTypeEnum, CommitlintConfig as default, defaultPromptConfig, detectDCO, detectFromLockfiles, detectPackageManager, detectScopes, emojiPromptConfig, fetchAndCacheOpenIssues, forbiddenContentRule, format, getExplanation, getSuggestion, getTypeEmoji, hasClosingTrailer, inferTicketId, parseBashCommand, parseGpgKeyExpiry, parseHuskyConfigPath, parsePackageManagerField, partitionHits, planLeakageRule, postToolUseAdvise, preToolUseAdvise, preToolUseAllow, preToolUseDeny, preToolUseSilent, prompter, readBranchInfo, readCache, readCommitlintConfigPath, readOpenIssuesFromCache, readOrFetchOpenIssues, readSigningDiagnostic, sessionStartContext, signingFlagConflictRule, softWrapRule, staticConfig, verbosityRule, writeCache };
|
|
6133
6151
|
}
|
|
6134
6152
|
/**
|
|
6135
6153
|
* Dynamic commitlint configuration factory.
|
|
@@ -6169,11 +6187,12 @@ declare const BiomeSyncError_base: new <A extends Record<string, any> = {}>(args
|
|
|
6169
6187
|
* Raised when a Biome config file cannot be read or its `$schema` URL cannot be updated.
|
|
6170
6188
|
*
|
|
6171
6189
|
* @remarks
|
|
6172
|
-
* Returned by
|
|
6190
|
+
* Returned by `BiomeSchemaSync.sync` and `BiomeSchemaSync.check` when
|
|
6173
6191
|
* a `biome.json` or `biome.jsonc` file exists but cannot be read, contains invalid JSON,
|
|
6174
6192
|
* or cannot be written back to disk.
|
|
6175
6193
|
*
|
|
6176
6194
|
* @since 0.1.0
|
|
6195
|
+
* @public
|
|
6177
6196
|
*/
|
|
6178
6197
|
declare class BiomeSyncError extends BiomeSyncError_base<{
|
|
6179
6198
|
readonly path: string;
|
|
@@ -6190,11 +6209,12 @@ declare const ConfigNotFoundError_base: new <A extends Record<string, any> = {}>
|
|
|
6190
6209
|
* Raised when a config file cannot be located in any of the expected locations.
|
|
6191
6210
|
*
|
|
6192
6211
|
* @remarks
|
|
6193
|
-
* Returned by consumers that require a config file to exist.
|
|
6212
|
+
* Returned by consumers that require a config file to exist. `ConfigDiscovery.find`
|
|
6194
6213
|
* itself returns `null` instead of failing — callers that need a hard failure should
|
|
6195
6214
|
* map `null` to this error.
|
|
6196
6215
|
*
|
|
6197
6216
|
* @since 0.1.0
|
|
6217
|
+
* @public
|
|
6198
6218
|
*/
|
|
6199
6219
|
declare class ConfigNotFoundError extends ConfigNotFoundError_base<{
|
|
6200
6220
|
readonly name: string;
|
|
@@ -6211,6 +6231,7 @@ declare const SectionParseError_base: new <A extends Record<string, any> = {}>(a
|
|
|
6211
6231
|
* Raised when a managed section cannot be parsed from a file.
|
|
6212
6232
|
*
|
|
6213
6233
|
* @since 0.2.0
|
|
6234
|
+
* @public
|
|
6214
6235
|
*/
|
|
6215
6236
|
declare class SectionParseError extends SectionParseError_base<{
|
|
6216
6237
|
readonly path: string;
|
|
@@ -6227,6 +6248,7 @@ declare const SectionValidationError_base: new <A extends Record<string, any> =
|
|
|
6227
6248
|
* Raised when a {@link SectionBlock} fails validation at creation time.
|
|
6228
6249
|
*
|
|
6229
6250
|
* @since 0.2.0
|
|
6251
|
+
* @public
|
|
6230
6252
|
*/
|
|
6231
6253
|
declare class SectionValidationError extends SectionValidationError_base<{
|
|
6232
6254
|
readonly toolName: string;
|
|
@@ -6243,6 +6265,7 @@ declare const SectionWriteError_base: new <A extends Record<string, any> = {}>(a
|
|
|
6243
6265
|
* Raised when a managed section cannot be written to a file.
|
|
6244
6266
|
*
|
|
6245
6267
|
* @since 0.2.0
|
|
6268
|
+
* @public
|
|
6246
6269
|
*/
|
|
6247
6270
|
declare class SectionWriteError extends SectionWriteError_base<{
|
|
6248
6271
|
readonly path: string;
|
|
@@ -6259,10 +6282,11 @@ declare const TagFormatError_base: new <A extends Record<string, any> = {}>(args
|
|
|
6259
6282
|
* Raised when a git tag string cannot be formatted for the given package name and version.
|
|
6260
6283
|
*
|
|
6261
6284
|
* @remarks
|
|
6262
|
-
* Returned by
|
|
6285
|
+
* Returned by `TagStrategy.formatTag` when the `version` argument is an empty string
|
|
6263
6286
|
* or another invariant prevents tag construction.
|
|
6264
6287
|
*
|
|
6265
6288
|
* @since 0.1.0
|
|
6289
|
+
* @public
|
|
6266
6290
|
*/
|
|
6267
6291
|
declare class TagFormatError extends TagFormatError_base<{
|
|
6268
6292
|
readonly name: string;
|
|
@@ -6276,6 +6300,7 @@ declare class TagFormatError extends TagFormatError_base<{
|
|
|
6276
6300
|
declare const ToolNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6277
6301
|
readonly _tag: "ToolNotFoundError";
|
|
6278
6302
|
} & Readonly<A>;
|
|
6303
|
+
/** @public */
|
|
6279
6304
|
declare class ToolNotFoundError extends ToolNotFoundError_base<{
|
|
6280
6305
|
readonly name: string;
|
|
6281
6306
|
readonly reason: string;
|
|
@@ -6287,6 +6312,7 @@ declare class ToolNotFoundError extends ToolNotFoundError_base<{
|
|
|
6287
6312
|
declare const ToolResolutionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6288
6313
|
readonly _tag: "ToolResolutionError";
|
|
6289
6314
|
} & Readonly<A>;
|
|
6315
|
+
/** @public */
|
|
6290
6316
|
declare class ToolResolutionError extends ToolResolutionError_base<{
|
|
6291
6317
|
readonly name: string;
|
|
6292
6318
|
readonly reason: string;
|
|
@@ -6298,6 +6324,7 @@ declare class ToolResolutionError extends ToolResolutionError_base<{
|
|
|
6298
6324
|
declare const ToolVersionMismatchError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6299
6325
|
readonly _tag: "ToolVersionMismatchError";
|
|
6300
6326
|
} & Readonly<A>;
|
|
6327
|
+
/** @public */
|
|
6301
6328
|
declare class ToolVersionMismatchError extends ToolVersionMismatchError_base<{
|
|
6302
6329
|
readonly name: string;
|
|
6303
6330
|
readonly globalVersion: string;
|
|
@@ -6314,10 +6341,11 @@ declare const VersioningDetectionError_base: new <A extends Record<string, any>
|
|
|
6314
6341
|
* Raised when the versioning strategy cannot be determined from the workspace state.
|
|
6315
6342
|
*
|
|
6316
6343
|
* @remarks
|
|
6317
|
-
* Returned by
|
|
6344
|
+
* Returned by `VersioningStrategy.detect` when an unexpected condition
|
|
6318
6345
|
* prevents strategy classification.
|
|
6319
6346
|
*
|
|
6320
6347
|
* @since 0.1.0
|
|
6348
|
+
* @public
|
|
6321
6349
|
*/
|
|
6322
6350
|
declare class VersioningDetectionError extends VersioningDetectionError_base<{
|
|
6323
6351
|
readonly reason: string;
|
|
@@ -6333,11 +6361,12 @@ declare const WorkspaceAnalysisError_base: new <A extends Record<string, any> =
|
|
|
6333
6361
|
* Raised when workspace analysis fails for a given root directory.
|
|
6334
6362
|
*
|
|
6335
6363
|
* @remarks
|
|
6336
|
-
* Returned by
|
|
6364
|
+
* Returned by `SilkWorkspaceAnalyzer.analyze` when the analysis pipeline
|
|
6337
6365
|
* encounters an unrecoverable error — e.g. workspace discovery failure,
|
|
6338
6366
|
* package manager detection failure, or publishability detection errors.
|
|
6339
6367
|
*
|
|
6340
6368
|
* @since 0.2.0
|
|
6369
|
+
* @public
|
|
6341
6370
|
*/
|
|
6342
6371
|
declare class WorkspaceAnalysisError extends WorkspaceAnalysisError_base<{
|
|
6343
6372
|
readonly root: string;
|
|
@@ -7655,6 +7684,7 @@ declare function resetWorkspaceCache(): void;
|
|
|
7655
7684
|
* Result of comparing two section contents.
|
|
7656
7685
|
*
|
|
7657
7686
|
* @since 0.2.0
|
|
7687
|
+
* @public
|
|
7658
7688
|
*/
|
|
7659
7689
|
type SectionDiffDefinition = {
|
|
7660
7690
|
readonly Unchanged: {};
|
|
@@ -7663,9 +7693,15 @@ type SectionDiffDefinition = {
|
|
|
7663
7693
|
readonly removed: ReadonlyArray<string>;
|
|
7664
7694
|
};
|
|
7665
7695
|
};
|
|
7666
|
-
/**
|
|
7696
|
+
/**
|
|
7697
|
+
* @since 0.2.0
|
|
7698
|
+
* @public
|
|
7699
|
+
*/
|
|
7667
7700
|
type SectionDiff = Data.TaggedEnum<SectionDiffDefinition>;
|
|
7668
|
-
/**
|
|
7701
|
+
/**
|
|
7702
|
+
* @since 0.2.0
|
|
7703
|
+
* @public
|
|
7704
|
+
*/
|
|
7669
7705
|
declare const SectionDiff: {
|
|
7670
7706
|
readonly Unchanged: Data.Case.Constructor<{
|
|
7671
7707
|
readonly _tag: "Unchanged";
|
|
@@ -7725,6 +7761,7 @@ declare const SectionDiff: {
|
|
|
7725
7761
|
* Result of a sync operation.
|
|
7726
7762
|
*
|
|
7727
7763
|
* @since 0.2.0
|
|
7764
|
+
* @public
|
|
7728
7765
|
*/
|
|
7729
7766
|
type SyncResultDefinition = {
|
|
7730
7767
|
readonly Created: {};
|
|
@@ -7733,9 +7770,15 @@ type SyncResultDefinition = {
|
|
|
7733
7770
|
};
|
|
7734
7771
|
readonly Unchanged: {};
|
|
7735
7772
|
};
|
|
7736
|
-
/**
|
|
7773
|
+
/**
|
|
7774
|
+
* @since 0.2.0
|
|
7775
|
+
* @public
|
|
7776
|
+
*/
|
|
7737
7777
|
type SyncResult = Data.TaggedEnum<SyncResultDefinition>;
|
|
7738
|
-
/**
|
|
7778
|
+
/**
|
|
7779
|
+
* @since 0.2.0
|
|
7780
|
+
* @public
|
|
7781
|
+
*/
|
|
7739
7782
|
declare const SyncResult: {
|
|
7740
7783
|
readonly Unchanged: Data.Case.Constructor<{
|
|
7741
7784
|
readonly _tag: "Unchanged";
|
|
@@ -7806,6 +7849,7 @@ declare const SyncResult: {
|
|
|
7806
7849
|
* Result of a check operation.
|
|
7807
7850
|
*
|
|
7808
7851
|
* @since 0.2.0
|
|
7852
|
+
* @public
|
|
7809
7853
|
*/
|
|
7810
7854
|
type CheckResultDefinition = {
|
|
7811
7855
|
readonly Found: {
|
|
@@ -7814,9 +7858,15 @@ type CheckResultDefinition = {
|
|
|
7814
7858
|
};
|
|
7815
7859
|
readonly NotFound: {};
|
|
7816
7860
|
};
|
|
7817
|
-
/**
|
|
7861
|
+
/**
|
|
7862
|
+
* @since 0.2.0
|
|
7863
|
+
* @public
|
|
7864
|
+
*/
|
|
7818
7865
|
type CheckResult = Data.TaggedEnum<CheckResultDefinition>;
|
|
7819
|
-
/**
|
|
7866
|
+
/**
|
|
7867
|
+
* @since 0.2.0
|
|
7868
|
+
* @public
|
|
7869
|
+
*/
|
|
7820
7870
|
declare const CheckResult: {
|
|
7821
7871
|
readonly Found: Data.Case.Constructor<{
|
|
7822
7872
|
readonly _tag: "Found";
|
|
@@ -7884,10 +7934,11 @@ declare const SectionBlock_base: Schema.TaggedClass<SectionBlock, "SectionBlock"
|
|
|
7884
7934
|
/**
|
|
7885
7935
|
* The content between managed section markers.
|
|
7886
7936
|
*
|
|
7887
|
-
*
|
|
7888
|
-
* Use
|
|
7937
|
+
* `Equal` compares normalized content only (trimmed, whitespace-collapsed).
|
|
7938
|
+
* Use `diff` to compute line-level differences.
|
|
7889
7939
|
*
|
|
7890
7940
|
* @since 0.2.0
|
|
7941
|
+
* @public
|
|
7891
7942
|
*/
|
|
7892
7943
|
declare class SectionBlock extends SectionBlock_base {
|
|
7893
7944
|
static diff: {
|
|
@@ -7921,9 +7972,13 @@ declare class SectionBlock extends SectionBlock_base {
|
|
|
7921
7972
|
* - `"//"` — C-style, suitable for JavaScript/TypeScript files.
|
|
7922
7973
|
*
|
|
7923
7974
|
* @since 0.1.0
|
|
7975
|
+
* @public
|
|
7924
7976
|
*/
|
|
7925
7977
|
declare const CommentStyle: Schema.Literal<["#", "//"]>;
|
|
7926
|
-
/**
|
|
7978
|
+
/**
|
|
7979
|
+
* @since 0.1.0
|
|
7980
|
+
* @public
|
|
7981
|
+
*/
|
|
7927
7982
|
type CommentStyle = typeof CommentStyle.Type;
|
|
7928
7983
|
//#endregion
|
|
7929
7984
|
//#region src/schemas/SectionDefinition.d.ts
|
|
@@ -7938,11 +7993,12 @@ declare const SectionDefinition_base: Schema.TaggedClass<SectionDefinition, "Sec
|
|
|
7938
7993
|
/**
|
|
7939
7994
|
* Identity envelope for a managed section type.
|
|
7940
7995
|
*
|
|
7941
|
-
*
|
|
7996
|
+
* `Equal` compares on `toolName` + `commentStyle`.
|
|
7942
7997
|
* Use {@link SectionDefinition.block | block()} to create a {@link SectionBlock},
|
|
7943
|
-
* or
|
|
7998
|
+
* or `generate()` for a typed factory.
|
|
7944
7999
|
*
|
|
7945
8000
|
* @since 0.2.0
|
|
8001
|
+
* @public
|
|
7946
8002
|
*/
|
|
7947
8003
|
declare class SectionDefinition extends SectionDefinition_base {
|
|
7948
8004
|
private _validate?;
|
|
@@ -7982,6 +8038,7 @@ declare const ShellSectionDefinition_base: Schema.TaggedClass<ShellSectionDefini
|
|
|
7982
8038
|
* `commentStyle` is always `"#"` — only `toolName` is required.
|
|
7983
8039
|
*
|
|
7984
8040
|
* @since 0.2.0
|
|
8041
|
+
* @public
|
|
7985
8042
|
*/
|
|
7986
8043
|
declare class ShellSectionDefinition extends ShellSectionDefinition_base {
|
|
7987
8044
|
get commentStyle(): CommentStyle;
|
|
@@ -8226,13 +8283,17 @@ declare namespace index_d_exports$2 {
|
|
|
8226
8283
|
* - `current` — paths of config files already pointing to the expected schema URL.
|
|
8227
8284
|
*
|
|
8228
8285
|
* @since 0.1.0
|
|
8286
|
+
* @public
|
|
8229
8287
|
*/
|
|
8230
8288
|
declare const BiomeSyncResult: Schema.Struct<{
|
|
8231
8289
|
updated: Schema.Array$<typeof Schema.String>;
|
|
8232
8290
|
skipped: Schema.Array$<typeof Schema.String>;
|
|
8233
8291
|
current: Schema.Array$<typeof Schema.String>;
|
|
8234
8292
|
}>;
|
|
8235
|
-
/**
|
|
8293
|
+
/**
|
|
8294
|
+
* @since 0.1.0
|
|
8295
|
+
* @public
|
|
8296
|
+
*/
|
|
8236
8297
|
type BiomeSyncResult = typeof BiomeSyncResult.Type;
|
|
8237
8298
|
/**
|
|
8238
8299
|
* Options for {@link BiomeSchemaSync} operations.
|
|
@@ -8242,6 +8303,7 @@ type BiomeSyncResult = typeof BiomeSyncResult.Type;
|
|
|
8242
8303
|
* `gitignore` is reserved for future use to skip gitignored config files (defaults to `true`).
|
|
8243
8304
|
*
|
|
8244
8305
|
* @since 0.1.0
|
|
8306
|
+
* @public
|
|
8245
8307
|
*/
|
|
8246
8308
|
declare const BiomeSyncOptions: Schema.Struct<{
|
|
8247
8309
|
cwd: Schema.optional<typeof Schema.String>;
|
|
@@ -8249,7 +8311,10 @@ declare const BiomeSyncOptions: Schema.Struct<{
|
|
|
8249
8311
|
default: () => true;
|
|
8250
8312
|
}>;
|
|
8251
8313
|
}>;
|
|
8252
|
-
/**
|
|
8314
|
+
/**
|
|
8315
|
+
* @since 0.1.0
|
|
8316
|
+
* @public
|
|
8317
|
+
*/
|
|
8253
8318
|
type BiomeSyncOptions = typeof BiomeSyncOptions.Type;
|
|
8254
8319
|
//#endregion
|
|
8255
8320
|
//#region src/schemas/ConfigDiscoverySchemas.d.ts
|
|
@@ -8262,24 +8327,32 @@ type BiomeSyncOptions = typeof BiomeSyncOptions.Type;
|
|
|
8262
8327
|
* - `"cosmiconfig"` — reserved for future cosmiconfig-based discovery.
|
|
8263
8328
|
*
|
|
8264
8329
|
* @since 0.1.0
|
|
8330
|
+
* @public
|
|
8265
8331
|
*/
|
|
8266
8332
|
declare const ConfigSource: Schema.Literal<["lib", "root", "cosmiconfig"]>;
|
|
8267
|
-
/**
|
|
8333
|
+
/**
|
|
8334
|
+
* @since 0.1.0
|
|
8335
|
+
* @public
|
|
8336
|
+
*/
|
|
8268
8337
|
type ConfigSource = typeof ConfigSource.Type;
|
|
8269
8338
|
/**
|
|
8270
8339
|
* The resolved location of a discovered config file.
|
|
8271
8340
|
*
|
|
8272
8341
|
* @remarks
|
|
8273
|
-
* Produced by
|
|
8342
|
+
* Produced by `ConfigDiscovery.find` and `ConfigDiscovery.findAll`.
|
|
8274
8343
|
* `path` is the absolute file path; `source` indicates how it was discovered.
|
|
8275
8344
|
*
|
|
8276
8345
|
* @since 0.1.0
|
|
8346
|
+
* @public
|
|
8277
8347
|
*/
|
|
8278
8348
|
declare const ConfigLocation: Schema.Struct<{
|
|
8279
8349
|
path: typeof Schema.String;
|
|
8280
8350
|
source: Schema.Literal<["lib", "root", "cosmiconfig"]>;
|
|
8281
8351
|
}>;
|
|
8282
|
-
/**
|
|
8352
|
+
/**
|
|
8353
|
+
* @since 0.1.0
|
|
8354
|
+
* @public
|
|
8355
|
+
*/
|
|
8283
8356
|
type ConfigLocation = typeof ConfigLocation.Type;
|
|
8284
8357
|
/**
|
|
8285
8358
|
* Options passed to config discovery methods.
|
|
@@ -8289,21 +8362,26 @@ type ConfigLocation = typeof ConfigLocation.Type;
|
|
|
8289
8362
|
* `tool` is reserved for future use as a tool-specific discovery hint.
|
|
8290
8363
|
*
|
|
8291
8364
|
* @since 0.1.0
|
|
8365
|
+
* @public
|
|
8292
8366
|
*/
|
|
8293
8367
|
declare const ConfigDiscoveryOptions: Schema.Struct<{
|
|
8294
8368
|
cwd: Schema.optional<typeof Schema.String>;
|
|
8295
8369
|
tool: Schema.optional<typeof Schema.String>;
|
|
8296
8370
|
}>;
|
|
8297
|
-
/**
|
|
8371
|
+
/**
|
|
8372
|
+
* @since 0.1.0
|
|
8373
|
+
* @public
|
|
8374
|
+
*/
|
|
8298
8375
|
type ConfigDiscoveryOptions = typeof ConfigDiscoveryOptions.Type;
|
|
8299
8376
|
//#endregion
|
|
8300
8377
|
//#region src/utils/ToolCommand.d.ts
|
|
8301
8378
|
/**
|
|
8302
|
-
* Wraps `@effect/platform`
|
|
8379
|
+
* Wraps `@effect/platform` `Command.Command` with instance method ergonomics.
|
|
8303
8380
|
*
|
|
8304
8381
|
* Use `yield* cmd.string()` instead of `yield* Command.string(cmd)`.
|
|
8305
8382
|
*
|
|
8306
8383
|
* @since 0.2.0
|
|
8384
|
+
* @public
|
|
8307
8385
|
*/
|
|
8308
8386
|
declare class ToolCommand {
|
|
8309
8387
|
readonly command: Command.Command;
|
|
@@ -8332,9 +8410,10 @@ declare const ResolvedTool_base: Schema.TaggedClass<ResolvedTool, "ResolvedTool"
|
|
|
8332
8410
|
/**
|
|
8333
8411
|
* Result of resolving a {@link ToolDefinition}.
|
|
8334
8412
|
*
|
|
8335
|
-
* Provides
|
|
8413
|
+
* Provides `exec` and `dlx` to build commands for the resolved tool.
|
|
8336
8414
|
*
|
|
8337
8415
|
* @since 0.2.0
|
|
8416
|
+
* @public
|
|
8338
8417
|
*/
|
|
8339
8418
|
declare class ResolvedTool extends ResolvedTool_base {
|
|
8340
8419
|
get isGlobal(): boolean;
|
|
@@ -8358,6 +8437,7 @@ declare class ResolvedTool extends ResolvedTool_base {
|
|
|
8358
8437
|
* ```
|
|
8359
8438
|
*
|
|
8360
8439
|
* @since 0.5.0
|
|
8440
|
+
* @public
|
|
8361
8441
|
*/
|
|
8362
8442
|
declare const SavvyBaseSection: ShellSectionDefinition;
|
|
8363
8443
|
/**
|
|
@@ -8366,6 +8446,7 @@ declare const SavvyBaseSection: ShellSectionDefinition;
|
|
|
8366
8446
|
* `toolName` is `"savvy-hooks"`; pair with {@link savvyHooksHygiene}.
|
|
8367
8447
|
*
|
|
8368
8448
|
* @since 0.5.0
|
|
8449
|
+
* @public
|
|
8369
8450
|
*/
|
|
8370
8451
|
declare const SavvyHooksSection: ShellSectionDefinition;
|
|
8371
8452
|
/**
|
|
@@ -8380,6 +8461,7 @@ declare const SavvyHooksSection: ShellSectionDefinition;
|
|
|
8380
8461
|
* @returns The preamble shell, with no surrounding markers or trailing newline.
|
|
8381
8462
|
*
|
|
8382
8463
|
* @since 0.5.0
|
|
8464
|
+
* @public
|
|
8383
8465
|
*/
|
|
8384
8466
|
declare function savvyBasePreamble(): string;
|
|
8385
8467
|
/**
|
|
@@ -8392,6 +8474,7 @@ declare function savvyBasePreamble(): string;
|
|
|
8392
8474
|
* @returns The hygiene shell, with no surrounding markers or trailing newline.
|
|
8393
8475
|
*
|
|
8394
8476
|
* @since 0.5.0
|
|
8477
|
+
* @public
|
|
8395
8478
|
*/
|
|
8396
8479
|
declare function savvyHooksHygiene(): string;
|
|
8397
8480
|
/**
|
|
@@ -8405,7 +8488,7 @@ declare function savvyHooksHygiene(): string;
|
|
|
8405
8488
|
*
|
|
8406
8489
|
* **Precondition:** a {@link SavvyBaseSection} block must precede this section in the same
|
|
8407
8490
|
* hook file so `in_ci` and `pm_exec` are defined. Consumers guarantee this by passing both
|
|
8408
|
-
* to
|
|
8491
|
+
* to `ManagedSection.syncMany` in order:
|
|
8409
8492
|
*
|
|
8410
8493
|
* @example
|
|
8411
8494
|
* ```ts
|
|
@@ -8420,6 +8503,7 @@ declare function savvyHooksHygiene(): string;
|
|
|
8420
8503
|
* @returns A shell {@link SectionBlock} (`commentStyle: "#"`) for `toolName`.
|
|
8421
8504
|
*
|
|
8422
8505
|
* @since 0.5.0
|
|
8506
|
+
* @public
|
|
8423
8507
|
*/
|
|
8424
8508
|
declare function savvyToolSection(toolName: string, command: string): SectionBlock;
|
|
8425
8509
|
//#endregion
|
|
@@ -8431,20 +8515,37 @@ declare function savvyToolSection(toolName: string, command: string): SectionBlo
|
|
|
8431
8515
|
* - `"single"` — one shared tag for the entire release (e.g. `1.2.3`).
|
|
8432
8516
|
* - `"scoped"` — a per-package tag that includes the package name (e.g. `@my-org/pkg@1.2.3`).
|
|
8433
8517
|
*
|
|
8434
|
-
* Determined by
|
|
8518
|
+
* Determined by `TagStrategy.determine` based on the {@link (VersioningStrategyResult:type)}.
|
|
8435
8519
|
*
|
|
8436
8520
|
* @since 0.1.0
|
|
8521
|
+
* @public
|
|
8437
8522
|
*/
|
|
8438
8523
|
declare const TagStrategyType: Schema.Literal<["single", "scoped"]>;
|
|
8439
|
-
/**
|
|
8524
|
+
/**
|
|
8525
|
+
* @since 0.1.0
|
|
8526
|
+
* @public
|
|
8527
|
+
*/
|
|
8440
8528
|
type TagStrategyType = typeof TagStrategyType.Type;
|
|
8441
8529
|
//#endregion
|
|
8442
8530
|
//#region src/schemas/ToolResults.d.ts
|
|
8443
|
-
/**
|
|
8531
|
+
/**
|
|
8532
|
+
* Where a tool was resolved from.
|
|
8533
|
+
*
|
|
8534
|
+
* @since 0.2.0
|
|
8535
|
+
* @public
|
|
8536
|
+
*/
|
|
8444
8537
|
declare const ToolSource: Schema.Literal<["global", "local"]>;
|
|
8445
|
-
/**
|
|
8538
|
+
/**
|
|
8539
|
+
* @since 0.2.0
|
|
8540
|
+
* @public
|
|
8541
|
+
*/
|
|
8446
8542
|
type ToolSource = typeof ToolSource.Type;
|
|
8447
|
-
/**
|
|
8543
|
+
/**
|
|
8544
|
+
* How to extract a version string from a CLI tool.
|
|
8545
|
+
*
|
|
8546
|
+
* @since 0.2.0
|
|
8547
|
+
* @public
|
|
8548
|
+
*/
|
|
8448
8549
|
type VersionExtractorDefinition = {
|
|
8449
8550
|
readonly Flag: {
|
|
8450
8551
|
readonly flag: string;
|
|
@@ -8456,9 +8557,15 @@ type VersionExtractorDefinition = {
|
|
|
8456
8557
|
};
|
|
8457
8558
|
readonly None: {};
|
|
8458
8559
|
};
|
|
8459
|
-
/**
|
|
8560
|
+
/**
|
|
8561
|
+
* @since 0.2.0
|
|
8562
|
+
* @public
|
|
8563
|
+
*/
|
|
8460
8564
|
type VersionExtractor = Data.TaggedEnum<VersionExtractorDefinition>;
|
|
8461
|
-
/**
|
|
8565
|
+
/**
|
|
8566
|
+
* @since 0.2.0
|
|
8567
|
+
* @public
|
|
8568
|
+
*/
|
|
8462
8569
|
declare const VersionExtractor: {
|
|
8463
8570
|
readonly Flag: Data.Case.Constructor<{
|
|
8464
8571
|
readonly _tag: "Flag";
|
|
@@ -8543,16 +8650,27 @@ declare const VersionExtractor: {
|
|
|
8543
8650
|
}, cases: Cases & { [K in Exclude<keyof Cases, "Flag" | "Json" | "None">]: never }): import("effect/Unify").Unify<ReturnType<Cases["Flag" | "Json" | "None"]>>;
|
|
8544
8651
|
};
|
|
8545
8652
|
};
|
|
8546
|
-
/**
|
|
8653
|
+
/**
|
|
8654
|
+
* What to do when both global and local versions differ.
|
|
8655
|
+
*
|
|
8656
|
+
* @since 0.2.0
|
|
8657
|
+
* @public
|
|
8658
|
+
*/
|
|
8547
8659
|
type ResolutionPolicyDefinition = {
|
|
8548
8660
|
readonly Report: {};
|
|
8549
8661
|
readonly PreferLocal: {};
|
|
8550
8662
|
readonly PreferGlobal: {};
|
|
8551
8663
|
readonly RequireMatch: {};
|
|
8552
8664
|
};
|
|
8553
|
-
/**
|
|
8665
|
+
/**
|
|
8666
|
+
* @since 0.2.0
|
|
8667
|
+
* @public
|
|
8668
|
+
*/
|
|
8554
8669
|
type ResolutionPolicy = Data.TaggedEnum<ResolutionPolicyDefinition>;
|
|
8555
|
-
/**
|
|
8670
|
+
/**
|
|
8671
|
+
* @since 0.2.0
|
|
8672
|
+
* @public
|
|
8673
|
+
*/
|
|
8556
8674
|
declare const ResolutionPolicy: {
|
|
8557
8675
|
readonly Report: Data.Case.Constructor<{
|
|
8558
8676
|
readonly _tag: "Report";
|
|
@@ -8630,16 +8748,27 @@ declare const ResolutionPolicy: {
|
|
|
8630
8748
|
}, cases: Cases & { [K in Exclude<keyof Cases, "Report" | "PreferLocal" | "PreferGlobal" | "RequireMatch">]: never }): import("effect/Unify").Unify<ReturnType<Cases["Report" | "PreferLocal" | "PreferGlobal" | "RequireMatch"]>>;
|
|
8631
8749
|
};
|
|
8632
8750
|
};
|
|
8633
|
-
/**
|
|
8751
|
+
/**
|
|
8752
|
+
* Where the tool must be found.
|
|
8753
|
+
*
|
|
8754
|
+
* @since 0.2.0
|
|
8755
|
+
* @public
|
|
8756
|
+
*/
|
|
8634
8757
|
type SourceRequirementDefinition = {
|
|
8635
8758
|
readonly Any: {};
|
|
8636
8759
|
readonly OnlyLocal: {};
|
|
8637
8760
|
readonly OnlyGlobal: {};
|
|
8638
8761
|
readonly Both: {};
|
|
8639
8762
|
};
|
|
8640
|
-
/**
|
|
8763
|
+
/**
|
|
8764
|
+
* @since 0.2.0
|
|
8765
|
+
* @public
|
|
8766
|
+
*/
|
|
8641
8767
|
type SourceRequirement = Data.TaggedEnum<SourceRequirementDefinition>;
|
|
8642
|
-
/**
|
|
8768
|
+
/**
|
|
8769
|
+
* @since 0.2.0
|
|
8770
|
+
* @public
|
|
8771
|
+
*/
|
|
8643
8772
|
declare const SourceRequirement: {
|
|
8644
8773
|
readonly Any: Data.Case.Constructor<{
|
|
8645
8774
|
readonly _tag: "Any";
|
|
@@ -8722,9 +8851,10 @@ declare const SourceRequirement: {
|
|
|
8722
8851
|
/**
|
|
8723
8852
|
* Declares a CLI tool's identity and resolution constraints.
|
|
8724
8853
|
*
|
|
8725
|
-
*
|
|
8854
|
+
* `Equal` compares on `name` only (identity).
|
|
8726
8855
|
*
|
|
8727
8856
|
* @since 0.2.0
|
|
8857
|
+
* @public
|
|
8728
8858
|
*/
|
|
8729
8859
|
declare class ToolDefinition implements Equal.Equal {
|
|
8730
8860
|
readonly _tag: "ToolDefinition";
|
|
@@ -8805,6 +8935,7 @@ declare const SilkPublishConfig_base: Schema.Class<SilkPublishConfig, {
|
|
|
8805
8935
|
* Silk `targets` extension for multi-registry publishing.
|
|
8806
8936
|
*
|
|
8807
8937
|
* @since 0.2.0
|
|
8938
|
+
* @public
|
|
8808
8939
|
*/
|
|
8809
8940
|
declare class SilkPublishConfig extends SilkPublishConfig_base {}
|
|
8810
8941
|
declare const AnalyzedWorkspace_base: Schema.TaggedClass<AnalyzedWorkspace, "AnalyzedWorkspace", {
|
|
@@ -8830,6 +8961,7 @@ declare const AnalyzedWorkspace_base: Schema.TaggedClass<AnalyzedWorkspace, "Ana
|
|
|
8830
8961
|
* and release group membership.
|
|
8831
8962
|
*
|
|
8832
8963
|
* @since 0.2.0
|
|
8964
|
+
* @public
|
|
8833
8965
|
*/
|
|
8834
8966
|
declare class AnalyzedWorkspace extends AnalyzedWorkspace_base {
|
|
8835
8967
|
get isRoot(): boolean;
|
|
@@ -8920,6 +9052,7 @@ declare const WorkspaceAnalysis_base: Schema.TaggedClass<WorkspaceAnalysis, "Wor
|
|
|
8920
9052
|
* and project-level configuration.
|
|
8921
9053
|
*
|
|
8922
9054
|
* @since 0.2.0
|
|
9055
|
+
* @public
|
|
8923
9056
|
*/
|
|
8924
9057
|
declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
8925
9058
|
findWorkspace(name: string): Option.Option<AnalyzedWorkspace>;
|
|
@@ -8945,6 +9078,7 @@ declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
|
8945
9078
|
* @returns The bare semver string (e.g. `"1.9.3"`).
|
|
8946
9079
|
*
|
|
8947
9080
|
* @since 0.1.0
|
|
9081
|
+
* @public
|
|
8948
9082
|
*/
|
|
8949
9083
|
declare function extractSemver(version: string): string;
|
|
8950
9084
|
/**
|
|
@@ -8954,6 +9088,7 @@ declare function extractSemver(version: string): string;
|
|
|
8954
9088
|
* @returns The canonical `biomejs.dev` schema URL for that version.
|
|
8955
9089
|
*
|
|
8956
9090
|
* @since 0.1.0
|
|
9091
|
+
* @public
|
|
8957
9092
|
*/
|
|
8958
9093
|
declare function buildSchemaUrl(version: string): string;
|
|
8959
9094
|
declare const BiomeSchemaSync_base: Context.TagClass<BiomeSchemaSync, "@savvy-web/silk-effects/BiomeSchemaSync", {
|
|
@@ -9007,6 +9142,7 @@ declare const BiomeSchemaSync_base: Context.TagClass<BiomeSchemaSync, "@savvy-we
|
|
|
9007
9142
|
* ```
|
|
9008
9143
|
*
|
|
9009
9144
|
* @since 0.1.0
|
|
9145
|
+
* @public
|
|
9010
9146
|
*/
|
|
9011
9147
|
declare class BiomeSchemaSync extends BiomeSchemaSync_base {}
|
|
9012
9148
|
/**
|
|
@@ -9017,11 +9153,15 @@ declare class BiomeSchemaSync extends BiomeSchemaSync_base {}
|
|
|
9017
9153
|
* `BunContext.layer` to satisfy this dependency.
|
|
9018
9154
|
*
|
|
9019
9155
|
* @since 0.1.0
|
|
9156
|
+
* @public
|
|
9020
9157
|
*/
|
|
9021
9158
|
declare const BiomeSchemaSyncLive: Layer.Layer<BiomeSchemaSync, never, FileSystem.FileSystem>;
|
|
9022
9159
|
//#endregion
|
|
9023
9160
|
//#region src/services/ChangesetConfig.d.ts
|
|
9024
|
-
/**
|
|
9161
|
+
/**
|
|
9162
|
+
* Changeset operating mode for a workspace root.
|
|
9163
|
+
* @public
|
|
9164
|
+
*/
|
|
9025
9165
|
type ChangesetMode = "silk" | "vanilla" | "none";
|
|
9026
9166
|
declare const ChangesetConfig_base: Context.TagClass<ChangesetConfig, "@savvy-web/silk-effects/ChangesetConfig", {
|
|
9027
9167
|
readonly mode: (root: string) => Effect.Effect<ChangesetMode>;
|
|
@@ -9039,6 +9179,7 @@ declare const ChangesetConfig_base: Context.TagClass<ChangesetConfig, "@savvy-we
|
|
|
9039
9179
|
* to `mode: "none"` and empty/false defaults.
|
|
9040
9180
|
*
|
|
9041
9181
|
* @since 0.4.0
|
|
9182
|
+
* @public
|
|
9042
9183
|
*/
|
|
9043
9184
|
declare class ChangesetConfig extends ChangesetConfig_base {
|
|
9044
9185
|
/**
|
|
@@ -9057,6 +9198,7 @@ declare class ChangesetConfig extends ChangesetConfig_base {
|
|
|
9057
9198
|
* `ChangesetConfigReaderLive` + a platform layer (`NodeContext.layer`).
|
|
9058
9199
|
*
|
|
9059
9200
|
* @since 0.4.0
|
|
9201
|
+
* @public
|
|
9060
9202
|
*/
|
|
9061
9203
|
declare const ChangesetConfigLive: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
|
|
9062
9204
|
//#endregion
|
|
@@ -9113,6 +9255,7 @@ declare const ConfigDiscovery_base: Context.TagClass<ConfigDiscovery, "@savvy-we
|
|
|
9113
9255
|
* ```
|
|
9114
9256
|
*
|
|
9115
9257
|
* @since 0.1.0
|
|
9258
|
+
* @public
|
|
9116
9259
|
*/
|
|
9117
9260
|
declare class ConfigDiscovery extends ConfigDiscovery_base {}
|
|
9118
9261
|
/**
|
|
@@ -9123,6 +9266,7 @@ declare class ConfigDiscovery extends ConfigDiscovery_base {}
|
|
|
9123
9266
|
* `BunContext.layer` to satisfy this dependency.
|
|
9124
9267
|
*
|
|
9125
9268
|
* @since 0.1.0
|
|
9269
|
+
* @public
|
|
9126
9270
|
*/
|
|
9127
9271
|
declare const ConfigDiscoveryLive: Layer.Layer<ConfigDiscovery, never, FileSystem.FileSystem>;
|
|
9128
9272
|
//#endregion
|
|
@@ -9165,17 +9309,22 @@ declare const ManagedSection_base: Context.TagClass<ManagedSection, "@savvy-web/
|
|
|
9165
9309
|
* Content operations (`write`, `sync`, `check`) take a {@link SectionBlock}.
|
|
9166
9310
|
*
|
|
9167
9311
|
* @since 0.2.0
|
|
9312
|
+
* @public
|
|
9168
9313
|
*/
|
|
9169
9314
|
declare class ManagedSection extends ManagedSection_base {}
|
|
9170
9315
|
/**
|
|
9171
9316
|
* Live implementation of {@link ManagedSection} backed by `@effect/platform` FileSystem.
|
|
9172
9317
|
*
|
|
9173
9318
|
* @since 0.2.0
|
|
9319
|
+
* @public
|
|
9174
9320
|
*/
|
|
9175
9321
|
declare const ManagedSectionLive: Layer.Layer<ManagedSection, never, FileSystem.FileSystem>;
|
|
9176
9322
|
//#endregion
|
|
9177
9323
|
//#region src/services/SilkPublishability.d.ts
|
|
9178
|
-
/**
|
|
9324
|
+
/**
|
|
9325
|
+
* A single object-form publish target in the `publishConfig.targets` map (mirrors the bundler's `PublishTargetObject`).
|
|
9326
|
+
* @public
|
|
9327
|
+
*/
|
|
9179
9328
|
interface RawTargetObject {
|
|
9180
9329
|
/** Registry endpoint. Defaulted for the well-known `npm`/`github` keys. */
|
|
9181
9330
|
readonly registry?: string;
|
|
@@ -9184,7 +9333,10 @@ interface RawTargetObject {
|
|
|
9184
9333
|
/** Reuse another target's group bytes. Mutually exclusive with `name`. */
|
|
9185
9334
|
readonly from?: string;
|
|
9186
9335
|
}
|
|
9187
|
-
/**
|
|
9336
|
+
/**
|
|
9337
|
+
* A `publishConfig.targets` value: `true` (well-known registry, base name), a string (name override), or an object.
|
|
9338
|
+
* @public
|
|
9339
|
+
*/
|
|
9188
9340
|
type RawTargetValue = true | string | RawTargetObject;
|
|
9189
9341
|
/**
|
|
9190
9342
|
* The `publishConfig.targets` map, keyed by target id (`npm`, `github`, or a custom key).
|
|
@@ -9193,25 +9345,35 @@ type RawTargetValue = true | string | RawTargetObject;
|
|
|
9193
9345
|
* This is the bundler's Record-map form. The legacy array form is no longer supported
|
|
9194
9346
|
* (removed in the 1.0 breaking change) — declare targets as a keyed map and let the
|
|
9195
9347
|
* bundler emit the {@link TargetsBinding} that silk publishability resolves against.
|
|
9348
|
+
* @public
|
|
9196
9349
|
*/
|
|
9197
9350
|
type RawPublishTargets = Record<string, RawTargetValue>;
|
|
9198
|
-
/**
|
|
9351
|
+
/**
|
|
9352
|
+
* Raw `publishConfig` shape (the unschematized fields silk rules consult).
|
|
9353
|
+
* @public
|
|
9354
|
+
*/
|
|
9199
9355
|
interface RawPublishConfig {
|
|
9200
9356
|
readonly access?: "public" | "restricted";
|
|
9201
9357
|
readonly registry?: string;
|
|
9202
9358
|
readonly directory?: string;
|
|
9203
9359
|
readonly targets?: RawPublishTargets;
|
|
9204
9360
|
}
|
|
9205
|
-
/**
|
|
9361
|
+
/**
|
|
9362
|
+
* A resolved byte-variant group from the bundler's `dist/prod/targets.json` binding.
|
|
9363
|
+
* @public
|
|
9364
|
+
*/
|
|
9206
9365
|
interface TargetGroupBinding {
|
|
9207
|
-
/** Group folder id; the group's bytes live at
|
|
9366
|
+
/** Group folder id; the group's bytes live at `dir`. */
|
|
9208
9367
|
readonly id: string;
|
|
9209
9368
|
/** The `package.json.name` this group's manifest carries. */
|
|
9210
9369
|
readonly name: string;
|
|
9211
9370
|
/** The group's pkg output dir, relative to the package root (e.g. `dist/prod/npm/pkg`). */
|
|
9212
9371
|
readonly dir: string;
|
|
9213
9372
|
}
|
|
9214
|
-
/**
|
|
9373
|
+
/**
|
|
9374
|
+
* A resolved registry target from the bundler's `dist/prod/targets.json` binding (one per `publishConfig.targets` key).
|
|
9375
|
+
* @public
|
|
9376
|
+
*/
|
|
9215
9377
|
interface TargetBinding {
|
|
9216
9378
|
/** The `publishConfig.targets` key (`npm`, `github`, …). */
|
|
9217
9379
|
readonly id: string;
|
|
@@ -9230,19 +9392,26 @@ interface TargetBinding {
|
|
|
9230
9392
|
* byte-variant build set; `targets` binds every declared registry target to one group.
|
|
9231
9393
|
* `npm: true` + `github: true` collapse into one scoped-name group deployed to two
|
|
9232
9394
|
* registries (one group, two targets).
|
|
9395
|
+
* @public
|
|
9233
9396
|
*/
|
|
9234
9397
|
interface TargetsBinding {
|
|
9235
9398
|
readonly groups: ReadonlyArray<TargetGroupBinding>;
|
|
9236
9399
|
readonly targets: ReadonlyArray<TargetBinding>;
|
|
9237
9400
|
}
|
|
9238
|
-
/**
|
|
9401
|
+
/**
|
|
9402
|
+
* Raw `package.json` shape consumed by `SilkPublishability.detect`.
|
|
9403
|
+
* @public
|
|
9404
|
+
*/
|
|
9239
9405
|
interface RawPackageJson {
|
|
9240
9406
|
readonly name?: string;
|
|
9241
9407
|
readonly version?: string;
|
|
9242
9408
|
readonly private?: boolean;
|
|
9243
9409
|
readonly publishConfig?: RawPublishConfig;
|
|
9244
9410
|
}
|
|
9245
|
-
/**
|
|
9411
|
+
/**
|
|
9412
|
+
* A publishable workspace package and the count of its resolved publish targets.
|
|
9413
|
+
* @public
|
|
9414
|
+
*/
|
|
9246
9415
|
interface PublishablePackage {
|
|
9247
9416
|
readonly name: string;
|
|
9248
9417
|
readonly version: string;
|
|
@@ -9250,7 +9419,7 @@ interface PublishablePackage {
|
|
|
9250
9419
|
readonly targetCount: number;
|
|
9251
9420
|
}
|
|
9252
9421
|
/**
|
|
9253
|
-
* Silk publishability rules over `workspaces-effect`'s
|
|
9422
|
+
* Silk publishability rules over `workspaces-effect`'s `PublishTarget`.
|
|
9254
9423
|
*
|
|
9255
9424
|
* @remarks
|
|
9256
9425
|
* In silk mode `private: true` is the norm on workspace `package.json`; publishability is
|
|
@@ -9258,6 +9427,7 @@ interface PublishablePackage {
|
|
|
9258
9427
|
* default. All helpers are static so a consumer sees the full rule surface in one place.
|
|
9259
9428
|
*
|
|
9260
9429
|
* @since 0.4.0
|
|
9430
|
+
* @public
|
|
9261
9431
|
*/
|
|
9262
9432
|
declare class SilkPublishability {
|
|
9263
9433
|
/**
|
|
@@ -9266,7 +9436,7 @@ declare class SilkPublishability {
|
|
|
9266
9436
|
*
|
|
9267
9437
|
* - A non-empty `publishConfig.targets` map (the bundler's Record-map form) makes the
|
|
9268
9438
|
* package publishable regardless of `private`. With a `binding` (post-prod-build), one
|
|
9269
|
-
*
|
|
9439
|
+
* `PublishTarget` is emitted per resolved registry target, its `directory` set to
|
|
9270
9440
|
* the bound group's `dist/prod/<group>/pkg` dir. Without a binding (pre-build), one
|
|
9271
9441
|
* placeholder target is emitted per declared key so publishability and target counts
|
|
9272
9442
|
* are correct; the directory is best-effort and unused until the build writes the
|
|
@@ -9282,14 +9452,14 @@ declare class SilkPublishability {
|
|
|
9282
9452
|
*/
|
|
9283
9453
|
static detect(pkgName: string, raw: RawPackageJson, binding: TargetsBinding | null): ReadonlyArray<PublishTarget>;
|
|
9284
9454
|
/**
|
|
9285
|
-
* Resolve a package's publish targets via {@link
|
|
9455
|
+
* Resolve a package's publish targets via {@link SilkPublishability}, then drop any
|
|
9286
9456
|
* whose built `directory` package.json is `private: true`. Returned targets keep the
|
|
9287
9457
|
* detector's original (possibly package-relative) `directory`.
|
|
9288
9458
|
*/
|
|
9289
9459
|
static resolveTargets(pkg: WorkspacePackage, root: string): Effect.Effect<ReadonlyArray<PublishTarget>, never, PublishabilityDetector | FileSystem.FileSystem>;
|
|
9290
9460
|
/**
|
|
9291
9461
|
* The publishable, non-ignored packages, resolved through the single
|
|
9292
|
-
* {@link
|
|
9462
|
+
* {@link SilkPublishability} (which already honors changeset ignore in adaptive mode).
|
|
9293
9463
|
*/
|
|
9294
9464
|
static listPublishable(root: string): Effect.Effect<ReadonlyArray<PublishablePackage>, never, WorkspaceDiscovery | PublishabilityDetector>;
|
|
9295
9465
|
}
|
|
@@ -9298,31 +9468,34 @@ declare class SilkPublishability {
|
|
|
9298
9468
|
*
|
|
9299
9469
|
* @remarks
|
|
9300
9470
|
* Returns `null` when the file is missing/unreadable/malformed — i.e. before the prod build
|
|
9301
|
-
* has run.
|
|
9302
|
-
* case. Used by the silk {@link
|
|
9471
|
+
* has run. `SilkPublishability.detect` falls back to declared-key placeholders in that
|
|
9472
|
+
* case. Used by the silk {@link SilkPublishability} layers and the workspace analyzer.
|
|
9303
9473
|
*
|
|
9304
9474
|
* @param fs - The FileSystem service.
|
|
9305
9475
|
* @param pkgPath - Absolute path to the package directory.
|
|
9306
9476
|
* @since 1.0.0
|
|
9477
|
+
* @public
|
|
9307
9478
|
*/
|
|
9308
9479
|
declare const readTargetsBinding: (fs: FileSystem.FileSystem, pkgPath: string) => Effect.Effect<TargetsBinding | null>;
|
|
9309
9480
|
/**
|
|
9310
|
-
* Override of `workspaces-effect`'s {@link
|
|
9481
|
+
* Override of `workspaces-effect`'s {@link SilkPublishability} Tag with pure silk rules.
|
|
9311
9482
|
*
|
|
9312
9483
|
* @remarks Requires `FileSystem` (captured at layer build); `detect` reads the raw
|
|
9313
|
-
* `package.json` from `pkg.packageJsonPath` and applies
|
|
9484
|
+
* `package.json` from `pkg.packageJsonPath` and applies `SilkPublishability.detect`.
|
|
9314
9485
|
*
|
|
9315
9486
|
* @since 0.4.0
|
|
9487
|
+
* @public
|
|
9316
9488
|
*/
|
|
9317
9489
|
declare const SilkPublishabilityDetectorLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem>;
|
|
9318
9490
|
/**
|
|
9319
|
-
* Ignore-aware override of {@link
|
|
9320
|
-
* for changeset-ignored packages, then dispatches on
|
|
9321
|
-
* `none` → `[]`; `silk` →
|
|
9491
|
+
* Ignore-aware override of {@link SilkPublishability}. `detect` short-circuits to `[]`
|
|
9492
|
+
* for changeset-ignored packages, then dispatches on `ChangesetConfig.mode`:
|
|
9493
|
+
* `none` → `[]`; `silk` → `SilkPublishability.detect`; `vanilla` → the library default.
|
|
9322
9494
|
*
|
|
9323
9495
|
* @remarks Requires `FileSystem` + {@link ChangesetConfig} at build.
|
|
9324
9496
|
*
|
|
9325
9497
|
* @since 0.4.0
|
|
9498
|
+
* @public
|
|
9326
9499
|
*/
|
|
9327
9500
|
declare const PublishabilityDetectorAdaptiveLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem | ChangesetConfig>;
|
|
9328
9501
|
//#endregion
|
|
@@ -9331,7 +9504,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9331
9504
|
/**
|
|
9332
9505
|
* Determine the appropriate tag strategy type from a versioning strategy result.
|
|
9333
9506
|
*
|
|
9334
|
-
* @param versioningResult - The result of
|
|
9507
|
+
* @param versioningResult - The result of `VersioningStrategy.detect`.
|
|
9335
9508
|
* @returns An `Effect` that always succeeds with a {@link TagStrategyType}.
|
|
9336
9509
|
*
|
|
9337
9510
|
* @since 0.1.0
|
|
@@ -9354,7 +9527,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9354
9527
|
* Service that determines and applies the git-tag naming strategy for a release.
|
|
9355
9528
|
*
|
|
9356
9529
|
* @remarks
|
|
9357
|
-
* Consumes a {@link VersioningStrategyResult} to pick between `"single"` and `"scoped"`
|
|
9530
|
+
* Consumes a {@link (VersioningStrategyResult:type)} to pick between `"single"` and `"scoped"`
|
|
9358
9531
|
* tag formats, then formats tag strings accordingly. Independent versioning always
|
|
9359
9532
|
* produces scoped tags; single and fixed-group versioning produces a single shared tag.
|
|
9360
9533
|
*
|
|
@@ -9371,6 +9544,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9371
9544
|
* ```
|
|
9372
9545
|
*
|
|
9373
9546
|
* @since 0.1.0
|
|
9547
|
+
* @public
|
|
9374
9548
|
*/
|
|
9375
9549
|
declare class TagStrategy extends TagStrategy_base {}
|
|
9376
9550
|
/**
|
|
@@ -9380,6 +9554,7 @@ declare class TagStrategy extends TagStrategy_base {}
|
|
|
9380
9554
|
* All logic is pure: strategy determination and tag formatting involve no I/O.
|
|
9381
9555
|
*
|
|
9382
9556
|
* @since 0.1.0
|
|
9557
|
+
* @public
|
|
9383
9558
|
*/
|
|
9384
9559
|
declare const TagStrategyLive: Layer.Layer<TagStrategy>;
|
|
9385
9560
|
//#endregion
|
|
@@ -9390,7 +9565,7 @@ declare const VersioningStrategy_base: Context.TagClass<VersioningStrategy, "@sa
|
|
|
9390
9565
|
*
|
|
9391
9566
|
* @param publishablePackages - Package names (e.g. `"@my-org/pkg"`) that will be published.
|
|
9392
9567
|
* @param root - Workspace root directory to read changeset config from.
|
|
9393
|
-
* @returns An `Effect` resolving to a {@link VersioningStrategyResult}, or failing with
|
|
9568
|
+
* @returns An `Effect` resolving to a {@link (VersioningStrategyResult:type)}, or failing with
|
|
9394
9569
|
* {@link VersioningDetectionError} on unexpected errors.
|
|
9395
9570
|
*
|
|
9396
9571
|
* @since 0.1.0
|
|
@@ -9420,6 +9595,7 @@ declare const VersioningStrategy_base: Context.TagClass<VersioningStrategy, "@sa
|
|
|
9420
9595
|
* ```
|
|
9421
9596
|
*
|
|
9422
9597
|
* @since 0.1.0
|
|
9598
|
+
* @public
|
|
9423
9599
|
*/
|
|
9424
9600
|
declare class VersioningStrategy extends VersioningStrategy_base {}
|
|
9425
9601
|
/**
|
|
@@ -9430,6 +9606,7 @@ declare class VersioningStrategy extends VersioningStrategy_base {}
|
|
|
9430
9606
|
* If the config file is absent, an empty `fixed` groups array is assumed.
|
|
9431
9607
|
*
|
|
9432
9608
|
* @since 0.1.0
|
|
9609
|
+
* @public
|
|
9433
9610
|
*/
|
|
9434
9611
|
declare const VersioningStrategyLive: Layer.Layer<VersioningStrategy, never, ChangesetConfigReader>;
|
|
9435
9612
|
//#endregion
|
|
@@ -9454,7 +9631,7 @@ declare const SilkWorkspaceAnalyzer_base: Context.TagClass<SilkWorkspaceAnalyzer
|
|
|
9454
9631
|
* wiring up fixed/linked release groups.
|
|
9455
9632
|
*
|
|
9456
9633
|
* @remarks
|
|
9457
|
-
* Orchestrates
|
|
9634
|
+
* Orchestrates `WorkspaceDiscovery`, `PackageManagerDetector`,
|
|
9458
9635
|
* {@link ChangesetConfigReader}, {@link VersioningStrategy}, and
|
|
9459
9636
|
* {@link TagStrategy} to produce a complete {@link WorkspaceAnalysis} for a
|
|
9460
9637
|
* given workspace root.
|
|
@@ -9473,16 +9650,18 @@ declare const SilkWorkspaceAnalyzer_base: Context.TagClass<SilkWorkspaceAnalyzer
|
|
|
9473
9650
|
* ```
|
|
9474
9651
|
*
|
|
9475
9652
|
* @since 0.2.0
|
|
9653
|
+
* @public
|
|
9476
9654
|
*/
|
|
9477
9655
|
declare class SilkWorkspaceAnalyzer extends SilkWorkspaceAnalyzer_base {}
|
|
9478
9656
|
/**
|
|
9479
9657
|
* Live implementation of {@link SilkWorkspaceAnalyzer}.
|
|
9480
9658
|
*
|
|
9481
9659
|
* @remarks
|
|
9482
|
-
* Requires
|
|
9660
|
+
* Requires `WorkspaceDiscovery`, `PackageManagerDetector`,
|
|
9483
9661
|
* {@link ChangesetConfigReader}, {@link VersioningStrategy}, and {@link TagStrategy}.
|
|
9484
9662
|
*
|
|
9485
9663
|
* @since 0.2.0
|
|
9664
|
+
* @public
|
|
9486
9665
|
*/
|
|
9487
9666
|
declare const SilkWorkspaceAnalyzerLive: Layer.Layer<SilkWorkspaceAnalyzer, never, FileSystem.FileSystem | WorkspaceDiscovery | TopologicalSorter | PackageManagerDetector | ChangesetConfigReader | VersioningStrategy | TagStrategy>;
|
|
9488
9667
|
//#endregion
|
|
@@ -9540,6 +9719,7 @@ declare const ToolDiscovery_base: Context.TagClass<ToolDiscovery, "@savvy-web/si
|
|
|
9540
9719
|
* ```
|
|
9541
9720
|
*
|
|
9542
9721
|
* @since 0.2.0
|
|
9722
|
+
* @public
|
|
9543
9723
|
*/
|
|
9544
9724
|
declare class ToolDiscovery extends ToolDiscovery_base {}
|
|
9545
9725
|
/**
|
|
@@ -9550,6 +9730,7 @@ declare class ToolDiscovery extends ToolDiscovery_base {}
|
|
|
9550
9730
|
* and `WorkspaceRoot` from `workspaces-effect`.
|
|
9551
9731
|
*
|
|
9552
9732
|
* @since 0.2.0
|
|
9733
|
+
* @public
|
|
9553
9734
|
*/
|
|
9554
9735
|
declare const ToolDiscoveryLive: Layer.Layer<ToolDiscovery, never, CommandExecutor.CommandExecutor | PackageManagerDetector | WorkspaceRoot>;
|
|
9555
9736
|
//#endregion
|
|
@@ -9899,5 +10080,5 @@ declare namespace index_d_exports$3 {
|
|
|
9899
10080
|
export { AffectedResult, AffectedResultType, CacheDiagnosis, CacheDiagnosisType, DryRunParseError, GlobalHashSummary, GraphNode, MissExplanation, NotATurboRepoError, PackageCacheStatus, TaskGraphResult, TaskGraphResultType, TurboCache, TurboDigest, TurboDryRun, TurboDryRunType, TurboDryTask, TurboDryTaskType, TurboEnvVars, TurboError, TurboExecError, TurboGlobalCacheInputs, TurboInspector, TurboInspectorLive, TurboNotInstalledError };
|
|
9900
10081
|
}
|
|
9901
10082
|
//#endregion
|
|
9902
|
-
export { AnalyzedWorkspace, BiomeSchemaSync, BiomeSchemaSyncLive, BiomeSyncError, type BiomeSyncOptions, type BiomeSyncResult, ChangesetConfig, ChangesetConfigError, type ChangesetConfigFile, ChangesetConfigLive, ChangesetConfigReader, ChangesetConfigReaderLive, type ChangesetMode, index_d_exports as Changesets, CheckResult, type CheckResultDefinition, type CommentStyle, index_d_exports$1 as Commitlint, type CommitlintUserConfig, ConfigDiscovery, ConfigDiscoveryLive, type ConfigDiscoveryOptions, type ConfigLocation, ConfigNotFoundError, type ConfigSource, index_d_exports$2 as Lint, ManagedSection, ManagedSectionLive, PublishabilityDetectorAdaptiveLive, type PublishablePackage, type RawPackageJson, type RawPublishConfig, type RawPublishTargets, type RawTargetObject, type RawTargetValue, ResolutionPolicy, type ResolutionPolicyDefinition, ResolvedTool, SavvyBaseSection, SavvyHooksSection, SectionBlock, SectionDefinition, SectionDiff, type SectionDiffDefinition, SectionParseError, SectionValidationError, SectionWriteError, ShellSectionDefinition, type SilkChangesetConfigFile, SilkPublishConfig, SilkPublishability, SilkPublishabilityDetectorLive, SilkWorkspaceAnalyzer, SilkWorkspaceAnalyzerLive, SourceRequirement, type SourceRequirementDefinition, SyncResult, type SyncResultDefinition, TagFormatError, TagStrategy, TagStrategyLive, type TagStrategyType, type TargetBinding, type TargetGroupBinding, type TargetsBinding, ToolCommand, ToolDefinition, ToolDiscovery, ToolDiscoveryLive, ToolNotFoundError, ToolResolutionError, ToolSource, ToolVersionMismatchError, index_d_exports$3 as Turbo, VersionExtractor, type VersionExtractorDefinition, VersioningDetectionError, VersioningStrategy, VersioningStrategyLive, type VersioningStrategyResult, type VersioningStrategyType, WorkspaceAnalysis, WorkspaceAnalysisError, buildSchemaUrl, extractSemver, readTargetsBinding, savvyBasePreamble, savvyHooksHygiene, savvyToolSection };
|
|
10083
|
+
export { AnalyzedWorkspace, BiomeSchemaSync, BiomeSchemaSyncLive, BiomeSyncError, type BiomeSyncOptions, type BiomeSyncResult, ChangesetConfig, ChangesetConfigError, type ChangesetConfigFile, ChangesetConfigLive, ChangesetConfigReader, ChangesetConfigReaderLive, type ChangesetMode, index_d_exports as Changesets, CheckResult, type CheckResultDefinition, type CommentStyle, index_d_exports$1 as Commitlint, type CommitlintPlugin, type CommitlintUserConfig, ConfigDiscovery, ConfigDiscoveryLive, type ConfigDiscoveryOptions, type ConfigLocation, ConfigNotFoundError, type ConfigSource, index_d_exports$2 as Lint, ManagedSection, ManagedSectionLive, type PromptConfig, type PromptSettings, PublishabilityDetectorAdaptiveLive, type PublishablePackage, type RawPackageJson, type RawPublishConfig, type RawPublishTargets, type RawTargetObject, type RawTargetValue, ResolutionPolicy, type ResolutionPolicyDefinition, ResolvedTool, type RuleApplicability, type RuleConfigTuple, type RuleSeverity, type RulesConfig, SavvyBaseSection, SavvyHooksSection, SectionBlock, SectionDefinition, SectionDiff, type SectionDiffDefinition, SectionParseError, SectionValidationError, SectionWriteError, ShellSectionDefinition, type SilkChangesetConfigFile, SilkPublishConfig, SilkPublishability, SilkPublishabilityDetectorLive, SilkWorkspaceAnalyzer, SilkWorkspaceAnalyzerLive, SourceRequirement, type SourceRequirementDefinition, SyncResult, type SyncResultDefinition, TagFormatError, TagStrategy, TagStrategyLive, type TagStrategyType, type TargetBinding, type TargetGroupBinding, type TargetsBinding, ToolCommand, ToolDefinition, ToolDiscovery, ToolDiscoveryLive, ToolNotFoundError, ToolResolutionError, ToolSource, ToolVersionMismatchError, index_d_exports$3 as Turbo, VersionExtractor, type VersionExtractorDefinition, VersioningDetectionError, VersioningStrategy, VersioningStrategyLive, type VersioningStrategyResult, type VersioningStrategyType, WorkspaceAnalysis, WorkspaceAnalysisError, buildSchemaUrl, extractSemver, readTargetsBinding, savvyBasePreamble, savvyHooksHygiene, savvyToolSection };
|
|
9903
10084
|
//# sourceMappingURL=index.d.ts.map
|