@yushaw/sanqian-sdk 0.3.11 → 0.3.13

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.mjs CHANGED
@@ -733,7 +733,8 @@ var SanqianSDK = class _SanqianSDK {
733
733
  name: this.config.appName,
734
734
  version: this.config.appVersion,
735
735
  display_name: this.config.displayName,
736
- launch_command: this.config.launchCommand
736
+ launch_command: this.config.launchCommand,
737
+ metadata: this.config.metadata
737
738
  },
738
739
  tools: this.config.tools.map((t) => ({
739
740
  name: `${this.config.appName}:${t.name}`,
@@ -2135,6 +2136,9 @@ var SanqianSDK = class _SanqianSDK {
2135
2136
  if (options?.scope) {
2136
2137
  params.append("scope", options.scope);
2137
2138
  }
2139
+ if (options?.includeDisabled) {
2140
+ params.append("includeDisabled", "true");
2141
+ }
2138
2142
  const url = `${this.getHttpBaseUrl()}/api/capabilities?${params.toString()}`;
2139
2143
  const response = await fetch(url);
2140
2144
  if (!response.ok) {
@@ -2220,7 +2224,7 @@ var SanqianSDK = class _SanqianSDK {
2220
2224
  const caps = await this.listCapabilities({
2221
2225
  type: "agent",
2222
2226
  appName: this.config.appName,
2223
- scope: "available"
2227
+ scope: "enabled"
2224
2228
  });
2225
2229
  return caps;
2226
2230
  }