Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test: match packed native fixtures to SDK dependency pins

yxlyx2f8a16520a6c
diff --git a/sdk/ts/scripts/test-packed-install.mjs b/sdk/ts/scripts/test-packed-install.mjs
index 0492458a..ba49a04a 100644
--- a/sdk/ts/scripts/test-packed-install.mjs
+++ b/sdk/ts/scripts/test-packed-install.mjs
@@ -66,12 +66,15 @@ try {
await chmod(sourceBinary, 0o755);
}
+ const sdkManifest = JSON.parse(await readFile(join(SDK_ROOT, "package.json"), "utf8"));
const nativeTarballs = {};
for (const [target, packageName] of ALL_TARGETS) {
const output = run(process.execPath, [
join(HERE, "package-platform.mjs"),
"--target", target,
"--binary", sourceBinary,
+ // The SDK and native releases can differ; match the dependency being resolved.
+ "--version", sdkManifest.optionalDependencies[packageName],
"--out", packages,
], SDK_ROOT);
const { packageDir } = JSON.parse(output);