@promptbook/cli 0.92.0-13 → 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 -2
- package/esm/index.es.js.map +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +10 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -47,7 +47,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
47
47
|
* @generated
|
|
48
48
|
* @see https://github.com/webgptorg/promptbook
|
|
49
49
|
*/
|
|
50
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
50
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-14';
|
|
51
51
|
/**
|
|
52
52
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
53
53
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6815,7 +6815,6 @@ async function executePipeline(options) {
|
|
|
6815
6815
|
* Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
|
|
6816
6816
|
*/
|
|
6817
6817
|
let isReturned = false;
|
|
6818
|
-
console.log(`!!! preparedPipeline`, preparedPipeline);
|
|
6819
6818
|
// Note: Check that all input input parameters are defined
|
|
6820
6819
|
for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
|
|
6821
6820
|
if (inputParameters[parameter.name] === undefined) {
|
|
@@ -11189,6 +11188,13 @@ async function compilePipeline(pipelineString, tools, options) {
|
|
|
11189
11188
|
function renderPromptbookMermaid(pipelineJson, options) {
|
|
11190
11189
|
const { linkTask = () => null } = options || {};
|
|
11191
11190
|
const parameterNameToTaskName = (parameterName) => {
|
|
11191
|
+
if (parameterName === 'knowledge') {
|
|
11192
|
+
return 'knowledge';
|
|
11193
|
+
// <- TODO: !!!! Check that this works
|
|
11194
|
+
}
|
|
11195
|
+
else if (RESERVED_PARAMETER_NAMES.includes(parameterName)) {
|
|
11196
|
+
return 'reserved';
|
|
11197
|
+
}
|
|
11192
11198
|
const parameter = pipelineJson.parameters.find((parameter) => parameter.name === parameterName);
|
|
11193
11199
|
if (!parameter) {
|
|
11194
11200
|
throw new UnexpectedError(`Could not find {${parameterName}}`);
|
|
@@ -11213,6 +11219,8 @@ function renderPromptbookMermaid(pipelineJson, options) {
|
|
|
11213
11219
|
direction TB
|
|
11214
11220
|
|
|
11215
11221
|
input((Input)):::input
|
|
11222
|
+
other((Other)):::other
|
|
11223
|
+
knowledge((Knowledgebase)):::knowledge
|
|
11216
11224
|
${block(pipelineJson.tasks
|
|
11217
11225
|
.flatMap(({ title, dependentParameterNames, resultingParameterName }) => [
|
|
11218
11226
|
`${parameterNameToTaskName(resultingParameterName)}("${title}")`,
|