@codyswann/lisa 2.191.10 → 2.191.11
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/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
|
}
|
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.11",
|
|
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.11",
|
|
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.11",
|
|
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.11",
|
|
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.11",
|
|
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.11",
|
|
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"
|