promptbook 0.86.0-8 → 0.86.6

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 (2) hide show
  1. package/README.md +54 -55
  2. package/package.json +27 -27
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
 
7
7
 
8
- [![NPM Version of ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
9
- [![Quality of package ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
8
+ [![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)
9
+ [![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)
10
10
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
11
11
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
12
12
 
@@ -17,11 +17,9 @@
17
17
  ## 🌟 New Features
18
18
 
19
19
  - 📂 We have plugin for [VSCode](https://github.com/webgptorg/book-extension) to support `.book` file extension
20
+ - 🐳 Available [Docker image](https://hub.docker.com/r/hejny/promptbook/)
20
21
  - 💫 Support of [`o3-mini` model by OpenAI](https://openai.com/index/openai-o3-mini/)
21
22
  - 🐋 **Support of [DeepSeek models](https://www.npmjs.com/package/@promptbook/deepseek)**
22
- - 💙 Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
23
- - 🖤 Run books from CLI - `npx ptbk run path/to/your/book`
24
- - 📚 Support of `.docx`, `.doc` and `.pdf` documents as knowledge
25
23
 
26
24
 
27
25
 
@@ -36,6 +34,8 @@
36
34
 
37
35
  During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
38
36
 
37
+
38
+
39
39
  It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
40
40
 
41
41
  The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
@@ -72,17 +72,22 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
72
72
  <tr>
73
73
  <td><a href="https://github.com/webgptorg/book">Book language</a></td>
74
74
  <td>
75
- Book is a markdown-like language to define core entities like personas, knowledge, tasks,.... It is designed to be understandable by non-programmers and non-technical people<hr>
75
+ Book is a human-understandable markup language for writing AI applications such as chatbots, knowledge bases, agents, avarars, translators, automations and more.
76
+ <hr>
76
77
  There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
77
78
  </td>
78
79
  </tr>
79
80
  <tr>
80
81
  <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
81
- <td>Promptbook implementation in TypeScript released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a> and <a href="https://hub.docker.com/r/hejny/promptbook">Docker HUB</a></td>
82
+ <td>
83
+ Promptbook engine can run applications written in Book language. It is released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a> and <a href="https://hub.docker.com/r/hejny/promptbook">Docker HUB</a>
84
+ </td>
82
85
  </tr>
83
86
  <tr>
84
87
  <td><a href="https://promptbook.studio">Promptbook Studio</a></td>
85
- <td>Studio to write Books and instantly publish them as miniapps</td>
88
+ <td>
89
+ Promptbook.studio is a web-based editor and runner for book applications. It is still in the experimental MVP stage.
90
+ </td>
86
91
  </tr>
87
92
  </tbody>
88
93
  </table>
@@ -93,16 +98,21 @@ We also have a community of developers and users of **Promptbook**:
93
98
  - [Landing page `ptbk.io`](https://ptbk.io)
94
99
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
95
100
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
96
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
101
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
97
102
 
98
103
  And **Promptbook.studio** branded socials:
99
104
 
105
+
106
+
100
107
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
101
108
 
102
109
  And **Promptujeme** sub-brand:
103
110
 
104
111
  _/Subbrand for Czech clients/_
105
112
 
113
+
114
+
115
+
106
116
  - [Promptujeme.cz](https://www.promptujeme.cz/)
107
117
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
108
118
 
@@ -111,16 +121,18 @@ And **Promptbook.city** branded socials:
111
121
  _/Sub-brand for images and graphics generated via Promptbook prompting/_
112
122
 
113
123
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
114
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
124
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
125
+
126
+ ##
127
+
115
128
 
116
129
 
117
130
 
118
- ## 💙 Book language _(for prompt-engineer)_
119
131
 
120
132
 
133
+ ## 💙 The Book language
121
134
 
122
135
 
123
- ## 💙 The blueprint of book language
124
136
 
125
137
  Following is the documentation and blueprint of the Book language.
126
138
 
@@ -129,6 +141,11 @@ Following is the documentation and blueprint of the Book language.
129
141
  ```markdown
130
142
  # 🌟 My first Book
131
143
 
144
+ - BOOK VERSION 1.0.0
145
+ - URL https://promptbook.studio/my-first-book/
146
+
147
+ # Write an article
148
+
132
149
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
133
150
  - KNOWLEDGE https://ptbk.io
134
151
  - KNOWLEDGE ./promptbook.pdf
@@ -141,59 +158,31 @@ Following is the documentation and blueprint of the Book language.
141
158
  -> {article}
142
159
  ```
143
160
 
144
- ### Goals and principles of book language
145
-
146
- File is designed to be easy to read and write. It is strict subset of markdown. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
147
-
148
- It has file with `.book.md` or `.book` extension with `UTF-8` non BOM encoding.
149
-
150
- As it is source code, it can leverage all the features of version control systems like git and does not suffer from the problems of binary formats, proprietary formats, or no-code solutions.
151
-
152
- But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
153
-
154
- ### Structure
155
-
156
- Book is divided into sections. Each section starts with heading. The language itself is not sensitive to the type of heading _(`h1`, `h2`, `h3`, ...)_ but it is recommended to use `h1` for header section and `h2` for other sections.
157
-
158
- ### Header
159
-
160
- Header is the first section of the book. It contains metadata about the pipeline. It is recommended to use `h1` heading for header section but it is not required.
161
+ ### **What:** Workflows, Tasks and Parameters
161
162
 
162
- ### Parameter
163
+ - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
163
164
 
164
- Foo bar
165
+ ### **Who:** Personas
165
166
 
166
- #### Parameter names
167
+ - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
167
168
 
168
- Reserved words:
169
+ ### **How:** Knowledge, Instruments and Actions
169
170
 
170
- - _each command_ like `PERSONA`, `EXPECT`, `KNOWLEDGE`, etc.
171
- - `content`
172
- - `context`
173
- - `knowledge`
174
- - `examples`
175
- - `modelName`
176
- - `currentDate`
171
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
172
+ - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
173
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
177
174
 
178
- #### Parameter notation
175
+ ### General principles of book language
179
176
 
180
- ### Task
177
+ Book language is based on markdown. It is subset of markdown. It is designed to be easy to read and write. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
181
178
 
182
- ### Task type
179
+ The file has `.book` extension. It uses `UTF-8` non BOM encoding.
183
180
 
184
- Todo todo
181
+ Book has two variants: flat - which is just a prompt with no structure, and full - which has a structure with tasks, commands and prompts.
185
182
 
186
- ### Command
187
-
188
- Todo todo
189
-
190
- ### Block
191
-
192
- Todo todo
193
-
194
- ### Return parameter
183
+ As it is source code, it can leverage all the features of version control systems like git and does not suffer from the problems of binary formats, proprietary formats, or no-code solutions.
195
184
 
196
- ### Examples
185
+ But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
197
186
 
198
187
 
199
188
 
@@ -239,6 +228,7 @@ Or you can install them separately:
239
228
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Usefull templates and examples of books which can be used as a starting point
240
229
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
241
230
  - ⭐ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
231
+ - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
242
232
 
243
233
 
244
234
 
@@ -247,6 +237,11 @@ Or you can install them separately:
247
237
 
248
238
  ## 📚 Dictionary
249
239
 
240
+
241
+
242
+
243
+
244
+
250
245
  ### 📚 Dictionary
251
246
 
252
247
  The following glossary is used to clarify certain concepts:
@@ -262,6 +257,8 @@ The following glossary is used to clarify certain concepts:
262
257
  - **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
263
258
  - **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
264
259
 
260
+
261
+
265
262
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
266
263
 
267
264
  #### Promptbook core
@@ -322,6 +319,8 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
322
319
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
323
320
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
324
321
 
322
+
323
+
325
324
  ### Terms specific to Promptbook TypeScript implementation
326
325
 
327
326
  - Anonymous mode
@@ -401,7 +400,7 @@ See [TODO.md](./TODO.md)
401
400
  <div style="display: flex; align-items: center; gap: 20px;">
402
401
 
403
402
  <a href="https://promptbook.studio/">
404
- <img src="./other/design/promptbook-studio-logo.png" alt="Partner 3" height="100">
403
+ <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="100">
405
404
  </a>
406
405
 
407
406
  <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptbook",
3
- "version": "0.86.0-8",
3
+ "version": "0.86.6",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -44,33 +44,33 @@
44
44
  },
45
45
  "homepage": "https://ptbk.io/",
46
46
  "peerDependencies": {
47
- "@promptbook/core": "0.86.0-8"
47
+ "@promptbook/core": "0.86.6"
48
48
  },
49
49
  "dependencies": {
50
- "@promptbook/anthropic-claude": "0.86.0-8",
51
- "@promptbook/azure-openai": "0.86.0-8",
52
- "@promptbook/browser": "0.86.0-8",
53
- "@promptbook/cli": "0.86.0-8",
54
- "@promptbook/core": "0.86.0-8",
55
- "@promptbook/deepseek": "0.86.0-8",
56
- "@promptbook/documents": "0.86.0-8",
57
- "@promptbook/editable": "0.86.0-8",
58
- "@promptbook/execute-javascript": "0.86.0-8",
59
- "@promptbook/fake-llm": "0.86.0-8",
60
- "@promptbook/google": "0.86.0-8",
61
- "@promptbook/legacy-documents": "0.86.0-8",
62
- "@promptbook/markdown-utils": "0.86.0-8",
63
- "@promptbook/markitdown": "0.86.0-8",
64
- "@promptbook/node": "0.86.0-8",
65
- "@promptbook/openai": "0.86.0-8",
66
- "@promptbook/pdf": "0.86.0-8",
67
- "@promptbook/remote-client": "0.86.0-8",
68
- "@promptbook/remote-server": "0.86.0-8",
69
- "@promptbook/templates": "0.86.0-8",
70
- "@promptbook/types": "0.86.0-8",
71
- "@promptbook/utils": "0.86.0-8",
72
- "@promptbook/vercel": "0.86.0-8",
73
- "@promptbook/website-crawler": "0.86.0-8",
74
- "@promptbook/wizzard": "0.86.0-8"
50
+ "@promptbook/anthropic-claude": "0.86.6",
51
+ "@promptbook/azure-openai": "0.86.6",
52
+ "@promptbook/browser": "0.86.6",
53
+ "@promptbook/cli": "0.86.6",
54
+ "@promptbook/core": "0.86.6",
55
+ "@promptbook/deepseek": "0.86.6",
56
+ "@promptbook/documents": "0.86.6",
57
+ "@promptbook/editable": "0.86.6",
58
+ "@promptbook/execute-javascript": "0.86.6",
59
+ "@promptbook/fake-llm": "0.86.6",
60
+ "@promptbook/google": "0.86.6",
61
+ "@promptbook/legacy-documents": "0.86.6",
62
+ "@promptbook/markdown-utils": "0.86.6",
63
+ "@promptbook/markitdown": "0.86.6",
64
+ "@promptbook/node": "0.86.6",
65
+ "@promptbook/openai": "0.86.6",
66
+ "@promptbook/pdf": "0.86.6",
67
+ "@promptbook/remote-client": "0.86.6",
68
+ "@promptbook/remote-server": "0.86.6",
69
+ "@promptbook/templates": "0.86.6",
70
+ "@promptbook/types": "0.86.6",
71
+ "@promptbook/utils": "0.86.6",
72
+ "@promptbook/vercel": "0.86.6",
73
+ "@promptbook/website-crawler": "0.86.6",
74
+ "@promptbook/wizzard": "0.86.6"
75
75
  }
76
76
  }