@promptbook/cli 0.86.0-9 → 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.
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,18 +17,12 @@
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
 
28
- <blockquote style="color: #ff8811">
29
- <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
30
- </blockquote>
31
-
32
26
  ## 📦 Package `@promptbook/cli`
33
27
 
34
28
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -114,6 +108,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
114
108
 
115
109
  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**!
116
110
 
111
+
112
+
117
113
  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!
118
114
 
119
115
  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.
@@ -150,17 +146,22 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
150
146
  <tr>
151
147
  <td><a href="https://github.com/webgptorg/book">Book language</a></td>
152
148
  <td>
153
- 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>
149
+ Book is a human-understandable markup language for writing AI applications such as chatbots, knowledge bases, agents, avarars, translators, automations and more.
150
+ <hr>
154
151
  There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
155
152
  </td>
156
153
  </tr>
157
154
  <tr>
158
155
  <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
159
- <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>
156
+ <td>
157
+ 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>
158
+ </td>
160
159
  </tr>
161
160
  <tr>
162
161
  <td><a href="https://promptbook.studio">Promptbook Studio</a></td>
163
- <td>Studio to write Books and instantly publish them as miniapps</td>
162
+ <td>
163
+ Promptbook.studio is a web-based editor and runner for book applications. It is still in the experimental MVP stage.
164
+ </td>
164
165
  </tr>
165
166
  </tbody>
166
167
  </table>
@@ -171,16 +172,21 @@ We also have a community of developers and users of **Promptbook**:
171
172
  - [Landing page `ptbk.io`](https://ptbk.io)
172
173
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
173
174
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
174
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
175
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
175
176
 
176
177
  And **Promptbook.studio** branded socials:
177
178
 
179
+
180
+
178
181
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
179
182
 
180
183
  And **Promptujeme** sub-brand:
181
184
 
182
185
  _/Subbrand for Czech clients/_
183
186
 
187
+
188
+
189
+
184
190
  - [Promptujeme.cz](https://www.promptujeme.cz/)
185
191
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
186
192
 
@@ -189,16 +195,18 @@ And **Promptbook.city** branded socials:
189
195
  _/Sub-brand for images and graphics generated via Promptbook prompting/_
190
196
 
191
197
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
192
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
198
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
199
+
200
+ ##
201
+
193
202
 
194
203
 
195
204
 
196
- ## 💙 Book language _(for prompt-engineer)_
197
205
 
198
206
 
207
+ ## 💙 The Book language
199
208
 
200
209
 
201
- ## 💙 The blueprint of book language
202
210
 
203
211
  Following is the documentation and blueprint of the Book language.
204
212
 
@@ -207,6 +215,11 @@ Following is the documentation and blueprint of the Book language.
207
215
  ```markdown
208
216
  # 🌟 My first Book
209
217
 
218
+ - BOOK VERSION 1.0.0
219
+ - URL https://promptbook.studio/my-first-book/
220
+
221
+ # Write an article
222
+
210
223
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
211
224
  - KNOWLEDGE https://ptbk.io
212
225
  - KNOWLEDGE ./promptbook.pdf
@@ -219,59 +232,31 @@ Following is the documentation and blueprint of the Book language.
219
232
  -> {article}
220
233
  ```
221
234
 
222
- ### Goals and principles of book language
235
+ ### **What:** Workflows, Tasks and Parameters
223
236
 
224
- 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.
225
-
226
- It has file with `.book.md` or `.book` extension with `UTF-8` non BOM encoding.
227
-
228
- 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.
229
-
230
- But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
237
+ - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
231
238
 
232
- ### Structure
239
+ ### **Who:** Personas
233
240
 
234
- 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.
241
+ - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
235
242
 
236
- ### Header
243
+ ### **How:** Knowledge, Instruments and Actions
237
244
 
238
- 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.
245
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
246
+ - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
247
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
239
248
 
240
- ### Parameter
249
+ ### General principles of book language
241
250
 
242
- Foo bar
251
+ 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.
243
252
 
244
- #### Parameter names
253
+ The file has `.book` extension. It uses `UTF-8` non BOM encoding.
245
254
 
246
- Reserved words:
255
+ Book has two variants: flat - which is just a prompt with no structure, and full - which has a structure with tasks, commands and prompts.
247
256
 
248
- - _each command_ like `PERSONA`, `EXPECT`, `KNOWLEDGE`, etc.
249
- - `content`
250
- - `context`
251
- - `knowledge`
252
- - `examples`
253
- - `modelName`
254
- - `currentDate`
255
-
256
- #### Parameter notation
257
-
258
- ### Task
259
-
260
- ### Task type
261
-
262
- Todo todo
263
-
264
- ### Command
265
-
266
- Todo todo
267
-
268
- ### Block
269
-
270
- Todo todo
271
-
272
- ### Return parameter
257
+ 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.
273
258
 
274
- ### Examples
259
+ But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
275
260
 
276
261
 
277
262
 
@@ -317,6 +302,7 @@ Or you can install them separately:
317
302
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Usefull templates and examples of books which can be used as a starting point
318
303
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
319
304
  - ⭐ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
305
+ - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
320
306
 
321
307
 
322
308
 
@@ -325,6 +311,11 @@ Or you can install them separately:
325
311
 
326
312
  ## 📚 Dictionary
327
313
 
314
+
315
+
316
+
317
+
318
+
328
319
  ### 📚 Dictionary
329
320
 
330
321
  The following glossary is used to clarify certain concepts:
@@ -340,6 +331,8 @@ The following glossary is used to clarify certain concepts:
340
331
  - **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.
341
332
  - **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.
342
333
 
334
+
335
+
343
336
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
344
337
 
345
338
  #### Promptbook core
@@ -400,6 +393,8 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
400
393
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
401
394
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
402
395
 
396
+
397
+
403
398
  ### Terms specific to Promptbook TypeScript implementation
404
399
 
405
400
  - Anonymous mode
@@ -479,7 +474,7 @@ See [TODO.md](./TODO.md)
479
474
  <div style="display: flex; align-items: center; gap: 20px;">
480
475
 
481
476
  <a href="https://promptbook.studio/">
482
- <img src="./other/design/promptbook-studio-logo.png" alt="Partner 3" height="100">
477
+ <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="100">
483
478
  </a>
484
479
 
485
480
  <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">