@promptbook/core 0.92.0-12 → 0.92.0-14
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 +10 -1
- package/esm/index.es.js.map +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +10 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-14';
|
|
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
|
|
@@ -9550,6 +9550,13 @@ function addAutoGeneratedSection(content, options) {
|
|
|
9550
9550
|
function renderPromptbookMermaid(pipelineJson, options) {
|
|
9551
9551
|
const { linkTask = () => null } = options || {};
|
|
9552
9552
|
const parameterNameToTaskName = (parameterName) => {
|
|
9553
|
+
if (parameterName === 'knowledge') {
|
|
9554
|
+
return 'knowledge';
|
|
9555
|
+
// <- TODO: !!!! Check that this works
|
|
9556
|
+
}
|
|
9557
|
+
else if (RESERVED_PARAMETER_NAMES.includes(parameterName)) {
|
|
9558
|
+
return 'reserved';
|
|
9559
|
+
}
|
|
9553
9560
|
const parameter = pipelineJson.parameters.find((parameter) => parameter.name === parameterName);
|
|
9554
9561
|
if (!parameter) {
|
|
9555
9562
|
throw new UnexpectedError(`Could not find {${parameterName}}`);
|
|
@@ -9574,6 +9581,8 @@ function renderPromptbookMermaid(pipelineJson, options) {
|
|
|
9574
9581
|
direction TB
|
|
9575
9582
|
|
|
9576
9583
|
input((Input)):::input
|
|
9584
|
+
other((Other)):::other
|
|
9585
|
+
knowledge((Knowledgebase)):::knowledge
|
|
9577
9586
|
${block(pipelineJson.tasks
|
|
9578
9587
|
.flatMap(({ title, dependentParameterNames, resultingParameterName }) => [
|
|
9579
9588
|
`${parameterNameToTaskName(resultingParameterName)}("${title}")`,
|