@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
package/esm/index.es.js
CHANGED
|
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
33
33
|
* @generated
|
|
34
34
|
* @see https://github.com/webgptorg/promptbook
|
|
35
35
|
*/
|
|
36
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
36
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
|
|
37
37
|
/**
|
|
38
38
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
39
39
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -872,7 +872,8 @@ function $execCommand(options) {
|
|
|
872
872
|
*/
|
|
873
873
|
|
|
874
874
|
/**
|
|
875
|
-
*
|
|
875
|
+
* Attempts to locate the specified application on a Linux system using the 'which' command.
|
|
876
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
876
877
|
*
|
|
877
878
|
* @private within the repository
|
|
878
879
|
*/
|
|
@@ -939,7 +940,8 @@ async function isExecutable(path, fs) {
|
|
|
939
940
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
940
941
|
const userhome = require('userhome');
|
|
941
942
|
/**
|
|
942
|
-
*
|
|
943
|
+
* Attempts to locate the specified application on a macOS system by checking standard application paths and using mdfind.
|
|
944
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
943
945
|
*
|
|
944
946
|
* @private within the repository
|
|
945
947
|
*/
|
|
@@ -971,7 +973,8 @@ async function locateAppOnMacOs({ macOsName, }) {
|
|
|
971
973
|
*/
|
|
972
974
|
|
|
973
975
|
/**
|
|
974
|
-
*
|
|
976
|
+
* Attempts to locate the specified application on a Windows system by searching common installation directories.
|
|
977
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
975
978
|
*
|
|
976
979
|
* @private within the repository
|
|
977
980
|
*/
|
|
@@ -1042,7 +1045,8 @@ function locateApp(options) {
|
|
|
1042
1045
|
*/
|
|
1043
1046
|
|
|
1044
1047
|
/**
|
|
1045
|
-
*
|
|
1048
|
+
* Locates the LibreOffice executable on the current system by searching platform-specific paths.
|
|
1049
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
1046
1050
|
*
|
|
1047
1051
|
* @private within the repository
|
|
1048
1052
|
*/
|
|
@@ -1060,7 +1064,8 @@ function locateLibreoffice() {
|
|
|
1060
1064
|
*/
|
|
1061
1065
|
|
|
1062
1066
|
/**
|
|
1063
|
-
*
|
|
1067
|
+
* Locates the Pandoc executable on the current system by searching platform-specific paths.
|
|
1068
|
+
* Returns the path to the executable if found, or null otherwise.
|
|
1064
1069
|
*
|
|
1065
1070
|
* @private within the repository
|
|
1066
1071
|
*/
|
|
@@ -1078,7 +1083,7 @@ function locatePandoc() {
|
|
|
1078
1083
|
*/
|
|
1079
1084
|
|
|
1080
1085
|
/**
|
|
1081
|
-
*
|
|
1086
|
+
* Provides paths to required executables (i.e. as Pandoc and LibreOffice) for Node.js environments.
|
|
1082
1087
|
*
|
|
1083
1088
|
* @public exported from `@promptbook/node`
|
|
1084
1089
|
*/
|
|
@@ -4427,7 +4432,7 @@ function union(...sets) {
|
|
|
4427
4432
|
}
|
|
4428
4433
|
|
|
4429
4434
|
/**
|
|
4430
|
-
*
|
|
4435
|
+
* Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
|
|
4431
4436
|
*
|
|
4432
4437
|
* @public exported from `@promptbook/core`
|
|
4433
4438
|
*/
|
|
@@ -5142,8 +5147,12 @@ function checkExpectations(expectations, value) {
|
|
|
5142
5147
|
*/
|
|
5143
5148
|
|
|
5144
5149
|
/**
|
|
5145
|
-
*
|
|
5150
|
+
* Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
|
|
5151
|
+
* (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
|
|
5152
|
+
* Throws errors if execution fails after all attempts.
|
|
5146
5153
|
*
|
|
5154
|
+
* @param options - The options for execution, including task, parameters, pipeline, and configuration.
|
|
5155
|
+
* @returns The result string of the executed task.
|
|
5147
5156
|
* @private internal utility of `createPipelineExecutor`
|
|
5148
5157
|
*/
|
|
5149
5158
|
async function executeAttempts(options) {
|
|
@@ -5601,8 +5610,12 @@ async function executeFormatSubvalues(options) {
|
|
|
5601
5610
|
}
|
|
5602
5611
|
|
|
5603
5612
|
/**
|
|
5604
|
-
*
|
|
5613
|
+
* Returns the context for a given task, typically used to provide additional information or variables
|
|
5614
|
+
* required for the execution of the task within a pipeline. The context is returned as a string value
|
|
5615
|
+
* that may include markdown formatting.
|
|
5605
5616
|
*
|
|
5617
|
+
* @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
|
|
5618
|
+
* @returns The context as a string, formatted as markdown and parameter value.
|
|
5606
5619
|
* @private internal utility of `createPipelineExecutor`
|
|
5607
5620
|
*/
|
|
5608
5621
|
async function getContextForTask(task) {
|
|
@@ -5610,7 +5623,7 @@ async function getContextForTask(task) {
|
|
|
5610
5623
|
}
|
|
5611
5624
|
|
|
5612
5625
|
/**
|
|
5613
|
-
*
|
|
5626
|
+
* Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
|
|
5614
5627
|
*
|
|
5615
5628
|
* @private internal utility of `createPipelineExecutor`
|
|
5616
5629
|
*/
|
|
@@ -5657,9 +5670,8 @@ function knowledgePiecesToString(knowledgePieces) {
|
|
|
5657
5670
|
}
|
|
5658
5671
|
|
|
5659
5672
|
/**
|
|
5660
|
-
*
|
|
5661
|
-
*
|
|
5662
|
-
* Here is the place where RAG (retrieval-augmented generation) happens
|
|
5673
|
+
* Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
|
|
5674
|
+
* This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
|
|
5663
5675
|
*
|
|
5664
5676
|
* @private internal utility of `createPipelineExecutor`
|
|
5665
5677
|
*/
|
|
@@ -5878,7 +5890,8 @@ async function executeTask(options) {
|
|
|
5878
5890
|
*/
|
|
5879
5891
|
|
|
5880
5892
|
/**
|
|
5881
|
-
*
|
|
5893
|
+
* Filters and returns only the output parameters from the provided pipeline execution options.
|
|
5894
|
+
* Adds warnings for any expected output parameters that are missing.
|
|
5882
5895
|
*
|
|
5883
5896
|
* @private internal utility of `createPipelineExecutor`
|
|
5884
5897
|
*/
|