@adhisang/minecraft-modding-mcp 6.2.0 → 7.0.0-rc.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +21 -5
  3. package/dist/cache-policy.d.ts +71 -0
  4. package/dist/cache-policy.js +83 -0
  5. package/dist/cache-registry.js +6 -6
  6. package/dist/cli.js +74 -3
  7. package/dist/compat-stdio-transport.d.ts +1 -1
  8. package/dist/compat-stdio-transport.js +13 -1
  9. package/dist/config.d.ts +3 -0
  10. package/dist/config.js +8 -2
  11. package/dist/decompiler/vineflower.d.ts +1 -0
  12. package/dist/decompiler/vineflower.js +8 -5
  13. package/dist/entry-tools/analyze-mod-service.d.ts +70 -136
  14. package/dist/entry-tools/analyze-symbol-service.d.ts +112 -150
  15. package/dist/entry-tools/compare-minecraft-service.d.ts +59 -145
  16. package/dist/entry-tools/entry-tool-schema.d.ts +38 -4
  17. package/dist/entry-tools/entry-tool-schema.js +4 -1
  18. package/dist/entry-tools/inspect-minecraft/internal.d.ts +235 -799
  19. package/dist/entry-tools/inspect-minecraft/internal.js +65 -28
  20. package/dist/entry-tools/inspect-minecraft-service.d.ts +372 -1736
  21. package/dist/entry-tools/inspect-minecraft-service.js +1 -1
  22. package/dist/entry-tools/manage-cache-service.d.ts +81 -91
  23. package/dist/entry-tools/validate-project/cases/project-summary.d.ts +7 -7
  24. package/dist/entry-tools/validate-project-service.d.ts +164 -592
  25. package/dist/entry-tools/verify-mixin-target-service.d.ts +3 -19
  26. package/dist/era-classifier.d.ts +161 -0
  27. package/dist/era-classifier.js +292 -0
  28. package/dist/error-mapping.js +9 -2
  29. package/dist/index.d.ts +42 -4
  30. package/dist/index.js +637 -475
  31. package/dist/java-process.d.ts +2 -0
  32. package/dist/java-process.js +22 -2
  33. package/dist/json-rpc-framing.d.ts +77 -1
  34. package/dist/json-rpc-framing.js +249 -13
  35. package/dist/mapping/loaders/tiny-loom-selection.d.ts +88 -0
  36. package/dist/mapping/loaders/tiny-loom-selection.js +223 -0
  37. package/dist/mapping/loaders/tiny-loom.js +45 -33
  38. package/dist/mapping/loaders/tiny-maven.js +6 -11
  39. package/dist/mapping/parsers/tiny.d.ts +57 -0
  40. package/dist/mapping/parsers/tiny.js +99 -22
  41. package/dist/mapping-service.d.ts +19 -0
  42. package/dist/mapping-service.js +93 -9
  43. package/dist/mcp-helpers.d.ts +19 -2
  44. package/dist/mcp-helpers.js +48 -6
  45. package/dist/minecraft-explorer-service.d.ts +1 -1
  46. package/dist/mixin/types.d.ts +8 -0
  47. package/dist/mod-analyzer.js +7 -7
  48. package/dist/mod-decompile-service.js +1 -0
  49. package/dist/nbt/java-nbt-codec.js +12 -2
  50. package/dist/nbt/json-patch.js +14 -3
  51. package/dist/nbt/pipeline.js +40 -3
  52. package/dist/nbt/typed-json.js +26 -1
  53. package/dist/registration-adapter.d.ts +32 -0
  54. package/dist/registration-adapter.js +52 -0
  55. package/dist/request-context.d.ts +7 -0
  56. package/dist/request-context.js +9 -0
  57. package/dist/resources.d.ts +1 -1
  58. package/dist/resources.js +25 -19
  59. package/dist/server-identity.d.ts +27 -0
  60. package/dist/server-identity.js +26 -0
  61. package/dist/source/access-validate.js +53 -0
  62. package/dist/source/artifact-resolver.d.ts +69 -1
  63. package/dist/source/artifact-resolver.js +215 -14
  64. package/dist/source/class-source.d.ts +22 -0
  65. package/dist/source/class-source.js +162 -29
  66. package/dist/source/did-you-mean.d.ts +12 -1
  67. package/dist/source/did-you-mean.js +6 -2
  68. package/dist/source/file-access.js +150 -46
  69. package/dist/source/indexer.js +1 -0
  70. package/dist/source/nested-jars.d.ts +19 -0
  71. package/dist/source/nested-jars.js +90 -21
  72. package/dist/source/shared-utils.d.ts +21 -0
  73. package/dist/source/shared-utils.js +23 -0
  74. package/dist/source-service.d.ts +12 -0
  75. package/dist/source-service.js +3 -0
  76. package/dist/stdio-supervisor.d.ts +357 -2
  77. package/dist/stdio-supervisor.js +1031 -80
  78. package/dist/storage/db.d.ts +2 -1
  79. package/dist/storage/db.js +15 -8
  80. package/dist/synthetic-decorator.d.ts +24 -0
  81. package/dist/synthetic-decorator.js +48 -0
  82. package/dist/tool-contract-manifest.js +1 -1
  83. package/dist/tool-guidance.d.ts +17 -1
  84. package/dist/tool-guidance.js +417 -13
  85. package/dist/tool-schema-registry.d.ts +2 -0
  86. package/dist/tool-schema-registry.js +4 -0
  87. package/dist/tool-schemas.d.ts +2214 -3915
  88. package/dist/tool-schemas.js +34 -7
  89. package/dist/types.d.ts +35 -0
  90. package/dist/v1-parity-schemas.d.ts +7 -0
  91. package/dist/v1-parity-schemas.js +5584 -0
  92. package/dist/version-diff-service.d.ts +33 -0
  93. package/dist/version-diff-service.js +148 -3
  94. package/dist/version-service.js +36 -14
  95. package/dist/warning-details.js +18 -1
  96. package/docs/README-ja.md +9 -3
  97. package/docs/tool-reference.md +267 -22
  98. package/package.json +12 -9
