@savvy-web/silk 3.7.3 → 3.7.4
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-changelog.cjs +302 -100
- package/changesets-changelog.d.cts +105 -12
- package/changesets-changelog.d.ts +105 -12
- package/changesets-changelog.js +303 -100
- package/changesets-markdownlint.cjs +302 -100
- package/changesets-markdownlint.d.cts +105 -12
- package/changesets-markdownlint.d.ts +105 -12
- package/changesets-markdownlint.js +303 -100
- package/package.json +4 -4
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -3298,7 +3298,7 @@ type Label = Label$1;
|
|
|
3298
3298
|
type Severity = Severity$1;
|
|
3299
3299
|
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;
|
|
3300
3300
|
//#endregion
|
|
3301
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
3301
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/index.d.ts
|
|
3302
3302
|
//#region src/Git.d.ts
|
|
3303
3303
|
declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedStruct<"GitCommandError", {
|
|
3304
3304
|
/**
|
|
@@ -3751,8 +3751,28 @@ interface GitShape {
|
|
|
3751
3751
|
}) => Effect.Effect<ReadonlyArray<LsTreeEntry>, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3752
3752
|
/** `git cat-file -e <ref>` — whether `ref` resolves to an existing object. */
|
|
3753
3753
|
readonly refExists: (cwd: string, ref: string) => Effect.Effect<boolean, GitCommandError | NotARepositoryError>;
|
|
3754
|
-
/**
|
|
3754
|
+
/**
|
|
3755
|
+
* `git merge-base <a> <b>` — the best common ancestor commit, trimmed.
|
|
3756
|
+
* For when absence is EXCEPTIONAL: two refs with no common ancestor fail
|
|
3757
|
+
* loudly as `GitCommandError` (git's silent exit 1 rides the generic
|
|
3758
|
+
* failure arm). When "no common ancestor" is a legitimate answer at your
|
|
3759
|
+
* call site — a reachability probe — use `mergeBaseOption` instead.
|
|
3760
|
+
*/
|
|
3755
3761
|
readonly mergeBase: (cwd: string, a: string, b: string) => Effect.Effect<string, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3762
|
+
/**
|
|
3763
|
+
* `git merge-base <a> <b>` — the best common ancestor commit, trimmed, as
|
|
3764
|
+
* a PROBE: two refs with no common ancestor (disjoint histories — a
|
|
3765
|
+
* grafted CI clone, an orphan branch) answer `Option.none`, never an
|
|
3766
|
+
* error, because git signals that case as a silent exit 1. An unknown ref
|
|
3767
|
+
* is still a real failure (`UnknownRefError`), and a noisy exit 1 stays a
|
|
3768
|
+
* loud `GitCommandError`. The sibling of `mergeBase`, which fails loudly
|
|
3769
|
+
* when the ancestor is absent.
|
|
3770
|
+
*
|
|
3771
|
+
* The value is a plain sha string — no decode or brand step. A caller
|
|
3772
|
+
* that only wants reachability ("do these histories connect?") reads the
|
|
3773
|
+
* boolean directly: `Option.isSome(yield* git.mergeBaseOption(cwd, a, b))`.
|
|
3774
|
+
*/
|
|
3775
|
+
readonly mergeBaseOption: (cwd: string, a: string, b: string) => Effect.Effect<Option.Option<string>, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3756
3776
|
/**
|
|
3757
3777
|
* `git diff --name-only -z [--relative] <base>...<head>` — the paths that
|
|
3758
3778
|
* differ. Pass `relative: true` to report paths relative to `cwd` and
|
|
@@ -3789,18 +3809,33 @@ interface GitShape {
|
|
|
3789
3809
|
readonly detach?: boolean;
|
|
3790
3810
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3791
3811
|
/**
|
|
3792
|
-
* Mutating: `git fetch [--depth <n>] <remote> [tag] <ref>` —
|
|
3793
|
-
* `options.ref` from `options.remote` (default `origin`) into the
|
|
3794
|
-
* object database, optionally shallow (`options.depth`)
|
|
3795
|
-
* (`options.tag`). A ref the remote
|
|
3796
|
-
* `UnknownRefError` — the typed signal a
|
|
3797
|
-
* can branch on.
|
|
3812
|
+
* Mutating: `git fetch [--depth <n>] [--unshallow] <remote> [tag] <ref>` —
|
|
3813
|
+
* fetches `options.ref` from `options.remote` (default `origin`) into the
|
|
3814
|
+
* local object database, optionally shallow (`options.depth`), unshallowing
|
|
3815
|
+
* (`options.unshallow`), and/or as a tag (`options.tag`). A ref the remote
|
|
3816
|
+
* does not have surfaces as `UnknownRefError` — the typed signal a
|
|
3817
|
+
* tag-then-branch fetch fallback can branch on.
|
|
3818
|
+
*
|
|
3819
|
+
* `options.ref` also accepts a full refspec (`src:dst`, optionally
|
|
3820
|
+
* `+`-prefixed), passed through verbatim — never guessed at or
|
|
3821
|
+
* transformed. Under a single-branch clone (`actions/checkout`'s default
|
|
3822
|
+
* `fetch-depth: 1` shape) a bare-ref fetch updates only `FETCH_HEAD` and
|
|
3823
|
+
* never creates the remote-tracking ref, so
|
|
3824
|
+
* `+refs/heads/<b>:refs/remotes/origin/<b>` is the spelling that
|
|
3825
|
+
* materializes `origin/<b>`.
|
|
3826
|
+
*
|
|
3827
|
+
* `options.unshallow` follows `fetchUnshallow`'s caller-guards rule: git
|
|
3828
|
+
* rejects `--unshallow` in a non-shallow repository (a loud
|
|
3829
|
+
* `GitCommandError`, deliberately untolerated) — probe with `isShallow`
|
|
3830
|
+
* first. Combining it with `options.depth` is refused typed, pre-spawn,
|
|
3831
|
+
* exactly as git itself would reject the pair.
|
|
3798
3832
|
*/
|
|
3799
3833
|
readonly fetch: (cwd: string, options: {
|
|
3800
3834
|
readonly ref: string;
|
|
3801
3835
|
readonly remote?: string;
|
|
3802
3836
|
readonly depth?: number;
|
|
3803
3837
|
readonly tag?: boolean;
|
|
3838
|
+
readonly unshallow?: boolean;
|
|
3804
3839
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3805
3840
|
/**
|
|
3806
3841
|
* Mutating: fetches `options.ref` from `options.remote` (default
|
|
@@ -3856,6 +3891,11 @@ interface GitShape {
|
|
|
3856
3891
|
* a reset that silently did nothing would hand a retry of a
|
|
3857
3892
|
* non-idempotent operation the same dirty tree. `mode` defaults to
|
|
3858
3893
|
* `"mixed"` (git's own default), emitted explicitly in the argv.
|
|
3894
|
+
*
|
|
3895
|
+
* `mode: "hard"` is destructive and legitimately reached for: after
|
|
3896
|
+
* committing through an out-of-band channel (e.g. the GitHub Data API,
|
|
3897
|
+
* which writes the commit server-side), `reset --hard origin/<branch>`
|
|
3898
|
+
* is how the local tree is synchronized to the commit it never made.
|
|
3859
3899
|
*/
|
|
3860
3900
|
readonly reset: (cwd: string, options?: {
|
|
3861
3901
|
readonly mode?: "soft" | "mixed" | "hard";
|
|
@@ -3929,15 +3969,30 @@ interface GitShape {
|
|
|
3929
3969
|
readonly force?: boolean;
|
|
3930
3970
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3931
3971
|
/**
|
|
3932
|
-
* Mutating:
|
|
3972
|
+
* Mutating:
|
|
3973
|
+
* `git submodule update [--init] [--checkout] [--remote] [--no-fetch] [--recursive] [--force] [--depth <n>] [-- <paths>...]`
|
|
3933
3974
|
* — updates registered submodules in the working tree, optionally
|
|
3934
3975
|
* initializing them (`options.init`), with an optional depth limit and
|
|
3935
3976
|
* scoped to `options.paths`.
|
|
3977
|
+
*
|
|
3978
|
+
* `options.checkout` is the documented override for a
|
|
3979
|
+
* `submodule.<name>.update = none` configuration — without it, updating
|
|
3980
|
+
* such a submodule silently no-ops (git reports success and checks out
|
|
3981
|
+
* nothing). `options.fetch` accepts only the literal `false` (emitting
|
|
3982
|
+
* `--no-fetch`): the default already fetches and git has no positive
|
|
3983
|
+
* spelling. `options.remote` tracks the remote branch's tip instead of
|
|
3984
|
+
* the recorded sha; `options.recursive` descends into nested submodules;
|
|
3985
|
+
* `options.force` discards local changes in the submodule working tree.
|
|
3936
3986
|
*/
|
|
3937
3987
|
readonly submoduleUpdate: (cwd: string, options?: {
|
|
3938
3988
|
readonly init?: boolean;
|
|
3939
3989
|
readonly depth?: number;
|
|
3940
3990
|
readonly paths?: ReadonlyArray<string>;
|
|
3991
|
+
readonly checkout?: boolean;
|
|
3992
|
+
readonly remote?: boolean;
|
|
3993
|
+
readonly fetch?: false;
|
|
3994
|
+
readonly recursive?: boolean;
|
|
3995
|
+
readonly force?: boolean;
|
|
3941
3996
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3942
3997
|
/**
|
|
3943
3998
|
* Mutating: `git submodule add [--depth <n>] -- <url> <path>` —
|
|
@@ -4310,6 +4365,28 @@ interface GitShape {
|
|
|
4310
4365
|
readonly file?: string;
|
|
4311
4366
|
readonly all?: boolean;
|
|
4312
4367
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4368
|
+
/**
|
|
4369
|
+
* Mutating: `git config [-f <file>] --remove-section <section>` — removes
|
|
4370
|
+
* a whole configuration section (every key under it, and the header) from
|
|
4371
|
+
* the live config, or from `options.file`. The section-level sibling of
|
|
4372
|
+
* `configUnset` — clearing a stale `submodule.<name>` registration is one
|
|
4373
|
+
* invocation instead of a key-by-key probe-and-unset. Removing a section
|
|
4374
|
+
* that does not exist fails LOUDLY (git exits 128,
|
|
4375
|
+
* `fatal: no such section`) — the `configUnset` posture; probe with
|
|
4376
|
+
* `configList` first when idempotency is wanted.
|
|
4377
|
+
*/
|
|
4378
|
+
readonly configRemoveSection: (cwd: string, section: string, options?: {
|
|
4379
|
+
readonly file?: string;
|
|
4380
|
+
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4381
|
+
/**
|
|
4382
|
+
* Mutating: `git config [-f <file>] --rename-section <old> <new>` —
|
|
4383
|
+
* renames a configuration section, carrying every key under it across.
|
|
4384
|
+
* Renaming a section that does not exist fails LOUDLY (git exits 128,
|
|
4385
|
+
* `fatal: no such section`) — the same posture as `configRemoveSection`.
|
|
4386
|
+
*/
|
|
4387
|
+
readonly configRenameSection: (cwd: string, oldName: string, newName: string, options?: {
|
|
4388
|
+
readonly file?: string;
|
|
4389
|
+
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4313
4390
|
/**
|
|
4314
4391
|
* Mutating: `git rm [--cached] [-r] [--force] -- <paths...>` — removes
|
|
4315
4392
|
* `paths` from the index and (without `options.cached`) the working tree.
|
|
@@ -6162,7 +6239,7 @@ declare class LockfileIntegrity extends LockfileIntegrity_base {
|
|
|
6162
6239
|
static compare(lockfile: Lockfile, manifests: ReadonlyArray<WorkspaceManifest>): LockfileIntegrity;
|
|
6163
6240
|
}
|
|
6164
6241
|
//#endregion
|
|
6165
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
6242
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/index.d.ts
|
|
6166
6243
|
//#region src/Dependency.d.ts
|
|
6167
6244
|
declare const Dependency_base: Schema.Class<Dependency, Schema.Struct<{
|
|
6168
6245
|
/** The package name. */
|
|
@@ -6744,7 +6821,7 @@ declare class Package extends Package_base {
|
|
|
6744
6821
|
toJsonString(options?: PackageFormatOptions): string;
|
|
6745
6822
|
}
|
|
6746
6823
|
//#endregion
|
|
6747
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
6824
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.13.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/workspaces/index.d.ts
|
|
6748
6825
|
//#region src/WorkspacePackage.d.ts
|
|
6749
6826
|
declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
|
|
6750
6827
|
/** Scoped-package visibility. Its presence overrides `private`. */
|
|
@@ -7571,6 +7648,8 @@ declare const DetectedPackageManager_base: Schema.Class<DetectedPackageManager,
|
|
|
7571
7648
|
readonly version: Schema.Option<Schema.String>;
|
|
7572
7649
|
/** The JavaScript runtime the manager implies. */
|
|
7573
7650
|
readonly runtime: Schema.Literals<readonly ["node", "bun"]>;
|
|
7651
|
+
/** The rung of the priority order that decided the name. */
|
|
7652
|
+
readonly evidence: Schema.Literals<readonly ["pnpm-workspace.yaml", "bun.lock", "bun.lockb", "yarn.lock", "package.json#workspaces", "pnpm-lock.yaml", "package-lock.json", "package.json#devEngines.packageManager", "package.json#packageManager"]>;
|
|
7574
7653
|
}>, {}>;
|
|
7575
7654
|
/**
|
|
7576
7655
|
* The outcome of package-manager detection at a workspace root.
|
|
@@ -7583,6 +7662,15 @@ declare const DetectedPackageManager_base: Schema.Class<DetectedPackageManager,
|
|
|
7583
7662
|
* `devEngines.packageManager`; see {@link PackageManagerDetector} for the
|
|
7584
7663
|
* precedence between them.
|
|
7585
7664
|
*
|
|
7665
|
+
* `evidence` is the rung of the priority order that decided the **name** — the
|
|
7666
|
+
* verdict's provenance, in the same vocabulary the failure path reports as
|
|
7667
|
+
* `PackageManagerDetectionError.checked`. For the bun and yarn rungs the
|
|
7668
|
+
* lockfile is the recorded signal even though the rung is a conjunction (the
|
|
7669
|
+
* lockfile *plus* a manifest field naming the manager): the manifest field alone
|
|
7670
|
+
* would have resolved in the declaration tier, so the lockfile is what this rung
|
|
7671
|
+
* added. The version's provenance is deliberately not carried — it follows the
|
|
7672
|
+
* two-field precedence above, which is a rule, not a probe.
|
|
7673
|
+
*
|
|
7586
7674
|
* @public
|
|
7587
7675
|
*/
|
|
7588
7676
|
declare class DetectedPackageManager extends DetectedPackageManager_base {}
|
|
@@ -7704,7 +7792,12 @@ declare class PackageManagerDetector extends PackageManagerDetector_base {
|
|
|
7704
7792
|
* const TestDetector = PackageManagerDetector.layerTest({
|
|
7705
7793
|
* detect: () =>
|
|
7706
7794
|
* Effect.succeed(
|
|
7707
|
-
* DetectedPackageManager.make({
|
|
7795
|
+
* DetectedPackageManager.make({
|
|
7796
|
+
* name: "pnpm",
|
|
7797
|
+
* version: Option.none(),
|
|
7798
|
+
* runtime: "node",
|
|
7799
|
+
* evidence: "pnpm-workspace.yaml",
|
|
7800
|
+
* }),
|
|
7708
7801
|
* ),
|
|
7709
7802
|
* });
|
|
7710
7803
|
* ```
|
|
@@ -3298,7 +3298,7 @@ type Label = Label$1;
|
|
|
3298
3298
|
type Severity = Severity$1;
|
|
3299
3299
|
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;
|
|
3300
3300
|
//#endregion
|
|
3301
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
3301
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/index.d.ts
|
|
3302
3302
|
//#region src/Git.d.ts
|
|
3303
3303
|
declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedStruct<"GitCommandError", {
|
|
3304
3304
|
/**
|
|
@@ -3751,8 +3751,28 @@ interface GitShape {
|
|
|
3751
3751
|
}) => Effect.Effect<ReadonlyArray<LsTreeEntry>, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3752
3752
|
/** `git cat-file -e <ref>` — whether `ref` resolves to an existing object. */
|
|
3753
3753
|
readonly refExists: (cwd: string, ref: string) => Effect.Effect<boolean, GitCommandError | NotARepositoryError>;
|
|
3754
|
-
/**
|
|
3754
|
+
/**
|
|
3755
|
+
* `git merge-base <a> <b>` — the best common ancestor commit, trimmed.
|
|
3756
|
+
* For when absence is EXCEPTIONAL: two refs with no common ancestor fail
|
|
3757
|
+
* loudly as `GitCommandError` (git's silent exit 1 rides the generic
|
|
3758
|
+
* failure arm). When "no common ancestor" is a legitimate answer at your
|
|
3759
|
+
* call site — a reachability probe — use `mergeBaseOption` instead.
|
|
3760
|
+
*/
|
|
3755
3761
|
readonly mergeBase: (cwd: string, a: string, b: string) => Effect.Effect<string, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3762
|
+
/**
|
|
3763
|
+
* `git merge-base <a> <b>` — the best common ancestor commit, trimmed, as
|
|
3764
|
+
* a PROBE: two refs with no common ancestor (disjoint histories — a
|
|
3765
|
+
* grafted CI clone, an orphan branch) answer `Option.none`, never an
|
|
3766
|
+
* error, because git signals that case as a silent exit 1. An unknown ref
|
|
3767
|
+
* is still a real failure (`UnknownRefError`), and a noisy exit 1 stays a
|
|
3768
|
+
* loud `GitCommandError`. The sibling of `mergeBase`, which fails loudly
|
|
3769
|
+
* when the ancestor is absent.
|
|
3770
|
+
*
|
|
3771
|
+
* The value is a plain sha string — no decode or brand step. A caller
|
|
3772
|
+
* that only wants reachability ("do these histories connect?") reads the
|
|
3773
|
+
* boolean directly: `Option.isSome(yield* git.mergeBaseOption(cwd, a, b))`.
|
|
3774
|
+
*/
|
|
3775
|
+
readonly mergeBaseOption: (cwd: string, a: string, b: string) => Effect.Effect<Option.Option<string>, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3756
3776
|
/**
|
|
3757
3777
|
* `git diff --name-only -z [--relative] <base>...<head>` — the paths that
|
|
3758
3778
|
* differ. Pass `relative: true` to report paths relative to `cwd` and
|
|
@@ -3789,18 +3809,33 @@ interface GitShape {
|
|
|
3789
3809
|
readonly detach?: boolean;
|
|
3790
3810
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3791
3811
|
/**
|
|
3792
|
-
* Mutating: `git fetch [--depth <n>] <remote> [tag] <ref>` —
|
|
3793
|
-
* `options.ref` from `options.remote` (default `origin`) into the
|
|
3794
|
-
* object database, optionally shallow (`options.depth`)
|
|
3795
|
-
* (`options.tag`). A ref the remote
|
|
3796
|
-
* `UnknownRefError` — the typed signal a
|
|
3797
|
-
* can branch on.
|
|
3812
|
+
* Mutating: `git fetch [--depth <n>] [--unshallow] <remote> [tag] <ref>` —
|
|
3813
|
+
* fetches `options.ref` from `options.remote` (default `origin`) into the
|
|
3814
|
+
* local object database, optionally shallow (`options.depth`), unshallowing
|
|
3815
|
+
* (`options.unshallow`), and/or as a tag (`options.tag`). A ref the remote
|
|
3816
|
+
* does not have surfaces as `UnknownRefError` — the typed signal a
|
|
3817
|
+
* tag-then-branch fetch fallback can branch on.
|
|
3818
|
+
*
|
|
3819
|
+
* `options.ref` also accepts a full refspec (`src:dst`, optionally
|
|
3820
|
+
* `+`-prefixed), passed through verbatim — never guessed at or
|
|
3821
|
+
* transformed. Under a single-branch clone (`actions/checkout`'s default
|
|
3822
|
+
* `fetch-depth: 1` shape) a bare-ref fetch updates only `FETCH_HEAD` and
|
|
3823
|
+
* never creates the remote-tracking ref, so
|
|
3824
|
+
* `+refs/heads/<b>:refs/remotes/origin/<b>` is the spelling that
|
|
3825
|
+
* materializes `origin/<b>`.
|
|
3826
|
+
*
|
|
3827
|
+
* `options.unshallow` follows `fetchUnshallow`'s caller-guards rule: git
|
|
3828
|
+
* rejects `--unshallow` in a non-shallow repository (a loud
|
|
3829
|
+
* `GitCommandError`, deliberately untolerated) — probe with `isShallow`
|
|
3830
|
+
* first. Combining it with `options.depth` is refused typed, pre-spawn,
|
|
3831
|
+
* exactly as git itself would reject the pair.
|
|
3798
3832
|
*/
|
|
3799
3833
|
readonly fetch: (cwd: string, options: {
|
|
3800
3834
|
readonly ref: string;
|
|
3801
3835
|
readonly remote?: string;
|
|
3802
3836
|
readonly depth?: number;
|
|
3803
3837
|
readonly tag?: boolean;
|
|
3838
|
+
readonly unshallow?: boolean;
|
|
3804
3839
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3805
3840
|
/**
|
|
3806
3841
|
* Mutating: fetches `options.ref` from `options.remote` (default
|
|
@@ -3856,6 +3891,11 @@ interface GitShape {
|
|
|
3856
3891
|
* a reset that silently did nothing would hand a retry of a
|
|
3857
3892
|
* non-idempotent operation the same dirty tree. `mode` defaults to
|
|
3858
3893
|
* `"mixed"` (git's own default), emitted explicitly in the argv.
|
|
3894
|
+
*
|
|
3895
|
+
* `mode: "hard"` is destructive and legitimately reached for: after
|
|
3896
|
+
* committing through an out-of-band channel (e.g. the GitHub Data API,
|
|
3897
|
+
* which writes the commit server-side), `reset --hard origin/<branch>`
|
|
3898
|
+
* is how the local tree is synchronized to the commit it never made.
|
|
3859
3899
|
*/
|
|
3860
3900
|
readonly reset: (cwd: string, options?: {
|
|
3861
3901
|
readonly mode?: "soft" | "mixed" | "hard";
|
|
@@ -3929,15 +3969,30 @@ interface GitShape {
|
|
|
3929
3969
|
readonly force?: boolean;
|
|
3930
3970
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3931
3971
|
/**
|
|
3932
|
-
* Mutating:
|
|
3972
|
+
* Mutating:
|
|
3973
|
+
* `git submodule update [--init] [--checkout] [--remote] [--no-fetch] [--recursive] [--force] [--depth <n>] [-- <paths>...]`
|
|
3933
3974
|
* — updates registered submodules in the working tree, optionally
|
|
3934
3975
|
* initializing them (`options.init`), with an optional depth limit and
|
|
3935
3976
|
* scoped to `options.paths`.
|
|
3977
|
+
*
|
|
3978
|
+
* `options.checkout` is the documented override for a
|
|
3979
|
+
* `submodule.<name>.update = none` configuration — without it, updating
|
|
3980
|
+
* such a submodule silently no-ops (git reports success and checks out
|
|
3981
|
+
* nothing). `options.fetch` accepts only the literal `false` (emitting
|
|
3982
|
+
* `--no-fetch`): the default already fetches and git has no positive
|
|
3983
|
+
* spelling. `options.remote` tracks the remote branch's tip instead of
|
|
3984
|
+
* the recorded sha; `options.recursive` descends into nested submodules;
|
|
3985
|
+
* `options.force` discards local changes in the submodule working tree.
|
|
3936
3986
|
*/
|
|
3937
3987
|
readonly submoduleUpdate: (cwd: string, options?: {
|
|
3938
3988
|
readonly init?: boolean;
|
|
3939
3989
|
readonly depth?: number;
|
|
3940
3990
|
readonly paths?: ReadonlyArray<string>;
|
|
3991
|
+
readonly checkout?: boolean;
|
|
3992
|
+
readonly remote?: boolean;
|
|
3993
|
+
readonly fetch?: false;
|
|
3994
|
+
readonly recursive?: boolean;
|
|
3995
|
+
readonly force?: boolean;
|
|
3941
3996
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
3942
3997
|
/**
|
|
3943
3998
|
* Mutating: `git submodule add [--depth <n>] -- <url> <path>` —
|
|
@@ -4310,6 +4365,28 @@ interface GitShape {
|
|
|
4310
4365
|
readonly file?: string;
|
|
4311
4366
|
readonly all?: boolean;
|
|
4312
4367
|
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4368
|
+
/**
|
|
4369
|
+
* Mutating: `git config [-f <file>] --remove-section <section>` — removes
|
|
4370
|
+
* a whole configuration section (every key under it, and the header) from
|
|
4371
|
+
* the live config, or from `options.file`. The section-level sibling of
|
|
4372
|
+
* `configUnset` — clearing a stale `submodule.<name>` registration is one
|
|
4373
|
+
* invocation instead of a key-by-key probe-and-unset. Removing a section
|
|
4374
|
+
* that does not exist fails LOUDLY (git exits 128,
|
|
4375
|
+
* `fatal: no such section`) — the `configUnset` posture; probe with
|
|
4376
|
+
* `configList` first when idempotency is wanted.
|
|
4377
|
+
*/
|
|
4378
|
+
readonly configRemoveSection: (cwd: string, section: string, options?: {
|
|
4379
|
+
readonly file?: string;
|
|
4380
|
+
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4381
|
+
/**
|
|
4382
|
+
* Mutating: `git config [-f <file>] --rename-section <old> <new>` —
|
|
4383
|
+
* renames a configuration section, carrying every key under it across.
|
|
4384
|
+
* Renaming a section that does not exist fails LOUDLY (git exits 128,
|
|
4385
|
+
* `fatal: no such section`) — the same posture as `configRemoveSection`.
|
|
4386
|
+
*/
|
|
4387
|
+
readonly configRenameSection: (cwd: string, oldName: string, newName: string, options?: {
|
|
4388
|
+
readonly file?: string;
|
|
4389
|
+
}) => Effect.Effect<void, GitCommandError | NotARepositoryError | UnknownRefError>;
|
|
4313
4390
|
/**
|
|
4314
4391
|
* Mutating: `git rm [--cached] [-r] [--force] -- <paths...>` — removes
|
|
4315
4392
|
* `paths` from the index and (without `options.cached`) the working tree.
|
|
@@ -6162,7 +6239,7 @@ declare class LockfileIntegrity extends LockfileIntegrity_base {
|
|
|
6162
6239
|
static compare(lockfile: Lockfile, manifests: ReadonlyArray<WorkspaceManifest>): LockfileIntegrity;
|
|
6163
6240
|
}
|
|
6164
6241
|
//#endregion
|
|
6165
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
6242
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/index.d.ts
|
|
6166
6243
|
//#region src/Dependency.d.ts
|
|
6167
6244
|
declare const Dependency_base: Schema.Class<Dependency, Schema.Struct<{
|
|
6168
6245
|
/** The package name. */
|
|
@@ -6744,7 +6821,7 @@ declare class Package extends Package_base {
|
|
|
6744
6821
|
toJsonString(options?: PackageFormatOptions): string;
|
|
6745
6822
|
}
|
|
6746
6823
|
//#endregion
|
|
6747
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
6824
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.13.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/workspaces/index.d.ts
|
|
6748
6825
|
//#region src/WorkspacePackage.d.ts
|
|
6749
6826
|
declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
|
|
6750
6827
|
/** Scoped-package visibility. Its presence overrides `private`. */
|
|
@@ -7571,6 +7648,8 @@ declare const DetectedPackageManager_base: Schema.Class<DetectedPackageManager,
|
|
|
7571
7648
|
readonly version: Schema.Option<Schema.String>;
|
|
7572
7649
|
/** The JavaScript runtime the manager implies. */
|
|
7573
7650
|
readonly runtime: Schema.Literals<readonly ["node", "bun"]>;
|
|
7651
|
+
/** The rung of the priority order that decided the name. */
|
|
7652
|
+
readonly evidence: Schema.Literals<readonly ["pnpm-workspace.yaml", "bun.lock", "bun.lockb", "yarn.lock", "package.json#workspaces", "pnpm-lock.yaml", "package-lock.json", "package.json#devEngines.packageManager", "package.json#packageManager"]>;
|
|
7574
7653
|
}>, {}>;
|
|
7575
7654
|
/**
|
|
7576
7655
|
* The outcome of package-manager detection at a workspace root.
|
|
@@ -7583,6 +7662,15 @@ declare const DetectedPackageManager_base: Schema.Class<DetectedPackageManager,
|
|
|
7583
7662
|
* `devEngines.packageManager`; see {@link PackageManagerDetector} for the
|
|
7584
7663
|
* precedence between them.
|
|
7585
7664
|
*
|
|
7665
|
+
* `evidence` is the rung of the priority order that decided the **name** — the
|
|
7666
|
+
* verdict's provenance, in the same vocabulary the failure path reports as
|
|
7667
|
+
* `PackageManagerDetectionError.checked`. For the bun and yarn rungs the
|
|
7668
|
+
* lockfile is the recorded signal even though the rung is a conjunction (the
|
|
7669
|
+
* lockfile *plus* a manifest field naming the manager): the manifest field alone
|
|
7670
|
+
* would have resolved in the declaration tier, so the lockfile is what this rung
|
|
7671
|
+
* added. The version's provenance is deliberately not carried — it follows the
|
|
7672
|
+
* two-field precedence above, which is a rule, not a probe.
|
|
7673
|
+
*
|
|
7586
7674
|
* @public
|
|
7587
7675
|
*/
|
|
7588
7676
|
declare class DetectedPackageManager extends DetectedPackageManager_base {}
|
|
@@ -7704,7 +7792,12 @@ declare class PackageManagerDetector extends PackageManagerDetector_base {
|
|
|
7704
7792
|
* const TestDetector = PackageManagerDetector.layerTest({
|
|
7705
7793
|
* detect: () =>
|
|
7706
7794
|
* Effect.succeed(
|
|
7707
|
-
* DetectedPackageManager.make({
|
|
7795
|
+
* DetectedPackageManager.make({
|
|
7796
|
+
* name: "pnpm",
|
|
7797
|
+
* version: Option.none(),
|
|
7798
|
+
* runtime: "node",
|
|
7799
|
+
* evidence: "pnpm-workspace.yaml",
|
|
7800
|
+
* }),
|
|
7708
7801
|
* ),
|
|
7709
7802
|
* });
|
|
7710
7803
|
* ```
|