@promptbook/remote-client 0.88.0 → 0.89.0-2

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 (30) hide show
  1. package/README.md +4 -0
  2. package/esm/index.es.js +11 -9
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/core.index.d.ts +6 -2
  5. package/esm/typings/src/_packages/types.index.d.ts +16 -4
  6. package/esm/typings/src/cli/cli-commands/login.d.ts +15 -0
  7. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -2
  8. package/esm/typings/src/execution/PromptResult.d.ts +2 -2
  9. package/esm/typings/src/execution/{PromptResultUsage.d.ts → Usage.d.ts} +5 -5
  10. package/esm/typings/src/execution/utils/addUsage.d.ts +2 -2
  11. package/esm/typings/src/execution/utils/computeUsageCounts.d.ts +3 -3
  12. package/esm/typings/src/execution/utils/usage-constants.d.ts +77 -60
  13. package/esm/typings/src/execution/utils/usageToHuman.d.ts +5 -5
  14. package/esm/typings/src/execution/utils/usageToWorktime.d.ts +5 -5
  15. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +9 -2
  16. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/{countTotalUsage.d.ts → countUsage.d.ts} +1 -1
  17. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +2 -2
  18. package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +2 -2
  19. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +0 -9
  20. package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.d.ts +2 -2
  21. package/esm/typings/src/pipeline/PipelineJson/PreparationJson.d.ts +2 -2
  22. package/esm/typings/src/playground/BrjappConnector.d.ts +67 -0
  23. package/esm/typings/src/playground/brjapp-api-schema.d.ts +12879 -0
  24. package/esm/typings/src/playground/playground.d.ts +5 -0
  25. package/esm/typings/src/remote-server/socket-types/_subtypes/PromptbookServer_Identification.d.ts +2 -1
  26. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +15 -3
  27. package/esm/typings/src/types/typeAliases.d.ts +8 -2
  28. package/package.json +2 -2
  29. package/umd/index.umd.js +11 -9
  30. package/umd/index.umd.js.map +1 -1
package/README.md CHANGED
@@ -23,6 +23,10 @@
23
23
 
24
24
 
25
25
 
26
+ <blockquote style="color: #ff8811">
27
+ <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
28
+ </blockquote>
29
+
26
30
  ## 📦 Package `@promptbook/remote-client`
27
31
 
28
32
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
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.88.0';
23
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-2';
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
@@ -3212,7 +3212,8 @@ const modelCommandParser = {
3212
3212
  if ($pipelineJson.defaultModelRequirements[command.key] !== undefined) {
3213
3213
  if ($pipelineJson.defaultModelRequirements[command.key] === command.value) {
3214
3214
  console.warn(`Multiple commands \`MODEL ${command.key} ${command.value}\` in the pipeline head`);
3215
- // <- TODO: [🚎][💩] Some better way how to get warnings from pipeline parsing / logic
3215
+ // <- TODO: [🏮] Some better way how to get warnings from pipeline parsing / logic
3216
+ // <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
3216
3217
  }
3217
3218
  else {
3218
3219
  throw new ParseError(spaceTrim$1(`
@@ -3244,6 +3245,7 @@ const modelCommandParser = {
3244
3245
  modelVariant: 'VARIANT',
3245
3246
  maxTokens: '???',
3246
3247
  }[command.key]} ${command.value}\` in the task "${$taskJson.title || $taskJson.name}"`);
3248
+ // <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
3247
3249
  }
3248
3250
  else {
3249
3251
  throw new ParseError(spaceTrim$1(`
@@ -3523,15 +3525,15 @@ function $applyToTaskJson(command, $taskJson, $pipelineJson) {
3523
3525
  }
3524
3526
  console.warn(spaceTrim$1(`
3525
3527
 
3526
- Persona "${personaName}" is defined multiple times with different description:
3528
+ Persona "${personaName}" is defined multiple times with different description:
3527
3529
 
3528
- First definition:
3529
- ${persona.description}
3530
+ First definition:
3531
+ ${persona.description}
3530
3532
 
3531
- Second definition:
3532
- ${personaDescription}
3533
+ Second definition:
3534
+ ${personaDescription}
3533
3535
 
3534
- `));
3536
+ `));
3535
3537
  persona.description += spaceTrim$1('\n\n' + personaDescription);
3536
3538
  }
3537
3539
 
@@ -4895,7 +4897,7 @@ function extractParameterNamesFromTask(task) {
4895
4897
  if (parameterNames.has(subparameterName)) {
4896
4898
  parameterNames.delete(subparameterName);
4897
4899
  parameterNames.add(foreach.parameterName);
4898
- // <- TODO: [🚎] Warn/logic error when `subparameterName` not used
4900
+ // <- TODO: [🏮] Warn/logic error when `subparameterName` not used
4899
4901
  }
4900
4902
  }
4901
4903
  }