@promptbook/website-crawler 0.92.0-27 → 0.92.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.
Files changed (38) hide show
  1. package/esm/index.es.js +17 -9
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +4 -4
  4. package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +0 -2
  5. package/esm/typings/src/constants.d.ts +35 -0
  6. package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -1
  7. package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +2 -1
  8. package/esm/typings/src/executables/apps/locatePandoc.d.ts +2 -1
  9. package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +2 -1
  10. package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +2 -1
  11. package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +2 -1
  12. package/esm/typings/src/execution/AbstractTaskResult.d.ts +1 -1
  13. package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +2 -1
  14. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +1 -1
  15. package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +12 -9
  16. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +20 -14
  17. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +7 -6
  18. package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +5 -1
  19. package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +1 -1
  20. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +8 -11
  21. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +4 -4
  22. package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
  23. package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +2 -2
  24. package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +1 -1
  25. package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +2 -1
  26. package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +2 -2
  27. package/esm/typings/src/formfactors/index.d.ts +3 -3
  28. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +4 -37
  29. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  30. package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
  31. package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
  32. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  33. package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -2
  34. package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -2
  35. package/esm/typings/src/version.d.ts +1 -1
  36. package/package.json +2 -2
  37. package/umd/index.umd.js +17 -9
  38. package/umd/index.umd.js.map +1 -1
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.92.0-27';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.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
@@ -4108,7 +4108,7 @@ function union(...sets) {
4108
4108
  }
4109
4109
 
4110
4110
  /**
4111
- * @@@
4111
+ * Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
4112
4112
  *
4113
4113
  * @public exported from `@promptbook/core`
4114
4114
  */
@@ -4806,8 +4806,12 @@ function checkExpectations(expectations, value) {
4806
4806
  */
4807
4807
 
4808
4808
  /**
4809
- * @@@
4809
+ * Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
4810
+ * (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
4811
+ * Throws errors if execution fails after all attempts.
4810
4812
  *
4813
+ * @param options - The options for execution, including task, parameters, pipeline, and configuration.
4814
+ * @returns The result string of the executed task.
4811
4815
  * @private internal utility of `createPipelineExecutor`
4812
4816
  */
4813
4817
  async function executeAttempts(options) {
@@ -5265,8 +5269,12 @@ async function executeFormatSubvalues(options) {
5265
5269
  }
5266
5270
 
5267
5271
  /**
5268
- * @@@
5272
+ * Returns the context for a given task, typically used to provide additional information or variables
5273
+ * required for the execution of the task within a pipeline. The context is returned as a string value
5274
+ * that may include markdown formatting.
5269
5275
  *
5276
+ * @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
5277
+ * @returns The context as a string, formatted as markdown and parameter value.
5270
5278
  * @private internal utility of `createPipelineExecutor`
5271
5279
  */
5272
5280
  async function getContextForTask(task) {
@@ -5274,7 +5282,7 @@ async function getContextForTask(task) {
5274
5282
  }
5275
5283
 
5276
5284
  /**
5277
- * @@@
5285
+ * Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
5278
5286
  *
5279
5287
  * @private internal utility of `createPipelineExecutor`
5280
5288
  */
@@ -5321,9 +5329,8 @@ function knowledgePiecesToString(knowledgePieces) {
5321
5329
  }
5322
5330
 
5323
5331
  /**
5324
- * @@@
5325
- *
5326
- * Here is the place where RAG (retrieval-augmented generation) happens
5332
+ * Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
5333
+ * This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
5327
5334
  *
5328
5335
  * @private internal utility of `createPipelineExecutor`
5329
5336
  */
@@ -5542,7 +5549,8 @@ async function executeTask(options) {
5542
5549
  */
5543
5550
 
5544
5551
  /**
5545
- * @@@
5552
+ * Filters and returns only the output parameters from the provided pipeline execution options.
5553
+ * Adds warnings for any expected output parameters that are missing.
5546
5554
  *
5547
5555
  * @private internal utility of `createPipelineExecutor`
5548
5556
  */