@promptbook/node 0.59.0-21 → 0.59.0-23
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 +22 -68
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +2 -2
- package/esm/typings/src/_packages/core.index.d.ts +6 -6
- package/esm/typings/src/_packages/node.index.d.ts +2 -2
- package/esm/typings/src/_packages/types.index.d.ts +2 -1
- package/esm/typings/src/cli/actions/hello.d.ts +7 -0
- package/esm/typings/src/cli/actions/make.d.ts +7 -0
- package/esm/typings/src/cli/actions/prettify.d.ts +7 -0
- package/esm/typings/src/{conversion/prettify/prettifyPromptbookStringCli.d.ts → cli/promptbookCli.d.ts} +2 -2
- package/esm/typings/src/library/SimplePromptbookLibrary.d.ts +3 -1
- package/{umd/typings/src/library/constructors/createPromptbookLibraryFromDirectory.d.ts → esm/typings/src/library/constructors/createLibraryFromDirectory.d.ts} +2 -2
- package/esm/typings/src/library/constructors/createLibraryFromJson.d.ts +12 -0
- package/{umd/typings/src/library/constructors/createPromptbookLibraryFromPromise.d.ts → esm/typings/src/library/constructors/createLibraryFromPromise.d.ts} +3 -7
- package/{umd/typings/src/library/constructors/createPromptbookLibraryFromUrl.d.ts → esm/typings/src/library/constructors/createLibraryFromUrl.d.ts} +2 -2
- package/esm/typings/src/library/constructors/{createPromptbookSublibrary.d.ts → createSublibrary.d.ts} +1 -1
- package/esm/typings/src/library/libraryToJson.d.ts +8 -0
- package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +22 -68
- package/umd/index.umd.js.map +1 -1
- package/umd/typings/src/_packages/cli.index.d.ts +2 -2
- package/umd/typings/src/_packages/core.index.d.ts +6 -6
- package/umd/typings/src/_packages/node.index.d.ts +2 -2
- package/umd/typings/src/_packages/types.index.d.ts +2 -1
- package/umd/typings/src/cli/actions/hello.d.ts +7 -0
- package/umd/typings/src/cli/actions/make.d.ts +7 -0
- package/umd/typings/src/cli/actions/prettify.d.ts +7 -0
- package/umd/typings/src/{conversion/prettify/prettifyPromptbookStringCli.d.ts → cli/promptbookCli.d.ts} +2 -2
- package/umd/typings/src/library/SimplePromptbookLibrary.d.ts +3 -1
- package/{esm/typings/src/library/constructors/createPromptbookLibraryFromDirectory.d.ts → umd/typings/src/library/constructors/createLibraryFromDirectory.d.ts} +2 -2
- package/umd/typings/src/library/constructors/createLibraryFromJson.d.ts +12 -0
- package/{esm/typings/src/library/constructors/createPromptbookLibraryFromPromise.d.ts → umd/typings/src/library/constructors/createLibraryFromPromise.d.ts} +3 -7
- package/umd/typings/src/library/constructors/createLibraryFromPromise.test.d.ts +1 -0
- package/{esm/typings/src/library/constructors/createPromptbookLibraryFromUrl.d.ts → umd/typings/src/library/constructors/createLibraryFromUrl.d.ts} +2 -2
- package/umd/typings/src/library/constructors/{createPromptbookSublibrary.d.ts → createSublibrary.d.ts} +1 -1
- package/umd/typings/src/library/libraryToJson.d.ts +8 -0
- package/umd/typings/src/library/libraryToJson.test.d.ts +1 -0
- package/umd/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -1
- package/esm/typings/src/library/constructors/createPromptbookLibraryFromSources.d.ts +0 -16
- package/umd/typings/src/library/constructors/createPromptbookLibraryFromSources.d.ts +0 -16
- /package/esm/typings/src/library/constructors/{createPromptbookLibraryFromDirectory.test.d.ts → createLibraryFromDirectory.test.d.ts} +0 -0
- /package/esm/typings/src/library/constructors/{createPromptbookLibraryFromPromise.test.d.ts → createLibraryFromJson.test.d.ts} +0 -0
- /package/esm/typings/src/library/constructors/{createPromptbookLibraryFromSources.test.d.ts → createLibraryFromPromise.test.d.ts} +0 -0
- /package/{umd/typings/src/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts → esm/typings/src/library/libraryToJson.test.d.ts} +0 -0
- /package/umd/typings/src/library/constructors/{createPromptbookLibraryFromPromise.test.d.ts → createLibraryFromDirectory.test.d.ts} +0 -0
- /package/umd/typings/src/library/constructors/{createPromptbookLibraryFromSources.test.d.ts → createLibraryFromJson.test.d.ts} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
|
|
2
|
-
import type { PromptbookString } from '../../types/PromptbookString';
|
|
3
2
|
import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
4
3
|
/**
|
|
5
4
|
* Constructs Promptbook from async sources
|
|
@@ -8,19 +7,16 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
8
7
|
* - Factory function that returns Promise of array of PromptbookJson or PromptbookString
|
|
9
8
|
*
|
|
10
9
|
* Note: This is useful as internal tool for other constructor functions like
|
|
11
|
-
* `
|
|
10
|
+
* `createLibraryFromUrl` or `createLibraryFromDirectory`
|
|
12
11
|
* Consider using those functions instead of this one
|
|
13
12
|
*
|
|
14
13
|
* Note: The function does NOT return promise it returns the library directly which waits for the sources to be resolved
|
|
15
14
|
* when error occurs in given promise or factory function, it is thrown during `listPromptbooks` or `getPromptbookByUrl` call
|
|
16
15
|
*
|
|
17
|
-
* Note: Consider using `
|
|
16
|
+
* Note: Consider using `createLibraryFromDirectory` or `createLibraryFromUrl`
|
|
18
17
|
*
|
|
19
18
|
* @param promptbookSourcesPromiseOrFactory
|
|
20
19
|
* @returns PromptbookLibrary
|
|
21
20
|
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
22
21
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
/**
|
|
25
|
-
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks
|
|
26
|
-
*/
|
|
22
|
+
export declare function createLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson>> | (() => Promise<Array<PromptbookJson>>)): PromptbookLibrary;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { string_url } from '../../types/typeAliases';
|
|
2
2
|
import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
3
3
|
/**
|
|
4
|
-
* Options for `
|
|
4
|
+
* Options for `createLibraryFromDirectory` function
|
|
5
5
|
*/
|
|
6
6
|
type CreatePromptbookLibraryFromUrlyOptions = {
|
|
7
7
|
/**
|
|
@@ -22,7 +22,7 @@ type CreatePromptbookLibraryFromUrlyOptions = {
|
|
|
22
22
|
|
|
23
23
|
* @returns PromptbookLibrary
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function createLibraryFromUrl(url: string_url | URL, options: CreatePromptbookLibraryFromUrlyOptions): Promise<PromptbookLibrary>;
|
|
26
26
|
export {};
|
|
27
27
|
/**
|
|
28
28
|
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks
|
|
@@ -9,4 +9,4 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
|
|
|
9
9
|
* @param promptbookSources
|
|
10
10
|
* @returns PromptbookLibrary
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function createSublibrary(library: PromptbookLibrary, predicate: (url: string_promptbook_url) => boolean): PromptbookLibrary;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
2
|
+
import type { PromptbookLibrary } from './PromptbookLibrary';
|
|
3
|
+
/**
|
|
4
|
+
* Converts PromptbookLibrary to serialized JSON
|
|
5
|
+
*
|
|
6
|
+
* Note: Functions `libraryToJson` and `createLibraryFromJson` are complementary
|
|
7
|
+
*/
|
|
8
|
+
export declare function libraryToJson(library: PromptbookLibrary): Promise<Array<PromptbookJson>>;
|
|
@@ -10,7 +10,7 @@ import type { RemoteServerOptions } from './interfaces/RemoteServerOptions';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function startRemoteServer(options: RemoteServerOptions): IDestroyable;
|
|
12
12
|
/**
|
|
13
|
-
* TODO: [⚖] Expose the library to be able to connect to same library via
|
|
13
|
+
* TODO: [⚖] Expose the library to be able to connect to same library via createLibraryFromUrl
|
|
14
14
|
* TODO: Handle progress - support streaming
|
|
15
15
|
* TODO: [🤹♂️] Do not hang up immediately but wait until client closes OR timeout
|
|
16
16
|
* TODO: [🤹♂️] Timeout on chat to free up resources
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.59.0-
|
|
3
|
+
"version": "0.59.0-23",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@promptbook/core": "0.59.0-
|
|
51
|
+
"@promptbook/core": "0.59.0-23"
|
|
52
52
|
},
|
|
53
53
|
"main": "./umd/index.umd.js",
|
|
54
54
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
return PromptbookSyntaxError;
|
|
143
143
|
}(Error));
|
|
144
144
|
|
|
145
|
-
var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-
|
|
145
|
+
var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-21",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* This error indicates errors during the execution of the promptbook
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
/**
|
|
468
468
|
* The version of the Promptbook library
|
|
469
469
|
*/
|
|
470
|
-
var PROMPTBOOK_VERSION = '0.59.0-
|
|
470
|
+
var PROMPTBOOK_VERSION = '0.59.0-21';
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* Function `addUsage` will add multiple usages into one
|
|
@@ -1800,6 +1800,7 @@
|
|
|
1800
1800
|
* Library of promptbooks that groups together promptbooks for an application.
|
|
1801
1801
|
* This implementation is a very thin wrapper around the Array / Map of promptbooks.
|
|
1802
1802
|
*
|
|
1803
|
+
* @private use `createLibraryFromJson` instead
|
|
1803
1804
|
* @see https://github.com/webgptorg/promptbook#promptbook-library
|
|
1804
1805
|
*/
|
|
1805
1806
|
var SimplePromptbookLibrary = /** @class */ (function () {
|
|
@@ -1808,8 +1809,9 @@
|
|
|
1808
1809
|
*
|
|
1809
1810
|
* @param promptbooks !!!
|
|
1810
1811
|
*
|
|
1812
|
+
* @private Use instead `createLibraryFromJson`
|
|
1811
1813
|
* Note: During the construction logic of all promptbooks are validated
|
|
1812
|
-
* Note: It is not recommended to use this constructor directly, use `
|
|
1814
|
+
* Note: It is not recommended to use this constructor directly, use `createLibraryFromJson` *(or other variant)* instead
|
|
1813
1815
|
*/
|
|
1814
1816
|
function SimplePromptbookLibrary() {
|
|
1815
1817
|
var e_1, _a;
|
|
@@ -1878,68 +1880,23 @@
|
|
|
1878
1880
|
/**
|
|
1879
1881
|
* Creates PromptbookLibrary from array of PromptbookJson or PromptbookString
|
|
1880
1882
|
*
|
|
1881
|
-
* Note:
|
|
1883
|
+
* Note: Functions `libraryToJson` and `createLibraryFromJson` are complementary
|
|
1882
1884
|
* Note: During the construction syntax and logic of all sources are validated
|
|
1883
1885
|
*
|
|
1884
1886
|
* @param promptbookSources
|
|
1885
1887
|
* @returns PromptbookLibrary
|
|
1886
1888
|
*/
|
|
1887
|
-
function
|
|
1888
|
-
var
|
|
1889
|
+
function createLibraryFromJson() {
|
|
1890
|
+
var promptbooks = [];
|
|
1889
1891
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1890
|
-
|
|
1892
|
+
promptbooks[_i] = arguments[_i];
|
|
1891
1893
|
}
|
|
1892
1894
|
return __awaiter(this, void 0, void 0, function () {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
return __generator(this, function (_b) {
|
|
1896
|
-
switch (_b.label) {
|
|
1897
|
-
case 0:
|
|
1898
|
-
promptbooks = new Array();
|
|
1899
|
-
_b.label = 1;
|
|
1900
|
-
case 1:
|
|
1901
|
-
_b.trys.push([1, 8, 9, 10]);
|
|
1902
|
-
promptbookSources_1 = __values(promptbookSources), promptbookSources_1_1 = promptbookSources_1.next();
|
|
1903
|
-
_b.label = 2;
|
|
1904
|
-
case 2:
|
|
1905
|
-
if (!!promptbookSources_1_1.done) return [3 /*break*/, 7];
|
|
1906
|
-
source = promptbookSources_1_1.value;
|
|
1907
|
-
promptbook = void 0;
|
|
1908
|
-
if (!(typeof source === 'string')) return [3 /*break*/, 4];
|
|
1909
|
-
return [4 /*yield*/, promptbookStringToJson(source)];
|
|
1910
|
-
case 3:
|
|
1911
|
-
// Note: When directly creating from string, no need to validate the source
|
|
1912
|
-
// The validation is performed always before execution
|
|
1913
|
-
promptbook = _b.sent();
|
|
1914
|
-
return [3 /*break*/, 5];
|
|
1915
|
-
case 4:
|
|
1916
|
-
promptbook = source;
|
|
1917
|
-
_b.label = 5;
|
|
1918
|
-
case 5:
|
|
1919
|
-
promptbooks.push(promptbook);
|
|
1920
|
-
_b.label = 6;
|
|
1921
|
-
case 6:
|
|
1922
|
-
promptbookSources_1_1 = promptbookSources_1.next();
|
|
1923
|
-
return [3 /*break*/, 2];
|
|
1924
|
-
case 7: return [3 /*break*/, 10];
|
|
1925
|
-
case 8:
|
|
1926
|
-
e_1_1 = _b.sent();
|
|
1927
|
-
e_1 = { error: e_1_1 };
|
|
1928
|
-
return [3 /*break*/, 10];
|
|
1929
|
-
case 9:
|
|
1930
|
-
try {
|
|
1931
|
-
if (promptbookSources_1_1 && !promptbookSources_1_1.done && (_a = promptbookSources_1.return)) _a.call(promptbookSources_1);
|
|
1932
|
-
}
|
|
1933
|
-
finally { if (e_1) throw e_1.error; }
|
|
1934
|
-
return [7 /*endfinally*/];
|
|
1935
|
-
case 10: return [2 /*return*/, new (SimplePromptbookLibrary.bind.apply(SimplePromptbookLibrary, __spreadArray([void 0], __read(promptbooks), false)))()];
|
|
1936
|
-
}
|
|
1895
|
+
return __generator(this, function (_a) {
|
|
1896
|
+
return [2 /*return*/, new (SimplePromptbookLibrary.bind.apply(SimplePromptbookLibrary, __spreadArray([void 0], __read(promptbooks), false)))()];
|
|
1937
1897
|
});
|
|
1938
1898
|
});
|
|
1939
1899
|
}
|
|
1940
|
-
/**
|
|
1941
|
-
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks
|
|
1942
|
-
*/
|
|
1943
1900
|
|
|
1944
1901
|
/* tslint:disable */
|
|
1945
1902
|
function normalizeToKebabCase(sentence) {
|
|
@@ -2004,7 +1961,7 @@
|
|
|
2004
1961
|
switch (_b.label) {
|
|
2005
1962
|
case 0:
|
|
2006
1963
|
content = options.content, llmTools = options.llmTools, _a = options.isVerbose, isVerbose = _a === void 0 ? false : _a;
|
|
2007
|
-
return [4 /*yield*/,
|
|
1964
|
+
return [4 /*yield*/, createLibraryFromJson.apply(void 0, __spreadArray([], __read(promptbookLibrary), false))];
|
|
2008
1965
|
case 1:
|
|
2009
1966
|
library = _b.sent();
|
|
2010
1967
|
promptbook = library.getPromptbookByUrl('https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md');
|
|
@@ -3213,19 +3170,19 @@
|
|
|
3213
3170
|
* - Factory function that returns Promise of array of PromptbookJson or PromptbookString
|
|
3214
3171
|
*
|
|
3215
3172
|
* Note: This is useful as internal tool for other constructor functions like
|
|
3216
|
-
* `
|
|
3173
|
+
* `createLibraryFromUrl` or `createLibraryFromDirectory`
|
|
3217
3174
|
* Consider using those functions instead of this one
|
|
3218
3175
|
*
|
|
3219
3176
|
* Note: The function does NOT return promise it returns the library directly which waits for the sources to be resolved
|
|
3220
3177
|
* when error occurs in given promise or factory function, it is thrown during `listPromptbooks` or `getPromptbookByUrl` call
|
|
3221
3178
|
*
|
|
3222
|
-
* Note: Consider using `
|
|
3179
|
+
* Note: Consider using `createLibraryFromDirectory` or `createLibraryFromUrl`
|
|
3223
3180
|
*
|
|
3224
3181
|
* @param promptbookSourcesPromiseOrFactory
|
|
3225
3182
|
* @returns PromptbookLibrary
|
|
3226
3183
|
* @deprecated Do not use, it will became internal tool for other constructor functions
|
|
3227
3184
|
*/
|
|
3228
|
-
function
|
|
3185
|
+
function createLibraryFromPromise(promptbookSourcesPromiseOrFactory) {
|
|
3229
3186
|
var library;
|
|
3230
3187
|
function forSources() {
|
|
3231
3188
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3240,7 +3197,7 @@
|
|
|
3240
3197
|
return [4 /*yield*/, promptbookSourcesPromiseOrFactory];
|
|
3241
3198
|
case 1:
|
|
3242
3199
|
promptbookSources = _a.sent();
|
|
3243
|
-
return [4 /*yield*/,
|
|
3200
|
+
return [4 /*yield*/, createLibraryFromJson.apply(void 0, __spreadArray([], __read(promptbookSources), false))];
|
|
3244
3201
|
case 2:
|
|
3245
3202
|
library = _a.sent();
|
|
3246
3203
|
return [2 /*return*/];
|
|
@@ -3290,9 +3247,6 @@
|
|
|
3290
3247
|
isResponsibleForPrompt: isResponsibleForPrompt,
|
|
3291
3248
|
};
|
|
3292
3249
|
}
|
|
3293
|
-
/**
|
|
3294
|
-
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks
|
|
3295
|
-
*/
|
|
3296
3250
|
|
|
3297
3251
|
/**
|
|
3298
3252
|
* Constructs Promptbook from given directory
|
|
@@ -3303,7 +3257,7 @@
|
|
|
3303
3257
|
* @param options - Misc options for the library
|
|
3304
3258
|
* @returns PromptbookLibrary
|
|
3305
3259
|
*/
|
|
3306
|
-
function
|
|
3260
|
+
function createLibraryFromDirectory(path, options) {
|
|
3307
3261
|
return __awaiter(this, void 0, void 0, function () {
|
|
3308
3262
|
var _a, _b, isRecursive, _c, isVerbose, _d, isLazyLoaded, _e, isCrashOnError, library;
|
|
3309
3263
|
var _this = this;
|
|
@@ -3311,10 +3265,10 @@
|
|
|
3311
3265
|
switch (_f.label) {
|
|
3312
3266
|
case 0:
|
|
3313
3267
|
if (!isRunningInNode()) {
|
|
3314
|
-
throw new Error('Function `
|
|
3268
|
+
throw new Error('Function `createLibraryFromDirectory` can only be run in Node.js environment because it reads the file system.');
|
|
3315
3269
|
}
|
|
3316
3270
|
_a = options || {}, _b = _a.isRecursive, isRecursive = _b === void 0 ? true : _b, _c = _a.isVerbose, isVerbose = _c === void 0 ? false : _c, _d = _a.isLazyLoaded, isLazyLoaded = _d === void 0 ? false : _d, _e = _a.isCrashOnError, isCrashOnError = _e === void 0 ? true : _e;
|
|
3317
|
-
library =
|
|
3271
|
+
library = createLibraryFromPromise(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
3318
3272
|
var fileNames, promptbooks, _loop_1, fileNames_1, fileNames_1_1, fileName, e_1_1;
|
|
3319
3273
|
var e_1, _a;
|
|
3320
3274
|
return __generator(this, function (_b) {
|
|
@@ -3327,7 +3281,7 @@
|
|
|
3327
3281
|
case 1:
|
|
3328
3282
|
fileNames = _b.sent();
|
|
3329
3283
|
if (isVerbose) {
|
|
3330
|
-
console.info('
|
|
3284
|
+
console.info('createLibraryFromDirectory', { path: path, isRecursive: isRecursive, fileNames: fileNames });
|
|
3331
3285
|
}
|
|
3332
3286
|
promptbooks = [];
|
|
3333
3287
|
_loop_1 = function (fileName) {
|
|
@@ -3444,7 +3398,7 @@
|
|
|
3444
3398
|
* @param path
|
|
3445
3399
|
* @param isRecursive
|
|
3446
3400
|
* @returns List of all files in the directory
|
|
3447
|
-
* @private internal function for `
|
|
3401
|
+
* @private internal function for `createLibraryFromDirectory`
|
|
3448
3402
|
*/
|
|
3449
3403
|
function listAllFiles(path$1, isRecursive) {
|
|
3450
3404
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -3502,7 +3456,7 @@
|
|
|
3502
3456
|
*/
|
|
3503
3457
|
|
|
3504
3458
|
exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
|
|
3505
|
-
exports.
|
|
3459
|
+
exports.createLibraryFromDirectory = createLibraryFromDirectory;
|
|
3506
3460
|
|
|
3507
3461
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3508
3462
|
|