@promptbook/editable 0.88.0-11 → 0.88.0-12

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
@@ -60,8 +60,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
60
60
 
61
61
  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
62
 
63
-
64
-
65
63
  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!
66
64
 
67
65
  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.
@@ -72,6 +70,9 @@ This shift is going to happen, whether we are ready for it or not. Our mission i
72
70
 
73
71
 
74
72
 
73
+
74
+
75
+
75
76
  ## 🚀 Get started
76
77
 
77
78
  Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
@@ -83,6 +84,8 @@ Take a look at the simple starter kit with books integrated into the **Hello Wor
83
84
 
84
85
 
85
86
 
87
+
88
+
86
89
  ## 💜 The Promptbook Project
87
90
 
88
91
  Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
@@ -124,29 +127,22 @@ Hello world examples:
124
127
  - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
125
128
  - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
126
129
 
127
-
128
-
129
130
  We also have a community of developers and users of **Promptbook**:
130
131
 
131
132
  - [Discord community](https://discord.gg/x3QWNaa89N)
132
133
  - [Landing page `ptbk.io`](https://ptbk.io)
133
134
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
134
135
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
135
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
136
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
136
137
 
137
138
  And **Promptbook.studio** branded socials:
138
139
 
139
-
140
-
141
140
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
142
141
 
143
142
  And **Promptujeme** sub-brand:
144
143
 
145
144
  _/Subbrand for Czech clients/_
146
145
 
147
-
148
-
149
-
150
146
  - [Promptujeme.cz](https://www.promptujeme.cz/)
151
147
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
152
148
 
@@ -164,8 +160,6 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
164
160
 
165
161
  ## 💙 The Book language
166
162
 
167
-
168
-
169
163
  Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
170
164
 
171
165
  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.
@@ -215,8 +209,6 @@ Personas can have access to different knowledge, tools and actions. They can als
215
209
 
216
210
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
217
211
 
218
-
219
-
220
212
  ### **How:** Knowledge, Instruments and Actions
221
213
 
222
214
  The resources used by the personas are used to do the work.
@@ -305,12 +297,8 @@ The following glossary is used to clarify certain concepts:
305
297
  - **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.
306
298
  - **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.
307
299
 
308
-
309
-
310
300
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
311
301
 
312
-
313
-
314
302
  ### 💯 Core concepts
315
303
 
316
304
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
@@ -415,7 +403,7 @@ See [TODO.md](./TODO.md)
415
403
  <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
416
404
  <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
417
405
  </a>
418
-
406
+
419
407
  </div>
420
408
 
421
409
  ## 🖋️ Contributing
package/esm/index.es.js CHANGED
@@ -17,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
17
17
  * @generated
18
18
  * @see https://github.com/webgptorg/promptbook
19
19
  */
20
- const PROMPTBOOK_ENGINE_VERSION = '0.88.0-11';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.88.0-12';
21
21
  /**
22
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
23
23
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -162,7 +162,7 @@ export declare const DEFAULT_MAX_PARALLEL_COUNT = 5;
162
162
  *
163
163
  * @public exported from `@promptbook/core`
164
164
  */
165
- export declare const DEFAULT_MAX_EXECUTION_ATTEMPTS = 3;
165
+ export declare const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10;
166
166
  /**
167
167
  * @@@
168
168
  * TODO: [🐝][main] !!3 Use
@@ -1,3 +1,4 @@
1
+ import type { task_id } from '../types/typeAliases';
1
2
  /**
2
3
  * This error indicates errors during the execution of the pipeline
3
4
  *
@@ -5,5 +6,9 @@
5
6
  */
6
7
  export declare class PipelineExecutionError extends Error {
7
8
  readonly name = "PipelineExecutionError";
9
+ readonly id?: task_id;
8
10
  constructor(message: string);
9
11
  }
12
+ /**
13
+ * TODO: !!!!!! Add id to all errors
14
+ */
@@ -1,3 +1,4 @@
1
+ import type { task_id } from '../../types/typeAliases';
1
2
  import type { ALL_ERRORS } from '../0-index';
2
3
  /**
3
4
  * Represents a serialized error or custom Promptbook error
@@ -5,6 +6,10 @@ import type { ALL_ERRORS } from '../0-index';
5
6
  * Note: [🚉] This is fully serializable as JSON
6
7
  */
7
8
  export type ErrorJson = {
9
+ /**
10
+ * The unique identifier of the error
11
+ */
12
+ readonly id?: task_id;
8
13
  /**
9
14
  * The type of the error
10
15
  */
@@ -5,3 +5,6 @@ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations
5
5
  * @public exported from `@promptbook/utils`
6
6
  */
7
7
  export declare function countCharacters(text: string): ExpectationAmount;
8
+ /**
9
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
10
+ */
@@ -7,3 +7,6 @@ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations
7
7
  * @public exported from `@promptbook/utils`
8
8
  */
9
9
  export declare function countLines(text: string): ExpectationAmount;
10
+ /**
11
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
12
+ */
@@ -7,3 +7,6 @@ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations
7
7
  * @public exported from `@promptbook/utils`
8
8
  */
9
9
  export declare function countPages(text: string): ExpectationAmount;
10
+ /**
11
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
12
+ */
@@ -5,3 +5,6 @@ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations
5
5
  * @public exported from `@promptbook/utils`
6
6
  */
7
7
  export declare function countParagraphs(text: string): ExpectationAmount;
8
+ /**
9
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
10
+ */
@@ -11,3 +11,6 @@ export declare function splitIntoSentences(text: string): ReadonlyArray<string>;
11
11
  * @public exported from `@promptbook/utils`
12
12
  */
13
13
  export declare function countSentences(text: string): ExpectationAmount;
14
+ /**
15
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
16
+ */
@@ -5,3 +5,6 @@ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations
5
5
  * @public exported from `@promptbook/utils`
6
6
  */
7
7
  export declare function countWords(text: string): ExpectationAmount;
8
+ /**
9
+ * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
10
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/editable",
3
- "version": "0.88.0-11",
3
+ "version": "0.88.0-12",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  "module": "./esm/index.es.js",
48
48
  "typings": "./esm/typings/src/_packages/editable.index.d.ts",
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.88.0-11"
50
+ "@promptbook/core": "0.88.0-12"
51
51
  },
52
52
  "dependencies": {
53
53
  "crypto-js": "4.2.0",
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.88.0-11';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.88.0-12';
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