@promptbook/cli 0.75.9 → 0.76.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
@@ -148,7 +148,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
148
148
  <tr>
149
149
  <td>Core</td>
150
150
  <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>
151
- <td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
151
+ <td rowspan=2>https://github.com/webgptorg/book</td>
152
152
  </tr>
153
153
  <tr>
154
154
  <td>Book language</td>
@@ -159,7 +159,7 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
159
159
  <tr>
160
160
  <td>Promptbook typescript project</td>
161
161
  <td>Promptbook implementation in TypeScript released as multiple NPM packages</td>
162
- <td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
162
+ <td>https://github.com/webgptorg/promptbook + <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">Multiple packages published on NPM</a></td>
163
163
  </tr>
164
164
  <tr>
165
165
  <td>Promptbook studio</td>
@@ -179,6 +179,12 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
179
179
  </tbody>
180
180
  </table>
181
181
 
182
+ Also we have a community of developers and users:
183
+
184
+ - [Discord](https://discord.gg/x3QWNaa89N)
185
+ - [Landing page](https://ptbk.io)
186
+ - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
187
+
182
188
 
183
189
 
184
190
  ## 💙 Book language _(for prompt-engineer)_
@@ -287,6 +293,8 @@ Or you can install them separately:
287
293
  - **[@promptbook/execute-javascript](https://www.npmjs.com/package/@promptbook/execute-javascript)** - Execution tools for javascript inside promptbooks
288
294
  - **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
289
295
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
296
+ - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
297
+ - **[@promptbook/gemini](https://www.npmjs.com/package/@promptbook/gemini)** - Integration with Google's Gemini API
290
298
  - **[@promptbook/azure-openai](https://www.npmjs.com/package/@promptbook/azure-openai)** - Execution tools for Azure OpenAI API
291
299
  - **[@promptbook/langtail](https://www.npmjs.com/package/@promptbook/langtail)** - Execution tools for Langtail API, wrapper around Langtail SDK
292
300
  - **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens
@@ -306,11 +314,6 @@ Or you can install them separately:
306
314
 
307
315
  ## 📚 Dictionary
308
316
 
309
-
310
-
311
-
312
-
313
-
314
317
  ### 📚 Dictionary
315
318
 
316
319
  The following glossary is used to clarify certain concepts:
@@ -326,8 +329,6 @@ The following glossary is used to clarify certain concepts:
326
329
  - **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.
327
330
  - **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.
328
331
 
329
-
330
-
331
332
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
332
333
 
333
334
  #### Promptbook core
@@ -388,8 +389,6 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
388
389
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
389
390
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
390
391
 
391
-
392
-
393
392
  ### Terms specific to Promptbook TypeScript implementation
394
393
 
395
394
  - Anonymous mode
package/esm/index.es.js CHANGED
@@ -37,7 +37,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
37
37
  *
38
38
  * @see https://github.com/webgptorg/promptbook
39
39
  */
40
- var PROMPTBOOK_ENGINE_VERSION = '0.75.8';
40
+ var PROMPTBOOK_ENGINE_VERSION = '0.75.10';
41
41
  /**
42
42
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
43
43
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -6929,6 +6929,7 @@ var MatcherFormfactorDefinition = {
6929
6929
  */
6930
6930
  var SheetsFormfactorDefinition = {
6931
6931
  name: 'SHEETS',
6932
+ aliasNames: ['SHEETS', 'SHEET'],
6932
6933
  description: "@@@",
6933
6934
  documentationUrl: "https://github.com/webgptorg/promptbook/discussions/176",
6934
6935
  pipelineInterface: {
@@ -8073,6 +8074,7 @@ function parseCommandVariant(input) {
8073
8074
  * @private internal base for `ScriptLanguage`
8074
8075
  */
8075
8076
  var SUPPORTED_SCRIPT_LANGUAGES = ['javascript', 'typescript', 'python'];
8077
+ // <- TODO: [🏥] DRY
8076
8078
 
8077
8079
  /**
8078
8080
  * Utility function to extract all list items from markdown
@@ -10939,6 +10941,7 @@ function renderPromptbookMermaid(pipelineJson, options) {
10939
10941
  var parameter = pipelineJson.parameters.find(function (parameter) { return parameter.name === parameterName; });
10940
10942
  if (!parameter) {
10941
10943
  throw new UnexpectedError("Could not find {".concat(parameterName, "}"));
10944
+ // <- TODO: !!!!!! This causes problems when {knowledge} and other reserved parameters are used
10942
10945
  }
10943
10946
  if (parameter.isInput) {
10944
10947
  return 'input';