@promptbook/node 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.
- package/README.md +6 -18
- package/esm/index.es.js +8 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/types.index.d.ts +8 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +5 -0
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +2 -28
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +61 -9
- package/esm/typings/src/errors/DatabaseError.d.ts +3 -0
- package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +2 -1
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +19 -1
- package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
- package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +5 -2
- package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
- package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
- package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
- package/esm/typings/src/utils/random/$randomToken.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +8 -2
- package/umd/index.umd.js.map +1 -1
- 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
|
-
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
13
|
+
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
14
14
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
15
15
|
[](https://github.com/webgptorg/promptbook/actions/workflows/test-books.yml)
|
|
16
16
|
[](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
|
-
-
|
|
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
|
|
|
@@ -174,7 +170,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
174
170
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
175
171
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
176
172
|
<br/>
|
|
177
|
-
**KNOWLEDGE**
|
|
173
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
178
174
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
179
175
|
|
|
180
176
|
</td></tr></table>
|
|
@@ -196,7 +192,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
196
192
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
197
193
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
198
194
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
199
|
-
**KNOWLEDGE**
|
|
195
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
200
196
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
201
197
|
|
|
202
198
|
</td></tr></table>
|
|
@@ -216,7 +212,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
216
212
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
217
213
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
218
214
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
219
|
-
**KNOWLEDGE**
|
|
215
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
220
216
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
221
217
|
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
222
218
|
|
|
@@ -267,14 +263,10 @@ Now you want to use it. There are several ways how to write your first book:
|
|
|
267
263
|
|
|
268
264
|
We have written ai asistant in book who can help you with writing your first book.
|
|
269
265
|
|
|
270
|
-
|
|
271
|
-
|
|
272
266
|
#### Your AI twin
|
|
273
267
|
|
|
274
268
|
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.
|
|
275
269
|
|
|
276
|
-
|
|
277
|
-
|
|
278
270
|
#### AI persona workpool
|
|
279
271
|
|
|
280
272
|
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.
|
|
@@ -394,8 +386,6 @@ Join our growing community of developers and users:
|
|
|
394
386
|
|
|
395
387
|
|
|
396
388
|
|
|
397
|
-
|
|
398
|
-
|
|
399
389
|
## ๐ Documentation
|
|
400
390
|
|
|
401
391
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -472,8 +462,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
472
462
|
|
|
473
463
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
474
464
|
|
|
475
|
-
|
|
476
|
-
|
|
477
465
|
### ๐ฏ Core concepts
|
|
478
466
|
|
|
479
467
|
- [๐ Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -21,14 +21,14 @@ import * as dotenv from 'dotenv';
|
|
|
21
21
|
* @generated
|
|
22
22
|
* @see https://github.com/webgptorg/book
|
|
23
23
|
*/
|
|
24
|
-
const BOOK_LANGUAGE_VERSION = '
|
|
24
|
+
const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
25
25
|
/**
|
|
26
26
|
* The version of the Promptbook engine
|
|
27
27
|
*
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-44';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [๐] Ignore a discrepancy between file name and entity name
|
|
@@ -2626,6 +2626,9 @@ class DatabaseError extends Error {
|
|
|
2626
2626
|
Object.setPrototypeOf(this, DatabaseError.prototype);
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
|
|
2631
|
+
*/
|
|
2629
2632
|
|
|
2630
2633
|
/**
|
|
2631
2634
|
* This error type indicates that you try to use a feature that is not available in the current environment
|
|
@@ -2731,6 +2734,7 @@ function $randomToken(randomness) {
|
|
|
2731
2734
|
return randomBytes(randomness).toString('hex');
|
|
2732
2735
|
}
|
|
2733
2736
|
/**
|
|
2737
|
+
* TODO: [๐คถ] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
2734
2738
|
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2735
2739
|
*/
|
|
2736
2740
|
|
|
@@ -4091,6 +4095,7 @@ function joinLlmExecutionTools(title, ...llmExecutionTools) {
|
|
|
4091
4095
|
return new MultipleLlmExecutionTools(title || 'Multiple LLM Providers joined by `joinLlmExecutionTools`', ...llmExecutionTools);
|
|
4092
4096
|
}
|
|
4093
4097
|
/**
|
|
4098
|
+
* TODO: [๐] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
|
|
4094
4099
|
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools
|
|
4095
4100
|
*/
|
|
4096
4101
|
|
|
@@ -4107,6 +4112,7 @@ function getSingleLlmExecutionTools(oneOrMoreLlmExecutionTools) {
|
|
|
4107
4112
|
return llmTools;
|
|
4108
4113
|
}
|
|
4109
4114
|
/**
|
|
4115
|
+
* TODO: [๐] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
|
|
4110
4116
|
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools
|
|
4111
4117
|
*/
|
|
4112
4118
|
|