@codyswann/lisa 2.191.10 → 2.191.12
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/eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js +19 -1
- package/eslint-plugin-component-structure/rules/enforce-component-structure.js +22 -5
- package/harper-fabric/create-only/scripts/zap-baseline.sh +18 -3
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- 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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- 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-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-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-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-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-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-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-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
|
@@ -50,12 +50,30 @@ function createComponentIndexFixture(componentName) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
ruleTester.run("enforce-component-structure", rule, {
|
|
53
|
-
valid: [
|
|
53
|
+
valid: [
|
|
54
|
+
// Opt-out for projects predating the Container/View pairing requirement:
|
|
55
|
+
// the directory-shape check is skipped while the index-export check stays
|
|
56
|
+
// active (the export below still matches the required pattern).
|
|
57
|
+
{
|
|
58
|
+
code: `export { default } from "./LegacyShapeView";`,
|
|
59
|
+
filename: createComponentIndexFixture("LegacyShape"),
|
|
60
|
+
options: [{ checkRequiredComponentFiles: false }],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
54
63
|
invalid: [
|
|
55
64
|
{
|
|
56
65
|
code: `export { default } from "./MissingSiblingsView";`,
|
|
57
66
|
filename: createComponentIndexFixture("MissingSiblings"),
|
|
58
67
|
errors: [{ messageId: "missingContainer" }, { messageId: "missingView" }],
|
|
59
68
|
},
|
|
69
|
+
|
|
70
|
+
// The opt-out disables only the directory-shape check — the index-export
|
|
71
|
+
// check still reports when index.tsx does not export Container/View.
|
|
72
|
+
{
|
|
73
|
+
code: `export const unrelated = true;`,
|
|
74
|
+
filename: createComponentIndexFixture("LegacyExport"),
|
|
75
|
+
options: [{ checkRequiredComponentFiles: false }],
|
|
76
|
+
errors: [{ messageId: "incorrectIndexExport" }],
|
|
77
|
+
},
|
|
60
78
|
],
|
|
61
79
|
});
|
|
@@ -16,7 +16,17 @@ module.exports = {
|
|
|
16
16
|
recommended: true,
|
|
17
17
|
},
|
|
18
18
|
fixable: null,
|
|
19
|
-
schema: [
|
|
19
|
+
schema: [
|
|
20
|
+
{
|
|
21
|
+
type: "object",
|
|
22
|
+
properties: {
|
|
23
|
+
checkRequiredComponentFiles: {
|
|
24
|
+
type: "boolean",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
additionalProperties: false,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
20
30
|
messages: {
|
|
21
31
|
missingContainer:
|
|
22
32
|
'Component directory "{{componentName}}" is missing {{componentName}}Container.tsx file',
|
|
@@ -196,11 +206,18 @@ module.exports = {
|
|
|
196
206
|
}
|
|
197
207
|
};
|
|
198
208
|
|
|
199
|
-
// Only check once per file
|
|
209
|
+
// Only check once per file. Projects predating the Container/View pairing
|
|
210
|
+
// requirement can opt out of the directory-shape check while keeping the
|
|
211
|
+
// naming and index-export checks active.
|
|
212
|
+
const options = context.options[0] || {};
|
|
213
|
+
const checkRequiredComponentFiles =
|
|
214
|
+
options.checkRequiredComponentFiles !== false;
|
|
215
|
+
|
|
200
216
|
if (
|
|
201
|
-
|
|
202
|
-
fileName === "index.
|
|
203
|
-
|
|
217
|
+
checkRequiredComponentFiles &&
|
|
218
|
+
(fileName === "index.ts" ||
|
|
219
|
+
fileName === "index.tsx" ||
|
|
220
|
+
fileName === "index.jsx")
|
|
204
221
|
) {
|
|
205
222
|
checkRequiredFiles();
|
|
206
223
|
}
|
|
@@ -104,12 +104,26 @@ zap_args="-t $SCAN_TARGET_URL"
|
|
|
104
104
|
|
|
105
105
|
if [ -f "$ZAP_RULES_FILE" ]; then
|
|
106
106
|
echo " Using rules file: $ZAP_RULES_FILE"
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
rules_abs="$(realpath "$ZAP_RULES_FILE")"
|
|
108
|
+
case "$rules_abs" in
|
|
109
|
+
"$PROJECT_ROOT"/*)
|
|
110
|
+
# The project root is already mounted at /zap/wrk — reference the rules
|
|
111
|
+
# file inside it; a second mount on /zap/wrk collides
|
|
112
|
+
# (docker: Duplicate mount point).
|
|
113
|
+
zap_args="$zap_args -c /zap/wrk/${rules_abs#"$PROJECT_ROOT"/}"
|
|
114
|
+
mount_rules=""
|
|
115
|
+
;;
|
|
116
|
+
*)
|
|
117
|
+
zap_args="$zap_args -c /zap/rules/$(basename "$rules_abs")"
|
|
118
|
+
mount_rules="-v $(dirname "$rules_abs"):/zap/rules:ro"
|
|
119
|
+
;;
|
|
120
|
+
esac
|
|
109
121
|
else
|
|
110
122
|
mount_rules=""
|
|
111
123
|
fi
|
|
112
124
|
|
|
125
|
+
# -I honors .zap/baseline.conf's documented policy: WARN-marked rules are
|
|
126
|
+
# reported but do not fail the scan; rules marked FAIL there still fail it.
|
|
113
127
|
docker run --rm \
|
|
114
128
|
--add-host=host.docker.internal:host-gateway \
|
|
115
129
|
-v "$(pwd)":/zap/wrk/:rw \
|
|
@@ -119,6 +133,7 @@ docker run --rm \
|
|
|
119
133
|
-r "$REPORT_FILE" \
|
|
120
134
|
-J zap-report.json \
|
|
121
135
|
-w zap-report.md \
|
|
136
|
+
-I \
|
|
122
137
|
-l WARN || zap_exit=$?
|
|
123
138
|
|
|
124
139
|
if [ -f "$REPORT_FILE" ]; then
|
|
@@ -126,7 +141,7 @@ if [ -f "$REPORT_FILE" ]; then
|
|
|
126
141
|
fi
|
|
127
142
|
|
|
128
143
|
if [ "${zap_exit:-0}" -ne 0 ]; then
|
|
129
|
-
echo "ZAP found
|
|
144
|
+
echo "ZAP found FAIL-level findings or errored (exit code: $zap_exit)."
|
|
130
145
|
exit "$zap_exit"
|
|
131
146
|
fi
|
|
132
147
|
|
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"ws": ">=8.20.1"
|
|
96
96
|
},
|
|
97
97
|
"name": "@codyswann/lisa",
|
|
98
|
-
"version": "2.191.
|
|
98
|
+
"version": "2.191.12",
|
|
99
99
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
100
100
|
"main": "dist/index.js",
|
|
101
101
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.191.
|
|
3
|
+
"version": "2.191.12",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.191.
|
|
3
|
+
"version": "2.191.12",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.191.
|
|
3
|
+
"version": "2.191.12",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.191.
|
|
3
|
+
"version": "2.191.12",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.191.
|
|
3
|
+
"version": "2.191.12",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|