Commit Graph
4 Commits
Author SHA1 Message Date
rUvandr a12e204de3 fix(plugins): Codex hook manifests for every function-hook plugin (#3688) (#5206)
* fix(plugins): give every function-hook plugin a Codex hook manifest

Codex 0.172 rejects a hooks/hooks.json that carries Claude Code's
function-hook `modules` key ("unknown field `modules`, expected
`description` or `hooks`") and drops that plugin's hooks, printing the
warning on every start (#3688). Only ruflo-adr, ruflo-ddd, ruflo-sparc
and ruflo-swarm had the fix.

Apply the ruflo-swarm pattern to the other 39 plugins whose installed
root declares `modules`: a .codex-plugin/plugin.json (name, description,
version, author, homepage, license, as in the existing four) pointing at
hooks/codex-hooks.json. That file keeps the classic command hooks and
drops only `modules`; ruflo-metaharness keeps its SessionStart secret
bridge, all others get an explicit no-op whose description says the mod
part does not run on this host. ruflo-ai-team and ruflo-x-gateway are
untouched: their marketplace roots (directory/) ship no hooks.

Codex caches plugins by <name>/<version>/, and
audit-plugin-version-bump requires it, so each of the 39 gets a patch
bump, with the smoke.sh pins, ruflo-console's CONSOLE_VERSION, the
protector README and the console/mods/protector changelogs updated.

The swarm-only test is generalized into
tests/plugins/codex-plugin-hook-manifests.test.mjs, which covers every
plugin whose installed root has a `modules` key and now runs in
all-plugins-smoke.yml.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruflo-metaharness): no SessionStart hook on Codex

The hook writes OPENROUTER_API_KEY through CLAUDE_ENV_FILE, which Codex
does not provide, so on Codex it does nothing. Shipping it would add a
new hook Codex asks the user to review, which stops a phone-started
Codex tab at a review screen.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-30 16:48:51 -05:00
ClaudeandRuFlo 6048331860 fix(ruflo-swarm): add host-specific no-op manifest for native Codex hook discovery
ruflo-swarm's hooks/hooks.json declares a Claude Code function-hook
module (modules: ["./register.ts"]) for the live swarm pane. Codex's
native plugin hook-manifest loader accepts only description and hooks
at the top level and hard-fails with `unknown field "modules"`,
dropping the plugin's hook registration entirely (#3688).

Add plugins/ruflo-swarm/.codex-plugin/plugin.json, the native override
Codex already prefers over .claude-plugin/plugin.json (same convention
used by ruflo-adr/ruflo-ddd/ruflo-sparc), pointing at a new
hooks/codex-hooks.json with an explicit no-op (`hooks: {}`). ruflo-swarm's
function hooks are a pure UI pane with no guard/security logic to port,
so an explicit no-op — not invented command hooks — is the correct
fix, matching the issue's own proposed resolution.

The Claude Code manifest and register.ts module are untouched.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01QFyyphjiSXRE1TS2rRnEwU
2026-10-11 05:19:25 +00:00
Stuart Kerr 24a83b3297 fix(plugins): allow native freeform inputs and version Codex hook repair 2026-10-08 16:52:49 -04:00
Stuart Kerr b968e34970 fix(plugins): add native Codex adapters for ADR DDD and SPARC mods 2026-10-08 16:52:42 -04:00