@promptbook/types 0.92.0 → 0.94.0-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,20 +10,24 @@
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
25
+
23
26
 
24
27
 
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>
25
31
 
26
32
  ## 📦 Package `@promptbook/types`
27
33
 
@@ -148,65 +154,92 @@ Hello world examples:
148
154
  - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
149
155
  - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
150
156
 
157
+ ### 🌐 Community & Social Media
151
158
 
159
+ Join our growing community of developers and users:
152
160
 
153
- We also have a community of developers and users of **Promptbook**:
154
-
155
- - [Discord community](https://discord.gg/x3QWNaa89N)
156
- - [Landing page `ptbk.io`](https://ptbk.io)
157
- - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
158
- - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
159
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
160
-
161
- And **Promptbook.studio** branded socials:
162
-
163
-
164
-
165
- - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
166
-
167
- And **Promptujeme** sub-brand:
168
-
169
- _/Subbrand for Czech clients/_
170
-
171
-
161
+ <table>
162
+ <thead>
163
+ <tr>
164
+ <th>Platform</th>
165
+ <th>Description</th>
166
+ </tr>
167
+ </thead>
168
+ <tbody>
169
+ <tr>
170
+ <td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
171
+ <td>Join our active developer community for discussions and support</td>
172
+ </tr>
173
+ <tr>
174
+ <td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
175
+ <td>Technical discussions, feature requests, and community Q&A</td>
176
+ </tr>
177
+ <tr>
178
+ <td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
179
+ <td>Professional updates and industry insights</td>
180
+ </tr>
181
+ <tr>
182
+ <td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
183
+ <td>General announcements and community engagement</td>
184
+ </tr>
185
+ <tr>
186
+ <td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
187
+ <td>Official landing page with project information</td>
188
+ </tr>
189
+ </tbody>
190
+ </table>
172
191
 
192
+ ### 🖼️ Product & Brand Channels
173
193
 
174
- - [Promptujeme.cz](https://www.promptujeme.cz/)
175
- - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
194
+ #### Promptbook.studio
176
195
 
177
- And **Promptbook.city** branded socials:
196
+ <table>
197
+ <tbody>
198
+ <tr>
199
+ <td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
200
+ <td>Visual updates, UI showcases, and design inspiration</td>
201
+ </tr>
202
+
203
+ </tbody>
204
+ </table>
178
205
 
179
- _/Sub-brand for images and graphics generated via Promptbook prompting/_
180
206
 
181
- - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
182
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
183
207
 
184
208
 
185
209
 
186
210
 
211
+ ## 📘 Book Language Blueprint
187
212
 
213
+ _A concise, Markdown-based DSL for crafting AI workflows and automations._
188
214
 
189
- ## 💙 The Book language
215
+ ---
190
216
 
217
+ ### 📑 Table of Contents
191
218
 
219
+ - [Introduction](#introduction)
220
+ - [Example](#example)
221
+ - [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
222
+ - [2. Who: Personas](#2-who-personas)
223
+ - [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
224
+ - [General Principles](#general-principles)
192
225
 
193
- Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
226
+ ### Introduction
194
227
 
195
- 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.
228
+ 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.
196
229
 
197
230
  ### Example
198
231
 
199
- ```markdown
200
- # 🌟 My first Book
232
+ ```book
233
+ # 🌟 My First Book
201
234
 
202
235
  - BOOK VERSION 1.0.0
203
236
  - URL https://promptbook.studio/hello.book
204
237
  - INPUT PARAMETER {topic}
205
238
  - OUTPUT PARAMETER {article}
206
239
 
207
- # Write an article
240
+ # Write an Article
208
241
 
209
- - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
242
+ - PERSONA Jane, marketing specialist with prior experience in tech and AI writing
210
243
  - KNOWLEDGE https://wikipedia.org/
211
244
  - KNOWLEDGE ./journalist-ethics.pdf
212
245
  - EXPECT MIN 1 Sentence
@@ -214,20 +247,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
214
247
 
215
248
  > Write an article about {topic}
216
249
 
217
- -> {article}
250
+ {article}
218
251
  ```
219
252
 
220
253
  Each part of the book defines one of 3 circles:
221
254
 
222
- ### **What:** Workflows, Tasks and Parameters
255
+ ### **1. What:** Workflows, Tasks and Parameters
223
256
 
224
- 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.
257
+ 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.
225
258
 
226
259
  **Related commands:**
227
260
 
228
261
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
229
262
 
230
- ### **Who:** Personas
263
+ ### **2. Who:** Personas
231
264
 
232
265
  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.
233
266
 
@@ -241,7 +274,7 @@ Personas can have access to different knowledge, tools and actions. They can als
241
274
 
242
275
 
243
276
 
244
- ### **How:** Knowledge, Instruments and Actions
277
+ ### **3. How:** Knowledge, Instruments and Actions
245
278
 
246
279
  The resources used by the personas are used to do the work.
247
280
 
@@ -251,7 +284,7 @@ The resources used by the personas are used to do the work.
251
284
  - [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.
252
285
  - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
253
286
 
254
- ### General principles of book language
287
+ ### General Principles
255
288
 
256
289
  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.
257
290
 
@@ -265,6 +298,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
265
298
 
266
299
 
267
300
 
301
+ ## 📚 Documentation
302
+
303
+ See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
304
+
268
305
  ## 🔒 Security
269
306
 
270
307
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
@@ -345,25 +382,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
345
382
  - [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
346
383
  - [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
347
384
  - [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
348
- - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
349
- - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
350
- - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
351
- - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
385
+ - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
386
+ - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
387
+ - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
388
+ - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
352
389
 
353
- #### Advanced concepts
390
+ ### Advanced concepts
391
+
392
+ <table>
393
+ <tr>
394
+ <th>Data & Knowledge Management</th>
395
+ <th>Pipeline Control</th>
396
+ </tr>
397
+ <tr>
398
+ <td>
399
+ <ul>
400
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
401
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
402
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
403
+ </ul>
404
+ </td>
405
+ <td>
406
+ <ul>
407
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
408
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
409
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
410
+ </ul>
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <th>Language & Output Control</th>
415
+ <th>Advanced Generation</th>
416
+ </tr>
417
+ <tr>
418
+ <td>
419
+ <ul>
420
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
421
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
422
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
423
+ </ul>
424
+ </td>
425
+ <td>
426
+ <ul>
427
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
428
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
429
+ </ul>
430
+ </td>
431
+ </tr>
432
+ </table>
354
433
 
355
- - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
356
- - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
357
- - [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
358
- - [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
359
- - [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
360
- - [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
361
- - [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
362
- - [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
363
- - [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
364
- - [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
365
- - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
366
- - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
434
+ <p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
367
435
 
368
436
 
369
437
 
@@ -418,36 +486,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
418
486
  - [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
419
487
  - [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
420
488
 
421
- ## Changelog
489
+ ## 📅 Changelog
422
490
 
423
491
  See [CHANGELOG.md](./CHANGELOG.md)
424
492
 
425
493
  ## 📜 License
426
494
 
427
- Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
495
+ This project is licensed under [BUSL 1.1](./LICENSE.md).
428
496
 
429
- ## 🎯 Todos
497
+ ## 🤝 Contributing
430
498
 
431
- See [TODO.md](./TODO.md)
499
+ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
432
500
 
433
- ## 🤝 Partners
434
-
435
- <div style="display: flex; align-items: center; gap: 20px;">
436
-
437
- <a href="https://promptbook.studio/">
438
- <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
439
- </a>
440
-
441
- <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
442
- <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
443
- </a>
444
-
445
- </div>
501
+ 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).
446
502
 
447
- ## 🖋️ Contributing
503
+ ## 🆘 Support & Community
448
504
 
449
- 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).
505
+ Need help with Book language? We're here for you!
450
506
 
451
- ## 📞 Support
507
+ - 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
508
+ - 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
509
+ - 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
510
+ - 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
511
+ - 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
452
512
 
453
- If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
513
+ We welcome contributions and feedback to make Book language better for everyone!
@@ -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.93.0`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@promptbook/types",
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.94.0-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": {
@@ -61,6 +61,6 @@
61
61
  },
62
62
  "typings": "./esm/typings/src/_packages/types.index.d.ts",
63
63
  "peerDependencies": {
64
- "@promptbook/core": "0.92.0"
64
+ "@promptbook/core": "0.94.0-0"
65
65
  }
66
66
  }