@promptbook/legacy-documents 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
@@ -10,9 +10,9 @@ import type { Registration } from '../../utils/$Register';
10
10
  */
11
11
  export declare const _OpenAiMetadataRegistration: Registration;
12
12
  /**
13
- * @@@ registration1 of default configuration for Open AI
13
+ * Registration of the OpenAI Assistant metadata
14
14
  *
15
- * Note: [🏐] Configurations registrations are done in @@@ BUT constructor @@@
15
+ * Note: [🏐] Configurations registrations are done in the metadata registration section, but the constructor registration is handled separately.
16
16
  *
17
17
  * @public exported from `@promptbook/core`
18
18
  * @public exported from `@promptbook/wizzard`
@@ -10,9 +10,9 @@ import type { Registration } from '../../utils/$Register';
10
10
  */
11
11
  export declare const _OpenAiRegistration: Registration;
12
12
  /**
13
- * @@@ registration2
13
+ * Registration of the OpenAI Assistant provider
14
14
  *
15
- * Note: [🏐] Configurations registrations are done in @@@ BUT constructor @@@
15
+ * Note: [🏐] Configurations registrations are done in register-constructor.ts BUT constructor register-constructor.ts
16
16
  *
17
17
  * @public exported from `@promptbook/openai`
18
18
  * @public exported from `@promptbook/wizzard`
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.92.0-26`).
18
+ * It follows semantic versioning (e.g., `0.92.0-27`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/legacy-documents",
3
- "version": "0.92.0-27",
3
+ "version": "0.92.0-28",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "module": "./esm/index.es.js",
52
52
  "typings": "./esm/typings/src/_packages/legacy-documents.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.92.0-27"
54
+ "@promptbook/core": "0.92.0-28"
55
55
  },
56
56
  "dependencies": {
57
57
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -26,7 +26,7 @@
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-27';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -4256,7 +4256,7 @@
4256
4256
  }
4257
4257
 
4258
4258
  /**
4259
- * @@@
4259
+ * Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
4260
4260
  *
4261
4261
  * @public exported from `@promptbook/core`
4262
4262
  */
@@ -4954,8 +4954,12 @@
4954
4954
  */
4955
4955
 
4956
4956
  /**
4957
- * @@@
4957
+ * Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
4958
+ * (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
4959
+ * Throws errors if execution fails after all attempts.
4958
4960
  *
4961
+ * @param options - The options for execution, including task, parameters, pipeline, and configuration.
4962
+ * @returns The result string of the executed task.
4959
4963
  * @private internal utility of `createPipelineExecutor`
4960
4964
  */
4961
4965
  async function executeAttempts(options) {
@@ -5413,8 +5417,12 @@
5413
5417
  }
5414
5418
 
5415
5419
  /**
5416
- * @@@
5420
+ * Returns the context for a given task, typically used to provide additional information or variables
5421
+ * required for the execution of the task within a pipeline. The context is returned as a string value
5422
+ * that may include markdown formatting.
5417
5423
  *
5424
+ * @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
5425
+ * @returns The context as a string, formatted as markdown and parameter value.
5418
5426
  * @private internal utility of `createPipelineExecutor`
5419
5427
  */
5420
5428
  async function getContextForTask(task) {
@@ -5422,7 +5430,7 @@
5422
5430
  }
5423
5431
 
5424
5432
  /**
5425
- * @@@
5433
+ * Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
5426
5434
  *
5427
5435
  * @private internal utility of `createPipelineExecutor`
5428
5436
  */
@@ -5469,9 +5477,8 @@
5469
5477
  }
5470
5478
 
5471
5479
  /**
5472
- * @@@
5473
- *
5474
- * Here is the place where RAG (retrieval-augmented generation) happens
5480
+ * Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
5481
+ * This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
5475
5482
  *
5476
5483
  * @private internal utility of `createPipelineExecutor`
5477
5484
  */
@@ -5690,7 +5697,8 @@
5690
5697
  */
5691
5698
 
5692
5699
  /**
5693
- * @@@
5700
+ * Filters and returns only the output parameters from the provided pipeline execution options.
5701
+ * Adds warnings for any expected output parameters that are missing.
5694
5702
  *
5695
5703
  * @private internal utility of `createPipelineExecutor`
5696
5704
  */