wishforge-ide/apps/runner/package.json
eust-w 82d35a3708 fix: use one canonical JSON implementation for digests and signatures
The API signed Runner tasks with keys sorted by localeCompare, while the
runner verified with code-unit order; environment keys such as
API_URL/API2 or DB_HOST/DBA sort differently, so valid deployment tasks
were rejected with INVALID_SIGNATURE. A third copy lived in the agent
package.

canonicalJson now lives in @wishforge/contracts (code-unit key order,
undefined properties omitted, non-JSON values rejected) and is used by
the API digest, Runner task signing/verification, the runner's state
digest and agent bundle digests. Binding digests computed by the old
locale-dependent order may differ, so releases requested before this
change must be requested again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:04:36 +08:00

16 lines
291 B
JSON

{
"name": "@wishforge/runner",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx src/main.ts",
"typecheck": "tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
"@wishforge/contracts": "*",
"@wishforge/runtime": "*"
}
}