@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.
- package/esm/index.es.js +28 -26
- package/esm/index.es.js.map +1 -1
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
- package/esm/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
- package/esm/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
- package/esm/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
- package/esm/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent.d.ts +3 -2
- package/esm/src/cli/other/install.test.d.ts +1 -0
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +1 -1
- package/esm/src/commitments/WALLET/WALLET.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +28 -26
- package/umd/index.umd.js.map +1 -1
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
- package/umd/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
- package/umd/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
- package/umd/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
- package/umd/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent.d.ts +3 -2
- package/umd/src/cli/other/install.test.d.ts +1 -0
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +1 -1
- package/umd/src/commitments/WALLET/WALLET.d.ts +1 -1
- 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-
|
|
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 =
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
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
|
|
2091
|
-
|
|
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
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
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
|
}
|