Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/hooks/manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ describe("hooks/manager", () => {

const calls = vi.mocked(console.log).mock.calls.map((c) => c[0]);
const output = calls.join("\n");
expect(output).toContain("Hooks not installed");
expect(output).toContain("Policies — not installed");
expect(output).toContain("--install-policies");
});

Expand Down
10 changes: 5 additions & 5 deletions app/policies/hooks-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ function ActivityTab({
<Shield className="h-12 w-12 text-muted-foreground/30" />
{hooksInstalled === false ? (
<>
<p className="text-sm text-muted-foreground mt-4 font-medium">Hooks are not installed</p>
<p className="text-sm text-muted-foreground mt-4 font-medium">Policies are not installed</p>
<p className="text-xs text-muted-foreground mt-1 max-w-sm">
Go to the{" "}
<button
Expand All @@ -436,7 +436,7 @@ function ActivityTab({
>
Policies tab
</button>
{" "}and click <span className="font-mono bg-muted px-1 rounded">Install</span> to enable hook monitoring.
{" "}and click <span className="font-mono bg-muted px-1 rounded">Install</span> to enable policy monitoring.
</p>
</>
) : (
Expand Down Expand Up @@ -857,7 +857,7 @@ function PoliciesTab({ onHooksInstallChange }: { onHooksInstallChange?: (install
if (!config) return;
const installed = config.installedScopes.length > 0;
if (!installed) {
setHooksWarning("Hooks are not installed. Install hooks to continue.");
setHooksWarning("Policies are not installed. Install policies to continue.");
return;
}
setHooksWarning(null);
Expand Down Expand Up @@ -953,7 +953,7 @@ function PoliciesTab({ onHooksInstallChange }: { onHooksInstallChange?: (install
className={`h-2 w-2 rounded-full shrink-0 ${installed ? "bg-emerald-500" : "bg-muted-foreground/50"}`}
/>
<span className="text-sm text-foreground">
{installed ? "Hooks installed" : "Hooks not installed"}
{installed ? "Policies installed" : "Policies not installed"}
</span>
{installed && (
<span className="text-xs text-muted-foreground font-mono hidden sm:inline">
Expand All @@ -980,7 +980,7 @@ function PoliciesTab({ onHooksInstallChange }: { onHooksInstallChange?: (install
disabled={isPending}
className="text-xs h-7 px-3"
>
{installed ? "Reinstall" : "Install hooks"}
{installed ? "Reinstall" : "Install policies"}
</Button>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export async function listHooks(cwd?: string): Promise<void> {

if (installedScopes.length === 0) {
// State A: No hooks installed — show table with configured state + descriptions
console.log("\nFailproof AI Hook Policies \u2014 not installed\n");
console.log("\nFailproof AI Policies \u2014 not installed\n");

console.log(` ${"Status".padEnd(statusCol)}${"Name".padEnd(nameColWidth)}Description`);
console.log(` ${"\u2500".repeat(6)} ${"\u2500".repeat(nameColWidth - 2)} ${"\u2500".repeat(38)}`);
Expand All @@ -520,7 +520,7 @@ export async function listHooks(cwd?: string): Promise<void> {
printBetaSection(printSimpleRow);

if (config.enabledPolicies.length > 0) {
console.log("\n Hooks not installed. Run `failproofai --install-policies` to activate.");
console.log("\n Policies not installed. Run `failproofai --install-policies` to activate.");
} else {
console.log("\n Run `failproofai --install-policies` to get started.");
}
Expand Down