Files
memind/scripts/check-goosed-v149-config-read.mjs
T
john 716ef407fe feat(goose): add local v1.49 canary routing, smoke gates, and migration docs
Wire Portal and TKMind proxy to loopback Goose v1.49 via canary env blocks,
with verification scripts, Phase 2/3 evidence baselines, and rollback runbooks
so local upgrade stays isolated from stable 1.41 and production.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:10:20 +08:00

31 lines
900 B
JavaScript

#!/usr/bin/env node
/**
* Verify v1.49 exposes POST /config/read (Portal readConfig contract).
*/
import { createV149Client } from './goose-v149-sse.mjs';
const client = createV149Client();
async function readKey(key, isSecret = false) {
const body = await client.apiJson('/config/read', { key, is_secret: isSecret });
return body;
}
async function main() {
const provider = await readKey('GOOSE_PROVIDER');
const model = await readKey('GOOSE_MODEL');
const missing = await readKey('__goose_v149_config_read_missing_probe__');
if (missing !== null) {
throw new Error(`missing key should return null, got ${JSON.stringify(missing)}`);
}
console.log(
`GOOSE_V149_CONFIG_READ_OK: provider=${JSON.stringify(provider)} model=${JSON.stringify(model)}`,
);
}
main().catch((error) => {
console.error(`GOOSE_V149_CONFIG_READ_FAIL: ${error.message}`);
process.exit(1);
});