@promptbook/documents 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.
- 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/remote-server/startAgentServer.d.ts +3 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -0
- 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
|
|
|
@@ -119,7 +115,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
119
115
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
120
116
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
121
117
|
<br/>
|
|
122
|
-
**KNOWLEDGE**
|
|
118
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
123
119
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
124
120
|
|
|
125
121
|
</td></tr></table>
|
|
@@ -141,7 +137,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
141
137
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
142
138
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
143
139
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
144
|
-
**KNOWLEDGE**
|
|
140
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
145
141
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
146
142
|
|
|
147
143
|
</td></tr></table>
|
|
@@ -161,7 +157,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
161
157
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
162
158
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
163
159
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
164
|
-
**KNOWLEDGE**
|
|
160
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
165
161
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
166
162
|
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
167
163
|
|
|
@@ -212,14 +208,10 @@ Now you want to use it. There are several ways how to write your first book:
|
|
|
212
208
|
|
|
213
209
|
We have written ai asistant in book who can help you with writing your first book.
|
|
214
210
|
|
|
215
|
-
|
|
216
|
-
|
|
217
211
|
#### Your AI twin
|
|
218
212
|
|
|
219
213
|
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.
|
|
220
214
|
|
|
221
|
-
|
|
222
|
-
|
|
223
215
|
#### AI persona workpool
|
|
224
216
|
|
|
225
217
|
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.
|
|
@@ -339,8 +331,6 @@ Join our growing community of developers and users:
|
|
|
339
331
|
|
|
340
332
|
|
|
341
333
|
|
|
342
|
-
|
|
343
|
-
|
|
344
334
|
## ๐ Documentation
|
|
345
335
|
|
|
346
336
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -417,8 +407,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
417
407
|
|
|
418
408
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
419
409
|
|
|
420
|
-
|
|
421
|
-
|
|
422
410
|
### ๐ฏ Core concepts
|
|
423
411
|
|
|
424
412
|
- [๐ Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -19,14 +19,14 @@ import { parse, unparse } from 'papaparse';
|
|
|
19
19
|
* @generated
|
|
20
20
|
* @see https://github.com/webgptorg/book
|
|
21
21
|
*/
|
|
22
|
-
const BOOK_LANGUAGE_VERSION = '
|
|
22
|
+
const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
23
23
|
/**
|
|
24
24
|
* The version of the Promptbook engine
|
|
25
25
|
*
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-45';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [๐] Ignore a discrepancy between file name and entity name
|
|
@@ -3131,6 +3131,7 @@ function $randomToken(randomness) {
|
|
|
3131
3131
|
return randomBytes(randomness).toString('hex');
|
|
3132
3132
|
}
|
|
3133
3133
|
/**
|
|
3134
|
+
* TODO: [๐คถ] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
3134
3135
|
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
3135
3136
|
*/
|
|
3136
3137
|
|
|
@@ -3261,6 +3262,9 @@ class DatabaseError extends Error {
|
|
|
3261
3262
|
Object.setPrototypeOf(this, DatabaseError.prototype);
|
|
3262
3263
|
}
|
|
3263
3264
|
}
|
|
3265
|
+
/**
|
|
3266
|
+
* TODO: !!!! Explain that NotFoundError (!!! and other specific errors) has priority over DatabaseError in some contexts
|
|
3267
|
+
*/
|
|
3264
3268
|
|
|
3265
3269
|
/**
|
|
3266
3270
|
* This error occurs when some expectation is not met in the execution of the pipeline
|
|
@@ -4202,6 +4206,7 @@ function joinLlmExecutionTools(title, ...llmExecutionTools) {
|
|
|
4202
4206
|
return new MultipleLlmExecutionTools(title || 'Multiple LLM Providers joined by `joinLlmExecutionTools`', ...llmExecutionTools);
|
|
4203
4207
|
}
|
|
4204
4208
|
/**
|
|
4209
|
+
* TODO: [๐] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
|
|
4205
4210
|
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools
|
|
4206
4211
|
*/
|
|
4207
4212
|
|
|
@@ -4218,6 +4223,7 @@ function getSingleLlmExecutionTools(oneOrMoreLlmExecutionTools) {
|
|
|
4218
4223
|
return llmTools;
|
|
4219
4224
|
}
|
|
4220
4225
|
/**
|
|
4226
|
+
* TODO: [๐] `getSingleLlmExecutionTools` vs `joinLlmExecutionTools` - explain difference or pick one
|
|
4221
4227
|
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools
|
|
4222
4228
|
*/
|
|
4223
4229
|
|