@promptbook/javascript 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 (170) hide show
  1. package/README.md +76 -44
  2. package/esm/index.es.js +3 -4
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +4 -0
  5. package/esm/src/_packages/core.index.d.ts +22 -2
  6. package/esm/src/_packages/node.index.d.ts +40 -0
  7. package/esm/src/_packages/types.index.d.ts +20 -0
  8. package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  9. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  10. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  11. package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  12. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  13. package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  14. package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  15. package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  16. package/esm/src/book-3.0/CliAgent.d.ts +66 -0
  17. package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
  18. package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
  19. package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
  20. package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
  21. package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
  22. package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  23. package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  24. package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  25. package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  26. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  27. package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  28. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  29. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  30. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  31. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  32. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  33. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  34. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  35. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  36. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  37. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  38. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  39. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  40. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  41. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  42. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  43. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  44. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  45. package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  46. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  47. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  48. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  49. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  50. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  51. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  52. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  53. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
  54. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
  55. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
  56. package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  57. package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  58. package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  59. package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
  60. package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
  61. package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  62. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  63. package/esm/src/cli/cli-commands/agent.d.ts +14 -0
  64. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  65. package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  66. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  67. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  68. package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  69. package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  70. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  71. package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
  72. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  73. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  74. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  75. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  76. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  77. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  78. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  79. package/esm/src/commitments/index.d.ts +2 -1
  80. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  81. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  82. package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  83. package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
  84. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  85. package/esm/src/version.d.ts +1 -1
  86. package/package.json +2 -3
  87. package/umd/index.umd.js +7 -6
  88. package/umd/index.umd.js.map +1 -1
  89. package/umd/src/_packages/components.index.d.ts +4 -0
  90. package/umd/src/_packages/core.index.d.ts +22 -2
  91. package/umd/src/_packages/node.index.d.ts +40 -0
  92. package/umd/src/_packages/types.index.d.ts +20 -0
  93. package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  94. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  95. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  96. package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  97. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  98. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  99. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  100. package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  101. package/umd/src/book-3.0/CliAgent.d.ts +66 -0
  102. package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
  103. package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
  104. package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
  105. package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
  106. package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
  107. package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  108. package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  109. package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  110. package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  111. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
  112. package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  113. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  114. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  115. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  116. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  117. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  118. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  119. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  120. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  121. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  122. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  123. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  124. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  125. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  126. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  127. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  128. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  129. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  130. package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  131. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  132. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  133. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  134. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  135. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  136. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  137. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  138. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
  139. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
  140. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
  141. package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  142. package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  143. package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  144. package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
  145. package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
  146. package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  147. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  148. package/umd/src/cli/cli-commands/agent.d.ts +14 -0
  149. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
  150. package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  151. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  152. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  153. package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  154. package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  155. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  156. package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
  157. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  158. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  159. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  160. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  161. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  162. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  163. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  164. package/umd/src/commitments/index.d.ts +2 -1
  165. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  166. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  167. package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  168. package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
  169. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  170. 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">
@@ -108,7 +127,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
108
127
 
109
128
  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.
110
129
 
111
- 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.
130
+ 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.
112
131
 
113
132
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
114
133
 
@@ -116,17 +135,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
116
135
 
117
136
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
118
137
 
119
- **<ins>Paul Smith</ins>**<br/>
138
+ **<ins>Lawyer</ins>**<br/>
120
139
  <br/>
121
- **PERSONA** You are a company lawyer.<br/>
140
+ GOAL You are a company lawyer.<br/>
122
141
  Your job is to provide legal advice and support to the company and its employees.<br/>
123
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
142
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
143
+ <br/>
124
144
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
125
145
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
126
146
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
127
- **USE EMAIL**<br/>
128
- **USE BROWSER**<br/>
129
- **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/>
147
+ <br/>
148
+ USE EMAIL<br/>
149
+ USE BROWSER<br/>
150
+ <br/>
151
+ 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/>
130
152
 
