1d165bc6e3
Expand Goose v1.49 smoke coverage (memory chat, portal resume, page e2e, multiturn provider), add canary memory policy lock, refresh baselines, and ignore one-off evidence artifacts. Document headroom-based context runtime fusion plan; include auth, scheduled-task, and wechat intent fixes on branch. Co-authored-by: Cursor <cursoragent@cursor.com>
53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* WeChat routing / intent evidence for v1.49 cutover (unit + contract checks; no live MP).
|
|
*/
|
|
import { spawnSync } from 'node:child_process';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
const skip = process.env.GOOSE_V149_WECHAT_EVIDENCE_SKIP === '1';
|
|
|
|
function runTest(label, file) {
|
|
const result = spawnSync(process.execPath, ['--test', file], {
|
|
cwd: root,
|
|
encoding: 'utf8',
|
|
});
|
|
if (result.status !== 0) {
|
|
throw new Error(`${label} failed: ${result.stderr?.trim() || result.stdout?.trim()}`);
|
|
}
|
|
}
|
|
|
|
async function main() {
|
|
if (skip) {
|
|
console.log('GOOSE_V149_WECHAT_EVIDENCE_OK: skipped');
|
|
return;
|
|
}
|
|
|
|
runTest('wechat-intent-router', 'wechat-intent-router.test.mjs');
|
|
|
|
const bundlePath = path.join(root, 'wechat-mp.bundle.mjs');
|
|
const sourcePath = path.join(root, 'wechat-mp.mjs');
|
|
const fs = await import('node:fs');
|
|
const bundleExists = fs.existsSync(bundlePath);
|
|
const sourceExists = fs.existsSync(sourcePath);
|
|
if (!bundleExists && !sourceExists) {
|
|
throw new Error('wechat-mp.mjs missing');
|
|
}
|
|
|
|
console.log('GOOSE_V149_WECHAT_EVIDENCE_OK:');
|
|
console.log(' unit=wechat-intent-router.test.mjs');
|
|
if (bundleExists) {
|
|
console.log(` bundle=${bundlePath} (${fs.statSync(bundlePath).size} bytes)`);
|
|
} else {
|
|
console.log(` source=${sourcePath} (bundle not built; prod uses wechat-mp.bundle.mjs)`);
|
|
}
|
|
console.log(' note=live MP ACK/page-link E2E requires WeChat credentials; not run locally');
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error(`GOOSE_V149_WECHAT_EVIDENCE_FAIL: ${error.message}`);
|
|
process.exit(1);
|
|
});
|