@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.
Files changed (71) hide show
  1. package/apps/agents-server/src/app/layout.tsx +11 -5
  2. package/apps/agents-server/src/constants/themeMode.ts +27 -1
  3. package/apps/agents-server/src/database/$provideClientSql.ts +1 -1
  4. package/apps/agents-server/src/database/metadataDefaults.ts +10 -0
  5. package/apps/agents-server/src/database/migrations/2026-05-2600-default-theme.sql +16 -0
  6. package/apps/agents-server/src/utils/externalChatRunner/createExternalAgentRepositoryFiles.ts +2 -2
  7. package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks.ts +532 -1
  8. package/apps/agents-server/src/utils/userThemeModeSettings.ts +10 -2
  9. package/esm/index.es.js +65 -65
  10. package/esm/index.es.js.map +1 -1
  11. package/esm/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +2 -2
  12. package/esm/scripts/run-agent-messages/main/createCoderRunOptionsForAgent.d.ts +1 -1
  13. package/esm/scripts/run-agent-messages/main/runPersistentAgentWatch.d.ts +1 -1
  14. package/esm/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -1
  15. package/esm/scripts/run-agent-messages/main/validateAgentRunOptions.d.ts +1 -1
  16. package/esm/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +1 -1
  17. package/esm/scripts/run-agent-messages/ui/buildAgentRunUiFrame.d.ts +1 -1
  18. package/esm/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +1 -1
  19. package/esm/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +2 -2
  20. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/agentProjectPaths.d.ts +16 -16
  21. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/agentRunCliOptions.d.ts +5 -5
  22. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/init.d.ts +1 -1
  23. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/initializeAgentProjectConfiguration.d.ts +2 -2
  24. package/esm/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.d.ts +4 -4
  25. package/esm/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts +1 -1
  26. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/run.d.ts +1 -1
  27. package/{umd/src/cli/cli-commands/agent → esm/src/cli/cli-commands/agent-folder}/runMultiple.d.ts +1 -1
  28. package/esm/src/cli/cli-commands/{agent → agent-folder}/tick.d.ts +1 -1
  29. package/esm/src/cli/cli-commands/{agent.d.ts → agent-folder.d.ts} +3 -3
  30. package/esm/src/version.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/src/cli/cli-commands/{agent → agent-folder}/agentProjectPaths.ts +18 -18
  33. package/src/cli/cli-commands/{agent → agent-folder}/agentRunCliOptions.ts +7 -7
  34. package/src/cli/cli-commands/{agent → agent-folder}/init.ts +2 -2
  35. package/src/cli/cli-commands/{agent → agent-folder}/initializeAgentProjectConfiguration.ts +3 -3
  36. package/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.ts +6 -6
  37. package/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.ts +2 -2
  38. package/src/cli/cli-commands/{agent → agent-folder}/run.ts +2 -2
  39. package/src/cli/cli-commands/{agent → agent-folder}/runMultiple.ts +2 -2
  40. package/src/cli/cli-commands/{agent → agent-folder}/tick.ts +2 -2
  41. package/src/cli/cli-commands/{agent.ts → agent-folder.ts} +16 -16
  42. package/src/cli/promptbookCli.ts +2 -2
  43. package/src/other/templates/getTemplatesPipelineCollection.ts +865 -755
  44. package/src/version.ts +2 -2
  45. package/src/versions.txt +2 -1
  46. package/umd/index.umd.js +65 -65
  47. package/umd/index.umd.js.map +1 -1
  48. package/umd/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +2 -2
  49. package/umd/scripts/run-agent-messages/main/createCoderRunOptionsForAgent.d.ts +1 -1
  50. package/umd/scripts/run-agent-messages/main/runPersistentAgentWatch.d.ts +1 -1
  51. package/umd/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -1
  52. package/umd/scripts/run-agent-messages/main/validateAgentRunOptions.d.ts +1 -1
  53. package/umd/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +1 -1
  54. package/umd/scripts/run-agent-messages/ui/buildAgentRunUiFrame.d.ts +1 -1
  55. package/umd/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +1 -1
  56. package/umd/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +2 -2
  57. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/agentProjectPaths.d.ts +16 -16
  58. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/agentRunCliOptions.d.ts +5 -5
  59. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/init.d.ts +1 -1
  60. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/initializeAgentProjectConfiguration.d.ts +2 -2
  61. package/umd/src/cli/cli-commands/{agent → agent-folder}/initializeAgentRunnerCommand.d.ts +4 -4
  62. package/umd/src/cli/cli-commands/{agent → agent-folder}/printAgentInitializationSummary.d.ts +1 -1
  63. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/run.d.ts +1 -1
  64. package/umd/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
  65. package/{esm/src/cli/cli-commands/agent → umd/src/cli/cli-commands/agent-folder}/runMultiple.d.ts +1 -1
  66. package/umd/src/cli/cli-commands/{agent → agent-folder}/tick.d.ts +1 -1
  67. package/umd/src/cli/cli-commands/{agent.d.ts → agent-folder.d.ts} +3 -3
  68. package/umd/src/cli/other/vpsInstall.test.d.ts +1 -0
  69. package/umd/src/version.d.ts +1 -1
  70. /package/esm/src/cli/cli-commands/{agent → agent-folder}/run.test.d.ts +0 -0
  71. /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 $initializeAgentCommand(program: Program): $side_effect {
26
- const agentCommand = program.command('agent');
27
- agentCommand.description(
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(agentCommand);
40
- $initializeAgentTickCommand(agentCommand);
41
- $initializeAgentRunCommand(agentCommand);
42
- $initializeAgentRunMultipleCommand(agentCommand);
39
+ $initializeAgentInitCommand(agentFolderCommand);
40
+ $initializeAgentTickCommand(agentFolderCommand);
41
+ $initializeAgentRunCommand(agentFolderCommand);
42
+ $initializeAgentRunMultipleCommand(agentFolderCommand);
43
43
 
44
- agentCommand.action(() => {
44
+ agentFolderCommand.action(() => {
45
45
  console.info(colors.yellow('Please specify a subcommand.'));
46
46
  console.info('');
47
- agentCommand.help();
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
@@ -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 { $initializeAgentCommand } from './cli-commands/agent';
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
- $initializeAgentCommand(program);
96
+ $initializeAgentFolderCommand(program);
97
97
  $initializeAgentsServerCommand(program);
98
98
  $initializeCoderCommand(program);
99
99