@@ -48,657 +48,229 @@ export type TaskStatusReport = {
48
48
  };
49
49
  };
50
50
  export declare const validateProjectShape: {
51
- task: z.ZodEnum<["project-summary", "mixin", "access-widener", "access-transformer"]>;
52
- subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
51
+ task: z.ZodEnum<{
52
+ "project-summary": "project-summary";
53
+ mixin: "mixin";
54
+ "access-widener": "access-widener";
55
+ "access-transformer": "access-transformer";
56
+ }>;
57
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
58
  kind: z.ZodLiteral<"workspace">;
54
59
  projectPath: z.ZodString;
55
60
  gradleUserHome: z.ZodOptional<z.ZodString>;
56
- discover: z.ZodOptional<z.ZodArray<z.ZodEnum<["mixins", "access-wideners", "access-transformers"]>, "many">>;
57
- }, "strip", z.ZodTypeAny, {
58
- kind: "workspace";
59
- projectPath: string;
60
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
61
- gradleUserHome?: string | undefined;
62
- }, {
63
- kind: "workspace";
64
- projectPath: string;
65
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
66
- gradleUserHome?: string | undefined;
67
- }>, z.ZodObject<{
61
+ discover: z.ZodOptional<z.ZodArray<z.ZodEnum<{
62
+ mixins: "mixins";
63
+ "access-wideners": "access-wideners";
64
+ "access-transformers": "access-transformers";
65
+ }>>>;
66
+ }, z.core.$strip>, z.ZodObject<{
68
67
  kind: z.ZodLiteral<"mixin">;
69
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
68
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
69
  mode: z.ZodLiteral<"inline">;
71
70
  source: z.ZodString;
72
- }, "strip", z.ZodTypeAny, {
73
- source: string;
74
- mode: "inline";
75
- }, {
76
- source: string;
77
- mode: "inline";
78
- }>, z.ZodObject<{
71
+ }, z.core.$strip>, z.ZodObject<{
79
72
  mode: z.ZodLiteral<"path">;
80
73
  path: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- path: string;
83
- mode: "path";
84
- }, {
85
- path: string;
86
- mode: "path";
87
- }>, z.ZodObject<{
74
+ }, z.core.$strip>, z.ZodObject<{
88
75
  mode: z.ZodLiteral<"paths">;
89
- paths: z.ZodArray<z.ZodString, "many">;
90
- }, "strip", z.ZodTypeAny, {
91
- mode: "paths";
92
- paths: string[];
93
- }, {
94
- mode: "paths";
95
- paths: string[];
96
- }>, z.ZodObject<{
76
+ paths: z.ZodArray<z.ZodString>;
77
+ }, z.core.$strip>, z.ZodObject<{
97
78
  mode: z.ZodLiteral<"config">;
98
- configPaths: z.ZodArray<z.ZodString, "many">;
99
- }, "strip", z.ZodTypeAny, {
100
- mode: "config";
101
- configPaths: string[];
102
- }, {
103
- mode: "config";
104
- configPaths: string[];
105
- }>, z.ZodObject<{
79
+ configPaths: z.ZodArray<z.ZodString>;
80
+ }, z.core.$strip>, z.ZodObject<{
106
81
  mode: z.ZodLiteral<"project">;
107
82
  path: z.ZodString;
108
- }, "strip", z.ZodTypeAny, {
109
- path: string;
110
- mode: "project";
111
- }, {
112
- path: string;
113
- mode: "project";
114
- }>]>;
115
- }, "strip", z.ZodTypeAny, {
116
- kind: "mixin";
117
- input: {
118
- source: string;
119
- mode: "inline";
120
- } | {
121
- path: string;
122
- mode: "path";
123
- } | {
124
- mode: "paths";
125
- paths: string[];
126
- } | {
127
- mode: "config";
128
- configPaths: string[];
129
- } | {
130
- path: string;
131
- mode: "project";
132
- };
133
- }, {
134
- kind: "mixin";
135
- input: {
136
- source: string;
137
- mode: "inline";
138
- } | {
139
- path: string;
140
- mode: "path";
141
- } | {
142
- mode: "paths";
143
- paths: string[];
144
- } | {
145
- mode: "config";
146
- configPaths: string[];
147
- } | {
148
- path: string;
149
- mode: "project";
150
- };
151
- }>, z.ZodObject<{
83
+ }, z.core.$strip>], "mode">;
84
+ }, z.core.$strip>, z.ZodObject<{
152
85
  kind: z.ZodLiteral<"access-widener">;
153
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
86
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
87
  mode: z.ZodLiteral<"inline">;
155
88
  content: z.ZodString;
156
- }, "strip", z.ZodTypeAny, {
157
- content: string;
158
- mode: "inline";
159
- }, {
160
- content: string;
161
- mode: "inline";
162
- }>, z.ZodObject<{
89
+ }, z.core.$strip>, z.ZodObject<{
163
90
  mode: z.ZodLiteral<"path">;
164
91
  path: z.ZodString;
165
- }, "strip", z.ZodTypeAny, {
166
- path: string;
167
- mode: "path";
168
- }, {
169
- path: string;
170
- mode: "path";
171
- }>]>;
172
- }, "strip", z.ZodTypeAny, {
173
- kind: "access-widener";
174
- input: {
175
- content: string;
176
- mode: "inline";
177
- } | {
178
- path: string;
179
- mode: "path";
180
- };
181
- }, {
182
- kind: "access-widener";
183
- input: {
184
- content: string;
185
- mode: "inline";
186
- } | {
187
- path: string;
188
- mode: "path";
189
- };
190
- }>, z.ZodObject<{
92
+ }, z.core.$strip>], "mode">;
93
+ }, z.core.$strip>, z.ZodObject<{
191
94
  kind: z.ZodLiteral<"access-transformer">;
192
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
95
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
96
  mode: z.ZodLiteral<"inline">;
194
97
  content: z.ZodString;
195
- }, "strip", z.ZodTypeAny, {
196
- content: string;
197
- mode: "inline";
198
- }, {
199
- content: string;
200
- mode: "inline";
201
- }>, z.ZodObject<{
98
+ }, z.core.$strip>, z.ZodObject<{
202
99
  mode: z.ZodLiteral<"path">;
203
100
  path: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- path: string;
206
- mode: "path";
207
- }, {
208
- path: string;
209
- mode: "path";
210
- }>]>;
211
- }, "strip", z.ZodTypeAny, {
212
- kind: "access-transformer";
213
- input: {
214
- content: string;
215
- mode: "inline";
216
- } | {
217
- path: string;
218
- mode: "path";
219
- };
220
- }, {
221
- kind: "access-transformer";
222
- input: {
223
- content: string;
224
- mode: "inline";
225
- } | {
226
- path: string;
227
- mode: "path";
228
- };
229
- }>]>;
101
+ }, z.core.$strip>], "mode">;
102
+ }, z.core.$strip>], "kind">;
230
103
  version: z.ZodOptional<z.ZodString>;
