@autodevjapan/godd-mcp-alpha 2.1.0 → 2.2.1

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.
@@ -1,31 +1,41 @@
1
1
  {
2
- "schemaVersion": 1,
3
- "releaseTag": "godd-native-v0.1.1",
4
- "expectedVersion": "godd-native 0.1.1",
5
- "baselineBytes": 43422580,
6
- "maximumAssetBytes": 48000000,
2
+ "schemaVersion": 2,
3
+ "releaseTag": "godd-native-v0.2.4",
4
+ "expectedVersion": "godd-native 0.2.4",
5
+ "sourceCommit": "c14518ec159efb1ff5114e362d3e83ec2486935d",
6
+ "capabilities": [
7
+ "codec-capability",
8
+ "gateway-operations",
9
+ "mcp-stdio",
10
+ "operate",
11
+ "peer-summary",
12
+ "plan-audit",
13
+ "research"
14
+ ],
15
+ "baselineBytes": 48504128,
16
+ "maximumAssetBytes": 50000000,
7
17
  "maximumTarballBytes": 25000000,
8
- "maximumUnpackedBytes": 50000000,
18
+ "maximumUnpackedBytes": 55000000,
9
19
  "targets": {
10
20
  "darwin-x64": {
11
21
  "artifact": "godd-native-x86_64-apple-darwin",
12
- "bytes": 11027072,
13
- "sha256": "2cdac18a4fefa3983c882402376a3557b3224f45b8857f5181f6afca80edfc61"
22
+ "bytes": 12257492,
23
+ "sha256": "bbc9c065a9f8cc0a3450324672b19821434053ac079a54126c663d6b8aa791ad"
14
24
  },
15
25
  "darwin-arm64": {
16
26
  "artifact": "godd-native-aarch64-apple-darwin",
17
- "bytes": 10689840,
18
- "sha256": "d0e2af0d6d6486f4472ebd06b35783ca3b00a9154c7df965e7fddee0ffeb305c"
27
+ "bytes": 11925792,
28
+ "sha256": "cf20ac3c8a460adbfb002979347870a32e354aaafc2a6e5d44d7a33b7e441921"
19
29
  },
20
30
  "linux-x64": {
21
31
  "artifact": "godd-native-x86_64-unknown-linux-musl",
22
- "bytes": 12479168,
23
- "sha256": "ca2bc844643569a627a15ee1476d6cc51d4b594f9b7bcb81f1e70d39e0b3b317"
32
+ "bytes": 13877320,
33
+ "sha256": "40566c7c94615b36b0d2b3e9ba42f26836449c9ce2c0f81bcf5d4ddfcd5ac0c9"
24
34
  },
25
35
  "win32-x64": {
26
36
  "artifact": "godd-native-x86_64-pc-windows-msvc.exe",
27
- "bytes": 9226240,
28
- "sha256": "c912e4add2f0d3c438d3d507cb38837e032e5cd0a2b9d89b29b3a8480e24c5c8"
37
+ "bytes": 10443264,
38
+ "sha256": "2bb1862e2bd7429cc78975c99cb2d7d936760239a21a123d81990e4eb56a29cb"
29
39
  }
30
40
  }
31
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autodevjapan/godd-mcp-alpha",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "type": "module",
5
5
  "description": "GoDD MCP α Server — AI Prompt Delivery System for Cursor, Claude Code, Codex, Kimi CLI, and Antigravity",
6
6
  "license": "UNLICENSED",
@@ -6,12 +6,14 @@ import { fileURLToPath } from "node:url";
6
6
  const packageRoot = join(dirname(fileURLToPath(import.meta.url)), "..");
7
7
  const MANIFEST_KEYS = [
8
8
  "baselineBytes",
9
+ "capabilities",
9
10
  "expectedVersion",
10
11
  "maximumAssetBytes",
11
12
  "maximumTarballBytes",
12
13
  "maximumUnpackedBytes",
13
14
  "releaseTag",
14
15
  "schemaVersion",
16
+ "sourceCommit",
15
17
  "targets",
16
18
  ];
17
19
  const TARGET_KEYS = ["artifact", "bytes", "sha256"];
@@ -22,6 +24,8 @@ const EXPECTED_TARGET_ARTIFACTS = Object.freeze({
22
24
  "win32-x64": "godd-native-x86_64-pc-windows-msvc.exe",
23
25
  });
24
26
  const SHA256_PATTERN = /^[0-9a-f]{64}$/;
27
+ const COMMIT_PATTERN = /^[0-9a-f]{40}$/;
28
+ const CAPABILITY_PATTERN = /^[a-z][a-z0-9-]{0,63}$/;
25
29
  const RELEASE_TAG_PATTERN = /^godd-native-v(\d+\.\d+\.\d+)$/;
26
30
  const SIDECAR_BYTES = 65;
27
31
  const HARD_MAX_UNPACKED_BYTES = 64_000_000;
@@ -49,8 +53,8 @@ function requirePositiveInteger(value, label) {
49
53
 
50
54
  export function validateNativeManifest(value) {
51
55
  requireExactKeys(value, MANIFEST_KEYS, "Native manifest");
52
- if (value.schemaVersion !== 1) {
53
- throw new Error("Native manifest schemaVersion must be 1");
56
+ if (value.schemaVersion !== 2) {
57
+ throw new Error("Native manifest schemaVersion must be 2");
54
58
  }
55
59
  const tagMatch =
56
60
  typeof value.releaseTag === "string"
@@ -60,6 +64,25 @@ export function validateNativeManifest(value) {
60
64
  if (value.expectedVersion !== `godd-native ${tagMatch[1]}`) {
61
65
  throw new Error("Native manifest tag/version mismatch");
62
66
  }
67
+ if (
68
+ typeof value.sourceCommit !== "string" ||
69
+ !COMMIT_PATTERN.test(value.sourceCommit)
70
+ ) {
71
+ throw new Error("Native manifest sourceCommit is invalid");
72
+ }
73
+ if (
74
+ !Array.isArray(value.capabilities) ||
75
+ value.capabilities.length === 0 ||
76
+ !value.capabilities.every(
77
+ (capability) =>
78
+ typeof capability === "string" && CAPABILITY_PATTERN.test(capability),
79
+ ) ||
80
+ new Set(value.capabilities).size !== value.capabilities.length ||
81
+ JSON.stringify(value.capabilities) !==
82
+ JSON.stringify([...value.capabilities].sort())
83
+ ) {
84
+ throw new Error("Native manifest capabilities are invalid");
85
+ }
63
86
  requirePositiveInteger(value.baselineBytes, "baselineBytes");
64
87
  requirePositiveInteger(value.maximumAssetBytes, "maximumAssetBytes");
65
88
  requirePositiveInteger(value.maximumTarballBytes, "maximumTarballBytes");