@promptbook/cli 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 CHANGED
@@ -560,8 +560,6 @@ _Note: LLMs work with tokens, not characters, but in Promptbooks we want to use
560
560
  ```markdown
561
561
  # ✨ Sample: Expectations
562
562
 
563
- - PROMPTBOOK URL https://promptbook.example.com/samples/postprocessing-2.ptbk.md@v1
564
- - PROMPTBOOK VERSION 1.0.0
565
563
  - INPUT  PARAMETER {yourName} Name of the hero
566
564
 
567
565
  ## 💬 Question
package/esm/index.es.js CHANGED
@@ -142,7 +142,7 @@ new Function("\n try {\n if (typeof WorkerGlobalScope !== 'undefined'
142
142
  /**
143
143
  * The version of the Promptbook library
144
144
  */
145
- var PROMPTBOOK_VERSION = '0.52.0-16';
145
+ var PROMPTBOOK_VERSION = '0.52.0-18';
146
146
 
147
147
  /**
148
148
  * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
@@ -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
- * Note: [1] Fixing the dynamic import issue in Webpack
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: [2] Using require(just('fs/promises')) to allow
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/cli",
3
- "version": "0.52.0-17",
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,
@@ -52,7 +52,7 @@
52
52
  }
53
53
  ],
54
54
  "peerDependencies": {
55
- "@promptbook/core": "0.52.0-17"
55
+ "@promptbook/core": "0.52.0-19"
56
56
  },
57
57
  "main": "./umd/index.umd.js",
58
58
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -146,7 +146,7 @@
146
146
  /**
147
147
  * The version of the Promptbook library
148
148
  */
149
- var PROMPTBOOK_VERSION = '0.52.0-16';
149
+ var PROMPTBOOK_VERSION = '0.52.0-18';
150
150
 
151
151
  /**
152
152
  * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
@@ -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
- * Note: [1] Fixing the dynamic import issue in Webpack
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: [2] Using require(just('fs/promises')) to allow
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
  */