231
- mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
232
- atNamespace: z.ZodOptional<z.ZodEnum<["srg", "mojang", "obfuscated"]>>;
233
- sourcePriority: z.ZodOptional<z.ZodEnum<["loom-first", "maven-first"]>>;
234
- scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
104
+ mapping: z.ZodOptional<z.ZodEnum<{
105
+ obfuscated: "obfuscated";
106
+ mojang: "mojang";
107
+ intermediary: "intermediary";
108
+ yarn: "yarn";
109
+ }>>;
110
+ atNamespace: z.ZodOptional<z.ZodEnum<{
111
+ obfuscated: "obfuscated";
112
+ mojang: "mojang";
113
+ srg: "srg";
114
+ }>>;
115
+ sourcePriority: z.ZodOptional<z.ZodEnum<{
116
+ "loom-first": "loom-first";
117
+ "maven-first": "maven-first";
118
+ }>>;
119
+ scope: z.ZodOptional<z.ZodEnum<{
120
+ vanilla: "vanilla";
121
+ merged: "merged";
122
+ loader: "loader";
123
+ }>>;
235
124
  preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
236
125
  preferProjectMapping: z.ZodDefault<z.ZodBoolean>;
237
- detail: z.ZodOptional<z.ZodEnum<["summary", "standard", "full"]>>;
238
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
239
- sourceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
- configPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
- minSeverity: z.ZodDefault<z.ZodEnum<["error", "warning", "all"]>>;
126
+ detail: z.ZodOptional<z.ZodEnum<{
127
+ summary: "summary";
128
+ standard: "standard";
129
+ full: "full";
130
+ }>>;
131
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
132
+ [x: string]: string;
133
+ }>>>;
134
+ sourceRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
+ configPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
+ minSeverity: z.ZodDefault<z.ZodEnum<{
137
+ all: "all";
138
+ error: "error";
139
+ warning: "warning";
140
+ }>>;
242
141
  hideUncertain: z.ZodDefault<z.ZodBoolean>;
