@promptbook/node 0.92.0-27 → 0.92.0-29

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 +35 -23
  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 +35 -23
  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-28`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/node",
3
- "version": "0.92.0-27",
3
+ "version": "0.92.0-29",
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/node.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.92.0-27"
54
+ "@promptbook/core": "0.92.0-29"
55
55
  },
56
56
  "dependencies": {
57
57
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -46,7 +46,7 @@
46
46
  * @generated
47
47
  * @see https://github.com/webgptorg/promptbook
48
48
  */
49
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-27';
49
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-29';
50
50
  /**
51
51
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
52
52
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2550,7 +2550,7 @@
2550
2550
  }
2551
2551
 
2552
2552
  /**
2553
- * @@@
2553
+ * Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
2554
2554
  *
2555
2555
  * @public exported from `@promptbook/core`
2556
2556
  */
@@ -3737,8 +3737,12 @@
3737
3737
  */
3738
3738
 
3739
3739
  /**
3740
- * @@@
3740
+ * Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
3741
+ * (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
3742
+ * Throws errors if execution fails after all attempts.
3741
3743
  *
3744
+ * @param options - The options for execution, including task, parameters, pipeline, and configuration.
3745
+ * @returns The result string of the executed task.
3742
3746
  * @private internal utility of `createPipelineExecutor`
3743
3747
  */
3744
3748
  async function executeAttempts(options) {
@@ -4196,8 +4200,12 @@
4196
4200
  }
4197
4201
 
4198
4202
  /**
4199
- * @@@
4203
+ * Returns the context for a given task, typically used to provide additional information or variables
4204
+ * required for the execution of the task within a pipeline. The context is returned as a string value
4205
+ * that may include markdown formatting.
4200
4206
  *
4207
+ * @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
4208
+ * @returns The context as a string, formatted as markdown and parameter value.
4201
4209
  * @private internal utility of `createPipelineExecutor`
4202
4210
  */
4203
4211
  async function getContextForTask(task) {
@@ -4205,7 +4213,7 @@
4205
4213
  }
4206
4214
 
4207
4215
  /**
4208
- * @@@
4216
+ * Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
4209
4217
  *
4210
4218
  * @private internal utility of `createPipelineExecutor`
4211
4219
  */
@@ -4252,9 +4260,8 @@
4252
4260
  }
4253
4261
 
4254
4262
  /**
4255
- * @@@
4256
- *
4257
- * Here is the place where RAG (retrieval-augmented generation) happens
4263
+ * Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
4264
+ * This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
4258
4265
  *
4259
4266
  * @private internal utility of `createPipelineExecutor`
4260
4267
  */
@@ -4473,7 +4480,8 @@
4473
4480
  */
4474
4481
 
4475
4482
  /**
4476
- * @@@
4483
+ * Filters and returns only the output parameters from the provided pipeline execution options.
4484
+ * Adds warnings for any expected output parameters that are missing.
4477
4485
  *
4478
4486
  * @private internal utility of `createPipelineExecutor`
4479
4487
  */
@@ -6777,8 +6785,6 @@
6777
6785
  /**
6778
6786
  * Parses the foreach command
6779
6787
  *
6780
- * Note: @@@ This command is used as foreach for new commands - it should NOT be used in any `.book` file
6781
- *
6782
6788
  * @see `documentationUrl` for more details
6783
6789
  * @public exported from `@promptbook/editable`
6784
6790
  */
@@ -7019,14 +7025,14 @@
7019
7025
  };
7020
7026
 
7021
7027
  /**
7022
- * @@@
7028
+ * Chatbot form factor definition for conversational interfaces that interact with users in a chat-like manner.
7023
7029
  *
7024
7030
  * @public exported from `@promptbook/core`
7025
7031
  */
7026
7032
  const ChatbotFormfactorDefinition = {
7027
7033
  name: 'CHATBOT',
7028
7034
  aliasNames: ['CHAT'],
7029
- description: `@@@`,
7035
+ description: `A chatbot form factor for conversational user interfaces.`,
7030
7036
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/174`,
7031
7037
  pipelineInterface: {
7032
7038
  inputParameters: [
@@ -7059,7 +7065,7 @@
7059
7065
  */
7060
7066
  const CompletionFormfactorDefinition = {
7061
7067
  name: 'COMPLETION',
7062
- description: `@@@`,
7068
+ description: `Completion is formfactor that emulates completion models`,
7063
7069
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/@@`,
7064
7070
  // <- TODO: https://github.com/webgptorg/promptbook/discussions/new?category=concepts
7065
7071
  // "🔠 Completion Formfactor"
@@ -7090,7 +7096,8 @@
7090
7096
  };
7091
7097
 
7092
7098
  /**
7093
- * Generator is form of app that @@@
7099
+ * Generator form factor represents an application that generates content or data based on user input or predefined rules.
7100
+ * This form factor is used for apps that produce outputs, such as text, images, or other media, based on provided input.
7094
7101
  *
7095
7102
  * @public exported from `@promptbook/core`
7096
7103
  */
@@ -7134,13 +7141,13 @@
7134
7141
  */
7135
7142
 
7136
7143
  /**
7137
- * @@@
7144
+ * A generic pipeline
7138
7145
  *
7139
7146
  * @public exported from `@promptbook/core`
7140
7147
  */
7141
7148
  const GenericFormfactorDefinition = {
7142
7149
  name: 'GENERIC',
7143
- description: `@@@`,
7150
+ description: `A generic pipeline`,
7144
7151
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/173`,
7145
7152
  pipelineInterface: GENERIC_PIPELINE_INTERFACE,
7146
7153
  };
@@ -9606,7 +9613,8 @@
9606
9613
  */
9607
9614
 
9608
9615
  /**
9609
- * @@@
9616
+ * Attempts to locate the specified application on a Linux system using the 'which' command.
9617
+ * Returns the path to the executable if found, or null otherwise.
9610
9618
  *
9611
9619
  * @private within the repository
9612
9620
  */
@@ -9673,7 +9681,8 @@
9673
9681
  // eslint-disable-next-line @typescript-eslint/no-var-requires
9674
9682
  const userhome = require('userhome');
9675
9683
  /**
9676
- * @@@
9684
+ * Attempts to locate the specified application on a macOS system by checking standard application paths and using mdfind.
9685
+ * Returns the path to the executable if found, or null otherwise.
9677
9686
  *
9678
9687
  * @private within the repository
9679
9688
  */
@@ -9705,7 +9714,8 @@
9705
9714
  */
9706
9715
 
9707
9716
  /**
9708
- * @@@
9717
+ * Attempts to locate the specified application on a Windows system by searching common installation directories.
9718
+ * Returns the path to the executable if found, or null otherwise.
9709
9719
  *
9710
9720
  * @private within the repository
9711
9721
  */
@@ -9776,7 +9786,8 @@
9776
9786
  */
9777
9787
 
9778
9788
  /**
9779
- * @@@
9789
+ * Locates the LibreOffice executable on the current system by searching platform-specific paths.
9790
+ * Returns the path to the executable if found, or null otherwise.
9780
9791
  *
9781
9792
  * @private within the repository
9782
9793
  */
@@ -9794,7 +9805,8 @@
9794
9805
  */
9795
9806
 
9796
9807
  /**
9797
- * @@@
9808
+ * Locates the Pandoc executable on the current system by searching platform-specific paths.
9809
+ * Returns the path to the executable if found, or null otherwise.
9798
9810
  *
9799
9811
  * @private within the repository
9800
9812
  */
@@ -9812,7 +9824,7 @@
9812
9824
  */
9813
9825
 
9814
9826
  /**
9815
- * @@@
9827
+ * Provides paths to required executables (i.e. as Pandoc and LibreOffice) for Node.js environments.
9816
9828
  *
9817
9829
  * @public exported from `@promptbook/node`
9818
9830
  */