@murphai/murph 1.2.0 → 1.2.4
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 +1303 -0
- package/config.schema.json +412 -50
- package/dist/cli-entry.d.ts.map +1 -1
- package/dist/cli-entry.js +13 -20
- package/dist/cli-entry.js.map +1 -1
- package/dist/commands/audit-command-helpers.js.map +1 -1
- package/dist/commands/audit.js +2 -2
- package/dist/commands/automation.d.ts +118 -7
- package/dist/commands/automation.d.ts.map +1 -1
- package/dist/commands/automation.js +140 -54
- package/dist/commands/automation.js.map +1 -1
- package/dist/commands/batch.d.ts.map +1 -1
- package/dist/commands/batch.js +12 -4
- package/dist/commands/batch.js.map +1 -1
- package/dist/commands/capture.d.ts +9 -9
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/clinical-imports.d.ts +101 -101
- package/dist/commands/command-factory-primitives.d.ts +3 -3
- package/dist/commands/command-factory-primitives.d.ts.map +1 -1
- package/dist/commands/command-factory-primitives.js +1 -1
- package/dist/commands/commons.d.ts +9 -9
- package/dist/commands/document.d.ts.map +1 -1
- package/dist/commands/document.js +3 -0
- package/dist/commands/document.js.map +1 -1
- package/dist/commands/encounter.d.ts +42 -42
- package/dist/commands/encounter.d.ts.map +1 -1
- package/dist/commands/event.js +1 -1
- package/dist/commands/exercise.js.map +1 -1
- package/dist/commands/experiment.d.ts.map +1 -1
- package/dist/commands/experiment.js +1 -0
- package/dist/commands/experiment.js.map +1 -1
- package/dist/commands/export-intake-read-helpers.d.ts +4 -4
- package/dist/commands/export-intake-read-helpers.d.ts.map +1 -1
- package/dist/commands/export-intake-read-helpers.js +1 -1
- package/dist/commands/export-intake-read-helpers.js.map +1 -1
- package/dist/commands/export.js +1 -1
- package/dist/commands/food.d.ts +4 -4
- package/dist/commands/food.js +1 -1
- package/dist/commands/group.d.ts +81 -0
- package/dist/commands/group.d.ts.map +1 -0
- package/dist/commands/group.js +242 -0
- package/dist/commands/group.js.map +1 -0
- package/dist/commands/habitat.d.ts +3 -0
- package/dist/commands/habitat.d.ts.map +1 -0
- package/dist/commands/habitat.js +282 -0
- package/dist/commands/habitat.js.map +1 -0
- package/dist/commands/health-allergy-save.d.ts.map +1 -1
- package/dist/commands/health-allergy-save.js +1 -1
- package/dist/commands/health-allergy-save.js.map +1 -1
- package/dist/commands/health-condition-save.d.ts.map +1 -1
- package/dist/commands/health-condition-save.js +1 -1
- package/dist/commands/health-condition-save.js.map +1 -1
- package/dist/commands/health-goal-save.d.ts.map +1 -1
- package/dist/commands/health-goal-save.js +1 -1
- package/dist/commands/health-goal-save.js.map +1 -1
- package/dist/commands/intake.js +1 -1
- package/dist/commands/intervention.d.ts.map +1 -1
- package/dist/commands/intervention.js +10 -0
- package/dist/commands/intervention.js.map +1 -1
- package/dist/commands/knowledge.js +2 -2
- package/dist/commands/measurement.d.ts +7 -7
- package/dist/commands/measurement.d.ts.map +1 -1
- package/dist/commands/medication.d.ts +3 -3
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +26 -2
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/model.js.map +1 -1
- package/dist/commands/murph-age.d.ts +499 -498
- package/dist/commands/murph-age.d.ts.map +1 -1
- package/dist/commands/murph-age.js +3 -2
- package/dist/commands/murph-age.js.map +1 -1
- package/dist/commands/payload-schema-command.d.ts +1 -1
- package/dist/commands/protocol.js +2 -2
- package/dist/commands/provider.js +1 -1
- package/dist/commands/recipe.js +1 -1
- package/dist/commands/record-mutation-command-helpers.d.ts +3 -3
- package/dist/commands/record-mutation-command-helpers.d.ts.map +1 -1
- package/dist/commands/research.js.map +1 -1
- package/dist/commands/sample-batch-command-helpers.js.map +1 -1
- package/dist/commands/sample-import-command-helpers.d.ts.map +1 -1
- package/dist/commands/sample-query-command-helpers.d.ts +1 -1
- package/dist/commands/sample-query-command-helpers.d.ts.map +1 -1
- package/dist/commands/sample-query-command-helpers.js.map +1 -1
- package/dist/commands/samples.js +2 -2
- package/dist/commands/scheduled-log.d.ts +127 -275
- package/dist/commands/scheduled-log.d.ts.map +1 -1
- package/dist/commands/scheduled-log.js +28 -3
- package/dist/commands/scheduled-log.js.map +1 -1
- package/dist/commands/search.js +1 -1
- package/dist/commands/supplement.js +1 -1
- package/dist/commands/vault.d.ts +2 -1
- package/dist/commands/vault.d.ts.map +1 -1
- package/dist/commands/vault.js +111 -1
- package/dist/commands/vault.js.map +1 -1
- package/dist/commands/wearables.d.ts +695 -667
- package/dist/commands/wearables.d.ts.map +1 -1
- package/dist/commands/wearables.js +10 -3
- package/dist/commands/wearables.js.map +1 -1
- package/dist/commands/workout.d.ts.map +1 -1
- package/dist/commands/workout.js +9 -2
- package/dist/commands/workout.js.map +1 -1
- package/dist/device-services.d.ts.map +1 -1
- package/dist/device-services.js +33 -8
- package/dist/device-services.js.map +1 -1
- package/dist/food-labels.d.ts +39 -39
- package/dist/food-labels.js.map +1 -1
- package/dist/foreground-terminal-logging.js.map +1 -1
- package/dist/hosted-data-api-labels.d.ts +117 -117
- package/dist/hosted-data-api-labels.js.map +1 -1
- package/dist/incur.generated.d.ts +93 -0
- package/dist/incur.generated.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/mapbox-route-contracts.d.ts +13 -13
- package/dist/mapbox-route-contracts.d.ts.map +1 -1
- package/dist/mapbox-route.js.map +1 -1
- package/dist/research-scout-client.js.map +1 -1
- package/dist/supplement-labels.d.ts +39 -39
- package/dist/supplement-labels.js.map +1 -1
- package/dist/vault-cli-command-manifest.d.ts +1451 -1478
- package/dist/vault-cli-command-manifest.d.ts.map +1 -1
- package/dist/vault-cli-command-manifest.js +80 -2
- package/dist/vault-cli-command-manifest.js.map +1 -1
- package/dist/vault-cli-command-routing.d.ts.map +1 -1
- package/dist/vault-cli-command-routing.js +79 -2
- package/dist/vault-cli-command-routing.js.map +1 -1
- package/dist/vault-cli-package.d.ts +1 -1
- package/dist/vault-cli-package.d.ts.map +1 -1
- package/dist/vault-cli-package.js.map +1 -1
- package/dist/vault-cli-routing.d.ts +4 -1
- package/dist/vault-cli-routing.d.ts.map +1 -1
- package/dist/vault-cli-routing.js +45 -5
- package/dist/vault-cli-routing.js.map +1 -1
- package/dist/vault-cli-shell.d.ts +3 -1
- package/dist/vault-cli-shell.d.ts.map +1 -1
- package/dist/vault-cli-shell.js +4 -1
- package/dist/vault-cli-shell.js.map +1 -1
- package/dist/vault-cli-skill-hash.generated.d.ts +2 -0
- package/dist/vault-cli-skill-hash.generated.d.ts.map +1 -0
- package/dist/vault-cli-skill-hash.generated.js +3 -0
- package/dist/vault-cli-skill-hash.generated.js.map +1 -0
- package/dist/vault-cli-vault-context.js.map +1 -1
- package/dist/vault-cli.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/automation/run-loop.d.ts +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/doctor-security.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/doctor.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/service.d.ts +24 -22
- package/node_modules/@murphai/assistant-cli/dist/assistant/service.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/stop.d.ts +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/store.d.ts +3 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/store.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/store.js +5 -2
- package/node_modules/@murphai/assistant-cli/dist/assistant/store.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-composer-panel.d.ts +4 -4
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-composer-panel.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-layout.d.ts +9 -9
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-layout.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-message-text.d.ts +4 -4
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-message-text.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-message-text.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-transcript.d.ts +4 -4
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink-transcript.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/ink.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/theme.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/view-model.d.ts +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant/ui/view-model.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant-daemon-client.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/assistant-daemon-client.js +2 -2
- package/node_modules/@murphai/assistant-cli/dist/assistant-daemon-client.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/commands/assistant.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/commands/assistant.js +52 -7
- package/node_modules/@murphai/assistant-cli/dist/commands/assistant.js.map +1 -1
- package/node_modules/@murphai/assistant-cli/dist/run-terminal-logging.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/README.md +55 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-experiment-context.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-experiment-context.js +36 -24
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-experiment-context.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-controller.d.ts +10 -0
- 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 +89 -7
- 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.d.ts +36 -36
- package/node_modules/@murphai/assistant-engine/dist/assistant/active-turn-input-journal.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.d.ts +32 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.js +347 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/ask-continuation.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-artifact-paths.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-artifact-paths.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-evidence-model.d.ts +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-evidence-model.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-evidence-model.js +163 -42
- package/node_modules/@murphai/assistant-engine/dist/assistant/attachment-evidence-model.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/evidence.d.ts +3 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/evidence.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/evidence.js +8 -7
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/evidence.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/grouping.d.ts +2 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/grouping.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/grouping.js +11 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/grouping.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/input-summary.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/input-summary.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/input-summary.js +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/input-summary.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/operation-scope.d.ts +11 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/operation-scope.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/operation-scope.js +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/operation-scope.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/prompt-builder.d.ts +18 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/prompt-builder.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/prompt-builder.js +66 -16
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/prompt-builder.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/reply.d.ts +26 -8
- 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 +644 -158
- 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 +15 -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 +90 -29
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/run-loop.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/scanner.d.ts +6 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/scanner.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/scanner.js +18 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/scanner.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/shared.d.ts +9 -1
- 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/automation/target-override.d.ts +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/target-override.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/target-override.js +30 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/target-override.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/turn-envelope.d.ts +4 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/turn-envelope.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/turn-envelope.js +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation/turn-envelope.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation.d.ts +5 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation.js +3 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/automation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/bindings.d.ts +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/bindings.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/bindings.js +22 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/bindings.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-adapters.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-adapters.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-adapters.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-adapters.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-typing.d.ts +4 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-typing.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-typing.js +51 -18
- package/node_modules/@murphai/assistant-engine/dist/assistant/channel-typing.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/descriptors.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/descriptors.js +87 -49
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/descriptors.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/helpers.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/helpers.js +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/helpers.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/runtime.d.ts +2 -10
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/runtime.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/runtime.js +80 -61
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/runtime.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/types.d.ts +31 -20
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/types.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/channels/types.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-bootstrap.d.ts +5 -24
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-bootstrap.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-bootstrap.js +95 -228
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-bootstrap.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-contract.generated.json +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cli-surface-manifest.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-contract-fingerprint.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-resume-binding.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-resume-binding.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-resume-binding.js +24 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-resume-binding.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-thread-route.d.ts +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-thread-route.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-thread-route.js +26 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-thread-route.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/attempt-observability.d.ts +0 -29
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/attempt-observability.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/attempt-observability.js +50 -129
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/attempt-observability.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/codex-turn/planning.d.ts +22 -19
- 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 +186 -109
- 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 +9 -8
- 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 +42 -73
- 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.d.ts +3 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/context-snapshot.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/context-snapshot.js +83 -91
- package/node_modules/@murphai/assistant-engine/dist/assistant/context-snapshot.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-policy.d.ts +4 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-policy.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-policy.js +48 -11
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-policy.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-ref.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/conversation-ref.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/canonical-jobs.d.ts +3 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/canonical-jobs.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/canonical-jobs.js +33 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/canonical-jobs.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/delivery-reconciliation.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/delivery-reconciliation.js +38 -31
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/delivery-reconciliation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/execution.d.ts +47 -6
- 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 +881 -117
- 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.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.js +84 -19
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/schedule.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/scheduled-log.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/scheduled-log.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/scheduled-log.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/scheduled-log.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/store.d.ts +4 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/store.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/store.js +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/store.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/targets.d.ts +7 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/targets.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/targets.js +27 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron/targets.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron.d.ts +9 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron.js +134 -65
- package/node_modules/@murphai/assistant-engine/dist/assistant/cron.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 +131 -22
- package/node_modules/@murphai/assistant-engine/dist/assistant/delivery-service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-automations.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-automations.js +58 -90
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-automations.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-cron-tags.d.ts +4 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-cron-tags.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-cron-tags.js +9 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/device-activity-cron-tags.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/diagnostics.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/diagnostics.js +6 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/diagnostics.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/execution-context.d.ts +43 -3
- 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 +79 -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 +5 -3
- 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 +73 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant/experiment-support-automations.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/fault-injection.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/first-contact-welcome.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/first-contact-welcome.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/generate-cli-surface-contract.js +1 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/generate-cli-surface-contract.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-context-diagnostics.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-context-diagnostics.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-context-diagnostics.js +0 -27
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-context-diagnostics.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-mailbox-input-items.d.ts +22 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-mailbox-input-items.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-mailbox-input-items.js +78 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-mailbox-input-items.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.d.ts +46 -3
- 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 +47 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-tool-context.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-turn-timing.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-turn-timing.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-turn-timing.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/hosted-turn-timing.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/inbox-attachment-evidence.js +23 -12
- package/node_modules/@murphai/assistant-engine/dist/assistant/inbox-attachment-evidence.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-source.d.ts +8 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-source.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-source.js +37 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-source.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-store.d.ts +109 -44
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-store.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-store.js +46 -10
- package/node_modules/@murphai/assistant-engine/dist/assistant/input-store.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 +335 -120
- package/node_modules/@murphai/assistant-engine/dist/assistant/local-service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/maintenance-evidence.d.ts +7 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/maintenance-evidence.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/maintenance-evidence.js +101 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/maintenance-evidence.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/managed-automations.d.ts +69 -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 +234 -49
- 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 +1 -1
- 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 +3 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant/model-behavior.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/newsletter-outbox.d.ts +12 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/newsletter-outbox.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/newsletter-outbox.js +294 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/newsletter-outbox.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.d.ts +20 -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 +556 -113
- package/node_modules/@murphai/assistant-engine/dist/assistant/notification-turn.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-automation.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-automation.js +11 -9
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-followup-automation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/onboarding-state.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/operator-authority.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/operator-authority.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/dispatch-state.d.ts +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/dispatch-state.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/dispatch-state.js +132 -21
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/dispatch-state.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/ordering.d.ts +7 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/ordering.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/ordering.js +140 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/ordering.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/retry-policy.d.ts +3 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/retry-policy.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/retry-policy.js +79 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox/retry-policy.js.map +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 +28 -2
- 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 +20 -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 +154 -19
- package/node_modules/@murphai/assistant-engine/dist/assistant/outbox.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/progress-constants.d.ts +7 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/progress-constants.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/progress-constants.js +16 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/progress-constants.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/provider-progress.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/provider-progress.d.ts.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 +55 -173
- 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.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/providers/helpers.js +5 -3
- 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 +24 -25
- 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/receipts.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/receipts.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-bubbles.d.ts +6 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-bubbles.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-bubbles.js +47 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/reply-bubbles.js.map +1 -0
- 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 +8 -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-budget-policy.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-budgets.d.ts +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-budgets.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-budgets.js +92 -40
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-budgets.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.d.ts +3 -0
- 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 +107 -37
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-residue.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-write-lock.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-write-lock.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-write-lock.js +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/runtime-write-lock.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-contracts.d.ts +15 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-turn-routes.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-turn-routes.js +11 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-turn-routes.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.d.ts +2 -0
- 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 +9 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service-usage.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service.d.ts +29 -24
- package/node_modules/@murphai/assistant-engine/dist/assistant/service.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/service.js +5 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/session-resolution.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/session-resolution.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/session-resolution.js +81 -13
- package/node_modules/@murphai/assistant-engine/dist/assistant/session-resolution.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/state-write-lock.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/state-write-lock.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/state-write-lock.js +35 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant/state-write-lock.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/status.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/status.js +36 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant/status.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/paths.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/paths.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/paths.js +23 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/paths.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/persistence.d.ts +6 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/persistence.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/persistence.js +137 -16
- package/node_modules/@murphai/assistant-engine/dist/assistant/store/persistence.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 +6 -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 +94 -22
- 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 +16 -6
- 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 +546 -230
- package/node_modules/@murphai/assistant-engine/dist/assistant/system-prompt.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/transcript-audit.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-finalizer.d.ts +16 -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 +58 -10
- 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 +2 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-input.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-input.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-plan.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-plan.js +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-plan.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-progress.d.ts +3 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-progress.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-progress.js +29 -22
- package/node_modules/@murphai/assistant-engine/dist/assistant/turn-progress.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turns.d.ts +7 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turns.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/turns.js +33 -5
- package/node_modules/@murphai/assistant-engine/dist/assistant/turns.js.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/vault-file-send.d.ts +12 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/vault-file-send.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/vault-file-send.js +53 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant/vault-file-send.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.d.ts +70 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.js +218 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-ask.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-adapters.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-adapters.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-adapters.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-adapters.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-runtime.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-runtime.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-runtime.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-channel-runtime.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 +4 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-cli-access.js.map +1 -1
- 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 +25 -1
- 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 +5 -0
- 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 +12 -5
- 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/dynamic-tools/assistant-style.d.ts +82 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/assistant-style.d.ts.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/assistant-style.js +190 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/assistant-style.js.map +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/connected-apps.d.ts +18 -18
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/connected-apps.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/connected-apps.js +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/connected-apps.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-song.d.ts +8 -8
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-song.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-song.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-song.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-voice-memo.d.ts +10 -10
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/generate-voice-memo.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/phone-calls.d.ts +4 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/phone-calls.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/phone-calls.js +17 -8
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools/phone-calls.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/dynamic-tools.d.ts +1273 -268
- 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 +1724 -34
- 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.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/failures.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/failures.js +4 -13
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/failures.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-image-tool.d.ts +3 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-image-tool.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-image-tool.js +352 -74
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-image-tool.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-voice-memo-tool.d.ts +1 -0
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-voice-memo-tool.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-voice-memo-tool.js +6 -12
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/generate-voice-memo-tool.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/image-reference-resolver.d.ts +2 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/image-reference-resolver.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/image-reference-resolver.js +89 -39
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/image-reference-resolver.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/openai-image-generation.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/openai-image-generation.js +4 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/openai-image-generation.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex-events.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex-events.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex-events.js +1 -6
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex-events.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.d.ts +23 -15
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.js +868 -533
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-service.d.ts +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-service.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-service.js +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.d.ts +140 -48
- 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 +118 -3
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-assets.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-skill-env.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/attachment-prompt-contracts.d.ts +17 -17
- package/node_modules/@murphai/assistant-engine/dist/attachment-prompt-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/codex-lifecycle.d.ts +3 -1
- package/node_modules/@murphai/assistant-engine/dist/codex-lifecycle.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/codex-lifecycle.js +7 -1
- package/node_modules/@murphai/assistant-engine/dist/codex-lifecycle.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/inbox-routing-vision.d.ts +2 -2
- package/node_modules/@murphai/assistant-engine/dist/inbox-routing-vision.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/index.d.ts +2 -0
- 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/dist/knowledge/service.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/outbound-channel.d.ts +3 -2
- package/node_modules/@murphai/assistant-engine/dist/outbound-channel.d.ts.map +1 -1
- package/node_modules/@murphai/assistant-engine/dist/outbound-channel.js +4 -2
- package/node_modules/@murphai/assistant-engine/dist/outbound-channel.js.map +1 -1
- package/node_modules/@murphai/assistant-engine/package.json +4 -0
- package/node_modules/@murphai/assistant-engine/skills/aerobic-fitness/SKILL.md +56 -0
- package/node_modules/@murphai/assistant-engine/skills/appointment-scheduling/SKILL.md +249 -0
- package/node_modules/@murphai/assistant-engine/skills/behavior-followthrough/SKILL.md +18 -9
- package/node_modules/@murphai/assistant-engine/skills/body-composition/SKILL.md +56 -0
- package/node_modules/@murphai/assistant-engine/skills/cardiometabolic-health/SKILL.md +56 -0
- package/node_modules/@murphai/assistant-engine/skills/circadian-rhythm/SKILL.md +57 -0
- package/node_modules/@murphai/assistant-engine/skills/cognitive-focus/SKILL.md +55 -0
- package/node_modules/@murphai/assistant-engine/skills/computer-use/SKILL.md +163 -121
- package/node_modules/@murphai/assistant-engine/skills/computer-use/references/health-browser-playbook.md +16 -9
- package/node_modules/@murphai/assistant-engine/skills/cycle-hormonal-health/SKILL.md +55 -0
- package/node_modules/@murphai/assistant-engine/skills/daily-activity/SKILL.md +55 -0
- package/node_modules/@murphai/assistant-engine/skills/energy-fatigue/SKILL.md +57 -0
- package/node_modules/@murphai/assistant-engine/skills/experiment-onboarding/SKILL.md +24 -10
- package/node_modules/@murphai/assistant-engine/skills/food-journal/SKILL.md +26 -0
- package/node_modules/@murphai/assistant-engine/skills/general-eye-health/SKILL.md +77 -0
- package/node_modules/@murphai/assistant-engine/skills/general-eye-health/references/evidence-register.md +34 -0
- package/node_modules/@murphai/assistant-engine/skills/general-eye-health/references/triage-and-contact-lenses.md +103 -0
- package/node_modules/@murphai/assistant-engine/skills/group-challenge/SKILL.md +346 -0
- package/node_modules/@murphai/assistant-engine/skills/group-chat/SKILL.md +296 -0
- package/node_modules/@murphai/assistant-engine/skills/group-newsletter/SKILL.md +210 -0
- package/node_modules/@murphai/assistant-engine/skills/groupchat-comedy/SKILL.md +182 -0
- package/node_modules/@murphai/assistant-engine/skills/gut-digestion/SKILL.md +57 -0
- package/node_modules/@murphai/assistant-engine/skills/hrv-resting-heart-rate/SKILL.md +55 -0
- package/node_modules/@murphai/assistant-engine/skills/micronutrients-supplements/SKILL.md +80 -0
- package/node_modules/@murphai/assistant-engine/skills/mobility-posture/SKILL.md +56 -0
- package/node_modules/@murphai/assistant-engine/skills/murph-onboarding/SKILL.md +358 -124
- package/node_modules/@murphai/assistant-engine/skills/music-generation/SKILL.md +162 -0
- package/node_modules/@murphai/assistant-engine/skills/nutrition-strategy/SKILL.md +73 -109
- package/node_modules/@murphai/assistant-engine/skills/physical-therapy/SKILL.md +3 -1
- package/node_modules/@murphai/assistant-engine/skills/recovery-modalities/SKILL.md +57 -0
- package/node_modules/@murphai/assistant-engine/skills/red-light-therapy/SKILL.md +145 -0
- package/node_modules/@murphai/assistant-engine/skills/red-light-therapy/device-seeds.json +259 -0
- package/node_modules/@murphai/assistant-engine/skills/shared/exercise-catalog-runtime.md +29 -0
- package/node_modules/@murphai/assistant-engine/skills/shared/murph-character-sheet-v1.png +0 -0
- package/node_modules/@murphai/assistant-engine/skills/sleep-improvement/SKILL.md +60 -0
- package/node_modules/@murphai/assistant-engine/skills/sleep-recovery-readiness/SKILL.md +68 -178
- package/node_modules/@murphai/assistant-engine/skills/strength-training/SKILL.md +1 -1
- package/node_modules/@murphai/assistant-engine/skills/substance-load/SKILL.md +56 -0
- package/node_modules/@murphai/assistantd/dist/client.js.map +1 -1
- package/node_modules/@murphai/assistantd/dist/config.js.map +1 -1
- package/node_modules/@murphai/assistantd/dist/http-protocol.d.ts.map +1 -1
- package/node_modules/@murphai/assistantd/dist/http-protocol.js.map +1 -1
- package/node_modules/@murphai/clinical-records/README.md +82 -0
- package/node_modules/@murphai/clinical-records/dist/index.d.ts +1865 -0
- package/node_modules/@murphai/clinical-records/dist/index.d.ts.map +1 -0
- package/node_modules/@murphai/clinical-records/dist/index.js +488 -0
- package/node_modules/@murphai/clinical-records/dist/index.js.map +1 -0
- package/node_modules/@murphai/clinical-records/package.json +27 -0
- package/node_modules/@murphai/core/dist/atomic-write.d.ts +4 -0
- package/node_modules/@murphai/core/dist/atomic-write.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/atomic-write.js +26 -0
- package/node_modules/@murphai/core/dist/atomic-write.js.map +1 -1
- package/node_modules/@murphai/core/dist/automation.d.ts +8 -2
- package/node_modules/@murphai/core/dist/automation.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/automation.js +66 -2
- package/node_modules/@murphai/core/dist/automation.js.map +1 -1
- package/node_modules/@murphai/core/dist/bank/goals.js.map +1 -1
- package/node_modules/@murphai/core/dist/bank/habitat.d.ts +36 -0
- package/node_modules/@murphai/core/dist/bank/habitat.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/habitat.js +179 -0
- package/node_modules/@murphai/core/dist/bank/habitat.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/regimens.js.map +1 -1
- package/node_modules/@murphai/core/dist/constants.d.ts +4 -0
- package/node_modules/@murphai/core/dist/constants.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events/attachment-backed.d.ts +41 -1
- package/node_modules/@murphai/core/dist/domains/events/attachment-backed.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events/attachment-backed.js +311 -5
- package/node_modules/@murphai/core/dist/domains/events/attachment-backed.js.map +1 -1
- package/node_modules/@murphai/core/dist/domains/events/capture-lookup.d.ts +6 -0
- package/node_modules/@murphai/core/dist/domains/events/capture-lookup.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/events/capture-lookup.js +7 -0
- package/node_modules/@murphai/core/dist/domains/events/capture-lookup.js.map +1 -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 +4 -0
- 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/domains/experiments.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/domains/experiments.js +9 -3
- package/node_modules/@murphai/core/dist/domains/experiments.js.map +1 -1
- package/node_modules/@murphai/core/dist/domains/shared.js.map +1 -1
- package/node_modules/@murphai/core/dist/errors.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/errors.js.map +1 -1
- package/node_modules/@murphai/core/dist/event-attachments.d.ts +2 -1
- package/node_modules/@murphai/core/dist/event-attachments.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/event-attachments.js +1 -0
- package/node_modules/@murphai/core/dist/event-attachments.js.map +1 -1
- package/node_modules/@murphai/core/dist/experiment-media-repair.d.ts +33 -0
- package/node_modules/@murphai/core/dist/experiment-media-repair.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/experiment-media-repair.js +685 -0
- package/node_modules/@murphai/core/dist/experiment-media-repair.js.map +1 -0
- package/node_modules/@murphai/core/dist/experiment-storage.d.ts +12 -0
- package/node_modules/@murphai/core/dist/experiment-storage.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/experiment-storage.js +70 -0
- package/node_modules/@murphai/core/dist/experiment-storage.js.map +1 -0
- package/node_modules/@murphai/core/dist/frontmatter.js.map +1 -1
- package/node_modules/@murphai/core/dist/fs.d.ts +1 -0
- package/node_modules/@murphai/core/dist/fs.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/fs.js +3 -0
- package/node_modules/@murphai/core/dist/fs.js.map +1 -1
- package/node_modules/@murphai/core/dist/history/api.d.ts +11 -0
- package/node_modules/@murphai/core/dist/history/api.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/history/api.js +60 -3
- package/node_modules/@murphai/core/dist/history/api.js.map +1 -1
- package/node_modules/@murphai/core/dist/history/types.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/ids.js.map +1 -1
- package/node_modules/@murphai/core/dist/index.d.ts +12 -6
- package/node_modules/@murphai/core/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/index.js +6 -4
- package/node_modules/@murphai/core/dist/index.js.map +1 -1
- package/node_modules/@murphai/core/dist/integration-ingest-migration.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/integration-ingest-migration.js +1 -1
- package/node_modules/@murphai/core/dist/integration-ingest-migration.js.map +1 -1
- package/node_modules/@murphai/core/dist/integration-ingests.d.ts +73 -2
- package/node_modules/@murphai/core/dist/integration-ingests.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/integration-ingests.js +1196 -77
- package/node_modules/@murphai/core/dist/integration-ingests.js.map +1 -1
- package/node_modules/@murphai/core/dist/jsonl.d.ts +10 -0
- package/node_modules/@murphai/core/dist/jsonl.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/jsonl.js +63 -12
- package/node_modules/@murphai/core/dist/jsonl.js.map +1 -1
- package/node_modules/@murphai/core/dist/markdown-documents.js.map +1 -1
- package/node_modules/@murphai/core/dist/memory.d.ts +7 -2
- package/node_modules/@murphai/core/dist/memory.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/memory.js +36 -1
- package/node_modules/@murphai/core/dist/memory.js.map +1 -1
- package/node_modules/@murphai/core/dist/mutations.d.ts +33 -5
- package/node_modules/@murphai/core/dist/mutations.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/mutations.js +1684 -205
- package/node_modules/@murphai/core/dist/mutations.js.map +1 -1
- package/node_modules/@murphai/core/dist/operations/canonical-resource-lock.js.map +1 -1
- package/node_modules/@murphai/core/dist/operations/canonical-write-lock.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 +34 -1
- package/node_modules/@murphai/core/dist/operations/write-batch.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/operations/write-batch.js +684 -39
- package/node_modules/@murphai/core/dist/operations/write-batch.js.map +1 -1
- package/node_modules/@murphai/core/dist/path-safety.js.map +1 -1
- package/node_modules/@murphai/core/dist/preferences.d.ts +21 -2
- package/node_modules/@murphai/core/dist/preferences.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/preferences.js +249 -12
- package/node_modules/@murphai/core/dist/preferences.js.map +1 -1
- package/node_modules/@murphai/core/dist/public-mutations.d.ts +13 -2
- package/node_modules/@murphai/core/dist/public-mutations.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/public-mutations.js +20 -3
- package/node_modules/@murphai/core/dist/public-mutations.js.map +1 -1
- package/node_modules/@murphai/core/dist/raw-artifact-integrity.js.map +1 -1
- package/node_modules/@murphai/core/dist/registry/api.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/scheduled-logs.d.ts +1 -0
- package/node_modules/@murphai/core/dist/scheduled-logs.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/scheduled-logs.js +1 -0
- package/node_modules/@murphai/core/dist/scheduled-logs.js.map +1 -1
- package/node_modules/@murphai/core/dist/vault.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/vault.js +174 -11
- package/node_modules/@murphai/core/dist/vault.js.map +1 -1
- package/node_modules/@murphai/core/dist/wearable-receipts.js.map +1 -1
- package/node_modules/@murphai/core/dist/wearable-storage-migration.js.map +1 -1
- package/node_modules/@murphai/core/dist/write-policy.d.ts +3 -0
- package/node_modules/@murphai/core/dist/write-policy.d.ts.map +1 -1
- package/node_modules/@murphai/core/dist/write-policy.js +54 -3
- package/node_modules/@murphai/core/dist/write-policy.js.map +1 -1
- package/node_modules/@murphai/device-syncd/README.md +45 -5
- package/node_modules/@murphai/device-syncd/dist/callback-redirect.d.ts +7 -0
- package/node_modules/@murphai/device-syncd/dist/callback-redirect.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/callback-redirect.js +9 -0
- package/node_modules/@murphai/device-syncd/dist/callback-redirect.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/client.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata-parser.d.ts +30 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata-parser.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata-parser.js +130 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata-parser.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata.d.ts +18 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata.js +18 -0
- package/node_modules/@murphai/device-syncd/dist/companion-health-metadata.js.map +1 -0
- 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 +39 -4
- package/node_modules/@murphai/device-syncd/dist/config/connect-routes.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/env-keys.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/junction-client-config.d.ts +9 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-client-config.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-client-config.js +56 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-client-config.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-config.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-config.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-config.js +46 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-config.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config/junction-connect-sources.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/{providers → config}/junction-connect-sources.js +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/junction-connect-sources.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config/provider-configs.d.ts +3 -5
- package/node_modules/@murphai/device-syncd/dist/config/provider-configs.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-configs.js +69 -14
- package/node_modules/@murphai/device-syncd/dist/config/provider-configs.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-env.d.ts +2 -3
- package/node_modules/@murphai/device-syncd/dist/config/provider-env.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-env.js +0 -3
- package/node_modules/@murphai/device-syncd/dist/config/provider-env.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-factory.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-factory.js +9 -5
- package/node_modules/@murphai/device-syncd/dist/config/provider-factory.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.d.ts +26 -16
- 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 +236 -339
- package/node_modules/@murphai/device-syncd/dist/config/provider-manifests.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/provider-types.d.ts +62 -5
- package/node_modules/@murphai/device-syncd/dist/config/provider-types.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/runtime-config.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/runtime-config.js +7 -361
- package/node_modules/@murphai/device-syncd/dist/config/runtime-config.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/serializable-provider-configs.d.ts +17 -1
- package/node_modules/@murphai/device-syncd/dist/config/serializable-provider-configs.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config/serializable-provider-configs.js +104 -11
- package/node_modules/@murphai/device-syncd/dist/config/serializable-provider-configs.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config.d.ts +5 -3
- package/node_modules/@murphai/device-syncd/dist/config.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/config.js +4 -2
- package/node_modules/@murphai/device-syncd/dist/config.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/configured-provider-descriptors.d.ts +6 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-descriptors.js +7 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-descriptors.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-runtime-descriptors.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-runtime-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-runtime-descriptors.js +2 -0
- package/node_modules/@murphai/device-syncd/dist/configured-provider-runtime-descriptors.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/connect-config.d.ts +2 -2
- package/node_modules/@murphai/device-syncd/dist/connect-config.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/connect-config.js +4 -11
- package/node_modules/@murphai/device-syncd/dist/connect-config.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/errors.d.ts +8 -0
- package/node_modules/@murphai/device-syncd/dist/errors.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/errors.js +26 -0
- package/node_modules/@murphai/device-syncd/dist/errors.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.js +1 -1
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.d.ts +24 -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 +187 -28
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/http.d.ts +2 -9
- package/node_modules/@murphai/device-syncd/dist/http.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/http.js +26 -29
- package/node_modules/@murphai/device-syncd/dist/http.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/index.d.ts +7 -7
- package/node_modules/@murphai/device-syncd/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/index.js +1 -1
- package/node_modules/@murphai/device-syncd/dist/index.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.d.ts +60 -0
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.js +382 -0
- package/node_modules/@murphai/device-syncd/dist/junction-historical-backfill-progress.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/junction-resources.d.ts +17 -0
- package/node_modules/@murphai/device-syncd/dist/junction-resources.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/junction-resources.js +28 -0
- package/node_modules/@murphai/device-syncd/dist/junction-resources.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/metadata.d.ts +1 -0
- package/node_modules/@murphai/device-syncd/dist/metadata.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/metadata.js +1 -1
- package/node_modules/@murphai/device-syncd/dist/metadata.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/provider-configs.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/provider-configs.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-configs.js +2 -0
- package/node_modules/@murphai/device-syncd/dist/provider-configs.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-credential-policy.d.ts +6 -0
- package/node_modules/@murphai/device-syncd/dist/provider-credential-policy.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-credential-policy.js +22 -0
- package/node_modules/@murphai/device-syncd/dist/provider-credential-policy.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-job-definitions.d.ts +7 -0
- package/node_modules/@murphai/device-syncd/dist/provider-job-definitions.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-job-definitions.js +116 -0
- package/node_modules/@murphai/device-syncd/dist/provider-job-definitions.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/provider-label.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/provider-label.js +5 -5
- package/node_modules/@murphai/device-syncd/dist/provider-label.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.d.ts +22 -5
- 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 +93 -58
- package/node_modules/@murphai/device-syncd/dist/providers/junction-client.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-config.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction-config.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction-config.js +2 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction-config.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/junction.d.ts +5 -28
- package/node_modules/@murphai/device-syncd/dist/providers/junction.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction.js +927 -719
- package/node_modules/@murphai/device-syncd/dist/providers/junction.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/oura-webhooks.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/oura.d.ts +2 -14
- package/node_modules/@murphai/device-syncd/dist/providers/oura.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/oura.js +3 -26
- package/node_modules/@murphai/device-syncd/dist/providers/oura.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/provider-diagnostics.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/provider-diagnostics.js +34 -30
- package/node_modules/@murphai/device-syncd/dist/providers/provider-diagnostics.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/shared-oauth.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/strava-webhooks.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/strava.d.ts +2 -15
- package/node_modules/@murphai/device-syncd/dist/providers/strava.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/strava.js +8 -43
- package/node_modules/@murphai/device-syncd/dist/providers/strava.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.d.ts +2 -12
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.js +3 -22
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-account.d.ts +25 -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 +32 -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 +9 -4
- package/node_modules/@murphai/device-syncd/dist/public-ingress.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js +125 -40
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptor-shared.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptor-shared.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptor-shared.js +4 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptor-shared.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptors.d.ts +10 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptors.js +41 -0
- package/node_modules/@murphai/device-syncd/dist/public-provider-descriptors.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/registry.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/service.d.ts +1 -1
- package/node_modules/@murphai/device-syncd/dist/service.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/service.js +219 -61
- package/node_modules/@murphai/device-syncd/dist/service.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/shared.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/accounts.d.ts +6 -0
- package/node_modules/@murphai/device-syncd/dist/store/accounts.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/accounts.js +129 -40
- package/node_modules/@murphai/device-syncd/dist/store/accounts.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/hosted-account-hydration.d.ts +2 -0
- package/node_modules/@murphai/device-syncd/dist/store/hosted-account-hydration.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/hosted-account-hydration.js +80 -6
- package/node_modules/@murphai/device-syncd/dist/store/hosted-account-hydration.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.d.ts +15 -0
- package/node_modules/@murphai/device-syncd/dist/store/jobs.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/jobs.js +119 -39
- package/node_modules/@murphai/device-syncd/dist/store/jobs.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/oauth-states.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/oauth-states.js +14 -8
- package/node_modules/@murphai/device-syncd/dist/store/oauth-states.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 +22 -4
- package/node_modules/@murphai/device-syncd/dist/store/schema.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/sync-state.d.ts +9 -1
- package/node_modules/@murphai/device-syncd/dist/store/sync-state.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store/sync-state.js +57 -52
- package/node_modules/@murphai/device-syncd/dist/store/sync-state.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store.d.ts +46 -2
- package/node_modules/@murphai/device-syncd/dist/store.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/store.js +103 -6
- package/node_modules/@murphai/device-syncd/dist/store.js.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/types.d.ts +24 -1
- package/node_modules/@murphai/device-syncd/dist/types.d.ts.map +1 -1
- package/node_modules/@murphai/device-syncd/dist/types.js.map +1 -1
- package/node_modules/@murphai/device-syncd/package.json +28 -0
- package/node_modules/@murphai/exercise-library/content/seed/at-home-exercise-strength-addon-250.csv +251 -251
- package/node_modules/@murphai/exercise-library/content/seed/at-home-exercise-stretch-addon-500.csv +359 -359
- package/node_modules/@murphai/exercise-library/content/seed/at-home-exercise-stretch.csv +154 -154
- package/node_modules/@murphai/exercise-library/dist/build.js.map +1 -1
- package/node_modules/@murphai/exercise-library/dist/runtime.js.map +1 -1
- package/node_modules/@murphai/exercise-library/dist/schema.d.ts.map +1 -1
- package/node_modules/@murphai/exercise-library/generated/catalog.hash +1 -1
- package/node_modules/@murphai/exercise-library/generated/exercise-details.json +12082 -764
- package/node_modules/@murphai/exercise-library/generated/exercise-facets.json +1 -1
- package/node_modules/@murphai/exercise-library/generated/exercise-index.json +1 -1
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-11776448.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-18306161.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-19817517.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-19913903.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-19995444.md +62 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-20662037.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-24568233.md +62 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-26914684.md +60 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-27141153.md +62 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-28186867.md +62 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-36495670.md +62 -0
- package/node_modules/@murphai/health-commons/content/sources/photobiomodulation-intake/pmid-37760145.md +62 -0
- package/node_modules/@murphai/health-commons/dist/build.js.map +1 -1
- package/node_modules/@murphai/health-commons/dist/catalog.d.ts +4 -4
- package/node_modules/@murphai/health-commons/dist/hash-artifact.js.map +1 -1
- package/node_modules/@murphai/health-commons/dist/runtime.d.ts +3 -7
- package/node_modules/@murphai/health-commons/dist/runtime.d.ts.map +1 -1
- package/node_modules/@murphai/health-commons/dist/runtime.js +59 -47
- package/node_modules/@murphai/health-commons/dist/runtime.js.map +1 -1
- package/node_modules/@murphai/health-commons/dist/sync-cloudflare-r2.js.map +1 -1
- package/node_modules/@murphai/health-commons/generated/catalog.hash +1 -1
- package/node_modules/@murphai/health-commons/generated/protocol-family-graph.json +1 -1
- package/node_modules/@murphai/health-commons/generated/protocol-index.json +1 -1
- package/node_modules/@murphai/health-commons/generated/protocol-run-specs.json +1 -1
- package/node_modules/@murphai/health-commons/generated/source-artifact-index.json +1 -1
- package/node_modules/@murphai/health-commons/generated/source-identities.ndjson +54 -0
- package/node_modules/@murphai/health-commons/generated/source-index.json +727 -1
- package/node_modules/@murphai/health-commons/generated/web/browse/biomarkers.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/browse/experiments.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/added-sugar-intake.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/adherence.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/adverse-symptoms.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/alanine-aminotransferase.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/alcohol-craving.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/alcohol-free-days.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/alcohol-intake.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/alcohol-withdrawal-symptoms.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/ankle-knee-to-wall-distance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/apolipoprotein-b.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/aspartate-aminotransferase.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/bilirubin.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/blood-glucose.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/blood-ketones-beta-hydroxybutyrate.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/blood-oxygen-spo2.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/blood-pressure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/blood-urea-nitrogen.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/body-fat-percent.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/body-weight.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/chosen-primary-outcome-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/continuous-glucose.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/creatine-kinase.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/daily-energy-intake-kcal.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/daily-protein-g-per-kg.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/daily-protein-grams.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/daily-step-count.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/daytime-sleepiness.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/deep-sleep-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/dietary-fiber-g-day.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/digestive-comfort.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/egfr.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/estimated-gfr.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/estimated-vo2max.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/fasting-triglycerides.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/gi-symptom-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/gi-tolerance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/hbot-session-tolerability.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/hdl-c.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/hrv-rmssd.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/lateral-knee-pain.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/ldl-c.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/ldl-cholesterol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/lean-body-mass.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/lean-mass.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/leg-heaviness-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/liver-enzyme-panel.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/macular-health-safety.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/moderate-to-vigorous-activity-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/mood-affect.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/morning-blood-pressure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/muscle-soreness-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/musculoskeletal-pain.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/non-hdl-c.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/non-hdl-cholesterol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/omega-3-index.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/perceived-recovery-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/perceived-recovery.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/perceived-stiffness.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/perceived-stress.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/periocular-wrinkle-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/postprandial-glucose-excursion.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/pre-sleep-arousal.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/rem-sleep-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/resting-heart-rate.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/running-tolerance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/saturated-fat-g-day.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/sedentary-time.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/self-reported-mood.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/serum-25-hydroxyvitamin-d.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/serum-creatinine.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/serum-uric-acid.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/shoulder-reach-distance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/sit-and-reach-distance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/skin-texture-roughness-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/skin-tolerability-symptoms.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/sleep-efficiency.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/sleep-onset-latency.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/sleep-quality.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/standardized-skin-photo-score.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/step-floor-days.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/stretching-adherence-sessions.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/stretching-session-burden.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/stretching-symptoms.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/subjective-eye-strain.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/subjective-satiety.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/supplement-adherence.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/task-performance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/toe-touch-distance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/total-cholesterol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/total-sleep-time.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/training-performance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/training-volume.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/triglycerides.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/urine-albumin-creatinine-ratio.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/visual-fatigue.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/visual-performance.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/waist-circumference.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/wake-time-variability.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/walking-bout-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/walking-cadence.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/biomarker/walking-safety-events.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/measurement_method/clinic-imaging-upgrade.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/measurement_method/home-standardized-photo-roi-analysis.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/measurement_method/standardized-photo-score-workflow.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/at-home-static-stretching-for-flexibility.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/bryan-johnson-blueprint.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/caffeine-curfew-dose-reset.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/cold-plunge.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/consistent-wake-time.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/creatine-monohydrate.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/daily-step-floor.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/daily-vitamin-d3-supplementation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/digital-sunset.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/finnish-sauna.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/hydrolyzed-collagen-peptides.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/hyperbaric-oxygen-therapy.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/it-band-syndrome-rehab-and-return-to-run.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/morning-outdoor-light-exposure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/no-added-sugar-diet.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/norwegian-4x4.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/oral-epa-dha-supplementation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/pneumatic-compression-pants.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/pre-sleep-resonance-breathing-and-meditation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/pre-sleep-silent-meditation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/prolonged-fasting-24-72-hours.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/protein-floor-high-protein-intake.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/psyllium-husk-for-cholesterol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/red-light-glasses-before-bed.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/red-near-infrared-skin-texture-photoaging.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/red-yeast-rice-for-cholesterol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/short-term-alcohol-abstinence.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/social-media-fast.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/tabata-20-10-interval-training.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/time-restricted-eating-18-6.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/walking-after-every-meal.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/whole-body-red-and-near-infrared-light-exposure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/bundles/protocol_variant/zone-2-aerobic-base-block.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/blood-oxygen-spo2/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/blood-oxygen-spo2/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/deep-sleep-minutes/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/deep-sleep-minutes/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/estimated-vo2max/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/estimated-vo2max/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/hrv-rmssd/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/hrv-rmssd/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/rem-sleep-minutes/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/rem-sleep-minutes/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/resting-heart-rate/overview.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/pages/biomarkers/resting-heart-rate/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/routes/index.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/blood-oxygen-spo2.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/deep-sleep-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/estimated-vo2max.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/hrv-rmssd.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/rem-sleep-minutes.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/biomarkers/resting-heart-rate.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/at-home-static-stretching-for-flexibility.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/bryan-johnson-blueprint.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/caffeine-curfew-dose-reset.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/cold-plunge.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/consistent-wake-time.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/daily-step-floor.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/digital-sunset.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/finnish-sauna.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/hyperbaric-oxygen-therapy.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/morning-outdoor-light-exposure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/no-added-sugar-diet.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/norwegian-4x4.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/pneumatic-compression-pants.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/pre-sleep-resonance-breathing-and-meditation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/pre-sleep-silent-meditation.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/prolonged-fasting-24-72-hours.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/protein-floor-high-protein-intake.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/red-light-glasses-before-bed.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/red-near-infrared-skin-texture-photoaging.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/short-term-alcohol-abstinence.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/tabata-20-10-interval-training.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/time-restricted-eating-18-6.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/walking-after-every-meal.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/whole-body-red-and-near-infrared-light-exposure.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/shell/experiments/zone-2-aerobic-base-block.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/at-home-static-stretching-for-flexibility/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/at-home-static-stretching-for-flexibility/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/at-home-static-stretching-for-flexibility/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/bryan-johnson-blueprint/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/bryan-johnson-blueprint/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/bryan-johnson-blueprint/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/caffeine-curfew-dose-reset/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/caffeine-curfew-dose-reset/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/caffeine-curfew-dose-reset/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/cold-plunge/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/cold-plunge/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/cold-plunge/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/consistent-wake-time/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/consistent-wake-time/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/consistent-wake-time/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/daily-step-floor/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/daily-step-floor/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/daily-step-floor/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/digital-sunset/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/digital-sunset/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/digital-sunset/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/finnish-sauna/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/finnish-sauna/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/finnish-sauna/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/hyperbaric-oxygen-therapy/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/hyperbaric-oxygen-therapy/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/hyperbaric-oxygen-therapy/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/morning-outdoor-light-exposure/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/morning-outdoor-light-exposure/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/morning-outdoor-light-exposure/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/no-added-sugar-diet/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/no-added-sugar-diet/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/no-added-sugar-diet/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/norwegian-4x4/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/norwegian-4x4/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/norwegian-4x4/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pneumatic-compression-pants/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pneumatic-compression-pants/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pneumatic-compression-pants/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-resonance-breathing-and-meditation/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-resonance-breathing-and-meditation/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-resonance-breathing-and-meditation/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-silent-meditation/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-silent-meditation/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/pre-sleep-silent-meditation/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/prolonged-fasting-24-72-hours/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/prolonged-fasting-24-72-hours/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/prolonged-fasting-24-72-hours/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/protein-floor-high-protein-intake/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/protein-floor-high-protein-intake/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/protein-floor-high-protein-intake/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-light-glasses-before-bed/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-light-glasses-before-bed/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-light-glasses-before-bed/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-near-infrared-skin-texture-photoaging/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-near-infrared-skin-texture-photoaging/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/red-near-infrared-skin-texture-photoaging/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/short-term-alcohol-abstinence/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/short-term-alcohol-abstinence/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/short-term-alcohol-abstinence/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/tabata-20-10-interval-training/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/tabata-20-10-interval-training/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/tabata-20-10-interval-training/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/time-restricted-eating-18-6/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/time-restricted-eating-18-6/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/time-restricted-eating-18-6/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/walking-after-every-meal/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/walking-after-every-meal/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/walking-after-every-meal/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/whole-body-red-and-near-infrared-light-exposure/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/whole-body-red-and-near-infrared-light-exposure/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/whole-body-red-and-near-infrared-light-exposure/results-public.json +2 -2
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/zone-2-aerobic-base-block/protocol.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/zone-2-aerobic-base-block/research.json +1 -1
- package/node_modules/@murphai/health-commons/generated/web/tabs/experiments/zone-2-aerobic-base-block/results-public.json +2 -2
- package/node_modules/@murphai/health-metrics/README.md +4 -0
- package/node_modules/@murphai/health-metrics/dist/catalog.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.d.ts +15 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.js +99 -0
- package/node_modules/@murphai/health-metrics/dist/definitions/activity.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/labs.d.ts +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/recovery.d.ts +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/recovery.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/recovery.js +12 -0
- package/node_modules/@murphai/health-metrics/dist/definitions/recovery.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/definitions/sleep.d.ts +1 -1
- package/node_modules/@murphai/health-metrics/dist/format.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/goals.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/index.d.ts +0 -2
- package/node_modules/@murphai/health-metrics/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/index.js +0 -2
- package/node_modules/@murphai/health-metrics/dist/index.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/murph-age-source-routes.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/murph-age-source-routes.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/murph-age.d.ts.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/murph-age.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/normalize.js.map +1 -1
- package/node_modules/@murphai/health-metrics/dist/selectors.js.map +1 -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.map +1 -1
- 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.map +1 -1
- package/node_modules/@murphai/health-metrics/package.json +10 -0
- package/node_modules/@murphai/importers/README.md +13 -0
- package/node_modules/@murphai/importers/dist/assessment/import-assessment-response.js.map +1 -1
- package/node_modules/@murphai/importers/dist/clinical-records/index.d.ts +19 -0
- package/node_modules/@murphai/importers/dist/clinical-records/index.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/clinical-records/index.js +1523 -0
- package/node_modules/@murphai/importers/dist/clinical-records/index.js.map +1 -0
- package/node_modules/@murphai/importers/dist/core-port.d.ts +1 -0
- 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.map +1 -1
- package/node_modules/@murphai/importers/dist/create-importers.js.map +1 -1
- package/node_modules/@murphai/importers/dist/csv-sample-import-planner.js.map +1 -1
- package/node_modules/@murphai/importers/dist/csv-sample-importer.js.map +1 -1
- 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 +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/index.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/index.js +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/index.js.map +1 -1
- 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 +3 -2
- 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 +12 -20
- package/node_modules/@murphai/importers/dist/device-providers/junction-resources.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction.d.ts +18 -0
- package/node_modules/@murphai/importers/dist/device-providers/junction.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/junction.js +1026 -123
- package/node_modules/@murphai/importers/dist/device-providers/junction.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.d.ts +132 -132
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.d.ts.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/registry.js.map +1 -1
- package/node_modules/@murphai/importers/dist/device-providers/whoop.js.map +1 -1
- package/node_modules/@murphai/importers/dist/document-importer.js.map +1 -1
- package/node_modules/@murphai/importers/dist/meal-importer.js.map +1 -1
- package/node_modules/@murphai/importers/dist/preset-registry.js.map +1 -1
- package/node_modules/@murphai/importers/package.json +5 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/bootstrap-doctor.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/environment.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/reads.js +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/reads.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/service.d.ts.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/service.js +2 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/service.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-app/storage-repair.d.ts +3 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/storage-repair.d.ts.map +1 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/storage-repair.js +37 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/storage-repair.js.map +1 -0
- package/node_modules/@murphai/inbox-services/dist/inbox-app/types.d.ts +22 -2
- package/node_modules/@murphai/inbox-services/dist/inbox-app/types.d.ts.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/connectors.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/daemon.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/parser.d.ts +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/parser.js +2 -2
- package/node_modules/@murphai/inbox-services/dist/inbox-services/parser.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/promotions.d.ts +2 -2
- package/node_modules/@murphai/inbox-services/dist/inbox-services/promotions.d.ts.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/promotions.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/query.d.ts +27 -27
- package/node_modules/@murphai/inbox-services/dist/inbox-services/query.d.ts.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/query.js +2 -2
- package/node_modules/@murphai/inbox-services/dist/inbox-services/query.js.map +1 -1
- package/node_modules/@murphai/inbox-services/dist/inbox-services/state.js.map +1 -1
- package/node_modules/@murphai/inboxd/README.md +3 -2
- package/node_modules/@murphai/inboxd/dist/checkpoint.d.ts +2 -0
- package/node_modules/@murphai/inboxd/dist/checkpoint.d.ts.map +1 -0
- package/node_modules/@murphai/inboxd/dist/checkpoint.js +2 -0
- package/node_modules/@murphai/inboxd/dist/checkpoint.js.map +1 -0
- package/node_modules/@murphai/inboxd/dist/connectors/email/directness.d.ts +11 -0
- package/node_modules/@murphai/inboxd/dist/connectors/email/directness.d.ts.map +1 -0
- package/node_modules/@murphai/inboxd/dist/connectors/email/directness.js +67 -0
- package/node_modules/@murphai/inboxd/dist/connectors/email/directness.js.map +1 -0
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize-parsed.d.ts +3 -1
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize-parsed.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize-parsed.js +18 -9
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize-parsed.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize.d.ts +1 -10
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize.js +2 -65
- package/node_modules/@murphai/inboxd/dist/connectors/email/normalize.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/hosted-conversation.d.ts +0 -15
- package/node_modules/@murphai/inboxd/dist/connectors/hosted-conversation.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/hosted-conversation.js +0 -33
- package/node_modules/@murphai/inboxd/dist/connectors/hosted-conversation.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/connectors/telegram/connector.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/contracts/capture.d.ts +1 -2
- package/node_modules/@murphai/inboxd/dist/contracts/capture.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/contracts/search.d.ts +2 -2
- package/node_modules/@murphai/inboxd/dist/contracts/search.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/index.d.ts +1 -0
- package/node_modules/@murphai/inboxd/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/index.js +1 -0
- package/node_modules/@murphai/inboxd/dist/index.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/envelope-migration.d.ts +21 -0
- package/node_modules/@murphai/inboxd/dist/indexing/envelope-migration.d.ts.map +1 -0
- package/node_modules/@murphai/inboxd/dist/indexing/envelope-migration.js +259 -0
- package/node_modules/@murphai/inboxd/dist/indexing/envelope-migration.js.map +1 -0
- package/node_modules/@murphai/inboxd/dist/indexing/parser-derivatives.d.ts +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/parser-derivatives.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/parser-derivatives.js +7 -4
- package/node_modules/@murphai/inboxd/dist/indexing/parser-derivatives.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/persist/canonical-records.d.ts +13 -1
- package/node_modules/@murphai/inboxd/dist/indexing/persist/canonical-records.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/persist/canonical-records.js +68 -13
- package/node_modules/@murphai/inboxd/dist/indexing/persist/canonical-records.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/persist.d.ts +12 -6
- package/node_modules/@murphai/inboxd/dist/indexing/persist.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/persist.js +226 -73
- package/node_modules/@murphai/inboxd/dist/indexing/persist.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/indexing/retention.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/pipeline.js +4 -4
- package/node_modules/@murphai/inboxd/dist/kernel/pipeline.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/registry.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite/rows.d.ts +2 -2
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite/rows.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite/rows.js +3 -3
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite/rows.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite.js +42 -12
- package/node_modules/@murphai/inboxd/dist/kernel/sqlite.js.map +1 -1
- package/node_modules/@murphai/inboxd/dist/retention.d.ts +2 -0
- package/node_modules/@murphai/inboxd/dist/retention.d.ts.map +1 -0
- package/node_modules/@murphai/inboxd/dist/retention.js +2 -0
- package/node_modules/@murphai/inboxd/dist/retention.js.map +1 -0
- package/node_modules/@murphai/inboxd/dist/runtime.d.ts +2 -1
- package/node_modules/@murphai/inboxd/dist/runtime.d.ts.map +1 -1
- package/node_modules/@murphai/inboxd/dist/runtime.js +1 -0
- package/node_modules/@murphai/inboxd/dist/runtime.js.map +1 -1
- package/node_modules/@murphai/inboxd/package.json +12 -0
- package/node_modules/@murphai/messaging-ingress/README.md +1 -5
- package/node_modules/@murphai/messaging-ingress/dist/internal.d.ts.map +1 -1
- package/node_modules/@murphai/messaging-ingress/dist/internal.js +4 -0
- package/node_modules/@murphai/messaging-ingress/dist/internal.js.map +1 -1
- package/node_modules/@murphai/messaging-ingress/dist/linq-webhook.d.ts.map +1 -1
- package/node_modules/@murphai/messaging-ingress/dist/linq-webhook.js.map +1 -1
- package/node_modules/@murphai/messaging-ingress/package.json +0 -4
- package/node_modules/@murphai/operator-config/dist/agentmail-runtime.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/codex-resume-state.d.ts +2 -0
- package/node_modules/@murphai/operator-config/dist/assistant/codex-resume-state.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/codex-resume-state.js +5 -0
- package/node_modules/@murphai/operator-config/dist/assistant/codex-resume-state.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/current-delivery-route.d.ts +5 -0
- package/node_modules/@murphai/operator-config/dist/assistant/current-delivery-route.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/current-delivery-route.js +58 -0
- package/node_modules/@murphai/operator-config/dist/assistant/current-delivery-route.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/delivery-failure.d.ts +2 -2
- package/node_modules/@murphai/operator-config/dist/assistant/delivery-failure.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/delivery-failure.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/hosted-config.d.ts +5 -5
- package/node_modules/@murphai/operator-config/dist/assistant/hosted-config.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/target-runtime.d.ts +32 -31
- package/node_modules/@murphai/operator-config/dist/assistant/target-runtime.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant/target-runtime.js +4 -2
- package/node_modules/@murphai/operator-config/dist/assistant/target-runtime.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/assistant-backend.d.ts +2 -2
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.d.ts +488 -317
- 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 +171 -22
- package/node_modules/@murphai/operator-config/dist/assistant-cli-contracts.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-cli-contracts.d.ts +32 -27
- package/node_modules/@murphai/operator-config/dist/device-cli-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-cli-contracts.js +11 -1
- package/node_modules/@murphai/operator-config/dist/device-cli-contracts.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-daemon/paths.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-daemon.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-sync-browser-opener.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/device-sync-client.d.ts +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 +6 -2
- package/node_modules/@murphai/operator-config/dist/device-sync-client.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/hosted-assistant-config-constants.d.ts +1 -1
- package/node_modules/@murphai/operator-config/dist/hosted-assistant-config-constants.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/hosted-assistant-config.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/inbox-cli-contracts.d.ts +138 -93
- package/node_modules/@murphai/operator-config/dist/inbox-cli-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/inbox-cli-contracts.js +40 -3
- package/node_modules/@murphai/operator-config/dist/inbox-cli-contracts.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/linq-runtime.d.ts +7 -11
- package/node_modules/@murphai/operator-config/dist/linq-runtime.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/linq-runtime.js +25 -10
- package/node_modules/@murphai/operator-config/dist/linq-runtime.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/message-formatting.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/message-formatting.js +14 -3
- package/node_modules/@murphai/operator-config/dist/message-formatting.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/operator-config/self-delivery-targets.d.ts +4 -2
- package/node_modules/@murphai/operator-config/dist/operator-config/self-delivery-targets.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/operator-config/storage.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/operator-config.d.ts +7 -5
- package/node_modules/@murphai/operator-config/dist/operator-config.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/operator-config.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/setup-cli-contracts.d.ts +54 -54
- package/node_modules/@murphai/operator-config/dist/setup-cli-contracts.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/setup-runtime-env.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/telegram-runtime.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/dist/telegram-runtime.js +11 -1
- package/node_modules/@murphai/operator-config/dist/telegram-runtime.js.map +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.d.ts +85 -85
- package/node_modules/@murphai/operator-config/dist/vault-cli-contracts.js +1 -1
- package/node_modules/@murphai/operator-config/dist/vault-cli-errors.d.ts.map +1 -1
- package/node_modules/@murphai/operator-config/package.json +0 -5
- package/node_modules/@murphai/parsers/README.md +4 -2
- package/node_modules/@murphai/parsers/dist/adapters/ffmpeg.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/adapters/poppler-pdf.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/adapters/text-file.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/adapters/whisper-cpp.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/adapters/zxing-wasm.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/contracts/parser-output.d.ts +15 -0
- package/node_modules/@murphai/parsers/dist/contracts/parser-output.d.ts.map +1 -0
- package/node_modules/@murphai/parsers/dist/contracts/parser-output.js +368 -0
- package/node_modules/@murphai/parsers/dist/contracts/parser-output.js.map +1 -0
- package/node_modules/@murphai/parsers/dist/index.d.ts +5 -2
- package/node_modules/@murphai/parsers/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/parsers/dist/index.js +3 -1
- package/node_modules/@murphai/parsers/dist/index.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/parser-result.d.ts +2 -0
- package/node_modules/@murphai/parsers/dist/parser-result.d.ts.map +1 -0
- package/node_modules/@murphai/parsers/dist/parser-result.js +2 -0
- package/node_modules/@murphai/parsers/dist/parser-result.js.map +1 -0
- package/node_modules/@murphai/parsers/dist/pipelines/parse-attachment.d.ts.map +1 -1
- package/node_modules/@murphai/parsers/dist/pipelines/parse-attachment.js +2 -245
- package/node_modules/@murphai/parsers/dist/pipelines/parse-attachment.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/pipelines/worker.d.ts +1 -1
- package/node_modules/@murphai/parsers/dist/pipelines/worker.d.ts.map +1 -1
- package/node_modules/@murphai/parsers/dist/pipelines/worker.js +12 -4
- package/node_modules/@murphai/parsers/dist/pipelines/worker.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/publish/legacy-attempt-compactor.d.ts +18 -0
- package/node_modules/@murphai/parsers/dist/publish/legacy-attempt-compactor.d.ts.map +1 -0
- package/node_modules/@murphai/parsers/dist/publish/legacy-attempt-compactor.js +480 -0
- package/node_modules/@murphai/parsers/dist/publish/legacy-attempt-compactor.js.map +1 -0
- package/node_modules/@murphai/parsers/dist/publish/writer.d.ts +26 -8
- package/node_modules/@murphai/parsers/dist/publish/writer.d.ts.map +1 -1
- package/node_modules/@murphai/parsers/dist/publish/writer.js +168 -57
- package/node_modules/@murphai/parsers/dist/publish/writer.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/registry/policy.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/registry/registry.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/shared.js.map +1 -1
- package/node_modules/@murphai/parsers/dist/toolchain/discover.js.map +1 -1
- package/node_modules/@murphai/parsers/package.json +4 -0
- package/node_modules/@murphai/query/dist/automation.d.ts +3 -2
- package/node_modules/@murphai/query/dist/automation.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/automation.js +68 -5
- package/node_modules/@murphai/query/dist/automation.js.map +1 -1
- package/node_modules/@murphai/query/dist/biomarker-change-sentiment.d.ts +10 -0
- package/node_modules/@murphai/query/dist/biomarker-change-sentiment.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/biomarker-change-sentiment.js +24 -0
- package/node_modules/@murphai/query/dist/biomarker-change-sentiment.js.map +1 -0
- package/node_modules/@murphai/query/dist/browser-experiments.d.ts +4 -0
- package/node_modules/@murphai/query/dist/browser-experiments.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-experiments.js +3 -0
- package/node_modules/@murphai/query/dist/browser-experiments.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/biomarker-panel.js +3 -3
- package/node_modules/@murphai/query/dist/browser-replica/biomarker-panel.js.map +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 +20 -0
- package/node_modules/@murphai/query/dist/browser-replica/build.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/experiments.d.ts +8 -2
- package/node_modules/@murphai/query/dist/browser-replica/experiments.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/experiments.js +128 -26
- package/node_modules/@murphai/query/dist/browser-replica/experiments.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/murph-age.d.ts +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/murph-age.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/murph-age.js +2 -1
- package/node_modules/@murphai/query/dist/browser-replica/murph-age.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/query.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/shared.d.ts +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/shared.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/shared.js +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/shared.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica/views.js +1 -0
- package/node_modules/@murphai/query/dist/browser-replica/views.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica.d.ts +1 -3
- package/node_modules/@murphai/query/dist/browser-replica.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser-replica.js +0 -1
- package/node_modules/@murphai/query/dist/browser-replica.js.map +1 -1
- package/node_modules/@murphai/query/dist/browser.d.ts +2 -2
- package/node_modules/@murphai/query/dist/browser.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/browser.js +1 -1
- package/node_modules/@murphai/query/dist/browser.js.map +1 -1
- package/node_modules/@murphai/query/dist/canonical-entities.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/canonical-entities.js +1 -0
- package/node_modules/@murphai/query/dist/canonical-entities.js.map +1 -1
- package/node_modules/@murphai/query/dist/entity-families.d.ts +1 -1
- package/node_modules/@murphai/query/dist/entity-families.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/entity-families.js +1 -0
- package/node_modules/@murphai/query/dist/entity-families.js.map +1 -1
- package/node_modules/@murphai/query/dist/experiment-adherence.d.ts +55 -2
- package/node_modules/@murphai/query/dist/experiment-adherence.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/experiment-adherence.js +367 -13
- package/node_modules/@murphai/query/dist/experiment-adherence.js.map +1 -1
- package/node_modules/@murphai/query/dist/experiment-progress-card.d.ts +6 -1
- package/node_modules/@murphai/query/dist/experiment-progress-card.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/experiment-progress-card.js +48 -13
- package/node_modules/@murphai/query/dist/experiment-progress-card.js.map +1 -1
- package/node_modules/@murphai/query/dist/experiments.d.ts +11 -1
- package/node_modules/@murphai/query/dist/experiments.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/experiments.js +265 -36
- package/node_modules/@murphai/query/dist/experiments.js.map +1 -1
- package/node_modules/@murphai/query/dist/export-pack.js.map +1 -1
- package/node_modules/@murphai/query/dist/group-weekly.d.ts +32 -0
- package/node_modules/@murphai/query/dist/group-weekly.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/group-weekly.js +166 -0
- package/node_modules/@murphai/query/dist/group-weekly.js.map +1 -0
- package/node_modules/@murphai/query/dist/health/assessments.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/blood-tests.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.d.ts +1 -0
- package/node_modules/@murphai/query/dist/health/canonical-collector.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.js +4 -1
- package/node_modules/@murphai/query/dist/health/canonical-collector.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/foods.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/habitat.d.ts +6 -0
- package/node_modules/@murphai/query/dist/health/habitat.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/health/habitat.js +12 -0
- package/node_modules/@murphai/query/dist/health/habitat.js.map +1 -0
- package/node_modules/@murphai/query/dist/health/immunizations.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/index.d.ts +1 -0
- package/node_modules/@murphai/query/dist/health/index.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/index.js +1 -0
- package/node_modules/@murphai/query/dist/health/index.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/projections.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/projectors/history.d.ts +1 -1
- package/node_modules/@murphai/query/dist/health/providers.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/recipes.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/registries.d.ts +11 -0
- package/node_modules/@murphai/query/dist/health/registries.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/health/registries.js +18 -2
- package/node_modules/@murphai/query/dist/health/registries.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/supplements.js.map +1 -1
- package/node_modules/@murphai/query/dist/health/workout-formats.js.map +1 -1
- package/node_modules/@murphai/query/dist/id-families.d.ts +1 -13
- package/node_modules/@murphai/query/dist/id-families.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/id-families.js +1 -119
- package/node_modules/@murphai/query/dist/id-families.js.map +1 -1
- package/node_modules/@murphai/query/dist/index.d.ts +10 -15
- package/node_modules/@murphai/query/dist/index.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/index.js +7 -31
- package/node_modules/@murphai/query/dist/index.js.map +1 -1
- package/node_modules/@murphai/query/dist/knowledge-format.js +1 -1
- package/node_modules/@murphai/query/dist/knowledge-graph.js +4 -4
- package/node_modules/@murphai/query/dist/knowledge-model.d.ts +1 -1
- package/node_modules/@murphai/query/dist/knowledge-search.js +2 -2
- package/node_modules/@murphai/query/dist/knowledge-search.js.map +1 -1
- package/node_modules/@murphai/query/dist/meal-nutrition.js.map +1 -1
- package/node_modules/@murphai/query/dist/memory.d.ts +3 -2
- package/node_modules/@murphai/query/dist/memory.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/memory.js +4 -1
- package/node_modules/@murphai/query/dist/memory.js.map +1 -1
- package/node_modules/@murphai/query/dist/metrics/index.js +23 -1
- package/node_modules/@murphai/query/dist/metrics/index.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 +101 -7
- package/node_modules/@murphai/query/dist/metrics/projection.js.map +1 -1
- package/node_modules/@murphai/query/dist/murph-age.d.ts +1 -1
- package/node_modules/@murphai/query/dist/murph-age.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/murph-age.js +2 -1
- package/node_modules/@murphai/query/dist/murph-age.js.map +1 -1
- package/node_modules/@murphai/query/dist/overview-weekly-stats.js.map +1 -1
- package/node_modules/@murphai/query/dist/overview.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/entity-store.d.ts +2 -0
- package/node_modules/@murphai/query/dist/projection/entity-store.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/projection/entity-store.js +56 -0
- package/node_modules/@murphai/query/dist/projection/entity-store.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/rebuild.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/schema.d.ts +1 -1
- package/node_modules/@murphai/query/dist/projection/schema.js +2 -2
- package/node_modules/@murphai/query/dist/projection/schema.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/wearable-summary-compose.js +25 -2
- 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 +1 -0
- package/node_modules/@murphai/query/dist/projection/wearable-summary-projector.js.map +1 -1
- package/node_modules/@murphai/query/dist/projection/wearable-summary-store.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/protocols.js.map +1 -1
- package/node_modules/@murphai/query/dist/query-projection-types.d.ts +7 -0
- package/node_modules/@murphai/query/dist/query-projection-types.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/query-projection.d.ts +3 -2
- package/node_modules/@murphai/query/dist/query-projection.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/query-projection.js +5 -1
- package/node_modules/@murphai/query/dist/query-projection.js.map +1 -1
- package/node_modules/@murphai/query/dist/read-model.d.ts +4 -0
- package/node_modules/@murphai/query/dist/read-model.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/read-model.js +1 -0
- package/node_modules/@murphai/query/dist/read-model.js.map +1 -1
- package/node_modules/@murphai/query/dist/scheduled-logs.js.map +1 -1
- package/node_modules/@murphai/query/dist/search-shared.js.map +1 -1
- package/node_modules/@murphai/query/dist/search.js.map +1 -1
- package/node_modules/@murphai/query/dist/summaries.js.map +1 -1
- package/node_modules/@murphai/query/dist/timeline.js.map +1 -1
- package/node_modules/@murphai/query/dist/vault-source.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/vault-source.js +39 -3
- package/node_modules/@murphai/query/dist/vault-source.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/candidates.d.ts +5 -2
- package/node_modules/@murphai/query/dist/wearables/candidates.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/candidates.js +305 -7
- package/node_modules/@murphai/query/dist/wearables/candidates.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/dedupe.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/dedupe.js +3 -1
- package/node_modules/@murphai/query/dist/wearables/dedupe.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/observation.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/origin.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/provider-policy.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 -79
- package/node_modules/@murphai/query/dist/wearables/public-output.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/selection.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/selection.js +5 -1
- package/node_modules/@murphai/query/dist/wearables/selection.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/sleep-association.d.ts +9 -0
- package/node_modules/@murphai/query/dist/wearables/sleep-association.d.ts.map +1 -0
- package/node_modules/@murphai/query/dist/wearables/sleep-association.js +81 -0
- package/node_modules/@murphai/query/dist/wearables/sleep-association.js.map +1 -0
- package/node_modules/@murphai/query/dist/wearables/types.d.ts +29 -4
- package/node_modules/@murphai/query/dist/wearables/types.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables/types.js.map +1 -1
- package/node_modules/@murphai/query/dist/wearables.d.ts.map +1 -1
- package/node_modules/@murphai/query/dist/wearables.js +50 -50
- 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-state-fs.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.js +1 -1
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/atomic-write.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/clinical-records-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/clinical-records-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/clinical-records-local-state-descriptors.js +12 -0
- package/node_modules/@murphai/runtime-state/dist/clinical-records-local-state-descriptors.js.map +1 -0
- 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 +65 -31
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-domain-crypto.d.ts +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-domain-crypto.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-domain-crypto.js +10 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-domain-crypto.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-email.d.ts +11 -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 +56 -3
- package/node_modules/@murphai/runtime-state/dist/hosted-email.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-storage.d.ts +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-storage.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/hosted-storage.js +12 -2
- package/node_modules/@murphai/runtime-state/dist/hosted-storage.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-helpers.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.js +2 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/locks.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/loopback-control-plane.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/process-env.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/process-identity.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.d.ts +2 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.d.ts.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.js +2 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/shared.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/sqlite-warning-filter.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/sqlite.js.map +1 -1
- package/node_modules/@murphai/runtime-state/dist/ulid.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-agentmail.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-assistant-account.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-assistant-defaults.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-assistant-wizard.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-assistant.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-cli.d.ts.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-cli.js +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-cli.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-services/toolchain.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-services.js.map +1 -1
- package/node_modules/@murphai/setup-cli/dist/setup-wizard-options.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/README.md +11 -0
- package/node_modules/@murphai/vault-usecases/dist/assistant-vault-paths.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/clinical-records.d.ts +102 -0
- package/node_modules/@murphai/vault-usecases/dist/clinical-records.d.ts.map +1 -0
- package/node_modules/@murphai/vault-usecases/dist/clinical-records.js +374 -0
- package/node_modules/@murphai/vault-usecases/dist/clinical-records.js.map +1 -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 +13 -4
- package/node_modules/@murphai/vault-usecases/dist/commands/query-record-command-helpers.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/experiment-onboarding-options.d.ts +2 -2
- package/node_modules/@murphai/vault-usecases/dist/health-cli-descriptors.d.ts +3 -3
- package/node_modules/@murphai/vault-usecases/dist/health-cli-descriptors.js +1 -1
- package/node_modules/@murphai/vault-usecases/dist/preferences.d.ts +34 -3
- package/node_modules/@murphai/vault-usecases/dist/preferences.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/preferences.js +84 -1
- package/node_modules/@murphai/vault-usecases/dist/preferences.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/testing/junction-wearable-fixture.d.ts +16 -2
- package/node_modules/@murphai/vault-usecases/dist/testing/junction-wearable-fixture.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/testing/junction-wearable-fixture.js +20 -1
- package/node_modules/@murphai/vault-usecases/dist/testing/junction-wearable-fixture.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/testing.d.ts +2 -2
- package/node_modules/@murphai/vault-usecases/dist/testing.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/testing.js +1 -1
- package/node_modules/@murphai/vault-usecases/dist/testing.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/capture.d.ts +18 -18
- package/node_modules/@murphai/vault-usecases/dist/usecases/capture.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/clinical-imports.d.ts +154 -154
- 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 +3 -1
- 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 +10 -9
- 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 +2 -1
- 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 +35 -35
- package/node_modules/@murphai/vault-usecases/dist/usecases/experiment-journal-vault.d.ts +38 -37
- 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 +37 -5
- 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.js +7 -7
- package/node_modules/@murphai/vault-usecases/dist/usecases/food.d.ts +2 -2
- package/node_modules/@murphai/vault-usecases/dist/usecases/food.d.ts.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 +57 -20
- 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 +20 -10
- 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 +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention-experiment-link.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention.d.ts +6 -6
- package/node_modules/@murphai/vault-usecases/dist/usecases/intervention.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement-read.d.ts +9 -9
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement-read.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement.d.ts +4 -4
- package/node_modules/@murphai/vault-usecases/dist/usecases/measurement.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/provider-event.d.ts +13 -13
- package/node_modules/@murphai/vault-usecases/dist/usecases/provider-event.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/recipe.d.ts +3 -3
- package/node_modules/@murphai/vault-usecases/dist/usecases/runtime.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/runtime.js +1 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/runtime.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.d.ts +1 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.js +101 -8
- package/node_modules/@murphai/vault-usecases/dist/usecases/shared.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/types.d.ts +34 -0
- package/node_modules/@murphai/vault-usecases/dist/usecases/types.d.ts.map +1 -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 +33 -33
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-format.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-measurement.d.ts +4 -4
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-model.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout-read.d.ts +8 -8
- 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 +1 -1
- 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 +48 -48
- package/node_modules/@murphai/vault-usecases/dist/usecases/workout.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/vault-services.d.ts.map +1 -1
- package/node_modules/@murphai/vault-usecases/dist/vault-services.js +1 -0
- package/node_modules/@murphai/vault-usecases/dist/vault-services.js.map +1 -1
- package/node_modules/@murphai/vault-usecases/package.json +8 -0
- package/node_modules/incur/dist/Cli.d.ts +4 -0
- package/node_modules/incur/dist/Cli.js +10 -3
- package/node_modules/incur/dist/SyncSkills.d.ts +2 -0
- package/node_modules/incur/dist/SyncSkills.js +5 -2
- package/node_modules/incur/src/Cli.ts +14 -3
- package/node_modules/incur/src/SyncSkills.ts +9 -2
- package/package.json +6 -4
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/turn-attachment-image-refs.d.ts +0 -15
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/turn-attachment-image-refs.d.ts.map +0 -1
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/turn-attachment-image-refs.js +0 -79
- package/node_modules/@murphai/assistant-engine/dist/assistant-codex/turn-attachment-image-refs.js.map +0 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-connect-sources.d.ts.map +0 -1
- package/node_modules/@murphai/device-syncd/dist/providers/junction-connect-sources.js.map +0 -1
- package/node_modules/@murphai/messaging-ingress/dist/whatsapp-webhook.d.ts +0 -73
- package/node_modules/@murphai/messaging-ingress/dist/whatsapp-webhook.d.ts.map +0 -1
- package/node_modules/@murphai/messaging-ingress/dist/whatsapp-webhook.js +0 -212
- package/node_modules/@murphai/messaging-ingress/dist/whatsapp-webhook.js.map +0 -1
- package/node_modules/@murphai/operator-config/dist/runtime-errors.d.ts +0 -4
- package/node_modules/@murphai/operator-config/dist/runtime-errors.d.ts.map +0 -1
- package/node_modules/@murphai/operator-config/dist/runtime-errors.js +0 -19
- package/node_modules/@murphai/operator-config/dist/runtime-errors.js.map +0 -1
- package/node_modules/@murphai/operator-config/dist/whatsapp-runtime.d.ts +0 -34
- package/node_modules/@murphai/operator-config/dist/whatsapp-runtime.d.ts.map +0 -1
- package/node_modules/@murphai/operator-config/dist/whatsapp-runtime.js +0 -208
- package/node_modules/@murphai/operator-config/dist/whatsapp-runtime.js.map +0 -1
- package/node_modules/@murphai/vault-usecases/dist/query-id-families.d.ts +0 -4
- package/node_modules/@murphai/vault-usecases/dist/query-id-families.d.ts.map +0 -1
- package/node_modules/@murphai/vault-usecases/dist/query-id-families.js +0 -104
- package/node_modules/@murphai/vault-usecases/dist/query-id-families.js.map +0 -1
- /package/node_modules/@murphai/device-syncd/dist/{providers → config}/junction-connect-sources.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { extractIsoDatePrefix, ID_PREFIXES, MEAL_MICRONUTRIENT_KEYS, toLocalDayKey, } from "@murphai/contracts";
|
|
2
|
+
import { extractIsoDatePrefix, ID_PREFIXES, MEAL_MICRONUTRIENT_KEYS, parseCompanionHrvRmssdAdmissionId, parseCompanionHrvRmssdObservation, serializeCompanionHrvRmssdObservation, toLocalDayKey, } from "@murphai/contracts";
|
|
3
3
|
import { deterministicContractId } from "@murphai/core";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { stripUndefined } from "../shared.js";
|
|
@@ -16,7 +16,12 @@ const junctionSnapshotSchema = z.object({
|
|
|
16
16
|
connections: z.array(z.unknown()).optional(),
|
|
17
17
|
summaries: z.record(z.string(), z.unknown()).optional(),
|
|
18
18
|
timeseries: z.record(z.string(), z.unknown()).optional(),
|
|
19
|
+
companionHrvRmssd: z.array(z.unknown()).max(100).optional(),
|
|
19
20
|
}).catchall(z.unknown());
|
|
21
|
+
const junctionCompanionHrvRmssdSnapshotEntrySchema = z.object({
|
|
22
|
+
admissionId: z.unknown(),
|
|
23
|
+
observation: z.unknown(),
|
|
24
|
+
}).strict();
|
|
20
25
|
const SUMMARY_RESOURCE_ALLOWLIST = new Set(JUNCTION_ALLOWED_SUMMARY_RESOURCES);
|
|
21
26
|
const TIMESERIES_RESOURCE_ALLOWLIST = new Set(JUNCTION_ALLOWED_TIMESERIES_RESOURCES);
|
|
22
27
|
const FLOATING_TIMESTAMP_SOURCE_PROVIDER_SLUGS = new Set([
|
|
@@ -96,6 +101,15 @@ const SLEEP_METRICS = [
|
|
|
96
101
|
{ metric: "temperature", unit: "celsius", title: "Junction sleep skin temperature", paths: JUNCTION_SLEEP_TEMPERATURE_PATHS },
|
|
97
102
|
{ metric: "temperature-deviation", unit: "celsius", title: "Junction sleep temperature delta", paths: JUNCTION_SLEEP_TEMPERATURE_DEVIATION_PATHS },
|
|
98
103
|
];
|
|
104
|
+
const SLEEP_STAGE_METRIC_NAMES = new Set([
|
|
105
|
+
"sleep-awake-minutes",
|
|
106
|
+
"sleep-light-minutes",
|
|
107
|
+
"sleep-deep-minutes",
|
|
108
|
+
"sleep-rem-minutes",
|
|
109
|
+
]);
|
|
110
|
+
const SLEEP_STAGE_METRICS = SLEEP_METRICS.filter((metric) => SLEEP_STAGE_METRIC_NAMES.has(metric.metric));
|
|
111
|
+
const SLEEP_NON_STAGE_METRICS = SLEEP_METRICS.filter((metric) => !SLEEP_STAGE_METRIC_NAMES.has(metric.metric));
|
|
112
|
+
const SLEEP_SUMMARY_OWNER_METRICS = SLEEP_METRICS.filter((metric) => metric.metric === "sleep-total-minutes" || SLEEP_STAGE_METRIC_NAMES.has(metric.metric));
|
|
99
113
|
const WORKOUT_SESSION_METRICS = [
|
|
100
114
|
{ key: "activeCalories", nonnegative: true, paths: ["activeCalories", "active_calories", "calories"] },
|
|
101
115
|
{ key: "totalCalories", nonnegative: true, paths: ["totalCalories", "total_calories"] },
|
|
@@ -133,6 +147,30 @@ const JUNCTION_GENERIC_SUMMARY_ID_PATHS = [
|
|
|
133
147
|
"providerId",
|
|
134
148
|
"provider_id",
|
|
135
149
|
];
|
|
150
|
+
const JUNCTION_RECORD_TIMESTAMP_PATHS = [
|
|
151
|
+
"observedAtRaw",
|
|
152
|
+
"observed_at_raw",
|
|
153
|
+
"observedAt",
|
|
154
|
+
"observed_at",
|
|
155
|
+
"timestamp",
|
|
156
|
+
"time",
|
|
157
|
+
"date",
|
|
158
|
+
"day",
|
|
159
|
+
"end",
|
|
160
|
+
"endAt",
|
|
161
|
+
"end_at",
|
|
162
|
+
"timeEnd",
|
|
163
|
+
"time_end",
|
|
164
|
+
"bedtimeStop",
|
|
165
|
+
"bedtime_stop",
|
|
166
|
+
"start",
|
|
167
|
+
"startAt",
|
|
168
|
+
"start_at",
|
|
169
|
+
"timeStart",
|
|
170
|
+
"time_start",
|
|
171
|
+
"bedtimeStart",
|
|
172
|
+
"bedtime_start",
|
|
173
|
+
];
|
|
136
174
|
const JUNCTION_MEAL_PROVIDER_ID_PATHS = [
|
|
137
175
|
"mealId",
|
|
138
176
|
"meal_id",
|
|
@@ -363,9 +401,9 @@ const JUNCTION_STRESS_LEVEL_VALUE_PATHS = [
|
|
|
363
401
|
"stress_level_value",
|
|
364
402
|
"score",
|
|
365
403
|
];
|
|
366
|
-
// Junction's hrv timeseries is
|
|
367
|
-
//
|
|
368
|
-
//
|
|
404
|
+
// Junction's generic hrv timeseries is RMSSD-defined for wearable providers,
|
|
405
|
+
// while HealthKit's HRV quantity is SDNN. Source-aware metric selection below
|
|
406
|
+
// keeps Apple Health observations out of the RMSSD series.
|
|
369
407
|
const JUNCTION_HRV_VALUE_PATHS = [
|
|
370
408
|
"value",
|
|
371
409
|
"hrv",
|
|
@@ -482,8 +520,54 @@ const JUNCTION_SLEEP_STAGE_TYPE_ARRAY_PATHS = [
|
|
|
482
520
|
"sleepStageType",
|
|
483
521
|
"sleep_stage_type",
|
|
484
522
|
];
|
|
523
|
+
const JUNCTION_SLEEP_COVERAGE_START_TIMESTAMP_PATHS = [
|
|
524
|
+
...JUNCTION_SLEEP_START_TIMESTAMP_PATHS,
|
|
525
|
+
"sessionStart",
|
|
526
|
+
"session_start",
|
|
527
|
+
];
|
|
528
|
+
const JUNCTION_SLEEP_COVERAGE_END_TIMESTAMP_PATHS = [
|
|
529
|
+
...JUNCTION_SLEEP_END_TIMESTAMP_PATHS,
|
|
530
|
+
"sessionEnd",
|
|
531
|
+
"session_end",
|
|
532
|
+
];
|
|
533
|
+
const SLEEP_STAGE_COVERAGE_TOLERANCE_MS = 1000;
|
|
534
|
+
const JUNCTION_SLEEP_STAGES = ["awake", "light", "deep", "rem"];
|
|
535
|
+
const APPLE_HEALTH_KIT_SOURCE_PROVIDER_SLUG = "apple-health-kit";
|
|
536
|
+
const HRV_RMSSD_METRIC = "hrv-rmssd";
|
|
537
|
+
const HRV_SDNN_METRIC = "hrv-sdnn";
|
|
538
|
+
const SLEEP_ZEROED_SUMMARY_SUPPRESSED_METRIC_NAMES = new Set([
|
|
539
|
+
"sleep-total-minutes",
|
|
540
|
+
"sleep-efficiency",
|
|
541
|
+
"sleep-light-minutes",
|
|
542
|
+
"sleep-deep-minutes",
|
|
543
|
+
"sleep-rem-minutes",
|
|
544
|
+
]);
|
|
545
|
+
const SLEEP_ASLEEP_STAGE_METRIC_NAMES = new Set([
|
|
546
|
+
"sleep-light-minutes",
|
|
547
|
+
"sleep-deep-minutes",
|
|
548
|
+
"sleep-rem-minutes",
|
|
549
|
+
]);
|
|
550
|
+
const JUNCTION_SLEEP_STAGE_SUMMARY_NORMALIZER_VERSION = "junction-sleep-stage-summary.v1";
|
|
551
|
+
const JUNCTION_SLEEP_STAGE_CYCLE_FALLBACK_NORMALIZER_VERSION = "junction-sleep-stage-cycle-fallback.v1";
|
|
552
|
+
const JUNCTION_SLEEP_UNSPECIFIED_TOTAL_NORMALIZER_VERSION = "junction-sleep-unspecified-total.v1";
|
|
485
553
|
function parseJunctionSnapshot(snapshot) {
|
|
486
|
-
|
|
554
|
+
const parsed = junctionSnapshotSchema.parse(snapshot);
|
|
555
|
+
return {
|
|
556
|
+
...parsed,
|
|
557
|
+
companionHrvRmssd: parsed.companionHrvRmssd?.map((entry) => parseJunctionCompanionHrvRmssdSnapshotEntry(entry)),
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
function parseJunctionCompanionHrvRmssdSnapshotEntry(value) {
|
|
561
|
+
const parsed = junctionCompanionHrvRmssdSnapshotEntrySchema.parse(value);
|
|
562
|
+
const admissionId = parseCompanionHrvRmssdAdmissionId(parsed.admissionId);
|
|
563
|
+
const observation = parseCompanionHrvRmssdObservation(parsed.observation);
|
|
564
|
+
const expectedAdmissionId = createHash("sha256")
|
|
565
|
+
.update(serializeCompanionHrvRmssdObservation(observation))
|
|
566
|
+
.digest("hex");
|
|
567
|
+
if (admissionId !== expectedAdmissionId) {
|
|
568
|
+
throw new TypeError("Companion HRV admission identity did not match its observation.");
|
|
569
|
+
}
|
|
570
|
+
return { admissionId, observation };
|
|
487
571
|
}
|
|
488
572
|
export function normalizeJunctionSnapshot(snapshot, providerContext = {}) {
|
|
489
573
|
const importedAt = normalizeTimestamp(snapshot.importedAt);
|
|
@@ -492,6 +576,7 @@ export function normalizeJunctionSnapshot(snapshot, providerContext = {}) {
|
|
|
492
576
|
const evidenceParts = [];
|
|
493
577
|
const events = [];
|
|
494
578
|
const samples = [];
|
|
579
|
+
const companionHrvRmssd = snapshot.companionHrvRmssd?.map((entry) => parseJunctionCompanionHrvRmssdSnapshotEntry(entry));
|
|
495
580
|
const connections = asArray(snapshot.connections).flatMap((connection) => {
|
|
496
581
|
const normalized = asPlainObject(connection);
|
|
497
582
|
return normalized ? [normalized] : [];
|
|
@@ -508,6 +593,7 @@ export function normalizeJunctionSnapshot(snapshot, providerContext = {}) {
|
|
|
508
593
|
};
|
|
509
594
|
normalizeSummaries(snapshot.summaries, context);
|
|
510
595
|
normalizeTimeseries(snapshot.timeseries, context);
|
|
596
|
+
normalizeCompanionHrvRmssd(companionHrvRmssd, context);
|
|
511
597
|
return makeNormalizedDeviceBatch({
|
|
512
598
|
provider: "junction",
|
|
513
599
|
accountId: stringId(snapshot.accountId),
|
|
@@ -523,11 +609,128 @@ export function normalizeJunctionSnapshot(snapshot, providerContext = {}) {
|
|
|
523
609
|
connections: connections.length,
|
|
524
610
|
summaryResources: listAllowedResourceKeys(snapshot.summaries, SUMMARY_RESOURCE_ALLOWLIST),
|
|
525
611
|
timeseriesResources: listAllowedResourceKeys(snapshot.timeseries, TIMESERIES_RESOURCE_ALLOWLIST),
|
|
612
|
+
companionHrvRmssdObservations: companionHrvRmssd?.length ?? 0,
|
|
526
613
|
}),
|
|
527
614
|
});
|
|
528
615
|
}
|
|
616
|
+
export function classifyJunctionSummaryNormalizationEvidence(snapshot, evidenceWindow) {
|
|
617
|
+
const evidenceRange = evidenceWindow
|
|
618
|
+
? {
|
|
619
|
+
endMs: Date.parse(evidenceWindow.windowEnd),
|
|
620
|
+
startMs: Date.parse(evidenceWindow.windowStart),
|
|
621
|
+
}
|
|
622
|
+
: null;
|
|
623
|
+
if (evidenceRange
|
|
624
|
+
&& (!Number.isFinite(evidenceRange.startMs)
|
|
625
|
+
|| !Number.isFinite(evidenceRange.endMs)
|
|
626
|
+
|| evidenceRange.startMs >= evidenceRange.endMs)) {
|
|
627
|
+
return [];
|
|
628
|
+
}
|
|
629
|
+
const evidenceByKey = new Map();
|
|
630
|
+
for (const [resource, payload] of allowedResourceEntries(snapshot.summaries, SUMMARY_RESOURCE_ALLOWLIST)) {
|
|
631
|
+
const normalized = normalizeJunctionSnapshot({
|
|
632
|
+
connections: snapshot.connections,
|
|
633
|
+
importedAt: snapshot.importedAt,
|
|
634
|
+
summaries: { [resource]: payload },
|
|
635
|
+
windowEnd: snapshot.windowEnd,
|
|
636
|
+
windowStart: snapshot.windowStart,
|
|
637
|
+
});
|
|
638
|
+
for (const event of normalized.events ?? []) {
|
|
639
|
+
if (evidenceRange
|
|
640
|
+
&& !isJunctionSummaryEvidenceEventInRange(event, evidenceRange)) {
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
const sourceProviderSlug = normalizeJunctionSourceProviderSlug(event.dataOrigin?.sourceProviderSlug);
|
|
644
|
+
if (!sourceProviderSlug) {
|
|
645
|
+
continue;
|
|
646
|
+
}
|
|
647
|
+
const summaryResource = resource;
|
|
648
|
+
const key = `${summaryResource}\u0000${sourceProviderSlug}`;
|
|
649
|
+
evidenceByKey.set(key, {
|
|
650
|
+
resource: summaryResource,
|
|
651
|
+
sourceProviderSlug,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return [...evidenceByKey.values()].sort((left, right) => left.resource.localeCompare(right.resource)
|
|
656
|
+
|| left.sourceProviderSlug.localeCompare(right.sourceProviderSlug));
|
|
657
|
+
}
|
|
658
|
+
function isJunctionSummaryEvidenceEventInRange(event, evidenceRange) {
|
|
659
|
+
const occurredAtMs = Date.parse(event.occurredAt);
|
|
660
|
+
if (Number.isFinite(occurredAtMs)
|
|
661
|
+
&& occurredAtMs >= evidenceRange.startMs
|
|
662
|
+
&& occurredAtMs < evidenceRange.endMs) {
|
|
663
|
+
return true;
|
|
664
|
+
}
|
|
665
|
+
// Daily summaries and overnight sessions can canonically occur at or after
|
|
666
|
+
// the UTC window end while still belonging to its final calendar day. The
|
|
667
|
+
// importer-owned dayKey is the stable ownership signal for that case; a
|
|
668
|
+
// connection-day record has the next dayKey and remains outside the window.
|
|
669
|
+
if (typeof event.dayKey !== "string" || !isDateOnlyJunctionTimestamp(event.dayKey)) {
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
672
|
+
const dayStartMs = Date.parse(`${event.dayKey}T00:00:00.000Z`);
|
|
673
|
+
return Number.isFinite(dayStartMs)
|
|
674
|
+
&& dayStartMs >= evidenceRange.startMs
|
|
675
|
+
&& dayStartMs < evidenceRange.endMs;
|
|
676
|
+
}
|
|
677
|
+
function normalizeCompanionHrvRmssd(entries, context) {
|
|
678
|
+
for (const { admissionId, observation } of entries ?? []) {
|
|
679
|
+
const contentVersion = `${observation.methodVersion}:${createHash("sha256")
|
|
680
|
+
.update(serializeCompanionHrvRmssdObservation(observation))
|
|
681
|
+
.digest("hex")}`;
|
|
682
|
+
const identity = createHash("sha256")
|
|
683
|
+
.update(admissionId)
|
|
684
|
+
.digest("hex")
|
|
685
|
+
.slice(0, 16);
|
|
686
|
+
const evidenceRole = `companion-hrv-rmssd:${identity}`;
|
|
687
|
+
pushEvidencePart(context.evidenceParts, createEvidencePart(evidenceRole, `companion-hrv-rmssd-${identity}.json`, observation));
|
|
688
|
+
context.events.push({
|
|
689
|
+
kind: "observation",
|
|
690
|
+
occurredAt: observation.observedAt,
|
|
691
|
+
dayKey: resolveVaultLocalDayKey(observation.observedAt, context.defaultTimeZone)
|
|
692
|
+
?? extractIsoDatePrefix(observation.observedAt)
|
|
693
|
+
?? undefined,
|
|
694
|
+
source: "device",
|
|
695
|
+
title: "WHOOP BLE spot RMSSD",
|
|
696
|
+
evidenceRoles: [evidenceRole],
|
|
697
|
+
externalRef: makeProviderExternalRef("whoop", "ble-hrv-rmssd", admissionId, contentVersion, HRV_RMSSD_METRIC),
|
|
698
|
+
externalRefUpdatePolicy: "immutable",
|
|
699
|
+
dataOrigin: {
|
|
700
|
+
version: 1,
|
|
701
|
+
aggregatorProvider: "murph-companion",
|
|
702
|
+
sourceProviderSlug: "whoop",
|
|
703
|
+
sourceType: "ble-pulse-interval",
|
|
704
|
+
observedAtRaw: observation.observedAt,
|
|
705
|
+
timestampSemantics: "utc",
|
|
706
|
+
originConfidence: observation.quality === "good" ? "medium" : "low",
|
|
707
|
+
normalizerVersion: "companion-hrv-rmssd-normalizer.v1",
|
|
708
|
+
},
|
|
709
|
+
fields: {
|
|
710
|
+
metric: HRV_RMSSD_METRIC,
|
|
711
|
+
observationGrain: "derived_fact",
|
|
712
|
+
value: observation.rmssdMs,
|
|
713
|
+
unit: "ms",
|
|
714
|
+
},
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
export function canNormalizeJunctionSleepCycleRecordToCompactStages(record, sourceProviderSlug) {
|
|
719
|
+
const entries = resourceEntries(record, "sleep_cycle");
|
|
720
|
+
return entries.length > 0 && entries.every(({ entry }) => {
|
|
721
|
+
if (!hasSleepCycleCompactParentIdentity(entry, sourceProviderSlug)) {
|
|
722
|
+
return false;
|
|
723
|
+
}
|
|
724
|
+
const coverageWindow = resolveSleepStageCoverageWindow(entry, sourceProviderSlug);
|
|
725
|
+
return coverageWindow
|
|
726
|
+
? sleepStageCoverageIntervalsCoverWindow(collectSleepStageCoverageIntervals(entry, sourceProviderSlug), coverageWindow)
|
|
727
|
+
: false;
|
|
728
|
+
});
|
|
729
|
+
}
|
|
529
730
|
function normalizeSummaries(summaries, context) {
|
|
530
|
-
|
|
731
|
+
const summaryEntries = allowedResourceEntries(summaries, SUMMARY_RESOURCE_ALLOWLIST);
|
|
732
|
+
const sleepSummaryMetricOwners = collectJunctionSleepSummaryMetricOwners(summaryEntries, context);
|
|
733
|
+
for (const [resource, payload] of summaryEntries) {
|
|
531
734
|
const entries = resourceEntries(payload, resource);
|
|
532
735
|
const resourceSlug = slugify(resource, "summary");
|
|
533
736
|
const evidencePartRole = `junction-summary-${resourceSlug}`;
|
|
@@ -541,7 +744,7 @@ function normalizeSummaries(summaries, context) {
|
|
|
541
744
|
})
|
|
542
745
|
: new Map();
|
|
543
746
|
pushEvidencePart(context.evidenceParts, createEvidencePart(evidencePartRole, `${evidencePartRole}.json`, buildRawResourcePayload(resource, payload, context.connectionsByKey)));
|
|
544
|
-
entries.
|
|
747
|
+
const resolvedEntries = entries.flatMap(({ entry, originFallback }, index) => {
|
|
545
748
|
const resourceContext = buildResourceContext({
|
|
546
749
|
entry,
|
|
547
750
|
originFallback,
|
|
@@ -554,8 +757,15 @@ function normalizeSummaries(summaries, context) {
|
|
|
554
757
|
context,
|
|
555
758
|
});
|
|
556
759
|
if (!resourceContext) {
|
|
557
|
-
return;
|
|
760
|
+
return [];
|
|
558
761
|
}
|
|
762
|
+
return [{ entry, resourceContext }];
|
|
763
|
+
});
|
|
764
|
+
if (resource === "sleep_cycle") {
|
|
765
|
+
pushSleepCycleEntries(resolvedEntries, context, sleepSummaryMetricOwners);
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
resolvedEntries.forEach(({ entry, resourceContext }) => {
|
|
559
769
|
switch (resource) {
|
|
560
770
|
case "activity":
|
|
561
771
|
pushObservationMetrics(entry, resourceContext, context, ACTIVITY_METRICS);
|
|
@@ -566,9 +776,6 @@ function normalizeSummaries(summaries, context) {
|
|
|
566
776
|
case "sleep":
|
|
567
777
|
pushSleepSummary(entry, resourceContext, context);
|
|
568
778
|
break;
|
|
569
|
-
case "sleep_cycle":
|
|
570
|
-
pushSleepCycle(entry, resourceContext, context);
|
|
571
|
-
break;
|
|
572
779
|
case "workouts":
|
|
573
780
|
pushWorkoutSummary(entry, resourceContext, context);
|
|
574
781
|
break;
|
|
@@ -588,6 +795,55 @@ function normalizeSummaries(summaries, context) {
|
|
|
588
795
|
});
|
|
589
796
|
}
|
|
590
797
|
}
|
|
798
|
+
function collectJunctionSleepSummaryMetricOwners(summaryEntries, context) {
|
|
799
|
+
const sleepEntry = summaryEntries.find(([resource]) => resource === "sleep");
|
|
800
|
+
if (!sleepEntry) {
|
|
801
|
+
return [];
|
|
802
|
+
}
|
|
803
|
+
const [resource, payload] = sleepEntry;
|
|
804
|
+
const resourceSlug = slugify(resource, "summary");
|
|
805
|
+
const evidencePartRole = `junction-summary-${resourceSlug}`;
|
|
806
|
+
const owners = [];
|
|
807
|
+
resourceEntries(payload, resource).forEach(({ entry, originFallback }, index) => {
|
|
808
|
+
const resourceContext = buildResourceContext({
|
|
809
|
+
entry,
|
|
810
|
+
originFallback,
|
|
811
|
+
resource,
|
|
812
|
+
resourceSlug,
|
|
813
|
+
identityKind: "summary",
|
|
814
|
+
index,
|
|
815
|
+
fallbackArtifactRole: evidencePartRole,
|
|
816
|
+
context,
|
|
817
|
+
});
|
|
818
|
+
if (!resourceContext) {
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
const startAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_START_TIMESTAMP_PATHS), resourceContext.sourceProviderSlug);
|
|
822
|
+
const endAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_END_TIMESTAMP_PATHS), resourceContext.sourceProviderSlug);
|
|
823
|
+
if (!startAt || !endAt) {
|
|
824
|
+
return;
|
|
825
|
+
}
|
|
826
|
+
const durationMinutes = resolveSleepSummaryDurationMinutes(entry, startAt, endAt);
|
|
827
|
+
const zeroedSummary = isZeroedAppleHealthKitSleepSummary(entry, resourceContext, durationMinutes);
|
|
828
|
+
for (const metric of SLEEP_SUMMARY_OWNER_METRICS) {
|
|
829
|
+
if (zeroedSummary && SLEEP_ZEROED_SUMMARY_SUPPRESSED_METRIC_NAMES.has(metric.metric)) {
|
|
830
|
+
continue;
|
|
831
|
+
}
|
|
832
|
+
if (!resolveMetricDescriptorValue(entry, metric)) {
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
owners.push(stripUndefined({
|
|
836
|
+
endAt,
|
|
837
|
+
metric: metric.metric,
|
|
838
|
+
sourceInstanceId: resourceContext.origin.sourceInstanceId ?? undefined,
|
|
839
|
+
sourceProviderSlug: resourceContext.sourceProviderSlug,
|
|
840
|
+
sourceType: resourceContext.origin.sourceType,
|
|
841
|
+
startAt,
|
|
842
|
+
}));
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
return owners;
|
|
846
|
+
}
|
|
591
847
|
function buildJunctionMealFallbackIdentityDisambiguators(input) {
|
|
592
848
|
const fallbackRecords = [];
|
|
593
849
|
input.entries.forEach(({ entry, originFallback }, index) => {
|
|
@@ -984,6 +1240,7 @@ function withJunctionCompactTimeseriesMetadata(resource, artifact, resourceCateg
|
|
|
984
1240
|
};
|
|
985
1241
|
}
|
|
986
1242
|
function pushJunctionDailyTimeseriesObservation(context, aggregate, observation) {
|
|
1243
|
+
const metric = resolveJunctionHrvMetric(observation.metric, aggregate.resourceContext.sourceProviderSlug);
|
|
987
1244
|
const timestamp = withTimestampOverride(aggregate.timestamp, {
|
|
988
1245
|
occurredAt: aggregate.lastSampleAt,
|
|
989
1246
|
recordedAt: aggregate.lastRecordedAt,
|
|
@@ -998,13 +1255,13 @@ function pushJunctionDailyTimeseriesObservation(context, aggregate, observation)
|
|
|
998
1255
|
dayKey: aggregate.dayKey,
|
|
999
1256
|
timeZone: aggregate.timeZone,
|
|
1000
1257
|
source: "device",
|
|
1001
|
-
title: observation.title,
|
|
1258
|
+
title: resolveJunctionHrvTitle(metric, observation.title),
|
|
1002
1259
|
evidenceRoles: [aggregate.evidencePartRole],
|
|
1003
1260
|
externalRef: makeJunctionExternalRef(aggregate.resourceContext, aggregate.entry, timestamp, observation.metric),
|
|
1004
1261
|
legacyExternalRefs: legacyExternalRefs.length > 0 ? legacyExternalRefs : undefined,
|
|
1005
1262
|
dataOrigin: buildDataOrigin(aggregate.entry, aggregate.resourceContext, timestamp),
|
|
1006
1263
|
fields: {
|
|
1007
|
-
metric
|
|
1264
|
+
metric,
|
|
1008
1265
|
observationGrain: "summary",
|
|
1009
1266
|
value: roundJunctionDailyAggregateValue(observation.value),
|
|
1010
1267
|
unit: observation.unit,
|
|
@@ -1227,13 +1484,11 @@ function pushSleepSummary(entry, resourceContext, context) {
|
|
|
1227
1484
|
const timestamp = resolveRecordTimestamp(entry, context, resourceContext.sourceProviderSlug);
|
|
1228
1485
|
const startAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_START_TIMESTAMP_PATHS), resourceContext.sourceProviderSlug);
|
|
1229
1486
|
const endAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_END_TIMESTAMP_PATHS), resourceContext.sourceProviderSlug);
|
|
1230
|
-
const durationMinutes =
|
|
1231
|
-
normalizePositiveIntegerMinutes(secondsToMinutes(firstNumberFromPaths(entry, JUNCTION_SLEEP_DURATION_SECOND_PATHS))) ??
|
|
1232
|
-
normalizePositiveIntegerMinutes(millisecondsToMinutes(firstNumberFromPaths(entry, JUNCTION_SLEEP_DURATION_MILLISECOND_PATHS))) ??
|
|
1233
|
-
normalizePositiveIntegerMinutes(minutesBetween(startAt, endAt));
|
|
1487
|
+
const durationMinutes = resolveSleepSummaryDurationMinutes(entry, startAt, endAt);
|
|
1234
1488
|
const sleepTimestamp = withTimestampOverride(timestamp, {
|
|
1235
1489
|
occurredAt: endAt ?? startAt ?? timestamp.occurredAt,
|
|
1236
1490
|
});
|
|
1491
|
+
const zeroedSummary = isZeroedAppleHealthKitSleepSummary(entry, resourceContext, durationMinutes);
|
|
1237
1492
|
if (startAt && endAt && durationMinutes !== undefined) {
|
|
1238
1493
|
const occurredAt = sleepTimestamp.occurredAt ?? startAt;
|
|
1239
1494
|
context.events.push(stripUndefined({
|
|
@@ -1254,13 +1509,584 @@ function pushSleepSummary(entry, resourceContext, context) {
|
|
|
1254
1509
|
},
|
|
1255
1510
|
}));
|
|
1256
1511
|
}
|
|
1257
|
-
pushObservationMetrics(entry, resourceContext, context,
|
|
1512
|
+
pushObservationMetrics(entry, resourceContext, context, zeroedSummary
|
|
1513
|
+
? SLEEP_NON_STAGE_METRICS.filter((metric) => !SLEEP_ZEROED_SUMMARY_SUPPRESSED_METRIC_NAMES.has(metric.metric))
|
|
1514
|
+
: SLEEP_NON_STAGE_METRICS, sleepTimestamp);
|
|
1515
|
+
pushSleepSummaryStageMetrics(entry, resourceContext, context, sleepTimestamp, startAt, endAt, zeroedSummary);
|
|
1258
1516
|
pushJunctionRecoveryReadinessScore(entry, resourceContext, context, sleepTimestamp);
|
|
1259
1517
|
}
|
|
1260
|
-
function
|
|
1518
|
+
function resolveSleepSummaryDurationMinutes(entry, startAt, endAt) {
|
|
1519
|
+
return normalizePositiveIntegerMinutes(firstNumberFromPaths(entry, JUNCTION_SLEEP_DURATION_MINUTE_PATHS)) ??
|
|
1520
|
+
normalizePositiveIntegerMinutes(secondsToMinutes(firstNumberFromPaths(entry, JUNCTION_SLEEP_DURATION_SECOND_PATHS))) ??
|
|
1521
|
+
normalizePositiveIntegerMinutes(millisecondsToMinutes(firstNumberFromPaths(entry, JUNCTION_SLEEP_DURATION_MILLISECOND_PATHS))) ??
|
|
1522
|
+
normalizePositiveIntegerMinutes(minutesBetween(startAt, endAt));
|
|
1523
|
+
}
|
|
1524
|
+
function isZeroedAppleHealthKitSleepSummary(entry, resourceContext, durationMinutes) {
|
|
1525
|
+
if (normalizeJunctionSourceProviderSlug(resourceContext.sourceProviderSlug) !== APPLE_HEALTH_KIT_SOURCE_PROVIDER_SLUG) {
|
|
1526
|
+
return false;
|
|
1527
|
+
}
|
|
1528
|
+
const totalMinutes = resolveSleepSummaryMetricValue(entry, "sleep-total-minutes");
|
|
1529
|
+
const awakeMinutes = resolveSleepSummaryMetricValue(entry, "sleep-awake-minutes");
|
|
1530
|
+
if (durationMinutes === undefined ||
|
|
1531
|
+
totalMinutes !== 0 ||
|
|
1532
|
+
awakeMinutes === undefined ||
|
|
1533
|
+
awakeMinutes <= 0 ||
|
|
1534
|
+
awakeMinutes >= durationMinutes - 1) {
|
|
1535
|
+
return false;
|
|
1536
|
+
}
|
|
1537
|
+
return isSleepSummaryMetricMissingOrZero(entry, "sleep-efficiency") &&
|
|
1538
|
+
isSleepSummaryMetricMissingOrZero(entry, "sleep-light-minutes") &&
|
|
1539
|
+
isSleepSummaryMetricMissingOrZero(entry, "sleep-deep-minutes") &&
|
|
1540
|
+
isSleepSummaryMetricMissingOrZero(entry, "sleep-rem-minutes");
|
|
1541
|
+
}
|
|
1542
|
+
function isSleepSummaryMetricMissingOrZero(entry, metricName) {
|
|
1543
|
+
const value = resolveSleepSummaryMetricValue(entry, metricName);
|
|
1544
|
+
return value === undefined || value === 0;
|
|
1545
|
+
}
|
|
1546
|
+
function resolveSleepSummaryMetricValue(entry, metricName) {
|
|
1547
|
+
const metric = SLEEP_METRICS.find((candidate) => candidate.metric === metricName);
|
|
1548
|
+
const resolved = metric ? resolveMetricDescriptorValue(entry, metric) : null;
|
|
1549
|
+
return resolved?.value;
|
|
1550
|
+
}
|
|
1551
|
+
function pushSleepSummaryStageMetrics(entry, resourceContext, context, timestamp, startAt, endAt, zeroedSummary = false) {
|
|
1552
|
+
const occurredAt = timestamp.occurredAt;
|
|
1553
|
+
if (!occurredAt) {
|
|
1554
|
+
return;
|
|
1555
|
+
}
|
|
1556
|
+
const timeZone = resolveSleepStageCanonicalTimeZone(entry);
|
|
1557
|
+
const dayKey = startAt && endAt
|
|
1558
|
+
? resolveSleepStageAnchorDayKey(endAt, timeZone, timestamp)
|
|
1559
|
+
: timestamp.dayKey ?? extractIsoDatePrefix(occurredAt) ?? undefined;
|
|
1560
|
+
for (const metric of SLEEP_STAGE_METRICS) {
|
|
1561
|
+
if (zeroedSummary && SLEEP_ASLEEP_STAGE_METRIC_NAMES.has(metric.metric)) {
|
|
1562
|
+
continue;
|
|
1563
|
+
}
|
|
1564
|
+
const resolved = resolveMetricDescriptorValue(entry, metric);
|
|
1565
|
+
if (!resolved) {
|
|
1566
|
+
continue;
|
|
1567
|
+
}
|
|
1568
|
+
const externalRef = startAt && endAt
|
|
1569
|
+
? makeJunctionCanonicalSleepStageExternalRef(resourceContext, {
|
|
1570
|
+
coverageEndAt: endAt,
|
|
1571
|
+
coverageStartAt: startAt,
|
|
1572
|
+
dayKey,
|
|
1573
|
+
metric: metric.metric,
|
|
1574
|
+
timeZone,
|
|
1575
|
+
})
|
|
1576
|
+
: makeJunctionExternalRef(resourceContext, entry, timestamp, metric.metric);
|
|
1577
|
+
const legacyExternalRef = startAt && endAt
|
|
1578
|
+
? makeJunctionExternalRef(resourceContext, entry, timestamp, metric.metric)
|
|
1579
|
+
: undefined;
|
|
1580
|
+
context.events.push(stripUndefined({
|
|
1581
|
+
kind: "observation",
|
|
1582
|
+
occurredAt,
|
|
1583
|
+
recordedAt: timestamp.recordedAt,
|
|
1584
|
+
dayKey,
|
|
1585
|
+
timeZone,
|
|
1586
|
+
source: "device",
|
|
1587
|
+
title: metric.title,
|
|
1588
|
+
evidenceRoles: resourceContext.evidenceRoles,
|
|
1589
|
+
externalRef,
|
|
1590
|
+
legacyExternalRefs: legacyExternalRef ? [legacyExternalRef] : undefined,
|
|
1591
|
+
dataOrigin: buildDataOrigin(entry, resourceContext, timestamp, {
|
|
1592
|
+
normalizerVersion: JUNCTION_SLEEP_STAGE_SUMMARY_NORMALIZER_VERSION,
|
|
1593
|
+
}),
|
|
1594
|
+
fields: {
|
|
1595
|
+
metric: metric.metric,
|
|
1596
|
+
observationGrain: "summary",
|
|
1597
|
+
value: resolved.value,
|
|
1598
|
+
unit: resolved.unit,
|
|
1599
|
+
},
|
|
1600
|
+
}));
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
function resolveSleepStageCanonicalTimeZone(...entries) {
|
|
1604
|
+
const explicitTimeZone = entries
|
|
1605
|
+
.map((entry) => firstStringFromPaths(entry, ["timeZone", "timezone", "time_zone"]))
|
|
1606
|
+
.find((timeZone) => timeZone !== undefined);
|
|
1607
|
+
if (explicitTimeZone) {
|
|
1608
|
+
return explicitTimeZone;
|
|
1609
|
+
}
|
|
1610
|
+
const hasOffsetOnlyEvidence = entries.some((entry) => {
|
|
1611
|
+
const offsetSeconds = readJunctionTimeZoneOffsetSeconds(entry);
|
|
1612
|
+
return offsetSeconds !== null && offsetSeconds !== undefined;
|
|
1613
|
+
});
|
|
1614
|
+
if (hasOffsetOnlyEvidence) {
|
|
1615
|
+
return undefined;
|
|
1616
|
+
}
|
|
1617
|
+
return entries.some(hasUtcSleepStageWindow)
|
|
1618
|
+
? "UTC"
|
|
1619
|
+
: undefined;
|
|
1620
|
+
}
|
|
1621
|
+
function hasUtcSleepStageWindow(entry) {
|
|
1622
|
+
const rawStartAt = firstStringFromPaths(entry, JUNCTION_SLEEP_COVERAGE_START_TIMESTAMP_PATHS);
|
|
1623
|
+
const rawEndAt = firstStringFromPaths(entry, JUNCTION_SLEEP_COVERAGE_END_TIMESTAMP_PATHS);
|
|
1624
|
+
return inferTimestampSemantics(rawStartAt) === "utc" && inferTimestampSemantics(rawEndAt) === "utc";
|
|
1625
|
+
}
|
|
1626
|
+
function pushSleepCycleEntries(entries, context, sleepSummaryStageMetricOwners) {
|
|
1627
|
+
const aggregates = new Map();
|
|
1628
|
+
const totalAggregates = new Map();
|
|
1629
|
+
for (const { entry, resourceContext } of entries) {
|
|
1630
|
+
collectJunctionSleepStageAggregates(entry, resourceContext, context, aggregates, totalAggregates);
|
|
1631
|
+
}
|
|
1632
|
+
for (const aggregate of totalAggregates.values()) {
|
|
1633
|
+
if (isSleepMetricOwnedBySleepSummary(aggregate, "sleep-total-minutes", sleepSummaryStageMetricOwners)) {
|
|
1634
|
+
continue;
|
|
1635
|
+
}
|
|
1636
|
+
context.events.push(stripUndefined({
|
|
1637
|
+
kind: "observation",
|
|
1638
|
+
occurredAt: aggregate.endAt,
|
|
1639
|
+
recordedAt: aggregate.recordedAt,
|
|
1640
|
+
dayKey: aggregate.timestamp.dayKey,
|
|
1641
|
+
timeZone: aggregate.timeZone,
|
|
1642
|
+
source: "device",
|
|
1643
|
+
title: "Junction total sleep",
|
|
1644
|
+
evidenceRoles: aggregate.resourceContext.evidenceRoles,
|
|
1645
|
+
externalRef: makeJunctionSleepAggregateExternalRef(aggregate.resourceContext, aggregate, "sleep-total-minutes"),
|
|
1646
|
+
dataOrigin: buildDataOrigin(aggregate.dataOriginEntry, aggregate.resourceContext, aggregate.timestamp, {
|
|
1647
|
+
normalizerVersion: JUNCTION_SLEEP_UNSPECIFIED_TOTAL_NORMALIZER_VERSION,
|
|
1648
|
+
}),
|
|
1649
|
+
fields: {
|
|
1650
|
+
metric: "sleep-total-minutes",
|
|
1651
|
+
observationGrain: "summary",
|
|
1652
|
+
value: Number(aggregate.durationMinutes.toFixed(4)),
|
|
1653
|
+
unit: "minutes",
|
|
1654
|
+
},
|
|
1655
|
+
}));
|
|
1656
|
+
}
|
|
1657
|
+
for (const aggregate of aggregates.values()) {
|
|
1658
|
+
const metric = sleepStageMetricDescriptor(aggregate.stage);
|
|
1659
|
+
if (isSleepMetricOwnedBySleepSummary(aggregate, metric.metric, sleepSummaryStageMetricOwners)) {
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1662
|
+
context.events.push(stripUndefined({
|
|
1663
|
+
kind: "observation",
|
|
1664
|
+
occurredAt: aggregate.endAt,
|
|
1665
|
+
recordedAt: aggregate.recordedAt,
|
|
1666
|
+
dayKey: aggregate.timestamp.dayKey,
|
|
1667
|
+
timeZone: aggregate.timeZone,
|
|
1668
|
+
source: "device",
|
|
1669
|
+
title: metric.title,
|
|
1670
|
+
evidenceRoles: aggregate.resourceContext.evidenceRoles,
|
|
1671
|
+
externalRef: makeJunctionSleepAggregateExternalRef(aggregate.resourceContext, aggregate, metric.metric),
|
|
1672
|
+
dataOrigin: buildDataOrigin(aggregate.dataOriginEntry, aggregate.resourceContext, aggregate.timestamp, {
|
|
1673
|
+
normalizerVersion: JUNCTION_SLEEP_STAGE_CYCLE_FALLBACK_NORMALIZER_VERSION,
|
|
1674
|
+
}),
|
|
1675
|
+
fields: {
|
|
1676
|
+
metric: metric.metric,
|
|
1677
|
+
observationGrain: "summary",
|
|
1678
|
+
value: Number(aggregate.durationMinutes.toFixed(4)),
|
|
1679
|
+
unit: "minutes",
|
|
1680
|
+
},
|
|
1681
|
+
}));
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
function isSleepMetricOwnedBySleepSummary(aggregate, metric, sleepSummaryStageMetricOwners) {
|
|
1685
|
+
return sleepSummaryStageMetricOwners.some((owner) => owner.metric === metric &&
|
|
1686
|
+
sleepStageOwnerSourceMatchesAggregate(owner, aggregate) &&
|
|
1687
|
+
sleepStageOwnerWindowMatchesAggregate(owner, aggregate));
|
|
1688
|
+
}
|
|
1689
|
+
function sleepStageOwnerSourceMatchesAggregate(owner, aggregate) {
|
|
1690
|
+
if (owner.sourceProviderSlug !== aggregate.resourceContext.sourceProviderSlug) {
|
|
1691
|
+
return false;
|
|
1692
|
+
}
|
|
1693
|
+
const aggregateSourceType = aggregate.resourceContext.origin.sourceType;
|
|
1694
|
+
if (owner.sourceType !== aggregateSourceType) {
|
|
1695
|
+
return false;
|
|
1696
|
+
}
|
|
1697
|
+
const aggregateSourceInstanceId = aggregate.resourceContext.origin.sourceInstanceId;
|
|
1698
|
+
return owner.sourceInstanceId === aggregateSourceInstanceId;
|
|
1699
|
+
}
|
|
1700
|
+
function sleepStageOwnerWindowMatchesAggregate(owner, aggregate) {
|
|
1701
|
+
return owner.startAt === aggregate.coverageStartAt &&
|
|
1702
|
+
owner.endAt === aggregate.coverageEndAt;
|
|
1703
|
+
}
|
|
1704
|
+
function collectJunctionSleepStageAggregates(entry, resourceContext, context, aggregates, totalAggregates) {
|
|
1261
1705
|
const parentTimestamp = resolveRecordTimestamp(entry, context, resourceContext.sourceProviderSlug);
|
|
1262
|
-
|
|
1263
|
-
|
|
1706
|
+
const intervals = collectJunctionSleepStageIntervals(entry, resourceContext, context, parentTimestamp);
|
|
1707
|
+
const parentResourceId = resolveSleepCycleParentResourceId(resourceContext, entry, parentTimestamp);
|
|
1708
|
+
const covered = collectCoveredSleepStageIntervals(entry, resourceContext, intervals);
|
|
1709
|
+
if (!parentResourceId || !covered) {
|
|
1710
|
+
return;
|
|
1711
|
+
}
|
|
1712
|
+
const buckets = new Map();
|
|
1713
|
+
const entryAggregates = new Map();
|
|
1714
|
+
const entryTotalAggregates = new Map();
|
|
1715
|
+
const hasGenericAsleepStage = covered.intervals.some((interval) => interval.stage === "asleep_unspecified");
|
|
1716
|
+
const hasDetailedAsleepStage = covered.intervals.some((interval) => isDetailedAsleepStage(interval.stage));
|
|
1717
|
+
for (const interval of covered.intervals) {
|
|
1718
|
+
const stageTimestamp = withTimestampOverride(interval.timestamp, {
|
|
1719
|
+
occurredAt: covered.coverageWindow.endAt,
|
|
1720
|
+
dayKey: resolveSleepStageAnchorDayKey(covered.coverageWindow.endAt, interval.timeZone, interval.timestamp, parentTimestamp),
|
|
1721
|
+
});
|
|
1722
|
+
const bucketKey = sleepStageBucketKey(resourceContext, covered.coverageWindow.startAt, covered.coverageWindow.endAt);
|
|
1723
|
+
const totalAggregateKey = sleepTotalAggregateKey(resourceContext, covered.coverageWindow.startAt, covered.coverageWindow.endAt);
|
|
1724
|
+
if (hasGenericAsleepStage && isSleepTotalStage(interval.stage)) {
|
|
1725
|
+
addSleepTotalAggregateDuration(entryTotalAggregates, totalAggregateKey, {
|
|
1726
|
+
coverageEndAt: covered.coverageWindow.endAt,
|
|
1727
|
+
coverageStartAt: covered.coverageWindow.startAt,
|
|
1728
|
+
dataOriginEntry: interval.dataOriginEntry,
|
|
1729
|
+
durationMinutes: interval.durationMinutes,
|
|
1730
|
+
endAt: covered.coverageWindow.endAt,
|
|
1731
|
+
parentResourceId,
|
|
1732
|
+
recordedAt: stageTimestamp.recordedAt,
|
|
1733
|
+
resourceContext,
|
|
1734
|
+
startAt: covered.coverageWindow.startAt,
|
|
1735
|
+
timestamp: stageTimestamp,
|
|
1736
|
+
timeZone: interval.timeZone,
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
if (interval.stage === "asleep_unspecified") {
|
|
1740
|
+
continue;
|
|
1741
|
+
}
|
|
1742
|
+
const aggregateKey = sleepStageAggregateKey(resourceContext, interval.stage, covered.coverageWindow.startAt, covered.coverageWindow.endAt);
|
|
1743
|
+
if (hasDetailedAsleepStage) {
|
|
1744
|
+
const bucketCandidate = {
|
|
1745
|
+
coverageEndAt: covered.coverageWindow.endAt,
|
|
1746
|
+
coverageStartAt: covered.coverageWindow.startAt,
|
|
1747
|
+
dataOriginEntry: interval.dataOriginEntry,
|
|
1748
|
+
endAt: covered.coverageWindow.endAt,
|
|
1749
|
+
parentResourceId,
|
|
1750
|
+
recordedAt: stageTimestamp.recordedAt,
|
|
1751
|
+
resourceContext,
|
|
1752
|
+
startAt: covered.coverageWindow.startAt,
|
|
1753
|
+
timestamp: stageTimestamp,
|
|
1754
|
+
timeZone: interval.timeZone,
|
|
1755
|
+
};
|
|
1756
|
+
const existingBucket = buckets.get(bucketKey);
|
|
1757
|
+
if (existingBucket) {
|
|
1758
|
+
existingBucket.recordedAt = laterOptionalIsoTimestamp(existingBucket.recordedAt, stageTimestamp.recordedAt);
|
|
1759
|
+
const preferredBucket = compareSleepStageBucketPreference(bucketCandidate, existingBucket) > 0
|
|
1760
|
+
? { ...bucketCandidate, recordedAt: existingBucket.recordedAt }
|
|
1761
|
+
: existingBucket;
|
|
1762
|
+
buckets.set(bucketKey, {
|
|
1763
|
+
...preferredBucket,
|
|
1764
|
+
recordedAt: existingBucket.recordedAt,
|
|
1765
|
+
timestamp: withTimestampOverride(preferredBucket.timestamp, {
|
|
1766
|
+
recordedAt: existingBucket.recordedAt,
|
|
1767
|
+
}),
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
else {
|
|
1771
|
+
buckets.set(bucketKey, bucketCandidate);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
addSleepStageAggregateDuration(entryAggregates, aggregateKey, {
|
|
1775
|
+
coverageEndAt: covered.coverageWindow.endAt,
|
|
1776
|
+
coverageStartAt: covered.coverageWindow.startAt,
|
|
1777
|
+
dataOriginEntry: interval.dataOriginEntry,
|
|
1778
|
+
durationMinutes: interval.durationMinutes,
|
|
1779
|
+
endAt: covered.coverageWindow.endAt,
|
|
1780
|
+
parentResourceId,
|
|
1781
|
+
recordedAt: stageTimestamp.recordedAt,
|
|
1782
|
+
resourceContext,
|
|
1783
|
+
stage: interval.stage,
|
|
1784
|
+
startAt: covered.coverageWindow.startAt,
|
|
1785
|
+
timestamp: stageTimestamp,
|
|
1786
|
+
timeZone: interval.timeZone,
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
for (const bucket of buckets.values()) {
|
|
1790
|
+
for (const stage of JUNCTION_SLEEP_STAGES) {
|
|
1791
|
+
const aggregateKey = sleepStageAggregateKey(bucket.resourceContext, stage, bucket.coverageStartAt, bucket.coverageEndAt);
|
|
1792
|
+
if (entryAggregates.has(aggregateKey)) {
|
|
1793
|
+
continue;
|
|
1794
|
+
}
|
|
1795
|
+
entryAggregates.set(aggregateKey, {
|
|
1796
|
+
coverageEndAt: bucket.coverageEndAt,
|
|
1797
|
+
coverageStartAt: bucket.coverageStartAt,
|
|
1798
|
+
dataOriginEntry: bucket.dataOriginEntry,
|
|
1799
|
+
durationMinutes: 0,
|
|
1800
|
+
endAt: bucket.endAt,
|
|
1801
|
+
parentResourceId: bucket.parentResourceId,
|
|
1802
|
+
recordedAt: bucket.recordedAt,
|
|
1803
|
+
resourceContext: bucket.resourceContext,
|
|
1804
|
+
stage,
|
|
1805
|
+
startAt: bucket.startAt,
|
|
1806
|
+
timestamp: bucket.timestamp,
|
|
1807
|
+
timeZone: bucket.timeZone,
|
|
1808
|
+
});
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
for (const aggregate of entryAggregates.values()) {
|
|
1812
|
+
mergeSleepStageAggregateCandidate(aggregates, aggregate);
|
|
1813
|
+
}
|
|
1814
|
+
for (const aggregate of entryTotalAggregates.values()) {
|
|
1815
|
+
mergeSleepTotalAggregateCandidate(totalAggregates, aggregate);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
function sleepStageBucketKey(resourceContext, coverageStartAt, coverageEndAt) {
|
|
1819
|
+
return [
|
|
1820
|
+
resourceContext.externalRefResourceType,
|
|
1821
|
+
resourceContext.sourceProviderSlug,
|
|
1822
|
+
resourceContext.origin.sourceType,
|
|
1823
|
+
resourceContext.origin.sourceInstanceId,
|
|
1824
|
+
coverageStartAt,
|
|
1825
|
+
coverageEndAt,
|
|
1826
|
+
].join("|");
|
|
1827
|
+
}
|
|
1828
|
+
function sleepStageAggregateKey(resourceContext, stage, coverageStartAt, coverageEndAt) {
|
|
1829
|
+
return [
|
|
1830
|
+
resourceContext.externalRefResourceType,
|
|
1831
|
+
resourceContext.sourceProviderSlug,
|
|
1832
|
+
resourceContext.origin.sourceType,
|
|
1833
|
+
resourceContext.origin.sourceInstanceId,
|
|
1834
|
+
coverageStartAt,
|
|
1835
|
+
coverageEndAt,
|
|
1836
|
+
stage,
|
|
1837
|
+
].join("|");
|
|
1838
|
+
}
|
|
1839
|
+
function sleepTotalAggregateKey(resourceContext, coverageStartAt, coverageEndAt) {
|
|
1840
|
+
return [
|
|
1841
|
+
resourceContext.externalRefResourceType,
|
|
1842
|
+
resourceContext.sourceProviderSlug,
|
|
1843
|
+
resourceContext.origin.sourceType,
|
|
1844
|
+
resourceContext.origin.sourceInstanceId,
|
|
1845
|
+
coverageStartAt,
|
|
1846
|
+
coverageEndAt,
|
|
1847
|
+
"sleep-total-minutes",
|
|
1848
|
+
].join("|");
|
|
1849
|
+
}
|
|
1850
|
+
function addSleepStageAggregateDuration(aggregates, aggregateKey, candidate) {
|
|
1851
|
+
const existing = aggregates.get(aggregateKey);
|
|
1852
|
+
if (!existing) {
|
|
1853
|
+
aggregates.set(aggregateKey, candidate);
|
|
1854
|
+
return;
|
|
1855
|
+
}
|
|
1856
|
+
const recordedAt = laterOptionalIsoTimestamp(existing.recordedAt, candidate.recordedAt);
|
|
1857
|
+
const preferred = compareSleepStageAggregatePreference(candidate, existing) > 0 ? candidate : existing;
|
|
1858
|
+
aggregates.set(aggregateKey, {
|
|
1859
|
+
...preferred,
|
|
1860
|
+
durationMinutes: existing.durationMinutes + candidate.durationMinutes,
|
|
1861
|
+
recordedAt,
|
|
1862
|
+
timestamp: withTimestampOverride(preferred.timestamp, { recordedAt }),
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
function addSleepTotalAggregateDuration(aggregates, aggregateKey, candidate) {
|
|
1866
|
+
const existing = aggregates.get(aggregateKey);
|
|
1867
|
+
if (!existing) {
|
|
1868
|
+
aggregates.set(aggregateKey, candidate);
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
const recordedAt = laterOptionalIsoTimestamp(existing.recordedAt, candidate.recordedAt);
|
|
1872
|
+
const preferred = compareSleepAggregatePreference(candidate, existing) > 0 ? candidate : existing;
|
|
1873
|
+
aggregates.set(aggregateKey, {
|
|
1874
|
+
...preferred,
|
|
1875
|
+
durationMinutes: existing.durationMinutes + candidate.durationMinutes,
|
|
1876
|
+
recordedAt,
|
|
1877
|
+
timestamp: withTimestampOverride(preferred.timestamp, { recordedAt }),
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
function mergeSleepStageAggregateCandidate(aggregates, candidate) {
|
|
1881
|
+
const aggregateKey = sleepStageAggregateKey(candidate.resourceContext, candidate.stage, candidate.coverageStartAt, candidate.coverageEndAt);
|
|
1882
|
+
const existing = aggregates.get(aggregateKey);
|
|
1883
|
+
if (!existing) {
|
|
1884
|
+
aggregates.set(aggregateKey, candidate);
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
const recordedAt = laterOptionalIsoTimestamp(existing.recordedAt, candidate.recordedAt);
|
|
1888
|
+
const preferred = compareSleepStageAggregatePreference(candidate, existing) > 0 ? candidate : existing;
|
|
1889
|
+
aggregates.set(aggregateKey, {
|
|
1890
|
+
...preferred,
|
|
1891
|
+
recordedAt,
|
|
1892
|
+
timestamp: withTimestampOverride(preferred.timestamp, { recordedAt }),
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
function mergeSleepTotalAggregateCandidate(aggregates, candidate) {
|
|
1896
|
+
const aggregateKey = sleepTotalAggregateKey(candidate.resourceContext, candidate.coverageStartAt, candidate.coverageEndAt);
|
|
1897
|
+
const existing = aggregates.get(aggregateKey);
|
|
1898
|
+
if (!existing) {
|
|
1899
|
+
aggregates.set(aggregateKey, candidate);
|
|
1900
|
+
return;
|
|
1901
|
+
}
|
|
1902
|
+
const recordedAt = laterOptionalIsoTimestamp(existing.recordedAt, candidate.recordedAt);
|
|
1903
|
+
const preferred = compareSleepAggregatePreference(candidate, existing) > 0 ? candidate : existing;
|
|
1904
|
+
aggregates.set(aggregateKey, {
|
|
1905
|
+
...preferred,
|
|
1906
|
+
recordedAt,
|
|
1907
|
+
timestamp: withTimestampOverride(preferred.timestamp, { recordedAt }),
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
function compareSleepStageBucketPreference(left, right) {
|
|
1911
|
+
return compareSleepStageDisplayPreference({
|
|
1912
|
+
dayKey: left.timestamp.dayKey,
|
|
1913
|
+
parentResourceId: left.parentResourceId,
|
|
1914
|
+
timeZone: left.timeZone,
|
|
1915
|
+
}, {
|
|
1916
|
+
dayKey: right.timestamp.dayKey,
|
|
1917
|
+
parentResourceId: right.parentResourceId,
|
|
1918
|
+
timeZone: right.timeZone,
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
function compareSleepStageAggregatePreference(left, right) {
|
|
1922
|
+
return compareSleepAggregatePreference(left, right);
|
|
1923
|
+
}
|
|
1924
|
+
function compareSleepAggregatePreference(left, right) {
|
|
1925
|
+
const durationPreference = Number(left.durationMinutes > 0) - Number(right.durationMinutes > 0);
|
|
1926
|
+
if (durationPreference !== 0) {
|
|
1927
|
+
return durationPreference;
|
|
1928
|
+
}
|
|
1929
|
+
return compareSleepStageDisplayPreference({
|
|
1930
|
+
dayKey: left.timestamp.dayKey,
|
|
1931
|
+
parentResourceId: left.parentResourceId,
|
|
1932
|
+
timeZone: left.timeZone,
|
|
1933
|
+
}, {
|
|
1934
|
+
dayKey: right.timestamp.dayKey,
|
|
1935
|
+
parentResourceId: right.parentResourceId,
|
|
1936
|
+
timeZone: right.timeZone,
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
function compareSleepStageDisplayPreference(left, right) {
|
|
1940
|
+
const timeZonePreference = sleepStageTimeZonePreference(left.timeZone) -
|
|
1941
|
+
sleepStageTimeZonePreference(right.timeZone);
|
|
1942
|
+
if (timeZonePreference !== 0) {
|
|
1943
|
+
return timeZonePreference;
|
|
1944
|
+
}
|
|
1945
|
+
const timeZoneOrder = compareOptionalSleepStageDisplayValue(left.timeZone, right.timeZone);
|
|
1946
|
+
if (timeZoneOrder !== 0) {
|
|
1947
|
+
return timeZoneOrder;
|
|
1948
|
+
}
|
|
1949
|
+
const dayKeyOrder = compareOptionalSleepStageDisplayValue(left.dayKey, right.dayKey);
|
|
1950
|
+
if (dayKeyOrder !== 0) {
|
|
1951
|
+
return dayKeyOrder;
|
|
1952
|
+
}
|
|
1953
|
+
return compareOptionalSleepStageDisplayValue(left.parentResourceId, right.parentResourceId);
|
|
1954
|
+
}
|
|
1955
|
+
function isDetailedAsleepStage(stage) {
|
|
1956
|
+
return stage === "light" || stage === "deep" || stage === "rem";
|
|
1957
|
+
}
|
|
1958
|
+
function isSleepTotalStage(stage) {
|
|
1959
|
+
return stage !== "awake";
|
|
1960
|
+
}
|
|
1961
|
+
function sleepStageTimeZonePreference(timeZone) {
|
|
1962
|
+
if (!timeZone) {
|
|
1963
|
+
return 0;
|
|
1964
|
+
}
|
|
1965
|
+
return timeZone === "UTC" ? 1 : 2;
|
|
1966
|
+
}
|
|
1967
|
+
function compareOptionalSleepStageDisplayValue(left, right) {
|
|
1968
|
+
const leftValue = left ?? "";
|
|
1969
|
+
const rightValue = right ?? "";
|
|
1970
|
+
if (leftValue === rightValue) {
|
|
1971
|
+
return 0;
|
|
1972
|
+
}
|
|
1973
|
+
return leftValue < rightValue ? 1 : -1;
|
|
1974
|
+
}
|
|
1975
|
+
function collectCoveredSleepStageIntervals(entry, resourceContext, intervals) {
|
|
1976
|
+
const coverageWindow = resolveSleepStageCoverageWindow(entry, resourceContext.sourceProviderSlug);
|
|
1977
|
+
if (!coverageWindow || intervals.length === 0) {
|
|
1978
|
+
return undefined;
|
|
1979
|
+
}
|
|
1980
|
+
const coveredIntervals = clipSleepStageIntervalsToWindow(intervals, coverageWindow);
|
|
1981
|
+
return coveredIntervals ? { coverageWindow, intervals: coveredIntervals } : undefined;
|
|
1982
|
+
}
|
|
1983
|
+
function resolveSleepStageCoverageWindow(entry, sourceProviderSlug) {
|
|
1984
|
+
const startAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_COVERAGE_START_TIMESTAMP_PATHS), sourceProviderSlug);
|
|
1985
|
+
const endAt = resolveSafeTimestamp(firstValueFromPaths(entry, JUNCTION_SLEEP_COVERAGE_END_TIMESTAMP_PATHS), sourceProviderSlug);
|
|
1986
|
+
if (!startAt || !endAt || Date.parse(endAt) <= Date.parse(startAt)) {
|
|
1987
|
+
return undefined;
|
|
1988
|
+
}
|
|
1989
|
+
return { endAt, startAt };
|
|
1990
|
+
}
|
|
1991
|
+
function collectSleepStageCoverageIntervals(entry, sourceProviderSlug) {
|
|
1992
|
+
return sleepStageIntervalEntries(entry, sourceProviderSlug).flatMap((intervalEntry) => {
|
|
1993
|
+
const stage = firstSleepStageFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_VALUE_PATHS, sourceProviderSlug);
|
|
1994
|
+
if (!stage) {
|
|
1995
|
+
return [];
|
|
1996
|
+
}
|
|
1997
|
+
const startAt = resolveSafeTimestamp(firstValueFromPaths(intervalEntry, JUNCTION_SLEEP_START_TIMESTAMP_PATHS), sourceProviderSlug);
|
|
1998
|
+
const endAt = resolveSafeTimestamp(firstValueFromPaths(intervalEntry, JUNCTION_SLEEP_END_TIMESTAMP_PATHS), sourceProviderSlug);
|
|
1999
|
+
const durationMinutes = normalizePositiveMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_MINUTE_PATHS)) ??
|
|
2000
|
+
normalizePositiveMinutes(secondsToMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_SECOND_PATHS))) ??
|
|
2001
|
+
normalizePositiveMinutes(millisecondsToMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_MILLISECOND_PATHS))) ??
|
|
2002
|
+
exactPositiveMinutesBetween(startAt, endAt);
|
|
2003
|
+
const resolvedStartAt = startAt ?? subtractMinutes(endAt, durationMinutes);
|
|
2004
|
+
const resolvedEndAt = endAt ?? addMinutes(startAt, durationMinutes);
|
|
2005
|
+
return resolvedStartAt && resolvedEndAt && durationMinutes !== undefined
|
|
2006
|
+
? [{ endAt: resolvedEndAt, startAt: resolvedStartAt }]
|
|
2007
|
+
: [];
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
function sleepStageCoverageIntervalsCoverWindow(intervals, coverageWindow) {
|
|
2011
|
+
const windowStartMs = Date.parse(coverageWindow.startAt);
|
|
2012
|
+
const windowEndMs = Date.parse(coverageWindow.endAt);
|
|
2013
|
+
if (!Number.isFinite(windowStartMs) || !Number.isFinite(windowEndMs) || windowEndMs <= windowStartMs) {
|
|
2014
|
+
return false;
|
|
2015
|
+
}
|
|
2016
|
+
let coveredUntilMs = windowStartMs;
|
|
2017
|
+
const orderedIntervals = [...intervals].sort((left, right) => Date.parse(left.startAt) - Date.parse(right.startAt));
|
|
2018
|
+
for (const interval of orderedIntervals) {
|
|
2019
|
+
const rawStartMs = Date.parse(interval.startAt);
|
|
2020
|
+
const rawEndMs = Date.parse(interval.endAt);
|
|
2021
|
+
if (!Number.isFinite(rawStartMs) || !Number.isFinite(rawEndMs)) {
|
|
2022
|
+
continue;
|
|
2023
|
+
}
|
|
2024
|
+
const intervalStartMs = Math.max(rawStartMs, windowStartMs);
|
|
2025
|
+
const intervalEndMs = Math.min(rawEndMs, windowEndMs);
|
|
2026
|
+
if (intervalEndMs <= intervalStartMs) {
|
|
2027
|
+
continue;
|
|
2028
|
+
}
|
|
2029
|
+
if (intervalStartMs - coveredUntilMs > SLEEP_STAGE_COVERAGE_TOLERANCE_MS) {
|
|
2030
|
+
return false;
|
|
2031
|
+
}
|
|
2032
|
+
if (intervalStartMs < coveredUntilMs - SLEEP_STAGE_COVERAGE_TOLERANCE_MS) {
|
|
2033
|
+
return false;
|
|
2034
|
+
}
|
|
2035
|
+
const clippedStartMs = Math.max(intervalStartMs, coveredUntilMs);
|
|
2036
|
+
if (intervalEndMs <= clippedStartMs) {
|
|
2037
|
+
continue;
|
|
2038
|
+
}
|
|
2039
|
+
coveredUntilMs = intervalEndMs;
|
|
2040
|
+
}
|
|
2041
|
+
return windowEndMs - coveredUntilMs <= SLEEP_STAGE_COVERAGE_TOLERANCE_MS;
|
|
2042
|
+
}
|
|
2043
|
+
function clipSleepStageIntervalsToWindow(intervals, coverageWindow) {
|
|
2044
|
+
const windowStartMs = Date.parse(coverageWindow.startAt);
|
|
2045
|
+
const windowEndMs = Date.parse(coverageWindow.endAt);
|
|
2046
|
+
if (!Number.isFinite(windowStartMs) || !Number.isFinite(windowEndMs) || windowEndMs <= windowStartMs) {
|
|
2047
|
+
return undefined;
|
|
2048
|
+
}
|
|
2049
|
+
let coveredUntilMs = windowStartMs;
|
|
2050
|
+
const coveredIntervals = [];
|
|
2051
|
+
const orderedIntervals = [...intervals].sort((left, right) => Date.parse(left.startAt) - Date.parse(right.startAt));
|
|
2052
|
+
for (const interval of orderedIntervals) {
|
|
2053
|
+
const rawStartMs = Date.parse(interval.startAt);
|
|
2054
|
+
const rawEndMs = Date.parse(interval.endAt);
|
|
2055
|
+
if (!Number.isFinite(rawStartMs) || !Number.isFinite(rawEndMs)) {
|
|
2056
|
+
continue;
|
|
2057
|
+
}
|
|
2058
|
+
const intervalStartMs = Math.max(rawStartMs, windowStartMs);
|
|
2059
|
+
const intervalEndMs = Math.min(rawEndMs, windowEndMs);
|
|
2060
|
+
if (intervalEndMs <= intervalStartMs) {
|
|
2061
|
+
continue;
|
|
2062
|
+
}
|
|
2063
|
+
if (intervalStartMs - coveredUntilMs > SLEEP_STAGE_COVERAGE_TOLERANCE_MS) {
|
|
2064
|
+
return undefined;
|
|
2065
|
+
}
|
|
2066
|
+
if (intervalStartMs < coveredUntilMs - SLEEP_STAGE_COVERAGE_TOLERANCE_MS) {
|
|
2067
|
+
return undefined;
|
|
2068
|
+
}
|
|
2069
|
+
const clippedStartMs = Math.max(intervalStartMs, coveredUntilMs);
|
|
2070
|
+
const clippedEndMs = intervalEndMs;
|
|
2071
|
+
if (clippedEndMs <= clippedStartMs) {
|
|
2072
|
+
continue;
|
|
2073
|
+
}
|
|
2074
|
+
coveredIntervals.push({
|
|
2075
|
+
...interval,
|
|
2076
|
+
durationMinutes: (clippedEndMs - clippedStartMs) / 60000,
|
|
2077
|
+
endAt: new Date(clippedEndMs).toISOString(),
|
|
2078
|
+
startAt: new Date(clippedStartMs).toISOString(),
|
|
2079
|
+
});
|
|
2080
|
+
coveredUntilMs = clippedEndMs;
|
|
2081
|
+
}
|
|
2082
|
+
return windowEndMs - coveredUntilMs <= SLEEP_STAGE_COVERAGE_TOLERANCE_MS
|
|
2083
|
+
? coveredIntervals
|
|
2084
|
+
: undefined;
|
|
2085
|
+
}
|
|
2086
|
+
function collectJunctionSleepStageIntervals(entry, resourceContext, context, parentTimestamp) {
|
|
2087
|
+
const intervals = [];
|
|
2088
|
+
for (const intervalEntry of sleepStageIntervalEntries(entry, resourceContext.sourceProviderSlug)) {
|
|
2089
|
+
const stage = firstSleepStageFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_VALUE_PATHS, resourceContext.sourceProviderSlug);
|
|
1264
2090
|
if (!stage) {
|
|
1265
2091
|
continue;
|
|
1266
2092
|
}
|
|
@@ -1268,10 +2094,10 @@ function pushSleepCycle(entry, resourceContext, context) {
|
|
|
1268
2094
|
const endAtRaw = firstValueFromPaths(intervalEntry, JUNCTION_SLEEP_END_TIMESTAMP_PATHS);
|
|
1269
2095
|
const startAt = resolveSafeTimestamp(startAtRaw, resourceContext.sourceProviderSlug);
|
|
1270
2096
|
const endAt = resolveSafeTimestamp(endAtRaw, resourceContext.sourceProviderSlug);
|
|
1271
|
-
const durationMinutes =
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
2097
|
+
const durationMinutes = normalizePositiveMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_MINUTE_PATHS)) ??
|
|
2098
|
+
normalizePositiveMinutes(secondsToMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_SECOND_PATHS))) ??
|
|
2099
|
+
normalizePositiveMinutes(millisecondsToMinutes(firstNumberFromPaths(intervalEntry, JUNCTION_SLEEP_STAGE_DURATION_MILLISECOND_PATHS))) ??
|
|
2100
|
+
exactPositiveMinutesBetween(startAt, endAt);
|
|
1275
2101
|
const resolvedStartAt = startAt ?? subtractMinutes(endAt, durationMinutes);
|
|
1276
2102
|
const resolvedEndAt = endAt ?? addMinutes(startAt, durationMinutes);
|
|
1277
2103
|
if (!resolvedStartAt || !resolvedEndAt || durationMinutes === undefined) {
|
|
@@ -1279,49 +2105,106 @@ function pushSleepCycle(entry, resourceContext, context) {
|
|
|
1279
2105
|
}
|
|
1280
2106
|
const intervalTimestamp = resolveRecordTimestamp(intervalEntry, context, resourceContext.sourceProviderSlug);
|
|
1281
2107
|
const originEntry = { ...entry, ...intervalEntry };
|
|
2108
|
+
const timeZone = resolveSleepStageCanonicalTimeZone(intervalEntry, entry);
|
|
1282
2109
|
const stageTimestamp = withTimestampOverride(intervalTimestamp, {
|
|
1283
|
-
occurredAt: resolvedStartAt,
|
|
1284
2110
|
recordedAt: intervalTimestamp.recordedAt ?? parentTimestamp.recordedAt ?? resolvedStartAt,
|
|
1285
|
-
dayKey: resolveSleepStageDayKey(intervalEntry, entry, resolvedStartAt, context.defaultTimeZone) ??
|
|
1286
|
-
intervalTimestamp.dayKey ??
|
|
1287
|
-
parentTimestamp.dayKey,
|
|
1288
2111
|
observedAtRaw: stringId(startAtRaw) ?? intervalTimestamp.observedAtRaw ?? parentTimestamp.observedAtRaw ?? resolvedStartAt,
|
|
1289
2112
|
timestampSemantics: intervalTimestamp.timestampSemantics ?? parentTimestamp.timestampSemantics,
|
|
1290
2113
|
});
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
2114
|
+
intervals.push({
|
|
2115
|
+
dataOriginEntry: originEntry,
|
|
2116
|
+
durationMinutes,
|
|
2117
|
+
endAt: resolvedEndAt,
|
|
1294
2118
|
recordedAt: stageTimestamp.recordedAt,
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
dataOrigin: buildDataOrigin(originEntry, resourceContext, stageTimestamp),
|
|
1302
|
-
sample: {
|
|
1303
|
-
recordedAt: stageTimestamp.recordedAt,
|
|
1304
|
-
occurredAt: stageTimestamp.occurredAt,
|
|
1305
|
-
stage,
|
|
1306
|
-
startAt: resolvedStartAt,
|
|
1307
|
-
endAt: resolvedEndAt,
|
|
1308
|
-
durationMinutes,
|
|
1309
|
-
},
|
|
1310
|
-
}));
|
|
2119
|
+
stage,
|
|
2120
|
+
startAt: resolvedStartAt,
|
|
2121
|
+
intervalEntry,
|
|
2122
|
+
timestamp: stageTimestamp,
|
|
2123
|
+
timeZone,
|
|
2124
|
+
});
|
|
1311
2125
|
}
|
|
2126
|
+
return intervals;
|
|
1312
2127
|
}
|
|
1313
|
-
function
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
2128
|
+
function resolveSleepCycleParentResourceId(resourceContext, entry, parentTimestamp) {
|
|
2129
|
+
const explicitParentId = firstStringFromPaths(entry, JUNCTION_GENERIC_SUMMARY_ID_PATHS);
|
|
2130
|
+
if ((parentTimestamp.observedAtRaw || explicitParentId) &&
|
|
2131
|
+
!isDirectSleepStageIntervalEntry(entry, resourceContext.sourceProviderSlug)) {
|
|
2132
|
+
return buildStableResourceId(resourceContext, entry, parentTimestamp);
|
|
2133
|
+
}
|
|
2134
|
+
return undefined;
|
|
2135
|
+
}
|
|
2136
|
+
function hasSleepCycleCompactParentIdentity(entry, sourceProviderSlug) {
|
|
2137
|
+
return !isDirectSleepStageIntervalEntry(entry, sourceProviderSlug) &&
|
|
2138
|
+
Boolean(firstStringFromPaths(entry, JUNCTION_GENERIC_SUMMARY_ID_PATHS) ||
|
|
2139
|
+
firstStringFromPaths(entry, JUNCTION_RECORD_TIMESTAMP_PATHS));
|
|
2140
|
+
}
|
|
2141
|
+
function makeJunctionSleepAggregateExternalRef(resourceContext, aggregate, metric) {
|
|
2142
|
+
return makeJunctionCanonicalSleepStageExternalRef(resourceContext, {
|
|
2143
|
+
coverageEndAt: aggregate.coverageEndAt,
|
|
2144
|
+
coverageStartAt: aggregate.coverageStartAt,
|
|
2145
|
+
dayKey: aggregate.timestamp.dayKey,
|
|
2146
|
+
metric,
|
|
2147
|
+
timeZone: aggregate.timeZone,
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
function makeJunctionCanonicalSleepStageExternalRef(resourceContext, input) {
|
|
2151
|
+
return makeProviderExternalRef("junction", buildJunctionResourceType(resourceContext.sourceProviderSlug, "sleep"), `sleep-stage-${shortHash([
|
|
2152
|
+
resourceContext.sourceProviderSlug,
|
|
2153
|
+
resourceContext.origin.sourceType,
|
|
2154
|
+
resourceContext.origin.sourceInstanceId,
|
|
2155
|
+
input.coverageStartAt,
|
|
2156
|
+
input.coverageEndAt,
|
|
2157
|
+
])}`, undefined, slugify(input.metric, "value"));
|
|
2158
|
+
}
|
|
2159
|
+
function sleepStageMetricDescriptor(stage) {
|
|
2160
|
+
switch (stage) {
|
|
2161
|
+
case "awake":
|
|
2162
|
+
return { metric: "sleep-awake-minutes", title: "Junction awake time" };
|
|
2163
|
+
case "light":
|
|
2164
|
+
return { metric: "sleep-light-minutes", title: "Junction light sleep" };
|
|
2165
|
+
case "deep":
|
|
2166
|
+
return { metric: "sleep-deep-minutes", title: "Junction deep sleep" };
|
|
2167
|
+
case "rem":
|
|
2168
|
+
return { metric: "sleep-rem-minutes", title: "Junction REM sleep" };
|
|
2169
|
+
}
|
|
2170
|
+
const exhaustive = stage;
|
|
2171
|
+
return exhaustive;
|
|
2172
|
+
}
|
|
2173
|
+
function earlierIsoTimestamp(left, right) {
|
|
2174
|
+
return Date.parse(right) < Date.parse(left) ? right : left;
|
|
2175
|
+
}
|
|
2176
|
+
function laterIsoTimestamp(left, right) {
|
|
2177
|
+
return Date.parse(right) > Date.parse(left) ? right : left;
|
|
2178
|
+
}
|
|
2179
|
+
function laterOptionalIsoTimestamp(left, right) {
|
|
2180
|
+
if (!left) {
|
|
2181
|
+
return right;
|
|
2182
|
+
}
|
|
2183
|
+
if (!right) {
|
|
2184
|
+
return left;
|
|
2185
|
+
}
|
|
2186
|
+
return laterIsoTimestamp(left, right);
|
|
2187
|
+
}
|
|
2188
|
+
function resolveSleepStageAnchorDayKey(coverageEndAt, timeZone, timestamp, parentTimestamp) {
|
|
2189
|
+
const coverageEndMs = Date.parse(coverageEndAt);
|
|
2190
|
+
const localDayKey = Number.isFinite(coverageEndMs) && timeZone
|
|
2191
|
+
? localDayKeyAtMs(coverageEndMs, timeZone)
|
|
2192
|
+
: undefined;
|
|
2193
|
+
return localDayKey ?? timestamp.dayKey ?? parentTimestamp?.dayKey ?? extractIsoDatePrefix(coverageEndAt) ?? undefined;
|
|
2194
|
+
}
|
|
2195
|
+
function resolveSleepStageBucketTimeZone(intervalEntry, parentEntry, _defaultTimeZone) {
|
|
2196
|
+
// Only provider-supplied zones (or explicit UTC timestamps) can define
|
|
2197
|
+
// durable stage buckets. The vault default timezone is mutable profile
|
|
2198
|
+
// state, so missing/null provider zones keep stable UTC-day identity.
|
|
2199
|
+
return resolveSleepStageCanonicalTimeZone(intervalEntry, parentEntry);
|
|
2200
|
+
}
|
|
2201
|
+
function localDayKeyAtMs(timestampMs, timeZone) {
|
|
2202
|
+
try {
|
|
2203
|
+
return toLocalDayKey(new Date(timestampMs), timeZone);
|
|
2204
|
+
}
|
|
2205
|
+
catch {
|
|
2206
|
+
return undefined;
|
|
2207
|
+
}
|
|
1325
2208
|
}
|
|
1326
2209
|
function pushWorkoutSummary(entry, resourceContext, context) {
|
|
1327
2210
|
const timestamp = resolveRecordTimestamp(entry, context, resourceContext.sourceProviderSlug);
|
|
@@ -2159,6 +3042,7 @@ function pushObservationMetrics(entry, resourceContext, context, metrics, timest
|
|
|
2159
3042
|
if (!resolved) {
|
|
2160
3043
|
continue;
|
|
2161
3044
|
}
|
|
3045
|
+
const metricKey = resolveJunctionHrvMetric(metric.metric, resourceContext.sourceProviderSlug);
|
|
2162
3046
|
context.events.push(stripUndefined({
|
|
2163
3047
|
kind: "observation",
|
|
2164
3048
|
occurredAt,
|
|
@@ -2166,12 +3050,15 @@ function pushObservationMetrics(entry, resourceContext, context, metrics, timest
|
|
|
2166
3050
|
dayKey: timestamp.dayKey,
|
|
2167
3051
|
timeZone: firstStringFromPaths(entry, ["timeZone", "timezone", "time_zone"]),
|
|
2168
3052
|
source: "device",
|
|
2169
|
-
title: metric.title,
|
|
3053
|
+
title: resolveJunctionHrvTitle(metricKey, metric.title),
|
|
2170
3054
|
evidenceRoles: resourceContext.evidenceRoles,
|
|
3055
|
+
// Keep the pre-separation provider identity facet so a re-import
|
|
3056
|
+
// supersedes an existing generic Apple HRV event instead of duplicating
|
|
3057
|
+
// it under the corrected SDNN metric.
|
|
2171
3058
|
externalRef: makeJunctionExternalRef(resourceContext, entry, timestamp, metric.metric),
|
|
2172
3059
|
dataOrigin: buildDataOrigin(entry, resourceContext, timestamp),
|
|
2173
3060
|
fields: {
|
|
2174
|
-
metric:
|
|
3061
|
+
metric: metricKey,
|
|
2175
3062
|
observationGrain: "summary",
|
|
2176
3063
|
value: resolved.value,
|
|
2177
3064
|
unit: resolved.unit,
|
|
@@ -2179,6 +3066,18 @@ function pushObservationMetrics(entry, resourceContext, context, metrics, timest
|
|
|
2179
3066
|
}));
|
|
2180
3067
|
}
|
|
2181
3068
|
}
|
|
3069
|
+
function resolveJunctionHrvMetric(metric, sourceProviderSlug) {
|
|
3070
|
+
if (metric !== "hrv") {
|
|
3071
|
+
return metric;
|
|
3072
|
+
}
|
|
3073
|
+
return normalizeJunctionSourceProviderSlug(sourceProviderSlug)
|
|
3074
|
+
=== APPLE_HEALTH_KIT_SOURCE_PROVIDER_SLUG
|
|
3075
|
+
? HRV_SDNN_METRIC
|
|
3076
|
+
: metric;
|
|
3077
|
+
}
|
|
3078
|
+
function resolveJunctionHrvTitle(metric, fallback) {
|
|
3079
|
+
return metric === HRV_SDNN_METRIC ? "Apple Health HRV (SDNN)" : fallback;
|
|
3080
|
+
}
|
|
2182
3081
|
function pushJunctionRecoveryReadinessScore(entry, resourceContext, context, timestampOverride) {
|
|
2183
3082
|
const value = firstNumberFromPaths(entry, ["recoveryReadinessScore", "recovery_readiness_score"]);
|
|
2184
3083
|
if (value === undefined) {
|
|
@@ -2278,13 +3177,13 @@ function withGroupedSourceProviderFallback(originFallback) {
|
|
|
2278
3177
|
sourceType: groupedSourceType,
|
|
2279
3178
|
});
|
|
2280
3179
|
}
|
|
2281
|
-
function buildDataOrigin(entry, resourceContext, timestamp) {
|
|
3180
|
+
function buildDataOrigin(entry, resourceContext, timestamp, options = {}) {
|
|
2282
3181
|
return stripUndefined({
|
|
2283
3182
|
...resourceContext.origin,
|
|
2284
3183
|
observedAtRaw: timestamp.observedAtRaw,
|
|
2285
3184
|
timeZoneOffsetMinutes: readJunctionTimeZoneOffsetMinutes(entry),
|
|
2286
3185
|
timestampSemantics: timestamp.timestampSemantics,
|
|
2287
|
-
normalizerVersion: "junction-normalizer.v1",
|
|
3186
|
+
normalizerVersion: options.normalizerVersion ?? "junction-normalizer.v1",
|
|
2288
3187
|
});
|
|
2289
3188
|
}
|
|
2290
3189
|
function withTimestampOverride(timestamp, override) {
|
|
@@ -2297,10 +3196,17 @@ function withTimestampOverride(timestamp, override) {
|
|
|
2297
3196
|
};
|
|
2298
3197
|
}
|
|
2299
3198
|
function makeJunctionExternalRef(resourceContext, entry, timestamp, facet) {
|
|
2300
|
-
return makeProviderExternalRef("junction", resourceContext.externalRefResourceType, buildStableResourceId(resourceContext, entry, timestamp),
|
|
3199
|
+
return makeProviderExternalRef("junction", resourceContext.externalRefResourceType, buildStableResourceId(resourceContext, entry, timestamp), junctionCompanionExternalRefVersion(resourceContext, entry), slugify(facet, "value"));
|
|
2301
3200
|
}
|
|
2302
|
-
function
|
|
2303
|
-
|
|
3201
|
+
function junctionCompanionExternalRefVersion(resourceContext, entry) {
|
|
3202
|
+
if (resourceContext.sourceProviderSlug !== "apple-health-kit"
|
|
3203
|
+
|| resourceContext.origin.sourceType !== "companion-whoop-metadata-unverified") {
|
|
3204
|
+
return undefined;
|
|
3205
|
+
}
|
|
3206
|
+
const version = entry.companionSyncVersion;
|
|
3207
|
+
return typeof version === "number" && Number.isSafeInteger(version) && version >= 0
|
|
3208
|
+
? String(version)
|
|
3209
|
+
: undefined;
|
|
2304
3210
|
}
|
|
2305
3211
|
function buildJunctionResourceType(sourceProviderSlug, resourceSlug) {
|
|
2306
3212
|
return `junction-${slugify(sourceProviderSlug, "source")}-${slugify(resourceSlug, "resource")}`;
|
|
@@ -2346,27 +3252,6 @@ function buildStableTimeseriesResourceId(resourceContext, timestamp) {
|
|
|
2346
3252
|
timestamp.observedAtRaw ?? timestamp.occurredAt,
|
|
2347
3253
|
])}`;
|
|
2348
3254
|
}
|
|
2349
|
-
function buildStableSleepStageResourceId(resourceContext, entry, timestamp, stage, index) {
|
|
2350
|
-
const explicitId = firstStringFromPaths(entry, [
|
|
2351
|
-
"id",
|
|
2352
|
-
"stageId",
|
|
2353
|
-
"stage_id",
|
|
2354
|
-
"resourceId",
|
|
2355
|
-
"resource_id",
|
|
2356
|
-
"externalId",
|
|
2357
|
-
"external_id",
|
|
2358
|
-
]);
|
|
2359
|
-
return `${resourceContext.resourceSlug}-stage-${shortHash([
|
|
2360
|
-
resourceContext.resourceSlug,
|
|
2361
|
-
resourceContext.sourceProviderSlug,
|
|
2362
|
-
resourceContext.origin.sourceType,
|
|
2363
|
-
resourceContext.origin.sourceInstanceId,
|
|
2364
|
-
explicitId,
|
|
2365
|
-
timestamp.observedAtRaw ?? timestamp.occurredAt,
|
|
2366
|
-
stage,
|
|
2367
|
-
index,
|
|
2368
|
-
])}`;
|
|
2369
|
-
}
|
|
2370
3255
|
function shortHash(parts) {
|
|
2371
3256
|
return createHash("sha256")
|
|
2372
3257
|
.update(JSON.stringify(parts))
|
|
@@ -2374,30 +3259,7 @@ function shortHash(parts) {
|
|
|
2374
3259
|
.slice(0, 16);
|
|
2375
3260
|
}
|
|
2376
3261
|
function resolveRecordTimestamp(entry, context, sourceProviderSlug) {
|
|
2377
|
-
const rawObservedAt = firstStringFromPaths(entry,
|
|
2378
|
-
"observedAtRaw",
|
|
2379
|
-
"observed_at_raw",
|
|
2380
|
-
"observedAt",
|
|
2381
|
-
"observed_at",
|
|
2382
|
-
"timestamp",
|
|
2383
|
-
"time",
|
|
2384
|
-
"date",
|
|
2385
|
-
"day",
|
|
2386
|
-
"end",
|
|
2387
|
-
"endAt",
|
|
2388
|
-
"end_at",
|
|
2389
|
-
"timeEnd",
|
|
2390
|
-
"time_end",
|
|
2391
|
-
"bedtimeStop",
|
|
2392
|
-
"bedtime_stop",
|
|
2393
|
-
"start",
|
|
2394
|
-
"startAt",
|
|
2395
|
-
"start_at",
|
|
2396
|
-
"timeStart",
|
|
2397
|
-
"time_start",
|
|
2398
|
-
"bedtimeStart",
|
|
2399
|
-
"bedtime_start",
|
|
2400
|
-
]);
|
|
3262
|
+
const rawObservedAt = firstStringFromPaths(entry, JUNCTION_RECORD_TIMESTAMP_PATHS);
|
|
2401
3263
|
const localCalendarDayKey = firstIsoDateFromPaths(entry, JUNCTION_LOCAL_CALENDAR_DATE_PATHS);
|
|
2402
3264
|
const explicitSemantics = firstTimestampSemantics(entry);
|
|
2403
3265
|
const hasSourceSpecificFloatingTime = hasFloatingTimestampSourceProvider(sourceProviderSlug);
|
|
@@ -2588,21 +3450,26 @@ function groupedTimeseriesResourceEntries(payload) {
|
|
|
2588
3450
|
}));
|
|
2589
3451
|
}));
|
|
2590
3452
|
}
|
|
2591
|
-
function sleepStageIntervalEntries(entry) {
|
|
3453
|
+
function sleepStageIntervalEntries(entry, sourceProviderSlug) {
|
|
3454
|
+
const seen = new Set();
|
|
2592
3455
|
return [
|
|
2593
|
-
...collectSleepStageIntervalEntries(entry),
|
|
2594
|
-
...parallelSleepStageIntervalEntries(entry),
|
|
3456
|
+
...collectSleepStageIntervalEntries(entry, seen, sourceProviderSlug),
|
|
3457
|
+
...parallelSleepStageIntervalEntries(entry, sourceProviderSlug),
|
|
2595
3458
|
];
|
|
2596
3459
|
}
|
|
2597
|
-
function collectSleepStageIntervalEntries(value) {
|
|
3460
|
+
function collectSleepStageIntervalEntries(value, seen, sourceProviderSlug) {
|
|
2598
3461
|
if (Array.isArray(value)) {
|
|
2599
|
-
return value.flatMap((entry) => collectSleepStageIntervalEntries(entry));
|
|
3462
|
+
return value.flatMap((entry) => collectSleepStageIntervalEntries(entry, seen, sourceProviderSlug));
|
|
2600
3463
|
}
|
|
2601
3464
|
const entry = asPlainObject(value);
|
|
2602
3465
|
if (!entry) {
|
|
2603
3466
|
return [];
|
|
2604
3467
|
}
|
|
2605
|
-
if (
|
|
3468
|
+
if (seen.has(entry)) {
|
|
3469
|
+
return [];
|
|
3470
|
+
}
|
|
3471
|
+
seen.add(entry);
|
|
3472
|
+
if (firstSleepStageFromPaths(entry, JUNCTION_SLEEP_STAGE_VALUE_PATHS, sourceProviderSlug)) {
|
|
2606
3473
|
return [entry];
|
|
2607
3474
|
}
|
|
2608
3475
|
return JUNCTION_SLEEP_STAGE_ARRAY_PATHS.flatMap((path) => {
|
|
@@ -2610,10 +3477,10 @@ function collectSleepStageIntervalEntries(value) {
|
|
|
2610
3477
|
if (nested === value) {
|
|
2611
3478
|
return [];
|
|
2612
3479
|
}
|
|
2613
|
-
return collectSleepStageIntervalEntries(nested);
|
|
3480
|
+
return collectSleepStageIntervalEntries(nested, seen, sourceProviderSlug);
|
|
2614
3481
|
});
|
|
2615
3482
|
}
|
|
2616
|
-
function parallelSleepStageIntervalEntries(entry) {
|
|
3483
|
+
function parallelSleepStageIntervalEntries(entry, sourceProviderSlug) {
|
|
2617
3484
|
const sessionStartRaw = firstValueFromPaths(entry, [
|
|
2618
3485
|
"sessionStart",
|
|
2619
3486
|
"session_start",
|
|
@@ -2631,7 +3498,7 @@ function parallelSleepStageIntervalEntries(entry) {
|
|
|
2631
3498
|
}
|
|
2632
3499
|
const timeZone = firstStringFromPaths(entry, ["timeZone", "timezone", "time_zone"]);
|
|
2633
3500
|
return stageValues.flatMap((stageValue, index) => {
|
|
2634
|
-
const stage =
|
|
3501
|
+
const stage = normalizeJunctionSleepStageValueForSource(stageValue, sourceProviderSlug);
|
|
2635
3502
|
const startOffsetSeconds = startOffsets[index];
|
|
2636
3503
|
const endOffsetSeconds = endOffsets[index];
|
|
2637
3504
|
if (!stage || startOffsetSeconds === undefined || endOffsetSeconds === undefined) {
|
|
@@ -2668,6 +3535,9 @@ function expandResourceEntry(value, resource) {
|
|
|
2668
3535
|
}));
|
|
2669
3536
|
}
|
|
2670
3537
|
function readNestedResourceEntries(envelope, resource) {
|
|
3538
|
+
const sourceProviderSlug = resource === "sleep_cycle"
|
|
3539
|
+
? readJunctionSourceProviderSlug(envelope, undefined)
|
|
3540
|
+
: undefined;
|
|
2671
3541
|
for (const key of nestedResourceEntryKeys(resource)) {
|
|
2672
3542
|
const directEntry = asPlainObject(envelope[key]);
|
|
2673
3543
|
const entries = directEntry
|
|
@@ -2677,11 +3547,18 @@ function readNestedResourceEntries(envelope, resource) {
|
|
|
2677
3547
|
return normalized ? [normalized] : [];
|
|
2678
3548
|
});
|
|
2679
3549
|
if (entries.length > 0) {
|
|
3550
|
+
if (resource === "sleep_cycle" &&
|
|
3551
|
+
entries.some((entry) => isDirectSleepStageIntervalEntry(entry, readJunctionSourceProviderSlug(entry, envelope) ?? sourceProviderSlug))) {
|
|
3552
|
+
return null;
|
|
3553
|
+
}
|
|
2680
3554
|
return entries;
|
|
2681
3555
|
}
|
|
2682
3556
|
}
|
|
2683
3557
|
return null;
|
|
2684
3558
|
}
|
|
3559
|
+
function isDirectSleepStageIntervalEntry(entry, sourceProviderSlug) {
|
|
3560
|
+
return firstSleepStageFromPaths(entry, JUNCTION_SLEEP_STAGE_VALUE_PATHS, sourceProviderSlug) !== undefined;
|
|
3561
|
+
}
|
|
2685
3562
|
function nestedResourceEntryKeys(resource) {
|
|
2686
3563
|
switch (resource) {
|
|
2687
3564
|
case "meal":
|
|
@@ -2703,15 +3580,30 @@ function mergeNestedResourceEntry(envelope, nestedEntry) {
|
|
|
2703
3580
|
function listAllowedResourceKeys(resources, allowlist) {
|
|
2704
3581
|
return allowedResourceEntries(resources, allowlist).map(([resource]) => resource);
|
|
2705
3582
|
}
|
|
2706
|
-
function firstSleepStageFromPaths(source, paths) {
|
|
3583
|
+
function firstSleepStageFromPaths(source, paths, sourceProviderSlug) {
|
|
2707
3584
|
for (const path of paths) {
|
|
2708
|
-
const stage =
|
|
3585
|
+
const stage = normalizeJunctionSleepStageValueForSource(readPath(source, path), sourceProviderSlug);
|
|
2709
3586
|
if (stage) {
|
|
2710
3587
|
return stage;
|
|
2711
3588
|
}
|
|
2712
3589
|
}
|
|
2713
3590
|
return undefined;
|
|
2714
3591
|
}
|
|
3592
|
+
function normalizeJunctionSleepStageValueForSource(value, sourceProviderSlug) {
|
|
3593
|
+
const normalized = normalizeJunctionSleepStageValue(value);
|
|
3594
|
+
if (normalized) {
|
|
3595
|
+
return normalized;
|
|
3596
|
+
}
|
|
3597
|
+
return isAppleHealthKitSourceProvider(sourceProviderSlug) && isJunctionAppleGenericAsleepStageValue(value)
|
|
3598
|
+
? "asleep_unspecified"
|
|
3599
|
+
: null;
|
|
3600
|
+
}
|
|
3601
|
+
function isAppleHealthKitSourceProvider(sourceProviderSlug) {
|
|
3602
|
+
return normalizeJunctionSourceProviderSlug(sourceProviderSlug) === APPLE_HEALTH_KIT_SOURCE_PROVIDER_SLUG;
|
|
3603
|
+
}
|
|
3604
|
+
function isJunctionAppleGenericAsleepStageValue(value) {
|
|
3605
|
+
return value === -1 || (typeof value === "string" && value.trim() === "-1");
|
|
3606
|
+
}
|
|
2715
3607
|
function normalizeTimestamp(value) {
|
|
2716
3608
|
if (value instanceof Date && Number.isFinite(value.getTime())) {
|
|
2717
3609
|
return value.toISOString();
|
|
@@ -2944,6 +3836,17 @@ function normalizePositiveIntegerMinutes(value) {
|
|
|
2944
3836
|
}
|
|
2945
3837
|
return Math.max(1, Math.round(numeric));
|
|
2946
3838
|
}
|
|
3839
|
+
function normalizePositiveMinutes(value) {
|
|
3840
|
+
const numeric = finiteNumber(value);
|
|
3841
|
+
return numeric !== undefined && numeric > 0 ? numeric : undefined;
|
|
3842
|
+
}
|
|
3843
|
+
function exactPositiveMinutesBetween(startAt, endAt) {
|
|
3844
|
+
if (!startAt || !endAt) {
|
|
3845
|
+
return undefined;
|
|
3846
|
+
}
|
|
3847
|
+
const durationMs = Date.parse(endAt) - Date.parse(startAt);
|
|
3848
|
+
return Number.isFinite(durationMs) && durationMs > 0 ? durationMs / 60000 : undefined;
|
|
3849
|
+
}
|
|
2947
3850
|
function secondsToMinutes(value) {
|
|
2948
3851
|
const numeric = finiteNumber(value);
|
|
2949
3852
|
if (numeric === undefined) {
|