@promptbook/node 0.71.0-15 → 0.71.0-17
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import colors from 'colors';
|
|
2
|
-
import {
|
|
2
|
+
import { stat, access, constants, readFile, readdir, writeFile, mkdir, unlink } from 'fs/promises';
|
|
3
3
|
import { join, basename, dirname } from 'path';
|
|
4
4
|
import spaceTrim$1, { spaceTrim } from 'spacetrim';
|
|
5
5
|
import { format } from 'prettier';
|
|
@@ -17,7 +17,7 @@ import { spawn } from 'child_process';
|
|
|
17
17
|
/**
|
|
18
18
|
* The version of the Promptbook library
|
|
19
19
|
*/
|
|
20
|
-
var PROMPTBOOK_VERSION = '0.71.0-
|
|
20
|
+
var PROMPTBOOK_VERSION = '0.71.0-16';
|
|
21
21
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
22
22
|
|
|
23
23
|
/*! *****************************************************************************
|
|
@@ -5129,7 +5129,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5129
5129
|
switch (_c.label) {
|
|
5130
5130
|
case 0:
|
|
5131
5131
|
_b = (_a = JSON).parse;
|
|
5132
|
-
return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
5132
|
+
return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
5133
5133
|
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
|
5134
5134
|
}
|
|
5135
5135
|
});
|
|
@@ -5139,7 +5139,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5139
5139
|
return __awaiter(this, void 0, void 0, function () {
|
|
5140
5140
|
return __generator(this, function (_a) {
|
|
5141
5141
|
switch (_a.label) {
|
|
5142
|
-
case 0: return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
5142
|
+
case 0: return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
5143
5143
|
case 1: return [2 /*return*/, _a.sent()];
|
|
5144
5144
|
}
|
|
5145
5145
|
});
|