@promptbook/documents 0.112.0 → 0.113.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +45 -29
  2. package/esm/index.es.js +1 -1
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/core.index.d.ts +22 -0
  5. package/esm/src/_packages/types.index.d.ts +2 -0
  6. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  7. package/esm/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  8. package/esm/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  9. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  10. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  11. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  12. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  13. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  14. package/esm/src/commitments/index.d.ts +2 -1
  15. package/esm/src/version.d.ts +1 -1
  16. package/package.json +2 -2
  17. package/umd/index.umd.js +1 -1
  18. package/umd/index.umd.js.map +1 -1
  19. package/umd/src/_packages/core.index.d.ts +22 -0
  20. package/umd/src/_packages/types.index.d.ts +2 -0
  21. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  22. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  23. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  24. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  25. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  26. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  27. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  28. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  29. package/umd/src/commitments/index.d.ts +2 -1
  30. package/umd/src/version.d.ts +1 -1
package/README.md CHANGED
@@ -41,14 +41,17 @@ Non-interactive mode takes defaults from command-line options. When `--openai-ap
41
41
  sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
42
42
  --non-interactive \
43
43
  --yes-i-understand-that-script-should-be-run-on-fresh-server \
44
- --domain s24.ptbk.io \
45
- --openai-api-key sk-proj-abcdef \
46
- --sentry-dsn https://abc@def.ingest.de.sentry.io/123 \
44
+ --domain my-server.com \
45
+ --openai-api-key sk-proj-xxx \
47
46
  --admin-password xxx
48
47
  ```
49
48
 
50
49
 
51
50
 
51
+ <blockquote style="color: #ff8811">
52
+ <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
53
+ </blockquote>
54
+
52
55
  ## 📦 Package `@promptbook/documents`
53
56
 
54
57
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -81,7 +84,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
81
84
 
82
85
  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.
83
86
 
84
- 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.
87
+ 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.
85
88
 
86
89
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
87
90
 
@@ -89,17 +92,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
89
92
 
90
93
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
91
94
 
92
- **<ins>Paul Smith</ins>**<br/>
95
+ **<ins>Lawyer</ins>**<br/>
93
96
  <br/>
94
- **PERSONA** You are a company lawyer.<br/>
97
+ GOAL You are a company lawyer.<br/>
95
98
  Your job is to provide legal advice and support to the company and its employees.<br/>
96
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
99
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
100
+ <br/>
97
101
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
98
102
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
99
103
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
100
- **USE EMAIL**<br/>
101
- **USE BROWSER**<br/>
102
- **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/>
104
+ <br/>
105
+ USE EMAIL<br/>
106
+ USE BROWSER<br/>
107
+ <br/>
108
+ 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/>
103
109
 
104
110
  </td></tr></table>
105
111
 
@@ -132,12 +138,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
132
138
 
133
139
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
134
140
 
135
- **<ins>Paul Smith & Associés</ins>**<br/>
141
+ **<ins>Company Lawyer</ins>**<br/>
136
142
  <br/>
137
- **PERSONA** You are a company lawyer.<br/>
143
+ GOAL<br/>
138
144
  Your job is to provide legal advice and support to the company and its employees.<br/>
139
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
140
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
145
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
146
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
141
147
 
142
148
  </td></tr></table>
143
149
 
@@ -155,8 +161,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
155
161
  <br/>
156
162
  **PERSONA** You are a company lawyer.<br/>
157
163
  Your job is to provide legal advice and support to the company and its employees.<br/>
158
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
159
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
164
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
165
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
160
166
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
161
167
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
162
168
 
@@ -174,8 +180,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
174
180
  <br/>
175
181
  **PERSONA** You are a company lawyer.<br/>
176
182
  Your job is to provide legal advice and support to the company and its employees.<br/>
177
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
178
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
183
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
184
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
179
185
  **RULE** Always ensure compliance with local laws and regulations.<br/>
180
186
  **RULE** Never provide legal advice outside your area of expertise.<br/>
181
187
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -196,16 +202,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
196
202
  <br/>
197
203
  **PERSONA** You are a company lawyer.<br/>
198
204
  Your job is to provide legal advice and support to the company and its employees.<br/>
199
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
200
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
205
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
206
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
201
207
  **RULE** Always ensure compliance with local laws and regulations.<br/>
202
208
  **RULE** Never provide legal advice outside your area of expertise.<br/>
203
209
  **RULE** Never provide legal advice about criminal law.<br/>
204
210
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
205
211
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
206
- **USE EMAIL**<br/>
207
- **USE BROWSER**<br/>
208
- **USE SEARCH ENGINE**<br/>
212
+ USE EMAIL<br/>
213
+ USE BROWSER<br/>
214
+ USE SEARCH ENGINE<br/>
209
215
 
210
216
  </td></tr></table>
211
217
 
@@ -219,20 +225,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
219
225
  <br/>
220
226
  **PERSONA** You are a company lawyer.<br/>
221
227
  Your job is to provide legal advice and support to the company and its employees.<br/>
222
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
223
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
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/>
224
230
  **RULE** Always ensure compliance with local laws and regulations.<br/>
225
231
  **RULE** Never provide legal advice outside your area of expertise.<br/>
226
232
  **RULE** Never provide legal advice about criminal law.<br/>
227
233
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
228
234
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
229
- **USE EMAIL**<br/>
230
- **USE BROWSER**<br/>
231
- **USE SEARCH ENGINE**<br/>
232
- **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/>
235
+ USE EMAIL<br/>
236
+ USE BROWSER<br/>
237
+ USE SEARCH ENGINE<br/>
238
+ 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/>
233
239
 
234
240
  </td></tr></table>
235
241
 
242
+
243
+
236
244
  ### Promptbook Ecosystem
237
245
 
238
246
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -255,6 +263,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
255
263
 
256
264
 
257
265
 
266
+
267
+
258
268
  ## 💜 The Promptbook Project
259
269
 
260
270
  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:
@@ -292,6 +302,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
292
302
  </tbody>
293
303
  </table>
294
304
 
305
+
306
+
295
307
  ### 🌐 Community & Social Media
296
308
 
297
309
  Join our growing community of developers and users:
@@ -348,6 +360,8 @@ Join our growing community of developers and users:
348
360
 
349
361
 
350
362
 
363
+
364
+
351
365
  ## 📚 Documentation
352
366
 
353
367
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -555,6 +569,8 @@ The following glossary is used to clarify certain concepts:
555
569
 
556
570
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
557
571
 
572
+
573
+
558
574
  ### 💯 Core concepts
559
575
 
560
576
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-0';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name