ptbk 0.92.0 → 0.93.0

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 +139 -83
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->
2
2
 
3
- # ✨ Promptbook
3
+ # ✨ Promptbook: AI apps in plain Language
4
+
5
+ Write AI applications using plain human language across multiple models and platforms.
4
6
 
5
7
 
6
8
 
@@ -8,18 +10,18 @@
8
10
  [![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
11
  [![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
12
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
13
+ [![Build Status](https://github.com/webgptorg/promptbook/actions/workflows/ci.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions)
14
+ [![Coverage Status](https://coveralls.io/repos/github/webgptorg/promptbook/badge.svg?branch=main)](https://coveralls.io/github/webgptorg/promptbook?branch=main)
11
15
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
12
16
 
13
17
 
14
18
 
15
-
16
-
17
19
  ## 🌟 New Features
18
20
 
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/)
21
- - 💫 Support of [`o3-mini` model by OpenAI](https://openai.com/index/openai-o3-mini/)
22
- - 🐋 **Support of [DeepSeek models](https://www.npmjs.com/package/@promptbook/deepseek)**
21
+ - 💡 VS Code support for `.book` files with syntax highlighting and IntelliSense
22
+ - 🐳 Official Docker image (`hejny/promptbook`) for seamless containerized usage
23
+ - 🔥 Native support for OpenAI `o3-mini`, GPT-4 and other leading LLMs
24
+ - 🔍 DeepSeek integration for advanced knowledge search
23
25
 
24
26
 
25
27
 
@@ -103,65 +105,92 @@ Hello world examples:
103
105
  - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
104
106
  - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
105
107
 
108
+ ### 🌐 Community & Social Media
106
109
 
110
+ Join our growing community of developers and users:
107
111
 
108
- We also have a community of developers and users of **Promptbook**:
109
-
110
- - [Discord community](https://discord.gg/x3QWNaa89N)
111
- - [Landing page `ptbk.io`](https://ptbk.io)
112
- - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
113
- - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
114
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
115
-
116
- And **Promptbook.studio** branded socials:
117
-
118
-
119
-
120
- - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
121
-
122
- And **Promptujeme** sub-brand:
123
-
124
- _/Subbrand for Czech clients/_
125
-
126
-
112
+ <table>
113
+ <thead>
114
+ <tr>
115
+ <th>Platform</th>
116
+ <th>Description</th>
117
+ </tr>
118
+ </thead>
119
+ <tbody>
120
+ <tr>
121
+ <td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
122
+ <td>Join our active developer community for discussions and support</td>
123
+ </tr>
124
+ <tr>
125
+ <td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
126
+ <td>Technical discussions, feature requests, and community Q&A</td>
127
+ </tr>
128
+ <tr>
129
+ <td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
130
+ <td>Professional updates and industry insights</td>
131
+ </tr>
132
+ <tr>
133
+ <td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
134
+ <td>General announcements and community engagement</td>
135
+ </tr>
136
+ <tr>
137
+ <td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
138
+ <td>Official landing page with project information</td>
139
+ </tr>
140
+ </tbody>
141
+ </table>
127
142
 
143
+ ### 🖼️ Product & Brand Channels
128
144
 
129
- - [Promptujeme.cz](https://www.promptujeme.cz/)
130
- - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
145
+ #### Promptbook.studio
131
146
 
132
- And **Promptbook.city** branded socials:
147
+ <table>
148
+ <tbody>
149
+ <tr>
150
+ <td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
151
+ <td>Visual updates, UI showcases, and design inspiration</td>
152
+ </tr>
153
+
154
+ </tbody>
155
+ </table>
133
156
 
134
- _/Sub-brand for images and graphics generated via Promptbook prompting/_
135
157
 
136
- - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
137
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
138
158
 
139
159
 
140
160
 
141
161
 
162
+ ## 📘 Book Language Blueprint
142
163
 
164
+ _A concise, Markdown-based DSL for crafting AI workflows and automations._
143
165
 
144
- ## 💙 The Book language
166
+ ---
145
167
 
168
+ ### 📑 Table of Contents
146
169
 
170
+ - [Introduction](#introduction)
171
+ - [Example](#example)
172
+ - [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
173
+ - [2. Who: Personas](#2-who-personas)
174
+ - [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
175
+ - [General Principles](#general-principles)
147
176
 
148
- Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
177
+ ### Introduction
149
178
 
150
- Book is a language that can be used to write AI applications, agents, workflows, automations, knowledgebases, translators, sheet processors, email automations and more. It allows you to harness the power of AI models in human-like terms, without the need to know the specifics and technicalities of the models.
179
+ Book is a Markdown-based language that simplifies the creation of AI applications, workflows, and automations. With human-readable commands, you can define inputs, outputs, personas, knowledge sources, and actions—without needing model-specific details.
151
180
 
152
181
  ### Example
153
182
 
154
- ```markdown
155
- # 🌟 My first Book
183
+ ```book
184
+ # 🌟 My First Book
156
185
 
157
186
  - BOOK VERSION 1.0.0
158
187
  - URL https://promptbook.studio/hello.book
159
188
  - INPUT PARAMETER {topic}
160
189
  - OUTPUT PARAMETER {article}
161
190
 
162
- # Write an article
191
+ # Write an Article
163
192
 
164
- - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
193
+ - PERSONA Jane, marketing specialist with prior experience in tech and AI writing
165
194
  - KNOWLEDGE https://wikipedia.org/
166
195
  - KNOWLEDGE ./journalist-ethics.pdf
167
196
  - EXPECT MIN 1 Sentence
@@ -169,20 +198,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
169
198
 
170
199
  > Write an article about {topic}
171
200
 
172
- -> {article}
201
+ {article}
173
202
  ```
174
203
 
175
204
  Each part of the book defines one of 3 circles:
176
205
 
177
- ### **What:** Workflows, Tasks and Parameters
206
+ ### **1. What:** Workflows, Tasks and Parameters
178
207
 
179
- What work needs to be done. Each book defines a [workflow *(scenario or pipeline)*](https://github.com/webgptorg/promptbook/discussions/88), which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
208
+ What work needs to be done. Each book defines a [workflow _(scenario or pipeline)_](https://github.com/webgptorg/promptbook/discussions/88), which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
180
209
 
181
210
  **Related commands:**
182
211
 
183
212
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
184
213
 
185
- ### **Who:** Personas
214
+ ### **2. Who:** Personas
186
215
 
187
216
  Who does the work. Each task is performed by a persona. A persona is a description of your virtual employee. It is a higher abstraction than the model, tokens, temperature, top-k, top-p and other model parameters.
188
217
 
@@ -196,7 +225,7 @@ Personas can have access to different knowledge, tools and actions. They can als
196
225
 
197
226
 
198
227
 
199
- ### **How:** Knowledge, Instruments and Actions
228
+ ### **3. How:** Knowledge, Instruments and Actions
200
229
 
201
230
  The resources used by the personas are used to do the work.
202
231
 
@@ -206,7 +235,7 @@ The resources used by the personas are used to do the work.
206
235
  - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md) for real-time data like time, location, weather, stock prices, searching the internet, calculations, etc.
207
236
  - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
208
237
 
209
- ### General principles of book language
238
+ ### General Principles
210
239
 
211
240
  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.
212
241
 
@@ -220,6 +249,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
220
249
 
221
250
 
222
251
 
252
+ ## 📚 Documentation
253
+
254
+ See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
255
+
223
256
  ## 🔒 Security
224
257
 
225
258
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
@@ -300,25 +333,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
300
333
  - [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
301
334
  - [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
302
335
  - [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
303
- - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
304
- - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
305
- - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
306
- - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
336
+ - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
337
+ - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
338
+ - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
339
+ - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
340
+
341
+ ### Advanced concepts
307
342
 
308
- #### Advanced concepts
343
+ <table>
344
+ <tr>
345
+ <th>Data & Knowledge Management</th>
346
+ <th>Pipeline Control</th>
347
+ </tr>
348
+ <tr>
349
+ <td>
350
+ <ul>
351
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
352
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
353
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
354
+ </ul>
355
+ </td>
356
+ <td>
357
+ <ul>
358
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
359
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
360
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
361
+ </ul>
362
+ </td>
363
+ </tr>
364
+ <tr>
365
+ <th>Language & Output Control</th>
366
+ <th>Advanced Generation</th>
367
+ </tr>
368
+ <tr>
369
+ <td>
370
+ <ul>
371
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
372
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
373
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
374
+ </ul>
375
+ </td>
376
+ <td>
377
+ <ul>
378
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
379
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
380
+ </ul>
381
+ </td>
382
+ </tr>
383
+ </table>
309
384
 
310
- - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
311
- - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
312
- - [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
313
- - [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
314
- - [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
315
- - [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
316
- - [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
317
- - [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
318
- - [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
319
- - [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
320
- - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
321
- - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
385
+ <p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
322
386
 
323
387
 
324
388
 
@@ -373,36 +437,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
373
437
  - [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
374
438
  - [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
375
439
 
376
- ## Changelog
440
+ ## 📅 Changelog
377
441
 
378
442
  See [CHANGELOG.md](./CHANGELOG.md)
379
443
 
380
444
  ## 📜 License
381
445
 
382
- Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
383
-
384
- ## 🎯 Todos
446
+ This project is licensed under [BUSL 1.1](./LICENSE.md).
385
447
 
386
- See [TODO.md](./TODO.md)
448
+ ## 🤝 Contributing
387
449
 
388
- ## 🤝 Partners
450
+ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
389
451
 
390
- <div style="display: flex; align-items: center; gap: 20px;">
391
-
392
- <a href="https://promptbook.studio/">
393
- <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
394
- </a>
395
-
396
- <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
397
- <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
398
- </a>
399
-
400
- </div>
452
+ You can also star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
401
453
 
402
- ## 🖋️ Contributing
454
+ ## 🆘 Support & Community
403
455
 
404
- You can also star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
456
+ Need help with Book language? We're here for you!
405
457
 
406
- ## 📞 Support
458
+ - 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
459
+ - 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
460
+ - 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
461
+ - 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
462
+ - 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
407
463
 
408
- If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
464
+ We welcome contributions and feedback to make Book language better for everyone!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ptbk",
3
- "version": "0.92.0",
4
- "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
3
+ "version": "0.93.0",
4
+ "description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "repository": {
@@ -60,10 +60,10 @@
60
60
  "words": []
61
61
  },
62
62
  "peerDependencies": {
63
- "@promptbook/core": "0.92.0"
63
+ "@promptbook/core": "0.93.0"
64
64
  },
65
65
  "dependencies": {
66
- "promptbook": "0.92.0"
66
+ "promptbook": "0.93.0"
67
67
  },
68
68
  "bin": {
69
69
  "ptbk": "bin/promptbook-cli-proxy.js"