@highflame/policy 2.2.39 → 2.2.40

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.
@@ -65,7 +65,7 @@ export const GUARDRAILS_DETECTORS = [
65
65
  inhouse: false,
66
66
  model: null,
67
67
  latencyP50Ms: null,
68
- emits: [{ name: "contains_code", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff fenced or inline code markdown was detected." }, { name: "code_score", type: "Long", modifiable: false, semantic: "severity_0_100", description: "Code-presence score (0 or 100)." }, { name: "contains_non_ascii", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff the content contains non-ASCII characters." }, { name: "non_ascii_score", type: "Long", modifiable: false, semantic: "severity_0_100", description: "Non-ASCII presence score (0 or 100)." }, { name: "contains_invisible_chars", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff suspicious invisible Unicode characters were detected." }, { name: "invisible_chars_score", type: "Long", modifiable: false, semantic: "severity_0_100", description: "Severity score for invisible characters (0-100)." }],
68
+ emits: [{ name: "contains_non_ascii", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff the content contains non-ASCII characters." }, { name: "non_ascii_score", type: "Long", modifiable: false, semantic: "severity_0_100", description: "Non-ASCII presence score (0 or 100)." }, { name: "contains_invisible_chars", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff suspicious invisible Unicode characters were detected." }, { name: "invisible_chars_score", type: "Long", modifiable: false, semantic: "severity_0_100", description: "Severity score for invisible characters (0-100)." }],
69
69
  supportedModes: ["enforce", "monitor", "alert"],
70
70
  defendsAgainst: ["prompt_injection"],
71
71
  exampleAttacks: [],
@@ -456,11 +456,10 @@ export const GUARDRAILS_FIELD_TO_DETECTORS = {
456
456
  "budget_remaining_pct": ["budget_checker"],
457
457
  "code_languages": ["code"],
458
458
  "code_ratio": ["code"],
459
- "code_score": ["security"],
460
459
  "command_injection_detected": ["command_injection"],
461
460
  "command_injection_score": ["command_injection"],
462
461
  "command_injection_type": ["command_injection"],
463
- "contains_code": ["security", "code"],
462
+ "contains_code": ["code"],
464
463
  "contains_invisible_chars": ["security"],
465
464
  "contains_non_ascii": ["security"],
466
465
  "contains_secrets": ["secrets"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highflame/policy",
3
- "version": "2.2.39",
3
+ "version": "2.2.40",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },