feat(context): promote MCP compactor to active locally
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>
This commit is contained in:
john
2026-09-10 09:39:32 +08:00
parent 0daf40d950
commit 3414ae42b1
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,21 @@
#!/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');