@codyswann/lisa 4.38.2 → 4.38.4
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/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +2 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- 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 +17 -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 +1 -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-managed-file-edits.sh +937 -0
- package/dist/opencode/plugin-templates/lisa-block-managed-file-edits.ts +83 -0
- package/package.json +6 -5
- package/plugins/lisa/.claude-plugin/plugin.json +9 -1
- package/plugins/lisa/.codex-plugin/hooks.json +8 -0
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/hooks/block-managed-file-edits.agy.sh +63 -0
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +8 -0
- package/plugins/lisa-agy/hooks/block-managed-file-edits.agy.sh +63 -0
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +937 -0
- package/plugins/lisa-agy/hooks.json +13 -0
- 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 +9 -1
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +8 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/hooks.json +8 -0
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +8 -0
- 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
- package/plugins/src/base/.claude-plugin/plugin.json +9 -1
- package/plugins/src/base/hooks/block-managed-file-edits.agy.sh +63 -0
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +8 -0
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +8 -0
- package/scripts/check-typecheck-tests.mjs +147 -0
- package/scripts/copy-opencode-plugin-templates.mjs +1 -0
- package/scripts/generate-agy-plugin-artifacts.mjs +12 -0
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +8 -0
|
@@ -51,6 +51,19 @@
|
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
+
"lisa-block-managed-file-edits": {
|
|
55
|
+
"PreToolUse": [
|
|
56
|
+
{
|
|
57
|
+
"matcher": "run_command",
|
|
58
|
+
"hooks": [
|
|
59
|
+
{
|
|
60
|
+
"type": "command",
|
|
61
|
+
"command": "bash \"$HOME/.gemini/config/plugins/lisa/hooks/block-managed-file-edits.agy.sh\""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
54
67
|
"lisa-block-direct-issue-create": {
|
|
55
68
|
"PreToolUse": [
|
|
56
69
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa",
|
|
3
|
-
"version": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
4
4
|
"description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
{
|
|
92
92
|
"type": "command",
|
|
93
93
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-host-name-leak.sh"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "command",
|
|
97
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
|
|
94
98
|
}
|
|
95
99
|
]
|
|
96
100
|
},
|
|
@@ -100,6 +104,10 @@
|
|
|
100
104
|
{
|
|
101
105
|
"type": "command",
|
|
102
106
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "command",
|
|
110
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
|
|
103
111
|
}
|
|
104
112
|
]
|
|
105
113
|
},
|
|
@@ -77,6 +77,14 @@ export const FAMILIES = [
|
|
|
77
77
|
match: /(^|\/)\.lisa\.config\.json$/,
|
|
78
78
|
kind: "allow-list",
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
// The #3811 quarantine. `allow-list` is exactly right here: the list may
|
|
82
|
+
// shrink freely, and ADDING a file — re-authorising type debt that the
|
|
83
|
+
// gate would otherwise refuse — is the change that needs a human to see it.
|
|
84
|
+
id: "typecheck-quarantine",
|
|
85
|
+
match: /(^|\/)typecheck-quarantine\.json$/,
|
|
86
|
+
kind: "allow-list",
|
|
87
|
+
},
|
|
80
88
|
{
|
|
81
89
|
id: "lighthouse",
|
|
82
90
|
match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
|
|
@@ -53,10 +53,18 @@
|
|
|
53
53
|
"command": "${CURSOR_PLUGIN_ROOT}/hooks/block-host-name-leak.sh",
|
|
54
54
|
"matcher": "Bash"
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"command": "${CURSOR_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh",
|
|
58
|
+
"matcher": "Bash"
|
|
59
|
+
},
|
|
56
60
|
{
|
|
57
61
|
"command": "${CURSOR_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh",
|
|
58
62
|
"matcher": "Write|Edit|MultiEdit"
|
|
59
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"command": "${CURSOR_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh",
|
|
66
|
+
"matcher": "Write|Edit|MultiEdit"
|
|
67
|
+
},
|
|
60
68
|
{
|
|
61
69
|
"command": "${CURSOR_PLUGIN_ROOT}/hooks/enforce-verification-gate.sh"
|
|
62
70
|
},
|
|
@@ -77,6 +77,14 @@ export const FAMILIES = [
|
|
|
77
77
|
match: /(^|\/)\.lisa\.config\.json$/,
|
|
78
78
|
kind: "allow-list",
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
// The #3811 quarantine. `allow-list` is exactly right here: the list may
|
|
82
|
+
// shrink freely, and ADDING a file — re-authorising type debt that the
|
|
83
|
+
// gate would otherwise refuse — is the change that needs a human to see it.
|
|
84
|
+
id: "typecheck-quarantine",
|
|
85
|
+
match: /(^|\/)typecheck-quarantine\.json$/,
|
|
86
|
+
kind: "allow-list",
|
|
87
|
+
},
|
|
80
88
|
{
|
|
81
89
|
id: "lighthouse",
|
|
82
90
|
match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
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": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
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": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
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": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
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": "4.38.
|
|
3
|
+
"version": "4.38.4",
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "Universal governance
|
|
4
|
+
"description": "Universal governance \u2014 agents, skills, commands, hooks, and rules for all projects",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
7
7
|
},
|
|
@@ -145,6 +145,10 @@
|
|
|
145
145
|
{
|
|
146
146
|
"type": "command",
|
|
147
147
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-host-name-leak.sh"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "command",
|
|
151
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
|
|
148
152
|
}
|
|
149
153
|
]
|
|
150
154
|
},
|
|
@@ -154,6 +158,10 @@
|
|
|
154
158
|
{
|
|
155
159
|
"type": "command",
|
|
156
160
|
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-instruction-file-edits.sh"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "command",
|
|
164
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-managed-file-edits.sh"
|
|
157
165
|
}
|
|
158
166
|
]
|
|
159
167
|
},
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Antigravity (agy) PreToolUse adapter for Lisa's managed-file guard.
|
|
3
|
+
#
|
|
4
|
+
# agy sends `{toolCall:{name:"run_command",args:{CommandLine:"..."}}}` and
|
|
5
|
+
# expects an allow/deny JSON object on stdout. The canonical hook consumes the
|
|
6
|
+
# Claude Bash-hook envelope and communicates denial with exit status 2. This
|
|
7
|
+
# adapter only translates protocols; all classification stays in the canonical
|
|
8
|
+
# block-managed-file-edits.sh beside it (same delegation pattern as
|
|
9
|
+
# block-instruction-file-edits.agy.sh).
|
|
10
|
+
#
|
|
11
|
+
# Scope note: agy plugin hooks match `run_command`, so only the Bash arm of the
|
|
12
|
+
# guard reaches agy — an agy file-edit tool call writing a copy-overwrite
|
|
13
|
+
# template cannot be intercepted. That gap is accepted and recorded here, and in
|
|
14
|
+
# the pull request that added this adapter, rather than papered over. The
|
|
15
|
+
# redirection / append / tee signatures the canonical guard follows into
|
|
16
|
+
# executed scripts still hold on agy, which is the majority of the surface.
|
|
17
|
+
#
|
|
18
|
+
# Fail-open on missing runtimes, matching every sibling adapter. A missed
|
|
19
|
+
# refusal here costs a silently forked template — recoverable, and `lisa apply`
|
|
20
|
+
# reports it as out of date on every subsequent run — where failing closed would
|
|
21
|
+
# block every command on a machine without jq.
|
|
22
|
+
set -uo pipefail
|
|
23
|
+
|
|
24
|
+
allow() {
|
|
25
|
+
printf '%s\n' '{"decision":"allow"}'
|
|
26
|
+
exit 0
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
deny() {
|
|
30
|
+
local reason="$1"
|
|
31
|
+
if command -v jq >/dev/null 2>&1; then
|
|
32
|
+
jq -cn --arg reason "$reason" '{decision:"deny",reason:$reason}'
|
|
33
|
+
else
|
|
34
|
+
printf '%s\n' '{"decision":"allow"}'
|
|
35
|
+
fi
|
|
36
|
+
exit 0
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input="$(cat 2>/dev/null || true)"
|
|
40
|
+
[ -z "$input" ] && allow
|
|
41
|
+
command -v jq >/dev/null 2>&1 || allow
|
|
42
|
+
|
|
43
|
+
tool_name="$(printf '%s' "$input" | jq -r '.toolCall.name // empty' 2>/dev/null || true)"
|
|
44
|
+
[ "$tool_name" != "run_command" ] && allow
|
|
45
|
+
command_str="$(printf '%s' "$input" | jq -r '.toolCall.args.CommandLine // empty' 2>/dev/null || true)"
|
|
46
|
+
[ -z "$command_str" ] && allow
|
|
47
|
+
|
|
48
|
+
hook_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
49
|
+
canonical_hook="$hook_dir/block-managed-file-edits.sh"
|
|
50
|
+
[ -r "$canonical_hook" ] || allow
|
|
51
|
+
|
|
52
|
+
canonical_input="$(jq -cn --arg command "$command_str" '{tool_name:"Bash",tool_input:{command:$command}}')"
|
|
53
|
+
canonical_output=""
|
|
54
|
+
canonical_status=0
|
|
55
|
+
if canonical_output="$(printf '%s' "$canonical_input" | /bin/bash "$canonical_hook" 2>&1)"; then
|
|
56
|
+
canonical_status=0
|
|
57
|
+
else
|
|
58
|
+
canonical_status=$?
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
[ "$canonical_status" -eq 0 ] && allow
|
|
62
|
+
[ -n "$canonical_output" ] || canonical_output="Blocked: this file is Lisa-managed and is replaced by \`lisa apply\`. Edit the template upstream in Lisa, or use the local escape hatch beside the file."
|
|
63
|
+
deny "$canonical_output"
|