@wrongstack/acp 0.77.0 → 0.82.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/agent.d.ts +3 -3
- package/dist/agent.js +18 -21
- package/dist/agent.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +27 -11
- package/dist/client.js.map +1 -1
- package/dist/{index-CncECXiF.d.ts → index-DPMuJGqv.d.ts} +8 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +40 -39
- package/dist/index.js.map +1 -1
- package/dist/{stdio-transport-DqWq-2iP.d.ts → stdio-transport-DoKRVjHz.d.ts} +40 -40
- package/package.json +2 -2
|
@@ -6,15 +6,15 @@ import { EventEmitter } from 'node:events';
|
|
|
6
6
|
*/
|
|
7
7
|
interface ACPMessage {
|
|
8
8
|
method: string;
|
|
9
|
-
id?: string | number;
|
|
10
|
-
params?: unknown;
|
|
11
|
-
result?: unknown;
|
|
12
|
-
error?: ACPError;
|
|
9
|
+
id?: string | number | undefined;
|
|
10
|
+
params?: unknown | undefined;
|
|
11
|
+
result?: unknown | undefined;
|
|
12
|
+
error?: ACPError | undefined;
|
|
13
13
|
}
|
|
14
14
|
interface ACPError {
|
|
15
15
|
code: number;
|
|
16
16
|
message: string;
|
|
17
|
-
data?: unknown;
|
|
17
|
+
data?: unknown | undefined;
|
|
18
18
|
}
|
|
19
19
|
type ACPRequest = RequiredPick<ACPMessage, 'id' | 'params' | 'method'>;
|
|
20
20
|
type ACPResponse = RequiredPick<ACPMessage, 'id' | 'result' | 'method'>;
|
|
@@ -22,20 +22,20 @@ type ACPNotification = Omit<ACPMessage, 'id'> & {
|
|
|
22
22
|
method: string;
|
|
23
23
|
};
|
|
24
24
|
interface ACPInitializeParams {
|
|
25
|
-
capabilities?: string[];
|
|
26
|
-
protocolVersion?: string;
|
|
27
|
-
sessionId?: string;
|
|
28
|
-
authToken?: string;
|
|
29
|
-
sessionPath?: string;
|
|
30
|
-
workspaceRoots?: string[];
|
|
31
|
-
mcpServers?: unknown[];
|
|
25
|
+
capabilities?: string[] | undefined;
|
|
26
|
+
protocolVersion?: string | undefined;
|
|
27
|
+
sessionId?: string | undefined;
|
|
28
|
+
authToken?: string | undefined;
|
|
29
|
+
sessionPath?: string | undefined;
|
|
30
|
+
workspaceRoots?: string[] | undefined;
|
|
31
|
+
mcpServers?: unknown[] | undefined;
|
|
32
32
|
[key: string]: unknown;
|
|
33
33
|
}
|
|
34
34
|
interface ACPCapabilities {
|
|
35
35
|
capabilities: string[];
|
|
36
36
|
agentName: string;
|
|
37
37
|
agentVersion: string;
|
|
38
|
-
tools?: ACPToolList;
|
|
38
|
+
tools?: ACPToolList | undefined;
|
|
39
39
|
protocolVersion: string;
|
|
40
40
|
}
|
|
41
41
|
interface ACPToolList {
|
|
@@ -43,25 +43,25 @@ interface ACPToolList {
|
|
|
43
43
|
}
|
|
44
44
|
interface ACPToolDefinition {
|
|
45
45
|
name: string;
|
|
46
|
-
description?: string;
|
|
46
|
+
description?: string | undefined;
|
|
47
47
|
inputSchema: ACPInputSchema;
|
|
48
48
|
annotations?: {
|
|
49
|
-
title?: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
priority?: 'high' | 'medium' | 'low';
|
|
52
|
-
alwaysAccept?: boolean;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
priority?: 'high' | 'medium' | 'low' | undefined;
|
|
52
|
+
alwaysAccept?: boolean | undefined;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
type ACPInputSchema = {
|
|
56
|
-
type?: string;
|
|
56
|
+
type?: string | undefined;
|
|
57
57
|
properties?: Record<string, ACPInputSchema>;
|
|
58
|
-
required?: string[];
|
|
59
|
-
items?: ACPInputSchema;
|
|
60
|
-
enum?: unknown[];
|
|
61
|
-
description?: string;
|
|
62
|
-
default?: unknown;
|
|
63
|
-
minimum?: number;
|
|
64
|
-
maximum?: number;
|
|
58
|
+
required?: string[] | undefined;
|
|
59
|
+
items?: ACPInputSchema | undefined;
|
|
60
|
+
enum?: unknown[] | undefined;
|
|
61
|
+
description?: string | undefined;
|
|
62
|
+
default?: unknown | undefined;
|
|
63
|
+
minimum?: number | undefined;
|
|
64
|
+
maximum?: number | undefined;
|
|
65
65
|
[key: string]: unknown;
|
|
66
66
|
};
|
|
67
67
|
type ContentBlock = ACPTextContent | ACPResourceContent | ACPImageContent | ACPProgressContent;
|
|
@@ -74,21 +74,21 @@ interface ACPResourceContent {
|
|
|
74
74
|
resource: {
|
|
75
75
|
type: string;
|
|
76
76
|
uri: string;
|
|
77
|
-
data?: string;
|
|
78
|
-
mimeType?: string;
|
|
77
|
+
data?: string | undefined;
|
|
78
|
+
mimeType?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
interface ACPImageContent {
|
|
82
82
|
type: 'image';
|
|
83
83
|
data: string;
|
|
84
|
-
mimeType?: string;
|
|
84
|
+
mimeType?: string | undefined;
|
|
85
85
|
}
|
|
86
86
|
interface ACPProgressContent {
|
|
87
87
|
type: 'progress';
|
|
88
88
|
id: string;
|
|
89
|
-
label?: string;
|
|
90
|
-
message?: string;
|
|
91
|
-
messages?: string[];
|
|
89
|
+
label?: string | undefined;
|
|
90
|
+
message?: string | undefined;
|
|
91
|
+
messages?: string[] | undefined;
|
|
92
92
|
}
|
|
93
93
|
interface ACPToolCallRequest {
|
|
94
94
|
method: 'tools/call';
|
|
@@ -100,7 +100,7 @@ interface ACPToolCallRequest {
|
|
|
100
100
|
}
|
|
101
101
|
interface ACPToolResult {
|
|
102
102
|
content: ContentBlock[];
|
|
103
|
-
isError?: boolean;
|
|
103
|
+
isError?: boolean | undefined;
|
|
104
104
|
}
|
|
105
105
|
type ACPToolCallResponse = {
|
|
106
106
|
method: 'tools/call';
|
|
@@ -110,15 +110,15 @@ type ACPToolCallResponse = {
|
|
|
110
110
|
interface ACPSessionInfo {
|
|
111
111
|
sessionId: string;
|
|
112
112
|
path: string;
|
|
113
|
-
title?: string;
|
|
114
|
-
modelId?: string;
|
|
113
|
+
title?: string | undefined;
|
|
114
|
+
modelId?: string | undefined;
|
|
115
115
|
createdAt: string;
|
|
116
116
|
lastActiveAt: string;
|
|
117
117
|
}
|
|
118
118
|
interface ACPPlanStep {
|
|
119
119
|
id: string;
|
|
120
120
|
description: string;
|
|
121
|
-
status?: 'pending' | 'running' | 'completed' | 'skipped';
|
|
121
|
+
status?: 'pending' | 'running' | 'completed' | 'skipped' | undefined;
|
|
122
122
|
}
|
|
123
123
|
interface ACPPlanContent {
|
|
124
124
|
type: 'plan';
|
|
@@ -128,7 +128,7 @@ interface ACPPlanContent {
|
|
|
128
128
|
}
|
|
129
129
|
type ACPSessionMode = 'agent' | 'chat' | 'edit' | 'preview';
|
|
130
130
|
interface ACPCancelParams {
|
|
131
|
-
reason?: string;
|
|
131
|
+
reason?: string | undefined;
|
|
132
132
|
}
|
|
133
133
|
type RequiredPick<T, K extends keyof T> = Pick<T, K> & Partial<Omit<T, K>>;
|
|
134
134
|
|
|
@@ -163,10 +163,10 @@ declare class StdioTransport implements AgentServerTransport {
|
|
|
163
163
|
|
|
164
164
|
interface ClientTransportOptions {
|
|
165
165
|
command: string;
|
|
166
|
-
args?: string[];
|
|
166
|
+
args?: string[] | undefined;
|
|
167
167
|
env?: Record<string, string>;
|
|
168
|
-
cwd?: string;
|
|
169
|
-
handshakeTimeoutMs?: number;
|
|
168
|
+
cwd?: string | undefined;
|
|
169
|
+
handshakeTimeoutMs?: number | undefined;
|
|
170
170
|
}
|
|
171
171
|
interface ACPChildProcess extends EventEmitter {
|
|
172
172
|
stdout: NodeJS.ReadableStream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/acp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ACP (Agent Client Protocol) integration for WrongStack — client + agent support",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@wrongstack/core": "0.
|
|
41
|
+
"@wrongstack/core": "0.82.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22",
|