@promptbook/types 0.75.0-4 → 0.75.1

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
@@ -2,8 +2,6 @@
2
2
 
3
3
  # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook
4
4
 
5
- It's time for a paradigm shift! The future of software is in plain English, French or Latin.
6
-
7
5
 
8
6
 
9
7
 
@@ -25,10 +23,6 @@ It's time for a paradigm shift! The future of software is in plain English, Fren
25
23
 
26
24
 
27
25
 
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>
31
-
32
26
  ## 📦 Package `@promptbook/types`
33
27
 
34
28
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -81,7 +75,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
81
75
 
82
76
  ## 🤍 The Book Abstract
83
77
 
84
- > It's time for a paradigm shift! **The future of software is in plain English**, French or Latin.
78
+ **It's time for a paradigm shift! The future of software is in plain English, French or Latin.**
85
79
 
86
80
  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**!
87
81
 
@@ -91,11 +85,17 @@ The incredible growth in power of microprocessors and the Moore's Law have been
91
85
 
92
86
  This shift is going to happen, whether we are ready for it or not. Our mission is to make it excellently, not just good.
93
87
 
94
- > **Join us in this journey!**
88
+ **Join us in this journey!**
89
+
95
90
 
96
91
 
92
+ ## 🚀 Get started
97
93
 
94
+ Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
98
95
 
