@promptbook/vercel 0.103.0-25 → 0.103.0-28
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 +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +2 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/cli/cli-commands/about.d.ts +1 -0
- package/esm/typings/src/cli/cli-commands/start-server.d.ts +1 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -0
- package/esm/typings/src/utils/misc/aboutPromptbookInformation.d.ts +21 -0
- package/esm/typings/src/utils/misc/xAboutPromptbookInformation.d.ts +13 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
19
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-28';
|
|
20
20
|
/**
|
|
21
21
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
22
22
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -53,6 +53,7 @@ import { BrandedQrCode } from '../book-components/Qr/BrandedQrCode';
|
|
|
53
53
|
import { GenericQrCode } from '../book-components/Qr/GenericQrCode';
|
|
54
54
|
import { PromptbookQrCode } from '../book-components/Qr/PromptbookQrCode';
|
|
55
55
|
import { injectCssModuleIntoShadowRoot } from '../utils/misc/injectCssModuleIntoShadowRoot';
|
|
56
|
+
import { AboutPromptbookInformation } from '../utils/misc/xAboutPromptbookInformation';
|
|
56
57
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
57
58
|
export type { AvatarChipProps };
|
|
58
59
|
export { AvatarChip };
|
|
@@ -108,3 +109,4 @@ export { BrandedQrCode };
|
|
|
108
109
|
export { GenericQrCode };
|
|
109
110
|
export { PromptbookQrCode };
|
|
110
111
|
export { injectCssModuleIntoShadowRoot };
|
|
112
|
+
export { AboutPromptbookInformation };
|
|
@@ -176,6 +176,7 @@ import { MODEL_VARIANTS } from '../types/ModelVariant';
|
|
|
176
176
|
import { NonTaskSectionTypes } from '../types/SectionType';
|
|
177
177
|
import { SectionTypes } from '../types/SectionType';
|
|
178
178
|
import { TaskTypes } from '../types/TaskType';
|
|
179
|
+
import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
|
|
179
180
|
import { REMOTE_SERVER_URLS } from '../../servers';
|
|
180
181
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
181
182
|
export { createAgentModelRequirements };
|
|
@@ -355,4 +356,5 @@ export { MODEL_VARIANTS };
|
|
|
355
356
|
export { NonTaskSectionTypes };
|
|
356
357
|
export { SectionTypes };
|
|
357
358
|
export { TaskTypes };
|
|
359
|
+
export { aboutPromptbookInformation };
|
|
358
360
|
export { REMOTE_SERVER_URLS };
|
|
@@ -318,6 +318,7 @@ import type { CodeBlock } from '../utils/markdown/extractAllBlocksFromMarkdown';
|
|
|
318
318
|
import type { MarkdownSection } from '../utils/markdown/parseMarkdownSection';
|
|
319
319
|
import type { Registered } from '../utils/misc/$Register';
|
|
320
320
|
import type { Registration } from '../utils/misc/$Register';
|
|
321
|
+
import type { AboutPromptbookInformationOptions } from '../utils/misc/aboutPromptbookInformation';
|
|
321
322
|
import type { FromtoItems } from '../utils/misc/FromtoItems';
|
|
322
323
|
import type { InjectCssModuleIntoShadowRootOptions } from '../utils/misc/injectCssModuleIntoShadowRoot';
|
|
323
324
|
import type { string_keyword } from '../utils/normalization/IKeywords';
|
|
@@ -655,6 +656,7 @@ export type { CodeBlock };
|
|
|
655
656
|
export type { MarkdownSection };
|
|
656
657
|
export type { Registered };
|
|
657
658
|
export type { Registration };
|
|
659
|
+
export type { AboutPromptbookInformationOptions };
|
|
658
660
|
export type { FromtoItems };
|
|
659
661
|
export type { InjectCssModuleIntoShadowRootOptions };
|
|
660
662
|
export type { string_keyword };
|
|
@@ -9,6 +9,7 @@ import { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeAboutCommand(program: Program): $side_effect;
|
|
11
11
|
/**
|
|
12
|
+
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
12
13
|
* TODO: [🗽] Unite branding and make single place for it
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
15
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
@@ -9,6 +9,7 @@ import { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeStartServerCommand(program: Program): $side_effect;
|
|
11
11
|
/**
|
|
12
|
+
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
12
13
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
14
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
15
|
*/
|
|
@@ -11,6 +11,7 @@ import type { RemoteServerOptions } from './types/RemoteServerOptions';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function startRemoteServer<TCustomOptions = undefined>(options: RemoteServerOptions<TCustomOptions>): RemoteServer;
|
|
13
13
|
/**
|
|
14
|
+
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
14
15
|
* TODO: [🌡] Add CORS and security - probably via `helmet`
|
|
15
16
|
* TODO: Split this file into multiple functions - handler for each request
|
|
16
17
|
* TODO: Maybe use `$exportJson`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { string_markdown } from '../../types/typeAliases';
|
|
2
|
+
export type AboutPromptbookInformationOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Include information about available servers
|
|
5
|
+
*
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
isServersInfoIncluded?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Provide information about Promptbook, engine version, book language version, servers, ...
|
|
12
|
+
*
|
|
13
|
+
* @param options Which information to include
|
|
14
|
+
* @returns Information about Promptbook in markdown format
|
|
15
|
+
*
|
|
16
|
+
* @public exported from `@promptbook/core`
|
|
17
|
+
*/
|
|
18
|
+
export declare function aboutPromptbookInformation(options?: AboutPromptbookInformationOptions): string_markdown;
|
|
19
|
+
/**
|
|
20
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
21
|
+
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AboutPromptbookInformationOptions } from './aboutPromptbookInformation';
|
|
2
|
+
type AboutPromptbookInformationProps = AboutPromptbookInformationOptions;
|
|
3
|
+
/**
|
|
4
|
+
* Provide information about Promptbook, engine version, book language version, servers, ...
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/components`
|
|
7
|
+
*/
|
|
8
|
+
export declare function AboutPromptbookInformation(props: AboutPromptbookInformationProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
/**
|
|
11
|
+
* TODO: !!! Remove "x" from filename
|
|
12
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
13
|
+
*/
|
|
@@ -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.103.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.103.0-27`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/vercel",
|
|
3
|
-
"version": "0.103.0-
|
|
3
|
+
"version": "0.103.0-28",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"module": "./esm/index.es.js",
|
|
95
95
|
"typings": "./esm/typings/src/_packages/vercel.index.d.ts",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@promptbook/core": "0.103.0-
|
|
97
|
+
"@promptbook/core": "0.103.0-28"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"colors": "1.4.0",
|
|
101
101
|
"crypto": "1.0.1",
|
|
102
|
-
"spacetrim": "0.11.
|
|
102
|
+
"spacetrim": "0.11.60"
|
|
103
103
|
}
|
|
104
104
|
}
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-28';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|