feat(codex): ship native basecamp plugin
Merged
YI
4mo ago+1475+1475+0123456789012345678901234567890123456789-46-46-01234567890123456789
what changed
- add a native Codex plugin manifest, Basecamp and doctor skills, and reviewed lifecycle hooks
- add
basecamp setup codex, Codex doctor checks, version parity, release stamping, and repository validation - document one-command and manual Codex setup while leaving the Claude plugin path unchanged
why
this gets codex users the same one-command setup without messing with the claude path.
test plan
go test ./internal/harness ./internal/commands -run "Codex|CodexHook" -timeout 60sgo test ./internal/release -run "Codex|Plugin"- focused golangci-lint, repository Codex checker, and official plugin validator
- isolated Codex marketplace install: installed/enabled 0.7.2, both skills discovered in a fresh thread, both hooks listed in
/hooks, hook fixtures exercised, and Codex doctor checks passed bin/cicompleted plugin, Go, and Actions lint stages; its full macOS run retains the existinginternal/cliTestHardenConfigDirfailures reproduced unchanged onmain
Summary by cubic
Ships a native Codex plugin with one-command setup, agent-aware diagnostics, and stable-release stamping. Hardens setup remediation and manifest checks; drops the unproven hook stack.
-
New Features
- Native Codex plugin bundle:
.codex-plugin/plugin.jsonwith skills and icons. - Setup:
basecamp setup codexregistersbasecamp/claude-plugins, refreshes37signalsif already added, installs the plugin, streams Codex output with per-step timeouts, and returns manual commands in JSON; the wizard never aborts. - Doctor: adds an agent Diagnostics hook; surfaces “Codex Plugin” and “Codex Plugin Version” from a single Codex query with breadcrumbs;
basecamp doctor --jsonincludes Codex diagnostics. - Release/CI: stamps both
.claude-plugin/plugin.jsonand.codex-plugin/plugin.jsonfor stable releases viascripts/stamp-codex-plugin-version.sh; Go tests enforce strict semver and version parity, validate manifest paths, and verifyhooks.jsononly callsbasecampif present.
- Native Codex plugin bundle:
-
Refactors
- Removed post-commit hook, Bash AST parsing, hidden Codex hook commands, and the Python checker;
bin/ciismake checkagain. - Harness: added
AgentInfo.Diagnostics; Claude’s version check moved into diagnostics; doctor now calls agent diagnostics generically. - Setup/validation hardening: clear remediation when Codex isn’t installed (suggests only
basecamp setup codex), split stdout/stderr so JSON parsing is robust, and resolve symlinks in manifest path checks.
- Removed post-commit hook, Bash AST parsing, hidden Codex hook commands, and the Python checker;