@savvy-web/silk 3.7.2 → 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/biome/silk.jsonc +11 -20
- 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
|
@@ -15951,7 +15951,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
15951
15951
|
}
|
|
15952
15952
|
};
|
|
15953
15953
|
//#endregion
|
|
15954
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
15954
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Dependency.js
|
|
15955
15955
|
/**
|
|
15956
15956
|
* A resolved dependency entry pairing a package name with its version
|
|
15957
15957
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -16015,7 +16015,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
16015
16015
|
}
|
|
16016
16016
|
};
|
|
16017
16017
|
//#endregion
|
|
16018
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
16018
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/DevEngines.js
|
|
16019
16019
|
/**
|
|
16020
16020
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
16021
16021
|
*
|
|
@@ -17570,7 +17570,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
17570
17570
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
17571
17571
|
})));
|
|
17572
17572
|
//#endregion
|
|
17573
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17573
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/License.js
|
|
17574
17574
|
/**
|
|
17575
17575
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
17576
17576
|
*
|
|
@@ -17605,7 +17605,7 @@ const isValidSpdx = (value) => {
|
|
|
17605
17605
|
*/
|
|
17606
17606
|
const SpdxLicense = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), effect.Schema.brand("SpdxLicense"));
|
|
17607
17607
|
//#endregion
|
|
17608
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17608
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageManager.js
|
|
17609
17609
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
17610
17610
|
const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message }, input));
|
|
17611
17611
|
/**
|
|
@@ -17716,7 +17716,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
17716
17716
|
}
|
|
17717
17717
|
};
|
|
17718
17718
|
//#endregion
|
|
17719
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17719
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageName.js
|
|
17720
17720
|
/**
|
|
17721
17721
|
* Indicates that a string could not be used as a valid npm package name.
|
|
17722
17722
|
*
|
|
@@ -17774,7 +17774,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
17774
17774
|
isScoped
|
|
17775
17775
|
});
|
|
17776
17776
|
//#endregion
|
|
17777
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17777
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Person.js
|
|
17778
17778
|
const parsePersonString = (input) => {
|
|
17779
17779
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
17780
17780
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -17920,7 +17920,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
17920
17920
|
}
|
|
17921
17921
|
};
|
|
17922
17922
|
//#endregion
|
|
17923
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17923
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Repository.js
|
|
17924
17924
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
17925
17925
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
17926
17926
|
["github", "https://github.com"],
|
|
@@ -18095,7 +18095,7 @@ var Bugs = class Bugs extends effect.Schema.Class("Bugs")({
|
|
|
18095
18095
|
})));
|
|
18096
18096
|
};
|
|
18097
18097
|
//#endregion
|
|
18098
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18098
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/format.js
|
|
18099
18099
|
const KEY_INDEX = new Map([
|
|
18100
18100
|
"$schema",
|
|
18101
18101
|
"name",
|
|
@@ -18307,6 +18307,18 @@ const resolveIndent = (indent, sourceText) => {
|
|
|
18307
18307
|
return indent ?? DEFAULT_INDENT;
|
|
18308
18308
|
};
|
|
18309
18309
|
/**
|
|
18310
|
+
* Resolve the public `PackageFormatOptions` bag (mirrored structurally here —
|
|
18311
|
+
* this module cannot import `Package.ts` without closing a cycle) to the
|
|
18312
|
+
* concrete {@link renderJson} options. Shared by `Package.toJsonString` and
|
|
18313
|
+
* `PackageManifest.toJsonString` so the two serializers cannot drift.
|
|
18314
|
+
*/
|
|
18315
|
+
const resolveFormatOptions = (options) => ({
|
|
18316
|
+
indent: resolveIndent(options?.indent, options?.sourceText),
|
|
18317
|
+
sort: options?.sort ?? true,
|
|
18318
|
+
stripEmpty: options?.stripEmpty ?? true,
|
|
18319
|
+
newline: options?.newline ?? true
|
|
18320
|
+
});
|
|
18321
|
+
/**
|
|
18310
18322
|
* Render an already-encoded package.json record to a JSON string, applying the
|
|
18311
18323
|
* empty-map strip, canonical key ordering and a trailing newline unless the
|
|
18312
18324
|
* corresponding options opt out.
|
|
@@ -18318,7 +18330,38 @@ const renderJson = (raw, options) => {
|
|
|
18318
18330
|
return options.newline ? `${json}\n` : json;
|
|
18319
18331
|
};
|
|
18320
18332
|
//#endregion
|
|
18321
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
18333
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/wire.js
|
|
18334
|
+
const RawJson = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
18335
|
+
/**
|
|
18336
|
+
* Build the open-JSON ↔ class wire codec for a `Schema.Class` carrying a
|
|
18337
|
+
* `rest` catch-all field. Generic over the class so `Package`, its
|
|
18338
|
+
* `.extend()`ed subclasses and `PackageManifest` all share the one
|
|
18339
|
+
* implementation and cannot drift.
|
|
18340
|
+
*/
|
|
18341
|
+
const makeWire = (Class) => {
|
|
18342
|
+
const knownKeys = new Set(Object.keys(Class.fields).filter((k) => k !== "rest"));
|
|
18343
|
+
return RawJson.pipe(effect.Schema.decodeTo(Class, effect.SchemaTransformation.transform({
|
|
18344
|
+
decode: (raw) => {
|
|
18345
|
+
const known = {};
|
|
18346
|
+
const rest = Object.create(null);
|
|
18347
|
+
for (const [key, value] of Object.entries(raw)) if (knownKeys.has(key)) known[key] = value;
|
|
18348
|
+
else rest[key] = value;
|
|
18349
|
+
return {
|
|
18350
|
+
...known,
|
|
18351
|
+
rest
|
|
18352
|
+
};
|
|
18353
|
+
},
|
|
18354
|
+
encode: (encoded) => {
|
|
18355
|
+
const { rest, ...known } = encoded;
|
|
18356
|
+
return {
|
|
18357
|
+
...rest ?? {},
|
|
18358
|
+
...known
|
|
18359
|
+
};
|
|
18360
|
+
}
|
|
18361
|
+
})));
|
|
18362
|
+
};
|
|
18363
|
+
//#endregion
|
|
18364
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.9.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Package.js
|
|
18322
18365
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
18323
18366
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
18324
18367
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -18385,35 +18428,6 @@ cause: effect.Schema.Defect() }) {
|
|
|
18385
18428
|
return "Failed to decode package.json";
|
|
18386
18429
|
}
|
|
18387
18430
|
};
|
|
18388
|
-
const resolveFormatOptions = (options) => ({
|
|
18389
|
-
indent: resolveIndent(options?.indent, options?.sourceText),
|
|
18390
|
-
sort: options?.sort ?? true,
|
|
18391
|
-
stripEmpty: options?.stripEmpty ?? true,
|
|
18392
|
-
newline: options?.newline ?? true
|
|
18393
|
-
});
|
|
18394
|
-
const RawJson = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
18395
|
-
const makeWire = (Class) => {
|
|
18396
|
-
const knownKeys = new Set(Object.keys(Class.fields).filter((k) => k !== "rest"));
|
|
18397
|
-
return RawJson.pipe(effect.Schema.decodeTo(Class, effect.SchemaTransformation.transform({
|
|
18398
|
-
decode: (raw) => {
|
|
18399
|
-
const known = {};
|
|
18400
|
-
const rest = {};
|
|
18401
|
-
for (const [key, value] of Object.entries(raw)) if (knownKeys.has(key)) known[key] = value;
|
|
18402
|
-
else rest[key] = value;
|
|
18403
|
-
return {
|
|
18404
|
-
...known,
|
|
18405
|
-
rest
|
|
18406
|
-
};
|
|
18407
|
-
},
|
|
18408
|
-
encode: (encoded) => {
|
|
18409
|
-
const { rest, ...known } = encoded;
|
|
18410
|
-
return {
|
|
18411
|
-
...rest ?? {},
|
|
18412
|
-
...known
|
|
18413
|
-
};
|
|
18414
|
-
}
|
|
18415
|
-
})));
|
|
18416
|
-
};
|
|
18417
18431
|
/**
|
|
18418
18432
|
* A package.json document as a rich `Schema.Class`: typed known fields, a
|
|
18419
18433
|
* `rest` catch-all preserving unknown top-level fields across a read/edit/write
|
|
@@ -18634,7 +18648,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
18634
18648
|
}
|
|
18635
18649
|
};
|
|
18636
18650
|
//#endregion
|
|
18637
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18651
|
+
//#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
|
|
18638
18652
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
18639
18653
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
18640
18654
|
/**
|
|
@@ -19232,7 +19246,7 @@ var Walker$1 = class {
|
|
|
19232
19246
|
static findRoot = findRoot$1;
|
|
19233
19247
|
};
|
|
19234
19248
|
//#endregion
|
|
19235
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19249
|
+
//#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
|
|
19236
19250
|
/**
|
|
19237
19251
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
19238
19252
|
*
|
|
@@ -19419,7 +19433,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
19419
19433
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
19420
19434
|
};
|
|
19421
19435
|
//#endregion
|
|
19422
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19436
|
+
//#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
|
|
19423
19437
|
/**
|
|
19424
19438
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
19425
19439
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -19437,7 +19451,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
19437
19451
|
*/
|
|
19438
19452
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
19439
19453
|
//#endregion
|
|
19440
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19454
|
+
//#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
|
|
19441
19455
|
/** Directory names never descended into. */
|
|
19442
19456
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
19443
19457
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -19527,7 +19541,7 @@ var Traversal = class {
|
|
|
19527
19541
|
}
|
|
19528
19542
|
};
|
|
19529
19543
|
//#endregion
|
|
19530
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19544
|
+
//#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
|
|
19531
19545
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
19532
19546
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
19533
19547
|
/**
|
|
@@ -19597,7 +19611,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
19597
19611
|
return results;
|
|
19598
19612
|
});
|
|
19599
19613
|
//#endregion
|
|
19600
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19614
|
+
//#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
|
|
19601
19615
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
19602
19616
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
19603
19617
|
const pnpmPatternsOf = (document) => {
|
|
@@ -19654,7 +19668,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
19654
19668
|
return manifestPatternsOf(manifest);
|
|
19655
19669
|
});
|
|
19656
19670
|
//#endregion
|
|
19657
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19671
|
+
//#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
|
|
19658
19672
|
/**
|
|
19659
19673
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
19660
19674
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -20110,7 +20124,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
20110
20124
|
};
|
|
20111
20125
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
20112
20126
|
//#endregion
|
|
20113
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20127
|
+
//#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
|
|
20114
20128
|
/**
|
|
20115
20129
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
20116
20130
|
* because it contains a cycle.
|
|
@@ -20409,7 +20423,7 @@ const kahn = (edges) => {
|
|
|
20409
20423
|
};
|
|
20410
20424
|
};
|
|
20411
20425
|
//#endregion
|
|
20412
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
20426
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/GitCommand.js
|
|
20413
20427
|
/** The mask every whole-value sensitive positional is replaced with. */
|
|
20414
20428
|
const REDACTED = "<redacted>";
|
|
20415
20429
|
const secretValue = (value) => ({
|
|
@@ -20517,17 +20531,23 @@ const checkout = (ref, detach = false) => git([
|
|
|
20517
20531
|
...detach ? ["--detach"] : [],
|
|
20518
20532
|
ref
|
|
20519
20533
|
]);
|
|
20520
|
-
const fetch$1 = (remote, ref, depth, tag = false) => git([
|
|
20534
|
+
const fetch$1 = (remote, ref, depth, tag = false, unshallow = false) => git([
|
|
20521
20535
|
"fetch",
|
|
20522
20536
|
...depth !== void 0 ? ["--depth", String(depth)] : [],
|
|
20537
|
+
...unshallow ? ["--unshallow"] : [],
|
|
20523
20538
|
secretUrl(remote),
|
|
20524
20539
|
...tag ? ["tag"] : [],
|
|
20525
20540
|
ref
|
|
20526
20541
|
]);
|
|
20527
|
-
const submoduleUpdate = (init = false, depth, paths = []) => git([
|
|
20542
|
+
const submoduleUpdate = (init = false, depth, paths = [], options = {}) => git([
|
|
20528
20543
|
"submodule",
|
|
20529
20544
|
"update",
|
|
20530
20545
|
...init ? ["--init"] : [],
|
|
20546
|
+
...options.checkout ? ["--checkout"] : [],
|
|
20547
|
+
...options.remote ? ["--remote"] : [],
|
|
20548
|
+
...options.fetch === false ? ["--no-fetch"] : [],
|
|
20549
|
+
...options.recursive ? ["--recursive"] : [],
|
|
20550
|
+
...options.force ? ["--force"] : [],
|
|
20531
20551
|
...depth !== void 0 ? ["--depth", String(depth)] : [],
|
|
20532
20552
|
...paths.length > 0 ? ["--", ...paths] : []
|
|
20533
20553
|
]);
|
|
@@ -20817,6 +20837,19 @@ const configUnset = (key, file, all = false) => git([
|
|
|
20817
20837
|
all ? "--unset-all" : "--unset",
|
|
20818
20838
|
key
|
|
20819
20839
|
]);
|
|
20840
|
+
const configRemoveSection = (section, file) => git([
|
|
20841
|
+
"config",
|
|
20842
|
+
...file !== void 0 ? ["-f", file] : [],
|
|
20843
|
+
"--remove-section",
|
|
20844
|
+
section
|
|
20845
|
+
]);
|
|
20846
|
+
const configRenameSection = (oldName, newName, file) => git([
|
|
20847
|
+
"config",
|
|
20848
|
+
...file !== void 0 ? ["-f", file] : [],
|
|
20849
|
+
"--rename-section",
|
|
20850
|
+
oldName,
|
|
20851
|
+
newName
|
|
20852
|
+
]);
|
|
20820
20853
|
const rm = (paths, cached = false, recursive = false, force = false) => git([
|
|
20821
20854
|
"rm",
|
|
20822
20855
|
...cached ? ["--cached"] : [],
|
|
@@ -20911,6 +20944,13 @@ var GitCommand = class {
|
|
|
20911
20944
|
static refExists = refExists;
|
|
20912
20945
|
/**
|
|
20913
20946
|
* `git merge-base <a> <b>` — the best common ancestor commit of `a` and `b`.
|
|
20947
|
+
*
|
|
20948
|
+
* @remarks
|
|
20949
|
+
* Two refs with NO common ancestor (disjoint histories) exit 1 with
|
|
20950
|
+
* silent stderr. One builder backs both service members: `Git.mergeBase`
|
|
20951
|
+
* surfaces that shape as a loud `GitCommandError` (absence is
|
|
20952
|
+
* exceptional), while `Git.mergeBaseOption` degrades it to `Option.none`
|
|
20953
|
+
* (a probe answer). The argv is identical either way.
|
|
20914
20954
|
*/
|
|
20915
20955
|
static mergeBase = mergeBase;
|
|
20916
20956
|
/**
|
|
@@ -20978,11 +21018,21 @@ var GitCommand = class {
|
|
|
20978
21018
|
*/
|
|
20979
21019
|
static checkout = checkout;
|
|
20980
21020
|
/**
|
|
20981
|
-
* Mutating: `git fetch [--depth <n>] <remote> [tag] <ref>` —
|
|
20982
|
-
* ref from a remote, optionally with a depth limit
|
|
21021
|
+
* Mutating: `git fetch [--depth <n>] [--unshallow] <remote> [tag] <ref>` —
|
|
21022
|
+
* fetches the given ref from a remote, optionally with a depth limit, the
|
|
21023
|
+
* `--unshallow` mode, and the `tag` keyword.
|
|
20983
21024
|
*
|
|
20984
21025
|
* @remarks
|
|
20985
|
-
* `
|
|
21026
|
+
* `ref` may also be a full refspec (`src:dst`, optionally `+`-prefixed) —
|
|
21027
|
+
* it is passed through VERBATIM, never transformed. That matters under a
|
|
21028
|
+
* single-branch clone (`actions/checkout`'s default): a bare-ref fetch
|
|
21029
|
+
* there updates `FETCH_HEAD` only and never creates the remote-tracking
|
|
21030
|
+
* ref, so `+refs/heads/<b>:refs/remotes/origin/<b>` is the only spelling
|
|
21031
|
+
* that materializes `origin/<b>`.
|
|
21032
|
+
*
|
|
21033
|
+
* `unshallow` is a distinct MODE like {@link GitCommand.fetchUnshallow}'s:
|
|
21034
|
+
* git rejects it in a non-shallow repository and rejects it alongside
|
|
21035
|
+
* `--depth`. `remote` may be a URL as well as a remote name; an embedded
|
|
20986
21036
|
* `userinfo@` credential is masked in {@link GitInvocation.redactedArgs}.
|
|
20987
21037
|
*/
|
|
20988
21038
|
static fetch = fetch$1;
|
|
@@ -21080,10 +21130,23 @@ var GitCommand = class {
|
|
|
21080
21130
|
*/
|
|
21081
21131
|
static branchDelete = branchDelete;
|
|
21082
21132
|
/**
|
|
21083
|
-
* Mutating:
|
|
21084
|
-
*
|
|
21085
|
-
*
|
|
21086
|
-
*
|
|
21133
|
+
* Mutating:
|
|
21134
|
+
* `git submodule update [--init] [--checkout] [--remote] [--no-fetch] [--recursive] [--force] [--depth <n>] [-- <paths>...]`
|
|
21135
|
+
* — updates registered submodules, optionally initializing them, with an
|
|
21136
|
+
* optional depth limit, and scoped to specific paths. The literal `--`
|
|
21137
|
+
* separator makes the pathspec injection-safe by construction.
|
|
21138
|
+
*
|
|
21139
|
+
* @remarks
|
|
21140
|
+
* `options.checkout` is the documented override for a
|
|
21141
|
+
* `submodule.<name>.update = none` configuration — without it, an update of
|
|
21142
|
+
* such a submodule silently skips it (git reports success and checks out
|
|
21143
|
+
* nothing). `options.fetch` accepts only the literal `false` (emitting
|
|
21144
|
+
* `--no-fetch`): git's default already fetches and offers no positive
|
|
21145
|
+
* `--fetch` spelling, so `true` would be an unrepresentable no-op.
|
|
21146
|
+
* `options.remote` tracks the remote branch's tip instead of the
|
|
21147
|
+
* superproject's recorded sha; `options.recursive` descends into nested
|
|
21148
|
+
* submodules; `options.force` discards local changes in the submodule
|
|
21149
|
+
* working tree (and re-checks-out even when the recorded sha is current).
|
|
21087
21150
|
*/
|
|
21088
21151
|
static submoduleUpdate = submoduleUpdate;
|
|
21089
21152
|
/**
|
|
@@ -21437,6 +21500,27 @@ var GitCommand = class {
|
|
|
21437
21500
|
*/
|
|
21438
21501
|
static configUnset = configUnset;
|
|
21439
21502
|
/**
|
|
21503
|
+
* Mutating: `git config [-f <file>] --remove-section <section>` — removes
|
|
21504
|
+
* a whole configuration section (every key under it, and the section
|
|
21505
|
+
* header itself).
|
|
21506
|
+
*
|
|
21507
|
+
* @remarks
|
|
21508
|
+
* git exits 128 (`fatal: no such section`) when the section does not
|
|
21509
|
+
* exist — a loud failure by this package's classification, matching
|
|
21510
|
+
* {@link GitCommand.configUnset}'s posture: a removal that silently did
|
|
21511
|
+
* nothing is indistinguishable from one that worked.
|
|
21512
|
+
*/
|
|
21513
|
+
static configRemoveSection = configRemoveSection;
|
|
21514
|
+
/**
|
|
21515
|
+
* Mutating: `git config [-f <file>] --rename-section <old> <new>` —
|
|
21516
|
+
* renames a configuration section, carrying every key under it across.
|
|
21517
|
+
*
|
|
21518
|
+
* @remarks
|
|
21519
|
+
* git exits 128 (`fatal: no such section`) when the old section does not
|
|
21520
|
+
* exist — the same loud posture as {@link GitCommand.configRemoveSection}.
|
|
21521
|
+
*/
|
|
21522
|
+
static configRenameSection = configRenameSection;
|
|
21523
|
+
/**
|
|
21440
21524
|
* Mutating: `git rm [--cached] [-r] [--force] -- <paths...>` — removes
|
|
21441
21525
|
* paths from the index (and, without `cached`, the working tree). The
|
|
21442
21526
|
* literal `--` separator makes the pathspec injection-safe by
|
|
@@ -21492,7 +21576,7 @@ var GitCommand = class {
|
|
|
21492
21576
|
static lsFiles = lsFiles;
|
|
21493
21577
|
};
|
|
21494
21578
|
//#endregion
|
|
21495
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21579
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/internal/run.js
|
|
21496
21580
|
/**
|
|
21497
21581
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
21498
21582
|
* triple.
|
|
@@ -21519,7 +21603,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
|
|
|
21519
21603
|
};
|
|
21520
21604
|
}));
|
|
21521
21605
|
//#endregion
|
|
21522
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21606
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/git/Git.js
|
|
21523
21607
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
21524
21608
|
const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
21525
21609
|
/**
|
|
@@ -22501,6 +22585,26 @@ const make = (spawner) => {
|
|
|
22501
22585
|
default: return yield* effect.Effect.die(`Git.mergeBase: unexpected classification "${classified._tag}"`);
|
|
22502
22586
|
}
|
|
22503
22587
|
});
|
|
22588
|
+
const mergeBaseOption = effect.Effect.fn("Git.mergeBaseOption")(function* (cwd, a, b) {
|
|
22589
|
+
yield* effect.Effect.annotateCurrentSpan({
|
|
22590
|
+
cwd,
|
|
22591
|
+
a,
|
|
22592
|
+
b
|
|
22593
|
+
});
|
|
22594
|
+
yield* rejectOptionLikeRefs(cwd, [a, b]);
|
|
22595
|
+
const classified = yield* runFor(GitCommand.mergeBase(a, b), cwd, "quiet");
|
|
22596
|
+
switch (classified._tag) {
|
|
22597
|
+
case "success": return effect.Option.some(classified.output.trim());
|
|
22598
|
+
case "absent": return effect.Option.none();
|
|
22599
|
+
case "notARepository": return yield* effect.Effect.fail(new NotARepositoryError({ cwd }));
|
|
22600
|
+
case "unknownRef": return yield* effect.Effect.fail(new UnknownRefError({
|
|
22601
|
+
ref: `${a}...${b}`,
|
|
22602
|
+
cwd
|
|
22603
|
+
}));
|
|
22604
|
+
case "failure": return yield* effect.Effect.fail(classified.error);
|
|
22605
|
+
default: return yield* effect.Effect.die(`Git.mergeBaseOption: unexpected classification "${classified._tag}"`);
|
|
22606
|
+
}
|
|
22607
|
+
});
|
|
22504
22608
|
const changedFiles = effect.Effect.fn("Git.changedFiles")(function* (cwd, options) {
|
|
22505
22609
|
const relative = options.relative ?? false;
|
|
22506
22610
|
yield* effect.Effect.annotateCurrentSpan({
|
|
@@ -22766,14 +22870,27 @@ const make = (spawner) => {
|
|
|
22766
22870
|
const fetch = effect.Effect.fn("Git.fetch")(function* (cwd, options) {
|
|
22767
22871
|
const remote = options.remote ?? "origin";
|
|
22768
22872
|
const tag = options.tag ?? false;
|
|
22873
|
+
const unshallow = options.unshallow ?? false;
|
|
22769
22874
|
yield* effect.Effect.annotateCurrentSpan({
|
|
22770
22875
|
cwd,
|
|
22771
22876
|
ref: options.ref,
|
|
22772
|
-
tag
|
|
22877
|
+
tag,
|
|
22878
|
+
unshallow
|
|
22773
22879
|
});
|
|
22774
22880
|
yield* rejectOptionLikeRefs(cwd, [remote, options.ref]);
|
|
22775
22881
|
yield* rejectNonNaturalNumber(cwd, "a fetch depth", options.depth);
|
|
22776
|
-
|
|
22882
|
+
if (unshallow && options.depth !== void 0) return yield* effect.Effect.fail(new GitCommandError({
|
|
22883
|
+
kind: "refused",
|
|
22884
|
+
args: [
|
|
22885
|
+
"--unshallow",
|
|
22886
|
+
"--depth",
|
|
22887
|
+
String(options.depth)
|
|
22888
|
+
],
|
|
22889
|
+
cwd,
|
|
22890
|
+
stderr: "",
|
|
22891
|
+
detail: "refused: fetch cannot combine unshallow with depth (git rejects the pair)"
|
|
22892
|
+
}));
|
|
22893
|
+
const classified = yield* runFor(GitCommand.fetch(remote, options.ref, options.depth, tag, unshallow), cwd, "generic");
|
|
22777
22894
|
switch (classified._tag) {
|
|
22778
22895
|
case "success": return;
|
|
22779
22896
|
case "notARepository": return yield* effect.Effect.fail(new NotARepositoryError({ cwd }));
|
|
@@ -22797,12 +22914,20 @@ const make = (spawner) => {
|
|
|
22797
22914
|
});
|
|
22798
22915
|
const submoduleUpdate = effect.Effect.fn("Git.submoduleUpdate")(function* (cwd, options) {
|
|
22799
22916
|
const init = options?.init ?? false;
|
|
22917
|
+
const checkout = options?.checkout ?? false;
|
|
22800
22918
|
yield* effect.Effect.annotateCurrentSpan({
|
|
22801
22919
|
cwd,
|
|
22802
|
-
init
|
|
22920
|
+
init,
|
|
22921
|
+
checkout
|
|
22803
22922
|
});
|
|
22804
22923
|
yield* rejectNonNaturalNumber(cwd, "a submodule update depth", options?.depth);
|
|
22805
|
-
const classified = yield* runFor(GitCommand.submoduleUpdate(init, options?.depth, options?.paths ?? []
|
|
22924
|
+
const classified = yield* runFor(GitCommand.submoduleUpdate(init, options?.depth, options?.paths ?? [], {
|
|
22925
|
+
checkout,
|
|
22926
|
+
remote: options?.remote ?? false,
|
|
22927
|
+
recursive: options?.recursive ?? false,
|
|
22928
|
+
force: options?.force ?? false,
|
|
22929
|
+
...options?.fetch === false ? { fetch: false } : {}
|
|
22930
|
+
}), cwd, "generic");
|
|
22806
22931
|
switch (classified._tag) {
|
|
22807
22932
|
case "success": return;
|
|
22808
22933
|
case "notARepository": return yield* effect.Effect.fail(new NotARepositoryError({ cwd }));
|
|
@@ -23252,6 +23377,7 @@ const make = (spawner) => {
|
|
|
23252
23377
|
lsTree,
|
|
23253
23378
|
refExists,
|
|
23254
23379
|
mergeBase,
|
|
23380
|
+
mergeBaseOption,
|
|
23255
23381
|
changedFiles,
|
|
23256
23382
|
workingChanges,
|
|
23257
23383
|
revParse,
|
|
@@ -23436,6 +23562,29 @@ const make = (spawner) => {
|
|
|
23436
23562
|
yield* rejectOptionLikeRefs(cwd, [key, ...options?.file !== void 0 ? [options.file] : []]);
|
|
23437
23563
|
return yield* runVoid("Git.configUnset", GitCommand.configUnset(key, options?.file, options?.all ?? false), cwd, key);
|
|
23438
23564
|
}),
|
|
23565
|
+
configRemoveSection: effect.Effect.fn("Git.configRemoveSection")(function* (cwd, section, options) {
|
|
23566
|
+
yield* effect.Effect.annotateCurrentSpan({
|
|
23567
|
+
cwd,
|
|
23568
|
+
section,
|
|
23569
|
+
file: options?.file ?? "(repository config)"
|
|
23570
|
+
});
|
|
23571
|
+
yield* rejectOptionLikeRefs(cwd, [section, ...options?.file !== void 0 ? [options.file] : []]);
|
|
23572
|
+
return yield* runVoid("Git.configRemoveSection", GitCommand.configRemoveSection(section, options?.file), cwd, section);
|
|
23573
|
+
}),
|
|
23574
|
+
configRenameSection: effect.Effect.fn("Git.configRenameSection")(function* (cwd, oldName, newName, options) {
|
|
23575
|
+
yield* effect.Effect.annotateCurrentSpan({
|
|
23576
|
+
cwd,
|
|
23577
|
+
oldName,
|
|
23578
|
+
newName,
|
|
23579
|
+
file: options?.file ?? "(repository config)"
|
|
23580
|
+
});
|
|
23581
|
+
yield* rejectOptionLikeRefs(cwd, [
|
|
23582
|
+
oldName,
|
|
23583
|
+
newName,
|
|
23584
|
+
...options?.file !== void 0 ? [options.file] : []
|
|
23585
|
+
]);
|
|
23586
|
+
return yield* runVoid("Git.configRenameSection", GitCommand.configRenameSection(oldName, newName, options?.file), cwd, oldName);
|
|
23587
|
+
}),
|
|
23439
23588
|
rm: effect.Effect.fn("Git.rm")(function* (cwd, paths, options) {
|
|
23440
23589
|
yield* effect.Effect.annotateCurrentSpan({
|
|
23441
23590
|
cwd,
|
|
@@ -23575,6 +23724,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
23575
23724
|
lsTree: notStubbed("lsTree"),
|
|
23576
23725
|
refExists: notStubbed("refExists"),
|
|
23577
23726
|
mergeBase: notStubbed("mergeBase"),
|
|
23727
|
+
mergeBaseOption: notStubbed("mergeBaseOption"),
|
|
23578
23728
|
changedFiles: notStubbed("changedFiles"),
|
|
23579
23729
|
workingChanges: notStubbed("workingChanges"),
|
|
23580
23730
|
revParse: notStubbed("revParse"),
|
|
@@ -23633,6 +23783,8 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
23633
23783
|
configList: notStubbed("configList"),
|
|
23634
23784
|
configGetAll: notStubbed("configGetAll"),
|
|
23635
23785
|
configUnset: notStubbed("configUnset"),
|
|
23786
|
+
configRemoveSection: notStubbed("configRemoveSection"),
|
|
23787
|
+
configRenameSection: notStubbed("configRenameSection"),
|
|
23636
23788
|
rm: notStubbed("rm"),
|
|
23637
23789
|
mv: notStubbed("mv"),
|
|
23638
23790
|
checkIgnore: notStubbed("checkIgnore"),
|
|
@@ -23668,7 +23820,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
23668
23820
|
static layerTest = (overrides = {}) => effect.Layer.succeed(Git, Git.makeTest(overrides));
|
|
23669
23821
|
};
|
|
23670
23822
|
//#endregion
|
|
23671
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23823
|
+
//#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
|
|
23672
23824
|
/**
|
|
23673
23825
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
23674
23826
|
*
|
|
@@ -23924,7 +24076,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
23924
24076
|
};
|
|
23925
24077
|
}
|
|
23926
24078
|
//#endregion
|
|
23927
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24079
|
+
//#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
|
|
23928
24080
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
23929
24081
|
const inlineCatalogs = (manifest) => {
|
|
23930
24082
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -23988,7 +24140,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
23988
24140
|
});
|
|
23989
24141
|
};
|
|
23990
24142
|
//#endregion
|
|
23991
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24143
|
+
//#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
|
|
23992
24144
|
/** Whether `value` is a non-null, non-array object. */
|
|
23993
24145
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23994
24146
|
/**
|
|
@@ -24275,7 +24427,10 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
24275
24427
|
const candidatePath = (0, node_path.join)(root, "node_modules", ".pnpm-config", name, filename);
|
|
24276
24428
|
const candidateUrl = (0, node_url.pathToFileURL)(candidatePath).href;
|
|
24277
24429
|
const result = yield* effect.Effect.result(effect.Effect.tryPromise({
|
|
24278
|
-
try: () => import(
|
|
24430
|
+
try: () => import(
|
|
24431
|
+
/* webpackIgnore: true */
|
|
24432
|
+
candidateUrl
|
|
24433
|
+
),
|
|
24279
24434
|
catch: (cause) => cause
|
|
24280
24435
|
}));
|
|
24281
24436
|
if (effect.Result.isSuccess(result)) {
|
|
@@ -24399,7 +24554,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
24399
24554
|
}));
|
|
24400
24555
|
};
|
|
24401
24556
|
//#endregion
|
|
24402
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24557
|
+
//#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
|
|
24403
24558
|
/**
|
|
24404
24559
|
* The four package managers this package understands.
|
|
24405
24560
|
*
|
|
@@ -24412,6 +24567,35 @@ const PackageManagerName = effect.Schema.Literals([
|
|
|
24412
24567
|
"bun"
|
|
24413
24568
|
]);
|
|
24414
24569
|
/**
|
|
24570
|
+
* The markers {@link PackageManagerDetector} probes, in the priority order it
|
|
24571
|
+
* probes them.
|
|
24572
|
+
*
|
|
24573
|
+
* @remarks
|
|
24574
|
+
* One vocabulary serves both halves of the detection contract: the failure path
|
|
24575
|
+
* reports every member as `PackageManagerDetectionError.checked`, and the
|
|
24576
|
+
* success path reports the one that fired as
|
|
24577
|
+
* `DetectedPackageManager.evidence`. A closed literal union rather than
|
|
24578
|
+
* free text, so a consumer logging *why* a workspace was classified asserts
|
|
24579
|
+
* against the kit's vocabulary instead of re-deriving the probe with its own
|
|
24580
|
+
* filesystem reads.
|
|
24581
|
+
*
|
|
24582
|
+
* The `package.json#…` spellings name manifest *fields*; the rest are marker
|
|
24583
|
+
* files at the workspace root.
|
|
24584
|
+
*
|
|
24585
|
+
* @public
|
|
24586
|
+
*/
|
|
24587
|
+
const PackageManagerEvidence = effect.Schema.Literals([
|
|
24588
|
+
"pnpm-workspace.yaml",
|
|
24589
|
+
"bun.lock",
|
|
24590
|
+
"bun.lockb",
|
|
24591
|
+
"yarn.lock",
|
|
24592
|
+
"package.json#workspaces",
|
|
24593
|
+
"pnpm-lock.yaml",
|
|
24594
|
+
"package-lock.json",
|
|
24595
|
+
"package.json#devEngines.packageManager",
|
|
24596
|
+
"package.json#packageManager"
|
|
24597
|
+
]);
|
|
24598
|
+
/**
|
|
24415
24599
|
* The outcome of package-manager detection at a workspace root.
|
|
24416
24600
|
*
|
|
24417
24601
|
* @remarks
|
|
@@ -24422,6 +24606,15 @@ const PackageManagerName = effect.Schema.Literals([
|
|
|
24422
24606
|
* `devEngines.packageManager`; see {@link PackageManagerDetector} for the
|
|
24423
24607
|
* precedence between them.
|
|
24424
24608
|
*
|
|
24609
|
+
* `evidence` is the rung of the priority order that decided the **name** — the
|
|
24610
|
+
* verdict's provenance, in the same vocabulary the failure path reports as
|
|
24611
|
+
* `PackageManagerDetectionError.checked`. For the bun and yarn rungs the
|
|
24612
|
+
* lockfile is the recorded signal even though the rung is a conjunction (the
|
|
24613
|
+
* lockfile *plus* a manifest field naming the manager): the manifest field alone
|
|
24614
|
+
* would have resolved in the declaration tier, so the lockfile is what this rung
|
|
24615
|
+
* added. The version's provenance is deliberately not carried — it follows the
|
|
24616
|
+
* two-field precedence above, which is a rule, not a probe.
|
|
24617
|
+
*
|
|
24425
24618
|
* @public
|
|
24426
24619
|
*/
|
|
24427
24620
|
var DetectedPackageManager = class extends effect.Schema.Class("DetectedPackageManager")({
|
|
@@ -24430,7 +24623,9 @@ var DetectedPackageManager = class extends effect.Schema.Class("DetectedPackageM
|
|
|
24430
24623
|
/** Its version, when a manifest field agrees on the manager and carries one. */
|
|
24431
24624
|
version: effect.Schema.Option(effect.Schema.String),
|
|
24432
24625
|
/** The JavaScript runtime the manager implies. */
|
|
24433
|
-
runtime: effect.Schema.Literals(["node", "bun"])
|
|
24626
|
+
runtime: effect.Schema.Literals(["node", "bun"]),
|
|
24627
|
+
/** The rung of the priority order that decided the name. */
|
|
24628
|
+
evidence: PackageManagerEvidence
|
|
24434
24629
|
}) {};
|
|
24435
24630
|
/** Whether `value` is a non-null, non-array object — corepack's own shape test. */
|
|
24436
24631
|
const isPlainObject$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -24494,18 +24689,11 @@ var PackageManagerDetectionError = class extends effect.Schema.TaggedError()("Pa
|
|
|
24494
24689
|
return `No package manager detected at ${this.root} (checked ${this.checked.join(", ")})`;
|
|
24495
24690
|
}
|
|
24496
24691
|
};
|
|
24497
|
-
/**
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
"yarn.lock",
|
|
24503
|
-
"package.json#workspaces",
|
|
24504
|
-
"pnpm-lock.yaml",
|
|
24505
|
-
"package-lock.json",
|
|
24506
|
-
"package.json#packageManager",
|
|
24507
|
-
"package.json#devEngines.packageManager"
|
|
24508
|
-
];
|
|
24692
|
+
/**
|
|
24693
|
+
* The markers probed, in priority order. Derived from the evidence vocabulary so
|
|
24694
|
+
* the failure path's `checked` and the success path's `evidence` cannot drift.
|
|
24695
|
+
*/
|
|
24696
|
+
const CHECKED = PackageManagerEvidence.literals;
|
|
24509
24697
|
/**
|
|
24510
24698
|
* Detects which package manager owns a workspace root.
|
|
24511
24699
|
*
|
|
@@ -24616,44 +24804,52 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
24616
24804
|
if (yield* has(root, "pnpm-workspace.yaml")) return DetectedPackageManager.make({
|
|
24617
24805
|
name: "pnpm",
|
|
24618
24806
|
version: versionFor(hints, "pnpm"),
|
|
24619
|
-
runtime: "node"
|
|
24807
|
+
runtime: "node",
|
|
24808
|
+
evidence: "pnpm-workspace.yaml"
|
|
24620
24809
|
});
|
|
24621
|
-
const bunLock = (yield* has(root, "bun.lock"))
|
|
24622
|
-
if (bunLock && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24810
|
+
const bunLock = (yield* has(root, "bun.lock")) ? effect.Option.some("bun.lock") : (yield* has(root, "bun.lockb")) ? effect.Option.some("bun.lockb") : effect.Option.none();
|
|
24811
|
+
if (effect.Option.isSome(bunLock) && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24623
24812
|
name: "bun",
|
|
24624
24813
|
version: versionFor(hints, "bun"),
|
|
24625
|
-
runtime: "bun"
|
|
24814
|
+
runtime: "bun",
|
|
24815
|
+
evidence: bunLock.value
|
|
24626
24816
|
});
|
|
24627
24817
|
if ((yield* has(root, "yarn.lock")) && namesManager(hints, "yarn")) return DetectedPackageManager.make({
|
|
24628
24818
|
name: "yarn",
|
|
24629
24819
|
version: versionFor(hints, "yarn"),
|
|
24630
|
-
runtime: "node"
|
|
24820
|
+
runtime: "node",
|
|
24821
|
+
evidence: "yarn.lock"
|
|
24631
24822
|
});
|
|
24632
24823
|
const workspaces = effect.Option.map(manifest, (fields) => fields.workspaces);
|
|
24633
24824
|
if (effect.Option.isSome(workspaces) && workspaces.value !== void 0 && workspaces.value !== null) return DetectedPackageManager.make({
|
|
24634
24825
|
name: "npm",
|
|
24635
24826
|
version: versionFor(hints, "npm"),
|
|
24636
|
-
runtime: "node"
|
|
24827
|
+
runtime: "node",
|
|
24828
|
+
evidence: "package.json#workspaces"
|
|
24637
24829
|
});
|
|
24638
24830
|
if (yield* has(root, "pnpm-lock.yaml")) return DetectedPackageManager.make({
|
|
24639
24831
|
name: "pnpm",
|
|
24640
24832
|
version: versionFor(hints, "pnpm"),
|
|
24641
|
-
runtime: "node"
|
|
24833
|
+
runtime: "node",
|
|
24834
|
+
evidence: "pnpm-lock.yaml"
|
|
24642
24835
|
});
|
|
24643
|
-
if (bunLock && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24836
|
+
if (effect.Option.isSome(bunLock) && namesManager(hints, "bun")) return DetectedPackageManager.make({
|
|
24644
24837
|
name: "bun",
|
|
24645
24838
|
version: versionFor(hints, "bun"),
|
|
24646
|
-
runtime: "bun"
|
|
24839
|
+
runtime: "bun",
|
|
24840
|
+
evidence: bunLock.value
|
|
24647
24841
|
});
|
|
24648
24842
|
if ((yield* has(root, "yarn.lock")) && namesManager(hints, "yarn")) return DetectedPackageManager.make({
|
|
24649
24843
|
name: "yarn",
|
|
24650
24844
|
version: versionFor(hints, "yarn"),
|
|
24651
|
-
runtime: "node"
|
|
24845
|
+
runtime: "node",
|
|
24846
|
+
evidence: "yarn.lock"
|
|
24652
24847
|
});
|
|
24653
24848
|
if (yield* has(root, "package-lock.json")) return DetectedPackageManager.make({
|
|
24654
24849
|
name: "npm",
|
|
24655
24850
|
version: versionFor(hints, "npm"),
|
|
24656
|
-
runtime: "node"
|
|
24851
|
+
runtime: "node",
|
|
24852
|
+
evidence: "package-lock.json"
|
|
24657
24853
|
});
|
|
24658
24854
|
const declared = declaredName(hints);
|
|
24659
24855
|
if (effect.Option.isSome(declared)) {
|
|
@@ -24661,7 +24857,8 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
24661
24857
|
if (name === "pnpm" || name === "npm" || name === "yarn" || name === "bun") return DetectedPackageManager.make({
|
|
24662
24858
|
name,
|
|
24663
24859
|
version: versionFor(hints, name),
|
|
24664
|
-
runtime: name === "bun" ? "bun" : "node"
|
|
24860
|
+
runtime: name === "bun" ? "bun" : "node",
|
|
24861
|
+
evidence: effect.Option.isSome(hints.devEngines) ? "package.json#devEngines.packageManager" : "package.json#packageManager"
|
|
24665
24862
|
});
|
|
24666
24863
|
}
|
|
24667
24864
|
return yield* effect.Effect.fail(new PackageManagerDetectionError({
|
|
@@ -24704,7 +24901,12 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
24704
24901
|
* const TestDetector = PackageManagerDetector.layerTest({
|
|
24705
24902
|
* detect: () =>
|
|
24706
24903
|
* Effect.succeed(
|
|
24707
|
-
* DetectedPackageManager.make({
|
|
24904
|
+
* DetectedPackageManager.make({
|
|
24905
|
+
* name: "pnpm",
|
|
24906
|
+
* version: Option.none(),
|
|
24907
|
+
* runtime: "node",
|
|
24908
|
+
* evidence: "pnpm-workspace.yaml",
|
|
24909
|
+
* }),
|
|
24708
24910
|
* ),
|
|
24709
24911
|
* });
|
|
24710
24912
|
* ```
|
|
@@ -24727,7 +24929,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
24727
24929
|
static layerTest = (overrides = {}) => effect.Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
|
|
24728
24930
|
};
|
|
24729
24931
|
//#endregion
|
|
24730
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24932
|
+
//#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
|
|
24731
24933
|
/**
|
|
24732
24934
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
24733
24935
|
*
|
|
@@ -24907,7 +25109,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
24907
25109
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
|
|
24908
25110
|
};
|
|
24909
25111
|
//#endregion
|
|
24910
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25112
|
+
//#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
|
|
24911
25113
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
24912
25114
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
24913
25115
|
/**
|
|
@@ -25066,7 +25268,7 @@ var PublishabilityDetector = class extends effect.Context.Service()("@effected/w
|
|
|
25066
25268
|
static layerNone = effect.Layer.succeed(this, this.none);
|
|
25067
25269
|
};
|
|
25068
25270
|
//#endregion
|
|
25069
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25271
|
+
//#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
|
|
25070
25272
|
/**
|
|
25071
25273
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
25072
25274
|
*
|
|
@@ -25152,7 +25354,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
25152
25354
|
return agreed;
|
|
25153
25355
|
};
|
|
25154
25356
|
//#endregion
|
|
25155
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25357
|
+
//#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
|
|
25156
25358
|
/**
|
|
25157
25359
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
25158
25360
|
* resolution semantic in the package.
|
|
@@ -25679,7 +25881,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
25679
25881
|
}));
|
|
25680
25882
|
};
|
|
25681
25883
|
//#endregion
|
|
25682
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25884
|
+
//#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
|
|
25683
25885
|
const EMPTY = Object.freeze(Object.create(null));
|
|
25684
25886
|
const DependencyMap = effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY)));
|
|
25685
25887
|
/**
|
|
@@ -25902,7 +26104,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
25902
26104
|
}
|
|
25903
26105
|
};
|
|
25904
26106
|
//#endregion
|
|
25905
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
26107
|
+
//#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
|
|
25906
26108
|
/** Whether `value` is a non-null, non-array object. */
|
|
25907
26109
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25908
26110
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -26179,7 +26381,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
26179
26381
|
static layerTest = (overrides = {}) => effect.Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
|
|
26180
26382
|
};
|
|
26181
26383
|
//#endregion
|
|
26182
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
26384
|
+
//#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
|
|
26183
26385
|
const compose = (options, catalogsFactory) => {
|
|
26184
26386
|
const roots = WorkspaceRoot.layer;
|
|
26185
26387
|
const detector = PackageManagerDetector.layer;
|