@promptbook/remote-client 0.92.0-25 → 0.92.0-27
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 +22 -10
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -1
- package/esm/typings/src/constants.d.ts +6 -0
- package/esm/typings/src/execution/utils/uncertainNumber.d.ts +3 -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/index.d.ts +2 -2
- 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 +17 -5
- 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/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +22 -10
- 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-27';
|
|
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
|
|
@@ -3048,17 +3048,20 @@ const ImageGeneratorFormfactorDefinition = {
|
|
|
3048
3048
|
};
|
|
3049
3049
|
|
|
3050
3050
|
/**
|
|
3051
|
-
* Matcher is form of app that
|
|
3051
|
+
* Matcher is form of app that evaluates (spreadsheet) content against defined criteria or patterns,
|
|
3052
|
+
* determining if it matches or meets specific requirements. Used for classification,
|
|
3053
|
+
* validation, filtering, and quality assessment of inputs.
|
|
3052
3054
|
*
|
|
3053
3055
|
* @public exported from `@promptbook/core`
|
|
3054
3056
|
*/
|
|
3055
3057
|
const MatcherFormfactorDefinition = {
|
|
3056
3058
|
name: 'EXPERIMENTAL_MATCHER',
|
|
3057
|
-
description:
|
|
3059
|
+
description: `An evaluation system that determines whether content meets specific criteria or patterns.
|
|
3060
|
+
Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.`,
|
|
3058
3061
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/177`,
|
|
3059
3062
|
pipelineInterface: {
|
|
3060
3063
|
inputParameters: [
|
|
3061
|
-
/*
|
|
3064
|
+
/* Input parameters for content to be matched and criteria to match against */
|
|
3062
3065
|
{
|
|
3063
3066
|
name: 'nonce',
|
|
3064
3067
|
description: 'Just to prevent EXPERIMENTAL_MATCHER to be set as implicit formfactor',
|
|
@@ -3067,7 +3070,7 @@ const MatcherFormfactorDefinition = {
|
|
|
3067
3070
|
},
|
|
3068
3071
|
],
|
|
3069
3072
|
outputParameters: [
|
|
3070
|
-
/*
|
|
3073
|
+
/* Output parameters containing match results, confidence scores, and relevant metadata */
|
|
3071
3074
|
],
|
|
3072
3075
|
},
|
|
3073
3076
|
};
|
|
@@ -3104,13 +3107,16 @@ const SheetsFormfactorDefinition = {
|
|
|
3104
3107
|
};
|
|
3105
3108
|
|
|
3106
3109
|
/**
|
|
3107
|
-
* Translator is form of app that
|
|
3110
|
+
* Translator is form of app that transforms input text from one form to another,
|
|
3111
|
+
* such as language translation, style conversion, tone modification, or other text transformations.
|
|
3108
3112
|
*
|
|
3109
3113
|
* @public exported from `@promptbook/core`
|
|
3110
3114
|
*/
|
|
3111
3115
|
const TranslatorFormfactorDefinition = {
|
|
3112
3116
|
name: 'TRANSLATOR',
|
|
3113
|
-
description:
|
|
3117
|
+
description: `A text transformation system that converts input content into different forms,
|
|
3118
|
+
including language translations, paraphrasing, style conversions, and tone adjustments.
|
|
3119
|
+
This form factor takes one input and produces one transformed output.`,
|
|
3114
3120
|
documentationUrl: `https://github.com/webgptorg/promptbook/discussions/175`,
|
|
3115
3121
|
pipelineInterface: {
|
|
3116
3122
|
inputParameters: [
|
|
@@ -4269,7 +4275,10 @@ function parseCommand(raw, usagePlace) {
|
|
|
4269
4275
|
`));
|
|
4270
4276
|
}
|
|
4271
4277
|
/**
|
|
4272
|
-
*
|
|
4278
|
+
* Generates a markdown-formatted message listing all supported commands
|
|
4279
|
+
* with their descriptions and documentation links
|
|
4280
|
+
*
|
|
4281
|
+
* @returns A formatted markdown string containing all available commands and their details
|
|
4273
4282
|
*/
|
|
4274
4283
|
function getSupportedCommandsMessage() {
|
|
4275
4284
|
return COMMANDS.flatMap(({ name, aliasNames, description, documentationUrl }) =>
|
|
@@ -4280,7 +4289,10 @@ function getSupportedCommandsMessage() {
|
|
|
4280
4289
|
]).join('\n');
|
|
4281
4290
|
}
|
|
4282
4291
|
/**
|
|
4283
|
-
*
|
|
4292
|
+
* Attempts to parse a command variant using the provided input parameters
|
|
4293
|
+
*
|
|
4294
|
+
* @param input Object containing command parsing information including raw command text and normalized values
|
|
4295
|
+
* @returns A parsed Command object if successful, or null if the command cannot be parsed
|
|
4284
4296
|
*/
|
|
4285
4297
|
function parseCommandVariant(input) {
|
|
4286
4298
|
const { commandNameRaw, usagePlace, normalized, args, raw, rawArgs } = input;
|