qlogicagent 2.14.7 → 2.14.9

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
@@ -18,14 +18,28 @@ export declare function getNpmInstallPackageName(command: string | undefined): s
18
18
  export declare function compareSemverVersions(a: string, b: string): number;
19
19
  export declare function isVersionNewer(latest: string | null | undefined, current: string | null | undefined): boolean;
20
20
  export declare function readGlobalNpmPackageVersion(packageName: string | null | undefined): string | null;
21
- export declare function fetchNpmLatestPackageVersion(packageName: string | null | undefined): string | null;
22
21
  export declare function resolveInstalledNpmPackageVersionFromInstall(install: AcpBackendConfig["install"] | undefined): string | null;
23
- export declare function getCatalogPackageVersionInfo(entry: AcpBackendConfig, detectedVersion?: string): {
22
+ export declare function getCatalogInstalledVersion(entry: AcpBackendConfig, detectedVersion?: string): string | undefined;
23
+ /** Resolve a package's latest published version via `npm view` (async + cached). Used by the background
24
+ * update check so N agents resolve concurrently (one `npm view` each) instead of blocking sequentially. */
25
+ export declare function fetchNpmLatestPackageVersionAsync(packageName: string | null | undefined): Promise<string | null>;
26
+ export interface CatalogUpdateInfo {
27
+ id: string;
24
28
  packageName?: string;
25
29
  installedVersion?: string;
26
30
  latestVersion?: string;
27
31
  updateAvailable: boolean;
28
- };
32
+ }
33
+ /**
34
+ * Resolve latest-version / update-available info for the catalog's INSTALLED agents, all in PARALLEL
35
+ * (one concurrent `npm view` per package). Non-installed agents are skipped (nothing to update).
36
+ * Returns only entries where a latest version was resolved. Safe to call off the catalog hot path.
37
+ */
38
+ export declare function getCatalogUpdateInfoAsync(entries: ReadonlyArray<{
39
+ id: string;
40
+ entry: AcpBackendConfig;
41
+ detectedVersion?: string;
42
+ }>): Promise<CatalogUpdateInfo[]>;
29
43
  export declare function normalizeWindowsAcpCommand(cliPath: string, args: string[]): {
30
44
  cliPath: string;
31
45
  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.9",
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.18",
94
94
  "better-sqlite3": "^12.10.0",
95
95
  "dotenv": "^17.3.1",
96
96
  "ioredis": "^5.11.1",