@chatpanel/pii 0.2.7 → 0.2.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pipeline.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/pii",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "The canonical ChatPanel privacy engine — reversible PII redaction + pseudonymization with local entity detection. Pure, dependency-free ESM shared by the ChatPanel extension, gateway, and bridge.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/pipeline.js CHANGED
@@ -22,11 +22,11 @@ export function effectiveTier(cfg, isPro) {
22
22
  return t === 'full' && !isPro ? 'basic' : t;
23
23
  }
24
24
 
25
- // Free ceiling: a generous custom dictionary so Free users can fully experience
26
- // the feature. The first FREE_DICT_LIMIT entries apply; an unlimited dictionary
27
- // (plus wider scope and the model layer) is Pro. Enforced here as defense-in-
28
- // depth — the UI also surfaces the cap, but never trust the UI alone.
29
- export const FREE_DICT_LIMIT = 100;
25
+ // Free ceiling: a small taste of the custom dictionary. The first FREE_DICT_LIMIT
26
+ // entries apply; an unlimited dictionary (plus wider scope and the model layer) is
27
+ // Pro. Enforced here as defense-in-depth — the UI also surfaces the cap, but never
28
+ // trust the UI alone.
29
+ export const FREE_DICT_LIMIT = 5;
30
30
 
31
31
  export function gatedDictionary(cfg, isPro) {
32
32
  const d = Array.isArray(cfg?.dictionary) ? cfg.dictionary : [];