@adhisang/minecraft-modding-mcp 4.0.0 → 4.1.1

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.
Files changed (176) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +40 -23
  3. package/dist/build-suggested-call.d.ts +29 -0
  4. package/dist/build-suggested-call.js +58 -0
  5. package/dist/cache-registry.d.ts +3 -1
  6. package/dist/cache-registry.js +50 -6
  7. package/dist/entry-tools/analyze-symbol-service.d.ts +16 -16
  8. package/dist/entry-tools/batch-class-members-service.d.ts +34 -0
  9. package/dist/entry-tools/batch-class-members-service.js +97 -0
  10. package/dist/entry-tools/batch-class-source-service.d.ts +37 -0
  11. package/dist/entry-tools/batch-class-source-service.js +100 -0
  12. package/dist/entry-tools/batch-mappings-service.d.ts +36 -0
  13. package/dist/entry-tools/batch-mappings-service.js +66 -0
  14. package/dist/entry-tools/batch-runner.d.ts +72 -0
  15. package/dist/entry-tools/batch-runner.js +90 -0
  16. package/dist/entry-tools/batch-symbol-exists-service.d.ts +46 -0
  17. package/dist/entry-tools/batch-symbol-exists-service.js +113 -0
  18. package/dist/entry-tools/compare-minecraft-service.d.ts +6 -6
  19. package/dist/entry-tools/inspect-minecraft/handlers/artifact.d.ts +5 -0
  20. package/dist/entry-tools/inspect-minecraft/handlers/artifact.js +83 -0
  21. package/dist/entry-tools/inspect-minecraft/handlers/class-members.d.ts +6 -0
  22. package/dist/entry-tools/inspect-minecraft/handlers/class-members.js +80 -0
  23. package/dist/entry-tools/inspect-minecraft/handlers/class-overview.d.ts +5 -0
  24. package/dist/entry-tools/inspect-minecraft/handlers/class-overview.js +248 -0
  25. package/dist/entry-tools/inspect-minecraft/handlers/class-source.d.ts +5 -0
  26. package/dist/entry-tools/inspect-minecraft/handlers/class-source.js +60 -0
  27. package/dist/entry-tools/inspect-minecraft/handlers/file.d.ts +5 -0
  28. package/dist/entry-tools/inspect-minecraft/handlers/file.js +54 -0
  29. package/dist/entry-tools/inspect-minecraft/handlers/list-files.d.ts +5 -0
  30. package/dist/entry-tools/inspect-minecraft/handlers/list-files.js +100 -0
  31. package/dist/entry-tools/inspect-minecraft/handlers/search.d.ts +5 -0
  32. package/dist/entry-tools/inspect-minecraft/handlers/search.js +155 -0
  33. package/dist/entry-tools/inspect-minecraft/handlers/versions.d.ts +6 -0
  34. package/dist/entry-tools/inspect-minecraft/handlers/versions.js +49 -0
  35. package/dist/entry-tools/inspect-minecraft/internal.d.ts +1042 -0
  36. package/dist/entry-tools/inspect-minecraft/internal.js +448 -0
  37. package/dist/entry-tools/inspect-minecraft-service.d.ts +193 -308
  38. package/dist/entry-tools/inspect-minecraft-service.js +20 -1244
  39. package/dist/entry-tools/manage-cache-service.d.ts +16 -16
  40. package/dist/entry-tools/validate-project/cases/access-transformer.d.ts +6 -0
  41. package/dist/entry-tools/validate-project/cases/access-transformer.js +106 -0
  42. package/dist/entry-tools/validate-project/cases/access-widener.d.ts +6 -0
  43. package/dist/entry-tools/validate-project/cases/access-widener.js +86 -0
  44. package/dist/entry-tools/validate-project/cases/mixin.d.ts +6 -0
  45. package/dist/entry-tools/validate-project/cases/mixin.js +90 -0
  46. package/dist/entry-tools/validate-project/cases/project-summary.d.ts +102 -0
  47. package/dist/entry-tools/validate-project/cases/project-summary.js +415 -0
  48. package/dist/entry-tools/validate-project/internal.d.ts +142 -0
  49. package/dist/entry-tools/validate-project/internal.js +303 -0
  50. package/dist/entry-tools/validate-project-service.d.ts +67 -47
  51. package/dist/entry-tools/validate-project-service.js +13 -563
  52. package/dist/entry-tools/verify-mixin-target-service.d.ts +133 -0
  53. package/dist/entry-tools/verify-mixin-target-service.js +323 -0
  54. package/dist/error-mapping.d.ts +40 -0
  55. package/dist/error-mapping.js +139 -0
  56. package/dist/errors.d.ts +6 -0
  57. package/dist/errors.js +6 -0
  58. package/dist/index.d.ts +2 -0
  59. package/dist/index.js +147 -1354
  60. package/dist/mapping/internal-types.d.ts +54 -0
  61. package/dist/mapping/internal-types.js +14 -0
  62. package/dist/mapping/loaders/mojang.d.ts +2 -0
  63. package/dist/mapping/loaders/mojang.js +64 -0
  64. package/dist/mapping/loaders/tiny-loom.d.ts +2 -0
  65. package/dist/mapping/loaders/tiny-loom.js +73 -0
  66. package/dist/mapping/loaders/tiny-maven.d.ts +2 -0
  67. package/dist/mapping/loaders/tiny-maven.js +104 -0
  68. package/dist/mapping/loaders/types.d.ts +14 -0
  69. package/dist/mapping/loaders/types.js +2 -0
  70. package/dist/mapping/lookup.d.ts +52 -0
  71. package/dist/mapping/lookup.js +496 -0
  72. package/dist/mapping/parsers/normalize.d.ts +10 -0
  73. package/dist/mapping/parsers/normalize.js +52 -0
  74. package/dist/mapping/parsers/proguard.d.ts +20 -0
  75. package/dist/mapping/parsers/proguard.js +138 -0
  76. package/dist/mapping/parsers/symbol-records.d.ts +27 -0
  77. package/dist/mapping/parsers/symbol-records.js +216 -0
  78. package/dist/mapping/parsers/tiny.d.ts +9 -0
  79. package/dist/mapping/parsers/tiny.js +96 -0
  80. package/dist/mapping/types.d.ts +147 -0
  81. package/dist/mapping/types.js +2 -0
  82. package/dist/mapping-pipeline-service.js +3 -2
  83. package/dist/mapping-service.d.ts +8 -145
  84. package/dist/mapping-service.js +30 -1207
  85. package/dist/mixin/access-validators.d.ts +9 -0
  86. package/dist/mixin/access-validators.js +257 -0
  87. package/dist/mixin/annotation-validators.d.ts +5 -0
  88. package/dist/mixin/annotation-validators.js +162 -0
  89. package/dist/mixin/helpers.d.ts +28 -0
  90. package/dist/mixin/helpers.js +315 -0
  91. package/dist/mixin/parsed-validator.d.ts +8 -0
  92. package/dist/mixin/parsed-validator.js +337 -0
  93. package/dist/mixin/types.d.ts +208 -0
  94. package/dist/mixin/types.js +28 -0
  95. package/dist/mixin-validator.d.ts +9 -201
  96. package/dist/mixin-validator.js +8 -1020
  97. package/dist/source/access-validate.d.ts +4 -0
  98. package/dist/source/access-validate.js +254 -0
  99. package/dist/source/artifact-resolver.d.ts +111 -0
  100. package/dist/source/artifact-resolver.js +1271 -0
  101. package/dist/source/cache-metrics.d.ts +26 -0
  102. package/dist/source/cache-metrics.js +172 -0
  103. package/dist/source/class-source/members-builder.d.ts +34 -0
  104. package/dist/source/class-source/members-builder.js +46 -0
  105. package/dist/source/class-source/snippet-builder.d.ts +19 -0
  106. package/dist/source/class-source/snippet-builder.js +46 -0
  107. package/dist/source/class-source-helpers.d.ts +34 -0
  108. package/dist/source/class-source-helpers.js +140 -0
  109. package/dist/source/class-source.d.ts +42 -0
  110. package/dist/source/class-source.js +883 -0
  111. package/dist/source/descriptor-utils.d.ts +6 -0
  112. package/dist/source/descriptor-utils.js +37 -0
  113. package/dist/source/file-access.d.ts +4 -0
  114. package/dist/source/file-access.js +102 -0
  115. package/dist/source/indexer.d.ts +82 -0
  116. package/dist/source/indexer.js +522 -0
  117. package/dist/source/lifecycle/diff-utils.d.ts +9 -0
  118. package/dist/source/lifecycle/diff-utils.js +107 -0
  119. package/dist/source/lifecycle/diff.d.ts +2 -0
  120. package/dist/source/lifecycle/diff.js +265 -0
  121. package/dist/source/lifecycle/mapping-helpers.d.ts +22 -0
  122. package/dist/source/lifecycle/mapping-helpers.js +327 -0
  123. package/dist/source/lifecycle/runtime-check.d.ts +2 -0
  124. package/dist/source/lifecycle/runtime-check.js +142 -0
  125. package/dist/source/lifecycle/trace.d.ts +2 -0
  126. package/dist/source/lifecycle/trace.js +231 -0
  127. package/dist/source/lifecycle.d.ts +4 -0
  128. package/dist/source/lifecycle.js +5 -0
  129. package/dist/source/search.d.ts +51 -0
  130. package/dist/source/search.js +676 -0
  131. package/dist/source/shared-utils.d.ts +6 -0
  132. package/dist/source/shared-utils.js +55 -0
  133. package/dist/source/state.d.ts +26 -0
  134. package/dist/source/state.js +24 -0
  135. package/dist/source/symbol-resolver.d.ts +3 -0
  136. package/dist/source/symbol-resolver.js +212 -0
  137. package/dist/source/validate-mixin/pipeline/mapping-health.d.ts +3 -0
  138. package/dist/source/validate-mixin/pipeline/mapping-health.js +41 -0
  139. package/dist/source/validate-mixin/pipeline/parse.d.ts +2 -0
  140. package/dist/source/validate-mixin/pipeline/parse.js +10 -0
  141. package/dist/source/validate-mixin/pipeline/resolve.d.ts +3 -0
  142. package/dist/source/validate-mixin/pipeline/resolve.js +78 -0
  143. package/dist/source/validate-mixin/pipeline/target-lookup.d.ts +6 -0
  144. package/dist/source/validate-mixin/pipeline/target-lookup.js +260 -0
  145. package/dist/source/validate-mixin/pipeline-context.d.ts +72 -0
  146. package/dist/source/validate-mixin/pipeline-context.js +93 -0
  147. package/dist/source/validate-mixin.d.ts +22 -0
  148. package/dist/source/validate-mixin.js +799 -0
  149. package/dist/source/workspace-target.d.ts +18 -0
  150. package/dist/source/workspace-target.js +305 -0
  151. package/dist/source-resolver.d.ts +1 -0
  152. package/dist/source-resolver.js +1 -1
  153. package/dist/source-service.d.ts +164 -170
  154. package/dist/source-service.js +70 -6116
  155. package/dist/stage-emitter.d.ts +13 -0
  156. package/dist/stage-emitter.js +30 -0
  157. package/dist/stdio-supervisor.d.ts +61 -0
  158. package/dist/stdio-supervisor.js +326 -9
  159. package/dist/tool-contract-manifest.d.ts +1 -1
  160. package/dist/tool-contract-manifest.js +23 -6
  161. package/dist/tool-guidance.d.ts +82 -0
  162. package/dist/tool-guidance.js +734 -0
  163. package/dist/tool-schema-registry.d.ts +16 -0
  164. package/dist/tool-schema-registry.js +37 -0
  165. package/dist/tool-schemas.d.ts +3518 -0
  166. package/dist/tool-schemas.js +813 -0
  167. package/dist/types.d.ts +36 -0
  168. package/dist/version-service.js +7 -6
  169. package/dist/workspace-context-cache.d.ts +32 -0
  170. package/dist/workspace-context-cache.js +66 -0
  171. package/dist/workspace-mapping-service.d.ts +16 -0
  172. package/dist/workspace-mapping-service.js +173 -1
  173. package/docs/README-ja.md +416 -0
  174. package/docs/examples.md +483 -0
  175. package/docs/tool-reference.md +462 -0
  176. package/package.json +17 -4
