@murphai/murph 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +808 -0
- package/config.schema.json +91 -40
- package/dist/bin.js +6 -4
- package/dist/bin.js.map +1 -1
- package/dist/cli-entry.d.ts +8 -1
- package/dist/cli-entry.d.ts.map +1 -1
- package/dist/cli-entry.js +79 -3
- package/dist/cli-entry.js.map +1 -1
- package/dist/commands/audit-command-helpers.d.ts.map +1 -1
- package/dist/commands/audit-command-helpers.js +7 -5
- package/dist/commands/audit-command-helpers.js.map +1 -1
- package/dist/commands/batch.d.ts +5 -5
- package/dist/commands/batch.d.ts.map +1 -1
- package/dist/commands/batch.js +2 -21
- package/dist/commands/batch.js.map +1 -1
- package/dist/commands/commons.d.ts.map +1 -1
- package/dist/commands/commons.js +2 -4
- package/dist/commands/commons.js.map +1 -1
- package/dist/commands/exercise.d.ts.map +1 -1
- package/dist/commands/exercise.js +16 -3
- package/dist/commands/exercise.js.map +1 -1
- package/dist/commands/experiment-progress-card-image.d.ts.map +1 -1
- package/dist/commands/experiment-progress-card-image.js +63 -12
- package/dist/commands/experiment-progress-card-image.js.map +1 -1
- package/dist/commands/experiment.d.ts.map +1 -1
- package/dist/commands/experiment.js +45 -5
- package/dist/commands/experiment.js.map +1 -1
- package/dist/commands/export-intake-read-helpers.d.ts.map +1 -1
- package/dist/commands/export-intake-read-helpers.js +2 -3
- package/dist/commands/export-intake-read-helpers.js.map +1 -1
- package/dist/commands/food.d.ts.map +1 -1
- package/dist/commands/food.js +1 -7
- package/dist/commands/food.js.map +1 -1
- package/dist/commands/habitat.d.ts.map +1 -1
- package/dist/commands/habitat.js +120 -9
- package/dist/commands/habitat.js.map +1 -1
- package/dist/commands/health-blood-test-save.d.ts.map +1 -1
- package/dist/commands/health-blood-test-save.js +42 -8
- package/dist/commands/health-blood-test-save.js.map +1 -1
- package/dist/commands/meal.d.ts.map +1 -1
- package/dist/commands/meal.js +4 -1
- package/dist/commands/meal.js.map +1 -1
- package/dist/commands/measurement.d.ts.map +1 -1
- package/dist/commands/measurement.js +3 -0
- package/dist/commands/measurement.js.map +1 -1
- package/dist/commands/murph-age.d.ts +9 -1
- package/dist/commands/murph-age.d.ts.map +1 -1
- package/dist/commands/murph-age.js +132 -7
- package/dist/commands/murph-age.js.map +1 -1
- package/dist/commands/public-validation-issue.d.ts +7 -0
- package/dist/commands/public-validation-issue.d.ts.map +1 -0
- package/dist/commands/public-validation-issue.js +7 -0
- package/dist/commands/public-validation-issue.js.map +1 -0
- package/dist/commands/scheduled-log.d.ts +12 -0
- package/dist/commands/scheduled-log.d.ts.map +1 -1
- package/dist/commands/scheduled-log.js +456 -106
- package/dist/commands/scheduled-log.js.map +1 -1
- package/dist/commands/wearables.d.ts +286 -0
- package/dist/commands/wearables.d.ts.map +1 -1
- package/dist/commands/wearables.js +33 -1
- package/dist/commands/wearables.js.map +1 -1
- package/dist/commands/workout-live.d.ts.map +1 -1
- package/dist/commands/workout-live.js +123 -42
- package/dist/commands/workout-live.js.map +1 -1
- package/dist/commands/workout-typed-options.d.ts +38 -0
- package/dist/commands/workout-typed-options.d.ts.map +1 -0
- package/dist/commands/workout-typed-options.js +90 -0
- package/dist/commands/workout-typed-options.js.map +1 -0
- package/dist/commands/workout.d.ts.map +1 -1
- package/dist/commands/workout.js +80 -73
- package/dist/commands/workout.js.map +1 -1
- package/dist/hosted-data-api-labels.d.ts.map +1 -1
- package/dist/hosted-data-api-labels.js +161 -30
- package/dist/hosted-data-api-labels.js.map +1 -1
- package/dist/incur-error-bridge.d.ts.map +1 -1
- package/dist/incur-error-bridge.js +7 -15
- package/dist/incur-error-bridge.js.map +1 -1
- package/dist/incur.generated.d.ts +22 -13
- package/dist/incur.generated.d.ts.map +1 -1
- package/dist/mapbox-address.d.ts.map +1 -1
- package/dist/mapbox-address.js +3 -4
- package/dist/mapbox-address.js.map +1 -1
- package/dist/mapbox-route-client.d.ts +2 -2
- package/dist/mapbox-route-client.d.ts.map +1 -1
- package/dist/mapbox-route-client.js +49 -12
- package/dist/mapbox-route-client.js.map +1 -1
- package/dist/mapbox-route-directions.d.ts.map +1 -1
- package/dist/mapbox-route-directions.js +0 -1
- package/dist/mapbox-route-directions.js.map +1 -1
- package/dist/mapbox-route-elevation.js +0 -1
- package/dist/mapbox-route-elevation.js.map +1 -1
- package/dist/mapbox-route-points.js +0 -2
- package/dist/mapbox-route-points.js.map +1 -1
- package/dist/mapbox-route.d.ts.map +1 -1
- package/dist/mapbox-route.js +1 -1
- package/dist/mapbox-route.js.map +1 -1
- package/dist/vault-cli-command-manifest.d.ts +304 -6
- package/dist/vault-cli-command-manifest.d.ts.map +1 -1
- package/dist/vault-cli-skill-hash.generated.d.ts +1 -1
- package/dist/vault-cli-skill-hash.generated.js +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink.js +6 -2
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/README.md +4 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-controller.d.ts +15 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-controller.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-controller.js +121 -24
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-controller.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-journal.js +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-journal.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/reply.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/reply.js +55 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/reply.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/run-loop.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/run-loop.js +9 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/run-loop.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/shared.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/shared.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/shared.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-contract.generated.json +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-base-instructions.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-base-instructions.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-base-instructions.js +7 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-base-instructions.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/planning.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/planning.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/planning.js +123 -22
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/planning.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn-runner.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn-runner.js +48 -19
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn-runner.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/context-snapshot.js +3 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/context-snapshot.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/execution.d.ts +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/execution.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/execution.js +24 -10
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/execution.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.d.ts +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.js +12 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/delivery-service.d.ts +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/delivery-service.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/delivery-service.js +9 -10
- package/node_modules/@murphai/assistant-engine/dist/assistant/delivery-service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/execution-context.d.ts +41 -9
- package/node_modules/@murphai/assistant-engine/dist/assistant/execution-context.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/execution-context.js +9 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/execution-context.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/experiment-support-automations.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/experiment-support-automations.js +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/experiment-support-automations.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.d.ts +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.js +8 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/issue-reporting.d.ts +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/issue-reporting.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/issue-reporting.js +26 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/issue-reporting.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/local-service.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/local-service.js +687 -370
- package/node_modules/@murphai/assistant-engine/dist/assistant/local-service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/managed-automations.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/managed-automations.js +54 -18
- package/node_modules/@murphai/assistant-engine/dist/assistant/managed-automations.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/model-behavior.d.ts +2 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/model-behavior.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/model-behavior.js +10 -9
- package/node_modules/@murphai/assistant-engine/dist/assistant/model-behavior.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.js +146 -18
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-seed.d.ts +25 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-seed.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-seed.js +72 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-seed.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-state.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-state.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-state.js +14 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-state.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/store.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/store.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/store.js +8 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/store.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox.js +8 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/private-completion-continuity.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/private-completion-continuity.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/codex-cli.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/codex-cli.js +25 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/codex-cli.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/helpers.d.ts +11 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/helpers.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/helpers.js +67 -176
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/helpers.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/types.d.ts +17 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/types.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/types.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-delivery-context.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-delivery-context.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-delivery-context.js +10 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-delivery-context.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.d.ts +19 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.js +76 -40
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-contracts.d.ts +3 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.d.ts +4 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.js +8 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/shared.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/shared.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/shared.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/shared.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/types.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/types.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store.js +6 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/store.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/system-prompt.d.ts +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/system-prompt.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/system-prompt.js +57 -29
- package/node_modules/@murphai/assistant-engine/dist/assistant/system-prompt.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-digest.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-digest.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-digest.js +17 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-digest.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-feedback.d.ts +4 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-feedback.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-feedback.js +21 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant/tool-validation-feedback.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-finalizer.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-finalizer.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-finalizer.js +6 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-finalizer.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-input.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-input.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/usage-attribution.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/usage-attribution.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/usage-attribution.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.js +8 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-cli-access.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-cli-access.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-cli-access.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/analyze-video-tool.d.ts +49 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/analyze-video-tool.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/analyze-video-tool.js +387 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/analyze-video-tool.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-protocol.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-protocol.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-protocol.js +12 -13
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-protocol.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-requests.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-requests.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-requests.js +16 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-requests.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-rpc.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-rpc.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-rpc.js +2 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/app-server-rpc.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/command-family.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/command-family.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/command-family.js +26 -13
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/command-family.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tool-catalog.d.ts +1024 -1091
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tool-catalog.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tool-catalog.js +354 -330
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tool-catalog.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/analyze-video.d.ts +50 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/analyze-video.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/analyze-video.js +79 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/analyze-video.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation-model-input-schema.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation-model-input-schema.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation-model-input-schema.js +153 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation-model-input-schema.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation.d.ts +4 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation.js +29 -35
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/automation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/device.d.ts +4 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/device.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/device.js +43 -9
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/device.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/dynamic-tool-wrapper.d.ts +6 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/dynamic-tool-wrapper.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/dynamic-tool-wrapper.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/member-memory.d.ts +60 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/member-memory.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/member-memory.js +91 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/member-memory.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/physical-notes.d.ts +41 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/physical-notes.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/physical-notes.js +85 -9
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/physical-notes.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools.d.ts +25 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools.js +280 -89
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/failures.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/response-card-validation-feedback.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/response-card-validation-feedback.js +1 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/response-card-validation-feedback.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/workout-delivery-context.d.ts +19 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/workout-delivery-context.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/workout-delivery-context.js +203 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/workout-delivery-context.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.d.ts +9 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.js +220 -130
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-runtime-residue.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-runtime-residue.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-runtime-residue.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-runtime-residue.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/index.d.ts +2 -1
- package/node_modules/@murphai/assistant-engine/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/index.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/index.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/skills/automatic-meal-capture/SKILL.md +111 -68
- package/node_modules/@murphai/assistant-engine/skills/behavior-followthrough/SKILL.md +0 -2
- package/node_modules/@murphai/assistant-engine/skills/daily-activity/SKILL.md +11 -4
- package/node_modules/@murphai/assistant-engine/skills/food-journal/SKILL.md +83 -22
- package/node_modules/@murphai/assistant-engine/skills/hosted-low-usage/SKILL.md +3 -3
- package/node_modules/@murphai/assistant-engine/skills/murph-family/SKILL.md +1 -1
- package/node_modules/@murphai/assistant-engine/skills/nutrition-strategy/SKILL.md +17 -11
- package/node_modules/@murphai/assistant-engine/skills/nutrition-strategy/references/daily-nutrition-card-goals.md +62 -34
- package/node_modules/@murphai/assistant-engine/skills/physical-notes/SKILL.md +47 -0
- package/node_modules/@murphai/assistant-engine/skills/shared/exercise-catalog-runtime.md +6 -0
- package/node_modules/@murphai/assistant-engine/skills/signup-link/SKILL.md +1 -1
- package/node_modules/@murphai/assistant-engine/skills/strength-training/SKILL.md +12 -5
- package/node_modules/@murphai/assistant-engine/skills/tracked-table/SKILL.md +156 -66
- package/node_modules/@murphai/core/dist/automation.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/automation.js +17 -9
- package/node_modules/@murphai/core/dist/automation.js.map +1 -1
- package/node_modules/@murphai/core/dist/bank/habitat.d.ts +2 -0
- package/node_modules/@murphai/core/dist/bank/habitat.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/bank/habitat.js +27 -0
- package/node_modules/@murphai/core/dist/bank/habitat.js.map +1 -1
- package/node_modules/@murphai/core/dist/bank/regimens.js +1 -1
- package/node_modules/@murphai/core/dist/bank/regimens.js.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events/ledger.d.ts +21 -0
- package/node_modules/@murphai/core/dist/domains/events/ledger.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events/ledger.js +102 -8
- package/node_modules/@murphai/core/dist/domains/events/ledger.js.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events.d.ts +2 -2
- package/node_modules/@murphai/core/dist/domains/events.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events.js +1 -1
- package/node_modules/@murphai/core/dist/domains/events.js.map +1 -1
- package/node_modules/@murphai/core/dist/history/api.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/history/api.js +18 -3
- package/node_modules/@murphai/core/dist/history/api.js.map +1 -1
- package/node_modules/@murphai/core/dist/index.d.ts +4 -2
- package/node_modules/@murphai/core/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/index.js +3 -1
- package/node_modules/@murphai/core/dist/index.js.map +1 -1
- package/node_modules/@murphai/core/dist/mutations.d.ts +25 -2
- package/node_modules/@murphai/core/dist/mutations.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/mutations.js +1588 -78
- package/node_modules/@murphai/core/dist/mutations.js.map +1 -1
- package/node_modules/@murphai/core/dist/operations/index.d.ts +1 -1
- package/node_modules/@murphai/core/dist/operations/index.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/operations/index.js +1 -1
- package/node_modules/@murphai/core/dist/operations/index.js.map +1 -1
- package/node_modules/@murphai/core/dist/operations/write-batch.d.ts +2 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/operations/write-batch.js +7 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.js.map +1 -1
- package/node_modules/@murphai/core/dist/protocols.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/protocols.js +52 -9
- package/node_modules/@murphai/core/dist/protocols.js.map +1 -1
- package/node_modules/@murphai/core/dist/public-mutations.d.ts +1 -1
- package/node_modules/@murphai/core/dist/public-mutations.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/public-mutations.js +2 -2
- package/node_modules/@murphai/core/dist/public-mutations.js.map +1 -1
- package/node_modules/@murphai/core/dist/scheduled-logs.d.ts +3 -0
- package/node_modules/@murphai/core/dist/scheduled-logs.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/scheduled-logs.js +65 -29
- package/node_modules/@murphai/core/dist/scheduled-logs.js.map +1 -1
- package/node_modules/@murphai/device-syncd/README.md +140 -46
- package/node_modules/@murphai/device-syncd/dist/client.d.ts +14 -0
- package/node_modules/@murphai/device-syncd/dist/client.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/client.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/connect-routes.d.ts +4 -1
- package/node_modules/@murphai/device-syncd/dist/config/connect-routes.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/connect-routes.js +24 -2
- package/node_modules/@murphai/device-syncd/dist/config/connect-routes.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/junction-connect-sources.js +2 -2
- package/node_modules/@murphai/device-syncd/dist/config/junction-connect-sources.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.d.ts +53 -0
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.js +13 -0
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/connect-config.d.ts +1 -1
- package/node_modules/@murphai/device-syncd/dist/connect-config.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/connect-config.js +1 -1
- package/node_modules/@murphai/device-syncd/dist/connect-config.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/fitbit-migration.d.ts +57 -0
- package/node_modules/@murphai/device-syncd/dist/fitbit-migration.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/fitbit-migration.js +166 -0
- package/node_modules/@murphai/device-syncd/dist/fitbit-migration.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.d.ts +43 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.js +129 -5
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.js +36 -16
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-inline-authority.d.ts +17 -2
- package/node_modules/@murphai/device-syncd/dist/junction-inline-authority.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-inline-authority.js +99 -40
- package/node_modules/@murphai/device-syncd/dist/junction-inline-authority.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-source-reconnect.d.ts +17 -0
- package/node_modules/@murphai/device-syncd/dist/junction-source-reconnect.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/junction-source-reconnect.js +45 -0
- package/node_modules/@murphai/device-syncd/dist/junction-source-reconnect.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/junction-timeseries-progress.d.ts +8 -1
- package/node_modules/@murphai/device-syncd/dist/junction-timeseries-progress.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-timeseries-progress.js +12 -1
- package/node_modules/@murphai/device-syncd/dist/junction-timeseries-progress.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.d.ts +7 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.js +285 -46
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction.d.ts +9 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction.js +2045 -367
- package/node_modules/@murphai/device-syncd/dist/providers/junction.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-account.d.ts +2 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-account.js +96 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-ingress.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js +6 -4
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/service.d.ts +6 -2
- package/node_modules/@murphai/device-syncd/dist/service.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/service.js +385 -44
- package/node_modules/@murphai/device-syncd/dist/service.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/source-staleness.d.ts +15 -0
- package/node_modules/@murphai/device-syncd/dist/source-staleness.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/source-staleness.js +25 -1
- package/node_modules/@murphai/device-syncd/dist/source-staleness.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.d.ts +10 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.js +95 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/schema.d.ts +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/schema.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/schema.js +25 -3
- package/node_modules/@murphai/device-syncd/dist/store/schema.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/sources.d.ts +24 -2
- package/node_modules/@murphai/device-syncd/dist/store/sources.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/sources.js +223 -14
- package/node_modules/@murphai/device-syncd/dist/store/sources.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store.d.ts +13 -3
- package/node_modules/@murphai/device-syncd/dist/store.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store.js +104 -22
- package/node_modules/@murphai/device-syncd/dist/store.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/types.d.ts +96 -9
- package/node_modules/@murphai/device-syncd/dist/types.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/types.js +4 -0
- package/node_modules/@murphai/device-syncd/dist/types.js.map +1 -1
- package/node_modules/@murphai/device-syncd/package.json +8 -0
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.js +66 -0
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/body.js +2 -2
- package/node_modules/@murphai/health-metrics/dist/definitions/body.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/normalize.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/normalize.js +3 -0
- package/node_modules/@murphai/health-metrics/dist/normalize.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-metric-catalog.d.ts +3 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-metric-catalog.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-metric-catalog.js +5 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-metric-catalog.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-provider-catalog.d.ts +79 -0
- package/node_modules/@murphai/health-metrics/dist/wearable-provider-catalog.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/wearable-provider-catalog.js +19 -0
- package/node_modules/@murphai/health-metrics/dist/wearable-provider-catalog.js.map +1 -1
- package/node_modules/@murphai/importers/dist/core-port.d.ts +15 -1
- package/node_modules/@murphai/importers/dist/core-port.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/core-port.js.map +1 -1
- package/node_modules/@murphai/importers/dist/create-importers.d.ts +9 -1
- package/node_modules/@murphai/importers/dist/create-importers.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/create-importers.js +12 -2
- package/node_modules/@murphai/importers/dist/create-importers.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.d.ts +17 -3
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.js +102 -8
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/index.d.ts +5 -4
- package/node_modules/@murphai/importers/dist/device-providers/index.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/index.js +4 -3
- package/node_modules/@murphai/importers/dist/device-providers/index.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-bounded-features.d.ts +11 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-bounded-features.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-bounded-features.js +420 -27
- package/node_modules/@murphai/importers/dist/device-providers/junction-bounded-features.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-origin.d.ts +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction-origin.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-origin.js +7 -2
- package/node_modules/@murphai/importers/dist/device-providers/junction-origin.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-resources.d.ts +4 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-resources.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-resources.js +42 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-resources.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction-timeseries-features.d.ts +79 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction-timeseries-features.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction-timeseries-features.js +356 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction-timeseries-features.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction.d.ts +76 -3
- package/node_modules/@murphai/importers/dist/device-providers/junction.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction.js +1676 -347
- package/node_modules/@murphai/importers/dist/device-providers/junction.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.js +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/types.d.ts +9 -1
- package/node_modules/@murphai/importers/dist/device-providers/types.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/index.d.ts +2 -2
- package/node_modules/@murphai/importers/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/index.js +1 -1
- package/node_modules/@murphai/importers/dist/index.js.map +1 -1
- package/node_modules/@murphai/inboxd/README.md +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/retention.d.ts +6 -0
- package/node_modules/@murphai/inboxd/dist/indexing/retention.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/retention.js +64 -18
- package/node_modules/@murphai/inboxd/dist/indexing/retention.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/retention.d.ts +1 -1
- package/node_modules/@murphai/inboxd/dist/retention.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/retention.js +1 -1
- package/node_modules/@murphai/inboxd/dist/retention.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.d.ts +1 -0
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.js +5 -0
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant-response-cards.d.ts +175 -152
- package/node_modules/@murphai/operator-config/dist/assistant-response-cards.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant-response-cards.js +62 -41
- package/node_modules/@murphai/operator-config/dist/assistant-response-cards.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-sync-client.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-sync-client.js +1 -5
- package/node_modules/@murphai/operator-config/dist/device-sync-client.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.d.ts +66 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.js +58 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-error-projection.d.ts +24 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-error-projection.d.ts.map +1 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-error-projection.js +219 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-error-projection.js.map +1 -0
- package/node_modules/@murphai/operator-config/dist/vault-cli-errors.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-errors.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/workout-action-binding.d.ts +9 -0
- package/node_modules/@murphai/operator-config/dist/workout-action-binding.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/workout-action-binding.js +48 -5
- package/node_modules/@murphai/operator-config/dist/workout-action-binding.js.map +1 -1
- package/node_modules/@murphai/operator-config/package.json +5 -0
- package/node_modules/@murphai/query/README.md +20 -5
- package/node_modules/@murphai/query/dist/browser-replica/build.d.ts +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/build.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/build.js +25 -16
- package/node_modules/@murphai/query/dist/browser-replica/build.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/json.d.ts +6 -0
- package/node_modules/@murphai/query/dist/browser-replica/json.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/json.js +103 -0
- package/node_modules/@murphai/query/dist/browser-replica/json.js.map +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/shared.d.ts +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/shared.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/source.d.ts +13 -0
- package/node_modules/@murphai/query/dist/browser-replica/source.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/source.js +45 -0
- package/node_modules/@murphai/query/dist/browser-replica/source.js.map +1 -0
- package/node_modules/@murphai/query/dist/browser-replica-server.d.ts +2 -0
- package/node_modules/@murphai/query/dist/browser-replica-server.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica-server.js +2 -0
- package/node_modules/@murphai/query/dist/browser-replica-server.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/blood-tests.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/blood-tests.js +3 -2
- package/node_modules/@murphai/query/dist/health/blood-tests.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.d.ts +11 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.js +39 -16
- package/node_modules/@murphai/query/dist/health/canonical-collector.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/entity-slices.d.ts +9 -3
- package/node_modules/@murphai/query/dist/health/entity-slices.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/entity-slices.js +6 -6
- package/node_modules/@murphai/query/dist/health/entity-slices.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/immunizations.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/immunizations.js +14 -11
- package/node_modules/@murphai/query/dist/health/immunizations.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/loaders.d.ts +21 -7
- package/node_modules/@murphai/query/dist/health/loaders.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/loaders.js +53 -15
- package/node_modules/@murphai/query/dist/health/loaders.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/registries.d.ts +1 -0
- package/node_modules/@murphai/query/dist/health/registries.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/registries.js.map +1 -1
- package/node_modules/@murphai/query/dist/index.d.ts +4 -3
- package/node_modules/@murphai/query/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/index.js +4 -3
- package/node_modules/@murphai/query/dist/index.js.map +1 -1
- package/node_modules/@murphai/query/dist/meal-nutrition.d.ts +1 -1
- package/node_modules/@murphai/query/dist/meal-nutrition.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/meal-nutrition.js +10 -3
- package/node_modules/@murphai/query/dist/meal-nutrition.js.map +1 -1
- package/node_modules/@murphai/query/dist/metrics/projection.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/metrics/projection.js +19 -6
- package/node_modules/@murphai/query/dist/metrics/projection.js.map +1 -1
- package/node_modules/@murphai/query/dist/murph-age.d.ts +5 -1
- package/node_modules/@murphai/query/dist/murph-age.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/murph-age.js +22 -8
- package/node_modules/@murphai/query/dist/murph-age.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/entity-store.js +4 -4
- package/node_modules/@murphai/query/dist/projection/entity-store.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/schema.d.ts +1 -1
- package/node_modules/@murphai/query/dist/projection/schema.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/projection/schema.js +3 -1
- package/node_modules/@murphai/query/dist/projection/schema.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/wearable-summary-compose.js +4 -0
- package/node_modules/@murphai/query/dist/projection/wearable-summary-compose.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/wearable-summary-projector.js +4 -0
- package/node_modules/@murphai/query/dist/projection/wearable-summary-projector.js.map +1 -1
- package/node_modules/@murphai/query/dist/query-visibility.d.ts +5 -0
- package/node_modules/@murphai/query/dist/query-visibility.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/query-visibility.js +11 -5
- package/node_modules/@murphai/query/dist/query-visibility.js.map +1 -1
- package/node_modules/@murphai/query/dist/read-model.d.ts +8 -0
- package/node_modules/@murphai/query/dist/read-model.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/read-model.js +11 -1
- package/node_modules/@murphai/query/dist/read-model.js.map +1 -1
- package/node_modules/@murphai/query/dist/scheduled-logs.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/scheduled-logs.js +55 -79
- package/node_modules/@murphai/query/dist/scheduled-logs.js.map +1 -1
- package/node_modules/@murphai/query/dist/vault-source.d.ts +22 -4
- package/node_modules/@murphai/query/dist/vault-source.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/vault-source.js +188 -59
- package/node_modules/@murphai/query/dist/vault-source.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/candidates.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/candidates.js +26 -15
- package/node_modules/@murphai/query/dist/wearables/candidates.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/public-output.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/public-output.js +6 -0
- package/node_modules/@murphai/query/dist/wearables/public-output.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/source-health.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/source-health.js +4 -0
- package/node_modules/@murphai/query/dist/wearables/source-health.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/types.d.ts +41 -4
- package/node_modules/@murphai/query/dist/wearables/types.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/types.js +2 -0
- package/node_modules/@murphai/query/dist/wearables/types.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/workout-features.d.ts +5 -0
- package/node_modules/@murphai/query/dist/wearables/workout-features.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/wearables/workout-features.js +179 -0
- package/node_modules/@murphai/query/dist/wearables/workout-features.js.map +1 -0
- package/node_modules/@murphai/query/dist/wearables.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables.js +23 -6
- package/node_modules/@murphai/query/dist/wearables.js.map +1 -1
- package/node_modules/@murphai/query/package.json +5 -0
- package/node_modules/@murphai/runtime-state/README.md +1 -1
- package/node_modules/@murphai/runtime-state/dist/assistant-runtime-issues.d.ts +4 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-runtime-issues.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/assistant-runtime-issues.js +16 -3
- package/node_modules/@murphai/runtime-state/dist/assistant-runtime-issues.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.d.ts +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.js +31 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-email.d.ts +5 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-email.js +10 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/incur-error-bridge.d.ts.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/incur-error-bridge.js +6 -15
- package/node_modules/@murphai/setup-cli/dist/incur-error-bridge.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/README.md +9 -0
- package/node_modules/@murphai/vault-usecases/dist/commands/query-record-command-helpers.d.ts +6 -0
- package/node_modules/@murphai/vault-usecases/dist/commands/query-record-command-helpers.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/commands/query-record-command-helpers.js +49 -1
- package/node_modules/@murphai/vault-usecases/dist/commands/query-record-command-helpers.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/capture.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/capture.js +22 -12
- package/node_modules/@murphai/vault-usecases/dist/usecases/capture.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/clinical-imports.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/clinical-imports.js +1 -3
- package/node_modules/@murphai/vault-usecases/dist/usecases/clinical-imports.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/document-meal-read.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/document-meal-read.js +24 -18
- package/node_modules/@murphai/vault-usecases/dist/usecases/document-meal-read.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/encounter.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/encounter.js +1 -3
- package/node_modules/@murphai/vault-usecases/dist/usecases/encounter.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/event-record-mutations.d.ts +8 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/event-record-mutations.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/event-record-mutations.js +56 -5
- package/node_modules/@murphai/vault-usecases/dist/usecases/event-record-mutations.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/exact-event-record.d.ts +20 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/exact-event-record.d.ts.map +1 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/exact-event-record.js +72 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/exact-event-record.js.map +1 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/experiment-journal-vault.d.ts +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/experiment-journal-vault.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/experiment-journal-vault.js +42 -9
- package/node_modules/@murphai/vault-usecases/dist/usecases/experiment-journal-vault.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/explicit-health-family-services.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/explicit-health-family-services.js +158 -24
- package/node_modules/@murphai/vault-usecases/dist/usecases/explicit-health-family-services.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/food.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/food.js +98 -5
- package/node_modules/@murphai/vault-usecases/dist/usecases/food.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/integrated-services.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/integrated-services.js +20 -4
- package/node_modules/@murphai/vault-usecases/dist/usecases/integrated-services.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention-experiment-link.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention-experiment-link.js +49 -24
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention-experiment-link.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement-read.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement-read.js +13 -11
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement-read.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/provider-event.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/provider-event.js +18 -11
- package/node_modules/@murphai/vault-usecases/dist/usecases/provider-event.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/recipe.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/recipe.js +43 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/recipe.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.js +1 -3
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/vault-usecase-helpers.d.ts +2 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/vault-usecase-helpers.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/vault-usecase-helpers.js +24 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/vault-usecase-helpers.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-format.d.ts +2 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-format.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-model.d.ts +36 -4
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-model.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-model.js +48 -12
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-model.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-state.d.ts +14 -14
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-state.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-state.js +84 -82
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live-state.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live.d.ts +16 -4
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live.js +316 -79
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-live.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-read.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-read.js +19 -17
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-read.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout.d.ts +20 -7
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout.js +56 -31
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout.js.map +1 -1
- package/node_modules/incur/dist/Cli.js +7 -32
- package/node_modules/incur/dist/Errors.d.ts +17 -0
- package/node_modules/incur/dist/Errors.js +23 -0
- package/node_modules/incur/dist/internal/command.d.ts +2 -0
- package/node_modules/incur/dist/internal/command.js +2 -6
- package/node_modules/incur/src/Cli.ts +11 -32
- package/node_modules/incur/src/Errors.ts +36 -0
- package/node_modules/incur/src/internal/command.ts +4 -6
- package/package.json +4 -4
- package/node_modules/@murphai/assistant-engine/skills/nutrition-strategy/references/daily-nutrition-card-safety.md +0 -211
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { summarizeSampleSeries } from "@murphai/health-metrics";
|
|
2
|
+
export const JUNCTION_TEMPORAL_FEATURE_MAX_SAMPLES_PER_DAY = 5_000;
|
|
3
|
+
export const JUNCTION_TEMPORAL_FEATURE_MAX_SAMPLES_PER_IMPORT = 25_000;
|
|
4
|
+
export const JUNCTION_TEMPORAL_FEATURE_MAX_OBSERVATIONS_PER_DAY = 10;
|
|
5
|
+
export const JUNCTION_TEMPORAL_FEATURE_ENVELOPE_MAX_BYTES = 1_024;
|
|
6
|
+
export const JUNCTION_TEMPORAL_FEATURE_METHOD = "distinct-instant-mean-median-gap-2.5x-absolute-cap.v2";
|
|
7
|
+
export const JUNCTION_TEMPORAL_FEATURE_RESOURCES = Object.freeze([
|
|
8
|
+
"blood_oxygen",
|
|
9
|
+
"stress_level",
|
|
10
|
+
]);
|
|
11
|
+
// This is the only clinical-looking threshold in this reducer. It reuses the
|
|
12
|
+
// repository-owned oxygen-night screening contract in sample-series-summary;
|
|
13
|
+
// the output describes sample shape and is not a diagnosis.
|
|
14
|
+
const BLOOD_OXYGEN_THRESHOLD_PERCENT = 90;
|
|
15
|
+
const BLOOD_OXYGEN_MAX_ADJACENT_GAP_SECONDS = 5 * 60;
|
|
16
|
+
const STRESS_MAX_ADJACENT_GAP_SECONDS = 15 * 60;
|
|
17
|
+
const MORNING_START_LOCAL_MINUTE = 360;
|
|
18
|
+
const MORNING_END_LOCAL_MINUTE = 720;
|
|
19
|
+
const EVENING_START_LOCAL_MINUTE = 1_080;
|
|
20
|
+
const EVENING_END_LOCAL_MINUTE = 1_440;
|
|
21
|
+
export function isJunctionTemporalFeatureResource(resource) {
|
|
22
|
+
return JUNCTION_TEMPORAL_FEATURE_RESOURCES.includes(resource);
|
|
23
|
+
}
|
|
24
|
+
export function buildJunctionTemporalFeatures(input) {
|
|
25
|
+
if (input.samples.length > JUNCTION_TEMPORAL_FEATURE_MAX_SAMPLES_PER_DAY) {
|
|
26
|
+
return { observations: [], status: "suppressed_input_cap" };
|
|
27
|
+
}
|
|
28
|
+
const samples = collapseEqualTimestampSamples(input.samples);
|
|
29
|
+
if (samples.length < 2) {
|
|
30
|
+
return { observations: [], status: "insufficient_samples" };
|
|
31
|
+
}
|
|
32
|
+
const result = buildTemporalFeatureResult(input.resource, samples);
|
|
33
|
+
if (result.status !== "complete") {
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
if (result.observations.length > JUNCTION_TEMPORAL_FEATURE_MAX_OBSERVATIONS_PER_DAY
|
|
37
|
+
|| serializedByteLength(result.envelope) > JUNCTION_TEMPORAL_FEATURE_ENVELOPE_MAX_BYTES) {
|
|
38
|
+
return { observations: [], status: "suppressed_output_cap" };
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
// Junction reconciles the same instant more than once for some providers. A
|
|
43
|
+
// sorted mean makes those rows one deterministic observation, independent of
|
|
44
|
+
// payload order. Conflicting local clocks are dropped for daypart use instead
|
|
45
|
+
// of choosing one provider row. The shared sample summarizer therefore only
|
|
46
|
+
// receives unique, ordered instants and needs no repository-wide policy change.
|
|
47
|
+
function collapseEqualTimestampSamples(samples) {
|
|
48
|
+
const byInstant = new Map();
|
|
49
|
+
for (const sample of samples) {
|
|
50
|
+
const instant = Date.parse(sample.recordedAt);
|
|
51
|
+
if (!Number.isFinite(instant) || !Number.isFinite(sample.value)) {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
const atInstant = byInstant.get(instant) ?? [];
|
|
55
|
+
atInstant.push(sample);
|
|
56
|
+
byInstant.set(instant, atInstant);
|
|
57
|
+
}
|
|
58
|
+
return [...byInstant.entries()]
|
|
59
|
+
.sort(([left], [right]) => left - right)
|
|
60
|
+
.map(([instant, atInstant]) => {
|
|
61
|
+
const values = atInstant.map((sample) => sample.value).sort((left, right) => left - right);
|
|
62
|
+
const localMinutes = [...new Set(atInstant.flatMap((sample) => sample.localMinuteOfDay === undefined ? [] : [sample.localMinuteOfDay]))];
|
|
63
|
+
return {
|
|
64
|
+
recordedAt: new Date(instant).toISOString(),
|
|
65
|
+
value: values.reduce((sum, value) => sum + value, 0) / values.length,
|
|
66
|
+
...(localMinutes.length === 1 ? { localMinuteOfDay: localMinutes[0] } : {}),
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function buildTemporalFeatureResult(resource, samples) {
|
|
71
|
+
switch (resource) {
|
|
72
|
+
case "blood_oxygen":
|
|
73
|
+
return buildBloodOxygenTemporalFeatures(samples);
|
|
74
|
+
case "stress_level":
|
|
75
|
+
return buildStressTemporalFeatures(samples);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function buildBloodOxygenTemporalFeatures(samples) {
|
|
79
|
+
const summary = summarizeBelowThresholds(samples, [
|
|
80
|
+
BLOOD_OXYGEN_THRESHOLD_PERCENT,
|
|
81
|
+
]);
|
|
82
|
+
const threshold = summary.thresholds.find((entry) => entry.below === BLOOD_OXYGEN_THRESHOLD_PERCENT);
|
|
83
|
+
const belowThresholdSampleCount = threshold?.sampleCount ?? 0;
|
|
84
|
+
const belowThresholdSamplePercent = round4(belowThresholdSampleCount / samples.length * 100);
|
|
85
|
+
const continuity = assessContinuity(samples, BLOOD_OXYGEN_MAX_ADJACENT_GAP_SECONDS);
|
|
86
|
+
const runEvidence = continuity.qualifyingPairs.length > 0
|
|
87
|
+
? summarizeThresholdRuns(samples, continuity.qualifyingPairs, (value) => value < BLOOD_OXYGEN_THRESHOLD_PERCENT)
|
|
88
|
+
: null;
|
|
89
|
+
const envelope = {
|
|
90
|
+
schema: "junction.timeseries_temporal_features.v2",
|
|
91
|
+
method: JUNCTION_TEMPORAL_FEATURE_METHOD,
|
|
92
|
+
kind: "blood_oxygen",
|
|
93
|
+
sampleCount: samples.length,
|
|
94
|
+
sampleIntervalSeconds: continuity.sampleIntervalSeconds,
|
|
95
|
+
maxAdjacentGapSeconds: BLOOD_OXYGEN_MAX_ADJACENT_GAP_SECONDS,
|
|
96
|
+
qualifyingPairCount: continuity.qualifyingPairs.length,
|
|
97
|
+
thresholdPercent: BLOOD_OXYGEN_THRESHOLD_PERCENT,
|
|
98
|
+
belowThresholdSampleCount,
|
|
99
|
+
belowThresholdSamplePercent,
|
|
100
|
+
belowThresholdRunCount: runEvidence?.runCount,
|
|
101
|
+
longestBelowThresholdSampleCount: runEvidence?.longestRunSampleCount,
|
|
102
|
+
};
|
|
103
|
+
const sampleBurdenQualifiers = evidenceQualifiers({
|
|
104
|
+
confidence: "low",
|
|
105
|
+
continuity,
|
|
106
|
+
sampleCount: samples.length,
|
|
107
|
+
thresholdSampleCount: belowThresholdSampleCount,
|
|
108
|
+
});
|
|
109
|
+
const observations = [
|
|
110
|
+
observation("spo2-samples-below-90-percent", "Junction SpO2 samples below 90%", "%", belowThresholdSamplePercent, sampleBurdenQualifiers),
|
|
111
|
+
];
|
|
112
|
+
if (runEvidence) {
|
|
113
|
+
const continuitySampleCount = continuity.participatingSampleIndexes.length;
|
|
114
|
+
const continuityThresholdSampleCount = continuity.participatingSampleIndexes.reduce((count, index) => count + ((samples[index]?.value ?? Infinity) < BLOOD_OXYGEN_THRESHOLD_PERCENT ? 1 : 0), 0);
|
|
115
|
+
const runQualifiers = evidenceQualifiers({
|
|
116
|
+
confidence: "medium",
|
|
117
|
+
continuity,
|
|
118
|
+
sampleCount: continuitySampleCount,
|
|
119
|
+
thresholdSampleCount: continuityThresholdSampleCount,
|
|
120
|
+
});
|
|
121
|
+
observations.push(observation("spo2-below-90-run-count", "Junction SpO2 runs below 90%", "count", runEvidence.runCount, runQualifiers), observation("spo2-longest-below-90-sample-count", "Junction longest SpO2 sample run below 90%", "count", runEvidence.longestRunSampleCount, runQualifiers));
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
envelope,
|
|
125
|
+
observations,
|
|
126
|
+
status: "complete",
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function buildStressTemporalFeatures(samples) {
|
|
130
|
+
const continuity = assessContinuity(samples, STRESS_MAX_ADJACENT_GAP_SECONDS);
|
|
131
|
+
if (continuity.qualifyingPairs.length === 0) {
|
|
132
|
+
return { observations: [], status: "insufficient_temporal_evidence" };
|
|
133
|
+
}
|
|
134
|
+
const continuitySamples = continuity.participatingSampleIndexes.flatMap((index) => {
|
|
135
|
+
const sample = samples[index];
|
|
136
|
+
return sample ? [sample] : [];
|
|
137
|
+
});
|
|
138
|
+
const unroundedDailyMean = continuitySamples.reduce((sum, sample) => sum + sample.value, 0)
|
|
139
|
+
/ continuitySamples.length;
|
|
140
|
+
const dailyMean = round4(unroundedDailyMean);
|
|
141
|
+
const aboveDailyMeanRunCount = summarizeThresholdRuns(samples, continuity.qualifyingPairs, (value) => value > unroundedDailyMean).runCount;
|
|
142
|
+
const meanAbsoluteSuccessiveDifferenceValue = meanAbsoluteSuccessiveDifference(samples, continuity.qualifyingPairs);
|
|
143
|
+
const morning = evidenceForLocalMinuteWindow(samples, continuity.qualifyingPairs, MORNING_START_LOCAL_MINUTE, MORNING_END_LOCAL_MINUTE);
|
|
144
|
+
const evening = evidenceForLocalMinuteWindow(samples, continuity.qualifyingPairs, EVENING_START_LOCAL_MINUTE, EVENING_END_LOCAL_MINUTE);
|
|
145
|
+
const eveningMinusMorningMean = morning === null || evening === null
|
|
146
|
+
? null
|
|
147
|
+
: round4(evening.mean - morning.mean);
|
|
148
|
+
const envelope = {
|
|
149
|
+
schema: "junction.timeseries_temporal_features.v2",
|
|
150
|
+
method: JUNCTION_TEMPORAL_FEATURE_METHOD,
|
|
151
|
+
kind: "stress_level",
|
|
152
|
+
sampleCount: continuitySamples.length,
|
|
153
|
+
sampleIntervalSeconds: continuity.sampleIntervalSeconds,
|
|
154
|
+
maxAdjacentGapSeconds: STRESS_MAX_ADJACENT_GAP_SECONDS,
|
|
155
|
+
qualifyingPairCount: continuity.qualifyingPairs.length,
|
|
156
|
+
dailyMean,
|
|
157
|
+
aboveDailyMeanRunCount,
|
|
158
|
+
meanAbsoluteSuccessiveDifference: meanAbsoluteSuccessiveDifferenceValue,
|
|
159
|
+
morningWindowStartLocalMinute: MORNING_START_LOCAL_MINUTE,
|
|
160
|
+
morningWindowEndLocalMinute: MORNING_END_LOCAL_MINUTE,
|
|
161
|
+
eveningWindowStartLocalMinute: EVENING_START_LOCAL_MINUTE,
|
|
162
|
+
eveningWindowEndLocalMinute: EVENING_END_LOCAL_MINUTE,
|
|
163
|
+
morningMean: morning?.mean ?? null,
|
|
164
|
+
morningSampleCount: morning?.sampleCount,
|
|
165
|
+
eveningMean: evening?.mean ?? null,
|
|
166
|
+
eveningSampleCount: evening?.sampleCount,
|
|
167
|
+
eveningMinusMorningMean,
|
|
168
|
+
};
|
|
169
|
+
const continuityQualifiers = evidenceQualifiers({
|
|
170
|
+
confidence: "medium",
|
|
171
|
+
continuity,
|
|
172
|
+
sampleCount: continuitySamples.length,
|
|
173
|
+
});
|
|
174
|
+
const observations = [
|
|
175
|
+
observation("stress-above-daily-mean-run-count", "Junction stress runs above the daily mean", "count", aboveDailyMeanRunCount, continuityQualifiers),
|
|
176
|
+
observation("stress-mean-absolute-successive-difference", "Junction stress mean absolute successive difference", "score", meanAbsoluteSuccessiveDifferenceValue, continuityQualifiers),
|
|
177
|
+
];
|
|
178
|
+
if (eveningMinusMorningMean !== null && morning && evening) {
|
|
179
|
+
observations.push(observation("stress-evening-minus-morning-score", "Junction evening minus morning stress score", "score", eveningMinusMorningMean, evidenceQualifiers({
|
|
180
|
+
confidence: "medium",
|
|
181
|
+
continuity,
|
|
182
|
+
eveningSampleCount: evening.sampleCount,
|
|
183
|
+
morningSampleCount: morning.sampleCount,
|
|
184
|
+
qualifyingPairCount: morning.qualifyingPairCount + evening.qualifyingPairCount,
|
|
185
|
+
sampleCount: continuitySamples.length,
|
|
186
|
+
})));
|
|
187
|
+
}
|
|
188
|
+
return { envelope, observations, status: "complete" };
|
|
189
|
+
}
|
|
190
|
+
function summarizeBelowThresholds(samples, thresholdsBelow) {
|
|
191
|
+
return summarizeSampleSeries({
|
|
192
|
+
stream: "junction-temporal-feature",
|
|
193
|
+
samples,
|
|
194
|
+
thresholdsBelow,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function assessContinuity(samples, maxAdjacentGapSeconds) {
|
|
198
|
+
const partitionCadences = [];
|
|
199
|
+
const qualifyingPairs = [];
|
|
200
|
+
let partitionStart = 0;
|
|
201
|
+
for (let index = 1; index <= samples.length; index += 1) {
|
|
202
|
+
const previous = samples[index - 1];
|
|
203
|
+
const current = samples[index];
|
|
204
|
+
const gapSeconds = previous && current
|
|
205
|
+
? (Date.parse(current.recordedAt) - Date.parse(previous.recordedAt)) / 1_000
|
|
206
|
+
: Infinity;
|
|
207
|
+
if (index < samples.length && gapSeconds <= maxAdjacentGapSeconds) {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
const partition = samples.slice(partitionStart, index);
|
|
211
|
+
if (partition.length > 1) {
|
|
212
|
+
const partitionCadence = summarizeBelowThresholds(partition, []).sampleIntervalSeconds;
|
|
213
|
+
if (partitionCadence !== null) {
|
|
214
|
+
partitionCadences.push(partitionCadence);
|
|
215
|
+
const qualifyingGapSeconds = Math.min(maxAdjacentGapSeconds, partitionCadence * 2.5);
|
|
216
|
+
for (let partitionIndex = partitionStart + 1; partitionIndex < index; partitionIndex += 1) {
|
|
217
|
+
const partitionPrevious = samples[partitionIndex - 1];
|
|
218
|
+
const partitionCurrent = samples[partitionIndex];
|
|
219
|
+
if (!partitionPrevious || !partitionCurrent) {
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
const partitionGapSeconds = (Date.parse(partitionCurrent.recordedAt)
|
|
223
|
+
- Date.parse(partitionPrevious.recordedAt)) / 1_000;
|
|
224
|
+
if (partitionGapSeconds > 0 && partitionGapSeconds <= qualifyingGapSeconds) {
|
|
225
|
+
qualifyingPairs.push({
|
|
226
|
+
currentIndex: partitionIndex,
|
|
227
|
+
previousIndex: partitionIndex - 1,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
partitionStart = index;
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
maxAdjacentGapSeconds,
|
|
237
|
+
participatingSampleIndexes: [...new Set(qualifyingPairs.flatMap((pair) => [
|
|
238
|
+
pair.previousIndex,
|
|
239
|
+
pair.currentIndex,
|
|
240
|
+
]))].sort((left, right) => left - right),
|
|
241
|
+
qualifyingPairs,
|
|
242
|
+
sampleIntervalSeconds: medianPositiveNumber(partitionCadences),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function medianPositiveNumber(values) {
|
|
246
|
+
if (values.length === 0) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
const sorted = [...values].sort((left, right) => left - right);
|
|
250
|
+
const midpoint = Math.floor(sorted.length / 2);
|
|
251
|
+
const median = sorted.length % 2 === 0
|
|
252
|
+
? ((sorted[midpoint - 1] ?? 0) + (sorted[midpoint] ?? 0)) / 2
|
|
253
|
+
: sorted[midpoint] ?? 0;
|
|
254
|
+
return median > 0 ? round4(median) : null;
|
|
255
|
+
}
|
|
256
|
+
function summarizeThresholdRuns(samples, qualifyingPairs, qualifies) {
|
|
257
|
+
let currentRun = 0;
|
|
258
|
+
let longestRun = 0;
|
|
259
|
+
let previousPairCurrentIndex = -1;
|
|
260
|
+
let runCount = 0;
|
|
261
|
+
for (const pair of qualifyingPairs) {
|
|
262
|
+
const previous = samples[pair.previousIndex];
|
|
263
|
+
const current = samples[pair.currentIndex];
|
|
264
|
+
if (!previous || !current || !qualifies(previous.value) || !qualifies(current.value)) {
|
|
265
|
+
currentRun = 0;
|
|
266
|
+
previousPairCurrentIndex = -1;
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
if (pair.previousIndex === previousPairCurrentIndex) {
|
|
270
|
+
currentRun += 1;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
currentRun = 2;
|
|
274
|
+
runCount += 1;
|
|
275
|
+
}
|
|
276
|
+
longestRun = Math.max(longestRun, currentRun);
|
|
277
|
+
previousPairCurrentIndex = pair.currentIndex;
|
|
278
|
+
}
|
|
279
|
+
return { longestRunSampleCount: longestRun, runCount };
|
|
280
|
+
}
|
|
281
|
+
function evidenceForLocalMinuteWindow(samples, qualifyingPairs, startMinute, endMinute) {
|
|
282
|
+
const sampleIndexes = new Set();
|
|
283
|
+
let qualifyingPairCount = 0;
|
|
284
|
+
for (const pair of qualifyingPairs) {
|
|
285
|
+
const previous = samples[pair.previousIndex];
|
|
286
|
+
const current = samples[pair.currentIndex];
|
|
287
|
+
if (!previous || !current) {
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
if (minuteIsInWindow(previous.localMinuteOfDay, startMinute, endMinute)
|
|
291
|
+
&& minuteIsInWindow(current.localMinuteOfDay, startMinute, endMinute)) {
|
|
292
|
+
sampleIndexes.add(pair.previousIndex);
|
|
293
|
+
sampleIndexes.add(pair.currentIndex);
|
|
294
|
+
qualifyingPairCount += 1;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (qualifyingPairCount === 0) {
|
|
298
|
+
return null;
|
|
299
|
+
}
|
|
300
|
+
const values = [...sampleIndexes].map((index) => samples[index]?.value).filter((value) => value !== undefined);
|
|
301
|
+
return {
|
|
302
|
+
mean: round4(values.reduce((sum, value) => sum + value, 0) / values.length),
|
|
303
|
+
qualifyingPairCount,
|
|
304
|
+
sampleCount: values.length,
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function minuteIsInWindow(minute, startMinute, endMinute) {
|
|
308
|
+
return minute !== undefined && minute >= startMinute && minute < endMinute;
|
|
309
|
+
}
|
|
310
|
+
function meanAbsoluteSuccessiveDifference(samples, qualifyingPairs) {
|
|
311
|
+
const differenceTotal = qualifyingPairs.reduce((sum, pair) => {
|
|
312
|
+
const previous = samples[pair.previousIndex];
|
|
313
|
+
const current = samples[pair.currentIndex];
|
|
314
|
+
return previous && current ? sum + Math.abs(current.value - previous.value) : sum;
|
|
315
|
+
}, 0);
|
|
316
|
+
return round4(differenceTotal / qualifyingPairs.length);
|
|
317
|
+
}
|
|
318
|
+
function evidenceQualifiers(input) {
|
|
319
|
+
return {
|
|
320
|
+
derived: true,
|
|
321
|
+
evidenceConfidence: input.confidence,
|
|
322
|
+
evidenceMethod: JUNCTION_TEMPORAL_FEATURE_METHOD,
|
|
323
|
+
maxAdjacentGapSeconds: input.continuity.maxAdjacentGapSeconds,
|
|
324
|
+
qualifyingPairCount: input.qualifyingPairCount ?? input.continuity.qualifyingPairs.length,
|
|
325
|
+
sampleCount: input.sampleCount,
|
|
326
|
+
...(input.continuity.sampleIntervalSeconds === null
|
|
327
|
+
? {}
|
|
328
|
+
: { sampleIntervalSeconds: input.continuity.sampleIntervalSeconds }),
|
|
329
|
+
...(input.thresholdSampleCount === undefined
|
|
330
|
+
? {}
|
|
331
|
+
: { thresholdSampleCount: input.thresholdSampleCount }),
|
|
332
|
+
...(input.morningSampleCount === undefined
|
|
333
|
+
? {}
|
|
334
|
+
: { morningSampleCount: input.morningSampleCount }),
|
|
335
|
+
...(input.eveningSampleCount === undefined
|
|
336
|
+
? {}
|
|
337
|
+
: { eveningSampleCount: input.eveningSampleCount }),
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
function observation(metric, title, unit, value, qualifiers) {
|
|
341
|
+
return {
|
|
342
|
+
confidence: qualifiers.evidenceConfidence,
|
|
343
|
+
metric,
|
|
344
|
+
qualifiers,
|
|
345
|
+
title,
|
|
346
|
+
unit,
|
|
347
|
+
value: round4(value),
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function serializedByteLength(value) {
|
|
351
|
+
return new TextEncoder().encode(JSON.stringify(value)).byteLength;
|
|
352
|
+
}
|
|
353
|
+
function round4(value) {
|
|
354
|
+
return Number(value.toFixed(4));
|
|
355
|
+
}
|
|
356
|
+
//# sourceMappingURL=junction-timeseries-features.js.map
|
package/node_modules/@murphai/importers/dist/device-providers/junction-timeseries-features.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"junction-timeseries-features.js","sourceRoot":"","sources":["../../src/device-providers/junction-timeseries-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,CAAC,MAAM,6CAA6C,GAAG,KAAK,CAAC;AACnE,MAAM,CAAC,MAAM,gDAAgD,GAAG,MAAM,CAAC;AACvE,MAAM,CAAC,MAAM,kDAAkD,GAAG,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,4CAA4C,GAAG,KAAK,CAAC;AAClE,MAAM,CAAC,MAAM,gCAAgC,GAC3C,uDAAuD,CAAC;AAE1D,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/D,cAAc;IACd,cAAc;CACN,CAAC,CAAC;AAwFZ,6EAA6E;AAC7E,6EAA6E;AAC7E,4DAA4D;AAC5D,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAC1C,MAAM,qCAAqC,GAAG,CAAC,GAAG,EAAE,CAAC;AACrD,MAAM,+BAA+B,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AACzC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAEvC,MAAM,UAAU,iCAAiC,CAC/C,QAAgB;IAEhB,OAAQ,mCAAyD,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAG7C;IACC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,6CAA6C,EAAE,CAAC;QACzE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC;IAC9D,CAAC;IACD,MAAM,OAAO,GAAG,6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,EAAE,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAClB,MAAc,EACd,KAAa,EACb,IAAY,EACZ,KAAa,EACb,UAAwD;IAExD,OAAO;QACL,UAAU,EAAE,UAAU,CAAC,kBAAkB;QACzC,MAAM;QACN,UAAU;QACV,KAAK;QACL,IAAI;QACJ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;KACrB,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IAC1C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;AACpE,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type CompanionHrvRmssdAdmissionId, type CompanionHrvRmssdObservation } from "@murphai/contracts";
|
|
2
2
|
import { JUNCTION_ALLOWED_SUMMARY_RESOURCES } from "./junction-resources.ts";
|
|
3
3
|
import { type JunctionSparseIntervalResource } from "./junction-timeseries-fidelity.ts";
|
|
4
|
-
import { JUNCTION_ECG_VOLTAGE_FEATURE_SCHEMA, JUNCTION_WORKOUT_STREAM_FEATURE_SCHEMA, buildJunctionBoundedFeatureIdentity, reduceJunctionElectrocardiogramVoltageRecords, reduceJunctionWorkoutStreamPayload, resolveJunctionBoundedFeatureRecords, selectJunctionWorkoutStreamCandidates } from "./junction-bounded-features.ts";
|
|
4
|
+
import { JUNCTION_ECG_VOLTAGE_FEATURE_SCHEMA, JUNCTION_WORKOUT_STREAM_FEATURE_SCHEMA, JunctionWorkoutStreamTimestampCardinalityError, buildJunctionBoundedFeatureIdentity, reduceJunctionElectrocardiogramVoltageRecords, reduceJunctionWorkoutStreamPayload, resolveJunctionBoundedFeatureRecords, selectJunctionWorkoutStreamCandidates } from "./junction-bounded-features.ts";
|
|
5
|
+
import type { DeviceDataOrigin } from "../core-port.ts";
|
|
5
6
|
import type { DeviceProviderAdapter, DeviceProviderNormalizationContext, NormalizedDeviceBatch } from "./types.ts";
|
|
6
7
|
export { JUNCTION_DENSE_FIDELITY_RESOURCES, } from "./junction-timeseries-fidelity.ts";
|
|
7
8
|
export { JUNCTION_ALLOWED_SUMMARY_RESOURCES, JUNCTION_ALLOWED_TIMESERIES_RESOURCES, JUNCTION_DEFAULT_SUMMARY_RESOURCES, JUNCTION_DEFAULT_TIMESERIES_RESOURCES, JUNCTION_KNOWN_TIMESERIES_RESOURCES, JUNCTION_OPT_IN_SUMMARY_RESOURCES, JUNCTION_OPT_IN_TIMESERIES_RESOURCES, JUNCTION_RAW_ONLY_SUMMARY_RESOURCES, normalizeJunctionResourceName, type JunctionTimeseriesResource, } from "./junction-resources.ts";
|
|
8
|
-
export { JUNCTION_ECG_VOLTAGE_FEATURE_SCHEMA, JUNCTION_WORKOUT_STREAM_FEATURE_SCHEMA, buildJunctionBoundedFeatureIdentity, reduceJunctionElectrocardiogramVoltageRecords, reduceJunctionWorkoutStreamPayload, resolveJunctionBoundedFeatureRecords, selectJunctionWorkoutStreamCandidates, };
|
|
9
|
+
export { JUNCTION_ECG_VOLTAGE_FEATURE_SCHEMA, JUNCTION_WORKOUT_STREAM_FEATURE_SCHEMA, JunctionWorkoutStreamTimestampCardinalityError, buildJunctionBoundedFeatureIdentity, reduceJunctionElectrocardiogramVoltageRecords, reduceJunctionWorkoutStreamPayload, resolveJunctionBoundedFeatureRecords, selectJunctionWorkoutStreamCandidates, };
|
|
9
10
|
export interface JunctionCompanionHrvRmssdSnapshotEntry {
|
|
10
11
|
admissionId: CompanionHrvRmssdAdmissionId;
|
|
11
12
|
observation: CompanionHrvRmssdObservation;
|
|
@@ -21,6 +22,12 @@ export interface JunctionSnapshotInput {
|
|
|
21
22
|
summaries?: Record<string, unknown>;
|
|
22
23
|
timeseries?: Record<string, unknown>;
|
|
23
24
|
companionHrvRmssd?: JunctionCompanionHrvRmssdSnapshotEntry;
|
|
25
|
+
canonicalCoverageFence?: JunctionCanonicalCoverageFence;
|
|
26
|
+
canonicalCoverageProviderPulledAt?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface JunctionCanonicalCoverageFence {
|
|
29
|
+
readonly coverageBoundaryByResource: Readonly<Record<string, string | null>>;
|
|
30
|
+
readonly sourceProviderSlug: string;
|
|
24
31
|
}
|
|
25
32
|
export type JunctionTimeseriesWindowKind = "calendar_day" | "precise";
|
|
26
33
|
export interface JunctionSparseCalendarRepairExpectation {
|
|
@@ -43,6 +50,36 @@ export interface JunctionBloodPressureProviderRecordIdentityEvidence {
|
|
|
43
50
|
readonly providerRecordCount: number;
|
|
44
51
|
readonly repairStableExternalRefResourceIds: readonly (string | null)[];
|
|
45
52
|
}
|
|
53
|
+
export interface JunctionCanonicalCoverageEvidence {
|
|
54
|
+
readonly coverageBoundary: string;
|
|
55
|
+
readonly coverageFinalizedAt?: string;
|
|
56
|
+
readonly resource: string;
|
|
57
|
+
readonly sourceProviderSlug: string;
|
|
58
|
+
}
|
|
59
|
+
export interface JunctionCanonicalCoverageDerivationOptions {
|
|
60
|
+
readonly providerPulledAt?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface JunctionCanonicalCoverageEvent {
|
|
63
|
+
readonly dataOrigin?: {
|
|
64
|
+
readonly sourceProviderSlug?: string;
|
|
65
|
+
readonly timeZoneOffsetMinutes?: number | null;
|
|
66
|
+
};
|
|
67
|
+
readonly dayKey?: string;
|
|
68
|
+
readonly endAt?: string;
|
|
69
|
+
readonly externalRef?: {
|
|
70
|
+
readonly resourceType: string;
|
|
71
|
+
};
|
|
72
|
+
readonly fields?: Readonly<Record<string, unknown>>;
|
|
73
|
+
readonly kind: string;
|
|
74
|
+
readonly occurredAt: string;
|
|
75
|
+
readonly sample?: {
|
|
76
|
+
readonly endAt?: string;
|
|
77
|
+
};
|
|
78
|
+
readonly timeZone?: string;
|
|
79
|
+
readonly workout?: {
|
|
80
|
+
readonly endedAt?: string;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
46
83
|
export interface JunctionDailyTimeseriesAggregateIdentity {
|
|
47
84
|
dayKey: string;
|
|
48
85
|
resource: string;
|
|
@@ -50,17 +87,53 @@ export interface JunctionDailyTimeseriesAggregateIdentity {
|
|
|
50
87
|
sourceProviderSlug: string;
|
|
51
88
|
sourceType?: string | null;
|
|
52
89
|
}
|
|
90
|
+
type TimestampSemantics = NonNullable<DeviceDataOrigin["timestampSemantics"]>;
|
|
53
91
|
export declare function normalizeJunctionSnapshot(snapshot: JunctionSnapshotInput, providerContext?: DeviceProviderNormalizationContext): NormalizedDeviceBatch;
|
|
92
|
+
/**
|
|
93
|
+
* Derives provider cutover coverage only from the canonical events returned by
|
|
94
|
+
* the committed vault import. This deliberately does not replay raw Junction
|
|
95
|
+
* normalization: the stored event owns the canonical provider day or interval.
|
|
96
|
+
* Daily coverage becomes final only when a provider pull performed after its
|
|
97
|
+
* local day closed accepts that day. Inline payloads can advance the fence but
|
|
98
|
+
* cannot finalize it. Interval coverage remains anchored to its accepted end.
|
|
99
|
+
*/
|
|
100
|
+
export declare function deriveJunctionCanonicalCoverageEvidence(events: readonly JunctionCanonicalCoverageEvent[], options?: JunctionCanonicalCoverageDerivationOptions): readonly JunctionCanonicalCoverageEvidence[];
|
|
54
101
|
export declare function classifyJunctionSummaryNormalizationEvidence(snapshot: Pick<JunctionSnapshotInput, "connections" | "importedAt" | "summaries" | "windowEnd" | "windowStart">, evidenceWindow?: JunctionSummaryNormalizationEvidenceWindow): readonly JunctionSummaryNormalizationEvidence[];
|
|
55
102
|
export declare function identifyJunctionBloodPressureProviderRecords(snapshot: Pick<JunctionSnapshotInput, "connections" | "importedAt" | "timeseries" | "windowEnd" | "windowStart">): JunctionBloodPressureProviderRecordIdentityEvidence;
|
|
56
103
|
/** Count provider rows accepted by the canonical daily-aggregate parser. */
|
|
57
104
|
export declare function countAcceptedJunctionDailyTimeseriesProviderRecords(snapshot: Pick<JunctionSnapshotInput, "connections" | "importedAt" | "timeseries" | "windowEnd" | "windowStart">): number;
|
|
58
105
|
export declare function canNormalizeJunctionSleepCycleRecordToCompactStages(record: Record<string, unknown>, sourceProviderSlug: string): boolean;
|
|
106
|
+
export type JunctionCalendarRefreshNormalizationFailureReason = "daily.timestamp_or_day_unresolved" | "daily.value_missing" | "daily.value_non_numeric" | "daily.value_out_of_range" | "source_context.unresolved" | "source_day.outside_authorized_day" | "sparse_interval.row_incomplete" | "temporal.local_time_ambiguous_or_nonexistent" | "temporal.timestamp_invalid" | "temporal.timestamp_missing_or_non_string" | "temporal.timestamp_semantics_mismatch";
|
|
107
|
+
export type JunctionNormalizationTimestampKind = "absolute" | "date_only" | "floating" | "invalid" | "missing";
|
|
108
|
+
export interface JunctionCalendarRefreshNormalizationDiagnostic {
|
|
109
|
+
reason: JunctionCalendarRefreshNormalizationFailureReason;
|
|
110
|
+
rowOrdinal?: number;
|
|
111
|
+
sourceProvider?: string;
|
|
112
|
+
timestampKind?: JunctionNormalizationTimestampKind;
|
|
113
|
+
timestampSemantics?: TimestampSemantics;
|
|
114
|
+
}
|
|
59
115
|
export declare class JunctionSparseCalendarRepairNormalizationError extends Error {
|
|
60
116
|
readonly code = "JUNCTION_CALENDAR_REFRESH_INCOMPLETE_NORMALIZATION";
|
|
117
|
+
readonly diagnostic: Readonly<JunctionCalendarRefreshNormalizationDiagnostic>;
|
|
61
118
|
readonly retryable = true;
|
|
62
|
-
constructor();
|
|
119
|
+
constructor(diagnostic: JunctionCalendarRefreshNormalizationDiagnostic);
|
|
63
120
|
}
|
|
121
|
+
export declare function normalizeJunctionCanonicalBodyTimestamp(value: unknown): string | undefined;
|
|
122
|
+
export type JunctionCompleteDayTimestamp = {
|
|
123
|
+
kind: "date-only";
|
|
124
|
+
dayKey: string;
|
|
125
|
+
} | {
|
|
126
|
+
kind: "floating";
|
|
127
|
+
dayKey: string;
|
|
128
|
+
hour: number;
|
|
129
|
+
minute: number;
|
|
130
|
+
second: number;
|
|
131
|
+
millisecond: number;
|
|
132
|
+
} | {
|
|
133
|
+
kind: "absolute";
|
|
134
|
+
instant: string;
|
|
135
|
+
};
|
|
136
|
+
export declare function parseJunctionCompleteDayTimestamp(value: string): JunctionCompleteDayTimestamp | null;
|
|
64
137
|
export declare function buildJunctionDailyTimeseriesAggregateResourceId(input: JunctionDailyTimeseriesAggregateIdentity): string;
|
|
65
138
|
export declare function resolveJunctionWeightProviderRecordIdentity(entry: Record<string, unknown>): {
|
|
66
139
|
providerReadingId: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"junction.d.ts","sourceRoot":"","sources":["../../src/device-providers/junction.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"junction.d.ts","sourceRoot":"","sources":["../../src/device-providers/junction.ts"],"names":[],"mappings":"AAEA,OAAO,EAcL,KAAK,4BAA4B,EAEjC,KAAK,4BAA4B,EAMlC,MAAM,oBAAoB,CAAC;AAkB5B,OAAO,EACL,kCAAkC,EAmDnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAWL,KAAK,8BAA8B,EAEpC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mCAAmC,EACnC,sCAAsC,EACtC,8CAA8C,EAC9C,mCAAmC,EACnC,6CAA6C,EAC7C,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACtC,MAAM,gCAAgC,CAAC;AAmBxC,OAAO,KAAK,EAEV,gBAAgB,EAKjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EACV,qBAAqB,EACrB,kCAAkC,EAClC,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iCAAiC,GAClC,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,qCAAqC,EACrC,mCAAmC,EACnC,iCAAiC,EACjC,oCAAoC,EACpC,mC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