@promptbook/legacy-documents 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
|
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-71';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1822,11 +1822,11 @@ function capitalize(word) {
|
|
|
1822
1822
|
*/
|
|
1823
1823
|
function pipelineJsonToString(pipelineJson) {
|
|
1824
1824
|
const { title, pipelineUrl, bookVersion, description, parameters, tasks } = pipelineJson;
|
|
1825
|
-
let pipelineString =
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1825
|
+
let pipelineString = spaceTrim$1((block) => `
|
|
1826
|
+
# ${title}
|
|
1827
|
+
|
|
1828
|
+
${block(description || '')}
|
|
1829
|
+
`);
|
|
1830
1830
|
const commands = [];
|
|
1831
1831
|
if (pipelineUrl) {
|
|
1832
1832
|
commands.push(`PIPELINE URL ${pipelineUrl}`);
|
|
@@ -1842,20 +1842,17 @@ function pipelineJsonToString(pipelineJson) {
|
|
|
1842
1842
|
for (const parameter of parameters.filter(({ isOutput }) => isOutput)) {
|
|
1843
1843
|
commands.push(`OUTPUT PARAMETER ${taskParameterJsonToString(parameter)}`);
|
|
1844
1844
|
}
|
|
1845
|
-
pipelineString
|
|
1846
|
-
|
|
1845
|
+
pipelineString = spaceTrim$1((block) => `
|
|
1846
|
+
${block(pipelineString)}
|
|
1847
|
+
|
|
1848
|
+
${block(commands.map((command) => `- ${command}`).join('\n'))}
|
|
1849
|
+
`);
|
|
1847
1850
|
for (const task of tasks) {
|
|
1848
1851
|
const {
|
|
1849
1852
|
/* Note: Not using:> name, */
|
|
1850
1853
|
title, description,
|
|
1851
1854
|
/* Note: dependentParameterNames, */
|
|
1852
1855
|
jokerParameterNames: jokers, taskType, content, postprocessingFunctionNames: postprocessing, expectations, format, resultingParameterName, } = task;
|
|
1853
|
-
pipelineString += '\n\n';
|
|
1854
|
-
pipelineString += `## ${title}`;
|
|
1855
|
-
if (description) {
|
|
1856
|
-
pipelineString += '\n\n';
|
|
1857
|
-
pipelineString += description;
|
|
1858
|
-
}
|
|
1859
1856
|
const commands = [];
|
|
1860
1857
|
let contentLanguage = 'text';
|
|
1861
1858
|
if (taskType === 'PROMPT_TASK') {
|
|
@@ -1918,18 +1915,23 @@ function pipelineJsonToString(pipelineJson) {
|
|
|
1918
1915
|
commands.push(`FORMAT JSON`);
|
|
1919
1916
|
}
|
|
1920
1917
|
} /* not else */
|
|
1921
|
-
pipelineString
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1918
|
+
pipelineString = spaceTrim$1((block) => `
|
|
1919
|
+
${block(pipelineString)}
|
|
1920
|
+
|
|
1921
|
+
## ${title}
|
|
1922
|
+
|
|
1923
|
+
${block(description || '')}
|
|
1924
|
+
|
|
1925
|
+
${block(commands.map((command) => `- ${command}`).join('\n'))}
|
|
1926
|
+
|
|
1927
|
+
\`\`\`${contentLanguage}
|
|
1928
|
+
${block(spaceTrim$1(content))}
|
|
1929
|
+
\`\`\`
|
|
1930
|
+
|
|
1931
|
+
\`-> {${resultingParameterName}}\`
|
|
1932
|
+
`); // <- TODO: [main] !!3 If the parameter here has description, add it and use taskParameterJsonToString
|
|
1933
|
+
// <- TODO: [main] !!3 Escape
|
|
1934
|
+
// <- TODO: [🧠] Some clear strategy how to spaceTrim the blocks
|
|
1933
1935
|
}
|
|
1934
1936
|
return validatePipelineString(pipelineString);
|
|
1935
1937
|
}
|