@savvy-web/silk 3.15.2 → 4.0.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/bin/savvy-mcp.js +20 -0
- package/bin/savvy.js +20 -0
- package/changesets-changelog.cjs +838 -731
- package/changesets-changelog.d.cts +185 -113
- package/changesets-changelog.d.ts +185 -113
- package/changesets-changelog.js +840 -736
- package/changesets-markdownlint.cjs +813 -719
- package/changesets-markdownlint.d.cts +7 -9237
- package/changesets-markdownlint.d.ts +7 -9237
- package/changesets-markdownlint.js +826 -732
- package/lint.js +1 -1
- package/package.json +18 -14
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Context, Effect, FileSystem, Layer, Path, Schema } from "effect";
|
|
2
|
-
import
|
|
2
|
+
import "@effected/templates";
|
|
3
3
|
import { PublishabilityDetector, WorkspaceDiscovery, WorkspaceDiscoveryFailure, WorkspacePackage, WorkspaceSnapshotAtFailure, WorkspaceSnapshotWorktreeFailure, WorkspaceSnapshots, WorkspaceStateSnapshot, WorkspacesOptions } from "@effected/workspaces";
|
|
4
|
+
import { ChildProcessSpawner } from "effect/unstable/process";
|
|
4
5
|
import { Git } from "@effected/git";
|
|
5
6
|
import * as PlatformError from "effect/PlatformError";
|
|
6
|
-
import "@effected/templates";
|
|
7
7
|
import "@effected/commands";
|
|
8
8
|
//#region ../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts
|
|
9
9
|
// ## Interfaces
|
|
@@ -3301,7 +3301,107 @@ type Label = Label$1;
|
|
|
3301
3301
|
type Severity = Severity$1;
|
|
3302
3302
|
type Plugin<Tree extends Node$3 = Node$3, Option extends unknown = unknown> = (config?: [level: Label | Severity | boolean, option?: Option] | Label | Option | Severity) => ((tree: Tree, file: VFile, next: TransformCallback<Tree>) => undefined) | undefined;
|
|
3303
3303
|
//#endregion
|
|
3304
|
-
//#region
|
|
3304
|
+
//#region ../silk-core/dist/dev/pkg/index.d.ts
|
|
3305
|
+
//#endregion
|
|
3306
|
+
//#region src/errors/ChangesetConfigError.d.ts
|
|
3307
|
+
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 & {
|
|
3308
|
+
readonly _tag: "ChangesetConfigError";
|
|
3309
|
+
} & Readonly<A>;
|
|
3310
|
+
/**
|
|
3311
|
+
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
3312
|
+
*
|
|
3313
|
+
* @remarks
|
|
3314
|
+
* Returned by `ChangesetConfigReader.read` when the file is missing,
|
|
3315
|
+
* contains invalid JSON, or fails Effect Schema validation.
|
|
3316
|
+
*
|
|
3317
|
+
* @since 0.1.0
|
|
3318
|
+
* @public
|
|
3319
|
+
*/
|
|
3320
|
+
declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
3321
|
+
readonly path: string;
|
|
3322
|
+
readonly reason: string;
|
|
3323
|
+
}> {
|
|
3324
|
+
get message(): string;
|
|
3325
|
+
}
|
|
3326
|
+
//#endregion
|
|
3327
|
+
//#region src/schemas/VersioningSchemas.d.ts
|
|
3328
|
+
/**
|
|
3329
|
+
* Standard changesets configuration matching the `@changesets/config@4.0.0` spec.
|
|
3330
|
+
*
|
|
3331
|
+
* @remarks
|
|
3332
|
+
* Represents the parsed `.changeset/config.json` file. All fields are optional
|
|
3333
|
+
* to allow partial configs. Use {@link (SilkChangesetConfigFile:type)} when the Silk changelog
|
|
3334
|
+
* adapter is detected.
|
|
3335
|
+
*
|
|
3336
|
+
* @since 0.1.0
|
|
3337
|
+
*/
|
|
3338
|
+
/** @public */
|
|
3339
|
+
declare const ChangesetConfigFile: Schema.Struct<{
|
|
3340
|
+
readonly changelog: Schema.optional<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Unknown>, Schema.Literal<false>]>>;
|
|
3341
|
+
readonly commit: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.String, Schema.$Array<Schema.Unknown>]>>;
|
|
3342
|
+
readonly fixed: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
3343
|
+
readonly linked: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
3344
|
+
readonly access: Schema.optional<Schema.Literals<readonly ["public", "restricted"]>>;
|
|
3345
|
+
readonly baseBranch: Schema.optional<Schema.String>;
|
|
3346
|
+
readonly updateInternalDependencies: Schema.optional<Schema.Literals<readonly ["patch", "minor", "major"]>>;
|
|
3347
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3348
|
+
readonly privatePackages: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
3349
|
+
readonly tag: Schema.optional<Schema.Boolean>;
|
|
3350
|
+
readonly version: Schema.optional<Schema.Boolean>;
|
|
3351
|
+
}>, Schema.Literal<false>]>>;
|
|
3352
|
+
readonly prettier: Schema.optional<Schema.Boolean>;
|
|
3353
|
+
readonly changedFilePatterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3354
|
+
readonly bumpVersionsWithWorkspaceProtocolOnly: Schema.optional<Schema.Boolean>;
|
|
3355
|
+
readonly snapshot: Schema.optional<Schema.Struct<{
|
|
3356
|
+
readonly useCalculatedVersion: Schema.optional<Schema.Boolean>;
|
|
3357
|
+
readonly prereleaseTemplate: Schema.optional<Schema.String>;
|
|
3358
|
+
}>>;
|
|
3359
|
+
}>;
|
|
3360
|
+
/**
|
|
3361
|
+
* @since 0.1.0
|
|
3362
|
+
* @public
|
|
3363
|
+
*/
|
|
3364
|
+
type ChangesetConfigFile = typeof ChangesetConfigFile.Type;
|
|
3365
|
+
/**
|
|
3366
|
+
* Extended changeset config for repos using the `@savvy-web/changesets` changelog adapter.
|
|
3367
|
+
*
|
|
3368
|
+
* @remarks
|
|
3369
|
+
* Extends {@link (ChangesetConfigFile:type)} with a `_isSilk` marker flag that is automatically
|
|
3370
|
+
* set to `true`. Detected by `ChangesetConfigReader` when the `changelog` field
|
|
3371
|
+
* references `@savvy-web/changesets`.
|
|
3372
|
+
*
|
|
3373
|
+
* @since 0.1.0
|
|
3374
|
+
*/
|
|
3375
|
+
/** @public */
|
|
3376
|
+
declare const SilkChangesetConfigFile: Schema.Struct<{
|
|
3377
|
+
readonly changelog: Schema.optional<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Unknown>, Schema.Literal<false>]>>;
|
|
3378
|
+
readonly commit: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.String, Schema.$Array<Schema.Unknown>]>>;
|
|
3379
|
+
readonly fixed: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
3380
|
+
readonly linked: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
3381
|
+
readonly access: Schema.optional<Schema.Literals<readonly ["public", "restricted"]>>;
|
|
3382
|
+
readonly baseBranch: Schema.optional<Schema.String>;
|
|
3383
|
+
readonly updateInternalDependencies: Schema.optional<Schema.Literals<readonly ["patch", "minor", "major"]>>;
|
|
3384
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3385
|
+
readonly privatePackages: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
3386
|
+
readonly tag: Schema.optional<Schema.Boolean>;
|
|
3387
|
+
readonly version: Schema.optional<Schema.Boolean>;
|
|
3388
|
+
}>, Schema.Literal<false>]>>;
|
|
3389
|
+
readonly prettier: Schema.optional<Schema.Boolean>;
|
|
3390
|
+
readonly changedFilePatterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3391
|
+
readonly bumpVersionsWithWorkspaceProtocolOnly: Schema.optional<Schema.Boolean>;
|
|
3392
|
+
readonly snapshot: Schema.optional<Schema.Struct<{
|
|
3393
|
+
readonly useCalculatedVersion: Schema.optional<Schema.Boolean>;
|
|
3394
|
+
readonly prereleaseTemplate: Schema.optional<Schema.String>;
|
|
3395
|
+
}>>;
|
|
3396
|
+
readonly _isSilk: Schema.withConstructorDefault<Schema.withDecodingDefaultType<Schema.Boolean, never>>;
|
|
3397
|
+
}>;
|
|
3398
|
+
/**
|
|
3399
|
+
* @since 0.1.0
|
|
3400
|
+
* @public
|
|
3401
|
+
*/
|
|
3402
|
+
type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
3403
|
+
//#endregion
|
|
3404
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.6.0_effect@4.0.0-rc.115/node_modules/@effected/glob/index.d.ts
|
|
3305
3405
|
//#region src/GlobPattern.d.ts
|
|
3306
3406
|
declare const GlobPatternError_base: Schema.Class<GlobPatternError, Schema.TaggedStruct<"GlobPatternError", {
|
|
3307
3407
|
readonly pattern: Schema.String;
|
|
@@ -3322,7 +3422,7 @@ declare class GlobPatternError extends GlobPatternError_base {
|
|
|
3322
3422
|
get message(): string;
|
|
3323
3423
|
}
|
|
3324
3424
|
//#endregion
|
|
3325
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
3425
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.8.0_@effected+glob@0.6.0_effect@4.0.0-rc.115__effect@4.0.0-rc.115/node_modules/@effected/walker/index.d.ts
|
|
3326
3426
|
declare const DescendError_base: Schema.Class<DescendError, Schema.TaggedStruct<"DescendError", {
|
|
3327
3427
|
/** The glob pattern's source text. */
|
|
3328
3428
|
readonly pattern: Schema.String;
|
|
@@ -3661,6 +3761,40 @@ declare class Categories {
|
|
|
3661
3761
|
static isValidHeading(heading: string): boolean;
|
|
3662
3762
|
}
|
|
3663
3763
|
//#endregion
|
|
3764
|
+
//#region src/changesets/utils/logger.d.ts
|
|
3765
|
+
/**
|
|
3766
|
+
* How changelog warnings are emitted.
|
|
3767
|
+
*
|
|
3768
|
+
* - `"stderr"` — `console.warn(message, ...args)` (the default).
|
|
3769
|
+
* - `"github"` — a `::warning::` workflow annotation that surfaces in the
|
|
3770
|
+
* GitHub Actions UI.
|
|
3771
|
+
* - `"silent"` — discarded; the mode a test runner provides.
|
|
3772
|
+
*
|
|
3773
|
+
* @public
|
|
3774
|
+
*/
|
|
3775
|
+
type ChangesetLogModeValue = "silent" | "github" | "stderr";
|
|
3776
|
+
/**
|
|
3777
|
+
* The reference that selects the {@link ChangesetLogModeValue}.
|
|
3778
|
+
*
|
|
3779
|
+
* @remarks
|
|
3780
|
+
* Defaults to `"stderr"` when no front end provides it, so a program that
|
|
3781
|
+
* never touches the reference still reports. Provide with
|
|
3782
|
+
* `Layer.succeed(ChangesetLogMode, "github")` or
|
|
3783
|
+
* `Effect.provideService(ChangesetLogMode, "silent")`.
|
|
3784
|
+
*
|
|
3785
|
+
* @example
|
|
3786
|
+
* ```typescript
|
|
3787
|
+
* import { Effect } from "effect";
|
|
3788
|
+
* import { Changesets } from "\@savvy-web/silk-effects";
|
|
3789
|
+
*
|
|
3790
|
+
* const mode = process.env.GITHUB_ACTIONS === "true" ? "github" : "stderr";
|
|
3791
|
+
* program.pipe(Effect.provideService(Changesets.ChangesetLogMode, mode));
|
|
3792
|
+
* ```
|
|
3793
|
+
*
|
|
3794
|
+
* @public
|
|
3795
|
+
*/
|
|
3796
|
+
declare const ChangesetLogMode: Context.Reference<ChangesetLogModeValue>;
|
|
3797
|
+
//#endregion
|
|
3664
3798
|
//#region ../../node_modules/.pnpm/@changesets+types@7.0.0/node_modules/@changesets/types/dist/index.d.mts
|
|
3665
3799
|
//#region src/index.d.ts
|
|
3666
3800
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -3885,9 +4019,12 @@ declare class Changelog {
|
|
|
3885
4019
|
* @param versionType - The semantic version bump type (`"major"`, `"minor"`, or `"patch"`)
|
|
3886
4020
|
* @param options - Configuration object; must include `repo` in `"owner/repo"` format.
|
|
3887
4021
|
* Pass `null` to use defaults (no GitHub link resolution).
|
|
4022
|
+
* @param logMode - How a failed GitHub lookup is reported (`"stderr"` when omitted);
|
|
4023
|
+
* the host reads its own environment and passes `"github"` / `"silent"` — this
|
|
4024
|
+
* engine never does. See `ChangesetLogMode`.
|
|
3888
4025
|
* @returns A promise resolving to the formatted markdown string
|
|
3889
4026
|
*/
|
|
3890
|
-
static formatReleaseLine(changeset: NewChangesetWithCommit, versionType: VersionType$1, options: Record<string, unknown> | null): Promise<string>;
|
|
4027
|
+
static formatReleaseLine(changeset: NewChangesetWithCommit, versionType: VersionType$1, options: Record<string, unknown> | null, logMode?: ChangesetLogModeValue): Promise<string>;
|
|
3891
4028
|
/**
|
|
3892
4029
|
* Format dependency update release lines into a markdown table.
|
|
3893
4030
|
*
|
|
@@ -3901,10 +4038,12 @@ declare class Changelog {
|
|
|
3901
4038
|
* old/new versions and package metadata
|
|
3902
4039
|
* @param options - Configuration object; must include `repo` in `"owner/repo"` format.
|
|
3903
4040
|
* Pass `null` to use defaults.
|
|
4041
|
+
* @param logMode - How a failed GitHub lookup is reported (`"stderr"` when omitted);
|
|
4042
|
+
* see {@link Changelog.formatReleaseLine}.
|
|
3904
4043
|
* @returns A promise resolving to the formatted markdown string containing
|
|
3905
4044
|
* the dependency update table
|
|
3906
4045
|
*/
|
|
3907
|
-
static formatDependencyReleaseLine(changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], options: Record<string, unknown> | null): Promise<string>;
|
|
4046
|
+
static formatDependencyReleaseLine(changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], options: Record<string, unknown> | null, logMode?: ChangesetLogModeValue): Promise<string>;
|
|
3908
4047
|
}
|
|
3909
4048
|
//#endregion
|
|
3910
4049
|
//#region ../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts
|
|
@@ -5707,12 +5846,43 @@ declare class ChangelogTransformer {
|
|
|
5707
5846
|
//#endregion
|
|
5708
5847
|
//#region src/changesets/changelog/index.d.ts
|
|
5709
5848
|
/**
|
|
5710
|
-
*
|
|
5849
|
+
* Options for {@link makeChangelogFunctions}.
|
|
5711
5850
|
*
|
|
5712
|
-
*
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5851
|
+
* @public
|
|
5852
|
+
*/
|
|
5853
|
+
interface MakeChangelogFunctionsOptions {
|
|
5854
|
+
/**
|
|
5855
|
+
* How warnings are emitted. Omit to leave the {@link ChangesetLogMode}
|
|
5856
|
+
* default (`"stderr"`) in force.
|
|
5857
|
+
*/
|
|
5858
|
+
readonly logMode?: ChangesetLogModeValue | undefined;
|
|
5859
|
+
}
|
|
5860
|
+
/**
|
|
5861
|
+
* Build a Changesets `ChangelogFunctions` implementation bound to a warning
|
|
5862
|
+
* mode.
|
|
5863
|
+
*
|
|
5864
|
+
* @remarks
|
|
5865
|
+
* This module is engine code and reads no environment; the host that installs
|
|
5866
|
+
* the functions (the `\@savvy-web/changelog` package under the changesets CLI)
|
|
5867
|
+
* decides the mode from its own `process.env` and passes it here. Each method
|
|
5868
|
+
* validates options, runs the corresponding Effect program with the merged
|
|
5869
|
+
* service layer and the chosen {@link ChangesetLogMode}, and returns a
|
|
5870
|
+
* `Promise<string>`.
|
|
5871
|
+
*
|
|
5872
|
+
* @param options - The warning mode to provide
|
|
5873
|
+
* @returns A `ChangelogFunctions` object for `.changeset/config.json`
|
|
5874
|
+
*
|
|
5875
|
+
* @public
|
|
5876
|
+
*/
|
|
5877
|
+
declare function makeChangelogFunctions(options?: MakeChangelogFunctionsOptions): ChangelogFunctions;
|
|
5878
|
+
/**
|
|
5879
|
+
* Changesets API `ChangelogFunctions` implementation with the default warning
|
|
5880
|
+
* mode (`"stderr"`).
|
|
5881
|
+
*
|
|
5882
|
+
* @remarks
|
|
5883
|
+
* Equivalent to `makeChangelogFunctions()`. A host that runs under GitHub
|
|
5884
|
+
* Actions or a test runner should call {@link makeChangelogFunctions} with the
|
|
5885
|
+
* mode it detects instead.
|
|
5716
5886
|
*
|
|
5717
5887
|
* @internal
|
|
5718
5888
|
*/
|
|
@@ -6161,104 +6331,6 @@ declare class ReleasePlanError extends ReleasePlanErrorBase<{
|
|
|
6161
6331
|
get message(): string;
|
|
6162
6332
|
}
|
|
6163
6333
|
//#endregion
|
|
6164
|
-
//#region src/errors/ChangesetConfigError.d.ts
|
|
6165
|
-
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 & {
|
|
6166
|
-
readonly _tag: "ChangesetConfigError";
|
|
6167
|
-
} & Readonly<A>;
|
|
6168
|
-
/**
|
|
6169
|
-
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
6170
|
-
*
|
|
6171
|
-
* @remarks
|
|
6172
|
-
* Returned by `ChangesetConfigReader.read` when the file is missing,
|
|
6173
|
-
* contains invalid JSON, or fails Effect Schema validation.
|
|
6174
|
-
*
|
|
6175
|
-
* @since 0.1.0
|
|
6176
|
-
* @public
|
|
6177
|
-
*/
|
|
6178
|
-
declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
6179
|
-
readonly path: string;
|
|
6180
|
-
readonly reason: string;
|
|
6181
|
-
}> {
|
|
6182
|
-
get message(): string;
|
|
6183
|
-
}
|
|
6184
|
-
//#endregion
|
|
6185
|
-
//#region src/schemas/VersioningSchemas.d.ts
|
|
6186
|
-
/**
|
|
6187
|
-
* Standard changesets configuration matching the `@changesets/config@4.0.0` spec.
|
|
6188
|
-
*
|
|
6189
|
-
* @remarks
|
|
6190
|
-
* Represents the parsed `.changeset/config.json` file. All fields are optional
|
|
6191
|
-
* to allow partial configs. Use {@link (SilkChangesetConfigFile:type)} when the Silk changelog
|
|
6192
|
-
* adapter is detected.
|
|
6193
|
-
*
|
|
6194
|
-
* @since 0.1.0
|
|
6195
|
-
*/
|
|
6196
|
-
/** @public */
|
|
6197
|
-
declare const ChangesetConfigFile: Schema.Struct<{
|
|
6198
|
-
readonly changelog: Schema.optional<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Unknown>, Schema.Literal<false>]>>;
|
|
6199
|
-
readonly commit: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.String, Schema.$Array<Schema.Unknown>]>>;
|
|
6200
|
-
readonly fixed: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
6201
|
-
readonly linked: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
6202
|
-
readonly access: Schema.optional<Schema.Literals<readonly ["public", "restricted"]>>;
|
|
6203
|
-
readonly baseBranch: Schema.optional<Schema.String>;
|
|
6204
|
-
readonly updateInternalDependencies: Schema.optional<Schema.Literals<readonly ["patch", "minor", "major"]>>;
|
|
6205
|
-
readonly ignore: Schema.optional<Schema.$Array<Schema.String>>;
|
|
6206
|
-
readonly privatePackages: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
6207
|
-
readonly tag: Schema.optional<Schema.Boolean>;
|
|
6208
|
-
readonly version: Schema.optional<Schema.Boolean>;
|
|
6209
|
-
}>, Schema.Literal<false>]>>;
|
|
6210
|
-
readonly prettier: Schema.optional<Schema.Boolean>;
|
|
6211
|
-
readonly changedFilePatterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
6212
|
-
readonly bumpVersionsWithWorkspaceProtocolOnly: Schema.optional<Schema.Boolean>;
|
|
6213
|
-
readonly snapshot: Schema.optional<Schema.Struct<{
|
|
6214
|
-
readonly useCalculatedVersion: Schema.optional<Schema.Boolean>;
|
|
6215
|
-
readonly prereleaseTemplate: Schema.optional<Schema.String>;
|
|
6216
|
-
}>>;
|
|
6217
|
-
}>;
|
|
6218
|
-
/**
|
|
6219
|
-
* @since 0.1.0
|
|
6220
|
-
* @public
|
|
6221
|
-
*/
|
|
6222
|
-
type ChangesetConfigFile = typeof ChangesetConfigFile.Type;
|
|
6223
|
-
/**
|
|
6224
|
-
* Extended changeset config for repos using the `@savvy-web/changesets` changelog adapter.
|
|
6225
|
-
*
|
|
6226
|
-
* @remarks
|
|
6227
|
-
* Extends {@link (ChangesetConfigFile:type)} with a `_isSilk` marker flag that is automatically
|
|
6228
|
-
* set to `true`. Detected by {@link ChangesetConfigReader} when the `changelog` field
|
|
6229
|
-
* references `@savvy-web/changesets`.
|
|
6230
|
-
*
|
|
6231
|
-
* @since 0.1.0
|
|
6232
|
-
*/
|
|
6233
|
-
/** @public */
|
|
6234
|
-
declare const SilkChangesetConfigFile: Schema.Struct<{
|
|
6235
|
-
readonly changelog: Schema.optional<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Unknown>, Schema.Literal<false>]>>;
|
|
6236
|
-
readonly commit: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.String, Schema.$Array<Schema.Unknown>]>>;
|
|
6237
|
-
readonly fixed: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
6238
|
-
readonly linked: Schema.optional<Schema.$Array<Schema.$Array<Schema.String>>>;
|
|
6239
|
-
readonly access: Schema.optional<Schema.Literals<readonly ["public", "restricted"]>>;
|
|
6240
|
-
readonly baseBranch: Schema.optional<Schema.String>;
|
|
6241
|
-
readonly updateInternalDependencies: Schema.optional<Schema.Literals<readonly ["patch", "minor", "major"]>>;
|
|
6242
|
-
readonly ignore: Schema.optional<Schema.$Array<Schema.String>>;
|
|
6243
|
-
readonly privatePackages: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
6244
|
-
readonly tag: Schema.optional<Schema.Boolean>;
|
|
6245
|
-
readonly version: Schema.optional<Schema.Boolean>;
|
|
6246
|
-
}>, Schema.Literal<false>]>>;
|
|
6247
|
-
readonly prettier: Schema.optional<Schema.Boolean>;
|
|
6248
|
-
readonly changedFilePatterns: Schema.optional<Schema.$Array<Schema.String>>;
|
|
6249
|
-
readonly bumpVersionsWithWorkspaceProtocolOnly: Schema.optional<Schema.Boolean>;
|
|
6250
|
-
readonly snapshot: Schema.optional<Schema.Struct<{
|
|
6251
|
-
readonly useCalculatedVersion: Schema.optional<Schema.Boolean>;
|
|
6252
|
-
readonly prereleaseTemplate: Schema.optional<Schema.String>;
|
|
6253
|
-
}>>;
|
|
6254
|
-
readonly _isSilk: Schema.withConstructorDefault<Schema.withDecodingDefaultType<Schema.Boolean, never>>;
|
|
6255
|
-
}>;
|
|
6256
|
-
/**
|
|
6257
|
-
* @since 0.1.0
|
|
6258
|
-
* @public
|
|
6259
|
-
*/
|
|
6260
|
-
type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
6261
|
-
//#endregion
|
|
6262
6334
|
//#region src/services/ChangesetConfigReader.d.ts
|
|
6263
6335
|
/**
|
|
6264
6336
|
* The {@link ChangesetConfigReader} service shape.
|
|
@@ -6271,7 +6343,7 @@ interface ChangesetConfigReaderShape {
|
|
|
6271
6343
|
* Read and decode `.changeset/config.json` from the given workspace root.
|
|
6272
6344
|
*
|
|
6273
6345
|
* @param root - Absolute path to the workspace root containing the `.changeset/` directory.
|
|
6274
|
-
* @returns An `Effect` that succeeds with the decoded config or fails with
|
|
6346
|
+
* @returns An `Effect` that succeeds with the decoded config or fails with `ChangesetConfigError`.
|
|
6275
6347
|
*
|
|
6276
6348
|
* @since 0.1.0
|
|
6277
6349
|
*/
|
|
@@ -6283,8 +6355,8 @@ declare const ChangesetConfigReader_base: Context.ServiceClass<ChangesetConfigRe
|
|
|
6283
6355
|
*
|
|
6284
6356
|
* @remarks
|
|
6285
6357
|
* Automatically detects whether the config uses the Silk changelog adapter
|
|
6286
|
-
* (`@savvy-web/changesets`) and decodes as
|
|
6287
|
-
* standard
|
|
6358
|
+
* (`@savvy-web/changesets`) and decodes as `SilkChangesetConfigFile` or the
|
|
6359
|
+
* standard `ChangesetConfigFile` accordingly.
|
|
6288
6360
|
*
|
|
6289
6361
|
* @example
|
|
6290
6362
|
* ```typescript
|
|
@@ -9226,7 +9298,7 @@ declare const RequiredSectionsRule: Plugin<Root, unknown>;
|
|
|
9226
9298
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
9227
9299
|
declare const UncategorizedContentRule: Plugin<Root, unknown>;
|
|
9228
9300
|
declare namespace index_d_exports {
|
|
9229
|
-
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, CoexistingChangeset, CoexistingChangesetSchema, 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, RegenDiffRow, RegenDiffRowSchema, RegenPlan, RegenPlanSchema, RegenResult, RegenResultSchema, 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$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
|
|
9301
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetLogMode, ChangesetLogModeValue, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CoexistingChangesetSchema, 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, MakeChangelogFunctionsOptions, 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, RegenDiffRow, RegenDiffRowSchema, RegenPlan, RegenPlanSchema, RegenResult, RegenResultSchema, 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$1 as changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeChangelogFunctions, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
|
|
9230
9302
|
}
|
|
9231
9303
|
//#endregion
|
|
9232
9304
|
//#region src/changesets/changelog.d.ts
|