@promptbook/pdf 0.112.0-69 → 0.112.0-70

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
@@ -24,7 +24,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
24
24
  * @generated
25
25
  * @see https://github.com/webgptorg/promptbook
26
26
  */
27
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-69';
27
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-70';
28
28
  /**
29
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
30
30
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2081,11 +2081,11 @@ function capitalize(word) {
2081
2081
  */
2082
2082
  function pipelineJsonToString(pipelineJson) {
2083
2083
  const { title, pipelineUrl, bookVersion, description, parameters, tasks } = pipelineJson;
2084
- let pipelineString = `# ${title}`;
2085
- if (description) {
2086
- pipelineString += '\n\n';
2087
- pipelineString += description;
2088
- }
2084
+ let pipelineString = spaceTrim$1((block) => `
2085
+ # ${title}
2086
+
2087
+ ${block(description || '')}
2088
+ `);
2089
2089
  const commands = [];
2090
2090
  if (pipelineUrl) {
2091
2091
  commands.push(`PIPELINE URL ${pipelineUrl}`);
@@ -2101,20 +2101,17 @@ function pipelineJsonToString(pipelineJson) {
2101
2101
  for (const parameter of parameters.filter(({ isOutput }) => isOutput)) {
2102
2102
  commands.push(`OUTPUT PARAMETER ${taskParameterJsonToString(parameter)}`);
2103
2103
  }
2104
- pipelineString += '\n\n';
2105
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
2104
+ pipelineString = spaceTrim$1((block) => `
2105
+ ${block(pipelineString)}
2106
+
2107
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
2108
+ `);
2106
2109
  for (const task of tasks) {
2107
2110
  const {
2108
2111
  /* Note: Not using:> name, */
2109
2112
  title, description,
2110
2113
  /* Note: dependentParameterNames, */
2111
2114
  jokerParameterNames: jokers, taskType, content, postprocessingFunctionNames: postprocessing, expectations, format, resultingParameterName, } = task;
2112
- pipelineString += '\n\n';
2113
- pipelineString += `## ${title}`;
2114
- if (description) {
2115
- pipelineString += '\n\n';
2116
- pipelineString += description;
2117
- }
2118
2115
  const commands = [];
2119
2116
  let contentLanguage = 'text';
2120
2117
  if (taskType === 'PROMPT_TASK') {
@@ -2177,18 +2174,23 @@ function pipelineJsonToString(pipelineJson) {
2177
2174
  commands.push(`FORMAT JSON`);
2178
2175
  }
2179
2176
  } /* not else */
2180
- pipelineString += '\n\n';
2181
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
2182
- pipelineString += '\n\n';
2183
- pipelineString += '```' + contentLanguage;
2184
- pipelineString += '\n';
2185
- pipelineString += spaceTrim$1(content);
2186
- // <- TODO: [main] !!3 Escape
2187
- // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
2188
- pipelineString += '\n';
2189
- pipelineString += '```';
2190
- pipelineString += '\n\n';
2191
- pipelineString += `\`-> {${resultingParameterName}}\``; // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
2177
+ pipelineString = spaceTrim$1((block) => `
2178
+ ${block(pipelineString)}
2179
+
2180
+ ## ${title}
2181
+
2182
+ ${block(description || '')}
2183
+
2184
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
2185
+
2186
+ \`\`\`${contentLanguage}
2187
+ ${block(spaceTrim$1(content))}
2188
+ \`\`\`
2189
+
2190
+ \`-> {${resultingParameterName}}\`
2191
+ `); // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
2192
+ // <- TODO: [main] !!3 Escape
2193
+ // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
2192
2194
  }
2193
2195
  return validatePipelineString(pipelineString);
2194
2196
  }