@promptbook/anthropic-claude 0.103.0-42 → 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 (92) hide show
  1. package/README.md +6 -18
  2. package/esm/index.es.js +61 -101
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/core.index.d.ts +6 -0
  5. package/esm/typings/src/_packages/node.index.d.ts +0 -2
  6. package/esm/typings/src/_packages/types.index.d.ts +22 -0
  7. package/esm/typings/src/_packages/utils.index.d.ts +2 -0
  8. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +2 -4
  9. package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +1 -1
  10. package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +1 -0
  11. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +6 -1
  12. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +1 -1
  13. package/esm/typings/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +1 -1
  14. package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  15. package/esm/typings/src/book-components/Qr/BrandedQrCode.d.ts +1 -1
  16. package/esm/typings/src/book-components/Qr/useQrCode.d.ts +1 -1
  17. package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +1 -1
  18. package/esm/typings/src/cli/cli-commands/about.d.ts +1 -1
  19. package/esm/typings/src/cli/cli-commands/hello.d.ts +1 -1
  20. package/esm/typings/src/cli/cli-commands/list-models.d.ts +1 -1
  21. package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +1 -1
  22. package/esm/typings/src/cli/cli-commands/login.d.ts +1 -1
  23. package/esm/typings/src/cli/cli-commands/make.d.ts +1 -1
  24. package/esm/typings/src/cli/cli-commands/prettify.d.ts +1 -1
  25. package/esm/typings/src/cli/cli-commands/run.d.ts +1 -1
  26. package/esm/typings/src/cli/cli-commands/start-agents-server.d.ts +1 -1
  27. package/esm/typings/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  28. package/esm/typings/src/cli/cli-commands/test-command.d.ts +1 -1
  29. package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +1 -1
  30. package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +2 -29
  31. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +107 -0
  32. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +129 -0
  33. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
  34. package/esm/typings/src/config.d.ts +1 -1
  35. package/esm/typings/src/errors/0-index.d.ts +3 -0
  36. package/esm/typings/src/errors/DatabaseError.d.ts +12 -0
  37. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -1
  38. package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +1 -1
  39. package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +1 -1
  40. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +1 -1
  41. package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
  42. package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
  43. package/esm/typings/src/llm-providers/agent/Agent.d.ts +5 -2
  44. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +1 -1
  45. package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +4 -2
  46. package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +4 -3
  47. package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +1 -1
  48. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  49. package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
  50. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  51. package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +1 -0
  52. package/esm/typings/src/remote-server/startAgentServer.d.ts +2 -2
  53. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +0 -19
  54. package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +1 -1
  55. package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +5 -1
  56. package/esm/typings/src/transpilers/_common/BookTranspilerOptions.d.ts +1 -1
  57. package/esm/typings/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -1
  58. package/esm/typings/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +4 -1
  59. package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +1 -1
  60. package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +4 -1
  61. package/esm/typings/src/transpilers/openai-sdk/register.d.ts +1 -1
  62. package/esm/typings/src/types/typeAliases.d.ts +19 -1
  63. package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
  64. package/esm/typings/src/utils/color/operators/darken.d.ts +1 -1
  65. package/esm/typings/src/utils/color/operators/grayscale.d.ts +1 -1
  66. package/esm/typings/src/utils/color/operators/lighten.d.ts +1 -1
  67. package/esm/typings/src/utils/color/operators/mixWithColor.d.ts +1 -1
  68. package/esm/typings/src/utils/color/operators/saturate.d.ts +1 -1
  69. package/esm/typings/src/utils/environment/$detectRuntimeEnvironment.d.ts +16 -0
  70. package/esm/typings/src/utils/execCommand/$execCommand.d.ts +1 -1
  71. package/esm/typings/src/utils/execCommand/$execCommands.d.ts +1 -1
  72. package/esm/typings/src/utils/files/$induceBookDownload.d.ts +2 -2
  73. package/esm/typings/src/utils/files/$induceFileDownload.d.ts +2 -2
  74. package/esm/typings/src/utils/files/ObjectUrl.d.ts +1 -1
  75. package/esm/typings/src/utils/misc/aboutPromptbookInformation.d.ts +6 -0
  76. package/esm/typings/src/utils/organization/$side_effect.d.ts +1 -1
  77. package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +25 -0
  78. package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
  79. package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
  80. package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
  81. package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
  82. package/esm/typings/src/utils/random/$randomToken.d.ts +2 -0
  83. package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +1 -1
  84. package/esm/typings/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -2
  85. package/esm/typings/src/version.d.ts +1 -1
  86. package/package.json +2 -2
  87. package/umd/index.umd.js +61 -101
  88. package/umd/index.umd.js.map +1 -1
  89. package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.d.ts +0 -89
  90. package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.test.d.ts +0 -1
  91. package/esm/typings/src/commands/_common/parseCommand.test.d.ts +0 -1
  92. package/esm/typings/src/execution/utils/logLlmCall.d.ts +0 -8
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
 
