@promptbook/core 0.92.0-13 → 0.92.0-15

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 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-13';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-15';
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
@@ -4664,7 +4664,6 @@ async function executePipeline(options) {
4664
4664
  * Note: This is a flag to prevent `onProgress` call after the pipeline execution is finished
4665
4665
  */
4666
4666
  let isReturned = false;
4667
- console.log(`!!! preparedPipeline`, preparedPipeline);
4668
4667
  // Note: Check that all input input parameters are defined
4669
4668
  for (const parameter of preparedPipeline.parameters.filter(({ isInput }) => isInput)) {
4670
4669
  if (inputParameters[parameter.name] === undefined) {
@@ -9551,6 +9550,13 @@ function addAutoGeneratedSection(content, options) {
9551
9550
  function renderPromptbookMermaid(pipelineJson, options) {
9552
9551
  const { linkTask = () => null } = options || {};
9553
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
+ }
9554
9560
  const parameter = pipelineJson.parameters.find((parameter) => parameter.name === parameterName);
9555
9561
  if (!parameter) {
9556
9562
  throw new UnexpectedError(`Could not find {${parameterName}}`);
@@ -9575,6 +9581,8 @@ function renderPromptbookMermaid(pipelineJson, options) {
9575
9581
  direction TB
9576
9582
 
9577
9583
  input((Input)):::input
9584
+ other((Other)):::other
9585
+ knowledge((Knowledgebase)):::knowledge
9578
9586
  ${block(pipelineJson.tasks
9579
9587
  .flatMap(({ title, dependentParameterNames, resultingParameterName }) => [
9580
9588
  `${parameterNameToTaskName(resultingParameterName)}("${title}")`,