@quilltap/plugin-types 1.8.0 → 1.8.2

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 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,17 @@ 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 instead of getToolDefinition()
183
- * and register each returned tool separately.
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
- * @returns Array of tool definitions in universal format
185
+ * This allows plugins to discover tools dynamically based on user config
186
+ * (e.g., MCP servers to connect to). The method is async to allow plugins
187
+ * to perform initialization or network requests during tool discovery.
188
+ *
189
+ * @param config User configuration for this plugin
190
+ * @returns Promise resolving to array of tool definitions in universal format
186
191
  */
187
- getMultipleToolDefinitions?: () => UniversalTool[];
192
+ getMultipleToolDefinitions?: (config: Record<string, unknown>) => Promise<UniversalTool[]>;
188
193
  /**
189
194
  * Execute a specific tool by name (optional)
190
195
  *
package/dist/index.d.ts CHANGED
@@ -179,12 +179,17 @@ 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 instead of getToolDefinition()
183
- * and register each returned tool separately.
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
- * @returns Array of tool definitions in universal format
185
+ * This allows plugins to discover tools dynamically based on user config
186
+ * (e.g., MCP servers to connect to). The method is async to allow plugins
187
+ * to perform initialization or network requests during tool discovery.
188
+ *
189
+ * @param config User configuration for this plugin
190
+ * @returns Promise resolving to array of tool definitions in universal format
186
191
  */
187
- getMultipleToolDefinitions?: () => UniversalTool[];
192
+ getMultipleToolDefinitions?: (config: Record<string, unknown>) => Promise<UniversalTool[]>;
188
193
  /**
189
194
  * Execute a specific tool by name (optional)
190
195
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/plugin-types",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Type definitions for Quilltap plugin development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",