@promptbook/markdown-utils 0.103.0-43 โ†’ 0.103.0-44

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 (27) hide show
  1. package/README.md +6 -18
  2. package/esm/index.es.js +8 -2
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/types.index.d.ts +8 -0
  5. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +5 -0
  6. package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +2 -28
  7. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +61 -9
  8. package/esm/typings/src/errors/DatabaseError.d.ts +3 -0
  9. package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
  10. package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
  11. package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +2 -1
  12. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  13. package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
  14. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  15. package/esm/typings/src/types/typeAliases.d.ts +19 -1
  16. package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
  17. package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +5 -2
  18. package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
  19. package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
  20. package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
  21. package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
  22. package/esm/typings/src/utils/random/$randomToken.d.ts +1 -0
  23. package/esm/typings/src/version.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/umd/index.umd.js +8 -2
  26. package/umd/index.umd.js.map +1 -1
  27. package/esm/typings/src/commands/_common/parseCommand.test.d.ts +0 -1
package/README.md CHANGED
@@ -9,8 +9,8 @@ Turn your company's scattered knowledge into AI ready Books
9
9
 
10
10
 
11
11
 
12
- [![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)
13
- [![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
+ [![NPM Version of ![Promptbook logo](./design/logo-h1.png) Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
13
+ [![Quality of package ![Promptbook logo](./design/logo-h1.png) Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
14
14
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
15
15
  [![๐Ÿงช Test Books](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml)
16
16
  [![๐Ÿงช Test build](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions/workflows/test-build.yml)
@@ -23,11 +23,7 @@ Turn your company's scattered knowledge into AI ready Books
23
23
 
24
24
  ## ๐ŸŒŸ New Features
25
25
 
26
- - ๐Ÿš€ **GPT-5 Support** - Now includes OpenAI's most advanced language model with unprecedented reasoning capabilities and 200K context window
27
- - ๐Ÿ’ก VS Code support for `.book` files with syntax highlighting and IntelliSense
28
- - ๐Ÿณ Official Docker image (`hejny/promptbook`) for seamless containerized usage
29
- - ๐Ÿ”ฅ Native support for OpenAI `o3-mini`, GPT-4 and other leading LLMs
30
- - ๐Ÿ” DeepSeek integration for advanced knowledge search
26
+ - **Gemini 3 Support**
31
27
 
32
28
 
33
29
 
@@ -202,7 +198,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
202
198
  Your job is to provide legal advice and support to the company and its employees.<br/>
203
199
  You are knowledgeable, professional, and detail-oriented.<br/>
204
200
  <br/>
205
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
201
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
206
202
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
207
203
 
208
204
  </td></tr></table>
@@ -224,7 +220,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
224
220
  **RULE** Always ensure compliance with laws and regulations.<br/>
225
221
  **RULE** Never provide legal advice outside your area of expertise.<br/>
226
222
  **RULE** Never provide legal advice about criminal law.<br/>
227
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
223
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
228
224
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
229
225
 
230
226
  </td></tr></table>
@@ -244,7 +240,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
244
240
  **RULE** Always ensure compliance with laws and regulations.<br/>
245
241
  **RULE** Never provide legal advice outside your area of expertise.<br/>
246
242
  **RULE** Never provide legal advice about criminal law.<br/>
247
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
243
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
248
244
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
249
245
  **ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
250
246
 
@@ -295,14 +291,10 @@ Now you want to use it. There are several ways how to write your first book:
295
291
 
296
292
  We have written ai asistant in book who can help you with writing your first book.
297
293
 
298
-
299
-
300
294
  #### Your AI twin
301
295
 
302
296
  Copy your own behavior, personality, and knowledge into book and create your AI twin. It can help you with your work, personal life, or any other task.
303
297
 
304
-
305
-
306
298
  #### AI persona workpool
307
299
 
308
300
  Or you can pick from our library of pre-written books for various roles and tasks. You can find books for customer support, coding, marketing, sales, HR, legal, and many other roles.
@@ -422,8 +414,6 @@ Join our growing community of developers and users:
422
414
 
423
415
 
424
416
 
425
-
426
-
427
417
  ## ๐Ÿ“š Documentation
428
418
 
429
419
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -500,8 +490,6 @@ The following glossary is used to clarify certain concepts:
500
490
 
501
491
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
502
492
 
503
-
504
-
505
493
  ### ๐Ÿ’ฏ Core concepts
506
494
 
507
495
  - [๐Ÿ“š Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -16,14 +16,14 @@ import { parse, unparse } from 'papaparse';
16
16
  * @generated
17
17
  * @see https://github.com/webgptorg/book
18
18
  */
19
- const BOOK_LANGUAGE_VERSION = '1.0.0';
19
+ const BOOK_LANGUAGE_VERSION = '2.0.0';
20
20
  /**
21
21
  * The version of the Promptbook engine
22
22
  *
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-43';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-44';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -2609,6 +2609,7 @@ function $randomToken(randomness) {
2609
2609
  return randomBytes(randomness).toString('hex');
2610
2610
  }
2611
2611
  /**
2612
+ * TODO: [๐Ÿคถ] Maybe export through `@promptbook/utils` or `@promptbook/random` package
2612
2613
  * TODO: Maybe use nanoid instead https://github.com/ai/nanoid
2613
2614
  */
2614
2615
 
@@ -2739,6 +2740,9 @@ class DatabaseError extends Error {
2739
2740
  Object.setPrototypeOf(this, DatabaseError.prototype);
2740
2741
  }
2741
2742
  }
2743
+ /**
2744
+ * TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
2745
+ */
2742
2746
 
2743
2747
  /**
2744
2748
  * This error type indicates that you try to use a feature that is not available in the current environment
@@ -3706,6 +3710,7 @@ function joinLlmExecutionTools(title, ...llmExecutionTools) {
3706
3710
  return new MultipleLlmExecutionTools(title || 'Multiple LLM Providers joined by `joinLlmExecutionTools`', ...llmExecutionTools);
3707
3711
  }
3708
3712
  /**
3713
+ * TODO: [๐Ÿ™†] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
3709
3714
  * TODO: [๐Ÿ‘ทโ€โ™‚๏ธ] @@@ Manual about construction of llmTools
3710
3715
  */
3711
3716
 
@@ -3722,6 +3727,7 @@ function getSingleLlmExecutionTools(oneOrMoreLlmExecutionTools) {
3722
3727
  return llmTools;
3723
3728
  }
3724
3729
  /**
3730
+ * TODO: [๐Ÿ™†] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
3725
3731
  * TODO: [๐Ÿ‘ทโ€โ™‚๏ธ] @@@ Manual about construction of llmTools
3726
3732
  */
3727
3733