@@ -0,0 +1,1042 @@
1
+ import { z } from "zod";
2
+ import type { CheckSymbolExistsOutput, FindClassOutput, GetArtifactFileOutput, GetClassMembersOutput, GetClassSourceOutput, ListArtifactFilesOutput, ResolveArtifactOutput, SearchClassSourceOutput } from "../../source-service.js";
3
+ import type { ListVersionsOutput } from "../../version-service.js";
4
+ export declare const TASKS: readonly ["auto", "versions", "artifact", "class-overview", "class-source", "class-members", "search", "file", "list-files"];
5
+ export declare const SUBJECT_KINDS: readonly ["version", "artifact", "class", "file", "search", "workspace"];
6
+ export declare const artifactRefSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
+ type: z.ZodLiteral<"resolved-id">;
8
+ artifactId: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ artifactId: string;
11
+ type: "resolved-id";
12
+ }, {
13
+ artifactId: string;
14
+ type: "resolved-id";
15
+ }>, z.ZodObject<{
16
+ type: z.ZodLiteral<"resolve-target">;
17
+ target: z.ZodObject<{
18
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ kind: "version" | "jar" | "coordinate";
22
+ value: string;
23
+ }, {
24
+ kind: "version" | "jar" | "coordinate";
25
+ value: string;
26
+ }>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "resolve-target";
29
+ target: {
30
+ kind: "version" | "jar" | "coordinate";
31
+ value: string;
32
+ };
33
+ }, {
34
+ type: "resolve-target";
35
+ target: {
36
+ kind: "version" | "jar" | "coordinate";
37
+ value: string;
38
+ };
39
+ }>]>;
40
+ export declare const workspaceFocusSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
41
+ kind: z.ZodLiteral<"class">;
42
+ className: z.ZodString;
43
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
44
+ type: z.ZodLiteral<"resolved-id">;
45
+ artifactId: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ artifactId: string;
48
+ type: "resolved-id";
49
+ }, {
50
+ artifactId: string;
51
+ type: "resolved-id";
52
+ }>, z.ZodObject<{
53
+ type: z.ZodLiteral<"resolve-target">;
54
+ target: z.ZodObject<{
55
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
56
+ value: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ kind: "version" | "jar" | "coordinate";
59
+ value: string;
60
+ }, {
61
+ kind: "version" | "jar" | "coordinate";
62
+ value: string;
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: "resolve-target";
66
+ target: {
67
+ kind: "version" | "jar" | "coordinate";
68
+ value: string;
69
+ };
70
+ }, {
71
+ type: "resolve-target";
72
+ target: {
73
+ kind: "version" | "jar" | "coordinate";
74
+ value: string;
75
+ };
76
+ }>]>>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ kind: "class";
79
+ className: string;
80
+ artifact?: {
81
+ artifactId: string;
82
+ type: "resolved-id";
83
+ } | {
84
+ type: "resolve-target";
85
+ target: {
86
+ kind: "version" | "jar" | "coordinate";
87
+ value: string;
88
+ };
89
+ } | undefined;
90
+ }, {
91
+ kind: "class";
92
+ className: string;
93
+ artifact?: {
94
+ artifactId: string;
95
+ type: "resolved-id";
96
+ } | {
97
+ type: "resolve-target";
98
+ target: {
99
+ kind: "version" | "jar" | "coordinate";
100
+ value: string;
101
+ };
102
+ } | undefined;
103
+ }>, z.ZodObject<{
104
+ kind: z.ZodLiteral<"file">;
105
+ filePath: z.ZodString;
106
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
107
+ type: z.ZodLiteral<"resolved-id">;
108
+ artifactId: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ artifactId: string;
111
+ type: "resolved-id";
112
+ }, {
113
+ artifactId: string;
114
+ type: "resolved-id";
115
+ }>, z.ZodObject<{
116
+ type: z.ZodLiteral<"resolve-target">;
117
+ target: z.ZodObject<{
118
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
119
+ value: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ kind: "version" | "jar" | "coordinate";
122
+ value: string;
123
+ }, {
124
+ kind: "version" | "jar" | "coordinate";
125
+ value: string;
126
+ }>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: "resolve-target";
129
+ target: {
130
+ kind: "version" | "jar" | "coordinate";
131
+ value: string;
132
+ };
133
+ }, {
134
+ type: "resolve-target";
135
+ target: {
136
+ kind: "version" | "jar" | "coordinate";
137
+ value: string;
138
+ };
139
+ }>]>>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ kind: "file";
142
+ filePath: string;
143
+ artifact?: {
144
+ artifactId: string;
145
+ type: "resolved-id";
146
+ } | {
147
+ type: "resolve-target";
148
+ target: {
149
+ kind: "version" | "jar" | "coordinate";
150
+ value: string;
151
+ };
152
+ } | undefined;
153
+ }, {
154
+ kind: "file";
155
+ filePath: string;
156
+ artifact?: {
157
+ artifactId: string;
158
+ type: "resolved-id";
159
+ } | {
160
+ type: "resolve-target";
161
+ target: {
162
+ kind: "version" | "jar" | "coordinate";
163
+ value: string;
164
+ };
165
+ } | undefined;
166
+ }>, z.ZodObject<{
167
+ kind: z.ZodLiteral<"search">;
168
+ query: z.ZodString;
169
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
170
+ type: z.ZodLiteral<"resolved-id">;
171
+ artifactId: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ artifactId: string;
174
+ type: "resolved-id";
175
+ }, {
176
+ artifactId: string;
177
+ type: "resolved-id";
178
+ }>, z.ZodObject<{
179
+ type: z.ZodLiteral<"resolve-target">;
180
+ target: z.ZodObject<{
181
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
182
+ value: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ kind: "version" | "jar" | "coordinate";
185
+ value: string;
186
+ }, {
187
+ kind: "version" | "jar" | "coordinate";
188
+ value: string;
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "resolve-target";
192
+ target: {
193
+ kind: "version" | "jar" | "coordinate";
194
+ value: string;
195
+ };
196
+ }, {
197
+ type: "resolve-target";
198
+ target: {
199
+ kind: "version" | "jar" | "coordinate";
200
+ value: string;
201
+ };
202
+ }>]>>;
203
+ intent: z.ZodOptional<z.ZodEnum<["symbol", "text", "path"]>>;
204
+ match: z.ZodOptional<z.ZodEnum<["exact", "prefix", "contains", "regex"]>>;
205
+ symbolKind: z.ZodOptional<z.ZodEnum<["class", "interface", "enum", "record", "method", "field"]>>;
206
+ packagePrefix: z.ZodOptional<z.ZodString>;
207
+ fileGlob: z.ZodOptional<z.ZodString>;
208
+ queryMode: z.ZodDefault<z.ZodEnum<["auto", "token", "literal"]>>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ kind: "search";
211
+ query: string;
212
+ queryMode: "auto" | "token" | "literal";
213
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
214
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
215
+ packagePrefix?: string | undefined;
216
+ intent?: "symbol" | "path" | "text" | undefined;
217
+ fileGlob?: string | undefined;
218
+ artifact?: {
219
+ artifactId: string;
220
+ type: "resolved-id";
221
+ } | {
222
+ type: "resolve-target";
223
+ target: {
224
+ kind: "version" | "jar" | "coordinate";
225
+ value: string;
226
+ };
227
+ } | undefined;
228
+ }, {
229
+ kind: "search";
230
+ query: string;
231
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
232
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
233
+ packagePrefix?: string | undefined;
234
+ intent?: "symbol" | "path" | "text" | undefined;
235
+ fileGlob?: string | undefined;
236
+ artifact?: {
237
+ artifactId: string;
238
+ type: "resolved-id";
239
+ } | {
240
+ type: "resolve-target";
241
+ target: {
242
+ kind: "version" | "jar" | "coordinate";
243
+ value: string;
244
+ };
245
+ } | undefined;
246
+ queryMode?: "auto" | "token" | "literal" | undefined;
247
+ }>]>;
248
+ export declare const subjectSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
249
+ kind: z.ZodLiteral<"version">;
250
+ version: z.ZodString;
251
+ mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
252
+ scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
253
+ projectPath: z.ZodOptional<z.ZodString>;
254
+ preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
255
+ strictVersion: z.ZodOptional<z.ZodBoolean>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ kind: "version";
258
+ version: string;
259
+ projectPath?: string | undefined;
260
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
261
+ scope?: "vanilla" | "merged" | "loader" | undefined;
262
+ preferProjectVersion?: boolean | undefined;
263
+ strictVersion?: boolean | undefined;
264
+ }, {
265
+ kind: "version";
266
+ version: string;
267
+ projectPath?: string | undefined;
268
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
269
+ scope?: "vanilla" | "merged" | "loader" | undefined;
270
+ preferProjectVersion?: boolean | undefined;
271
+ strictVersion?: boolean | undefined;
272
+ }>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"artifact">;
274
+ artifact: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
275
+ type: z.ZodLiteral<"resolved-id">;
276
+ artifactId: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ artifactId: string;
279
+ type: "resolved-id";
280
+ }, {
281
+ artifactId: string;
282
+ type: "resolved-id";
283
+ }>, z.ZodObject<{
284
+ type: z.ZodLiteral<"resolve-target">;
285
+ target: z.ZodObject<{
286
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
287
+ value: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ kind: "version" | "jar" | "coordinate";
290
+ value: string;
291
+ }, {
292
+ kind: "version" | "jar" | "coordinate";
293
+ value: string;
294
+ }>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ type: "resolve-target";
297
+ target: {
298
+ kind: "version" | "jar" | "coordinate";
299
+ value: string;
300
+ };
301
+ }, {
302
+ type: "resolve-target";
303
+ target: {
304
+ kind: "version" | "jar" | "coordinate";
305
+ value: string;
306
+ };
307
+ }>]>;
308
+ mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
309
+ scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
310
+ projectPath: z.ZodOptional<z.ZodString>;
311
+ preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
312
+ strictVersion: z.ZodOptional<z.ZodBoolean>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ kind: "artifact";
315
+ artifact: {
316
+ artifactId: string;
317
+ type: "resolved-id";
318
+ } | {
319
+ type: "resolve-target";
320
+ target: {
321
+ kind: "version" | "jar" | "coordinate";
322
+ value: string;
323
+ };
324
+ };
325
+ projectPath?: string | undefined;
326
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
327
+ scope?: "vanilla" | "merged" | "loader" | undefined;
328
+ preferProjectVersion?: boolean | undefined;
329
+ strictVersion?: boolean | undefined;
330
+ }, {
331
+ kind: "artifact";
332
+ artifact: {
333
+ artifactId: string;
334
+ type: "resolved-id";
335
+ } | {
336
+ type: "resolve-target";
337
+ target: {
338
+ kind: "version" | "jar" | "coordinate";
339
+ value: string;
340
+ };
341
+ };
342
+ projectPath?: string | undefined;
343
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
344
+ scope?: "vanilla" | "merged" | "loader" | undefined;
345
+ preferProjectVersion?: boolean | undefined;
346
+ strictVersion?: boolean | undefined;
347
+ }>, z.ZodObject<{
348
+ kind: z.ZodLiteral<"class">;
349
+ className: z.ZodString;
350
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
351
+ type: z.ZodLiteral<"resolved-id">;
352
+ artifactId: z.ZodString;
353
+ }, "strip", z.ZodTypeAny, {
354
+ artifactId: string;
355
+ type: "resolved-id";
356
+ }, {
357
+ artifactId: string;
358
+ type: "resolved-id";
359
+ }>, z.ZodObject<{
360
+ type: z.ZodLiteral<"resolve-target">;
361
+ target: z.ZodObject<{
362
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
363
+ value: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ kind: "version" | "jar" | "coordinate";
366
+ value: string;
367
+ }, {
368
+ kind: "version" | "jar" | "coordinate";
369
+ value: string;
370
+ }>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "resolve-target";
373
+ target: {
374
+ kind: "version" | "jar" | "coordinate";
375
+ value: string;
376
+ };
377
+ }, {
378
+ type: "resolve-target";
379
+ target: {
380
+ kind: "version" | "jar" | "coordinate";
381
+ value: string;
382
+ };
383
+ }>]>>;
384
+ mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
385
+ scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
386
+ projectPath: z.ZodOptional<z.ZodString>;
387
+ preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
388
+ strictVersion: z.ZodOptional<z.ZodBoolean>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ kind: "class";
391
+ className: string;
392
+ projectPath?: string | undefined;
393
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
394
+ scope?: "vanilla" | "merged" | "loader" | undefined;
395
+ preferProjectVersion?: boolean | undefined;
396
+ strictVersion?: boolean | undefined;
397
+ artifact?: {
398
+ artifactId: string;
399
+ type: "resolved-id";
400
+ } | {
401
+ type: "resolve-target";
402
+ target: {
403
+ kind: "version" | "jar" | "coordinate";
404
+ value: string;
405
+ };
406
+ } | undefined;
407
+ }, {
408
+ kind: "class";
409
+ className: string;
410
+ projectPath?: string | undefined;
411
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
412
+ scope?: "vanilla" | "merged" | "loader" | undefined;
413
+ preferProjectVersion?: boolean | undefined;
414
+ strictVersion?: boolean | undefined;
415
+ artifact?: {
416
+ artifactId: string;
417
+ type: "resolved-id";
418
+ } | {
419
+ type: "resolve-target";
420
+ target: {
421
+ kind: "version" | "jar" | "coordinate";
422
+ value: string;
423
+ };
424
+ } | undefined;
425
+ }>, z.ZodObject<{
426
+ kind: z.ZodLiteral<"file">;
427
+ filePath: z.ZodString;
428
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
429
+ type: z.ZodLiteral<"resolved-id">;
430
+ artifactId: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ artifactId: string;
433
+ type: "resolved-id";
434
+ }, {
435
+ artifactId: string;
436
+ type: "resolved-id";
437
+ }>, z.ZodObject<{
438
+ type: z.ZodLiteral<"resolve-target">;
439
+ target: z.ZodObject<{
440
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
441
+ value: z.ZodString;
442
+ }, "strip", z.ZodTypeAny, {
443
+ kind: "version" | "jar" | "coordinate";
444
+ value: string;
445
+ }, {
446
+ kind: "version" | "jar" | "coordinate";
447
+ value: string;
448
+ }>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ type: "resolve-target";
451
+ target: {
452
+ kind: "version" | "jar" | "coordinate";
453
+ value: string;
454
+ };
455
+ }, {
456
+ type: "resolve-target";
457
+ target: {
458
+ kind: "version" | "jar" | "coordinate";
459
+ value: string;
460
+ };
461
+ }>]>>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ kind: "file";
464
+ filePath: string;
465
+ artifact?: {
466
+ artifactId: string;
467
+ type: "resolved-id";
468
+ } | {
469
+ type: "resolve-target";
470
+ target: {
471
+ kind: "version" | "jar" | "coordinate";
472
+ value: string;
473
+ };
474
+ } | undefined;
475
+ }, {
476
+ kind: "file";
477
+ filePath: string;
478
+ artifact?: {
479
+ artifactId: string;
480
+ type: "resolved-id";
481
+ } | {
482
+ type: "resolve-target";
483
+ target: {
484
+ kind: "version" | "jar" | "coordinate";
485
+ value: string;
486
+ };
487
+ } | undefined;
488
+ }>, z.ZodObject<{
489
+ kind: z.ZodLiteral<"search">;
490
+ query: z.ZodString;
491
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
492
+ type: z.ZodLiteral<"resolved-id">;
493
+ artifactId: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ artifactId: string;
496
+ type: "resolved-id";
497
+ }, {
498
+ artifactId: string;
499
+ type: "resolved-id";
500
+ }>, z.ZodObject<{
501
+ type: z.ZodLiteral<"resolve-target">;
502
+ target: z.ZodObject<{
503
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
504
+ value: z.ZodString;
505
+ }, "strip", z.ZodTypeAny, {
506
+ kind: "version" | "jar" | "coordinate";
507
+ value: string;
508
+ }, {
509
+ kind: "version" | "jar" | "coordinate";
510
+ value: string;
511
+ }>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "resolve-target";
514
+ target: {
515
+ kind: "version" | "jar" | "coordinate";
516
+ value: string;
517
+ };
518
+ }, {
519
+ type: "resolve-target";
520
+ target: {
521
+ kind: "version" | "jar" | "coordinate";
522
+ value: string;
523
+ };
524
+ }>]>>;
525
+ intent: z.ZodOptional<z.ZodEnum<["symbol", "text", "path"]>>;
526
+ match: z.ZodOptional<z.ZodEnum<["exact", "prefix", "contains", "regex"]>>;
527
+ symbolKind: z.ZodOptional<z.ZodEnum<["class", "interface", "enum", "record", "method", "field"]>>;
528
+ packagePrefix: z.ZodOptional<z.ZodString>;
529
+ fileGlob: z.ZodOptional<z.ZodString>;
530
+ queryMode: z.ZodDefault<z.ZodEnum<["auto", "token", "literal"]>>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ kind: "search";
533
+ query: string;
534
+ queryMode: "auto" | "token" | "literal";
535
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
536
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
537
+ packagePrefix?: string | undefined;
538
+ intent?: "symbol" | "path" | "text" | undefined;
539
+ fileGlob?: string | undefined;
540
+ artifact?: {
541
+ artifactId: string;
542
+ type: "resolved-id";
543
+ } | {
544
+ type: "resolve-target";
545
+ target: {
546
+ kind: "version" | "jar" | "coordinate";
547
+ value: string;
548
+ };
549
+ } | undefined;
550
+ }, {
551
+ kind: "search";
552
+ query: string;
553
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
554
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
555
+ packagePrefix?: string | undefined;
556
+ intent?: "symbol" | "path" | "text" | undefined;
557
+ fileGlob?: string | undefined;
558
+ artifact?: {
559
+ artifactId: string;
560
+ type: "resolved-id";
561
+ } | {
562
+ type: "resolve-target";
563
+ target: {
564
+ kind: "version" | "jar" | "coordinate";
565
+ value: string;
566
+ };
567
+ } | undefined;
568
+ queryMode?: "auto" | "token" | "literal" | undefined;
569
+ }>, z.ZodObject<{
570
+ kind: z.ZodLiteral<"workspace">;
571
+ projectPath: z.ZodString;
572
+ mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
573
+ scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
574
+ preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
575
+ strictVersion: z.ZodOptional<z.ZodBoolean>;
576
+ focus: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
577
+ kind: z.ZodLiteral<"class">;
578
+ className: z.ZodString;
579
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
580
+ type: z.ZodLiteral<"resolved-id">;
581
+ artifactId: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ artifactId: string;
584
+ type: "resolved-id";
585
+ }, {
586
+ artifactId: string;
587
+ type: "resolved-id";
588
+ }>, z.ZodObject<{
589
+ type: z.ZodLiteral<"resolve-target">;
590
+ target: z.ZodObject<{
591
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
592
+ value: z.ZodString;
593
+ }, "strip", z.ZodTypeAny, {
594
+ kind: "version" | "jar" | "coordinate";
595
+ value: string;
596
+ }, {
597
+ kind: "version" | "jar" | "coordinate";
598
+ value: string;
599
+ }>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: "resolve-target";
602
+ target: {
603
+ kind: "version" | "jar" | "coordinate";
604
+ value: string;
605
+ };
606
+ }, {
607
+ type: "resolve-target";
608
+ target: {
609
+ kind: "version" | "jar" | "coordinate";
610
+ value: string;
611
+ };
612
+ }>]>>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ kind: "class";
615
+ className: string;
616
+ artifact?: {
617
+ artifactId: string;
618
+ type: "resolved-id";
619
+ } | {
620
+ type: "resolve-target";
621
+ target: {
622
+ kind: "version" | "jar" | "coordinate";
623
+ value: string;
624
+ };
625
+ } | undefined;
626
+ }, {
627
+ kind: "class";
628
+ className: string;
629
+ artifact?: {
630
+ artifactId: string;
631
+ type: "resolved-id";
632
+ } | {
633
+ type: "resolve-target";
634
+ target: {
635
+ kind: "version" | "jar" | "coordinate";
636
+ value: string;
637
+ };
638
+ } | undefined;
639
+ }>, z.ZodObject<{
640
+ kind: z.ZodLiteral<"file">;
641
+ filePath: z.ZodString;
642
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
643
+ type: z.ZodLiteral<"resolved-id">;
644
+ artifactId: z.ZodString;
645
+ }, "strip", z.ZodTypeAny, {
646
+ artifactId: string;
647
+ type: "resolved-id";
648
+ }, {
649
+ artifactId: string;
650
+ type: "resolved-id";
651
+ }>, z.ZodObject<{
652
+ type: z.ZodLiteral<"resolve-target">;
653
+ target: z.ZodObject<{
654
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
655
+ value: z.ZodString;
656
+ }, "strip", z.ZodTypeAny, {
657
+ kind: "version" | "jar" | "coordinate";
658
+ value: string;
659
+ }, {
660
+ kind: "version" | "jar" | "coordinate";
661
+ value: string;
662
+ }>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ type: "resolve-target";
665
+ target: {
666
+ kind: "version" | "jar" | "coordinate";
667
+ value: string;
668
+ };
669
+ }, {
670
+ type: "resolve-target";
671
+ target: {
672
+ kind: "version" | "jar" | "coordinate";
673
+ value: string;
674
+ };
675
+ }>]>>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ kind: "file";
678
+ filePath: string;
679
+ artifact?: {
680
+ artifactId: string;
681
+ type: "resolved-id";
682
+ } | {
683
+ type: "resolve-target";
684
+ target: {
685
+ kind: "version" | "jar" | "coordinate";
686
+ value: string;
687
+ };
688
+ } | undefined;
689
+ }, {
690
+ kind: "file";
691
+ filePath: string;
692
+ artifact?: {
693
+ artifactId: string;
694
+ type: "resolved-id";
695
+ } | {
696
+ type: "resolve-target";
697
+ target: {
698
+ kind: "version" | "jar" | "coordinate";
699
+ value: string;
700
+ };
701
+ } | undefined;
702
+ }>, z.ZodObject<{
703
+ kind: z.ZodLiteral<"search">;
704
+ query: z.ZodString;
705
+ artifact: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
706
+ type: z.ZodLiteral<"resolved-id">;
707
+ artifactId: z.ZodString;
708
+ }, "strip", z.ZodTypeAny, {
709
+ artifactId: string;
710
+ type: "resolved-id";
711
+ }, {
712
+ artifactId: string;
713
+ type: "resolved-id";
714
+ }>, z.ZodObject<{
715
+ type: z.ZodLiteral<"resolve-target">;
716
+ target: z.ZodObject<{
717
+ kind: z.ZodEnum<["version", "jar", "coordinate"]>;
718
+ value: z.ZodString;
719
+ }, "strip", z.ZodTypeAny, {
720
+ kind: "version" | "jar" | "coordinate";
721
+ value: string;
722
+ }, {
723
+ kind: "version" | "jar" | "coordinate";
724
+ value: string;
725
+ }>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ type: "resolve-target";
728
+ target: {
729
+ kind: "version" | "jar" | "coordinate";
730
+ value: string;
731
+ };
732
+ }, {
733
+ type: "resolve-target";
734
+ target: {
735
+ kind: "version" | "jar" | "coordinate";
736
+ value: string;
737
+ };
738
+ }>]>>;
739
+ intent: z.ZodOptional<z.ZodEnum<["symbol", "text", "path"]>>;
740
+ match: z.ZodOptional<z.ZodEnum<["exact", "prefix", "contains", "regex"]>>;
741
+ symbolKind: z.ZodOptional<z.ZodEnum<["class", "interface", "enum", "record", "method", "field"]>>;
742
+ packagePrefix: z.ZodOptional<z.ZodString>;
743
+ fileGlob: z.ZodOptional<z.ZodString>;
744
+ queryMode: z.ZodDefault<z.ZodEnum<["auto", "token", "literal"]>>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ kind: "search";
747
+ query: string;
748
+ queryMode: "auto" | "token" | "literal";
749
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
750
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
751
+ packagePrefix?: string | undefined;
752
+ intent?: "symbol" | "path" | "text" | undefined;
753
+ fileGlob?: string | undefined;
754
+ artifact?: {
755
+ artifactId: string;
756
+ type: "resolved-id";
757
+ } | {
758
+ type: "resolve-target";
759
+ target: {
760
+ kind: "version" | "jar" | "coordinate";
761
+ value: string;
762
+ };
763
+ } | undefined;
764
+ }, {
765
+ kind: "search";
766
+ query: string;
767
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
768
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
769
+ packagePrefix?: string | undefined;
770
+ intent?: "symbol" | "path" | "text" | undefined;
771
+ fileGlob?: string | undefined;
772
+ artifact?: {
773
+ artifactId: string;
774
+ type: "resolved-id";
775
+ } | {
776
+ type: "resolve-target";
777
+ target: {
778
+ kind: "version" | "jar" | "coordinate";
779
+ value: string;
780
+ };
781
+ } | undefined;
782
+ queryMode?: "auto" | "token" | "literal" | undefined;
783
+ }>]>>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ kind: "workspace";
786
+ projectPath: string;
787
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
788
+ scope?: "vanilla" | "merged" | "loader" | undefined;
789
+ preferProjectVersion?: boolean | undefined;
790
+ strictVersion?: boolean | undefined;
791
+ focus?: {
792
+ kind: "class";
793
+ className: string;
794
+ artifact?: {
795
+ artifactId: string;
796
+ type: "resolved-id";
797
+ } | {
798
+ type: "resolve-target";
799
+ target: {
800
+ kind: "version" | "jar" | "coordinate";
801
+ value: string;
802
+ };
803
+ } | undefined;
804
+ } | {
805
+ kind: "file";
806
+ filePath: string;
807
+ artifact?: {
808
+ artifactId: string;
809
+ type: "resolved-id";
810
+ } | {
811
+ type: "resolve-target";
812
+ target: {
813
+ kind: "version" | "jar" | "coordinate";
814
+ value: string;
815
+ };
816
+ } | undefined;
817
+ } | {
818
+ kind: "search";
819
+ query: string;
820
+ queryMode: "auto" | "token" | "literal";
821
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
822
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
823
+ packagePrefix?: string | undefined;
824
+ intent?: "symbol" | "path" | "text" | undefined;
825
+ fileGlob?: string | undefined;
826
+ artifact?: {
827
+ artifactId: string;
828
+ type: "resolved-id";
829
+ } | {
830
+ type: "resolve-target";
831
+ target: {
832
+ kind: "version" | "jar" | "coordinate";
833
+ value: string;
834
+ };
835
+ } | undefined;
836
+ } | undefined;
837
+ }, {
838
+ kind: "workspace";
839
+ projectPath: string;
840
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
841
+ scope?: "vanilla" | "merged" | "loader" | undefined;
842
+ preferProjectVersion?: boolean | undefined;
843
+ strictVersion?: boolean | undefined;
844
+ focus?: {
845
+ kind: "class";
846
+ className: string;
847
+ artifact?: {
848
+ artifactId: string;
849
+ type: "resolved-id";
850
+ } | {
851
+ type: "resolve-target";
852
+ target: {
853
+ kind: "version" | "jar" | "coordinate";
854
+ value: string;
855
+ };
856
+ } | undefined;
857
+ } | {
858
+ kind: "file";
859
+ filePath: string;
860
+ artifact?: {
861
+ artifactId: string;
862
+ type: "resolved-id";
863
+ } | {
864
+ type: "resolve-target";
865
+ target: {
866
+ kind: "version" | "jar" | "coordinate";
867
+ value: string;
868
+ };
869
+ } | undefined;
870
+ } | {
871
+ kind: "search";
872
+ query: string;
873
+ match?: "exact" | "prefix" | "contains" | "regex" | undefined;
874
+ symbolKind?: "class" | "field" | "method" | "record" | "interface" | "enum" | undefined;
875
+ packagePrefix?: string | undefined;
876
+ intent?: "symbol" | "path" | "text" | undefined;
877
+ fileGlob?: string | undefined;
878
+ artifact?: {
879
+ artifactId: string;
880
+ type: "resolved-id";
881
+ } | {
882
+ type: "resolve-target";
883
+ target: {
884
+ kind: "version" | "jar" | "coordinate";
885
+ value: string;
886
+ };
887
+ } | undefined;
888
+ queryMode?: "auto" | "token" | "literal" | undefined;
889
+ } | undefined;
890
+ }>]>;
891
+ export type ArtifactRef = z.infer<typeof artifactRefSchema>;
892
+ export type Subject = z.infer<typeof subjectSchema>;
893
+ export type WorkspaceSubject = Extract<Subject, {
894
+ kind: "workspace";
895
+ }>;
896
+ export type WorkspaceClassFocus = Extract<z.infer<typeof workspaceFocusSchema>, {
897
+ kind: "class";
898
+ }>;
899
+ export type WorkspaceSearchFocus = Extract<z.infer<typeof workspaceFocusSchema>, {
900
+ kind: "search";
901
+ }>;
902
+ export type WorkspaceFileFocus = Extract<z.infer<typeof workspaceFocusSchema>, {
903
+ kind: "file";
904
+ }>;
905
+ export type InspectMinecraftTask = typeof TASKS[number];
906
+ export type ConcreteInspectMinecraftTask = Exclude<InspectMinecraftTask, "auto">;
907
+ export type ArtifactContextTask = "class-overview" | "class-source" | "class-members" | "search" | "file" | "list-files";
908
+ export declare function hasPartialVanillaCoverage(artifact: ResolveArtifactOutput | undefined): boolean;
909
+ export declare function looksLikeClassQuery(query: string): boolean;
910
+ export declare function classNameToFilePath(className: string): string;
911
+ export declare function hitTargetsVanillaNamespace(hit: SearchClassSourceOutput["hits"][number]): boolean;
912
+ export type InspectMinecraftDeps = {
913
+ listVersions: (input: {
914
+ includeSnapshots?: boolean;
915
+ limit?: number;
916
+ }) => Promise<ListVersionsOutput>;
917
+ resolveArtifact: (input: {
918
+ target: {
919
+ kind: "version" | "jar" | "coordinate";
920
+ value: string;
921
+ };
922
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn";
923
+ scope?: "vanilla" | "merged" | "loader";
924
+ projectPath?: string;
925
+ preferProjectVersion?: boolean;
926
+ strictVersion?: boolean;
927
+ }) => Promise<ResolveArtifactOutput>;
928
+ findClass: (input: {
929
+ className: string;
930
+ artifactId: string;
931
+ limit?: number;
932
+ }) => Promise<FindClassOutput>;
933
+ checkSymbolExists?: (input: {
934
+ version: string;
935
+ kind: "class" | "field" | "method";
936
+ name: string;
937
+ owner?: string;
938
+ descriptor?: string;
939
+ sourceMapping: "obfuscated" | "mojang" | "intermediary" | "yarn";
940
+ sourcePriority?: "loom-first" | "maven-first";
941
+ nameMode?: "fqcn" | "auto";
942
+ signatureMode?: "exact" | "name-only";
943
+ maxCandidates?: number;
944
+ }) => Promise<CheckSymbolExistsOutput>;
945
+ getClassSource: (input: {
946
+ className: string;
947
+ artifactId?: string;
948
+ target?: {
949
+ kind: "version" | "jar" | "coordinate";
950
+ value: string;
951
+ };
952
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn";
953
+ scope?: "vanilla" | "merged" | "loader";
954
+ projectPath?: string;
955
+ preferProjectVersion?: boolean;
956
+ strictVersion?: boolean;
957
+ mode?: "metadata" | "snippet" | "full";
958
+ maxLines?: number;
959
+ maxChars?: number;
960
+ }) => Promise<GetClassSourceOutput>;
961
+ getClassMembers: (input: {
962
+ className: string;
963
+ artifactId?: string;
964
+ target?: {
965
+ kind: "version" | "jar" | "coordinate";
966
+ value: string;
967
+ };
968
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn";
969
+ scope?: "vanilla" | "merged" | "loader";
970
+ projectPath?: string;
971
+ preferProjectVersion?: boolean;
972
+ strictVersion?: boolean;
973
+ maxMembers?: number;
974
+ }) => Promise<GetClassMembersOutput>;
975
+ searchClassSource: (input: {
976
+ artifactId: string;
977
+ query: string;
978
+ intent?: "symbol" | "text" | "path";
979
+ match?: "exact" | "prefix" | "contains" | "regex";
980
+ scope?: {
981
+ packagePrefix?: string;
982
+ fileGlob?: string;
983
+ symbolKind?: "class" | "interface" | "enum" | "record" | "method" | "field";
984
+ };
985
+ queryMode?: "auto" | "token" | "literal";
986
+ limit?: number;
987
+ cursor?: string;
988
+ }) => Promise<SearchClassSourceOutput>;
989
+ getArtifactFile: (input: {
990
+ artifactId: string;
991
+ filePath: string;
992
+ maxBytes?: number;
993
+ }) => Promise<GetArtifactFileOutput>;
994
+ listArtifactFiles: (input: {
995
+ artifactId: string;
996
+ prefix?: string;
997
+ limit?: number;
998
+ cursor?: string;
999
+ }) => Promise<ListArtifactFilesOutput>;
1000
+ detectProjectMinecraftVersion: (projectPath: string) => Promise<string | undefined>;
1001
+ };
1002
+ export declare function requireWorkspaceClassFocus(subject: Subject): WorkspaceClassFocus;
1003
+ export declare function requireWorkspaceSearchFocus(subject: Subject): WorkspaceSearchFocus;
1004
+ export declare function requireWorkspaceFileFocus(subject: Subject): WorkspaceFileFocus;
1005
+ export declare function buildClassSubject(subject: Extract<Subject, {
1006
+ kind: "class";
1007
+ }> | WorkspaceSubject): Extract<Subject, {
1008
+ kind: "class";
1009
+ }>;
1010
+ export declare function resolveClassArtifactReference(deps: InspectMinecraftDeps, subject: Extract<Subject, {
1011
+ kind: "class";
1012
+ }> | WorkspaceSubject, classSubject: Extract<Subject, {
1013
+ kind: "class";
1014
+ }>, task: Extract<ArtifactContextTask, "class-overview" | "class-source" | "class-members">): Promise<{
1015
+ artifactId: string;
1016
+ artifact?: ResolveArtifactOutput;
1017
+ version?: string;
1018
+ warnings: string[];
1019
+ }>;
1020
+ export declare function resolveWorkspaceArtifactReference(deps: InspectMinecraftDeps, subject: WorkspaceSubject, artifactRef: ArtifactRef | undefined): Promise<{
1021
+ artifactId: string;
1022
+ artifact?: ResolveArtifactOutput;
1023
+ version?: string;
1024
+ warnings: string[];
1025
+ }>;
1026
+ export declare function resolveTask(task: InspectMinecraftTask | undefined, subject: Subject | undefined): "search" | "file" | "versions" | "artifact" | "class-source" | "class-members" | "class-overview" | "list-files";
1027
+ export declare function summarizeRequestedSubject(subject: Subject): Record<string, unknown>;
1028
+ export declare function taskForSubject(subject: Subject): ConcreteInspectMinecraftTask;
1029
+ export declare function invalidTaskSubjectError(task: ConcreteInspectMinecraftTask, subject: Subject): never;
1030
+ export declare function resolveBinaryBackedClass(deps: InspectMinecraftDeps, className: string, input: {
1031
+ version?: string;
1032
+ mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn";
1033
+ }): Promise<{
1034
+ className: string;
1035
+ warnings: string[];
1036
+ } | undefined>;
1037
+ export declare function resolveArtifactReference(deps: InspectMinecraftDeps, subject: Subject, task?: ArtifactContextTask): Promise<{
1038
+ artifactId: string;
1039
+ artifact?: ResolveArtifactOutput;
1040
+ version?: string;
1041
+ warnings: string[];
1042
+ }>;