qlogicagent 2.13.1 → 2.13.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.
@@ -2,11 +2,13 @@ import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/in
2
2
  export interface SettingsHandlerHost {
3
3
  sendError?(id: string | number, code: number, message: string): void;
4
4
  sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
5
+ writeClipboard?(text: string): Promise<void>;
5
6
  }
6
7
  export declare function handleSettingsListProviders(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
7
8
  export declare function handleSettingsAddKey(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
8
9
  export declare function handleSettingsRemoveKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
9
10
  export declare function handleSettingsGetKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
11
+ export declare function handleSettingsCopyKey(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
10
12
  export declare function handleSettingsToggleKey(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
11
13
  export declare function handleSettingsToggleModel(this: SettingsHandlerHost, msg: AgentRpcRequest): void;
12
14
  export declare function handleSettingsListModels(this: SettingsHandlerHost, msg: AgentRpcRequest): Promise<void>;
@@ -50,6 +50,11 @@ export interface ModelRegistryConfig {
50
50
  }>;
51
51
  bindings: PurposeBindings;
52
52
  tunables?: Record<string, unknown>;
53
+ injectedKeys?: Record<string, InjectedKeyState>;
54
+ }
55
+ export interface InjectedKeyState {
56
+ enabled?: boolean;
57
+ removed?: boolean;
53
58
  }
54
59
  export interface ResolvedModel {
55
60
  provider: string;
@@ -65,6 +70,7 @@ export declare class ModelRegistry {
65
70
  private models;
66
71
  private modelEnabledOverrides;
67
72
  private bindings;
73
+ private injectedKeyStates;
68
74
  private settingsPath;
69
75
  private changeListeners;
70
76
  constructor(config?: ModelRegistryConfig);
@@ -129,8 +135,13 @@ export declare class ModelRegistry {
129
135
  private acquireKeyForProviderVariant;
130
136
  private resolveTechnicalVariant;
131
137
  private providerVariantKeyCandidates;
138
+ private hasLlmrouterEnvKey;
139
+ private hasEnabledLlmrouterEnvKey;
140
+ private getInjectedKeyState;
141
+ private setInjectedKeyState;
132
142
  private loadModelState;
133
143
  private exportModelState;
144
+ private exportInjectedKeyStates;
134
145
  private emitChange;
135
146
  }
136
147
  export declare function getModelRegistry(): ModelRegistry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.13.1",
3
+ "version": "2.13.3",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",