@promptbook/javascript 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.
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
 
@@ -124,65 +126,92 @@ Hello world examples:
124
126
  - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
125
127
  - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
126
128
 
129
+ ### 🌐 Community & Social Media
127
130
 
131
+ Join our growing community of developers and users:
128
132
 
129
- We also have a community of developers and users of **Promptbook**:
130
-
131
- - [Discord community](https://discord.gg/x3QWNaa89N)
132
- - [Landing page `ptbk.io`](https://ptbk.io)
133
- - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
134
- - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
135
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
136
-
137
- And **Promptbook.studio** branded socials:
138
-
139
-
140
-
141
- - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
142
-
143
- And **Promptujeme** sub-brand:
144
-
145
- _/Subbrand for Czech clients/_
146
-
147
-
133
+ <table>
134
+ <thead>
135
+ <tr>
136
+ <th>Platform</th>
137
+ <th>Description</th>
138
+ </tr>
139
+ </thead>
140
+ <tbody>
141
+ <tr>
142
+ <td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
143
+ <td>Join our active developer community for discussions and support</td>
144
+ </tr>
145
+ <tr>
146
+ <td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
147
+ <td>Technical discussions, feature requests, and community Q&A</td>
148
+ </tr>
149
+ <tr>
150
+ <td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
151
+ <td>Professional updates and industry insights</td>
152
+ </tr>
153
+ <tr>
154
+ <td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
155
+ <td>General announcements and community engagement</td>
156
+ </tr>
157
+ <tr>
158
+ <td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
159
+ <td>Official landing page with project information</td>
160
+ </tr>
161
+ </tbody>
162
+ </table>
148
163
 
164
+ ### 🖼️ Product & Brand Channels
149
165
 
150
- - [Promptujeme.cz](https://www.promptujeme.cz/)
151
- - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
166
+ #### Promptbook.studio
152
167
 
153
- And **Promptbook.city** branded socials:
168
+ <table>
169
+ <tbody>
170
+ <tr>
171
+ <td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
172
+ <td>Visual updates, UI showcases, and design inspiration</td>
173
+ </tr>
174
+
175
+ </tbody>
176
+ </table>
154
177
 
155
- _/Sub-brand for images and graphics generated via Promptbook prompting/_
156
178
 
157
- - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
158
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
159
179
 
160
180
 
161
181
 
162
182
 
183
+ ## 📘 Book Language Blueprint
163
184
 
185
+ _A concise, Markdown-based DSL for crafting AI workflows and automations._
164
186
 
165
- ## 💙 The Book language
187
+ ---
166
188
 
189
+ ### 📑 Table of Contents
167
190
 
191
+ - [Introduction](#introduction)
192
+ - [Example](#example)
193
+ - [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
194
+ - [2. Who: Personas](#2-who-personas)
195
+ - [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
196
+ - [General Principles](#general-principles)
168
197
 
169
- Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
198
+ ### Introduction
170
199
 
171
- 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.
200
+ 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.
172
201
 
173
202
  ### Example
174
203
 
175
- ```markdown
176
- # 🌟 My first Book
204
+ ```book
205
+ # 🌟 My First Book
177
206
 
178
207
  - BOOK VERSION 1.0.0
179
208
  - URL https://promptbook.studio/hello.book
180
209
  - INPUT PARAMETER {topic}
181
210
  - OUTPUT PARAMETER {article}
182
211
 
183
- # Write an article
212
+ # Write an Article
184
213
 
185
- - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
214
+ - PERSONA Jane, marketing specialist with prior experience in tech and AI writing
186
215
  - KNOWLEDGE https://wikipedia.org/
187
216
  - KNOWLEDGE ./journalist-ethics.pdf
188
217
  - EXPECT MIN 1 Sentence
@@ -190,20 +219,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
190
219
 
191
220
  > Write an article about {topic}
192
221
 
193
- -> {article}
222
+ {article}
194
223
  ```
195
224
 
196
225
  Each part of the book defines one of 3 circles:
197
226
 
198
- ### **What:** Workflows, Tasks and Parameters
227
+ ### **1. What:** Workflows, Tasks and Parameters
199
228
 
200
- 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.
229
+ 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.
201
230
 
202
231
  **Related commands:**
203
232
 
204
233
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
205
234
 
206
- ### **Who:** Personas
235
+ ### **2. Who:** Personas
207
236
 
208
237
  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.
209
238
 
@@ -217,7 +246,7 @@ Personas can have access to different knowledge, tools and actions. They can als
217
246
 
218
247
 
219
248
 
220
- ### **How:** Knowledge, Instruments and Actions
249
+ ### **3. How:** Knowledge, Instruments and Actions
221
250
 
222
251
  The resources used by the personas are used to do the work.
223
252
 
@@ -227,7 +256,7 @@ The resources used by the personas are used to do the work.
227
256
  - [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.
228
257
  - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
229
258
 
230
- ### General principles of book language
259
+ ### General Principles
231
260
 
232
261
  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.
233
262
 
@@ -241,6 +270,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
241
270
 
242
271
 
243
272
 
273
+ ## 📚 Documentation
274
+
275
+ See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
276
+
244
277
  ## 🔒 Security
245
278
 
246
279
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
@@ -321,25 +354,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
321
354
  - [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
322
355
  - [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
323
356
  - [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
324
- - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
325
- - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
326
- - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
327
- - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
357
+ - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
358
+ - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
359
+ - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
360
+ - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
328
361
 
329
- #### Advanced concepts
362
+ ### Advanced concepts
363
+
364
+ <table>
365
+ <tr>
366
+ <th>Data & Knowledge Management</th>
367
+ <th>Pipeline Control</th>
368
+ </tr>
369
+ <tr>
370
+ <td>
371
+ <ul>
372
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
373
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
374
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
375
+ </ul>
376
+ </td>
377
+ <td>
378
+ <ul>
379
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
380
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
381
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
382
+ </ul>
383
+ </td>
384
+ </tr>
385
+ <tr>
386
+ <th>Language & Output Control</th>
387
+ <th>Advanced Generation</th>
388
+ </tr>
389
+ <tr>
390
+ <td>
391
+ <ul>
392
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
393
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
394
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
395
+ </ul>
396
+ </td>
397
+ <td>
398
+ <ul>
399
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
400
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
401
+ </ul>
402
+ </td>
403
+ </tr>
404
+ </table>
330
405
 
331
- - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
332
- - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
333
- - [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
334
- - [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
335
- - [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
336
- - [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
337
- - [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
338
- - [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
339
- - [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
340
- - [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
341
- - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
342
- - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
406
+ <p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
343
407
 
344
408
 
345
409
 
@@ -394,36 +458,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
394
458
  - [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
395
459
  - [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
396
460
 
397
- ## Changelog
461
+ ## 📅 Changelog
398
462
 
399
463
  See [CHANGELOG.md](./CHANGELOG.md)
400
464
 
401
465
  ## 📜 License
402
466
 
403
- Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
467
+ This project is licensed under [BUSL 1.1](./LICENSE.md).
404
468
 
405
- ## 🎯 Todos
469
+ ## 🤝 Contributing
406
470
 
407
- See [TODO.md](./TODO.md)
471
+ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
408
472
 
409
- ## 🤝 Partners
410
-
411
- <div style="display: flex; align-items: center; gap: 20px;">
412
-
413
- <a href="https://promptbook.studio/">
414
- <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
415
- </a>
416
-
417
- <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
418
- <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
419
- </a>
420
-
421
- </div>
473
+ 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).
422
474
 
423
- ## 🖋️ Contributing
475
+ ## 🆘 Support & Community
424
476
 
425
- 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).
477
+ Need help with Book language? We're here for you!
426
478
 
427
- ## 📞 Support
479
+ - 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
480
+ - 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
481
+ - 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
482
+ - 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
483
+ - 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
428
484
 
429
- If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
485
+ We welcome contributions and feedback to make Book language better for everyone!
package/esm/index.es.js CHANGED
@@ -19,7 +19,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
19
19
  * @generated
20
20
  * @see https://github.com/webgptorg/promptbook
21
21
  */
22
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0';
22
+ const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
23
23
  /**
24
24
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
25
25
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.92.0-35`).
18
+ * It follows semantic versioning (e.g., `0.92.0`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@promptbook/javascript",
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": {
@@ -63,7 +63,7 @@
63
63
  "module": "./esm/index.es.js",
64
64
  "typings": "./esm/typings/src/_packages/javascript.index.d.ts",
65
65
  "peerDependencies": {
66
- "@promptbook/core": "0.92.0"
66
+ "@promptbook/core": "0.93.0"
67
67
  },
68
68
  "dependencies": {
69
69
  "crypto": "1.0.1",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name