@promptbook/remote-client 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.
- package/esm/index.es.js +30 -19
- 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/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
- 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/execution/utils/uncertainNumber.d.ts +3 -2
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
- package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +16 -7
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +3 -1
- 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 +5 -5
- package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +4 -2
- package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +3 -2
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +4 -3
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +17 -4
- package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +11 -4
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +21 -42
- package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +5 -1
- package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +12 -3
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +5 -0
- 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 +30 -19
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
20
20
|
* @generated
|
|
21
21
|
* @see https://github.com/webgptorg/promptbook
|
|
22
22
|
*/
|
|
23
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
23
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
|
|
24
24
|
/**
|
|
25
25
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
26
26
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1367,7 +1367,7 @@ const sectionCommandParser = {
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Parses the boilerplate command
|
|
1369
1369
|
*
|
|
1370
|
-
* Note:
|
|
1370
|
+
* Note: @@ This command is used as boilerplate for new commands - it should NOT be used in any `.book` file
|
|
1371
1371
|
*
|
|
1372
1372
|
* @see `documentationUrl` for more details
|
|
1373
1373
|
* @private within the commands folder
|
|
@@ -1825,7 +1825,7 @@ const expectCommandParser = {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
1827
|
/**
|
|
1828
|
-
*
|
|
1828
|
+
* Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
|
|
1829
1829
|
*
|
|
1830
1830
|
* @public exported from `@promptbook/core`
|
|
1831
1831
|
*/
|
|
@@ -2650,8 +2650,6 @@ function validateParameterName(parameterName) {
|
|
|
2650
2650
|
/**
|
|
2651
2651
|
* Parses the foreach command
|
|
2652
2652
|
*
|
|
2653
|
-
* Note: @@@ This command is used as foreach for new commands - it should NOT be used in any `.book` file
|
|
2654
|
-
*
|
|
2655
2653
|
* @see `documentationUrl` for more details
|
|
2656
2654
|
* @public exported from `@promptbook/editable`
|
|
2657
2655
|
*/
|
|
@@ -2892,14 +2890,14 @@ const formatCommandParser = {
|
|
|
2892
2890
|
};
|
|
2893
2891
|
|
|
2894
2892
|
/**
|
|
2895
|
-
*
|
|
2893
|
+
* Chatbot form factor definition for conversational interfaces that interact with users in a chat-like manner.
|
|
2896
2894
|
*
|
|
2897
2895
|
* @public exported from `@promptbook/core`
|
|
2898
2896
|
*/
|
|
2899
2897
|
const ChatbotFormfactorDefinition = {
|
|
2900
2898
|
name: 'CHATBOT',
|
|
2901
2899
|
aliasNames: ['CHAT'],
|
|
2902
|
-
description:
|
|
2900
|
+
description: `A chatbot form factor for conversational user interfaces.`,
|
|
2903
2901
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/174`,
|
|
2904
2902
|
pipelineInterface: {
|
|
2905
2903
|
inputParameters: [
|
|
@@ -2932,7 +2930,7 @@ const ChatbotFormfactorDefinition = {
|
|
|
2932
2930
|
*/
|
|
2933
2931
|
const CompletionFormfactorDefinition = {
|
|
2934
2932
|
name: 'COMPLETION',
|
|
2935
|
-
description:
|
|
2933
|
+
description: `Completion is formfactor that emulates completion models`,
|
|
2936
2934
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/@@`,
|
|
2937
2935
|
// <- TODO: https://github.com/webgptorg/promptbook/discussions/new?category=concepts
|
|
2938
2936
|
// "🔠 Completion Formfactor"
|
|
@@ -2963,7 +2961,8 @@ const CompletionFormfactorDefinition = {
|
|
|
2963
2961
|
};
|
|
2964
2962
|
|
|
2965
2963
|
/**
|
|
2966
|
-
* Generator
|
|
2964
|
+
* Generator form factor represents an application that generates content or data based on user input or predefined rules.
|
|
2965
|
+
* This form factor is used for apps that produce outputs, such as text, images, or other media, based on provided input.
|
|
2967
2966
|
*
|
|
2968
2967
|
* @public exported from `@promptbook/core`
|
|
2969
2968
|
*/
|
|
@@ -3007,13 +3006,13 @@ const GENERIC_PIPELINE_INTERFACE = {
|
|
|
3007
3006
|
*/
|
|
3008
3007
|
|
|
3009
3008
|
/**
|
|
3010
|
-
*
|
|
3009
|
+
* A generic pipeline
|
|
3011
3010
|
*
|
|
3012
3011
|
* @public exported from `@promptbook/core`
|
|
3013
3012
|
*/
|
|
3014
3013
|
const GenericFormfactorDefinition = {
|
|
3015
3014
|
name: 'GENERIC',
|
|
3016
|
-
description:
|
|
3015
|
+
description: `A generic pipeline`,
|
|
3017
3016
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/173`,
|
|
3018
3017
|
pipelineInterface: GENERIC_PIPELINE_INTERFACE,
|
|
3019
3018
|
};
|
|
@@ -3048,17 +3047,20 @@ const ImageGeneratorFormfactorDefinition = {
|
|
|
3048
3047
|
};
|
|
3049
3048
|
|
|
3050
3049
|
/**
|
|
3051
|
-
* Matcher is form of app that
|
|
3050
|
+
* Matcher is form of app that evaluates (spreadsheet) content against defined criteria or patterns,
|
|
3051
|
+
* determining if it matches or meets specific requirements. Used for classification,
|
|
3052
|
+
* validation, filtering, and quality assessment of inputs.
|
|
3052
3053
|
*
|
|
3053
3054
|
* @public exported from `@promptbook/core`
|
|
3054
3055
|
*/
|
|
3055
3056
|
const MatcherFormfactorDefinition = {
|
|
3056
3057
|
name: 'EXPERIMENTAL_MATCHER',
|
|
3057
|
-
description:
|
|
3058
|
+
description: `An evaluation system that determines whether content meets specific criteria or patterns.
|
|
3059
|
+
Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.`,
|
|
3058
3060
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/177`,
|
|
3059
3061
|
pipelineInterface: {
|
|
3060
3062
|
inputParameters: [
|
|
3061
|
-
/*
|
|
3063
|
+
/* Input parameters for content to be matched and criteria to match against */
|
|
3062
3064
|
{
|
|
3063
3065
|
name: 'nonce',
|
|
3064
3066
|
description: 'Just to prevent EXPERIMENTAL_MATCHER to be set as implicit formfactor',
|
|
@@ -3067,7 +3069,7 @@ const MatcherFormfactorDefinition = {
|
|
|
3067
3069
|
},
|
|
3068
3070
|
],
|
|
3069
3071
|
outputParameters: [
|
|
3070
|
-
/*
|
|
3072
|
+
/* Output parameters containing match results, confidence scores, and relevant metadata */
|
|
3071
3073
|
],
|
|
3072
3074
|
},
|
|
3073
3075
|
};
|
|
@@ -3104,13 +3106,16 @@ const SheetsFormfactorDefinition = {
|
|
|
3104
3106
|
};
|
|
3105
3107
|
|
|
3106
3108
|
/**
|
|
3107
|
-
* Translator is form of app that
|
|
3109
|
+
* Translator is form of app that transforms input text from one form to another,
|
|
3110
|
+
* such as language translation, style conversion, tone modification, or other text transformations.
|
|
3108
3111
|
*
|
|
3109
3112
|
* @public exported from `@promptbook/core`
|
|
3110
3113
|
*/
|
|
3111
3114
|
const TranslatorFormfactorDefinition = {
|
|
3112
3115
|
name: 'TRANSLATOR',
|
|
3113
|
-
description:
|
|
3116
|
+
description: `A text transformation system that converts input content into different forms,
|
|
3117
|
+
including language translations, paraphrasing, style conversions, and tone adjustments.
|
|
3118
|
+
This form factor takes one input and produces one transformed output.`,
|
|
3114
3119
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/175`,
|
|
3115
3120
|
pipelineInterface: {
|
|
3116
3121
|
inputParameters: [
|
|
@@ -4269,7 +4274,10 @@ function parseCommand(raw, usagePlace) {
|
|
|
4269
4274
|
`));
|
|
4270
4275
|
}
|
|
4271
4276
|
/**
|
|
4272
|
-
*
|
|
4277
|
+
* Generates a markdown-formatted message listing all supported commands
|
|
4278
|
+
* with their descriptions and documentation links
|
|
4279
|
+
*
|
|
4280
|
+
* @returns A formatted markdown string containing all available commands and their details
|
|
4273
4281
|
*/
|
|
4274
4282
|
function getSupportedCommandsMessage() {
|
|
4275
4283
|
return COMMANDS.flatMap(({ name, aliasNames, description, documentationUrl }) =>
|
|
@@ -4280,7 +4288,10 @@ function getSupportedCommandsMessage() {
|
|
|
4280
4288
|
]).join('\n');
|
|
4281
4289
|
}
|
|
4282
4290
|
/**
|
|
4283
|
-
*
|
|
4291
|
+
* Attempts to parse a command variant using the provided input parameters
|
|
4292
|
+
*
|
|
4293
|
+
* @param input Object containing command parsing information including raw command text and normalized values
|
|
4294
|
+
* @returns A parsed Command object if successful, or null if the command cannot be parsed
|
|
4284
4295
|
*/
|
|
4285
4296
|
function parseCommandVariant(input) {
|
|
4286
4297
|
const { commandNameRaw, usagePlace, normalized, args, raw, rawArgs } = input;
|