@savvy-web/silk-effects 1.3.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changesets/categories/types.js +0 -1
- package/changesets/changelog/index.js +0 -2
- package/changesets/constants.js +0 -1
- package/changesets/errors.js +25 -2
- package/changesets/index.js +17 -2
- package/changesets/markdownlint/rules/dependency-table-format.js +2 -2
- 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 +56 -0
- 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 +251 -0
- package/changesets/services/workspace-snapshot.js +0 -1
- package/changesets/utils/publishability.js +2 -3
- package/changesets/utils/worktree-snapshot.js +1 -1
- package/commitlint/config/factory.js +1 -1
- package/commitlint/hook/diagnostics/package-manager.js +1 -1
- package/commitlint/index.js +0 -1
- 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 +420 -85
- package/lint/handlers/PnpmWorkspace.js +1 -1
- package/package.json +5 -1
- 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 +7 -3
- 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/utils/ToolCommand.js +2 -1
package/index.d.ts
CHANGED
|
@@ -305,6 +305,11 @@ type Changeset$1 = {
|
|
|
305
305
|
type NewChangeset = Changeset$1 & {
|
|
306
306
|
id: string;
|
|
307
307
|
};
|
|
308
|
+
type ReleasePlan = {
|
|
309
|
+
changesets: NewChangeset[];
|
|
310
|
+
releases: ComprehensiveRelease[];
|
|
311
|
+
preState: PreState | undefined;
|
|
312
|
+
};
|
|
308
313
|
type PackageJSON = {
|
|
309
314
|
name: string;
|
|
310
315
|
version: string;
|
|
@@ -343,6 +348,14 @@ type ChangelogFunctions = {
|
|
|
343
348
|
getReleaseLine: GetReleaseLine;
|
|
344
349
|
getDependencyReleaseLine: GetDependencyReleaseLine;
|
|
345
350
|
};
|
|
351
|
+
type PreState = {
|
|
352
|
+
mode: "pre" | "exit";
|
|
353
|
+
tag: string;
|
|
354
|
+
initialVersions: {
|
|
355
|
+
[pkgName: string]: string;
|
|
356
|
+
};
|
|
357
|
+
changesets: string[];
|
|
358
|
+
};
|
|
346
359
|
//#endregion
|
|
347
360
|
//#region src/changesets/api/changelog.d.ts
|
|
348
361
|
/**
|
|
@@ -2179,7 +2192,6 @@ declare const changelogFunctions: ChangelogFunctions;
|
|
|
2179
2192
|
*
|
|
2180
2193
|
* @see {@link https://effect.website/docs/data-types/data#taggerror | Effect TaggedError documentation}
|
|
2181
2194
|
*
|
|
2182
|
-
* @packageDocumentation
|
|
2183
2195
|
*/
|
|
2184
2196
|
/**
|
|
2185
2197
|
* Base class for {@link ChangesetValidationError}.
|
|
@@ -2482,6 +2494,33 @@ declare class GitError extends GitErrorBase<{
|
|
|
2482
2494
|
}> {
|
|
2483
2495
|
get message(): string;
|
|
2484
2496
|
}
|
|
2497
|
+
/**
|
|
2498
|
+
* Base class for {@link ReleasePlanError}.
|
|
2499
|
+
*
|
|
2500
|
+
* @privateRemarks
|
|
2501
|
+
* Required export for api-extractor (anonymous Data.TaggedError base). Do not delete.
|
|
2502
|
+
*
|
|
2503
|
+
* @internal
|
|
2504
|
+
*/
|
|
2505
|
+
declare const ReleasePlanErrorBase: 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 & {
|
|
2506
|
+
readonly _tag: "ReleasePlanError";
|
|
2507
|
+
} & Readonly<A>;
|
|
2508
|
+
/**
|
|
2509
|
+
* Release planning, preview, or apply failure.
|
|
2510
|
+
*
|
|
2511
|
+
* @remarks
|
|
2512
|
+
* Wraps any failure from the underlying `@changesets/*` machinery
|
|
2513
|
+
* (`getReleasePlan`, `applyReleasePlan`, config resolution) into a typed
|
|
2514
|
+
* Effect error, tagged with the phase that failed.
|
|
2515
|
+
*
|
|
2516
|
+
* @public
|
|
2517
|
+
*/
|
|
2518
|
+
declare class ReleasePlanError extends ReleasePlanErrorBase<{
|
|
2519
|
+
/** The phase that failed. */readonly phase: "plan" | "preview" | "apply"; /** Human-readable failure reason. */
|
|
2520
|
+
readonly reason: string;
|
|
2521
|
+
}> {
|
|
2522
|
+
get message(): string;
|
|
2523
|
+
}
|
|
2485
2524
|
//#endregion
|
|
2486
2525
|
//#region src/errors/ChangesetConfigError.d.ts
|
|
2487
2526
|
declare const ChangesetConfigError_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 & {
|
|
@@ -2491,10 +2530,11 @@ declare const ChangesetConfigError_base: new <A extends Record<string, any> = {}
|
|
|
2491
2530
|
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
2492
2531
|
*
|
|
2493
2532
|
* @remarks
|
|
2494
|
-
* Returned by
|
|
2533
|
+
* Returned by `ChangesetConfigReader.read` when the file is missing,
|
|
2495
2534
|
* contains invalid JSON, or fails Effect Schema validation.
|
|
2496
2535
|
*
|
|
2497
2536
|
* @since 0.1.0
|
|
2537
|
+
* @public
|
|
2498
2538
|
*/
|
|
2499
2539
|
declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
2500
2540
|
readonly path: string;
|
|
@@ -2509,11 +2549,12 @@ declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
|
2509
2549
|
*
|
|
2510
2550
|
* @remarks
|
|
2511
2551
|
* Represents the parsed `.changeset/config.json` file. All fields are optional
|
|
2512
|
-
* to allow partial configs. Use {@link SilkChangesetConfigFile} when the Silk changelog
|
|
2552
|
+
* to allow partial configs. Use {@link (SilkChangesetConfigFile:type)} when the Silk changelog
|
|
2513
2553
|
* adapter is detected.
|
|
2514
2554
|
*
|
|
2515
2555
|
* @since 0.1.0
|
|
2516
2556
|
*/
|
|
2557
|
+
/** @public */
|
|
2517
2558
|
declare const ChangesetConfigFile: Schema.Struct<{
|
|
2518
2559
|
changelog: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.Unknown>, Schema.Literal<[false]>]>>;
|
|
2519
2560
|
commit: Schema.optional<Schema.Union<[typeof Schema.Boolean, typeof Schema.String, Schema.Array$<typeof Schema.Unknown>]>>;
|
|
@@ -2535,18 +2576,22 @@ declare const ChangesetConfigFile: Schema.Struct<{
|
|
|
2535
2576
|
prereleaseTemplate: Schema.optional<typeof Schema.String>;
|
|
2536
2577
|
}>>;
|
|
2537
2578
|
}>;
|
|
2538
|
-
/**
|
|
2579
|
+
/**
|
|
2580
|
+
* @since 0.1.0
|
|
2581
|
+
* @public
|
|
2582
|
+
*/
|
|
2539
2583
|
type ChangesetConfigFile = typeof ChangesetConfigFile.Type;
|
|
2540
2584
|
/**
|
|
2541
2585
|
* Extended changeset config for repos using the `@savvy-web/changesets` changelog adapter.
|
|
2542
2586
|
*
|
|
2543
2587
|
* @remarks
|
|
2544
|
-
* Extends {@link ChangesetConfigFile} with a `_isSilk` marker flag that is automatically
|
|
2588
|
+
* Extends {@link (ChangesetConfigFile:type)} with a `_isSilk` marker flag that is automatically
|
|
2545
2589
|
* set to `true`. Detected by {@link ChangesetConfigReader} when the `changelog` field
|
|
2546
2590
|
* references `@savvy-web/changesets`.
|
|
2547
2591
|
*
|
|
2548
2592
|
* @since 0.1.0
|
|
2549
2593
|
*/
|
|
2594
|
+
/** @public */
|
|
2550
2595
|
declare const SilkChangesetConfigFile: Schema.extend<Schema.Struct<{
|
|
2551
2596
|
changelog: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.Unknown>, Schema.Literal<[false]>]>>;
|
|
2552
2597
|
commit: Schema.optional<Schema.Union<[typeof Schema.Boolean, typeof Schema.String, Schema.Array$<typeof Schema.Unknown>]>>;
|
|
@@ -2572,7 +2617,10 @@ declare const SilkChangesetConfigFile: Schema.extend<Schema.Struct<{
|
|
|
2572
2617
|
default: () => true;
|
|
2573
2618
|
}>;
|
|
2574
2619
|
}>>;
|
|
2575
|
-
/**
|
|
2620
|
+
/**
|
|
2621
|
+
* @since 0.1.0
|
|
2622
|
+
* @public
|
|
2623
|
+
*/
|
|
2576
2624
|
type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
2577
2625
|
/**
|
|
2578
2626
|
* Versioning strategy classification for a workspace.
|
|
@@ -2583,25 +2631,33 @@ type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
|
2583
2631
|
* - `"independent"` — multiple publishable packages with independent version bumps.
|
|
2584
2632
|
*
|
|
2585
2633
|
* @since 0.1.0
|
|
2634
|
+
* @public
|
|
2586
2635
|
*/
|
|
2587
2636
|
declare const VersioningStrategyType: Schema.Literal<["single", "fixed-group", "independent"]>;
|
|
2588
|
-
/**
|
|
2637
|
+
/**
|
|
2638
|
+
* @since 0.1.0
|
|
2639
|
+
* @public
|
|
2640
|
+
*/
|
|
2589
2641
|
type VersioningStrategyType = typeof VersioningStrategyType.Type;
|
|
2590
2642
|
/**
|
|
2591
2643
|
* Output of the versioning strategy detection, combining the strategy type with group metadata.
|
|
2592
2644
|
*
|
|
2593
2645
|
* @remarks
|
|
2594
|
-
* Produced by
|
|
2646
|
+
* Produced by `VersioningStrategy.detect` and consumed by `TagStrategy.determine`
|
|
2595
2647
|
* to decide on the appropriate git-tag format.
|
|
2596
2648
|
*
|
|
2597
2649
|
* @since 0.1.0
|
|
2650
|
+
* @public
|
|
2598
2651
|
*/
|
|
2599
2652
|
declare const VersioningStrategyResult: Schema.Struct<{
|
|
2600
2653
|
type: Schema.Literal<["single", "fixed-group", "independent"]>;
|
|
2601
2654
|
fixedGroups: Schema.Array$<Schema.Array$<typeof Schema.String>>;
|
|
2602
2655
|
publishablePackages: Schema.Array$<typeof Schema.String>;
|
|
2603
2656
|
}>;
|
|
2604
|
-
/**
|
|
2657
|
+
/**
|
|
2658
|
+
* @since 0.1.0
|
|
2659
|
+
* @public
|
|
2660
|
+
*/
|
|
2605
2661
|
type VersioningStrategyResult = typeof VersioningStrategyResult.Type;
|
|
2606
2662
|
//#endregion
|
|
2607
2663
|
//#region src/services/ChangesetConfigReader.d.ts
|
|
@@ -2621,8 +2677,8 @@ declare const ChangesetConfigReader_base: Context.TagClass<ChangesetConfigReader
|
|
|
2621
2677
|
*
|
|
2622
2678
|
* @remarks
|
|
2623
2679
|
* Automatically detects whether the config uses the Silk changelog adapter
|
|
2624
|
-
* (`@savvy-web/changesets`) and decodes as {@link SilkChangesetConfigFile} or the
|
|
2625
|
-
* standard {@link ChangesetConfigFile} accordingly.
|
|
2680
|
+
* (`@savvy-web/changesets`) and decodes as {@link (SilkChangesetConfigFile:type)} or the
|
|
2681
|
+
* standard {@link (ChangesetConfigFile:type)} accordingly.
|
|
2626
2682
|
*
|
|
2627
2683
|
* @example
|
|
2628
2684
|
* ```typescript
|
|
@@ -2638,6 +2694,7 @@ declare const ChangesetConfigReader_base: Context.TagClass<ChangesetConfigReader
|
|
|
2638
2694
|
* ```
|
|
2639
2695
|
*
|
|
2640
2696
|
* @since 0.1.0
|
|
2697
|
+
* @public
|
|
2641
2698
|
*/
|
|
2642
2699
|
declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
|
|
2643
2700
|
/**
|
|
@@ -2648,6 +2705,7 @@ declare class ChangesetConfigReader extends ChangesetConfigReader_base {}
|
|
|
2648
2705
|
* `BunContext.layer` to satisfy this dependency.
|
|
2649
2706
|
*
|
|
2650
2707
|
* @since 0.1.0
|
|
2708
|
+
* @public
|
|
2651
2709
|
*/
|
|
2652
2710
|
declare const ChangesetConfigReaderLive: Layer.Layer<ChangesetConfigReader, never, FileSystem.FileSystem>;
|
|
2653
2711
|
//#endregion
|
|
@@ -2781,7 +2839,7 @@ declare class ConfigInspector extends ConfigInspectorBase {}
|
|
|
2781
2839
|
/**
|
|
2782
2840
|
* Live layer for {@link ConfigInspector}.
|
|
2783
2841
|
*
|
|
2784
|
-
* Requires {@link ChangesetConfigReader} and
|
|
2842
|
+
* Requires {@link ChangesetConfigReader} and `WorkspaceDiscovery`
|
|
2785
2843
|
* in the environment.
|
|
2786
2844
|
*
|
|
2787
2845
|
* @public
|
|
@@ -3422,6 +3480,120 @@ declare const ChangelogServiceBase: Context.TagClass<ChangelogService, "Changelo
|
|
|
3422
3480
|
*/
|
|
3423
3481
|
declare class ChangelogService extends ChangelogServiceBase {}
|
|
3424
3482
|
//#endregion
|
|
3483
|
+
//#region src/changesets/schemas/release-plan.d.ts
|
|
3484
|
+
/** A semantic-version bump level (the `"none"` plan type is filtered out upstream). @public */
|
|
3485
|
+
declare const BumpTypeSchema: Schema.Literal<["major", "minor", "patch"]>;
|
|
3486
|
+
/** A semantic-version bump level. @public */
|
|
3487
|
+
type BumpType = Schema.Schema.Type<typeof BumpTypeSchema>;
|
|
3488
|
+
/** One package's previewed release: version transition + rendered changelog block. @public */
|
|
3489
|
+
declare const PreviewReleaseSchema: Schema.Struct<{
|
|
3490
|
+
name: typeof Schema.String;
|
|
3491
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3492
|
+
oldVersion: typeof Schema.String;
|
|
3493
|
+
newVersion: typeof Schema.String;
|
|
3494
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
3495
|
+
changelogEntry: typeof Schema.String;
|
|
3496
|
+
}>;
|
|
3497
|
+
/** One package's previewed release. @public */
|
|
3498
|
+
type PreviewRelease = Schema.Schema.Type<typeof PreviewReleaseSchema>;
|
|
3499
|
+
/** A parsed pending changeset (id + summary + the packages it bumps). @public */
|
|
3500
|
+
declare const PendingChangesetSchema: Schema.Struct<{
|
|
3501
|
+
id: typeof Schema.String;
|
|
3502
|
+
summary: typeof Schema.String;
|
|
3503
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
3504
|
+
name: typeof Schema.String;
|
|
3505
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3506
|
+
}>>;
|
|
3507
|
+
}>;
|
|
3508
|
+
/** A parsed pending changeset. @public */
|
|
3509
|
+
type PendingChangeset = Schema.Schema.Type<typeof PendingChangesetSchema>;
|
|
3510
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
3511
|
+
declare const ChangesetPreviewSchema: Schema.Struct<{
|
|
3512
|
+
preMode: Schema.NullOr<Schema.Literal<["exit", "pre"]>>;
|
|
3513
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
3514
|
+
name: typeof Schema.String;
|
|
3515
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3516
|
+
oldVersion: typeof Schema.String;
|
|
3517
|
+
newVersion: typeof Schema.String;
|
|
3518
|
+
changesetIds: Schema.Array$<typeof Schema.String>;
|
|
3519
|
+
changelogEntry: typeof Schema.String;
|
|
3520
|
+
}>>;
|
|
3521
|
+
changesets: Schema.Array$<Schema.Struct<{
|
|
3522
|
+
id: typeof Schema.String;
|
|
3523
|
+
summary: typeof Schema.String;
|
|
3524
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
3525
|
+
name: typeof Schema.String;
|
|
3526
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3527
|
+
}>>;
|
|
3528
|
+
}>>;
|
|
3529
|
+
}>;
|
|
3530
|
+
/** Read-only preview of what the next release would produce. @public */
|
|
3531
|
+
type ChangesetPreview = Schema.Schema.Type<typeof ChangesetPreviewSchema>;
|
|
3532
|
+
/** One applied package release (version transition). @public */
|
|
3533
|
+
declare const AppliedReleaseEntrySchema: Schema.Struct<{
|
|
3534
|
+
name: typeof Schema.String;
|
|
3535
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3536
|
+
oldVersion: typeof Schema.String;
|
|
3537
|
+
newVersion: typeof Schema.String;
|
|
3538
|
+
}>;
|
|
3539
|
+
/** A single versionFiles update applied (or planned, when dry). @public */
|
|
3540
|
+
declare const VersionFileUpdateRecordSchema: Schema.Struct<{
|
|
3541
|
+
filePath: typeof Schema.String;
|
|
3542
|
+
version: typeof Schema.String;
|
|
3543
|
+
}>;
|
|
3544
|
+
/** Result of {@link ReleasePlanner.apply}. @public */
|
|
3545
|
+
declare const AppliedReleaseSchema: Schema.Struct<{
|
|
3546
|
+
dryRun: typeof Schema.Boolean;
|
|
3547
|
+
touchedFiles: Schema.Array$<typeof Schema.String>;
|
|
3548
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
3549
|
+
name: typeof Schema.String;
|
|
3550
|
+
type: Schema.Literal<["major", "minor", "patch"]>;
|
|
3551
|
+
oldVersion: typeof Schema.String;
|
|
3552
|
+
newVersion: typeof Schema.String;
|
|
3553
|
+
}>>;
|
|
3554
|
+
versionFileUpdates: Schema.Array$<Schema.Struct<{
|
|
3555
|
+
filePath: typeof Schema.String;
|
|
3556
|
+
version: typeof Schema.String;
|
|
3557
|
+
}>>;
|
|
3558
|
+
}>;
|
|
3559
|
+
/** Result of a native apply. @public */
|
|
3560
|
+
type AppliedRelease = Schema.Schema.Type<typeof AppliedReleaseSchema>;
|
|
3561
|
+
//#endregion
|
|
3562
|
+
//#region src/changesets/services/release-planner.d.ts
|
|
3563
|
+
/** The `ReleasePlanner` service surface. @public */
|
|
3564
|
+
interface ReleasePlannerShape {
|
|
3565
|
+
/** Compute the in-memory release plan (read-only). */
|
|
3566
|
+
readonly plan: (root: string) => Effect.Effect<ReleasePlan, ReleasePlanError>;
|
|
3567
|
+
/** Render a non-destructive preview of the next release. */
|
|
3568
|
+
readonly preview: (root: string) => Effect.Effect<ChangesetPreview, ReleasePlanError>;
|
|
3569
|
+
/** Natively apply the release (destructive unless `dryRun`). */
|
|
3570
|
+
readonly apply: (root: string, options?: {
|
|
3571
|
+
readonly dryRun?: boolean;
|
|
3572
|
+
}) => Effect.Effect<AppliedRelease, ReleasePlanError>;
|
|
3573
|
+
}
|
|
3574
|
+
/**
|
|
3575
|
+
* Base class for {@link ReleasePlanner}.
|
|
3576
|
+
*
|
|
3577
|
+
* @privateRemarks Required export for api-extractor (anonymous Context.Tag base). Do not delete.
|
|
3578
|
+
* @internal
|
|
3579
|
+
*/
|
|
3580
|
+
declare const ReleasePlannerBase: Context.TagClass<ReleasePlanner, "ReleasePlanner", ReleasePlannerShape>;
|
|
3581
|
+
/** Effect service tag for the release planner. @public */
|
|
3582
|
+
declare class ReleasePlanner extends ReleasePlannerBase {}
|
|
3583
|
+
/** Production layer. Requires {@link ConfigInspector} (used by `apply`). @public */
|
|
3584
|
+
declare const ReleasePlannerLive: Layer.Layer<ReleasePlanner, never, ConfigInspector>;
|
|
3585
|
+
/**
|
|
3586
|
+
* Test factory — supply fixed results for any subset of methods. Unsupplied
|
|
3587
|
+
* methods fail with a `ReleasePlanError`.
|
|
3588
|
+
*
|
|
3589
|
+
* @public
|
|
3590
|
+
*/
|
|
3591
|
+
declare function makeReleasePlannerTest(fixed: {
|
|
3592
|
+
readonly plan?: ReleasePlan;
|
|
3593
|
+
readonly preview?: ChangesetPreview;
|
|
3594
|
+
readonly apply?: AppliedRelease;
|
|
3595
|
+
}): Layer.Layer<ReleasePlanner>;
|
|
3596
|
+
//#endregion
|
|
3425
3597
|
//#region src/changesets/services/workspace-snapshot.d.ts
|
|
3426
3598
|
/**
|
|
3427
3599
|
* One workspace package as it existed at a specific git ref.
|
|
@@ -4179,7 +4351,7 @@ declare function serializeDependencyTableToMarkdown(rows: DependencyTableRow[]):
|
|
|
4179
4351
|
* Compute the set of currently-publishable workspace package names.
|
|
4180
4352
|
*
|
|
4181
4353
|
* @remarks
|
|
4182
|
-
* Uses the currently-active {@link
|
|
4354
|
+
* Uses the currently-active {@link SilkPublishability} — wire the
|
|
4183
4355
|
* {@link SilkPublishabilityDetectorLive} layer to get silk semantics.
|
|
4184
4356
|
*
|
|
4185
4357
|
* @param packages - The workspace packages to evaluate
|
|
@@ -5090,7 +5262,7 @@ declare const RequiredSectionsRule: import("unified-lint-rule").Plugin<Root, unk
|
|
|
5090
5262
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
5091
5263
|
declare const UncategorizedContentRule: import("unified-lint-rule").Plugin<Root, unknown>;
|
|
5092
5264
|
declare namespace index_d_exports {
|
|
5093
|
-
export { AggregateDependencyTablesPlugin, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PositiveInteger, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
5265
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerBase, BranchAnalyzerLive, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceBase, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ChangesetValidationErrorBase, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorBase, ConfigInspectorLive, ConfigInspectorShape, ConfigurationError, ConfigurationErrorBase, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, FileStatus, FileStatusSchema, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubLive, GitHubService, GitHubServiceBase, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MarkdownLive, MarkdownParseError, MarkdownParseErrorBase, MarkdownService, MarkdownServiceBase, MarkdownServiceShape, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PendingChangeset, PendingChangesetSchema, PositiveInteger, PreviewRelease, PreviewReleaseSchema, ReleasePlanError, ReleasePlanErrorBase, ReleasePlanner, ReleasePlannerBase, ReleasePlannerLive, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileErrorBase, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceSnapshot, WorkspaceSnapshotReader, WorkspaceSnapshotReaderBase, WorkspaceSnapshotReaderLive, WorkspaceSnapshotReaderShape, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, gitMergeBase, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeGitHubTest, makeReleasePlannerTest, serializeDependencyTableToMarkdown, snapshotFromWorktree };
|
|
5094
5266
|
}
|
|
5095
5267
|
//#endregion
|
|
5096
5268
|
//#region src/commitlint/config/schema.d.ts
|
|
@@ -5219,7 +5391,7 @@ interface ConfigOptions {
|
|
|
5219
5391
|
*
|
|
5220
5392
|
* @public
|
|
5221
5393
|
*/
|
|
5222
|
-
type RuleSeverity
|
|
5394
|
+
type RuleSeverity = 0 | 1 | 2;
|
|
5223
5395
|
/**
|
|
5224
5396
|
* Rule applicability.
|
|
5225
5397
|
*
|
|
@@ -5231,7 +5403,7 @@ type RuleApplicability = "always" | "never";
|
|
|
5231
5403
|
*
|
|
5232
5404
|
* @public
|
|
5233
5405
|
*/
|
|
5234
|
-
type RuleConfigTuple<T = unknown> = readonly [RuleSeverity
|
|
5406
|
+
type RuleConfigTuple<T = unknown> = readonly [RuleSeverity] | readonly [RuleSeverity, RuleApplicability] | readonly [RuleSeverity, RuleApplicability, T];
|
|
5235
5407
|
/**
|
|
5236
5408
|
* Commitlint rules configuration.
|
|
5237
5409
|
*
|
|
@@ -5913,15 +6085,15 @@ declare function buildSigningDiagnostic(raw: RawSigningInputs): SigningDiagnosti
|
|
|
5913
6085
|
declare function readSigningDiagnostic(): Effect.Effect<SigningDiagnostic>;
|
|
5914
6086
|
//#endregion
|
|
5915
6087
|
//#region src/commitlint/hook/rules/types.d.ts
|
|
5916
|
-
type RuleSeverity = "deny" | "advise";
|
|
6088
|
+
type RuleSeverity$1 = "deny" | "advise";
|
|
5917
6089
|
interface RuleHit {
|
|
5918
6090
|
ruleId: string;
|
|
5919
|
-
severity: RuleSeverity;
|
|
6091
|
+
severity: RuleSeverity$1;
|
|
5920
6092
|
message: string;
|
|
5921
6093
|
}
|
|
5922
6094
|
interface Rule<Input, Ctx, E = never, R = never> {
|
|
5923
6095
|
id: string;
|
|
5924
|
-
severity: RuleSeverity;
|
|
6096
|
+
severity: RuleSeverity$1;
|
|
5925
6097
|
check: (input: Input, ctx: Ctx) => Effect.Effect<RuleHit | null, E, R>;
|
|
5926
6098
|
}
|
|
5927
6099
|
declare function partitionHits(hits: ReadonlyArray<RuleHit>): {
|
|
@@ -5975,7 +6147,7 @@ declare const VERBOSITY_LINE_THRESHOLD = 25;
|
|
|
5975
6147
|
declare const VERBOSITY_WORD_THRESHOLD = 400;
|
|
5976
6148
|
declare const verbosityRule: Rule<VerbosityInput, never>;
|
|
5977
6149
|
declare namespace index_d_exports$1 {
|
|
5978
|
-
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 };
|
|
5979
6151
|
}
|
|
5980
6152
|
/**
|
|
5981
6153
|
* Dynamic commitlint configuration factory.
|
|
@@ -6015,11 +6187,12 @@ declare const BiomeSyncError_base: new <A extends Record<string, any> = {}>(args
|
|
|
6015
6187
|
* Raised when a Biome config file cannot be read or its `$schema` URL cannot be updated.
|
|
6016
6188
|
*
|
|
6017
6189
|
* @remarks
|
|
6018
|
-
* Returned by
|
|
6190
|
+
* Returned by `BiomeSchemaSync.sync` and `BiomeSchemaSync.check` when
|
|
6019
6191
|
* a `biome.json` or `biome.jsonc` file exists but cannot be read, contains invalid JSON,
|
|
6020
6192
|
* or cannot be written back to disk.
|
|
6021
6193
|
*
|
|
6022
6194
|
* @since 0.1.0
|
|
6195
|
+
* @public
|
|
6023
6196
|
*/
|
|
6024
6197
|
declare class BiomeSyncError extends BiomeSyncError_base<{
|
|
6025
6198
|
readonly path: string;
|
|
@@ -6036,11 +6209,12 @@ declare const ConfigNotFoundError_base: new <A extends Record<string, any> = {}>
|
|
|
6036
6209
|
* Raised when a config file cannot be located in any of the expected locations.
|
|
6037
6210
|
*
|
|
6038
6211
|
* @remarks
|
|
6039
|
-
* Returned by consumers that require a config file to exist.
|
|
6212
|
+
* Returned by consumers that require a config file to exist. `ConfigDiscovery.find`
|
|
6040
6213
|
* itself returns `null` instead of failing — callers that need a hard failure should
|
|
6041
6214
|
* map `null` to this error.
|
|
6042
6215
|
*
|
|
6043
6216
|
* @since 0.1.0
|
|
6217
|
+
* @public
|
|
6044
6218
|
*/
|
|
6045
6219
|
declare class ConfigNotFoundError extends ConfigNotFoundError_base<{
|
|
6046
6220
|
readonly name: string;
|
|
@@ -6057,6 +6231,7 @@ declare const SectionParseError_base: new <A extends Record<string, any> = {}>(a
|
|
|
6057
6231
|
* Raised when a managed section cannot be parsed from a file.
|
|
6058
6232
|
*
|
|
6059
6233
|
* @since 0.2.0
|
|
6234
|
+
* @public
|
|
6060
6235
|
*/
|
|
6061
6236
|
declare class SectionParseError extends SectionParseError_base<{
|
|
6062
6237
|
readonly path: string;
|
|
@@ -6073,6 +6248,7 @@ declare const SectionValidationError_base: new <A extends Record<string, any> =
|
|
|
6073
6248
|
* Raised when a {@link SectionBlock} fails validation at creation time.
|
|
6074
6249
|
*
|
|
6075
6250
|
* @since 0.2.0
|
|
6251
|
+
* @public
|
|
6076
6252
|
*/
|
|
6077
6253
|
declare class SectionValidationError extends SectionValidationError_base<{
|
|
6078
6254
|
readonly toolName: string;
|
|
@@ -6089,6 +6265,7 @@ declare const SectionWriteError_base: new <A extends Record<string, any> = {}>(a
|
|
|
6089
6265
|
* Raised when a managed section cannot be written to a file.
|
|
6090
6266
|
*
|
|
6091
6267
|
* @since 0.2.0
|
|
6268
|
+
* @public
|
|
6092
6269
|
*/
|
|
6093
6270
|
declare class SectionWriteError extends SectionWriteError_base<{
|
|
6094
6271
|
readonly path: string;
|
|
@@ -6105,10 +6282,11 @@ declare const TagFormatError_base: new <A extends Record<string, any> = {}>(args
|
|
|
6105
6282
|
* Raised when a git tag string cannot be formatted for the given package name and version.
|
|
6106
6283
|
*
|
|
6107
6284
|
* @remarks
|
|
6108
|
-
* Returned by
|
|
6285
|
+
* Returned by `TagStrategy.formatTag` when the `version` argument is an empty string
|
|
6109
6286
|
* or another invariant prevents tag construction.
|
|
6110
6287
|
*
|
|
6111
6288
|
* @since 0.1.0
|
|
6289
|
+
* @public
|
|
6112
6290
|
*/
|
|
6113
6291
|
declare class TagFormatError extends TagFormatError_base<{
|
|
6114
6292
|
readonly name: string;
|
|
@@ -6122,6 +6300,7 @@ declare class TagFormatError extends TagFormatError_base<{
|
|
|
6122
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 & {
|
|
6123
6301
|
readonly _tag: "ToolNotFoundError";
|
|
6124
6302
|
} & Readonly<A>;
|
|
6303
|
+
/** @public */
|
|
6125
6304
|
declare class ToolNotFoundError extends ToolNotFoundError_base<{
|
|
6126
6305
|
readonly name: string;
|
|
6127
6306
|
readonly reason: string;
|
|
@@ -6133,6 +6312,7 @@ declare class ToolNotFoundError extends ToolNotFoundError_base<{
|
|
|
6133
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 & {
|
|
6134
6313
|
readonly _tag: "ToolResolutionError";
|
|
6135
6314
|
} & Readonly<A>;
|
|
6315
|
+
/** @public */
|
|
6136
6316
|
declare class ToolResolutionError extends ToolResolutionError_base<{
|
|
6137
6317
|
readonly name: string;
|
|
6138
6318
|
readonly reason: string;
|
|
@@ -6144,6 +6324,7 @@ declare class ToolResolutionError extends ToolResolutionError_base<{
|
|
|
6144
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 & {
|
|
6145
6325
|
readonly _tag: "ToolVersionMismatchError";
|
|
6146
6326
|
} & Readonly<A>;
|
|
6327
|
+
/** @public */
|
|
6147
6328
|
declare class ToolVersionMismatchError extends ToolVersionMismatchError_base<{
|
|
6148
6329
|
readonly name: string;
|
|
6149
6330
|
readonly globalVersion: string;
|
|
@@ -6160,10 +6341,11 @@ declare const VersioningDetectionError_base: new <A extends Record<string, any>
|
|
|
6160
6341
|
* Raised when the versioning strategy cannot be determined from the workspace state.
|
|
6161
6342
|
*
|
|
6162
6343
|
* @remarks
|
|
6163
|
-
* Returned by
|
|
6344
|
+
* Returned by `VersioningStrategy.detect` when an unexpected condition
|
|
6164
6345
|
* prevents strategy classification.
|
|
6165
6346
|
*
|
|
6166
6347
|
* @since 0.1.0
|
|
6348
|
+
* @public
|
|
6167
6349
|
*/
|
|
6168
6350
|
declare class VersioningDetectionError extends VersioningDetectionError_base<{
|
|
6169
6351
|
readonly reason: string;
|
|
@@ -6179,11 +6361,12 @@ declare const WorkspaceAnalysisError_base: new <A extends Record<string, any> =
|
|
|
6179
6361
|
* Raised when workspace analysis fails for a given root directory.
|
|
6180
6362
|
*
|
|
6181
6363
|
* @remarks
|
|
6182
|
-
* Returned by
|
|
6364
|
+
* Returned by `SilkWorkspaceAnalyzer.analyze` when the analysis pipeline
|
|
6183
6365
|
* encounters an unrecoverable error — e.g. workspace discovery failure,
|
|
6184
6366
|
* package manager detection failure, or publishability detection errors.
|
|
6185
6367
|
*
|
|
6186
6368
|
* @since 0.2.0
|
|
6369
|
+
* @public
|
|
6187
6370
|
*/
|
|
6188
6371
|
declare class WorkspaceAnalysisError extends WorkspaceAnalysisError_base<{
|
|
6189
6372
|
readonly root: string;
|
|
@@ -7501,6 +7684,7 @@ declare function resetWorkspaceCache(): void;
|
|
|
7501
7684
|
* Result of comparing two section contents.
|
|
7502
7685
|
*
|
|
7503
7686
|
* @since 0.2.0
|
|
7687
|
+
* @public
|
|
7504
7688
|
*/
|
|
7505
7689
|
type SectionDiffDefinition = {
|
|
7506
7690
|
readonly Unchanged: {};
|
|
@@ -7509,9 +7693,15 @@ type SectionDiffDefinition = {
|
|
|
7509
7693
|
readonly removed: ReadonlyArray<string>;
|
|
7510
7694
|
};
|
|
7511
7695
|
};
|
|
7512
|
-
/**
|
|
7696
|
+
/**
|
|
7697
|
+
* @since 0.2.0
|
|
7698
|
+
* @public
|
|
7699
|
+
*/
|
|
7513
7700
|
type SectionDiff = Data.TaggedEnum<SectionDiffDefinition>;
|
|
7514
|
-
/**
|
|
7701
|
+
/**
|
|
7702
|
+
* @since 0.2.0
|
|
7703
|
+
* @public
|
|
7704
|
+
*/
|
|
7515
7705
|
declare const SectionDiff: {
|
|
7516
7706
|
readonly Unchanged: Data.Case.Constructor<{
|
|
7517
7707
|
readonly _tag: "Unchanged";
|
|
@@ -7571,6 +7761,7 @@ declare const SectionDiff: {
|
|
|
7571
7761
|
* Result of a sync operation.
|
|
7572
7762
|
*
|
|
7573
7763
|
* @since 0.2.0
|
|
7764
|
+
* @public
|
|
7574
7765
|
*/
|
|
7575
7766
|
type SyncResultDefinition = {
|
|
7576
7767
|
readonly Created: {};
|
|
@@ -7579,9 +7770,15 @@ type SyncResultDefinition = {
|
|
|
7579
7770
|
};
|
|
7580
7771
|
readonly Unchanged: {};
|
|
7581
7772
|
};
|
|
7582
|
-
/**
|
|
7773
|
+
/**
|
|
7774
|
+
* @since 0.2.0
|
|
7775
|
+
* @public
|
|
7776
|
+
*/
|
|
7583
7777
|
type SyncResult = Data.TaggedEnum<SyncResultDefinition>;
|
|
7584
|
-
/**
|
|
7778
|
+
/**
|
|
7779
|
+
* @since 0.2.0
|
|
7780
|
+
* @public
|
|
7781
|
+
*/
|
|
7585
7782
|
declare const SyncResult: {
|
|
7586
7783
|
readonly Unchanged: Data.Case.Constructor<{
|
|
7587
7784
|
readonly _tag: "Unchanged";
|
|
@@ -7652,6 +7849,7 @@ declare const SyncResult: {
|
|
|
7652
7849
|
* Result of a check operation.
|
|
7653
7850
|
*
|
|
7654
7851
|
* @since 0.2.0
|
|
7852
|
+
* @public
|
|
7655
7853
|
*/
|
|
7656
7854
|
type CheckResultDefinition = {
|
|
7657
7855
|
readonly Found: {
|
|
@@ -7660,9 +7858,15 @@ type CheckResultDefinition = {
|
|
|
7660
7858
|
};
|
|
7661
7859
|
readonly NotFound: {};
|
|
7662
7860
|
};
|
|
7663
|
-
/**
|
|
7861
|
+
/**
|
|
7862
|
+
* @since 0.2.0
|
|
7863
|
+
* @public
|
|
7864
|
+
*/
|
|
7664
7865
|
type CheckResult = Data.TaggedEnum<CheckResultDefinition>;
|
|
7665
|
-
/**
|
|
7866
|
+
/**
|
|
7867
|
+
* @since 0.2.0
|
|
7868
|
+
* @public
|
|
7869
|
+
*/
|
|
7666
7870
|
declare const CheckResult: {
|
|
7667
7871
|
readonly Found: Data.Case.Constructor<{
|
|
7668
7872
|
readonly _tag: "Found";
|
|
@@ -7730,10 +7934,11 @@ declare const SectionBlock_base: Schema.TaggedClass<SectionBlock, "SectionBlock"
|
|
|
7730
7934
|
/**
|
|
7731
7935
|
* The content between managed section markers.
|
|
7732
7936
|
*
|
|
7733
|
-
*
|
|
7734
|
-
* Use
|
|
7937
|
+
* `Equal` compares normalized content only (trimmed, whitespace-collapsed).
|
|
7938
|
+
* Use `diff` to compute line-level differences.
|
|
7735
7939
|
*
|
|
7736
7940
|
* @since 0.2.0
|
|
7941
|
+
* @public
|
|
7737
7942
|
*/
|
|
7738
7943
|
declare class SectionBlock extends SectionBlock_base {
|
|
7739
7944
|
static diff: {
|
|
@@ -7767,9 +7972,13 @@ declare class SectionBlock extends SectionBlock_base {
|
|
|
7767
7972
|
* - `"//"` — C-style, suitable for JavaScript/TypeScript files.
|
|
7768
7973
|
*
|
|
7769
7974
|
* @since 0.1.0
|
|
7975
|
+
* @public
|
|
7770
7976
|
*/
|
|
7771
7977
|
declare const CommentStyle: Schema.Literal<["#", "//"]>;
|
|
7772
|
-
/**
|
|
7978
|
+
/**
|
|
7979
|
+
* @since 0.1.0
|
|
7980
|
+
* @public
|
|
7981
|
+
*/
|
|
7773
7982
|
type CommentStyle = typeof CommentStyle.Type;
|
|
7774
7983
|
//#endregion
|
|
7775
7984
|
//#region src/schemas/SectionDefinition.d.ts
|
|
@@ -7784,11 +7993,12 @@ declare const SectionDefinition_base: Schema.TaggedClass<SectionDefinition, "Sec
|
|
|
7784
7993
|
/**
|
|
7785
7994
|
* Identity envelope for a managed section type.
|
|
7786
7995
|
*
|
|
7787
|
-
*
|
|
7996
|
+
* `Equal` compares on `toolName` + `commentStyle`.
|
|
7788
7997
|
* Use {@link SectionDefinition.block | block()} to create a {@link SectionBlock},
|
|
7789
|
-
* or
|
|
7998
|
+
* or `generate()` for a typed factory.
|
|
7790
7999
|
*
|
|
7791
8000
|
* @since 0.2.0
|
|
8001
|
+
* @public
|
|
7792
8002
|
*/
|
|
7793
8003
|
declare class SectionDefinition extends SectionDefinition_base {
|
|
7794
8004
|
private _validate?;
|
|
@@ -7828,6 +8038,7 @@ declare const ShellSectionDefinition_base: Schema.TaggedClass<ShellSectionDefini
|
|
|
7828
8038
|
* `commentStyle` is always `"#"` — only `toolName` is required.
|
|
7829
8039
|
*
|
|
7830
8040
|
* @since 0.2.0
|
|
8041
|
+
* @public
|
|
7831
8042
|
*/
|
|
7832
8043
|
declare class ShellSectionDefinition extends ShellSectionDefinition_base {
|
|
7833
8044
|
get commentStyle(): CommentStyle;
|
|
@@ -8072,13 +8283,17 @@ declare namespace index_d_exports$2 {
|
|
|
8072
8283
|
* - `current` — paths of config files already pointing to the expected schema URL.
|
|
8073
8284
|
*
|
|
8074
8285
|
* @since 0.1.0
|
|
8286
|
+
* @public
|
|
8075
8287
|
*/
|
|
8076
8288
|
declare const BiomeSyncResult: Schema.Struct<{
|
|
8077
8289
|
updated: Schema.Array$<typeof Schema.String>;
|
|
8078
8290
|
skipped: Schema.Array$<typeof Schema.String>;
|
|
8079
8291
|
current: Schema.Array$<typeof Schema.String>;
|
|
8080
8292
|
}>;
|
|
8081
|
-
/**
|
|
8293
|
+
/**
|
|
8294
|
+
* @since 0.1.0
|
|
8295
|
+
* @public
|
|
8296
|
+
*/
|
|
8082
8297
|
type BiomeSyncResult = typeof BiomeSyncResult.Type;
|
|
8083
8298
|
/**
|
|
8084
8299
|
* Options for {@link BiomeSchemaSync} operations.
|
|
@@ -8088,6 +8303,7 @@ type BiomeSyncResult = typeof BiomeSyncResult.Type;
|
|
|
8088
8303
|
* `gitignore` is reserved for future use to skip gitignored config files (defaults to `true`).
|
|
8089
8304
|
*
|
|
8090
8305
|
* @since 0.1.0
|
|
8306
|
+
* @public
|
|
8091
8307
|
*/
|
|
8092
8308
|
declare const BiomeSyncOptions: Schema.Struct<{
|
|
8093
8309
|
cwd: Schema.optional<typeof Schema.String>;
|
|
@@ -8095,7 +8311,10 @@ declare const BiomeSyncOptions: Schema.Struct<{
|
|
|
8095
8311
|
default: () => true;
|
|
8096
8312
|
}>;
|
|
8097
8313
|
}>;
|
|
8098
|
-
/**
|
|
8314
|
+
/**
|
|
8315
|
+
* @since 0.1.0
|
|
8316
|
+
* @public
|
|
8317
|
+
*/
|
|
8099
8318
|
type BiomeSyncOptions = typeof BiomeSyncOptions.Type;
|
|
8100
8319
|
//#endregion
|
|
8101
8320
|
//#region src/schemas/ConfigDiscoverySchemas.d.ts
|
|
@@ -8108,24 +8327,32 @@ type BiomeSyncOptions = typeof BiomeSyncOptions.Type;
|
|
|
8108
8327
|
* - `"cosmiconfig"` — reserved for future cosmiconfig-based discovery.
|
|
8109
8328
|
*
|
|
8110
8329
|
* @since 0.1.0
|
|
8330
|
+
* @public
|
|
8111
8331
|
*/
|
|
8112
8332
|
declare const ConfigSource: Schema.Literal<["lib", "root", "cosmiconfig"]>;
|
|
8113
|
-
/**
|
|
8333
|
+
/**
|
|
8334
|
+
* @since 0.1.0
|
|
8335
|
+
* @public
|
|
8336
|
+
*/
|
|
8114
8337
|
type ConfigSource = typeof ConfigSource.Type;
|
|
8115
8338
|
/**
|
|
8116
8339
|
* The resolved location of a discovered config file.
|
|
8117
8340
|
*
|
|
8118
8341
|
* @remarks
|
|
8119
|
-
* Produced by
|
|
8342
|
+
* Produced by `ConfigDiscovery.find` and `ConfigDiscovery.findAll`.
|
|
8120
8343
|
* `path` is the absolute file path; `source` indicates how it was discovered.
|
|
8121
8344
|
*
|
|
8122
8345
|
* @since 0.1.0
|
|
8346
|
+
* @public
|
|
8123
8347
|
*/
|
|
8124
8348
|
declare const ConfigLocation: Schema.Struct<{
|
|
8125
8349
|
path: typeof Schema.String;
|
|
8126
8350
|
source: Schema.Literal<["lib", "root", "cosmiconfig"]>;
|
|
8127
8351
|
}>;
|
|
8128
|
-
/**
|
|
8352
|
+
/**
|
|
8353
|
+
* @since 0.1.0
|
|
8354
|
+
* @public
|
|
8355
|
+
*/
|
|
8129
8356
|
type ConfigLocation = typeof ConfigLocation.Type;
|
|
8130
8357
|
/**
|
|
8131
8358
|
* Options passed to config discovery methods.
|
|
@@ -8135,21 +8362,26 @@ type ConfigLocation = typeof ConfigLocation.Type;
|
|
|
8135
8362
|
* `tool` is reserved for future use as a tool-specific discovery hint.
|
|
8136
8363
|
*
|
|
8137
8364
|
* @since 0.1.0
|
|
8365
|
+
* @public
|
|
8138
8366
|
*/
|
|
8139
8367
|
declare const ConfigDiscoveryOptions: Schema.Struct<{
|
|
8140
8368
|
cwd: Schema.optional<typeof Schema.String>;
|
|
8141
8369
|
tool: Schema.optional<typeof Schema.String>;
|
|
8142
8370
|
}>;
|
|
8143
|
-
/**
|
|
8371
|
+
/**
|
|
8372
|
+
* @since 0.1.0
|
|
8373
|
+
* @public
|
|
8374
|
+
*/
|
|
8144
8375
|
type ConfigDiscoveryOptions = typeof ConfigDiscoveryOptions.Type;
|
|
8145
8376
|
//#endregion
|
|
8146
8377
|
//#region src/utils/ToolCommand.d.ts
|
|
8147
8378
|
/**
|
|
8148
|
-
* Wraps `@effect/platform`
|
|
8379
|
+
* Wraps `@effect/platform` `Command.Command` with instance method ergonomics.
|
|
8149
8380
|
*
|
|
8150
8381
|
* Use `yield* cmd.string()` instead of `yield* Command.string(cmd)`.
|
|
8151
8382
|
*
|
|
8152
8383
|
* @since 0.2.0
|
|
8384
|
+
* @public
|
|
8153
8385
|
*/
|
|
8154
8386
|
declare class ToolCommand {
|
|
8155
8387
|
readonly command: Command.Command;
|
|
@@ -8178,9 +8410,10 @@ declare const ResolvedTool_base: Schema.TaggedClass<ResolvedTool, "ResolvedTool"
|
|
|
8178
8410
|
/**
|
|
8179
8411
|
* Result of resolving a {@link ToolDefinition}.
|
|
8180
8412
|
*
|
|
8181
|
-
* Provides
|
|
8413
|
+
* Provides `exec` and `dlx` to build commands for the resolved tool.
|
|
8182
8414
|
*
|
|
8183
8415
|
* @since 0.2.0
|
|
8416
|
+
* @public
|
|
8184
8417
|
*/
|
|
8185
8418
|
declare class ResolvedTool extends ResolvedTool_base {
|
|
8186
8419
|
get isGlobal(): boolean;
|
|
@@ -8204,6 +8437,7 @@ declare class ResolvedTool extends ResolvedTool_base {
|
|
|
8204
8437
|
* ```
|
|
8205
8438
|
*
|
|
8206
8439
|
* @since 0.5.0
|
|
8440
|
+
* @public
|
|
8207
8441
|
*/
|
|
8208
8442
|
declare const SavvyBaseSection: ShellSectionDefinition;
|
|
8209
8443
|
/**
|
|
@@ -8212,6 +8446,7 @@ declare const SavvyBaseSection: ShellSectionDefinition;
|
|
|
8212
8446
|
* `toolName` is `"savvy-hooks"`; pair with {@link savvyHooksHygiene}.
|
|
8213
8447
|
*
|
|
8214
8448
|
* @since 0.5.0
|
|
8449
|
+
* @public
|
|
8215
8450
|
*/
|
|
8216
8451
|
declare const SavvyHooksSection: ShellSectionDefinition;
|
|
8217
8452
|
/**
|
|
@@ -8226,6 +8461,7 @@ declare const SavvyHooksSection: ShellSectionDefinition;
|
|
|
8226
8461
|
* @returns The preamble shell, with no surrounding markers or trailing newline.
|
|
8227
8462
|
*
|
|
8228
8463
|
* @since 0.5.0
|
|
8464
|
+
* @public
|
|
8229
8465
|
*/
|
|
8230
8466
|
declare function savvyBasePreamble(): string;
|
|
8231
8467
|
/**
|
|
@@ -8238,6 +8474,7 @@ declare function savvyBasePreamble(): string;
|
|
|
8238
8474
|
* @returns The hygiene shell, with no surrounding markers or trailing newline.
|
|
8239
8475
|
*
|
|
8240
8476
|
* @since 0.5.0
|
|
8477
|
+
* @public
|
|
8241
8478
|
*/
|
|
8242
8479
|
declare function savvyHooksHygiene(): string;
|
|
8243
8480
|
/**
|
|
@@ -8251,7 +8488,7 @@ declare function savvyHooksHygiene(): string;
|
|
|
8251
8488
|
*
|
|
8252
8489
|
* **Precondition:** a {@link SavvyBaseSection} block must precede this section in the same
|
|
8253
8490
|
* hook file so `in_ci` and `pm_exec` are defined. Consumers guarantee this by passing both
|
|
8254
|
-
* to
|
|
8491
|
+
* to `ManagedSection.syncMany` in order:
|
|
8255
8492
|
*
|
|
8256
8493
|
* @example
|
|
8257
8494
|
* ```ts
|
|
@@ -8266,6 +8503,7 @@ declare function savvyHooksHygiene(): string;
|
|
|
8266
8503
|
* @returns A shell {@link SectionBlock} (`commentStyle: "#"`) for `toolName`.
|
|
8267
8504
|
*
|
|
8268
8505
|
* @since 0.5.0
|
|
8506
|
+
* @public
|
|
8269
8507
|
*/
|
|
8270
8508
|
declare function savvyToolSection(toolName: string, command: string): SectionBlock;
|
|
8271
8509
|
//#endregion
|
|
@@ -8277,20 +8515,37 @@ declare function savvyToolSection(toolName: string, command: string): SectionBlo
|
|
|
8277
8515
|
* - `"single"` — one shared tag for the entire release (e.g. `1.2.3`).
|
|
8278
8516
|
* - `"scoped"` — a per-package tag that includes the package name (e.g. `@my-org/pkg@1.2.3`).
|
|
8279
8517
|
*
|
|
8280
|
-
* Determined by
|
|
8518
|
+
* Determined by `TagStrategy.determine` based on the {@link (VersioningStrategyResult:type)}.
|
|
8281
8519
|
*
|
|
8282
8520
|
* @since 0.1.0
|
|
8521
|
+
* @public
|
|
8283
8522
|
*/
|
|
8284
8523
|
declare const TagStrategyType: Schema.Literal<["single", "scoped"]>;
|
|
8285
|
-
/**
|
|
8524
|
+
/**
|
|
8525
|
+
* @since 0.1.0
|
|
8526
|
+
* @public
|
|
8527
|
+
*/
|
|
8286
8528
|
type TagStrategyType = typeof TagStrategyType.Type;
|
|
8287
8529
|
//#endregion
|
|
8288
8530
|
//#region src/schemas/ToolResults.d.ts
|
|
8289
|
-
/**
|
|
8531
|
+
/**
|
|
8532
|
+
* Where a tool was resolved from.
|
|
8533
|
+
*
|
|
8534
|
+
* @since 0.2.0
|
|
8535
|
+
* @public
|
|
8536
|
+
*/
|
|
8290
8537
|
declare const ToolSource: Schema.Literal<["global", "local"]>;
|
|
8291
|
-
/**
|
|
8538
|
+
/**
|
|
8539
|
+
* @since 0.2.0
|
|
8540
|
+
* @public
|
|
8541
|
+
*/
|
|
8292
8542
|
type ToolSource = typeof ToolSource.Type;
|
|
8293
|
-
/**
|
|
8543
|
+
/**
|
|
8544
|
+
* How to extract a version string from a CLI tool.
|
|
8545
|
+
*
|
|
8546
|
+
* @since 0.2.0
|
|
8547
|
+
* @public
|
|
8548
|
+
*/
|
|
8294
8549
|
type VersionExtractorDefinition = {
|
|
8295
8550
|
readonly Flag: {
|
|
8296
8551
|
readonly flag: string;
|
|
@@ -8302,9 +8557,15 @@ type VersionExtractorDefinition = {
|
|
|
8302
8557
|
};
|
|
8303
8558
|
readonly None: {};
|
|
8304
8559
|
};
|
|
8305
|
-
/**
|
|
8560
|
+
/**
|
|
8561
|
+
* @since 0.2.0
|
|
8562
|
+
* @public
|
|
8563
|
+
*/
|
|
8306
8564
|
type VersionExtractor = Data.TaggedEnum<VersionExtractorDefinition>;
|
|
8307
|
-
/**
|
|
8565
|
+
/**
|
|
8566
|
+
* @since 0.2.0
|
|
8567
|
+
* @public
|
|
8568
|
+
*/
|
|
8308
8569
|
declare const VersionExtractor: {
|
|
8309
8570
|
readonly Flag: Data.Case.Constructor<{
|
|
8310
8571
|
readonly _tag: "Flag";
|
|
@@ -8389,16 +8650,27 @@ declare const VersionExtractor: {
|
|
|
8389
8650
|
}, cases: Cases & { [K in Exclude<keyof Cases, "Flag" | "Json" | "None">]: never }): import("effect/Unify").Unify<ReturnType<Cases["Flag" | "Json" | "None"]>>;
|
|
8390
8651
|
};
|
|
8391
8652
|
};
|
|
8392
|
-
/**
|
|
8653
|
+
/**
|
|
8654
|
+
* What to do when both global and local versions differ.
|
|
8655
|
+
*
|
|
8656
|
+
* @since 0.2.0
|
|
8657
|
+
* @public
|
|
8658
|
+
*/
|
|
8393
8659
|
type ResolutionPolicyDefinition = {
|
|
8394
8660
|
readonly Report: {};
|
|
8395
8661
|
readonly PreferLocal: {};
|
|
8396
8662
|
readonly PreferGlobal: {};
|
|
8397
8663
|
readonly RequireMatch: {};
|
|
8398
8664
|
};
|
|
8399
|
-
/**
|
|
8665
|
+
/**
|
|
8666
|
+
* @since 0.2.0
|
|
8667
|
+
* @public
|
|
8668
|
+
*/
|
|
8400
8669
|
type ResolutionPolicy = Data.TaggedEnum<ResolutionPolicyDefinition>;
|
|
8401
|
-
/**
|
|
8670
|
+
/**
|
|
8671
|
+
* @since 0.2.0
|
|
8672
|
+
* @public
|
|
8673
|
+
*/
|
|
8402
8674
|
declare const ResolutionPolicy: {
|
|
8403
8675
|
readonly Report: Data.Case.Constructor<{
|
|
8404
8676
|
readonly _tag: "Report";
|
|
@@ -8476,16 +8748,27 @@ declare const ResolutionPolicy: {
|
|
|
8476
8748
|
}, cases: Cases & { [K in Exclude<keyof Cases, "Report" | "PreferLocal" | "PreferGlobal" | "RequireMatch">]: never }): import("effect/Unify").Unify<ReturnType<Cases["Report" | "PreferLocal" | "PreferGlobal" | "RequireMatch"]>>;
|
|
8477
8749
|
};
|
|
8478
8750
|
};
|
|
8479
|
-
/**
|
|
8751
|
+
/**
|
|
8752
|
+
* Where the tool must be found.
|
|
8753
|
+
*
|
|
8754
|
+
* @since 0.2.0
|
|
8755
|
+
* @public
|
|
8756
|
+
*/
|
|
8480
8757
|
type SourceRequirementDefinition = {
|
|
8481
8758
|
readonly Any: {};
|
|
8482
8759
|
readonly OnlyLocal: {};
|
|
8483
8760
|
readonly OnlyGlobal: {};
|
|
8484
8761
|
readonly Both: {};
|
|
8485
8762
|
};
|
|
8486
|
-
/**
|
|
8763
|
+
/**
|
|
8764
|
+
* @since 0.2.0
|
|
8765
|
+
* @public
|
|
8766
|
+
*/
|
|
8487
8767
|
type SourceRequirement = Data.TaggedEnum<SourceRequirementDefinition>;
|
|
8488
|
-
/**
|
|
8768
|
+
/**
|
|
8769
|
+
* @since 0.2.0
|
|
8770
|
+
* @public
|
|
8771
|
+
*/
|
|
8489
8772
|
declare const SourceRequirement: {
|
|
8490
8773
|
readonly Any: Data.Case.Constructor<{
|
|
8491
8774
|
readonly _tag: "Any";
|
|
@@ -8568,9 +8851,10 @@ declare const SourceRequirement: {
|
|
|
8568
8851
|
/**
|
|
8569
8852
|
* Declares a CLI tool's identity and resolution constraints.
|
|
8570
8853
|
*
|
|
8571
|
-
*
|
|
8854
|
+
* `Equal` compares on `name` only (identity).
|
|
8572
8855
|
*
|
|
8573
8856
|
* @since 0.2.0
|
|
8857
|
+
* @public
|
|
8574
8858
|
*/
|
|
8575
8859
|
declare class ToolDefinition implements Equal.Equal {
|
|
8576
8860
|
readonly _tag: "ToolDefinition";
|
|
@@ -8651,6 +8935,7 @@ declare const SilkPublishConfig_base: Schema.Class<SilkPublishConfig, {
|
|
|
8651
8935
|
* Silk `targets` extension for multi-registry publishing.
|
|
8652
8936
|
*
|
|
8653
8937
|
* @since 0.2.0
|
|
8938
|
+
* @public
|
|
8654
8939
|
*/
|
|
8655
8940
|
declare class SilkPublishConfig extends SilkPublishConfig_base {}
|
|
8656
8941
|
declare const AnalyzedWorkspace_base: Schema.TaggedClass<AnalyzedWorkspace, "AnalyzedWorkspace", {
|
|
@@ -8676,6 +8961,7 @@ declare const AnalyzedWorkspace_base: Schema.TaggedClass<AnalyzedWorkspace, "Ana
|
|
|
8676
8961
|
* and release group membership.
|
|
8677
8962
|
*
|
|
8678
8963
|
* @since 0.2.0
|
|
8964
|
+
* @public
|
|
8679
8965
|
*/
|
|
8680
8966
|
declare class AnalyzedWorkspace extends AnalyzedWorkspace_base {
|
|
8681
8967
|
get isRoot(): boolean;
|
|
@@ -8766,6 +9052,7 @@ declare const WorkspaceAnalysis_base: Schema.TaggedClass<WorkspaceAnalysis, "Wor
|
|
|
8766
9052
|
* and project-level configuration.
|
|
8767
9053
|
*
|
|
8768
9054
|
* @since 0.2.0
|
|
9055
|
+
* @public
|
|
8769
9056
|
*/
|
|
8770
9057
|
declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
8771
9058
|
findWorkspace(name: string): Option.Option<AnalyzedWorkspace>;
|
|
@@ -8791,6 +9078,7 @@ declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
|
8791
9078
|
* @returns The bare semver string (e.g. `"1.9.3"`).
|
|
8792
9079
|
*
|
|
8793
9080
|
* @since 0.1.0
|
|
9081
|
+
* @public
|
|
8794
9082
|
*/
|
|
8795
9083
|
declare function extractSemver(version: string): string;
|
|
8796
9084
|
/**
|
|
@@ -8800,6 +9088,7 @@ declare function extractSemver(version: string): string;
|
|
|
8800
9088
|
* @returns The canonical `biomejs.dev` schema URL for that version.
|
|
8801
9089
|
*
|
|
8802
9090
|
* @since 0.1.0
|
|
9091
|
+
* @public
|
|
8803
9092
|
*/
|
|
8804
9093
|
declare function buildSchemaUrl(version: string): string;
|
|
8805
9094
|
declare const BiomeSchemaSync_base: Context.TagClass<BiomeSchemaSync, "@savvy-web/silk-effects/BiomeSchemaSync", {
|
|
@@ -8853,6 +9142,7 @@ declare const BiomeSchemaSync_base: Context.TagClass<BiomeSchemaSync, "@savvy-we
|
|
|
8853
9142
|
* ```
|
|
8854
9143
|
*
|
|
8855
9144
|
* @since 0.1.0
|
|
9145
|
+
* @public
|
|
8856
9146
|
*/
|
|
8857
9147
|
declare class BiomeSchemaSync extends BiomeSchemaSync_base {}
|
|
8858
9148
|
/**
|
|
@@ -8863,11 +9153,15 @@ declare class BiomeSchemaSync extends BiomeSchemaSync_base {}
|
|
|
8863
9153
|
* `BunContext.layer` to satisfy this dependency.
|
|
8864
9154
|
*
|
|
8865
9155
|
* @since 0.1.0
|
|
9156
|
+
* @public
|
|
8866
9157
|
*/
|
|
8867
9158
|
declare const BiomeSchemaSyncLive: Layer.Layer<BiomeSchemaSync, never, FileSystem.FileSystem>;
|
|
8868
9159
|
//#endregion
|
|
8869
9160
|
//#region src/services/ChangesetConfig.d.ts
|
|
8870
|
-
/**
|
|
9161
|
+
/**
|
|
9162
|
+
* Changeset operating mode for a workspace root.
|
|
9163
|
+
* @public
|
|
9164
|
+
*/
|
|
8871
9165
|
type ChangesetMode = "silk" | "vanilla" | "none";
|
|
8872
9166
|
declare const ChangesetConfig_base: Context.TagClass<ChangesetConfig, "@savvy-web/silk-effects/ChangesetConfig", {
|
|
8873
9167
|
readonly mode: (root: string) => Effect.Effect<ChangesetMode>;
|
|
@@ -8885,6 +9179,7 @@ declare const ChangesetConfig_base: Context.TagClass<ChangesetConfig, "@savvy-we
|
|
|
8885
9179
|
* to `mode: "none"` and empty/false defaults.
|
|
8886
9180
|
*
|
|
8887
9181
|
* @since 0.4.0
|
|
9182
|
+
* @public
|
|
8888
9183
|
*/
|
|
8889
9184
|
declare class ChangesetConfig extends ChangesetConfig_base {
|
|
8890
9185
|
/**
|
|
@@ -8903,6 +9198,7 @@ declare class ChangesetConfig extends ChangesetConfig_base {
|
|
|
8903
9198
|
* `ChangesetConfigReaderLive` + a platform layer (`NodeContext.layer`).
|
|
8904
9199
|
*
|
|
8905
9200
|
* @since 0.4.0
|
|
9201
|
+
* @public
|
|
8906
9202
|
*/
|
|
8907
9203
|
declare const ChangesetConfigLive: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
|
|
8908
9204
|
//#endregion
|
|
@@ -8959,6 +9255,7 @@ declare const ConfigDiscovery_base: Context.TagClass<ConfigDiscovery, "@savvy-we
|
|
|
8959
9255
|
* ```
|
|
8960
9256
|
*
|
|
8961
9257
|
* @since 0.1.0
|
|
9258
|
+
* @public
|
|
8962
9259
|
*/
|
|
8963
9260
|
declare class ConfigDiscovery extends ConfigDiscovery_base {}
|
|
8964
9261
|
/**
|
|
@@ -8969,6 +9266,7 @@ declare class ConfigDiscovery extends ConfigDiscovery_base {}
|
|
|
8969
9266
|
* `BunContext.layer` to satisfy this dependency.
|
|
8970
9267
|
*
|
|
8971
9268
|
* @since 0.1.0
|
|
9269
|
+
* @public
|
|
8972
9270
|
*/
|
|
8973
9271
|
declare const ConfigDiscoveryLive: Layer.Layer<ConfigDiscovery, never, FileSystem.FileSystem>;
|
|
8974
9272
|
//#endregion
|
|
@@ -9011,17 +9309,22 @@ declare const ManagedSection_base: Context.TagClass<ManagedSection, "@savvy-web/
|
|
|
9011
9309
|
* Content operations (`write`, `sync`, `check`) take a {@link SectionBlock}.
|
|
9012
9310
|
*
|
|
9013
9311
|
* @since 0.2.0
|
|
9312
|
+
* @public
|
|
9014
9313
|
*/
|
|
9015
9314
|
declare class ManagedSection extends ManagedSection_base {}
|
|
9016
9315
|
/**
|
|
9017
9316
|
* Live implementation of {@link ManagedSection} backed by `@effect/platform` FileSystem.
|
|
9018
9317
|
*
|
|
9019
9318
|
* @since 0.2.0
|
|
9319
|
+
* @public
|
|
9020
9320
|
*/
|
|
9021
9321
|
declare const ManagedSectionLive: Layer.Layer<ManagedSection, never, FileSystem.FileSystem>;
|
|
9022
9322
|
//#endregion
|
|
9023
9323
|
//#region src/services/SilkPublishability.d.ts
|
|
9024
|
-
/**
|
|
9324
|
+
/**
|
|
9325
|
+
* A single object-form publish target in the `publishConfig.targets` map (mirrors the bundler's `PublishTargetObject`).
|
|
9326
|
+
* @public
|
|
9327
|
+
*/
|
|
9025
9328
|
interface RawTargetObject {
|
|
9026
9329
|
/** Registry endpoint. Defaulted for the well-known `npm`/`github` keys. */
|
|
9027
9330
|
readonly registry?: string;
|
|
@@ -9030,7 +9333,10 @@ interface RawTargetObject {
|
|
|
9030
9333
|
/** Reuse another target's group bytes. Mutually exclusive with `name`. */
|
|
9031
9334
|
readonly from?: string;
|
|
9032
9335
|
}
|
|
9033
|
-
/**
|
|
9336
|
+
/**
|
|
9337
|
+
* A `publishConfig.targets` value: `true` (well-known registry, base name), a string (name override), or an object.
|
|
9338
|
+
* @public
|
|
9339
|
+
*/
|
|
9034
9340
|
type RawTargetValue = true | string | RawTargetObject;
|
|
9035
9341
|
/**
|
|
9036
9342
|
* The `publishConfig.targets` map, keyed by target id (`npm`, `github`, or a custom key).
|
|
@@ -9039,25 +9345,35 @@ type RawTargetValue = true | string | RawTargetObject;
|
|
|
9039
9345
|
* This is the bundler's Record-map form. The legacy array form is no longer supported
|
|
9040
9346
|
* (removed in the 1.0 breaking change) — declare targets as a keyed map and let the
|
|
9041
9347
|
* bundler emit the {@link TargetsBinding} that silk publishability resolves against.
|
|
9348
|
+
* @public
|
|
9042
9349
|
*/
|
|
9043
9350
|
type RawPublishTargets = Record<string, RawTargetValue>;
|
|
9044
|
-
/**
|
|
9351
|
+
/**
|
|
9352
|
+
* Raw `publishConfig` shape (the unschematized fields silk rules consult).
|
|
9353
|
+
* @public
|
|
9354
|
+
*/
|
|
9045
9355
|
interface RawPublishConfig {
|
|
9046
9356
|
readonly access?: "public" | "restricted";
|
|
9047
9357
|
readonly registry?: string;
|
|
9048
9358
|
readonly directory?: string;
|
|
9049
9359
|
readonly targets?: RawPublishTargets;
|
|
9050
9360
|
}
|
|
9051
|
-
/**
|
|
9361
|
+
/**
|
|
9362
|
+
* A resolved byte-variant group from the bundler's `dist/prod/targets.json` binding.
|
|
9363
|
+
* @public
|
|
9364
|
+
*/
|
|
9052
9365
|
interface TargetGroupBinding {
|
|
9053
|
-
/** Group folder id; the group's bytes live at
|
|
9366
|
+
/** Group folder id; the group's bytes live at `dir`. */
|
|
9054
9367
|
readonly id: string;
|
|
9055
9368
|
/** The `package.json.name` this group's manifest carries. */
|
|
9056
9369
|
readonly name: string;
|
|
9057
9370
|
/** The group's pkg output dir, relative to the package root (e.g. `dist/prod/npm/pkg`). */
|
|
9058
9371
|
readonly dir: string;
|
|
9059
9372
|
}
|
|
9060
|
-
/**
|
|
9373
|
+
/**
|
|
9374
|
+
* A resolved registry target from the bundler's `dist/prod/targets.json` binding (one per `publishConfig.targets` key).
|
|
9375
|
+
* @public
|
|
9376
|
+
*/
|
|
9061
9377
|
interface TargetBinding {
|
|
9062
9378
|
/** The `publishConfig.targets` key (`npm`, `github`, …). */
|
|
9063
9379
|
readonly id: string;
|
|
@@ -9076,19 +9392,26 @@ interface TargetBinding {
|
|
|
9076
9392
|
* byte-variant build set; `targets` binds every declared registry target to one group.
|
|
9077
9393
|
* `npm: true` + `github: true` collapse into one scoped-name group deployed to two
|
|
9078
9394
|
* registries (one group, two targets).
|
|
9395
|
+
* @public
|
|
9079
9396
|
*/
|
|
9080
9397
|
interface TargetsBinding {
|
|
9081
9398
|
readonly groups: ReadonlyArray<TargetGroupBinding>;
|
|
9082
9399
|
readonly targets: ReadonlyArray<TargetBinding>;
|
|
9083
9400
|
}
|
|
9084
|
-
/**
|
|
9401
|
+
/**
|
|
9402
|
+
* Raw `package.json` shape consumed by `SilkPublishability.detect`.
|
|
9403
|
+
* @public
|
|
9404
|
+
*/
|
|
9085
9405
|
interface RawPackageJson {
|
|
9086
9406
|
readonly name?: string;
|
|
9087
9407
|
readonly version?: string;
|
|
9088
9408
|
readonly private?: boolean;
|
|
9089
9409
|
readonly publishConfig?: RawPublishConfig;
|
|
9090
9410
|
}
|
|
9091
|
-
/**
|
|
9411
|
+
/**
|
|
9412
|
+
* A publishable workspace package and the count of its resolved publish targets.
|
|
9413
|
+
* @public
|
|
9414
|
+
*/
|
|
9092
9415
|
interface PublishablePackage {
|
|
9093
9416
|
readonly name: string;
|
|
9094
9417
|
readonly version: string;
|
|
@@ -9096,7 +9419,7 @@ interface PublishablePackage {
|
|
|
9096
9419
|
readonly targetCount: number;
|
|
9097
9420
|
}
|
|
9098
9421
|
/**
|
|
9099
|
-
* Silk publishability rules over `workspaces-effect`'s
|
|
9422
|
+
* Silk publishability rules over `workspaces-effect`'s `PublishTarget`.
|
|
9100
9423
|
*
|
|
9101
9424
|
* @remarks
|
|
9102
9425
|
* In silk mode `private: true` is the norm on workspace `package.json`; publishability is
|
|
@@ -9104,6 +9427,7 @@ interface PublishablePackage {
|
|
|
9104
9427
|
* default. All helpers are static so a consumer sees the full rule surface in one place.
|
|
9105
9428
|
*
|
|
9106
9429
|
* @since 0.4.0
|
|
9430
|
+
* @public
|
|
9107
9431
|
*/
|
|
9108
9432
|
declare class SilkPublishability {
|
|
9109
9433
|
/**
|
|
@@ -9112,7 +9436,7 @@ declare class SilkPublishability {
|
|
|
9112
9436
|
*
|
|
9113
9437
|
* - A non-empty `publishConfig.targets` map (the bundler's Record-map form) makes the
|
|
9114
9438
|
* package publishable regardless of `private`. With a `binding` (post-prod-build), one
|
|
9115
|
-
*
|
|
9439
|
+
* `PublishTarget` is emitted per resolved registry target, its `directory` set to
|
|
9116
9440
|
* the bound group's `dist/prod/<group>/pkg` dir. Without a binding (pre-build), one
|
|
9117
9441
|
* placeholder target is emitted per declared key so publishability and target counts
|
|
9118
9442
|
* are correct; the directory is best-effort and unused until the build writes the
|
|
@@ -9128,14 +9452,14 @@ declare class SilkPublishability {
|
|
|
9128
9452
|
*/
|
|
9129
9453
|
static detect(pkgName: string, raw: RawPackageJson, binding: TargetsBinding | null): ReadonlyArray<PublishTarget>;
|
|
9130
9454
|
/**
|
|
9131
|
-
* Resolve a package's publish targets via {@link
|
|
9455
|
+
* Resolve a package's publish targets via {@link SilkPublishability}, then drop any
|
|
9132
9456
|
* whose built `directory` package.json is `private: true`. Returned targets keep the
|
|
9133
9457
|
* detector's original (possibly package-relative) `directory`.
|
|
9134
9458
|
*/
|
|
9135
9459
|
static resolveTargets(pkg: WorkspacePackage, root: string): Effect.Effect<ReadonlyArray<PublishTarget>, never, PublishabilityDetector | FileSystem.FileSystem>;
|
|
9136
9460
|
/**
|
|
9137
9461
|
* The publishable, non-ignored packages, resolved through the single
|
|
9138
|
-
* {@link
|
|
9462
|
+
* {@link SilkPublishability} (which already honors changeset ignore in adaptive mode).
|
|
9139
9463
|
*/
|
|
9140
9464
|
static listPublishable(root: string): Effect.Effect<ReadonlyArray<PublishablePackage>, never, WorkspaceDiscovery | PublishabilityDetector>;
|
|
9141
9465
|
}
|
|
@@ -9144,31 +9468,34 @@ declare class SilkPublishability {
|
|
|
9144
9468
|
*
|
|
9145
9469
|
* @remarks
|
|
9146
9470
|
* Returns `null` when the file is missing/unreadable/malformed — i.e. before the prod build
|
|
9147
|
-
* has run.
|
|
9148
|
-
* 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.
|
|
9149
9473
|
*
|
|
9150
9474
|
* @param fs - The FileSystem service.
|
|
9151
9475
|
* @param pkgPath - Absolute path to the package directory.
|
|
9152
9476
|
* @since 1.0.0
|
|
9477
|
+
* @public
|
|
9153
9478
|
*/
|
|
9154
9479
|
declare const readTargetsBinding: (fs: FileSystem.FileSystem, pkgPath: string) => Effect.Effect<TargetsBinding | null>;
|
|
9155
9480
|
/**
|
|
9156
|
-
* Override of `workspaces-effect`'s {@link
|
|
9481
|
+
* Override of `workspaces-effect`'s {@link SilkPublishability} Tag with pure silk rules.
|
|
9157
9482
|
*
|
|
9158
9483
|
* @remarks Requires `FileSystem` (captured at layer build); `detect` reads the raw
|
|
9159
|
-
* `package.json` from `pkg.packageJsonPath` and applies
|
|
9484
|
+
* `package.json` from `pkg.packageJsonPath` and applies `SilkPublishability.detect`.
|
|
9160
9485
|
*
|
|
9161
9486
|
* @since 0.4.0
|
|
9487
|
+
* @public
|
|
9162
9488
|
*/
|
|
9163
9489
|
declare const SilkPublishabilityDetectorLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem>;
|
|
9164
9490
|
/**
|
|
9165
|
-
* Ignore-aware override of {@link
|
|
9166
|
-
* for changeset-ignored packages, then dispatches on
|
|
9167
|
-
* `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.
|
|
9168
9494
|
*
|
|
9169
9495
|
* @remarks Requires `FileSystem` + {@link ChangesetConfig} at build.
|
|
9170
9496
|
*
|
|
9171
9497
|
* @since 0.4.0
|
|
9498
|
+
* @public
|
|
9172
9499
|
*/
|
|
9173
9500
|
declare const PublishabilityDetectorAdaptiveLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem | ChangesetConfig>;
|
|
9174
9501
|
//#endregion
|
|
@@ -9177,7 +9504,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9177
9504
|
/**
|
|
9178
9505
|
* Determine the appropriate tag strategy type from a versioning strategy result.
|
|
9179
9506
|
*
|
|
9180
|
-
* @param versioningResult - The result of
|
|
9507
|
+
* @param versioningResult - The result of `VersioningStrategy.detect`.
|
|
9181
9508
|
* @returns An `Effect` that always succeeds with a {@link TagStrategyType}.
|
|
9182
9509
|
*
|
|
9183
9510
|
* @since 0.1.0
|
|
@@ -9200,7 +9527,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9200
9527
|
* Service that determines and applies the git-tag naming strategy for a release.
|
|
9201
9528
|
*
|
|
9202
9529
|
* @remarks
|
|
9203
|
-
* Consumes a {@link VersioningStrategyResult} to pick between `"single"` and `"scoped"`
|
|
9530
|
+
* Consumes a {@link (VersioningStrategyResult:type)} to pick between `"single"` and `"scoped"`
|
|
9204
9531
|
* tag formats, then formats tag strings accordingly. Independent versioning always
|
|
9205
9532
|
* produces scoped tags; single and fixed-group versioning produces a single shared tag.
|
|
9206
9533
|
*
|
|
@@ -9217,6 +9544,7 @@ declare const TagStrategy_base: Context.TagClass<TagStrategy, "@savvy-web/silk-e
|
|
|
9217
9544
|
* ```
|
|
9218
9545
|
*
|
|
9219
9546
|
* @since 0.1.0
|
|
9547
|
+
* @public
|
|
9220
9548
|
*/
|
|
9221
9549
|
declare class TagStrategy extends TagStrategy_base {}
|
|
9222
9550
|
/**
|
|
@@ -9226,6 +9554,7 @@ declare class TagStrategy extends TagStrategy_base {}
|
|
|
9226
9554
|
* All logic is pure: strategy determination and tag formatting involve no I/O.
|
|
9227
9555
|
*
|
|
9228
9556
|
* @since 0.1.0
|
|
9557
|
+
* @public
|
|
9229
9558
|
*/
|
|
9230
9559
|
declare const TagStrategyLive: Layer.Layer<TagStrategy>;
|
|
9231
9560
|
//#endregion
|
|
@@ -9236,7 +9565,7 @@ declare const VersioningStrategy_base: Context.TagClass<VersioningStrategy, "@sa
|
|
|
9236
9565
|
*
|
|
9237
9566
|
* @param publishablePackages - Package names (e.g. `"@my-org/pkg"`) that will be published.
|
|
9238
9567
|
* @param root - Workspace root directory to read changeset config from.
|
|
9239
|
-
* @returns An `Effect` resolving to a {@link VersioningStrategyResult}, or failing with
|
|
9568
|
+
* @returns An `Effect` resolving to a {@link (VersioningStrategyResult:type)}, or failing with
|
|
9240
9569
|
* {@link VersioningDetectionError} on unexpected errors.
|
|
9241
9570
|
*
|
|
9242
9571
|
* @since 0.1.0
|
|
@@ -9266,6 +9595,7 @@ declare const VersioningStrategy_base: Context.TagClass<VersioningStrategy, "@sa
|
|
|
9266
9595
|
* ```
|
|
9267
9596
|
*
|
|
9268
9597
|
* @since 0.1.0
|
|
9598
|
+
* @public
|
|
9269
9599
|
*/
|
|
9270
9600
|
declare class VersioningStrategy extends VersioningStrategy_base {}
|
|
9271
9601
|
/**
|
|
@@ -9276,6 +9606,7 @@ declare class VersioningStrategy extends VersioningStrategy_base {}
|
|
|
9276
9606
|
* If the config file is absent, an empty `fixed` groups array is assumed.
|
|
9277
9607
|
*
|
|
9278
9608
|
* @since 0.1.0
|
|
9609
|
+
* @public
|
|
9279
9610
|
*/
|
|
9280
9611
|
declare const VersioningStrategyLive: Layer.Layer<VersioningStrategy, never, ChangesetConfigReader>;
|
|
9281
9612
|
//#endregion
|
|
@@ -9300,7 +9631,7 @@ declare const SilkWorkspaceAnalyzer_base: Context.TagClass<SilkWorkspaceAnalyzer
|
|
|
9300
9631
|
* wiring up fixed/linked release groups.
|
|
9301
9632
|
*
|
|
9302
9633
|
* @remarks
|
|
9303
|
-
* Orchestrates
|
|
9634
|
+
* Orchestrates `WorkspaceDiscovery`, `PackageManagerDetector`,
|
|
9304
9635
|
* {@link ChangesetConfigReader}, {@link VersioningStrategy}, and
|
|
9305
9636
|
* {@link TagStrategy} to produce a complete {@link WorkspaceAnalysis} for a
|
|
9306
9637
|
* given workspace root.
|
|
@@ -9319,16 +9650,18 @@ declare const SilkWorkspaceAnalyzer_base: Context.TagClass<SilkWorkspaceAnalyzer
|
|
|
9319
9650
|
* ```
|
|
9320
9651
|
*
|
|
9321
9652
|
* @since 0.2.0
|
|
9653
|
+
* @public
|
|
9322
9654
|
*/
|
|
9323
9655
|
declare class SilkWorkspaceAnalyzer extends SilkWorkspaceAnalyzer_base {}
|
|
9324
9656
|
/**
|
|
9325
9657
|
* Live implementation of {@link SilkWorkspaceAnalyzer}.
|
|
9326
9658
|
*
|
|
9327
9659
|
* @remarks
|
|
9328
|
-
* Requires
|
|
9660
|
+
* Requires `WorkspaceDiscovery`, `PackageManagerDetector`,
|
|
9329
9661
|
* {@link ChangesetConfigReader}, {@link VersioningStrategy}, and {@link TagStrategy}.
|
|
9330
9662
|
*
|
|
9331
9663
|
* @since 0.2.0
|
|
9664
|
+
* @public
|
|
9332
9665
|
*/
|
|
9333
9666
|
declare const SilkWorkspaceAnalyzerLive: Layer.Layer<SilkWorkspaceAnalyzer, never, FileSystem.FileSystem | WorkspaceDiscovery | TopologicalSorter | PackageManagerDetector | ChangesetConfigReader | VersioningStrategy | TagStrategy>;
|
|
9334
9667
|
//#endregion
|
|
@@ -9386,6 +9719,7 @@ declare const ToolDiscovery_base: Context.TagClass<ToolDiscovery, "@savvy-web/si
|
|
|
9386
9719
|
* ```
|
|
9387
9720
|
*
|
|
9388
9721
|
* @since 0.2.0
|
|
9722
|
+
* @public
|
|
9389
9723
|
*/
|
|
9390
9724
|
declare class ToolDiscovery extends ToolDiscovery_base {}
|
|
9391
9725
|
/**
|
|
@@ -9396,6 +9730,7 @@ declare class ToolDiscovery extends ToolDiscovery_base {}
|
|
|
9396
9730
|
* and `WorkspaceRoot` from `workspaces-effect`.
|
|
9397
9731
|
*
|
|
9398
9732
|
* @since 0.2.0
|
|
9733
|
+
* @public
|
|
9399
9734
|
*/
|
|
9400
9735
|
declare const ToolDiscoveryLive: Layer.Layer<ToolDiscovery, never, CommandExecutor.CommandExecutor | PackageManagerDetector | WorkspaceRoot>;
|
|
9401
9736
|
//#endregion
|
|
@@ -9745,5 +10080,5 @@ declare namespace index_d_exports$3 {
|
|
|
9745
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 };
|
|
9746
10081
|
}
|
|
9747
10082
|
//#endregion
|
|
9748
|
-
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 };
|
|
9749
10084
|
//# sourceMappingURL=index.d.ts.map
|