Files
memind/health-feature.mjs
T
john 2baf29b3ae feat(health): complete P0 health channel — baseline engine, page-data, MindSpace UI
Deliver encrypted health zone, observation API, baseline maturity pipeline,
page-data bindings, and H5/WeChat channel integration for health P0.

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

18 lines
674 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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';
/** Architecture phases P0P4 (see docs/memind-health-architecture.md §13). No P5 in spec. */
export const HEALTH_IMPLEMENTATION_PHASES = Object.freeze({
P0: 'entry_capture_timeline',
P1: 'baseline_event_engine',
P2: 'devices_notifications',
P3: 'medical_depth',
P4: 'authorized_sharing',
});
export function isMemindHealthEnabled(env = process.env) {
return /^(1|true|yes)$/i.test(String(env?.[MEMIND_HEALTH_ENV] ?? '').trim());
}