@promptbook/components 0.112.0-92 → 0.112.0-93
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/{agent → agent-folder}/agentProjectPaths.d.ts +16 -16
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/agentRunCliOptions.d.ts +5 -5
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/init.d.ts +1 -1
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/initializeAgentProjectConfiguration.d.ts +2 -2
- package/esm/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.d.ts +4 -4
- package/esm/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts +1 -1
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/run.d.ts +1 -1
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/runMultiple.d.ts +1 -1
- package/esm/src/cli/cli-commands/{agent → agent-folder}/tick.d.ts +1 -1
- package/esm/src/cli/cli-commands/{agent.d.ts → agent-folder.d.ts} +3 -3
- 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/{agent → agent-folder}/agentProjectPaths.d.ts +16 -16
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/agentRunCliOptions.d.ts +5 -5
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/init.d.ts +1 -1
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/initializeAgentProjectConfiguration.d.ts +2 -2
- package/umd/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.d.ts +4 -4
- package/umd/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts +1 -1
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/run.d.ts +1 -1
- package/umd/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/runMultiple.d.ts +1 -1
- package/umd/src/cli/cli-commands/{agent → agent-folder}/tick.d.ts +1 -1
- package/umd/src/cli/cli-commands/{agent.d.ts → agent-folder.d.ts} +3 -3
- package/umd/src/cli/other/vpsInstall.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- /package/esm/src/cli/cli-commands/{agent → agent-folder}/run.test.d.ts +0 -0
- /package/{umd/src/cli/cli-commands/agent/run.test.d.ts → esm/src/cli/other/vpsInstall.test.d.ts} +0 -0
package/esm/index.es.js
CHANGED
|
@@ -41,7 +41,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
41
41
|
* @generated
|
|
42
42
|
* @see https://github.com/webgptorg/promptbook
|
|
43
43
|
*/
|
|
44
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
44
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-93';
|
|
45
45
|
/**
|
|
46
46
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
47
47
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relative path to the local agent source initialized by `ptbk agent init`.
|
|
2
|
+
* Relative path to the local agent source initialized by `ptbk agent-folder init`.
|
|
3
3
|
*
|
|
4
|
-
* @private internal utility of `ptbk agent`
|
|
4
|
+
* @private internal utility of `ptbk agent-folder`
|
|
5
5
|
*/
|
|
6
6
|
export declare const AGENT_BOOK_FILE_PATH = "agent.book";
|
|
7
7
|
/**
|
|
8
|
-
* Relative path to local knowledge files initialized by `ptbk agent init`.
|
|
8
|
+
* Relative path to local knowledge files initialized by `ptbk agent-folder init`.
|
|
9
9
|
*
|
|
10
|
-
* @private internal utility of `ptbk agent`
|
|
10
|
+
* @private internal utility of `ptbk agent-folder`
|
|
11
11
|
*/
|
|
12
12
|
export declare const AGENT_KNOWLEDGE_DIRECTORY_PATH = "knowledge";
|
|
13
13
|
/**
|
|
14
|
-
* Relative path to the message queue root initialized by `ptbk agent init`.
|
|
14
|
+
* Relative path to the message queue root initialized by `ptbk agent-folder init`.
|
|
15
15
|
*
|
|
16
|
-
* @private internal utility of `ptbk agent`
|
|
16
|
+
* @private internal utility of `ptbk agent-folder`
|
|
17
17
|
*/
|
|
18
18
|
export declare const AGENT_MESSAGES_DIRECTORY_PATH = "messages";
|
|
19
19
|
/**
|
|
20
|
-
* Relative path to queued user messages consumed by `ptbk agent run-once`.
|
|
20
|
+
* Relative path to queued user messages consumed by `ptbk agent-folder run-once`.
|
|
21
21
|
*
|
|
22
|
-
* @private internal utility of `ptbk agent`
|
|
22
|
+
* @private internal utility of `ptbk agent-folder`
|
|
23
23
|
*/
|
|
24
24
|
export declare const AGENT_QUEUED_MESSAGES_DIRECTORY_PATH: string;
|
|
25
25
|
/**
|
|
26
|
-
* Relative path to answered messages written by `ptbk agent run-once`.
|
|
26
|
+
* Relative path to answered messages written by `ptbk agent-folder run-once`.
|
|
27
27
|
*
|
|
28
|
-
* @private internal utility of `ptbk agent`
|
|
28
|
+
* @private internal utility of `ptbk agent-folder`
|
|
29
29
|
*/
|
|
30
30
|
export declare const AGENT_FINISHED_MESSAGES_DIRECTORY_PATH: string;
|
|
31
31
|
/**
|
|
32
|
-
* Relative path to generated local agent documentation initialized by `ptbk agent init`.
|
|
32
|
+
* Relative path to generated local agent documentation initialized by `ptbk agent-folder init`.
|
|
33
33
|
*
|
|
34
|
-
* @private internal utility of `ptbk agent`
|
|
34
|
+
* @private internal utility of `ptbk agent-folder`
|
|
35
35
|
*/
|
|
36
36
|
export declare const AGENT_DOCS_DIRECTORY_PATH = "docs";
|
|
37
37
|
/**
|
|
38
|
-
* Relative path to the local Book language manual initialized by `ptbk agent init`.
|
|
38
|
+
* Relative path to the local Book language manual initialized by `ptbk agent-folder init`.
|
|
39
39
|
*
|
|
40
|
-
* @private internal utility of `ptbk agent`
|
|
40
|
+
* @private internal utility of `ptbk agent-folder`
|
|
41
41
|
*/
|
|
42
42
|
export declare const AGENT_BOOK_LANGUAGE_MANUAL_FILE_PATH: string;
|
|
43
43
|
/**
|
|
44
44
|
* Returns the default local agent book content.
|
|
45
45
|
*
|
|
46
|
-
* @private internal utility of `ptbk agent`
|
|
46
|
+
* @private internal utility of `ptbk agent-folder`
|
|
47
47
|
*/
|
|
48
48
|
export declare function getDefaultAgentBookContent(): string;
|
|
49
49
|
/**
|
|
50
50
|
* Returns the default local Book language manual content.
|
|
51
51
|
*
|
|
52
|
-
* @private internal utility of `ptbk agent`
|
|
52
|
+
* @private internal utility of `ptbk agent-folder`
|
|
53
53
|
*/
|
|
54
54
|
export declare function getDefaultBookLanguageManualContent(): string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { NormalizedPromptRunnerCliOptions, PromptRunnerCliOptions } from '../common/promptRunnerCliOptions';
|
|
2
2
|
/**
|
|
3
|
-
* Options passed from `ptbk agent` CLI commands to the message runner.
|
|
3
|
+
* Options passed from `ptbk agent-folder` CLI commands to the message runner.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder`
|
|
6
6
|
*/
|
|
7
7
|
export type AgentRunCliOptions = PromptRunnerCliOptions & {
|
|
8
8
|
readonly autoClone?: boolean;
|
|
9
9
|
readonly ignore?: string | readonly string[];
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Normalized options passed from `ptbk agent` CLI commands to the message runner.
|
|
12
|
+
* Normalized options passed from `ptbk agent-folder` CLI commands to the message runner.
|
|
13
13
|
*
|
|
14
|
-
* @private internal utility of `ptbk agent`
|
|
14
|
+
* @private internal utility of `ptbk agent-folder`
|
|
15
15
|
*/
|
|
16
16
|
export type NormalizedAgentRunCliOptions = NormalizedPromptRunnerCliOptions & {
|
|
17
17
|
readonly autoClone: boolean;
|
|
@@ -20,6 +20,6 @@ export type NormalizedAgentRunCliOptions = NormalizedPromptRunnerCliOptions & {
|
|
|
20
20
|
/**
|
|
21
21
|
* Converts Commander options into the `scripts/run-agent-messages` option shape.
|
|
22
22
|
*
|
|
23
|
-
* @private internal utility of `ptbk agent`
|
|
23
|
+
* @private internal utility of `ptbk agent-folder`
|
|
24
24
|
*/
|
|
25
25
|
export declare function createAgentRunOptionsFromCliOptions(cliOptions: AgentRunCliOptions): NormalizedAgentRunCliOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent init` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder init` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import type { InitializationStatus } from '../coder/boilerplateTemplates';
|
|
|
2
2
|
/**
|
|
3
3
|
* Result summary returned after local agent configuration initialization.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent init`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
6
6
|
*/
|
|
7
7
|
export type AgentInitializationSummary = {
|
|
8
8
|
readonly messagesDirectoryStatus: InitializationStatus;
|
|
@@ -16,6 +16,6 @@ export type AgentInitializationSummary = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Creates local agent queue, knowledge, and instruction files in the current project.
|
|
18
18
|
*
|
|
19
|
-
* @private internal utility of `ptbk agent init`
|
|
19
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
20
20
|
*/
|
|
21
21
|
export declare function initializeAgentProjectConfiguration(projectPath: string): Promise<AgentInitializationSummary>;
|
|
@@ -2,9 +2,9 @@ import type { Command as Program } from 'commander';
|
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
import { createAgentRunOptionsFromCliOptions } from './agentRunCliOptions';
|
|
4
4
|
/**
|
|
5
|
-
* Shared command-registration options for `ptbk agent` runner subcommands.
|
|
5
|
+
* Shared command-registration options for `ptbk agent-folder` runner subcommands.
|
|
6
6
|
*
|
|
7
|
-
* @private internal utility of `ptbk agent`
|
|
7
|
+
* @private internal utility of `ptbk agent-folder`
|
|
8
8
|
*/
|
|
9
9
|
type InitializeAgentRunnerCommandOptions = {
|
|
10
10
|
readonly commandName: string;
|
|
@@ -16,9 +16,9 @@ type InitializeAgentRunnerCommandOptions = {
|
|
|
16
16
|
readonly loadExecutor: () => Promise<(runOptions: ReturnType<typeof createAgentRunOptionsFromCliOptions>) => Promise<unknown>>;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Registers one runner-backed `ptbk agent` subcommand with the shared option and error handling flow.
|
|
19
|
+
* Registers one runner-backed `ptbk agent-folder` subcommand with the shared option and error handling flow.
|
|
20
20
|
*
|
|
21
|
-
* @private internal utility of `ptbk agent`
|
|
21
|
+
* @private internal utility of `ptbk agent-folder`
|
|
22
22
|
*/
|
|
23
23
|
export declare function $initializeAgentRunnerCommand(program: Program, options: InitializeAgentRunnerCommandOptions): $side_effect;
|
|
24
24
|
export {};
|
package/esm/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts
RENAMED
|
@@ -2,6 +2,6 @@ import type { AgentInitializationSummary } from './initializeAgentProjectConfigu
|
|
|
2
2
|
/**
|
|
3
3
|
* Prints a readable summary of initialized local agent files.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent init`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
6
6
|
*/
|
|
7
7
|
export declare function printAgentInitializationSummary(summary: AgentInitializationSummary): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent run` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder run` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/runMultiple.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent run-multiple` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder run-multiple` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent tick` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder tick` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent` command with subcommands for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder` command with subcommands for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
|
-
* The agent command provides utilities for repository-backed message queues:
|
|
6
|
+
* The agent-folder command provides utilities for repository-backed message queues:
|
|
7
7
|
* - init: Initialize local agent queue and instruction files
|
|
8
8
|
* - run-once (alias: tick): Answer one queued message and exit
|
|
9
9
|
* - run-agent (alias: run): Watch one queue and answer messages one by one
|
|
@@ -13,4 +13,4 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
13
13
|
*
|
|
14
14
|
* @private internal function of `promptbookCli`
|
|
15
15
|
*/
|
|
16
|
-
export declare function $
|
|
16
|
+
export declare function $initializeAgentFolderCommand(program: Program): $side_effect;
|
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-92`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-93';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relative path to the local agent source initialized by `ptbk agent init`.
|
|
2
|
+
* Relative path to the local agent source initialized by `ptbk agent-folder init`.
|
|
3
3
|
*
|
|
4
|
-
* @private internal utility of `ptbk agent`
|
|
4
|
+
* @private internal utility of `ptbk agent-folder`
|
|
5
5
|
*/
|
|
6
6
|
export declare const AGENT_BOOK_FILE_PATH = "agent.book";
|
|
7
7
|
/**
|
|
8
|
-
* Relative path to local knowledge files initialized by `ptbk agent init`.
|
|
8
|
+
* Relative path to local knowledge files initialized by `ptbk agent-folder init`.
|
|
9
9
|
*
|
|
10
|
-
* @private internal utility of `ptbk agent`
|
|
10
|
+
* @private internal utility of `ptbk agent-folder`
|
|
11
11
|
*/
|
|
12
12
|
export declare const AGENT_KNOWLEDGE_DIRECTORY_PATH = "knowledge";
|
|
13
13
|
/**
|
|
14
|
-
* Relative path to the message queue root initialized by `ptbk agent init`.
|
|
14
|
+
* Relative path to the message queue root initialized by `ptbk agent-folder init`.
|
|
15
15
|
*
|
|
16
|
-
* @private internal utility of `ptbk agent`
|
|
16
|
+
* @private internal utility of `ptbk agent-folder`
|
|
17
17
|
*/
|
|
18
18
|
export declare const AGENT_MESSAGES_DIRECTORY_PATH = "messages";
|
|
19
19
|
/**
|
|
20
|
-
* Relative path to queued user messages consumed by `ptbk agent run-once`.
|
|
20
|
+
* Relative path to queued user messages consumed by `ptbk agent-folder run-once`.
|
|
21
21
|
*
|
|
22
|
-
* @private internal utility of `ptbk agent`
|
|
22
|
+
* @private internal utility of `ptbk agent-folder`
|
|
23
23
|
*/
|
|
24
24
|
export declare const AGENT_QUEUED_MESSAGES_DIRECTORY_PATH: string;
|
|
25
25
|
/**
|
|
26
|
-
* Relative path to answered messages written by `ptbk agent run-once`.
|
|
26
|
+
* Relative path to answered messages written by `ptbk agent-folder run-once`.
|
|
27
27
|
*
|
|
28
|
-
* @private internal utility of `ptbk agent`
|
|
28
|
+
* @private internal utility of `ptbk agent-folder`
|
|
29
29
|
*/
|
|
30
30
|
export declare const AGENT_FINISHED_MESSAGES_DIRECTORY_PATH: string;
|
|
31
31
|
/**
|
|
32
|
-
* Relative path to generated local agent documentation initialized by `ptbk agent init`.
|
|
32
|
+
* Relative path to generated local agent documentation initialized by `ptbk agent-folder init`.
|
|
33
33
|
*
|
|
34
|
-
* @private internal utility of `ptbk agent`
|
|
34
|
+
* @private internal utility of `ptbk agent-folder`
|
|
35
35
|
*/
|
|
36
36
|
export declare const AGENT_DOCS_DIRECTORY_PATH = "docs";
|
|
37
37
|
/**
|
|
38
|
-
* Relative path to the local Book language manual initialized by `ptbk agent init`.
|
|
38
|
+
* Relative path to the local Book language manual initialized by `ptbk agent-folder init`.
|
|
39
39
|
*
|
|
40
|
-
* @private internal utility of `ptbk agent`
|
|
40
|
+
* @private internal utility of `ptbk agent-folder`
|
|
41
41
|
*/
|
|
42
42
|
export declare const AGENT_BOOK_LANGUAGE_MANUAL_FILE_PATH: string;
|
|
43
43
|
/**
|
|
44
44
|
* Returns the default local agent book content.
|
|
45
45
|
*
|
|
46
|
-
* @private internal utility of `ptbk agent`
|
|
46
|
+
* @private internal utility of `ptbk agent-folder`
|
|
47
47
|
*/
|
|
48
48
|
export declare function getDefaultAgentBookContent(): string;
|
|
49
49
|
/**
|
|
50
50
|
* Returns the default local Book language manual content.
|
|
51
51
|
*
|
|
52
|
-
* @private internal utility of `ptbk agent`
|
|
52
|
+
* @private internal utility of `ptbk agent-folder`
|
|
53
53
|
*/
|
|
54
54
|
export declare function getDefaultBookLanguageManualContent(): string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { NormalizedPromptRunnerCliOptions, PromptRunnerCliOptions } from '../common/promptRunnerCliOptions';
|
|
2
2
|
/**
|
|
3
|
-
* Options passed from `ptbk agent` CLI commands to the message runner.
|
|
3
|
+
* Options passed from `ptbk agent-folder` CLI commands to the message runner.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder`
|
|
6
6
|
*/
|
|
7
7
|
export type AgentRunCliOptions = PromptRunnerCliOptions & {
|
|
8
8
|
readonly autoClone?: boolean;
|
|
9
9
|
readonly ignore?: string | readonly string[];
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Normalized options passed from `ptbk agent` CLI commands to the message runner.
|
|
12
|
+
* Normalized options passed from `ptbk agent-folder` CLI commands to the message runner.
|
|
13
13
|
*
|
|
14
|
-
* @private internal utility of `ptbk agent`
|
|
14
|
+
* @private internal utility of `ptbk agent-folder`
|
|
15
15
|
*/
|
|
16
16
|
export type NormalizedAgentRunCliOptions = NormalizedPromptRunnerCliOptions & {
|
|
17
17
|
readonly autoClone: boolean;
|
|
@@ -20,6 +20,6 @@ export type NormalizedAgentRunCliOptions = NormalizedPromptRunnerCliOptions & {
|
|
|
20
20
|
/**
|
|
21
21
|
* Converts Commander options into the `scripts/run-agent-messages` option shape.
|
|
22
22
|
*
|
|
23
|
-
* @private internal utility of `ptbk agent`
|
|
23
|
+
* @private internal utility of `ptbk agent-folder`
|
|
24
24
|
*/
|
|
25
25
|
export declare function createAgentRunOptionsFromCliOptions(cliOptions: AgentRunCliOptions): NormalizedAgentRunCliOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent init` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder init` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import type { InitializationStatus } from '../coder/boilerplateTemplates';
|
|
|
2
2
|
/**
|
|
3
3
|
* Result summary returned after local agent configuration initialization.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent init`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
6
6
|
*/
|
|
7
7
|
export type AgentInitializationSummary = {
|
|
8
8
|
readonly messagesDirectoryStatus: InitializationStatus;
|
|
@@ -16,6 +16,6 @@ export type AgentInitializationSummary = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Creates local agent queue, knowledge, and instruction files in the current project.
|
|
18
18
|
*
|
|
19
|
-
* @private internal utility of `ptbk agent init`
|
|
19
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
20
20
|
*/
|
|
21
21
|
export declare function initializeAgentProjectConfiguration(projectPath: string): Promise<AgentInitializationSummary>;
|
|
@@ -2,9 +2,9 @@ import type { Command as Program } from 'commander';
|
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
import { createAgentRunOptionsFromCliOptions } from './agentRunCliOptions';
|
|
4
4
|
/**
|
|
5
|
-
* Shared command-registration options for `ptbk agent` runner subcommands.
|
|
5
|
+
* Shared command-registration options for `ptbk agent-folder` runner subcommands.
|
|
6
6
|
*
|
|
7
|
-
* @private internal utility of `ptbk agent`
|
|
7
|
+
* @private internal utility of `ptbk agent-folder`
|
|
8
8
|
*/
|
|
9
9
|
type InitializeAgentRunnerCommandOptions = {
|
|
10
10
|
readonly commandName: string;
|
|
@@ -16,9 +16,9 @@ type InitializeAgentRunnerCommandOptions = {
|
|
|
16
16
|
readonly loadExecutor: () => Promise<(runOptions: ReturnType<typeof createAgentRunOptionsFromCliOptions>) => Promise<unknown>>;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Registers one runner-backed `ptbk agent` subcommand with the shared option and error handling flow.
|
|
19
|
+
* Registers one runner-backed `ptbk agent-folder` subcommand with the shared option and error handling flow.
|
|
20
20
|
*
|
|
21
|
-
* @private internal utility of `ptbk agent`
|
|
21
|
+
* @private internal utility of `ptbk agent-folder`
|
|
22
22
|
*/
|
|
23
23
|
export declare function $initializeAgentRunnerCommand(program: Program, options: InitializeAgentRunnerCommandOptions): $side_effect;
|
|
24
24
|
export {};
|
package/umd/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts
RENAMED
|
@@ -2,6 +2,6 @@ import type { AgentInitializationSummary } from './initializeAgentProjectConfigu
|
|
|
2
2
|
/**
|
|
3
3
|
* Prints a readable summary of initialized local agent files.
|
|
4
4
|
*
|
|
5
|
-
* @private internal utility of `ptbk agent init`
|
|
5
|
+
* @private internal utility of `ptbk agent-folder init`
|
|
6
6
|
*/
|
|
7
7
|
export declare function printAgentInitializationSummary(summary: AgentInitializationSummary): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent run` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder run` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/runMultiple.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent run-multiple` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder run-multiple` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent tick` command for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder tick` command for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
6
|
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI.
|
|
7
7
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Command as Program } from 'commander';
|
|
2
2
|
import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
3
3
|
/**
|
|
4
|
-
* Initializes `agent` command with subcommands for Promptbook CLI utilities.
|
|
4
|
+
* Initializes `agent-folder` command with subcommands for Promptbook CLI utilities.
|
|
5
5
|
*
|
|
6
|
-
* The agent command provides utilities for repository-backed message queues:
|
|
6
|
+
* The agent-folder command provides utilities for repository-backed message queues:
|
|
7
7
|
* - init: Initialize local agent queue and instruction files
|
|
8
8
|
* - run-once (alias: tick): Answer one queued message and exit
|
|
9
9
|
* - run-agent (alias: run): Watch one queue and answer messages one by one
|
|
@@ -13,4 +13,4 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
13
13
|
*
|
|
14
14
|
* @private internal function of `promptbookCli`
|
|
15
15
|
*/
|
|
16
|
-
export declare function $
|
|
16
|
+
export declare function $initializeAgentFolderCommand(program: Program): $side_effect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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-92`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
|
File without changes
|
/package/{umd/src/cli/cli-commands/agent/run.test.d.ts → esm/src/cli/other/vpsInstall.test.d.ts}
RENAMED
|
File without changes
|