@promptbook/cli 0.112.0-91 → 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/apps/agents-server/src/app/layout.tsx +11 -5
- package/apps/agents-server/src/constants/themeMode.ts +27 -1
- package/apps/agents-server/src/database/$provideClientSql.ts +1 -1
- package/apps/agents-server/src/database/metadataDefaults.ts +10 -0
- package/apps/agents-server/src/database/migrations/2026-05-2600-default-theme.sql +16 -0
- package/apps/agents-server/src/utils/externalChatRunner/createExternalAgentRepositoryFiles.ts +2 -2
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks.ts +532 -1
- package/apps/agents-server/src/utils/userThemeModeSettings.ts +10 -2
- package/esm/index.es.js +65 -65
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +2 -2
- package/esm/scripts/run-agent-messages/main/createCoderRunOptionsForAgent.d.ts +1 -1
- package/esm/scripts/run-agent-messages/main/runPersistentAgentWatch.d.ts +1 -1
- package/esm/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -1
- package/esm/scripts/run-agent-messages/main/validateAgentRunOptions.d.ts +1 -1
- package/esm/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +1 -1
- package/esm/scripts/run-agent-messages/ui/buildAgentRunUiFrame.d.ts +1 -1
- package/esm/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +1 -1
- package/esm/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +2 -2
- package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/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/src/cli/cli-commands/{agent → agent-folder}/agentProjectPaths.ts +18 -18
- package/src/cli/cli-commands/{agent → agent-folder}/agentRunCliOptions.ts +7 -7
- package/src/cli/cli-commands/{agent → agent-folder}/init.ts +2 -2
- package/src/cli/cli-commands/{agent → agent-folder}/initializeAgentProjectConfiguration.ts +3 -3
- package/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.ts +6 -6
- package/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.ts +2 -2
- package/src/cli/cli-commands/{agent → agent-folder}/run.ts +2 -2
- package/src/cli/cli-commands/{agent → agent-folder}/runMultiple.ts +2 -2
- package/src/cli/cli-commands/{agent → agent-folder}/tick.ts +2 -2
- package/src/cli/cli-commands/{agent.ts → agent-folder.ts} +16 -16
- package/src/cli/promptbookCli.ts +2 -2
- package/src/other/templates/getTemplatesPipelineCollection.ts +865 -755
- package/src/version.ts +2 -2
- package/src/versions.txt +2 -1
- package/umd/index.umd.js +65 -65
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +2 -2
- package/umd/scripts/run-agent-messages/main/createCoderRunOptionsForAgent.d.ts +1 -1
- package/umd/scripts/run-agent-messages/main/runPersistentAgentWatch.d.ts +1 -1
- package/umd/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -1
- package/umd/scripts/run-agent-messages/main/validateAgentRunOptions.d.ts +1 -1
- package/umd/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +1 -1
- package/umd/scripts/run-agent-messages/ui/buildAgentRunUiFrame.d.ts +1 -1
- package/umd/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +1 -1
- package/umd/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +2 -2
- package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/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
|
@@ -4,15 +4,15 @@ import type {
|
|
|
4
4
|
} from 'commander';
|
|
5
5
|
import { spaceTrim } from 'spacetrim';
|
|
6
6
|
import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
7
|
-
import { $initializeAgentInitCommand } from './agent/init';
|
|
8
|
-
import { $initializeAgentRunMultipleCommand } from './agent/runMultiple';
|
|
9
|
-
import { $initializeAgentRunCommand } from './agent/run';
|
|
10
|
-
import { $initializeAgentTickCommand } from './agent/tick';
|
|
7
|
+
import { $initializeAgentInitCommand } from './agent-folder/init';
|
|
8
|
+
import { $initializeAgentRunMultipleCommand } from './agent-folder/runMultiple';
|
|
9
|
+
import { $initializeAgentRunCommand } from './agent-folder/run';
|
|
10
|
+
import { $initializeAgentTickCommand } from './agent-folder/tick';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Initializes `agent` command with subcommands for Promptbook CLI utilities.
|
|
13
|
+
* Initializes `agent-folder` command with subcommands for Promptbook CLI utilities.
|
|
14
14
|
*
|
|
15
|
-
* The agent command provides utilities for repository-backed message queues:
|
|
15
|
+
* The agent-folder command provides utilities for repository-backed message queues:
|
|
16
16
|
* - init: Initialize local agent queue and instruction files
|
|
17
17
|
* - run-once (alias: tick): Answer one queued message and exit
|
|
18
18
|
* - run-agent (alias: run): Watch one queue and answer messages one by one
|
|
@@ -22,9 +22,9 @@ import { $initializeAgentTickCommand } from './agent/tick';
|
|
|
22
22
|
*
|
|
23
23
|
* @private internal function of `promptbookCli`
|
|
24
24
|
*/
|
|
25
|
-
export function $
|
|
26
|
-
const
|
|
27
|
-
|
|
25
|
+
export function $initializeAgentFolderCommand(program: Program): $side_effect {
|
|
26
|
+
const agentFolderCommand = program.command('agent-folder');
|
|
27
|
+
agentFolderCommand.description(
|
|
28
28
|
spaceTrim(`
|
|
29
29
|
Non-coding agent utilities backed by repository message files
|
|
30
30
|
|
|
@@ -36,17 +36,17 @@ export function $initializeAgentCommand(program: Program): $side_effect {
|
|
|
36
36
|
`),
|
|
37
37
|
);
|
|
38
38
|
|
|
39
|
-
$initializeAgentInitCommand(
|
|
40
|
-
$initializeAgentTickCommand(
|
|
41
|
-
$initializeAgentRunCommand(
|
|
42
|
-
$initializeAgentRunMultipleCommand(
|
|
39
|
+
$initializeAgentInitCommand(agentFolderCommand);
|
|
40
|
+
$initializeAgentTickCommand(agentFolderCommand);
|
|
41
|
+
$initializeAgentRunCommand(agentFolderCommand);
|
|
42
|
+
$initializeAgentRunMultipleCommand(agentFolderCommand);
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
agentFolderCommand.action(() => {
|
|
45
45
|
console.info(colors.yellow('Please specify a subcommand.'));
|
|
46
46
|
console.info('');
|
|
47
|
-
|
|
47
|
+
agentFolderCommand.help();
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
// Note: [🟡] Code for CLI command [agent](src/cli/cli-commands/agent.ts) should never be published outside of `@promptbook/cli`
|
|
51
|
+
// Note: [🟡] Code for CLI command [agent-folder](src/cli/cli-commands/agent-folder.ts) should never be published outside of `@promptbook/cli`
|
|
52
52
|
// Note: [💞] Ignore a discrepancy between file name and entity name
|
package/src/cli/promptbookCli.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError';
|
|
|
6
6
|
import { $isRunningInNode } from '../utils/environment/$isRunningInNode';
|
|
7
7
|
import { PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
8
8
|
import { $initializeAboutCommand } from './cli-commands/about';
|
|
9
|
-
import { $
|
|
9
|
+
import { $initializeAgentFolderCommand } from './cli-commands/agent-folder';
|
|
10
10
|
import { $initializeAgentsServerCommand } from './cli-commands/agents-server';
|
|
11
11
|
import { $initializeCoderCommand } from './cli-commands/coder';
|
|
12
12
|
import { $initializeHelloCommand } from './cli-commands/hello';
|
|
@@ -93,7 +93,7 @@ export async function promptbookCli(): Promise<void> {
|
|
|
93
93
|
$initializeListScrapersCommand(program);
|
|
94
94
|
$initializeStartAgentsServerCommand(program);
|
|
95
95
|
$initializeStartPipelinesServerCommand(program);
|
|
96
|
-
$
|
|
96
|
+
$initializeAgentFolderCommand(program);
|
|
97
97
|
$initializeAgentsServerCommand(program);
|
|
98
98
|
$initializeCoderCommand(program);
|
|
99
99
|
|