qlogicagent 2.12.10 → 2.12.12

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.
@@ -199,6 +199,22 @@ export interface TurnMediaUsageNotification {
199
199
  billingUnit: string;
200
200
  billingQuantity: number;
201
201
  }
202
+ /** Capability preflight decision for media requests. */
203
+ export interface TurnMediaCapabilityCheckNotification {
204
+ turnId: string;
205
+ mediaType: MediaResultType | string;
206
+ provider: string;
207
+ model: string;
208
+ mode: string;
209
+ allowed: boolean;
210
+ reason?: string;
211
+ capabilities: {
212
+ modes: string[];
213
+ source: string;
214
+ limits: Record<string, unknown>;
215
+ features: Record<string, unknown>;
216
+ };
217
+ }
202
218
  /** Media files auto-downloaded to local storage. */
203
219
  export interface TurnMediaPersistedNotification {
204
220
  turnId: string;
@@ -830,6 +846,7 @@ export interface NotificationMethodMap {
830
846
  "turn.media_result": TurnMediaResultNotification;
831
847
  "turn.media_progress": TurnMediaProgressNotification;
832
848
  "turn.media_usage": TurnMediaUsageNotification;
849
+ "turn.media_capability_check": TurnMediaCapabilityCheckNotification;
833
850
  "turn.media_persisted": TurnMediaPersistedNotification;
834
851
  "turn.task_updated": TurnTaskUpdatedNotification;
835
852
  "turn.todos_updated": TurnTodosUpdatedNotification;
@@ -1,5 +1,5 @@
1
1
  export { assembleSystemPrompt, clearSystemPromptSections, systemPromptSection, type SystemPromptSection, } from "./system-prompt-sections.js";
2
- export { PROMPT_POLICY_VERSION, createPromptPolicyHeader } from "./prompt-policy.js";
2
+ export { PROMPT_POLICY_REGISTRY, PROMPT_POLICY_VERSION, createPromptPolicyHeader, type PromptPolicyRegistry, type PromptPolicyRegistryEntry, } from "./prompt-policy.js";
3
3
  export { getInstructions, buildInstructionsPrompt, resetInstructionCache, } from "./instruction-loader.js";
4
4
  export { createEnvironmentContextSection, createTaskGuidanceSection, createToolGuidanceSection, createLanguageSection } from "./environment-context.js";
5
5
  export { detectTaskDomain, resolveTaskDomain, loadProjectTaskDomain, persistTaskDomain, shouldPersistDomain, type TaskDomain, type DomainResolutionContext } from "./task-domain.js";
@@ -1,2 +1,12 @@
1
1
  export declare const PROMPT_POLICY_VERSION = 1;
2
- export declare function createPromptPolicyHeader(version?: number): string;
2
+ export interface PromptPolicyRegistryEntry {
3
+ id: string;
4
+ version: number;
5
+ summary: string;
6
+ }
7
+ export interface PromptPolicyRegistry {
8
+ version: number;
9
+ entries: readonly PromptPolicyRegistryEntry[];
10
+ }
11
+ export declare const PROMPT_POLICY_REGISTRY: PromptPolicyRegistry;
12
+ export declare function createPromptPolicyHeader(registry?: PromptPolicyRegistry): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.12.10",
3
+ "version": "2.12.12",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -89,7 +89,7 @@
89
89
  "@agentclientprotocol/sdk": "^0.25.0",
90
90
  "@napi-rs/canvas": "0.1.100",
91
91
  "@xiaozhiclaw/pet-core": "0.1.1",
92
- "@xiaozhiclaw/provider-core": "0.1.8",
92
+ "@xiaozhiclaw/provider-core": "^0.1.9",
93
93
  "better-sqlite3": "^12.10.0",
94
94
  "dotenv": "^17.3.1",
95
95
  "ioredis": "^5.11.1",
@@ -1,46 +0,0 @@
1
- /**
2
- * SessionMemoryIn-memory session message store with JSONL persistence.
3
- *
4
- * CC alignment: messages live in memory during the session lifetime.
5
- * JSONL is the sole persistent source of truth (for crash recovery).
6
- * Gateway never owns message dataAgent is the single authority.
7
- *
8
- * Design:
9
- * - Map<sessionId, ChatMessage[]> holds active session messages
10
- * - On first access, lazy-loads from transcript.jsonl
11
- * - appendMessage() writes to memory AND appends to JSONL atomically
12
- * - getMessages() returns from memory (no disk I/O on hot path)
13
- */
14
- import type { ChatMessage } from "../../protocol/wire/index.js";
15
- export declare class SessionMemory {
16
- private sessions;
17
- private projectRoot;
18
- constructor(projectRoot: string);
19
- setProjectRoot(projectRoot: string): void;
20
- /**
21
- * Get messages for a session. Lazy-loads from JSONL on first access.
22
- */
23
- getMessages(sessionId: string): ChatMessage[];
24
- /**
25
- * Append a message to session memory and persist to JSONL.
26
- */
27
- appendMessage(sessionId: string, message: ChatMessage, turnId?: string): void;
28
- /**
29
- * Check if a session is loaded in memory.
30
- */
31
- hasSession(sessionId: string): boolean;
32
- /**
33
- * Initialize an empty session (for newly created sessions).
34
- */
35
- initSession(sessionId: string): void;
36
- /**
37
- * Drop a session from memory (e.g., on session.ended).
38
- * Does NOT delete JSONLdata persists for future resume.
39
- */
40
- evictSession(sessionId: string): void;
41
- /**
42
- * Get the count of messages in a session.
43
- */
44
- getMessageCount(sessionId: string): number;
45
- private loadFromDisk;
46
- }