feat(codex): ship native basecamp plugin

Merged
YI
4mo ago
+1475-46

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 60s
  • go 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/ci completed plugin, Go, and Actions lint stages; its full macOS run retains the existing internal/cli TestHardenConfigDir failures reproduced unchanged on main

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.json with skills and icons.
    • Setup: basecamp setup codex registers basecamp/claude-plugins, refreshes 37signals if 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 --json includes Codex diagnostics.
    • Release/CI: stamps both .claude-plugin/plugin.json and .codex-plugin/plugin.json for stable releases via scripts/stamp-codex-plugin-version.sh; Go tests enforce strict semver and version parity, validate manifest paths, and verify hooks.json only calls basecamp if present.
  • Refactors

    • Removed post-commit hook, Bash AST parsing, hidden Codex hook commands, and the Python checker; bin/ci is make check again.
    • 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.