@promptbook/components 0.112.0-24 → 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.
package/esm/index.es.js CHANGED
@@ -39,7 +39,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
39
39
  * @generated
40
40
  * @see https://github.com/webgptorg/promptbook
41
41
  */
42
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-24';
42
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-25';
43
43
  /**
44
44
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
45
45
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -7292,10 +7292,10 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
7292
7292
  if (!trimmedContent) {
7293
7293
  return requirements;
7294
7294
  }
7295
- // Create goal section for system message
7295
+ // Add goal to the system message
7296
7296
  const goalSection = `Goal: ${trimmedContent}`;
7297
- // Goals are important directives, so we add them prominently to the system message
7298
- return this.appendToSystemMessage(requirements, goalSection, '\n\n');
7297
+ const requirementsWithGoal = this.appendToSystemMessage(requirements, goalSection, '\n\n');
7298
+ return this.appendToPromptSuffix(requirementsWithGoal, goalSection);
7299
7299
  }
7300
7300
  }
7301
7301
  /**
@@ -10242,15 +10242,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
10242
10242
  // Add rule to the system message
10243
10243
  const ruleSection = `Rule: ${trimmedContent}`;
10244
10244
  const requirementsWithRule = this.appendToSystemMessage(requirements, ruleSection, '\n\n');
10245
- const ruleLines = trimmedContent
10246
- .split(/\r?\n/)
10247
- .map((line) => line.trim())
10248
- .filter(Boolean)
10249
- .map((line) => `- ${line}`);
10250
- if (ruleLines.length === 0) {
10251
- return requirementsWithRule;
10252
- }
10253
- return this.appendToPromptSuffix(requirementsWithRule, ruleLines.join('\n'));
10245
+ return this.appendToPromptSuffix(requirementsWithRule, ruleSection);
10254
10246
  }
10255
10247
  }
10256
10248
  /**
@@ -21060,7 +21052,9 @@ function normalizeArrowDirection(direction) {
21060
21052
  function ArrowIcon({ direction, size = 24, className }) {
21061
21053
  const normalizedDirection = normalizeArrowDirection(direction);
21062
21054
  const rotationDegrees = ARROW_ROTATION_BY_DIRECTION[normalizedDirection];
21063
- return (jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", className: classNames('shrink-0', className), children: jsx("g", { transform: `rotate(${rotationDegrees} 12 12)`, children: jsx("path", { d: "M7 5.5L18.5 12L7 18.5V5.5Z" }) }) }));
21055
+ return (jsx("svg", { width: size, height: size, viewBox: "0 0 24 24",
21056
+ // fill="currentColor"
21057
+ fill: "currentColor", "aria-hidden": "true", className: classNames('shrink-0', className), children: jsx("g", { transform: `rotate(${rotationDegrees} 12 12)`, children: jsx("path", { d: "M7 5.5L18.5 12L7 18.5V5.5Z" }) }) }));
21064
21058
  }
21065
21059
 
21066
21060
  /**