@promptbook/core 0.104.0-12 → 0.104.0-13

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
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-12';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-13';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -8074,9 +8074,7 @@ class DictionaryCommitmentDefinition extends BaseCommitmentDefinition {
8074
8074
  // Get existing dictionary entries from metadata
8075
8075
  const existingDictionary = ((_a = requirements.metadata) === null || _a === void 0 ? void 0 : _a.DICTIONARY) || '';
8076
8076
  // Merge the new dictionary entry with existing entries
8077
- const mergedDictionary = existingDictionary
8078
- ? `${existingDictionary}\n${trimmedContent}`
8079
- : trimmedContent;
8077
+ const mergedDictionary = existingDictionary ? `${existingDictionary}\n${trimmedContent}` : trimmedContent;
8080
8078
  // Store the merged dictionary in metadata for debugging and inspection
8081
8079
  const updatedMetadata = {
8082
8080
  ...requirements.metadata,
@@ -14175,7 +14173,12 @@ const jokerCommandParser = {
14175
14173
  * @see {@link ModelVariant}
14176
14174
  * @public exported from `@promptbook/core`
14177
14175
  */
14178
- const MODEL_VARIANTS = ['COMPLETION', 'CHAT', 'IMAGE_GENERATION', 'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */];
14176
+ const MODEL_VARIANTS = [
14177
+ 'COMPLETION',
14178
+ 'CHAT',
14179
+ 'IMAGE_GENERATION',
14180
+ 'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */,
14181
+ ];
14179
14182
 
14180
14183
  /**
14181
14184
  * Parses the model command