@autodevjapan/godd-mcp-alpha 2.11.0 → 2.13.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "releaseTag": "godd-native-v0.2.19",
4
- "expectedVersion": "godd-native 0.2.19",
5
- "sourceCommit": "4e61f9924d18b97b24d65d6d6304c55faaa19897",
3
+ "releaseTag": "godd-native-v0.2.22",
4
+ "expectedVersion": "godd-native 0.2.22",
5
+ "sourceCommit": "bbe5ea5fe84261c747b471eedc730573db1bba11",
6
6
  "capabilities": [
7
7
  "cobol-evidence",
8
8
  "codec-capability",
@@ -13,30 +13,30 @@
13
13
  "plan-audit",
14
14
  "research"
15
15
  ],
16
- "baselineBytes": 33382844,
16
+ "baselineBytes": 33677836,
17
17
  "maximumAssetBytes": 50000000,
18
18
  "maximumTarballBytes": 25000000,
19
19
  "maximumUnpackedBytes": 55000000,
20
20
  "targets": {
21
21
  "darwin-x64": {
22
22
  "artifact": "godd-native-x86_64-apple-darwin",
23
- "bytes": 7871992,
24
- "sha256": "a28cbdf1cdae5b6e9fdb17e1bb7daf71ac8796714c26b6f9abc869beba86d162"
23
+ "bytes": 7945832,
24
+ "sha256": "d2c9c72aecd613f4a89f88190ceab5369961f1197c72bdf7c9ac1f6a2699aa46"
25
25
  },
26
26
  "darwin-arm64": {
27
27
  "artifact": "godd-native-aarch64-apple-darwin",
28
- "bytes": 7210640,
29
- "sha256": "a27633879a645512d68818794a8291051ba177e859100bbe509fb92a5cd19f81"
28
+ "bytes": 7260272,
29
+ "sha256": "74267762b6605f3ac67b08d8fd416b81053041d8ad2a3d88829dc3a4da4b32b2"
30
30
  },
31
31
  "linux-x64": {
32
32
  "artifact": "godd-native-x86_64-unknown-linux-musl",
33
- "bytes": 8778800,
34
- "sha256": "49619c303b7672d20c65006e3530f79d761923fd3cbd02c70adcb1e47b9c48c4"
33
+ "bytes": 8860720,
34
+ "sha256": "c686bc2dc7d9053a33ef56a80465e881260bf05bfca86df28f066ae9e684b756"
35
35
  },
36
36
  "win32-x64": {
37
37
  "artifact": "godd-native-x86_64-pc-windows-msvc.exe",
38
- "bytes": 9521152,
39
- "sha256": "03f1a513c8dc2777317d2975f116510f8521620ae74e2780897f4209714b2587"
38
+ "bytes": 9610752,
39
+ "sha256": "e9ca9423897367fc03772f3747e6d7ea7f0c13eba58a2cf21f638d6a7f3b8f09"
40
40
  }
41
41
  }
42
42
  }
package/package.json CHANGED
@@ -1,25 +1,32 @@
1
1
  {
2
2
  "name": "@autodevjapan/godd-mcp-alpha",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "type": "module",
5
- "description": "Senior-engineering workflows for AI coding clients — plan, build, test, review, and ship with one command",
5
+ "description": "Governed AI development workflows that turn natural-language intent into specifications, tested code, reviews, documentation, and shippable pull requests.",
6
6
  "license": "UNLICENSED",
7
7
  "homepage": "https://www.getgodd.dev/",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/AutoDevJapan/GoDD-MCP-Alpha.git",
11
- "directory": "godd-mcp-alpha"
12
- },
13
8
  "main": "dist/godd.cjs",
9
+ "exports": {
10
+ ".": "./dist/godd.cjs",
11
+ "./audio-length-adapter-contract": {
12
+ "types": "./dist/audio-length-adapter-contract.d.ts",
13
+ "require": "./dist/audio-length-adapter-contract.cjs",
14
+ "default": "./dist/audio-length-adapter-contract.cjs"
15
+ },
16
+ "./*": "./*"
17
+ },
14
18
  "bin": {
15
19
  "godd-a": "dist/godd.cjs"
16
20
  },
17
21
  "files": [
18
22
  "assets/godd-mcp-alpha-icon.png",
23
+ "assets/registry-anchor-keys.json",
19
24
  "assets/native",
20
25
  "native-assets.json",
21
26
  "godd-tk-assets.json",
22
27
  "dist/godd.cjs",
28
+ "dist/audio-length-adapter-contract.cjs",
29
+ "dist/audio-length-adapter-contract.d.ts",
23
30
  "scripts/postinstall.js",
24
31
  "scripts/atomic-binary-install.js",
25
32
  "scripts/postinstall-godd-native.js",
@@ -44,14 +51,16 @@
44
51
  "godd"
45
52
  ],
