@promptbook/legacy-documents 0.112.0-69 → 0.112.0-71

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.
Files changed (27) hide show
  1. package/esm/index.es.js +28 -26
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  4. package/esm/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  5. package/esm/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  6. package/esm/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
  7. package/esm/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
  8. package/esm/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
  9. package/esm/src/cli/cli-commands/agent.d.ts +3 -2
  10. package/esm/src/cli/other/install.test.d.ts +1 -0
  11. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +1 -1
  12. package/esm/src/commitments/WALLET/WALLET.d.ts +1 -1
  13. package/esm/src/version.d.ts +1 -1
  14. package/package.json +2 -2
  15. package/umd/index.umd.js +28 -26
  16. package/umd/index.umd.js.map +1 -1
  17. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  18. package/umd/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  19. package/umd/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  20. package/umd/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
  21. package/umd/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
  22. package/umd/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
  23. package/umd/src/cli/cli-commands/agent.d.ts +3 -2
  24. package/umd/src/cli/other/install.test.d.ts +1 -0
  25. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +1 -1
  26. package/umd/src/commitments/WALLET/WALLET.d.ts +1 -1
  27. package/umd/src/version.d.ts +1 -1
package/esm/index.es.js CHANGED
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-69';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-71';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1822,11 +1822,11 @@ function capitalize(word) {
1822
1822
  */
1823
1823
  function pipelineJsonToString(pipelineJson) {
1824
1824
  const { title, pipelineUrl, bookVersion, description, parameters, tasks } = pipelineJson;
1825
- let pipelineString = `# ${title}`;
1826
- if (description) {
1827
- pipelineString += '\n\n';
1828
- pipelineString += description;
1829
- }
1825
+ let pipelineString = spaceTrim$1((block) => `
1826
+ # ${title}
1827
+
1828
+ ${block(description || '')}
1829
+ `);
1830
1830
  const commands = [];
1831
1831
  if (pipelineUrl) {
1832
1832
  commands.push(`PIPELINE URL ${pipelineUrl}`);
@@ -1842,20 +1842,17 @@ function pipelineJsonToString(pipelineJson) {
1842
1842
  for (const parameter of parameters.filter(({ isOutput }) => isOutput)) {
1843
1843
  commands.push(`OUTPUT PARAMETER ${taskParameterJsonToString(parameter)}`);
1844
1844
  }
1845
- pipelineString += '\n\n';
1846
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
1845
+ pipelineString = spaceTrim$1((block) => `
1846
+ ${block(pipelineString)}
1847
+
1848
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
1849
+ `);
1847
1850
  for (const task of tasks) {
1848
1851
  const {
1849
1852
  /* Note: Not using:> name, */
1850
1853
  title, description,
1851
1854
  /* Note: dependentParameterNames, */
1852
1855
  jokerParameterNames: jokers, taskType, content, postprocessingFunctionNames: postprocessing, expectations, format, resultingParameterName, } = task;
1853
- pipelineString += '\n\n';
1854
- pipelineString += `## ${title}`;
1855
- if (description) {
1856
- pipelineString += '\n\n';
1857
- pipelineString += description;
1858
- }
1859
1856
  const commands = [];
1860
1857
  let contentLanguage = 'text';
1861
1858
  if (taskType === 'PROMPT_TASK') {
@@ -1918,18 +1915,23 @@ function pipelineJsonToString(pipelineJson) {
1918
1915
  commands.push(`FORMAT JSON`);
1919
1916
  }
1920
1917
  } /* not else */
1921
- pipelineString += '\n\n';
1922
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
1923
- pipelineString += '\n\n';
1924
- pipelineString += '```' + contentLanguage;
1925
- pipelineString += '\n';
1926
- pipelineString += spaceTrim$1(content);
1927
- // <- TODO: [main] !!3 Escape
1928
- // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
1929
- pipelineString += '\n';
1930
- pipelineString += '```';
1931
- pipelineString += '\n\n';
1932
- pipelineString += `\`-> {${resultingParameterName}}\``; // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
1918
+ pipelineString = spaceTrim$1((block) => `
1919
+ ${block(pipelineString)}
1920
+
1921
+ ## ${title}
1922
+
1923
+ ${block(description || '')}
1924
+
1925
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
1926
+
1927
+ \`\`\`${contentLanguage}
1928
+ ${block(spaceTrim$1(content))}
1929
+ \`\`\`
1930
+
1931
+ \`-> {${resultingParameterName}}\`
1932
+ `); // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
1933
+ // <- TODO: [main] !!3 Escape
1934
+ // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
1933
1935
  }
1934
1936
  return validatePipelineString(pipelineString);
1935
1937
  }