@promptbook/node 0.100.0-24 → 0.100.0-26
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 +4 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +3 -1
- package/esm/typings/src/config.d.ts +6 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +6 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +4 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -30,7 +30,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-26';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3808,7 +3808,7 @@ function validatePromptResult(options) {
|
|
|
3808
3808
|
*/
|
|
3809
3809
|
async function executeAttempts(options) {
|
|
3810
3810
|
const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
|
|
3811
|
-
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
|
|
3811
|
+
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
|
|
3812
3812
|
const $ongoingTaskResult = {
|
|
3813
3813
|
$result: null,
|
|
3814
3814
|
$resultString: null,
|
|
@@ -4052,6 +4052,8 @@ async function executeAttempts(options) {
|
|
|
4052
4052
|
result: $ongoingTaskResult.$resultString,
|
|
4053
4053
|
error: error,
|
|
4054
4054
|
});
|
|
4055
|
+
// Note: Calling void function to signal progress (mutation of `$ongoingTaskResult`) - TODO: !!!! Is this working
|
|
4056
|
+
onProgress({});
|
|
4055
4057
|
}
|
|
4056
4058
|
finally {
|
|
4057
4059
|
if (!isJokerAttempt &&
|