hebbian 0.2.0 → 0.3.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/dist/api.d.ts +23 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/bin/hebbian.js +1012 -38
- package/dist/bin/hebbian.js.map +1 -1
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/digest.d.ts +30 -0
- package/dist/digest.d.ts.map +1 -0
- package/dist/episode.d.ts +16 -0
- package/dist/episode.d.ts.map +1 -0
- package/dist/hooks.d.ts +20 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/inbox.d.ts +28 -0
- package/dist/inbox.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +906 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createServer } from 'node:http';
|
|
2
|
+
export interface ReportEntry {
|
|
3
|
+
ts: string;
|
|
4
|
+
message: string;
|
|
5
|
+
priority: 'low' | 'normal' | 'high' | 'critical';
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Start the hebbian REST API server.
|
|
9
|
+
*/
|
|
10
|
+
export declare function startAPI(brainRoot: string, port?: number): ReturnType<typeof createServer>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the last API activity timestamp.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getLastActivity(): number;
|
|
15
|
+
/**
|
|
16
|
+
* Get pending reports (for external access).
|
|
17
|
+
*/
|
|
18
|
+
export declare function getPendingReports(): ReportEntry[];
|
|
19
|
+
/**
|
|
20
|
+
* Clear pending reports.
|
|
21
|
+
*/
|
|
22
|
+
export declare function clearReports(): void;
|
|
23
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAC;AAgBpF,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;CACjD;AAqPD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,SAAO,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CA4BxF;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,EAAE,CAEjD;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAEnC"}
|