@gadicc/loom 1.35.0 → 1.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -9
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +274 -34
- package/package.json +2 -2
- package/script/src/cli/mod.d.ts.map +1 -1
- package/script/src/cli/mod.js +274 -34
- package/skills/loom/SKILL.md +15 -1
package/README.md
CHANGED
|
@@ -331,14 +331,22 @@ documented in [`docs/project-tooling.md`](docs/project-tooling.md).
|
|
|
331
331
|
imports or DB/jobs tasks that bypass `loom env --`, warns when authoritative
|
|
332
332
|
and secondary configs expose conflicting tasks, and warns when a Deno link or
|
|
333
333
|
`pnpm-lock.yaml` still resolves Loom to local source. If
|
|
334
|
-
`.loom/dev-state.json` records a synced Loom commit
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
Loom
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
334
|
+
`.loom/dev-state.json` records a synced Loom commit while local Loom may still
|
|
335
|
+
be in use (a local override, link or catalog entry, a local lockfile
|
|
336
|
+
resolution, or an installed copy that is not provably the published package),
|
|
337
|
+
`loom check` also explains whether that commit is unpublished or published in
|
|
338
|
+
a newer exact Loom version than the app is pinned to; with `--production` that
|
|
339
|
+
fails only while a link, override or local lockfile points at local Loom, not
|
|
340
|
+
for an unproven installed copy alone. (A Deno node_modules copy is proven
|
|
341
|
+
published when `deno.lock` records no Loom link and resolves the pinned
|
|
342
|
+
version from the registry.) Otherwise the record is stale: `loom check` notes
|
|
343
|
+
that it can be deleted and only advises a newer pin, and a recorded checkout
|
|
344
|
+
that no longer exists never fails the check on its own. Pass `--strict-skills`
|
|
345
|
+
to turn missing skill recommendations into check failures. Pass `--production`
|
|
346
|
+
to make local Loom dev overrides, local lockfile resolutions, unresolved
|
|
347
|
+
synced Loom commits, and DB migration release-flow gaps release-blocking
|
|
348
|
+
failures. Pass `--network` to also run registered feature network checks after
|
|
349
|
+
the local project checks.
|
|
342
350
|
|
|
343
351
|
The current CLI scope is project bootstrap, validation, and feature-specific
|
|
344
352
|
scaffolding. Extracted feature hooks are added behind the same `init`, `add`,
|
|
@@ -492,7 +500,9 @@ The managed local-dev block also records the Loom source commit that was synced
|
|
|
492
500
|
when the local package path points at a Loom git checkout, and the same state is
|
|
493
501
|
persisted in gitignored `.loom/dev-state.json` so `loom check` can still
|
|
494
502
|
diagnose stale local lockfiles after the workspace override has been removed.
|
|
495
|
-
That record is informational
|
|
503
|
+
That record is informational, and `loom dev published` deletes it once nothing
|
|
504
|
+
local is in use any more (for pnpm, typically when rerun after the
|
|
505
|
+
`pnpm install` it asks for). `loom dev published` gates on the provenance the
|
|
496
506
|
installed build itself records in `npm/.loom-build.json`: a build from a clean
|
|
497
507
|
commit that has reached `origin/main` and is either included in a semver release
|
|
498
508
|
tag or has no package-relevant changes after the latest semver tag can be
|
package/esm/src/cli/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"AAqCA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AA8BjC,OAAO,EAcL,KAAK,cAAc,EAMpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAC;AAgB3B,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAC9C,eAAO,MAAM,oBAAoB,2DACyB,CAAC;AAC3D,eAAO,MAAM,yBAAyB,uCAAuC,CAAC;AAC9E,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAC1E,eAAO,MAAM,8BAA8B,8CACE,CAAC;AAC9C,eAAO,MAAM,4BAA4B,4CACE,CAAC;AAC5C,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AAC1E,eA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EAC3B,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,EAAE,SAAS,EACb,OAAO,GAAE;IACP,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBAiBP;AA0tBD,wBAAsB,MAAM,CAC1B,IAAI,MAAwB,EAC5B,EAAE,GAAE,SAGH,EACD,OAAO,GAAE;IACP,yEAAyE;IACzE,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBA6MP"}
|
package/esm/src/cli/mod.js
CHANGED
|
@@ -2268,7 +2268,7 @@ function plainYamlValue(value) {
|
|
|
2268
2268
|
return trimmed.replace(/\s+#.*$/, "").trim();
|
|
2269
2269
|
}
|
|
2270
2270
|
/**
|
|
2271
|
-
* Local (`file:`/`link:`) Loom entries of the pnpm-workspace.yaml
|
|
2271
|
+
* Local (`file:`/`link:`/`workspace:`) Loom entries of the pnpm-workspace.yaml
|
|
2272
2272
|
* `overrides:` map outside Loom's managed block, such as one written by
|
|
2273
2273
|
* hand. `line` is the entry's line in `text` once the managed block is
|
|
2274
2274
|
* removed, or null in flow style, which Loom does not edit.
|
|
@@ -2283,7 +2283,7 @@ function getUnmanagedPnpmWorkspaceLoomOverrides(text) {
|
|
|
2283
2283
|
return entries;
|
|
2284
2284
|
const add = (key, value, line) => {
|
|
2285
2285
|
const spec = plainYamlValue(value);
|
|
2286
|
-
if (overrideKeyTargetsLoom(key) &&
|
|
2286
|
+
if (overrideKeyTargetsLoom(key) && isLocalPackageSpec(spec)) {
|
|
2287
2287
|
entries.push({ key, line, spec });
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
@@ -3208,6 +3208,208 @@ export async function captureLoadedLocalLoomSignature(cwd, env) {
|
|
|
3208
3208
|
function formatPnpmOverrideNotAppliedMessage(override, pnpmVersion) {
|
|
3209
3209
|
return `pnpm did not apply the Loom local-dev override in ${formatPnpmOverrideLocation(override.location)}: pnpm-lock.yaml does not record ${LOOM_DEPENDENCY}: ${override.spec} under overrides, so this app still resolves the published package. Loom placed it for ${pnpmVersion ? `pnpm ${pnpmVersion}` : "an unknown pnpm version"}: pnpm before 10.5.1 reads overrides only from package.json, pnpm 10.5.1 and later 10.x read pnpm-workspace.yaml overrides only while package.json has none, and pnpm 11 reads only pnpm-workspace.yaml. Make sure package.json packageManager names the pnpm version you run, then rerun \`loom dev sync\`.`;
|
|
3210
3210
|
}
|
|
3211
|
+
/** Whether deno.lock records a `links` entry for Loom. */
|
|
3212
|
+
async function denoLockLinksLoom(cwd) {
|
|
3213
|
+
const text = await readTextIfExists(join(cwd, "deno.lock"));
|
|
3214
|
+
if (!text)
|
|
3215
|
+
return false;
|
|
3216
|
+
let lock;
|
|
3217
|
+
try {
|
|
3218
|
+
lock = JSON.parse(text);
|
|
3219
|
+
}
|
|
3220
|
+
catch {
|
|
3221
|
+
// Unreadable: assume it may record one.
|
|
3222
|
+
return true;
|
|
3223
|
+
}
|
|
3224
|
+
const linkKeys = (scope) => scope && typeof scope === "object" &&
|
|
3225
|
+
scope.links &&
|
|
3226
|
+
typeof scope.links === "object"
|
|
3227
|
+
? Object.keys(scope.links)
|
|
3228
|
+
: [];
|
|
3229
|
+
const members = lock.workspace?.members &&
|
|
3230
|
+
typeof lock.workspace.members === "object"
|
|
3231
|
+
? Object.values(lock.workspace.members)
|
|
3232
|
+
: [];
|
|
3233
|
+
return [lock.workspace, ...members].flatMap(linkKeys).some((key) => key === LOOM_DEPENDENCY || key.startsWith(`npm:${LOOM_DEPENDENCY}@`) ||
|
|
3234
|
+
key.startsWith(`${LOOM_DEPENDENCY}@`));
|
|
3235
|
+
}
|
|
3236
|
+
/**
|
|
3237
|
+
* Every Deno `links` entry that is, or may be, Loom's: its package is named
|
|
3238
|
+
* Loom, or its package is gone. A dangling entry may be Loom's whatever
|
|
3239
|
+
* identifies it (the path dev state recorded, a Loom link in deno.lock, or
|
|
3240
|
+
* nothing at all): node_modules can still hold what Deno copied from it,
|
|
3241
|
+
* and a broken link cannot ship anyway.
|
|
3242
|
+
*/
|
|
3243
|
+
async function findLoomDenoLinks(cwd, denoConfig) {
|
|
3244
|
+
const links = [];
|
|
3245
|
+
for (const link of await readDenoLinks(cwd, denoConfig)) {
|
|
3246
|
+
const path = resolve(cwd, link);
|
|
3247
|
+
const dangling = !await exists(join(path, "package.json"));
|
|
3248
|
+
if (dangling || await findLocalLoomDenoLink(cwd, [link])) {
|
|
3249
|
+
links.push({ dangling, link, path });
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
return links;
|
|
3253
|
+
}
|
|
3254
|
+
/**
|
|
3255
|
+
* Local Loom overrides and links in the project's config: Loom overrides
|
|
3256
|
+
* with a local (`file:`/`link:`/`workspace:`) spec under any selector, in
|
|
3257
|
+
* package.json maps or pnpm-workspace.yaml (managed or hand-written), a local
|
|
3258
|
+
* Loom catalog entry, and Deno links to Loom, dangling ones included. Each
|
|
3259
|
+
* is described for messages.
|
|
3260
|
+
*/
|
|
3261
|
+
async function findLocalLoomLinks(cwd) {
|
|
3262
|
+
const manifest = await readManifestIfExists(cwd);
|
|
3263
|
+
const tooling = await detectProjectTooling(cwd, manifest?.project?.tooling);
|
|
3264
|
+
const packageJson = await readPackageJsonIfExists(cwd) ?? {};
|
|
3265
|
+
const workspaceText = await readTextIfExists(join(cwd, "pnpm-workspace.yaml"));
|
|
3266
|
+
const links = [];
|
|
3267
|
+
// Reported by the catalog check itself; still local Loom in use.
|
|
3268
|
+
const catalogLinks = [];
|
|
3269
|
+
for (const { field, location } of PACKAGE_JSON_OVERRIDE_LOCATIONS) {
|
|
3270
|
+
for (const [key, spec] of Object.entries(getPackageJsonOverrideMap(packageJson, field))) {
|
|
3271
|
+
if (overrideKeyTargetsLoom(key) && typeof spec === "string" &&
|
|
3272
|
+
isLocalPackageSpec(spec)) {
|
|
3273
|
+
links.push(`${formatPnpmOverrideLocation(location)}: ${spec}`);
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
const managedSpec = getManagedDevOverrideSpec(workspaceText);
|
|
3278
|
+
if (managedSpec)
|
|
3279
|
+
links.push(`pnpm-workspace.yaml: ${managedSpec}`);
|
|
3280
|
+
for (const { key, spec } of getUnmanagedPnpmWorkspaceLoomOverrides(workspaceText)) {
|
|
3281
|
+
links.push(`pnpm-workspace.yaml overrides ${key}: ${spec}`);
|
|
3282
|
+
}
|
|
3283
|
+
const dependency = await resolveLoomDependencySpec(cwd, packageJson);
|
|
3284
|
+
if (dependency.catalogName && dependency.effective &&
|
|
3285
|
+
isLocalPackageSpec(dependency.effective)) {
|
|
3286
|
+
catalogLinks.push(`pnpm-workspace.yaml catalog ${dependency.catalogName}: ${dependency.effective}`);
|
|
3287
|
+
}
|
|
3288
|
+
if (usesDenoTooling(tooling)) {
|
|
3289
|
+
const denoConfig = await getDenoConfigForLinks(cwd, tooling);
|
|
3290
|
+
for (const { dangling, link } of await findLoomDenoLinks(cwd, denoConfig)) {
|
|
3291
|
+
links.push(`${denoConfig} links: ${link}${dangling ? " (its package is gone; it may be Loom's)" : ""}`);
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
return {
|
|
3295
|
+
catalogLinks,
|
|
3296
|
+
denoMode: usesDenoTooling(tooling),
|
|
3297
|
+
links,
|
|
3298
|
+
packageJson,
|
|
3299
|
+
};
|
|
3300
|
+
}
|
|
3301
|
+
/**
|
|
3302
|
+
* The published Loom version a Deno project's node_modules copy came from,
|
|
3303
|
+
* when deno.lock proves it: the lock records no Loom link, resolves the
|
|
3304
|
+
* project's `npm:@gadicc/loom@<pin>` specifier to a version installed from
|
|
3305
|
+
* the registry (its npm entry carries an integrity hash, which a linked
|
|
3306
|
+
* package's entry lacks), and node_modules holds that version. Null
|
|
3307
|
+
* otherwise, including without a deno.lock.
|
|
3308
|
+
*/
|
|
3309
|
+
async function findInstalledDenoRegistryLoomVersion(cwd, packageJson) {
|
|
3310
|
+
const text = await readTextIfExists(join(cwd, "deno.lock"));
|
|
3311
|
+
if (!text || await denoLockLinksLoom(cwd))
|
|
3312
|
+
return null;
|
|
3313
|
+
let lock;
|
|
3314
|
+
try {
|
|
3315
|
+
lock = JSON.parse(text);
|
|
3316
|
+
}
|
|
3317
|
+
catch {
|
|
3318
|
+
return null;
|
|
3319
|
+
}
|
|
3320
|
+
const manifest = await readManifestIfExists(cwd);
|
|
3321
|
+
const tooling = await detectProjectTooling(cwd, manifest?.project?.tooling);
|
|
3322
|
+
const denoConfig = await getDenoConfigForLinks(cwd, tooling);
|
|
3323
|
+
const imports = parseJsonc(await readTextIfExists(join(cwd, denoConfig)) ?? "{}", denoConfig).imports ?? {};
|
|
3324
|
+
const pinned = [
|
|
3325
|
+
imports[LOOM_DEPENDENCY],
|
|
3326
|
+
packageJson.dependencies?.[LOOM_DEPENDENCY] &&
|
|
3327
|
+
`npm:${LOOM_DEPENDENCY}@${packageJson.dependencies[LOOM_DEPENDENCY]}`,
|
|
3328
|
+
].find((spec) => typeof spec === "string" && spec.startsWith(`npm:${LOOM_DEPENDENCY}@`) &&
|
|
3329
|
+
lock.specifiers?.[spec] !== undefined);
|
|
3330
|
+
const resolved = pinned ? lock.specifiers[pinned] : undefined;
|
|
3331
|
+
if (!resolved)
|
|
3332
|
+
return null;
|
|
3333
|
+
const entry = lock.npm?.[`${LOOM_DEPENDENCY}@${resolved}`];
|
|
3334
|
+
if (typeof entry?.integrity !== "string")
|
|
3335
|
+
return null;
|
|
3336
|
+
const version = resolved.replace(/_.*$/, "");
|
|
3337
|
+
return await readPackageVersion(join(cwd, "node_modules", LOOM_DEPENDENCY)) ===
|
|
3338
|
+
version
|
|
3339
|
+
? version
|
|
3340
|
+
: null;
|
|
3341
|
+
}
|
|
3342
|
+
/**
|
|
3343
|
+
* Why this project may still run local Loom code; empty only when it
|
|
3344
|
+
* provably does not. One predicate decides this for `loom dev published`
|
|
3345
|
+
* (whether to drop the sync record) and `loom check` (whether that record
|
|
3346
|
+
* is stale):
|
|
3347
|
+
* - any local Loom override, catalog entry or Deno link
|
|
3348
|
+
* ({@link findLocalLoomLinks});
|
|
3349
|
+
* - pnpm-lock.yaml resolving Loom locally, or deno.lock recording a Loom link;
|
|
3350
|
+
* - an installed node_modules/@gadicc/loom that is not provably the
|
|
3351
|
+
* published package: for pnpm, unless it is pnpm's registry store entry
|
|
3352
|
+
* ({@link findInstalledRegistryLoomVersion}); for Deno, any copy, since a
|
|
3353
|
+
* copied link looks like a registry install. A missing one is not
|
|
3354
|
+
* installed.
|
|
3355
|
+
* Errors while finding out count as in use. Loom reads overrides,
|
|
3356
|
+
* lockfiles and node_modules from this directory only, so a member of an
|
|
3357
|
+
* enclosing pnpm workspace, whose root holds them, always counts as in use.
|
|
3358
|
+
*/
|
|
3359
|
+
async function findLocalLoomUse(cwd) {
|
|
3360
|
+
try {
|
|
3361
|
+
const { catalogLinks, denoMode, links, packageJson } = await findLocalLoomLinks(cwd);
|
|
3362
|
+
const uses = [...links, ...catalogLinks].map((reason) => ({
|
|
3363
|
+
kind: "link",
|
|
3364
|
+
reason,
|
|
3365
|
+
}));
|
|
3366
|
+
if (!denoMode && !await exists(join(cwd, "pnpm-workspace.yaml"))) {
|
|
3367
|
+
for (let parent = dirname(resolve(cwd)); parent !== dirname(parent); parent = dirname(parent)) {
|
|
3368
|
+
if (await exists(join(parent, "pnpm-workspace.yaml"))) {
|
|
3369
|
+
uses.push({
|
|
3370
|
+
kind: "workspace",
|
|
3371
|
+
reason: `this project is in the pnpm workspace at ${parent}, whose overrides and lockfile Loom does not read`,
|
|
3372
|
+
});
|
|
3373
|
+
break;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
const lockfileText = await readTextIfExists(join(cwd, "pnpm-lock.yaml"));
|
|
3378
|
+
const lockfileResolution = lockfileText
|
|
3379
|
+
? getLocalLoomLockfileResolution(lockfileText)
|
|
3380
|
+
: null;
|
|
3381
|
+
if (lockfileResolution) {
|
|
3382
|
+
uses.push({
|
|
3383
|
+
kind: "lockfile",
|
|
3384
|
+
reason: `pnpm-lock.yaml resolves Loom to ${lockfileResolution}`,
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
if (await denoLockLinksLoom(cwd)) {
|
|
3388
|
+
uses.push({
|
|
3389
|
+
kind: "lockfile",
|
|
3390
|
+
reason: "deno.lock records a link for Loom",
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
if (await exists(join(cwd, "node_modules", LOOM_DEPENDENCY, "package.json"))) {
|
|
3394
|
+
const proven = denoMode
|
|
3395
|
+
? await findInstalledDenoRegistryLoomVersion(cwd, packageJson)
|
|
3396
|
+
: await findInstalledRegistryLoomVersion(cwd, lockfileText, (await readLocalDevState(cwd))?.localPackagePath);
|
|
3397
|
+
if (!proven) {
|
|
3398
|
+
uses.push({
|
|
3399
|
+
kind: "installed",
|
|
3400
|
+
reason: "node_modules/@gadicc/loom is not provably the published package",
|
|
3401
|
+
});
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
return uses;
|
|
3405
|
+
}
|
|
3406
|
+
catch (error) {
|
|
3407
|
+
return [{
|
|
3408
|
+
kind: "error",
|
|
3409
|
+
reason: `Loom could not tell whether local Loom is in use: ${error.message}`,
|
|
3410
|
+
}];
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3211
3413
|
/** The project's active local Loom link, read from its current files. */
|
|
3212
3414
|
async function detectLocalDevLink(cwd) {
|
|
3213
3415
|
const manifest = await readManifestIfExists(cwd);
|
|
@@ -3607,7 +3809,7 @@ async function findInstalledRegistryLoomVersion(cwd, lockfileText, localBuild) {
|
|
|
3607
3809
|
entry.startsWith(`${registryEntry}(`))) {
|
|
3608
3810
|
return null;
|
|
3609
3811
|
}
|
|
3610
|
-
if (await exists(join(localBuild, "package.json")) &&
|
|
3812
|
+
if (localBuild && await exists(join(localBuild, "package.json")) &&
|
|
3611
3813
|
await findInstalledLocalLoomDifference(cwd, localBuild) === null) {
|
|
3612
3814
|
return null;
|
|
3613
3815
|
}
|
|
@@ -3630,16 +3832,9 @@ async function collectLocalLoomTargets(cwd, project) {
|
|
|
3630
3832
|
};
|
|
3631
3833
|
const denoLinks = [];
|
|
3632
3834
|
if (project.denoConfig) {
|
|
3633
|
-
const
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
: null;
|
|
3637
|
-
for (const link of await readDenoLinks(cwd, project.denoConfig)) {
|
|
3638
|
-
const path = resolve(cwd, link);
|
|
3639
|
-
if (await findLocalLoomDenoLink(cwd, [link]) || path === recordedPath) {
|
|
3640
|
-
denoLinks.push(link);
|
|
3641
|
-
await add(path, `${project.denoConfig} links ${link}`);
|
|
3642
|
-
}
|
|
3835
|
+
for (const { link, path } of await findLoomDenoLinks(cwd, project.denoConfig)) {
|
|
3836
|
+
denoLinks.push(link);
|
|
3837
|
+
await add(path, `${project.denoConfig} links ${link}`);
|
|
3643
3838
|
}
|
|
3644
3839
|
return { denoLinks, targets: [...targets.values()] };
|
|
3645
3840
|
}
|
|
@@ -3648,6 +3843,9 @@ async function collectLocalLoomTargets(cwd, project) {
|
|
|
3648
3843
|
await add(localSpecToPath(cwd, workspaceSpec), "the pnpm-workspace.yaml override");
|
|
3649
3844
|
}
|
|
3650
3845
|
for (const { key, spec } of getUnmanagedPnpmWorkspaceLoomOverrides(project.workspaceText)) {
|
|
3846
|
+
if (spec.startsWith("workspace:")) {
|
|
3847
|
+
throw new Error(`pnpm-workspace.yaml overrides ${key} with ${spec}, a workspace package Loom cannot trace to a build, so it cannot prove that the installed Loom is published. Remove that override and install a published ${LOOM_DEPENDENCY} instead.`);
|
|
3848
|
+
}
|
|
3651
3849
|
await add(localSpecToPath(cwd, spec), `the pnpm-workspace.yaml overrides entry for ${key}`);
|
|
3652
3850
|
}
|
|
3653
3851
|
for (const { location, spec } of getPackageJsonLocalLoomOverrides(project.packageJson)) {
|
|
@@ -3677,7 +3875,9 @@ async function proveLocalLoomBuildPublished(cwd, target, options) {
|
|
|
3677
3875
|
const lockfileOnly = target.sources.every((source) => source === "pnpm-lock.yaml");
|
|
3678
3876
|
throw new Error(`${path}, which ${target.sources.join(" and ")} point${target.sources.length === 1 ? "s" : ""} at, holds no built Loom package. ${lockfileOnly
|
|
3679
3877
|
? "If the app does not need that build, restore pnpm-lock.yaml from git and run `pnpm install`; otherwise restore that Loom checkout, link it with `loom dev local` and run `loom dev sync`"
|
|
3680
|
-
:
|
|
3878
|
+
: options.denoConfig
|
|
3879
|
+
? `Restore that Loom checkout and run \`loom dev sync\`, or link another with \`loom dev local\`; if the app does not need that build, remove the link from ${options.denoConfig} yourself and run \`deno install\``
|
|
3880
|
+
: "Restore that Loom checkout and run `loom dev sync`, or link another with `loom dev local`"}, ${rerun}.`);
|
|
3681
3881
|
}
|
|
3682
3882
|
const stamp = await readLoomBuildStamp(path);
|
|
3683
3883
|
if (stamp?.legacyBuildFingerprint && !hasLoomBuildProvenance(stamp)) {
|
|
@@ -3905,6 +4105,14 @@ async function usePublishedDevPackageLocked(cwd, options) {
|
|
|
3905
4105
|
}
|
|
3906
4106
|
}
|
|
3907
4107
|
}
|
|
4108
|
+
// Once nothing local can be in use, the sync record describes code the app
|
|
4109
|
+
// no longer runs; kept, `loom check` would go on checking a commit in a
|
|
4110
|
+
// checkout that may since be gone. Until then (typically until the
|
|
4111
|
+
// `pnpm install` this command asks for), it stays. Created-map flags were
|
|
4112
|
+
// cleared above.
|
|
4113
|
+
if ((await findLocalLoomUse(cwd)).length === 0) {
|
|
4114
|
+
await rm(join(cwd, LOOM_LOCAL_DEV_STATE_RELATIVE_PATH), { force: true });
|
|
4115
|
+
}
|
|
3908
4116
|
return {
|
|
3909
4117
|
changedFiles,
|
|
3910
4118
|
notes,
|
|
@@ -4213,17 +4421,15 @@ async function checkManagedLocalDevOverride(cwd, production, commandRunner, env)
|
|
|
4213
4421
|
// The main project tooling check reports invalid configuration separately.
|
|
4214
4422
|
}
|
|
4215
4423
|
const workspaceText = await readTextIfExists(join(cwd, "pnpm-workspace.yaml"));
|
|
4216
|
-
const
|
|
4217
|
-
const
|
|
4218
|
-
// Any local spec for Loom in
|
|
4219
|
-
//
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
: undefined;
|
|
4226
|
-
if (!workspaceSpec && !packageJsonOverride && !denoLink) {
|
|
4424
|
+
const denoMode = denoConfig !== null;
|
|
4425
|
+
const packageJson = denoMode ? null : await readPackageJsonIfExists(cwd);
|
|
4426
|
+
// Any local spec for Loom in an override map, whoever wrote it and
|
|
4427
|
+
// whatever selector it uses, is a local-dev link and must not ship; so is
|
|
4428
|
+
// a Deno link to Loom, even one whose package is gone. The same finder
|
|
4429
|
+
// decides whether a sync record is stale. A local catalog entry has its
|
|
4430
|
+
// own, clearer issue.
|
|
4431
|
+
const links = await findLocalLoomLinks(cwd).then((found) => found.links, () => []);
|
|
4432
|
+
if (!links.length && !denoLink) {
|
|
4227
4433
|
return {
|
|
4228
4434
|
issues: [],
|
|
4229
4435
|
suggestions: [],
|
|
@@ -4232,10 +4438,8 @@ async function checkManagedLocalDevOverride(cwd, production, commandRunner, env)
|
|
|
4232
4438
|
}
|
|
4233
4439
|
const location = denoLink
|
|
4234
4440
|
? `${denoConfig} links: ${denoLink.link}`
|
|
4235
|
-
:
|
|
4236
|
-
|
|
4237
|
-
: packageJsonOverride;
|
|
4238
|
-
const restore = denoLink
|
|
4441
|
+
: links[0];
|
|
4442
|
+
const restore = denoMode
|
|
4239
4443
|
? "Run `loom dev published`, then run `deno install` before committing or shipping a published build."
|
|
4240
4444
|
: "Run `loom dev published`, then run `pnpm install` (or the command it prints) before committing or shipping a published build.";
|
|
4241
4445
|
const warnings = [];
|
|
@@ -4358,10 +4562,46 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4358
4562
|
addReleaseCheckMessage(issues, warnings, production, `pnpm-lock.yaml resolves @gadicc/loom to a local package: ${localLockfileResolution}`);
|
|
4359
4563
|
suggestions.add("Run `loom dev published`, then refresh the lockfile with the published @gadicc/loom version before production build.");
|
|
4360
4564
|
}
|
|
4361
|
-
|
|
4565
|
+
// The sync record only matters while the app can still run local Loom
|
|
4566
|
+
// code. Without a link, an override or a local lockfile resolution, the
|
|
4567
|
+
// app runs a published Loom, and the record (perhaps naming a checkout
|
|
4568
|
+
// that is gone) is stale.
|
|
4569
|
+
const localLoomUses = await findLocalLoomUse(cwd);
|
|
4570
|
+
const localLoomInUse = localLoomUses.length > 0;
|
|
4571
|
+
// Only an installed copy Loom cannot prove published, with no link or
|
|
4572
|
+
// lockfile pointing at local Loom, is too weak to fail a release by
|
|
4573
|
+
// itself: the record's findings stay warnings then.
|
|
4574
|
+
const recordGatesRelease = production &&
|
|
4575
|
+
localLoomUses.some((use) => use.kind !== "installed");
|
|
4576
|
+
if (devState?.sourceCommit && !localLoomInUse) {
|
|
4577
|
+
const shortCommit = devState.sourceCommit.slice(0, 12);
|
|
4578
|
+
warnings.push(`${LOOM_LOCAL_DEV_STATE_RELATIVE_PATH} still records a local Loom sync at commit ${shortCommit}, but no local Loom is linked, locked or installed any more, so it is stale and can be deleted.`);
|
|
4579
|
+
// The app may still rely on what that sync contained: advise, never
|
|
4580
|
+
// fail, when a newer release covers it than the app pins. A checkout
|
|
4581
|
+
// that is gone is not looked up at all.
|
|
4582
|
+
if (devState.sourceRoot && !devState.sourceDirty &&
|
|
4583
|
+
dependency && isExactSemverVersion(dependency) &&
|
|
4584
|
+
await exists(devState.sourceRoot)) {
|
|
4585
|
+
const publication = await resolveLoomCommitPublication(devState.sourceRoot, devState.sourceCommit, options.commandRunner, options.env, dependency);
|
|
4586
|
+
if (publication.status === "published" &&
|
|
4587
|
+
publication.version !== dependency) {
|
|
4588
|
+
warnings.push(`This app was last synced against Loom commit ${shortCommit}; ${publication.reason === "package-equivalent"
|
|
4589
|
+
? `package-relevant files match ${LOOM_DEPENDENCY}@${publication.version}`
|
|
4590
|
+
: `it is published as ${LOOM_DEPENDENCY}@${publication.version}`}, but ${pinLocation} is pinned to ${dependency}.`);
|
|
4591
|
+
suggestions.add(pinSuggestion(publication.version));
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
else if (devState?.sourceCommit && devState.sourceRoot &&
|
|
4596
|
+
!devState.sourceDirty && !await exists(devState.sourceRoot)) {
|
|
4597
|
+
// A deleted checkout is not evidence of unpublished code; the active
|
|
4598
|
+
// link or lockfile already fails the release check on its own.
|
|
4599
|
+
warnings.push(`This app was last synced against Loom commit ${devState.sourceCommit.slice(0, 12)} in ${devState.sourceRoot}, which no longer exists, so Loom cannot check that commit.`);
|
|
4600
|
+
}
|
|
4601
|
+
else if (devState?.sourceCommit) {
|
|
4362
4602
|
const shortCommit = devState.sourceCommit.slice(0, 12);
|
|
4363
4603
|
if (devState.sourceDirty) {
|
|
4364
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4604
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit} with a dirty source tree.`);
|
|
4365
4605
|
suggestions.add("Commit or discard the Loom changes, rerun `loom dev sync`, and publish Loom if the app depends on those changes.");
|
|
4366
4606
|
}
|
|
4367
4607
|
else if (!devState.sourceRoot) {
|
|
@@ -4371,11 +4611,11 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4371
4611
|
const publication = await resolveLoomCommitPublication(devState.sourceRoot, devState.sourceCommit, options.commandRunner, options.env, isExactSemverVersion(dependency ?? "") ? dependency : undefined);
|
|
4372
4612
|
switch (publication.status) {
|
|
4373
4613
|
case "not-on-origin-main":
|
|
4374
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4614
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}, which is not reachable from origin/main.`);
|
|
4375
4615
|
suggestions.add("Push or merge the Loom changes, fetch origin/main, publish Loom if needed, then rerun `loom dev published`.");
|
|
4376
4616
|
break;
|
|
4377
4617
|
case "no-release-tag":
|
|
4378
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4618
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}, but no published Loom version contains that commit or matches its package-relevant files.`);
|
|
4379
4619
|
suggestions.add("Publish Loom first, fetch tags, then rerun `loom dev published`.");
|
|
4380
4620
|
break;
|
|
4381
4621
|
case "published":
|
|
@@ -4385,7 +4625,7 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4385
4625
|
"package-equivalent"
|
|
4386
4626
|
? `package-relevant files match ${LOOM_DEPENDENCY}@${publication.version}`
|
|
4387
4627
|
: `it is published as ${LOOM_DEPENDENCY}@${publication.version}`;
|
|
4388
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4628
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}; ${publicationDescription}, but ${pinLocation} is pinned to ${dependency}.`);
|
|
4389
4629
|
suggestions.add(pnpmOverrideActive
|
|
4390
4630
|
? "Run `loom dev published`, which pins the covering version, then run `pnpm install`."
|
|
4391
4631
|
: pinSuggestion(publication.version));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gadicc/loom",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.1",
|
|
4
4
|
"description": "Deno-first shared helpers for extracting common Next.js app code.",
|
|
5
5
|
"homepage": "https://github.com/gadicc/loom#readme",
|
|
6
6
|
"repository": {
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
},
|
|
245
245
|
"scripts": {},
|
|
246
246
|
"loom": {
|
|
247
|
-
"gitCommit": "
|
|
247
|
+
"gitCommit": "cc20c9423ab850da50839b7ae0c500421bd0536b"
|
|
248
248
|
},
|
|
249
249
|
"bin": {
|
|
250
250
|
"loom": "script/bin/loom.js"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/cli/mod.ts"],"names":[],"mappings":"AAqCA,OAAO,EAEL,K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,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EACrD,OAAO,GAAE,mBAAwB;;;;GAuNlC;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EACrD,OAAO,GAAE,mBAAwB;;;eAMxB,MAAM;gBACL,sBAAsB;;;;GA2GjC;AAuFD,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,uBAAuB,EAC9B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,YAoClD;AA0mCD,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,EAAE,SAAS,EACb,OAAO,GAAE;IACP,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBAiBP;AA0tBD,wBAAsB,MAAM,CAC1B,IAAI,MAAwB,EAC5B,EAAE,GAAE,SAGH,EACD,OAAO,GAAE;IACP,yEAAyE;IACzE,aAAa,CAAC,EAAE,aAAa,CAAC;CAC1B,mBA6MP"}
|
package/script/src/cli/mod.js
CHANGED
|
@@ -2341,7 +2341,7 @@ function plainYamlValue(value) {
|
|
|
2341
2341
|
return trimmed.replace(/\s+#.*$/, "").trim();
|
|
2342
2342
|
}
|
|
2343
2343
|
/**
|
|
2344
|
-
* Local (`file:`/`link:`) Loom entries of the pnpm-workspace.yaml
|
|
2344
|
+
* Local (`file:`/`link:`/`workspace:`) Loom entries of the pnpm-workspace.yaml
|
|
2345
2345
|
* `overrides:` map outside Loom's managed block, such as one written by
|
|
2346
2346
|
* hand. `line` is the entry's line in `text` once the managed block is
|
|
2347
2347
|
* removed, or null in flow style, which Loom does not edit.
|
|
@@ -2356,7 +2356,7 @@ function getUnmanagedPnpmWorkspaceLoomOverrides(text) {
|
|
|
2356
2356
|
return entries;
|
|
2357
2357
|
const add = (key, value, line) => {
|
|
2358
2358
|
const spec = plainYamlValue(value);
|
|
2359
|
-
if (overrideKeyTargetsLoom(key) &&
|
|
2359
|
+
if (overrideKeyTargetsLoom(key) && isLocalPackageSpec(spec)) {
|
|
2360
2360
|
entries.push({ key, line, spec });
|
|
2361
2361
|
}
|
|
2362
2362
|
};
|
|
@@ -3281,6 +3281,208 @@ async function captureLoadedLocalLoomSignature(cwd, env) {
|
|
|
3281
3281
|
function formatPnpmOverrideNotAppliedMessage(override, pnpmVersion) {
|
|
3282
3282
|
return `pnpm did not apply the Loom local-dev override in ${formatPnpmOverrideLocation(override.location)}: pnpm-lock.yaml does not record ${exports.LOOM_DEPENDENCY}: ${override.spec} under overrides, so this app still resolves the published package. Loom placed it for ${pnpmVersion ? `pnpm ${pnpmVersion}` : "an unknown pnpm version"}: pnpm before 10.5.1 reads overrides only from package.json, pnpm 10.5.1 and later 10.x read pnpm-workspace.yaml overrides only while package.json has none, and pnpm 11 reads only pnpm-workspace.yaml. Make sure package.json packageManager names the pnpm version you run, then rerun \`loom dev sync\`.`;
|
|
3283
3283
|
}
|
|
3284
|
+
/** Whether deno.lock records a `links` entry for Loom. */
|
|
3285
|
+
async function denoLockLinksLoom(cwd) {
|
|
3286
|
+
const text = await readTextIfExists((0, node_path_1.join)(cwd, "deno.lock"));
|
|
3287
|
+
if (!text)
|
|
3288
|
+
return false;
|
|
3289
|
+
let lock;
|
|
3290
|
+
try {
|
|
3291
|
+
lock = JSON.parse(text);
|
|
3292
|
+
}
|
|
3293
|
+
catch {
|
|
3294
|
+
// Unreadable: assume it may record one.
|
|
3295
|
+
return true;
|
|
3296
|
+
}
|
|
3297
|
+
const linkKeys = (scope) => scope && typeof scope === "object" &&
|
|
3298
|
+
scope.links &&
|
|
3299
|
+
typeof scope.links === "object"
|
|
3300
|
+
? Object.keys(scope.links)
|
|
3301
|
+
: [];
|
|
3302
|
+
const members = lock.workspace?.members &&
|
|
3303
|
+
typeof lock.workspace.members === "object"
|
|
3304
|
+
? Object.values(lock.workspace.members)
|
|
3305
|
+
: [];
|
|
3306
|
+
return [lock.workspace, ...members].flatMap(linkKeys).some((key) => key === exports.LOOM_DEPENDENCY || key.startsWith(`npm:${exports.LOOM_DEPENDENCY}@`) ||
|
|
3307
|
+
key.startsWith(`${exports.LOOM_DEPENDENCY}@`));
|
|
3308
|
+
}
|
|
3309
|
+
/**
|
|
3310
|
+
* Every Deno `links` entry that is, or may be, Loom's: its package is named
|
|
3311
|
+
* Loom, or its package is gone. A dangling entry may be Loom's whatever
|
|
3312
|
+
* identifies it (the path dev state recorded, a Loom link in deno.lock, or
|
|
3313
|
+
* nothing at all): node_modules can still hold what Deno copied from it,
|
|
3314
|
+
* and a broken link cannot ship anyway.
|
|
3315
|
+
*/
|
|
3316
|
+
async function findLoomDenoLinks(cwd, denoConfig) {
|
|
3317
|
+
const links = [];
|
|
3318
|
+
for (const link of await (0, projectTooling_js_1.readDenoLinks)(cwd, denoConfig)) {
|
|
3319
|
+
const path = (0, node_path_1.resolve)(cwd, link);
|
|
3320
|
+
const dangling = !await exists((0, node_path_1.join)(path, "package.json"));
|
|
3321
|
+
if (dangling || await findLocalLoomDenoLink(cwd, [link])) {
|
|
3322
|
+
links.push({ dangling, link, path });
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
return links;
|
|
3326
|
+
}
|
|
3327
|
+
/**
|
|
3328
|
+
* Local Loom overrides and links in the project's config: Loom overrides
|
|
3329
|
+
* with a local (`file:`/`link:`/`workspace:`) spec under any selector, in
|
|
3330
|
+
* package.json maps or pnpm-workspace.yaml (managed or hand-written), a local
|
|
3331
|
+
* Loom catalog entry, and Deno links to Loom, dangling ones included. Each
|
|
3332
|
+
* is described for messages.
|
|
3333
|
+
*/
|
|
3334
|
+
async function findLocalLoomLinks(cwd) {
|
|
3335
|
+
const manifest = await readManifestIfExists(cwd);
|
|
3336
|
+
const tooling = await (0, projectTooling_js_1.detectProjectTooling)(cwd, manifest?.project?.tooling);
|
|
3337
|
+
const packageJson = await readPackageJsonIfExists(cwd) ?? {};
|
|
3338
|
+
const workspaceText = await readTextIfExists((0, node_path_1.join)(cwd, "pnpm-workspace.yaml"));
|
|
3339
|
+
const links = [];
|
|
3340
|
+
// Reported by the catalog check itself; still local Loom in use.
|
|
3341
|
+
const catalogLinks = [];
|
|
3342
|
+
for (const { field, location } of PACKAGE_JSON_OVERRIDE_LOCATIONS) {
|
|
3343
|
+
for (const [key, spec] of Object.entries(getPackageJsonOverrideMap(packageJson, field))) {
|
|
3344
|
+
if (overrideKeyTargetsLoom(key) && typeof spec === "string" &&
|
|
3345
|
+
isLocalPackageSpec(spec)) {
|
|
3346
|
+
links.push(`${formatPnpmOverrideLocation(location)}: ${spec}`);
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
const managedSpec = getManagedDevOverrideSpec(workspaceText);
|
|
3351
|
+
if (managedSpec)
|
|
3352
|
+
links.push(`pnpm-workspace.yaml: ${managedSpec}`);
|
|
3353
|
+
for (const { key, spec } of getUnmanagedPnpmWorkspaceLoomOverrides(workspaceText)) {
|
|
3354
|
+
links.push(`pnpm-workspace.yaml overrides ${key}: ${spec}`);
|
|
3355
|
+
}
|
|
3356
|
+
const dependency = await resolveLoomDependencySpec(cwd, packageJson);
|
|
3357
|
+
if (dependency.catalogName && dependency.effective &&
|
|
3358
|
+
isLocalPackageSpec(dependency.effective)) {
|
|
3359
|
+
catalogLinks.push(`pnpm-workspace.yaml catalog ${dependency.catalogName}: ${dependency.effective}`);
|
|
3360
|
+
}
|
|
3361
|
+
if (usesDenoTooling(tooling)) {
|
|
3362
|
+
const denoConfig = await getDenoConfigForLinks(cwd, tooling);
|
|
3363
|
+
for (const { dangling, link } of await findLoomDenoLinks(cwd, denoConfig)) {
|
|
3364
|
+
links.push(`${denoConfig} links: ${link}${dangling ? " (its package is gone; it may be Loom's)" : ""}`);
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
return {
|
|
3368
|
+
catalogLinks,
|
|
3369
|
+
denoMode: usesDenoTooling(tooling),
|
|
3370
|
+
links,
|
|
3371
|
+
packageJson,
|
|
3372
|
+
};
|
|
3373
|
+
}
|
|
3374
|
+
/**
|
|
3375
|
+
* The published Loom version a Deno project's node_modules copy came from,
|
|
3376
|
+
* when deno.lock proves it: the lock records no Loom link, resolves the
|
|
3377
|
+
* project's `npm:@gadicc/loom@<pin>` specifier to a version installed from
|
|
3378
|
+
* the registry (its npm entry carries an integrity hash, which a linked
|
|
3379
|
+
* package's entry lacks), and node_modules holds that version. Null
|
|
3380
|
+
* otherwise, including without a deno.lock.
|
|
3381
|
+
*/
|
|
3382
|
+
async function findInstalledDenoRegistryLoomVersion(cwd, packageJson) {
|
|
3383
|
+
const text = await readTextIfExists((0, node_path_1.join)(cwd, "deno.lock"));
|
|
3384
|
+
if (!text || await denoLockLinksLoom(cwd))
|
|
3385
|
+
return null;
|
|
3386
|
+
let lock;
|
|
3387
|
+
try {
|
|
3388
|
+
lock = JSON.parse(text);
|
|
3389
|
+
}
|
|
3390
|
+
catch {
|
|
3391
|
+
return null;
|
|
3392
|
+
}
|
|
3393
|
+
const manifest = await readManifestIfExists(cwd);
|
|
3394
|
+
const tooling = await (0, projectTooling_js_1.detectProjectTooling)(cwd, manifest?.project?.tooling);
|
|
3395
|
+
const denoConfig = await getDenoConfigForLinks(cwd, tooling);
|
|
3396
|
+
const imports = (0, projectTooling_js_1.parseJsonc)(await readTextIfExists((0, node_path_1.join)(cwd, denoConfig)) ?? "{}", denoConfig).imports ?? {};
|
|
3397
|
+
const pinned = [
|
|
3398
|
+
imports[exports.LOOM_DEPENDENCY],
|
|
3399
|
+
packageJson.dependencies?.[exports.LOOM_DEPENDENCY] &&
|
|
3400
|
+
`npm:${exports.LOOM_DEPENDENCY}@${packageJson.dependencies[exports.LOOM_DEPENDENCY]}`,
|
|
3401
|
+
].find((spec) => typeof spec === "string" && spec.startsWith(`npm:${exports.LOOM_DEPENDENCY}@`) &&
|
|
3402
|
+
lock.specifiers?.[spec] !== undefined);
|
|
3403
|
+
const resolved = pinned ? lock.specifiers[pinned] : undefined;
|
|
3404
|
+
if (!resolved)
|
|
3405
|
+
return null;
|
|
3406
|
+
const entry = lock.npm?.[`${exports.LOOM_DEPENDENCY}@${resolved}`];
|
|
3407
|
+
if (typeof entry?.integrity !== "string")
|
|
3408
|
+
return null;
|
|
3409
|
+
const version = resolved.replace(/_.*$/, "");
|
|
3410
|
+
return await readPackageVersion((0, node_path_1.join)(cwd, "node_modules", exports.LOOM_DEPENDENCY)) ===
|
|
3411
|
+
version
|
|
3412
|
+
? version
|
|
3413
|
+
: null;
|
|
3414
|
+
}
|
|
3415
|
+
/**
|
|
3416
|
+
* Why this project may still run local Loom code; empty only when it
|
|
3417
|
+
* provably does not. One predicate decides this for `loom dev published`
|
|
3418
|
+
* (whether to drop the sync record) and `loom check` (whether that record
|
|
3419
|
+
* is stale):
|
|
3420
|
+
* - any local Loom override, catalog entry or Deno link
|
|
3421
|
+
* ({@link findLocalLoomLinks});
|
|
3422
|
+
* - pnpm-lock.yaml resolving Loom locally, or deno.lock recording a Loom link;
|
|
3423
|
+
* - an installed node_modules/@gadicc/loom that is not provably the
|
|
3424
|
+
* published package: for pnpm, unless it is pnpm's registry store entry
|
|
3425
|
+
* ({@link findInstalledRegistryLoomVersion}); for Deno, any copy, since a
|
|
3426
|
+
* copied link looks like a registry install. A missing one is not
|
|
3427
|
+
* installed.
|
|
3428
|
+
* Errors while finding out count as in use. Loom reads overrides,
|
|
3429
|
+
* lockfiles and node_modules from this directory only, so a member of an
|
|
3430
|
+
* enclosing pnpm workspace, whose root holds them, always counts as in use.
|
|
3431
|
+
*/
|
|
3432
|
+
async function findLocalLoomUse(cwd) {
|
|
3433
|
+
try {
|
|
3434
|
+
const { catalogLinks, denoMode, links, packageJson } = await findLocalLoomLinks(cwd);
|
|
3435
|
+
const uses = [...links, ...catalogLinks].map((reason) => ({
|
|
3436
|
+
kind: "link",
|
|
3437
|
+
reason,
|
|
3438
|
+
}));
|
|
3439
|
+
if (!denoMode && !await exists((0, node_path_1.join)(cwd, "pnpm-workspace.yaml"))) {
|
|
3440
|
+
for (let parent = (0, node_path_1.dirname)((0, node_path_1.resolve)(cwd)); parent !== (0, node_path_1.dirname)(parent); parent = (0, node_path_1.dirname)(parent)) {
|
|
3441
|
+
if (await exists((0, node_path_1.join)(parent, "pnpm-workspace.yaml"))) {
|
|
3442
|
+
uses.push({
|
|
3443
|
+
kind: "workspace",
|
|
3444
|
+
reason: `this project is in the pnpm workspace at ${parent}, whose overrides and lockfile Loom does not read`,
|
|
3445
|
+
});
|
|
3446
|
+
break;
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
const lockfileText = await readTextIfExists((0, node_path_1.join)(cwd, "pnpm-lock.yaml"));
|
|
3451
|
+
const lockfileResolution = lockfileText
|
|
3452
|
+
? getLocalLoomLockfileResolution(lockfileText)
|
|
3453
|
+
: null;
|
|
3454
|
+
if (lockfileResolution) {
|
|
3455
|
+
uses.push({
|
|
3456
|
+
kind: "lockfile",
|
|
3457
|
+
reason: `pnpm-lock.yaml resolves Loom to ${lockfileResolution}`,
|
|
3458
|
+
});
|
|
3459
|
+
}
|
|
3460
|
+
if (await denoLockLinksLoom(cwd)) {
|
|
3461
|
+
uses.push({
|
|
3462
|
+
kind: "lockfile",
|
|
3463
|
+
reason: "deno.lock records a link for Loom",
|
|
3464
|
+
});
|
|
3465
|
+
}
|
|
3466
|
+
if (await exists((0, node_path_1.join)(cwd, "node_modules", exports.LOOM_DEPENDENCY, "package.json"))) {
|
|
3467
|
+
const proven = denoMode
|
|
3468
|
+
? await findInstalledDenoRegistryLoomVersion(cwd, packageJson)
|
|
3469
|
+
: await findInstalledRegistryLoomVersion(cwd, lockfileText, (await readLocalDevState(cwd))?.localPackagePath);
|
|
3470
|
+
if (!proven) {
|
|
3471
|
+
uses.push({
|
|
3472
|
+
kind: "installed",
|
|
3473
|
+
reason: "node_modules/@gadicc/loom is not provably the published package",
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
return uses;
|
|
3478
|
+
}
|
|
3479
|
+
catch (error) {
|
|
3480
|
+
return [{
|
|
3481
|
+
kind: "error",
|
|
3482
|
+
reason: `Loom could not tell whether local Loom is in use: ${error.message}`,
|
|
3483
|
+
}];
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3284
3486
|
/** The project's active local Loom link, read from its current files. */
|
|
3285
3487
|
async function detectLocalDevLink(cwd) {
|
|
3286
3488
|
const manifest = await readManifestIfExists(cwd);
|
|
@@ -3680,7 +3882,7 @@ async function findInstalledRegistryLoomVersion(cwd, lockfileText, localBuild) {
|
|
|
3680
3882
|
entry.startsWith(`${registryEntry}(`))) {
|
|
3681
3883
|
return null;
|
|
3682
3884
|
}
|
|
3683
|
-
if (await exists((0, node_path_1.join)(localBuild, "package.json")) &&
|
|
3885
|
+
if (localBuild && await exists((0, node_path_1.join)(localBuild, "package.json")) &&
|
|
3684
3886
|
await findInstalledLocalLoomDifference(cwd, localBuild) === null) {
|
|
3685
3887
|
return null;
|
|
3686
3888
|
}
|
|
@@ -3703,16 +3905,9 @@ async function collectLocalLoomTargets(cwd, project) {
|
|
|
3703
3905
|
};
|
|
3704
3906
|
const denoLinks = [];
|
|
3705
3907
|
if (project.denoConfig) {
|
|
3706
|
-
const
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
: null;
|
|
3710
|
-
for (const link of await (0, projectTooling_js_1.readDenoLinks)(cwd, project.denoConfig)) {
|
|
3711
|
-
const path = (0, node_path_1.resolve)(cwd, link);
|
|
3712
|
-
if (await findLocalLoomDenoLink(cwd, [link]) || path === recordedPath) {
|
|
3713
|
-
denoLinks.push(link);
|
|
3714
|
-
await add(path, `${project.denoConfig} links ${link}`);
|
|
3715
|
-
}
|
|
3908
|
+
for (const { link, path } of await findLoomDenoLinks(cwd, project.denoConfig)) {
|
|
3909
|
+
denoLinks.push(link);
|
|
3910
|
+
await add(path, `${project.denoConfig} links ${link}`);
|
|
3716
3911
|
}
|
|
3717
3912
|
return { denoLinks, targets: [...targets.values()] };
|
|
3718
3913
|
}
|
|
@@ -3721,6 +3916,9 @@ async function collectLocalLoomTargets(cwd, project) {
|
|
|
3721
3916
|
await add(localSpecToPath(cwd, workspaceSpec), "the pnpm-workspace.yaml override");
|
|
3722
3917
|
}
|
|
3723
3918
|
for (const { key, spec } of getUnmanagedPnpmWorkspaceLoomOverrides(project.workspaceText)) {
|
|
3919
|
+
if (spec.startsWith("workspace:")) {
|
|
3920
|
+
throw new Error(`pnpm-workspace.yaml overrides ${key} with ${spec}, a workspace package Loom cannot trace to a build, so it cannot prove that the installed Loom is published. Remove that override and install a published ${exports.LOOM_DEPENDENCY} instead.`);
|
|
3921
|
+
}
|
|
3724
3922
|
await add(localSpecToPath(cwd, spec), `the pnpm-workspace.yaml overrides entry for ${key}`);
|
|
3725
3923
|
}
|
|
3726
3924
|
for (const { location, spec } of getPackageJsonLocalLoomOverrides(project.packageJson)) {
|
|
@@ -3750,7 +3948,9 @@ async function proveLocalLoomBuildPublished(cwd, target, options) {
|
|
|
3750
3948
|
const lockfileOnly = target.sources.every((source) => source === "pnpm-lock.yaml");
|
|
3751
3949
|
throw new Error(`${path}, which ${target.sources.join(" and ")} point${target.sources.length === 1 ? "s" : ""} at, holds no built Loom package. ${lockfileOnly
|
|
3752
3950
|
? "If the app does not need that build, restore pnpm-lock.yaml from git and run `pnpm install`; otherwise restore that Loom checkout, link it with `loom dev local` and run `loom dev sync`"
|
|
3753
|
-
:
|
|
3951
|
+
: options.denoConfig
|
|
3952
|
+
? `Restore that Loom checkout and run \`loom dev sync\`, or link another with \`loom dev local\`; if the app does not need that build, remove the link from ${options.denoConfig} yourself and run \`deno install\``
|
|
3953
|
+
: "Restore that Loom checkout and run `loom dev sync`, or link another with `loom dev local`"}, ${rerun}.`);
|
|
3754
3954
|
}
|
|
3755
3955
|
const stamp = await (0, localDevPackage_js_1.readLoomBuildStamp)(path);
|
|
3756
3956
|
if (stamp?.legacyBuildFingerprint && !(0, localDevPackage_js_1.hasLoomBuildProvenance)(stamp)) {
|
|
@@ -3978,6 +4178,14 @@ async function usePublishedDevPackageLocked(cwd, options) {
|
|
|
3978
4178
|
}
|
|
3979
4179
|
}
|
|
3980
4180
|
}
|
|
4181
|
+
// Once nothing local can be in use, the sync record describes code the app
|
|
4182
|
+
// no longer runs; kept, `loom check` would go on checking a commit in a
|
|
4183
|
+
// checkout that may since be gone. Until then (typically until the
|
|
4184
|
+
// `pnpm install` this command asks for), it stays. Created-map flags were
|
|
4185
|
+
// cleared above.
|
|
4186
|
+
if ((await findLocalLoomUse(cwd)).length === 0) {
|
|
4187
|
+
await (0, promises_1.rm)((0, node_path_1.join)(cwd, exports.LOOM_LOCAL_DEV_STATE_RELATIVE_PATH), { force: true });
|
|
4188
|
+
}
|
|
3981
4189
|
return {
|
|
3982
4190
|
changedFiles,
|
|
3983
4191
|
notes,
|
|
@@ -4286,17 +4494,15 @@ async function checkManagedLocalDevOverride(cwd, production, commandRunner, env)
|
|
|
4286
4494
|
// The main project tooling check reports invalid configuration separately.
|
|
4287
4495
|
}
|
|
4288
4496
|
const workspaceText = await readTextIfExists((0, node_path_1.join)(cwd, "pnpm-workspace.yaml"));
|
|
4289
|
-
const
|
|
4290
|
-
const
|
|
4291
|
-
// Any local spec for Loom in
|
|
4292
|
-
//
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
: undefined;
|
|
4299
|
-
if (!workspaceSpec && !packageJsonOverride && !denoLink) {
|
|
4497
|
+
const denoMode = denoConfig !== null;
|
|
4498
|
+
const packageJson = denoMode ? null : await readPackageJsonIfExists(cwd);
|
|
4499
|
+
// Any local spec for Loom in an override map, whoever wrote it and
|
|
4500
|
+
// whatever selector it uses, is a local-dev link and must not ship; so is
|
|
4501
|
+
// a Deno link to Loom, even one whose package is gone. The same finder
|
|
4502
|
+
// decides whether a sync record is stale. A local catalog entry has its
|
|
4503
|
+
// own, clearer issue.
|
|
4504
|
+
const links = await findLocalLoomLinks(cwd).then((found) => found.links, () => []);
|
|
4505
|
+
if (!links.length && !denoLink) {
|
|
4300
4506
|
return {
|
|
4301
4507
|
issues: [],
|
|
4302
4508
|
suggestions: [],
|
|
@@ -4305,10 +4511,8 @@ async function checkManagedLocalDevOverride(cwd, production, commandRunner, env)
|
|
|
4305
4511
|
}
|
|
4306
4512
|
const location = denoLink
|
|
4307
4513
|
? `${denoConfig} links: ${denoLink.link}`
|
|
4308
|
-
:
|
|
4309
|
-
|
|
4310
|
-
: packageJsonOverride;
|
|
4311
|
-
const restore = denoLink
|
|
4514
|
+
: links[0];
|
|
4515
|
+
const restore = denoMode
|
|
4312
4516
|
? "Run `loom dev published`, then run `deno install` before committing or shipping a published build."
|
|
4313
4517
|
: "Run `loom dev published`, then run `pnpm install` (or the command it prints) before committing or shipping a published build.";
|
|
4314
4518
|
const warnings = [];
|
|
@@ -4431,10 +4635,46 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4431
4635
|
addReleaseCheckMessage(issues, warnings, production, `pnpm-lock.yaml resolves @gadicc/loom to a local package: ${localLockfileResolution}`);
|
|
4432
4636
|
suggestions.add("Run `loom dev published`, then refresh the lockfile with the published @gadicc/loom version before production build.");
|
|
4433
4637
|
}
|
|
4434
|
-
|
|
4638
|
+
// The sync record only matters while the app can still run local Loom
|
|
4639
|
+
// code. Without a link, an override or a local lockfile resolution, the
|
|
4640
|
+
// app runs a published Loom, and the record (perhaps naming a checkout
|
|
4641
|
+
// that is gone) is stale.
|
|
4642
|
+
const localLoomUses = await findLocalLoomUse(cwd);
|
|
4643
|
+
const localLoomInUse = localLoomUses.length > 0;
|
|
4644
|
+
// Only an installed copy Loom cannot prove published, with no link or
|
|
4645
|
+
// lockfile pointing at local Loom, is too weak to fail a release by
|
|
4646
|
+
// itself: the record's findings stay warnings then.
|
|
4647
|
+
const recordGatesRelease = production &&
|
|
4648
|
+
localLoomUses.some((use) => use.kind !== "installed");
|
|
4649
|
+
if (devState?.sourceCommit && !localLoomInUse) {
|
|
4650
|
+
const shortCommit = devState.sourceCommit.slice(0, 12);
|
|
4651
|
+
warnings.push(`${exports.LOOM_LOCAL_DEV_STATE_RELATIVE_PATH} still records a local Loom sync at commit ${shortCommit}, but no local Loom is linked, locked or installed any more, so it is stale and can be deleted.`);
|
|
4652
|
+
// The app may still rely on what that sync contained: advise, never
|
|
4653
|
+
// fail, when a newer release covers it than the app pins. A checkout
|
|
4654
|
+
// that is gone is not looked up at all.
|
|
4655
|
+
if (devState.sourceRoot && !devState.sourceDirty &&
|
|
4656
|
+
dependency && isExactSemverVersion(dependency) &&
|
|
4657
|
+
await exists(devState.sourceRoot)) {
|
|
4658
|
+
const publication = await resolveLoomCommitPublication(devState.sourceRoot, devState.sourceCommit, options.commandRunner, options.env, dependency);
|
|
4659
|
+
if (publication.status === "published" &&
|
|
4660
|
+
publication.version !== dependency) {
|
|
4661
|
+
warnings.push(`This app was last synced against Loom commit ${shortCommit}; ${publication.reason === "package-equivalent"
|
|
4662
|
+
? `package-relevant files match ${exports.LOOM_DEPENDENCY}@${publication.version}`
|
|
4663
|
+
: `it is published as ${exports.LOOM_DEPENDENCY}@${publication.version}`}, but ${pinLocation} is pinned to ${dependency}.`);
|
|
4664
|
+
suggestions.add(pinSuggestion(publication.version));
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
else if (devState?.sourceCommit && devState.sourceRoot &&
|
|
4669
|
+
!devState.sourceDirty && !await exists(devState.sourceRoot)) {
|
|
4670
|
+
// A deleted checkout is not evidence of unpublished code; the active
|
|
4671
|
+
// link or lockfile already fails the release check on its own.
|
|
4672
|
+
warnings.push(`This app was last synced against Loom commit ${devState.sourceCommit.slice(0, 12)} in ${devState.sourceRoot}, which no longer exists, so Loom cannot check that commit.`);
|
|
4673
|
+
}
|
|
4674
|
+
else if (devState?.sourceCommit) {
|
|
4435
4675
|
const shortCommit = devState.sourceCommit.slice(0, 12);
|
|
4436
4676
|
if (devState.sourceDirty) {
|
|
4437
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4677
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit} with a dirty source tree.`);
|
|
4438
4678
|
suggestions.add("Commit or discard the Loom changes, rerun `loom dev sync`, and publish Loom if the app depends on those changes.");
|
|
4439
4679
|
}
|
|
4440
4680
|
else if (!devState.sourceRoot) {
|
|
@@ -4444,11 +4684,11 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4444
4684
|
const publication = await resolveLoomCommitPublication(devState.sourceRoot, devState.sourceCommit, options.commandRunner, options.env, isExactSemverVersion(dependency ?? "") ? dependency : undefined);
|
|
4445
4685
|
switch (publication.status) {
|
|
4446
4686
|
case "not-on-origin-main":
|
|
4447
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4687
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}, which is not reachable from origin/main.`);
|
|
4448
4688
|
suggestions.add("Push or merge the Loom changes, fetch origin/main, publish Loom if needed, then rerun `loom dev published`.");
|
|
4449
4689
|
break;
|
|
4450
4690
|
case "no-release-tag":
|
|
4451
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4691
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}, but no published Loom version contains that commit or matches its package-relevant files.`);
|
|
4452
4692
|
suggestions.add("Publish Loom first, fetch tags, then rerun `loom dev published`.");
|
|
4453
4693
|
break;
|
|
4454
4694
|
case "published":
|
|
@@ -4458,7 +4698,7 @@ async function checkLoomReleaseState(cwd, packageJson, options) {
|
|
|
4458
4698
|
"package-equivalent"
|
|
4459
4699
|
? `package-relevant files match ${exports.LOOM_DEPENDENCY}@${publication.version}`
|
|
4460
4700
|
: `it is published as ${exports.LOOM_DEPENDENCY}@${publication.version}`;
|
|
4461
|
-
addReleaseCheckMessage(issues, warnings,
|
|
4701
|
+
addReleaseCheckMessage(issues, warnings, recordGatesRelease, `This app was last synced against Loom commit ${shortCommit}; ${publicationDescription}, but ${pinLocation} is pinned to ${dependency}.`);
|
|
4462
4702
|
suggestions.add(pnpmOverrideActive
|
|
4463
4703
|
? "Run `loom dev published`, which pins the covering version, then run `pnpm install`."
|
|
4464
4704
|
: pinSuggestion(publication.version));
|
package/skills/loom/SKILL.md
CHANGED
|
@@ -254,7 +254,21 @@ as more authoritative than a generic mapped error when deciding what failed.
|
|
|
254
254
|
reverted before the build finished still counts; with whole-second timestamps
|
|
255
255
|
(FAT, HFS+), so does a file written a moment before the build started.
|
|
256
256
|
`loom dev sync` also records its sync in gitignored `.loom/dev-state.json` for
|
|
257
|
-
`loom status` and `loom check`; that record never gates a release.
|
|
257
|
+
`loom status` and `loom check`; that record never gates a release. It stays
|
|
258
|
+
while local Loom may still be in use: any local Loom override, link or catalog
|
|
259
|
+
entry (any dangling Deno link counts as possibly Loom's), a local
|
|
260
|
+
`pnpm-lock.yaml` resolution or a Loom link in `deno.lock`, or an installed
|
|
261
|
+
copy that is not provably the published package. pnpm proves that through its
|
|
262
|
+
registry store entry; Deno through a `deno.lock` that records no Loom link and
|
|
263
|
+
resolves the pinned `npm:@gadicc/loom` version from the registry.
|
|
264
|
+
`loom dev published` deletes the record once none is left, which for pnpm
|
|
265
|
+
usually means rerunning it after the `pnpm install` it asks for. Otherwise
|
|
266
|
+
`loom check` treats the record as stale: it notes that it can be deleted and,
|
|
267
|
+
if the recorded checkout still exists, advises a newer pin when a newer
|
|
268
|
+
release covers the synced commit. What the record says fails a production
|
|
269
|
+
check only while a link, override or local lockfile points at local Loom; an
|
|
270
|
+
unproven installed copy alone, or a checkout that no longer exists, only
|
|
271
|
+
warns.
|
|
258
272
|
- `loom dev published` proves what is actually installed, from that build
|
|
259
273
|
provenance, before it switches back:
|
|
260
274
|
- It collects every local Loom target: the managed pnpm override, any
|