@extenshi/mcp
Version:
Extenshi MCP server — bring the extension catalog (search, security, market research) and pre-publish scanning into your AI tools
14 lines • 544 B
JavaScript
/** Request-auth snapshots can outlive a session's current analytics consent. */
const guards = new WeakMap();
export function bindSessionTelemetryGuard(auth, allowed) {
guards.set(auth, allowed);
}
export function canCaptureSessionTelemetry(auth) {
// Local stdio has no session auth: the saved answer in telemetry.ts decides.
if (!auth || typeof auth !== 'object')
return true;
if (auth.telemetry === false)
return false;
return guards.get(auth)?.() ?? true;
}
//# sourceMappingURL=session-telemetry.js.map