243
142
  explain: z.ZodDefault<z.ZodBoolean>;
244
- warningMode: z.ZodOptional<z.ZodEnum<["full", "aggregated"]>>;
245
- warningCategoryFilter: z.ZodOptional<z.ZodArray<z.ZodEnum<["mapping", "configuration", "validation", "resolution", "parse"]>, "many">>;
143
+ warningMode: z.ZodOptional<z.ZodEnum<{
144
+ full: "full";
145
+ aggregated: "aggregated";
146
+ }>>;
147
+ warningCategoryFilter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
148
+ mapping: "mapping";
149
+ configuration: "configuration";
150
+ validation: "validation";
151
+ resolution: "resolution";
152
+ parse: "parse";
153
+ }>>>;
246
154
  treatInfoAsWarning: z.ZodDefault<z.ZodBoolean>;
247
155
  includeIssues: z.ZodDefault<z.ZodBoolean>;
248
- reportMode: z.ZodDefault<z.ZodEnum<["compact", "full", "summary-first"]>>;
156
+ reportMode: z.ZodDefault<z.ZodEnum<{
157
+ full: "full";
158
+ compact: "compact";
159
+ "summary-first": "summary-first";
160
+ }>>;
249
161
  };
250
- export declare const validateProjectSchema: z.ZodEffects<z.ZodObject<{
251
- task: z.ZodEnum<["project-summary", "mixin", "access-widener", "access-transformer"]>;
252
- subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
162
+ export declare const validateProjectSchema: z.ZodObject<{
163
+ task: z.ZodEnum<{
164
+ "project-summary": "project-summary";
165
+ mixin: "mixin";
166
+ "access-widener": "access-widener";
167
+ "access-transformer": "access-transformer";
168
+ }>;
169
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
170
  kind: z.ZodLiteral<"workspace">;
254
171
  projectPath: z.ZodString;
255
172
  gradleUserHome: z.ZodOptional<z.ZodString>;
256
- discover: z.ZodOptional<z.ZodArray<z.ZodEnum<["mixins", "access-wideners", "access-transformers"]>, "many">>;
257
- }, "strip", z.ZodTypeAny, {
258
- kind: "workspace";
259
- projectPath: string;
260
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
261
- gradleUserHome?: string | undefined;
262
- }, {
263
- kind: "workspace";
264
- projectPath: string;
265
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
266
- gradleUserHome?: string | undefined;
267
- }>, z.ZodObject<{
173
+ discover: z.ZodOptional<z.ZodArray<z.ZodEnum<{
174
+ mixins: "mixins";
175
+ "access-wideners": "access-wideners";
176
+ "access-transformers": "access-transformers";
177
+ }>>>;
178
+ }, z.core.$strip>, z.ZodObject<{
268
179
  kind: z.ZodLiteral<"mixin">;
269
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
180
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
181
  mode: z.ZodLiteral<"inline">;
271
182
  source: z.ZodString;
272
- }, "strip", z.ZodTypeAny, {
273
- source: string;
274
- mode: "inline";
275
- }, {
276
- source: string;
277
- mode: "inline";
278
- }>, z.ZodObject<{
183
+ }, z.core.$strip>, z.ZodObject<{
279
184
  mode: z.ZodLiteral<"path">;
280
185
  path: z.ZodString;
281
- }, "strip", z.ZodTypeAny, {
282
- path: string;
283
- mode: "path";
284
- }, {
285
- path: string;
286
- mode: "path";
287
- }>, z.ZodObject<{
186
+ }, z.core.$strip>, z.ZodObject<{
288
187
  mode: z.ZodLiteral<"paths">;
289
- paths: z.ZodArray<z.ZodString, "many">;
290
- }, "strip", z.ZodTypeAny, {
291
- mode: "paths";
292
- paths: string[];
293
- }, {
294
- mode: "paths";
295
- paths: string[];
296
- }>, z.ZodObject<{
188
+ paths: z.ZodArray<z.ZodString>;
189
+ }, z.core.$strip>, z.ZodObject<{
297
190
  mode: z.ZodLiteral<"config">;
298
- configPaths: z.ZodArray<z.ZodString, "many">;
299
- }, "strip", z.ZodTypeAny, {
300
- mode: "config";
301
- configPaths: string[];
302
- }, {
303
- mode: "config";
304
- configPaths: string[];
305
- }>, z.ZodObject<{
191
+ configPaths: z.ZodArray<z.ZodString>;
192
+ }, z.core.$strip>, z.ZodObject<{
306
193
  mode: z.ZodLiteral<"project">;
307
194
  path: z.ZodString;
308
- }, "strip", z.ZodTypeAny, {
309
- path: string;
310
- mode: "project";
311
- }, {
312
- path: string;
313
- mode: "project";
314
- }>]>;
315
- }, "strip", z.ZodTypeAny, {
316
- kind: "mixin";
317
- input: {
318
- source: string;
319
- mode: "inline";
320
- } | {
321
- path: string;
322
- mode: "path";
323
- } | {
324
- mode: "paths";
325
- paths: string[];
326
- } | {
327
- mode: "config";
328
- configPaths: string[];
329
- } | {
330
- path: string;
331
- mode: "project";
332
- };
333
- }, {
334
- kind: "mixin";
335
- input: {
336
- source: string;
337
- mode: "inline";
338
- } | {
339
- path: string;
340
- mode: "path";
341
- } | {
342
- mode: "paths";
343
- paths: string[];
344
- } | {
345
- mode: "config";
346
- configPaths: string[];
347
- } | {
348
- path: string;
349
- mode: "project";
350
- };
351
- }>, z.ZodObject<{
195
+ }, z.core.$strip>], "mode">;
196
+ }, z.core.$strip>, z.ZodObject<{
352
197
  kind: z.ZodLiteral<"access-widener">;
353
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
198
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
354
199
  mode: z.ZodLiteral<"inline">;
355
200
  content: z.ZodString;
356
- }, "strip", z.ZodTypeAny, {
357
- content: string;
358
- mode: "inline";
359
- }, {
360
- content: string;
361
- mode: "inline";
362
- }>, z.ZodObject<{
201
+ }, z.core.$strip>, z.ZodObject<{
363
202
  mode: z.ZodLiteral<"path">;
364
203
  path: z.ZodString;
365
- }, "strip", z.ZodTypeAny, {
366
- path: string;
367
- mode: "path";
368
- }, {
369
- path: string;
370
- mode: "path";
371
- }>]>;
372
- }, "strip", z.ZodTypeAny, {
373
- kind: "access-widener";
374
- input: {
375
- content: string;
376
- mode: "inline";
377
- } | {
378
- path: string;
379
- mode: "path";
380
- };
381
- }, {
382
- kind: "access-widener";
383
- input: {
384
- content: string;
385
- mode: "inline";
386
- } | {
387
- path: string;
388
- mode: "path";
389
- };
390
- }>, z.ZodObject<{
204
+ }, z.core.$strip>], "mode">;
205
+ }, z.core.$strip>, z.ZodObject<{
391
206
  kind: z.ZodLiteral<"access-transformer">;
392
- input: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
207
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
393
208
  mode: z.ZodLiteral<"inline">;
394
209
  content: z.ZodString;
395
- }, "strip", z.ZodTypeAny, {
396
- content: string;
397
- mode: "inline";
398
- }, {
399
- content: string;
400
- mode: "inline";
401
- }>, z.ZodObject<{
210
+ }, z.core.$strip>, z.ZodObject<{
402
211
  mode: z.ZodLiteral<"path">;
403
212
  path: z.ZodString;
404
- }, "strip", z.ZodTypeAny, {
405
- path: string;
406
- mode: "path";
407
- }, {
408
- path: string;
409
- mode: "path";
410
- }>]>;
411
- }, "strip", z.ZodTypeAny, {
412
- kind: "access-transformer";
413
- input: {
414
- content: string;
415
- mode: "inline";
416
- } | {
417
- path: string;
418
- mode: "path";
419
- };
420
- }, {
421
- kind: "access-transformer";
422
- input: {
423
- content: string;
424
- mode: "inline";
425
- } | {
426
- path: string;
427
- mode: "path";
428
- };
429
- }>]>;
213
+ }, z.core.$strip>], "mode">;
214
+ }, z.core.$strip>], "kind">;
430
215
  version: z.ZodOptional<z.ZodString>;
