qlogicagent 2.11.5 → 2.11.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.
- package/dist/cli.js +399 -371
- package/dist/index.js +398 -370
- package/dist/types/cli/handlers/agents-handler.d.ts +18 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +27 -0
- package/dist/types/protocol/wire/notification-payloads.d.ts +98 -0
- package/dist/types/runtime/infra/acp-detector.d.ts +29 -1
- package/dist/types/runtime/infra/acp-host-handler.d.ts +9 -1
- package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +68 -49
- package/dist/types/runtime/infra/agent-install-runner.d.ts +57 -0
- package/dist/types/runtime/infra/agent-process.d.ts +10 -0
- package/dist/types/runtime/infra/external-agent-approvals.d.ts +41 -0
- package/dist/types/runtime/infra/external-agent-pool.d.ts +54 -0
- package/dist/types/runtime/infra/model-registry.d.ts +6 -0
- package/dist/types/runtime/infra/provider-catalog-adapter.d.ts +7 -0
- package/dist/types/runtime/infra/trae-adapter.d.ts +31 -0
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface TraeProc {
|
|
2
|
+
stdout?: {
|
|
3
|
+
on(ev: "data", cb: (c: Buffer | string) => void): void;
|
|
4
|
+
} | null;
|
|
5
|
+
stderr?: {
|
|
6
|
+
on(ev: "data", cb: (c: Buffer | string) => void): void;
|
|
7
|
+
} | null;
|
|
8
|
+
on(ev: "close", cb: (code: number | null) => void): void;
|
|
9
|
+
on(ev: "error", cb: (e: Error) => void): void;
|
|
10
|
+
kill(signal?: string): void;
|
|
11
|
+
}
|
|
12
|
+
export type TraeSpawn = (command: string, args: string[], opts: {
|
|
13
|
+
cwd?: string;
|
|
14
|
+
env?: Record<string, string>;
|
|
15
|
+
}) => TraeProc;
|
|
16
|
+
export interface TraeTurnOptions {
|
|
17
|
+
cliCommand?: string;
|
|
18
|
+
cwd?: string;
|
|
19
|
+
env?: Record<string, string>;
|
|
20
|
+
provider?: string;
|
|
21
|
+
model?: string;
|
|
22
|
+
timeoutMs?: number;
|
|
23
|
+
spawnImpl?: TraeSpawn;
|
|
24
|
+
}
|
|
25
|
+
export interface TraeTurnResult {
|
|
26
|
+
ok: boolean;
|
|
27
|
+
content: string;
|
|
28
|
+
error?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Run one Trae turn (`trae-cli run "<prompt>"`) and return its captured output. */
|
|
31
|
+
export declare function runTraeTurn(prompt: string, opts?: TraeTurnOptions): Promise<TraeTurnResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qlogicagent",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.6",
|
|
4
4
|
"description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"node": ">=22.0.0"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
+
"@agentclientprotocol/sdk": "^0.25.0",
|
|
89
90
|
"@napi-rs/canvas": "0.1.100",
|
|
90
91
|
"@xiaozhiclaw/pet-core": "0.1.0",
|
|
91
92
|
"@xiaozhiclaw/provider-core": "0.1.4",
|
|
@@ -98,7 +99,6 @@
|
|
|
98
99
|
"devDependencies": {
|
|
99
100
|
"@types/better-sqlite3": "^7.6.13",
|
|
100
101
|
"@types/node": "^22.15.0",
|
|
101
|
-
"@zed-industries/agent-client-protocol": "0.4.5",
|
|
102
102
|
"esbuild": "^0.28.0",
|
|
103
103
|
"oxlint": "1.67.0",
|
|
104
104
|
"tsx": "^4.19.0",
|