@promptbook/remote-client 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 +2 -3
- 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">
|
|
@@ -62,7 +81,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
62
81
|
|
|
63
82
|
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.
|
|
64
83
|
|
|
65
|
-
Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.
|
|
84
|
+
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.
|
|
66
85
|
|
|
67
86
|
The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
|
|
68
87
|
|
|
@@ -70,17 +89,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
|
|
|
70
89
|
|
|
71
90
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
72
91
|
|
|
73
|
-
**<ins>
|
|
92
|
+
**<ins>Lawyer</ins>**<br/>
|
|
74
93
|
<br/>
|
|
75
|
-
|
|
94
|
+
GOAL You are a company lawyer.<br/>
|
|
76
95
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
77
|
-
|
|
96
|
+
Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
|
|
97
|
+
<br/>
|
|
78
98
|
**RULE** You are knowledgeable, professional, and detail-oriented.<br/>
|
|
79
99
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
80
100
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
101
|
+
<br/>
|
|
102
|
+
USE EMAIL<br/>
|
|
103
|
+
USE BROWSER<br/>
|
|
104
|
+
<br/>
|
|
105
|
+
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/>
|
|
84
106
|
|
|
85
107
|
</td></tr></table>
|
|
86
108
|
|
|
@@ -113,12 +135,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
|
|
|
113
135
|
|
|
114
136
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
115
137
|
|
|
116
|
-
**<ins>
|
|
138
|
+
**<ins>Company Lawyer</ins>**<br/>
|
|
117
139
|
<br/>
|
|
118
|
-
|
|
140
|
+
GOAL<br/>
|
|
119
141
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
120
|
-
|
|
121
|
-
|
|
142
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
143
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
122
144
|
|
|
123
145
|
</td></tr></table>
|
|
124
146
|
|
|
@@ -136,8 +158,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
136
158
|
<br/>
|
|
137
159
|
**PERSONA** You are a company lawyer.<br/>
|
|
138
160
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
139
|
-
|
|
140
|
-
|
|
161
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
162
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
141
163
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
142
164
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
143
165
|
|
|
@@ -155,8 +177,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
|
|
|
155
177
|
<br/>
|
|
156
178
|
**PERSONA** You are a company lawyer.<br/>
|
|
157
179
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
158
|
-
|
|
159
|
-
|
|
180
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
181
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
160
182
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
161
183
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
162
184
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
@@ -177,16 +199,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
|
|
|
177
199
|
<br/>
|
|
178
200
|
**PERSONA** You are a company lawyer.<br/>
|
|
179
201
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
180
|
-
|
|
181
|
-
|
|
202
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
203
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
182
204
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
183
205
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
184
206
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
185
207
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
186
208
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
209
|
+
USE EMAIL<br/>
|
|
210
|
+
USE BROWSER<br/>
|
|
211
|
+
USE SEARCH ENGINE<br/>
|
|
190
212
|
|
|
191
213
|
</td></tr></table>
|
|
192
214
|
|
|
@@ -200,20 +222,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
|
|
|
200
222
|
<br/>
|
|
201
223
|
**PERSONA** You are a company lawyer.<br/>
|
|
202
224
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
203
|
-
|
|
204
|
-
|
|
225
|
+
GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
|
|
226
|
+
GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
|
|
205
227
|
**RULE** Always ensure compliance with local laws and regulations.<br/>
|
|
206
228
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
207
229
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
208
230
|
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
209
231
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
232
|
+
USE EMAIL<br/>
|
|
233
|
+
USE BROWSER<br/>
|
|
234
|
+
USE SEARCH ENGINE<br/>
|
|
235
|
+
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/>
|
|
214
236
|
|
|
215
237
|
</td></tr></table>
|
|
216
238
|
|
|
239
|
+
|
|
240
|
+
|
|
217
241
|
### Promptbook Ecosystem
|
|
218
242
|
|
|
219
243
|
Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
|
|
@@ -236,6 +260,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
|
|
|
236
260
|
|
|
237
261
|
|
|
238
262
|
|
|
263
|
+
|
|
264
|
+
|
|
239
265
|
## 💜 The Promptbook Project
|
|
240
266
|
|
|
241
267
|
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:
|
|
@@ -273,6 +299,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
|
|
|
273
299
|
</tbody>
|
|
274
300
|
</table>
|
|
275
301
|
|
|
302
|
+
|
|
303
|
+
|
|
276
304
|
### 🌐 Community & Social Media
|
|
277
305
|
|
|
278
306
|
Join our growing community of developers and users:
|
|
@@ -329,6 +357,8 @@ Join our growing community of developers and users:
|
|
|
329
357
|
|
|
330
358
|
|
|
331
359
|
|
|
360
|
+
|
|
361
|
+
|
|
332
362
|
## 📚 Documentation
|
|
333
363
|
|
|
334
364
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -420,9 +450,9 @@ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treate
|
|
|
420
450
|
#### Features
|
|
421
451
|
|
|
422
452
|
- **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
|
|
423
|
-
- **Context injection:** `--context AGENTS.md` or inline extra instructions
|
|
453
|
+
- **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
|
|
424
454
|
- **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
|
|
425
|
-
- **
|
|
455
|
+
- **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
|
|
426
456
|
- **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
|
|
427
457
|
- **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
|
|
428
458
|
- **Prompt triage:** `--priority` to process only more important tasks first
|
|
@@ -440,11 +470,11 @@ npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompt
|
|
|
440
470
|
|
|
441
471
|
npx ts-node ./src/cli/test/ptbk.ts coder generate-boilerplates --template prompts/templates/agents-server.md
|
|
442
472
|
|
|
443
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
473
|
+
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
|
|
444
474
|
|
|
445
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
475
|
+
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
|
|
446
476
|
|
|
447
|
-
npx ts-node ./src/cli/test/ptbk.ts coder run --
|
|
477
|
+
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
|
|
448
478
|
|
|
449
479
|
npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
|
|
450
480
|
|
|
@@ -466,11 +496,11 @@ ptbk coder generate-boilerplates
|
|
|
466
496
|
|
|
467
497
|
ptbk coder generate-boilerplates --template prompts/templates/common.md
|
|
468
498
|
|
|
469
|
-
ptbk coder run --
|
|
499
|
+
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
|
|
470
500
|
|
|
471
|
-
ptbk coder run --
|
|
501
|
+
ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
|
|
472
502
|
|
|
473
|
-
ptbk coder run --
|
|
503
|
+
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
|
|
474
504
|
|
|
475
505
|
ptbk coder find-refactor-candidates
|
|
476
506
|
|
|
@@ -483,24 +513,24 @@ ptbk coder verify
|
|
|
483
513
|
|
|
484
514
|
#### What each command does
|
|
485
515
|
|
|
486
|
-
| Command | What it does
|
|
487
|
-
| ------------------------------------- |
|
|
516
|
+
| Command | What it does |
|
|
517
|
+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
|
|
488
518
|
| `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/`. |
|
|
489
|
-
| `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.
|
|
490
|
-
| `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.
|
|
491
|
-
| `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow
|
|
492
|
-
| `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results.
|
|
519
|
+
| `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. |
|
|
520
|
+
| `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. |
|
|
521
|
+
| `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. |
|
|
522
|
+
| `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
|
|
493
523
|
|
|
494
524
|
#### Most useful `ptbk coder run` flags
|
|
495
525
|
|
|
496
526
|
| Flag | Purpose |
|
|
497
527
|
| -------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
498
|
-
| `--
|
|
528
|
+
| `--harness <name>` | Selects the coding harness. |
|
|
499
529
|
| `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
|
|
500
530
|
| `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
|
|
501
531
|
| `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
|
|
502
532
|
| `--thinking-level <level>` | Sets reasoning effort for supported runners. |
|
|
503
|
-
| `--no-
|
|
533
|
+
| `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
|
|
504
534
|
| `--ignore-git-changes` | Disables the clean-working-tree guard. |
|
|
505
535
|
| `--priority <n>` | Runs only prompts at or above the given priority. |
|
|
506
536
|
| `--dry-run` | Prints which prompts are ready instead of executing them. |
|
|
@@ -512,8 +542,8 @@ ptbk coder verify
|
|
|
512
542
|
|
|
513
543
|
1. Initialize once with `ptbk coder init`.
|
|
514
544
|
2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
|
|
515
|
-
3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
|
|
516
|
-
4. Run
|
|
545
|
+
3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--agent agents/coding/developer.book --context AGENTS.md`.
|
|
546
|
+
4. Run unattended batches by default, or pass `--no-auto` to confirm each prompt interactively.
|
|
517
547
|
5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
|
|
518
548
|
|
|
519
549
|
|
|
@@ -536,6 +566,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
536
566
|
|
|
537
567
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
538
568
|
|
|
569
|
+
|
|
570
|
+
|
|
539
571
|
### 💯 Core concepts
|
|
540
572
|
|
|
541
573
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { spaceTrim as spaceTrim$1 } from 'spacetrim';
|
|
2
|
-
import
|
|
2
|
+
import CryptoJS from 'crypto-js';
|
|
3
3
|
import { io } from 'socket.io-client';
|
|
4
|
-
import
|
|
5
|
-
import { SHA256 } from 'crypto-js';
|
|
4
|
+
import papaparse from 'papaparse';
|
|
6
5
|
import hexEncoder from 'crypto-js/enc-hex';
|
|
7
6
|
import { basename } from 'path';
|
|
8
7
|
|
|
@@ -20,7 +19,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
20
19
|
* @generated
|
|
21
20
|
* @see https://github.com/webgptorg/promptbook
|
|
22
21
|
*/
|
|
23
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
22
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-0';
|
|
24
23
|
/**
|
|
25
24
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
26
25
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -257,7 +256,7 @@ class ParseError extends Error {
|
|
|
257
256
|
* @private internal helper function
|
|
258
257
|
*/
|
|
259
258
|
function $randomToken(randomness) {
|
|
260
|
-
return
|
|
259
|
+
return CryptoJS.lib.WordArray.random(randomness).toString(CryptoJS.enc.Hex);
|
|
261
260
|
}
|
|
262
261
|
// TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
263
262
|
// TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
@@ -2254,7 +2253,7 @@ function csvParse(value /* <- TODO: string_csv */, settings, schema /* <- TODO:
|
|
|
2254
2253
|
console.warn('CSV string contains carriage return characters, but in the CSV settings the `newline` setting does not include them. Autohealing the CSV string.');
|
|
2255
2254
|
value = value.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
2256
2255
|
}
|
|
2257
|
-
const csv = parse(value, settings);
|
|
2256
|
+
const csv = papaparse.parse(value, settings);
|
|
2258
2257
|
return csv;
|
|
2259
2258
|
}
|
|
2260
2259
|
|
|
@@ -2339,10 +2338,10 @@ const CsvFormatParser = {
|
|
|
2339
2338
|
i > index ? { ...row, [outputParameterName]: PENDING_VALUE_PLACEHOLDER } : row,
|
|
2340
2339
|
);
|
|
2341
2340
|
*/
|
|
2342
|
-
await onProgress(unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
|
|
2341
|
+
await onProgress(papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS }));
|
|
2343
2342
|
}
|
|
2344
2343
|
}
|
|
2345
|
-
return unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
2344
|
+
return papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
2346
2345
|
},
|
|
2347
2346
|
},
|
|
2348
2347
|
{
|
|
@@ -2370,7 +2369,7 @@ const CsvFormatParser = {
|
|
|
2370
2369
|
return /* not await */ mapCallback({ [key]: value }, index, array.length);
|
|
2371
2370
|
}));
|
|
2372
2371
|
}));
|
|
2373
|
-
return unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
2372
|
+
return papaparse.unparse(mappedData, { ...settings, ...MANDATORY_CSV_SETTINGS });
|
|
2374
2373
|
},
|
|
2375
2374
|
},
|
|
2376
2375
|
],
|
|
@@ -4171,7 +4170,7 @@ function normalizeToKebabCase(text) {
|
|
|
4171
4170
|
* @public exported from `@promptbook/editable`
|
|
4172
4171
|
*/
|
|
4173
4172
|
function knowledgeSourceContentToName(knowledgeSourceContent) {
|
|
4174
|
-
const hash = SHA256(hexEncoder.parse(JSON.stringify(knowledgeSourceContent)))
|
|
4173
|
+
const hash = CryptoJS.SHA256(hexEncoder.parse(JSON.stringify(knowledgeSourceContent)))
|
|
4175
4174
|
// <- TODO: [🥬] Encapsulate sha256 to some private utility function
|
|
4176
4175
|
.toString( /* hex */)
|
|
4177
4176
|
.substring(0, 20);
|