@promptbook/components 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 +4 -4
- 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 +1 -1
- package/umd/index.umd.js +4 -4
- 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
|
|
|
@@ -259,7 +255,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
259
255
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
260
256
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
261
257
|
<br/>
|
|
262
|
-
**KNOWLEDGE**
|
|
258
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
263
259
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
264
260
|
|
|
265
261
|
</td></tr></table>
|
|
@@ -281,7 +277,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
281
277
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
282
278
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
283
279
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
284
|
-
**KNOWLEDGE**
|
|
280
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
285
281
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
286
282
|
|
|
287
283
|
</td></tr></table>
|
|
@@ -301,7 +297,7 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
301
297
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
302
298
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
303
299
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
304
|
-
**KNOWLEDGE**
|
|
300
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
305
301
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
306
302
|
**ACTION** When a user asks about an issue that could be treated as a crime, notify legal@company.com.<br/>
|
|
307
303
|
|
|
@@ -352,14 +348,10 @@ Now you want to use it. There are several ways how to write your first book:
|
|
|
352
348
|
|
|
353
349
|
We have written ai asistant in book who can help you with writing your first book.
|
|
354
350
|
|
|
355
|
-
|
|
356
|
-
|
|
357
351
|
#### Your AI twin
|
|
358
352
|
|
|
359
353
|
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.
|
|
360
354
|
|
|
361
|
-
|
|
362
|
-
|
|
363
355
|
#### AI persona workpool
|
|
364
356
|
|
|
365
357
|
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.
|
|
@@ -479,8 +471,6 @@ Join our growing community of developers and users:
|
|
|
479
471
|
|
|
480
472
|
|
|
481
473
|
|
|
482
|
-
|
|
483
|
-
|
|
484
474
|
## ๐ Documentation
|
|
485
475
|
|
|
486
476
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -557,8 +547,6 @@ The following glossary is used to clarify certain concepts:
|
|
|
557
547
|
|
|
558
548
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
559
549
|
|
|
560
|
-
|
|
561
|
-
|
|
562
550
|
### ๐ฏ Core concepts
|
|
563
551
|
|
|
564
552
|
- [๐ Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -18,14 +18,14 @@ import QRCode from 'qrcode';
|
|
|
18
18
|
* @generated
|
|
19
19
|
* @see https://github.com/webgptorg/book
|
|
20
20
|
*/
|
|
21
|
-
const BOOK_LANGUAGE_VERSION = '
|
|
21
|
+
const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
22
22
|
/**
|
|
23
23
|
* The version of the Promptbook engine
|
|
24
24
|
*
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-44';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [๐] Ignore a discrepancy between file name and entity name
|
|
@@ -5063,10 +5063,10 @@ styleInject(css_248z$2);
|
|
|
5063
5063
|
* @public exported from `@promptbook/components`
|
|
5064
5064
|
*/
|
|
5065
5065
|
function AvatarProfile(props) {
|
|
5066
|
-
const { agent, agentSource, className } = props;
|
|
5066
|
+
const { agent, agentSource, className, style } = props;
|
|
5067
5067
|
const { agentName, personaDescription, meta } = agent;
|
|
5068
5068
|
const [isBookEditorVisible, setIsBookEditorVisible] = useState(false);
|
|
5069
|
-
return (jsxs(Fragment, { children: [jsxs("div", { className: classNames(styles$1.AvatarProfile, className), children: [jsx("img", { src: meta.image, alt: agentName || '', className: styles$1.Avatar }), jsxs("div", { className: styles$1.AgentInfo, children: [jsx("h2", { className: styles$1.AgentName, children: agentName }), jsx("p", { className: styles$1.AgentDescription, children: personaDescription }), agentSource !== undefined && (jsx("button", { className: styles$1.viewSourceButton, onClick: (event) => {
|
|
5069
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: classNames(styles$1.AvatarProfile, className), style: style, children: [jsx("img", { src: meta.image, alt: agentName || '', className: styles$1.Avatar }), jsxs("div", { className: styles$1.AgentInfo, children: [jsx("h2", { className: styles$1.AgentName, children: agentName }), jsx("p", { className: styles$1.AgentDescription, children: personaDescription }), agentSource !== undefined && (jsx("button", { className: styles$1.viewSourceButton, onClick: (event) => {
|
|
5070
5070
|
event.stopPropagation();
|
|
5071
5071
|
setIsBookEditorVisible(true);
|
|
5072
5072
|
}, children: "View Source" }))] })] }), isBookEditorVisible && (jsx(Modal, { onClose: () => {
|