@promptbook/markdown-utils 0.92.0-26 → 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 (50) 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/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
  6. package/esm/typings/src/constants.d.ts +35 -0
  7. package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -1
  8. package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +2 -1
  9. package/esm/typings/src/executables/apps/locatePandoc.d.ts +2 -1
  10. package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +2 -1
  11. package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +2 -1
  12. package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +2 -1
  13. package/esm/typings/src/execution/AbstractTaskResult.d.ts +1 -1
  14. package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +2 -1
  15. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +1 -1
  16. package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +12 -9
  17. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +20 -14
  18. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +7 -6
  19. package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +5 -1
  20. package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +1 -1
  21. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +8 -11
  22. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +4 -4
  23. package/esm/typings/src/execution/utils/uncertainNumber.d.ts +3 -2
  24. package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
  25. package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +16 -7
  26. package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +3 -1
  27. package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +2 -2
  28. package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +1 -1
  29. package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +2 -1
  30. package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +2 -2
  31. package/esm/typings/src/formfactors/index.d.ts +5 -5
  32. package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +4 -2
  33. package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +3 -2
  34. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +4 -3
  35. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +17 -4
  36. package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +11 -4
  37. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +21 -42
  38. package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +5 -1
  39. package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +12 -3
  40. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -0
  41. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  42. package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
  43. package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
  44. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  45. package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -2
  46. package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -2
  47. package/esm/typings/src/version.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/umd/index.umd.js +17 -9
  50. package/umd/index.umd.js.map +1 -1
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.92.0-26';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
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
@@ -4180,7 +4180,7 @@ function union(...sets) {
4180
4180
  }
4181
4181
 
4182
4182
  /**
4183
- * @@@
4183
+ * Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
4184
4184
  *
4185
4185
  * @public exported from `@promptbook/core`
4186
4186
  */
@@ -4776,8 +4776,12 @@ function checkExpectations(expectations, value) {
4776
4776
  */
4777
4777
 
4778
4778
  /**
4779
- * @@@
4779
+ * Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
4780
+ * (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
4781
+ * Throws errors if execution fails after all attempts.
4780
4782
  *
4783
+ * @param options - The options for execution, including task, parameters, pipeline, and configuration.
4784
+ * @returns The result string of the executed task.
4781
4785
  * @private internal utility of `createPipelineExecutor`
4782
4786
  */
4783
4787
  async function executeAttempts(options) {
@@ -5235,8 +5239,12 @@ async function executeFormatSubvalues(options) {
5235
5239
  }
5236
5240
 
5237
5241
  /**
5238
- * @@@
5242
+ * Returns the context for a given task, typically used to provide additional information or variables
5243
+ * required for the execution of the task within a pipeline. The context is returned as a string value
5244
+ * that may include markdown formatting.
5239
5245
  *
5246
+ * @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
5247
+ * @returns The context as a string, formatted as markdown and parameter value.
5240
5248
  * @private internal utility of `createPipelineExecutor`
5241
5249
  */
5242
5250
  async function getContextForTask(task) {
@@ -5244,7 +5252,7 @@ async function getContextForTask(task) {
5244
5252
  }
5245
5253
 
5246
5254
  /**
5247
- * @@@
5255
+ * Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
5248
5256
  *
5249
5257
  * @private internal utility of `createPipelineExecutor`
5250
5258
  */
@@ -5291,9 +5299,8 @@ function knowledgePiecesToString(knowledgePieces) {
5291
5299
  }
5292
5300
 
5293
5301
  /**
5294
- * @@@
5295
- *
5296
- * Here is the place where RAG (retrieval-augmented generation) happens
5302
+ * Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
5303
+ * This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
5297
5304
  *
5298
5305
  * @private internal utility of `createPipelineExecutor`
5299
5306
  */
@@ -5512,7 +5519,8 @@ async function executeTask(options) {
5512
5519
  */
5513
5520
 
5514
5521
  /**
5515
- * @@@
5522
+ * Filters and returns only the output parameters from the provided pipeline execution options.
5523
+ * Adds warnings for any expected output parameters that are missing.
5516
5524
  *
5517
5525
  * @private internal utility of `createPipelineExecutor`
5518
5526
  */