@quilltap/plugin-types 1.8.1 → 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/dist/index.d.mts CHANGED
@@ -183,12 +183,13 @@ interface ToolPlugin {
183
183
  * to get the current list of tools based on configuration.
184
184
  *
185
185
  * This allows plugins to discover tools dynamically based on user config
186
- * (e.g., MCP servers to connect to).
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.
187
188
  *
188
189
  * @param config User configuration for this plugin
189
- * @returns Array of tool definitions in universal format
190
+ * @returns Promise resolving to array of tool definitions in universal format
190
191
  */
191
- getMultipleToolDefinitions?: (config: Record<string, unknown>) => UniversalTool[];
192
+ getMultipleToolDefinitions?: (config: Record<string, unknown>) => Promise<UniversalTool[]>;
192
193
  /**
193
194
  * Execute a specific tool by name (optional)
194
195
  *
package/dist/index.d.ts CHANGED
@@ -183,12 +183,13 @@ interface ToolPlugin {
183
183
  * to get the current list of tools based on configuration.
184
184
  *
185
185
  * This allows plugins to discover tools dynamically based on user config
186
- * (e.g., MCP servers to connect to).
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.
187
188
  *
188
189
  * @param config User configuration for this plugin
189
- * @returns Array of tool definitions in universal format
190
+ * @returns Promise resolving to array of tool definitions in universal format
190
191
  */
191
- getMultipleToolDefinitions?: (config: Record<string, unknown>) => UniversalTool[];
192
+ getMultipleToolDefinitions?: (config: Record<string, unknown>) => Promise<UniversalTool[]>;
192
193
  /**
193
194
  * Execute a specific tool by name (optional)
194
195
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/plugin-types",
3
- "version": "1.8.1",
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",