@noppu-labs/opencode-permission-reviewer 0.0.0-stage → 2.4.2
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/CHANGELOG.md +652 -0
- package/LICENSE +201 -0
- package/MIGRATION.md +111 -0
- package/NOTICE +13 -0
- package/README.md +842 -2
- package/SECURITY.md +31 -0
- package/dist/explain.d.ts +4 -0
- package/dist/explain.js +4422 -0
- package/dist/index.d.ts +1179 -0
- package/dist/index.js +10770 -0
- package/dist/rpc.d.ts +42 -0
- package/dist/rpc.js +19 -0
- package/dist/tui/config/jsonc.ts +100 -0
- package/dist/tui/config/loader.ts +573 -0
- package/dist/tui/config.ts +479 -0
- package/dist/tui/opencode/event-normalizer.ts +52 -0
- package/dist/tui/tui.tsx +162 -0
- package/dist/tui/types.ts +747 -0
- package/dist/tui/ui/components.tsx +181 -0
- package/dist/tui/ui/rpc.ts +16 -0
- package/dist/tui/ui/v2.tsx +261 -0
- package/dist/tui/ui-protocol.ts +183 -0
- package/dist/tui/ui-state.ts +139 -0
- package/package.json +128 -4
- package/rpc.js +1 -0
- package/server.js +2 -0
- package/tui.tsx +1 -0
package/SECURITY.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Reporting a vulnerability
|
|
2
|
+
|
|
3
|
+
This plugin makes automated safety decisions about AI-agent permissions, so
|
|
4
|
+
we take security bugs seriously.
|
|
5
|
+
|
|
6
|
+
Please **do not** file a public issue for a security vulnerability. Instead,
|
|
7
|
+
use GitHub's private vulnerability reporting:
|
|
8
|
+
|
|
9
|
+
- go to **Report a vulnerability** at
|
|
10
|
+
https://github.com/Warc0s/opencode-permission-reviewer/security/advisories/new
|
|
11
|
+
|
|
12
|
+
or email the maintainer directly if the report contains sensitive details.
|
|
13
|
+
|
|
14
|
+
Include, when possible:
|
|
15
|
+
|
|
16
|
+
- a minimal reproduction (command + permission policy that triggers it),
|
|
17
|
+
- the affected version (`package.json` → `version`),
|
|
18
|
+
- the OpenCode version you run,
|
|
19
|
+
- the expected vs. actual safety outcome.
|
|
20
|
+
|
|
21
|
+
We will acknowledge within a few days and coordinate a fix and disclosure.
|
|
22
|
+
|
|
23
|
+
## Threat model notes
|
|
24
|
+
|
|
25
|
+
This plugin is a **defense-in-depth aid**, not a complete sandbox. It reviews
|
|
26
|
+
`ask`-classified actions with a second model call and fails safe to manual
|
|
27
|
+
review when anything is uncertain. It does not replace OpenCode's own
|
|
28
|
+
permission system, your model provider's safety layers, or good OS-level
|
|
29
|
+
hygiene. A determinedly adversarial agent may still attempt to mislead the
|
|
30
|
+
reviewer; the deterministic emergency brake and the untrusted-evidence prompt
|
|
31
|
+
mitigate but cannot fully eliminate that risk.
|