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