@lobehub/market-sdk 0.32.1 → 0.32.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
@@ -5737,6 +5737,15 @@ declare class AuthService extends BaseSDK {
5737
5737
  * const result = await sdk.skills.callTool('linear', {
5738
5738
  * tool: 'create_issue',
5739
5739
  * args: { title: 'New issue', team: 'Engineering' }
5740
+ * ...
5741
+ * }});
5742
+ * ```
5743
+ * @example
5744
+ * ```typescript
5745
+ * const result = await sdk.skills.callTool('github', {
5746
+ * tool: 'create_issue',
5747
+ * args: { title: 'New issue', team: 'Engineering' }
5748
+ * ...
5740
5749
  * });
5741
5750
  * ```
5742
5751
  */
package/dist/index.mjs CHANGED
@@ -4148,12 +4148,14 @@ var SkillService = class extends BaseSDK {
4148
4148
  */
4149
4149
  async callTool(provider, params, options) {
4150
4150
  log20("Calling tool %s on provider %s", params.tool, provider);
4151
+ const { args, tool, ...rest } = params;
4151
4152
  const result = await this.request(
4152
4153
  `/v1/skill/${encodeURIComponent(provider)}/call`,
4153
4154
  {
4154
4155
  body: JSON.stringify({
4155
- args: params.args || {},
4156
- tool: params.tool
4156
+ args: args || {},
4157
+ tool,
4158
+ ...rest
4157
4159
  }),
4158
4160
  headers: {
4159
4161
  "Content-Type": "application/json"