@promptbook/core 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 CHANGED
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
28
28
  * @generated
29
29
  * @see https://github.com/webgptorg/promptbook
30
30
  */
31
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-87';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-89';
32
32
  /**
33
33
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
34
34
  * 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;
@@ -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-82`).
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/core",
3
- "version": "0.112.0-87",
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,
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-87';
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;
@@ -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-82`).
18
+ * It follows semantic versioning (e.g., `0.112.0-88`).
19
19
  *
20
20
  * @generated
21
21
  */