kmp-api-lookup-mcp 0.1.0
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/README.md +219 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.js +33 -0
- package/dist/config/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/indexer/index.d.ts +12 -0
- package/dist/indexer/index.js +245 -0
- package/dist/indexer/index.js.map +1 -0
- package/dist/search-utils.d.ts +10 -0
- package/dist/search-utils.js +81 -0
- package/dist/search-utils.js.map +1 -0
- package/dist/server/createServer.d.ts +11 -0
- package/dist/server/createServer.js +30 -0
- package/dist/server/createServer.js.map +1 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +3 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/lookupDetail.d.ts +3 -0
- package/dist/server/lookupDetail.js +295 -0
- package/dist/server/lookupDetail.js.map +1 -0
- package/dist/server/lookupService.d.ts +34 -0
- package/dist/server/lookupService.js +822 -0
- package/dist/server/lookupService.js.map +1 -0
- package/dist/server/metadataInspector.d.ts +14 -0
- package/dist/server/metadataInspector.js +288 -0
- package/dist/server/metadataInspector.js.map +1 -0
- package/dist/storage/index.d.ts +58 -0
- package/dist/storage/index.js +554 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +488 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types.d.ts +287 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { fromJsonSchema, } from '@modelcontextprotocol/server';
|
|
2
|
+
const emptyObjectSchema = fromJsonSchema({
|
|
3
|
+
type: 'object',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
});
|
|
6
|
+
const stringArraySchema = {
|
|
7
|
+
type: 'array',
|
|
8
|
+
items: { type: 'string' },
|
|
9
|
+
};
|
|
10
|
+
const lookupInputSchema = fromJsonSchema({
|
|
11
|
+
type: 'object',
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
properties: {
|
|
14
|
+
query: { type: 'string', minLength: 1 },
|
|
15
|
+
frameworks: stringArraySchema,
|
|
16
|
+
kotlinVersion: { type: 'string' },
|
|
17
|
+
target: { type: 'string' },
|
|
18
|
+
detail: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
enum: ['compact', 'full'],
|
|
21
|
+
},
|
|
22
|
+
queryKind: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
enum: ['auto', 'class', 'member'],
|
|
25
|
+
},
|
|
26
|
+
limit: {
|
|
27
|
+
type: 'integer',
|
|
28
|
+
minimum: 1,
|
|
29
|
+
maximum: 20,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
required: ['query'],
|
|
33
|
+
});
|
|
34
|
+
const rebuildInputSchema = fromJsonSchema({
|
|
35
|
+
type: 'object',
|
|
36
|
+
additionalProperties: false,
|
|
37
|
+
properties: {
|
|
38
|
+
kotlinVersion: { type: 'string' },
|
|
39
|
+
konanHome: { type: 'string' },
|
|
40
|
+
target: { type: 'string' },
|
|
41
|
+
frameworks: stringArraySchema,
|
|
42
|
+
force: { type: 'boolean' },
|
|
43
|
+
dryRun: { type: 'boolean' },
|
|
44
|
+
cleanBefore: { type: 'boolean' },
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const lookupSymbolSignatureSchema = {
|
|
48
|
+
type: 'object',
|
|
49
|
+
additionalProperties: false,
|
|
50
|
+
properties: {
|
|
51
|
+
name: { type: 'string' },
|
|
52
|
+
kind: { type: 'string' },
|
|
53
|
+
scope: { type: 'string' },
|
|
54
|
+
declarationForm: { type: 'string' },
|
|
55
|
+
kotlinSignature: { type: 'string' },
|
|
56
|
+
objcSelector: { type: ['string', 'null'] },
|
|
57
|
+
requiredImports: stringArraySchema,
|
|
58
|
+
},
|
|
59
|
+
required: [
|
|
60
|
+
'name',
|
|
61
|
+
'kind',
|
|
62
|
+
'scope',
|
|
63
|
+
'declarationForm',
|
|
64
|
+
'kotlinSignature',
|
|
65
|
+
'objcSelector',
|
|
66
|
+
'requiredImports',
|
|
67
|
+
],
|
|
68
|
+
};
|
|
69
|
+
const lookupPropertyAccessorsSchema = {
|
|
70
|
+
type: 'object',
|
|
71
|
+
additionalProperties: false,
|
|
72
|
+
properties: {
|
|
73
|
+
getter: { type: 'boolean' },
|
|
74
|
+
setter: { type: 'boolean' },
|
|
75
|
+
},
|
|
76
|
+
required: ['getter', 'setter'],
|
|
77
|
+
};
|
|
78
|
+
const lookupCompactCallableSummarySchema = {
|
|
79
|
+
type: 'object',
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
properties: {
|
|
82
|
+
name: { type: 'string' },
|
|
83
|
+
kotlinSignatures: stringArraySchema,
|
|
84
|
+
objcSelectors: stringArraySchema,
|
|
85
|
+
requiredImports: stringArraySchema,
|
|
86
|
+
},
|
|
87
|
+
required: ['name', 'kotlinSignatures', 'objcSelectors', 'requiredImports'],
|
|
88
|
+
};
|
|
89
|
+
const lookupCompactPropertySummarySchema = {
|
|
90
|
+
type: 'object',
|
|
91
|
+
additionalProperties: false,
|
|
92
|
+
properties: {
|
|
93
|
+
name: { type: 'string' },
|
|
94
|
+
kotlinSignature: { type: 'string' },
|
|
95
|
+
mutable: { type: 'boolean' },
|
|
96
|
+
accessors: lookupPropertyAccessorsSchema,
|
|
97
|
+
requiredImports: stringArraySchema,
|
|
98
|
+
},
|
|
99
|
+
required: ['name', 'kotlinSignature', 'mutable', 'accessors', 'requiredImports'],
|
|
100
|
+
};
|
|
101
|
+
const lookupFullClassCardSchema = {
|
|
102
|
+
type: 'object',
|
|
103
|
+
additionalProperties: false,
|
|
104
|
+
properties: {
|
|
105
|
+
framework: { type: 'string' },
|
|
106
|
+
packageName: { type: 'string' },
|
|
107
|
+
name: { type: 'string' },
|
|
108
|
+
qualifiedName: { type: 'string' },
|
|
109
|
+
detailLevel: { type: 'string', enum: ['full'] },
|
|
110
|
+
kind: { type: 'string' },
|
|
111
|
+
kotlinSignature: { type: 'string' },
|
|
112
|
+
extendsType: { type: ['string', 'null'] },
|
|
113
|
+
implementsTypes: stringArraySchema,
|
|
114
|
+
requiredImports: stringArraySchema,
|
|
115
|
+
totalConstructors: { type: 'integer' },
|
|
116
|
+
totalMembers: { type: 'integer' },
|
|
117
|
+
totalClassMembers: { type: 'integer' },
|
|
118
|
+
omittedConstructors: { type: 'integer' },
|
|
119
|
+
omittedMembers: { type: 'integer' },
|
|
120
|
+
omittedClassMembers: { type: 'integer' },
|
|
121
|
+
constructors: {
|
|
122
|
+
type: 'array',
|
|
123
|
+
items: lookupSymbolSignatureSchema,
|
|
124
|
+
},
|
|
125
|
+
members: {
|
|
126
|
+
type: 'array',
|
|
127
|
+
items: lookupSymbolSignatureSchema,
|
|
128
|
+
},
|
|
129
|
+
classMembers: {
|
|
130
|
+
type: 'array',
|
|
131
|
+
items: lookupSymbolSignatureSchema,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
required: [
|
|
135
|
+
'framework',
|
|
136
|
+
'packageName',
|
|
137
|
+
'name',
|
|
138
|
+
'qualifiedName',
|
|
139
|
+
'detailLevel',
|
|
140
|
+
'kind',
|
|
141
|
+
'kotlinSignature',
|
|
142
|
+
'extendsType',
|
|
143
|
+
'implementsTypes',
|
|
144
|
+
'requiredImports',
|
|
145
|
+
'totalConstructors',
|
|
146
|
+
'totalMembers',
|
|
147
|
+
'totalClassMembers',
|
|
148
|
+
'omittedConstructors',
|
|
149
|
+
'omittedMembers',
|
|
150
|
+
'omittedClassMembers',
|
|
151
|
+
'constructors',
|
|
152
|
+
'members',
|
|
153
|
+
'classMembers',
|
|
154
|
+
],
|
|
155
|
+
};
|
|
156
|
+
const lookupCompactClassCardSchema = {
|
|
157
|
+
type: 'object',
|
|
158
|
+
additionalProperties: false,
|
|
159
|
+
properties: {
|
|
160
|
+
framework: { type: 'string' },
|
|
161
|
+
packageName: { type: 'string' },
|
|
162
|
+
name: { type: 'string' },
|
|
163
|
+
qualifiedName: { type: 'string' },
|
|
164
|
+
detailLevel: { type: 'string', enum: ['compact'] },
|
|
165
|
+
kind: { type: 'string' },
|
|
166
|
+
kotlinSignature: { type: 'string' },
|
|
167
|
+
extendsType: { type: ['string', 'null'] },
|
|
168
|
+
implementsTypes: stringArraySchema,
|
|
169
|
+
requiredImports: stringArraySchema,
|
|
170
|
+
constructors: {
|
|
171
|
+
type: 'array',
|
|
172
|
+
items: lookupCompactCallableSummarySchema,
|
|
173
|
+
},
|
|
174
|
+
properties: {
|
|
175
|
+
type: 'array',
|
|
176
|
+
items: lookupCompactPropertySummarySchema,
|
|
177
|
+
},
|
|
178
|
+
methods: {
|
|
179
|
+
type: 'array',
|
|
180
|
+
items: lookupCompactCallableSummarySchema,
|
|
181
|
+
},
|
|
182
|
+
classMethods: {
|
|
183
|
+
type: 'array',
|
|
184
|
+
items: lookupCompactCallableSummarySchema,
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
required: [
|
|
188
|
+
'framework',
|
|
189
|
+
'packageName',
|
|
190
|
+
'name',
|
|
191
|
+
'qualifiedName',
|
|
192
|
+
'detailLevel',
|
|
193
|
+
'kind',
|
|
194
|
+
'kotlinSignature',
|
|
195
|
+
'extendsType',
|
|
196
|
+
'implementsTypes',
|
|
197
|
+
'requiredImports',
|
|
198
|
+
'constructors',
|
|
199
|
+
'properties',
|
|
200
|
+
'methods',
|
|
201
|
+
'classMethods',
|
|
202
|
+
],
|
|
203
|
+
};
|
|
204
|
+
const lookupClassCardSchema = {
|
|
205
|
+
oneOf: [lookupFullClassCardSchema, lookupCompactClassCardSchema],
|
|
206
|
+
};
|
|
207
|
+
const lookupFullMemberCardSchema = {
|
|
208
|
+
type: 'object',
|
|
209
|
+
additionalProperties: false,
|
|
210
|
+
properties: {
|
|
211
|
+
framework: { type: 'string' },
|
|
212
|
+
packageName: { type: 'string' },
|
|
213
|
+
ownerName: { type: 'string' },
|
|
214
|
+
ownerQualifiedName: { type: 'string' },
|
|
215
|
+
detailLevel: { type: 'string', enum: ['full'] },
|
|
216
|
+
ownerKind: { type: 'string' },
|
|
217
|
+
ownerKotlinSignature: { type: 'string' },
|
|
218
|
+
extendsType: { type: ['string', 'null'] },
|
|
219
|
+
implementsTypes: stringArraySchema,
|
|
220
|
+
name: { type: 'string' },
|
|
221
|
+
requiredImports: stringArraySchema,
|
|
222
|
+
totalEntries: { type: 'integer' },
|
|
223
|
+
omittedEntries: { type: 'integer' },
|
|
224
|
+
entries: {
|
|
225
|
+
type: 'array',
|
|
226
|
+
items: lookupSymbolSignatureSchema,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
required: [
|
|
230
|
+
'framework',
|
|
231
|
+
'packageName',
|
|
232
|
+
'ownerName',
|
|
233
|
+
'ownerQualifiedName',
|
|
234
|
+
'detailLevel',
|
|
235
|
+
'ownerKind',
|
|
236
|
+
'ownerKotlinSignature',
|
|
237
|
+
'extendsType',
|
|
238
|
+
'implementsTypes',
|
|
239
|
+
'name',
|
|
240
|
+
'requiredImports',
|
|
241
|
+
'totalEntries',
|
|
242
|
+
'omittedEntries',
|
|
243
|
+
'entries',
|
|
244
|
+
],
|
|
245
|
+
};
|
|
246
|
+
const lookupCompactMemberCardSchema = {
|
|
247
|
+
type: 'object',
|
|
248
|
+
additionalProperties: false,
|
|
249
|
+
properties: {
|
|
250
|
+
framework: { type: 'string' },
|
|
251
|
+
packageName: { type: 'string' },
|
|
252
|
+
ownerName: { type: 'string' },
|
|
253
|
+
ownerQualifiedName: { type: 'string' },
|
|
254
|
+
ownerKind: { type: 'string' },
|
|
255
|
+
detailLevel: { type: 'string', enum: ['compact'] },
|
|
256
|
+
name: { type: 'string' },
|
|
257
|
+
requiredImports: stringArraySchema,
|
|
258
|
+
kind: { type: 'string' },
|
|
259
|
+
kotlinSignatures: stringArraySchema,
|
|
260
|
+
objcSelectors: stringArraySchema,
|
|
261
|
+
accessors: {
|
|
262
|
+
oneOf: [{ type: 'null' }, lookupPropertyAccessorsSchema],
|
|
263
|
+
},
|
|
264
|
+
mutable: { type: ['boolean', 'null'] },
|
|
265
|
+
},
|
|
266
|
+
required: [
|
|
267
|
+
'framework',
|
|
268
|
+
'packageName',
|
|
269
|
+
'ownerName',
|
|
270
|
+
'ownerQualifiedName',
|
|
271
|
+
'ownerKind',
|
|
272
|
+
'detailLevel',
|
|
273
|
+
'name',
|
|
274
|
+
'requiredImports',
|
|
275
|
+
'kind',
|
|
276
|
+
'kotlinSignatures',
|
|
277
|
+
'objcSelectors',
|
|
278
|
+
'accessors',
|
|
279
|
+
'mutable',
|
|
280
|
+
],
|
|
281
|
+
};
|
|
282
|
+
const lookupMemberCardSchema = {
|
|
283
|
+
oneOf: [lookupFullMemberCardSchema, lookupCompactMemberCardSchema],
|
|
284
|
+
};
|
|
285
|
+
const lookupOutputSchema = fromJsonSchema({
|
|
286
|
+
type: 'object',
|
|
287
|
+
additionalProperties: false,
|
|
288
|
+
properties: {
|
|
289
|
+
query: { type: 'string' },
|
|
290
|
+
effectiveKotlinVersion: { type: 'string' },
|
|
291
|
+
effectiveTarget: { type: 'string' },
|
|
292
|
+
detailLevel: { type: 'string' },
|
|
293
|
+
resultKind: { type: 'string' },
|
|
294
|
+
classCard: {
|
|
295
|
+
oneOf: [{ type: 'null' }, lookupFullClassCardSchema, lookupCompactClassCardSchema],
|
|
296
|
+
},
|
|
297
|
+
memberCard: {
|
|
298
|
+
oneOf: [{ type: 'null' }, lookupFullMemberCardSchema, lookupCompactMemberCardSchema],
|
|
299
|
+
},
|
|
300
|
+
alternatives: {
|
|
301
|
+
type: 'array',
|
|
302
|
+
items: {
|
|
303
|
+
type: 'object',
|
|
304
|
+
additionalProperties: false,
|
|
305
|
+
properties: {
|
|
306
|
+
resultKind: { type: 'string' },
|
|
307
|
+
framework: { type: 'string' },
|
|
308
|
+
packageName: { type: 'string' },
|
|
309
|
+
ownerName: { type: ['string', 'null'] },
|
|
310
|
+
symbolName: { type: 'string' },
|
|
311
|
+
},
|
|
312
|
+
required: ['resultKind', 'framework', 'packageName', 'ownerName', 'symbolName'],
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
required: [
|
|
317
|
+
'query',
|
|
318
|
+
'effectiveKotlinVersion',
|
|
319
|
+
'effectiveTarget',
|
|
320
|
+
'detailLevel',
|
|
321
|
+
'resultKind',
|
|
322
|
+
'classCard',
|
|
323
|
+
'memberCard',
|
|
324
|
+
'alternatives',
|
|
325
|
+
],
|
|
326
|
+
});
|
|
327
|
+
const rebuildOutputSchema = fromJsonSchema({
|
|
328
|
+
type: 'object',
|
|
329
|
+
additionalProperties: false,
|
|
330
|
+
properties: {
|
|
331
|
+
kotlinVersion: { type: 'string' },
|
|
332
|
+
target: { type: 'string' },
|
|
333
|
+
selectedFrameworks: stringArraySchema,
|
|
334
|
+
rebuiltFrameworks: stringArraySchema,
|
|
335
|
+
skippedFrameworks: stringArraySchema,
|
|
336
|
+
dryRun: { type: 'boolean' },
|
|
337
|
+
indexedAt: { type: ['string', 'null'] },
|
|
338
|
+
totalRecordsWritten: { type: 'integer' },
|
|
339
|
+
reports: {
|
|
340
|
+
type: 'array',
|
|
341
|
+
items: {
|
|
342
|
+
type: 'object',
|
|
343
|
+
additionalProperties: false,
|
|
344
|
+
properties: {
|
|
345
|
+
framework: { type: 'string' },
|
|
346
|
+
action: { type: 'string' },
|
|
347
|
+
lineCount: { type: 'integer' },
|
|
348
|
+
symbolCount: { type: 'integer' },
|
|
349
|
+
reason: { type: 'string' },
|
|
350
|
+
},
|
|
351
|
+
required: ['framework', 'action', 'lineCount', 'symbolCount'],
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
required: [
|
|
356
|
+
'kotlinVersion',
|
|
357
|
+
'target',
|
|
358
|
+
'selectedFrameworks',
|
|
359
|
+
'rebuiltFrameworks',
|
|
360
|
+
'skippedFrameworks',
|
|
361
|
+
'dryRun',
|
|
362
|
+
'indexedAt',
|
|
363
|
+
'totalRecordsWritten',
|
|
364
|
+
'reports',
|
|
365
|
+
],
|
|
366
|
+
});
|
|
367
|
+
const statusOutputSchema = fromJsonSchema({
|
|
368
|
+
type: 'object',
|
|
369
|
+
additionalProperties: false,
|
|
370
|
+
properties: {
|
|
371
|
+
ready: { type: 'boolean' },
|
|
372
|
+
discoveredInstallations: {
|
|
373
|
+
type: 'array',
|
|
374
|
+
items: {
|
|
375
|
+
type: 'object',
|
|
376
|
+
additionalProperties: false,
|
|
377
|
+
properties: {
|
|
378
|
+
kotlinVersion: { type: 'string' },
|
|
379
|
+
availableTargets: stringArraySchema,
|
|
380
|
+
sources: stringArraySchema,
|
|
381
|
+
},
|
|
382
|
+
required: ['kotlinVersion', 'availableTargets', 'sources'],
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
indexedDatasets: {
|
|
386
|
+
type: 'array',
|
|
387
|
+
items: {
|
|
388
|
+
type: 'object',
|
|
389
|
+
additionalProperties: false,
|
|
390
|
+
properties: {
|
|
391
|
+
kotlinVersion: { type: 'string' },
|
|
392
|
+
target: { type: 'string' },
|
|
393
|
+
indexedAt: { type: 'string' },
|
|
394
|
+
recordCount: { type: 'integer' },
|
|
395
|
+
frameworkCount: { type: 'integer' },
|
|
396
|
+
frameworks: stringArraySchema,
|
|
397
|
+
},
|
|
398
|
+
required: [
|
|
399
|
+
'kotlinVersion',
|
|
400
|
+
'target',
|
|
401
|
+
'indexedAt',
|
|
402
|
+
'recordCount',
|
|
403
|
+
'frameworkCount',
|
|
404
|
+
'frameworks',
|
|
405
|
+
],
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
recordCounts: {
|
|
409
|
+
type: 'object',
|
|
410
|
+
additionalProperties: false,
|
|
411
|
+
properties: {
|
|
412
|
+
datasets: { type: 'integer' },
|
|
413
|
+
frameworks: { type: 'integer' },
|
|
414
|
+
symbols: { type: 'integer' },
|
|
415
|
+
},
|
|
416
|
+
required: ['datasets', 'frameworks', 'symbols'],
|
|
417
|
+
},
|
|
418
|
+
lastRebuildAt: { type: ['string', 'null'] },
|
|
419
|
+
},
|
|
420
|
+
required: ['ready', 'discoveredInstallations', 'indexedDatasets', 'recordCounts', 'lastRebuildAt'],
|
|
421
|
+
});
|
|
422
|
+
export function registerTools(server, service) {
|
|
423
|
+
server.registerTool('lookup_symbol', {
|
|
424
|
+
description: 'Resolve a Kotlin/Native Apple platform class or member into a development card. Compact detail is returned by default; set detail=full to include the full class surface.',
|
|
425
|
+
inputSchema: lookupInputSchema,
|
|
426
|
+
outputSchema: lookupOutputSchema,
|
|
427
|
+
}, async (args) => handleToolCall(() => service.lookup(args), formatLookupSummary));
|
|
428
|
+
server.registerTool('rebuild_klib_index', {
|
|
429
|
+
description: 'Build or refresh the local Kotlin/Native klib index. By default, the server picks the latest discovered installation and a preferred iOS target.',
|
|
430
|
+
inputSchema: rebuildInputSchema,
|
|
431
|
+
outputSchema: rebuildOutputSchema,
|
|
432
|
+
}, async (args) => handleToolCall(() => service.rebuild(args), formatRebuildSummary));
|
|
433
|
+
server.registerTool('get_klib_index_status', {
|
|
434
|
+
description: 'Return a compact summary of discovered Kotlin/Native installations, indexed datasets, counts, and last rebuild time.',
|
|
435
|
+
inputSchema: emptyObjectSchema,
|
|
436
|
+
outputSchema: statusOutputSchema,
|
|
437
|
+
}, async () => handleToolCall(() => service.getStatus(), formatStatusSummary));
|
|
438
|
+
}
|
|
439
|
+
async function handleToolCall(action, formatSummary) {
|
|
440
|
+
try {
|
|
441
|
+
const result = await action();
|
|
442
|
+
return {
|
|
443
|
+
content: [{ type: 'text', text: formatSummary(result) }],
|
|
444
|
+
structuredContent: result,
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
catch (error) {
|
|
448
|
+
return {
|
|
449
|
+
isError: true,
|
|
450
|
+
content: [{ type: 'text', text: toErrorMessage(error) }],
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function formatLookupSummary(result) {
|
|
455
|
+
switch (result.resultKind) {
|
|
456
|
+
case 'class':
|
|
457
|
+
if (result.classCard?.detailLevel === 'compact') {
|
|
458
|
+
return `Resolved class ${result.classCard.qualifiedName} in compact mode with ${result.classCard.properties.length} propert(ies), ${result.classCard.methods.length} method group(s), ${result.classCard.classMethods.length} class method group(s), and ${result.classCard.constructors.length} constructor group(s).`;
|
|
459
|
+
}
|
|
460
|
+
return `Resolved class ${result.classCard?.qualifiedName} in full mode with ${result.classCard?.constructors.length ?? 0}/${result.classCard?.totalConstructors ?? 0} constructor(s), ${result.classCard?.members.length ?? 0}/${result.classCard?.totalMembers ?? 0} member(s), and ${result.classCard?.classMembers.length ?? 0}/${result.classCard?.totalClassMembers ?? 0} class member(s).`;
|
|
461
|
+
case 'member':
|
|
462
|
+
if (result.memberCard?.detailLevel === 'compact') {
|
|
463
|
+
return `Resolved ${result.memberCard.kind} ${result.memberCard.ownerQualifiedName}.${result.memberCard.name} in compact mode with ${result.memberCard.kotlinSignatures.length} signature(s).`;
|
|
464
|
+
}
|
|
465
|
+
return `Resolved member ${result.memberCard?.ownerQualifiedName}.${result.memberCard?.name} in full mode with ${result.memberCard?.entries.length ?? 0}/${result.memberCard?.totalEntries ?? 0} signature(s).`;
|
|
466
|
+
case 'ambiguous':
|
|
467
|
+
return `Query "${result.query}" is ambiguous. ${result.alternatives.length} candidate(s) returned.`;
|
|
468
|
+
case 'not_found':
|
|
469
|
+
default:
|
|
470
|
+
return `No symbol matched "${result.query}".`;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function formatRebuildSummary(result) {
|
|
474
|
+
if (result.dryRun) {
|
|
475
|
+
return `Dry run complete for ${result.kotlinVersion} ${result.target}: ${result.rebuiltFrameworks.length} framework(s) would rebuild and ${result.skippedFrameworks.length} would be skipped.`;
|
|
476
|
+
}
|
|
477
|
+
return `Rebuild complete for ${result.kotlinVersion} ${result.target}: ${result.rebuiltFrameworks.length} framework(s) rebuilt, ${result.totalRecordsWritten} symbol record(s) written.`;
|
|
478
|
+
}
|
|
479
|
+
function formatStatusSummary(result) {
|
|
480
|
+
return `Index ready: ${result.ready}. Datasets: ${result.recordCounts.datasets}, frameworks: ${result.recordCounts.frameworks}, symbols: ${result.recordCounts.symbols}.`;
|
|
481
|
+
}
|
|
482
|
+
function toErrorMessage(error) {
|
|
483
|
+
if (error instanceof Error) {
|
|
484
|
+
return error.message;
|
|
485
|
+
}
|
|
486
|
+
return String(error);
|
|
487
|
+
}
|
|
488
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,cAAc,GAGd,MAAM,8BAA8B,CAAC;AAWtC,MAAM,iBAAiB,GAAG,cAAc,CAAC;IACxC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;CACF,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACA,CAAC;AAE3B,MAAM,iBAAiB,GAAG,cAAc,CAAgB;IACvD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QACvC,UAAU,EAAE,iBAAiB;QAC7B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,MAAM,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;SACzB;QACD,SAAS,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;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