Files
memind/health-feature.mjs
T
john f96fdcb3b9 feat(health): add P0 health channel kernel and encrypted health zone.
Lock health recording behind confirm-only state machines, reject public publishes for the health category, and ship the 14-day experiment Page Data templates with tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:04:26 +08:00

9 lines
367 B
JavaScript

export const MEMIND_HEALTH_ENV = 'MEMIND_HEALTH_ENABLED';
export const HEALTH_ASSISTANT_SKILL_NAME = 'health-assistant';
export const HEALTH_CATEGORY_CODE = 'health';
export const HEALTH_PUBLISH_POLICY = 'password_required';
export function isMemindHealthEnabled(env = process.env) {
return /^(1|true|yes)$/i.test(String(env?.[MEMIND_HEALTH_ENV] ?? '').trim());
}