@codyswann/lisa 2.191.9 → 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/harper-fabric/create-only/scripts/zap-baseline.sh +33 -20
- 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
|
}
|
|
@@ -11,7 +11,6 @@ LOCAL_TARGETS=("http://localhost:9926" "http://host.docker.internal:9926")
|
|
|
11
11
|
SCAN_TARGET_URL="$TARGET_URL"
|
|
12
12
|
ZAP_RULES_FILE="${ZAP_RULES_FILE:-.zap/baseline.conf}"
|
|
13
13
|
REPORT_FILE="zap-report.html"
|
|
14
|
-
SERVER_PID=""
|
|
15
14
|
|
|
16
15
|
cd "$PROJECT_ROOT"
|
|
17
16
|
|
|
@@ -37,9 +36,9 @@ for local_target in "${LOCAL_TARGETS[@]}"; do
|
|
|
37
36
|
done
|
|
38
37
|
|
|
39
38
|
cleanup() {
|
|
40
|
-
if [ -n "${
|
|
41
|
-
echo "==> Stopping Harper
|
|
42
|
-
|
|
39
|
+
if [ -n "${HARPER_STARTED:-}" ]; then
|
|
40
|
+
echo "==> Stopping Harper..."
|
|
41
|
+
HDB_ROOT="$HDB_ROOT" "$HARPER_BIN" stop >/dev/null 2>&1 || true
|
|
43
42
|
fi
|
|
44
43
|
}
|
|
45
44
|
trap cleanup EXIT
|
|
@@ -56,22 +55,36 @@ if [ "$should_start_local" = true ]; then
|
|
|
56
55
|
exit 1
|
|
57
56
|
fi
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"$
|
|
74
|
-
|
|
58
|
+
HDB_ROOT="${HDB_ROOT:-$HOME/.harperdb}"
|
|
59
|
+
|
|
60
|
+
# A bare `harper run` neither performs first-run initialization (keys,
|
|
61
|
+
# config) nor registers the app, so nothing ever listens on the scan port.
|
|
62
|
+
# Mirror the starter bootstrap flow instead: non-interactive install,
|
|
63
|
+
# register harper-app as a component, then start the Harper service.
|
|
64
|
+
if [ ! -f "$HDB_ROOT/harperdb-config.yaml" ]; then
|
|
65
|
+
echo "==> Installing HarperDB (non-interactive)..."
|
|
66
|
+
# Env answers every first-run prompt (Terms & Conditions, admin
|
|
67
|
+
# credentials, install destination). HTTP_PORT must stay 9926 to match
|
|
68
|
+
# the scan target URL above.
|
|
69
|
+
TC_AGREEMENT="${TC_AGREEMENT:-yes}" \
|
|
70
|
+
HDB_ROOT="$HDB_ROOT" \
|
|
71
|
+
HDB_ADMIN_USERNAME="${HDB_ADMIN_USERNAME:-admin}" \
|
|
72
|
+
HDB_ADMIN_PASSWORD="${HDB_ADMIN_PASSWORD:-zap-baseline-local}" \
|
|
73
|
+
OPERATIONSAPI_NETWORK_PORT="${OPERATIONSAPI_NETWORK_PORT:-9925}" \
|
|
74
|
+
HTTP_PORT="${HTTP_PORT:-9926}" \
|
|
75
|
+
ANALYTICS_ENABLED="${ANALYTICS_ENABLED:-false}" \
|
|
76
|
+
LOGGING_LEVEL="${LOGGING_LEVEL:-warn}" \
|
|
77
|
+
"$HARPER_BIN" install
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
echo "==> Registering harper-app component..."
|
|
81
|
+
mkdir -p "$HDB_ROOT/components"
|
|
82
|
+
ln -sfn "$PROJECT_ROOT/harper-app" \
|
|
83
|
+
"$HDB_ROOT/components/$(basename "$PROJECT_ROOT")"
|
|
84
|
+
|
|
85
|
+
echo "==> Starting Harper..."
|
|
86
|
+
HDB_ROOT="$HDB_ROOT" "$HARPER_BIN" start
|
|
87
|
+
HARPER_STARTED=1
|
|
75
88
|
|
|
76
89
|
echo "==> Waiting for Harper app..."
|
|
77
90
|
retries=30
|
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"
|