From 9ad03189cc5d34352e4273d9979c0abf78ecd11d Mon Sep 17 00:00:00 2001 From: Hisku Date: Tue, 10 Mar 2026 14:22:16 +0000 Subject: [PATCH] feat: export ToolSanitizationRule type from public API Allows consumers to properly type custom toolRules passed via PromptDefenseOptions.config without importing from internal modules. Co-Authored-By: Claude Sonnet 4.6 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1fbad19..1d39910 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,4 +27,4 @@ export { type PromptDefenseOptions, } from "./core/prompt-defense"; // Types -export type { RiskLevel, Tier1Result } from "./types"; +export type { RiskLevel, Tier1Result, ToolSanitizationRule } from "./types";