machine-bridge-mcp 3.0.0-beta.10 → 3.0.0-beta.9

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 CHANGED
@@ -1,13 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## 3.0.0-beta.10 - 2026-07-22
4
-
5
- ### Published prerelease activation repair
6
-
7
- - normalize npm 12 single-result JSON arrays for version, integrity, SHA-1, dist-tags, and publication timestamps;
8
- - unblock exact registry-backed prerelease installation and soak activation without weakening integrity or dist-tag verification;
9
- - add a regression fixture matching the real npm 12 response shape that blocked beta.9 activation.
10
-
11
3
  ## 3.0.0-beta.9 - 2026-07-22
12
4
 
13
5
  ### Cross-platform release-gate repair
@@ -30,6 +30,6 @@
30
30
  "action": {
31
31
  "default_title": "Machine Bridge Browser"
32
32
  },
33
- "version_name": "3.0.0-beta.10",
33
+ "version_name": "3.0.0-beta.9",
34
34
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxryYkpZhq8+VAQLHcGS9BAHQcyKX8RHGIpIwvtIVRU/rcOcE0bNdnM0aZJ/h6xWQsGDHlhvjT2+1aJaAn/9k8473BRWajzVXld961CdHYVFVHoce2hHiSJ0xydWrHMMZhAm0mN0UzjEpgZ0tMw209efcZHIvSwuxhteZMRy4kyiVjwFlOf5oXFCxRuCJnPj3AK9CmCf4XgEBuPIJ0TZmjGHOOdBvJmbCNnAWXYEo5/mf7MfCGhV4IJ1hNuhpoNQfOFKMUcw9/v/IpT62XpfXdGYTfGYCmCjC+gntK1spbkr2P4/2+sYMQtLpse71mpSNGXfcf3abU55Vpn+gncSxRQIDAQAB"
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "machine-bridge-mcp",
3
- "version": "3.0.0-beta.10",
3
+ "version": "3.0.0-beta.9",
4
4
  "description": "Cross-client MCP bridge for local agent context, structured browser and application automation, files, Git, processes, resources, and durable jobs over stdio or OAuth relay.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,27 +20,20 @@ export function readPublishedNpmPrerelease(name, version, distTag, options = {})
20
20
  }
21
21
 
22
22
  export function normalizePublishedNpmPrerelease(value) {
23
- const actualVersion = unwrapNpmJsonValue(value.actualVersion);
24
- const tags = unwrapNpmJsonValue(value.tags);
25
- const times = unwrapNpmJsonValue(value.times);
26
- const version = String(actualVersion || "");
23
+ const version = String(value.actualVersion || "");
27
24
  const requestedVersion = String(value.requestedVersion || "");
28
25
  const distTag = String(value.requestedTag || "");
29
- const integrity = String(unwrapNpmJsonValue(value.integrity) || "");
30
- const shasum = String(unwrapNpmJsonValue(value.shasum) || "");
31
- const publishedAt = String(times?.[requestedVersion] || "");
26
+ const integrity = String(value.integrity || "");
27
+ const shasum = String(value.shasum || "");
28
+ const publishedAt = String(value.times?.[requestedVersion] || "");
32
29
  if (version !== requestedVersion) throw new Error("npm registry returned another prerelease version");
33
- if (tags?.[distTag] !== requestedVersion) throw new Error(`npm dist-tag ${distTag} does not point to ${requestedVersion}`);
30
+ if (value.tags?.[distTag] !== requestedVersion) throw new Error(`npm dist-tag ${distTag} does not point to ${requestedVersion}`);
34
31
  if (!/^sha512-[A-Za-z0-9+/]+={0,2}$/.test(integrity)) throw new Error("npm prerelease integrity is invalid");
35
32
  if (!/^[0-9a-f]{40}$/.test(shasum)) throw new Error("npm prerelease SHA-1 is invalid");
36
33
  if (!Number.isFinite(Date.parse(publishedAt))) throw new Error("npm prerelease publication timestamp is invalid");
37
34
  return Object.freeze({ version, integrity, shasum, distTag, publishedAt: new Date(Date.parse(publishedAt)).toISOString() });
38
35
  }
39
36
 
40
- function unwrapNpmJsonValue(value) {
41
- return Array.isArray(value) && value.length === 1 ? value[0] : value;
42
- }
43
-
44
37
  export function readGithubPrerelease(version, options = {}) {
45
38
  const run = options.run || runGh;
46
39
  const value = run(["release", "view", `v${version}`, "--json", "tagName,isPrerelease,publishedAt,assets"]);
@@ -36,7 +36,7 @@ import {
36
36
  } from "./websocket-protocol.ts";
37
37
 
38
38
  const SERVER_NAME = String(serverMetadata.name);
39
- const SERVER_VERSION = "3.0.0-beta.10";
39
+ const SERVER_VERSION = "3.0.0-beta.9";
40
40
  const MCP_PROTOCOL_VERSION = String(serverMetadata.protocolVersion);
41
41
  const MCP_SUPPORTED_PROTOCOL_VERSIONS = serverMetadata.supportedProtocolVersions.map((value) => String(value));
42
42
  const DEFAULT_MAX_BODY_BYTES = 8 * 1024 * 1024;