sigma-memory 0.2.0 → 0.2.2
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/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/notes.d.ts +1 -1
- package/dist/notes.d.ts.map +1 -1
- package/dist/notes.js +24 -24
- package/dist/notes.js.map +1 -1
- package/dist/ontology.d.ts +5 -4
- package/dist/ontology.d.ts.map +1 -1
- package/dist/ontology.js +32 -24
- package/dist/ontology.js.map +1 -1
- package/dist/types.d.ts +7 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/vector-store.d.ts +1 -1
- package/dist/vector-store.d.ts.map +1 -1
- package/dist/vector-store.js +39 -33
- package/dist/vector-store.js.map +1 -1
- package/package.json +3 -2
- package/src/index.ts +176 -176
- package/src/notes.ts +161 -161
- package/src/ontology.ts +359 -346
- package/src/types.ts +63 -63
- package/src/vector-store.ts +356 -357
- package/src/vendor.d.ts +21 -21
package/src/vendor.d.ts
CHANGED
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
* Minimal declarations to avoid needing @types packages.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
declare module "sql.js" {
|
|
7
|
+
interface Database {
|
|
8
|
+
run(sql: string, params?: any[]): Database;
|
|
9
|
+
exec(sql: string): Array<{ columns: string[]; values: any[][] }>;
|
|
10
|
+
prepare(sql: string): Statement;
|
|
11
|
+
export(): Uint8Array;
|
|
12
|
+
close(): void;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
interface Statement {
|
|
16
|
+
bind(params?: any[]): boolean;
|
|
17
|
+
step(): boolean;
|
|
18
|
+
get(): any[];
|
|
19
|
+
getAsObject(): Record<string, any>;
|
|
20
|
+
free(): void;
|
|
21
|
+
run(params?: any[]): void;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
interface SqlJsStatic {
|
|
25
|
+
Database: new (data?: ArrayLike<number> | null) => Database;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
export type { Database, Statement, SqlJsStatic };
|
|
29
|
+
export default function initSqlJs(config?: any): Promise<SqlJsStatic>;
|
|
30
30
|
}
|