@promptbook/node 0.112.0-99 → 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 (248) hide show
  1. package/README.md +76 -44
  2. package/esm/index.es.js +24321 -19747
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
  5. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
  6. package/esm/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
  7. package/esm/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
  8. package/esm/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
  9. package/esm/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
  10. package/esm/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
  11. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
  12. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
  13. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
  14. package/esm/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
  15. package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  16. package/esm/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
  17. package/esm/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
  18. package/esm/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
  19. package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
  20. package/esm/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
  21. package/esm/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
  22. package/esm/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
  23. package/esm/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
  24. package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
  25. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
  26. package/esm/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
  27. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
  28. package/esm/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
  29. package/esm/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
  30. package/esm/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
  31. package/esm/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
  32. package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
  33. package/esm/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
  34. package/esm/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
  35. package/esm/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
  36. package/esm/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
  37. package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
  38. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
  39. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
  40. package/esm/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
  41. package/esm/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
  42. package/esm/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
  43. package/esm/src/_packages/components.index.d.ts +4 -0
  44. package/esm/src/_packages/core.index.d.ts +22 -2
  45. package/esm/src/_packages/node.index.d.ts +40 -0
  46. package/esm/src/_packages/types.index.d.ts +20 -0
  47. package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  48. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  49. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  50. package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  51. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  52. package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  53. package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  54. package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  55. package/esm/src/book-3.0/CliAgent.d.ts +66 -0
  56. package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
  57. package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
  58. package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
  59. package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
  60. package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
  61. package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  62. package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  63. package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  64. package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  65. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  66. package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  67. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  68. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  69. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  70. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  71. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  72. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  73. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  74. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  75. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  76. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  77. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  78. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  79. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  80. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  81. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  82. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  83. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  84. package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  85. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  86. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  87. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  88. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  89. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  90. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  91. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  92. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
  93. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
  94. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
  95. package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  96. package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  97. package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  98. package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
  99. package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
  100. package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  101. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  102. package/esm/src/cli/cli-commands/agent.d.ts +14 -0
  103. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  104. package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  105. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  106. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  107. package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  108. package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  109. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  110. package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
  111. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  112. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  113. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  114. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  115. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  116. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  117. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  118. package/esm/src/commitments/index.d.ts +2 -1
  119. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  120. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  121. package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  122. package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
  123. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  124. package/esm/src/version.d.ts +1 -1
  125. package/package.json +2 -2
  126. package/umd/index.umd.js +24333 -19745
  127. package/umd/index.umd.js.map +1 -1
  128. package/umd/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
  129. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
  130. package/umd/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
  131. package/umd/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
  132. package/umd/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
  133. package/umd/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
  134. package/umd/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
  135. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
  136. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
  137. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
  138. package/umd/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
  139. package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  140. package/umd/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
  141. package/umd/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
  142. package/umd/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
  143. package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
  144. package/umd/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
  145. package/umd/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
  146. package/umd/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
  147. package/umd/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
  148. package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
  149. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
  150. package/umd/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
  151. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
  152. package/umd/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
  153. package/umd/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
  154. package/umd/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
  155. package/umd/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
  156. package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
  157. package/umd/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
  158. package/umd/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
  159. package/umd/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
  160. package/umd/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
  161. package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
  162. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
  163. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
  164. package/umd/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
  165. package/umd/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
  166. package/umd/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
  167. package/umd/src/_packages/components.index.d.ts +4 -0
  168. package/umd/src/_packages/core.index.d.ts +22 -2
  169. package/umd/src/_packages/node.index.d.ts +40 -0
  170. package/umd/src/_packages/types.index.d.ts +20 -0
  171. package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  172. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  173. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  174. package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  175. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  176. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  177. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  178. package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  179. package/umd/src/book-3.0/CliAgent.d.ts +66 -0
  180. package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
  181. package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
  182. package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
  183. package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
  184. package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
  185. package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  186. package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  187. package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  188. package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  189. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  190. package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  191. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  192. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  193. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  194. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  195. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  196. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  197. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  198. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  199. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  200. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  201. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  202. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  203. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  204. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  205. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  206. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  207. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  208. package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  209. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  210. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  211. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  212. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  213. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  214. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  215. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  216. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
  217. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
  218. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
  219. package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  220. package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  221. package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  222. package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
  223. package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
  224. package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  225. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  226. package/umd/src/cli/cli-commands/agent.d.ts +14 -0
  227. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  228. package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  229. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  230. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  231. package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  232. package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  233. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  234. package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
  235. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  236. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  237. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  238. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  239. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  240. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  241. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  242. package/umd/src/commitments/index.d.ts +2 -1
  243. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  244. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  245. package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  246. package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
  247. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  248. package/umd/src/version.d.ts +1 -1
