qlogicagent 2.14.7 → 2.14.8

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.
@@ -29,6 +29,13 @@ export declare function handleAgentsList(this: AgentsHandlerHost, msg: AgentRpcR
29
29
  * summary + source for the confirm dialog (no secrets).
30
30
  */
31
31
  export declare function handleAgentsCatalog(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
32
+ /**
33
+ * Background update check (VS Code pattern): resolve latest npm versions for installed catalog agents
34
+ * in PARALLEL, off the catalog hot path. The frontend calls this AFTER the (instant) catalog render
35
+ * and merges the results to light up "update available" badges — never blocking the panel from
36
+ * opening. Returns `{ updates: CatalogUpdateInfo[] }` (only agents with a resolved latest version).
37
+ */
38
+ export declare function handleAgentsCheckUpdates(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
32
39
  /**
33
40
  * One-click install a catalog agent by id. Runs ONLY the official command from the
34
41
  * catalog manifest (never a free-form command), streaming progress via the
@@ -26,6 +26,26 @@ export declare function getCatalogPackageVersionInfo(entry: AcpBackendConfig, de
26
26
  latestVersion?: string;
27
27
  updateAvailable: boolean;
28
28
  };
29
+ /** Async, parallel-safe variant of fetchNpmLatestPackageVersion — used by the background update check
30
+ * so N agents resolve concurrently (one `npm view` each) instead of blocking sequentially. */
31
+ export declare function fetchNpmLatestPackageVersionAsync(packageName: string | null | undefined): Promise<string | null>;
32
+ export interface CatalogUpdateInfo {
33
+ id: string;
34
+ packageName?: string;
35
+ installedVersion?: string;
36
+ latestVersion?: string;
37
+ updateAvailable: boolean;
38
+ }
39
+ /**
40
+ * Resolve latest-version / update-available info for the catalog's INSTALLED agents, all in PARALLEL
41
+ * (one concurrent `npm view` per package). Non-installed agents are skipped (nothing to update).
42
+ * Returns only entries where a latest version was resolved. Safe to call off the catalog hot path.
43
+ */
44
+ export declare function getCatalogUpdateInfoAsync(entries: ReadonlyArray<{
45
+ id: string;
46
+ entry: AcpBackendConfig;
47
+ detectedVersion?: string;
48
+ }>): Promise<CatalogUpdateInfo[]>;
29
49
  export declare function normalizeWindowsAcpCommand(cliPath: string, args: string[]): {
30
50
  cliPath: string;
31
51
  acpArgs: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.14.7",
3
+ "version": "2.14.8",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -90,7 +90,7 @@
90
90
  "@agentclientprotocol/sdk": "^0.25.0",
91
91
  "@napi-rs/canvas": "0.1.100",
92
92
  "@xiaozhiclaw/pet-core": "0.1.2",
93
- "@xiaozhiclaw/provider-core": "^0.1.16",
93
+ "@xiaozhiclaw/provider-core": "^0.1.17",
94
94
  "better-sqlite3": "^12.10.0",
95
95
  "dotenv": "^17.3.1",
96
96
  "ioredis": "^5.11.1",