@promptbook/markitdown 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
@@ -2067,11 +2067,11 @@ function capitalize(word) {
2067
2067
  */
2068
2068
  function pipelineJsonToString(pipelineJson) {
2069
2069
  const { title, pipelineUrl, bookVersion, description, parameters, tasks } = pipelineJson;
2070
- let pipelineString = `# ${title}`;
2071
- if (description) {
2072
- pipelineString += '\n\n';
2073
- pipelineString += description;
2074
- }
2070
+ let pipelineString = spaceTrim$1((block) => `
2071
+ # ${title}
2072
+
2073
+ ${block(description || '')}
2074
+ `);
2075
2075
  const commands = [];
2076
2076
  if (pipelineUrl) {
2077
2077
  commands.push(`PIPELINE URL ${pipelineUrl}`);
@@ -2087,20 +2087,17 @@ function pipelineJsonToString(pipelineJson) {
2087
2087
  for (const parameter of parameters.filter(({ isOutput }) => isOutput)) {
2088
2088
  commands.push(`OUTPUT PARAMETER ${taskParameterJsonToString(parameter)}`);
2089
2089
  }
2090
- pipelineString += '\n\n';
2091
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
2090
+ pipelineString = spaceTrim$1((block) => `
2091
+ ${block(pipelineString)}
2092
+
2093
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
2094
+ `);
2092
2095
  for (const task of tasks) {
2093
2096
  const {
2094
2097
  /* Note: Not using:> name, */
2095
2098
  title, description,
2096
2099
  /* Note: dependentParameterNames, */
2097
2100
  jokerParameterNames: jokers, taskType, content, postprocessingFunctionNames: postprocessing, expectations, format, resultingParameterName, } = task;
2098
- pipelineString += '\n\n';
2099
- pipelineString += `## ${title}`;
2100
- if (description) {
2101
- pipelineString += '\n\n';
2102
- pipelineString += description;
2103
- }
2104
2101
  const commands = [];
2105
2102
  let contentLanguage = 'text';
2106
2103
  if (taskType === 'PROMPT_TASK') {
@@ -2163,18 +2160,23 @@ function pipelineJsonToString(pipelineJson) {
2163
2160
  commands.push(`FORMAT JSON`);
2164
2161
  }
2165
2162
  } /* not else */
2166
- pipelineString += '\n\n';
2167
- pipelineString += commands.map((command) => `- ${command}`).join('\n');
2168
- pipelineString += '\n\n';
2169
- pipelineString += '```' + contentLanguage;
2170
- pipelineString += '\n';
2171
- pipelineString += spaceTrim$1(content);
2172
- // <- TODO: [main] !!3 Escape
2173
- // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
2174
- pipelineString += '\n';
2175
- pipelineString += '```';
2176
- pipelineString += '\n\n';
2177
- pipelineString += `\`-> {${resultingParameterName}}\``; // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
2163
+ pipelineString = spaceTrim$1((block) => `
2164
+ ${block(pipelineString)}
2165
+
2166
+ ## ${title}
2167
+
2168
+ ${block(description || '')}
2169
+
2170
+ ${block(commands.map((command) => `- ${command}`).join('\n'))}
2171
+
2172
+ \`\`\`${contentLanguage}
2173
+ ${block(spaceTrim$1(content))}
2174
+ \`\`\`
2175
+
2176
+ \`-> {${resultingParameterName}}\`
2177
+ `); // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
2178
+ // <- TODO: [main] !!3 Escape
2179
+ // <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
2178
2180
  }
2179
2181
  return validatePipelineString(pipelineString);
2180
2182
  }