@extension.dev/mcp 5.1.1 → 5.1.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.
@@ -10,7 +10,7 @@
10
10
  "name": "extension-mcp",
11
11
  "source": "./",
12
12
  "description": "MCP tools for browser extension development: scaffold from 60+ templates, run the dev server with HMR, inspect the live DOM and logs, and publish store-ready builds for Chrome, Edge, and Firefox.",
13
- "version": "5.1.1",
13
+ "version": "5.1.2",
14
14
  "category": "development",
15
15
  "author": {
16
16
  "name": "Cezar Augusto"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "extension-mcp",
3
3
  "description": "MCP tools for browser extension development: scaffold from 60+ templates, run the dev server with HMR, inspect the live DOM and logs, and publish store-ready builds for Chrome, Edge, and Firefox. Ships /extension, /extension-add, /extension-debug, and /extension-publish commands.",
4
- "version": "5.1.1",
4
+ "version": "5.1.2",
5
5
  "author": {
6
6
  "name": "Cezar Augusto",
7
7
  "email": "boss@cezaraugusto.net",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.1.2
4
+
5
+ ### Fixed
6
+
7
+ - `extension_logs` no longer flags a healthy live session as stale. Newer
8
+ engine canaries stamp log and event rows with ready.json's `instanceId`
9
+ rather than its `runId`, so the staleness check compared ids from two
10
+ different spaces and every live read carried `stale: true` with a
11
+ do-not-trust warning. The comparator now accepts either identity field,
12
+ pinned by a test against the real contract shapes. (Filed upstream as
13
+ Extension.js bug 77 so the ready/logs contract agrees on one field.)
14
+
3
15
  ## 5.1.1
4
16
 
5
17
  ### Added
package/dist/module.js CHANGED
@@ -203,7 +203,7 @@ __webpack_require__.d(whoami_namespaceObject, {
203
203
  handler: ()=>whoami_handler,
204
204
  schema: ()=>whoami_schema
205
205
  });
206
- var package_namespaceObject = JSON.parse('{"rE":"5.1.0","El":{"OP":"^4.0.13"}}');
206
+ var package_namespaceObject = JSON.parse('{"rE":"5.1.1","El":{"OP":"^4.0.13"}}');
207
207
  function scaffoldEnginePin(projectPath) {
208
208
  try {
209
209
  const pkg = JSON.parse(node_fs.readFileSync(node_path.join(projectPath, "package.json"), "utf8"));
@@ -3229,7 +3229,11 @@ function staleFileNote(projectPath, browser, eventsRunId) {
3229
3229
  } catch {
3230
3230
  return `These events are from a PAST run: the session that wrote them (pid ${contract.pid}) is dead. Nothing current is producing logs; do not read these as live output.`;
3231
3231
  }
3232
- if (eventsRunId && contract.runId && String(contract.runId) !== eventsRunId) return `These events carry runId ${eventsRunId} but the current session is run ${String(contract.runId)}, which has written nothing yet. Do not read these as the current run's output.`;
3232
+ const liveIds = [
3233
+ contract.runId,
3234
+ contract.instanceId
3235
+ ].map((v)=>String(v || "")).filter(Boolean);
3236
+ if (eventsRunId && liveIds.length > 0 && !liveIds.includes(eventsRunId)) return `These events carry runId ${eventsRunId} but the current session is run ${liveIds.join(" / ")}, which has written nothing yet. Do not read these as the current run's output.`;
3233
3237
  }
3234
3238
  async function readFromFile(args, browser, limit) {
3235
3239
  const file = logsFilePath(args.projectPath, browser);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@extension.dev/mcp",
3
3
  "type": "module",
4
- "version": "5.1.1",
4
+ "version": "5.1.2",
5
5
  "description": "MCP server that lets AI agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex) build, run, inspect, and publish browser extensions. 31 tools for scaffolding, live DOM inspection, log streaming, and store-ready builds across Chrome, Edge, Firefox, Safari, and every Chromium- or Gecko-based browser (Brave, Opera, Vivaldi, Yandex, Waterfox, LibreWolf). Powered by extension.dev and Extension.js.",
6
6
  "mcpName": "io.github.extensiondev/mcp",
7
7
  "license": "MIT",
package/server.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "source": "github"
8
8
  },
9
9
  "websiteUrl": "https://extension.dev",
10
- "version": "5.1.1",
10
+ "version": "5.1.2",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@extension.dev/mcp",
16
- "version": "5.1.1",
16
+ "version": "5.1.2",
17
17
  "runtimeHint": "npx",
18
18
  "transport": {
19
19
  "type": "stdio"