431
- mapping: z.ZodOptional<z.ZodEnum<["obfuscated", "mojang", "intermediary", "yarn"]>>;
432
- atNamespace: z.ZodOptional<z.ZodEnum<["srg", "mojang", "obfuscated"]>>;
433
- sourcePriority: z.ZodOptional<z.ZodEnum<["loom-first", "maven-first"]>>;
434
- scope: z.ZodOptional<z.ZodEnum<["vanilla", "merged", "loader"]>>;
216
+ mapping: z.ZodOptional<z.ZodEnum<{
217
+ obfuscated: "obfuscated";
218
+ mojang: "mojang";
219
+ intermediary: "intermediary";
220
+ yarn: "yarn";
221
+ }>>;
222
+ atNamespace: z.ZodOptional<z.ZodEnum<{
223
+ obfuscated: "obfuscated";
224
+ mojang: "mojang";
225
+ srg: "srg";
226
+ }>>;
227
+ sourcePriority: z.ZodOptional<z.ZodEnum<{
228
+ "loom-first": "loom-first";
229
+ "maven-first": "maven-first";
230
+ }>>;
231
+ scope: z.ZodOptional<z.ZodEnum<{
232
+ vanilla: "vanilla";
233
+ merged: "merged";
234
+ loader: "loader";
235
+ }>>;
435
236
  preferProjectVersion: z.ZodOptional<z.ZodBoolean>;
