@codyswann/lisa 8.2.0 → 8.2.2
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/all/copy-overwrite/scripts/lib/gate-pass-cache.mjs +4 -0
- package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.d.mts +17 -0
- package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs +71 -8
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
- package/dist/cli/lisa-test-run-sweep.d.ts +3 -1
- package/dist/cli/lisa-test-run-sweep.d.ts.map +1 -1
- package/dist/cli/lisa-test-run-sweep.js +10 -7
- package/dist/cli/lisa-test-run-sweep.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +12 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +24 -9
- package/eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js +10 -0
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa/.codex-plugin/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa/.codex-plugin/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa-agy/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa-agy/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa-copilot/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa-copilot/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa-cursor/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa-cursor/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/lisa-devin/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/lisa-devin/scripts/stale-blocker-verify.mjs +3 -2
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/scripts/stale-blocker-summary.mjs +20 -3
- package/plugins/src/base/scripts/stale-blocker-sweep.mjs +3 -0
- package/plugins/src/base/scripts/stale-blocker-verify.mjs +3 -2
- package/scripts/check-workflow-package-paths.mjs +32 -12
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* @module stale-blocker-summary
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import { isResolved } from "./stale-blocker-edges.mjs";
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* What one sweep found.
|
|
13
15
|
* @typedef {object} StaleLinkReport
|
|
@@ -18,7 +20,8 @@
|
|
|
18
20
|
* @property {number} itemsCleared - Items with a planned removal
|
|
19
21
|
* @property {string[]} claimable - Ready items nothing holds any more
|
|
20
22
|
* @property {string[]} deferred - Items left for the next cycle
|
|
21
|
-
* @property {number} realBlockers -
|
|
23
|
+
* @property {number} realBlockers - Links that still hold their item: an
|
|
24
|
+
* open blocker in this project or in another one
|
|
22
25
|
* @property {number} itemsWithRealBlockers - Items with one
|
|
23
26
|
* @property {number} crossProject - Links to another project, left alone
|
|
24
27
|
* @property {{ ref: string, blocker: string }[]} inaccessible - Blockers that could not be read
|
|
@@ -41,6 +44,19 @@ const size = list => list.length;
|
|
|
41
44
|
const pairs = (ref, edges) =>
|
|
42
45
|
edges.map(edge => ({ ref, blocker: edge.blockerRef }));
|
|
43
46
|
|
|
47
|
+
/**
|
|
48
|
+
* The links that hold an item as real blockers: every open one in this
|
|
49
|
+
* project, and every open one in another project. A cross-project link the
|
|
50
|
+
* sweep keeps because it cannot touch another project still holds the item
|
|
51
|
+
* while its blocker is open, so it is counted; a finished one holds nothing.
|
|
52
|
+
* @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[] }} groups
|
|
53
|
+
* @returns {object[]}
|
|
54
|
+
*/
|
|
55
|
+
export const holdingReal = groups => [
|
|
56
|
+
...(groups.real ?? []),
|
|
57
|
+
...(groups.crossProject ?? []).filter(edge => !isResolved(edge.verdict)),
|
|
58
|
+
];
|
|
59
|
+
|
|
44
60
|
/** How an item whose own blocker list could not be read is reported. */
|
|
45
61
|
export const UNREAD_LIST = "its blocker list";
|
|
46
62
|
|
|
@@ -66,8 +82,9 @@ export function tallySweep(judged, plans, deferred) {
|
|
|
66
82
|
.filter(plan => plan.becomesClaimable)
|
|
67
83
|
.map(plan => plan.ref),
|
|
68
84
|
deferred: [...deferred],
|
|
69
|
-
realBlockers: open.reduce((sum, e) => sum + size(e.sorted
|
|
70
|
-
itemsWithRealBlockers: open.filter(e => size(e.sorted
|
|
85
|
+
realBlockers: open.reduce((sum, e) => sum + size(holdingReal(e.sorted)), 0),
|
|
86
|
+
itemsWithRealBlockers: open.filter(e => size(holdingReal(e.sorted)) > 0)
|
|
87
|
+
.length,
|
|
71
88
|
crossProject: open.reduce((sum, e) => sum + size(e.sorted.crossProject), 0),
|
|
72
89
|
inaccessible: [
|
|
73
90
|
...open
|
|
@@ -370,6 +370,9 @@ export function planStaleLinkSweep(input) {
|
|
|
370
370
|
// An item whose blocker list could not be read (a failed native
|
|
371
371
|
// dependency read) plans nothing: it is reported, never touched.
|
|
372
372
|
entry.item.relationsRead &&
|
|
373
|
+
// An item closed since it was listed is never cleaned (Out of
|
|
374
|
+
// Scope), so it never takes a cap slot either; confirm refuses it too.
|
|
375
|
+
!entry.item.closed &&
|
|
373
376
|
entry.item.statusKnown &&
|
|
374
377
|
!entry.inBlocked &&
|
|
375
378
|
entry.sorted.stale.length > 0
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
} from "./stale-blocker-comment.mjs";
|
|
26
26
|
import { isResolved } from "./stale-blocker-edges.mjs";
|
|
27
27
|
import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
|
|
28
|
+
import { holdingReal } from "./stale-blocker-summary.mjs";
|
|
28
29
|
import {
|
|
29
30
|
itemRoles,
|
|
30
31
|
normalizeStaleLinkItem,
|
|
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
|
-
* @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
|
|
84
|
+
* @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
|
|
84
85
|
* @returns {{ real: number, inaccessible: string[] }}
|
|
85
86
|
*/
|
|
86
87
|
const holding = groups => ({
|
|
87
|
-
real: (groups
|
|
88
|
+
real: holdingReal(groups).length,
|
|
88
89
|
inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
|
|
89
90
|
});
|
|
90
91
|
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
readFileSync,
|
|
105
105
|
writeFileSync,
|
|
106
106
|
} from "node:fs";
|
|
107
|
-
import { mkdtempSync, statSync } from "node:fs";
|
|
107
|
+
import { mkdtempSync, rmSync, statSync } from "node:fs";
|
|
108
108
|
import { tmpdir } from "node:os";
|
|
109
109
|
import path from "node:path";
|
|
110
110
|
|
|
@@ -527,6 +527,23 @@ function introducedLater(version, contract) {
|
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
+
/**
|
|
531
|
+
* Run the contract probes in a scratch folder and remove it afterwards,
|
|
532
|
+
* success or failure; every run used to leave one `lisa-contract-probe-*`
|
|
533
|
+
* folder behind (CodySwannGT/lisa#5095).
|
|
534
|
+
* @template T
|
|
535
|
+
* @param {(workRoot: string) => T} probe - The probes, given the folder.
|
|
536
|
+
* @returns {T} What the probes returned.
|
|
537
|
+
*/
|
|
538
|
+
function probeInScratch(probe) {
|
|
539
|
+
const workRoot = mkdtempSync(path.join(tmpdir(), "lisa-contract-probe-"));
|
|
540
|
+
try {
|
|
541
|
+
return probe(workRoot);
|
|
542
|
+
} finally {
|
|
543
|
+
rmSync(workRoot, { force: true, maxRetries: 10, recursive: true });
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
530
547
|
/**
|
|
531
548
|
* Run the check.
|
|
532
549
|
* @returns {void}
|
|
@@ -577,17 +594,20 @@ function main() {
|
|
|
577
594
|
operational: [],
|
|
578
595
|
probed: [],
|
|
579
596
|
}
|
|
580
|
-
:
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
version,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
597
|
+
: probeInScratch(workRoot =>
|
|
598
|
+
probeReleases({
|
|
599
|
+
groups: claims.groups,
|
|
600
|
+
releases: probeable.map(([version, release]) => ({
|
|
601
|
+
version,
|
|
602
|
+
root: release.root,
|
|
603
|
+
contains: candidate =>
|
|
604
|
+
releaseContains(release.entries, candidate),
|
|
605
|
+
})),
|
|
606
|
+
contracts: declaration.contracts,
|
|
607
|
+
fixtures: declaration.fixtures,
|
|
608
|
+
workRoot,
|
|
609
|
+
})
|
|
610
|
+
);
|
|
591
611
|
|
|
592
612
|
const breakages = [
|
|
593
613
|
...findBreakages(claims.groups, listings, declaration.contracts),
|