@huanlin/dsh-plugin-codegraph-tool 0.1.8
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/LICENSE +21 -0
- package/README.md +17 -0
- package/lib/compose.d.ts +73 -0
- package/lib/compose.js +138 -0
- package/lib/index.d.ts +89 -0
- package/lib/index.js +432 -0
- package/lib/invariant.d.ts +16 -0
- package/lib/invariant.js +22 -0
- package/lib/projection.d.ts +73 -0
- package/lib/projection.js +68 -0
- package/lib/render.d.ts +16 -0
- package/lib/render.js +184 -0
- package/lib/schema.d.ts +1441 -0
- package/lib/schema.js +255 -0
- package/lib/source.d.ts +41 -0
- package/lib/source.js +48 -0
- package/package.json +69 -0
package/lib/schema.d.ts
ADDED
|
@@ -0,0 +1,1441 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `codegraph` tool's model-facing schemas: the parameter spec the model fills in and the
|
|
3
|
+
* canonical output union each operation returns.
|
|
4
|
+
*
|
|
5
|
+
* The output is a closed `oneOf` keyed on `operation`, not one loose object with every field
|
|
6
|
+
* optional, so a Code Mode program that switches on `operation` gets exactly the fields that
|
|
7
|
+
* operation produces and nothing it must test for. Members are built from shared field groups
|
|
8
|
+
* because ten hand-written copies of a symbol projection would drift apart.
|
|
9
|
+
* @module @huanlin/dsh-plugin-codegraph-tool/schema
|
|
10
|
+
*/
|
|
11
|
+
import type { InferArgs, InferValue } from '@deepseek-ai/dsh-tools';
|
|
12
|
+
/** Every operation the tool family exposes, across both the query tool and the dedicated index tool. */
|
|
13
|
+
export declare const CODEGRAPH_OPERATIONS: readonly ["search", "node", "callers", "callees", "impact", "trace", "files", "status", "explore", "context", "index"];
|
|
14
|
+
/** One operation name. */
|
|
15
|
+
export type CodegraphToolOperation = (typeof CODEGRAPH_OPERATIONS)[number];
|
|
16
|
+
/** The canonical value every `codegraph` call returns, discriminated by `operation`. */
|
|
17
|
+
export declare const CODEGRAPH_OUTPUT_SCHEMA: {
|
|
18
|
+
readonly oneOf: readonly [{
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly additionalProperties: false;
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly operation: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly required: true;
|
|
25
|
+
readonly const: "search";
|
|
26
|
+
};
|
|
27
|
+
readonly project_path: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly required: true;
|
|
30
|
+
};
|
|
31
|
+
} & {
|
|
32
|
+
readonly total: {
|
|
33
|
+
readonly type: "integer";
|
|
34
|
+
readonly required: true;
|
|
35
|
+
};
|
|
36
|
+
readonly truncated: {
|
|
37
|
+
readonly type: "boolean";
|
|
38
|
+
readonly required: true;
|
|
39
|
+
};
|
|
40
|
+
readonly symbols: {
|
|
41
|
+
readonly type: "array";
|
|
42
|
+
readonly required: true;
|
|
43
|
+
readonly items: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly additionalProperties: false;
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly name: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly required: true;
|
|
50
|
+
};
|
|
51
|
+
readonly qualified_name: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly required: true;
|
|
54
|
+
};
|
|
55
|
+
readonly kind: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
readonly required: true;
|
|
58
|
+
};
|
|
59
|
+
readonly path: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly required: true;
|
|
62
|
+
};
|
|
63
|
+
readonly line: {
|
|
64
|
+
readonly type: "integer";
|
|
65
|
+
readonly required: true;
|
|
66
|
+
};
|
|
67
|
+
readonly end_line: {
|
|
68
|
+
readonly type: "integer";
|
|
69
|
+
readonly required: true;
|
|
70
|
+
};
|
|
71
|
+
readonly language: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly required: true;
|
|
74
|
+
};
|
|
75
|
+
readonly exported: {
|
|
76
|
+
readonly type: "boolean";
|
|
77
|
+
readonly required: true;
|
|
78
|
+
};
|
|
79
|
+
readonly signature: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
};
|
|
82
|
+
readonly docstring: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "object";
|
|
91
|
+
readonly additionalProperties: false;
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly operation: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly required: true;
|
|
96
|
+
readonly const: "node";
|
|
97
|
+
};
|
|
98
|
+
readonly project_path: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly required: true;
|
|
101
|
+
};
|
|
102
|
+
} & {
|
|
103
|
+
readonly symbol: {
|
|
104
|
+
readonly required: true;
|
|
105
|
+
readonly oneOf: readonly [{
|
|
106
|
+
readonly type: "null";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "object";
|
|
109
|
+
readonly additionalProperties: false;
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly name: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly required: true;
|
|
114
|
+
};
|
|
115
|
+
readonly qualified_name: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly required: true;
|
|
118
|
+
};
|
|
119
|
+
readonly kind: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly required: true;
|
|
122
|
+
};
|
|
123
|
+
readonly path: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly required: true;
|
|
126
|
+
};
|
|
127
|
+
readonly line: {
|
|
128
|
+
readonly type: "integer";
|
|
129
|
+
readonly required: true;
|
|
130
|
+
};
|
|
131
|
+
readonly end_line: {
|
|
132
|
+
readonly type: "integer";
|
|
133
|
+
readonly required: true;
|
|
134
|
+
};
|
|
135
|
+
readonly language: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly required: true;
|
|
138
|
+
};
|
|
139
|
+
readonly exported: {
|
|
140
|
+
readonly type: "boolean";
|
|
141
|
+
readonly required: true;
|
|
142
|
+
};
|
|
143
|
+
readonly signature: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
};
|
|
146
|
+
readonly docstring: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}];
|
|
151
|
+
};
|
|
152
|
+
readonly incoming: {
|
|
153
|
+
readonly type: "array";
|
|
154
|
+
readonly required: true;
|
|
155
|
+
readonly items: {
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly additionalProperties: false;
|
|
158
|
+
readonly properties: {
|
|
159
|
+
readonly via: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly required: true;
|
|
162
|
+
};
|
|
163
|
+
readonly site_line: {
|
|
164
|
+
readonly type: "integer";
|
|
165
|
+
};
|
|
166
|
+
readonly site_count: {
|
|
167
|
+
readonly type: "integer";
|
|
168
|
+
readonly required: true;
|
|
169
|
+
};
|
|
170
|
+
readonly name: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly required: true;
|
|
173
|
+
};
|
|
174
|
+
readonly qualified_name: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly required: true;
|
|
177
|
+
};
|
|
178
|
+
readonly kind: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly required: true;
|
|
181
|
+
};
|
|
182
|
+
readonly path: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly required: true;
|
|
185
|
+
};
|
|
186
|
+
readonly line: {
|
|
187
|
+
readonly type: "integer";
|
|
188
|
+
readonly required: true;
|
|
189
|
+
};
|
|
190
|
+
readonly end_line: {
|
|
191
|
+
readonly type: "integer";
|
|
192
|
+
readonly required: true;
|
|
193
|
+
};
|
|
194
|
+
readonly language: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly required: true;
|
|
197
|
+
};
|
|
198
|
+
readonly exported: {
|
|
199
|
+
readonly type: "boolean";
|
|
200
|
+
readonly required: true;
|
|
201
|
+
};
|
|
202
|
+
readonly signature: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
};
|
|
205
|
+
readonly docstring: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly outgoing: {
|
|
212
|
+
readonly type: "array";
|
|
213
|
+
readonly required: true;
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly properties: {
|
|
218
|
+
readonly via: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly required: true;
|
|
221
|
+
};
|
|
222
|
+
readonly site_line: {
|
|
223
|
+
readonly type: "integer";
|
|
224
|
+
};
|
|
225
|
+
readonly site_count: {
|
|
226
|
+
readonly type: "integer";
|
|
227
|
+
readonly required: true;
|
|
228
|
+
};
|
|
229
|
+
readonly name: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly required: true;
|
|
232
|
+
};
|
|
233
|
+
readonly qualified_name: {
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
readonly required: true;
|
|
236
|
+
};
|
|
237
|
+
readonly kind: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly required: true;
|
|
240
|
+
};
|
|
241
|
+
readonly path: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly required: true;
|
|
244
|
+
};
|
|
245
|
+
readonly line: {
|
|
246
|
+
readonly type: "integer";
|
|
247
|
+
readonly required: true;
|
|
248
|
+
};
|
|
249
|
+
readonly end_line: {
|
|
250
|
+
readonly type: "integer";
|
|
251
|
+
readonly required: true;
|
|
252
|
+
};
|
|
253
|
+
readonly language: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly required: true;
|
|
256
|
+
};
|
|
257
|
+
readonly exported: {
|
|
258
|
+
readonly type: "boolean";
|
|
259
|
+
readonly required: true;
|
|
260
|
+
};
|
|
261
|
+
readonly signature: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
};
|
|
264
|
+
readonly docstring: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly alternatives: {
|
|
271
|
+
readonly type: "array";
|
|
272
|
+
readonly required: true;
|
|
273
|
+
readonly items: {
|
|
274
|
+
readonly type: "object";
|
|
275
|
+
readonly additionalProperties: false;
|
|
276
|
+
readonly properties: {
|
|
277
|
+
readonly name: {
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
readonly required: true;
|
|
280
|
+
};
|
|
281
|
+
readonly qualified_name: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly required: true;
|
|
284
|
+
};
|
|
285
|
+
readonly kind: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly required: true;
|
|
288
|
+
};
|
|
289
|
+
readonly path: {
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
readonly required: true;
|
|
292
|
+
};
|
|
293
|
+
readonly line: {
|
|
294
|
+
readonly type: "integer";
|
|
295
|
+
readonly required: true;
|
|
296
|
+
};
|
|
297
|
+
readonly end_line: {
|
|
298
|
+
readonly type: "integer";
|
|
299
|
+
readonly required: true;
|
|
300
|
+
};
|
|
301
|
+
readonly language: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly required: true;
|
|
304
|
+
};
|
|
305
|
+
readonly exported: {
|
|
306
|
+
readonly type: "boolean";
|
|
307
|
+
readonly required: true;
|
|
308
|
+
};
|
|
309
|
+
readonly signature: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
};
|
|
312
|
+
readonly docstring: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
readonly code: {
|
|
319
|
+
readonly required: true;
|
|
320
|
+
readonly oneOf: readonly [{
|
|
321
|
+
readonly type: "null";
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
}];
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
readonly properties: {
|
|
331
|
+
readonly operation: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
readonly required: true;
|
|
334
|
+
readonly const: "callers";
|
|
335
|
+
};
|
|
336
|
+
readonly project_path: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
readonly required: true;
|
|
339
|
+
};
|
|
340
|
+
} & {
|
|
341
|
+
readonly total: {
|
|
342
|
+
readonly type: "integer";
|
|
343
|
+
readonly required: true;
|
|
344
|
+
};
|
|
345
|
+
readonly truncated: {
|
|
346
|
+
readonly type: "boolean";
|
|
347
|
+
readonly required: true;
|
|
348
|
+
};
|
|
349
|
+
readonly symbol: {
|
|
350
|
+
readonly required: true;
|
|
351
|
+
readonly oneOf: readonly [{
|
|
352
|
+
readonly type: "null";
|
|
353
|
+
}, {
|
|
354
|
+
readonly type: "object";
|
|
355
|
+
readonly additionalProperties: false;
|
|
356
|
+
readonly properties: {
|
|
357
|
+
readonly name: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly required: true;
|
|
360
|
+
};
|
|
361
|
+
readonly qualified_name: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly required: true;
|
|
364
|
+
};
|
|
365
|
+
readonly kind: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly required: true;
|
|
368
|
+
};
|
|
369
|
+
readonly path: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly required: true;
|
|
372
|
+
};
|
|
373
|
+
readonly line: {
|
|
374
|
+
readonly type: "integer";
|
|
375
|
+
readonly required: true;
|
|
376
|
+
};
|
|
377
|
+
readonly end_line: {
|
|
378
|
+
readonly type: "integer";
|
|
379
|
+
readonly required: true;
|
|
380
|
+
};
|
|
381
|
+
readonly language: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly required: true;
|
|
384
|
+
};
|
|
385
|
+
readonly exported: {
|
|
386
|
+
readonly type: "boolean";
|
|
387
|
+
readonly required: true;
|
|
388
|
+
};
|
|
389
|
+
readonly signature: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
};
|
|
392
|
+
readonly docstring: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
}];
|
|
397
|
+
};
|
|
398
|
+
readonly relations: {
|
|
399
|
+
readonly type: "array";
|
|
400
|
+
readonly required: true;
|
|
401
|
+
readonly items: {
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly additionalProperties: false;
|
|
404
|
+
readonly properties: {
|
|
405
|
+
readonly via: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly required: true;
|
|
408
|
+
};
|
|
409
|
+
readonly site_line: {
|
|
410
|
+
readonly type: "integer";
|
|
411
|
+
};
|
|
412
|
+
readonly site_count: {
|
|
413
|
+
readonly type: "integer";
|
|
414
|
+
readonly required: true;
|
|
415
|
+
};
|
|
416
|
+
readonly name: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly required: true;
|
|
419
|
+
};
|
|
420
|
+
readonly qualified_name: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly required: true;
|
|
423
|
+
};
|
|
424
|
+
readonly kind: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly required: true;
|
|
427
|
+
};
|
|
428
|
+
readonly path: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly required: true;
|
|
431
|
+
};
|
|
432
|
+
readonly line: {
|
|
433
|
+
readonly type: "integer";
|
|
434
|
+
readonly required: true;
|
|
435
|
+
};
|
|
436
|
+
readonly end_line: {
|
|
437
|
+
readonly type: "integer";
|
|
438
|
+
readonly required: true;
|
|
439
|
+
};
|
|
440
|
+
readonly language: {
|
|
441
|
+
readonly type: "string";
|
|
442
|
+
readonly required: true;
|
|
443
|
+
};
|
|
444
|
+
readonly exported: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
readonly required: true;
|
|
447
|
+
};
|
|
448
|
+
readonly signature: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
};
|
|
451
|
+
readonly docstring: {
|
|
452
|
+
readonly type: "string";
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "object";
|
|
460
|
+
readonly additionalProperties: false;
|
|
461
|
+
readonly properties: {
|
|
462
|
+
readonly operation: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly required: true;
|
|
465
|
+
readonly const: "callees";
|
|
466
|
+
};
|
|
467
|
+
readonly project_path: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
readonly required: true;
|
|
470
|
+
};
|
|
471
|
+
} & {
|
|
472
|
+
readonly total: {
|
|
473
|
+
readonly type: "integer";
|
|
474
|
+
readonly required: true;
|
|
475
|
+
};
|
|
476
|
+
readonly truncated: {
|
|
477
|
+
readonly type: "boolean";
|
|
478
|
+
readonly required: true;
|
|
479
|
+
};
|
|
480
|
+
readonly symbol: {
|
|
481
|
+
readonly required: true;
|
|
482
|
+
readonly oneOf: readonly [{
|
|
483
|
+
readonly type: "null";
|
|
484
|
+
}, {
|
|
485
|
+
readonly type: "object";
|
|
486
|
+
readonly additionalProperties: false;
|
|
487
|
+
readonly properties: {
|
|
488
|
+
readonly name: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
readonly required: true;
|
|
491
|
+
};
|
|
492
|
+
readonly qualified_name: {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
readonly required: true;
|
|
495
|
+
};
|
|
496
|
+
readonly kind: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly required: true;
|
|
499
|
+
};
|
|
500
|
+
readonly path: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly required: true;
|
|
503
|
+
};
|
|
504
|
+
readonly line: {
|
|
505
|
+
readonly type: "integer";
|
|
506
|
+
readonly required: true;
|
|
507
|
+
};
|
|
508
|
+
readonly end_line: {
|
|
509
|
+
readonly type: "integer";
|
|
510
|
+
readonly required: true;
|
|
511
|
+
};
|
|
512
|
+
readonly language: {
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
readonly required: true;
|
|
515
|
+
};
|
|
516
|
+
readonly exported: {
|
|
517
|
+
readonly type: "boolean";
|
|
518
|
+
readonly required: true;
|
|
519
|
+
};
|
|
520
|
+
readonly signature: {
|
|
521
|
+
readonly type: "string";
|
|
522
|
+
};
|
|
523
|
+
readonly docstring: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
}];
|
|
528
|
+
};
|
|
529
|
+
readonly relations: {
|
|
530
|
+
readonly type: "array";
|
|
531
|
+
readonly required: true;
|
|
532
|
+
readonly items: {
|
|
533
|
+
readonly type: "object";
|
|
534
|
+
readonly additionalProperties: false;
|
|
535
|
+
readonly properties: {
|
|
536
|
+
readonly via: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly required: true;
|
|
539
|
+
};
|
|
540
|
+
readonly site_line: {
|
|
541
|
+
readonly type: "integer";
|
|
542
|
+
};
|
|
543
|
+
readonly site_count: {
|
|
544
|
+
readonly type: "integer";
|
|
545
|
+
readonly required: true;
|
|
546
|
+
};
|
|
547
|
+
readonly name: {
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
readonly required: true;
|
|
550
|
+
};
|
|
551
|
+
readonly qualified_name: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
readonly required: true;
|
|
554
|
+
};
|
|
555
|
+
readonly kind: {
|
|
556
|
+
readonly type: "string";
|
|
557
|
+
readonly required: true;
|
|
558
|
+
};
|
|
559
|
+
readonly path: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly required: true;
|
|
562
|
+
};
|
|
563
|
+
readonly line: {
|
|
564
|
+
readonly type: "integer";
|
|
565
|
+
readonly required: true;
|
|
566
|
+
};
|
|
567
|
+
readonly end_line: {
|
|
568
|
+
readonly type: "integer";
|
|
569
|
+
readonly required: true;
|
|
570
|
+
};
|
|
571
|
+
readonly language: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly required: true;
|
|
574
|
+
};
|
|
575
|
+
readonly exported: {
|
|
576
|
+
readonly type: "boolean";
|
|
577
|
+
readonly required: true;
|
|
578
|
+
};
|
|
579
|
+
readonly signature: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
};
|
|
582
|
+
readonly docstring: {
|
|
583
|
+
readonly type: "string";
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "object";
|
|
591
|
+
readonly additionalProperties: false;
|
|
592
|
+
readonly properties: {
|
|
593
|
+
readonly operation: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly required: true;
|
|
596
|
+
readonly const: "impact";
|
|
597
|
+
};
|
|
598
|
+
readonly project_path: {
|
|
599
|
+
readonly type: "string";
|
|
600
|
+
readonly required: true;
|
|
601
|
+
};
|
|
602
|
+
} & {
|
|
603
|
+
readonly total: {
|
|
604
|
+
readonly type: "integer";
|
|
605
|
+
readonly required: true;
|
|
606
|
+
};
|
|
607
|
+
readonly truncated: {
|
|
608
|
+
readonly type: "boolean";
|
|
609
|
+
readonly required: true;
|
|
610
|
+
};
|
|
611
|
+
readonly symbol: {
|
|
612
|
+
readonly required: true;
|
|
613
|
+
readonly oneOf: readonly [{
|
|
614
|
+
readonly type: "null";
|
|
615
|
+
}, {
|
|
616
|
+
readonly type: "object";
|
|
617
|
+
readonly additionalProperties: false;
|
|
618
|
+
readonly properties: {
|
|
619
|
+
readonly name: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly required: true;
|
|
622
|
+
};
|
|
623
|
+
readonly qualified_name: {
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
readonly required: true;
|
|
626
|
+
};
|
|
627
|
+
readonly kind: {
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
readonly required: true;
|
|
630
|
+
};
|
|
631
|
+
readonly path: {
|
|
632
|
+
readonly type: "string";
|
|
633
|
+
readonly required: true;
|
|
634
|
+
};
|
|
635
|
+
readonly line: {
|
|
636
|
+
readonly type: "integer";
|
|
637
|
+
readonly required: true;
|
|
638
|
+
};
|
|
639
|
+
readonly end_line: {
|
|
640
|
+
readonly type: "integer";
|
|
641
|
+
readonly required: true;
|
|
642
|
+
};
|
|
643
|
+
readonly language: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly required: true;
|
|
646
|
+
};
|
|
647
|
+
readonly exported: {
|
|
648
|
+
readonly type: "boolean";
|
|
649
|
+
readonly required: true;
|
|
650
|
+
};
|
|
651
|
+
readonly signature: {
|
|
652
|
+
readonly type: "string";
|
|
653
|
+
};
|
|
654
|
+
readonly docstring: {
|
|
655
|
+
readonly type: "string";
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
}];
|
|
659
|
+
};
|
|
660
|
+
readonly affected: {
|
|
661
|
+
readonly type: "array";
|
|
662
|
+
readonly required: true;
|
|
663
|
+
readonly items: {
|
|
664
|
+
readonly type: "object";
|
|
665
|
+
readonly additionalProperties: false;
|
|
666
|
+
readonly properties: {
|
|
667
|
+
readonly via: {
|
|
668
|
+
readonly type: "string";
|
|
669
|
+
readonly required: true;
|
|
670
|
+
};
|
|
671
|
+
readonly distance: {
|
|
672
|
+
readonly type: "integer";
|
|
673
|
+
readonly required: true;
|
|
674
|
+
};
|
|
675
|
+
readonly name: {
|
|
676
|
+
readonly type: "string";
|
|
677
|
+
readonly required: true;
|
|
678
|
+
};
|
|
679
|
+
readonly qualified_name: {
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
readonly required: true;
|
|
682
|
+
};
|
|
683
|
+
readonly kind: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
readonly required: true;
|
|
686
|
+
};
|
|
687
|
+
readonly path: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly required: true;
|
|
690
|
+
};
|
|
691
|
+
readonly line: {
|
|
692
|
+
readonly type: "integer";
|
|
693
|
+
readonly required: true;
|
|
694
|
+
};
|
|
695
|
+
readonly end_line: {
|
|
696
|
+
readonly type: "integer";
|
|
697
|
+
readonly required: true;
|
|
698
|
+
};
|
|
699
|
+
readonly language: {
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
readonly required: true;
|
|
702
|
+
};
|
|
703
|
+
readonly exported: {
|
|
704
|
+
readonly type: "boolean";
|
|
705
|
+
readonly required: true;
|
|
706
|
+
};
|
|
707
|
+
readonly signature: {
|
|
708
|
+
readonly type: "string";
|
|
709
|
+
};
|
|
710
|
+
readonly docstring: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
}, {
|
|
718
|
+
readonly type: "object";
|
|
719
|
+
readonly additionalProperties: false;
|
|
720
|
+
readonly properties: {
|
|
721
|
+
readonly operation: {
|
|
722
|
+
readonly type: "string";
|
|
723
|
+
readonly required: true;
|
|
724
|
+
readonly const: "trace";
|
|
725
|
+
};
|
|
726
|
+
readonly project_path: {
|
|
727
|
+
readonly type: "string";
|
|
728
|
+
readonly required: true;
|
|
729
|
+
};
|
|
730
|
+
} & {
|
|
731
|
+
readonly from: {
|
|
732
|
+
readonly required: true;
|
|
733
|
+
readonly oneOf: readonly [{
|
|
734
|
+
readonly type: "null";
|
|
735
|
+
}, {
|
|
736
|
+
readonly type: "object";
|
|
737
|
+
readonly additionalProperties: false;
|
|
738
|
+
readonly properties: {
|
|
739
|
+
readonly name: {
|
|
740
|
+
readonly type: "string";
|
|
741
|
+
readonly required: true;
|
|
742
|
+
};
|
|
743
|
+
readonly qualified_name: {
|
|
744
|
+
readonly type: "string";
|
|
745
|
+
readonly required: true;
|
|
746
|
+
};
|
|
747
|
+
readonly kind: {
|
|
748
|
+
readonly type: "string";
|
|
749
|
+
readonly required: true;
|
|
750
|
+
};
|
|
751
|
+
readonly path: {
|
|
752
|
+
readonly type: "string";
|
|
753
|
+
readonly required: true;
|
|
754
|
+
};
|
|
755
|
+
readonly line: {
|
|
756
|
+
readonly type: "integer";
|
|
757
|
+
readonly required: true;
|
|
758
|
+
};
|
|
759
|
+
readonly end_line: {
|
|
760
|
+
readonly type: "integer";
|
|
761
|
+
readonly required: true;
|
|
762
|
+
};
|
|
763
|
+
readonly language: {
|
|
764
|
+
readonly type: "string";
|
|
765
|
+
readonly required: true;
|
|
766
|
+
};
|
|
767
|
+
readonly exported: {
|
|
768
|
+
readonly type: "boolean";
|
|
769
|
+
readonly required: true;
|
|
770
|
+
};
|
|
771
|
+
readonly signature: {
|
|
772
|
+
readonly type: "string";
|
|
773
|
+
};
|
|
774
|
+
readonly docstring: {
|
|
775
|
+
readonly type: "string";
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
}];
|
|
779
|
+
};
|
|
780
|
+
readonly to: {
|
|
781
|
+
readonly required: true;
|
|
782
|
+
readonly oneOf: readonly [{
|
|
783
|
+
readonly type: "null";
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "object";
|
|
786
|
+
readonly additionalProperties: false;
|
|
787
|
+
readonly properties: {
|
|
788
|
+
readonly name: {
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
readonly required: true;
|
|
791
|
+
};
|
|
792
|
+
readonly qualified_name: {
|
|
793
|
+
readonly type: "string";
|
|
794
|
+
readonly required: true;
|
|
795
|
+
};
|
|
796
|
+
readonly kind: {
|
|
797
|
+
readonly type: "string";
|
|
798
|
+
readonly required: true;
|
|
799
|
+
};
|
|
800
|
+
readonly path: {
|
|
801
|
+
readonly type: "string";
|
|
802
|
+
readonly required: true;
|
|
803
|
+
};
|
|
804
|
+
readonly line: {
|
|
805
|
+
readonly type: "integer";
|
|
806
|
+
readonly required: true;
|
|
807
|
+
};
|
|
808
|
+
readonly end_line: {
|
|
809
|
+
readonly type: "integer";
|
|
810
|
+
readonly required: true;
|
|
811
|
+
};
|
|
812
|
+
readonly language: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
readonly required: true;
|
|
815
|
+
};
|
|
816
|
+
readonly exported: {
|
|
817
|
+
readonly type: "boolean";
|
|
818
|
+
readonly required: true;
|
|
819
|
+
};
|
|
820
|
+
readonly signature: {
|
|
821
|
+
readonly type: "string";
|
|
822
|
+
};
|
|
823
|
+
readonly docstring: {
|
|
824
|
+
readonly type: "string";
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
}];
|
|
828
|
+
};
|
|
829
|
+
readonly paths: {
|
|
830
|
+
readonly type: "array";
|
|
831
|
+
readonly required: true;
|
|
832
|
+
readonly items: {
|
|
833
|
+
readonly type: "array";
|
|
834
|
+
readonly items: {
|
|
835
|
+
readonly type: "object";
|
|
836
|
+
readonly additionalProperties: false;
|
|
837
|
+
readonly properties: {
|
|
838
|
+
readonly via: {
|
|
839
|
+
readonly type: "string";
|
|
840
|
+
};
|
|
841
|
+
readonly site_line: {
|
|
842
|
+
readonly type: "integer";
|
|
843
|
+
};
|
|
844
|
+
readonly name: {
|
|
845
|
+
readonly type: "string";
|
|
846
|
+
readonly required: true;
|
|
847
|
+
};
|
|
848
|
+
readonly qualified_name: {
|
|
849
|
+
readonly type: "string";
|
|
850
|
+
readonly required: true;
|
|
851
|
+
};
|
|
852
|
+
readonly kind: {
|
|
853
|
+
readonly type: "string";
|
|
854
|
+
readonly required: true;
|
|
855
|
+
};
|
|
856
|
+
readonly path: {
|
|
857
|
+
readonly type: "string";
|
|
858
|
+
readonly required: true;
|
|
859
|
+
};
|
|
860
|
+
readonly line: {
|
|
861
|
+
readonly type: "integer";
|
|
862
|
+
readonly required: true;
|
|
863
|
+
};
|
|
864
|
+
readonly end_line: {
|
|
865
|
+
readonly type: "integer";
|
|
866
|
+
readonly required: true;
|
|
867
|
+
};
|
|
868
|
+
readonly language: {
|
|
869
|
+
readonly type: "string";
|
|
870
|
+
readonly required: true;
|
|
871
|
+
};
|
|
872
|
+
readonly exported: {
|
|
873
|
+
readonly type: "boolean";
|
|
874
|
+
readonly required: true;
|
|
875
|
+
};
|
|
876
|
+
readonly signature: {
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
};
|
|
879
|
+
readonly docstring: {
|
|
880
|
+
readonly type: "string";
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
}, {
|
|
888
|
+
readonly type: "object";
|
|
889
|
+
readonly additionalProperties: false;
|
|
890
|
+
readonly properties: {
|
|
891
|
+
readonly operation: {
|
|
892
|
+
readonly type: "string";
|
|
893
|
+
readonly required: true;
|
|
894
|
+
readonly const: "files";
|
|
895
|
+
};
|
|
896
|
+
readonly project_path: {
|
|
897
|
+
readonly type: "string";
|
|
898
|
+
readonly required: true;
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
readonly total: {
|
|
902
|
+
readonly type: "integer";
|
|
903
|
+
readonly required: true;
|
|
904
|
+
};
|
|
905
|
+
readonly truncated: {
|
|
906
|
+
readonly type: "boolean";
|
|
907
|
+
readonly required: true;
|
|
908
|
+
};
|
|
909
|
+
readonly files: {
|
|
910
|
+
readonly type: "array";
|
|
911
|
+
readonly required: true;
|
|
912
|
+
readonly items: {
|
|
913
|
+
readonly type: "object";
|
|
914
|
+
readonly additionalProperties: false;
|
|
915
|
+
readonly properties: {
|
|
916
|
+
readonly path: {
|
|
917
|
+
readonly type: "string";
|
|
918
|
+
readonly required: true;
|
|
919
|
+
};
|
|
920
|
+
readonly language: {
|
|
921
|
+
readonly type: "string";
|
|
922
|
+
readonly required: true;
|
|
923
|
+
};
|
|
924
|
+
readonly size: {
|
|
925
|
+
readonly type: "integer";
|
|
926
|
+
readonly required: true;
|
|
927
|
+
};
|
|
928
|
+
readonly symbol_count: {
|
|
929
|
+
readonly type: "integer";
|
|
930
|
+
readonly required: true;
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
}, {
|
|
937
|
+
readonly type: "object";
|
|
938
|
+
readonly additionalProperties: false;
|
|
939
|
+
readonly properties: {
|
|
940
|
+
readonly operation: {
|
|
941
|
+
readonly type: "string";
|
|
942
|
+
readonly required: true;
|
|
943
|
+
readonly const: "status";
|
|
944
|
+
};
|
|
945
|
+
readonly project_path: {
|
|
946
|
+
readonly type: "string";
|
|
947
|
+
readonly required: true;
|
|
948
|
+
};
|
|
949
|
+
} & {
|
|
950
|
+
readonly indexed: {
|
|
951
|
+
readonly type: "boolean";
|
|
952
|
+
readonly required: true;
|
|
953
|
+
};
|
|
954
|
+
readonly file_count: {
|
|
955
|
+
readonly type: "integer";
|
|
956
|
+
};
|
|
957
|
+
readonly symbol_count: {
|
|
958
|
+
readonly type: "integer";
|
|
959
|
+
};
|
|
960
|
+
readonly edge_count: {
|
|
961
|
+
readonly type: "integer";
|
|
962
|
+
};
|
|
963
|
+
readonly format_version: {
|
|
964
|
+
readonly type: "integer";
|
|
965
|
+
};
|
|
966
|
+
readonly indexed_at: {
|
|
967
|
+
readonly oneOf: readonly [{
|
|
968
|
+
readonly type: "null";
|
|
969
|
+
}, {
|
|
970
|
+
readonly type: "integer";
|
|
971
|
+
}];
|
|
972
|
+
};
|
|
973
|
+
readonly languages: {
|
|
974
|
+
readonly type: "array";
|
|
975
|
+
readonly items: {
|
|
976
|
+
readonly type: "object";
|
|
977
|
+
readonly additionalProperties: false;
|
|
978
|
+
readonly properties: {
|
|
979
|
+
readonly language: {
|
|
980
|
+
readonly type: "string";
|
|
981
|
+
readonly required: true;
|
|
982
|
+
};
|
|
983
|
+
readonly file_count: {
|
|
984
|
+
readonly type: "integer";
|
|
985
|
+
readonly required: true;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
readonly stale_file_count: {
|
|
991
|
+
readonly type: "integer";
|
|
992
|
+
};
|
|
993
|
+
readonly stale_file_count_truncated: {
|
|
994
|
+
readonly type: "boolean";
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
}, {
|
|
998
|
+
readonly type: "object";
|
|
999
|
+
readonly additionalProperties: false;
|
|
1000
|
+
readonly properties: {
|
|
1001
|
+
readonly operation: {
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
readonly required: true;
|
|
1004
|
+
readonly const: "explore";
|
|
1005
|
+
};
|
|
1006
|
+
readonly project_path: {
|
|
1007
|
+
readonly type: "string";
|
|
1008
|
+
readonly required: true;
|
|
1009
|
+
};
|
|
1010
|
+
} & {
|
|
1011
|
+
readonly total: {
|
|
1012
|
+
readonly type: "integer";
|
|
1013
|
+
readonly required: true;
|
|
1014
|
+
};
|
|
1015
|
+
readonly truncated: {
|
|
1016
|
+
readonly type: "boolean";
|
|
1017
|
+
readonly required: true;
|
|
1018
|
+
};
|
|
1019
|
+
readonly files: {
|
|
1020
|
+
readonly type: "array";
|
|
1021
|
+
readonly required: true;
|
|
1022
|
+
readonly items: {
|
|
1023
|
+
readonly type: "object";
|
|
1024
|
+
readonly additionalProperties: false;
|
|
1025
|
+
readonly properties: {
|
|
1026
|
+
readonly path: {
|
|
1027
|
+
readonly type: "string";
|
|
1028
|
+
readonly required: true;
|
|
1029
|
+
};
|
|
1030
|
+
readonly symbols: {
|
|
1031
|
+
readonly type: "array";
|
|
1032
|
+
readonly required: true;
|
|
1033
|
+
readonly items: {
|
|
1034
|
+
readonly type: "object";
|
|
1035
|
+
readonly additionalProperties: false;
|
|
1036
|
+
readonly properties: {
|
|
1037
|
+
readonly name: {
|
|
1038
|
+
readonly type: "string";
|
|
1039
|
+
readonly required: true;
|
|
1040
|
+
};
|
|
1041
|
+
readonly qualified_name: {
|
|
1042
|
+
readonly type: "string";
|
|
1043
|
+
readonly required: true;
|
|
1044
|
+
};
|
|
1045
|
+
readonly kind: {
|
|
1046
|
+
readonly type: "string";
|
|
1047
|
+
readonly required: true;
|
|
1048
|
+
};
|
|
1049
|
+
readonly path: {
|
|
1050
|
+
readonly type: "string";
|
|
1051
|
+
readonly required: true;
|
|
1052
|
+
};
|
|
1053
|
+
readonly line: {
|
|
1054
|
+
readonly type: "integer";
|
|
1055
|
+
readonly required: true;
|
|
1056
|
+
};
|
|
1057
|
+
readonly end_line: {
|
|
1058
|
+
readonly type: "integer";
|
|
1059
|
+
readonly required: true;
|
|
1060
|
+
};
|
|
1061
|
+
readonly language: {
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
readonly required: true;
|
|
1064
|
+
};
|
|
1065
|
+
readonly exported: {
|
|
1066
|
+
readonly type: "boolean";
|
|
1067
|
+
readonly required: true;
|
|
1068
|
+
};
|
|
1069
|
+
readonly signature: {
|
|
1070
|
+
readonly type: "string";
|
|
1071
|
+
};
|
|
1072
|
+
readonly docstring: {
|
|
1073
|
+
readonly type: "string";
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
readonly code: {
|
|
1079
|
+
readonly required: true;
|
|
1080
|
+
readonly oneOf: readonly [{
|
|
1081
|
+
readonly type: "null";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly type: "string";
|
|
1084
|
+
}];
|
|
1085
|
+
};
|
|
1086
|
+
readonly code_start_line: {
|
|
1087
|
+
readonly type: "integer";
|
|
1088
|
+
};
|
|
1089
|
+
readonly truncated: {
|
|
1090
|
+
readonly type: "boolean";
|
|
1091
|
+
readonly required: true;
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly type: "object";
|
|
1099
|
+
readonly additionalProperties: false;
|
|
1100
|
+
readonly properties: {
|
|
1101
|
+
readonly operation: {
|
|
1102
|
+
readonly type: "string";
|
|
1103
|
+
readonly required: true;
|
|
1104
|
+
readonly const: "context";
|
|
1105
|
+
};
|
|
1106
|
+
readonly project_path: {
|
|
1107
|
+
readonly type: "string";
|
|
1108
|
+
readonly required: true;
|
|
1109
|
+
};
|
|
1110
|
+
} & {
|
|
1111
|
+
readonly task: {
|
|
1112
|
+
readonly type: "string";
|
|
1113
|
+
readonly required: true;
|
|
1114
|
+
};
|
|
1115
|
+
readonly entry_points: {
|
|
1116
|
+
readonly type: "array";
|
|
1117
|
+
readonly required: true;
|
|
1118
|
+
readonly items: {
|
|
1119
|
+
readonly type: "object";
|
|
1120
|
+
readonly additionalProperties: false;
|
|
1121
|
+
readonly properties: {
|
|
1122
|
+
readonly name: {
|
|
1123
|
+
readonly type: "string";
|
|
1124
|
+
readonly required: true;
|
|
1125
|
+
};
|
|
1126
|
+
readonly qualified_name: {
|
|
1127
|
+
readonly type: "string";
|
|
1128
|
+
readonly required: true;
|
|
1129
|
+
};
|
|
1130
|
+
readonly kind: {
|
|
1131
|
+
readonly type: "string";
|
|
1132
|
+
readonly required: true;
|
|
1133
|
+
};
|
|
1134
|
+
readonly path: {
|
|
1135
|
+
readonly type: "string";
|
|
1136
|
+
readonly required: true;
|
|
1137
|
+
};
|
|
1138
|
+
readonly line: {
|
|
1139
|
+
readonly type: "integer";
|
|
1140
|
+
readonly required: true;
|
|
1141
|
+
};
|
|
1142
|
+
readonly end_line: {
|
|
1143
|
+
readonly type: "integer";
|
|
1144
|
+
readonly required: true;
|
|
1145
|
+
};
|
|
1146
|
+
readonly language: {
|
|
1147
|
+
readonly type: "string";
|
|
1148
|
+
readonly required: true;
|
|
1149
|
+
};
|
|
1150
|
+
readonly exported: {
|
|
1151
|
+
readonly type: "boolean";
|
|
1152
|
+
readonly required: true;
|
|
1153
|
+
};
|
|
1154
|
+
readonly signature: {
|
|
1155
|
+
readonly type: "string";
|
|
1156
|
+
};
|
|
1157
|
+
readonly docstring: {
|
|
1158
|
+
readonly type: "string";
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
readonly related: {
|
|
1164
|
+
readonly type: "array";
|
|
1165
|
+
readonly required: true;
|
|
1166
|
+
readonly items: {
|
|
1167
|
+
readonly type: "object";
|
|
1168
|
+
readonly additionalProperties: false;
|
|
1169
|
+
readonly properties: {
|
|
1170
|
+
readonly via: {
|
|
1171
|
+
readonly type: "string";
|
|
1172
|
+
readonly required: true;
|
|
1173
|
+
};
|
|
1174
|
+
readonly site_line: {
|
|
1175
|
+
readonly type: "integer";
|
|
1176
|
+
};
|
|
1177
|
+
readonly site_count: {
|
|
1178
|
+
readonly type: "integer";
|
|
1179
|
+
readonly required: true;
|
|
1180
|
+
};
|
|
1181
|
+
readonly name: {
|
|
1182
|
+
readonly type: "string";
|
|
1183
|
+
readonly required: true;
|
|
1184
|
+
};
|
|
1185
|
+
readonly qualified_name: {
|
|
1186
|
+
readonly type: "string";
|
|
1187
|
+
readonly required: true;
|
|
1188
|
+
};
|
|
1189
|
+
readonly kind: {
|
|
1190
|
+
readonly type: "string";
|
|
1191
|
+
readonly required: true;
|
|
1192
|
+
};
|
|
1193
|
+
readonly path: {
|
|
1194
|
+
readonly type: "string";
|
|
1195
|
+
readonly required: true;
|
|
1196
|
+
};
|
|
1197
|
+
readonly line: {
|
|
1198
|
+
readonly type: "integer";
|
|
1199
|
+
readonly required: true;
|
|
1200
|
+
};
|
|
1201
|
+
readonly end_line: {
|
|
1202
|
+
readonly type: "integer";
|
|
1203
|
+
readonly required: true;
|
|
1204
|
+
};
|
|
1205
|
+
readonly language: {
|
|
1206
|
+
readonly type: "string";
|
|
1207
|
+
readonly required: true;
|
|
1208
|
+
};
|
|
1209
|
+
readonly exported: {
|
|
1210
|
+
readonly type: "boolean";
|
|
1211
|
+
readonly required: true;
|
|
1212
|
+
};
|
|
1213
|
+
readonly signature: {
|
|
1214
|
+
readonly type: "string";
|
|
1215
|
+
};
|
|
1216
|
+
readonly docstring: {
|
|
1217
|
+
readonly type: "string";
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
readonly files: {
|
|
1223
|
+
readonly type: "array";
|
|
1224
|
+
readonly required: true;
|
|
1225
|
+
readonly items: {
|
|
1226
|
+
readonly type: "object";
|
|
1227
|
+
readonly additionalProperties: false;
|
|
1228
|
+
readonly properties: {
|
|
1229
|
+
readonly path: {
|
|
1230
|
+
readonly type: "string";
|
|
1231
|
+
readonly required: true;
|
|
1232
|
+
};
|
|
1233
|
+
readonly symbols: {
|
|
1234
|
+
readonly type: "array";
|
|
1235
|
+
readonly required: true;
|
|
1236
|
+
readonly items: {
|
|
1237
|
+
readonly type: "object";
|
|
1238
|
+
readonly additionalProperties: false;
|
|
1239
|
+
readonly properties: {
|
|
1240
|
+
readonly name: {
|
|
1241
|
+
readonly type: "string";
|
|
1242
|
+
readonly required: true;
|
|
1243
|
+
};
|
|
1244
|
+
readonly qualified_name: {
|
|
1245
|
+
readonly type: "string";
|
|
1246
|
+
readonly required: true;
|
|
1247
|
+
};
|
|
1248
|
+
readonly kind: {
|
|
1249
|
+
readonly type: "string";
|
|
1250
|
+
readonly required: true;
|
|
1251
|
+
};
|
|
1252
|
+
readonly path: {
|
|
1253
|
+
readonly type: "string";
|
|
1254
|
+
readonly required: true;
|
|
1255
|
+
};
|
|
1256
|
+
readonly line: {
|
|
1257
|
+
readonly type: "integer";
|
|
1258
|
+
readonly required: true;
|
|
1259
|
+
};
|
|
1260
|
+
readonly end_line: {
|
|
1261
|
+
readonly type: "integer";
|
|
1262
|
+
readonly required: true;
|
|
1263
|
+
};
|
|
1264
|
+
readonly language: {
|
|
1265
|
+
readonly type: "string";
|
|
1266
|
+
readonly required: true;
|
|
1267
|
+
};
|
|
1268
|
+
readonly exported: {
|
|
1269
|
+
readonly type: "boolean";
|
|
1270
|
+
readonly required: true;
|
|
1271
|
+
};
|
|
1272
|
+
readonly signature: {
|
|
1273
|
+
readonly type: "string";
|
|
1274
|
+
};
|
|
1275
|
+
readonly docstring: {
|
|
1276
|
+
readonly type: "string";
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
readonly code: {
|
|
1282
|
+
readonly required: true;
|
|
1283
|
+
readonly oneOf: readonly [{
|
|
1284
|
+
readonly type: "null";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly type: "string";
|
|
1287
|
+
}];
|
|
1288
|
+
};
|
|
1289
|
+
readonly code_start_line: {
|
|
1290
|
+
readonly type: "integer";
|
|
1291
|
+
};
|
|
1292
|
+
readonly truncated: {
|
|
1293
|
+
readonly type: "boolean";
|
|
1294
|
+
readonly required: true;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly type: "object";
|
|
1302
|
+
readonly additionalProperties: false;
|
|
1303
|
+
readonly properties: {
|
|
1304
|
+
readonly operation: {
|
|
1305
|
+
readonly type: "string";
|
|
1306
|
+
readonly required: true;
|
|
1307
|
+
readonly const: "index";
|
|
1308
|
+
};
|
|
1309
|
+
readonly project_path: {
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
readonly required: true;
|
|
1312
|
+
};
|
|
1313
|
+
} & {
|
|
1314
|
+
readonly files_indexed: {
|
|
1315
|
+
readonly type: "integer";
|
|
1316
|
+
readonly required: true;
|
|
1317
|
+
};
|
|
1318
|
+
readonly files_skipped: {
|
|
1319
|
+
readonly type: "integer";
|
|
1320
|
+
readonly required: true;
|
|
1321
|
+
};
|
|
1322
|
+
readonly symbol_count: {
|
|
1323
|
+
readonly type: "integer";
|
|
1324
|
+
readonly required: true;
|
|
1325
|
+
};
|
|
1326
|
+
readonly edge_count: {
|
|
1327
|
+
readonly type: "integer";
|
|
1328
|
+
readonly required: true;
|
|
1329
|
+
};
|
|
1330
|
+
readonly unresolved_count: {
|
|
1331
|
+
readonly type: "integer";
|
|
1332
|
+
readonly required: true;
|
|
1333
|
+
};
|
|
1334
|
+
readonly unresolved_likely_internal_count: {
|
|
1335
|
+
readonly type: "integer";
|
|
1336
|
+
readonly required: true;
|
|
1337
|
+
};
|
|
1338
|
+
readonly languages: {
|
|
1339
|
+
readonly type: "array";
|
|
1340
|
+
readonly required: true;
|
|
1341
|
+
readonly items: {
|
|
1342
|
+
readonly type: "object";
|
|
1343
|
+
readonly additionalProperties: false;
|
|
1344
|
+
readonly properties: {
|
|
1345
|
+
readonly language: {
|
|
1346
|
+
readonly type: "string";
|
|
1347
|
+
readonly required: true;
|
|
1348
|
+
};
|
|
1349
|
+
readonly file_count: {
|
|
1350
|
+
readonly type: "integer";
|
|
1351
|
+
readonly required: true;
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
}];
|
|
1358
|
+
};
|
|
1359
|
+
/** The parameters the model fills in. Which ones apply depends on `operation`. */
|
|
1360
|
+
export declare const CODEGRAPH_PARAMETERS: {
|
|
1361
|
+
readonly operation: {
|
|
1362
|
+
readonly type: "string";
|
|
1363
|
+
readonly required: true;
|
|
1364
|
+
readonly enum: readonly ["search", "node", "callers", "callees", "impact", "trace", "files", "status", "explore", "context"];
|
|
1365
|
+
readonly description: "search (find declarations by name), node (one symbol with its callers and callees), callers, callees, impact (what a change reaches), trace (call path from one symbol to another), files (indexed file list), status (index size and freshness), explore (several related symbols with their source), context (everything relevant to a task). To build or refresh the index itself, call the codegraph_index tool instead.";
|
|
1366
|
+
};
|
|
1367
|
+
readonly symbol: {
|
|
1368
|
+
readonly type: "string";
|
|
1369
|
+
readonly description: "The symbol name for node, callers, callees, and impact. Simple or qualified.";
|
|
1370
|
+
};
|
|
1371
|
+
readonly query: {
|
|
1372
|
+
readonly type: "string";
|
|
1373
|
+
readonly description: "The search text for search and explore. Matches names, qualified names, signatures, and documentation.";
|
|
1374
|
+
};
|
|
1375
|
+
readonly task: {
|
|
1376
|
+
readonly type: "string";
|
|
1377
|
+
readonly description: "The task, bug, or feature to gather context for. Required by context.";
|
|
1378
|
+
};
|
|
1379
|
+
readonly from: {
|
|
1380
|
+
readonly type: "string";
|
|
1381
|
+
readonly description: "The symbol a traced flow starts at. Required by trace.";
|
|
1382
|
+
};
|
|
1383
|
+
readonly to: {
|
|
1384
|
+
readonly type: "string";
|
|
1385
|
+
readonly description: "The symbol a traced flow should reach. Required by trace.";
|
|
1386
|
+
};
|
|
1387
|
+
readonly path: {
|
|
1388
|
+
readonly type: "string";
|
|
1389
|
+
readonly description: "Restrict files to this directory, relative to the project root.";
|
|
1390
|
+
};
|
|
1391
|
+
readonly pattern: {
|
|
1392
|
+
readonly type: "string";
|
|
1393
|
+
readonly description: "Restrict files to paths matching this glob, e.g. src/pages/*.tsx.";
|
|
1394
|
+
};
|
|
1395
|
+
readonly kind: {
|
|
1396
|
+
readonly type: "string";
|
|
1397
|
+
readonly description: "Restrict search to one declaration kind, e.g. function, class, interface.";
|
|
1398
|
+
};
|
|
1399
|
+
readonly language: {
|
|
1400
|
+
readonly type: "string";
|
|
1401
|
+
readonly description: "Restrict search to one language, e.g. typescript, python, go.";
|
|
1402
|
+
};
|
|
1403
|
+
readonly limit: {
|
|
1404
|
+
readonly type: "number";
|
|
1405
|
+
readonly description: "Largest number of results to return.";
|
|
1406
|
+
};
|
|
1407
|
+
readonly depth: {
|
|
1408
|
+
readonly type: "number";
|
|
1409
|
+
readonly description: "Hops to traverse for impact and trace.";
|
|
1410
|
+
};
|
|
1411
|
+
readonly include_code: {
|
|
1412
|
+
readonly type: "boolean";
|
|
1413
|
+
readonly description: "Include source text for node. explore and context always include it.";
|
|
1414
|
+
};
|
|
1415
|
+
readonly project_path: {
|
|
1416
|
+
readonly type: "string";
|
|
1417
|
+
readonly description: "Absolute path of another indexed project to query. Defaults to this session's workspace.";
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
/**
|
|
1421
|
+
* The parameters the dedicated `codegraph_index` tool takes: only the project to (re)index. It
|
|
1422
|
+
* needs no `operation` — building the index is the only thing this tool does — and none of the
|
|
1423
|
+
* query-side fields (`symbol`, `query`, `limit`, …), which an index run has no use for.
|
|
1424
|
+
*/
|
|
1425
|
+
export declare const CODEGRAPH_INDEX_PARAMETERS: {
|
|
1426
|
+
readonly project_path: {
|
|
1427
|
+
readonly type: "string";
|
|
1428
|
+
readonly description: "Absolute path of the project to index. Defaults to this session's workspace.";
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
/** The canonical value, inferred from {@link CODEGRAPH_OUTPUT_SCHEMA} so the two cannot drift. */
|
|
1432
|
+
export type CodegraphToolValue = InferValue<typeof CODEGRAPH_OUTPUT_SCHEMA>;
|
|
1433
|
+
/** The validated arguments, inferred from {@link CODEGRAPH_PARAMETERS}. */
|
|
1434
|
+
export type CodegraphToolArgs = InferArgs<typeof CODEGRAPH_PARAMETERS>;
|
|
1435
|
+
/** The validated arguments, inferred from {@link CODEGRAPH_INDEX_PARAMETERS}. */
|
|
1436
|
+
export type CodegraphIndexToolArgs = InferArgs<typeof CODEGRAPH_INDEX_PARAMETERS>;
|
|
1437
|
+
/** The canonical value for one operation. */
|
|
1438
|
+
export type CodegraphValueFor<O extends CodegraphToolOperation> = Extract<CodegraphToolValue, {
|
|
1439
|
+
operation: O;
|
|
1440
|
+
}>;
|
|
1441
|
+
//# sourceMappingURL=schema.d.ts.map
|