@promptbook/components 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 +2 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -1
- package/esm/typings/src/commands/_common/types/Command.d.ts +1 -1
- package/esm/typings/src/commitments/_base/BookCommitment.d.ts +1 -1
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +1 -1
- package/esm/typings/src/utils/random/$randomItem.d.ts +1 -1
- package/esm/typings/src/utils/random/$randomSeed.d.ts +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +2 -4
- package/umd/index.umd.js.map +1 -1
|
@@ -3,4 +3,4 @@ import { CHAT_SAVE_FORMATS } from '../index';
|
|
|
3
3
|
* Supported chat export formatNames
|
|
4
4
|
* @public exported from `@promptbook/components`
|
|
5
5
|
*/
|
|
6
|
-
export type string_chat_format_name = typeof CHAT_SAVE_FORMATS[number]['formatName'];
|
|
6
|
+
export type string_chat_format_name = (typeof CHAT_SAVE_FORMATS)[number]['formatName'];
|
|
@@ -3,4 +3,4 @@ import { COMMANDS } from '../../index';
|
|
|
3
3
|
* Command is one piece of the book file section which adds some logic to the task or the whole pipeline.
|
|
4
4
|
* It is parsed from the markdown from ul/ol items - one command per one item.
|
|
5
5
|
*/
|
|
6
|
-
export type Command = ReturnType<typeof COMMANDS[number]['parse']>;
|
|
6
|
+
export type Command = ReturnType<(typeof COMMANDS)[number]['parse']>;
|
|
@@ -7,4 +7,4 @@ import { FORMFACTOR_DEFINITIONS } from '../index';
|
|
|
7
7
|
* Note: [🚉] This is fully serializable as JSON
|
|
8
8
|
* @see https://github.com/webgptorg/promptbook/discussions/172
|
|
9
9
|
*/
|
|
10
|
-
export type FormfactorDefinition = typeof FORMFACTOR_DEFINITIONS[number];
|
|
10
|
+
export type FormfactorDefinition = (typeof FORMFACTOR_DEFINITIONS)[number];
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.104.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.104.0-12`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-13';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4177,9 +4177,7 @@
|
|
|
4177
4177
|
// Get existing dictionary entries from metadata
|
|
4178
4178
|
const existingDictionary = ((_a = requirements.metadata) === null || _a === void 0 ? void 0 : _a.DICTIONARY) || '';
|
|
4179
4179
|
// Merge the new dictionary entry with existing entries
|
|
4180
|
-
const mergedDictionary = existingDictionary
|
|
4181
|
-
? `${existingDictionary}\n${trimmedContent}`
|
|
4182
|
-
: trimmedContent;
|
|
4180
|
+
const mergedDictionary = existingDictionary ? `${existingDictionary}\n${trimmedContent}` : trimmedContent;
|
|
4183
4181
|
// Store the merged dictionary in metadata for debugging and inspection
|
|
4184
4182
|
const updatedMetadata = {
|
|
4185
4183
|
...requirements.metadata,
|