46
53
  "scripts": {
47
- "build": "pnpm generate:native-catalog && node esbuild.config.js",
48
- "build:release": "pnpm generate:native-catalog && GODD_BUILD_MODE=release node esbuild.config.js",
54
+ "build": "pnpm generate:native-catalog && node esbuild.config.js && tsc --ignoreConfig src/audio-length-adapter-contract.ts --declaration --emitDeclarationOnly --declarationMap false --outDir dist --module ES2022 --target ES2022 --moduleResolution bundler --skipLibCheck",
55
+ "build:release": "pnpm generate:native-catalog && GODD_BUILD_MODE=release node esbuild.config.js && tsc --ignoreConfig src/audio-length-adapter-contract.ts --declaration --emitDeclarationOnly --declarationMap false --outDir dist --module ES2022 --target ES2022 --moduleResolution bundler --skipLibCheck",
49
56
  "generate:native-catalog": "tsx scripts/generate-native-catalog.ts",
50
57
  "catalog:generate": "tsx scripts/generate-command-catalog.ts",
51
58
  "catalog:check": "tsx scripts/generate-command-catalog.ts --check",
52
59
  "catalog:check:full": "tsx scripts/generate-command-catalog.ts --check --require-site",
53
60
  "typecheck": "tsc --noEmit",
54
61
  "test": "vitest run",
62
+ "test:realtime-parity": "node scripts/realtime-admission-parity.mjs",
63
+ "quality-gate:realtime-docker": "docker build --file docker/realtime-admission-parity.Dockerfile --tag godd-realtime-admission-gate:local ..",
55
64
  "test:watch": "vitest",
56
65
  "gate:v2": "node scripts/dispatch-npm-v2-gate.js",
57
66
  "dev": "tsx src/index.ts serve",
@@ -173,13 +173,54 @@ export const EXPECTED_NATIVE_ASSET_FILES = Object.freeze(
173
173
  // 気づけない)。到達前に検知するため、警告用の閾値と ratchet 上限を定義する。
174
174
  export const NATIVE_ASSET_HEADROOM_WARNING_BYTES = 2_000_000;
175
175
 
176
- // `godd-native-v0.2.19` で観測した baseline(残 headroom 16,617,156 bytes)。
177
- // v0.2.19 releaseの4 binaryと4 checksum合計を固定し、absolute上限の33.23%を残す。
178
- // これを超える増加は「サイズ削減」か「上限の再設計」の判断を必ず挟ませるため、
179
- // 単調増加を止める ratchet として固定する(緩めるときは spec の根拠更新とセット)。
180
- // native release ごとに新しい `baselineBytes` まで引き下げること(spec の
181
- // 「native release 後のチェックリスト」参照)。据え置くと ratchet が機能しなくなる。
182
- export const NATIVE_ASSET_BASELINE_CEILING_BYTES = 33_382_844;
176
+ // `godd-native-v0.2.21` の exact baseline を、意味のある増加を止める ratchet として
177
+ // 固定する。v0.2.22 の +8 bytes は x86_64 Mach-O の関数数・rebase entry数を変えず、
178
+ // 可変長 rebase encoding だけが増えたため、別の固定 allowance で扱う。
179
+ // ceiling 自体は動かさず、allowance も release ごとに累積させない。
180
+ export const NATIVE_ASSET_BASELINE_CEILING_BYTES = 33_677_828;
181
+ export const NATIVE_ASSET_MACHO_REBASE_ALLOWANCE_BYTES = 8;
182
+ const MACHO_REBASE_ALLOWANCE_IDENTITY = Object.freeze({
183
+ releaseTag: "godd-native-v0.2.22",
184
+ expectedVersion: "godd-native 0.2.22",
185
+ sourceCommit: "bbe5ea5fe84261c747b471eedc730573db1bba11",
186
+ target: "darwin-x64",
187
+ previousBytes: 7_945_824,
188
+ observedTargetBytes: Object.freeze({
189
+ "darwin-arm64": 7_260_272,
190
+ "darwin-x64": 7_945_832,
191
+ "linux-x64": 8_860_720,
192
+ "win32-x64": 9_610_752,
193
+ }),
194
+ });
195
+
196
+ /**
197
+ * Release固有の非意味的なMach-O encoding差だけを認めるratchet。
198
+ * identity・target・差分が1つでも変わればallowanceは0へ戻る。
199
+ */
200
+ export function isNativeAssetBaselineWithinRatchet(
201
+ manifest = NATIVE_MANIFEST,
202
+ ) {
203
+ try {
204
+ validateNativeManifest(manifest);
205
+ } catch {
206
+ return false;
207
+ }
208
+ const exception = MACHO_REBASE_ALLOWANCE_IDENTITY;
209
+ const exactTargetBytes = Object.entries(exception.observedTargetBytes)
210
+ .every(([target, bytes]) => manifest.targets?.[target]?.bytes === bytes);
211
+ const observedBytes = exception.observedTargetBytes[exception.target];
212
+ const allowance =
213
+ manifest.releaseTag === exception.releaseTag
214
+ && manifest.expectedVersion === exception.expectedVersion
215
+ && manifest.sourceCommit === exception.sourceCommit
216
+ && exactTargetBytes
217
+ && observedBytes - exception.previousBytes
218
+ === NATIVE_ASSET_MACHO_REBASE_ALLOWANCE_BYTES
219
+ ? NATIVE_ASSET_MACHO_REBASE_ALLOWANCE_BYTES
220
+ : 0;
221
+ return manifest.baselineBytes
222
+ <= NATIVE_ASSET_BASELINE_CEILING_BYTES + allowance;
223
+ }
183
224
 
184
225
  /**
185
226
  * exact 8 files の合計 bytes と `maximumAssetBytes` の余裕を判定する。