@promptbook/remote-client 0.112.0-64 → 0.112.0-65

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 (41) hide show
  1. package/esm/index.es.js +41 -9
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/components.index.d.ts +0 -2
  4. package/esm/src/_packages/core.index.d.ts +2 -2
  5. package/esm/src/_packages/types.index.d.ts +0 -2
  6. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  7. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  8. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  9. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  10. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  11. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  12. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  13. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  14. package/esm/src/formfactors/index.d.ts +2 -2
  15. package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  16. package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  17. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  18. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  19. package/esm/src/version.d.ts +1 -1
  20. package/package.json +2 -2
  21. package/umd/index.umd.js +41 -9
  22. package/umd/index.umd.js.map +1 -1
  23. package/umd/src/_packages/components.index.d.ts +0 -2
  24. package/umd/src/_packages/core.index.d.ts +2 -2
  25. package/umd/src/_packages/types.index.d.ts +0 -2
  26. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  27. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  28. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  29. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  30. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  31. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  32. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  33. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  34. package/umd/src/formfactors/index.d.ts +2 -2
  35. package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  36. package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  37. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  38. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  39. package/umd/src/version.d.ts +1 -1
  40. /package/esm/src/{commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts} +0 -0
  41. /package/umd/src/{commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts} +0 -0
package/esm/index.es.js CHANGED
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
20
20
  * @generated
21
21
  * @see https://github.com/webgptorg/promptbook
22
22
  */
23
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-64';
23
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-65';
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
@@ -4069,8 +4069,10 @@ const ImageGeneratorFormfactorDefinition = {
4069
4069
  */
4070
4070
  const MatcherFormfactorDefinition = {
4071
4071
  name: 'EXPERIMENTAL_MATCHER',
4072
- description: `An evaluation system that determines whether content meets specific criteria or patterns.
4073
- Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.`,
4072
+ description: spaceTrim$1(`
4073
+ An evaluation system that determines whether content meets specific criteria or patterns.
4074
+ Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.
4075
+ `),
4074
4076
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/177`,
4075
4077
  pipelineInterface: {
4076
4078
  inputParameters: [
@@ -4127,9 +4129,11 @@ const SheetsFormfactorDefinition = {
4127
4129
  */
4128
4130
  const TranslatorFormfactorDefinition = {
4129
4131
  name: 'TRANSLATOR',
4130
- description: `A text transformation system that converts input content into different forms,
4131
- including language translations, paraphrasing, style conversions, and tone adjustments.
4132
- This form factor takes one input and produces one transformed output.`,
4132
+ description: spaceTrim$1(`
4133
+ A text transformation system that converts input content into different forms,
4134
+ including language translations, paraphrasing, style conversions, and tone adjustments.
4135
+ This form factor takes one input and produces one transformed output.
4136
+ `),
4133
4137
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/175`,
4134
4138
  pipelineInterface: {
4135
4139
  inputParameters: [
@@ -5535,12 +5539,21 @@ const QuickChatbotHla = {
5535
5539
  // <- TODO: [🧠] Make this dynamic, async, prepare-phase HLAs
5536
5540
  ],
5537
5541
  });
5538
- // TODO: Use spaceTrim in multiline strings
5539
5542
  $pipelineJson.tasks.push({
5540
5543
  taskType: 'PROMPT_TASK',
5541
5544
  name: 'create-an-answer',
5542
5545
  title: 'Create an answer',
5543
- content: 'Write a response to the user message:\n\n**Question from user**\n\n> {userMessage}\n\n**Previous conversation**\n\n> {previousConversationSummary}',
5546
+ content: spaceTrim$1(`
5547
+ Write a response to the user message:
5548
+
5549
+ **Question from user**
5550
+
5551
+ > {userMessage}
5552
+
5553
+ **Previous conversation**
5554
+
5555
+ > {previousConversationSummary}
5556
+ `),
5544
5557
  resultingParameterName: 'chatbotResponse',
5545
5558
  personaName,
5546
5559
  dependentParameterNames: [
@@ -5552,7 +5565,26 @@ const QuickChatbotHla = {
5552
5565
  taskType: 'PROMPT_TASK',
5553
5566
  name: 'summarize-the-conversation',
5554
5567
  title: 'Summarize the conversation',
5555
- content: 'Summarize the conversation in a few words:\n\n## Rules\n\n- Summarise the text of the conversation in a few words\n- Convert the text to its basic idea\n- Imagine you are writing the headline or subject line of an email\n- Respond with a few words of summary only\n\n## Conversation\n\n**User:**\n\n> {userMessage}\n\n**You:**\n\n> {chatbotResponse}',
5568
+ content: spaceTrim$1(`
5569
+ Summarize the conversation in a few words:
5570
+
5571
+ ## Rules
5572
+
5573
+ - Summarise the text of the conversation in a few words
5574
+ - Convert the text to its basic idea
5575
+ - Imagine you are writing the headline or subject line of an email
5576
+ - Respond with a few words of summary only
5577
+
5578
+ ## Conversation
5579
+
5580
+ **User:**
5581
+
5582
+ > {userMessage}
5583
+
5584
+ **You:**
5585
+
5586
+ > {chatbotResponse}
5587
+ `),
5556
5588
  resultingParameterName: 'conversationSummary',
5557
5589
  personaName,
5558
5590
  expectations: {