@promptbook/cli 0.94.0-15 → 0.94.0-16

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
@@ -110,15 +110,17 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
110
110
 
111
111
  ## 🤍 The Book Abstract
112
112
 
113
- **It's time for a paradigm shift! The future of software is in plain English, French or Latin.**
113
+ **It's time for a paradigm shift! The future of software is written in plain English, French, or Latin.**
114
114
 
115
115
  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
116
 
117
+
118
+
117
119
  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
120
 
119
121
  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.
120
122
 
121
- This shift is going to happen, whether we are ready for it or not. Our mission is to make it excellently, not just good.
123
+ This shift will happen whether we're ready or not. Our mission is to make it excellent, not just good.
122
124
 
123
125
  **Join us in this journey!**
124
126
 
@@ -226,7 +228,7 @@ Join our growing community of developers and users:
226
228
  <td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
227
229
  <td>Visual updates, UI showcases, and design inspiration</td>
228
230
  </tr>
229
-
231
+
230
232
  </tbody>
231
233
  </table>
232
234
 
@@ -239,6 +241,8 @@ Join our growing community of developers and users:
239
241
 
240
242
  _A concise, Markdown-based DSL for crafting AI workflows and automations._
241
243
 
244
+
245
+
242
246
  ### Introduction
243
247
 
244
248
  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.
@@ -266,7 +270,7 @@ Book is a Markdown-based language that simplifies the creation of AI application
266
270
  → {article}
267
271
  ```
268
272
 
269
- Each part of the book defines one of 3 circles:
273
+ Each part of the book defines one of three circles:
270
274
 
271
275
  ### **1. What:** Workflows, Tasks and Parameters
272
276
 
@@ -288,6 +292,8 @@ Personas can have access to different knowledge, tools and actions. They can als
288
292
 
289
293
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
290
294
 
295
+
296
+
291
297
  ### **3. How:** Knowledge, Instruments and Actions
292
298
 
293
299
  The resources used by the personas are used to do the work.
@@ -302,9 +308,9 @@ The resources used by the personas are used to do the work.
302
308
 
303
309
  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.
304
310
 
305
- The file has `.book` extension. It uses `UTF-8` non BOM encoding.
311
+ The file has a `.book` extension and uses UTF-8 encoding without BOM.
306
312
 
307
- Book has two variants: flat - which is just a prompt with no structure, and full - which has a structure with tasks, commands and prompts.
313
+ Books have two variants: flat just a prompt without structure, and full with tasks, commands, and prompts.
308
314
 
309
315
  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.
310
316
 
@@ -385,7 +391,9 @@ The following glossary is used to clarify certain concepts:
385
391
  - **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.
386
392
  - **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.
387
393
 
388
- _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
394
+ _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
395
+
396
+
389
397
 
390
398
  ### 💯 Core concepts
391
399
 
package/esm/index.es.js CHANGED
@@ -47,7 +47,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
47
47
  * @generated
48
48
  * @see https://github.com/webgptorg/promptbook
49
49
  */
50
- const PROMPTBOOK_ENGINE_VERSION = '0.94.0-15';
50
+ const PROMPTBOOK_ENGINE_VERSION = '0.94.0-16';
51
51
  /**
52
52
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
53
53
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -17853,6 +17853,9 @@ class OllamaExecutionTools extends OpenAiCompatibleExecutionTools {
17853
17853
  * @public exported from `@promptbook/ollama`
17854
17854
  */
17855
17855
  const createOllamaExecutionTools = Object.assign((options) => {
17856
+ if (($isRunningInBrowser() || $isRunningInWebWorker()) && !options.dangerouslyAllowBrowser) {
17857
+ options = { ...options, dangerouslyAllowBrowser: true };
17858
+ }
17856
17859
  return new OllamaExecutionTools(options);
17857
17860
  }, {
17858
17861
  packageName: '@promptbook/ollama',