@staff0rd/assist 0.391.4 → 0.392.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 +2 -1
- package/codex/config.toml +14 -0
- package/dist/commands/sessions/web/bundle.js +1 -1
- package/dist/index.js +322 -214
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
93
93
|
- `assist init` - Initialize project with VS Code and verify configurations
|
|
94
94
|
- `assist new vite` - Initialize a new Vite React TypeScript project
|
|
95
95
|
- `assist new cli` - Initialize a new tsup CLI project
|
|
96
|
-
- `assist sync` - Copy command files to `~/.claude/commands`, sync `settings.json` and `CLAUDE.md`, and install the design assets — `claude/system-prompt.md` to `~/.claude/system-prompt.md` and `claude/skills/*` into `~/.claude/skills` (existing files in that directory are preserved). When the `codex` CLI is detected on PATH, additionally installs each command as a Codex skill at `~/.codex/skills/<name>/SKILL.md
|
|
96
|
+
- `assist sync` - Copy command files to `~/.claude/commands`, sync `settings.json` and `CLAUDE.md`, and install the design assets — `claude/system-prompt.md` to `~/.claude/system-prompt.md` and `claude/skills/*` into `~/.claude/skills` (existing files in that directory are preserved). When the `codex` CLI is detected on PATH, additionally installs each command as a Codex skill at `~/.codex/skills/<name>/SKILL.md`, `CLAUDE.md` as `~/.codex/AGENTS.md`, and registers the `assist codex-hook` auto-approval hook (`PreToolUse` for `Bash`, plus `PermissionRequest`) in a managed block in `~/.codex/config.toml`, leaving the `~/.claude` copy untouched
|
|
97
97
|
- `assist commit status` - Show git status and diff
|
|
98
98
|
- `assist commit <message>` - Commit staged changes with validation
|
|
99
99
|
- `assist commit <message> [files...]` - Stage files and create a git commit with validation
|
|
@@ -205,6 +205,7 @@ Backlog item ids are written and displayed in an `a`-prefixed form (e.g. item 55
|
|
|
205
205
|
- `assist cli-hook deny` - List all deny rules
|
|
206
206
|
- `assist cli-hook deny add <pattern> <message>` - Add a deny rule for a command pattern
|
|
207
207
|
- `assist cli-hook deny remove <pattern>` - Remove a deny rule by pattern
|
|
208
|
+
- `assist codex-hook` - Codex `PreToolUse`/`PermissionRequest` hook that auto-approves read-only CLI commands, reading Codex's hook JSON from stdin and emitting Codex's decision shape. Reuses the same allowlist and deny logic as `cli-hook`; installed by `assist sync` when `codex` is on PATH
|
|
208
209
|
- `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)
|
|
209
210
|
- `assist code-comment set <file> <line> <text>` - Validate a single-line comment (max 50 chars; no block comments for `.ts`/`.js`) and issue a pin authorising its insertion; inserts `#` for `#`-comment files (`.yml`/`.yaml`, Dockerfile, `*.env`, `*.sh`) and `//` otherwise
|
|
210
211
|
- `assist code-comment confirm <pin>` - Insert the pinned comment at its file/line and clear the pin state
|
|
@@ -0,0 +1,14 @@
|
|
|
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.
|
|
3
|
+
# Codex still requires this hook to be trusted once per machine on first run.
|
|
4
|
+
|
|
5
|
+
[[hooks.PreToolUse]]
|
|
6
|
+
matcher = "Bash"
|
|
7
|
+
[[hooks.PreToolUse.hooks]]
|
|
8
|
+
type = "command"
|
|
9
|
+
command = "assist codex-hook"
|
|
10
|
+
|
|
11
|
+
[[hooks.PermissionRequest]]
|
|
12
|
+
[[hooks.PermissionRequest.hooks]]
|
|
13
|
+
type = "command"
|
|
14
|
+
command = "assist codex-hook"
|