qlogicagent 2.20.5 → 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.
@@ -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). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.20.5",
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",