3414ae42b1
Memind CI / Test, build, and release guards (push) Has been cancelled
Add active-mode probe script and document mixed shadow/active promotion; first active switch is MEMIND_MCP_COMPACT_MODE only. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
669 B
JavaScript
22 lines
669 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Verify MCP compactor active promotion on this machine.
|
|
* Requires MEMIND_MCP_COMPACT_MODE=active in the environment (e.g. .env.local).
|
|
*/
|
|
import {
|
|
isMcpCompactActive,
|
|
resolveMcpCompactMode,
|
|
} from '../mcp-result-compactor.mjs';
|
|
|
|
const mode = resolveMcpCompactMode(process.env);
|
|
console.log('MCP_COMPACT_ACTIVE_PROBE:');
|
|
console.log(` mode=${mode}`);
|
|
console.log(` active=${isMcpCompactActive(process.env)}`);
|
|
|
|
if (mode !== 'active' || !isMcpCompactActive(process.env)) {
|
|
console.error('MCP_COMPACT_ACTIVE_FAIL: set MEMIND_MCP_COMPACT_MODE=active and restart Portal/MCP');
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log('MCP_COMPACT_ACTIVE_OK');
|