@promptbook/core 0.112.0-109 → 0.112.0-110
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 +17 -1
- package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +7 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +1 -1
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +17 -1
- package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +7 -0
- package/umd/src/version.d.ts +1 -1
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-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-110';
|
|
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
|
|
@@ -34,6 +34,14 @@ export type AgentsServerBuildArtifacts = {
|
|
|
34
34
|
readonly nodeModulesPath: string;
|
|
35
35
|
readonly nextCliPath: string;
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Runtime paths resolved for Agents Server commands before choosing build or dev execution.
|
|
39
|
+
*
|
|
40
|
+
* @private internal type of `ptbk agents-server`
|
|
41
|
+
*/
|
|
42
|
+
export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
|
|
43
|
+
readonly isAppPathMaterialized: boolean;
|
|
44
|
+
};
|
|
37
45
|
/**
|
|
38
46
|
* Input paths required to validate or update the cached Agents Server build.
|
|
39
47
|
*
|
|
@@ -48,7 +56,15 @@ type AgentsServerBuildCacheOptions = {
|
|
|
48
56
|
*
|
|
49
57
|
* @private internal utility of `ptbk agents-server`
|
|
50
58
|
*/
|
|
51
|
-
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<
|
|
59
|
+
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
|
|
60
|
+
/**
|
|
61
|
+
* Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
|
|
62
|
+
*
|
|
63
|
+
* @private internal utility of `ptbk agents-server`
|
|
64
|
+
*/
|
|
65
|
+
export declare function prepareAgentsServerRuntime(options?: {
|
|
66
|
+
readonly appPath?: string;
|
|
67
|
+
}): Promise<PreparedAgentsServerRuntime>;
|
|
52
68
|
/**
|
|
53
69
|
* Returns true when the production build marker and source fingerprint still match.
|
|
54
70
|
*
|
|
@@ -6,6 +6,12 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
6
6
|
* @private internal function of `promptbookCli`
|
|
7
7
|
*/
|
|
8
8
|
export declare function $initializeAgentsServerStartCommand(program: Program): $side_effect;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes `agents-server dev` command for Promptbook CLI utilities.
|
|
11
|
+
*
|
|
12
|
+
* @private internal function of `promptbookCli`
|
|
13
|
+
*/
|
|
14
|
+
export declare function $initializeAgentsServerDevCommand(program: Program): $side_effect;
|
|
9
15
|
/**
|
|
10
16
|
* Initializes `agents-server build` command for Promptbook CLI utilities.
|
|
11
17
|
*
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ThinkingLevel } from '../coder/ThinkingLevel';
|
|
2
2
|
import type { PromptRunnerAgentName } from '../common/promptRunnerCliOptions';
|
|
3
3
|
import type { number_port } from '../../../types/number_positive';
|
|
4
|
+
/**
|
|
5
|
+
* Next runtime mode supported by the local Agents Server foreground launcher.
|
|
6
|
+
*
|
|
7
|
+
* @private internal type of `ptbk agents-server`
|
|
8
|
+
*/
|
|
9
|
+
export type AgentsServerNextRuntimeMode = 'start' | 'dev';
|
|
4
10
|
/**
|
|
5
11
|
* Options required to start the foreground Agents Server service group.
|
|
6
12
|
*
|
|
@@ -13,6 +19,7 @@ export type StartAgentsServerOptions = {
|
|
|
13
19
|
readonly noUi: boolean;
|
|
14
20
|
readonly thinkingLevel?: ThinkingLevel;
|
|
15
21
|
readonly allowCredits: boolean;
|
|
22
|
+
readonly nextRuntimeMode: AgentsServerNextRuntimeMode;
|
|
16
23
|
readonly isBuildForced: boolean;
|
|
17
24
|
};
|
|
18
25
|
/**
|
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-109`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
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-110';
|
|
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
|
|
@@ -34,6 +34,14 @@ export type AgentsServerBuildArtifacts = {
|
|
|
34
34
|
readonly nodeModulesPath: string;
|
|
35
35
|
readonly nextCliPath: string;
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Runtime paths resolved for Agents Server commands before choosing build or dev execution.
|
|
39
|
+
*
|
|
40
|
+
* @private internal type of `ptbk agents-server`
|
|
41
|
+
*/
|
|
42
|
+
export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
|
|
43
|
+
readonly isAppPathMaterialized: boolean;
|
|
44
|
+
};
|
|
37
45
|
/**
|
|
38
46
|
* Input paths required to validate or update the cached Agents Server build.
|
|
39
47
|
*
|
|
@@ -48,7 +56,15 @@ type AgentsServerBuildCacheOptions = {
|
|
|
48
56
|
*
|
|
49
57
|
* @private internal utility of `ptbk agents-server`
|
|
50
58
|
*/
|
|
51
|
-
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<
|
|
59
|
+
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
|
|
60
|
+
/**
|
|
61
|
+
* Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
|
|
62
|
+
*
|
|
63
|
+
* @private internal utility of `ptbk agents-server`
|
|
64
|
+
*/
|
|
65
|
+
export declare function prepareAgentsServerRuntime(options?: {
|
|
66
|
+
readonly appPath?: string;
|
|
67
|
+
}): Promise<PreparedAgentsServerRuntime>;
|
|
52
68
|
/**
|
|
53
69
|
* Returns true when the production build marker and source fingerprint still match.
|
|
54
70
|
*
|
|
@@ -6,6 +6,12 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
6
6
|
* @private internal function of `promptbookCli`
|
|
7
7
|
*/
|
|
8
8
|
export declare function $initializeAgentsServerStartCommand(program: Program): $side_effect;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes `agents-server dev` command for Promptbook CLI utilities.
|
|
11
|
+
*
|
|
12
|
+
* @private internal function of `promptbookCli`
|
|
13
|
+
*/
|
|
14
|
+
export declare function $initializeAgentsServerDevCommand(program: Program): $side_effect;
|
|
9
15
|
/**
|
|
10
16
|
* Initializes `agents-server build` command for Promptbook CLI utilities.
|
|
11
17
|
*
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ThinkingLevel } from '../coder/ThinkingLevel';
|
|
2
2
|
import type { PromptRunnerAgentName } from '../common/promptRunnerCliOptions';
|
|
3
3
|
import type { number_port } from '../../../types/number_positive';
|
|
4
|
+
/**
|
|
5
|
+
* Next runtime mode supported by the local Agents Server foreground launcher.
|
|
6
|
+
*
|
|
7
|
+
* @private internal type of `ptbk agents-server`
|
|
8
|
+
*/
|
|
9
|
+
export type AgentsServerNextRuntimeMode = 'start' | 'dev';
|
|
4
10
|
/**
|
|
5
11
|
* Options required to start the foreground Agents Server service group.
|
|
6
12
|
*
|
|
@@ -13,6 +19,7 @@ export type StartAgentsServerOptions = {
|
|
|
13
19
|
readonly noUi: boolean;
|
|
14
20
|
readonly thinkingLevel?: ThinkingLevel;
|
|
15
21
|
readonly allowCredits: boolean;
|
|
22
|
+
readonly nextRuntimeMode: AgentsServerNextRuntimeMode;
|
|
16
23
|
readonly isBuildForced: boolean;
|
|
17
24
|
};
|
|
18
25
|
/**
|
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-109`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|