@promptbook/remote-server 0.101.0-1 → 0.101.0-11
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 +45 -0
- package/esm/index.es.js +1 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +14 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +6 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +41 -3
- package/esm/typings/src/book-2.0/agent-source/parseParameters.d.ts +13 -0
- package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/DELETE/DELETE.d.ts +59 -0
- package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/GOAL/GOAL.d.ts +45 -0
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +1 -1
- package/esm/typings/src/book-2.0/commitments/MEMORY/MEMORY.d.ts +46 -0
- package/esm/typings/src/book-2.0/commitments/MESSAGE/MESSAGE.d.ts +47 -0
- package/esm/typings/src/book-2.0/commitments/META/META.d.ts +62 -0
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/SCENARIO/SCENARIO.d.ts +46 -0
- package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +8 -2
- package/esm/typings/src/book-2.0/commitments/index.d.ts +7 -3
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/MockedChat.d.ts +46 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/index.d.ts +3 -0
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +10 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +3 -0
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +0 -5
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +28 -2
- package/esm/typings/src/book-components/Chat/Chat/constants.d.ts +8 -0
- package/esm/typings/src/book-components/icons/ArrowIcon.d.ts +9 -0
- package/esm/typings/src/book-components/icons/ResetIcon.d.ts +6 -0
- package/esm/typings/src/book-components/icons/SendIcon.d.ts +8 -0
- package/esm/typings/src/book-components/icons/TemplateIcon.d.ts +8 -0
- package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,51 @@ npm install @promptbook/remote-server
|
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
Remote server implementation for Promptbook, enabling distributed execution of promptbook pipelines across network boundaries with REST API and WebSocket support.
|
|
53
|
+
|
|
54
|
+
## 🎯 Purpose and Motivation
|
|
55
|
+
|
|
56
|
+
This package provides a remote server that allows promptbook pipelines to be executed over the network. It enables distributed architectures where promptbook execution can be centralized on powerful servers while clients can access the functionality remotely, making it ideal for scaling promptbook applications and providing API access to promptbook collections.
|
|
57
|
+
|
|
58
|
+
## 🔧 High-Level Functionality
|
|
59
|
+
|
|
60
|
+
The package provides remote server capabilities:
|
|
61
|
+
- **HTTP REST API**: RESTful endpoints for pipeline execution and management
|
|
62
|
+
- **WebSocket Support**: Real-time communication for streaming execution results
|
|
63
|
+
- **Authentication**: Support for both anonymous and application-based authentication
|
|
64
|
+
- **Pipeline Management**: Remote access to promptbook collections and pipelines
|
|
65
|
+
- **Execution Orchestration**: Distributed execution of promptbook pipelines
|
|
66
|
+
- **OpenAI Compatibility**: OpenAI-compatible API endpoints for seamless integration
|
|
67
|
+
|
|
68
|
+
## ✨ Key Features
|
|
69
|
+
|
|
70
|
+
- 🌐 **Remote Execution** - Execute promptbook pipelines over HTTP/WebSocket
|
|
71
|
+
- 🔐 **Authentication Modes** - Support for anonymous and application-based access
|
|
72
|
+
- 📡 **Real-time Communication** - WebSocket support for streaming results
|
|
73
|
+
- 🔌 **OpenAI Compatible** - Use promptbooks as OpenAI-compatible models
|
|
74
|
+
- 🚀 **Scalable Architecture** - Distribute promptbook execution across servers
|
|
75
|
+
- 📊 **Pipeline Management** - Remote access to collections and individual pipelines
|
|
76
|
+
- 🛡️ **Security** - Configurable authentication and access control
|
|
77
|
+
- ⚡ **High Performance** - Optimized for concurrent pipeline execution
|
|
78
|
+
|
|
79
|
+
## 📦 Exported Entities
|
|
80
|
+
|
|
81
|
+
### Version Information
|
|
82
|
+
- `BOOK_LANGUAGE_VERSION` - Current book language version
|
|
83
|
+
- `PROMPTBOOK_ENGINE_VERSION` - Current engine version
|
|
84
|
+
|
|
85
|
+
### Server Management
|
|
86
|
+
- `startRemoteServer` - Start the remote promptbook server
|
|
87
|
+
|
|
88
|
+
### Configuration Types
|
|
89
|
+
- `RemoteServerOptions` - Configuration options for remote server (type)
|
|
90
|
+
|
|
91
|
+
### Authentication Types
|
|
92
|
+
- `Identification` - Base identification interface (type)
|
|
93
|
+
- `ApplicationModeIdentification` - Application mode identification (type)
|
|
94
|
+
- `AnonymousModeIdentification` - Anonymous mode identification (type)
|
|
95
|
+
|
|
96
|
+
> 💡 This package provides remote server functionality for promptbook applications. For the core functionality, see [@promptbook/core](#-packages) or install all packages with `npm i ptbk`
|
|
52
97
|
|
|
53
98
|
|
|
54
99
|
---
|
package/esm/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
31
31
|
* @generated
|
|
32
32
|
* @see https://github.com/webgptorg/promptbook
|
|
33
33
|
*/
|
|
34
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
34
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-11';
|
|
35
35
|
/**
|
|
36
36
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
37
37
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|