@codyswann/lisa 1.49.0 → 1.50.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.
@@ -14,7 +14,7 @@
14
14
  "source-map-support": "^0.5.21"
15
15
  },
16
16
  "devDependencies": {
17
- "@codyswann/lisa": "^1.48.0",
17
+ "@codyswann/lisa": "^1.49.0",
18
18
  "aws-cdk": "^2.1104.0"
19
19
  },
20
20
  "bin": {
@@ -113,7 +113,7 @@
113
113
  "devDependencies": {
114
114
  "@babel/core": "^7.20.0",
115
115
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
116
- "@codyswann/lisa": "^1.48.0",
116
+ "@codyswann/lisa": "^1.49.0",
117
117
  "@graphql-codegen/cli": "^6.1.0",
118
118
  "@graphql-codegen/typescript": "^4.1.6",
119
119
  "@graphql-codegen/typescript-operations": "^4.4.2",
@@ -64,7 +64,7 @@
64
64
  "typeorm-naming-strategies": "^4.1.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@codyswann/lisa": "^1.48.0",
67
+ "@codyswann/lisa": "^1.49.0",
68
68
  "@graphql-codegen/cli": "^6.1.0",
69
69
  "@graphql-codegen/typescript": "^4.1.6",
70
70
  "@graphql-codegen/typescript-operations": "^4.4.2",
package/package.json CHANGED
@@ -68,7 +68,7 @@
68
68
  "axios": ">=1.13.5"
69
69
  },
70
70
  "name": "@codyswann/lisa",
71
- "version": "1.49.0",
71
+ "version": "1.50.1",
72
72
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
73
73
  "main": "dist/index.js",
74
74
  "exports": {
@@ -13,6 +13,31 @@ if [ ! -d "$LISA_DIR" ]; then exit 0; fi
13
13
 
14
14
  cd "$PROJECT_ROOT"
15
15
 
16
+ # Apply Lisa templates non-interactively
17
+ if ! node "$LISA_DIR/dist/index.js" --yes "$PROJECT_ROOT"; then
18
+ echo "⚠️ Warning: Lisa template application failed. Migration may be incomplete." >&2
19
+ fi
20
+
21
+ # Strip the hooks key from .claude/settings.json if .claude/hooks/ is now empty/absent
22
+ # (hooks moved to plugin.json; all .claude/hooks/*.sh scripts are deleted by lisa update)
23
+ SETTINGS_FILE="$PROJECT_ROOT/.claude/settings.json"
24
+ HOOKS_DIR="$PROJECT_ROOT/.claude/hooks"
25
+ if [ -f "$SETTINGS_FILE" ] && command -v python3 >/dev/null 2>&1; then
26
+ if [ ! -d "$HOOKS_DIR" ] || [ -z "$(ls -A "$HOOKS_DIR" 2>/dev/null)" ]; then
27
+ python3 - "$SETTINGS_FILE" <<'PYEOF'
28
+ import json, sys
29
+ path = sys.argv[1]
30
+ with open(path) as f:
31
+ d = json.load(f)
32
+ if "hooks" in d:
33
+ del d["hooks"]
34
+ with open(path, "w") as f:
35
+ json.dump(d, f, indent=2)
36
+ f.write("\n")
37
+ PYEOF
38
+ fi
39
+ fi
40
+
16
41
  # Register the Lisa marketplace pointing to this npm package
17
42
  claude marketplace add "$LISA_DIR" </dev/null 2>&1 || true
18
43
 
@@ -16,10 +16,10 @@
16
16
  "sg:scan": "ast-grep scan",
17
17
  "build": "tsc",
18
18
  "prepare": "node -e \"if (process.env.INIT_CWD && process.env.INIT_CWD.includes('.serverless')) { process.exit(0); }\" && husky install || true",
19
- "lisa:update": "npx @codyswann/lisa@latest ."
19
+ "lisa:update": "lisa ."
20
20
  },
21
21
  "devDependencies": {
22
- "@codyswann/lisa": "^1.48.0"
22
+ "@codyswann/lisa": "^1.49.0"
23
23
  },
24
24
  "resolutions": {
25
25
  "@isaacs/brace-expansion": "^5.0.1",