131
153
  </td></tr></table>
132
154
 
@@ -159,12 +181,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
159
181
 
160
182
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
161
183
 
162
- **<ins>Paul Smith & Associés</ins>**<br/>
184
+ **<ins>Company Lawyer</ins>**<br/>
163
185
  <br/>
164
- **PERSONA** You are a company lawyer.<br/>
186
+ GOAL<br/>
165
187
  Your job is to provide legal advice and support to the company and its employees.<br/>
166
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
167
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
188
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
189
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
168
190
 
169
191
  </td></tr></table>
170
192
 
@@ -182,8 +204,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
182
204
  <br/>
183
205
  **PERSONA** You are a company lawyer.<br/>
184
206
  Your job is to provide legal advice and support to the company and its employees.<br/>
185
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
186
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
207
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
208
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
187
209
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
188
210
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
189
211
 
@@ -201,8 +223,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
201
223
  <br/>
202
224
  **PERSONA** You are a company lawyer.<br/>
203
225
  Your job is to provide legal advice and support to the company and its employees.<br/>
204
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
205
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
226
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
227
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
206
228
  **RULE** Always ensure compliance with local laws and regulations.<br/>
207
229
  **RULE** Never provide legal advice outside your area of expertise.<br/>
208
230
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -223,16 +245,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
223
245
  <br/>
224
246
  **PERSONA** You are a company lawyer.<br/>
225
247
  Your job is to provide legal advice and support to the company and its employees.<br/>
226
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
227
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
248
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
249
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
228
250
  **RULE** Always ensure compliance with local laws and regulations.<br/>
229
251
  **RULE** Never provide legal advice outside your area of expertise.<br/>
230
252
  **RULE** Never provide legal advice about criminal law.<br/>
231
253
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
232
254
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
233
- **USE EMAIL**<br/>
234
- **USE BROWSER**<br/>
235
- **USE SEARCH ENGINE**<br/>
255
+ USE EMAIL<br/>
256
+ USE BROWSER<br/>
257
+ USE SEARCH ENGINE<br/>
236
258
 
237
259
  </td></tr></table>
238
260
 
@@ -246,20 +268,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
246
268
  <br/>
247
269
  **PERSONA** You are a company lawyer.<br/>
248
270
  Your job is to provide legal advice and support to the company and its employees.<br/>
249
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
250
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
271
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
272
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
251
273
  **RULE** Always ensure compliance with local laws and regulations.<br/>
252
274
  **RULE** Never provide legal advice outside your area of expertise.<br/>
253
275
  **RULE** Never provide legal advice about criminal law.<br/>
254
276
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
255
277
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
256
- **USE EMAIL**<br/>
257
- **USE BROWSER**<br/>
258
- **USE SEARCH ENGINE**<br/>
259
- **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/>
278
+ USE EMAIL<br/>
279
+ USE BROWSER<br/>
280
+ USE SEARCH ENGINE<br/>
281
+ 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/>
260
282
 
261
283
  </td></tr></table>
262
284
 
285
+
286
+
263
287
  ### Promptbook Ecosystem
264
288
 
265
289
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -282,6 +306,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
282
306
 
283
307
 
284
308
 
309
+
310
+
285
311
  ## 💜 The Promptbook Project
286
312
 
287
313
  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:
@@ -319,6 +345,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
319
345
  </tbody>
320
346
  </table>
321
347
 
348
+
349
+
322
350
  ### 🌐 Community & Social Media
323
351
 
324
352
  Join our growing community of developers and users:
@@ -375,6 +403,8 @@ Join our growing community of developers and users:
375
403
 
376
404
 
377
405
 
406
+
407
+
378
408
  ## 📚 Documentation
379
409
 
380
410
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -466,9 +496,9 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
466
496
  #### Features
467
497
 
468
498
  - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
