@promptbook/remote-server 0.103.0-43 โ†’ 0.103.0-45

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 (29) hide show
  1. package/README.md +6 -18
  2. package/esm/index.es.js +14 -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/remote-server/startAgentServer.d.ts +3 -0
  16. package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -0
  17. package/esm/typings/src/types/typeAliases.d.ts +19 -1
  18. package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
  19. package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +5 -2
  20. package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
  21. package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
  22. package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
  23. package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
  24. package/esm/typings/src/utils/random/$randomToken.d.ts +1 -0
  25. package/esm/typings/src/version.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/umd/index.umd.js +14 -2
  28. package/umd/index.umd.js.map +1 -1
  29. 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
 
@@ -161,7 +157,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
161
157
  Your job is to provide legal advice and support to the company and its employees.<br/>
162
158
  You are knowledgeable, professional, and detail-oriented.<br/>
163
159
  <br/>
164
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
160
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
165
161
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
166
162
 
167
163
  </td></tr></table>
@@ -183,7 +179,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
183
179
  **RULE** Always ensure compliance with laws and regulations.<br/>
184
180
  **RULE** Never provide legal advice outside your area of expertise.<br/>
185
181
  **RULE** Never provide legal advice about criminal law.<br/>
186
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
182
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
187
183
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
188
184
 
189
185
  </td></tr></table>
@@ -203,7 +199,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
203
199
  **RULE** Always ensure compliance with laws and regulations.<br/>
204
200
  **RULE** Never provide legal advice outside your area of expertise.<br/>
205
201
  **RULE** Never provide legal advice about criminal law.<br/>
206
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
202
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
207
203
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
208
204
  **ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
209
205
 
@@ -254,14 +250,10 @@ Now you want to use it. There are several ways how to write your first book:
254
250
 
255
251
  We have written ai asistant in book who can help you with writing your first book.
256
252
 
257
-
258
-
259
253
  #### Your AI twin
260
254
 
261
255
  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.
262
256
 
263
-
264
-
265
257
  #### AI persona workpool
266
258
 
267
259
  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.
@@ -381,8 +373,6 @@ Join our growing community of developers and users:
381
373
 
382
374
 
383
375
 
384
-
385
-
386
376
  ## ๐Ÿ“š Documentation
387
377
 
388
378
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -459,8 +449,6 @@ The following glossary is used to clarify certain concepts:
459
449
 
460
450
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
461
451
 
462
-
463
-
464
452
  ### ๐Ÿ’ฏ Core concepts
465
453
 
466
454
  - [๐Ÿ“š Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -26,14 +26,14 @@ import { renderToStaticMarkup } from 'react-dom/server';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/book
28
28
  */
29
- const BOOK_LANGUAGE_VERSION = '1.0.0';
29
+ const BOOK_LANGUAGE_VERSION = '2.0.0';
30
30
  /**
31
31
  * The version of the Promptbook engine
32
32
  *
33
33
  * @generated
34
34
  * @see https://github.com/webgptorg/promptbook
35
35
  */
36
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-43';
36
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-45';
37
37
  /**
38
38
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
39
39
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -1301,12 +1301,17 @@ function $execCommand(options) {
1301
1301
  async function startAgentServer(options) {
1302
1302
  const { port = 4440 } = options;
1303
1303
  // TODO: !!!! [๐ŸŒ•]
1304
+ console.trace(`!!! Starting agents server on port ${port}...`);
1305
+ console.log(`!!! cwd`, process.cwd());
1304
1306
  await $execCommand({
1305
1307
  cwd: './apps/agents-server',
1306
1308
  command: `next dev --port ${port} `,
1307
1309
  isVerbose: true,
1308
1310
  });
1309
1311
  }
1312
+ /**
1313
+ * Note: [๐ŸŸข] Code in this file should never be never released in packages that could be imported into browser environment
1314
+ */
1310
1315
 
1311
1316
  /**
1312
1317
  * Make error report URL for the given error
@@ -1450,6 +1455,7 @@ function $randomToken(randomness) {
1450
1455
  return randomBytes(randomness).toString('hex');
1451
1456
  }
1452
1457
  /**
1458
+ * TODO: [๐Ÿคถ] Maybe export through `@promptbook/utils` or `@promptbook/random` package
1453
1459
  * TODO: Maybe use nanoid instead https://github.com/ai/nanoid
1454
1460
  */
1455
1461
 
@@ -1527,6 +1533,9 @@ class DatabaseError extends Error {
1527
1533
  Object.setPrototypeOf(this, DatabaseError.prototype);
1528
1534
  }
1529
1535
  }
1536
+ /**
1537
+ * TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
1538
+ */
1530
1539
 
1531
1540
  /**
1532
1541
  * This error occurs when some expectation is not met in the execution of the pipeline
@@ -3982,6 +3991,7 @@ function joinLlmExecutionTools(title, ...llmExecutionTools) {
3982
3991
  return new MultipleLlmExecutionTools(title || 'Multiple LLM Providers joined by `joinLlmExecutionTools`', ...llmExecutionTools);
3983
3992
  }
3984
3993
  /**
3994
+ * TODO: [๐Ÿ™†] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
3985
3995
  * TODO: [๐Ÿ‘ทโ€โ™‚๏ธ] @@@ Manual about construction of llmTools
3986
3996
  */
3987
3997
 
@@ -3998,6 +4008,7 @@ function getSingleLlmExecutionTools(oneOrMoreLlmExecutionTools) {
3998
4008
  return llmTools;
3999
4009
  }
4000
4010
  /**
4011
+ * TODO: [๐Ÿ™†] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
4001
4012
  * TODO: [๐Ÿ‘ทโ€โ™‚๏ธ] @@@ Manual about construction of llmTools
4002
4013
  */
4003
4014
 
@@ -9623,6 +9634,7 @@ function startRemoteServer(options) {
9623
9634
  * TODO: [๐Ÿƒ] Pass here some security token to prevent malitious usage and/or DDoS
9624
9635
  * TODO: [0] Set unavailable models as undefined in `RemoteLlmExecutionTools` NOT throw error here
9625
9636
  * TODO: Allow to constrain anonymous mode for specific models / providers
9637
+ * Note: [๐ŸŸข] Code in this file should never be never released in packages that could be imported into browser environment
9626
9638
  */
9627
9639
 
9628
9640
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION, startAgentServer, startRemoteServer };