@codyswann/lisa 8.2.0 → 8.2.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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +11 -3
- 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
|
@@ -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
|
|
|
@@ -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
|