@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.
- package/README.md +52 -3
- package/assets/native/godd-native-aarch64-apple-darwin +0 -0
- package/assets/native/godd-native-aarch64-apple-darwin.sha256 +1 -1
- package/assets/native/godd-native-x86_64-apple-darwin +0 -0
- package/assets/native/godd-native-x86_64-apple-darwin.sha256 +1 -1
- package/assets/native/godd-native-x86_64-pc-windows-msvc.exe +0 -0
- package/assets/native/godd-native-x86_64-pc-windows-msvc.exe.sha256 +1 -1
- package/assets/native/godd-native-x86_64-unknown-linux-musl +0 -0
- package/assets/native/godd-native-x86_64-unknown-linux-musl.sha256 +1 -1
- package/assets/registry-anchor-keys.json +1 -0
- package/dist/audio-length-adapter-contract.cjs +1 -0
- package/dist/audio-length-adapter-contract.d.ts +25 -0
- package/dist/godd.cjs +72 -72
- package/native-assets.json +12 -12
- package/package.json +18 -9
- package/scripts/native-assets.js +48 -7
package/native-assets.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
|
-
"releaseTag": "godd-native-v0.2.
|
|
4
|
-
"expectedVersion": "godd-native 0.2.
|
|
5
|
-
"sourceCommit": "
|
|
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":
|
|
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":
|
|
24
|
-
"sha256": "
|
|
23
|
+
"bytes": 7945832,
|
|
24
|
+
"sha256": "d2c9c72aecd613f4a89f88190ceab5369961f1197c72bdf7c9ac1f6a2699aa46"
|
|
25
25
|
},
|
|
26
26
|
"darwin-arm64": {
|
|
27
27
|
"artifact": "godd-native-aarch64-apple-darwin",
|
|
28
|
-
"bytes":
|
|
29
|
-
"sha256": "
|
|
28
|
+
"bytes": 7260272,
|
|
29
|
+
"sha256": "74267762b6605f3ac67b08d8fd416b81053041d8ad2a3d88829dc3a4da4b32b2"
|
|
30
30
|
},
|
|
31
31
|
"linux-x64": {
|
|
32
32
|
"artifact": "godd-native-x86_64-unknown-linux-musl",
|
|
33
|
-
"bytes":
|
|
34
|
-
"sha256": "
|
|
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":
|
|
39
|
-
"sha256": "
|
|
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.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
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",
|
package/scripts/native-assets.js
CHANGED
|
@@ -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.
|
|
177
|
-
// v0.2.
|
|
178
|
-
//
|
|
179
|
-
//
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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` の余裕を判定する。
|