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.
Files changed (63) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +17 -111
  3. package/dist/adapters/reader.js +33 -0
  4. package/dist/analysis/disassemble.js +77 -0
  5. package/dist/{frida-runtime.js → analysis/frida-runtime.js} +3 -25
  6. package/dist/analysis/runtime-script.js +36 -0
  7. package/dist/cli.js +563 -0
  8. package/dist/core/profile-engine.js +238 -0
  9. package/dist/frida-worker.js +99 -0
  10. package/dist/reader/broker.js +475 -0
  11. package/dist/reader/client.js +1 -0
  12. package/dist/reader/launcher.js +219 -0
  13. package/dist/reader/main.js +100 -0
  14. package/dist/reader/protocol.js +1 -0
  15. package/dist/reader/windows.js +242 -0
  16. package/dist/reader-main.js +2 -0
  17. package/dist/toolchain.js +123 -0
  18. package/package.json +19 -37
  19. package/skills/wowdump/SKILL.md +22 -0
  20. package/skills/wowdump/references/commands.md +63 -0
  21. package/skills/wowdump/references/disassemble.md +18 -0
  22. package/skills/wowdump/references/dynamic.md +54 -0
  23. package/skills/wowdump/references/evidence-workflow.md +41 -0
  24. package/skills/wowdump/references/profiles.md +34 -0
  25. package/skills/wowdump/references/request-schema.md +28 -0
  26. package/skills/wowdump/references/workflow.md +44 -0
  27. package/skills/wowdump/scripts/dynamic-session.js +133 -0
  28. package/dist/agent.js +0 -1335
  29. package/dist/analysis-path.js +0 -38
  30. package/dist/analysis-process-log.js +0 -146
  31. package/dist/broker-client.js +0 -411
  32. package/dist/broker-codec.js +0 -148
  33. package/dist/broker-core.js +0 -1045
  34. package/dist/broker-gateway.js +0 -447
  35. package/dist/broker-ledger.js +0 -196
  36. package/dist/broker-main.js +0 -291
  37. package/dist/broker-protocol.js +0 -119
  38. package/dist/broker-runtime.js +0 -1283
  39. package/dist/broker-server.js +0 -466
  40. package/dist/build-bundle-loader.js +0 -183
  41. package/dist/build-bundle.js +0 -11
  42. package/dist/discovery.js +0 -59
  43. package/dist/dry-run.js +0 -38
  44. package/dist/error-log.js +0 -71
  45. package/dist/focus-errors.js +0 -63
  46. package/dist/focus-service.js +0 -1855
  47. package/dist/focused-session.js +0 -1357
  48. package/dist/mcp-main.js +0 -51
  49. package/dist/mcp.js +0 -924
  50. package/dist/observability.js +0 -41
  51. package/dist/process-log-lock.js +0 -195
  52. package/dist/processes.js +0 -47
  53. package/dist/runtime-config.js +0 -399
  54. package/dist/session.js +0 -145
  55. package/dist/storage.js +0 -12
  56. package/dist/wow-analysis.js +0 -1430
  57. package/resources/builds/retail/12.0.7.68974/build-profile.json +0 -290
  58. package/resources/builds/retail/12.0.7.68974/data-sources.json +0 -1633
  59. package/resources/builds/retail/12.0.7.68974/lua-targets.jsonl +0 -5130
  60. package/resources/builds/retail/12.0.7.68974/manifest.json +0 -63
  61. package/resources/builds/retail/12.0.7.68974/signatures.json +0 -260
  62. /package/dist/{adapters.js → core/build-adapters.js} +0 -0
  63. /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);