bailian-cli-core 2.8.2 → 2.8.3

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +10 -0
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -134,6 +134,7 @@ interface ChatRequest {
134
134
  };
135
135
  enable_thinking?: boolean;
136
136
  thinking_budget?: number;
137
+ enable_search?: boolean;
137
138
  modalities?: string[];
138
139
  audio?: {
139
140
  voice: string;
@@ -2068,6 +2069,15 @@ interface Command<F extends FlagsDef = FlagsDef, Prepared = undefined> {
2068
2069
  description: LocalizedText;
2069
2070
  /** Credential this command requires. See {@link AuthRequirement}. */
2070
2071
  auth: AuthRequirement;
2072
+ /**
2073
+ * Capability key used for Profile API-key selection (see
2074
+ * `selectApiKeyResolutionSources`). Defaults to the command path joined with
2075
+ * ".". Commands whose network target switches with a flag supply a resolver
2076
+ * so credential selection follows the actual connection: `search web` model
2077
+ * mode talks Chat Completions and authenticates as `text.chat`, while
2078
+ * `--mode mcp` keeps the MCP-only `search.web` capability.
2079
+ */
2080
+ authCapability?: (flags: ParsedFlags<F>) => string;
2071
2081
  /**
2072
2082
  * Best-effort secondary console credential for `auth: "apiKey"` commands.
2073
2083
  * When true, the runtime additionally resolves the console credential and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bailian-cli-core",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "Core SDK for bailian-cli. See https://www.npmjs.com/package/bailian-cli for usage.",
5
5
  "homepage": "https://bailian.console.aliyun.com/cli",
6
6
  "bugs": {