@@ -363,7 +359,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
363
359
  Your job is to provide legal advice and support to the company and its employees.<br/>
364
360
  You are knowledgeable, professional, and detail-oriented.<br/>
365
361
  <br/>
366
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
362
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
367
363
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
368
364
 
369
365
  </td></tr></table>
@@ -385,7 +381,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
385
381
  **RULE** Always ensure compliance with laws and regulations.<br/>
386
382
  **RULE** Never provide legal advice outside your area of expertise.<br/>
387
383
  **RULE** Never provide legal advice about criminal law.<br/>
388
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
384
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
389
385
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
390
386
 
391
387
  </td></tr></table>
@@ -405,7 +401,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
405
401
  **RULE** Always ensure compliance with laws and regulations.<br/>
406
402
  **RULE** Never provide legal advice outside your area of expertise.<br/>
407
403
  **RULE** Never provide legal advice about criminal law.<br/>
408
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
404
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
409
405
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
410
406
  **ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
411
407
 
@@ -456,14 +452,10 @@ Now you want to use it. There are several ways how to write your first book:
456
452
 
457
453
  We have written ai asistant in book who can help you with writing your first book.
458
454
 
459
-
460
-
461
455
  #### Your AI twin
462
456
 
463
457
  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.
464
458
 
465
-
466
-
467
459
  #### AI persona workpool
468
460
 
469
461
  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.
@@ -583,8 +575,6 @@ Join our growing community of developers and users:
583
575
 
584
576
 
585
577
 
586
-
587
-
588
578
  ## 📚 Documentation
589
579
 
590
580
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -661,8 +651,6 @@ The following glossary is used to clarify certain concepts:
661
651
 
662
652
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
663
653
 
664
-
665
-
666
654
  ### 💯 Core concepts
667
655
 
668
656
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -12,14 +12,14 @@ import { io } from 'socket.io-client';
12
12
  * @generated
13
13
  * @see https://github.com/webgptorg/book
14
14
  */
15
- const BOOK_LANGUAGE_VERSION = '1.0.0';
15
+ const BOOK_LANGUAGE_VERSION = '2.0.0';
16
16
  /**
17
17
  * The version of the Promptbook engine
18
18
  *
19
19
  * @generated
20
20
  * @see https://github.com/webgptorg/promptbook
21
21
  */
22
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-42';
22
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-44';
23
23
  /**
24
24
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
25
25
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -725,6 +725,23 @@ class Color {
725
725
  * TODO: Maybe connect with textures
726
726
  */
727
727
 
728
+ /**
729
+ * Makes color transformer which returns a grayscale version of the color
730
+ *
731
+ * @param amount from 0 to 1
732
+ *
733
+ * @public exported from `@promptbook/color`
734
+ */
735
+ function grayscale(amount) {
736
+ return ({ red, green, blue, alpha }) => {
737
+ const average = (red + green + blue) / 3;
738
+ red = Math.round(average * amount + red * (1 - amount));
739
+ green = Math.round(average * amount + green * (1 - amount));
740
+ blue = Math.round(average * amount + blue * (1 - amount));
741
+ return Color.fromValues(red, green, blue, alpha);
742
+ };
743
+ }
744
+
728
745
  /**
729
746
  * Converts HSL values to RGB values
730
747
  *
@@ -840,102 +857,6 @@ function lighten(amount) {
840
857
  * TODO: Maybe implement by mix+hsl
841
858
  */
842
859
 
