@promptbook/markdown-utils 0.85.0-0 → 0.85.0-1
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 +5 -5
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +2 -0
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +6 -4
- package/package.json +1 -1
- package/umd/index.umd.js +14 -14
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { randomBytes } from 'crypto';
|
|
|
6
6
|
import { forTime } from 'waitasecond';
|
|
7
7
|
import hexEncoder from 'crypto-js/enc-hex';
|
|
8
8
|
import sha256 from 'crypto-js/sha256';
|
|
9
|
-
import { basename, join, dirname } from 'path';
|
|
9
|
+
import { basename, join, dirname } from 'node:path';
|
|
10
10
|
import { SHA256 } from 'crypto-js';
|
|
11
11
|
import { lookup, extension } from 'mime-types';
|
|
12
12
|
import { unparse, parse } from 'papaparse';
|
|
@@ -25,7 +25,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.
|
|
28
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-0';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2191,9 +2191,9 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2191
2191
|
function createTask(options) {
|
|
2192
2192
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2193
2193
|
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(256 /* <- TODO: !!! To global config */));
|
|
2194
|
-
var
|
|
2194
|
+
var partialResultSubject = new BehaviorSubject({});
|
|
2195
2195
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2196
|
-
|
|
2196
|
+
partialResultSubject.next(newOngoingResult);
|
|
2197
2197
|
});
|
|
2198
2198
|
function asPromise(options) {
|
|
2199
2199
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2218,7 +2218,7 @@ function createTask(options) {
|
|
|
2218
2218
|
taskId: taskId,
|
|
2219
2219
|
asPromise: asPromise,
|
|
2220
2220
|
asObservable: function () {
|
|
2221
|
-
return concat(
|
|
2221
|
+
return concat(partialResultSubject.asObservable(), from(asPromise({
|
|
2222
2222
|
isCrashedOnError: true,
|
|
2223
2223
|
})));
|
|
2224
2224
|
},
|