@promptbook/remote-server 0.52.0-7 → 0.52.0-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/esm/index.es.js
CHANGED
|
@@ -89,7 +89,7 @@ var PromptbookExecutionError = /** @class */ (function (_super) {
|
|
|
89
89
|
/**
|
|
90
90
|
* The version of the Promptbook library
|
|
91
91
|
*/
|
|
92
|
-
var PROMPTBOOK_VERSION = '0.52.0-
|
|
92
|
+
var PROMPTBOOK_VERSION = '0.52.0-8';
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { string_folder_path } from '../../types/typeAliases';
|
|
1
2
|
import { PromptbookLibrary } from '../PromptbookLibrary';
|
|
3
|
+
/**
|
|
4
|
+
* Options for `createPromptbookLibraryFromDirectory` function
|
|
5
|
+
*/
|
|
6
|
+
type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* If true, the directory is searched recursively for promptbooks
|
|
9
|
+
*
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
isRecursive?: boolean;
|
|
13
|
+
};
|
|
2
14
|
/**
|
|
3
15
|
* Constructs Promptbook from given directory
|
|
4
16
|
*
|
|
@@ -6,9 +18,12 @@ import { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
6
18
|
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed
|
|
7
19
|
* SO during the construction syntax and logic sources IS NOT validated
|
|
8
20
|
*
|
|
21
|
+
* @param path - path to the directory with promptbooks
|
|
22
|
+
* @param options - Misc options for the library
|
|
9
23
|
* @returns PromptbookLibrary
|
|
10
24
|
*/
|
|
11
|
-
export declare function createPromptbookLibraryFromDirectory(): PromptbookLibrary;
|
|
25
|
+
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary;
|
|
26
|
+
export {};
|
|
12
27
|
/***
|
|
13
28
|
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package
|
|
14
29
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.52.0-
|
|
3
|
+
"version": "0.52.0-9",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@promptbook/core": "0.52.0-
|
|
52
|
+
"@promptbook/core": "0.52.0-9"
|
|
53
53
|
},
|
|
54
54
|
"main": "./umd/index.umd.js",
|
|
55
55
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
/**
|
|
96
96
|
* The version of the Promptbook library
|
|
97
97
|
*/
|
|
98
|
-
var PROMPTBOOK_VERSION = '0.52.0-
|
|
98
|
+
var PROMPTBOOK_VERSION = '0.52.0-8';
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { string_folder_path } from '../../types/typeAliases';
|
|
1
2
|
import { PromptbookLibrary } from '../PromptbookLibrary';
|
|
3
|
+
/**
|
|
4
|
+
* Options for `createPromptbookLibraryFromDirectory` function
|
|
5
|
+
*/
|
|
6
|
+
type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* If true, the directory is searched recursively for promptbooks
|
|
9
|
+
*
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
isRecursive?: boolean;
|
|
13
|
+
};
|
|
2
14
|
/**
|
|
3
15
|
* Constructs Promptbook from given directory
|
|
4
16
|
*
|
|
@@ -6,9 +18,12 @@ import { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
6
18
|
* Note: The function does NOT return promise it returns the library directly which dynamically loads promptbooks when needed
|
|
7
19
|
* SO during the construction syntax and logic sources IS NOT validated
|
|
8
20
|
*
|
|
21
|
+
* @param path - path to the directory with promptbooks
|
|
22
|
+
* @param options - Misc options for the library
|
|
9
23
|
* @returns PromptbookLibrary
|
|
10
24
|
*/
|
|
11
|
-
export declare function createPromptbookLibraryFromDirectory(): PromptbookLibrary;
|
|
25
|
+
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary;
|
|
26
|
+
export {};
|
|
12
27
|
/***
|
|
13
28
|
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package
|
|
14
29
|
*/
|