0.6.3 (2026-04-23)
0.6.2 (2026-04-21)
0.6.1 (2026-04-21)
- ** ENG-12684:** v4 ONNX model + cumulative risk fixes + opt-in SFE preprocessor (includes ENG-12671) (#52) (6fb1ff9)
0.6.0 (2026-04-16)
0.5.8 (2026-04-08)
0.5.7 (2026-04-08)
0.5.6 (2026-04-01)
0.5.5 (2026-03-31)
0.5.4 (2026-03-30)
0.5.3 (2026-03-27)
- ENG-12470: update inline docs to match implementation, scope Tier 2 to Tier 1 risky fields by default (#30) (c103072)
0.5.2 (2026-03-26)
0.5.1 (2026-03-25)
0.5.0 (2026-03-23)
- ENG-12396: upgrade ML classifier to jbv5 (AgentShield 73.7 → 81.1) (#22) (51f50ce)
- ENG-12397: remove legacy MLP inference mode (#23) (556dc38)
0.4.5 (2026-03-12)
0.4.4 (2026-03-11)
0.4.3 (2026-03-09)
0.4.2 (2026-03-03)
- DEF-1: document useDefaultToolRules and add ATS/CRM tool rules (53764e6)
- ENG-12236: document useDefaultToolRules and add ATS/CRM tool rules (a563ad3)
0.4.1 (2026-03-03)
- DEF-1: fix tsconfig extending missing monorepo base and add biome linter config (44993ba)
- DEF-1: fix tsconfig extending missing monorepo base and add biome linter config (2469987)
0.4.0 (2026-03-03)
- add biome configuration file and fix code formatting (219526f)
- initial release of @stackone/injection-guard v0.1.0 (039db9e)
- v0.2.0 — ONNX-based Tier 2 classifier, API improvements (bbb204d)
0.3.1 (2026-02-19)
0.3.0 (2026-02-19)
- ONNX-based Tier 2 classifier. Fine-tuned MiniLM-L6-v2 model exported to ONNX with int8 quantization (~22MB), bundled in the package. Now the default Tier 2 mode (
mode: 'onnx'). Significantly more accurate than the previous MLP approach — 2-bench avg F1 0.876 vs 0.70. defendToolResults()batch method. Defends multiple tool results concurrently viaPromise.all.fieldsSanitizedandpatternsByFieldinDefenseResult. Provides per-field observability into which fields triggered sanitization and which patterns were found in each.- Tier 2 lazy loading. ONNX model auto-loads on first
defendToolResult()call ifwarmupTier2()wasn't called explicitly.warmupTier2()is still recommended to avoid first-call latency.
defendToolResult()is now the primary API. Single method that runs Tier 1 pattern detection + Tier 2 ML classification and returns a unifiedDefenseResult.- Default Tier 2 mode switched from
'mlp'to'onnx'. Existing MLP mode is still available viatier2Config: { mode: 'mlp' }. - Public API surface reduced from ~116 to 8 exports. Cleaner API:
PromptDefense,createPromptDefense,PromptDefenseOptions,DefenseResult,RiskLevel,Tier1Result,MLP_WEIGHTS. onnxruntime-nodeadded as optional peer dependency (alongside existing@huggingface/transformers).
- 7 redundant public methods and 2 standalone functions consolidated into
defendToolResult(). - ~108 internal type/constant exports removed from the public API surface.
Initial release with Tier 1 pattern detection and Tier 2 MLP classifier.