@promptbook/components 0.100.0-49 → 0.100.0-64

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 (44) hide show
  1. package/README.md +6 -11
  2. package/esm/index.es.js +160 -458
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/components.index.d.ts +7 -7
  5. package/esm/typings/src/_packages/types.index.d.ts +5 -17
  6. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
  7. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  8. package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirements.d.ts +2 -1
  9. package/esm/typings/src/book-2.0/commitments/_misc/createAgentModelRequirementsWithCommitments.d.ts +3 -2
  10. package/esm/typings/src/book-2.0/commitments/index.d.ts +1 -1
  11. package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +3 -113
  12. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +110 -0
  13. package/esm/typings/src/book-components/Chat/LlmChat/LlmChat.d.ts +4 -98
  14. package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +24 -0
  15. package/esm/typings/src/book-components/Chat/utils/ChatPersistence.d.ts +25 -0
  16. package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +2 -2
  17. package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +2 -2
  18. package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +2 -2
  19. package/esm/typings/src/book-components/Chat/utils/messagesToJson.d.ts +1 -1
  20. package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +2 -2
  21. package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +2 -2
  22. package/esm/typings/src/execution/LlmExecutionTools.d.ts +8 -0
  23. package/esm/typings/src/llm-providers/_common/filterModels.d.ts +0 -3
  24. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +81 -0
  25. package/esm/typings/src/llm-providers/_common/profiles/test/llmProviderProfiles.test.d.ts +1 -0
  26. package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +5 -0
  27. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +5 -0
  28. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +5 -0
  29. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +5 -0
  30. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -0
  31. package/esm/typings/src/version.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/umd/index.umd.js +160 -458
  34. package/umd/index.umd.js.map +1 -1
  35. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/FrontendRAGService.d.ts +0 -48
  36. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/RAGService.d.ts +0 -54
  37. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/BaseKnowledgeProcessor.d.ts +0 -45
  38. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/PdfProcessor.d.ts +0 -31
  39. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/ProcessorFactory.d.ts +0 -23
  40. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/processors/TextProcessor.d.ts +0 -18
  41. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/types.d.ts +0 -56
  42. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/utils/ragHelper.d.ts +0 -34
  43. /package/esm/typings/src/book-components/Chat/{interfaces → types}/ChatMessage.d.ts +0 -0
  44. /package/esm/typings/src/book-components/Chat/{interfaces → types}/ChatParticipant.d.ts +0 -0
package/README.md CHANGED
@@ -10,8 +10,11 @@ Write AI applications using plain human language across multiple models and plat
10
10
  [![NPM Version of ![Promptbook logo - cube with letters P and B](./design/logo-h1.png) Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
11
11
  [![Quality of package ![Promptbook logo - cube with letters P and B](./design/logo-h1.png) Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
12
12
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
13
- [![Build Status](https://github.com/webgptorg/promptbook/actions/workflows/ci.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions)
14
- [![Coverage Status](https://coveralls.io/repos/github/webgptorg/promptbook/badge.svg?branch=main)](https://coveralls.io/github/webgptorg/promptbook?branch=main)
13
+ [![🧪 Test Books](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml)
14
+ [![🧪 Test build](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml)
15
+ [![🧪 Lint](https://github.com/webgptorg/promptbook/actions/workflows/test-lint.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-lint.yml)
16
+ [![🧪 Spell check](https://github.com/webgptorg/promptbook/actions/workflows/test-spell-check.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-spell-check.yml)
17
+ [![🧪 Test types](https://github.com/webgptorg/promptbook/actions/workflows/test-types.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-types.yml)
15
18
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
16
19
 
17
20
 
@@ -151,8 +154,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
151
154
 
152
155
  During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
153
156
 
154
-
155
-
156
157
  It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
157
158
 
158
159
  The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
@@ -278,8 +279,6 @@ Join our growing community of developers and users:
278
279
 
279
280
  _A concise, Markdown-based DSL for crafting AI workflows and automations._
280
281
 
281
-
282
-
283
282
  ### Introduction
284
283
 
285
284
  Book is a Markdown-based language that simplifies the creation of AI applications, workflows, and automations. With human-readable commands, you can define inputs, outputs, personas, knowledge sources, and actions—without needing model-specific details.
@@ -329,8 +328,6 @@ Personas can have access to different knowledge, tools and actions. They can als
329
328
 
330
329
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
331
330
 
332
-
333
-
334
331
  ### **3. How:** Knowledge, Instruments and Actions
335
332
 
336
333
  The resources used by the personas are used to do the work.
@@ -405,7 +402,7 @@ Or you can install them separately:
405
402
  - **[@promptbook/editable](https://www.npmjs.com/package/@promptbook/editable)** - Editable book as native javascript object with imperative object API
406
403
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Useful templates and examples of books which can be used as a starting point
407
404
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
408
- - **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** - Just typescript types used in the library
405
+ - **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** - Color manipulation library
409
406
  - ⭐ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
410
407
  - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
411
408
 
@@ -431,8 +428,6 @@ The following glossary is used to clarify certain concepts:
431
428
 
432
429
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
433
430
 
434
-
435
-
436
431
  ### 💯 Core concepts
437
432
 
438
433
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)