@promptbook/markdown-utils 0.86.0-8 → 0.86.5

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/markdown-utils`
33
27
 
34
28
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -60,6 +54,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
60
54
 
61
55
  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**!
62
56
 
57
+
58
+
63
59
  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!
64
60
 
65
61
  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.
@@ -117,34 +113,41 @@ We also have a community of developers and users of **Promptbook**:
117
113
  - [Landing page `ptbk.io`](https://ptbk.io)
118
114
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
119
115
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
120
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
116
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
121
117
 
122
118
  And **Promptbook.studio** branded socials:
123
119
 
120
+
121
+
124
122
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
125
123
 
124
+
125
+
126
126
  And **Promptujeme** sub-brand:
127
127
 
128
- _/Subbrand for Czech clients/_
128
+ */Subbrand for Czech clients/*
129
+
130
+
129
131
 
130
132
  - [Promptujeme.cz](https://www.promptujeme.cz/)
131
133
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
132
134
 
135
+
133
136
  And **Promptbook.city** branded socials:
134
137
 
135
- _/Sub-brand for images and graphics generated via Promptbook prompting/_
138
+ */Sub-brand for images and graphics generated via Promptbook prompting/*
136
139
 
137
140
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
138
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
141
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
139
142
 
140
143
 
141
144
 
142
- ## 💙 Book language _(for prompt-engineer)_
143
145
 
144
146
 
145
147
 
148
+ ## 💙 The Book language
149
+
146
150
 
147
- ## 💙 The blueprint of book language
148
151
 
149
152
  Following is the documentation and blueprint of the Book language.
150
153
 
@@ -153,6 +156,11 @@ Following is the documentation and blueprint of the Book language.
153
156
  ```markdown
154
157
  # 🌟 My first Book
155
158
 
159
+ - BOOK VERSION 1.0.0
160
+ - URL https://promptbook.studio/my-first-book/
161
+
162
+ # Write an article
163
+
156
164
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
157
165
  - KNOWLEDGE https://ptbk.io
158
166
  - KNOWLEDGE ./promptbook.pdf
@@ -165,59 +173,31 @@ Following is the documentation and blueprint of the Book language.
165
173
  -> {article}
166
174
  ```
167
175
 
168
- ### Goals and principles of book language
169
-
170
- 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.
171
-
172
- It has file with `.book.md` or `.book` extension with `UTF-8` non BOM encoding.
173
-
174
- 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.
175
-
176
- But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
177
-
178
- ### Structure
179
-
180
- 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.
181
-
182
- ### Header
183
-
184
- 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.
185
-
186
- ### Parameter
176
+ ### **What:** Workflows, Tasks and Parameters
187
177
 
188
- Foo bar
178
+ - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
189
179
 
190
- #### Parameter names
180
+ ### **Who:** Personas
191
181
 
192
- Reserved words:
182
+ - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
193
183
 
194
- - _each command_ like `PERSONA`, `EXPECT`, `KNOWLEDGE`, etc.
195
- - `content`
196
- - `context`
197
- - `knowledge`
198
- - `examples`
199
- - `modelName`
200
- - `currentDate`
184
+ ### **How:** Knowledge, Instruments and Actions
201
185
 
202
- #### Parameter notation
186
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
187
+ - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
188
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
203
189
 
204
- ### Task
190
+ ### General principles of book language
205
191
 
206
- ### Task type
192
+ 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.
207
193
 
208
- Todo todo
194
+ The file has `.book` extension. It uses `UTF-8` non BOM encoding.
209
195
 
210
- ### Command
196
+ Book has two variants: flat - which is just a prompt with no structure, and full - which has a structure with tasks, commands and prompts.
211
197
 
212
- Todo todo
213
-
214
- ### Block
215
-
216
- Todo todo
217
-
218
- ### Return parameter
198
+ 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.
219
199
 
220
- ### Examples
200
+ But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
221
201
 
222
202
 
223
203
 
@@ -263,6 +243,7 @@ Or you can install them separately:
263
243
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Usefull templates and examples of books which can be used as a starting point
264
244
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
265
245
  - ⭐ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
246
+ - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
266
247
 
267
248
 
268
249
 
@@ -271,6 +252,11 @@ Or you can install them separately:
271
252
 
272
253
  ## 📚 Dictionary
273
254
 
255
+
256
+
257
+
258
+
259
+
274
260
  ### 📚 Dictionary
275
261
 
276
262
  The following glossary is used to clarify certain concepts:
@@ -286,6 +272,8 @@ The following glossary is used to clarify certain concepts:
286
272
  - **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.
287
273
  - **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.
288
274
 
275
+
276
+
289
277
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
290
278
 
291
279
  #### Promptbook core
@@ -346,6 +334,8 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
346
334
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
347
335
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
348
336
 
337
+
338
+
349
339
  ### Terms specific to Promptbook TypeScript implementation
350
340
 
351
341
  - Anonymous mode
@@ -425,7 +415,7 @@ See [TODO.md](./TODO.md)
425
415
  <div style="display: flex; align-items: center; gap: 20px;">
426
416
 
427
417
  <a href="https://promptbook.studio/">
428
- <img src="./other/design/promptbook-studio-logo.png" alt="Partner 3" height="100">
418
+ <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="100">
429
419
  </a>
430
420
 
431
421
  <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
package/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- var PROMPTBOOK_ENGINE_VERSION = '0.86.0-7';
28
+ var PROMPTBOOK_ENGINE_VERSION = '0.86.5';
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
@@ -523,7 +523,7 @@ function prettifyMarkdown(content) {
523
523
  * Converts promptbook in JSON format to string format
524
524
  *
525
525
  * @deprecated TODO: [🥍][🧠] Backup original files in `PipelineJson` same as in Promptbook.studio
526
- * @param pipelineJson Promptbook in JSON format (.book.json)
526
+ * @param pipelineJson Promptbook in JSON format (.bookc)
527
527
  * @returns Promptbook in string format (.book.md)
528
528
  * @public exported from `@promptbook/core`
529
529
  */