modulePackage manifestv2.0.4

module.personal-health

Subject-bound non-clinical PersonalOS health ledger orchestration.

@lssm-tech/module.personal-health
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEmodule.personal-healthdomains

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

4 declaracionesSELECT TO INSPECT

@lssm-tech/module.personal-health

Subject-bound, consent-controlled, non-clinical PersonalOS wellness ledger orchestration. The module composes provider-neutral contracts and deterministic runtime ports; hosts own durable databases, encrypted credential custody, provider transports, export artifact storage, audit persistence, and effects.

Public surfaces

  • ./connections — consent-gated registration, explicit lifecycle transitions, and local-first revocation even when provider revocation fails.
  • ./sync — bounded pagination, exact subject/connection/page binding, durable cursor/page checkpoints, idempotent page replay, strict normalization, quarantine, correction append, cross-provider overlap preservation, and restart after provider failure.
  • ./history — one subject-bound history of measurements and corrections.
  • ./rights — minimized export manifests, local deletion, projection removal, and per-provider deletion-propagation truth without a completion timestamp while any provider target is pending, failed, or unsupported.
  • ./projections — ref-only PersonalOS goal linkage and expiring household summary/trend projections; raw measurements are never shared.
  • ./household-revocation-service — exact authority-bound revocation with an atomic local invalidation/pending-receipt commit, replay-safe request collision denial, and separately validated consumer acknowledgement. Local access stays revoked while remote acknowledgement is pending or unavailable.
  • ./insights — deterministic descriptive trend explanations derived only from two or more exact subject-, consent-, provenance-, metric-, and unit-bound ledger records. The service computes direction, confidence, freshness, and evidence references; callers cannot supply them. Unsupported metrics and clinical-looking records fail closed. User-requested urgent guidance is fixed EN/FR/ES non-monitoring copy.
  • ./wellbeing-goal-service — a subject-confirmed wellbeing experiment over an exact PersonalOS goal, active provider connections, opaque provider-field references, accepted/corrected baseline and observation records, a bounded target and window, and mandatory human/consent/guardrail stop conditions. Exact goal ownership, granular goal/read consent, revisions, idempotency, digests, receipts, guardrails, state, and minimized audit commit through host ports. Consent revocation and verified guardrails pause collection and sharing locally even when consent or provider connectivity is unavailable.
  • ./wellbeing-goal-summary and ./wellbeing-goal-query — an exact-subject, bounded host query that projects current plus recent experiments into the minimized PersonalOS workspace contract. Current experiments are never truncated; duplicate IDs, subject-version drift, count inflation, missing cursors, and raw/clinical/causal fields fail closed.

Connectivity boundary

HealthKit and Health Connect require host-provided native SDK ports and user authorization. Strava, Oura, Garmin, and Fitbit require host-provided transports, durable encrypted credential references, provider credentials, and operational controls. This package does not claim that any real provider is connected.

Safety boundary

The module does not diagnose, recommend treatment, monitor emergencies, infer protected traits, claim causality, or take consequential action. It never stores raw provider payloads or credential material and never substitutes 0, epoch, current time, a unit, a time zone, provenance, cursor, or healthy status for missing provider data.

The PGlite journeys persist normalized records for the production insight service, unified activity/sleep/biometric/nutrition history, restartable household revocation, and wellbeing experiment state. They verify encrypted rows and tokens, provider-failure restart, explicit cross-provider overlap evidence, quarantine, correction, raw-free export, deletion propagation, and deletion survival across restart. They also preserve local revocation and wellbeing guardrail pauses without restoring access or duplicating audit history. These are local simulated-provider journeys, not live-provider qualification.

The health-operations E2E additionally composes the observed strict Strava adapter with the subject-bound sync, encrypted checkpoint/ledger, rights, and connection services. It exercises a redacted provider failure, restart and paginated recovery, duplicate/quarantine handling, webhook HMAC denial, propagated deletion, local revocation, and content-free durable observations. It remains simulated local evidence and does not qualify a live provider, production alerting, a recovery drill, or a canary.

Verification

bash
bun run lint:check
bun run typecheck
bun run test
bun run build

Declared capabilities.

Module Personal Health

Subject-bound non-clinical PersonalOS health ledger orchestration.

Use it to

  • Adopt subject-bound non-clinical personalos health ledger orchestration

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/module.personal-health package constraints do not match the target runtime or platform.

@lssm-tech/module.personal-health

@lssm-tech/module.personal-health/authorize

@lssm-tech/module.personal-health/connection-service

@lssm-tech/module.personal-health/errors

@lssm-tech/module.personal-health/history-service

@lssm-tech/module.personal-health/household-revocation-service

@lssm-tech/module.personal-health/insight-service

@lssm-tech/module.personal-health/personal-health.feature

@lssm-tech/module.personal-health/ports

@lssm-tech/module.personal-health/projection-service

@lssm-tech/module.personal-health/rights-service

@lssm-tech/module.personal-health/sync-service

Imports and export paths.

18 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

18 importaciones

Dependencies and related packages.

Runtime dependencies 4
Development dependencies 6
@electric-sql/pglite
catalog:data
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
lint:checknode ../../../../scripts/biome.cjs check .
lint:fixnode ../../../../scripts/biome.cjs check --write .
prebuildcontractspec-bun-build prebuild
testbun test
typechecktsgo --noEmit
Tu vista

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.