@staff0rd/assist 0.535.1 → 0.537.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.
package/README.md CHANGED
@@ -232,7 +232,7 @@ The Config tab of the sessions web dashboard never receives secret values: `GET
232
232
  - `assist cli-hook deny` - List all deny rules
233
233
  - `assist cli-hook deny add <pattern> <message>` - Add a deny rule for a command pattern
234
234
  - `assist cli-hook deny remove <pattern>` - Remove a deny rule by pattern
235
- - `assist codex-hook` - Codex `PreToolUse`/`PermissionRequest` hook reusing the `cli-hook` allowlist; installed by `assist sync` when `codex` is on PATH
235
+ - `assist codex-hook` - Codex hook that auto-approves read-only commands (`PreToolUse`/`PermissionRequest`) reusing the `cli-hook` allowlist, and reports session status to the sessions daemon (`UserPromptSubmit`/`PreToolUse`/`PostToolUse` → running, `Stop` and an undecided `PermissionRequest` → waiting) so a Codex session card shows live running/waiting; installed by `assist sync` when `codex` is on PATH
236
236
  - `assist pi-hook` - pi permission-gate adapter reusing the `cli-hook` allowlist, emitting `allow` / `deny` / `gate`; installed by `assist sync` when `pi` is on PATH
237
237
  - `assist edit-hook` - PreToolUse hook that blocks `Edit`/`Write`/`MultiEdit` calls from adding, changing, or removing a `// assist-maintainability-override` marker, or from introducing a code comment (use `code-comment set`/`confirm` for the rare comment that belongs)
238
238
  - `assist code-comment set <file> <line> <text>` - Validate a comment (max 50 chars, single-line) and issue a pin authorising its insertion
package/codex/config.toml CHANGED
@@ -1,14 +1,29 @@
1
1
  # Managed by `assist sync`: merged into ~/.codex/config.toml when the codex CLI
2
- # is detected. Registers the assist codex-hook read-only auto-approval hook.
2
+ # is detected. Registers the assist codex-hook, which auto-approves read-only
3
+ # commands and reports running/waiting status for daemon-tracked sessions.
3
4
  # Codex still requires this hook to be trusted once per machine on first run.
4
5
 
6
+ [[hooks.UserPromptSubmit]]
7
+ [[hooks.UserPromptSubmit.hooks]]
8
+ type = "command"
9
+ command = "assist codex-hook"
10
+
5
11
  [[hooks.PreToolUse]]
6
- matcher = "Bash"
7
12
  [[hooks.PreToolUse.hooks]]
8
13
  type = "command"
9
14
  command = "assist codex-hook"
10
15
 
16
+ [[hooks.PostToolUse]]
17
+ [[hooks.PostToolUse.hooks]]
18
+ type = "command"
19
+ command = "assist codex-hook"
20
+
11
21
  [[hooks.PermissionRequest]]
12
22
  [[hooks.PermissionRequest.hooks]]
13
23
  type = "command"
14
24
  command = "assist codex-hook"
25
+
26
+ [[hooks.Stop]]
27
+ [[hooks.Stop.hooks]]
28
+ type = "command"
29
+ command = "assist codex-hook"