@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.
- package/CHANGELOG.md +71 -0
- package/README.md +21 -5
- package/dist/cache-policy.d.ts +71 -0
- package/dist/cache-policy.js +83 -0
- package/dist/cache-registry.js +6 -6
- package/dist/cli.js +74 -3
- package/dist/compat-stdio-transport.d.ts +1 -1
- package/dist/compat-stdio-transport.js +13 -1
- package/dist/config.d.ts +3 -0
- package/dist/config.js +8 -2
- package/dist/decompiler/vineflower.d.ts +1 -0
- package/dist/decompiler/vineflower.js +8 -5
- package/dist/entry-tools/analyze-mod-service.d.ts +70 -136
- package/dist/entry-tools/analyze-symbol-service.d.ts +112 -150
- package/dist/entry-tools/compare-minecraft-service.d.ts +59 -145
- package/dist/entry-tools/entry-tool-schema.d.ts +38 -4
- package/dist/entry-tools/entry-tool-schema.js +4 -1
- package/dist/entry-tools/inspect-minecraft/internal.d.ts +235 -799
- package/dist/entry-tools/inspect-minecraft/internal.js +65 -28
- package/dist/entry-tools/inspect-minecraft-service.d.ts +372 -1736
- package/dist/entry-tools/inspect-minecraft-service.js +1 -1
- package/dist/entry-tools/manage-cache-service.d.ts +81 -91
- package/dist/entry-tools/validate-project/cases/project-summary.d.ts +7 -7
- package/dist/entry-tools/validate-project-service.d.ts +164 -592
- package/dist/entry-tools/verify-mixin-target-service.d.ts +3 -19
- package/dist/era-classifier.d.ts +161 -0
- package/dist/era-classifier.js +292 -0
- package/dist/error-mapping.js +9 -2
- package/dist/index.d.ts +42 -4
- package/dist/index.js +637 -475
- package/dist/java-process.d.ts +2 -0
- package/dist/java-process.js +22 -2
- package/dist/json-rpc-framing.d.ts +77 -1
- package/dist/json-rpc-framing.js +249 -13
- package/dist/mapping/loaders/tiny-loom-selection.d.ts +88 -0
- package/dist/mapping/loaders/tiny-loom-selection.js +223 -0
- package/dist/mapping/loaders/tiny-loom.js +45 -33
- package/dist/mapping/loaders/tiny-maven.js +6 -11
- package/dist/mapping/parsers/tiny.d.ts +57 -0
- package/dist/mapping/parsers/tiny.js +99 -22
- package/dist/mapping-service.d.ts +19 -0
- package/dist/mapping-service.js +93 -9
- package/dist/mcp-helpers.d.ts +19 -2
- package/dist/mcp-helpers.js +48 -6
- package/dist/minecraft-explorer-service.d.ts +1 -1
- package/dist/mixin/types.d.ts +8 -0
- package/dist/mod-analyzer.js +7 -7
- package/dist/mod-decompile-service.js +1 -0
- package/dist/nbt/java-nbt-codec.js +12 -2
- package/dist/nbt/json-patch.js +14 -3
- package/dist/nbt/pipeline.js +40 -3
- package/dist/nbt/typed-json.js +26 -1
- package/dist/registration-adapter.d.ts +32 -0
- package/dist/registration-adapter.js +52 -0
- package/dist/request-context.d.ts +7 -0
- package/dist/request-context.js +9 -0
- package/dist/resources.d.ts +1 -1
- package/dist/resources.js +25 -19
- package/dist/server-identity.d.ts +27 -0
- package/dist/server-identity.js +26 -0
- package/dist/source/access-validate.js +53 -0
- package/dist/source/artifact-resolver.d.ts +69 -1
- package/dist/source/artifact-resolver.js +215 -14
- package/dist/source/class-source.d.ts +22 -0
- package/dist/source/class-source.js +162 -29
- package/dist/source/did-you-mean.d.ts +12 -1
- package/dist/source/did-you-mean.js +6 -2
- package/dist/source/file-access.js +150 -46
- package/dist/source/indexer.js +1 -0
- package/dist/source/nested-jars.d.ts +19 -0
- package/dist/source/nested-jars.js +90 -21
- package/dist/source/shared-utils.d.ts +21 -0
- package/dist/source/shared-utils.js +23 -0
- package/dist/source-service.d.ts +12 -0
- package/dist/source-service.js +3 -0
- package/dist/stdio-supervisor.d.ts +357 -2
- package/dist/stdio-supervisor.js +1031 -80
- package/dist/storage/db.d.ts +2 -1
- package/dist/storage/db.js +15 -8
- package/dist/synthetic-decorator.d.ts +24 -0
- package/dist/synthetic-decorator.js +48 -0
- package/dist/tool-contract-manifest.js +1 -1
- package/dist/tool-guidance.d.ts +17 -1
- package/dist/tool-guidance.js +417 -13
- package/dist/tool-schema-registry.d.ts +2 -0
- package/dist/tool-schema-registry.js +4 -0
- package/dist/tool-schemas.d.ts +2214 -3915
- package/dist/tool-schemas.js +34 -7
- package/dist/types.d.ts +35 -0
- package/dist/v1-parity-schemas.d.ts +7 -0
- package/dist/v1-parity-schemas.js +5584 -0
- package/dist/version-diff-service.d.ts +33 -0
- package/dist/version-diff-service.js +148 -3
- package/dist/version-service.js +36 -14
- package/dist/warning-details.js +18 -1
- package/docs/README-ja.md +9 -3
- package/docs/tool-reference.md +267 -22
- package/package.json +12 -9
|
@@ -4,9 +4,10 @@ import { createHash } from "node:crypto";
|
|
|
4
4
|
import { basename, join, relative, sep } from "node:path";
|
|
5
5
|
import { mapWithConcurrencyLimit } from "../concurrency.js";
|
|
6
6
|
import { createError, ERROR_CODES, isAppError } from "../errors.js";
|
|
7
|
-
import {
|
|
7
|
+
import { javaRunner } from "../java-process.js";
|
|
8
8
|
import { log } from "../logger.js";
|
|
9
9
|
const DEFAULT_TIMEOUT_MS = 120_000;
|
|
10
|
+
const DEFAULT_MAX_MEMORY_MB = 4_096;
|
|
10
11
|
const DECOMPILED_JAVA_READ_CONCURRENCY = 8;
|
|
11
12
|
const DECOMPILE_COMPLETE_MARKER = ".decompile-complete";
|
|
12
13
|
const VINEFLOWER_FLAG_PROFILES = [
|
|
@@ -93,11 +94,12 @@ function clearOutputDir(dir) {
|
|
|
93
94
|
rmSync(dir, { recursive: true, force: true });
|
|
94
95
|
mkdirSync(dir, { recursive: true });
|
|
95
96
|
}
|
|
96
|
-
async function runVineflower(vineflowerJarPath, binaryJarPath, outputDir, timeoutMs, flags = VINEFLOWER_FLAG_PROFILES[0].flags) {
|
|
97
|
-
const result = await
|
|
97
|
+
async function runVineflower(vineflowerJarPath, binaryJarPath, outputDir, timeoutMs, maxMemoryMb, flags = VINEFLOWER_FLAG_PROFILES[0].flags) {
|
|
98
|
+
const result = await javaRunner.run({
|
|
98
99
|
jarPath: vineflowerJarPath,
|
|
99
100
|
args: [...flags, binaryJarPath, outputDir],
|
|
100
101
|
timeoutMs,
|
|
102
|
+
maxMemoryMb,
|
|
101
103
|
normalizePathArgs: true
|
|
102
104
|
});
|
|
103
105
|
if (result.exitCode !== 0) {
|
|
@@ -128,6 +130,7 @@ export async function decompileBinaryJar(binaryJarPath, cacheDir, options) {
|
|
|
128
130
|
artifactIdCandidate: options.artifactIdCandidate
|
|
129
131
|
});
|
|
130
132
|
const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
133
|
+
const maxMemoryMb = options.maxMemoryMb ?? DEFAULT_MAX_MEMORY_MB;
|
|
131
134
|
const signature = options.signature ?? basename(normalizedBinaryJarPath);
|
|
132
135
|
const outputDir = decompileOutputDir(cacheDir, normalizedBinaryJarPath, signature).replace(/[/\\]$/, "");
|
|
133
136
|
try {
|
|
@@ -159,7 +162,7 @@ export async function decompileBinaryJar(binaryJarPath, cacheDir, options) {
|
|
|
159
162
|
}
|
|
160
163
|
clearOutputDir(outputDir);
|
|
161
164
|
await assertVineflowerAvailable(options.vineflowerJarPath);
|
|
162
|
-
await
|
|
165
|
+
await javaRunner.assertAvailable();
|
|
163
166
|
const profilesAttempted = [];
|
|
164
167
|
let lastDecompileError;
|
|
165
168
|
for (const profile of VINEFLOWER_FLAG_PROFILES) {
|
|
@@ -173,7 +176,7 @@ export async function decompileBinaryJar(binaryJarPath, cacheDir, options) {
|
|
|
173
176
|
attempt: profilesAttempted.length
|
|
174
177
|
});
|
|
175
178
|
}
|
|
176
|
-
await runVineflower(options.vineflowerJarPath, normalizedBinaryJarPath, outputDir, timeoutMs, profile.flags);
|
|
179
|
+
await runVineflower(options.vineflowerJarPath, normalizedBinaryJarPath, outputDir, timeoutMs, maxMemoryMb, profile.flags);
|
|
177
180
|
const javaFileNames = await collectJavaFiles(outputDir);
|
|
178
181
|
if (javaFileNames.length === 0) {
|
|
179
182
|
throw createError({
|
|
@@ -1,167 +1,101 @@
|
|
|
1
1
|
import type { AnalyzeModOptions, ModAnalysisResult } from "../mod-analyzer.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const analyzeModShape: {
|
|
4
|
-
task: z.ZodEnum<
|
|
5
|
-
|
|
4
|
+
task: z.ZodEnum<{
|
|
5
|
+
search: "search";
|
|
6
|
+
summary: "summary";
|
|
7
|
+
decompile: "decompile";
|
|
8
|
+
"class-source": "class-source";
|
|
9
|
+
members: "members";
|
|
10
|
+
remap: "remap";
|
|
11
|
+
}>;
|
|
12
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
13
|
kind: z.ZodLiteral<"jar">;
|
|
7
14
|
jarPath: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
kind: "jar";
|
|
10
|
-
jarPath: string;
|
|
11
|
-
}, {
|
|
12
|
-
kind: "jar";
|
|
13
|
-
jarPath: string;
|
|
14
|
-
}>, z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
16
|
kind: z.ZodLiteral<"class">;
|
|
16
17
|
jarPath: z.ZodString;
|
|
17
18
|
className: z.ZodString;
|
|
18
|
-
},
|
|
19
|
-
kind: "class";
|
|
20
|
-
jarPath: string;
|
|
21
|
-
className: string;
|
|
22
|
-
}, {
|
|
23
|
-
kind: "class";
|
|
24
|
-
jarPath: string;
|
|
25
|
-
className: string;
|
|
26
|
-
}>]>;
|
|
19
|
+
}, z.core.$strip>], "kind">;
|
|
27
20
|
query: z.ZodOptional<z.ZodString>;
|
|
28
|
-
searchType: z.ZodDefault<z.ZodEnum<
|
|
21
|
+
searchType: z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
class: "class";
|
|
23
|
+
field: "field";
|
|
24
|
+
method: "method";
|
|
25
|
+
all: "all";
|
|
26
|
+
content: "content";
|
|
27
|
+
}>>;
|
|
29
28
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
30
29
|
includeFiles: z.ZodDefault<z.ZodBoolean>;
|
|
31
30
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
32
31
|
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
33
32
|
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
targetMapping: z.ZodOptional<z.ZodEnum<
|
|
33
|
+
targetMapping: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
mojang: "mojang";
|
|
35
|
+
yarn: "yarn";
|
|
36
|
+
}>>;
|
|
35
37
|
outputJar: z.ZodOptional<z.ZodString>;
|
|
36
|
-
executionMode: z.ZodDefault<z.ZodEnum<
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
executionMode: z.ZodDefault<z.ZodEnum<{
|
|
39
|
+
preview: "preview";
|
|
40
|
+
apply: "apply";
|
|
41
|
+
}>>;
|
|
42
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
summary: "summary";
|
|
44
|
+
standard: "standard";
|
|
45
|
+
full: "full";
|
|
46
|
+
}>>;
|
|
47
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
48
|
+
[x: string]: string;
|
|
49
|
+
}>>>;
|
|
39
50
|
};
|
|
40
|
-
export declare const analyzeModSchema: z.
|
|
41
|
-
task: z.ZodEnum<
|
|
42
|
-
|
|
51
|
+
export declare const analyzeModSchema: z.ZodObject<{
|
|
52
|
+
task: z.ZodEnum<{
|
|
53
|
+
search: "search";
|
|
54
|
+
summary: "summary";
|
|
55
|
+
decompile: "decompile";
|
|
56
|
+
"class-source": "class-source";
|
|
57
|
+
members: "members";
|
|
58
|
+
remap: "remap";
|
|
59
|
+
}>;
|
|
60
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
61
|
kind: z.ZodLiteral<"jar">;
|
|
44
62
|
jarPath: z.ZodString;
|
|
45
|
-
},
|
|
46
|
-
kind: "jar";
|
|
47
|
-
jarPath: string;
|
|
48
|
-
}, {
|
|
49
|
-
kind: "jar";
|
|
50
|
-
jarPath: string;
|
|
51
|
-
}>, z.ZodObject<{
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
64
|
kind: z.ZodLiteral<"class">;
|
|
53
65
|
jarPath: z.ZodString;
|
|
54
66
|
className: z.ZodString;
|
|
55
|
-
},
|
|
56
|
-
kind: "class";
|
|
57
|
-
jarPath: string;
|
|
58
|
-
className: string;
|
|
59
|
-
}, {
|
|
60
|
-
kind: "class";
|
|
61
|
-
jarPath: string;
|
|
62
|
-
className: string;
|
|
63
|
-
}>]>;
|
|
67
|
+
}, z.core.$strip>], "kind">;
|
|
64
68
|
query: z.ZodOptional<z.ZodString>;
|
|
65
|
-
searchType: z.ZodDefault<z.ZodEnum<
|
|
69
|
+
searchType: z.ZodDefault<z.ZodEnum<{
|
|
70
|
+
class: "class";
|
|
71
|
+
field: "field";
|
|
72
|
+
method: "method";
|
|
73
|
+
all: "all";
|
|
74
|
+
content: "content";
|
|
75
|
+
}>>;
|
|
66
76
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
67
77
|
includeFiles: z.ZodDefault<z.ZodBoolean>;
|
|
68
78
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
69
79
|
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
70
80
|
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
71
|
-
targetMapping: z.ZodOptional<z.ZodEnum<
|
|
81
|
+
targetMapping: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
mojang: "mojang";
|
|
83
|
+
yarn: "yarn";
|
|
84
|
+
}>>;
|
|
72
85
|
outputJar: z.ZodOptional<z.ZodString>;
|
|
73
|
-
executionMode: z.ZodDefault<z.ZodEnum<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
};
|
|
87
|
-
searchType: "class" | "field" | "method" | "all" | "content";
|
|
88
|
-
executionMode: "preview" | "apply";
|
|
89
|
-
includeFiles: boolean;
|
|
90
|
-
maxLines?: number | undefined;
|
|
91
|
-
maxChars?: number | undefined;
|
|
92
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
93
|
-
include?: string[] | undefined;
|
|
94
|
-
query?: string | undefined;
|
|
95
|
-
targetMapping?: "mojang" | "yarn" | undefined;
|
|
96
|
-
outputJar?: string | undefined;
|
|
97
|
-
maxFiles?: number | undefined;
|
|
98
|
-
}, {
|
|
99
|
-
task: "search" | "summary" | "class-source" | "members" | "remap" | "decompile";
|
|
100
|
-
subject: {
|
|
101
|
-
kind: "jar";
|
|
102
|
-
jarPath: string;
|
|
103
|
-
} | {
|
|
104
|
-
kind: "class";
|
|
105
|
-
jarPath: string;
|
|
106
|
-
className: string;
|
|
107
|
-
};
|
|
108
|
-
limit?: number | undefined;
|
|
109
|
-
maxLines?: number | undefined;
|
|
110
|
-
maxChars?: number | undefined;
|
|
111
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
112
|
-
include?: string[] | undefined;
|
|
113
|
-
query?: string | undefined;
|
|
114
|
-
searchType?: "class" | "field" | "method" | "all" | "content" | undefined;
|
|
115
|
-
targetMapping?: "mojang" | "yarn" | undefined;
|
|
116
|
-
outputJar?: string | undefined;
|
|
117
|
-
executionMode?: "preview" | "apply" | undefined;
|
|
118
|
-
includeFiles?: boolean | undefined;
|
|
119
|
-
maxFiles?: number | undefined;
|
|
120
|
-
}>, {
|
|
121
|
-
limit: number;
|
|
122
|
-
task: "search" | "summary" | "class-source" | "members" | "remap" | "decompile";
|
|
123
|
-
subject: {
|
|
124
|
-
kind: "jar";
|
|
125
|
-
jarPath: string;
|
|
126
|
-
} | {
|
|
127
|
-
kind: "class";
|
|
128
|
-
jarPath: string;
|
|
129
|
-
className: string;
|
|
130
|
-
};
|
|
131
|
-
searchType: "class" | "field" | "method" | "all" | "content";
|
|
132
|
-
executionMode: "preview" | "apply";
|
|
133
|
-
includeFiles: boolean;
|
|
134
|
-
maxLines?: number | undefined;
|
|
135
|
-
maxChars?: number | undefined;
|
|
136
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
137
|
-
include?: string[] | undefined;
|
|
138
|
-
query?: string | undefined;
|
|
139
|
-
targetMapping?: "mojang" | "yarn" | undefined;
|
|
140
|
-
outputJar?: string | undefined;
|
|
141
|
-
maxFiles?: number | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
task: "search" | "summary" | "class-source" | "members" | "remap" | "decompile";
|
|
144
|
-
subject: {
|
|
145
|
-
kind: "jar";
|
|
146
|
-
jarPath: string;
|
|
147
|
-
} | {
|
|
148
|
-
kind: "class";
|
|
149
|
-
jarPath: string;
|
|
150
|
-
className: string;
|
|
151
|
-
};
|
|
152
|
-
limit?: number | undefined;
|
|
153
|
-
maxLines?: number | undefined;
|
|
154
|
-
maxChars?: number | undefined;
|
|
155
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
156
|
-
include?: string[] | undefined;
|
|
157
|
-
query?: string | undefined;
|
|
158
|
-
searchType?: "class" | "field" | "method" | "all" | "content" | undefined;
|
|
159
|
-
targetMapping?: "mojang" | "yarn" | undefined;
|
|
160
|
-
outputJar?: string | undefined;
|
|
161
|
-
executionMode?: "preview" | "apply" | undefined;
|
|
162
|
-
includeFiles?: boolean | undefined;
|
|
163
|
-
maxFiles?: number | undefined;
|
|
164
|
-
}>;
|
|
86
|
+
executionMode: z.ZodDefault<z.ZodEnum<{
|
|
87
|
+
preview: "preview";
|
|
88
|
+
apply: "apply";
|
|
89
|
+
}>>;
|
|
90
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
summary: "summary";
|
|
92
|
+
standard: "standard";
|
|
93
|
+
full: "full";
|
|
94
|
+
}>>;
|
|
95
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
96
|
+
[x: string]: string;
|
|
97
|
+
}>>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
165
99
|
export type AnalyzeModInput = z.infer<typeof analyzeModSchema>;
|
|
166
100
|
type AnalyzeModDeps = {
|
|
167
101
|
analyzeModJar: (jarPath: string, options?: AnalyzeModOptions) => Promise<ModAnalysisResult>;
|
|
@@ -1,183 +1,145 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { CheckSymbolExistsOutput, FindMappingOutput, GetClassApiMatrixOutput, ResolveMethodMappingExactOutput, ResolveWorkspaceSymbolOutput, TraceSymbolLifecycleOutput } from "../source-service.js";
|
|
3
3
|
export declare const analyzeSymbolShape: {
|
|
4
|
-
task: z.ZodEnum<
|
|
4
|
+
task: z.ZodEnum<{
|
|
5
|
+
map: "map";
|
|
6
|
+
workspace: "workspace";
|
|
7
|
+
exists: "exists";
|
|
8
|
+
"exact-map": "exact-map";
|
|
9
|
+
lifecycle: "lifecycle";
|
|
10
|
+
"api-overview": "api-overview";
|
|
11
|
+
}>;
|
|
5
12
|
subject: z.ZodObject<{
|
|
6
|
-
kind: z.ZodEnum<
|
|
13
|
+
kind: z.ZodEnum<{
|
|
14
|
+
symbol: "symbol";
|
|
15
|
+
class: "class";
|
|
16
|
+
field: "field";
|
|
17
|
+
method: "method";
|
|
18
|
+
}>;
|
|
7
19
|
name: z.ZodString;
|
|
8
20
|
owner: z.ZodOptional<z.ZodString>;
|
|
9
|
-
descriptor: z.
|
|
10
|
-
},
|
|
11
|
-
name: string;
|
|
12
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
13
|
-
descriptor?: string | undefined;
|
|
14
|
-
owner?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
name: string;
|
|
17
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
18
|
-
descriptor?: string | undefined;
|
|
19
|
-
owner?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
+
descriptor: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
21
23
|
version: z.ZodOptional<z.ZodString>;
|
|
22
24
|
fromVersion: z.ZodOptional<z.ZodString>;
|
|
23
25
|
toVersion: z.ZodOptional<z.ZodString>;
|
|
24
26
|
maxVersions: z.ZodOptional<z.ZodNumber>;
|
|
25
27
|
includeTimeline: z.ZodOptional<z.ZodBoolean>;
|
|
26
28
|
includeSnapshots: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
sourceMapping: z.ZodOptional<z.ZodEnum<
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
sourceMapping: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
obfuscated: "obfuscated";
|
|
31
|
+
mojang: "mojang";
|
|
32
|
+
intermediary: "intermediary";
|
|
33
|
+
yarn: "yarn";
|
|
34
|
+
}>>;
|
|
35
|
+
targetMapping: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
obfuscated: "obfuscated";
|
|
37
|
+
mojang: "mojang";
|
|
38
|
+
intermediary: "intermediary";
|
|
39
|
+
yarn: "yarn";
|
|
40
|
+
}>>;
|
|
41
|
+
classNameMapping: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
obfuscated: "obfuscated";
|
|
43
|
+
mojang: "mojang";
|
|
44
|
+
intermediary: "intermediary";
|
|
45
|
+
yarn: "yarn";
|
|
46
|
+
}>>;
|
|
30
47
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
31
48
|
gradleUserHome: z.ZodOptional<z.ZodString>;
|
|
32
|
-
signatureMode: z.ZodDefault<z.ZodEnum<
|
|
33
|
-
|
|
34
|
-
|
|
49
|
+
signatureMode: z.ZodDefault<z.ZodEnum<{
|
|
50
|
+
exact: "exact";
|
|
51
|
+
"name-only": "name-only";
|
|
52
|
+
}>>;
|
|
53
|
+
nameMode: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
fqcn: "fqcn";
|
|
55
|
+
auto: "auto";
|
|
56
|
+
}>>;
|
|
57
|
+
includeKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
58
|
+
class: "class";
|
|
59
|
+
field: "field";
|
|
60
|
+
method: "method";
|
|
61
|
+
}>>>;
|
|
35
62
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
36
63
|
maxCandidates: z.ZodDefault<z.ZodNumber>;
|
|
37
|
-
detail: z.ZodOptional<z.ZodEnum<
|
|
38
|
-
|
|
64
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
summary: "summary";
|
|
66
|
+
standard: "standard";
|
|
67
|
+
full: "full";
|
|
68
|
+
}>>;
|
|
69
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
+
[x: string]: string;
|
|
71
|
+
}>>>;
|
|
39
72
|
};
|
|
40
|
-
export declare const analyzeSymbolSchema: z.
|
|
41
|
-
task: z.ZodEnum<
|
|
73
|
+
export declare const analyzeSymbolSchema: z.ZodObject<{
|
|
74
|
+
task: z.ZodEnum<{
|
|
75
|
+
map: "map";
|
|
76
|
+
workspace: "workspace";
|
|
77
|
+
exists: "exists";
|
|
78
|
+
"exact-map": "exact-map";
|
|
79
|
+
lifecycle: "lifecycle";
|
|
80
|
+
"api-overview": "api-overview";
|
|
81
|
+
}>;
|
|
42
82
|
subject: z.ZodObject<{
|
|
43
|
-
kind: z.ZodEnum<
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
symbol: "symbol";
|
|
85
|
+
class: "class";
|
|
86
|
+
field: "field";
|
|
87
|
+
method: "method";
|
|
88
|
+
}>;
|
|
44
89
|
name: z.ZodString;
|
|
45
90
|
owner: z.ZodOptional<z.ZodString>;
|
|
46
|
-
descriptor: z.
|
|
47
|
-
},
|
|
48
|
-
name: string;
|
|
49
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
50
|
-
descriptor?: string | undefined;
|
|
51
|
-
owner?: string | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
name: string;
|
|
54
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
55
|
-
descriptor?: string | undefined;
|
|
56
|
-
owner?: string | undefined;
|
|
57
|
-
}>;
|
|
91
|
+
descriptor: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
58
93
|
version: z.ZodOptional<z.ZodString>;
|
|
59
94
|
fromVersion: z.ZodOptional<z.ZodString>;
|
|
60
95
|
toVersion: z.ZodOptional<z.ZodString>;
|
|
61
96
|
maxVersions: z.ZodOptional<z.ZodNumber>;
|
|
62
97
|
includeTimeline: z.ZodOptional<z.ZodBoolean>;
|
|
63
98
|
includeSnapshots: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
sourceMapping: z.ZodOptional<z.ZodEnum<
|
|
65
|
-
|
|
66
|
-
|
|
99
|
+
sourceMapping: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
obfuscated: "obfuscated";
|
|
101
|
+
mojang: "mojang";
|
|
102
|
+
intermediary: "intermediary";
|
|
103
|
+
yarn: "yarn";
|
|
104
|
+
}>>;
|
|
105
|
+
targetMapping: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
obfuscated: "obfuscated";
|
|
107
|
+
mojang: "mojang";
|
|
108
|
+
intermediary: "intermediary";
|
|
109
|
+
yarn: "yarn";
|
|
110
|
+
}>>;
|
|
111
|
+
classNameMapping: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
obfuscated: "obfuscated";
|
|
113
|
+
mojang: "mojang";
|
|
114
|
+
intermediary: "intermediary";
|
|
115
|
+
yarn: "yarn";
|
|
116
|
+
}>>;
|
|
67
117
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
68
118
|
gradleUserHome: z.ZodOptional<z.ZodString>;
|
|
69
|
-
signatureMode: z.ZodDefault<z.ZodEnum<
|
|
70
|
-
|
|
71
|
-
|
|
119
|
+
signatureMode: z.ZodDefault<z.ZodEnum<{
|
|
120
|
+
exact: "exact";
|
|
121
|
+
"name-only": "name-only";
|
|
122
|
+
}>>;
|
|
123
|
+
nameMode: z.ZodDefault<z.ZodEnum<{
|
|
124
|
+
fqcn: "fqcn";
|
|
125
|
+
auto: "auto";
|
|
126
|
+
}>>;
|
|
127
|
+
includeKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
128
|
+
class: "class";
|
|
129
|
+
field: "field";
|
|
130
|
+
method: "method";
|
|
131
|
+
}>>>;
|
|
72
132
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
73
133
|
maxCandidates: z.ZodDefault<z.ZodNumber>;
|
|
74
|
-
detail: z.ZodOptional<z.ZodEnum<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
owner?: string | undefined;
|
|
84
|
-
};
|
|
85
|
-
nameMode: "auto" | "fqcn";
|
|
86
|
-
signatureMode: "exact" | "name-only";
|
|
87
|
-
version?: string | undefined;
|
|
88
|
-
projectPath?: string | undefined;
|
|
89
|
-
maxRows?: number | undefined;
|
|
90
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
91
|
-
include?: string[] | undefined;
|
|
92
|
-
targetMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
93
|
-
maxVersions?: number | undefined;
|
|
94
|
-
sourceMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
95
|
-
classNameMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
96
|
-
gradleUserHome?: string | undefined;
|
|
97
|
-
includeSnapshots?: boolean | undefined;
|
|
98
|
-
fromVersion?: string | undefined;
|
|
99
|
-
toVersion?: string | undefined;
|
|
100
|
-
includeTimeline?: boolean | undefined;
|
|
101
|
-
includeKinds?: ("class" | "field" | "method")[] | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
task: "map" | "workspace" | "exists" | "exact-map" | "lifecycle" | "api-overview";
|
|
104
|
-
subject: {
|
|
105
|
-
name: string;
|
|
106
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
107
|
-
descriptor?: string | undefined;
|
|
108
|
-
owner?: string | undefined;
|
|
109
|
-
};
|
|
110
|
-
version?: string | undefined;
|
|
111
|
-
projectPath?: string | undefined;
|
|
112
|
-
maxRows?: number | undefined;
|
|
113
|
-
maxCandidates?: number | undefined;
|
|
114
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
115
|
-
include?: string[] | undefined;
|
|
116
|
-
targetMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
117
|
-
maxVersions?: number | undefined;
|
|
118
|
-
sourceMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
119
|
-
classNameMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
120
|
-
gradleUserHome?: string | undefined;
|
|
121
|
-
nameMode?: "auto" | "fqcn" | undefined;
|
|
122
|
-
includeSnapshots?: boolean | undefined;
|
|
123
|
-
fromVersion?: string | undefined;
|
|
124
|
-
toVersion?: string | undefined;
|
|
125
|
-
includeTimeline?: boolean | undefined;
|
|
126
|
-
signatureMode?: "exact" | "name-only" | undefined;
|
|
127
|
-
includeKinds?: ("class" | "field" | "method")[] | undefined;
|
|
128
|
-
}>, {
|
|
129
|
-
maxCandidates: number;
|
|
130
|
-
task: "map" | "workspace" | "exists" | "exact-map" | "lifecycle" | "api-overview";
|
|
131
|
-
subject: {
|
|
132
|
-
name: string;
|
|
133
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
134
|
-
descriptor?: string | undefined;
|
|
135
|
-
owner?: string | undefined;
|
|
136
|
-
};
|
|
137
|
-
nameMode: "auto" | "fqcn";
|
|
138
|
-
signatureMode: "exact" | "name-only";
|
|
139
|
-
version?: string | undefined;
|
|
140
|
-
projectPath?: string | undefined;
|
|
141
|
-
maxRows?: number | undefined;
|
|
142
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
143
|
-
include?: string[] | undefined;
|
|
144
|
-
targetMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
145
|
-
maxVersions?: number | undefined;
|
|
146
|
-
sourceMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
147
|
-
classNameMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
148
|
-
gradleUserHome?: string | undefined;
|
|
149
|
-
includeSnapshots?: boolean | undefined;
|
|
150
|
-
fromVersion?: string | undefined;
|
|
151
|
-
toVersion?: string | undefined;
|
|
152
|
-
includeTimeline?: boolean | undefined;
|
|
153
|
-
includeKinds?: ("class" | "field" | "method")[] | undefined;
|
|
154
|
-
}, {
|
|
155
|
-
task: "map" | "workspace" | "exists" | "exact-map" | "lifecycle" | "api-overview";
|
|
156
|
-
subject: {
|
|
157
|
-
name: string;
|
|
158
|
-
kind: "symbol" | "class" | "field" | "method";
|
|
159
|
-
descriptor?: string | undefined;
|
|
160
|
-
owner?: string | undefined;
|
|
161
|
-
};
|
|
162
|
-
version?: string | undefined;
|
|
163
|
-
projectPath?: string | undefined;
|
|
164
|
-
maxRows?: number | undefined;
|
|
165
|
-
maxCandidates?: number | undefined;
|
|
166
|
-
detail?: "summary" | "standard" | "full" | undefined;
|
|
167
|
-
include?: string[] | undefined;
|
|
168
|
-
targetMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
169
|
-
maxVersions?: number | undefined;
|
|
170
|
-
sourceMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
171
|
-
classNameMapping?: "obfuscated" | "mojang" | "intermediary" | "yarn" | undefined;
|
|
172
|
-
gradleUserHome?: string | undefined;
|
|
173
|
-
nameMode?: "auto" | "fqcn" | undefined;
|
|
174
|
-
includeSnapshots?: boolean | undefined;
|
|
175
|
-
fromVersion?: string | undefined;
|
|
176
|
-
toVersion?: string | undefined;
|
|
177
|
-
includeTimeline?: boolean | undefined;
|
|
178
|
-
signatureMode?: "exact" | "name-only" | undefined;
|
|
179
|
-
includeKinds?: ("class" | "field" | "method")[] | undefined;
|
|
180
|
-
}>;
|
|
134
|
+
detail: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
summary: "summary";
|
|
136
|
+
standard: "standard";
|
|
137
|
+
full: "full";
|
|
138
|
+
}>>;
|
|
139
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
140
|
+
[x: string]: string;
|
|
141
|
+
}>>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
181
143
|
export type AnalyzeSymbolInput = z.infer<typeof analyzeSymbolSchema>;
|
|
182
144
|
type AnalyzeSymbolDeps = {
|
|
183
145
|
detectProjectMinecraftVersion: (projectPath: string) => Promise<string | undefined>;
|