@promptbook/node 0.103.0-37 → 0.103.0-40
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 +33 -27
- package/esm/index.es.js +13819 -8406
- package/esm/index.es.js.map +1 -1
- package/esm/typings/books/index.d.ts +0 -81
- package/esm/typings/src/_packages/core.index.d.ts +12 -10
- package/esm/typings/src/_packages/node.index.d.ts +4 -2
- package/esm/typings/src/_packages/types.index.d.ts +3 -1
- package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/start-agents-server.d.ts +14 -0
- package/esm/typings/src/cli/cli-commands/{start-server.d.ts → start-pipelines-server.d.ts} +2 -2
- package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +36 -0
- package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.d.ts +88 -0
- package/esm/typings/src/collection/{PipelineCollection.d.ts → pipeline-collection/PipelineCollection.d.ts} +7 -3
- package/esm/typings/src/collection/{SimplePipelineCollection.d.ts → pipeline-collection/SimplePipelineCollection.d.ts} +5 -5
- package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts} +8 -10
- package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +13 -0
- package/esm/typings/src/collection/{constructors/createCollectionFromPromise.d.ts → pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts} +6 -5
- package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.test.d.ts +1 -0
- package/esm/typings/src/collection/{constructors/createCollectionFromUrl.d.ts → pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts} +3 -3
- package/esm/typings/src/collection/{constructors/createSubcollection.d.ts → pipeline-collection/constructors/createPipelineSubcollection.d.ts} +3 -3
- package/esm/typings/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +13 -0
- package/esm/typings/src/config.d.ts +8 -1
- package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +6 -0
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +6 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +9 -4
- package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +0 -4
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +17 -1
- package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +1 -1
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -1
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +22 -8
- package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +1 -1
- package/esm/typings/src/utils/files/listAllFiles.d.ts +2 -3
- package/esm/typings/src/version.d.ts +1 -1
- package/esm/typings/src/wizard/$getCompiledBook.d.ts +1 -2
- package/package.json +4 -2
- package/umd/index.umd.js +13529 -8116
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/collection/collectionToJson.d.ts +0 -13
- package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +0 -13
- /package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.test.d.ts → agent-collection/constructors/AgentCollectionInDirectory.test.d.ts} +0 -0
- /package/esm/typings/src/collection/{constructors/createCollectionFromJson.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.test.d.ts} +0 -0
- /package/esm/typings/src/collection/{constructors/createCollectionFromPromise.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromJson.test.d.ts} +0 -0
- /package/esm/typings/src/collection/{collectionToJson.test.d.ts → pipeline-collection/pipelineCollectionToJson.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -59,48 +59,54 @@ This package extends Promptbook's core functionality with Node.js-specific featu
|
|
|
59
59
|
## 🔧 High-Level Functionality
|
|
60
60
|
|
|
61
61
|
The package provides Node.js-specific integrations and utilities:
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
62
|
+
|
|
63
|
+
- **Filesystem Operations**: Read promptbooks from directories and manage file-based collections
|
|
64
|
+
- **Automatic Provider Setup**: Detect and configure LLM providers from environment variables
|
|
65
|
+
- **Command Execution**: Execute system commands and scripts
|
|
66
|
+
- **Knowledge Scraping**: Node.js-specific scrapers for various content sources
|
|
67
|
+
- **File-based Storage**: Persistent storage using the filesystem
|
|
68
|
+
- **Environment Integration**: Seamless integration with Node.js environment and tooling
|
|
68
69
|
|
|
69
70
|
## ✨ Key Features
|
|
70
71
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
72
|
+
- 📁 **Directory-based Collections** - Load promptbook collections from filesystem directories
|
|
73
|
+
- 🔧 **Auto-configuration** - Automatically detect and configure LLM providers from environment
|
|
74
|
+
- 💾 **File Storage** - Persistent caching and storage using the filesystem
|
|
75
|
+
- 🛠️ **Command Execution** - Execute system commands and scripts from promptbooks
|
|
76
|
+
- 🌐 **Knowledge Scraping** - Scrape content from files, websites, and other sources
|
|
77
|
+
- 🔌 **Provider Detection** - Automatically discover available LLM providers
|
|
78
|
+
- 📊 **Executable Management** - Manage and execute external tools and scripts
|
|
79
|
+
- 🚀 **Performance Optimization** - File-based caching for improved performance
|
|
79
80
|
|
|
80
81
|
## 📦 Exported Entities
|
|
81
82
|
|
|
82
83
|
### Version Information
|
|
83
|
-
|
|
84
|
-
-
|
|
84
|
+
|
|
85
|
+
- `BOOK_LANGUAGE_VERSION` - Current book language version
|
|
86
|
+
- `PROMPTBOOK_ENGINE_VERSION` - Current engine version
|
|
85
87
|
|
|
86
88
|
### Collection Management
|
|
87
|
-
|
|
89
|
+
|
|
90
|
+
- `createPipelineCollectionFromDirectory` - Create promptbook collection from filesystem directory
|
|
88
91
|
|
|
89
92
|
### Provider Configuration
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
93
|
+
|
|
94
|
+
- `$provideExecutablesForNode` - Provide executable tools for Node.js environment
|
|
95
|
+
- `$provideExecutionToolsForNode` - Auto-configure all execution tools from environment
|
|
96
|
+
- `$provideLlmToolsConfigurationFromEnv` - Create LLM tools configuration from environment variables
|
|
97
|
+
- `$provideLlmToolsFromEnv` - Create LLM tools from environment variables
|
|
98
|
+
- `$provideFilesystemForNode` - Provide filesystem access for Node.js
|
|
99
|
+
- `$provideScrapersForNode` - Provide knowledge scrapers for Node.js environment
|
|
100
|
+
- `$provideScriptingForNode` - Provide scripting capabilities for Node.js
|
|
97
101
|
|
|
98
102
|
### Storage
|
|
99
|
-
|
|
103
|
+
|
|
104
|
+
- `FileCacheStorage` - File-based cache storage implementation
|
|
100
105
|
|
|
101
106
|
### Command Execution
|
|
102
|
-
|
|
103
|
-
-
|
|
107
|
+
|
|
108
|
+
- `$execCommand` - Execute single system command
|
|
109
|
+
- `$execCommands` - Execute multiple system commands
|
|
104
110
|
|
|
105
111
|
> 💡 This package does not make sense on its own, look at [all promptbook packages](#-packages) or just install all by `npm i ptbk`
|
|
106
112
|
|