@promptbook/cli 0.113.0-0 → 0.113.0-1

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 (29) hide show
  1. package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskRow.tsx +7 -2
  2. package/apps/agents-server/src/app/api/page-preview/check/route.ts +5 -20
  3. package/apps/agents-server/src/app/api/page-preview/interact/route.ts +179 -0
  4. package/apps/agents-server/src/app/api/page-preview/live/route.ts +67 -0
  5. package/apps/agents-server/src/app/api/page-preview/screenshot/route.ts +13 -21
  6. package/apps/agents-server/src/constants/chatVisualMode.ts +1 -1
  7. package/apps/agents-server/src/constants/themeMode.ts +1 -1
  8. package/apps/agents-server/src/database/migrations/2026-05-2600-default-theme.sql +2 -2
  9. package/apps/agents-server/src/utils/chatTasksAdmin.ts +3 -1
  10. package/apps/agents-server/src/utils/getAdminChatTasksResponse/mapVpsSelfUpdateJobToAdminChatTask.ts +84 -0
  11. package/apps/agents-server/src/utils/getAdminChatTasksResponse.ts +195 -5
  12. package/apps/agents-server/src/utils/pagePreview/livePagePreviewSessions.ts +365 -0
  13. package/apps/agents-server/src/utils/pagePreview/resolvePagePreviewRequestUrl.ts +74 -0
  14. package/apps/agents-server/src/utils/vpsSelfUpdate.ts +12 -0
  15. package/esm/index.es.js +1 -1
  16. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  17. package/esm/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +12 -0
  18. package/esm/src/version.d.ts +1 -1
  19. package/package.json +1 -1
  20. package/src/book-components/Chat/Chat/Chat.module.css +14 -5
  21. package/src/book-components/Chat/Chat/CitationIframePreview.tsx +197 -22
  22. package/src/book-components/Chat/utils/livePagePreviewConstants.ts +17 -0
  23. package/src/other/templates/getTemplatesPipelineCollection.ts +764 -750
  24. package/src/version.ts +2 -2
  25. package/src/versions.txt +1 -0
  26. package/umd/index.umd.js +1 -1
  27. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  28. package/umd/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +12 -0
  29. package/umd/src/version.d.ts +1 -1
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-0';
19
+ export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.113.0-1';
20
20
 
21
21
  /**
22
22
  * Represents the version string of the Promptbook engine.
23
- * It follows semantic versioning (e.g., `0.112.0`).
23
+ * It follows semantic versioning (e.g., `0.113.0-0`).
24
24
  *
25
25
  * @generated
26
26
  */
package/src/versions.txt CHANGED
@@ -1167,3 +1167,4 @@
1167
1167
  0.112.0-140
1168
1168
  0.112.0
1169
1169
  0.113.0-0
1170
+ 0.113.0-1
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-0';
66
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-1';
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
@@ -9,8 +9,8 @@ export type CitationIframePreviewProps = {
9
9
  };
10
10
  /**
11
11
  * Renders a citation URL preview as an iframe when the target page allows embedding,
12
- * or falls back to a server-side screenshot with an "Open in new tab" link when it
13
- * does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
12
+ * or falls back to a live server-side browser preview with an "Open in new tab" link
13
+ * when it does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
14
14
  *
15
15
  * Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
16
16
  * If that endpoint is unavailable the component falls back to the iframe directly.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Width of the browser viewport used for live knowledge previews.
3
+ *
4
+ * @private shared constant of Agents Server knowledge previews
5
+ */
6
+ export declare const LIVE_PAGE_PREVIEW_VIEWPORT_WIDTH = 1280;
7
+ /**
8
+ * Height of the browser viewport used for live knowledge previews.
9
+ *
10
+ * @private shared constant of Agents Server knowledge previews
11
+ */
12
+ export declare const LIVE_PAGE_PREVIEW_VIEWPORT_HEIGHT = 800;
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0`).
18
+ * It follows semantic versioning (e.g., `0.113.0-0`).
19
19
  *
20
20
  * @generated
21
21
  */