@oimdb/mcp 1.2.0 → 2.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oimdb/mcp",
3
- "version": "1.2.0",
4
- "description": "MCP server and CDP inspector for OIMDB — connects AI assistants to live browser state",
3
+ "version": "2.0.0",
4
+ "description": "MCP server and CDP inspector for OIMDB \u2014 connects AI assistants to live browser state",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -14,9 +14,15 @@
14
14
  ".": {
15
15
  "types": "./dist/index.d.ts",
16
16
  "import": "./dist/index.js",
17
- "require": "./dist/index.cjs"
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
18
21
  }
19
22
  },
23
+ "oimdbRelease": {
24
+ "publish": true
25
+ },
20
26
  "bin": {
21
27
  "oimdb-mcp": "bin/oimdb-mcp.cjs"
22
28
  },
@@ -28,8 +34,9 @@
28
34
  "scripts": {
29
35
  "build": "tsup --config tsup.config.ts --tsconfig tsconfig.build.json",
30
36
  "dev": "tsup --config tsup.config.ts --tsconfig tsconfig.build.json --watch",
31
- "type-check": "tsc --noEmit",
32
- "prepublishOnly": "npm run type-check && npm run build"
37
+ "type-check": "tsc --noEmit -p tsconfig.tests.json",
38
+ "prepublishOnly": "npm run type-check && npm run build",
39
+ "test": "jest"
33
40
  },
34
41
  "dependencies": {
35
42
  "@modelcontextprotocol/sdk": "^1.0.0",
@@ -39,7 +46,10 @@
39
46
  "devDependencies": {
40
47
  "@types/ws": "^8.5.10",
41
48
  "tsup": "^8.0.0",
42
- "typescript": "^5.2.2"
49
+ "typescript": "^5.2.2",
50
+ "@types/jest": "^29.5.5",
51
+ "jest": "^29.7.0",
52
+ "ts-jest": "^29.1.1"
43
53
  },
44
54
  "keywords": [
45
55
  "oimdb",
package/ui/app.js CHANGED
@@ -324,7 +324,7 @@ function buildCompRow(name, info) {
324
324
 
325
325
  function renderHistory(history) {
326
326
  if (!history.length) {
327
- listHistory.innerHTML = '<div class="empty">No flushes recorded yet.<br>Call <code>registry.trackFlushes(...)</code> in debug.ts.</div>';
327
+ listHistory.innerHTML = '<div class="empty">No flushes recorded yet.<br>Call <code>oimDevRegistry.trackFlushes(...)</code> in debug.ts.</div>';
328
328
  return;
329
329
  }
330
330
  listHistory.innerHTML = '';
package/ui/index.html CHANGED
@@ -30,7 +30,7 @@
30
30
  <div class="waiting-card">
31
31
  <div class="waiting-title">Waiting for browser</div>
32
32
  <p>Open your app and make sure <code>debug.ts</code> calls:</p>
33
- <pre>registry.connect(); // ws://localhost:7432</pre>
33
+ <pre>oimDevRegistry.connect(); // ws://localhost:7432</pre>
34
34
  <p class="waiting-hint">Then reload the page.</p>
35
35
  </div>
36
36
  </div>