@promptbook/pdf 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.
- 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-71';
|
|
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 =
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
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
|
|
2105
|
-
|
|
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
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
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
|
}
|