96
+ - [Hello Book](https://github.com/webgptorg/hello-world)
97
+ - [Hello Book in Node.js](https://github.com/webgptorg/hello-world-node-js)
98
+ - [Hello Book in Next.js](https://github.com/webgptorg/hello-world-next-js)
99
99
 
100
100
 
101
101
 
@@ -115,7 +115,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
115
115
  <tbody>
116
116
  <tr>
117
117
  <td>Core</td>
118
- <td>Promptbook core is a description and documentation of basic innerworkings how should be Promptbook implemented and defines which fetures must be descriable by book language</td>
118
+ <td>Promptbook Core is a description and documentation of the basic concepts, ideas and inner workings of how Promptbook should be implemented, and defines what features must be describable by book language.</td>
119
119
  <td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
120
120
  </tr>
121
121
  <tr>
@@ -126,17 +126,23 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
126
126
  </tr>
127
127
  <tr>
128
128
  <td>Promptbook typescript project</td>
129
- <td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
129
+ <td>Promptbook implementation in TypeScript released as multiple NPM packages</td>
130
130
  <td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
131
131
  </tr>
132
132
  <tr>
133
133
  <td>Promptbook studio</td>
134
- <td>No-code studio to write book without need to write even the markdown</td>
135
- <td rowspan=2>https://promptbook.studio<br/>https://github.com/hejny/promptbook-studio</td>
136
- </tr>
137
- <tr>
138
- <td>Promptbook miniapps</td>
139
- <td>Builder of LLM miniapps from book notation</td>
134
+ <td>Studio to write Books and instantly publish them as miniapps</td>
135
+ <td>
136
+ https://promptbook.studio<br/>
137
+ https://github.com/hejny/promptbook-studio</td>
138
+ </tr><tr>
139
+ <td>Hello World</td>
140
+ <td>Simple starter kit with Books integrated into the sample applications</td>
141
+ <td>
142
+ https://github.com/webgptorg/hello-world<br/>
143
+ https://github.com/webgptorg/hello-world-node-js<br/>
144
+ https://github.com/webgptorg/hello-world-next-js
145
+ </td>
140
146
  </tr>
141
147
  </tbody>
142
148
  </table>
@@ -4,7 +4,10 @@ import { createCollectionFromJson } from '../collection/constructors/createColle
4
4
  import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
5
5
  import { createCollectionFromUrl } from '../collection/constructors/createCollectionFromUrl';
6
6
  import { createSubcollection } from '../collection/constructors/createSubcollection';
7
+ import { NAME } from '../config';
7
8
  import { CLAIM } from '../config';
9
+ import { LOGO_LIGHT_SRC } from '../config';
10
+ import { LOGO_DARK_SRC } from '../config';
8
11
  import { DEFAULT_TITLE } from '../config';
9
12
  import { MAX_FILENAME_LENGTH } from '../config';
10
13
  import { DEFAULT_INTERMEDIATE_FILES_STRATEGY } from '../config';
@@ -113,7 +116,10 @@ export { createCollectionFromJson };
113
116
  export { createCollectionFromPromise };
114
117
  export { createCollectionFromUrl };
115
118
  export { createSubcollection };
119
+ export { NAME };
116
120
  export { CLAIM };
121
+ export { LOGO_LIGHT_SRC };
122
+ export { LOGO_DARK_SRC };
117
123
  export { DEFAULT_TITLE };
118
124
  export { MAX_FILENAME_LENGTH };
119
125
  export { DEFAULT_INTERMEDIATE_FILES_STRATEGY };
@@ -44,6 +44,7 @@ import { parseKeywords } from '../utils/normalization/parseKeywords';
44
44
  import { parseKeywordsFromString } from '../utils/normalization/parseKeywordsFromString';
45
45
  import { removeDiacritics } from '../utils/normalization/removeDiacritics';
46
46
  import { searchKeywords } from '../utils/normalization/searchKeywords';
47
+ import { spaceTrim } from '../utils/organization/spaceTrim';
47
48
  import { extractParameterNames } from '../utils/parameters/extractParameterNames';
48
49
  import { replaceParameters } from '../utils/parameters/replaceParameters';
49
50
  import { parseNumber } from '../utils/parseNumber';
@@ -117,6 +118,7 @@ export { parseKeywords };
117
118
  export { parseKeywordsFromString };
118
119
  export { removeDiacritics };
119
120
  export { searchKeywords };
121
+ export { spaceTrim };
120
122
  export { extractParameterNames };
121
123
  export { replaceParameters };
122
124
  export { parseNumber };
@@ -1,11 +1,20 @@
1
1
  import type { CsvSettings } from './formats/csv/CsvSettings';
2
2
  import type { IntermediateFilesStrategy } from './types/IntermediateFilesStrategy';
3
+ import type { string_url_image } from './types/typeAliases';
3
4
  /**
4
5
  * Warning message for the generated sections and files files
5
6
  *
6
7
  * @private within the repository
7
8
  */
8
9
  export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has been generated so that any manual changes will be overwritten";
10
+ /**
11
+ * Name for the Promptbook
12
+ *
13
+ * TODO: [🗽] Unite branding and make single place for it
14
+ *
15
+ * @public exported from `@promptbook/core`
16
+ */
17
+ export declare const NAME = "Promptbook";
9
18
  /**
10
19
  * Claim for the Promptbook
11
20
  *
@@ -14,6 +23,22 @@ export declare const GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has be
14
23
  * @public exported from `@promptbook/core`
15
24
  */
16
25
  export declare const CLAIM = "It's time for a paradigm shift. The future of software in plain English, French or Latin";
26
+ /**
27
+ * Logo for the light theme
28
+ *
29
+ * TODO: [🗽] Unite branding and make single place for it
30
+ *
31
+ * @public exported from `@promptbook/core`
32
+ */
33
+ export declare const LOGO_LIGHT_SRC: string_url_image;
34
+ /**
35
+ * Logo for the dark theme
36
+ *
37
+ * TODO: [🗽] Unite branding and make single place for it
38
+ *
39
+ * @public exported from `@promptbook/core`
40
+ */
41
+ export declare const LOGO_DARK_SRC: string_url_image;
17
42
  /**
18
43
  * When the title is not provided, the default title is used
19
44
  *
@@ -0,0 +1,11 @@
1
+ import { spaceTrim as spaceTrimReexported } from 'spacetrim';
2
+ /**
3
+ * Trims string from all 4 sides
4
+ *
5
+ * Note: This is a re-exported function from the `spacetrim` package which is
6
+ * Developed by same author @hejny as this package
7
+ *
8
+ * @public exported from `@promptbook/utils`
9
+ * @see https://github.com/hejny/spacetrim#usage
10
+ */
11
+ export declare const spaceTrim: typeof spaceTrimReexported;
@@ -15,4 +15,4 @@ export type string_promptbook_version = string_semantic_version;
15
15
  /**
16
16
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
17
17
  * Note: [💞] Ignore a discrepancy between file name and entity name
18
- */
18
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.75.0-4",
3
+ "version": "0.75.1",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "--note-0": " <- [🐊]",
6
6
  "private": false,
@@ -52,6 +52,6 @@
52
52
  ],
53
53
  "typings": "./esm/typings/src/_packages/types.index.d.ts",
54
54
  "peerDependencies": {
55
- "@promptbook/core": "0.75.0-4"
55
+ "@promptbook/core": "0.75.1"
56
56
  }
57
57
  }