436
237
  preferProjectMapping: z.ZodDefault<z.ZodBoolean>;
437
- detail: z.ZodOptional<z.ZodEnum<["summary", "standard", "full"]>>;
438
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
439
- sourceRoots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
440
- configPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
- minSeverity: z.ZodDefault<z.ZodEnum<["error", "warning", "all"]>>;
238
+ detail: z.ZodOptional<z.ZodEnum<{
239
+ summary: "summary";
240
+ standard: "standard";
241
+ full: "full";
242
+ }>>;
243
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
244
+ [x: string]: string;
245
+ }>>>;
246
+ sourceRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
247
+ configPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
+ minSeverity: z.ZodDefault<z.ZodEnum<{
249
+ all: "all";
250
+ error: "error";
251
+ warning: "warning";
252
+ }>>;
442
253
  hideUncertain: z.ZodDefault<z.ZodBoolean>;
443
254
  explain: z.ZodDefault<z.ZodBoolean>;
444
- warningMode: z.ZodOptional<z.ZodEnum<["full", "aggregated"]>>;
445
- warningCategoryFilter: z.ZodOptional<z.ZodArray<z.ZodEnum<["mapping", "configuration", "validation", "resolution", "parse"]>, "many">>;
255
+ warningMode: z.ZodOptional<z.ZodEnum<{
256
+ full: "full";
257
+ aggregated: "aggregated";
258
+ }>>;
259
+ warningCategoryFilter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
260
+ mapping: "mapping";
261
+ configuration: "configuration";
262
+ validation: "validation";
263
+ resolution: "resolution";
264
+ parse: "parse";
265
+ }>>>;
446
266
  treatInfoAsWarning: z.ZodDefault<z.ZodBoolean>;
447
267
  includeIssues: z.ZodDefault<z.ZodBoolean>;
