gheim 0.1.8 → 0.1.9
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 +96 -6
- package/dist/cjs/index.cjs +183 -30
- package/dist/cjs/openai/index.cjs +168 -16
- package/dist/esm/index.js +183 -38
- package/dist/esm/openai/index.js +168 -24
- package/dist/types/detectors/base.d.ts +13 -0
- package/dist/types/detectors/base.d.ts.map +1 -1
- package/dist/types/detectors/calibrated.d.ts +0 -28
- package/dist/types/detectors/calibrated.d.ts.map +1 -1
- package/dist/types/detectors/composite.d.ts +50 -0
- package/dist/types/detectors/composite.d.ts.map +1 -1
- package/dist/types/detectors/index.d.ts +10 -6
- package/dist/types/detectors/index.d.ts.map +1 -1
- package/dist/types/detectors/local.d.ts +0 -14
- package/dist/types/detectors/local.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -29,11 +29,58 @@
|
|
|
29
29
|
* detector.
|
|
30
30
|
*/
|
|
31
31
|
import type { Detector, Span } from "./base.ts";
|
|
32
|
+
/** Options for {@link CustomPattern}. */
|
|
33
|
+
export interface CustomPatternOptions {
|
|
34
|
+
/** Label of the spans this rule produces. It becomes the placeholder tag
|
|
35
|
+
* (`insurance_card` -> `<INSURANCE_CARD_1>`), so it must start with a
|
|
36
|
+
* letter and contain only letters, digits and underscores. Reuse a
|
|
37
|
+
* built-in label such as `account_number` to share its tag. */
|
|
38
|
+
label: string;
|
|
39
|
+
/** Pattern to search for. A string is compiled with `flags`; a RegExp
|
|
40
|
+
* keeps its own flags. */
|
|
41
|
+
regex: string | RegExp;
|
|
42
|
+
/** Capture group that is the PII itself (0 = whole match). Lets a label
|
|
43
|
+
* word anchor the match without being masked (`Pass-Nr. (X1234567)`). */
|
|
44
|
+
group?: number;
|
|
45
|
+
/** Flags for a string pattern. Default `"i"`. `g` and `d` are always added. */
|
|
46
|
+
flags?: string;
|
|
47
|
+
/** Receives the PII text; return false to reject the match (a checksum,
|
|
48
|
+
* or a case check, since JS has no scoped `(?i:...)` flag). */
|
|
49
|
+
validator?: (value: string) => boolean;
|
|
50
|
+
/** Optional name for error messages. */
|
|
51
|
+
name?: string;
|
|
52
|
+
}
|
|
53
|
+
/** A user-supplied regex rule for formats that are specific to one
|
|
54
|
+
* deployment (insurance card numbers, hospital record numbers, internal
|
|
55
|
+
* case IDs, ...). Nothing in the library is domain-specific: the caller
|
|
56
|
+
* passes the rules it needs to {@link CompositeDetector}.
|
|
57
|
+
*
|
|
58
|
+
* Matches run in the regex front-end next to the built-in rules: the text
|
|
59
|
+
* is masked before the model sees it, and a match wins over any model span
|
|
60
|
+
* it overlaps. */
|
|
61
|
+
export declare class CustomPattern {
|
|
62
|
+
readonly label: string;
|
|
63
|
+
readonly group: number;
|
|
64
|
+
readonly name: string;
|
|
65
|
+
private readonly regex;
|
|
66
|
+
private readonly validator;
|
|
67
|
+
constructor(opts: CustomPatternOptions);
|
|
68
|
+
/** Every non-empty, validated match of the PII group in `text`. */
|
|
69
|
+
find(text: string): Span[];
|
|
70
|
+
}
|
|
32
71
|
/** Options for {@link CompositeDetector}. */
|
|
33
72
|
export interface CompositeDetectorOptions {
|
|
34
73
|
/** Inner detector — usually a {@link LocalDetector}. Anything with
|
|
35
74
|
* a `detect(text) → Promise<Span[]>` method works. */
|
|
36
75
|
model: Detector;
|
|
76
|
+
/** Extra regex rules for formats specific to your deployment. */
|
|
77
|
+
patterns?: CustomPattern[];
|
|
78
|
+
/** Mask every other occurrence of a string the model found as a person,
|
|
79
|
+
* so a name caught once is not leaked by a later occurrence. Default true. */
|
|
80
|
+
propagateNames?: boolean;
|
|
81
|
+
/** With `propagateNames`: also propagate the individual capitalised parts
|
|
82
|
+
* of each detected name. Higher recall, more false positives. Default false. */
|
|
83
|
+
propagateSurnames?: boolean;
|
|
37
84
|
}
|
|
38
85
|
/** Regex front-end (with checksum validation) + model on the remainder.
|
|
39
86
|
*
|
|
@@ -48,6 +95,9 @@ export interface CompositeDetectorOptions {
|
|
|
48
95
|
*/
|
|
49
96
|
export declare class CompositeDetector implements Detector {
|
|
50
97
|
readonly model: Detector;
|
|
98
|
+
readonly patterns: readonly CustomPattern[];
|
|
99
|
+
readonly propagateNames: boolean;
|
|
100
|
+
readonly propagateSurnames: boolean;
|
|
51
101
|
constructor(opts: CompositeDetectorOptions);
|
|
52
102
|
/** Two-pass detection: regex first (with checksum), then model on
|
|
53
103
|
* the masked remainder. Returns a single overlap-resolved span list. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../../src/detectors/composite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAiNhD,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC;2DACuD;IACvD,KAAK,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../../src/detectors/composite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAiNhD,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC;;;oEAGgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;+BAC2B;IAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;8EAC0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;oEACgE;IAChE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;mBAOmB;AACnB,qBAAa,aAAa;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2C;gBAEzD,IAAI,EAAE,oBAAoB;IA0BtC,mEAAmE;IACnE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE;CAoB3B;AAwDD,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC;2DACuD;IACvD,KAAK,EAAE,QAAQ,CAAC;IAChB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B;mFAC+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;qFACiF;IACjF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,qBAAa,iBAAkB,YAAW,QAAQ;IAChD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;IAC5C,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;gBAExB,IAAI,EAAE,wBAAwB;IAa1C;6EACyE;IACnE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CA8BvE"}
|
|
@@ -3,16 +3,20 @@ export { DEFAULT_BASE_URL, DEFAULT_MODEL as REMOTE_DEFAULT_MODEL, RemoteDetector
|
|
|
3
3
|
export type { RemoteDetectorOptions } from "./remote.ts";
|
|
4
4
|
export { LocalDetector } from "./local.ts";
|
|
5
5
|
export type { LocalDetectorOptions, LocalDetectorLoadEvent } from "./local.ts";
|
|
6
|
-
export { CompositeDetector } from "./composite.ts";
|
|
7
|
-
export type { CompositeDetectorOptions } from "./composite.ts";
|
|
6
|
+
export { CompositeDetector, CustomPattern } from "./composite.ts";
|
|
7
|
+
export type { CompositeDetectorOptions, CustomPatternOptions } from "./composite.ts";
|
|
8
8
|
export { CalibratedDetector } from "./calibrated.ts";
|
|
9
9
|
export type { CalibratedDetectorOptions } from "./calibrated.ts";
|
|
10
10
|
import type { Detector } from "./base.ts";
|
|
11
11
|
/** Pick a reasonable default: remote when `GHEIM_API_KEY` is set in env,
|
|
12
|
-
* else
|
|
12
|
+
* else the composite detector (checksum regex front-end + calibrated local
|
|
13
|
+
* model).
|
|
13
14
|
*
|
|
14
|
-
* The calibrated
|
|
15
|
-
* +0.27pp test char-F1 with no probe cost (91.5% perfect at
|
|
16
|
-
* and 0.5). See eval/calibration_sweep.json.
|
|
15
|
+
* The calibrated model alone (`oBias=0.5`) is Pareto-clean on
|
|
16
|
+
* gheim-ch-560m: +0.27pp test char-F1 with no probe cost (91.5% perfect at
|
|
17
|
+
* both 0.0 and 0.5). See eval/calibration_sweep.json. The composite adds
|
|
18
|
+
* what a token classifier cannot verify: checksummed IBAN / AHV / VAT /
|
|
19
|
+
* card numbers, phone numbers, and repeated occurrences of a name it found
|
|
20
|
+
* once. Use `new CalibratedDetector()` for the model alone. */
|
|
17
21
|
export declare function defaultDetector(): Detector;
|
|
18
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/detectors/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,aAAa,IAAI,oBAAoB,EACrC,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/detectors/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,aAAa,IAAI,oBAAoB,EACrC,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C;;;;;;;;;gEASgE;AAChE,wBAAgB,eAAe,IAAI,QAAQ,CAM1C"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local detector — runs the privacy-filter model in-process via @huggingface/transformers.
|
|
3
|
-
*
|
|
4
|
-
* Works in Node and the browser (with `device: 'webgpu'` for the latter).
|
|
5
|
-
* `@huggingface/transformers` is an *optional peer dependency* — only needed
|
|
6
|
-
* when this detector is actually instantiated.
|
|
7
|
-
*
|
|
8
|
-
* Long inputs (more tokens than the model's positional limit, typically
|
|
9
|
-
* 512 for BERT/XLM-R/roberta encoders) are split into overlapping sliding
|
|
10
|
-
* windows; spans from each window are reprojected to the original character
|
|
11
|
-
* offsets and deduplicated. Without this, anything past ~512 tokens would
|
|
12
|
-
* be silently truncated by the underlying pipeline. Multiple inputs and
|
|
13
|
-
* within-input chunks are batched together for one forward pass.
|
|
14
|
-
*/
|
|
15
1
|
import type { Detector, Span } from "./base.ts";
|
|
16
2
|
export declare const DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
17
3
|
/** transformers.js token-classification options used by this detector. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/detectors/local.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/detectors/local.ts"],"names":[],"mappings":"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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export { LABEL_TO_TAG, SENTINEL_RE, isPossibleSentinelPrefix, labelTag, parseSen
|
|
|
13
13
|
export type { Sentinel } from "./core/sentinels.ts";
|
|
14
14
|
export { StreamDeanonymizer } from "./core/stream.ts";
|
|
15
15
|
export type { Detector, Span } from "./detectors/base.ts";
|
|
16
|
-
export { DEFAULT_BASE_URL, REMOTE_DEFAULT_MODEL, RemoteDetector, LocalDetector, CompositeDetector, CalibratedDetector, defaultDetector, } from "./detectors/index.ts";
|
|
17
|
-
export type { RemoteDetectorOptions, LocalDetectorOptions, LocalDetectorLoadEvent, CompositeDetectorOptions, CalibratedDetectorOptions, } from "./detectors/index.ts";
|
|
16
|
+
export { DEFAULT_BASE_URL, REMOTE_DEFAULT_MODEL, RemoteDetector, LocalDetector, CompositeDetector, CustomPattern, CalibratedDetector, defaultDetector, } from "./detectors/index.ts";
|
|
17
|
+
export type { RemoteDetectorOptions, LocalDetectorOptions, LocalDetectorLoadEvent, CompositeDetectorOptions, CustomPatternOptions, CalibratedDetectorOptions, } from "./detectors/index.ts";
|
|
18
18
|
export { anonymizeMessages, anonymizeText, deanonymizeStream, deanonymizeText, } from "./plain.ts";
|
|
19
19
|
export type { ChatMessage } from "./plain.ts";
|
|
20
20
|
export declare const VERSION = "0.1.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,QAAQ,EACR,aAAa,EACb,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C,eAAO,MAAM,OAAO,UAAU,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,QAAQ,EACR,aAAa,EACb,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C,eAAO,MAAM,OAAO,UAAU,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gheim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "PII round-trip for LLM APIs: anonymize before the request, de-anonymize the stream on the way back.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Joel Barmettler <joel.barmettler@gmail.com>",
|