@the-bearded-bear/claude-craft 9.2.0 → 9.2.1
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/Dev/i18n/base/Angular/rules/00-project-context.md.template +1 -1
- package/Dev/i18n/base/Angular/rules/03-coding-standards.md +17 -16
- package/Dev/i18n/base/Angular/rules/06-tooling.md +2 -2
- package/Dev/i18n/base/CSharp/rules/06-tooling.md +8 -6
- package/Dev/i18n/base/Common/hooks/scripts/block-dangerous-commands.sh +93 -48
- package/Dev/i18n/base/Common/hooks/scripts/guard-network.sh +58 -0
- package/Dev/i18n/base/Common/hooks/scripts/lib/hook-io.sh +181 -0
- package/Dev/i18n/base/Common/hooks/scripts/notify-slack.sh +21 -32
- package/Dev/i18n/base/Common/hooks/scripts/output-filter.sh +23 -0
- package/Dev/i18n/base/Common/hooks/scripts/output-size-hint.sh +19 -0
- package/Dev/i18n/base/Common/hooks/scripts/post-edit-lint.sh +29 -53
- package/Dev/i18n/base/Common/hooks/scripts/post-tool-failure.sh +50 -0
- package/Dev/i18n/base/Common/hooks/scripts/pre-commit-check.sh +59 -63
- package/Dev/i18n/base/Common/hooks/scripts/pre-compact.sh +52 -0
- package/Dev/i18n/base/Common/hooks/scripts/protect-sensitive-files.sh +16 -0
- package/Dev/i18n/base/Common/hooks/scripts/quality-gate.sh +49 -92
- package/Dev/i18n/base/Common/hooks/scripts/session-end.sh +51 -0
- package/Dev/i18n/base/Common/hooks/scripts/session-init.sh +45 -69
- package/Dev/i18n/base/Common/hooks/templates/examples/README.md +59 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/auto-format.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/block-dangerous-commands.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/context-reinject.json +28 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/output-filter.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/pre-compact.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/protect-files.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/security-block.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/stop-hook.json +16 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/user-prompt-submit.json +16 -0
- package/Dev/i18n/base/Common/hooks/templates/hooks.default.json +72 -0
- package/Dev/i18n/base/Common/hooks/templates/{settings-hooks.json → hooks.full.json} +22 -23
- package/Dev/i18n/base/Common/hooks/templates/hooks.memory.json +62 -0
- package/Dev/i18n/base/Common/templates/AGENTS.md.template +1 -1
- package/Dev/i18n/base/Common/templates/settings.json.template +46 -0
- package/Dev/i18n/base/Flutter/rules/00-project-context.md.template +9 -9
- package/Dev/i18n/base/Laravel/checks/code-quality.md +1 -1
- package/Dev/i18n/base/Laravel/rules/00-project-context.md.template +2 -2
- package/Dev/i18n/base/Laravel/rules/06-tooling.md +10 -8
- package/Dev/i18n/base/Laravel/rules/07-testing-laravel.md +2 -0
- package/Dev/i18n/base/Laravel/rules/08-quality-tools.md +2 -2
- package/Dev/i18n/base/PHP/rules/00-project-context.md.template +2 -2
- package/Dev/i18n/base/Tauri/rules/02-architecture-tauri.md +1 -0
- package/Dev/i18n/base/Vercel/checks/all.md +1 -1
- package/Dev/i18n/base/Vercel/checks/architecture.md +1 -1
- package/Dev/i18n/base/Vercel/rules/02-architecture-vercel.md +4 -2
- package/Dev/i18n/base/Vercel/rules/06-tooling.md +7 -5
- package/Dev/i18n/base/Vercel/rules/11-security-vercel.md +1 -1
- package/Dev/i18n/base/Vite/rules/06-tooling.md +2 -1
- package/Dev/i18n/base/Vite/rules/08-quality-tools.md +1 -1
- package/Dev/i18n/base/VueJS/rules/06-tooling.md +3 -3
- package/Dev/i18n/base/VueJS/rules/07-testing-vuejs.md +9 -8
- package/Dev/i18n/base/VueJS/rules/08-quality-tools.md +1 -1
- package/Dev/i18n/base/WordPress/checklists/new-feature.md +59 -0
- package/Dev/i18n/base/WordPress/checklists/pre-commit.md +125 -0
- package/Dev/i18n/base/WordPress/checks/all.md +257 -0
- package/Dev/i18n/base/WordPress/checks/architecture.md +157 -0
- package/Dev/i18n/base/WordPress/checks/code-quality.md +158 -0
- package/Dev/i18n/base/WordPress/checks/security.md +158 -0
- package/Dev/i18n/base/WordPress/checks/testing.md +157 -0
- package/Dev/i18n/base/WordPress/commands/check.md +28 -0
- package/Dev/i18n/base/WordPress/rules/00-project-context.md.template +169 -0
- package/Dev/i18n/base/WordPress/rules/02-architecture-wordpress.md +174 -0
- package/Dev/i18n/base/WordPress/rules/03-coding-standards.md +98 -0
- package/Dev/i18n/base/WordPress/rules/06-tooling.md +146 -0
- package/Dev/i18n/base/WordPress/rules/07-testing-wordpress.md +150 -0
- package/Dev/i18n/base/WordPress/rules/08-quality-tools.md +161 -0
- package/Dev/i18n/base/WordPress/rules/11-security-wordpress.md +175 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/REFERENCE.md +214 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/SKILL.md +40 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/checklist.md +66 -0
- package/Dev/i18n/base/WordPress/templates/block.md +235 -0
- package/Dev/i18n/base/WordPress/templates/plugin-bootstrap.md +215 -0
- package/Dev/i18n/base/WordPress/templates/rest-endpoint.md +246 -0
- package/Dev/i18n/de/Angular/CLAUDE.md.template +2 -1
- package/Dev/i18n/de/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/de/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/de/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/de/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/de/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/de/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/de/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/de/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/de/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/de/Common/rules/11-security.md +12 -12
- package/Dev/i18n/de/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/de/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/de/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/de/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/de/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/de/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/de/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/de/Paperclip/README.md +1 -1
- package/Dev/i18n/de/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/de/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/de/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/de/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/de/Python/checks/security.md +2 -2
- package/Dev/i18n/de/Python/checks/testing.md +2 -2
- package/Dev/i18n/de/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/de/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/de/Python/templates/repository.md +2 -2
- package/Dev/i18n/de/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/de/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/de/React/templates/component.md +11 -9
- package/Dev/i18n/de/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/de/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/de/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/de/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/de/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/de/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/de/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/de/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/de/Symfony/adr/README.md +1 -1
- package/Dev/i18n/de/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/de/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/de/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/de/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/de/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/de/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/de/Symfony/templates/README.md +1 -1
- package/Dev/i18n/de/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/de/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/de/Vercel/checks/all.md +1 -1
- package/Dev/i18n/de/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/de/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/de/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/de/WordPress/checks/all.md +242 -0
- package/Dev/i18n/de/WordPress/commands/check.md +28 -0
- package/Dev/i18n/en/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/en/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/en/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/en/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/en/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/en/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/en/Common/hooks/HOOKS-QUICKSTART.md +31 -43
- package/Dev/i18n/en/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/en/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/en/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/en/Common/rules/11-security.md +12 -12
- package/Dev/i18n/en/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/en/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/en/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/en/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/en/Laravel/CLAUDE.md.template +1 -1
- package/Dev/i18n/en/Laravel/agents/laravel-reviewer.md +3 -3
- package/Dev/i18n/en/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/en/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/en/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/en/Paperclip/README.md +1 -1
- package/Dev/i18n/en/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/en/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/en/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/en/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/en/Python/checks/security.md +2 -2
- package/Dev/i18n/en/Python/checks/testing.md +2 -2
- package/Dev/i18n/en/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/en/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/en/Python/templates/repository.md +2 -2
- package/Dev/i18n/en/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/en/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/en/React/templates/component.md +11 -9
- package/Dev/i18n/en/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/en/ReactNative/rules/02-architecture.md +4 -4
- package/Dev/i18n/en/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/en/ReactNative/rules/07-testing-reactnative.md +1 -1
- package/Dev/i18n/en/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/en/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/en/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/en/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/en/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/en/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/en/Symfony/adr/README.md +1 -1
- package/Dev/i18n/en/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/en/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/en/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/en/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/en/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/en/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/en/Symfony/templates/README.md +1 -1
- package/Dev/i18n/en/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/en/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/en/Vercel/checks/all.md +1 -1
- package/Dev/i18n/en/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/en/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/en/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/en/WordPress/checks/all.md +241 -0
- package/Dev/i18n/en/WordPress/commands/check.md +28 -0
- package/Dev/i18n/es/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/es/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/es/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/es/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/es/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/es/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/es/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/es/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/es/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/es/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/es/Common/rules/11-security.md +12 -12
- package/Dev/i18n/es/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/es/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/es/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/es/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/es/Laravel/agents/laravel-reviewer.md +2 -2
- package/Dev/i18n/es/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/es/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/es/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/es/Paperclip/README.md +1 -1
- package/Dev/i18n/es/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/es/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/es/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/es/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/es/Python/checks/security.md +2 -2
- package/Dev/i18n/es/Python/checks/testing.md +2 -2
- package/Dev/i18n/es/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/es/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/es/Python/templates/repository.md +2 -2
- package/Dev/i18n/es/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/es/React/templates/component.md +11 -9
- package/Dev/i18n/es/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/es/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/es/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/es/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/es/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/es/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/es/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/es/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/es/Symfony/adr/README.md +1 -1
- package/Dev/i18n/es/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/es/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/es/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/es/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/es/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/es/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/es/Symfony/templates/README.md +1 -1
- package/Dev/i18n/es/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/es/Vercel/agents/vercel-reviewer.md +2 -1
- package/Dev/i18n/es/Vercel/checks/all.md +1 -1
- package/Dev/i18n/es/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/es/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/es/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/es/WordPress/checks/all.md +241 -0
- package/Dev/i18n/es/WordPress/commands/check.md +28 -0
- package/Dev/i18n/fr/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/fr/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/fr/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/fr/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/fr/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/fr/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/fr/Common/hooks/HOOKS-QUICKSTART.md +32 -44
- package/Dev/i18n/fr/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/fr/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/fr/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/fr/Common/rules/11-security.md +12 -12
- package/Dev/i18n/fr/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/fr/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/fr/Flutter/rules/02-architecture.md +4 -4
- package/Dev/i18n/fr/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/fr/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/fr/Laravel/CLAUDE.md.template +1 -1
- package/Dev/i18n/fr/Laravel/agents/laravel-reviewer.md +3 -3
- package/Dev/i18n/fr/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/fr/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/fr/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/fr/Paperclip/README.md +1 -1
- package/Dev/i18n/fr/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/fr/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/fr/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/fr/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/fr/Python/checks/security.md +2 -2
- package/Dev/i18n/fr/Python/checks/testing.md +2 -2
- package/Dev/i18n/fr/Python/commands/dependency-audit.md +1 -2
- package/Dev/i18n/fr/Python/commands/generate-endpoint.md +7 -11
- package/Dev/i18n/fr/Python/commands/generate-model.md +6 -6
- package/Dev/i18n/fr/Python/rules/02-architecture.md +9 -24
- package/Dev/i18n/fr/Python/rules/03-coding-standards.md +19 -7
- package/Dev/i18n/fr/Python/templates/repository.md +9 -10
- package/Dev/i18n/fr/React/commands/generate-component.md +52 -51
- package/Dev/i18n/fr/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/fr/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/fr/React/templates/component.md +11 -9
- package/Dev/i18n/fr/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/fr/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/fr/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/fr/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/fr/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/fr/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/fr/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/fr/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/fr/Symfony/adr/README.md +1 -1
- package/Dev/i18n/fr/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/fr/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/fr/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/fr/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/fr/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/fr/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/fr/Symfony/templates/README.md +1 -1
- package/Dev/i18n/fr/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/fr/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/fr/Vercel/checks/all.md +1 -1
- package/Dev/i18n/fr/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/fr/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/fr/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/fr/WordPress/checks/all.md +242 -0
- package/Dev/i18n/fr/WordPress/commands/check.md +28 -0
- package/Dev/i18n/pt/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/pt/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/pt/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/pt/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/pt/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/pt/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/pt/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/pt/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/pt/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/pt/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/pt/Common/rules/11-security.md +12 -12
- package/Dev/i18n/pt/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/pt/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/pt/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/pt/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/pt/Laravel/agents/laravel-reviewer.md +2 -2
- package/Dev/i18n/pt/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/pt/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/pt/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/pt/Paperclip/README.md +1 -1
- package/Dev/i18n/pt/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/pt/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/pt/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/pt/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/pt/Python/checks/security.md +2 -2
- package/Dev/i18n/pt/Python/checks/testing.md +2 -2
- package/Dev/i18n/pt/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/pt/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/pt/Python/templates/repository.md +2 -2
- package/Dev/i18n/pt/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/pt/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/pt/React/templates/component.md +12 -10
- package/Dev/i18n/pt/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/pt/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/pt/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/pt/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/pt/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/pt/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/pt/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/pt/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/pt/Symfony/adr/README.md +1 -1
- package/Dev/i18n/pt/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/pt/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/pt/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/pt/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/pt/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/pt/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/pt/Symfony/templates/README.md +1 -1
- package/Dev/i18n/pt/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/pt/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/pt/Vercel/checks/all.md +1 -1
- package/Dev/i18n/pt/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/pt/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/pt/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/pt/WordPress/checks/all.md +241 -0
- package/Dev/i18n/pt/WordPress/commands/check.md +28 -0
- package/Dev/scripts/check-config.sh +1 -1
- package/Dev/scripts/install-common-rules.sh +65 -0
- package/Dev/scripts/install-from-config.sh +3 -0
- package/Dev/scripts/install-paperclip-rules.sh +1 -1
- package/Dev/scripts/install-wordpress-rules.sh +153 -0
- package/Dev/scripts/lib/merge-hooks.mjs +110 -0
- package/Dev/scripts/memory-lifecycle/README.md +10 -9
- package/Dev/scripts/memory-lifecycle/_db.sh +1 -1
- package/Dev/scripts/memory-lifecycle/post-tool.sh +1 -1
- package/Dev/scripts/memory-lifecycle/pre-compact.sh +5 -5
- package/Dev/scripts/memory-lifecycle/prompt-submit.sh +1 -1
- package/Dev/scripts/memory-lifecycle/session-end.sh +1 -1
- package/Dev/scripts/memory-lifecycle/session-start.sh +5 -4
- package/Dev/stack-profiles/wordpress/permissions.txt +10 -0
- package/Dev/stack-profiles/wordpress/quality.md +4 -0
- package/Dev/stack-profiles/wordpress/stack.txt +2 -0
- package/Infra/i18n/de/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/de/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/de/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/de/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/de/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/de/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/de/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/de/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/de/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/de/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/de/Hcloud/agents/hcloud-architect.md +16 -14
- package/Infra/i18n/de/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/de/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/de/Hcloud/agents/hcloud-security.md +1 -1
- package/Infra/i18n/de/Hcloud/commands/architecture.md +2 -2
- package/Infra/i18n/de/Hcloud/commands/debug.md +3 -3
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/de/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/de/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/de/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/de/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/de/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/en/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/en/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/en/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/en/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/en/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/en/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/en/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/en/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/en/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/en/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/en/Hcloud/agents/hcloud-architect.md +10 -8
- package/Infra/i18n/en/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/en/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/en/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/en/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/en/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/en/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/en/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/es/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/es/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/es/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/es/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/es/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/es/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/es/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/es/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/es/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/es/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/es/Hcloud/agents/hcloud-architect.md +11 -9
- package/Infra/i18n/es/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/es/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/es/Hcloud/commands/debug.md +1 -1
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/es/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/es/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/es/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/es/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/es/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/fr/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/fr/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/fr/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/fr/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/fr/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/fr/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/fr/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/fr/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/fr/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/fr/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/fr/Hcloud/agents/hcloud-architect.md +7 -5
- package/Infra/i18n/fr/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/fr/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/fr/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/fr/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/pt/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/pt/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/pt/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/pt/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/pt/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/pt/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/pt/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/pt/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/pt/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/pt/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/pt/Hcloud/agents/hcloud-architect.md +9 -7
- package/Infra/i18n/pt/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/pt/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/pt/Hcloud/commands/architecture.md +1 -1
- package/Infra/i18n/pt/Hcloud/commands/debug.md +1 -1
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/pt/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/pt/PgBouncer/commands/deploy-setup.md +1 -1
- package/README.md +27 -15
- package/Tools/PluginExport/export-plugin.sh +15 -17
- package/Tools/Ralph/README.md +17 -7
- package/Tools/Ralph/hooks/lib/ralph-common.sh +101 -0
- package/Tools/Ralph/hooks/pre-tool-context.sh +28 -0
- package/Tools/Ralph/hooks/session-restore.sh +94 -0
- package/Tools/Ralph/hooks/stop-dod-gate.sh +60 -0
- package/Tools/Ralph/lib/hooks-generator.sh +109 -93
- package/bundles/cursor/.cursorrules +11 -10
- package/bundles/windsurf/.windsurfrules +11 -10
- package/cli/index.js +1 -0
- package/cli/lib/doctor.js +4 -3
- package/cli/lib/help.js +1 -0
- package/cli/lib/installer.js +1 -1
- package/cli/lib/parse-args.js +12 -0
- package/cli/lib/tech-registry.js +15 -5
- package/package.json +2 -1
- package/Dev/i18n/de/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/de/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/de/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/de/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/en/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/en/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/en/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/en/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/es/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/es/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/es/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/es/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/fr/Common/hooks/scripts/post-tool-failure.sh +0 -88
- package/Dev/i18n/fr/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/fr/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/fr/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/pt/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/pt/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/pt/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/pt/Common/templates/settings.json.template +0 -128
- package/Tools/Ralph/.ralph/hooks/pre-tool-context.sh +0 -100
- package/Tools/Ralph/.ralph/hooks/session-restore.sh +0 -118
- package/Tools/Ralph/.ralph/hooks/status-injector.sh +0 -147
- package/Tools/Ralph/.ralph/hooks/stop-dod-gate.sh +0 -137
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# Ralph Wiggum - PreToolUse Hook: Context Injector
|
|
4
|
-
# Injects relevant context before specific tool uses
|
|
5
|
-
#
|
|
6
|
-
# Exit codes:
|
|
7
|
-
# 0 - Continue (with optional additionalContext)
|
|
8
|
-
# 1 - Error
|
|
9
|
-
# 2 - Block tool use
|
|
10
|
-
# =============================================================================
|
|
11
|
-
|
|
12
|
-
set -euo pipefail
|
|
13
|
-
|
|
14
|
-
# Read input from stdin (Claude hook format)
|
|
15
|
-
INPUT=$(cat)
|
|
16
|
-
|
|
17
|
-
# Parse input JSON
|
|
18
|
-
CWD=$(echo "$INPUT" | jq -r '.cwd // "."')
|
|
19
|
-
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name // ""')
|
|
20
|
-
TOOL_INPUT=$(echo "$INPUT" | jq -r '.tool_input // "{}"')
|
|
21
|
-
|
|
22
|
-
# Change to project directory
|
|
23
|
-
cd "$CWD" 2>/dev/null || cd "."
|
|
24
|
-
|
|
25
|
-
# =============================================================================
|
|
26
|
-
# Configuration
|
|
27
|
-
# =============================================================================
|
|
28
|
-
|
|
29
|
-
RALPH_SESSION_BASE="${RALPH_SESSION_BASE:-.ralph}"
|
|
30
|
-
|
|
31
|
-
# =============================================================================
|
|
32
|
-
# Tool-Specific Context
|
|
33
|
-
# =============================================================================
|
|
34
|
-
|
|
35
|
-
get_tool_context() {
|
|
36
|
-
local tool="$1"
|
|
37
|
-
local context=""
|
|
38
|
-
|
|
39
|
-
case "$tool" in
|
|
40
|
-
# Bash tool - remind about docker requirement
|
|
41
|
-
Bash)
|
|
42
|
-
# Check CLAUDE.md for docker requirement
|
|
43
|
-
if [[ -f ".claude/CLAUDE.md" ]]; then
|
|
44
|
-
if grep -q "docker" ".claude/CLAUDE.md" 2>/dev/null; then
|
|
45
|
-
context="Reminder: Use docker for commands as per project guidelines"
|
|
46
|
-
fi
|
|
47
|
-
fi
|
|
48
|
-
;;
|
|
49
|
-
|
|
50
|
-
# Write/Edit tools - check for protected files
|
|
51
|
-
Write|Edit)
|
|
52
|
-
local file_path
|
|
53
|
-
file_path=$(echo "$TOOL_INPUT" | jq -r '.file_path // .path // ""')
|
|
54
|
-
if [[ -n "$file_path" ]]; then
|
|
55
|
-
# Check if file is in protected list
|
|
56
|
-
if [[ "$file_path" == *".env"* ]] || [[ "$file_path" == *"secrets"* ]]; then
|
|
57
|
-
context="Warning: Modifying sensitive file. Ensure no secrets are exposed."
|
|
58
|
-
fi
|
|
59
|
-
fi
|
|
60
|
-
;;
|
|
61
|
-
|
|
62
|
-
# Agent tool (named Task before Claude Code 2.1.63) - remind about sprint context
|
|
63
|
-
Agent|Task)
|
|
64
|
-
local progress_file="$RALPH_SESSION_BASE/sprint-progress.md"
|
|
65
|
-
if [[ -f "$progress_file" ]]; then
|
|
66
|
-
local current_task
|
|
67
|
-
current_task=$(grep -oP '(?<=## Current Task: ).*' "$progress_file" 2>/dev/null | head -1)
|
|
68
|
-
if [[ -n "$current_task" ]]; then
|
|
69
|
-
context="Current sprint task: $current_task"
|
|
70
|
-
fi
|
|
71
|
-
fi
|
|
72
|
-
;;
|
|
73
|
-
|
|
74
|
-
*)
|
|
75
|
-
# No specific context for other tools
|
|
76
|
-
;;
|
|
77
|
-
esac
|
|
78
|
-
|
|
79
|
-
echo "$context"
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
# =============================================================================
|
|
83
|
-
# Main Logic
|
|
84
|
-
# =============================================================================
|
|
85
|
-
|
|
86
|
-
# Get tool-specific context
|
|
87
|
-
CONTEXT=$(get_tool_context "$TOOL_NAME")
|
|
88
|
-
|
|
89
|
-
# Output JSON response
|
|
90
|
-
if [[ -n "$CONTEXT" ]]; then
|
|
91
|
-
cat <<EOF
|
|
92
|
-
{
|
|
93
|
-
"additionalContext": $(echo "$CONTEXT" | jq -Rs .)
|
|
94
|
-
}
|
|
95
|
-
EOF
|
|
96
|
-
else
|
|
97
|
-
echo '{}'
|
|
98
|
-
fi
|
|
99
|
-
|
|
100
|
-
exit 0
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# Ralph Wiggum - SessionStart Hook: Session Restore
|
|
4
|
-
# Injects Ralph context when a Claude session starts
|
|
5
|
-
#
|
|
6
|
-
# Exit codes:
|
|
7
|
-
# 0 - Success (with additionalContext)
|
|
8
|
-
# 1 - Error
|
|
9
|
-
# =============================================================================
|
|
10
|
-
|
|
11
|
-
set -euo pipefail
|
|
12
|
-
|
|
13
|
-
# Read input from stdin (Claude hook format)
|
|
14
|
-
INPUT=$(cat)
|
|
15
|
-
|
|
16
|
-
# Parse input JSON
|
|
17
|
-
CWD=$(echo "$INPUT" | jq -r '.cwd // "."')
|
|
18
|
-
SESSION_ID=$(echo "$INPUT" | jq -r '.session_id // ""')
|
|
19
|
-
|
|
20
|
-
# Change to project directory
|
|
21
|
-
cd "$CWD" 2>/dev/null || cd "."
|
|
22
|
-
|
|
23
|
-
# =============================================================================
|
|
24
|
-
# Configuration
|
|
25
|
-
# =============================================================================
|
|
26
|
-
|
|
27
|
-
RALPH_SESSION_BASE="${RALPH_SESSION_BASE:-.ralph}"
|
|
28
|
-
HOOK_CONTEXT_FILE="${RALPH_HOOK_CONTEXT:-}"
|
|
29
|
-
|
|
30
|
-
# =============================================================================
|
|
31
|
-
# Build Context
|
|
32
|
-
# =============================================================================
|
|
33
|
-
|
|
34
|
-
build_session_context() {
|
|
35
|
-
local context=""
|
|
36
|
-
|
|
37
|
-
# Check for Ralph session
|
|
38
|
-
if [[ -f "$HOOK_CONTEXT_FILE" ]]; then
|
|
39
|
-
local phase
|
|
40
|
-
phase=$(jq -r '.phase // "UNKNOWN"' "$HOOK_CONTEXT_FILE" 2>/dev/null)
|
|
41
|
-
local task
|
|
42
|
-
task=$(jq -r '.current_task // ""' "$HOOK_CONTEXT_FILE" 2>/dev/null)
|
|
43
|
-
local ralph_session
|
|
44
|
-
ralph_session=$(jq -r '.session_id // ""' "$HOOK_CONTEXT_FILE" 2>/dev/null)
|
|
45
|
-
|
|
46
|
-
context="Ralph Wiggum Session Active
|
|
47
|
-
- Ralph Session: $ralph_session
|
|
48
|
-
- Phase: $phase
|
|
49
|
-
- Current Task: ${task:-None}"
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
# Check for sprint progress file
|
|
53
|
-
local progress_file="$RALPH_SESSION_BASE/sprint-progress.md"
|
|
54
|
-
if [[ -f "$progress_file" ]]; then
|
|
55
|
-
# Extract key info from progress file
|
|
56
|
-
local completed_count
|
|
57
|
-
completed_count=$(grep -c '^\s*- \[x\]' "$progress_file" 2>/dev/null || echo "0")
|
|
58
|
-
local pending_count
|
|
59
|
-
pending_count=$(grep -c '^\s*- \[ \]' "$progress_file" 2>/dev/null || echo "0")
|
|
60
|
-
|
|
61
|
-
if [[ -n "$context" ]]; then
|
|
62
|
-
context="$context
|
|
63
|
-
- Completed Tasks: $completed_count
|
|
64
|
-
- Pending Tasks: $pending_count"
|
|
65
|
-
else
|
|
66
|
-
context="Sprint Progress:
|
|
67
|
-
- Completed Tasks: $completed_count
|
|
68
|
-
- Pending Tasks: $pending_count"
|
|
69
|
-
fi
|
|
70
|
-
|
|
71
|
-
# Add current phase from progress file
|
|
72
|
-
local current_phase
|
|
73
|
-
current_phase=$(grep -oP '(?<=## Current Phase: ).*' "$progress_file" 2>/dev/null | head -1)
|
|
74
|
-
if [[ -n "$current_phase" ]]; then
|
|
75
|
-
context="$context
|
|
76
|
-
- Sprint Phase: $current_phase"
|
|
77
|
-
fi
|
|
78
|
-
fi
|
|
79
|
-
|
|
80
|
-
# Check for git status
|
|
81
|
-
if command -v git &>/dev/null && git rev-parse --git-dir &>/dev/null 2>&1; then
|
|
82
|
-
local branch
|
|
83
|
-
branch=$(git branch --show-current 2>/dev/null)
|
|
84
|
-
local changes
|
|
85
|
-
changes=$(git status --porcelain 2>/dev/null | wc -l)
|
|
86
|
-
|
|
87
|
-
if [[ -n "$context" ]]; then
|
|
88
|
-
context="$context
|
|
89
|
-
|
|
90
|
-
Git Status:
|
|
91
|
-
- Branch: ${branch:-detached}
|
|
92
|
-
- Uncommitted changes: $changes"
|
|
93
|
-
fi
|
|
94
|
-
fi
|
|
95
|
-
|
|
96
|
-
# If no context was built, provide minimal info
|
|
97
|
-
if [[ -z "$context" ]]; then
|
|
98
|
-
context="Ralph Wiggum monitoring active"
|
|
99
|
-
fi
|
|
100
|
-
|
|
101
|
-
echo "$context"
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
# =============================================================================
|
|
105
|
-
# Main Logic
|
|
106
|
-
# =============================================================================
|
|
107
|
-
|
|
108
|
-
# Build context
|
|
109
|
-
CONTEXT=$(build_session_context)
|
|
110
|
-
|
|
111
|
-
# Output JSON response
|
|
112
|
-
cat <<EOF
|
|
113
|
-
{
|
|
114
|
-
"additionalContext": $(echo "$CONTEXT" | jq -Rs .)
|
|
115
|
-
}
|
|
116
|
-
EOF
|
|
117
|
-
|
|
118
|
-
exit 0
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# Ralph Wiggum - PreToolUse Hook: Status Injector
|
|
4
|
-
# Injects current DoD status before first tool use (once: true)
|
|
5
|
-
#
|
|
6
|
-
# Exit codes:
|
|
7
|
-
# 0 - Continue (with additionalContext)
|
|
8
|
-
# 1 - Error
|
|
9
|
-
# =============================================================================
|
|
10
|
-
|
|
11
|
-
set -euo pipefail
|
|
12
|
-
|
|
13
|
-
# Read input from stdin (Claude hook format)
|
|
14
|
-
INPUT=$(cat)
|
|
15
|
-
|
|
16
|
-
# Parse input JSON
|
|
17
|
-
CWD=$(echo "$INPUT" | jq -r '.cwd // "."')
|
|
18
|
-
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name // ""')
|
|
19
|
-
|
|
20
|
-
# Change to project directory
|
|
21
|
-
cd "$CWD" 2>/dev/null || cd "."
|
|
22
|
-
|
|
23
|
-
# =============================================================================
|
|
24
|
-
# Configuration
|
|
25
|
-
# =============================================================================
|
|
26
|
-
|
|
27
|
-
CONFIG_FILE=""
|
|
28
|
-
for path in "ralph.yml" ".claude/ralph.yml"; do
|
|
29
|
-
if [[ -f "$path" ]]; then
|
|
30
|
-
CONFIG_FILE="$path"
|
|
31
|
-
break
|
|
32
|
-
fi
|
|
33
|
-
done
|
|
34
|
-
|
|
35
|
-
RALPH_SESSION_BASE="${RALPH_SESSION_BASE:-.ralph}"
|
|
36
|
-
|
|
37
|
-
# =============================================================================
|
|
38
|
-
# Get DoD Status
|
|
39
|
-
# =============================================================================
|
|
40
|
-
|
|
41
|
-
get_dod_status() {
|
|
42
|
-
local status=""
|
|
43
|
-
|
|
44
|
-
# If no config, basic status
|
|
45
|
-
if [[ -z "$CONFIG_FILE" || ! -f "$CONFIG_FILE" ]]; then
|
|
46
|
-
echo "DoD: Using simple completion marker (<promise>COMPLETE</promise>)"
|
|
47
|
-
return
|
|
48
|
-
fi
|
|
49
|
-
|
|
50
|
-
# Check if yq is available
|
|
51
|
-
if ! command -v yq &>/dev/null; then
|
|
52
|
-
echo "DoD: Configuration present but yq not available for parsing"
|
|
53
|
-
return
|
|
54
|
-
fi
|
|
55
|
-
|
|
56
|
-
# Get DoD checklist
|
|
57
|
-
local checklist
|
|
58
|
-
checklist=$(yq e '.definition_of_done.checklist // []' "$CONFIG_FILE" 2>/dev/null)
|
|
59
|
-
|
|
60
|
-
if [[ "$checklist" == "[]" || -z "$checklist" ]]; then
|
|
61
|
-
local marker
|
|
62
|
-
marker=$(yq e '.definition_of_done.completion_marker // "<promise>COMPLETE</promise>"' "$CONFIG_FILE" 2>/dev/null)
|
|
63
|
-
echo "DoD: Using completion marker: $marker"
|
|
64
|
-
return
|
|
65
|
-
fi
|
|
66
|
-
|
|
67
|
-
# Check each item
|
|
68
|
-
status="Definition of Done Status:"
|
|
69
|
-
local count
|
|
70
|
-
count=$(echo "$checklist" | yq e 'length' -)
|
|
71
|
-
|
|
72
|
-
local passed=0
|
|
73
|
-
local failed=0
|
|
74
|
-
local total=0
|
|
75
|
-
|
|
76
|
-
for ((i=0; i<count; i++)); do
|
|
77
|
-
local item
|
|
78
|
-
item=$(yq e ".definition_of_done.checklist[$i]" "$CONFIG_FILE")
|
|
79
|
-
|
|
80
|
-
local id
|
|
81
|
-
id=$(echo "$item" | yq e '.id' -)
|
|
82
|
-
local name
|
|
83
|
-
name=$(echo "$item" | yq e '.name' -)
|
|
84
|
-
local type
|
|
85
|
-
type=$(echo "$item" | yq e '.type' -)
|
|
86
|
-
local required
|
|
87
|
-
required=$(echo "$item" | yq e '.required // true' -)
|
|
88
|
-
|
|
89
|
-
if [[ "$required" != "true" ]]; then
|
|
90
|
-
continue
|
|
91
|
-
fi
|
|
92
|
-
|
|
93
|
-
total=$((total + 1))
|
|
94
|
-
|
|
95
|
-
local check_passed=false
|
|
96
|
-
case "$type" in
|
|
97
|
-
command)
|
|
98
|
-
local cmd
|
|
99
|
-
cmd=$(echo "$item" | yq e '.command' -)
|
|
100
|
-
if [[ "$cmd" =~ ^[a-zA-Z0-9_./" -]+$ ]] && bash -c "$cmd" >/dev/null 2>&1; then
|
|
101
|
-
check_passed=true
|
|
102
|
-
fi
|
|
103
|
-
;;
|
|
104
|
-
*)
|
|
105
|
-
# Can't check other types here
|
|
106
|
-
check_passed=true
|
|
107
|
-
;;
|
|
108
|
-
esac
|
|
109
|
-
|
|
110
|
-
if [[ "$check_passed" == "true" ]]; then
|
|
111
|
-
passed=$((passed + 1))
|
|
112
|
-
status="$status
|
|
113
|
-
[PASS] $name"
|
|
114
|
-
else
|
|
115
|
-
failed=$((failed + 1))
|
|
116
|
-
status="$status
|
|
117
|
-
[FAIL] $name"
|
|
118
|
-
fi
|
|
119
|
-
done
|
|
120
|
-
|
|
121
|
-
status="$status
|
|
122
|
-
|
|
123
|
-
Summary: $passed/$total required checks passing"
|
|
124
|
-
|
|
125
|
-
if [[ $failed -gt 0 ]]; then
|
|
126
|
-
status="$status
|
|
127
|
-
IMPORTANT: Fix failing checks before completing the task."
|
|
128
|
-
fi
|
|
129
|
-
|
|
130
|
-
echo "$status"
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
# =============================================================================
|
|
134
|
-
# Main Logic
|
|
135
|
-
# =============================================================================
|
|
136
|
-
|
|
137
|
-
# Get DoD status
|
|
138
|
-
DOD_STATUS=$(get_dod_status)
|
|
139
|
-
|
|
140
|
-
# Output JSON response
|
|
141
|
-
cat <<EOF
|
|
142
|
-
{
|
|
143
|
-
"additionalContext": $(echo "$DOD_STATUS" | jq -Rs .)
|
|
144
|
-
}
|
|
145
|
-
EOF
|
|
146
|
-
|
|
147
|
-
exit 0
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# Ralph Wiggum - Stop Hook: DoD Gate
|
|
4
|
-
# Blocks Claude from stopping if DoD is not satisfied
|
|
5
|
-
#
|
|
6
|
-
# Exit codes:
|
|
7
|
-
# 0 - Allow stop (DoD passed)
|
|
8
|
-
# 2 - Block stop (DoD not satisfied)
|
|
9
|
-
# =============================================================================
|
|
10
|
-
|
|
11
|
-
set -euo pipefail
|
|
12
|
-
|
|
13
|
-
# Read input from stdin (Claude hook format)
|
|
14
|
-
INPUT=$(cat)
|
|
15
|
-
|
|
16
|
-
# Parse input JSON
|
|
17
|
-
CWD=$(echo "$INPUT" | jq -r '.cwd // "."')
|
|
18
|
-
STOP_REASON=$(echo "$INPUT" | jq -r '.stop_reason // "unknown"')
|
|
19
|
-
|
|
20
|
-
# Change to project directory
|
|
21
|
-
cd "$CWD" 2>/dev/null || cd "."
|
|
22
|
-
|
|
23
|
-
# =============================================================================
|
|
24
|
-
# Configuration
|
|
25
|
-
# =============================================================================
|
|
26
|
-
|
|
27
|
-
# Find ralph.yml config
|
|
28
|
-
CONFIG_FILE=""
|
|
29
|
-
for path in "ralph.yml" ".claude/ralph.yml"; do
|
|
30
|
-
if [[ -f "$path" ]]; then
|
|
31
|
-
CONFIG_FILE="$path"
|
|
32
|
-
break
|
|
33
|
-
fi
|
|
34
|
-
done
|
|
35
|
-
|
|
36
|
-
# Find Ralph session
|
|
37
|
-
RALPH_SESSION_BASE="${RALPH_SESSION_BASE:-.ralph}"
|
|
38
|
-
HOOK_CONTEXT_FILE="${RALPH_HOOK_CONTEXT:-}"
|
|
39
|
-
|
|
40
|
-
# =============================================================================
|
|
41
|
-
# DoD Validation
|
|
42
|
-
# =============================================================================
|
|
43
|
-
|
|
44
|
-
validate_dod_for_stop() {
|
|
45
|
-
# If no config, use simple completion marker check
|
|
46
|
-
if [[ -z "$CONFIG_FILE" || ! -f "$CONFIG_FILE" ]]; then
|
|
47
|
-
# No DoD configured, allow stop
|
|
48
|
-
return 0
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
# Check if yq is available
|
|
52
|
-
if ! command -v yq &>/dev/null; then
|
|
53
|
-
# Can't validate without yq, allow stop
|
|
54
|
-
return 0
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
# Get DoD checklist
|
|
58
|
-
local checklist
|
|
59
|
-
checklist=$(yq e '.definition_of_done.checklist // []' "$CONFIG_FILE" 2>/dev/null)
|
|
60
|
-
|
|
61
|
-
if [[ "$checklist" == "[]" || -z "$checklist" ]]; then
|
|
62
|
-
# No checklist, allow stop
|
|
63
|
-
return 0
|
|
64
|
-
fi
|
|
65
|
-
|
|
66
|
-
# Get count of required items
|
|
67
|
-
local count
|
|
68
|
-
count=$(echo "$checklist" | yq e 'length' -)
|
|
69
|
-
|
|
70
|
-
local all_passed=true
|
|
71
|
-
|
|
72
|
-
for ((i=0; i<count; i++)); do
|
|
73
|
-
local item
|
|
74
|
-
item=$(yq e ".definition_of_done.checklist[$i]" "$CONFIG_FILE")
|
|
75
|
-
|
|
76
|
-
local required
|
|
77
|
-
required=$(echo "$item" | yq e '.required // true' -)
|
|
78
|
-
|
|
79
|
-
if [[ "$required" != "true" ]]; then
|
|
80
|
-
continue
|
|
81
|
-
fi
|
|
82
|
-
|
|
83
|
-
local type
|
|
84
|
-
type=$(echo "$item" | yq e '.type' -)
|
|
85
|
-
|
|
86
|
-
case "$type" in
|
|
87
|
-
command)
|
|
88
|
-
local cmd
|
|
89
|
-
cmd=$(echo "$item" | yq e '.command' -)
|
|
90
|
-
if [[ ! "$cmd" =~ ^[a-zA-Z0-9_./" -]+$ ]]; then
|
|
91
|
-
all_passed=false
|
|
92
|
-
break
|
|
93
|
-
fi
|
|
94
|
-
if ! bash -c "$cmd" >/dev/null 2>&1; then
|
|
95
|
-
all_passed=false
|
|
96
|
-
break
|
|
97
|
-
fi
|
|
98
|
-
;;
|
|
99
|
-
# Other types don't block stop
|
|
100
|
-
esac
|
|
101
|
-
done
|
|
102
|
-
|
|
103
|
-
if [[ "$all_passed" == "true" ]]; then
|
|
104
|
-
return 0
|
|
105
|
-
else
|
|
106
|
-
return 1
|
|
107
|
-
fi
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
# =============================================================================
|
|
111
|
-
# Main Logic
|
|
112
|
-
# =============================================================================
|
|
113
|
-
|
|
114
|
-
# Skip DoD check for certain stop reasons
|
|
115
|
-
case "$STOP_REASON" in
|
|
116
|
-
user_interrupt|timeout|error)
|
|
117
|
-
# Allow these stops without DoD check
|
|
118
|
-
echo '{"message": "Stop allowed (reason: '"$STOP_REASON"')"}'
|
|
119
|
-
exit 0
|
|
120
|
-
;;
|
|
121
|
-
esac
|
|
122
|
-
|
|
123
|
-
# Validate DoD
|
|
124
|
-
if validate_dod_for_stop; then
|
|
125
|
-
# DoD passed, allow stop
|
|
126
|
-
echo '{"message": "DoD validation passed, stop allowed"}'
|
|
127
|
-
exit 0
|
|
128
|
-
else
|
|
129
|
-
# DoD not satisfied, block stop
|
|
130
|
-
cat <<EOF
|
|
131
|
-
{
|
|
132
|
-
"message": "DoD not satisfied - please complete all required checks before stopping",
|
|
133
|
-
"additionalContext": "IMPORTANT: Definition of Done requirements are not met. Please run the required tests/checks and fix any issues before completing the task."
|
|
134
|
-
}
|
|
135
|
-
EOF
|
|
136
|
-
exit 2
|
|
137
|
-
fi
|