@chatpanel/pii 0.1.0 → 0.2.0
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.
- package/README.md +3 -3
- package/index.js +2 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ the **single source of truth** shared by the ChatPanel
|
|
|
9
9
|
here is picked up by all of them.
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
|
-
import { createVault, redactText, restoreText, detectEntities } from 'chatpanel
|
|
12
|
+
import { createVault, redactText, restoreText, detectEntities } from '@chatpanel/pii';
|
|
13
13
|
|
|
14
14
|
const vault = createVault();
|
|
15
15
|
const safe = redactText('email alex@example.com', vault, { tier: 'basic' });
|
|
@@ -30,8 +30,8 @@ real values — and they're reconstructed locally on the way back.
|
|
|
30
30
|
| `pii-detect.js` | `detectEntities`, `normalizeEntities`, `EXTRACT_SYS`, … | local entity detection (any HTTP NER endpoint, or a local OpenAI-compatible LLM) |
|
|
31
31
|
| `pipeline.js` | `redactOutbound`, `makeStreamRestorer`, `restore`, `restoreDeep`, `redactResult`, `effectiveTier`, `gatedDictionary`, `gatedScope` | pure turn orchestration + the free/Pro tier, scope, and dictionary gating |
|
|
32
32
|
|
|
33
|
-
Import the barrel (
|
|
34
|
-
(
|
|
33
|
+
Import the barrel (`@chatpanel/pii`) or a submodule
|
|
34
|
+
(`@chatpanel/pii/pii-redact.js`).
|
|
35
35
|
|
|
36
36
|
## Tiers
|
|
37
37
|
|
package/index.js
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
// 'chatpanel-pii/pii-redact.js' deterministic redact/restore + vault
|
|
9
9
|
// 'chatpanel-pii/pii-detect.js' local NER / LLM entity detection
|
|
10
10
|
// 'chatpanel-pii/pipeline.js' pure turn orchestration + tier/scope gating
|
|
11
|
+
// 'chatpanel-pii/tool-rank.js' deterministic tool narrowing (auto mode)
|
|
11
12
|
|
|
12
13
|
export * from './pii-redact.js';
|
|
13
14
|
export * from './pii-detect.js';
|
|
14
15
|
export * from './pipeline.js';
|
|
16
|
+
export * from './tool-rank.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/pii",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
".": "./index.js",
|
|
9
9
|
"./pii-redact.js": "./pii-redact.js",
|
|
10
10
|
"./pii-detect.js": "./pii-detect.js",
|
|
11
|
-
"./pipeline.js": "./pipeline.js"
|
|
11
|
+
"./pipeline.js": "./pipeline.js",
|
|
12
|
+
"./tool-rank.js": "./tool-rank.js"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"index.js",
|