@promptbook/markdown-utils 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
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-25';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-26';
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
@@ -4911,7 +4911,7 @@ function validatePromptResult(options) {
4911
4911
  */
4912
4912
  async function executeAttempts(options) {
4913
4913
  const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
4914
- preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
4914
+ preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
4915
4915
  const $ongoingTaskResult = {
4916
4916
  $result: null,
4917
4917
  $resultString: null,
@@ -5155,6 +5155,8 @@ async function executeAttempts(options) {
5155
5155
  result: $ongoingTaskResult.$resultString,
5156
5156
  error: error,
5157
5157
  });
5158
+ // Note: Calling void function to signal progress (mutation of `$ongoingTaskResult`) - TODO: !!!! Is this working
5159
+ onProgress({});
5158
5160
  }
5159
5161
  finally {
5160
5162
  if (!isJokerAttempt &&