package/README.md CHANGED
@@ -27,6 +27,25 @@ Create persistent AI agents that turn your company's scattered knowledge into ac
27
27
 
28
28
 
29
29
 
30
+ ### Standalone VPS
31
+
32
+ Run the standalone VPS installer only on a fresh server. Interactive mode asks for the installation values:
33
+
34
+ ```bash
35
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash
36
+ ```
37
+
38
+ Non-interactive mode takes defaults from command-line options. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
39
+
40
+ ```bash
41
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
42
+ --non-interactive \
43
+ --yes-i-understand-that-script-should-be-run-on-fresh-server \
44
+ --domain my-server.com \
45
+ --openai-api-key sk-proj-xxx \
46
+ --admin-password xxx
47
+ ```
48
+
30
49
 
31
50
 
32
51
  <blockquote style="color: #ff8811">
@@ -120,7 +139,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
120
139
 
121
140
  Promptbook lets you create **persistent AI agents** that work on real goals for your company. The [**Agents Server**](https://gallery.ptbk.io/) is the heart of the project - a place where your AI agents live, remember context, collaborate in teams, and get things done.
122
141
 
123
- Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.2 and Claude-4.5 are incredibly capable.
142
+ Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as Claude Mythos, GPT-5.6 or Kimi K2.7 are incredibly capable.
124
143
 
125
144
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
126
145
 
@@ -128,17 +147,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
128
147
 
129
148
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
130
149
 
131
- **<ins>Paul Smith</ins>**<br/>
150
+ **<ins>Lawyer</ins>**<br/>
132
151
  <br/>
133
- **PERSONA** You are a company lawyer.<br/>
152
+ GOAL You are a company lawyer.<br/>
134
153
  Your job is to provide legal advice and support to the company and its employees.<br/>
135
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
154
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
155
+ <br/>
136
156
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
137
157
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
138
158
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
139
- **USE EMAIL**<br/>
140
- **USE BROWSER**<br/>
141
- **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
159
+ <br/>
160
+ USE EMAIL<br/>
161
+ USE BROWSER<br/>
162
+ <br/>
163
+ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
142
164
 
143
165
  </td></tr></table>
144
166
 
@@ -171,12 +193,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
171
193
 
172
194
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
173
195
 
174
- **<ins>Paul Smith & Associés</ins>**<br/>
196
+ **<ins>Company Lawyer</ins>**<br/>
175
197
  <br/>
176
- **PERSONA** You are a company lawyer.<br/>
198
+ GOAL<br/>
177
199
  Your job is to provide legal advice and support to the company and its employees.<br/>
178
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
179
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
200
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
201
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
180
202
 
181
203
  </td></tr></table>
182
204
 
@@ -194,8 +216,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
194
216
  <br/>
195
217
  **PERSONA** You are a company lawyer.<br/>
196
218
  Your job is to provide legal advice and support to the company and its employees.<br/>
197
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
198
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
219
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
220
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
199
221
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
200
222
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
201
223
 
@@ -213,8 +235,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
213
235
  <br/>
214
236
  **PERSONA** You are a company lawyer.<br/>
215
237
  Your job is to provide legal advice and support to the company and its employees.<br/>
216
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
217
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
238
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
239
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
218
240
  **RULE** Always ensure compliance with local laws and regulations.<br/>
219
241
  **RULE** Never provide legal advice outside your area of expertise.<br/>
220
242
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -235,16 +257,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
235
257
  <br/>
236
258
  **PERSONA** You are a company lawyer.<br/>
237
259
  Your job is to provide legal advice and support to the company and its employees.<br/>
238
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
239
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
260
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
261
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
240
262
  **RULE** Always ensure compliance with local laws and regulations.<br/>
241
263
  **RULE** Never provide legal advice outside your area of expertise.<br/>
242
264
  **RULE** Never provide legal advice about criminal law.<br/>
243
265
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
244
266
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
245
- **USE EMAIL**<br/>
246
- **USE BROWSER**<br/>
247
- **USE SEARCH ENGINE**<br/>
267
+ USE EMAIL<br/>
268
+ USE BROWSER<br/>
269
+ USE SEARCH ENGINE<br/>
248
270
 
249
271
  </td></tr></table>
250
272
 
@@ -258,20 +280,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
258
280
  <br/>
259
281
  **PERSONA** You are a company lawyer.<br/>
260
282
  Your job is to provide legal advice and support to the company and its employees.<br/>
261
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
262
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
283
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
284
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
263
285
  **RULE** Always ensure compliance with local laws and regulations.<br/>
264
286
  **RULE** Never provide legal advice outside your area of expertise.<br/>
265
287
  **RULE** Never provide legal advice about criminal law.<br/>
266
288
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
267
289
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
268
- **USE EMAIL**<br/>
269
- **USE BROWSER**<br/>
270
- **USE SEARCH ENGINE**<br/>
271
- **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
290
+ USE EMAIL<br/>
291
+ USE BROWSER<br/>
292
+ USE SEARCH ENGINE<br/>
293
+ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
272
294
 
273
295
  </td></tr></table>
274
296
 
297
+
298
+
275
299
  ### Promptbook Ecosystem
276
300
 
277
301
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -294,6 +318,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
294
318
 
295
319
 
296
320
 
321
+
322
+
297
323
  ## 💜 The Promptbook Project
298
324
 
299
325
  Promptbook project is an ecosystem centered around the **Agents Server** - a platform for creating, deploying, and running persistent AI agents. Following is a list of the most important pieces of the project:
@@ -331,6 +357,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
331
357
  </tbody>
332
358
  </table>
333
359
 
360
+
361
+
334
362
  ### 🌐 Community & Social Media
335
363
 
336
364
  Join our growing community of developers and users:
@@ -387,6 +415,8 @@ Join our growing community of developers and users:
387
415
 
388
416
 
389
417
 
418
+
419
+
390
420
  ## 📚 Documentation
391
421
 
392
422
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -478,9 +508,9 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
478
508
  #### Features
479
509
 
480
510
  - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
481
- - **Context injection:** `--context AGENTS.md` or inline extra instructions
511
+ - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
482
512
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
483
- - **Interactive or unattended runs:** default wait mode, or `--no-wait` for batch execution
513
+ - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
484
514
  - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
485
515
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
486
516
  - **Prompt triage:** `--priority` to process only more important tasks first
@@ -498,11 +528,11 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
498
528
 
499
529
  npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompts/templates/agents-server.md
500
530
 
501
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
531
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md
502
532
 
503
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
533
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
504
534
 
505
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --ignore-git-changes --no-wait
535
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --ignore-git-changes
506
536
 
507
537
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
508
538
 
@@ -524,11 +554,11 @@ ptbk coder generate-boilerplates
524
554
 
525
555
  ptbk coder generate-boilerplates --template prompts/templates/common.md
526
556
 
527
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test
557
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test
528
558
 
529
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
559
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
530
560
 
531
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test --ignore-git-changes --no-wait
561
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --ignore-git-changes
532
562
 
533
563
  ptbk coder find-refactor-candidates
534
564
 
@@ -541,24 +571,24 @@ ptbk coder verify
541
571
 
542
572
  #### What each command does
543
573
 
544
- | Command | What it does |
545
- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
574
+ | Command | What it does |
575
+ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
546
576
  | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.promptbook`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
547
- | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
548
- | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, can optionally verify each attempt with a shell test command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
549
- | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
550
- | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
577
+ | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
578
+ | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, can optionally verify each attempt with a shell test command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
579
+ | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
580
+ | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
551
581
 
552
582
  #### Most useful `ptbk coder run` flags
553
583
 
554
584
  | Flag | Purpose |
555
585
  | -------------------------- | -------------------------------------------------------------------------------------------------- |
556
- | `--agent <name>` | Selects the coding backend. |
586
+ | `--harness <name>` | Selects the coding harness. |
557
587
  | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
558
588
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
559
589
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
560
590
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
561
- | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
591
+ | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
562
592
  | `--ignore-git-changes` | Disables the clean-working-tree guard. |
563
593
  | `--priority <n>` | Runs only prompts at or above the given priority. |
564
594
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
@@ -570,8 +600,8 @@ ptbk coder verify
570
600
 
571
601
  1. Initialize once with `ptbk coder init`.
572
602
  2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
573
- 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
574
- 4. Run one prompt at a time interactively, or use `--no-wait` for unattended batches.
603
+ 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--agent agents/coding/developer.book --context AGENTS.md`.
604
+ 4. Run unattended batches by default, or pass `--no-auto` to confirm each prompt interactively.
575
605
  5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
576
606
 
577
607
 
@@ -594,6 +624,8 @@ The following glossary is used to clarify certain concepts:
594
624
 
595
625
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
596
626
 
627
+
628
+
597
629
  ### 💯 Core concepts
598
630
 
599
631
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)