qlogicagent 2.10.41 → 2.10.43

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.
@@ -6,6 +6,7 @@ export interface SettingsHandlerHost {
6
6
  export declare function handleSettingsListProviders(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
7
7
  export declare function handleSettingsAddKey(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
8
8
  export declare function handleSettingsRemoveKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
9
+ export declare function handleSettingsGetKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
9
10
  export declare function handleSettingsToggleKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
10
11
  export declare function handleSettingsToggleModel(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
11
12
  export declare function handleSettingsListModels(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
@@ -220,6 +220,12 @@ export interface SettingsAddKeyResult {
220
220
  export interface SettingsRemoveKeyParams {
221
221
  keyId: string;
222
222
  }
223
+ export interface SettingsGetKeyParams {
224
+ keyId: string;
225
+ }
226
+ export interface SettingsGetKeyResult {
227
+ key: string;
228
+ }
223
229
  export interface SettingsToggleKeyParams {
224
230
  keyId: string;
225
231
  enabled: boolean;
@@ -1139,6 +1145,10 @@ export interface RpcMethodMap {
1139
1145
  ok: true;
1140
1146
  };
1141
1147
  };
1148
+ "settings.getKey": {
1149
+ params: SettingsGetKeyParams;
1150
+ result: SettingsGetKeyResult;
1151
+ };
1142
1152
  "settings.toggleKey": {
1143
1153
  params: SettingsToggleKeyParams;
1144
1154
  result: {
@@ -93,6 +93,7 @@ export declare class KeyPool {
93
93
  enabled?: boolean;
94
94
  }): string;
95
95
  removeKey(keyId: string): void;
96
+ getKeyById(keyId: string): string | null;
96
97
  updateKey(keyId: string, updates: Partial<Pick<KeyConfig, "label" | "weight" | "enabled">>): void;
97
98
  /** Explicitly set a key's health status (e.g. after background validation). */
98
99
  setKeyHealth(keyId: string, status: KeyHealthStatus): void;
@@ -80,6 +80,7 @@ export declare class ModelRegistry {
80
80
  weight?: number;
81
81
  }): string;
82
82
  removeKey(keyId: string): void;
83
+ getKeyById(keyId: string): string | null;
83
84
  updateKey(keyId: string, updates: Partial<Pick<KeyConfig, "label" | "weight" | "enabled">>): void;
84
85
  setKeyHealth(keyId: string, status: "healthy" | "degraded" | "cooldown" | "disabled"): void;
85
86
  setStrategy(providerId: string, strategy: LoadBalanceStrategy): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.10.41",
3
+ "version": "2.10.43",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",