@promptbook/website-crawler 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
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-69';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-71';
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
@@ -1811,11 +1811,11 @@ function capitalize(word) {
1811
1811
  */
1812
1812
  function pipelineJsonToString(pipelineJson) {
1813
1813
  const { title, pipelineUrl, bookVersion, description, parameters, tasks } = pipelineJson;
1814
- let pipelineString = `# ${title}`;
1815
- if (description) {
1816
- pipelineString += '\n\n';
1817
- pipelineString += description;
1818
- }
1814
+ let pipelineString = spaceTrim$1((block) => `
1815
+ # ${title}
1816
+
1817
+ ${block(description || '')}
1818
+ `);
1819
1819
  const commands = [];
1820
1820
  if (pipelineUrl) {
1821
1821
  commands.push(`PIPELINE URL ${pipelineUrl}`);
@@ -1831,20 +1831,17 @@ function pipelineJsonToString(pipelineJson) {
1831
1831
  for (const parameter of parameters.filter(({ isOutput }) => isOutput)) {
1832
1832
  commands.push(`OUTPUT PARAMETER ${taskParameterJsonToString(parameter)}`);
1833
1833
  }
1834
- pipelineString += '\n\n';
1835
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
1834
+ pipelineString = spaceTrim$1((block) => `
1835
+ ${block(pipelineString)}
1836
+
1837
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
1838
+ `);
1836
1839
  for (const task of tasks) {
1837
1840
  const {
1838
1841
  /* Note: Not using:> name, */
1839
1842
  title, description,
1840
1843
  /* Note: dependentParameterNames, */
1841
1844
  jokerParameterNames: jokers, taskType, content, postprocessingFunctionNames: postprocessing, expectations, format, resultingParameterName, } = task;
1842
- pipelineString += '\n\n';
1843
- pipelineString += `## ${title}`;
1844
- if (description) {
1845
- pipelineString += '\n\n';
1846
- pipelineString += description;
1847
- }
1848
1845
  const commands = [];
1849
1846
  let contentLanguage = 'text';
1850
1847
  if (taskType === 'PROMPT_TASK') {
@@ -1907,18 +1904,23 @@ function pipelineJsonToString(pipelineJson) {
1907
1904
  commands.push(`FORMAT JSON`);
1908
1905
  }
1909
1906
  } /* not else */
1910
- pipelineString += '\n\n';
1911
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
1912
- pipelineString += '\n\n';
1913
- pipelineString += '```' + contentLanguage;
1914
- pipelineString += '\n';
1915
- pipelineString += spaceTrim$1(content);
1916
- // <- TODO: [main] !!3 Escape
1917
- // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
1918
- pipelineString += '\n';
1919
- pipelineString += '```';
1920
- pipelineString += '\n\n';
1921
- pipelineString += `\`-> {${resultingParameterName}}\``; // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
1907
+ pipelineString = spaceTrim$1((block) => `
1908
+ ${block(pipelineString)}
1909
+
1910
+ ## ${title}
1911
+
1912
+ ${block(description || '')}
1913
+
1914
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
1915
+
1916
+ \`\`\`${contentLanguage}
1917
+ ${block(spaceTrim$1(content))}
1918
+ \`\`\`
1919
+
1920
+ \`-> {${resultingParameterName}}\`
1921
+ `); // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
1922
+ // <- TODO: [main] !!3 Escape
1923
+ // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
1922
1924
  }
1923
1925
  return validatePipelineString(pipelineString);
1924
1926
  }