@promptbook/remote-client 0.52.0-17 → 0.52.0-19
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 +0 -2
- package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +10 -3
- package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
- package/package.json +2 -2
- package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +10 -3
- package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
package/README.md
CHANGED
|
@@ -550,8 +550,6 @@ _Note: LLMs work with tokens, not characters, but in Promptbooks we want to use
|
|
|
550
550
|
```markdown
|
|
551
551
|
# ✨ Sample: Expectations
|
|
552
552
|
|
|
553
|
-
- PROMPTBOOK URL https://promptbook.example.com/samples/postprocessing-2.ptbk.md@v1
|
|
554
|
-
- PROMPTBOOK VERSION 1.0.0
|
|
555
553
|
- INPUT PARAMETER {yourName} Name of the hero
|
|
556
554
|
|
|
557
555
|
## 💬 Question
|
|
@@ -10,6 +10,12 @@ type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
|
10
10
|
* @default true
|
|
11
11
|
*/
|
|
12
12
|
isRecursive?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the library ceation outputs information about each file it reads
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isVerbose?: boolean;
|
|
13
19
|
};
|
|
14
20
|
/**
|
|
15
21
|
* Constructs Promptbook from given directory
|
|
@@ -25,11 +31,12 @@ type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
|
25
31
|
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary;
|
|
26
32
|
export {};
|
|
27
33
|
/***
|
|
28
|
-
*
|
|
34
|
+
* TODO: [🧠] Maybe do not do hacks like [1] and just create package @promptbook/node
|
|
35
|
+
* [🍓][🚯] maybe make `@promptbook/library` package
|
|
36
|
+
* TODO: Fix the dynamic import issue in Webpack (! Not working !)
|
|
29
37
|
* > ./node_modules/@promptbook/core/esm/index.es.js
|
|
30
38
|
* > Critical dependency: the request of a dependency is an expression
|
|
31
39
|
*
|
|
32
|
-
* Note: [
|
|
40
|
+
* Note: [1] Using require(just('fs/promises')) to allow
|
|
33
41
|
* the `@promptbook/core` work for both Node.js and browser environments
|
|
34
|
-
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package
|
|
35
42
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.52.0-
|
|
3
|
+
"version": "0.52.0-19",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@promptbook/core": "0.52.0-
|
|
50
|
+
"@promptbook/core": "0.52.0-19"
|
|
51
51
|
},
|
|
52
52
|
"main": "./umd/index.umd.js",
|
|
53
53
|
"module": "./esm/index.es.js",
|
|
@@ -10,6 +10,12 @@ type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
|
10
10
|
* @default true
|
|
11
11
|
*/
|
|
12
12
|
isRecursive?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the library ceation outputs information about each file it reads
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isVerbose?: boolean;
|
|
13
19
|
};
|
|
14
20
|
/**
|
|
15
21
|
* Constructs Promptbook from given directory
|
|
@@ -25,11 +31,12 @@ type CreatePromptbookLibraryFromDirectoryOptions = {
|
|
|
25
31
|
export declare function createPromptbookLibraryFromDirectory(path: string_folder_path, options?: CreatePromptbookLibraryFromDirectoryOptions): PromptbookLibrary;
|
|
26
32
|
export {};
|
|
27
33
|
/***
|
|
28
|
-
*
|
|
34
|
+
* TODO: [🧠] Maybe do not do hacks like [1] and just create package @promptbook/node
|
|
35
|
+
* [🍓][🚯] maybe make `@promptbook/library` package
|
|
36
|
+
* TODO: Fix the dynamic import issue in Webpack (! Not working !)
|
|
29
37
|
* > ./node_modules/@promptbook/core/esm/index.es.js
|
|
30
38
|
* > Critical dependency: the request of a dependency is an expression
|
|
31
39
|
*
|
|
32
|
-
* Note: [
|
|
40
|
+
* Note: [1] Using require(just('fs/promises')) to allow
|
|
33
41
|
* the `@promptbook/core` work for both Node.js and browser environments
|
|
34
|
-
* TODO: [🍓][🚯] !!! Add to README and samples + maybe make `@promptbook/library` package
|
|
35
42
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|