@adhisang/minecraft-modding-mcp 6.1.1 → 6.2.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 +30 -0
- package/README.md +4 -2
- package/dist/cache-registry.d.ts +1 -1
- package/dist/cache-registry.js +3 -0
- package/dist/entry-tools/analyze-mod-service.d.ts +12 -6
- package/dist/entry-tools/analyze-mod-service.js +37 -3
- package/dist/entry-tools/analyze-symbol-service.d.ts +2 -0
- package/dist/entry-tools/analyze-symbol-service.js +37 -2
- package/dist/entry-tools/inspect-minecraft/internal.d.ts +4 -0
- package/dist/entry-tools/inspect-minecraft/internal.js +28 -0
- package/dist/entry-tools/manage-cache-service.d.ts +4 -4
- package/dist/error-mapping.d.ts +13 -0
- package/dist/error-mapping.js +35 -2
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +2 -0
- package/dist/index.js +37 -17
- package/dist/mapping/internal-types.d.ts +7 -0
- package/dist/mapping/types.d.ts +18 -0
- package/dist/mapping-service.js +16 -3
- package/dist/minecraft-explorer-service.d.ts +4 -0
- package/dist/minecraft-explorer-service.js +156 -17
- package/dist/mod-analyzer.d.ts +7 -0
- package/dist/mod-analyzer.js +28 -7
- package/dist/source/artifact-resolver.d.ts +2 -0
- package/dist/source/artifact-resolver.js +24 -1
- package/dist/source/class-source/members-builder.d.ts +4 -0
- package/dist/source/class-source/members-builder.js +3 -1
- package/dist/source/class-source.d.ts +2 -1
- package/dist/source/class-source.js +154 -17
- package/dist/source/did-you-mean.d.ts +14 -0
- package/dist/source/did-you-mean.js +79 -0
- package/dist/source/file-access.js +159 -3
- package/dist/source/indexer.js +72 -2
- package/dist/source/lifecycle/runtime-check.js +9 -5
- package/dist/source/nested-jars.d.ts +59 -0
- package/dist/source/nested-jars.js +198 -0
- package/dist/source/workspace-target.js +5 -2
- package/dist/source-jar-reader.d.ts +16 -0
- package/dist/source-jar-reader.js +82 -0
- package/dist/source-service.d.ts +36 -0
- package/dist/source-service.js +49 -6
- package/dist/stage-emitter.js +24 -8
- package/dist/stdio-supervisor.d.ts +92 -9
- package/dist/stdio-supervisor.js +915 -103
- package/dist/tool-contract-manifest.js +1 -1
- package/dist/tool-guidance.js +3 -1
- package/dist/tool-schemas.d.ts +1337 -149
- package/dist/tool-schemas.js +38 -7
- package/dist/types.d.ts +23 -0
- package/dist/workspace-mapping-service.d.ts +1 -0
- package/dist/workspace-mapping-service.js +120 -8
- package/docs/tool-reference.md +19 -3
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const SECTION_ROWS = {
|
|
|
15
15
|
"| `inspect-minecraft` | Inspect versions, artifacts, classes, files, source text, and workspace-aware lookup flows |",
|
|
16
16
|
"| `analyze-symbol` | Handle symbol existence checks, namespace mapping, lifecycle tracing, workspace symbol resolution, and API overviews |",
|
|
17
17
|
"| `compare-minecraft` | Compare version pairs, class diffs, registry diffs, and migration-oriented summaries |",
|
|
18
|
-
"| `analyze-mod` | Summarize mod metadata, decompile and search mod code, inspect class source, and preview or apply remaps |",
|
|
18
|
+
"| `analyze-mod` | Summarize mod metadata, decompile and search mod code, inspect class source, read class members from bytecode, and preview or apply remaps |",
|
|
19
19
|
"| `validate-project` | Summarize workspaces and run direct Mixin, Access Widener, or Access Transformer validation |",
|
|
20
20
|
"| `manage-cache` | List, verify, and preview or apply cache cleanup and rebuild operations |"
|
|
21
21
|
],
|
package/dist/tool-guidance.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZodError } from "zod";
|
|
2
2
|
import { buildSuggestedCall } from "./build-suggested-call.js";
|
|
3
3
|
import { ERROR_CODES, isAppError } from "./errors.js";
|
|
4
|
-
import { extractAllowlistedContext, issueOriginForErrorCode, retryClassForErrorCode, statusForErrorCode } from "./error-mapping.js";
|
|
4
|
+
import { extractAllowlistedContext, extractDidYouMean, issueOriginForErrorCode, retryClassForErrorCode, statusForErrorCode } from "./error-mapping.js";
|
|
5
5
|
export const SUGGESTED_CALL_DEFAULTS = {
|
|
6
6
|
allowDecompile: true,
|
|
7
7
|
preferProjectVersion: false,
|
|
@@ -720,6 +720,7 @@ export function mapErrorToProblem(caughtError, requestId, context) {
|
|
|
720
720
|
if (isAppError(caughtError)) {
|
|
721
721
|
const { suggestedCall, exampleCalls, primaryDropped } = extractValidatedSuggestionAndExamples(caughtError.details);
|
|
722
722
|
const sanitizedContext = extractAllowlistedContext(caughtError.details);
|
|
723
|
+
const extractedDidYouMean = extractDidYouMean(caughtError.details);
|
|
723
724
|
let failedStage = extractFailedStageFromDetails(caughtError.details);
|
|
724
725
|
if (!failedStage
|
|
725
726
|
&& context?.tool === "validate-mixin"
|
|
@@ -743,6 +744,7 @@ export function mapErrorToProblem(caughtError, requestId, context) {
|
|
|
743
744
|
hints: hintsWithFallback,
|
|
744
745
|
...(suggestedCall ? { suggestedCall } : {}),
|
|
745
746
|
...(exampleCalls ? { exampleCalls } : {}),
|
|
747
|
+
...(extractedDidYouMean ? { didYouMean: extractedDidYouMean } : {}),
|
|
746
748
|
...(failedStage ? { failedStage } : {}),
|
|
747
749
|
...(sanitizedContext ? { context: sanitizedContext } : {})
|
|
748
750
|
};
|