@savvy-web/silk 3.7.3 → 3.7.5
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 +0 -1
package/changesets-changelog.js
CHANGED
|
@@ -16159,7 +16159,7 @@ var LockfileIntegrity = class LockfileIntegrity extends Schema.Class("LockfileIn
|
|
|
16159
16159
|
};
|
|
16160
16160
|
|
|
16161
16161
|
//#endregion
|
|
16162
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
16162
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Dependency.js
|
|
16163
16163
|
/**
|
|
16164
16164
|
* A resolved dependency entry pairing a package name with its version
|
|
16165
16165
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -16224,7 +16224,7 @@ var Dependency = class extends Schema.Class("Dependency")({
|
|
|
16224
16224
|
};
|
|
16225
16225
|
|
|
16226
16226
|
//#endregion
|
|
16227
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
16227
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/DevEngines.js
|
|
16228
16228
|
/**
|
|
16229
16229
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
16230
16230
|
*
|
|
@@ -17822,7 +17822,7 @@ const SpdxExpression = {
|
|
|
17822
17822
|
};
|
|
17823
17823
|
|
|
17824
17824
|
//#endregion
|
|
17825
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17825
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/License.js
|
|
17826
17826
|
/**
|
|
17827
17827
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
17828
17828
|
*
|
|
@@ -17858,7 +17858,7 @@ const isValidSpdx = (value) => {
|
|
|
17858
17858
|
const SpdxLicense = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), Schema.brand("SpdxLicense"));
|
|
17859
17859
|
|
|
17860
17860
|
//#endregion
|
|
17861
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17861
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageManager.js
|
|
17862
17862
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
17863
17863
|
const invalid$1 = (input, message) => Effect.fail(new SchemaIssue.InvalidValue({ message }, input));
|
|
17864
17864
|
/**
|
|
@@ -17970,7 +17970,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
17970
17970
|
};
|
|
17971
17971
|
|
|
17972
17972
|
//#endregion
|
|
17973
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17973
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageName.js
|
|
17974
17974
|
/**
|
|
17975
17975
|
* Indicates that a string could not be used as a valid npm package name.
|
|
17976
17976
|
*
|
|
@@ -18029,7 +18029,7 @@ const PackageName = Object.assign(Schema.Union([ScopedPackageName, UnscopedPacka
|
|
|
18029
18029
|
});
|
|
18030
18030
|
|
|
18031
18031
|
//#endregion
|
|
18032
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18032
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Person.js
|
|
18033
18033
|
const parsePersonString = (input) => {
|
|
18034
18034
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
18035
18035
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -18176,7 +18176,7 @@ var Person = class Person extends Schema.Class("Person")({
|
|
|
18176
18176
|
};
|
|
18177
18177
|
|
|
18178
18178
|
//#endregion
|
|
18179
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18179
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Repository.js
|
|
18180
18180
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
18181
18181
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
18182
18182
|
["github", "https://github.com"],
|
|
@@ -18352,7 +18352,7 @@ var Bugs = class Bugs extends Schema.Class("Bugs")({
|
|
|
18352
18352
|
};
|
|
18353
18353
|
|
|
18354
18354
|
//#endregion
|
|
18355
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18355
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/format.js
|
|
18356
18356
|
const KEY_INDEX = new Map([
|
|
18357
18357
|
"$schema",
|
|
18358
18358
|
"name",
|
|
@@ -18564,6 +18564,18 @@ const resolveIndent = (indent, sourceText) => {
|
|
|
18564
18564
|
return indent ?? DEFAULT_INDENT;
|
|
18565
18565
|
};
|
|
18566
18566
|
/**
|
|
18567
|
+
* Resolve the public `PackageFormatOptions` bag (mirrored structurally here —
|
|
18568
|
+
* this module cannot import `Package.ts` without closing a cycle) to the
|
|
18569
|
+
* concrete {@link renderJson} options. Shared by `Package.toJsonString` and
|
|
18570
|
+
* `PackageManifest.toJsonString` so the two serializers cannot drift.
|
|
18571
|
+
*/
|
|
18572
|
+
const resolveFormatOptions = (options) => ({
|
|
18573
|
+
indent: resolveIndent(options?.indent, options?.sourceText),
|
|
18574
|
+
sort: options?.sort ?? true,
|
|
18575
|
+
stripEmpty: options?.stripEmpty ?? true,
|
|
18576
|
+
newline: options?.newline ?? true
|
|
18577
|
+
});
|
|
18578
|
+
/**
|
|
18567
18579
|
* Render an already-encoded package.json record to a JSON string, applying the
|
|
18568
18580
|
* empty-map strip, canonical key ordering and a trailing newline unless the
|
|
18569
18581
|
* corresponding options opt out.
|
|
@@ -18576,7 +18588,39 @@ const renderJson = (raw, options) => {
|
|
|
18576
18588
|
};
|
|
18577
18589
|
|
|
18578
18590
|
//#endregion
|
|
18579
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18591
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/wire.js
|
|
18592
|
+
const RawJson = Schema.Record(Schema.String, Schema.Unknown);
|
|
18593
|
+
/**
|
|
18594
|
+
* Build the open-JSON ↔ class wire codec for a `Schema.Class` carrying a
|
|
18595
|
+
* `rest` catch-all field. Generic over the class so `Package`, its
|
|
18596
|
+
* `.extend()`ed subclasses and `PackageManifest` all share the one
|
|
18597
|
+
* implementation and cannot drift.
|
|
18598
|
+
*/
|
|
18599
|
+
const makeWire = (Class) => {
|
|
18600
|
+
const knownKeys = new Set(Object.keys(Class.fields).filter((k) => k !== "rest"));
|
|
18601
|
+
return RawJson.pipe(Schema.decodeTo(Class, SchemaTransformation.transform({
|
|
18602
|
+
decode: (raw) => {
|
|
18603
|
+
const known = {};
|
|
18604
|
+
const rest = Object.create(null);
|
|
18605
|
+
for (const [key, value] of Object.entries(raw)) if (knownKeys.has(key)) known[key] = value;
|
|
18606
|
+
else rest[key] = value;
|
|
18607
|
+
return {
|
|
18608
|
+
...known,
|
|
18609
|
+
rest
|
|
18610
|
+
};
|
|
18611
|
+
},
|
|
18612
|
+
encode: (encoded) => {
|
|
18613
|
+
const { rest, ...known } = encoded;
|
|
18614
|
+
return {
|
|
18615
|
+
...rest ?? {},
|
|
18616
|
+
...known
|
|
18617
|
+
};
|
|
18618
|
+
}
|
|
18619
|
+
})));
|
|
18620
|
+
};
|
|
18621
|
+
|
|
18622
|
+
//#endregion
|
|
18623
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Package.js
|
|
18580
18624
|
const toHashMap = SchemaTransformation.transform({
|
|
18581
18625
|
decode: (record) => HashMap.fromIterable(Object.entries(record)),
|
|
18582
18626
|
encode: (map) => Object.fromEntries(HashMap.toEntries(map))
|
|
@@ -18653,35 +18697,6 @@ cause: Schema.Defect() }) {
|
|
|
18653
18697
|
return "Failed to decode package.json";
|
|
18654
18698
|
}
|
|
18655
18699
|
};
|
|
18656
|
-
const resolveFormatOptions = (options) => ({
|
|
18657
|
-
indent: resolveIndent(options?.indent, options?.sourceText),
|
|
18658
|
-
sort: options?.sort ?? true,
|
|
18659
|
-
stripEmpty: options?.stripEmpty ?? true,
|
|
18660
|
-
newline: options?.newline ?? true
|
|
18661
|
-
});
|
|
18662
|
-
const RawJson = Schema.Record(Schema.String, Schema.Unknown);
|
|
18663
|
-
const makeWire = (Class) => {
|
|
18664
|
-
const knownKeys = new Set(Object.keys(Class.fields).filter((k) => k !== "rest"));
|
|
18665
|
-
return RawJson.pipe(Schema.decodeTo(Class, SchemaTransformation.transform({
|
|
18666
|
-
decode: (raw) => {
|
|
18667
|
-
const known = {};
|
|
18668
|
-
const rest = {};
|
|
18669
|
-
for (const [key, value] of Object.entries(raw)) if (knownKeys.has(key)) known[key] = value;
|
|
18670
|
-
else rest[key] = value;
|
|
18671
|
-
return {
|
|
18672
|
-
...known,
|
|
18673
|
-
rest
|
|
18674
|
-
};
|
|
18675
|
-
},
|
|
18676
|
-
encode: (encoded) => {
|
|
18677
|
-
const { rest, ...known } = encoded;
|
|
18678
|
-
return {
|
|
18679
|
-
...rest ?? {},
|
|
18680
|
-
...known
|
|
18681
|
-
};
|
|
18682
|
-
}
|
|
18683
|
-
})));
|
|
18684
|
-
};
|
|
18685
18700
|
/**
|
|
18686
18701
|
* A package.json document as a rich `Schema.Class`: typed known fields, a
|
|
18687
18702
|
* `rest` catch-all preserving unknown top-level fields across a read/edit/write
|
|
@@ -18903,7 +18918,7 @@ var Package = class Package extends Schema.Class("Package")({
|
|
|
18903
18918
|
};
|
|
18904
18919
|
|
|
18905
18920
|
//#endregion
|
|
18906
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18921
|
+
//#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/WorkspacePackage.js
|
|
18907
18922
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
18908
18923
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
18909
18924
|
/**
|
|
@@ -19505,7 +19520,7 @@ var Walker$1 = class {
|
|
|
19505
19520
|
};
|
|
19506
19521
|
|
|
19507
19522
|
//#endregion
|
|
19508
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19523
|
+
//#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/WorkspaceRoot.js
|
|
19509
19524
|
/**
|
|
19510
19525
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
19511
19526
|
*
|
|
@@ -19693,7 +19708,7 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
|
|
|
19693
19708
|
};
|
|
19694
19709
|
|
|
19695
19710
|
//#endregion
|
|
19696
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19711
|
+
//#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/internal/limits.js
|
|
19697
19712
|
/**
|
|
19698
19713
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
19699
19714
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -19712,7 +19727,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
19712
19727
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
19713
19728
|
|
|
19714
19729
|
//#endregion
|
|
19715
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19730
|
+
//#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/internal/traverse.js
|
|
19716
19731
|
/** Directory names never descended into. */
|
|
19717
19732
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
19718
19733
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -19803,7 +19818,7 @@ var Traversal = class {
|
|
|
19803
19818
|
};
|
|
19804
19819
|
|
|
19805
19820
|
//#endregion
|
|
19806
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19821
|
+
//#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/internal/enumerate.js
|
|
19807
19822
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
19808
19823
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
19809
19824
|
/**
|
|
@@ -19874,7 +19889,7 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
|
|
|
19874
19889
|
});
|
|
19875
19890
|
|
|
19876
19891
|
//#endregion
|
|
19877
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19892
|
+
//#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/internal/patterns.js
|
|
19878
19893
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
19879
19894
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
19880
19895
|
const pnpmPatternsOf = (document) => {
|
|
@@ -19932,7 +19947,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
19932
19947
|
});
|
|
19933
19948
|
|
|
19934
19949
|
//#endregion
|
|
19935
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19950
|
+
//#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/WorkspaceDiscovery.js
|
|
19936
19951
|
/**
|
|
19937
19952
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
19938
19953
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -20389,7 +20404,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
20389
20404
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
20390
20405
|
|
|
20391
20406
|
//#endregion
|
|
20392
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20407
|
+
//#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/DependencyGraph.js
|
|
20393
20408
|
/**
|
|
20394
20409
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
20395
20410
|
* because it contains a cycle.
|
|
@@ -20689,7 +20704,7 @@ const kahn = (edges) => {
|
|
|
20689
20704
|
};
|
|
20690
20705
|
|
|
20691
20706
|
//#endregion
|
|
20692
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
20707
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/GitCommand.js
|
|
20693
20708
|
/** The mask every whole-value sensitive positional is replaced with. */
|
|
20694
20709
|
const REDACTED = "<redacted>";
|
|
20695
20710
|
const secretValue = (value) => ({
|
|
@@ -20797,17 +20812,23 @@ const checkout = (ref, detach = false) => git([
|
|
|
20797
20812
|
...detach ? ["--detach"] : [],
|
|
20798
20813
|
ref
|
|
20799
20814
|
]);
|
|
20800
|
-
const fetch$1 = (remote, ref, depth, tag = false) => git([
|
|
20815
|
+
const fetch$1 = (remote, ref, depth, tag = false, unshallow = false) => git([
|
|
20801
20816
|
"fetch",
|
|
20802
20817
|
...depth !== void 0 ? ["--depth", String(depth)] : [],
|
|
20818
|
+
...unshallow ? ["--unshallow"] : [],
|
|
20803
20819
|
secretUrl(remote),
|
|
20804
20820
|
...tag ? ["tag"] : [],
|
|
20805
20821
|
ref
|
|
20806
20822
|
]);
|
|
20807
|
-
const submoduleUpdate = (init = false, depth, paths = []) => git([
|
|
20823
|
+
const submoduleUpdate = (init = false, depth, paths = [], options = {}) => git([
|
|
20808
20824
|
"submodule",
|
|
20809
20825
|
"update",
|
|
20810
20826
|
...init ? ["--init"] : [],
|
|
20827
|
+
...options.checkout ? ["--checkout"] : [],
|
|
20828
|
+
...options.remote ? ["--remote"] : [],
|
|
20829
|
+
...options.fetch === false ? ["--no-fetch"] : [],
|
|
20830
|
+
...options.recursive ? ["--recursive"] : [],
|
|
20831
|
+
...options.force ? ["--force"] : [],
|
|
20811
20832
|
...depth !== void 0 ? ["--depth", String(depth)] : [],
|
|
20812
20833
|
...paths.length > 0 ? ["--", ...paths] : []
|
|
20813
20834
|
]);
|
|
@@ -21097,6 +21118,19 @@ const configUnset = (key, file, all = false) => git([
|
|
|
21097
21118
|
all ? "--unset-all" : "--unset",
|
|
21098
21119
|
key
|
|
21099
21120
|
]);
|
|
21121
|
+
const configRemoveSection = (section, file) => git([
|
|
21122
|
+
"config",
|
|
21123
|
+
...file !== void 0 ? ["-f", file] : [],
|
|
21124
|
+
"--remove-section",
|
|
21125
|
+
section
|
|
21126
|
+
]);
|
|
21127
|
+
const configRenameSection = (oldName, newName, file) => git([
|
|
21128
|
+
"config",
|
|
21129
|
+
...file !== void 0 ? ["-f", file] : [],
|
|
21130
|
+
"--rename-section",
|
|
21131
|
+
oldName,
|
|
21132
|
+
newName
|
|
21133
|
+
]);
|
|
21100
21134
|
const rm = (paths, cached = false, recursive = false, force = false) => git([
|
|
21101
21135
|
"rm",
|
|
21102
21136
|
...cached ? ["--cached"] : [],
|
|
@@ -21191,6 +21225,13 @@ var GitCommand = class {
|
|
|
21191
21225
|
static refExists = refExists;
|
|
21192
21226
|
/**
|
|
21193
21227
|
* `git merge-base <a> <b>` — the best common ancestor commit of `a` and `b`.
|
|
21228
|
+
*
|
|
21229
|
+
* @remarks
|
|
21230
|
+
* Two refs with NO common ancestor (disjoint histories) exit 1 with
|
|
21231
|
+
* silent stderr. One builder backs both service members: `Git.mergeBase`
|
|
21232
|
+
* surfaces that shape as a loud `GitCommandError` (absence is
|
|
21233
|
+
* exceptional), while `Git.mergeBaseOption` degrades it to `Option.none`
|
|
21234
|
+
* (a probe answer). The argv is identical either way.
|
|
21194
21235
|
*/
|
|
21195
21236
|
static mergeBase = mergeBase;
|
|
21196
21237
|
/**
|
|
@@ -21258,11 +21299,21 @@ var GitCommand = class {
|
|
|
21258
21299
|
*/
|
|
21259
21300
|
static checkout = checkout;
|
|
21260
21301
|
/**
|
|
21261
|
-
* Mutating: `git fetch [--depth <n>] <remote> [tag] <ref>` —
|
|
21262
|
-
* ref from a remote, optionally with a depth limit
|
|
21302
|
+
* Mutating: `git fetch [--depth <n>] [--unshallow] <remote> [tag] <ref>` —
|
|
21303
|
+
* fetches the given ref from a remote, optionally with a depth limit, the
|
|
21304
|
+
* `--unshallow` mode, and the `tag` keyword.
|
|
21263
21305
|
*
|
|
21264
21306
|
* @remarks
|
|
21265
|
-
* `
|
|
21307
|
+
* `ref` may also be a full refspec (`src:dst`, optionally `+`-prefixed) —
|
|
21308
|
+
* it is passed through VERBATIM, never transformed. That matters under a
|
|
21309
|
+
* single-branch clone (`actions/checkout`'s default): a bare-ref fetch
|
|
21310
|
+
* there updates `FETCH_HEAD` only and never creates the remote-tracking
|
|
21311
|
+
* ref, so `+refs/heads/<b>:refs/remotes/origin/<b>` is the only spelling
|
|
21312
|
+
* that materializes `origin/<b>`.
|
|
21313
|
+
*
|
|
21314
|
+
* `unshallow` is a distinct MODE like {@link GitCommand.fetchUnshallow}'s:
|
|
21315
|
+
* git rejects it in a non-shallow repository and rejects it alongside
|
|
21316
|
+
* `--depth`. `remote` may be a URL as well as a remote name; an embedded
|
|
21266
21317
|
* `userinfo@` credential is masked in {@link GitInvocation.redactedArgs}.
|
|
21267
21318
|
*/
|
|
21268
21319
|
static fetch = fetch$1;
|
|
@@ -21360,10 +21411,23 @@ var GitCommand = class {
|
|
|
21360
21411
|
*/
|
|
21361
21412
|
static branchDelete = branchDelete;
|
|
21362
21413
|
/**
|
|
21363
|
-
* Mutating:
|
|
21364
|
-
*
|
|
21365
|
-
*
|
|
21366
|
-
*
|
|
21414
|
+
* Mutating:
|
|
21415
|
+
* `git submodule update [--init] [--checkout] [--remote] [--no-fetch] [--recursive] [--force] [--depth <n>] [-- <paths>...]`
|
|
21416
|
+
* — updates registered submodules, optionally initializing them, with an
|
|
21417
|
+
* optional depth limit, and scoped to specific paths. The literal `--`
|
|
21418
|
+
* separator makes the pathspec injection-safe by construction.
|
|
21419
|
+
*
|
|
21420
|
+
* @remarks
|
|
21421
|
+
* `options.checkout` is the documented override for a
|
|
21422
|
+
* `submodule.<name>.update = none` configuration — without it, an update of
|
|
21423
|
+
* such a submodule silently skips it (git reports success and checks out
|
|
21424
|
+
* nothing). `options.fetch` accepts only the literal `false` (emitting
|
|
21425
|
+
* `--no-fetch`): git's default already fetches and offers no positive
|
|
21426
|
+
* `--fetch` spelling, so `true` would be an unrepresentable no-op.
|
|
21427
|
+
* `options.remote` tracks the remote branch's tip instead of the
|
|
21428
|
+
* superproject's recorded sha; `options.recursive` descends into nested
|
|
21429
|
+
* submodules; `options.force` discards local changes in the submodule
|
|
21430
|
+
* working tree (and re-checks-out even when the recorded sha is current).
|
|
21367
21431
|
*/
|
|
21368
21432
|
static submoduleUpdate = submoduleUpdate;
|
|
21369
21433
|
/**
|
|
@@ -21717,6 +21781,27 @@ var GitCommand = class {
|
|
|
21717
21781
|
*/
|
|
21718
21782
|
static configUnset = configUnset;
|
|
21719
21783
|
/**
|
|
21784
|
+
* Mutating: `git config [-f <file>] --remove-section <section>` — removes
|
|
21785
|
+
* a whole configuration section (every key under it, and the section
|
|
21786
|
+
* header itself).
|
|
21787
|
+
*
|
|
21788
|
+
* @remarks
|
|
21789
|
+
* git exits 128 (`fatal: no such section`) when the section does not
|
|
21790
|
+
* exist — a loud failure by this package's classification, matching
|
|
21791
|
+
* {@link GitCommand.configUnset}'s posture: a removal that silently did
|
|
21792
|
+
* nothing is indistinguishable from one that worked.
|
|
21793
|
+
*/
|
|
21794
|
+
static configRemoveSection = configRemoveSection;
|
|
21795
|
+
/**
|
|
21796
|
+
* Mutating: `git config [-f <file>] --rename-section <old> <new>` —
|
|
21797
|
+
* renames a configuration section, carrying every key under it across.
|
|
21798
|
+
*
|
|
21799
|
+
* @remarks
|
|
21800
|
+
* git exits 128 (`fatal: no such section`) when the old section does not
|
|
21801
|
+
* exist — the same loud posture as {@link GitCommand.configRemoveSection}.
|
|
21802
|
+
*/
|
|
21803
|
+
static configRenameSection = configRenameSection;
|
|
21804
|
+
/**
|
|
21720
21805
|
* Mutating: `git rm [--cached] [-r] [--force] -- <paths...>` — removes
|
|
21721
21806
|
* paths from the index (and, without `cached`, the working tree). The
|
|
21722
21807
|
* literal `--` separator makes the pathspec injection-safe by
|
|
@@ -21773,7 +21858,7 @@ var GitCommand = class {
|
|
|
21773
21858
|
};
|
|
21774
21859
|
|
|
21775
21860
|
//#endregion
|
|
21776
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21861
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/internal/run.js
|
|
21777
21862
|
/**
|
|
21778
21863
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
21779
21864
|
* triple.
|
|
@@ -21801,7 +21886,7 @@ const runCollected = (command) => Effect.scoped(Effect.gen(function* () {
|
|
|
21801
21886
|
}));
|
|
21802
21887
|
|
|
21803
21888
|
//#endregion
|
|
21804
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21889
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/Git.js
|
|
21805
21890
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
21806
21891
|
const GIT_TIMEOUT = Duration.seconds(30);
|
|
21807
21892
|
/**
|
|
@@ -22783,6 +22868,26 @@ const make = (spawner) => {
|
|
|
22783
22868
|
default: return yield* Effect.die(`Git.mergeBase: unexpected classification "${classified._tag}"`);
|
|
22784
22869
|
}
|
|
22785
22870
|
});
|
|
22871
|
+
const mergeBaseOption = Effect.fn("Git.mergeBaseOption")(function* (cwd, a, b) {
|
|
22872
|
+
yield* Effect.annotateCurrentSpan({
|
|
22873
|
+
cwd,
|
|
22874
|
+
a,
|
|
22875
|
+
b
|
|
22876
|
+
});
|
|
22877
|
+
yield* rejectOptionLikeRefs(cwd, [a, b]);
|
|
22878
|
+
const classified = yield* runFor(GitCommand.mergeBase(a, b), cwd, "quiet");
|
|
22879
|
+
switch (classified._tag) {
|
|
22880
|
+
case "success": return Option.some(classified.output.trim());
|
|
22881
|
+
case "absent": return Option.none();
|
|
22882
|
+
case "notARepository": return yield* Effect.fail(new NotARepositoryError({ cwd }));
|
|
22883
|
+
case "unknownRef": return yield* Effect.fail(new UnknownRefError({
|
|
22884
|
+
ref: `${a}...${b}`,
|
|
22885
|
+
cwd
|
|
22886
|
+
}));
|
|
22887
|
+
case "failure": return yield* Effect.fail(classified.error);
|
|
22888
|
+
default: return yield* Effect.die(`Git.mergeBaseOption: unexpected classification "${classified._tag}"`);
|
|
22889
|
+
}
|
|
22890
|
+
});
|
|
22786
22891
|
const changedFiles = Effect.fn("Git.changedFiles")(function* (cwd, options) {
|
|
22787
22892
|
const relative = options.relative ?? false;
|
|
22788
22893
|
yield* Effect.annotateCurrentSpan({
|
|
@@ -23048,14 +23153,27 @@ const make = (spawner) => {
|
|
|
23048
23153
|
const fetch = Effect.fn("Git.fetch")(function* (cwd, options) {
|
|
23049
23154
|
const remote = options.remote ?? "origin";
|
|
23050
23155
|
const tag = options.tag ?? false;
|
|
23156
|
+
const unshallow = options.unshallow ?? false;
|
|
23051
23157
|
yield* Effect.annotateCurrentSpan({
|
|
23052
23158
|
cwd,
|
|
23053
23159
|
ref: options.ref,
|
|
23054
|
-
tag
|
|
23160
|
+
tag,
|
|
23161
|
+
unshallow
|
|
23055
23162
|
});
|
|
23056
23163
|
yield* rejectOptionLikeRefs(cwd, [remote, options.ref]);
|
|
23057
23164
|
yield* rejectNonNaturalNumber(cwd, "a fetch depth", options.depth);
|
|
23058
|
-
|
|
23165
|
+
if (unshallow && options.depth !== void 0) return yield* Effect.fail(new GitCommandError({
|
|
23166
|
+
kind: "refused",
|
|
23167
|
+
args: [
|
|
23168
|
+
"--unshallow",
|
|
23169
|
+
"--depth",
|
|
23170
|
+
String(options.depth)
|
|
23171
|
+
],
|
|
23172
|
+
cwd,
|
|
23173
|
+
stderr: "",
|
|
23174
|
+
detail: "refused: fetch cannot combine unshallow with depth (git rejects the pair)"
|
|
23175
|
+
}));
|
|
23176
|
+
const classified = yield* runFor(GitCommand.fetch(remote, options.ref, options.depth, tag, unshallow), cwd, "generic");
|
|
23059
23177
|
switch (classified._tag) {
|
|
23060
23178
|
case "success": return;
|
|
23061
23179
|
case "notARepository": return yield* Effect.fail(new NotARepositoryError({ cwd }));
|
|
@@ -23079,12 +23197,20 @@ const make = (spawner) => {
|
|
|
23079
23197
|
});
|
|
23080
23198
|
const submoduleUpdate = Effect.fn("Git.submoduleUpdate")(function* (cwd, options) {
|
|
23081
23199
|
const init = options?.init ?? false;
|
|
23200
|
+
const checkout = options?.checkout ?? false;
|
|
23082
23201
|
yield* Effect.annotateCurrentSpan({
|
|
23083
23202
|
cwd,
|
|
23084
|
-
init
|
|
23203
|
+
init,
|
|
23204
|
+
checkout
|
|
23085
23205
|
});
|
|
23086
23206
|
yield* rejectNonNaturalNumber(cwd, "a submodule update depth", options?.depth);
|
|
23087
|
-
const classified = yield* runFor(GitCommand.submoduleUpdate(init, options?.depth, options?.paths ?? []
|
|
23207
|
+
const classified = yield* runFor(GitCommand.submoduleUpdate(init, options?.depth, options?.paths ?? [], {
|
|
23208
|
+
checkout,
|
|
23209
|
+
remote: options?.remote ?? false,
|
|
23210
|
+
recursive: options?.recursive ?? false,
|
|
23211
|
+
force: options?.force ?? false,
|
|
23212
|
+
...options?.fetch === false ? { fetch: false } : {}
|
|
23213
|
+
}), cwd, "generic");
|
|
23088
23214
|
switch (classified._tag) {
|
|
23089
23215
|
case "success": return;
|
|
23090
23216
|
case "notARepository": return yield* Effect.fail(new NotARepositoryError({ cwd }));
|
|
@@ -23534,6 +23660,7 @@ const make = (spawner) => {
|
|
|
23534
23660
|
lsTree,
|
|
23535
23661
|
refExists,
|
|
23536
23662
|
mergeBase,
|
|
23663
|
+
mergeBaseOption,
|
|
23537
23664
|
changedFiles,
|
|
23538
23665
|
workingChanges,
|
|
23539
23666
|
revParse,
|
|
@@ -23718,6 +23845,29 @@ const make = (spawner) => {
|
|
|
23718
23845
|
yield* rejectOptionLikeRefs(cwd, [key, ...options?.file !== void 0 ? [options.file] : []]);
|
|
23719
23846
|
return yield* runVoid("Git.configUnset", GitCommand.configUnset(key, options?.file, options?.all ?? false), cwd, key);
|
|
23720
23847
|
}),
|
|
23848
|
+
configRemoveSection: Effect.fn("Git.configRemoveSection")(function* (cwd, section, options) {
|
|
23849
|
+
yield* Effect.annotateCurrentSpan({
|
|
23850
|
+
cwd,
|
|
23851
|
+
section,
|
|
23852
|
+
file: options?.file ?? "(repository config)"
|
|
23853
|
+
});
|
|
23854
|
+
yield* rejectOptionLikeRefs(cwd, [section, ...options?.file !== void 0 ? [options.file] : []]);
|
|
23855
|
+
return yield* runVoid("Git.configRemoveSection", GitCommand.configRemoveSection(section, options?.file), cwd, section);
|
|
23856
|
+
}),
|
|
23857
|
+
configRenameSection: Effect.fn("Git.configRenameSection")(function* (cwd, oldName, newName, options) {
|
|
23858
|
+
yield* Effect.annotateCurrentSpan({
|
|
23859
|
+
cwd,
|
|
23860
|
+
oldName,
|
|
23861
|
+
newName,
|
|
23862
|
+
file: options?.file ?? "(repository config)"
|
|
23863
|
+
});
|
|
23864
|
+
yield* rejectOptionLikeRefs(cwd, [
|
|
23865
|
+
oldName,
|
|
23866
|
+
newName,
|
|
23867
|
+
...options?.file !== void 0 ? [options.file] : []
|
|
23868
|
+
]);
|
|
23869
|
+
return yield* runVoid("Git.configRenameSection", GitCommand.configRenameSection(oldName, newName, options?.file), cwd, oldName);
|
|
23870
|
+
}),
|
|
23721
23871
|
rm: Effect.fn("Git.rm")(function* (cwd, paths, options) {
|
|
23722
23872
|
yield* Effect.annotateCurrentSpan({
|
|
23723
23873
|
cwd,
|
|
@@ -23857,6 +24007,7 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
23857
24007
|
lsTree: notStubbed("lsTree"),
|
|
23858
24008
|
refExists: notStubbed("refExists"),
|
|
23859
24009
|
mergeBase: notStubbed("mergeBase"),
|
|
24010
|
+
mergeBaseOption: notStubbed("mergeBaseOption"),
|
|
23860
24011
|
changedFiles: notStubbed("changedFiles"),
|
|
23861
24012
|
workingChanges: notStubbed("workingChanges"),
|
|
23862
24013
|
revParse: notStubbed("revParse"),
|
|
@@ -23915,6 +24066,8 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
23915
24066
|
configList: notStubbed("configList"),
|
|
23916
24067
|
configGetAll: notStubbed("configGetAll"),
|
|
23917
24068
|
configUnset: notStubbed("configUnset"),
|
|
24069
|
+
configRemoveSection: notStubbed("configRemoveSection"),
|
|
24070
|
+
configRenameSection: notStubbed("configRenameSection"),
|
|
23918
24071
|
rm: notStubbed("rm"),
|
|
23919
24072
|
mv: notStubbed("mv"),
|
|
23920
24073
|
checkIgnore: notStubbed("checkIgnore"),
|
|
@@ -23951,7 +24104,7 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
23951
24104
|
};
|
|
23952
24105
|
|
|
23953
24106
|
//#endregion
|
|
23954
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24107
|
+
//#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/ChangeDetector.js
|
|
23955
24108
|
/**
|
|
23956
24109
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
23957
24110
|
*
|
|
@@ -24251,7 +24404,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
24251
24404
|
}
|
|
24252
24405
|
|
|
24253
24406
|
//#endregion
|
|
24254
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24407
|
+
//#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/internal/catalogs.js
|
|
24255
24408
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
24256
24409
|
const inlineCatalogs = (manifest) => {
|
|
24257
24410
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -24317,7 +24470,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
24317
24470
|
};
|
|
24318
24471
|
|
|
24319
24472
|
//#endregion
|
|
24320
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24473
|
+
//#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/ConfigDependencyHooks.js
|
|
24321
24474
|
/** Whether `value` is a non-null, non-array object. */
|
|
24322
24475
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24323
24476
|
/**
|
|
@@ -24604,7 +24757,10 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
24604
24757
|
const candidatePath = join(root, "node_modules", ".pnpm-config", name, filename);
|
|
24605
24758
|
const candidateUrl = pathToFileURL(candidatePath).href;
|
|
24606
24759
|
const result = yield* Effect.result(Effect.tryPromise({
|
|
24607
|
-
try: () => import(
|
|
24760
|
+
try: () => import(
|
|
24761
|
+
/* webpackIgnore: true */
|
|
24762
|
+
candidateUrl
|
|
24763
|
+
),
|
|
24608
24764
|
catch: (cause) => cause
|
|
24609
24765
|
}));
|
|
24610
24766
|
if (Result.isSuccess(result)) {
|
|
@@ -24729,7 +24885,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
24729
24885
|
};
|
|
24730
24886
|
|
|
24731
24887
|
//#endregion
|
|
24732
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24888
|
+
//#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/PackageManagerName.js
|
|
24733
24889
|
/**
|
|
24734
24890
|
* The four package managers this package understands.
|
|
24735
24891
|
*
|
|
@@ -24742,6 +24898,35 @@ const PackageManagerName = Schema.Literals([
|
|
|
24742
24898
|
"bun"
|
|
24743
24899
|
]);
|
|
24744
24900
|
/**
|
|
24901
|
+
* The markers {@link PackageManagerDetector} probes, in the priority order it
|
|
24902
|
+
* probes them.
|
|
24903
|
+
*
|
|
24904
|
+
* @remarks
|
|
24905
|
+
* One vocabulary serves both halves of the detection contract: the failure path
|
|
24906
|
+
* reports every member as `PackageManagerDetectionError.checked`, and the
|
|
24907
|
+
* success path reports the one that fired as
|
|
24908
|
+
* `DetectedPackageManager.evidence`. A closed literal union rather than
|
|
24909
|
+
* free text, so a consumer logging *why* a workspace was classified asserts
|
|
24910
|
+
* against the kit's vocabulary instead of re-deriving the probe with its own
|
|
24911
|
+
* filesystem reads.
|
|
24912
|
+
*
|
|
24913
|
+
* The `package.json#…` spellings name manifest *fields*; the rest are marker
|
|
24914
|
+
* files at the workspace root.
|
|
24915
|
+
*
|
|
24916
|
+
* @public
|
|
24917
|
+
*/
|
|
24918
|
+
const PackageManagerEvidence = Schema.Literals([
|
|
24919
|
+
"pnpm-workspace.yaml",
|
|
24920
|
+
"bun.lock",
|
|
24921
|
+
"bun.lockb",
|
|
24922
|
+
"yarn.lock",
|
|
24923
|
+
"package.json#workspaces",
|
|
24924
|
+
"pnpm-lock.yaml",
|
|
24925
|
+
"package-lock.json",
|
|
24926
|
+
"package.json#devEngines.packageManager",
|
|
24927
|
+
"package.json#packageManager"
|
|
24928
|
+
]);
|
|
24929
|
+
/**
|
|
24745
24930
|
* The outcome of package-manager detection at a workspace root.
|
|
24746
24931
|
*
|
|
24747
24932
|
* @remarks
|
|
@@ -24752,6 +24937,15 @@ const PackageManagerName = Schema.Literals([
|
|
|
24752
24937
|
* `devEngines.packageManager`; see {@link PackageManagerDetector} for the
|
|
24753
24938
|
* precedence between them.
|
|
24754
24939
|
*
|
|
24940
|
+
* `evidence` is the rung of the priority order that decided the **name** — the
|
|
24941
|
+
* verdict's provenance, in the same vocabulary the failure path reports as
|
|
24942
|
+
* `PackageManagerDetectionError.checked`. For the bun and yarn rungs the
|
|
24943
|
+
* lockfile is the recorded signal even though the rung is a conjunction (the
|
|
24944
|
+
* lockfile *plus* a manifest field naming the manager): the manifest field alone
|
|
24945
|
+
* would have resolved in the declaration tier, so the lockfile is what this rung
|
|
24946
|
+
* added. The version's provenance is deliberately not carried — it follows the
|
|
24947
|
+
* two-field precedence above, which is a rule, not a probe.
|
|
24948
|
+
*
|
|
24755
24949
|
* @public
|
|
24756
24950
|
*/
|
|
24757
24951
|
var DetectedPackageManager = class extends Schema.Class("DetectedPackageManager")({
|
|
@@ -24760,7 +24954,9 @@ var DetectedPackageManager = class extends Schema.Class("DetectedPackageManager"
|
|
|
24760
24954
|
/** Its version, when a manifest field agrees on the manager and carries one. */
|
|
24761
24955
|
version: Schema.Option(Schema.String),
|
|
24762
24956
|
/** The JavaScript runtime the manager implies. */
|
|
24763
|
-
runtime: Schema.Literals(["node", "bun"])
|
|
24957
|
+
runtime: Schema.Literals(["node", "bun"]),
|
|
24958
|
+
/** The rung of the priority order that decided the name. */
|
|
24959
|
+
evidence: PackageManagerEvidence
|
|
24764
24960
|
}) {};
|
|
24765
24961
|
/** Whether `value` is a non-null, non-array object — corepack's own shape test. */
|
|
24766
24962
|
const isPlainObject$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -24824,18 +25020,11 @@ var PackageManagerDetectionError = class extends Schema.TaggedError()("PackageMa
|
|
|
24824
25020
|
return `No package manager detected at ${this.root} (checked ${this.checked.join(", ")})`;
|
|
24825
25021
|
}
|
|
24826
25022
|
};
|
|
24827
|
-
/**
|
|
24828
|
-
|
|
24829
|
-
|
|
24830
|
-
|
|
24831
|
-
|
|
24832
|
-
"yarn.lock",
|
|
24833
|
-
"package.json#workspaces",
|
|
24834
|
-
"pnpm-lock.yaml",
|
|
24835
|
-
"package-lock.json",
|
|
24836
|
-
"package.json#packageManager",
|
|
24837
|
-
"package.json#devEngines.packageManager"
|
|
24838
|
-
];
|
|
25023
|
+
/**
|
|
25024
|
+
* The markers probed, in priority order. Derived from the evidence vocabulary so
|
|
25025
|
+
* the failure path's `checked` and the success path's `evidence` cannot drift.
|
|
25026
|
+
*/
|
|
25027
|
+
const CHECKED = PackageManagerEvidence.literals;
|
|
24839
25028
|
/**
|
|
24840
25029
|
* Detects which package manager owns a workspace root.
|
|
24841
25030
|
*
|
|
@@ -24946,44 +25135,52 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
24946
25135
|
if (yield* has(root, "pnpm-workspace.yaml")) return DetectedPackageManager.make({
|
|
24947
25136
|
name: "pnpm",
|
|
24948
25137
|
version: versionFor(hints, "pnpm"),
|
|
24949
|
-
runtime: "node"
|
|
25138
|
+
runtime: "node",
|
|
25139
|
+
evidence: "pnpm-workspace.yaml"
|
|
24950
25140
|
});
|
|
24951
|
-
const bunLock = (yield* has(root, "bun.lock"))
|
|
24952
|
-
if (bunLock && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
25141
|
+
const bunLock = (yield* has(root, "bun.lock")) ? Option.some("bun.lock") : (yield* has(root, "bun.lockb")) ? Option.some("bun.lockb") : Option.none();
|
|
25142
|
+
if (Option.isSome(bunLock) && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24953
25143
|
name: "bun",
|
|
24954
25144
|
version: versionFor(hints, "bun"),
|
|
24955
|
-
runtime: "bun"
|
|
25145
|
+
runtime: "bun",
|
|
25146
|
+
evidence: bunLock.value
|
|
24956
25147
|
});
|
|
24957
25148
|
if ((yield* has(root, "yarn.lock")) && namesManager(hints, "yarn")) return DetectedPackageManager.make({
|
|
24958
25149
|
name: "yarn",
|
|
24959
25150
|
version: versionFor(hints, "yarn"),
|
|
24960
|
-
runtime: "node"
|
|
25151
|
+
runtime: "node",
|
|
25152
|
+
evidence: "yarn.lock"
|
|
24961
25153
|
});
|
|
24962
25154
|
const workspaces = Option.map(manifest, (fields) => fields.workspaces);
|
|
24963
25155
|
if (Option.isSome(workspaces) && workspaces.value !== void 0 && workspaces.value !== null) return DetectedPackageManager.make({
|
|
24964
25156
|
name: "npm",
|
|
24965
25157
|
version: versionFor(hints, "npm"),
|
|
24966
|
-
runtime: "node"
|
|
25158
|
+
runtime: "node",
|
|
25159
|
+
evidence: "package.json#workspaces"
|
|
24967
25160
|
});
|
|
24968
25161
|
if (yield* has(root, "pnpm-lock.yaml")) return DetectedPackageManager.make({
|
|
24969
25162
|
name: "pnpm",
|
|
24970
25163
|
version: versionFor(hints, "pnpm"),
|
|
24971
|
-
runtime: "node"
|
|
25164
|
+
runtime: "node",
|
|
25165
|
+
evidence: "pnpm-lock.yaml"
|
|
24972
25166
|
});
|
|
24973
|
-
if (bunLock && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
25167
|
+
if (Option.isSome(bunLock) && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24974
25168
|
name: "bun",
|
|
24975
25169
|
version: versionFor(hints, "bun"),
|
|
24976
|
-
runtime: "bun"
|
|
25170
|
+
runtime: "bun",
|
|
25171
|
+
evidence: bunLock.value
|
|
24977
25172
|
});
|
|
24978
25173
|
if ((yield* has(root, "yarn.lock")) && namesManager(hints, "yarn")) return DetectedPackageManager.make({
|
|
24979
25174
|
name: "yarn",
|
|
24980
25175
|
version: versionFor(hints, "yarn"),
|
|
24981
|
-
runtime: "node"
|
|
25176
|
+
runtime: "node",
|
|
25177
|
+
evidence: "yarn.lock"
|
|
24982
25178
|
});
|
|
24983
25179
|
if (yield* has(root, "package-lock.json")) return DetectedPackageManager.make({
|
|
24984
25180
|
name: "npm",
|
|
24985
25181
|
version: versionFor(hints, "npm"),
|
|
24986
|
-
runtime: "node"
|
|
25182
|
+
runtime: "node",
|
|
25183
|
+
evidence: "package-lock.json"
|
|
24987
25184
|
});
|
|
24988
25185
|
const declared = declaredName(hints);
|
|
24989
25186
|
if (Option.isSome(declared)) {
|
|
@@ -24991,7 +25188,8 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
24991
25188
|
if (name === "pnpm" || name === "npm" || name === "yarn" || name === "bun") return DetectedPackageManager.make({
|
|
24992
25189
|
name,
|
|
24993
25190
|
version: versionFor(hints, name),
|
|
24994
|
-
runtime: name === "bun" ? "bun" : "node"
|
|
25191
|
+
runtime: name === "bun" ? "bun" : "node",
|
|
25192
|
+
evidence: Option.isSome(hints.devEngines) ? "package.json#devEngines.packageManager" : "package.json#packageManager"
|
|
24995
25193
|
});
|
|
24996
25194
|
}
|
|
24997
25195
|
return yield* Effect.fail(new PackageManagerDetectionError({
|
|
@@ -25034,7 +25232,12 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
25034
25232
|
* const TestDetector = PackageManagerDetector.layerTest({
|
|
25035
25233
|
* detect: () =>
|
|
25036
25234
|
* Effect.succeed(
|
|
25037
|
-
* DetectedPackageManager.make({
|
|
25235
|
+
* DetectedPackageManager.make({
|
|
25236
|
+
* name: "pnpm",
|
|
25237
|
+
* version: Option.none(),
|
|
25238
|
+
* runtime: "node",
|
|
25239
|
+
* evidence: "pnpm-workspace.yaml",
|
|
25240
|
+
* }),
|
|
25038
25241
|
* ),
|
|
25039
25242
|
* });
|
|
25040
25243
|
* ```
|
|
@@ -25058,7 +25261,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
25058
25261
|
};
|
|
25059
25262
|
|
|
25060
25263
|
//#endregion
|
|
25061
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25264
|
+
//#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/LockfileReader.js
|
|
25062
25265
|
/**
|
|
25063
25266
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
25064
25267
|
*
|
|
@@ -25239,7 +25442,7 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
|
|
|
25239
25442
|
};
|
|
25240
25443
|
|
|
25241
25444
|
//#endregion
|
|
25242
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25445
|
+
//#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/Publishability.js
|
|
25243
25446
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
25244
25447
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
25245
25448
|
/**
|
|
@@ -25399,7 +25602,7 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
|
|
|
25399
25602
|
};
|
|
25400
25603
|
|
|
25401
25604
|
//#endregion
|
|
25402
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25605
|
+
//#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/internal/importerVersions.js
|
|
25403
25606
|
/**
|
|
25404
25607
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
25405
25608
|
*
|
|
@@ -25486,7 +25689,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
25486
25689
|
};
|
|
25487
25690
|
|
|
25488
25691
|
//#endregion
|
|
25489
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25692
|
+
//#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/WorkspaceCatalogs.js
|
|
25490
25693
|
/**
|
|
25491
25694
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
25492
25695
|
* resolution semantic in the package.
|
|
@@ -26014,7 +26217,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
|
|
|
26014
26217
|
};
|
|
26015
26218
|
|
|
26016
26219
|
//#endregion
|
|
26017
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
26220
|
+
//#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/WorkspaceStateSnapshot.js
|
|
26018
26221
|
const EMPTY = Object.freeze(Object.create(null));
|
|
26019
26222
|
const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
|
|
26020
26223
|
/**
|
|
@@ -26238,7 +26441,7 @@ var WorkspaceStateSnapshot = class extends Schema.Class("WorkspaceStateSnapshot"
|
|
|
26238
26441
|
};
|
|
26239
26442
|
|
|
26240
26443
|
//#endregion
|
|
26241
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
26444
|
+
//#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/WorkspaceSnapshots.js
|
|
26242
26445
|
/** Whether `value` is a non-null, non-array object. */
|
|
26243
26446
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26244
26447
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -26516,7 +26719,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
26516
26719
|
};
|
|
26517
26720
|
|
|
26518
26721
|
//#endregion
|
|
26519
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
26722
|
+
//#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/Workspaces.js
|
|
26520
26723
|
const compose = (options, catalogsFactory) => {
|
|
26521
26724
|
const roots = WorkspaceRoot.layer;
|
|
26522
26725
|
const detector = PackageManagerDetector.layer;
|