@ascenda-one/codex-hooks 0.1.33 → 0.1.34
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/README.md +14 -8
- package/dist/cli.js +1052 -244
- package/dist/cli.js.map +1 -1
- package/dist/setup.js +1 -1
- package/dist/setup.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Codex **awaits** command hooks and treats **exit code 2 as blocking** the user's
|
|
|
38
38
|
One command pairs Codex, installs the hook binary, and registers the hooks:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npx -y @ascenda-one/codex-hooks setup
|
|
41
|
+
npx -y @ascenda-one/codex-hooks setup
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
It prints a 6-digit code — confirm it in the Ascenda app under
|
|
@@ -53,23 +53,29 @@ credentials file, which is per agent — so pairing Codex cannot disturb a
|
|
|
53
53
|
Claude Code or Cursor pairing on the same machine, and a Codex hook launched
|
|
54
54
|
from the Dock with an empty environment still names itself correctly.
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
`<cwd>/.codex/hooks.json
|
|
58
|
-
|
|
56
|
+
Hooks register machine-wide by default. `--scope project` puts them in
|
|
57
|
+
`<cwd>/.codex/hooks.json` instead, for that project only. Each hook runs
|
|
58
|
+
through a small launcher at `~/.ascenda/bin/ascenda-codex-hook` that finds
|
|
59
|
+
Node 20 or newer itself, so hooks keep working when Codex starts without
|
|
60
|
+
your shell's PATH. `--no-pair` installs without pairing: the screen saver
|
|
61
|
+
and live view work, and nothing is sent.
|
|
59
62
|
|
|
60
63
|
### 2. Check it
|
|
61
64
|
|
|
62
65
|
```bash
|
|
63
|
-
npx @ascenda-one/codex-hooks status
|
|
66
|
+
npx @ascenda-one/codex-hooks status
|
|
67
|
+
~/.ascenda/bin/ascenda-codex-hook doctor
|
|
64
68
|
```
|
|
65
69
|
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
`status` names the pairing, the Node the hooks will run, the last hook Codex
|
|
71
|
+
ran and how many events are registered. It exits non-zero when something is
|
|
72
|
+
missing, so it can gate a CI step. `doctor` also checks the live signal, and
|
|
73
|
+
pings the Waterline screen saver when it is running.
|
|
68
74
|
|
|
69
75
|
To undo everything it wrote:
|
|
70
76
|
|
|
71
77
|
```bash
|
|
72
|
-
npx @ascenda-one/codex-hooks uninstall
|
|
78
|
+
npx @ascenda-one/codex-hooks uninstall
|
|
73
79
|
```
|
|
74
80
|
|
|
75
81
|
### 3. Restart Codex and review hooks
|