@luzzle/core 0.0.32 → 0.0.34
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/src/llm/google.d.ts +1 -1
- package/dist/src/pieces/Piece.fixtures.d.ts +1 -1
- package/dist/src/pieces/cache.d.ts +4 -4
- package/dist/src/pieces/items.d.ts +3 -3
- package/dist/src/pieces/manager.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/src/pieces/utils.d.ts +0 -10
- package/dist/src/pieces/utils.js +0 -101
- package/dist/src/pieces/utils.js.map +0 -1
- package/dist/src/pieces/utils.test.d.ts +0 -1
- package/dist/src/pieces/utils.test.js +0 -372
- package/dist/src/pieces/utils.test.js.map +0 -1
package/dist/src/llm/google.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchemaType } from 'ajv';
|
|
2
2
|
import { type PieceFrontmatter } from '../pieces/index.js';
|
|
3
3
|
declare function pieceFrontMatterFromPrompt(apiKey: string, schema: JSONSchemaType<PieceFrontmatter>, prompt: string, files?: Array<string | Buffer>): Promise<{
|
|
4
|
-
[k: string]: string | number | boolean |
|
|
4
|
+
[k: string]: string | number | boolean | string[] | boolean[] | number[];
|
|
5
5
|
}>;
|
|
6
6
|
export { pieceFrontMatterFromPrompt };
|
|
@@ -30,10 +30,10 @@ declare class PieceOverridable extends Piece<PieceFrontmatter> {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function makePieceMock(): typeof PieceOverridable;
|
|
32
32
|
export declare function makeRegisteredPiece(overrides?: Partial<PieceManagerSelect>): {
|
|
33
|
-
name: string;
|
|
34
33
|
id: string;
|
|
35
34
|
date_added: number;
|
|
36
35
|
date_updated: number | null;
|
|
36
|
+
name: string;
|
|
37
37
|
schema: PieceFrontmatterSchema<{
|
|
38
38
|
title: string;
|
|
39
39
|
keywords?: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { LuzzleDatabase } from '../database/tables';
|
|
2
2
|
declare function getCache(db: LuzzleDatabase, file: string): Promise<{
|
|
3
3
|
id: string;
|
|
4
|
-
date_added: number;
|
|
5
|
-
date_updated: number | null;
|
|
6
4
|
file_path: string;
|
|
7
5
|
content_hash: string;
|
|
6
|
+
date_added: number;
|
|
7
|
+
date_updated: number | null;
|
|
8
8
|
} | null>;
|
|
9
9
|
declare function getCacheAll(db: LuzzleDatabase): Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
date_added: number;
|
|
12
|
-
date_updated: number | null;
|
|
13
11
|
file_path: string;
|
|
14
12
|
content_hash: string;
|
|
13
|
+
date_added: number;
|
|
14
|
+
date_updated: number | null;
|
|
15
15
|
}[]>;
|
|
16
16
|
declare function addCache(db: LuzzleDatabase, file: string, hash: string): Promise<void>;
|
|
17
17
|
declare function updateCache(db: LuzzleDatabase, file: string, hash: string): Promise<void>;
|
|
@@ -5,9 +5,9 @@ declare function updateItem(db: Kysely<LuzzleTables>, file: string, data: Pieces
|
|
|
5
5
|
declare function insertItem(db: Kysely<LuzzleTables>, data: PiecesItemsInsertable): Promise<{
|
|
6
6
|
id: string;
|
|
7
7
|
file_path: string;
|
|
8
|
-
type: string;
|
|
9
8
|
date_added: number;
|
|
10
9
|
date_updated: number | null;
|
|
10
|
+
type: string;
|
|
11
11
|
note_markdown: string;
|
|
12
12
|
frontmatter_json: string;
|
|
13
13
|
assets_json_array: string | undefined;
|
|
@@ -15,9 +15,9 @@ declare function insertItem(db: Kysely<LuzzleTables>, data: PiecesItemsInsertabl
|
|
|
15
15
|
declare function selectItem(db: Kysely<LuzzleTables>, file?: string): Promise<{
|
|
16
16
|
id: string;
|
|
17
17
|
file_path: string;
|
|
18
|
-
type: string;
|
|
19
18
|
date_added: number;
|
|
20
19
|
date_updated: number | null;
|
|
20
|
+
type: string;
|
|
21
21
|
note_markdown: string;
|
|
22
22
|
frontmatter_json: string;
|
|
23
23
|
assets_json_array: string | undefined;
|
|
@@ -28,9 +28,9 @@ declare function selectItems(db: Kysely<LuzzleTables>, where?: {
|
|
|
28
28
|
}): Promise<{
|
|
29
29
|
id: string;
|
|
30
30
|
file_path: string;
|
|
31
|
-
type: string;
|
|
32
31
|
date_added: number;
|
|
33
32
|
date_updated: number | null;
|
|
33
|
+
type: string;
|
|
34
34
|
assets_json_array: string | undefined;
|
|
35
35
|
}[]>;
|
|
36
36
|
declare function selectItemAssets(db: Kysely<LuzzleTables>): Promise<string[]>;
|
|
@@ -6,16 +6,16 @@ declare function addPiece(db: Kysely<LuzzleTables>, name: string, schema: JSONSc
|
|
|
6
6
|
declare function updatePiece(db: Kysely<LuzzleTables>, name: string, schema: JSONSchemaType<PieceFrontmatter>): Promise<void>;
|
|
7
7
|
declare function getPiece(db: Kysely<LuzzleTables>, name: string): Promise<{
|
|
8
8
|
schema: JSONSchemaType<PieceFrontmatter>;
|
|
9
|
-
name: string;
|
|
10
9
|
id: string;
|
|
11
10
|
date_added: number;
|
|
12
11
|
date_updated: number | null | undefined;
|
|
12
|
+
name: string;
|
|
13
13
|
} | null>;
|
|
14
14
|
declare function getPieces(db: Kysely<LuzzleTables>): Promise<{
|
|
15
|
-
name: string;
|
|
16
15
|
id: string;
|
|
17
16
|
date_added: number;
|
|
18
17
|
date_updated: number | null | undefined;
|
|
18
|
+
name: string;
|
|
19
19
|
schema: string;
|
|
20
20
|
}[]>;
|
|
21
21
|
declare function deletePiece(db: Kysely<LuzzleTables>, name: string): Promise<void>;
|