@promptbook/utils 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 +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/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 +1 -1
  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/utils`
53
56
 
54
57
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -381,7 +384,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
381
384
 
382
385
  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.
383
386
 
384
- 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.
387
+ 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.
385
388
 
386
389
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
387
390
 
@@ -389,17 +392,20 @@ In Promptbook, you define your agents **using simple Books** - a human-readable
389
392
 
390
393
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
391
394
 
392
- **<ins>Paul Smith</ins>**<br/>
395
+ **<ins>Lawyer</ins>**<br/>
393
396
  <br/>
394
- **PERSONA** You are a company lawyer.<br/>
397
+ GOAL You are a company lawyer.<br/>
395
398
  Your job is to provide legal advice and support to the company and its employees.<br/>
396
- **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
399
+ Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
400
+ <br/>
397
401
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
398
402
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
399
403
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
400
- **USE EMAIL**<br/>
401
- **USE BROWSER**<br/>
402
- **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/>
404
+ <br/>
405
+ USE EMAIL<br/>
406
+ USE BROWSER<br/>
407
+ <br/>
408
+ 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/>
403
409
 
404
410
  </td></tr></table>
405
411
 
@@ -432,12 +438,12 @@ Goals define what the agent should actively work toward. Unlike a chatbot that o
432
438
 
433
439
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
434
440
 
435
- **<ins>Paul Smith & Associés</ins>**<br/>
441
+ **<ins>Company Lawyer</ins>**<br/>
436
442
  <br/>
437
- **PERSONA** You are a company lawyer.<br/>
443
+ GOAL<br/>
438
444
  Your job is to provide legal advice and support to the company and its employees.<br/>
439
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
440
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
445
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
446
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
441
447
 
442
448
  </td></tr></table>
443
449
 
@@ -455,8 +461,8 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
455
461
  <br/>
456
462
  **PERSONA** You are a company lawyer.<br/>
457
463
  Your job is to provide legal advice and support to the company and its employees.<br/>
458
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
459
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
464
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
465
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
460
466
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
461
467
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
462
468
 
@@ -474,8 +480,8 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
474
480
  <br/>
475
481
  **PERSONA** You are a company lawyer.<br/>
476
482
  Your job is to provide legal advice and support to the company and its employees.<br/>
477
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
478
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
483
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
484
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
479
485
  **RULE** Always ensure compliance with local laws and regulations.<br/>
480
486
  **RULE** Never provide legal advice outside your area of expertise.<br/>
481
487
  **RULE** Never provide legal advice about criminal law.<br/>
@@ -496,16 +502,16 @@ These are what turn a chatbot into a persistent agent that actually does work.
496
502
  <br/>
497
503
  **PERSONA** You are a company lawyer.<br/>
498
504
  Your job is to provide legal advice and support to the company and its employees.<br/>
499
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
500
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
505
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
506
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
501
507
  **RULE** Always ensure compliance with local laws and regulations.<br/>
502
508
  **RULE** Never provide legal advice outside your area of expertise.<br/>
503
509
  **RULE** Never provide legal advice about criminal law.<br/>
504
510
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
505
511
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
506
- **USE EMAIL**<br/>
507
- **USE BROWSER**<br/>
508
- **USE SEARCH ENGINE**<br/>
512
+ USE EMAIL<br/>
513
+ USE BROWSER<br/>
514
+ USE SEARCH ENGINE<br/>
509
515
 
510
516
  </td></tr></table>
511
517
 
@@ -519,20 +525,22 @@ Team commitment allows you to define the team structure and advisory fellow memb
519
525
  <br/>
520
526
  **PERSONA** You are a company lawyer.<br/>
521
527
  Your job is to provide legal advice and support to the company and its employees.<br/>
522
- **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
523
- **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
528
+ GOAL Respond to incoming legal inquiries via email within 24 hours.<br/>
529
+ GOAL Keep the company website updated with the latest legal policies and compliance information.<br/>
524
530
  **RULE** Always ensure compliance with local laws and regulations.<br/>
525
531
  **RULE** Never provide legal advice outside your area of expertise.<br/>
526
532
  **RULE** Never provide legal advice about criminal law.<br/>
527
533
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
528
534
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
529
- **USE EMAIL**<br/>
530
- **USE BROWSER**<br/>
531
- **USE SEARCH ENGINE**<br/>
532
- **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/>
535
+ USE EMAIL<br/>
536
+ USE BROWSER<br/>
537
+ USE SEARCH ENGINE<br/>
538
+ 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/>
533
539
 
534
540
  </td></tr></table>
535
541
 
542
+
543
+
536
544
  ### Promptbook Ecosystem
537
545
 
538
546
  Promptbook is an ecosystem of tools centered around the **Agents Server** - a production-ready platform for running persistent AI agents.
@@ -555,6 +563,8 @@ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-sou
555
563
 
556
564
 
557
565
 
566
+
567
+
558
568
  ## 💜 The Promptbook Project
559
569
 
560
570
  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:
@@ -592,6 +602,8 @@ Promptbook project is an ecosystem centered around the **Agents Server** - a pla
592
602
  </tbody>
593
603
  </table>
594
604
 
605
+
606
+
595
607
  ### 🌐 Community & Social Media
596
608
 
597
609
  Join our growing community of developers and users:
@@ -648,6 +660,8 @@ Join our growing community of developers and users:
648
660
 
649
661
 
650
662
 
663
+
664
+
651
665
  ## 📚 Documentation
652
666
 
653
667
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -855,6 +869,8 @@ The following glossary is used to clarify certain concepts:
855
869
 
856
870
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
857
871
 
872
+
873
+
858
874
  ### 💯 Core concepts
859
875
 
860
876
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -17,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
17
17
  * @generated
18
18
  * @see https://github.com/webgptorg/promptbook
19
19
  */
20
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.113.0-1';
21
21
  /**
22
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
23
23
  * Note: [💞] Ignore a discrepancy between file name and entity name