@promptbook/cli 0.112.0 → 0.113.0-0

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 (89) hide show
  1. package/README.md +45 -29
  2. package/agents/default/developer.book +2 -1
  3. package/apps/agents-server/next.config.ts +21 -0
  4. package/apps/agents-server/src/app/admin/limits/LimitsClient.tsx +1 -1
  5. package/apps/agents-server/src/app/admin/update/UpdateClient.tsx +52 -33
  6. package/apps/agents-server/src/app/api/agent-folders/[folderId]/visibility/route.ts +19 -7
  7. package/apps/agents-server/src/app/api/agents/[agentName]/route.ts +8 -18
  8. package/apps/agents-server/src/app/api/internal/agent-runner-limits/route.ts +1 -1
  9. package/apps/agents-server/src/app/api/v1/agents/[agentId]/route.ts +13 -8
  10. package/apps/agents-server/src/components/AgentProfile/AgentCapabilityChips.tsx +39 -5
  11. package/apps/agents-server/src/components/Homepage/AgentCard.tsx +7 -1
  12. package/apps/agents-server/src/components/Homepage/AgentsList.tsx +3 -0
  13. package/apps/agents-server/src/components/Homepage/AgentsListHeader.tsx +41 -0
  14. package/apps/agents-server/src/components/Homepage/hiddenFolders.ts +104 -0
  15. package/apps/agents-server/src/components/Homepage/useAgentsListQueryState.ts +35 -0
  16. package/apps/agents-server/src/components/Homepage/useAgentsListState.ts +24 -4
  17. package/apps/agents-server/src/constants/serverLimits.ts +19 -0
  18. package/apps/agents-server/src/database/seedCoreAgents.ts +0 -2
  19. package/apps/agents-server/src/database/seedDefaultAgents.ts +0 -2
  20. package/apps/agents-server/src/tools/agent_progress.ts +4 -10
  21. package/apps/agents-server/src/utils/agentVisibility.ts +25 -62
  22. package/apps/agents-server/src/utils/createAgentWithDefaultVisibility.ts +3 -1
  23. package/apps/agents-server/src/utils/externalChatRunner/processExternalUserChatJob.ts +9 -17
  24. package/apps/agents-server/src/utils/localChatRunner/LocalUserChatJobMetadata.ts +15 -5
  25. package/apps/agents-server/src/utils/localChatRunner/processLocalUserChatJob.ts +17 -26
  26. package/apps/agents-server/src/utils/serverLimits.ts +2 -0
  27. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerCoreAgents.ts +2 -2
  28. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerDefaultAgents.ts +1 -1
  29. package/apps/agents-server/src/utils/userChat/createUserChatHarnessProgressCard.ts +0 -6
  30. package/apps/agents-server/src/utils/userChat/createUserChatRunnerProgressCard.ts +0 -6
  31. package/apps/agents-server/src/utils/userChat/userChatMessageLifecycle.ts +69 -0
  32. package/apps/agents-server/src/utils/userChat/userChatProgressCard.ts +0 -6
  33. package/apps/agents-server/src/utils/vpsSelfUpdate.ts +138 -24
  34. package/esm/apps/agents-server/src/constants/serverLimits.d.ts +17 -0
  35. package/esm/index.es.js +581 -93
  36. package/esm/index.es.js.map +1 -1
  37. package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +1 -0
  38. package/esm/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -0
  39. package/esm/src/_packages/core.index.d.ts +22 -0
  40. package/esm/src/_packages/types.index.d.ts +2 -0
  41. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  42. package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  43. package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  44. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  45. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  46. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  47. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  48. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  49. package/esm/src/commitments/index.d.ts +2 -1
  50. package/esm/src/version.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/src/_packages/core.index.ts +22 -0
  53. package/src/_packages/types.index.ts +2 -0
  54. package/src/book-2.0/agent-source/AgentBasicInformation.ts +2 -0
  55. package/src/book-2.0/agent-source/agentSourceVisibility.ts +214 -0
  56. package/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.ts +17 -0
  57. package/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.ts +1 -0
  58. package/src/book-components/BookEditor/BookEditorMonacoTokenization.ts +11 -0
  59. package/src/book-components/BookEditor/useBookEditorMonacoLanguage.ts +7 -3
  60. package/src/cli/cli-commands/agents-server/buildAgentsServer.ts +144 -16
  61. package/src/cli/cli-commands/agents-server/startAgentsServer.ts +22 -2
  62. package/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.ts +1 -1
  63. package/src/cli/cli-commands/coder/run.ts +30 -0
  64. package/src/collection/agent-collection/CreateAgentInput.ts +10 -5
  65. package/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.ts +7 -3
  66. package/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.ts +7 -4
  67. package/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.ts +44 -8
  68. package/src/commitments/META_VISIBILITY/META_VISIBILITY.ts +78 -0
  69. package/src/commitments/index.ts +2 -0
  70. package/src/other/templates/getTemplatesPipelineCollection.ts +854 -692
  71. package/src/version.ts +2 -2
  72. package/src/versions.txt +1 -0
  73. package/umd/apps/agents-server/src/constants/serverLimits.d.ts +17 -0
  74. package/umd/index.umd.js +581 -93
  75. package/umd/index.umd.js.map +1 -1
  76. package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +1 -0
  77. package/umd/scripts/run-agent-messages/main/tickAgentMessages.d.ts +1 -0
  78. package/umd/src/_packages/core.index.d.ts +22 -0
  79. package/umd/src/_packages/types.index.d.ts +2 -0
  80. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  81. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  82. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  83. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  84. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  85. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  86. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  87. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  88. package/umd/src/commitments/index.d.ts +2 -1
  89. package/umd/src/version.d.ts +1 -1
