@promptbook/components 0.112.0 → 0.113.0-1

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 (34) hide show
  1. package/README.md +45 -29
  2. package/esm/index.es.js +270 -24
  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/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  11. package/esm/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +12 -0
  12. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  13. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  14. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  15. package/esm/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  16. package/esm/src/commitments/index.d.ts +2 -1
  17. package/esm/src/version.d.ts +1 -1
  18. package/package.json +1 -1
  19. package/umd/index.umd.js +270 -24
  20. package/umd/index.umd.js.map +1 -1
  21. package/umd/src/_packages/core.index.d.ts +22 -0
  22. package/umd/src/_packages/types.index.d.ts +2 -0
  23. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -0
  24. package/umd/src/book-2.0/agent-source/agentSourceVisibility.d.ts +97 -0
  25. package/umd/src/book-2.0/agent-source/agentSourceVisibility.test.d.ts +1 -0
  26. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  27. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  28. package/umd/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +12 -0
  29. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +6 -0
  30. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +2 -1
  31. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +21 -1
  32. package/umd/src/commitments/META_VISIBILITY/META_VISIBILITY.d.ts +27 -0
  33. package/umd/src/commitments/index.d.ts +2 -1
  34. 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/components`
53
56
 
54
57
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -221,7 +224,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
221
224
 
222
225
  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.
223
226
 
224
- 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.
227
+ 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.
225
228
 
226
229
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
227
230
 
@@ -229,17 +232,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
229
232
 
230
233
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
231
234
 
232
- **<ins>Paul Smith</ins>**<br/>
235
+ **<ins>Lawyer</ins>**<br/>
233
236
  <br/>
234
- **PERSONA** You are a company lawyer.<br/>
237
+ GOAL You are a company lawyer.<br/>
235
238
  Your job is to provide legal advice and support to the company and its employees.<br/>
236
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
239
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
240
+ <br/>
237
241
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
238
242
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
239
243
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
240
- **USE EMAIL**<br/>
241
- **USE BROWSER**<br/>
242
- **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/>
244
+ <br/>
245
+ USE EMAIL<br/>
246
+ USE BROWSER<br/>
247
+ <br/>
248
+ 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/>
243
249
 
244
250
  </td></tr></table>
245
251
 
@@ -272,12 +278,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
272
278
 
273
279
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
274
280
 
275
- **<ins>Paul Smith & Associés</ins>**<br/>
281
+ **<ins>Company Lawyer</ins>**<br/>
276
282
  <br/>
277
- **PERSONA** You are a company lawyer.<br/>
283
+ GOAL<br/>
278
284
  Your job is to provide legal advice and support to the company and its employees.<br/>
279
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
280
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
285
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
286
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
281
287
 
282
288
  </td></tr></table>
283
289
 
@@ -295,8 +301,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
295
301
  <br/>
296
302
  **PERSONA** You are a company lawyer.<br/>
297
303
  Your job is to provide legal advice and support to the company and its employees.<br/>
298
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
299
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
304
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
305
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
300
306
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
301
307
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
302
308
 
@@ -314,8 +320,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
314
320
  <br/>
315
321
  **PERSONA** You are a company lawyer.<br/>
316
322
  Your job is to provide legal advice and support to the company and its employees.<br/>
317
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
318
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
323
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
324
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
319
325
  **RULE** Always ensure compliance with local laws and regulations.<br/>
320
326
  **RULE** Never provide legal advice outside your area of expertise.<br/>
321
327
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -336,16 +342,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
336
342
  <br/>
337
343
  **PERSONA** You are a company lawyer.<br/>
338
344
  Your job is to provide legal advice and support to the company and its employees.<br/>
339
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
340
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
345
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
346
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
341
347
  **RULE** Always ensure compliance with local laws and regulations.<br/>
342
348
  **RULE** Never provide legal advice outside your area of expertise.<br/>
343
349
  **RULE** Never provide legal advice about criminal law.<br/>
344
350
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
345
351
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
346
- **USE EMAIL**<br/>
347
- **USE BROWSER**<br/>
348
- **USE SEARCH ENGINE**<br/>
352
+ USE EMAIL<br/>
353
+ USE BROWSER<br/>
354
+ USE SEARCH ENGINE<br/>
349
355
 
350
356
  </td></tr></table>
351
357
 
@@ -359,20 +365,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
359
365
  <br/>
360
366
  **PERSONA** You are a company lawyer.<br/>
361
367
  Your job is to provide legal advice and support to the company and its employees.<br/>
362
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
363
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
368
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
369
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
364
370
  **RULE** Always ensure compliance with local laws and regulations.<br/>
365
371
  **RULE** Never provide legal advice outside your area of expertise.<br/>
366
372
  **RULE** Never provide legal advice about criminal law.<br/>
367
373
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
368
374
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
369
- **USE EMAIL**<br/>
370
- **USE BROWSER**<br/>
371
- **USE SEARCH ENGINE**<br/>
372
- **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/>
375
+ USE EMAIL<br/>
376
+ USE BROWSER<br/>
377
+ USE SEARCH ENGINE<br/>
378
+ 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/>
373
379
 
374
380
  </td></tr></table>
375
381
 
382
+
383
+
376
384
  ### Promptbook Ecosystem
377
385
 
378
386
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -395,6 +403,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
395
403
 
396
404
 
397
405
 
406
+
407
+
398
408
  ## 💜 The Promptbook Project
399
409
 
400
410
  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:
@@ -432,6 +442,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
432
442
  </tbody>
433
443
  </table>
434
444
 
445
+
446
+
435
447
  ### 🌐 Community & Social Media
436
448
 
437
449
  Join our growing community of developers and users:
@@ -488,6 +500,8 @@ Join our growing community of developers and users:
488
500
 
489
501
 
490
502
 
503
+
504
+
491
505
  ## 📚 Documentation
492
506
 
493
507
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -695,6 +709,8 @@ The following glossary is used to clarify certain concepts:
695
709
 
696
710
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
697
711
 
712
+
713
+
698
714
  ### 💯 Core concepts
699
715
 
700
716
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)