@codyswann/lisa 4.101.4 → 4.101.6
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.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +24 -5
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/hooks-installer.d.ts.map +1 -1
- package/dist/opencode/hooks-installer.js +8 -0
- package/dist/opencode/hooks-installer.js.map +1 -1
- package/dist/opencode/plugin-catalog.d.ts.map +1 -1
- package/dist/opencode/plugin-catalog.js +5 -0
- package/dist/opencode/plugin-catalog.js.map +1 -1
- package/dist/opencode/plugin-templates/block-host-name-leak.mjs +511 -0
- package/dist/opencode/plugin-templates/block-host-name-leak.sh +69 -0
- package/dist/opencode/plugin-templates/host-name-command-context.mjs +455 -0
- package/dist/opencode/plugin-templates/lisa-block-host-name-leak.ts +62 -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/automation-run-record.mjs +678 -0
- package/plugins/lisa/.codex-plugin/scripts/blocker-edge-resolution.mjs +150 -0
- package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +1379 -0
- package/plugins/lisa/.codex-plugin/scripts/intake-prework-denominator.mjs +249 -0
- package/plugins/lisa/.codex-plugin/scripts/operator-id-kinds.mjs +120 -0
- package/plugins/lisa/.codex-plugin/scripts/qa-signal-lifecycle.mjs +523 -0
- package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +549 -0
- package/plugins/lisa/.codex-plugin/scripts/resolve-lifecycle-role.mjs +347 -0
- package/plugins/lisa/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/lisa/hooks/host-name-command-context.mjs +45 -2
- package/plugins/lisa-agy/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/lisa-agy/hooks/host-name-command-context.mjs +45 -2
- package/plugins/lisa-agy/plugin.json +1 -1
- 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/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/lisa-copilot/hooks/host-name-command-context.mjs +45 -2
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/lisa-cursor/hooks/host-name-command-context.mjs +45 -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/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/lisa-devin/hooks/host-name-command-context.mjs +45 -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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-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/hooks/block-host-name-leak.mjs +11 -5
- package/plugins/src/base/hooks/host-name-command-context.mjs +45 -2
- package/scripts/copy-opencode-plugin-templates.mjs +3 -0
- package/scripts/generate-codex-plugin-artifacts.mjs +6 -0
- package/scripts/lib/codex-shared-scripts.mjs +156 -0
- package/scripts/lib/host-name-launcher-cases.mjs +280 -0
- package/scripts/verify-host-name-target-scope.mjs +9 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* What to do with a dependency edge once its blocker has been judged.
|
|
4
|
+
*
|
|
5
|
+
* ## The gap this fills
|
|
6
|
+
*
|
|
7
|
+
* `blocker-containment` decides ONE question — given an edge, is it satisfied —
|
|
8
|
+
* and says so in its own words: it "does not decide when a dependency edge
|
|
9
|
+
* should exist, dissolve an edge once satisfied, or govern what a surface does
|
|
10
|
+
* after clearing". Nothing else claimed that job. So a repair pass that ruled a
|
|
11
|
+
* dependency satisfied moved the STATE and left the EDGE, recording the ruling
|
|
12
|
+
* as a comment; the next reader parses relations, not prose, and blocks again
|
|
13
|
+
* (CodySwannGT/lisa#3472). The durable artifact of "this is satisfied" had no
|
|
14
|
+
* mechanical effect.
|
|
15
|
+
*
|
|
16
|
+
* Measured on this repository while writing this: of 11 open `status:blocked`
|
|
17
|
+
* items carrying a parsable `Blocked by #N`, 5 were held behind blockers that
|
|
18
|
+
* were all closed.
|
|
19
|
+
*
|
|
20
|
+
* ## Why closure is not the test, and neither is "it is finished"
|
|
21
|
+
*
|
|
22
|
+
* Two different mistakes converge on the same wrong answer.
|
|
23
|
+
*
|
|
24
|
+
* The first is testing a state NAME. That half is already fixed: the triage
|
|
25
|
+
* gate now clear-checks by containment, because a promotion workflow types its
|
|
26
|
+
* merged-and-deployed rungs `started`, so `Done` strands every dependent behind
|
|
27
|
+
* work already merged where the dependent needs it.
|
|
28
|
+
*
|
|
29
|
+
* The second is treating CLOSED as satisfied. An `is blocked by` edge is a
|
|
30
|
+
* DEVELOPMENT dependency: it is satisfied when the blocker's code is on the
|
|
31
|
+
* branch this work builds from. A blocker can be closed with no code — and a
|
|
32
|
+
* blocker closed `NOT_PLANNED` is the sharp case, because it means the thing
|
|
33
|
+
* depended on will never be built. Dissolving that edge silently converts "what
|
|
34
|
+
* we needed is cancelled" into "we are unblocked", which is the same wrong-write
|
|
35
|
+
* family as CodySwannGT/lisa#3479, where a reason-blind repair would have
|
|
36
|
+
* stamped a production terminal on abandoned work. So an abandoned blocker
|
|
37
|
+
* ESCALATES to a human rather than dissolving or silently holding forever:
|
|
38
|
+
* somebody has to decide whether the dependent still makes sense.
|
|
39
|
+
*
|
|
40
|
+
* ## What this module does not decide
|
|
41
|
+
*
|
|
42
|
+
* How an edge is dissolved on a given tracker. That is vendor work with its own
|
|
43
|
+
* hazard: on Linear, `issueRelationCreate` CONVERTS an existing relation rather
|
|
44
|
+
* than adding one (CodySwannGT/lisa#3605), so a writer that "updates" an edge
|
|
45
|
+
* can destroy a different one. This module returns a decision; the vendor
|
|
46
|
+
* surface performs it and reads it back.
|
|
47
|
+
* @module blocker-edge-resolution
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/** Every action a surface may take on a judged edge. */
|
|
51
|
+
export const EDGE_ACTIONS = Object.freeze(["dissolve", "keep", "escalate"]);
|
|
52
|
+
|
|
53
|
+
/** GitHub's closure reason for work that will deliberately not be done. */
|
|
54
|
+
const NOT_PLANNED = "not_planned";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Decide what happens to one `is blocked by` edge.
|
|
58
|
+
*
|
|
59
|
+
* `contained` is the containment verdict — the blocker's merged code is an
|
|
60
|
+
* ancestor of the branch this work builds from — and it is deliberately the
|
|
61
|
+
* ONLY positive signal. Everything else here exists to keep a non-containment
|
|
62
|
+
* signal from being mistaken for one.
|
|
63
|
+
* @param {{
|
|
64
|
+
* contained?: boolean | null,
|
|
65
|
+
* blockerState?: string,
|
|
66
|
+
* blockerReason?: string,
|
|
67
|
+
* }} input The containment verdict and the blocker's tracker state.
|
|
68
|
+
* @returns {{action: string, reason: string}} What to do, and why.
|
|
69
|
+
*/
|
|
70
|
+
export function resolveBlockerEdge(input = {}) {
|
|
71
|
+
const state = String(input.blockerState ?? "")
|
|
72
|
+
.trim()
|
|
73
|
+
.toLowerCase();
|
|
74
|
+
const reason = String(input.blockerReason ?? "")
|
|
75
|
+
.trim()
|
|
76
|
+
.toLowerCase();
|
|
77
|
+
|
|
78
|
+
// Checked BEFORE containment, because an abandoned blocker whose branch
|
|
79
|
+
// happens to contain some earlier commit of its own is still abandoned. The
|
|
80
|
+
// question a human has to answer is whether the dependent still makes sense,
|
|
81
|
+
// and a containment true would silently answer it for them.
|
|
82
|
+
if (state === "closed" && reason === NOT_PLANNED) {
|
|
83
|
+
return {
|
|
84
|
+
action: "escalate",
|
|
85
|
+
reason:
|
|
86
|
+
"the blocker was closed as NOT PLANNED, so the work this item depends on will never be " +
|
|
87
|
+
"delivered. Dissolving the edge would read as 'unblocked' when nothing was built, and " +
|
|
88
|
+
"holding it forever hides a decision somebody has to make: does this item still make sense " +
|
|
89
|
+
"without its blocker? That is a human call, not a sweep's.",
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (input.contained === true) {
|
|
94
|
+
return {
|
|
95
|
+
action: "dissolve",
|
|
96
|
+
reason:
|
|
97
|
+
"the blocker's merged code is present on the branch this item builds from, so the " +
|
|
98
|
+
"development dependency is satisfied. Remove the edge in the same write that records the " +
|
|
99
|
+
"ruling, and read it back — a state move plus a comment is a claim about a clearance, not " +
|
|
100
|
+
"a clearance, and the next reader parses relations rather than prose.",
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (input.contained === null || input.contained === undefined) {
|
|
105
|
+
return {
|
|
106
|
+
action: "escalate",
|
|
107
|
+
reason:
|
|
108
|
+
"containment could not be computed for this blocker, so whether the dependency is satisfied " +
|
|
109
|
+
"is unknown. An unknown is not a clearance: dissolving here would be a guess in the " +
|
|
110
|
+
"direction that releases work, which is the direction nothing downstream re-checks.",
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
action: "keep",
|
|
116
|
+
reason:
|
|
117
|
+
state === "closed"
|
|
118
|
+
? "the blocker is closed but its code is not on the branch this item builds from. Closing an " +
|
|
119
|
+
"item is not the same as shipping it, and an `is blocked by` edge is a development " +
|
|
120
|
+
"dependency, not a bookkeeping one."
|
|
121
|
+
: "the blocker's code is not yet on the branch this item builds from, so the dependency " +
|
|
122
|
+
"still holds.",
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Decide a whole set of edges, and say whether the item can proceed.
|
|
128
|
+
*
|
|
129
|
+
* An item proceeds only when every edge dissolves. One escalation holds the
|
|
130
|
+
* item — reporting it, rather than proceeding on the majority verdict, is what
|
|
131
|
+
* keeps a single unanswerable edge from being rounded away.
|
|
132
|
+
* @param {readonly object[]} edges Per-edge inputs, in the item's own order.
|
|
133
|
+
* @returns {{
|
|
134
|
+
* proceed: boolean,
|
|
135
|
+
* decisions: {action: string, reason: string}[],
|
|
136
|
+
* escalations: number,
|
|
137
|
+
* }} The per-edge decisions and whether the item is free to move.
|
|
138
|
+
*/
|
|
139
|
+
export function resolveBlockerEdges(edges = []) {
|
|
140
|
+
const decisions = (edges ?? []).map(edge => ({
|
|
141
|
+
...edge,
|
|
142
|
+
...resolveBlockerEdge(edge),
|
|
143
|
+
}));
|
|
144
|
+
return {
|
|
145
|
+
proceed:
|
|
146
|
+
decisions.length > 0 && decisions.every(one => one.action === "dissolve"),
|
|
147
|
+
decisions,
|
|
148
|
+
escalations: decisions.filter(one => one.action === "escalate").length,
|
|
149
|
+
};
|
|
150
|
+
}
|