@tickernelz/paperclip-pro-adapter-utils 2026.1016.0 → 2026.1016.2
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/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +8 -191
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js +10 -165
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +132 -52
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +29 -21
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +6 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/nes/acp.d.ts +563 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/acp.js +106 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/types.gen.d.ts +1261 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/types.gen.js +4 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/zod.gen.d.ts +962 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/zod.gen.js +526 -0
- package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +5 -6
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +13 -25
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +6 -6
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +0 -9
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +0 -10
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +1 -11
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +0 -10
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +1675 -2753
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +863 -1434
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +91 -534
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +42 -48
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +86 -139
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +46 -17
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +55 -57
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +0 -59
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +1 -11
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +0 -10
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +1870 -2874
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +3373 -2844
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +191 -563
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -1
- package/node_modules/@agentclientprotocol/sdk/package.json +7 -1
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +1541 -3196
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +875 -2664
- package/package.json +2 -2
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
// Frozen NES compatibility snapshot from schema-v1.25.0.
|
|
2
|
+
// Not regenerated by npm run generate. See scripts/snapshot-nes.js.
|
|
3
|
+
import { defaultOnError } from "../../schema-deserialize.js";
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
/**
|
|
6
|
+
* A unique identifier for a conversation session between a client and agent.
|
|
7
|
+
*
|
|
8
|
+
* Sessions maintain their own context, conversation history, and state,
|
|
9
|
+
* allowing multiple independent interactions with the same agent.
|
|
10
|
+
*
|
|
11
|
+
* See protocol docs: [Session ID](https://agentclientprotocol.com/protocol/session-setup#session-id)
|
|
12
|
+
*/
|
|
13
|
+
export const zSessionId = z.string();
|
|
14
|
+
/**
|
|
15
|
+
* Marker for `document/didOpen` capability support.
|
|
16
|
+
*/
|
|
17
|
+
export const zNesDocumentDidOpenCapabilities = z.object({
|
|
18
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* How the agent wants document changes delivered.
|
|
22
|
+
*/
|
|
23
|
+
export const zTextDocumentSyncKind = z.union([
|
|
24
|
+
z.literal("full"),
|
|
25
|
+
z.literal("incremental"),
|
|
26
|
+
]);
|
|
27
|
+
/**
|
|
28
|
+
* Capabilities for `document/didChange` events.
|
|
29
|
+
*/
|
|
30
|
+
export const zNesDocumentDidChangeCapabilities = z.object({
|
|
31
|
+
syncKind: zTextDocumentSyncKind,
|
|
32
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Marker for `document/didClose` capability support.
|
|
36
|
+
*/
|
|
37
|
+
export const zNesDocumentDidCloseCapabilities = z.object({
|
|
38
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* Marker for `document/didSave` capability support.
|
|
42
|
+
*/
|
|
43
|
+
export const zNesDocumentDidSaveCapabilities = z.object({
|
|
44
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Marker for `document/didFocus` capability support.
|
|
48
|
+
*/
|
|
49
|
+
export const zNesDocumentDidFocusCapabilities = z.object({
|
|
50
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* Document event capabilities the agent wants to receive.
|
|
54
|
+
*/
|
|
55
|
+
export const zNesDocumentEventCapabilities = z.object({
|
|
56
|
+
didOpen: defaultOnError(zNesDocumentDidOpenCapabilities.nullish(), () => undefined),
|
|
57
|
+
didChange: defaultOnError(zNesDocumentDidChangeCapabilities.nullish(), () => undefined),
|
|
58
|
+
didClose: defaultOnError(zNesDocumentDidCloseCapabilities.nullish(), () => undefined),
|
|
59
|
+
didSave: defaultOnError(zNesDocumentDidSaveCapabilities.nullish(), () => undefined),
|
|
60
|
+
didFocus: defaultOnError(zNesDocumentDidFocusCapabilities.nullish(), () => undefined),
|
|
61
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Event capabilities the agent can consume.
|
|
65
|
+
*/
|
|
66
|
+
export const zNesEventCapabilities = z.object({
|
|
67
|
+
document: defaultOnError(zNesDocumentEventCapabilities.nullish(), () => undefined),
|
|
68
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* Capabilities for recent files context.
|
|
72
|
+
*/
|
|
73
|
+
export const zNesRecentFilesCapabilities = z.object({
|
|
74
|
+
maxCount: defaultOnError(z
|
|
75
|
+
.int()
|
|
76
|
+
.gte(0)
|
|
77
|
+
.max(4294967295, {
|
|
78
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
79
|
+
})
|
|
80
|
+
.nullish(), () => undefined),
|
|
81
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Capabilities for related snippets context.
|
|
85
|
+
*/
|
|
86
|
+
export const zNesRelatedSnippetsCapabilities = z.object({
|
|
87
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Capabilities for edit history context.
|
|
91
|
+
*/
|
|
92
|
+
export const zNesEditHistoryCapabilities = z.object({
|
|
93
|
+
maxCount: defaultOnError(z
|
|
94
|
+
.int()
|
|
95
|
+
.gte(0)
|
|
96
|
+
.max(4294967295, {
|
|
97
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
98
|
+
})
|
|
99
|
+
.nullish(), () => undefined),
|
|
100
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* Capabilities for user actions context.
|
|
104
|
+
*/
|
|
105
|
+
export const zNesUserActionsCapabilities = z.object({
|
|
106
|
+
maxCount: defaultOnError(z
|
|
107
|
+
.int()
|
|
108
|
+
.gte(0)
|
|
109
|
+
.max(4294967295, {
|
|
110
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
111
|
+
})
|
|
112
|
+
.nullish(), () => undefined),
|
|
113
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* Capabilities for open files context.
|
|
117
|
+
*/
|
|
118
|
+
export const zNesOpenFilesCapabilities = z.object({
|
|
119
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* Capabilities for diagnostics context.
|
|
123
|
+
*/
|
|
124
|
+
export const zNesDiagnosticsCapabilities = z.object({
|
|
125
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* Context capabilities the agent wants attached to each suggestion request.
|
|
129
|
+
*/
|
|
130
|
+
export const zNesContextCapabilities = z.object({
|
|
131
|
+
recentFiles: defaultOnError(zNesRecentFilesCapabilities.nullish(), () => undefined),
|
|
132
|
+
relatedSnippets: defaultOnError(zNesRelatedSnippetsCapabilities.nullish(), () => undefined),
|
|
133
|
+
editHistory: defaultOnError(zNesEditHistoryCapabilities.nullish(), () => undefined),
|
|
134
|
+
userActions: defaultOnError(zNesUserActionsCapabilities.nullish(), () => undefined),
|
|
135
|
+
openFiles: defaultOnError(zNesOpenFilesCapabilities.nullish(), () => undefined),
|
|
136
|
+
diagnostics: defaultOnError(zNesDiagnosticsCapabilities.nullish(), () => undefined),
|
|
137
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* NES capabilities advertised by the agent during initialization.
|
|
141
|
+
*/
|
|
142
|
+
export const zNesCapabilities = z.object({
|
|
143
|
+
events: defaultOnError(zNesEventCapabilities.nullish(), () => undefined),
|
|
144
|
+
context: defaultOnError(zNesContextCapabilities.nullish(), () => undefined),
|
|
145
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
146
|
+
});
|
|
147
|
+
/**
|
|
148
|
+
* The encoding used for character offsets in positions.
|
|
149
|
+
*
|
|
150
|
+
* Follows the same conventions as LSP 3.17. The default is UTF-16.
|
|
151
|
+
*/
|
|
152
|
+
export const zPositionEncodingKind = z.union([
|
|
153
|
+
z.literal("utf-16"),
|
|
154
|
+
z.literal("utf-32"),
|
|
155
|
+
z.literal("utf-8"),
|
|
156
|
+
]);
|
|
157
|
+
/**
|
|
158
|
+
* Response to `nes/start`.
|
|
159
|
+
*/
|
|
160
|
+
export const zStartNesResponse = z.object({
|
|
161
|
+
sessionId: zSessionId,
|
|
162
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* Unique identifier for a next edit suggestion.
|
|
166
|
+
*/
|
|
167
|
+
export const zNesSuggestionId = z.string();
|
|
168
|
+
/**
|
|
169
|
+
* A zero-based position in a text document.
|
|
170
|
+
*
|
|
171
|
+
* The meaning of `character` depends on the negotiated position encoding.
|
|
172
|
+
*/
|
|
173
|
+
export const zPosition = z.object({
|
|
174
|
+
line: z.int().gte(0).max(4294967295, {
|
|
175
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
176
|
+
}),
|
|
177
|
+
character: z.int().gte(0).max(4294967295, {
|
|
178
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
179
|
+
}),
|
|
180
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
181
|
+
});
|
|
182
|
+
/**
|
|
183
|
+
* A range in a text document, expressed as start and end positions.
|
|
184
|
+
*/
|
|
185
|
+
export const zRange = z.object({
|
|
186
|
+
start: zPosition,
|
|
187
|
+
end: zPosition,
|
|
188
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* A text edit within a suggestion.
|
|
192
|
+
*/
|
|
193
|
+
export const zNesTextEdit = z.object({
|
|
194
|
+
range: zRange,
|
|
195
|
+
newText: z.string(),
|
|
196
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
197
|
+
});
|
|
198
|
+
/**
|
|
199
|
+
* A text edit suggestion.
|
|
200
|
+
*/
|
|
201
|
+
export const zNesEditSuggestion = z.object({
|
|
202
|
+
id: zNesSuggestionId,
|
|
203
|
+
uri: z.string(),
|
|
204
|
+
edits: z.array(zNesTextEdit),
|
|
205
|
+
cursorPosition: defaultOnError(zPosition.nullish(), () => undefined),
|
|
206
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
207
|
+
});
|
|
208
|
+
/**
|
|
209
|
+
* A jump-to-location suggestion.
|
|
210
|
+
*/
|
|
211
|
+
export const zNesJumpSuggestion = z.object({
|
|
212
|
+
id: zNesSuggestionId,
|
|
213
|
+
uri: z.string(),
|
|
214
|
+
position: zPosition,
|
|
215
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
216
|
+
});
|
|
217
|
+
/**
|
|
218
|
+
* A rename symbol suggestion.
|
|
219
|
+
*/
|
|
220
|
+
export const zNesRenameSuggestion = z.object({
|
|
221
|
+
id: zNesSuggestionId,
|
|
222
|
+
uri: z.string(),
|
|
223
|
+
position: zPosition,
|
|
224
|
+
newName: z.string(),
|
|
225
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
226
|
+
});
|
|
227
|
+
/**
|
|
228
|
+
* A search-and-replace suggestion.
|
|
229
|
+
*/
|
|
230
|
+
export const zNesSearchAndReplaceSuggestion = z.object({
|
|
231
|
+
id: zNesSuggestionId,
|
|
232
|
+
uri: z.string(),
|
|
233
|
+
search: z.string(),
|
|
234
|
+
replace: z.string(),
|
|
235
|
+
isRegex: z.boolean().nullish(),
|
|
236
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
237
|
+
});
|
|
238
|
+
/**
|
|
239
|
+
* A suggestion returned by the agent.
|
|
240
|
+
*/
|
|
241
|
+
export const zNesSuggestion = z.union([
|
|
242
|
+
zNesEditSuggestion.and(z.object({
|
|
243
|
+
kind: z.literal("edit"),
|
|
244
|
+
})),
|
|
245
|
+
zNesJumpSuggestion.and(z.object({
|
|
246
|
+
kind: z.literal("jump"),
|
|
247
|
+
})),
|
|
248
|
+
zNesRenameSuggestion.and(z.object({
|
|
249
|
+
kind: z.literal("rename"),
|
|
250
|
+
})),
|
|
251
|
+
zNesSearchAndReplaceSuggestion.and(z.object({
|
|
252
|
+
kind: z.literal("searchAndReplace"),
|
|
253
|
+
})),
|
|
254
|
+
]);
|
|
255
|
+
/**
|
|
256
|
+
* Response to `nes/suggest`.
|
|
257
|
+
*/
|
|
258
|
+
export const zSuggestNesResponse = z.object({
|
|
259
|
+
suggestions: z.array(zNesSuggestion),
|
|
260
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
261
|
+
});
|
|
262
|
+
/**
|
|
263
|
+
* Response from closing an NES session.
|
|
264
|
+
*/
|
|
265
|
+
export const zCloseNesResponse = z.object({
|
|
266
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
267
|
+
});
|
|
268
|
+
/**
|
|
269
|
+
* Marker for jump suggestion support.
|
|
270
|
+
*/
|
|
271
|
+
export const zNesJumpCapabilities = z.object({
|
|
272
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
273
|
+
});
|
|
274
|
+
/**
|
|
275
|
+
* Marker for rename suggestion support.
|
|
276
|
+
*/
|
|
277
|
+
export const zNesRenameCapabilities = z.object({
|
|
278
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
279
|
+
});
|
|
280
|
+
/**
|
|
281
|
+
* Marker for search and replace suggestion support.
|
|
282
|
+
*/
|
|
283
|
+
export const zNesSearchAndReplaceCapabilities = z.object({
|
|
284
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
285
|
+
});
|
|
286
|
+
/**
|
|
287
|
+
* NES capabilities advertised by the client during initialization.
|
|
288
|
+
*/
|
|
289
|
+
export const zClientNesCapabilities = z.object({
|
|
290
|
+
jump: defaultOnError(zNesJumpCapabilities.nullish(), () => undefined),
|
|
291
|
+
rename: defaultOnError(zNesRenameCapabilities.nullish(), () => undefined),
|
|
292
|
+
searchAndReplace: defaultOnError(zNesSearchAndReplaceCapabilities.nullish(), () => undefined),
|
|
293
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
294
|
+
});
|
|
295
|
+
/**
|
|
296
|
+
* A workspace folder.
|
|
297
|
+
*/
|
|
298
|
+
export const zWorkspaceFolder = z.object({
|
|
299
|
+
uri: z.string(),
|
|
300
|
+
name: z.string(),
|
|
301
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
302
|
+
});
|
|
303
|
+
/**
|
|
304
|
+
* Repository metadata for an NES session.
|
|
305
|
+
*/
|
|
306
|
+
export const zNesRepository = z.object({
|
|
307
|
+
name: z.string(),
|
|
308
|
+
owner: z.string(),
|
|
309
|
+
remoteUrl: z.string(),
|
|
310
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
311
|
+
});
|
|
312
|
+
/**
|
|
313
|
+
* Request to start an NES session.
|
|
314
|
+
*/
|
|
315
|
+
export const zStartNesRequest = z.object({
|
|
316
|
+
workspaceUri: defaultOnError(z.string().nullish(), () => undefined),
|
|
317
|
+
workspaceFolders: z.array(zWorkspaceFolder).nullish(),
|
|
318
|
+
repository: defaultOnError(zNesRepository.nullish(), () => undefined),
|
|
319
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
320
|
+
});
|
|
321
|
+
/**
|
|
322
|
+
* What triggered the suggestion request.
|
|
323
|
+
*/
|
|
324
|
+
export const zNesTriggerKind = z.union([
|
|
325
|
+
z.literal("automatic"),
|
|
326
|
+
z.literal("diagnostic"),
|
|
327
|
+
z.literal("manual"),
|
|
328
|
+
]);
|
|
329
|
+
/**
|
|
330
|
+
* A recently accessed file.
|
|
331
|
+
*/
|
|
332
|
+
export const zNesRecentFile = z.object({
|
|
333
|
+
uri: z.string(),
|
|
334
|
+
languageId: z.string(),
|
|
335
|
+
text: z.string(),
|
|
336
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
337
|
+
});
|
|
338
|
+
/**
|
|
339
|
+
* A code excerpt from a file.
|
|
340
|
+
*/
|
|
341
|
+
export const zNesExcerpt = z.object({
|
|
342
|
+
startLine: z.int().gte(0).max(4294967295, {
|
|
343
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
344
|
+
}),
|
|
345
|
+
endLine: z.int().gte(0).max(4294967295, {
|
|
346
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
347
|
+
}),
|
|
348
|
+
text: z.string(),
|
|
349
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
350
|
+
});
|
|
351
|
+
/**
|
|
352
|
+
* A related code snippet from a file.
|
|
353
|
+
*/
|
|
354
|
+
export const zNesRelatedSnippet = z.object({
|
|
355
|
+
uri: z.string(),
|
|
356
|
+
excerpts: z.array(zNesExcerpt),
|
|
357
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
358
|
+
});
|
|
359
|
+
/**
|
|
360
|
+
* An entry in the edit history.
|
|
361
|
+
*/
|
|
362
|
+
export const zNesEditHistoryEntry = z.object({
|
|
363
|
+
uri: z.string(),
|
|
364
|
+
diff: z.string(),
|
|
365
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
366
|
+
});
|
|
367
|
+
/**
|
|
368
|
+
* A user action (typing, cursor movement, etc.).
|
|
369
|
+
*/
|
|
370
|
+
export const zNesUserAction = z.object({
|
|
371
|
+
action: z.string(),
|
|
372
|
+
uri: z.string(),
|
|
373
|
+
position: zPosition,
|
|
374
|
+
timestampMs: z.number(),
|
|
375
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
376
|
+
});
|
|
377
|
+
/**
|
|
378
|
+
* An open file in the editor.
|
|
379
|
+
*/
|
|
380
|
+
export const zNesOpenFile = z.object({
|
|
381
|
+
uri: z.string(),
|
|
382
|
+
languageId: z.string(),
|
|
383
|
+
visibleRange: defaultOnError(zRange.nullish(), () => undefined),
|
|
384
|
+
lastFocusedMs: defaultOnError(z.number().nullish(), () => undefined),
|
|
385
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
386
|
+
});
|
|
387
|
+
/**
|
|
388
|
+
* Severity of a diagnostic.
|
|
389
|
+
*/
|
|
390
|
+
export const zNesDiagnosticSeverity = z.union([
|
|
391
|
+
z.literal("error"),
|
|
392
|
+
z.literal("warning"),
|
|
393
|
+
z.literal("information"),
|
|
394
|
+
z.literal("hint"),
|
|
395
|
+
]);
|
|
396
|
+
/**
|
|
397
|
+
* A diagnostic (error, warning, etc.).
|
|
398
|
+
*/
|
|
399
|
+
export const zNesDiagnostic = z.object({
|
|
400
|
+
uri: z.string(),
|
|
401
|
+
range: zRange,
|
|
402
|
+
severity: zNesDiagnosticSeverity,
|
|
403
|
+
message: z.string(),
|
|
404
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
405
|
+
});
|
|
406
|
+
/**
|
|
407
|
+
* Context attached to a suggestion request.
|
|
408
|
+
*/
|
|
409
|
+
export const zNesSuggestContext = z.object({
|
|
410
|
+
recentFiles: z.array(zNesRecentFile).nullish(),
|
|
411
|
+
relatedSnippets: z.array(zNesRelatedSnippet).nullish(),
|
|
412
|
+
editHistory: z.array(zNesEditHistoryEntry).nullish(),
|
|
413
|
+
userActions: z.array(zNesUserAction).nullish(),
|
|
414
|
+
openFiles: z.array(zNesOpenFile).nullish(),
|
|
415
|
+
diagnostics: z.array(zNesDiagnostic).nullish(),
|
|
416
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
417
|
+
});
|
|
418
|
+
/**
|
|
419
|
+
* Request for a code suggestion.
|
|
420
|
+
*/
|
|
421
|
+
export const zSuggestNesRequest = z.object({
|
|
422
|
+
sessionId: zSessionId,
|
|
423
|
+
uri: z.string(),
|
|
424
|
+
version: z.number(),
|
|
425
|
+
position: zPosition,
|
|
426
|
+
selection: zRange.nullish(),
|
|
427
|
+
triggerKind: zNesTriggerKind,
|
|
428
|
+
context: zNesSuggestContext.nullish(),
|
|
429
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
430
|
+
});
|
|
431
|
+
/**
|
|
432
|
+
* Request to close an NES session.
|
|
433
|
+
*
|
|
434
|
+
* The agent **must** cancel any ongoing work related to the NES session
|
|
435
|
+
* and then free up any resources associated with the session.
|
|
436
|
+
*/
|
|
437
|
+
export const zCloseNesRequest = z.object({
|
|
438
|
+
sessionId: zSessionId,
|
|
439
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
440
|
+
});
|
|
441
|
+
/**
|
|
442
|
+
* Notification sent when a file is opened in the editor.
|
|
443
|
+
*/
|
|
444
|
+
export const zDidOpenDocumentNotification = z.object({
|
|
445
|
+
sessionId: zSessionId,
|
|
446
|
+
uri: z.string(),
|
|
447
|
+
languageId: z.string(),
|
|
448
|
+
version: z.number(),
|
|
449
|
+
text: z.string(),
|
|
450
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
451
|
+
});
|
|
452
|
+
/**
|
|
453
|
+
* A content change event for a document.
|
|
454
|
+
*
|
|
455
|
+
* When `range` is `None`, `text` is the full content of the document.
|
|
456
|
+
* When `range` is `Some`, `text` replaces the given range.
|
|
457
|
+
*/
|
|
458
|
+
export const zTextDocumentContentChangeEvent = z.object({
|
|
459
|
+
range: zRange.nullish(),
|
|
460
|
+
text: z.string(),
|
|
461
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
462
|
+
});
|
|
463
|
+
/**
|
|
464
|
+
* Notification sent when a file is edited.
|
|
465
|
+
*/
|
|
466
|
+
export const zDidChangeDocumentNotification = z.object({
|
|
467
|
+
sessionId: zSessionId,
|
|
468
|
+
uri: z.string(),
|
|
469
|
+
version: z.number(),
|
|
470
|
+
contentChanges: z.array(zTextDocumentContentChangeEvent),
|
|
471
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
472
|
+
});
|
|
473
|
+
/**
|
|
474
|
+
* Notification sent when a file is closed.
|
|
475
|
+
*/
|
|
476
|
+
export const zDidCloseDocumentNotification = z.object({
|
|
477
|
+
sessionId: zSessionId,
|
|
478
|
+
uri: z.string(),
|
|
479
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
480
|
+
});
|
|
481
|
+
/**
|
|
482
|
+
* Notification sent when a file is saved.
|
|
483
|
+
*/
|
|
484
|
+
export const zDidSaveDocumentNotification = z.object({
|
|
485
|
+
sessionId: zSessionId,
|
|
486
|
+
uri: z.string(),
|
|
487
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
488
|
+
});
|
|
489
|
+
/**
|
|
490
|
+
* Notification sent when a file becomes the active editor tab.
|
|
491
|
+
*/
|
|
492
|
+
export const zDidFocusDocumentNotification = z.object({
|
|
493
|
+
sessionId: zSessionId,
|
|
494
|
+
uri: z.string(),
|
|
495
|
+
version: z.number(),
|
|
496
|
+
position: zPosition,
|
|
497
|
+
visibleRange: zRange,
|
|
498
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
499
|
+
});
|
|
500
|
+
/**
|
|
501
|
+
* Notification sent when a suggestion is accepted.
|
|
502
|
+
*/
|
|
503
|
+
export const zAcceptNesNotification = z.object({
|
|
504
|
+
sessionId: zSessionId,
|
|
505
|
+
id: zNesSuggestionId,
|
|
506
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
507
|
+
});
|
|
508
|
+
/**
|
|
509
|
+
* The reason a suggestion was rejected.
|
|
510
|
+
*/
|
|
511
|
+
export const zNesRejectReason = z.union([
|
|
512
|
+
z.literal("rejected"),
|
|
513
|
+
z.literal("ignored"),
|
|
514
|
+
z.literal("replaced"),
|
|
515
|
+
z.literal("cancelled"),
|
|
516
|
+
]);
|
|
517
|
+
/**
|
|
518
|
+
* Notification sent when a suggestion is rejected.
|
|
519
|
+
*/
|
|
520
|
+
export const zRejectNesNotification = z.object({
|
|
521
|
+
sessionId: zSessionId,
|
|
522
|
+
id: zNesSuggestionId,
|
|
523
|
+
reason: defaultOnError(zNesRejectReason.nullish(), () => undefined),
|
|
524
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
525
|
+
});
|
|
526
|
+
//# sourceMappingURL=zod.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod.gen.js","sourceRoot":"","sources":["../../../src/nes/schema/zod.gen.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,oEAAoE;AAEpE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,cAAc,CACnB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAA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AAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,UAAU;IACrB,EAAE,EAAE,gBAAgB;IACpB,MAAM,EAAE,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC;IACnE,KAAK,EAAE,cAAc,CACnB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAC3C,GAAG,EAAE,CAAC,SAAS,CAChB;CACF,CAAC,CAAC"}
|
|
@@ -5,10 +5,10 @@ import type { WireStream as Stream } from "./stream.js";
|
|
|
5
5
|
* including the experimental draft ACP v2 API.
|
|
6
6
|
*
|
|
7
7
|
* The router consumes the first wire item, which must be an `initialize`
|
|
8
|
-
* request or a single-entry batch containing one.
|
|
9
|
-
* configured
|
|
10
|
-
*
|
|
11
|
-
* normalized
|
|
8
|
+
* request or a single-entry batch containing one. Endpoints exposing v2 select
|
|
9
|
+
* the highest configured version at or below the requested version. V1-only
|
|
10
|
+
* endpoints retain the legacy fallback to v1. Only initialize params and
|
|
11
|
+
* optional batch framing are normalized. Later wire items are forwarded unchanged.
|
|
12
12
|
*
|
|
13
13
|
* @experimental
|
|
14
14
|
*/
|
|
@@ -33,8 +33,7 @@ export declare class AgentProtocolRouter implements AgentConnector {
|
|
|
33
33
|
readonly closed: Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
private route;
|
|
36
|
-
private
|
|
37
|
-
private supportedDescription;
|
|
36
|
+
private selectProtocol;
|
|
38
37
|
}
|
|
39
38
|
/**
|
|
40
39
|
* Creates an empty agent protocol router with experimental ACP v2 support.
|
|
@@ -10,10 +10,10 @@ const MAX_PROTOCOL_VERSION = 0xffff;
|
|
|
10
10
|
* including the experimental draft ACP v2 API.
|
|
11
11
|
*
|
|
12
12
|
* The router consumes the first wire item, which must be an `initialize`
|
|
13
|
-
* request or a single-entry batch containing one.
|
|
14
|
-
* configured
|
|
15
|
-
*
|
|
16
|
-
* normalized
|
|
13
|
+
* request or a single-entry batch containing one. Endpoints exposing v2 select
|
|
14
|
+
* the highest configured version at or below the requested version. V1-only
|
|
15
|
+
* endpoints retain the legacy fallback to v1. Only initialize params and
|
|
16
|
+
* optional batch framing are normalized. Later wire items are forwarded unchanged.
|
|
17
17
|
*
|
|
18
18
|
* @experimental
|
|
19
19
|
*/
|
|
@@ -114,9 +114,12 @@ export class AgentProtocolRouter {
|
|
|
114
114
|
lifecycle.finish();
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
-
const selected = this.
|
|
117
|
+
const selected = this.selectProtocol(requested);
|
|
118
118
|
if (!selected) {
|
|
119
|
-
await rejectInitialize(reader, stream.writable, message.id, RequestError.
|
|
119
|
+
await rejectInitialize(reader, stream.writable, message.id, RequestError.unsupportedProtocolVersion(requested, [
|
|
120
|
+
...(this.v1 ? [PROTOCOL_V1] : []),
|
|
121
|
+
...(this.v2 ? [PROTOCOL_V2] : []),
|
|
122
|
+
]), batchedInitialize);
|
|
120
123
|
lifecycle.finish();
|
|
121
124
|
return;
|
|
122
125
|
}
|
|
@@ -163,7 +166,10 @@ export class AgentProtocolRouter {
|
|
|
163
166
|
throw error;
|
|
164
167
|
}
|
|
165
168
|
}
|
|
166
|
-
|
|
169
|
+
selectProtocol(requested) {
|
|
170
|
+
if (this.v1 && !this.v2) {
|
|
171
|
+
return PROTOCOL_V1;
|
|
172
|
+
}
|
|
167
173
|
if (this.v2 && requested >= PROTOCOL_V2) {
|
|
168
174
|
return PROTOCOL_V2;
|
|
169
175
|
}
|
|
@@ -172,18 +178,6 @@ export class AgentProtocolRouter {
|
|
|
172
178
|
}
|
|
173
179
|
return undefined;
|
|
174
180
|
}
|
|
175
|
-
supportedDescription() {
|
|
176
|
-
if (this.v1 && this.v2) {
|
|
177
|
-
return "ACP protocol versions 1 and 2";
|
|
178
|
-
}
|
|
179
|
-
if (this.v1) {
|
|
180
|
-
return "ACP protocol version 1";
|
|
181
|
-
}
|
|
182
|
-
if (this.v2) {
|
|
183
|
-
return "ACP protocol version 2";
|
|
184
|
-
}
|
|
185
|
-
return "no ACP protocol versions";
|
|
186
|
-
}
|
|
187
181
|
}
|
|
188
182
|
function shouldCloseWithoutResponse(message) {
|
|
189
183
|
if (!Array.isArray(message)) {
|
|
@@ -425,12 +419,6 @@ function v2ClientCapabilitiesToV1(capabilities) {
|
|
|
425
419
|
if (capabilities?.elicitation != null) {
|
|
426
420
|
result.elicitation = capabilities.elicitation;
|
|
427
421
|
}
|
|
428
|
-
if (capabilities?.nes != null) {
|
|
429
|
-
result.nes = capabilities.nes;
|
|
430
|
-
}
|
|
431
|
-
if (capabilities?.positionEncodings?.length) {
|
|
432
|
-
result.positionEncodings = capabilities.positionEncodings;
|
|
433
|
-
}
|
|
434
422
|
if (capabilities?._meta != null) {
|
|
435
423
|
result._meta = capabilities._meta;
|
|
436
424
|
}
|