448
- reportMode: z.ZodDefault<z.ZodEnum<["compact", "full", "summary-first"]>>;
449
- }, "strip", z.ZodTypeAny, {
450
- hideUncertain: boolean;
451
- explain: boolean;
452
- preferProjectMapping: boolean;
453
- minSeverity: "all" | "error" | "warning";
454
- reportMode: "full" | "summary-first" | "compact";
455
- treatInfoAsWarning: boolean;
456
- includeIssues: boolean;
457
- task: "project-summary" | "mixin" | "access-transformer" | "access-widener";
458
- subject: {
459
- kind: "workspace";
460
- projectPath: string;
461
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
462
- gradleUserHome?: string | undefined;
463
- } | {
464
- kind: "mixin";
465
- input: {
466
- source: string;
467
- mode: "inline";
468
- } | {
469
- path: string;
470
- mode: "path";
471
- } | {
472
- mode: "paths";
473
- paths: string[];
474
- } | {
475
- mode: "config";
476
- configPaths: string[];
477
- } | {
478
- path: string;
479
- mode: "project";
480
- };
481
- } | {
482
- kind: "access-widener";
483
- input: {
484
- content: string;
485
- mode: "inline";
486
- } | {
487
- path: string;
488
- mode: "path";
489
- };
490
- } | {
491
- kind: "access-transformer";
492
- input: {
493
- content: string;
494
- mode: "inline";
495
- } | {
496
- path: string;
497
- mode: "path";
498
- };
499
- };
500
- version?: string | undefined;
501
- mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
502
- scope?: "vanilla" | "merged" | "loader" | undefined;
503
- preferProjectVersion?: boolean | undefined;
504
- sourcePriority?: "loom-first" | "maven-first" | undefined;
505
- warningMode?: "full" | "aggregated" | undefined;
506
- sourceRoots?: string[] | undefined;
507
- warningCategoryFilter?: ("mapping" | "parse" | "validation" | "configuration" | "resolution")[] | undefined;
508
- configPaths?: string[] | undefined;
509
- detail?: "summary" | "standard" | "full" | undefined;
510
- include?: string[] | undefined;
511
- atNamespace?: "obfuscated" | "mojang" | "srg" | undefined;
512
- }, {
513
- task: "project-summary" | "mixin" | "access-transformer" | "access-widener";
514
- subject: {
515
- kind: "workspace";
516
- projectPath: string;
517
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
518
- gradleUserHome?: string | undefined;
519
- } | {
520
- kind: "mixin";
521
- input: {
522
- source: string;
523
- mode: "inline";
524
- } | {
525
- path: string;
526
- mode: "path";
527
- } | {
528
- mode: "paths";
529
- paths: string[];
530
- } | {
531
- mode: "config";
532
- configPaths: string[];
533
- } | {
534
- path: string;
535
- mode: "project";
536
- };
537
- } | {
538
- kind: "access-widener";
539
- input: {
540
- content: string;
541
- mode: "inline";
542
- } | {
543
- path: string;
544
- mode: "path";
545
- };
546
- } | {
547
- kind: "access-transformer";
548
- input: {
549
- content: string;
550
- mode: "inline";
551
- } | {
552
- path: string;
553
- mode: "path";
554
- };
555
- };
556
- version?: string | undefined;
557
- mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
558
- scope?: "vanilla" | "merged" | "loader" | undefined;
559
- preferProjectVersion?: boolean | undefined;
560
- hideUncertain?: boolean | undefined;
561
- explain?: boolean | undefined;
562
- preferProjectMapping?: boolean | undefined;
563
- minSeverity?: "all" | "error" | "warning" | undefined;
564
- reportMode?: "full" | "summary-first" | "compact" | undefined;
565
- treatInfoAsWarning?: boolean | undefined;
566
- includeIssues?: boolean | undefined;
567
- sourcePriority?: "loom-first" | "maven-first" | undefined;
568
- warningMode?: "full" | "aggregated" | undefined;
569
- sourceRoots?: string[] | undefined;
570
- warningCategoryFilter?: ("mapping" | "parse" | "validation" | "configuration" | "resolution")[] | undefined;
571
- configPaths?: string[] | undefined;
572
- detail?: "summary" | "standard" | "full" | undefined;
573
- include?: string[] | undefined;
574
- atNamespace?: "obfuscated" | "mojang" | "srg" | undefined;
575
- }>, {
576
- hideUncertain: boolean;
577
- explain: boolean;
578
- preferProjectMapping: boolean;
579
- minSeverity: "all" | "error" | "warning";
580
- reportMode: "full" | "summary-first" | "compact";
581
- treatInfoAsWarning: boolean;
582
- includeIssues: boolean;
583
- task: "project-summary" | "mixin" | "access-transformer" | "access-widener";
584
- subject: {
585
- kind: "workspace";
586
- projectPath: string;
587
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
588
- gradleUserHome?: string | undefined;
589
- } | {
590
- kind: "mixin";
591
- input: {
592
- source: string;
593
- mode: "inline";
594
- } | {
595
- path: string;
596
- mode: "path";
597
- } | {
598
- mode: "paths";
599
- paths: string[];
600
- } | {
601
- mode: "config";
602
- configPaths: string[];
603
- } | {
604
- path: string;
605
- mode: "project";
606
- };
607
- } | {
608
- kind: "access-widener";
609
- input: {
610
- content: string;
611
- mode: "inline";
612
- } | {
613
- path: string;
614
- mode: "path";
615
- };
616
- } | {
617
- kind: "access-transformer";
618
- input: {
619
- content: string;
620
- mode: "inline";
621
- } | {
622
- path: string;
623
- mode: "path";
624
- };
625
- };
626
- version?: string | undefined;
627
- mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
628
- scope?: "vanilla" | "merged" | "loader" | undefined;
629
- preferProjectVersion?: boolean | undefined;
630
- sourcePriority?: "loom-first" | "maven-first" | undefined;
631
- warningMode?: "full" | "aggregated" | undefined;
632
- sourceRoots?: string[] | undefined;
633
- warningCategoryFilter?: ("mapping" | "parse" | "validation" | "configuration" | "resolution")[] | undefined;
634
- configPaths?: string[] | undefined;
635
- detail?: "summary" | "standard" | "full" | undefined;
636
- include?: string[] | undefined;
637
- atNamespace?: "obfuscated" | "mojang" | "srg" | undefined;
638
- }, {
639
- task: "project-summary" | "mixin" | "access-transformer" | "access-widener";
640
- subject: {
641
- kind: "workspace";
642
- projectPath: string;
643
- discover?: ("mixins" | "access-wideners" | "access-transformers")[] | undefined;
644
- gradleUserHome?: string | undefined;
645
- } | {
646
- kind: "mixin";
647
- input: {
648
- source: string;
649
- mode: "inline";
650
- } | {
651
- path: string;
652
- mode: "path";
653
- } | {
654
- mode: "paths";
655
- paths: string[];
656
- } | {
657
- mode: "config";
658
- configPaths: string[];
659
- } | {
660
- path: string;
661
- mode: "project";
662
- };
663
- } | {
664
- kind: "access-widener";
665
- input: {
666
- content: string;
667
- mode: "inline";
668
- } | {
669
- path: string;
670
- mode: "path";
671
- };
672
- } | {
673
- kind: "access-transformer";
674
- input: {
675
- content: string;
676
- mode: "inline";
677
- } | {
678
- path: string;
679
- mode: "path";
680
- };
681
- };
682
- version?: string | undefined;
683
- mapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
684
- scope?: "vanilla" | "merged" | "loader" | undefined;
685
- preferProjectVersion?: boolean | undefined;
686
- hideUncertain?: boolean | undefined;
687
- explain?: boolean | undefined;
688
- preferProjectMapping?: boolean | undefined;
689
- minSeverity?: "all" | "error" | "warning" | undefined;
690
- reportMode?: "full" | "summary-first" | "compact" | undefined;
691
- treatInfoAsWarning?: boolean | undefined;
692
- includeIssues?: boolean | undefined;
693
- sourcePriority?: "loom-first" | "maven-first" | undefined;
694
- warningMode?: "full" | "aggregated" | undefined;
695
- sourceRoots?: string[] | undefined;
696
- warningCategoryFilter?: ("mapping" | "parse" | "validation" | "configuration" | "resolution")[] | undefined;
697
- configPaths?: string[] | undefined;
698
- detail?: "summary" | "standard" | "full" | undefined;
699
- include?: string[] | undefined;
700
- atNamespace?: "obfuscated" | "mojang" | "srg" | undefined;
701
- }>;
268
+ reportMode: z.ZodDefault<z.ZodEnum<{
269
+ full: "full";
270
+ compact: "compact";
271
+ "summary-first": "summary-first";
272
+ }>>;
273
+ }, z.core.$strip>;
702
274
  export type ValidateProjectInput = z.infer<typeof validateProjectSchema>;
703
275
  export type ValidateProjectExecuteOptions = {
704
276
  stageEmitter?: StageEmitter;