@yushaw/sanqian-sdk 0.3.12 → 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.
@@ -624,8 +624,10 @@ interface ListCapabilitiesOptions {
624
624
  category?: string;
625
625
  /** SDK app name (for including own private agents) */
626
626
  appName?: string;
627
- /** Agent scope filter: "searchable" (default) or "available" (includes non-searchable but enabled agents) */
628
- scope?: "searchable" | "available";
627
+ /** Agent scope filter: "searchable" (default), "available" (all in pool), or "enabled" (all enabled agents including other SDK apps) */
628
+ scope?: "searchable" | "available" | "enabled";
629
+ /** Include disabled agents (default: false) */
630
+ includeDisabled?: boolean;
629
631
  }
630
632
  /** Options for searching capabilities */
631
633
  interface SearchCapabilitiesOptions {
package/dist/index.d.mts CHANGED
@@ -624,8 +624,10 @@ interface ListCapabilitiesOptions {
624
624
  category?: string;
625
625
  /** SDK app name (for including own private agents) */
626
626
  appName?: string;
627
- /** Agent scope filter: "searchable" (default) or "available" (includes non-searchable but enabled agents) */
628
- scope?: "searchable" | "available";
627
+ /** Agent scope filter: "searchable" (default), "available" (all in pool), or "enabled" (all enabled agents including other SDK apps) */
628
+ scope?: "searchable" | "available" | "enabled";
629
+ /** Include disabled agents (default: false) */
630
+ includeDisabled?: boolean;
629
631
  }
630
632
  /** Options for searching capabilities */
631
633
  interface SearchCapabilitiesOptions {
package/dist/index.d.ts CHANGED
@@ -624,8 +624,10 @@ interface ListCapabilitiesOptions {
624
624
  category?: string;
625
625
  /** SDK app name (for including own private agents) */
626
626
  appName?: string;
627
- /** Agent scope filter: "searchable" (default) or "available" (includes non-searchable but enabled agents) */
628
- scope?: "searchable" | "available";
627
+ /** Agent scope filter: "searchable" (default), "available" (all in pool), or "enabled" (all enabled agents including other SDK apps) */
628
+ scope?: "searchable" | "available" | "enabled";
629
+ /** Include disabled agents (default: false) */
630
+ includeDisabled?: boolean;
629
631
  }
630
632
  /** Options for searching capabilities */
631
633
  interface SearchCapabilitiesOptions {
package/dist/index.js CHANGED
@@ -2146,6 +2146,9 @@ var SanqianSDK = class _SanqianSDK {
2146
2146
  if (options?.scope) {
2147
2147
  params.append("scope", options.scope);
2148
2148
  }
2149
+ if (options?.includeDisabled) {
2150
+ params.append("includeDisabled", "true");
2151
+ }
2149
2152
  const url = `${this.getHttpBaseUrl()}/api/capabilities?${params.toString()}`;
2150
2153
  const response = await fetch(url);
2151
2154
  if (!response.ok) {
@@ -2231,7 +2234,7 @@ var SanqianSDK = class _SanqianSDK {
2231
2234
  const caps = await this.listCapabilities({
2232
2235
  type: "agent",
2233
2236
  appName: this.config.appName,
2234
- scope: "available"
2237
+ scope: "enabled"
2235
2238
  });
2236
2239
  return caps;
2237
2240
  }