// FILE: _St/IG_StYellow/test_ext_cdp_final_gate_v310.js | ROLE: CDP 최종 O/X 전달·EXT refresh 게이트 회귀
const fs = require('fs');
const path = require('path');
const assert = require('assert');
const root = __dirname;
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'manifest.json'), 'utf8'));
const content = fs.readFileSync(path.join(root, 'content_instagram.js'), 'utf8');
assert.strictEqual(manifest.version, '2.3.8.3130');
assert.strictEqual(manifest.version_name, '2.3.8.313');
assert.ok(content.includes("const hasOk = raw.ok === true || raw.ok === false;"));
assert.ok(content.includes("ok:hasOk ? !!raw.ok : null"));
assert.ok(!content.includes("Object.assign({}, detail || {}, {ok:true, checking:false"));
console.log('test_ext_cdp_final_gate_v310: OK');
