@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.
Files changed (44) hide show
  1. package/README.md +33 -27
  2. package/esm/index.es.js +13819 -8406
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/books/index.d.ts +0 -81
  5. package/esm/typings/src/_packages/core.index.d.ts +12 -10
  6. package/esm/typings/src/_packages/node.index.d.ts +4 -2
  7. package/esm/typings/src/_packages/types.index.d.ts +3 -1
  8. package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +1 -1
  9. package/esm/typings/src/cli/cli-commands/start-agents-server.d.ts +14 -0
  10. package/esm/typings/src/cli/cli-commands/{start-server.d.ts → start-pipelines-server.d.ts} +2 -2
  11. package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +36 -0
  12. package/esm/typings/src/collection/agent-collection/constructors/AgentCollectionInDirectory.d.ts +88 -0
  13. package/esm/typings/src/collection/{PipelineCollection.d.ts → pipeline-collection/PipelineCollection.d.ts} +7 -3
  14. package/esm/typings/src/collection/{SimplePipelineCollection.d.ts → pipeline-collection/SimplePipelineCollection.d.ts} +5 -5
  15. package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts} +8 -10
  16. package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +13 -0
  17. package/esm/typings/src/collection/{constructors/createCollectionFromPromise.d.ts → pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts} +6 -5
  18. package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.test.d.ts +1 -0
  19. package/esm/typings/src/collection/{constructors/createCollectionFromUrl.d.ts → pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts} +3 -3
  20. package/esm/typings/src/collection/{constructors/createSubcollection.d.ts → pipeline-collection/constructors/createPipelineSubcollection.d.ts} +3 -3
  21. package/esm/typings/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +13 -0
  22. package/esm/typings/src/config.d.ts +8 -1
  23. package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
  24. package/esm/typings/src/execution/LlmExecutionTools.d.ts +6 -0
  25. package/esm/typings/src/llm-providers/agent/Agent.d.ts +6 -1
  26. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +9 -4
  27. package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +0 -4
  28. package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +17 -1
  29. package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +1 -1
  30. package/esm/typings/src/remote-server/startRemoteServer.d.ts +1 -1
  31. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +22 -8
  32. package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +1 -1
  33. package/esm/typings/src/utils/files/listAllFiles.d.ts +2 -3
  34. package/esm/typings/src/version.d.ts +1 -1
  35. package/esm/typings/src/wizard/$getCompiledBook.d.ts +1 -2
  36. package/package.json +4 -2
  37. package/umd/index.umd.js +13529 -8116
  38. package/umd/index.umd.js.map +1 -1
  39. package/esm/typings/src/collection/collectionToJson.d.ts +0 -13
  40. package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +0 -13
  41. /package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.test.d.ts → agent-collection/constructors/AgentCollectionInDirectory.test.d.ts} +0 -0
  42. /package/esm/typings/src/collection/{constructors/createCollectionFromJson.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.test.d.ts} +0 -0
  43. /package/esm/typings/src/collection/{constructors/createCollectionFromPromise.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromJson.test.d.ts} +0 -0
  44. /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
- - **Filesystem Operations**: Read promptbooks from directories and manage file-based collections
63
- - **Automatic Provider Setup**: Detect and configure LLM providers from environment variables
64
- - **Command Execution**: Execute system commands and scripts
65
- - **Knowledge Scraping**: Node.js-specific scrapers for various content sources
66
- - **File-based Storage**: Persistent storage using the filesystem
67
- - **Environment Integration**: Seamless integration with Node.js environment and tooling
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
- - 📁 **Directory-based Collections** - Load promptbook collections from filesystem directories
72
- - 🔧 **Auto-configuration** - Automatically detect and configure LLM providers from environment
73
- - 💾 **File Storage** - Persistent caching and storage using the filesystem
74
- - 🛠️ **Command Execution** - Execute system commands and scripts from promptbooks
75
- - 🌐 **Knowledge Scraping** - Scrape content from files, websites, and other sources
76
- - 🔌 **Provider Detection** - Automatically discover available LLM providers
77
- - 📊 **Executable Management** - Manage and execute external tools and scripts
78
- - 🚀 **Performance Optimization** - File-based caching for improved performance
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
- - `BOOK_LANGUAGE_VERSION` - Current book language version
84
- - `PROMPTBOOK_ENGINE_VERSION` - Current engine version
84
+
85
+ - `BOOK_LANGUAGE_VERSION` - Current book language version
86
+ - `PROMPTBOOK_ENGINE_VERSION` - Current engine version
85
87
 
86
88
  ### Collection Management
87
- - `createCollectionFromDirectory` - Create promptbook collection from filesystem directory
89
+
90
+ - `createPipelineCollectionFromDirectory` - Create promptbook collection from filesystem directory
88
91
 
89
92
  ### Provider Configuration
90
- - `$provideExecutablesForNode` - Provide executable tools for Node.js environment
91
- - `$provideExecutionToolsForNode` - Auto-configure all execution tools from environment
92
- - `$provideLlmToolsConfigurationFromEnv` - Create LLM tools configuration from environment variables
93
- - `$provideLlmToolsFromEnv` - Create LLM tools from environment variables
94
- - `$provideFilesystemForNode` - Provide filesystem access for Node.js
95
- - `$provideScrapersForNode` - Provide knowledge scrapers for Node.js environment
96
- - `$provideScriptingForNode` - Provide scripting capabilities for Node.js
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
- - `FileCacheStorage` - File-based cache storage implementation
103
+
104
+ - `FileCacheStorage` - File-based cache storage implementation
100
105
 
101
106
  ### Command Execution
102
- - `$execCommand` - Execute single system command
103
- - `$execCommands` - Execute multiple system commands
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