@promptbook/wizard 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 +11 -6
- 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 +2 -2
- package/umd/index.umd.js +11 -6
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/wizard",
|
|
3
|
-
"version": "0.104.0-
|
|
3
|
+
"version": "0.104.0-13",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"module": "./esm/index.es.js",
|
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@promptbook/core": "0.104.0-
|
|
98
|
+
"@promptbook/core": "0.104.0-13"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@ai-sdk/deepseek": "0.1.17",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-13';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -14269,9 +14269,7 @@
|
|
|
14269
14269
|
// Get existing dictionary entries from metadata
|
|
14270
14270
|
const existingDictionary = ((_a = requirements.metadata) === null || _a === void 0 ? void 0 : _a.DICTIONARY) || '';
|
|
14271
14271
|
// Merge the new dictionary entry with existing entries
|
|
14272
|
-
const mergedDictionary = existingDictionary
|
|
14273
|
-
? `${existingDictionary}\n${trimmedContent}`
|
|
14274
|
-
: trimmedContent;
|
|
14272
|
+
const mergedDictionary = existingDictionary ? `${existingDictionary}\n${trimmedContent}` : trimmedContent;
|
|
14275
14273
|
// Store the merged dictionary in metadata for debugging and inspection
|
|
14276
14274
|
const updatedMetadata = {
|
|
14277
14275
|
...requirements.metadata,
|
|
@@ -21316,7 +21314,12 @@
|
|
|
21316
21314
|
* @see {@link ModelVariant}
|
|
21317
21315
|
* @public exported from `@promptbook/core`
|
|
21318
21316
|
*/
|
|
21319
|
-
const MODEL_VARIANTS = [
|
|
21317
|
+
const MODEL_VARIANTS = [
|
|
21318
|
+
'COMPLETION',
|
|
21319
|
+
'CHAT',
|
|
21320
|
+
'IMAGE_GENERATION',
|
|
21321
|
+
'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */,
|
|
21322
|
+
];
|
|
21320
21323
|
|
|
21321
21324
|
/**
|
|
21322
21325
|
* Parses the model command
|
|
@@ -23842,7 +23845,9 @@
|
|
|
23842
23845
|
// ▶ Create executor - the function that will execute the Pipeline
|
|
23843
23846
|
const pipelineExecutor = createPipelineExecutor({ pipeline, tools });
|
|
23844
23847
|
// 🚀▶ Execute the Pipeline
|
|
23845
|
-
const result = await pipelineExecutor(inputParameters).asPromise({
|
|
23848
|
+
const result = await pipelineExecutor(inputParameters).asPromise({
|
|
23849
|
+
isCrashedOnError: true,
|
|
23850
|
+
});
|
|
23846
23851
|
const { outputParameters } = result;
|
|
23847
23852
|
const outputParametersLength = Object.keys(outputParameters).length;
|
|
23848
23853
|
let resultString;
|