hebbian 0.9.0 → 0.11.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 +33 -30
- package/dist/bin/hebbian.js +680 -516
- package/dist/bin/hebbian.js.map +1 -1
- package/dist/digest.d.ts.map +1 -1
- package/dist/doctor.d.ts.map +1 -1
- package/dist/emit.d.ts +1 -1
- package/dist/emit.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +359 -250
- package/dist/index.js.map +1 -1
- package/dist/learn.d.ts +17 -0
- package/dist/learn.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/learn.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LearnOptions {
|
|
2
|
+
text: string;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
keywords?: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface LearnResult {
|
|
7
|
+
path: string;
|
|
8
|
+
prefix: string;
|
|
9
|
+
keywords: string[];
|
|
10
|
+
source: 'agent' | 'regex';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Register a correction from the agent. If prefix+keywords are provided,
|
|
14
|
+
* uses them directly (agent-classified). Otherwise falls back to regex extraction.
|
|
15
|
+
*/
|
|
16
|
+
export declare function learn(brainRoot: string, opts: LearnOptions): LearnResult | null;
|
|
17
|
+
//# sourceMappingURL=learn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"learn.d.ts","sourceRoot":"","sources":["../src/learn.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,IAAI,CAiC/E"}
|