@promptbook/website-crawler 0.100.0-25 → 0.100.0-28

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
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-25';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-28';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -4957,7 +4957,7 @@ function validatePromptResult(options) {
4957
4957
  */
4958
4958
  async function executeAttempts(options) {
4959
4959
  const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
4960
- preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
4960
+ preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
4961
4961
  const $ongoingTaskResult = {
4962
4962
  $result: null,
4963
4963
  $resultString: null,
@@ -5201,6 +5201,10 @@ async function executeAttempts(options) {
5201
5201
  result: $ongoingTaskResult.$resultString,
5202
5202
  error: error,
5203
5203
  });
5204
+ // Report failed attempt
5205
+ onProgress({
5206
+ errors: [error],
5207
+ });
5204
5208
  }
5205
5209
  finally {
5206
5210
  if (!isJokerAttempt &&