@savvy-web/silk-effects 5.1.3 → 5.2.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/README.md +22 -22
- package/changesets/api/transformer.js +2 -1
- package/changesets/changelog/getReleaseLine.js +7 -4
- package/changesets/changelog/index.js +8 -6
- package/changesets/index.js +6 -11
- package/changesets/services/branch-analyzer.js +20 -19
- package/changesets/services/changelog.js +1 -1
- package/changesets/services/config-inspector.js +17 -17
- package/changesets/services/deps-regen.js +36 -34
- package/changesets/services/github.js +39 -40
- package/changesets/services/release-planner.js +7 -6
- package/changesets/utils/dependency-table.js +2 -1
- package/changesets/utils/jsonpath.js +5 -7
- package/changesets/utils/publishability.js +2 -2
- package/commitlint/detection/dco.js +2 -1
- package/commitlint/index.js +2 -1
- package/index.d.ts +224 -213
- package/index.js +7 -7
- package/lint/handlers/PnpmWorkspace.js +2 -1
- package/lint/handlers/Yaml.js +8 -4
- package/package.json +10 -10
- package/repos/index.js +3 -5
- package/repos/services/config-store.js +68 -67
- package/repos/services/manager.js +259 -258
- package/services/BiomeSchemaSync.js +65 -64
- package/services/ChangesetConfig.js +50 -50
- package/services/ChangesetConfigReader.js +59 -58
- package/services/ConfigDiscovery.js +42 -41
- package/services/SilkPublishability.js +54 -53
- package/services/SilkWorkspaceAnalyzer.js +110 -109
- package/turbo/index.js +2 -3
- package/turbo/services/TurboInspector.js +80 -79
package/index.d.ts
CHANGED
|
@@ -2880,7 +2880,7 @@ declare const ChangesetConfigReader_base: Context.ServiceClass<ChangesetConfigRe
|
|
|
2880
2880
|
* const reader = yield* ChangesetConfigReader;
|
|
2881
2881
|
* return yield* reader.read(process.cwd());
|
|
2882
2882
|
* }).pipe(
|
|
2883
|
-
* Effect.provide(
|
|
2883
|
+
* Effect.provide(ChangesetConfigReader.layer),
|
|
2884
2884
|
* Effect.provide(NodeServices.layer),
|
|
2885
2885
|
* )
|
|
2886
2886
|
* );
|
|
@@ -2889,18 +2889,19 @@ declare const ChangesetConfigReader_base: Context.ServiceClass<ChangesetConfigRe
|
|
|
2889
2889
|
* @since 0.1.0
|
|
2890
2890
|
* @public
|
|
2891
2891
|
*/
|
|
2892
|
-
declare class ChangesetConfigReader extends ChangesetConfigReader_base {
|
|
2893
|
-
/**
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2892
|
+
declare class ChangesetConfigReader extends ChangesetConfigReader_base {
|
|
2893
|
+
/**
|
|
2894
|
+
* Production implementation of {@link ChangesetConfigReader}.
|
|
2895
|
+
*
|
|
2896
|
+
* @remarks
|
|
2897
|
+
* Requires the core `FileSystem` service. Provide `NodeServices.layer` (or
|
|
2898
|
+
* `NodeFileSystem.layer`) from `@effect/platform-node` to satisfy this dependency.
|
|
2899
|
+
*
|
|
2900
|
+
* @since 0.1.0
|
|
2901
|
+
* @public
|
|
2902
|
+
*/
|
|
2903
|
+
static readonly layer: Layer.Layer<ChangesetConfigReader, never, FileSystem.FileSystem>;
|
|
2904
|
+
}
|
|
2904
2905
|
//#endregion
|
|
2905
2906
|
//#region src/changesets/services/config-inspector.d.ts
|
|
2906
2907
|
/** A `versionFiles` entry expanded to its absolute target paths. @public */
|
|
@@ -3017,7 +3018,7 @@ declare const ConfigInspector_base: Context.ServiceClass<ConfigInspector, "Confi
|
|
|
3017
3018
|
* @example
|
|
3018
3019
|
* ```typescript
|
|
3019
3020
|
* import { Effect } from "effect";
|
|
3020
|
-
* import { ConfigInspector
|
|
3021
|
+
* import { ConfigInspector } from "@savvy-web/changesets";
|
|
3021
3022
|
*
|
|
3022
3023
|
* const program = Effect.gen(function* () {
|
|
3023
3024
|
* const inspector = yield* ConfigInspector;
|
|
@@ -3025,27 +3026,28 @@ declare const ConfigInspector_base: Context.ServiceClass<ConfigInspector, "Confi
|
|
|
3025
3026
|
* return config.packages.map((p) => p.name);
|
|
3026
3027
|
* });
|
|
3027
3028
|
*
|
|
3028
|
-
* Effect.runPromise(program.pipe(Effect.provide(
|
|
3029
|
+
* Effect.runPromise(program.pipe(Effect.provide(ConfigInspector.layer)));
|
|
3029
3030
|
* ```
|
|
3030
3031
|
*
|
|
3031
3032
|
* @public
|
|
3032
3033
|
*/
|
|
3033
|
-
declare class ConfigInspector extends ConfigInspector_base {
|
|
3034
|
-
/**
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3034
|
+
declare class ConfigInspector extends ConfigInspector_base {
|
|
3035
|
+
/**
|
|
3036
|
+
* Production layer for {@link ConfigInspector}.
|
|
3037
|
+
*
|
|
3038
|
+
* Requires {@link ChangesetConfigReader} and `WorkspaceDiscovery`
|
|
3039
|
+
* in the environment.
|
|
3040
|
+
*
|
|
3041
|
+
* @public
|
|
3042
|
+
*/
|
|
3043
|
+
static readonly layer: Layer.Layer<ConfigInspector, never, ChangesetConfigReader | WorkspaceDiscovery | FileSystem.FileSystem>;
|
|
3044
|
+
}
|
|
3043
3045
|
/**
|
|
3044
3046
|
* Test factory — build a {@link ConfigInspector} that returns a fixed
|
|
3045
3047
|
* {@link InspectedConfig} without touching the filesystem.
|
|
3046
3048
|
*
|
|
3047
3049
|
* Tests that need to exercise the inspect/classify logic against real files
|
|
3048
|
-
* should compose `
|
|
3050
|
+
* should compose `ConfigInspector.layer` with test layers for
|
|
3049
3051
|
* `ChangesetConfigReader` and `WorkspaceDiscovery` instead.
|
|
3050
3052
|
*
|
|
3051
3053
|
* @public
|
|
@@ -3119,7 +3121,7 @@ declare const BranchAnalyzer_base: Context.ServiceClass<BranchAnalyzer, "BranchA
|
|
|
3119
3121
|
* @example
|
|
3120
3122
|
* ```typescript
|
|
3121
3123
|
* import { Effect } from "effect";
|
|
3122
|
-
* import { BranchAnalyzer,
|
|
3124
|
+
* import { BranchAnalyzer, ConfigInspector } from "@savvy-web/changesets";
|
|
3123
3125
|
*
|
|
3124
3126
|
* const program = Effect.gen(function* () {
|
|
3125
3127
|
* const analyzer = yield* BranchAnalyzer;
|
|
@@ -3129,27 +3131,28 @@ declare const BranchAnalyzer_base: Context.ServiceClass<BranchAnalyzer, "BranchA
|
|
|
3129
3131
|
*
|
|
3130
3132
|
* Effect.runPromise(
|
|
3131
3133
|
* program.pipe(
|
|
3132
|
-
* Effect.provide(
|
|
3133
|
-
* Effect.provide(
|
|
3134
|
-
* // ... +
|
|
3134
|
+
* Effect.provide(BranchAnalyzer.layer),
|
|
3135
|
+
* Effect.provide(ConfigInspector.layer),
|
|
3136
|
+
* // ... + ChangesetConfigReader.layer + kit workspace layers + NodeServices.layer
|
|
3135
3137
|
* ),
|
|
3136
3138
|
* );
|
|
3137
3139
|
* ```
|
|
3138
3140
|
*
|
|
3139
3141
|
* @public
|
|
3140
3142
|
*/
|
|
3141
|
-
declare class BranchAnalyzer extends BranchAnalyzer_base {
|
|
3142
|
-
/**
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3143
|
+
declare class BranchAnalyzer extends BranchAnalyzer_base {
|
|
3144
|
+
/**
|
|
3145
|
+
* Production layer for {@link BranchAnalyzer}.
|
|
3146
|
+
*
|
|
3147
|
+
* Requires {@link ConfigInspector} (which in turn requires
|
|
3148
|
+
* `ChangesetConfigReader` and `WorkspaceDiscovery`) and a
|
|
3149
|
+
* `ChildProcessSpawner` (satisfied by `NodeServices.layer`) for the
|
|
3150
|
+
* internally-composed `@effected/git` layer.
|
|
3151
|
+
*
|
|
3152
|
+
* @public
|
|
3153
|
+
*/
|
|
3154
|
+
static readonly layer: Layer.Layer<BranchAnalyzer, never, ConfigInspector | ChildProcessSpawner.ChildProcessSpawner>;
|
|
3155
|
+
}
|
|
3153
3156
|
/**
|
|
3154
3157
|
* Test factory — build a {@link BranchAnalyzer} that returns a fixed
|
|
3155
3158
|
* {@link BranchAnalysis} for any input.
|
|
@@ -3358,13 +3361,13 @@ declare const GitHubService_base: Context.ServiceClass<GitHubService, "GitHubSer
|
|
|
3358
3361
|
* This tag follows the standard Effect `Context.Service` pattern. Two layers
|
|
3359
3362
|
* are provided out of the box:
|
|
3360
3363
|
*
|
|
3361
|
-
* -
|
|
3364
|
+
* - `GitHubService.layer` — production layer backed by the GitHub REST API
|
|
3362
3365
|
* - {@link makeGitHubTest} — factory for deterministic test layers
|
|
3363
3366
|
*
|
|
3364
3367
|
* @example
|
|
3365
3368
|
* ```typescript
|
|
3366
|
-
* import { Effect
|
|
3367
|
-
* import { GitHubService
|
|
3369
|
+
* import { Effect } from "effect";
|
|
3370
|
+
* import { GitHubService } from "\@savvy-web/changesets";
|
|
3368
3371
|
*
|
|
3369
3372
|
* const program = Effect.gen(function* () {
|
|
3370
3373
|
* const github = yield* GitHubService;
|
|
@@ -3376,7 +3379,7 @@ declare const GitHubService_base: Context.ServiceClass<GitHubService, "GitHubSer
|
|
|
3376
3379
|
* });
|
|
3377
3380
|
*
|
|
3378
3381
|
* // Provide the live layer and run
|
|
3379
|
-
* Effect.runPromise(program.pipe(Effect.provide(
|
|
3382
|
+
* Effect.runPromise(program.pipe(Effect.provide(GitHubService.layer)));
|
|
3380
3383
|
* ```
|
|
3381
3384
|
*
|
|
3382
3385
|
* @example Creating a test layer with canned responses
|
|
@@ -3400,41 +3403,41 @@ declare const GitHubService_base: Context.ServiceClass<GitHubService, "GitHubSer
|
|
|
3400
3403
|
* ```
|
|
3401
3404
|
*
|
|
3402
3405
|
* @see {@link GitHubServiceShape} for the service interface
|
|
3403
|
-
* @see {@link GitHubLive} for the production layer
|
|
3404
3406
|
* @see {@link makeGitHubTest} for creating test layers
|
|
3405
3407
|
*
|
|
3406
3408
|
* @public
|
|
3407
3409
|
*/
|
|
3408
|
-
declare class GitHubService extends GitHubService_base {
|
|
3409
|
-
/**
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3410
|
+
declare class GitHubService extends GitHubService_base {
|
|
3411
|
+
/**
|
|
3412
|
+
* Production layer for {@link GitHubService}.
|
|
3413
|
+
*
|
|
3414
|
+
* Delegates to `\@changesets/get-github-info` to fetch commit metadata
|
|
3415
|
+
* from the GitHub REST API. Requires a `GITHUB_TOKEN` environment variable
|
|
3416
|
+
* to be set for authenticated requests.
|
|
3417
|
+
*
|
|
3418
|
+
* @remarks
|
|
3419
|
+
* This layer is used by the `\@savvy-web/changesets/changelog` entry point
|
|
3420
|
+
* to resolve commit hashes into PR numbers and author attribution. It is
|
|
3421
|
+
* used by the changelog formatter's
|
|
3422
|
+
* `MainLayer`.
|
|
3423
|
+
*
|
|
3424
|
+
* @example
|
|
3425
|
+
* ```typescript
|
|
3426
|
+
* import { Effect } from "effect";
|
|
3427
|
+
* import { GitHubService } from "\@savvy-web/changesets";
|
|
3428
|
+
*
|
|
3429
|
+
* const program = Effect.gen(function* () {
|
|
3430
|
+
* const github = yield* GitHubService;
|
|
3431
|
+
* return yield* github.getInfo({ commit: "abc1234", repo: "owner/repo" });
|
|
3432
|
+
* });
|
|
3433
|
+
*
|
|
3434
|
+
* Effect.runPromise(program.pipe(Effect.provide(GitHubService.layer)));
|
|
3435
|
+
* ```
|
|
3436
|
+
*
|
|
3437
|
+
* @public
|
|
3438
|
+
*/
|
|
3439
|
+
static readonly layer: Layer.Layer<GitHubService>;
|
|
3440
|
+
}
|
|
3438
3441
|
/**
|
|
3439
3442
|
* Create a test layer for {@link GitHubService} with pre-configured responses.
|
|
3440
3443
|
*
|
|
@@ -3531,7 +3534,7 @@ declare const ChangelogService_base: Context.ServiceClass<ChangelogService, "Cha
|
|
|
3531
3534
|
* ```typescript
|
|
3532
3535
|
* import { Effect } from "effect";
|
|
3533
3536
|
* import type { ChangesetOptions } from "\@savvy-web/changesets";
|
|
3534
|
-
* import { ChangelogService
|
|
3537
|
+
* import { ChangelogService } from "\@savvy-web/changesets";
|
|
3535
3538
|
*
|
|
3536
3539
|
* const program = Effect.gen(function* () {
|
|
3537
3540
|
* const changelog = yield* ChangelogService;
|
|
@@ -3593,18 +3596,18 @@ declare class ChangesetConfig extends ChangesetConfig_base {
|
|
|
3593
3596
|
* but not the bare scope `"@scope"`.
|
|
3594
3597
|
*/
|
|
3595
3598
|
static matches(name: string, pattern: string): boolean;
|
|
3599
|
+
/**
|
|
3600
|
+
* Production layer for {@link ChangesetConfig}, reading via {@link ChangesetConfigReader}, cached per root.
|
|
3601
|
+
*
|
|
3602
|
+
* @remarks
|
|
3603
|
+
* Requires `ChangesetConfigReader` (which requires `FileSystem`). Provide
|
|
3604
|
+
* `ChangesetConfigReader.layer` + a platform layer (`NodeServices.layer`).
|
|
3605
|
+
*
|
|
3606
|
+
* @since 0.4.0
|
|
3607
|
+
* @public
|
|
3608
|
+
*/
|
|
3609
|
+
static readonly layer: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
|
|
3596
3610
|
}
|
|
3597
|
-
/**
|
|
3598
|
-
* Live {@link ChangesetConfig} reading via {@link ChangesetConfigReader}, cached per root.
|
|
3599
|
-
*
|
|
3600
|
-
* @remarks
|
|
3601
|
-
* Requires `ChangesetConfigReader` (which requires `FileSystem`). Provide
|
|
3602
|
-
* `ChangesetConfigReaderLive` + a platform layer (`NodeServices.layer`).
|
|
3603
|
-
*
|
|
3604
|
-
* @since 0.4.0
|
|
3605
|
-
* @public
|
|
3606
|
-
*/
|
|
3607
|
-
declare const ChangesetConfigLive: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
|
|
3608
3611
|
//#endregion
|
|
3609
3612
|
//#region src/changesets/utils/dep-diff.d.ts
|
|
3610
3613
|
/**
|
|
@@ -3777,20 +3780,21 @@ declare const DepsRegen_base: Context.ServiceClass<DepsRegen, "Changesets/DepsRe
|
|
|
3777
3780
|
*
|
|
3778
3781
|
* @public
|
|
3779
3782
|
*/
|
|
3780
|
-
declare class DepsRegen extends DepsRegen_base {
|
|
3781
|
-
/**
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3783
|
+
declare class DepsRegen extends DepsRegen_base {
|
|
3784
|
+
/**
|
|
3785
|
+
* Production layer for {@link DepsRegen}.
|
|
3786
|
+
*
|
|
3787
|
+
* Requires `WorkspaceSnapshots`, `WorkspaceDiscovery`,
|
|
3788
|
+
* `PublishabilityDetector` (all from `@effected/workspaces`),
|
|
3789
|
+
* `Git` (from `@effected/git`, backing merge-base resolution),
|
|
3790
|
+
* {@link ConfigInspector}, {@link ChangesetConfig}, and
|
|
3791
|
+
* `FileSystem.FileSystem` (resolved once at construction and closed over by
|
|
3792
|
+
* the shape, keeping `plan`/`execute` themselves requirement-free).
|
|
3793
|
+
*
|
|
3794
|
+
* @public
|
|
3795
|
+
*/
|
|
3796
|
+
static readonly layer: Layer.Layer<DepsRegen, never, WorkspaceSnapshots | ConfigInspector | WorkspaceDiscovery | PublishabilityDetector | ChangesetConfig | Git | FileSystem.FileSystem>;
|
|
3797
|
+
}
|
|
3794
3798
|
/**
|
|
3795
3799
|
* Build the batteries-included {@link DepsRegen} layer over a
|
|
3796
3800
|
* `@effected/workspaces` kit graph bound to `options.cwd`.
|
|
@@ -3821,10 +3825,10 @@ declare function makeDepsRegenDefault(options?: WorkspacesOptions): Layer.Layer<
|
|
|
3821
3825
|
* (`NodeServices.layer`), not a bare filesystem-only layer.
|
|
3822
3826
|
*
|
|
3823
3827
|
* Gating uses silk's adaptive publishability detector
|
|
3824
|
-
* (
|
|
3828
|
+
* (`SilkPublishability.layerAdaptive`), so the default semantics
|
|
3825
3829
|
* are "versionable minus ignored" — identical to the savvy CLI and MCP
|
|
3826
3830
|
* runtimes. Consumers who need to swap any dependency (test detectors,
|
|
3827
|
-
* alternate config sources) should keep composing {@link
|
|
3831
|
+
* alternate config sources) should keep composing {@link DepsRegen.layer}
|
|
3828
3832
|
* directly; this layer is purely additive.
|
|
3829
3833
|
*
|
|
3830
3834
|
* @example
|
|
@@ -3954,9 +3958,10 @@ interface ReleasePlannerShape {
|
|
|
3954
3958
|
}
|
|
3955
3959
|
declare const ReleasePlanner_base: Context.ServiceClass<ReleasePlanner, "ReleasePlanner", ReleasePlannerShape>;
|
|
3956
3960
|
/** Effect service tag for the release planner. @public */
|
|
3957
|
-
declare class ReleasePlanner extends ReleasePlanner_base {
|
|
3958
|
-
/** Production layer. Requires {@link ConfigInspector} (used by `apply`) and `FileSystem`. @public */
|
|
3959
|
-
|
|
3961
|
+
declare class ReleasePlanner extends ReleasePlanner_base {
|
|
3962
|
+
/** Production layer. Requires {@link ConfigInspector} (used by `apply`) and `FileSystem`. @public */
|
|
3963
|
+
static readonly layer: Layer.Layer<ReleasePlanner, never, ConfigInspector | FileSystem.FileSystem>;
|
|
3964
|
+
}
|
|
3960
3965
|
/**
|
|
3961
3966
|
* Test factory — supply fixed results for any subset of methods. Unsupplied
|
|
3962
3967
|
* methods fail with a `ReleasePlanError`.
|
|
@@ -4680,10 +4685,10 @@ declare function gitMergeBase(cwd: string, base: string): Effect.Effect<string,
|
|
|
4680
4685
|
*
|
|
4681
4686
|
* @remarks
|
|
4682
4687
|
* Uses the currently-active {@link SilkPublishability} — wire the
|
|
4683
|
-
*
|
|
4688
|
+
* `SilkPublishability.layer` layer to get silk semantics.
|
|
4684
4689
|
*
|
|
4685
4690
|
* The kit's `PublishabilityDetector.detect` contract no longer receives the
|
|
4686
|
-
* workspace root — the ignore/mode-aware `
|
|
4691
|
+
* workspace root — the ignore/mode-aware `SilkPublishability.layerAdaptive`
|
|
4687
4692
|
* derives the `.changeset/config.json` root per package from the package's
|
|
4688
4693
|
* own discovery coordinates (`pkg.path` ascended by `pkg.relativePath`).
|
|
4689
4694
|
* The `root` parameter is retained for signature stability
|
|
@@ -5637,7 +5642,7 @@ declare const RequiredSectionsRule: import("unified-lint-rule").Plugin<Root, unk
|
|
|
5637
5642
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
5638
5643
|
declare const UncategorizedContentRule: import("unified-lint-rule").Plugin<Root, unknown>;
|
|
5639
5644
|
declare namespace index_d_exports {
|
|
5640
|
-
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer,
|
|
5645
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, 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, RegenPlan, RegenResult, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, serializeDependencyTableToMarkdown };
|
|
5641
5646
|
}
|
|
5642
5647
|
//#endregion
|
|
5643
5648
|
//#region src/commitlint/config/schema.d.ts
|
|
@@ -8444,12 +8449,13 @@ declare const ReposConfigStore_base: Context.ServiceClass<ReposConfigStore, "@sa
|
|
|
8444
8449
|
* Reads, validates, and writes the .repos/config.json manifest.
|
|
8445
8450
|
* @public
|
|
8446
8451
|
*/
|
|
8447
|
-
declare class ReposConfigStore extends ReposConfigStore_base {
|
|
8448
|
-
/**
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8452
|
+
declare class ReposConfigStore extends ReposConfigStore_base {
|
|
8453
|
+
/**
|
|
8454
|
+
* Production layer over the core FileSystem.
|
|
8455
|
+
* @public
|
|
8456
|
+
*/
|
|
8457
|
+
static readonly layer: Layer.Layer<ReposConfigStore, never, FileSystem.FileSystem | Path.Path>;
|
|
8458
|
+
}
|
|
8453
8459
|
//#endregion
|
|
8454
8460
|
//#region src/repos/services/manager.d.ts
|
|
8455
8461
|
/**
|
|
@@ -8504,21 +8510,22 @@ declare const ReposManager_base: Context.ServiceClass<ReposManager, "@savvy-web/
|
|
|
8504
8510
|
* ref (`pin`), and adds, removes, or promotes agent notes (`note`).
|
|
8505
8511
|
* @public
|
|
8506
8512
|
*/
|
|
8507
|
-
declare class ReposManager extends ReposManager_base {
|
|
8508
|
-
/**
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8513
|
+
declare class ReposManager extends ReposManager_base {
|
|
8514
|
+
/**
|
|
8515
|
+
* Production implementation of {@link ReposManager}.
|
|
8516
|
+
*
|
|
8517
|
+
* @remarks
|
|
8518
|
+
* All git plumbing runs through `@effected/git`'s `Git` service (captured once
|
|
8519
|
+
* at layer construction; `Git.layer` requires `ChildProcessSpawner` at the app
|
|
8520
|
+
* edge), so the public method effects stay at `R = never`. The kit classifies
|
|
8521
|
+
* git's exit-code/stderr taxonomy into typed failures, which are mapped onto
|
|
8522
|
+
* this module's {@link GitSubmoduleError} to keep the declared error unions.
|
|
8523
|
+
* @public
|
|
8524
|
+
*/
|
|
8525
|
+
static readonly layer: Layer.Layer<ReposManager, never, ReposConfigStore | Git | FileSystem.FileSystem | Path.Path>;
|
|
8526
|
+
}
|
|
8520
8527
|
declare namespace index_d_exports$3 {
|
|
8521
|
-
export { GitSubmoduleError, GitSubmoduleErrorBase, MANIFEST_PATH, NOTE_LIMIT, NoteNotFoundError, NoteNotFoundErrorBase, REPOS_DIR, RepoEntry, RepoName, RepoNotFoundError, RepoNotFoundErrorBase, RepoNote, RepoOrientation, RepoStatusEntry, ReposAddResult, ReposConfigError, ReposConfigErrorBase, ReposConfigStore,
|
|
8528
|
+
export { GitSubmoduleError, GitSubmoduleErrorBase, MANIFEST_PATH, NOTE_LIMIT, NoteNotFoundError, NoteNotFoundErrorBase, REPOS_DIR, RepoEntry, RepoName, RepoNotFoundError, RepoNotFoundErrorBase, RepoNote, RepoOrientation, RepoStatusEntry, ReposAddResult, ReposConfigError, ReposConfigErrorBase, ReposConfigStore, ReposConfigStoreShape, ReposManager, ReposManagerShape, ReposManifestFile, ReposNoteResult, ReposPinResult, ReposStatusReport, ReposSyncReport, STALE_LOCK_MAX_AGE_MS };
|
|
8522
8529
|
}
|
|
8523
8530
|
//#endregion
|
|
8524
8531
|
//#region src/schemas/BiomeConfig.d.ts
|
|
@@ -8924,7 +8931,7 @@ declare const BiomeSchemaSync_base: Context.ServiceClass<BiomeSchemaSync, "@savv
|
|
|
8924
8931
|
* const syncer = yield* BiomeSchemaSync;
|
|
8925
8932
|
* return yield* syncer.sync("^1.9.3");
|
|
8926
8933
|
* }).pipe(
|
|
8927
|
-
* Effect.provide(
|
|
8934
|
+
* Effect.provide(BiomeSchemaSync.layer),
|
|
8928
8935
|
* Effect.provide(NodeServices.layer),
|
|
8929
8936
|
* )
|
|
8930
8937
|
* );
|
|
@@ -8933,18 +8940,19 @@ declare const BiomeSchemaSync_base: Context.ServiceClass<BiomeSchemaSync, "@savv
|
|
|
8933
8940
|
* @since 0.1.0
|
|
8934
8941
|
* @public
|
|
8935
8942
|
*/
|
|
8936
|
-
declare class BiomeSchemaSync extends BiomeSchemaSync_base {
|
|
8937
|
-
/**
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8943
|
+
declare class BiomeSchemaSync extends BiomeSchemaSync_base {
|
|
8944
|
+
/**
|
|
8945
|
+
* Production implementation of {@link BiomeSchemaSync}.
|
|
8946
|
+
*
|
|
8947
|
+
* @remarks
|
|
8948
|
+
* Requires the core `FileSystem` service. Provide `NodeServices.layer` (or
|
|
8949
|
+
* `NodeFileSystem.layer`) from `@effect/platform-node` to satisfy this dependency.
|
|
8950
|
+
*
|
|
8951
|
+
* @since 0.1.0
|
|
8952
|
+
* @public
|
|
8953
|
+
*/
|
|
8954
|
+
static readonly layer: Layer.Layer<BiomeSchemaSync, never, FileSystem.FileSystem>;
|
|
8955
|
+
}
|
|
8948
8956
|
//#endregion
|
|
8949
8957
|
//#region src/services/ConfigDiscovery.d.ts
|
|
8950
8958
|
/**
|
|
@@ -8999,7 +9007,7 @@ declare const ConfigDiscovery_base: Context.ServiceClass<ConfigDiscovery, "@savv
|
|
|
8999
9007
|
* const discovery = yield* ConfigDiscovery;
|
|
9000
9008
|
* return yield* discovery.find("biome.json");
|
|
9001
9009
|
* }).pipe(
|
|
9002
|
-
* Effect.provide(
|
|
9010
|
+
* Effect.provide(ConfigDiscovery.layer),
|
|
9003
9011
|
* Effect.provide(NodeServices.layer),
|
|
9004
9012
|
* )
|
|
9005
9013
|
* );
|
|
@@ -9008,18 +9016,19 @@ declare const ConfigDiscovery_base: Context.ServiceClass<ConfigDiscovery, "@savv
|
|
|
9008
9016
|
* @since 0.1.0
|
|
9009
9017
|
* @public
|
|
9010
9018
|
*/
|
|
9011
|
-
declare class ConfigDiscovery extends ConfigDiscovery_base {
|
|
9012
|
-
/**
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9019
|
+
declare class ConfigDiscovery extends ConfigDiscovery_base {
|
|
9020
|
+
/**
|
|
9021
|
+
* Production implementation of {@link ConfigDiscovery}.
|
|
9022
|
+
*
|
|
9023
|
+
* @remarks
|
|
9024
|
+
* Requires the core `FileSystem` service. Provide `NodeServices.layer` (or
|
|
9025
|
+
* `NodeFileSystem.layer`) from `@effect/platform-node` to satisfy this dependency.
|
|
9026
|
+
*
|
|
9027
|
+
* @since 0.1.0
|
|
9028
|
+
* @public
|
|
9029
|
+
*/
|
|
9030
|
+
static readonly layer: Layer.Layer<ConfigDiscovery, never, FileSystem.FileSystem>;
|
|
9031
|
+
}
|
|
9023
9032
|
//#endregion
|
|
9024
9033
|
//#region src/services/SilkPublishability.d.ts
|
|
9025
9034
|
/**
|
|
@@ -9174,6 +9183,31 @@ declare class SilkPublishability {
|
|
|
9174
9183
|
* {@link SilkPublishability} (which already honors changeset ignore in adaptive mode).
|
|
9175
9184
|
*/
|
|
9176
9185
|
static listPublishable(_root: string): Effect.Effect<ReadonlyArray<PublishablePackage>, never, WorkspaceDiscovery | PublishabilityDetector>;
|
|
9186
|
+
/**
|
|
9187
|
+
* Override of `@effected/workspaces`' `PublishabilityDetector` Tag with pure silk rules.
|
|
9188
|
+
*
|
|
9189
|
+
* @remarks Requires `FileSystem` (captured at layer build); `detect` reads the raw
|
|
9190
|
+
* `package.json` from `pkg.packageJsonPath` and applies `SilkPublishability.detect`.
|
|
9191
|
+
*
|
|
9192
|
+
* @since 0.4.0
|
|
9193
|
+
* @public
|
|
9194
|
+
*/
|
|
9195
|
+
static readonly layer: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem>;
|
|
9196
|
+
/**
|
|
9197
|
+
* Ignore-aware override of `PublishabilityDetector`. `detect` short-circuits to `[]`
|
|
9198
|
+
* for changeset-ignored packages, then dispatches on `ChangesetConfig.mode`:
|
|
9199
|
+
* `none` → `[]`; `silk` → `SilkPublishability.detect`; `vanilla` → the library default.
|
|
9200
|
+
*
|
|
9201
|
+
* @remarks Requires `FileSystem` and {@link ChangesetConfig} at build.
|
|
9202
|
+
* The kit's `detect` contract no longer receives the workspace root, so the changeset
|
|
9203
|
+
* lookups read it from `pkg.workspaceRoot` — the discovery root the package was found
|
|
9204
|
+
* against, never a filesystem marker walk, which could escape an unmarked root and read
|
|
9205
|
+
* the wrong `.changeset/config.json`.
|
|
9206
|
+
*
|
|
9207
|
+
* @since 0.4.0
|
|
9208
|
+
* @public
|
|
9209
|
+
*/
|
|
9210
|
+
static readonly layerAdaptive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem | ChangesetConfig>;
|
|
9177
9211
|
}
|
|
9178
9212
|
/**
|
|
9179
9213
|
* Read the bundler's `<pkgPath>/dist/prod/targets.json` binding via FileSystem.
|
|
@@ -9189,31 +9223,6 @@ declare class SilkPublishability {
|
|
|
9189
9223
|
* @public
|
|
9190
9224
|
*/
|
|
9191
9225
|
declare const readTargetsBinding: (fs: FileSystem.FileSystem, pkgPath: string) => Effect.Effect<TargetsBinding | null>;
|
|
9192
|
-
/**
|
|
9193
|
-
* Override of `@effected/workspaces`' `PublishabilityDetector` Tag with pure silk rules.
|
|
9194
|
-
*
|
|
9195
|
-
* @remarks Requires `FileSystem` (captured at layer build); `detect` reads the raw
|
|
9196
|
-
* `package.json` from `pkg.packageJsonPath` and applies `SilkPublishability.detect`.
|
|
9197
|
-
*
|
|
9198
|
-
* @since 0.4.0
|
|
9199
|
-
* @public
|
|
9200
|
-
*/
|
|
9201
|
-
declare const SilkPublishabilityDetectorLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem>;
|
|
9202
|
-
/**
|
|
9203
|
-
* Ignore-aware override of `PublishabilityDetector`. `detect` short-circuits to `[]`
|
|
9204
|
-
* for changeset-ignored packages, then dispatches on `ChangesetConfig.mode`:
|
|
9205
|
-
* `none` → `[]`; `silk` → `SilkPublishability.detect`; `vanilla` → the library default.
|
|
9206
|
-
*
|
|
9207
|
-
* @remarks Requires `FileSystem` and {@link ChangesetConfig} at build.
|
|
9208
|
-
* The kit's `detect` contract no longer receives the workspace root, so the changeset
|
|
9209
|
-
* lookups read it from `pkg.workspaceRoot` — the discovery root the package was found
|
|
9210
|
-
* against, never a filesystem marker walk, which could escape an unmarked root and read
|
|
9211
|
-
* the wrong `.changeset/config.json`.
|
|
9212
|
-
*
|
|
9213
|
-
* @since 0.4.0
|
|
9214
|
-
* @public
|
|
9215
|
-
*/
|
|
9216
|
-
declare const PublishabilityDetectorAdaptiveLive: Layer.Layer<PublishabilityDetector, never, FileSystem.FileSystem | ChangesetConfig>;
|
|
9217
9226
|
//#endregion
|
|
9218
9227
|
//#region src/services/SilkWorkspaceAnalyzer.d.ts
|
|
9219
9228
|
/**
|
|
@@ -9255,7 +9264,7 @@ declare const SilkWorkspaceAnalyzer_base: Context.ServiceClass<SilkWorkspaceAnal
|
|
|
9255
9264
|
* const analyzer = yield* SilkWorkspaceAnalyzer;
|
|
9256
9265
|
* return yield* analyzer.analyze("/path/to/monorepo");
|
|
9257
9266
|
* }).pipe(
|
|
9258
|
-
* Effect.provide(
|
|
9267
|
+
* Effect.provide(SilkWorkspaceAnalyzer.layer),
|
|
9259
9268
|
* // ... provide all transitive layers
|
|
9260
9269
|
* )
|
|
9261
9270
|
* );
|
|
@@ -9264,19 +9273,20 @@ declare const SilkWorkspaceAnalyzer_base: Context.ServiceClass<SilkWorkspaceAnal
|
|
|
9264
9273
|
* @since 0.2.0
|
|
9265
9274
|
* @public
|
|
9266
9275
|
*/
|
|
9267
|
-
declare class SilkWorkspaceAnalyzer extends SilkWorkspaceAnalyzer_base {
|
|
9268
|
-
/**
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9276
|
+
declare class SilkWorkspaceAnalyzer extends SilkWorkspaceAnalyzer_base {
|
|
9277
|
+
/**
|
|
9278
|
+
* Production implementation of {@link SilkWorkspaceAnalyzer}.
|
|
9279
|
+
*
|
|
9280
|
+
* @remarks
|
|
9281
|
+
* Requires `WorkspaceDiscovery`, `PackageManagerDetector` and
|
|
9282
|
+
* {@link ChangesetConfigReader}. Versioning and tag classification are pure
|
|
9283
|
+
* `@effected/workspaces` value operations, so neither adds a requirement.
|
|
9284
|
+
*
|
|
9285
|
+
* @since 0.2.0
|
|
9286
|
+
* @public
|
|
9287
|
+
*/
|
|
9288
|
+
static readonly layer: Layer.Layer<SilkWorkspaceAnalyzer, never, FileSystem.FileSystem | WorkspaceDiscovery | PackageManagerDetector | ChangesetConfigReader>;
|
|
9289
|
+
}
|
|
9280
9290
|
//#endregion
|
|
9281
9291
|
//#region src/turbo/schemas/DryRun.d.ts
|
|
9282
9292
|
/** turbo's per-target cache descriptor in `--dry=json`. */
|
|
@@ -9613,24 +9623,25 @@ declare const TurboInspector_base: Context.ServiceClass<TurboInspector, "@savvy-
|
|
|
9613
9623
|
*
|
|
9614
9624
|
* @since 0.7.0
|
|
9615
9625
|
*/
|
|
9616
|
-
declare class TurboInspector extends TurboInspector_base {
|
|
9617
|
-
/**
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9626
|
+
declare class TurboInspector extends TurboInspector_base {
|
|
9627
|
+
/**
|
|
9628
|
+
* Production implementation of {@link TurboInspector}.
|
|
9629
|
+
*
|
|
9630
|
+
* @remarks
|
|
9631
|
+
* Requires `ToolDiscovery` from `@effected/commands` to resolve the `turbo`
|
|
9632
|
+
* binary, plus `ChildProcessSpawner` and `FileSystem` from core (provide
|
|
9633
|
+
* `NodeServices.layer` at the app edge) and `Git` from `@effected/git`. The
|
|
9634
|
+
* spawner is captured at layer construction and discharged onto each `Run`
|
|
9635
|
+
* effect with `Effect.provideService`, keeping the public method effects at
|
|
9636
|
+
* `R = never`.
|
|
9637
|
+
*
|
|
9638
|
+
* @since 0.7.0
|
|
9639
|
+
*/
|
|
9640
|
+
static readonly layer: Layer.Layer<TurboInspector, never, ToolDiscovery | ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Git>;
|
|
9641
|
+
}
|
|
9631
9642
|
declare namespace index_d_exports$4 {
|
|
9632
|
-
export { AffectedResult, AffectedResultType, CacheDiagnosis, CacheDiagnosisType, DryRunParseError, GlobalHashSummary, GraphNode, MissExplanation, NotATurboRepoError, PackageCacheStatus, TaskGraphResult, TaskGraphResultType, TurboCache, TurboDigest, TurboDryRun, TurboDryRunType, TurboDryTask, TurboDryTaskType, TurboEnvVars, TurboError, TurboExecError, TurboGlobalCacheInputs, TurboInspector,
|
|
9643
|
+
export { AffectedResult, AffectedResultType, CacheDiagnosis, CacheDiagnosisType, DryRunParseError, GlobalHashSummary, GraphNode, MissExplanation, NotATurboRepoError, PackageCacheStatus, TaskGraphResult, TaskGraphResultType, TurboCache, TurboDigest, TurboDryRun, TurboDryRunType, TurboDryTask, TurboDryTaskType, TurboEnvVars, TurboError, TurboExecError, TurboGlobalCacheInputs, TurboInspector, TurboInspectorShape, TurboNotInstalledError };
|
|
9633
9644
|
}
|
|
9634
9645
|
//#endregion
|
|
9635
|
-
export { AnalyzedWorkspace, BiomeSchemaSync,
|
|
9646
|
+
export { AnalyzedWorkspace, BiomeSchemaSync, type BiomeSchemaSyncShape, BiomeSyncError, type BiomeSyncOptions, type BiomeSyncResult, ChangesetConfig, ChangesetConfigError, type ChangesetConfigFile, ChangesetConfigReader, type ChangesetConfigReaderShape, type ChangesetConfigShape, type ChangesetMode, index_d_exports as Changesets, index_d_exports$1 as Commitlint, type CommitlintPlugin, type CommitlintUserConfig, ConfigDiscovery, type ConfigDiscoveryOptions, type ConfigDiscoveryShape, type ConfigLocation, ConfigNotFoundError, type ConfigSource, index_d_exports$2 as Lint, type PromptConfig, type PromptSettings, PublishTargetBindingError, type PublishablePackage, type RawPackageJson, type RawPublishConfig, type RawPublishTargets, type RawTargetObject, type RawTargetValue, index_d_exports$3 as Repos, type RuleApplicability, type RuleConfigTuple, type RuleSeverity, type RulesConfig, SavvyBaseSection, SavvyHooksSection, type SilkChangesetConfigFile, SilkPublishConfig, SilkPublishability, SilkWorkspaceAnalyzer, type SilkWorkspaceAnalyzerShape, type TargetBinding, type TargetGroupBinding, type TargetsBinding, index_d_exports$4 as Turbo, WorkspaceAnalysis, WorkspaceAnalysisError, buildSchemaUrl, extractSemver, readTargetsBinding, savvyBasePreamble, savvyHooksHygiene, savvyToolSection };
|
|
9636
9647
|
//# sourceMappingURL=index.d.ts.map
|