qlogicagent 2.19.9 → 2.19.10

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.
@@ -10,11 +10,3 @@ export interface CommunityHandlerHost {
10
10
  export declare function handleCommunityResolveInstall(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
11
11
  export declare function handleCommunityListResourceVersions(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
12
12
  export declare function handleCommunityInstallResource(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
13
- /**
14
- * Handshake step ① — probe declared runtime dependencies (vetted catalog only).
15
- * The plugin page calls this right after install so "点 + 即可用" holds: missing
16
- * quick runtimes are auto-installed, heavy/unknown ones surface a consent card.
17
- */
18
- export declare function handleCommunityRuntimeStatus(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
19
- /** Handshake step ② — install ONE vetted runtime dependency (catalog recipe only). */
20
- export declare function handleCommunityInstallRuntime(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
@@ -1,35 +1,7 @@
1
- /**
2
- * Files + Instructions handlers — extracted from StdioServer.
3
- * Handles: files.list, files.create, files.rename, files.delete, files.gitStatus,
4
- * instructions.list, instructions.read, instructions.write, instructions.delete
5
- */
6
- import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
1
+ import type { AgentRpcError, AgentRpcRequest } from "../../protocol/wire/index.js";
7
2
  export interface FilesHandlerHost {
8
- currentTurnId?: string;
9
3
  getActiveProjectRoot(): string;
10
- sendNotification?(method: string, params: Record<string, unknown>): void;
11
4
  sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
12
5
  }
13
- export declare function resolveProjectDir(projectId: string): string | null;
14
- export declare function handleFilesList(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
15
- export declare function handleFilesCreate(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
16
- /**
17
- * files.readLocal — read an ABSOLUTE local path for chat file-reference preview.
18
- * Workspace-relative reads keep going through files.read; this endpoint serves the
19
- * "user/agent mentioned a file outside every project workspace" preview gap (the
20
- * media proxy only serves media extensions, so .txt/.log etc. had no channel).
21
- */
22
- export declare function handleFilesReadLocal(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
23
- export declare function handleFilesRead(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
24
- export declare function handleFilesRename(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
25
- export declare function handleFilesDelete(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
26
- export declare function handleFilesMove(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
27
- export declare function handleFilesCopy(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
28
- export declare function handleFilesUndoOperation(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
29
- export declare function handleFilesSearch(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
30
- export declare function handleFilesGitStatus(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
31
- export declare function handleInstructionsList(this: FilesHandlerHost, msg: AgentRpcRequest): void;
32
- export declare function handleInstructionsRead(this: FilesHandlerHost, msg: AgentRpcRequest): void;
33
- export declare function handleInstructionsWrite(this: FilesHandlerHost, msg: AgentRpcRequest): void;
34
- export declare function handleInstructionsDelete(this: FilesHandlerHost, msg: AgentRpcRequest): void;
6
+ export declare function resolveProjectDir(projectId: string): string | undefined;
35
7
  export declare function handlePlansList(this: FilesHandlerHost, msg: AgentRpcRequest): void;
@@ -5,25 +5,12 @@ interface ActiveRuntimeEntry {
5
5
  export interface ValidatedActiveIndustrialRuntime extends ActiveRuntimeEntry {
6
6
  absoluteEntrypoint: string;
7
7
  }
8
- type ActiveFileWriter = (filePath: string, data: string | Buffer) => Promise<void>;
9
8
  export interface IndustrialRuntimeStoreOptions {
10
9
  rootDir?: string;
11
10
  }
12
- export interface ActivateIndustrialRuntimeInput extends IndustrialRuntimeStoreOptions {
13
- stagingDir: string;
14
- runtimeId: string;
15
- version: string;
16
- entrypoint: string;
17
- writeActiveFile?: ActiveFileWriter;
18
- }
11
+ /** Read-only projection of the Runtime-owned industrial runtime store. */
19
12
  export declare function industrialRuntimeRoot(): string;
20
- export declare function createIndustrialRuntimeStaging(options?: IndustrialRuntimeStoreOptions): Promise<string>;
21
- export declare function activateIndustrialRuntime(input: ActivateIndustrialRuntimeInput): Promise<{
22
- versionDir: string;
23
- entrypoint: string;
24
- }>;
25
13
  export declare function runtimeEntrypoint(runtimeId: string, options?: IndustrialRuntimeStoreOptions): Promise<string | undefined>;
26
14
  export declare function activeIndustrialRuntime(runtimeId: string, options?: IndustrialRuntimeStoreOptions): Promise<ValidatedActiveIndustrialRuntime | undefined>;
27
15
  export declare function runtimePathEntries(options?: IndustrialRuntimeStoreOptions): Promise<string[]>;
28
- export declare function assertIndustrialRuntimeVersion(version: string): void;
29
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.19.9",
3
+ "version": "2.19.10",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -146,7 +146,7 @@
146
146
  "@agentclientprotocol/sdk": "^0.25.0",
147
147
  "@napi-rs/canvas": "0.1.100",
148
148
  "@xiaozhiclaw/model-access": "file:vendor\\xiaozhiclaw-model-access-0.1.0.tgz",
149
- "@xiaozhiclaw/provider-core": "^0.1.26",
149
+ "@xiaozhiclaw/provider-core": "^0.1.27",
150
150
  "better-sqlite3": "^12.10.0",
151
151
  "dotenv": "^17.3.1",
152
152
  "ioredis": "^5.11.1",
@@ -154,13 +154,11 @@
154
154
  "mcporter": "^0.12.0",
155
155
  "nanoid": "^5.1.5",
156
156
  "pino": "^9.6.0",
157
- "pino-pretty": "^13.0.0",
158
- "yauzl": "3.4.0"
157
+ "pino-pretty": "^13.0.0"
159
158
  },
160
159
  "devDependencies": {
161
160
  "@types/better-sqlite3": "^7.6.13",
162
161
  "@types/node": "^22.15.0",
163
- "@types/yauzl": "3.4.0",
164
162
  "esbuild": "^0.28.0",
165
163
  "javascript-obfuscator": "^5.4.3",
166
164
  "oxlint": "1.67.0",
@@ -1,14 +0,0 @@
1
- export interface IndustrialRuntimeArchiveInput {
2
- archivePath: string;
3
- targetDir: string;
4
- runtimeId: string;
5
- version: string;
6
- entrypoint: string;
7
- }
8
- export interface ValidatedIndustrialRuntimePackage {
9
- runtimeId: string;
10
- version: string;
11
- entrypoint: string;
12
- signedFiles: string[];
13
- }
14
- export declare function extractIndustrialRuntimeArchive(input: IndustrialRuntimeArchiveInput): Promise<ValidatedIndustrialRuntimePackage>;
@@ -1,112 +0,0 @@
1
- import { type VerifyAuthenticodeInput } from "./windows-authenticode.js";
2
- /**
3
- * Vetted runtime-dependency catalog for community skills.
4
- *
5
- * A skill manifest may declare `runtime: ["officecli"]` — bare ids only. The
6
- * registry stays declarative: WHAT a skill needs lives in Hub data, but HOW to
7
- * probe/install it lives here, reviewed in code. A runtime is a single-file
8
- * binary mirrored to our OSS; the installer resolves a Hub-signed download URL,
9
- * verifies its sha256 BEFORE placing the file, and never executes registry
10
- * payloads — so a compromised registry row cannot turn "install runtime" into
11
- * arbitrary code execution. Unknown ids surface as "manual" in the handshake UI
12
- * instead of running anything. CN-reliable: no dependency on foreign mirrors.
13
- */
14
- export interface RuntimeDependencySpec {
15
- id: string;
16
- /** Human-facing name shown in the handshake card. */
17
- label: string;
18
- /** Executable probed on PATH (and known-location fallbacks). */
19
- bin: string;
20
- probeArgs: string[];
21
- /** Known install locations not yet on PATH in this process (fresh installs). */
22
- extraWindowsPaths?: string[];
23
- /**
24
- * quick=true → the handshake auto-installs without an extra consent step
25
- * (small, single-artifact). quick=false → the client must show a consent
26
- * card first (large download / system-level changes).
27
- */
28
- quick: boolean;
29
- /** Honest size estimate surfaced in the consent card. */
30
- estSizeMB?: number;
31
- install: RuntimeInstallMode;
32
- installTimeoutMs: number;
33
- docsUrl?: string;
34
- }
35
- export interface UserBinaryInstall {
36
- kind: "user-binary";
37
- /** Resolve id for the Hub (GET /api/v15/runtime/:id/resolve?platform=…). */
38
- resourceId: string;
39
- /** Absolute path the per-platform binary is written to (matches upstream layout). */
40
- dest(): string;
41
- /** Directory appended to the persistent user PATH so the agent shell finds `bin`. */
42
- pathDir(): string;
43
- /** chmod 0o755 after writing (POSIX). */
44
- posixExecutable: boolean;
45
- /** Verified release archives expose exactly one executable entry per host family. */
46
- archiveEntries?: {
47
- win32: string;
48
- default: string;
49
- };
50
- }
51
- export interface AstraClawPrivateZipInstall {
52
- kind: "astraclaw-private-zip";
53
- runtimeId: string;
54
- }
55
- export type RuntimeInstallMode = UserBinaryInstall | AstraClawPrivateZipInstall;
56
- export declare const RUNTIME_DEPENDENCIES: Record<string, RuntimeDependencySpec>;
57
- export interface RuntimeDependencyStatus {
58
- id: string;
59
- /** false → not in the vetted catalog: the client can only show guidance. */
60
- known: boolean;
61
- label?: string;
62
- present: boolean;
63
- version?: string;
64
- /** Absolute path when found via a known location instead of PATH. */
65
- binPath?: string;
66
- quick?: boolean;
67
- estSizeMB?: number;
68
- docsUrl?: string;
69
- }
70
- /** Resolved download for a hub-binary runtime (signed URL + integrity metadata). */
71
- export interface ResolvedRuntimeBinary {
72
- id: string;
73
- platform: string;
74
- version: string;
75
- downloadUrl: string;
76
- /** sha256 hex digest — the integrity anchor verified before placing the file. */
77
- checksum: string;
78
- sizeBytes: number;
79
- format: "executable" | "zip" | "tar.gz";
80
- entrypoint?: string;
81
- }
82
- export type RuntimeExecFile = (file: string, args: string[], options: {
83
- timeout: number;
84
- windowsHide: boolean;
85
- encoding: "utf8";
86
- }, callback: (error: Error | null, stdout: string, stderr: string) => void) => unknown;
87
- export interface RuntimeInstallDeps {
88
- /** Resolve a hub-binary runtime via the Hub (community client). */
89
- resolveBinary(id: string, platform: string): Promise<ResolvedRuntimeBinary>;
90
- /** Injectable for tests. */
91
- fetchFn?: typeof fetch;
92
- hostPlatform?: string;
93
- hostArch?: string;
94
- rootDir?: string;
95
- verifyAuthenticodeFiles?: (input: VerifyAuthenticodeInput) => Promise<void>;
96
- execFileFn?: RuntimeExecFile;
97
- }
98
- /** Map this host to the officecli asset platform key (`<os>-<arch>`). */
99
- export declare function runtimePlatformKey(platform?: string, architecture?: string): string;
100
- export declare function probeRuntimeDependency(id: string): Promise<RuntimeDependencyStatus>;
101
- export interface RuntimeInstallResult {
102
- id: string;
103
- ok: true;
104
- version?: string;
105
- binPath?: string;
106
- }
107
- export declare function installRuntimeDependency(id: string, deps: RuntimeInstallDeps): Promise<RuntimeInstallResult>;
108
- /**
109
- * Read only the allowlisted executable from a checksum-verified release archive. `tar -xOf`
110
- * streams the named entry without unpacking sibling files or trusting archive paths.
111
- */
112
- export declare function extractRuntimeArchive(archiveBytes: Buffer, executableEntry: string): Buffer;
@@ -1,18 +0,0 @@
1
- export type AuthenticodeExecFile = (file: string, args: string[], options: {
2
- encoding: "utf8";
3
- timeout: number;
4
- maxBuffer: number;
5
- windowsHide: boolean;
6
- }, callback: (error: Error | null, stdout: string, stderr: string) => void) => unknown;
7
- export interface AuthenticodeFile {
8
- absolutePath: string;
9
- relativePath: string;
10
- }
11
- export interface VerifyAuthenticodeInput {
12
- files: AuthenticodeFile[];
13
- execFileFn?: AuthenticodeExecFile;
14
- platform?: string;
15
- arch?: string;
16
- }
17
- export declare function assertIndustrialRuntimePlatform(platform?: string, arch?: string): void;
18
- export declare function verifyWindowsAuthenticodeFiles(input: VerifyAuthenticodeInput): Promise<void>;