@promptbook/cli 0.113.0-1 → 0.113.0-3
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/README.md +1 -17
- package/agents/default/developer.book +3 -0
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerClient.tsx +3 -3
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskRow.tsx +4 -0
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTasksCard.tsx +5 -5
- package/apps/agents-server/src/app/api/page-preview/check/route.ts +20 -5
- package/apps/agents-server/src/app/api/page-preview/input/route.ts +161 -0
- package/apps/agents-server/src/app/api/page-preview/screenshot/route.ts +21 -13
- package/apps/agents-server/src/app/api/page-preview/stream/route.ts +81 -0
- package/apps/agents-server/src/components/Header/HeaderHomepageLink.tsx +1 -1
- package/apps/agents-server/src/utils/chatTasksAdmin.ts +2 -1
- package/apps/agents-server/src/utils/createPagePreviewBrowserStream.ts +179 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse.ts +56 -30
- package/apps/agents-server/src/utils/pagePreviewBrowserSessions.ts +234 -0
- package/esm/index.es.js +26 -5
- package/esm/index.es.js.map +1 -1
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/book-components/Chat/Chat/Chat.module.css +40 -12
- package/src/book-components/Chat/Chat/CitationIframePreview.tsx +108 -156
- package/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.ts +1 -8
- package/src/cli/promptbookCli.ts +28 -3
- package/src/other/templates/getTemplatesPipelineCollection.ts +738 -761
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +26 -5
- package/umd/index.umd.js.map +1 -1
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
- package/umd/src/version.d.ts +1 -1
- package/apps/agents-server/src/app/api/page-preview/interact/route.ts +0 -179
- package/apps/agents-server/src/app/api/page-preview/live/route.ts +0 -67
- package/apps/agents-server/src/utils/pagePreview/livePagePreviewSessions.ts +0 -365
- package/apps/agents-server/src/utils/pagePreview/resolvePagePreviewRequestUrl.ts +0 -74
- package/esm/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +0 -12
- package/src/book-components/Chat/utils/livePagePreviewConstants.ts +0 -17
- package/umd/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +0 -12
package/src/version.ts
CHANGED
|
@@ -16,11 +16,11 @@ export const BOOK_LANGUAGE_VERSION: string_semantic_version = '2.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.113.0-
|
|
19
|
+
export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.113.0-3';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Represents the version string of the Promptbook engine.
|
|
23
|
-
* It follows semantic versioning (e.g., `0.113.0-
|
|
23
|
+
* It follows semantic versioning (e.g., `0.113.0-1`).
|
|
24
24
|
*
|
|
25
25
|
* @generated
|
|
26
26
|
*/
|
package/src/versions.txt
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
* @generated
|
|
64
64
|
* @see https://github.com/webgptorg/promptbook
|
|
65
65
|
*/
|
|
66
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
66
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-3';
|
|
67
67
|
/**
|
|
68
68
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
69
69
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -30186,9 +30186,10 @@
|
|
|
30186
30186
|
|
|
30187
30187
|
[Up to 50,000 CZK](?message=We are posting an order up to 50,000 CZK)
|
|
30188
30188
|
[Up to 100,000 CZK](?message=We are posting an order up to 100,000 CZK)
|
|
30189
|
-
[Over 100,000 CZK](?
|
|
30189
|
+
[Over 100,000 CZK](?messageDraft=We are posting an order over 100,000 CZK)
|
|
30190
30190
|
\`\`\`
|
|
30191
30191
|
|
|
30192
|
+
- You can use \`message\` for message that will be sent immediately after clicking the button, or \`messageDraft\` for message that will be prefilled in the input field for editing before sending.
|
|
30192
30193
|
|
|
30193
30194
|
## This is how you should behave
|
|
30194
30195
|
|
|
@@ -54639,6 +54640,12 @@
|
|
|
54639
54640
|
'start-agents-server': 'Use `ptbk agents-server start` instead.',
|
|
54640
54641
|
'start-pipelines-server': OLD_PIPELINE_SYSTEM_DEPRECATION_MESSAGE,
|
|
54641
54642
|
};
|
|
54643
|
+
/**
|
|
54644
|
+
* Raw top-level CLI arguments that print the Promptbook version.
|
|
54645
|
+
*
|
|
54646
|
+
* @private internal constant of `promptbookCli`
|
|
54647
|
+
*/
|
|
54648
|
+
const VERSION_OPTION_ARGUMENTS = new Set(['-v', '--version']);
|
|
54642
54649
|
/**
|
|
54643
54650
|
* Runs CLI utilities of Promptbook package
|
|
54644
54651
|
*
|
|
@@ -54653,8 +54660,13 @@
|
|
|
54653
54660
|
|
|
54654
54661
|
`));
|
|
54655
54662
|
}
|
|
54656
|
-
const
|
|
54657
|
-
const
|
|
54663
|
+
const commandLineArguments = process.argv.slice(2);
|
|
54664
|
+
const isVersionRequested = isTopLevelVersionRequested(commandLineArguments);
|
|
54665
|
+
if (isVersionRequested) {
|
|
54666
|
+
console.info(PROMPTBOOK_ENGINE_VERSION);
|
|
54667
|
+
return process.exit(0);
|
|
54668
|
+
}
|
|
54669
|
+
const isVerbose = commandLineArguments.some((argument) => argument === '--verbose' || argument === '-v');
|
|
54658
54670
|
// <- TODO: Can be this be done with commander before the commander commands are initialized?
|
|
54659
54671
|
if (isVerbose) {
|
|
54660
54672
|
console.info(colors__default["default"].gray(`Promptbook CLI version ${PROMPTBOOK_ENGINE_VERSION} in ${__filename.split('\\').join('/')}`));
|
|
@@ -54683,12 +54695,21 @@
|
|
|
54683
54695
|
$deprecateTopLevelCommands(program);
|
|
54684
54696
|
// TODO: [🧠] Should it be here or not> $addGlobalOptionsToCommand(program);
|
|
54685
54697
|
program.commands.forEach($addGlobalOptionsToCommand);
|
|
54686
|
-
if (
|
|
54698
|
+
if (commandLineArguments.length === 0) {
|
|
54687
54699
|
program.outputHelp();
|
|
54688
54700
|
return process.exit(0);
|
|
54689
54701
|
}
|
|
54690
54702
|
program.parse(process.argv);
|
|
54691
54703
|
}
|
|
54704
|
+
/**
|
|
54705
|
+
* Checks whether the invocation asks for the root Promptbook CLI version.
|
|
54706
|
+
*
|
|
54707
|
+
* @private internal utility of `promptbookCli`
|
|
54708
|
+
*/
|
|
54709
|
+
function isTopLevelVersionRequested(commandLineArguments) {
|
|
54710
|
+
const firstCommandLineArgument = commandLineArguments[0];
|
|
54711
|
+
return firstCommandLineArgument !== undefined && VERSION_OPTION_ARGUMENTS.has(firstCommandLineArgument);
|
|
54712
|
+
}
|
|
54692
54713
|
/**
|
|
54693
54714
|
* Adds one deprecation notice to each configured top-level legacy command.
|
|
54694
54715
|
*/
|