@quilltap/plugin-types 1.8.0 → 1.8.1
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/CHANGELOG.md +10 -0
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.8.1] - 2026-01-14
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Breaking**: `getMultipleToolDefinitions` now accepts a `config` parameter
|
|
13
|
+
- Old signature: `getMultipleToolDefinitions?: () => UniversalTool[]`
|
|
14
|
+
- New signature: `getMultipleToolDefinitions?: (config: Record<string, unknown>) => UniversalTool[]`
|
|
15
|
+
- This allows multi-tool plugins to discover tools dynamically based on user configuration
|
|
16
|
+
- Required for plugins like MCP that need configuration to connect to external servers
|
|
17
|
+
|
|
8
18
|
## [1.8.0] - 2026-01-13
|
|
9
19
|
|
|
10
20
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -179,12 +179,16 @@ interface ToolPlugin {
|
|
|
179
179
|
* Get multiple tool definitions (optional)
|
|
180
180
|
*
|
|
181
181
|
* For plugins that provide multiple tools dynamically (e.g., MCP connector).
|
|
182
|
-
* When implemented, the registry will call this
|
|
183
|
-
*
|
|
182
|
+
* When implemented, the registry will call this at request time (not startup)
|
|
183
|
+
* to get the current list of tools based on configuration.
|
|
184
184
|
*
|
|
185
|
+
* This allows plugins to discover tools dynamically based on user config
|
|
186
|
+
* (e.g., MCP servers to connect to).
|
|
187
|
+
*
|
|
188
|
+
* @param config User configuration for this plugin
|
|
185
189
|
* @returns Array of tool definitions in universal format
|
|
186
190
|
*/
|
|
187
|
-
getMultipleToolDefinitions?: () => UniversalTool[];
|
|
191
|
+
getMultipleToolDefinitions?: (config: Record<string, unknown>) => UniversalTool[];
|
|
188
192
|
/**
|
|
189
193
|
* Execute a specific tool by name (optional)
|
|
190
194
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -179,12 +179,16 @@ interface ToolPlugin {
|
|
|
179
179
|
* Get multiple tool definitions (optional)
|
|
180
180
|
*
|
|
181
181
|
* For plugins that provide multiple tools dynamically (e.g., MCP connector).
|
|
182
|
-
* When implemented, the registry will call this
|
|
183
|
-
*
|
|
182
|
+
* When implemented, the registry will call this at request time (not startup)
|
|
183
|
+
* to get the current list of tools based on configuration.
|
|
184
184
|
*
|
|
185
|
+
* This allows plugins to discover tools dynamically based on user config
|
|
186
|
+
* (e.g., MCP servers to connect to).
|
|
187
|
+
*
|
|
188
|
+
* @param config User configuration for this plugin
|
|
185
189
|
* @returns Array of tool definitions in universal format
|
|
186
190
|
*/
|
|
187
|
-
getMultipleToolDefinitions?: () => UniversalTool[];
|
|
191
|
+
getMultipleToolDefinitions?: (config: Record<string, unknown>) => UniversalTool[];
|
|
188
192
|
/**
|
|
189
193
|
* Execute a specific tool by name (optional)
|
|
190
194
|
*
|