wowdump 0.2.1 → 0.3.2
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/LICENSE +1 -1
- package/README.md +17 -111
- package/dist/adapters/reader.js +33 -0
- package/dist/analysis/disassemble.js +77 -0
- package/dist/{frida-runtime.js → analysis/frida-runtime.js} +3 -25
- package/dist/analysis/runtime-script.js +36 -0
- package/dist/cli.js +563 -0
- package/dist/core/profile-engine.js +238 -0
- package/dist/frida-worker.js +99 -0
- package/dist/reader/broker.js +475 -0
- package/dist/reader/client.js +1 -0
- package/dist/reader/launcher.js +219 -0
- package/dist/reader/main.js +100 -0
- package/dist/reader/protocol.js +1 -0
- package/dist/reader/windows.js +242 -0
- package/dist/reader-main.js +2 -0
- package/dist/toolchain.js +123 -0
- package/package.json +19 -37
- package/skills/wowdump/SKILL.md +22 -0
- package/skills/wowdump/references/commands.md +63 -0
- package/skills/wowdump/references/disassemble.md +18 -0
- package/skills/wowdump/references/dynamic.md +54 -0
- package/skills/wowdump/references/evidence-workflow.md +41 -0
- package/skills/wowdump/references/profiles.md +34 -0
- package/skills/wowdump/references/request-schema.md +28 -0
- package/skills/wowdump/references/workflow.md +44 -0
- package/skills/wowdump/scripts/dynamic-session.js +133 -0
- package/dist/agent.js +0 -1335
- package/dist/analysis-path.js +0 -38
- package/dist/analysis-process-log.js +0 -146
- package/dist/broker-client.js +0 -411
- package/dist/broker-codec.js +0 -148
- package/dist/broker-core.js +0 -1045
- package/dist/broker-gateway.js +0 -447
- package/dist/broker-ledger.js +0 -196
- package/dist/broker-main.js +0 -291
- package/dist/broker-protocol.js +0 -119
- package/dist/broker-runtime.js +0 -1283
- package/dist/broker-server.js +0 -466
- package/dist/build-bundle-loader.js +0 -183
- package/dist/build-bundle.js +0 -11
- package/dist/discovery.js +0 -59
- package/dist/dry-run.js +0 -38
- package/dist/error-log.js +0 -71
- package/dist/focus-errors.js +0 -63
- package/dist/focus-service.js +0 -1855
- package/dist/focused-session.js +0 -1357
- package/dist/mcp-main.js +0 -51
- package/dist/mcp.js +0 -924
- package/dist/observability.js +0 -41
- package/dist/process-log-lock.js +0 -195
- package/dist/processes.js +0 -47
- package/dist/runtime-config.js +0 -399
- package/dist/session.js +0 -145
- package/dist/storage.js +0 -12
- package/dist/wow-analysis.js +0 -1430
- package/resources/builds/retail/12.0.7.68974/build-profile.json +0 -290
- package/resources/builds/retail/12.0.7.68974/data-sources.json +0 -1633
- package/resources/builds/retail/12.0.7.68974/lua-targets.jsonl +0 -5130
- package/resources/builds/retail/12.0.7.68974/manifest.json +0 -63
- package/resources/builds/retail/12.0.7.68974/signatures.json +0 -260
- /package/dist/{adapters.js → core/build-adapters.js} +0 -0
- /package/dist/{types.js → core/types.js} +0 -0
package/dist/mcp-main.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { dirname, join, resolve } from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
5
|
-
import { createWowBuildFridaMcpServer, MCP_MODERN_PROTOCOL_VERSION } from "./mcp.js";
|
|
6
|
-
import { BrokerFridaGateway } from "./broker-gateway.js";
|
|
7
|
-
import { createWowAnalysisService } from "./wow-analysis.js";
|
|
8
|
-
import { resolveRuntimeConfig } from "./runtime-config.js";
|
|
9
|
-
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
10
|
-
const config = resolveRuntimeConfig({ packageRoot });
|
|
11
|
-
for (const diagnostic of config.diagnostics)
|
|
12
|
-
console.error(`wowdump: ${diagnostic.level}: ${diagnostic.message}`);
|
|
13
|
-
const errorsFile = resolve(process.env.WOW_ERRORS ?? join(config.runtimeRoot, "logs", "errors.jsonl"));
|
|
14
|
-
process.env.WOWDUMP_RUNTIME_DIR = config.runtimeRoot;
|
|
15
|
-
process.env.WOWDUMP_PROFILE_DIR = config.profileRoot;
|
|
16
|
-
process.env.WOWDUMP_GAME_ROOTS = config.gameRoots.join(";");
|
|
17
|
-
process.env.WOWDUMP_BROKER_IDLE_MS = String(config.brokerIdleMs);
|
|
18
|
-
const fridaRuntime = new BrokerFridaGateway({
|
|
19
|
-
artifactDir: config.runtimeRoot,
|
|
20
|
-
pipeName: process.env.WOW_BROKER_PIPE
|
|
21
|
-
});
|
|
22
|
-
const analysisService = createWowAnalysisService({
|
|
23
|
-
executor: fridaRuntime,
|
|
24
|
-
profileRoot: config.profileRoot,
|
|
25
|
-
luaTraceScriptFile: resolve(process.env.WOW_AGENT ?? join(packageRoot, "dist", "agent.js"))
|
|
26
|
-
});
|
|
27
|
-
const handle = serveStdio(context => {
|
|
28
|
-
if (context.era !== "modern") {
|
|
29
|
-
throw new Error(`MCP ${MCP_MODERN_PROTOCOL_VERSION} is required`);
|
|
30
|
-
}
|
|
31
|
-
return createWowBuildFridaMcpServer({
|
|
32
|
-
errorsFile,
|
|
33
|
-
gameRoots: config.gameRoots,
|
|
34
|
-
fridaRuntime,
|
|
35
|
-
analysisService,
|
|
36
|
-
focusService: fridaRuntime,
|
|
37
|
-
brokerControl: fridaRuntime
|
|
38
|
-
});
|
|
39
|
-
}, {
|
|
40
|
-
// The bridge intentionally speaks only the 2026-07-28 modern wire.
|
|
41
|
-
legacy: "reject",
|
|
42
|
-
onerror: error => console.error("mcp:", error)
|
|
43
|
-
});
|
|
44
|
-
const shutdown = async () => {
|
|
45
|
-
await handle.close();
|
|
46
|
-
await analysisService.close();
|
|
47
|
-
await fridaRuntime.close();
|
|
48
|
-
process.exit(0);
|
|
49
|
-
};
|
|
50
|
-
process.once("SIGINT", shutdown);
|
|
51
|
-
process.once("SIGTERM", shutdown);
|