@promptbook/browser 0.112.0-87 → 0.112.0-89
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/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +31 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +6 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +31 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +6 -0
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
32
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-89';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Environment variable passed to the bundled Next app so webpack can resolve dependencies
|
|
4
|
+
* installed beside `ptbk` even when the app sources are materialized into a project cache.
|
|
5
|
+
*
|
|
6
|
+
* @private internal constant of `ptbk agents-server`
|
|
7
|
+
*/
|
|
8
|
+
export declare const PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV = "PTBK_AGENTS_SERVER_NODE_MODULES_PATH";
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable used only by the CLI-owned production build.
|
|
11
|
+
*
|
|
12
|
+
* @private internal constant of `ptbk agents-server`
|
|
13
|
+
*/
|
|
14
|
+
export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
|
|
2
15
|
/**
|
|
3
16
|
* Inputs controlling one cached Agents Server production build.
|
|
4
17
|
*
|
|
@@ -18,6 +31,7 @@ type EnsureAgentsServerBuildOptions = {
|
|
|
18
31
|
*/
|
|
19
32
|
export type AgentsServerBuildArtifacts = {
|
|
20
33
|
readonly appPath: string;
|
|
34
|
+
readonly nodeModulesPath: string;
|
|
21
35
|
readonly nextCliPath: string;
|
|
22
36
|
};
|
|
23
37
|
/**
|
|
@@ -53,4 +67,21 @@ export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCa
|
|
|
53
67
|
* @private internal utility of `ptbk agents-server`
|
|
54
68
|
*/
|
|
55
69
|
export declare function resolveAgentsServerAppPath(): Promise<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Adds dependency-resolution environment required by the materialized Agents Server runtime.
|
|
72
|
+
*
|
|
73
|
+
* @private internal utility of `ptbk agents-server`
|
|
74
|
+
*/
|
|
75
|
+
export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
|
|
76
|
+
readonly isNextValidationIgnored?: boolean;
|
|
77
|
+
}): NodeJS.ProcessEnv;
|
|
78
|
+
/**
|
|
79
|
+
* Uses the source checkout app directly, but copies npm-packaged app sources out of `node_modules`.
|
|
80
|
+
*
|
|
81
|
+
* @private internal utility of `ptbk agents-server`
|
|
82
|
+
*/
|
|
83
|
+
export declare function resolveAgentsServerBuildAppPath(options: {
|
|
84
|
+
readonly nodeModulesPath: string;
|
|
85
|
+
readonly sourceAppPath: string;
|
|
86
|
+
}): Promise<string>;
|
|
56
87
|
export {};
|
|
@@ -21,3 +21,9 @@ export type StartAgentsServerOptions = {
|
|
|
21
21
|
* @private internal utility of `ptbk agents-server`
|
|
22
22
|
*/
|
|
23
23
|
export declare function startAgentsServer(options: StartAgentsServerOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Loads launch-directory `.env` values without overriding explicit process environment.
|
|
26
|
+
*
|
|
27
|
+
* @private internal utility of `ptbk agents-server`
|
|
28
|
+
*/
|
|
29
|
+
export declare function loadAgentsServerProjectEnvironment(launchWorkingDirectory: string): void;
|
package/esm/src/version.d.ts
CHANGED
|
@@ -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.112.0-88`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/browser",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-89",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"types": "./esm/src/_packages/browser.index.d.ts",
|
|
99
99
|
"typings": "./esm/src/_packages/browser.index.d.ts",
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@promptbook/core": "0.112.0-
|
|
101
|
+
"@promptbook/core": "0.112.0-89"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@openai/agents": "0.4.15",
|
package/umd/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-89';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Environment variable passed to the bundled Next app so webpack can resolve dependencies
|
|
4
|
+
* installed beside `ptbk` even when the app sources are materialized into a project cache.
|
|
5
|
+
*
|
|
6
|
+
* @private internal constant of `ptbk agents-server`
|
|
7
|
+
*/
|
|
8
|
+
export declare const PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV = "PTBK_AGENTS_SERVER_NODE_MODULES_PATH";
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable used only by the CLI-owned production build.
|
|
11
|
+
*
|
|
12
|
+
* @private internal constant of `ptbk agents-server`
|
|
13
|
+
*/
|
|
14
|
+
export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
|
|
2
15
|
/**
|
|
3
16
|
* Inputs controlling one cached Agents Server production build.
|
|
4
17
|
*
|
|
@@ -18,6 +31,7 @@ type EnsureAgentsServerBuildOptions = {
|
|
|
18
31
|
*/
|
|
19
32
|
export type AgentsServerBuildArtifacts = {
|
|
20
33
|
readonly appPath: string;
|
|
34
|
+
readonly nodeModulesPath: string;
|
|
21
35
|
readonly nextCliPath: string;
|
|
22
36
|
};
|
|
23
37
|
/**
|
|
@@ -53,4 +67,21 @@ export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCa
|
|
|
53
67
|
* @private internal utility of `ptbk agents-server`
|
|
54
68
|
*/
|
|
55
69
|
export declare function resolveAgentsServerAppPath(): Promise<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Adds dependency-resolution environment required by the materialized Agents Server runtime.
|
|
72
|
+
*
|
|
73
|
+
* @private internal utility of `ptbk agents-server`
|
|
74
|
+
*/
|
|
75
|
+
export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
|
|
76
|
+
readonly isNextValidationIgnored?: boolean;
|
|
77
|
+
}): NodeJS.ProcessEnv;
|
|
78
|
+
/**
|
|
79
|
+
* Uses the source checkout app directly, but copies npm-packaged app sources out of `node_modules`.
|
|
80
|
+
*
|
|
81
|
+
* @private internal utility of `ptbk agents-server`
|
|
82
|
+
*/
|
|
83
|
+
export declare function resolveAgentsServerBuildAppPath(options: {
|
|
84
|
+
readonly nodeModulesPath: string;
|
|
85
|
+
readonly sourceAppPath: string;
|
|
86
|
+
}): Promise<string>;
|
|
56
87
|
export {};
|
|
@@ -21,3 +21,9 @@ export type StartAgentsServerOptions = {
|
|
|
21
21
|
* @private internal utility of `ptbk agents-server`
|
|
22
22
|
*/
|
|
23
23
|
export declare function startAgentsServer(options: StartAgentsServerOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Loads launch-directory `.env` values without overriding explicit process environment.
|
|
26
|
+
*
|
|
27
|
+
* @private internal utility of `ptbk agents-server`
|
|
28
|
+
*/
|
|
29
|
+
export declare function loadAgentsServerProjectEnvironment(launchWorkingDirectory: string): void;
|
package/umd/src/version.d.ts
CHANGED
|
@@ -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.112.0-88`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|