qlogicagent 2.20.4 → 2.20.6

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.
@@ -24,14 +24,14 @@ requires: []
24
24
  如果找不到工具或 Prompt:
25
25
 
26
26
  1. 引导用户在桌面端“插件 → 连接器”安装并启用官方 **Astra Search**。
27
- 2. 优先建议 OAuth:在 Astra Search 设置中选择 OAuth 并点击“授权”。Runtime 会
28
- 打开 llmrouter 的授权页面;不要索取、显示或保存 OAuth token。
29
- 3. 如果用户选择 API Key:
27
+ 2. Xiaozhi Runtime 会在正常 llmrouter 握手后自动注入本机托管 API Key,不应再让
28
+ 用户选择认证模式或重复填写密钥;如果托管 Key 尚不可用,引导用户先完成桌面账号登录。
29
+ 3. 第三方 MCP Host 只支持用户自行配置普通 llmrouter API Key:
30
30
  - 未注册时打开或给出 <https://www.qlogicagent.com/signup>;
31
31
  - 登录后打开或给出 <https://www.qlogicagent.com/keys> 创建或重置密钥;
32
- - 让用户返回 Astra Search 设置,选择 API Key 并把密钥填入凭证框。
32
+ - 让用户返回 Astra Search 设置,把密钥填入 API Key 凭证框。
33
33
  4. 当前 Host 能安全打开外部链接时可以导航到上述页面;否则提供可点击链接。
34
34
  **不要把 API Key 发到聊天、写入项目文件、日志、记忆或 Skill。**
35
35
 
36
- 完成安装、授权、启用和连接测试后,重新发现 MCP 清单并读取 Prompt。不得改用旧
36
+ 完成安装、绑定、启用和连接测试后,重新发现 MCP 清单并读取 Prompt。不得改用旧
37
37
  REST 搜索、本地 provider 或其它隐藏 fallback。
@@ -143,6 +143,7 @@ export declare function injectSkillContextBeforeLastUser(messages: ChatMessage[]
143
143
  * channel only the tail changes — the cached prefix survives.
144
144
  */
145
145
  export declare function buildMemoryIndexBlock(globalBlock: string | null, projectBlock: string | null): string | null;
146
+ export declare function buildMemoryIndexAdmissionReceipt(globalBlock: string | null, projectBlock: string | null, sessionId: string, turnId: string): Record<string, unknown> | null;
146
147
  export declare function injectDomainGuidanceBeforeLastUser(messages: ChatMessage[], domainGuidance: string): ChatMessage[];
147
148
  export declare function refreshPermissionCheckerToolMeta(permissionChecker: PermissionMetadataResolver | null | undefined, tools: ToolDefinition[]): void;
148
149
  export declare function handleUserResponse(this: TurnControlHandlerHost, msg: AgentRpcRequest): void;
@@ -166,13 +166,19 @@ export interface TurnSuggestionsNotification {
166
166
  /** Memory recall visibility (Part B): fired when turn-time recall injected memories,
167
167
  * so the UI can render a "based on N memories" disclosure row (recall was invisible before). */
168
168
  export interface TurnMemoryRecallNotification {
169
+ /** Receipt schema for consumers that distinguish final prompt admission. */
170
+ receiptVersion?: 1;
171
+ /** Present only when the receipt witnesses admission into the final model prompt. */
172
+ stage?: "final-prompt";
169
173
  sessionId: string;
170
174
  turnId: string;
171
- /** How the single Host retrieval chain was entered. */
172
- source: "automatic" | "tool";
175
+ /** How memory entered the final prompt; resident INDEX context is not selective retrieval. */
176
+ source: "automatic" | "tool" | "resident";
173
177
  count: number;
174
178
  /** Truncated texts of the memories actually injected (post-cap), for the expanded list. */
175
179
  titles: string[];
180
+ /** Content-free identifiers for the injected memory layers. */
181
+ sources?: string[];
176
182
  }
177
183
  /** Memory write visibility (Part B): fired on the synchronous agent-remember tool path.
178
184
  * Dream/async consolidation deliberately does NOT emit this (it surfaces via next-turn recall). */
@@ -24,7 +24,6 @@ export interface UploadBatchResult {
24
24
  accepted?: number;
25
25
  status?: number;
26
26
  error?: string;
27
- refreshedToken?: boolean;
28
27
  }
29
28
  /**
30
29
  * Resolve the feedback ingest base, derived from the llmrouter base already injected into the agent
@@ -4,9 +4,4 @@ export interface LlmrouterFetchOptions {
4
4
  init?: RequestInit;
5
5
  signal?: AbortSignal;
6
6
  }
7
- export interface LlmrouterFetchResult {
8
- response: Response;
9
- refreshedToken: boolean;
10
- }
11
- export declare function isJwtExpiredOrNearExpiry(token: string | undefined, skewSeconds?: number): boolean;
12
- export declare function fetchWithLlmrouterAccess(path: string, options?: LlmrouterFetchOptions): Promise<LlmrouterFetchResult>;
7
+ export declare function fetchWithLlmrouterAccess(path: string, options?: LlmrouterFetchOptions): Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.20.4",
3
+ "version": "2.20.6",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -163,8 +163,8 @@
163
163
  "dependencies": {
164
164
  "@agentclientprotocol/sdk": "^0.25.0",
165
165
  "@napi-rs/canvas": "0.1.100",
166
- "@xiaozhiclaw/module-sdk": "0.2.2",
167
- "@xiaozhiclaw/provider-core": "^0.1.29",
166
+ "@xiaozhiclaw/module-sdk": "0.2.4",
167
+ "@xiaozhiclaw/provider-core": "^0.1.30",
168
168
  "better-sqlite3": "^12.10.0",
169
169
  "dotenv": "^17.3.1",
170
170
  "ioredis": "^5.11.1",