qlogicagent 2.24.14 → 2.24.16

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.
@@ -53,10 +53,14 @@ interface ModalityRegistryView {
53
53
  isToolProjected(purpose: ModelPurpose): boolean;
54
54
  }
55
55
  export declare function hostMediaModalityView(toolCatalog: ToolCatalog | undefined): ModalityRegistryView;
56
+ export interface MediaUnderstandingReference {
57
+ value: string;
58
+ parameter: "image_url" | "video_url" | "audio_url" | "asset_ref";
59
+ }
56
60
  export interface UnsupportedMediaRefs {
57
- image: string[];
58
- video: string[];
59
- audio: string[];
61
+ image: MediaUnderstandingReference[];
62
+ video: MediaUnderstandingReference[];
63
+ audio: MediaUnderstandingReference[];
60
64
  }
61
65
  /** Plan for the media a text-only main model can't consume, produced by detectUnsupportedMediaForTools. */
62
66
  export interface MediaUnderstandingPlan {
@@ -30,7 +30,6 @@ export interface LLMRequest {
30
30
  type: string;
31
31
  config?: Record<string, unknown>;
32
32
  }>;
33
- previousResponseId?: string;
34
33
  store?: boolean;
35
34
  storeExpireAt?: number;
36
35
  instructions?: string;
@@ -67,6 +66,7 @@ export type LLMChunk = {
67
66
  id?: string;
68
67
  name?: string;
69
68
  arguments: string;
69
+ argumentsMode?: "append" | "replace";
70
70
  } | {
71
71
  type: "reasoning_delta";
72
72
  text: string;
@@ -46,6 +46,7 @@ export interface ToolCatalog {
46
46
  getToolManifest(): ToolDefinition[];
47
47
  getToolNames(): string[];
48
48
  setTools(tools: RuntimeToolContract[]): void;
49
+ replaceTools(removeNames: readonly string[], tools: RuntimeToolContract[]): void;
49
50
  addTool(tool: RuntimeToolContract): void;
50
51
  addTools(tools: RuntimeToolContract[]): void;
51
52
  removeTool(name: string): boolean;
@@ -4,6 +4,7 @@ interface ToolRegistryLike {
4
4
  addTools(tools: PortableTool[]): void;
5
5
  getToolNames(): string[];
6
6
  removeTool(name: string): boolean;
7
+ replaceTools(removeNames: readonly string[], tools: PortableTool[]): void;
7
8
  }
8
9
  export type McpServerToolInfo = ServerToolInfo & {
9
10
  readonly title?: string;
@@ -154,8 +155,16 @@ export declare class McpManager {
154
155
  disconnectAll(): Promise<void>;
155
156
  private toPortableTool;
156
157
  private refreshServerInstructions;
158
+ private readServerSnapshot;
159
+ private readServerInstructions;
160
+ private setServerInstructions;
157
161
  private wrapToolsForWorkspaceBoundary;
158
162
  private injectPortableTools;
163
+ private preparePortableTools;
164
+ private recordInjectedTools;
165
+ private replaceInjectedServerTools;
166
+ private replaceAllInjectedTools;
167
+ private replaceRegisteredTools;
159
168
  private retractServerTools;
160
169
  private registerTools;
161
170
  private removeRegisteredTool;
@@ -10,8 +10,9 @@ import type { ToolDefinition } from "../protocol/wire/index.js";
10
10
  import { AGENT_DISALLOWED_TOOLS, CUSTOM_AGENT_DISALLOWED_TOOLS, filterToolsForAgent } from "./tool-access.js";
11
11
  export { AGENT_DISALLOWED_TOOLS, CUSTOM_AGENT_DISALLOWED_TOOLS, filterToolsForAgent };
12
12
  export declare class ToolRegistry {
13
- private readonly toolPool;
13
+ private toolPool;
14
14
  setTools(tools: PortableTool[]): void;
15
+ replaceTools(removeNames: readonly string[], tools: PortableTool[]): void;
15
16
  addTool(tool: PortableTool<any>): void;
16
17
  addTools(tools: PortableTool<any>[]): void;
17
18
  removeTool(name: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.24.14",
3
+ "version": "2.24.16",
4
4
  "packageManager": "pnpm@10.23.0",
5
5
  "description": "XiaozhiClaw standard ACP Agent adapter",
6
6
  "type": "module",
@@ -84,7 +84,7 @@
84
84
  "@agentclientprotocol/sdk": "^0.25.0",
85
85
  "@napi-rs/canvas": "0.1.100",
86
86
  "@xiaozhiclaw/module-sdk": "0.4.5",
87
- "@xiaozhiclaw/provider-core": "0.1.46",
87
+ "@xiaozhiclaw/provider-core": "0.1.47",
88
88
  "ajv": "8.20.0",
89
89
  "better-sqlite3": "^12.10.0",
90
90
  "dotenv": "^17.3.1",