@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
package/esm/index.es.js
CHANGED
|
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
36
36
|
* @generated
|
|
37
37
|
* @see https://github.com/webgptorg/promptbook
|
|
38
38
|
*/
|
|
39
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
39
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-13';
|
|
40
40
|
/**
|
|
41
41
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
42
42
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -14257,9 +14257,7 @@ class DictionaryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14257
14257
|
// Get existing dictionary entries from metadata
|
|
14258
14258
|
const existingDictionary = ((_a = requirements.metadata) === null || _a === void 0 ? void 0 : _a.DICTIONARY) || '';
|
|
14259
14259
|
// Merge the new dictionary entry with existing entries
|
|
14260
|
-
const mergedDictionary = existingDictionary
|
|
14261
|
-
? `${existingDictionary}\n${trimmedContent}`
|
|
14262
|
-
: trimmedContent;
|
|
14260
|
+
const mergedDictionary = existingDictionary ? `${existingDictionary}\n${trimmedContent}` : trimmedContent;
|
|
14263
14261
|
// Store the merged dictionary in metadata for debugging and inspection
|
|
14264
14262
|
const updatedMetadata = {
|
|
14265
14263
|
...requirements.metadata,
|
|
@@ -21304,7 +21302,12 @@ const jokerCommandParser = {
|
|
|
21304
21302
|
* @see {@link ModelVariant}
|
|
21305
21303
|
* @public exported from `@promptbook/core`
|
|
21306
21304
|
*/
|
|
21307
|
-
const MODEL_VARIANTS = [
|
|
21305
|
+
const MODEL_VARIANTS = [
|
|
21306
|
+
'COMPLETION',
|
|
21307
|
+
'CHAT',
|
|
21308
|
+
'IMAGE_GENERATION',
|
|
21309
|
+
'EMBEDDING' /* <- TODO [🏳] */ /* <- [🤖] */,
|
|
21310
|
+
];
|
|
21308
21311
|
|
|
21309
21312
|
/**
|
|
21310
21313
|
* Parses the model command
|
|
@@ -23830,7 +23833,9 @@ class Wizard {
|
|
|
23830
23833
|
// ▶ Create executor - the function that will execute the Pipeline
|
|
23831
23834
|
const pipelineExecutor = createPipelineExecutor({ pipeline, tools });
|
|
23832
23835
|
// 🚀▶ Execute the Pipeline
|
|
23833
|
-
const result = await pipelineExecutor(inputParameters).asPromise({
|
|
23836
|
+
const result = await pipelineExecutor(inputParameters).asPromise({
|
|
23837
|
+
isCrashedOnError: true,
|
|
23838
|
+
});
|
|
23834
23839
|
const { outputParameters } = result;
|
|
23835
23840
|
const outputParametersLength = Object.keys(outputParameters).length;
|
|
23836
23841
|
let resultString;
|