843
- /**
844
- * Calculates distance between two colors
845
- *
846
- * @param color1 first color
847
- * @param color2 second color
848
- *
849
- * Note: This function is inefficient. Use colorDistanceSquared instead if possible.
850
- *
851
- * @public exported from `@promptbook/color`
852
- */
853
- /**
854
- * Calculates distance between two colors without square root
855
- *
856
- * @param color1 first color
857
- * @param color2 second color
858
- *
859
- * @public exported from `@promptbook/color`
860
- */
861
- function colorDistanceSquared(color1, color2) {
862
- const rmean = (color1.red + color2.red) / 2;
863
- const r = color1.red - color2.red;
864
- const g = color1.green - color2.green;
865
- const b = color1.blue - color2.blue;
866
- const weightR = 2 + rmean / 256;
867
- const weightG = 4.0;
868
- const weightB = 2 + (255 - rmean) / 256;
869
- const distance = weightR * r * r + weightG * g * g + weightB * b * b;
870
- return distance;
871
- }
872
-
873
- /**
874
- * Makes color transformer which finds the nearest color from the given list
875
- *
876
- * @param colors array of colors to choose from
877
- *
878
- * @public exported from `@promptbook/color`
879
- */
880
- function nearest(...colors) {
881
- return (color) => {
882
- const distances = colors.map((c) => colorDistanceSquared(c, color));
883
- const minDistance = Math.min(...distances);
884
- const minIndex = distances.indexOf(minDistance);
885
- const nearestColor = colors[minIndex];
886
- return nearestColor;
887
- };
888
- }
889
-
890
- /**
891
- * Color transformer which returns the negative color
892
- *
893
- * @public exported from `@promptbook/color`
894
- */
895
- function negative(color) {
896
- const r = 255 - color.red;
897
- const g = 255 - color.green;
898
- const b = 255 - color.blue;
899
- return Color.fromValues(r, g, b, color.alpha);
900
- }
901
-
902
- /**
903
- * Makes color transformer which finds the furthest color from the given list
904
- *
905
- * @param colors array of colors to choose from
906
- *
907
- * @public exported from `@promptbook/color`
908
- */
909
- function furthest(...colors) {
910
- return (color) => {
911
- const furthestColor = negative(nearest(...colors.map(negative))(color));
912
- return furthestColor;
913
- };
914
- }
915
- /**
916
- * Makes color transformer which finds the best text color (black or white) for the given background color
917
- *
918
- * @public exported from `@promptbook/color`
919
- */
920
- furthest(Color.get('white'), Color.from('black'));
921
-
922
- /**
923
- * Makes color transformer which returns a grayscale version of the color
924
- *
925
- * @param amount from 0 to 1
926
- *
927
- * @public exported from `@promptbook/color`
928
- */
929
- function grayscale(amount) {
930
- return ({ red, green, blue, alpha }) => {
931
- const average = (red + green + blue) / 3;
932
- red = Math.round(average * amount + red * (1 - amount));
933
- green = Math.round(average * amount + green * (1 - amount));
934
- blue = Math.round(average * amount + blue * (1 - amount));
935
- return Color.fromValues(red, green, blue, alpha);
936
- };
937
- }
938
-
939
860
  /**
940
861
  * Makes color transformer which saturate the given color
941
862
  *
@@ -1419,7 +1340,7 @@ function pricing(value) {
1419
1340
  /**
1420
1341
  * List of available Anthropic Claude models with pricing
1421
1342
  *
1422
- * Note: Synced with official API docs at 2025-08-20
1343
+ * Note: Synced with official API docs at 2025-11-19
1423
1344
  *
1424
1345
  * @see https://docs.anthropic.com/en/docs/models-overview
1425
1346
  * @public exported from `@promptbook/anthropic-claude`
@@ -1427,6 +1348,26 @@ function pricing(value) {
1427
1348
  const ANTHROPIC_CLAUDE_MODELS = exportJson({
1428
1349
  name: 'ANTHROPIC_CLAUDE_MODELS',
1429
1350
  value: [
1351
+ {
1352
+ modelVariant: 'CHAT',
1353
+ modelTitle: 'Claude Sonnet 4.5',
1354
+ modelName: 'claude-sonnet-4-5-20250929',
1355
+ modelDescription: 'Our smartest model for complex agents and coding',
1356
+ pricing: {
1357
+ prompt: pricing(`$3.00 / 1M tokens`),
1358
+ output: pricing(`$15.00 / 1M tokens`),
1359
+ },
1360
+ },
1361
+ {
1362
+ modelVariant: 'CHAT',
1363
+ modelTitle: 'Claude Haiku 4.5',
1364
+ modelName: 'claude-haiku-4-5-20251001',
1365
+ modelDescription: 'Our fastest model with near-frontier intelligence',
1366
+ pricing: {
1367
+ prompt: pricing(`$1.00 / 1M tokens`),
1368
+ output: pricing(`$5.00 / 1M tokens`),
1369
+ },
1370
+ },
1430
1371
  {
1431
1372
  modelVariant: 'CHAT',
1432
1373
  modelTitle: 'Claude Opus 4.1',
@@ -1441,7 +1382,7 @@ const ANTHROPIC_CLAUDE_MODELS = exportJson({
1441
1382
  modelVariant: 'CHAT',
1442
1383
  modelTitle: 'Claude Opus 4',
1443
1384
  modelName: 'claude-opus-4-20250514',
1444
- modelDescription: 'Previous flagship Claude model with 200K token context window. Features very high intelligence and capability with exceptional performance across reasoning, coding, and creative tasks. Maintains strong safety guardrails while delivering sophisticated outputs for complex professional applications.',
1385
+ modelDescription: 'Previous flagship Claude model with 200K token context window. Features very high intelligence and capability with exceptional performance across reasoning, coding, and creative tasks. Maintains strong safety guardrails while delivering sophisticated outputs for complex professional applications. DEPRECATED: Use Claude Opus 4.1 instead.',
1445
1386
  pricing: {
1446
1387
  prompt: pricing(`$15.00 / 1M tokens`),
1447
1388
  output: pricing(`$75.00 / 1M tokens`),
@@ -1451,7 +1392,7 @@ const ANTHROPIC_CLAUDE_MODELS = exportJson({
1451
1392
  modelVariant: 'CHAT',
1452
1393
  modelTitle: 'Claude Sonnet 4',
1453
1394
  modelName: 'claude-sonnet-4-20250514',
1454
- modelDescription: 'High-performance Claude model with exceptional reasoning capabilities and 200K token context window (1M context beta available). Features balanced intelligence and efficiency with enhanced multimodal understanding. Offers optimal performance for most enterprise applications requiring sophisticated AI capabilities.',
1395
+ modelDescription: 'High-performance Claude model with exceptional reasoning capabilities and 200K token context window (1M context beta available). Features balanced intelligence and efficiency with enhanced multimodal understanding. Offers optimal performance for most enterprise applications requiring sophisticated AI capabilities. DEPRECATED: Use Claude Sonnet 4.5 instead.',
1455
1396
  pricing: {
1456
1397
  prompt: pricing(`$3.00 / 1M tokens`),
1457
1398
  output: pricing(`$15.00 / 1M tokens`),
@@ -1592,6 +1533,7 @@ const ANTHROPIC_CLAUDE_MODELS = exportJson({
1592
1533
  /**
1593
1534
  * Generates random token
1594
1535
  *
1536
+ * Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
1595
1537
  * Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
1596
1538
  *
1597
1539
  * @private internal helper function
@@ -1601,6 +1543,7 @@ function $randomToken(randomness) {
1601
1543
  return randomBytes(randomness).toString('hex');
1602
1544
  }
1603
1545
  /**
1546
+ * TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
1604
1547
  * TODO: Maybe use nanoid instead https://github.com/ai/nanoid
1605
1548
  */
1606
1549
 
@@ -2614,6 +2557,22 @@ class CollectionError extends Error {
2614
2557
  }
2615
2558
  }
2616
2559
 
2560
+ /**
2561
+ * This error indicates error from the database
2562
+ *
2563
+ * @public exported from `@promptbook/core`
2564
+ */
2565
+ class DatabaseError extends Error {
2566
+ constructor(message) {
2567
+ super(message);
2568
+ this.name = 'DatabaseError';
2569
+ Object.setPrototypeOf(this, DatabaseError.prototype);
2570
+ }
2571
+ }
2572
+ /**
2573
+ * TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
2574
+ */
2575
+
2617
2576
  /**
2618
2577
  * This error type indicates that you try to use a feature that is not available in the current environment
2619
2578
  *
@@ -2803,6 +2762,7 @@ const PROMPTBOOK_ERRORS = {
2803
2762
  UnexpectedError,
2804
2763
  WrappedError,
2805
2764
  NotAllowed,
2765
+ DatabaseError,
2806
2766
  // TODO: [🪑]> VersionMismatchError,
2807
2767
  };
2808
2768
  /**