@promptbook/remote-server 0.100.0-25 → 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 CHANGED
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
33
33
  * @generated
34
34
  * @see https://github.com/webgptorg/promptbook
35
35
  */
36
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-25';
36
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-26';
37
37
  /**
38
38
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
39
39
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5282,7 +5282,7 @@ function validatePromptResult(options) {
5282
5282
  */
5283
5283
  async function executeAttempts(options) {
5284
5284
  const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
5285
- preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
5285
+ preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
5286
5286
  const $ongoingTaskResult = {
5287
5287
  $result: null,
5288
5288
  $resultString: null,
@@ -5526,6 +5526,8 @@ async function executeAttempts(options) {
5526
5526
  result: $ongoingTaskResult.$resultString,
5527
5527
  error: error,
5528
5528
  });
5529
+ // Note: Calling void function to signal progress (mutation of `$ongoingTaskResult`) - TODO: !!!! Is this working
5530
+ onProgress({});
5529
5531
  }
5530
5532
  finally {
5531
5533
  if (!isJokerAttempt &&