feat(plugins): enable Impeccable hooks for Codex and trim extensions
- Register Impeccable's design-detector PostToolUse and Stop hooks in the Codex config through new no-op-safe wrappers; Claude already gets them from the Impeccable plugin. - Make Caveman Claude-only: a '-' codex_method marks Claude-only entries, which the Codex selector omits and sync removes from owned Codex installs. Drop the thinkhome Caveman Windows hook repair. - Remove Anthropic Frontend Design from the manifest, plugin workflow, and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb7cecaaa2
commit
f7222a90c2
20 files changed
+109
-95
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Codex PostToolUse/Stop: run the Impeccable design detector when its Codex skill is installed; otherwise a no-op.
|
||||
# Claude receives the same hooks from the Impeccable plugin. Projects can still opt out with `impeccable hooks off`.
|
||||
$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME '.codex' }
|
||||
$windows = $env:OS -eq 'Windows_NT'
|
||||
foreach ($skill in @((Join-Path $HOME '.agents/skills/impeccable'), (Join-Path $codexHome 'skills/impeccable'))) {
|
||||
$launcher = Join-Path $skill $(if ($windows) { 'scripts/impeccable.cmd' } else { 'scripts/impeccable' })
|
||||
if (-not (Test-Path -LiteralPath $launcher -PathType Leaf)) { continue }
|
||||
# The hook reply carries non-ASCII text; Windows PowerShell would otherwise decode it with the OEM code page.
|
||||
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)
|
||||
if ($windows) { & $launcher hook } else { & sh $launcher hook }
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
exit 0
|
||||
Reference in new issue
Block a user