@promptbook/remote-server 0.112.0-23 → 0.112.0-25

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 (31) hide show
  1. package/esm/index.es.js +6 -13
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/components.index.d.ts +2 -0
  4. package/esm/src/_packages/types.index.d.ts +2 -0
  5. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  6. package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  7. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  8. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +14 -2
  9. package/esm/src/book-components/Chat/Chat/ChatRatingModal.d.ts +5 -0
  10. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +5 -1
  11. package/esm/src/book-components/Chat/hooks/useChatRatings.d.ts +5 -1
  12. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +53 -0
  13. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  14. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +47 -0
  15. package/esm/src/version.d.ts +1 -1
  16. package/package.json +2 -2
  17. package/umd/index.umd.js +6 -13
  18. package/umd/index.umd.js.map +1 -1
  19. package/umd/src/_packages/components.index.d.ts +2 -0
  20. package/umd/src/_packages/types.index.d.ts +2 -0
  21. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  22. package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  23. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  24. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +14 -2
  25. package/umd/src/book-components/Chat/Chat/ChatRatingModal.d.ts +5 -0
  26. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +5 -1
  27. package/umd/src/book-components/Chat/hooks/useChatRatings.d.ts +5 -1
  28. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +53 -0
  29. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  30. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +47 -0
  31. package/umd/src/version.d.ts +1 -1
package/esm/index.es.js CHANGED
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
40
40
  * @generated
41
41
  * @see https://github.com/webgptorg/promptbook
42
42
  */
43
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-23';
43
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-25';
44
44
  /**
45
45
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
46
46
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -12091,10 +12091,10 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
12091
12091
  if (!trimmedContent) {
12092
12092
  return requirements;
12093
12093
  }
12094
- // Create goal section for system message
12094
+ // Add goal to the system message
12095
12095
  const goalSection = `Goal: ${trimmedContent}`;
12096
- // Goals are important directives, so we add them prominently to the system message
12097
- return this.appendToSystemMessage(requirements, goalSection, '\n\n');
12096
+ const requirementsWithGoal = this.appendToSystemMessage(requirements, goalSection, '\n\n');
12097
+ return this.appendToPromptSuffix(requirementsWithGoal, goalSection);
12098
12098
  }
12099
12099
  }
12100
12100
  /**
@@ -15126,15 +15126,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
15126
15126
  // Add rule to the system message
15127
15127
  const ruleSection = `Rule: ${trimmedContent}`;
15128
15128
  const requirementsWithRule = this.appendToSystemMessage(requirements, ruleSection, '\n\n');
15129
- const ruleLines = trimmedContent
15130
- .split(/\r?\n/)
15131
- .map((line) => line.trim())
15132
- .filter(Boolean)
15133
- .map((line) => `- ${line}`);
15134
- if (ruleLines.length === 0) {
15135
- return requirementsWithRule;
15136
- }
15137
- return this.appendToPromptSuffix(requirementsWithRule, ruleLines.join('\n'));
15129
+ return this.appendToPromptSuffix(requirementsWithRule, ruleSection);
15138
15130
  }
15139
15131
  }
15140
15132
  /**
@@ -29393,6 +29385,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
29393
29385
  };
29394
29386
  const streamResult = await run(agentForRun, inputItems, {
29395
29387
  stream: true,
29388
+ maxTurns: 200,
29396
29389
  context: {
29397
29390
  parameters: prompt.parameters,
29398
29391
  onToolProgress: onProgress,