@promptbook/remote-server 0.112.0-16 → 0.112.0-17

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,7 +2,7 @@
2
2
 
3
3
  # ✨ Promptbook: AI Agents
4
4
 
5
- Turn your company's scattered knowledge into AI ready Books
5
+ Create persistent AI agents that turn your company's scattered knowledge into action powered by the [Agents Server](https://gallery.ptbk.io/)
6
6
 
7
7
 
8
8
 
@@ -103,11 +103,13 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
103
103
 
104
104
  ## 📖 The Book Whitepaper
105
105
 
106
+ Promptbook lets you create **persistent AI agents** that work on real goals for your company. The [**Agents Server**](https://gallery.ptbk.io/) is the heart of the project — a place where your AI agents live, remember context, collaborate in teams, and get things done.
107
+
106
108
  Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.2 and Claude-4.5 are incredibly capable.
107
109
 
108
110
  The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
109
111
 
110
- In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
112
+ In Promptbook, you define your agents **using simple Books** — a human-readable language that is explicit, easy to understand and write, reliable, and highly portable. You then deploy them to the **Agents Server**, where they run persistently and work toward their goals.
111
113
 
112
114
  <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
113
115
 
@@ -115,8 +117,13 @@ In Promptbook, you can define your context **using simple Books** that are very
115
117
  <br/>
116
118
  **PERSONA** You are a company lawyer.<br/>
117
119
  Your job is to provide legal advice and support to the company and its employees.<br/>
120
+ **GOAL** Respond to incoming legal inquiries via email and keep the company website updated with the latest legal policies.<br/>
118
121
  **RULE** You are knowledgeable, professional, and detail-oriented.<br/>
119
- TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
122
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
123
+ **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
124
+ **USE EMAIL**<br/>
125
+ **USE BROWSER**<br/>
126
+ **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
120
127
 
121
128
  </td></tr></table>
122
129
 
@@ -139,6 +146,22 @@ Personas define the character of your AI persona, its role, and how it should in
139
146
  **<ins>Paul Smith & Associés</ins>**<br/>
140
147
  <br/>
141
148
  **PERSONA** You are a company lawyer.<br/>
149
+ Your job is to provide legal advice and support to the company and its employees.<br/>
150
+
151
+ </td></tr></table>
152
+
153
+ #### `Goal` commitment
154
+
155
+ Goals define what the agent should actively work toward. Unlike a chatbot that only responds when asked, an agent with goals takes initiative and works on tasks persistently on the Agents Server.
156
+
157
+ <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
158
+
159
+ **<ins>Paul Smith & Associés</ins>**<br/>
160
+ <br/>
161
+ **PERSONA** You are a company lawyer.<br/>
162
+ Your job is to provide legal advice and support to the company and its employees.<br/>
163
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
164
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
142
165
 
143
166
  </td></tr></table>
144
167
 
@@ -156,9 +179,9 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
156
179
  <br/>
157
180
  **PERSONA** You are a company lawyer.<br/>
158
181
  Your job is to provide legal advice and support to the company and its employees.<br/>
159
- You are knowledgeable, professional, and detail-oriented.<br/>
160
- <br/>
161
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
182
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
183
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
184
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
162
185
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
163
186
 
164
187
  </td></tr></table>
@@ -175,13 +198,38 @@ Depending on rule strictness, Promptbook will either propagate it to the prompt
175
198
  <br/>
176
199
  **PERSONA** You are a company lawyer.<br/>
177
200
  Your job is to provide legal advice and support to the company and its employees.<br/>
178
- You are knowledgeable, professional, and detail-oriented.<br/>
201
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
202
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
203
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
204
+ **RULE** Never provide legal advice outside your area of expertise.<br/>
205
+ **RULE** Never provide legal advice about criminal law.<br/>
206
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
207
+ **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
208
+
209
+ </td></tr></table>
210
+
211
+ #### `Use` commitments
212
+
213
+ Use commitments grant the agent real capabilities — tools it can use to interact with the outside world. `USE EMAIL` lets the agent send emails, `USE BROWSER` lets it access and read web content, `USE SEARCH ENGINE` lets it search the web, and many more.
214
+
215
+ These are what turn a chatbot into a persistent agent that actually does work.
216
+
217
+ <table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
218
+
219
+ **<ins>Paul Smith & Associés</ins>**<br/>
179
220
  <br/>
180
- **RULE** Always ensure compliance with laws and regulations.<br/>
221
+ **PERSONA** You are a company lawyer.<br/>
222
+ Your job is to provide legal advice and support to the company and its employees.<br/>
223
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
224
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
225
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
181
226
  **RULE** Never provide legal advice outside your area of expertise.<br/>
182
227
  **RULE** Never provide legal advice about criminal law.<br/>
183
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
228
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
184
229
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
230
+ **USE EMAIL**<br/>
231
+ **USE BROWSER**<br/>
232
+ **USE SEARCH ENGINE**<br/>
185
233
 
186
234
  </td></tr></table>
187
235
 
@@ -195,32 +243,31 @@ Team commitment allows you to define the team structure and advisory fellow memb
195
243
  <br/>
196
244
  **PERSONA** You are a company lawyer.<br/>
197
245
  Your job is to provide legal advice and support to the company and its employees.<br/>
198
- You are knowledgeable, professional, and detail-oriented.<br/>
199
- <br/>
200
- **RULE** Always ensure compliance with laws and regulations.<br/>
246
+ **GOAL** Respond to incoming legal inquiries via email within 24 hours.<br/>
247
+ **GOAL** Keep the company website updated with the latest legal policies and compliance information.<br/>
248
+ **RULE** Always ensure compliance with local laws and regulations.<br/>
201
249
  **RULE** Never provide legal advice outside your area of expertise.<br/>
202
250
  **RULE** Never provide legal advice about criminal law.<br/>
203
- **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
251
+ **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
204
252
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
205
- TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
253
+ **USE EMAIL**<br/>
254
+ **USE BROWSER**<br/>
255
+ **USE SEARCH ENGINE**<br/>
256
+ **TEAM** You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
206
257
 
207
258
  </td></tr></table>
208
259
 
209
-
210
-
211
260
  ### Promptbook Ecosystem
212
261
 
213
- !!!@@@
262
+ Promptbook is an ecosystem of tools centered around the **Agents Server** — a production-ready platform for running persistent AI agents.
214
263
 
215
- #### Promptbook Server
264
+ #### Agents Server
216
265
 
217
- !!!@@@
266
+ The [**Agents Server**](https://gallery.ptbk.io/) is the primary way to use Promptbook. It is a web application where your AI agents live and work. You can create agents, give them knowledge and rules using the Book language, organize them into teams, and let them work on goals persistently. The Agents Server provides a UI for managing agents, an API for integrating them into your applications, and can be self-hosted via [Docker](https://hub.docker.com/r/hejny/promptbook/) or deployed on Vercel.
218
267
 
219
268
  #### Promptbook Engine
220
269
 
221
- !!!@@@
222
-
223
-
270
+ The [Promptbook Engine](https://github.com/webgptorg/promptbook) is the open-source core that powers everything. It parses the Book language, applies commitments, manages LLM provider integrations, and executes agents. The Agents Server is built on top of the Engine. If you need to embed agent capabilities directly into your own application, you can use the Engine as a standalone TypeScript/JavaScript library via [NPM packages](https://www.npmjs.com/package/@promptbook/core).
224
271
 
225
272
 
226
273
 
@@ -234,7 +281,7 @@ TEAM You are part of the legal team of Paul Smith & Associés, you discuss with
234
281
 
235
282
  ## 💜 The Promptbook Project
236
283
 
237
- Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
284
+ Promptbook project is an ecosystem centered around the **Agents Server** — a platform for creating, deploying, and running persistent AI agents. Following is a list of the most important pieces of the project:
238
285
 
239
286
  <table>
240
287
  <thead>
@@ -245,9 +292,9 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
245
292
  </thead>
246
293
  <tbody>
247
294
  <tr>
248
- <td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
295
+ <td><a href="https://gallery.ptbk.io/"><strong>⭐ Agents Server</strong></a></td>
249
296
  <td>
250
- Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
297
+ The primary way to use Promptbook. A production-ready platform where your AI agents live create, manage, deploy, and interact with persistent agents that work on goals. Available as a hosted service or <a href="https://hub.docker.com/r/hejny/promptbook/">self-hosted via Docker</a>.
251
298
  </td>
252
299
  </tr>
253
300
  <tr>
@@ -261,17 +308,14 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
261
308
  <tr>
262
309
  <td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
263
310
  <td>
264
- Promptbook engine can run AI agents based on Book language.
265
- It is released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a> and <a href="https://hub.docker.com/r/hejny/promptbook">Promptbook Agent Server as Docker Package</a>
266
- Agent Server is based on Promptbook Engine.
311
+ The open-source core that powers the Agents Server. Can also be used as a standalone TypeScript/JavaScript library to embed agent capabilities into your own applications.
312
+ Released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a>.
267
313
  </td>
268
314
  </tr>
269
315
 
270
316
  </tbody>
271
317
  </table>
272
318
 
273
-
274
-
275
319
  ### 🌐 Community & Social Media
276
320
 
277
321
  Join our growing community of developers and users:
@@ -328,8 +372,6 @@ Join our growing community of developers and users:
328
372
 
329
373
 
330
374
 
331
-
332
-
333
375
  ## 📚 Documentation
334
376
 
335
377
  See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
@@ -338,9 +380,16 @@ See detailed guides and API reference in the [docs](https://github.com/webgptorg
338
380
 
339
381
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
340
382
 
341
- ## 📦 Packages _(for developers)_
383
+ ## 📦 Deployment & Packages
384
+
385
+ The fastest way to get started is with the **Agents Server**:
342
386
 
343
- This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
387
+ - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** — Self-host the Agents Server with full control over your data
388
+ - ☁️ **[Hosted Agents Server](https://gallery.ptbk.io/)** — Start creating agents immediately, no setup required
389
+
390
+ ### NPM Packages _(for developers embedding the Engine)_
391
+
392
+ If you want to embed the Promptbook Engine directly into your application, the library is divided into several packages published from a [single monorepo](https://github.com/webgptorg/promptbook).
344
393
  You can install all of them at once:
345
394
 
346
395
  ```bash
@@ -359,7 +408,6 @@ Or you can install them separately:
359
408
  - **[@promptbook/browser](https://www.npmjs.com/package/@promptbook/browser)** - Core of the library for browser environment
360
409
  - ⭐ **[@promptbook/utils](https://www.npmjs.com/package/@promptbook/utils)** - Utility functions used in the library but also useful for individual use in preprocessing and postprocessing LLM inputs and outputs
361
410
  - **[@promptbook/markdown-utils](https://www.npmjs.com/package/@promptbook/markdown-utils)** - Utility functions used for processing markdown
362
- - _(Not finished)_ **[@promptbook/wizard](https://www.npmjs.com/package/@promptbook/wizard)** - Wizard for creating+running promptbooks in single line
363
411
  - **[@promptbook/javascript](https://www.npmjs.com/package/@promptbook/javascript)** - Execution tools for javascript inside promptbooks
364
412
  - **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
365
413
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
@@ -381,8 +429,7 @@ Or you can install them separately:
381
429
  - **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Useful templates and examples of books which can be used as a starting point
382
430
  - **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
383
431
  - **[@promptbook/color](https://www.npmjs.com/package/@promptbook/color)** - Color manipulation library
384
- - **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
385
- - 🐋 **[Docker image](https://hub.docker.com/r/hejny/promptbook/)** - Promptbook server
432
+ - **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
386
433
 
387
434
 
388
435
 
@@ -406,8 +453,6 @@ The following glossary is used to clarify certain concepts:
406
453
 
407
454
  _Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
408
455
 
409
-
410
-
411
456
  ### 💯 Core concepts
412
457
 
413
458
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
@@ -469,31 +514,42 @@ _Note: This section is not a complete dictionary, more list of general AI / LLM
469
514
 
470
515
 
471
516
 
517
+ ## � Agents Server
518
+
519
+ The **[Agents Server](https://gallery.ptbk.io/)** is the primary way to use Promptbook. It is a production-ready platform where you create, deploy, and manage persistent AI agents that work toward goals. Agents remember context across conversations, collaborate in teams, and follow the rules and knowledge you define in the Book language.
520
+
521
+ - **Hosted** at [gallery.ptbk.io](https://gallery.ptbk.io/) — start creating agents immediately
522
+ - **Self-hosted** via [Docker](https://hub.docker.com/r/hejny/promptbook/) — full control over your data and infrastructure
523
+ - **API** for integrating agents into your own applications
524
+
472
525
  ## 🚂 Promptbook Engine
473
526
 
527
+ The Engine is the open-source core that powers the Agents Server. If you need to embed agent capabilities directly into your TypeScript/JavaScript application, you can use it as a standalone library.
528
+
474
529
  ![Schema of Promptbook Engine](./documents/promptbook-engine.svg)
475
530
 
476
531
  ## ➕➖ When to use Promptbook?
477
532
 
478
533
  ### ➕ When to use
479
534
 
480
- - When you are writing app that generates complex things via LLM - like **websites, articles, presentations, code, stories, songs**,...
481
- - When you want to **separate code from text prompts**
482
- - When you want to describe **complex prompt pipelines** and don't want to do it in the code
483
- - When you want to **orchestrate multiple prompts** together
484
- - When you want to **reuse** parts of prompts in multiple places
485
- - When you want to **version** your prompts and **test multiple versions**
486
- - When you want to **log** the execution of prompts and backtrace the issues
535
+ - When you want to **deploy persistent AI agents** that work on goals for your company
536
+ - When you need agents with **specific personalities, knowledge, and rules** tailored to your business
537
+ - When you want agents that **collaborate in teams** and consult each other
538
+ - When you need to **integrate AI agents into your existing applications** via API
539
+ - When you want to **self-host** your AI agents with full control over data and infrastructure
540
+ - When you are writing an app that generates complex things via LLM — like **websites, articles, presentations, code, stories, songs**,...
541
+ - When you want to **version** your agent definitions and **test multiple versions**
542
+ - When you want to **log** agent execution and backtrace issues
487
543
 
488
544
  [See more](https://github.com/webgptorg/promptbook/discussions/111)
489
545
 
490
546
  ### ➖ When not to use
491
547
 
492
- - When you have already implemented single simple prompt and it works fine for your job
548
+ - When a single simple prompt already works fine for your job
493
549
  - When [OpenAI Assistant (GPTs)](https://help.openai.com/en/articles/8673914-gpts-vs-assistants) is enough for you
494
- - When you need streaming _(this may be implemented in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/102))_.
550
+ - When you need streaming _(this may be implemented in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/102))_
495
551
  - When you need to use something other than JavaScript or TypeScript _(other languages are on the way, [see the discussion](https://github.com/webgptorg/promptbook/discussions/101))_
496
- - When your main focus is on something other than text - like images, audio, video, spreadsheets _(other media types may be added in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/103))_
552
+ - When your main focus is on something other than text like images, audio, video, spreadsheets _(other media types may be added in the future, [see discussion](https://github.com/webgptorg/promptbook/discussions/103))_
497
553
  - When you need to use recursion _([see the discussion](https://github.com/webgptorg/promptbook/discussions/38))_
498
554
 
499
555
  [See more](https://github.com/webgptorg/promptbook/discussions/112)
package/esm/index.es.js CHANGED
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
40
40
  * @generated
41
41
  * @see https://github.com/webgptorg/promptbook
42
42
  */
43
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-16';
43
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-17';
44
44
  /**
45
45
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
46
46
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -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.112.0-15`).
18
+ * It follows semantic versioning (e.g., `0.112.0-16`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.112.0-16",
3
+ "version": "0.112.0-17",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -98,7 +98,7 @@
98
98
  "module": "./esm/index.es.js",
99
99
  "typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
100
100
  "peerDependencies": {
101
- "@promptbook/core": "0.112.0-16"
101
+ "@promptbook/core": "0.112.0-17"
102
102
  },
103
103
  "dependencies": {
104
104
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -50,7 +50,7 @@
50
50
  * @generated
51
51
  * @see https://github.com/webgptorg/promptbook
52
52
  */
53
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-16';
53
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-17';
54
54
  /**
55
55
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
56
56
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -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.112.0-15`).
18
+ * It follows semantic versioning (e.g., `0.112.0-16`).
19
19
  *
20
20
  * @generated
21
21
  */