@promptbook/markdown-utils 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.
- package/README.md +76 -44
- package/esm/index.es.js +9 -10
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/core.index.d.ts +22 -2
- package/esm/src/_packages/node.index.d.ts +40 -0
- package/esm/src/_packages/types.index.d.ts +20 -0
- package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
- package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
- package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/esm/src/book-3.0/CliAgent.d.ts +66 -0
- package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
- package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/esm/src/cli/cli-commands/agent.d.ts +14 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
- package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
- package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
- package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/esm/src/commitments/index.d.ts +2 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -2
- package/umd/index.umd.js +13 -11
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/core.index.d.ts +22 -2
- package/umd/src/_packages/node.index.d.ts +40 -0
- package/umd/src/_packages/types.index.d.ts +20 -0
- package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
- package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
- package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
- package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
- package/umd/src/book-3.0/CliAgent.d.ts +66 -0
- package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
- package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
- package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
- package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
- package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
- package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
- package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
- package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
- package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
- package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
- package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
- package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
- package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
- package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
- package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
- package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
- package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
- package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
- package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
- package/umd/src/cli/cli-commands/agent.d.ts +14 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +23 -1
- package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
- package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
- package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
- package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
- package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
- package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
- package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
- package/umd/src/commitments/index.d.ts +2 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
- package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
- package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
- 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">
|
|
@@ -148,7 +167,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
148
167
|
|
|
149
168
|
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.
|
|
150
169
|
|
|
151
|
-
Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.
|
|
170
|
+
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.
|
|
152
171
|
|
|
153
172
|
The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
|
|
154
173
|
|
|
@@ -156,17 +175,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
|
|
|
156
175
|
|
|
157
176
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
158
177
|
|
|
159
|
-
**<ins>
|
|
178
|
+
**<ins>Lawyer</ins>**<br/>
|
|
160
179
|
<br/>
|
|
161
|
-
|
|
180
|
+
GOAL You are a company lawyer.<br/>
|
|
162
181
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
163
|
-
|
|
182
|
+
Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
|
|
183
|
+
<br/>
|
|
164
184
|
**RULE** You are knowledgeable, professional, and detail-oriented.<br/>
|
|
165
185
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
166
186
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
187
|
+
<br/>
|
|
188
|
+
USE EMAIL<br/>
|
|
189
|
+
USE BROWSER<br/>
|
|
190
|
+
<br/>
|
|
191
|
+
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/>
|
|
170
192
|
|
|
171
193
|
</td></tr></table>
|
|
172
194
|
|
|
@@ -199,12 +221,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
|
|
|
199
221
|
|
|
200
222
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
201
223
|
|
|
202
|
-
**<ins>
|
|
224
|
+
**<ins>Company Lawyer</ins>**<br/>
|
|
203
225
|
<br/>
|
|
204
|
-
|
|
226
|
+
GOAL<br/>
|
|
205
227
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
206
|
-
|
|
207
|
-
|
|
228
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
229
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
208
230
|
|
|
209
231
|
</td></tr></table>
|
|
210
232
|
|
|
@@ -222,8 +244,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
222
244
|
<br/>
|
|
223
245
|
**PERSONA** You are a company lawyer.<br/>
|
|
224
246
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
225
|
-
|
|
226
|
-
|
|
247
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
248
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
227
249
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
228
250
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
229
251
|
|
|
@@ -241,8 +263,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
|
|
|
241
263
|
<br/>
|
|
242
264
|
**PERSONA** You are a company lawyer.<br/>
|
|
243
265
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
244
|
-
|
|
245
|
-
|
|
266
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
267
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
246
268
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
247
269
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
248
270
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
@@ -263,16 +285,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
|
|
|
263
285
|
<br/>
|
|
264
286
|
**PERSONA** You are a company lawyer.<br/>
|
|
265
287
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
266
|
-
|
|
267
|
-
|
|
288
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
289
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
268
290
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
269
291
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
270
292
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
271
293
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
272
294
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
295
|
+
USE EMAIL<br/>
|
|
296
|
+
USE BROWSER<br/>
|
|
297
|
+
USE SEARCH ENGINE<br/>
|
|
276
298
|
|
|
277
299
|
</td></tr></table>
|
|
278
300
|
|
|
@@ -286,20 +308,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
|
|
|
286
308
|
<br/>
|
|
287
309
|
**PERSONA** You are a company lawyer.<br/>
|
|
288
310
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
289
|
-
|
|
290
|
-
|
|
311
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
312
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
291
313
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
292
314
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
293
315
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
294
316
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
295
317
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
318
|
+
USE EMAIL<br/>
|
|
319
|
+
USE BROWSER<br/>
|
|
320
|
+
USE SEARCH ENGINE<br/>
|
|
321
|
+
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/>
|
|
300
322
|
|
|
301
323
|
</td></tr></table>
|
|
302
324
|
|
|
325
|
+
|
|
326
|
+
|
|
303
327
|
### Promptbook Ecosystem
|
|
304
328
|
|
|
305
329
|
Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
|
|
@@ -322,6 +346,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
|
|
|
322
346
|
|
|
323
347
|
|
|
324
348
|
|
|
349
|
+
|
|
350
|
+
|
|
325
351
|
## 💜 The Promptbook Project
|
|
326
352
|
|
|
327
353
|
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:
|
|
@@ -359,6 +385,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
|
|
|
359
385
|
</tbody>
|
|
360
386
|
</table>
|
|
361
387
|
|
|
388
|
+
|
|
389
|
+
|
|
362
390
|
### 🌐 Community & Social Media
|
|
363
391
|
|
|
364
392
|
Join our growing community of developers and users:
|
|
@@ -415,6 +443,8 @@ Join our growing community of developers and users:
|
|
|
415
443
|
|
|
416
444
|
|
|
417
445
|
|
|
446
|
+
|
|
447
|
+
|
|
418
448
|
## 📚 Documentation
|
|
419
449
|
|
|
420
450
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -506,9 +536,9 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
|
|
|
506
536
|
#### Features
|
|
507
537
|
|
|
508
538
|
- **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
|
|
509
|
-
- **Context injection:** `--context AGENTS.md` or inline extra instructions
|
|
539
|
+
- **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
|
|
510
540
|
- **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
|
|
511
|
-
- **
|
|
541
|
+
- **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
|
|
512
542
|
- **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
|
|
513
543
|
- **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
|
|
514
544
|
- **Prompt triage:** `--priority` to process only more important tasks first
|
|
@@ -526,11 +556,11 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
|
|
|
526
556
|
|
|
527
557
|
npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompts/templates/agents-server.md
|
|
528
558
|
|
|
529
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
559
|
+
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
|
|
530
560
|
|
|
531
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
561
|
+
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
|
|
532
562
|
|
|
533
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
563
|
+
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
|
|
534
564
|
|
|
535
565
|
npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
|
|
536
566
|
|
|
@@ -552,11 +582,11 @@ ptbk coder generate-boilerplates
|
|
|
552
582
|
|
|
553
583
|
ptbk coder generate-boilerplates --template prompts/templates/common.md
|
|
554
584
|
|
|
555
|
-
ptbk coder run --
|
|
585
|
+
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
|
|
556
586
|
|
|
557
|
-
ptbk coder run --
|
|
587
|
+
ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
|
|
558
588
|
|
|
559
|
-
ptbk coder run --
|
|
589
|
+
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
|
|
560
590
|
|
|
561
591
|
ptbk coder find-refactor-candidates
|
|
562
592
|
|
|
@@ -569,24 +599,24 @@ ptbk coder verify
|
|
|
569
599
|
|
|
570
600
|
#### What each command does
|
|
571
601
|
|
|
572
|
-
| Command | What it does
|
|
573
|
-
| ------------------------------------- |
|
|
602
|
+
| Command | What it does |
|
|
603
|
+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
|
|
574
604
|
| `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/`. |
|
|
575
|
-
| `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.
|
|
576
|
-
| `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.
|
|
577
|
-
| `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow
|
|
578
|
-
| `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results.
|
|
605
|
+
| `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. |
|
|
606
|
+
| `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. |
|
|
607
|
+
| `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. |
|
|
608
|
+
| `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
|
|
579
609
|
|
|
580
610
|
#### Most useful `ptbk coder run` flags
|
|
581
611
|
|
|
582
612
|
| Flag | Purpose |
|
|
583
613
|
| -------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
584
|
-
| `--
|
|
614
|
+
| `--harness <name>` | Selects the coding harness. |
|
|
585
615
|
| `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
|
|
586
616
|
| `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
|
|
587
617
|
| `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
|
|
588
618
|
| `--thinking-level <level>` | Sets reasoning effort for supported runners. |
|
|
589
|
-
| `--no-
|
|
619
|
+
| `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
|
|
590
620
|
| `--ignore-git-changes` | Disables the clean-working-tree guard. |
|
|
591
621
|
| `--priority <n>` | Runs only prompts at or above the given priority. |
|
|
592
622
|
| `--dry-run` | Prints which prompts are ready instead of executing them. |
|
|
@@ -598,8 +628,8 @@ ptbk coder verify
|
|
|
598
628
|
|
|
599
629
|
1. Initialize once with `ptbk coder init`.
|
|
600
630
|
2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
|
|
601
|
-
3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
|
|
602
|
-
4. Run
|
|
631
|
+
3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--agent agents/coding/developer.book --context AGENTS.md`.
|
|
632
|
+
4. Run unattended batches by default, or pass `--no-auto` to confirm each prompt interactively.
|
|
603
633
|
5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
|
|
604
634
|
|
|
605
635
|
|
|
@@ -622,6 +652,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
622
652
|
|
|
623
653
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
624
654
|
|
|
655
|
+
|
|
656
|
+
|
|
625
657
|
### 💯 Core concepts
|
|
626
658
|
|
|
627
659
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { spaceTrim as spaceTrim$1 } from 'spacetrim';
|
|
2
|
-
import
|
|
2
|
+
import CryptoJS from 'crypto-js';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { forTime } from 'waitasecond';
|
|
5
5
|
import hexEncoder from 'crypto-js/enc-hex';
|
|
6
6
|
import sha256 from 'crypto-js/sha256';
|
|
7
7
|
import { basename, join, dirname, isAbsolute } from 'path';
|
|
8
|
-
import { SHA256 } from 'crypto-js';
|
|
9
8
|
import { lookup, extension } from 'mime-types';
|
|
10
|
-
import
|
|
9
|
+
import papaparse from 'papaparse';
|
|
11
10
|
|
|
12
11
|
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
13
12
|
/**
|
|
@@ -23,7 +22,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
23
22
|
* @generated
|
|
24
23
|
* @see https://github.com/webgptorg/promptbook
|
|
25
24
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-0';
|
|
27
26
|
/**
|
|
28
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3269,7 +3268,7 @@ class MissingToolsError extends Error {
|
|
|
3269
3268
|
* @private internal helper function
|
|
3270
3269
|
*/
|
|
3271
3270
|
function $randomToken(randomness) {
|
|
3272
|
-
return
|
|
3271
|
+
return CryptoJS.lib.WordArray.random(randomness).toString(CryptoJS.enc.Hex);
|
|
3273
3272
|
}
|
|
3274
3273
|
// TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
3275
3274
|
// TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
@@ -5229,7 +5228,7 @@ function normalizeToKebabCase(text) {
|
|
|
5229
5228
|
* @public exported from `@promptbook/editable`
|
|
5230
5229
|
*/
|
|
5231
5230
|
function knowledgeSourceContentToName(knowledgeSourceContent) {
|
|
5232
|
-
const hash = SHA256(hexEncoder.parse(JSON.stringify(knowledgeSourceContent)))
|
|
5231
|
+
const hash = CryptoJS.SHA256(hexEncoder.parse(JSON.stringify(knowledgeSourceContent)))
|
|
5233
5232
|
// <- TODO: [🥬] Encapsulate sha256 to some private utility function
|
|
5234
5233
|
.toString( /* hex */)
|
|
5235
5234
|
.substring(0, 20);
|
|
@@ -6223,7 +6222,7 @@ function csvParse(value /* <- TODO: string_csv */, settings, schema /* <- TODO:
|
|
|
6223
6222
|
console.warn('CSV string contains carriage return characters, but in the CSV settings the `newline` setting does not include them. Autohealing the CSV string.');
|
|
6224
6223
|
value = value.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
6225
6224
|
}
|
|
6226
|
-
const csv = parse(value, settings);
|
|
6225
|
+
const csv = papaparse.parse(value, settings);
|
|
6227
6226
|
return csv;
|
|
6228
6227
|
}
|
|
6229
6228
|
|
|
@@ -6308,10 +6307,10 @@ const CsvFormatParser = {
|
|
|
6308
6307
|
i > index ? { ...row, [outputParameterName]: PENDING_VALUE_PLACEHOLDER } : row,
|
|
6309
6308
|
);
|
|
6310
6309
|
*/
|
|
6311
|
-
await onProgress(unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
|
|
6310
|
+
await onProgress(papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
|
|
6312
6311
|
}
|
|
6313
6312
|
}
|
|
6314
|
-
return unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
6313
|
+
return papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
6315
6314
|
},
|
|
6316
6315
|
},
|
|
6317
6316
|
{
|
|
@@ -6339,7 +6338,7 @@ const CsvFormatParser = {
|
|
|
6339
6338
|
return /* not await */ mapCallback({ [key]: value }, index, array.length);
|
|
6340
6339
|
}));
|
|
6341
6340
|
}));
|
|
6342
|
-
return unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
6341
|
+
return papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
6343
6342
|
},
|
|
6344
6343
|
},
|
|
6345
6344
|
],
|