@promptbook/cli 0.103.0-40 → 0.103.0-41
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 +2 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -0
- package/esm/typings/src/remote-server/startAgentServer.d.ts +23 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +2 -1
- package/umd/index.umd.js.map +1 -1
|
@@ -2,11 +2,13 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
|
2
2
|
import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
3
3
|
import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
4
4
|
import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
|
|
5
|
+
import { startAgentServer } from '../remote-server/startAgentServer';
|
|
5
6
|
import { startRemoteServer } from '../remote-server/startRemoteServer';
|
|
6
7
|
import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
|
|
7
8
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
8
9
|
export type { Identification };
|
|
9
10
|
export type { ApplicationModeIdentification };
|
|
10
11
|
export type { AnonymousModeIdentification };
|
|
12
|
+
export { startAgentServer };
|
|
11
13
|
export { startRemoteServer };
|
|
12
14
|
export type { RemoteServerOptions };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TODO_any } from '../_packages/types.index';
|
|
2
|
+
import { number_port } from '../types/typeAliases';
|
|
3
|
+
type AgentsServerOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* !!!
|
|
6
|
+
*
|
|
7
|
+
* @default 4440
|
|
8
|
+
*/
|
|
9
|
+
port: number_port;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* !!!!!
|
|
13
|
+
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
14
|
+
*
|
|
15
|
+
* You can simply use `RemoteExecutionTools` on client-side javascript and connect to your remote server.
|
|
16
|
+
* This is useful to make all logic on browser side but not expose your API keys or no need to use customer's GPU.
|
|
17
|
+
*
|
|
18
|
+
* @see https://github.com/webgptorg/promptbook#remote-server
|
|
19
|
+
* @public exported from `@promptbook/remote-server`
|
|
20
|
+
* <- TODO: !!!! Maybe change to `@promptbook/agent-server`
|
|
21
|
+
*/
|
|
22
|
+
export declare function startAgentServer(options: AgentsServerOptions): Promise<TODO_any>;
|
|
23
|
+
export {};
|
|
@@ -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-40`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
* @generated
|
|
58
58
|
* @see https://github.com/webgptorg/promptbook
|
|
59
59
|
*/
|
|
60
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
60
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-41';
|
|
61
61
|
/**
|
|
62
62
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
63
63
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -20755,6 +20755,7 @@
|
|
|
20755
20755
|
// console.log({ isRichUi });
|
|
20756
20756
|
TODO_USE(tools);
|
|
20757
20757
|
TODO_USE(collection);
|
|
20758
|
+
// TODO: !!!! Use
|
|
20758
20759
|
// TODO: !!!! Pass collection and tools to the server starter
|
|
20759
20760
|
// TODO: !!!! The Next app should be build during the package build step not here
|
|
20760
20761
|
/*
|