@promptbook/remote-server 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.
- package/esm/index.es.js +28 -15
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +4 -4
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +0 -2
- package/esm/typings/src/constants.d.ts +35 -0
- package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -1
- package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +2 -1
- package/esm/typings/src/executables/apps/locatePandoc.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +2 -1
- package/esm/typings/src/execution/AbstractTaskResult.d.ts +1 -1
- package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +2 -1
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +12 -9
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +20 -14
- package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +7 -6
- package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +5 -1
- package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +8 -11
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +4 -4
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
- package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +2 -2
- package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +1 -1
- package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +2 -1
- package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +2 -2
- package/esm/typings/src/formfactors/index.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +4 -37
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +28 -15
- 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
|
-
*
|
|
13
|
+
* Registration of the OpenAI Assistant metadata
|
|
14
14
|
*
|
|
15
|
-
* Note: [🏐] Configurations registrations are done in
|
|
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
|
-
*
|
|
13
|
+
* Registration of the OpenAI Assistant provider
|
|
14
14
|
*
|
|
15
|
-
* Note: [🏐] Configurations registrations are done in
|
|
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-
|
|
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/remote-server",
|
|
3
|
-
"version": "0.92.0-
|
|
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/remote-server.index.d.ts",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@promptbook/core": "0.92.0-
|
|
54
|
+
"@promptbook/core": "0.92.0-28"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -887,7 +887,8 @@
|
|
|
887
887
|
*/
|
|
888
888
|
|
|
889
889
|
/**
|
|
890
|
-
*
|
|
890
|
+
* Attempts to locate the specified application on a Linux system using the 'which' command.
|
|
891
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
891
892
|
*
|
|
892
893
|
* @private within the repository
|
|
893
894
|
*/
|
|
@@ -954,7 +955,8 @@
|
|
|
954
955
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
955
956
|
const userhome = require('userhome');
|
|
956
957
|
/**
|
|
957
|
-
*
|
|
958
|
+
* Attempts to locate the specified application on a macOS system by checking standard application paths and using mdfind.
|
|
959
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
958
960
|
*
|
|
959
961
|
* @private within the repository
|
|
960
962
|
*/
|
|
@@ -986,7 +988,8 @@
|
|
|
986
988
|
*/
|
|
987
989
|
|
|
988
990
|
/**
|
|
989
|
-
*
|
|
991
|
+
* Attempts to locate the specified application on a Windows system by searching common installation directories.
|
|
992
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
990
993
|
*
|
|
991
994
|
* @private within the repository
|
|
992
995
|
*/
|
|
@@ -1057,7 +1060,8 @@
|
|
|
1057
1060
|
*/
|
|
1058
1061
|
|
|
1059
1062
|
/**
|
|
1060
|
-
*
|
|
1063
|
+
* Locates the LibreOffice executable on the current system by searching platform-specific paths.
|
|
1064
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
1061
1065
|
*
|
|
1062
1066
|
* @private within the repository
|
|
1063
1067
|
*/
|
|
@@ -1075,7 +1079,8 @@
|
|
|
1075
1079
|
*/
|
|
1076
1080
|
|
|
1077
1081
|
/**
|
|
1078
|
-
*
|
|
1082
|
+
* Locates the Pandoc executable on the current system by searching platform-specific paths.
|
|
1083
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
1079
1084
|
*
|
|
1080
1085
|
* @private within the repository
|
|
1081
1086
|
*/
|
|
@@ -1093,7 +1098,7 @@
|
|
|
1093
1098
|
*/
|
|
1094
1099
|
|
|
1095
1100
|
/**
|
|
1096
|
-
*
|
|
1101
|
+
* Provides paths to required executables (i.e. as Pandoc and LibreOffice) for Node.js environments.
|
|
1097
1102
|
*
|
|
1098
1103
|
* @public exported from `@promptbook/node`
|
|
1099
1104
|
*/
|
|
@@ -4442,7 +4447,7 @@
|
|
|
4442
4447
|
}
|
|
4443
4448
|
|
|
4444
4449
|
/**
|
|
4445
|
-
*
|
|
4450
|
+
* Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
|
|
4446
4451
|
*
|
|
4447
4452
|
* @public exported from `@promptbook/core`
|
|
4448
4453
|
*/
|
|
@@ -5157,8 +5162,12 @@
|
|
|
5157
5162
|
*/
|
|
5158
5163
|
|
|
5159
5164
|
/**
|
|
5160
|
-
*
|
|
5165
|
+
* Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
|
|
5166
|
+
* (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
|
|
5167
|
+
* Throws errors if execution fails after all attempts.
|
|
5161
5168
|
*
|
|
5169
|
+
* @param options - The options for execution, including task, parameters, pipeline, and configuration.
|
|
5170
|
+
* @returns The result string of the executed task.
|
|
5162
5171
|
* @private internal utility of `createPipelineExecutor`
|
|
5163
5172
|
*/
|
|
5164
5173
|
async function executeAttempts(options) {
|
|
@@ -5616,8 +5625,12 @@
|
|
|
5616
5625
|
}
|
|
5617
5626
|
|
|
5618
5627
|
/**
|
|
5619
|
-
*
|
|
5628
|
+
* Returns the context for a given task, typically used to provide additional information or variables
|
|
5629
|
+
* required for the execution of the task within a pipeline. The context is returned as a string value
|
|
5630
|
+
* that may include markdown formatting.
|
|
5620
5631
|
*
|
|
5632
|
+
* @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
|
|
5633
|
+
* @returns The context as a string, formatted as markdown and parameter value.
|
|
5621
5634
|
* @private internal utility of `createPipelineExecutor`
|
|
5622
5635
|
*/
|
|
5623
5636
|
async function getContextForTask(task) {
|
|
@@ -5625,7 +5638,7 @@
|
|
|
5625
5638
|
}
|
|
5626
5639
|
|
|
5627
5640
|
/**
|
|
5628
|
-
*
|
|
5641
|
+
* Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
|
|
5629
5642
|
*
|
|
5630
5643
|
* @private internal utility of `createPipelineExecutor`
|
|
5631
5644
|
*/
|
|
@@ -5672,9 +5685,8 @@
|
|
|
5672
5685
|
}
|
|
5673
5686
|
|
|
5674
5687
|
/**
|
|
5675
|
-
*
|
|
5676
|
-
*
|
|
5677
|
-
* Here is the place where RAG (retrieval-augmented generation) happens
|
|
5688
|
+
* Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
|
|
5689
|
+
* This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
|
|
5678
5690
|
*
|
|
5679
5691
|
* @private internal utility of `createPipelineExecutor`
|
|
5680
5692
|
*/
|
|
@@ -5893,7 +5905,8 @@
|
|
|
5893
5905
|
*/
|
|
5894
5906
|
|
|
5895
5907
|
/**
|
|
5896
|
-
*
|
|
5908
|
+
* Filters and returns only the output parameters from the provided pipeline execution options.
|
|
5909
|
+
* Adds warnings for any expected output parameters that are missing.
|
|
5897
5910
|
*
|
|
5898
5911
|
* @private internal utility of `createPipelineExecutor`
|
|
5899
5912
|
*/
|