469
- - **Context injection:** `--context AGENTS.md` or inline extra instructions
499
+ - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
470
500
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
471
- - **Interactive or unattended runs:** default wait mode, or `--no-wait` for batch execution
501
+ - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
472
502
  - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
473
503
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
474
504
  - **Prompt triage:** `--priority` to process only more important tasks first
@@ -486,11 +516,11 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
486
516
 
487
517
  npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompts/templates/agents-server.md
488
518
 
489
- npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
519
+ 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
490
520
 
491
- 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
521
+ 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
492
522
 
493
- 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
523
+ 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
494
524
 
495
525
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
496
526
 
@@ -512,11 +542,11 @@ ptbk coder generate-boilerplates
512
542
 
513
543
  ptbk coder generate-boilerplates --template prompts/templates/common.md
514
544
 
515
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --test npm run test
545
+ 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
516
546
 
517
- ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md --auto-push
547
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
518
548
 
519
- 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
549
+ 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
520
550
 
521
551
  ptbk coder find-refactor-candidates
522
552
 
@@ -529,24 +559,24 @@ ptbk coder verify
529
559
 
530
560
  #### What each command does
531
561
 
532
- | Command | What it does |
533
- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
562
+ | Command | What it does |
563
+ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
534
564
  | `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/`. |
535
- | `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. |
536
- | `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. |
537
- | `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. |
538
- | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
565
+ | `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. |
566
+ | `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. |
567
+ | `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. |
568
+ | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
539
569
 
540
570
  #### Most useful `ptbk coder run` flags
541
571
 
542
572
  | Flag | Purpose |
543
573
  | -------------------------- | -------------------------------------------------------------------------------------------------- |
544
- | `--agent <name>` | Selects the coding backend. |
574
+ | `--harness <name>` | Selects the coding harness. |
545
575
  | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
546
576
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
547
577
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
548
578
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
549
- | `--no-wait` | Skips interactive pauses between prompts for unattended execution. |
579
+ | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
550
580
  | `--ignore-git-changes` | Disables the clean-working-tree guard. |
551
581
  | `--priority <n>` | Runs only prompts at or above the given priority. |
552
582
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
@@ -558,8 +588,8 @@ ptbk coder verify
558
588
 
559
589
  1. Initialize once with `ptbk coder init`.
560
590
  2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
561
- 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
562
- 4. Run one prompt at a time interactively, or use `--no-wait` for unattended batches.
591
+ 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--agent agents/coding/developer.book --context AGENTS.md`.
592
+ 4. Run unattended batches by default, or pass `--no-auto` to confirm each prompt interactively.
563
593
  5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
564
594
 
565
595
 
@@ -582,6 +612,8 @@ The following glossary is used to clarify certain concepts:
582
612
 
583
613
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
584
614
 
615
+
616
+
585
617
  ### 💯 Core concepts
586
618
 
587
619
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import _spaceTrim, { spaceTrim as spaceTrim$1 } from 'spacetrim';
2
2
  import 'path';
3
- import { randomBytes } from 'crypto';
4
- import 'crypto-js';
3
+ import CryptoJS from 'crypto-js';
5
4
  import 'crypto-js/enc-hex';
6
5
 
7
6
  // ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
@@ -18,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
18
17
  * @generated
19
18
  * @see https://github.com/webgptorg/promptbook
20
19
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-99';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-0';
22
21
  /**
23
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
23
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2006,7 +2005,7 @@ class ParseError extends Error {
2006
2005
  * @private internal helper function
2007
2006
  */
2008
2007
  function $randomToken(randomness) {
2009
- return randomBytes(randomness).toString('hex');
2008
+ return CryptoJS.lib.WordArray.random(randomness).toString(CryptoJS.enc.Hex);
2010
2009
  }
2011
2010
  // TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
2012
2011
  // TODO: Maybe use nanoid instead https://github.com/ai/nanoid