package/src/version.ts CHANGED
@@ -16,11 +16,11 @@ export const BOOK_LANGUAGE_VERSION: string_semantic_version = '2.0.0';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/promptbook
18
18
  */
19
- export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.112.0';
19
+ export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.113.0-0';
20
20
 
21
21
  /**
22
22
  * Represents the version string of the Promptbook engine.
23
- * It follows semantic versioning (e.g., `0.112.0-140`).
23
+ * It follows semantic versioning (e.g., `0.112.0`).
24
24
  *
25
25
  * @generated
26
26
  */
package/src/versions.txt CHANGED
@@ -1166,3 +1166,4 @@
1166
1166
  0.112.0-139
1167
1167
  0.112.0-140
1168
1168
  0.112.0
1169
+ 0.113.0-0
@@ -28,6 +28,12 @@ export declare const DEFAULT_SPAWN_AGENT_RATE_LIMIT_WINDOW_MS: number;
28
28
  * @private shared Agents Server constant
29
29
  */
30
30
  export declare const DEFAULT_LOCAL_AGENT_RUNNER_MAX_FAILED_ATTEMPTS = 3;
31
+ /**
32
+ * Default maximum number of local runner harness instances allowed to answer queued messages at once.
33
+ *
34
+ * @private shared Agents Server constant
35
+ */
36
+ export declare const DEFAULT_LOCAL_AGENT_RUNNER_MAX_PARALLEL_MESSAGES = 3;
31
37
  /**
32
38
  * Stable keys used by the dedicated server-limits table.
33
39
  *
@@ -42,6 +48,7 @@ export declare const SERVER_LIMIT_KEYS: {
42
48
  readonly SPAWN_AGENT_RATE_LIMIT_MAX: "SPAWN_AGENT_RATE_LIMIT_MAX";
43
49
  readonly SPAWN_AGENT_RATE_LIMIT_WINDOW_MS: "SPAWN_AGENT_RATE_LIMIT_WINDOW_MS";
44
50
  readonly LOCAL_AGENT_RUNNER_MAX_FAILED_ATTEMPTS: "LOCAL_AGENT_RUNNER_MAX_FAILED_ATTEMPTS";
51
+ readonly LOCAL_AGENT_RUNNER_MAX_PARALLEL_MESSAGES: "LOCAL_AGENT_RUNNER_MAX_PARALLEL_MESSAGES";
45
52
  };
46
53
  /**
47
54
  * One supported dedicated server-limit key.
@@ -156,6 +163,16 @@ export declare const SERVER_LIMIT_DEFINITIONS: ({
156
163
  minimumValue: number;
157
164
  step: number;
158
165
  legacyMetadataKeys: never[];
166
+ } | {
167
+ key: "LOCAL_AGENT_RUNNER_MAX_PARALLEL_MESSAGES";
168
+ category: "Local agent runner";
169
+ title: string;
170
+ description: string;
171
+ unit: "count";
172
+ defaultValue: number;
173
+ minimumValue: number;
174
+ step: number;
175
+ legacyMetadataKeys: never[];
159
176
  })[];
160
177
  /**
161
178
  * Fast lookup map used by server-limit validators and UI helpers.