fix: rename "Hooks" to "Policies" in UI and CLI output #6
Annotations
17 errors and 8 warnings
|
test (log-debug, debug)
Final attempt failed. Child_process exited with error code 1
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/components/theme-toggle.test.tsx > ThemeToggle > toggles between light and dark themes:
__tests__/components/theme-toggle.test.tsx#L60
TestingLibraryElementError: Unable to find a label with the text of: Switch to dark mode
Ignored nodes: comments, script, style
<body>
<div>
<button
aria-label="Switch to light mode"
class="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none hover:bg-muted hover:text-muted-foreground h-10 w-10 relative"
>
<svg
aria-hidden="true"
class="lucide lucide-sun h-[1.2rem] w-[1.2rem] transition-all rotate-90 scale-0"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="4"
/>
<path
d="M12 2v2"
/>
<path
d="M12 20v2"
/>
<path
d="m4.93 4.93 1.41 1.41"
/>
<path
d="m17.66 17.66 1.41 1.41"
/>
<path
d="M2 12h2"
/>
<path
d="M20 12h2"
/>
<path
d="m6.34 17.66-1.41 1.41"
/>
<path
d="m19.07 4.93-1.41 1.41"
/>
</svg>
<svg
aria-hidden="true"
class="lucide lucide-moon absolute h-[1.2rem] w-[1.2rem] transition-all rotate-0 scale-100"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
/>
</svg>
</button>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ __tests__/components/theme-toggle.test.tsx:60:19
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
test (telemetry-disabled, 1)
Final attempt failed. Child_process exited with error code 1
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
test (default)
Final attempt failed. Child_process exited with error code 1
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
test (hook-log-file, 1)
Final attempt failed. Child_process exited with error code 1
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
__tests__/hooks/manager.test.ts > hooks/manager > listHooks > compact output hints to activate when config exists but not installed:
__tests__/hooks/manager.test.ts#L759
AssertionError: expected '\nFailproof AI Policies — not install…' to contain 'Hooks not installed'
- Expected
+ Received
- Hooks not installed
+
+ Failproof AI Policies — not installed
+
+ Status Name Description
+ ────── ──────────────────────────── ──────────────────────────────────────
+ ✓ sanitize-jwt Stop Claude from reading JWTs in tool responses
+ sanitize-api-keys Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses
+ sanitize-connection-strings Stop Claude from reading database connection strings with embedded credentials in tool responses
+ sanitize-private-key-content Stop Claude from reading PEM private key content in tool responses
+ sanitize-bearer-tokens Stop Claude from reading Authorization *** in tool responses
+ protect-env-vars Prevent commands that read environment variables
+ block-env-files Block reading/writing .env files
+ block-read-outside-cwd Block file reads outside the session working directory
+ ✓ block-sudo Block sudo commands
+ block-curl-pipe-sh Block piping downloads to shell
+ block-rm-rf Prevent catastrophic deletions
+ block-failproofai-commands Block failproofai CLI commands and uninstallation
+ block-secrets-write Block writing secret key files
+ block-push-master Block pushing to main/master
+ block-force-push Prevent force-pushing to any branch
+ block-work-on-main Block git commits and merges on main/master branch
+ warn-git-amend Warns before amending git commits, which rewrites history
+ warn-git-stash-drop Warns before permanently deleting stashed changes
+ warn-all-files-staged Warns before staging all working tree files with git add -A / . / --all
+ warn-destructive-sql Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients
+ warn-schema-alteration Warns before SQL schema changes (ALTER TABLE with column or rename operations)
+ warn-package-publish Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)
+ warn-global-package-install Warns before installing packages globally (npm -g, cargo install, etc.)
+ warn-large-file-write Warn before writing files larger than 1MB (configurable via thresholdKb param)
+ warn-background-process Warns before starting detached or background processes
+ warn-repeated-tool-calls Warn when the same tool is called 3+ times with identical parameters
+
+ Policies not installed. Run `failproofai --install-policies` to activate.
+ Config: ~/.failproofai/hooks-config.json
+
❯ __tests__/hooks/manager.test.ts:759:22
|
|
test (log-debug, debug)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
test (log-debug, debug)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
|
test (telemetry-disabled, 1)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
test (telemetry-disabled, 1)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
|
test (default)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
test (default)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
|
test (hook-log-file, 1)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
test (hook-log-file, 1)
Attempt 1 failed. Reason: Child_process exited with error code 1
|