@darkhunt-security/endpoint-codex 0.9.0

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.
@@ -0,0 +1,39 @@
1
+ {
2
+ "description": "Darkhunt endpoint capture and PreToolUse guardrails for Codex. Commands are PATH-resolved launcher names, NOT paths: Codex requires an absolute path for a hook command (relative paths and ${CODEX_PLUGIN_ROOT} both fail), and the install directory contains the plugin version, so it cannot be written here. `init.mjs` installs the launchers, which resolve the newest installed version at run time. Events come from the JSON Schemas in the Codex binary; there is no Stop event.",
3
+ "hooks": {
4
+ "PreToolUse": [
5
+ {
6
+ "matcher": "*",
7
+ "hooks": [
8
+ {
9
+ "type": "command",
10
+ "command": "darkhunt-codex-guard",
11
+ "timeout_sec": 5
12
+ }
13
+ ]
14
+ }
15
+ ],
16
+ "SessionStart": [
17
+ {
18
+ "hooks": [
19
+ {
20
+ "type": "command",
21
+ "command": "darkhunt-codex-spool",
22
+ "timeout_sec": 5
23
+ }
24
+ ]
25
+ }
26
+ ],
27
+ "SessionEnd": [
28
+ {
29
+ "hooks": [
30
+ {
31
+ "type": "command",
32
+ "command": "darkhunt-codex-spool",
33
+ "timeout_sec": 5
34
+ }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@darkhunt-security/endpoint-codex",
3
+ "version": "0.9.0",
4
+ "type": "module",
5
+ "description": "Darkhunt endpoint adapter for Codex CLI: hook codec, rollout transcript mapper, plugin manifest.",
6
+ "files": [
7
+ "dist/bin",
8
+ "hooks",
9
+ "commands",
10
+ ".codex-plugin"
11
+ ],
12
+ "devDependencies": {
13
+ "@darkhunt-security/endpoint-contracts": "0.9.0",
14
+ "@darkhunt-security/endpoint-core": "0.9.0"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "registry": "https://registry.npmjs.org"
19
+ },
20
+ "license": "UNLICENSED",
21
+ "homepage": "https://github.com/darkhunt-security/endpoint-plugins",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/darkhunt-security/endpoint-plugins.git",
25
+ "directory": "adapters/codex"
26
+ }
27
+ }