@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,7 +1,11 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { createReadStream } from "node:fs";
|
|
3
|
+
import { open as openFile, readFile, stat } from "node:fs/promises";
|
|
3
4
|
import { createInterface } from "node:readline";
|
|
5
|
+
import { Readable } from "node:stream";
|
|
6
|
+
import { createGunzip, crc32, deflateRawSync, gzipSync, inflateRawSync } from "node:zlib";
|
|
4
7
|
import { integrationIngestReceiptSchema, integrationIngestRecordSchema, } from "@murphai/contracts";
|
|
8
|
+
import { writeFileAtomic } from "./atomic-write.js";
|
|
5
9
|
import { VAULT_LAYOUT } from "./constants.js";
|
|
6
10
|
import { VaultError } from "./errors.js";
|
|
7
11
|
import { pathExists, walkVaultFiles } from "./fs.js";
|
|
@@ -11,6 +15,20 @@ export const MAX_INTEGRATION_INGEST_PARTS = 10_000;
|
|
|
11
15
|
export const MAX_INTEGRATION_EVIDENCE_PART_BYTES = 100 * 1024 * 1024;
|
|
12
16
|
export const MAX_INTEGRATION_INGEST_BYTES = 100 * 1024 * 1024;
|
|
13
17
|
export const MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES = 128 * 1024 * 1024;
|
|
18
|
+
export const MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES = 128 * 1024 * 1024;
|
|
19
|
+
export const MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES = 256 * 1024 * 1024;
|
|
20
|
+
const INTEGRATION_INGEST_NOVELTY_MAX_SCAN_BYTES = 8 * 1024 * 1024;
|
|
21
|
+
const INTEGRATION_INGEST_NOVELTY_MAX_SCAN_ROWS = 64;
|
|
22
|
+
const INTEGRATION_INGEST_NOVELTY_SCAN_CHUNK_BYTES = 64 * 1024;
|
|
23
|
+
const INTEGRATION_INGEST_APPEND_PLAN_AUTHORITY = Symbol("integration-ingest-append-plan-authority");
|
|
24
|
+
const INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY = Symbol("integration-ingest-id-inspection-authority");
|
|
25
|
+
const INTEGRATION_INGEST_ARCHIVE_SUFFIXES = [".gz", ".zip"];
|
|
26
|
+
const ZIP_EOCD_SIGNATURE = 0x06054b50;
|
|
27
|
+
const ZIP_CENTRAL_DIRECTORY_SIGNATURE = 0x02014b50;
|
|
28
|
+
const ZIP_LOCAL_FILE_HEADER_SIGNATURE = 0x04034b50;
|
|
29
|
+
const ZIP_MAX_EOCD_SEARCH_BYTES = 65_557;
|
|
30
|
+
const ZIP64_MARKER_16 = 0xffff;
|
|
31
|
+
const ZIP64_MARKER_32 = 0xffffffff;
|
|
14
32
|
export function integrationIngestShardPath(importedAt) {
|
|
15
33
|
return toMonthlyShardRelativePath(VAULT_LAYOUT.integrationIngestLedgerDirectory, importedAt, "importedAt");
|
|
16
34
|
}
|
|
@@ -119,16 +137,537 @@ export function stableSerializeIntegrationIngest(value) {
|
|
|
119
137
|
return JSON.stringify(stableSortJson(value));
|
|
120
138
|
}
|
|
121
139
|
export async function readIntegrationIngestEntries(vaultRoot) {
|
|
122
|
-
|
|
123
|
-
|
|
140
|
+
return readIntegrationIngestEntriesFromSources(vaultRoot, await listIntegrationIngestRowSources(vaultRoot));
|
|
141
|
+
}
|
|
142
|
+
function integrationEvidenceFingerprint(part) {
|
|
143
|
+
return JSON.stringify([
|
|
144
|
+
part.role,
|
|
145
|
+
part.sha256,
|
|
146
|
+
part.mediaType,
|
|
147
|
+
stableSortJson(part.metadata ?? null),
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
function integrationIngestAccountMatches(record, accountId) {
|
|
151
|
+
return (record.accountId ?? null) === (accountId ?? null);
|
|
152
|
+
}
|
|
153
|
+
function integrationIngestReceiptFingerprint(receipt, includePayloadIdentity) {
|
|
154
|
+
return JSON.stringify([
|
|
155
|
+
...(includePayloadIdentity ? [receipt.id, receipt.payloadHash] : []),
|
|
156
|
+
receipt.sourceKind,
|
|
157
|
+
receipt.deliveryMode,
|
|
158
|
+
receipt.resourceType ?? null,
|
|
159
|
+
receipt.resourceId ?? null,
|
|
160
|
+
receipt.providerEventId ?? null,
|
|
161
|
+
receipt.eventType ?? null,
|
|
162
|
+
receipt.occurredAt ?? null,
|
|
163
|
+
receipt.signatureVerified ?? null,
|
|
164
|
+
]);
|
|
165
|
+
}
|
|
166
|
+
function rawIntegrationEvidenceFingerprint(value) {
|
|
167
|
+
if (!isRecord(value)
|
|
168
|
+
|| typeof value.role !== "string"
|
|
169
|
+
|| typeof value.sha256 !== "string"
|
|
170
|
+
|| typeof value.mediaType !== "string") {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
return JSON.stringify([
|
|
174
|
+
value.role,
|
|
175
|
+
value.sha256,
|
|
176
|
+
value.mediaType,
|
|
177
|
+
stableSortJson(value.metadata ?? null),
|
|
178
|
+
]);
|
|
179
|
+
}
|
|
180
|
+
function rawIntegrationIngestReceiptFingerprint(value, includePayloadIdentity) {
|
|
181
|
+
if (!isRecord(value)
|
|
182
|
+
|| typeof value.sourceKind !== "string"
|
|
183
|
+
|| typeof value.deliveryMode !== "string"
|
|
184
|
+
|| (includePayloadIdentity
|
|
185
|
+
&& (typeof value.id !== "string" || typeof value.payloadHash !== "string"))) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
return JSON.stringify([
|
|
189
|
+
...(includePayloadIdentity ? [value.id, value.payloadHash] : []),
|
|
190
|
+
value.sourceKind,
|
|
191
|
+
value.deliveryMode,
|
|
192
|
+
value.resourceType ?? null,
|
|
193
|
+
value.resourceId ?? null,
|
|
194
|
+
value.providerEventId ?? null,
|
|
195
|
+
value.eventType ?? null,
|
|
196
|
+
value.occurredAt ?? null,
|
|
197
|
+
value.signatureVerified ?? null,
|
|
198
|
+
]);
|
|
199
|
+
}
|
|
200
|
+
function rawIntegrationIngestCouldProveNovelty(input) {
|
|
201
|
+
if (Array.isArray(input.raw.parts)
|
|
202
|
+
&& input.raw.parts.some((part) => {
|
|
203
|
+
const fingerprint = rawIntegrationEvidenceFingerprint(part);
|
|
204
|
+
return fingerprint !== null && input.requestedFingerprints.has(fingerprint);
|
|
205
|
+
})) {
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
return input.requestedReceiptFingerprint !== null
|
|
209
|
+
&& rawIntegrationIngestReceiptFingerprint(input.raw.receipt, input.receiptRequiresPayloadIdentity) === input.requestedReceiptFingerprint;
|
|
210
|
+
}
|
|
211
|
+
async function scanIntegrationIngestNoveltyTail(absolutePath, visitLine) {
|
|
212
|
+
const handle = await openFile(absolutePath, "r");
|
|
213
|
+
try {
|
|
214
|
+
const fileStat = await handle.stat();
|
|
215
|
+
if (fileStat.size === 0) {
|
|
216
|
+
return {
|
|
217
|
+
historyComplete: true,
|
|
218
|
+
selectionComplete: false,
|
|
219
|
+
unsafe: false,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
let bytesReadTotal = 0;
|
|
223
|
+
let lineSuffixChunks = [];
|
|
224
|
+
let position = fileStat.size;
|
|
225
|
+
let rowsVisited = 0;
|
|
226
|
+
let scanByteLimit = INTEGRATION_INGEST_NOVELTY_MAX_SCAN_BYTES;
|
|
227
|
+
let completingOversizedTailRow = false;
|
|
228
|
+
let strippedTrailingNewline = false;
|
|
229
|
+
const visit = (lineBytes) => {
|
|
230
|
+
rowsVisited += 1;
|
|
231
|
+
if (lineBytes.length === 0) {
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
const decision = visitLine(lineBytes.toString("utf8"));
|
|
235
|
+
if (decision === "complete") {
|
|
236
|
+
return {
|
|
237
|
+
historyComplete: false,
|
|
238
|
+
selectionComplete: true,
|
|
239
|
+
unsafe: false,
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
if (decision === "unsafe") {
|
|
243
|
+
return {
|
|
244
|
+
historyComplete: false,
|
|
245
|
+
selectionComplete: false,
|
|
246
|
+
unsafe: true,
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
return null;
|
|
250
|
+
};
|
|
251
|
+
while (position > 0
|
|
252
|
+
&& bytesReadTotal < scanByteLimit
|
|
253
|
+
&& rowsVisited < INTEGRATION_INGEST_NOVELTY_MAX_SCAN_ROWS) {
|
|
254
|
+
const readSize = Math.min(position, INTEGRATION_INGEST_NOVELTY_SCAN_CHUNK_BYTES, scanByteLimit - bytesReadTotal);
|
|
255
|
+
const chunk = Buffer.allocUnsafe(readSize);
|
|
256
|
+
const readPosition = position - readSize;
|
|
257
|
+
const result = await handle.read(chunk, 0, readSize, readPosition);
|
|
258
|
+
if (result.bytesRead !== readSize) {
|
|
259
|
+
return {
|
|
260
|
+
historyComplete: false,
|
|
261
|
+
selectionComplete: false,
|
|
262
|
+
unsafe: true,
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
position = readPosition;
|
|
266
|
+
bytesReadTotal += result.bytesRead;
|
|
267
|
+
let segmentEnd = chunk.length;
|
|
268
|
+
if (!strippedTrailingNewline) {
|
|
269
|
+
if (chunk[chunk.length - 1] !== 0x0a) {
|
|
270
|
+
return {
|
|
271
|
+
historyComplete: false,
|
|
272
|
+
selectionComplete: false,
|
|
273
|
+
unsafe: true,
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
segmentEnd -= 1;
|
|
277
|
+
strippedTrailingNewline = true;
|
|
278
|
+
}
|
|
279
|
+
while (segmentEnd > 0
|
|
280
|
+
&& rowsVisited < INTEGRATION_INGEST_NOVELTY_MAX_SCAN_ROWS) {
|
|
281
|
+
const newlineIndex = chunk.lastIndexOf(0x0a, segmentEnd - 1);
|
|
282
|
+
if (newlineIndex < 0) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
const leadingSegment = chunk.subarray(newlineIndex + 1, segmentEnd);
|
|
286
|
+
const lineChunks = leadingSegment.length > 0
|
|
287
|
+
? [leadingSegment, ...lineSuffixChunks]
|
|
288
|
+
: lineSuffixChunks;
|
|
289
|
+
const firstLineChunk = lineChunks[0];
|
|
290
|
+
const lineBytes = lineChunks.length === 1 && firstLineChunk
|
|
291
|
+
? firstLineChunk
|
|
292
|
+
: Buffer.concat(lineChunks);
|
|
293
|
+
const visitResult = visit(lineBytes);
|
|
294
|
+
if (visitResult) {
|
|
295
|
+
return visitResult;
|
|
296
|
+
}
|
|
297
|
+
if (completingOversizedTailRow) {
|
|
298
|
+
return {
|
|
299
|
+
historyComplete: false,
|
|
300
|
+
selectionComplete: false,
|
|
301
|
+
unsafe: false,
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
lineSuffixChunks = [];
|
|
305
|
+
segmentEnd = newlineIndex;
|
|
306
|
+
}
|
|
307
|
+
if (rowsVisited >= INTEGRATION_INGEST_NOVELTY_MAX_SCAN_ROWS) {
|
|
308
|
+
return {
|
|
309
|
+
historyComplete: position === 0 && segmentEnd === 0 && lineSuffixChunks.length === 0,
|
|
310
|
+
selectionComplete: false,
|
|
311
|
+
unsafe: false,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
if (segmentEnd > 0) {
|
|
315
|
+
lineSuffixChunks.unshift(chunk.subarray(0, segmentEnd));
|
|
316
|
+
}
|
|
317
|
+
if (position > 0
|
|
318
|
+
&& rowsVisited === 0
|
|
319
|
+
&& bytesReadTotal >= scanByteLimit
|
|
320
|
+
&& scanByteLimit === INTEGRATION_INGEST_NOVELTY_MAX_SCAN_BYTES) {
|
|
321
|
+
// The ordinary tail budget ended inside the newest row. Finish only
|
|
322
|
+
// that row so a bounded fail-open copy can prove the next replay, but
|
|
323
|
+
// never use the extension to traverse older out-of-budget history.
|
|
324
|
+
completingOversizedTailRow = true;
|
|
325
|
+
scanByteLimit = MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES + 1;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (position === 0
|
|
329
|
+
&& lineSuffixChunks.length > 0
|
|
330
|
+
&& rowsVisited < INTEGRATION_INGEST_NOVELTY_MAX_SCAN_ROWS) {
|
|
331
|
+
const firstLineChunk = lineSuffixChunks[0];
|
|
332
|
+
const lineBytes = lineSuffixChunks.length === 1 && firstLineChunk
|
|
333
|
+
? firstLineChunk
|
|
334
|
+
: Buffer.concat(lineSuffixChunks);
|
|
335
|
+
const visitResult = visit(lineBytes);
|
|
336
|
+
if (visitResult) {
|
|
337
|
+
return visitResult;
|
|
338
|
+
}
|
|
339
|
+
if (completingOversizedTailRow) {
|
|
340
|
+
return {
|
|
341
|
+
historyComplete: false,
|
|
342
|
+
selectionComplete: false,
|
|
343
|
+
unsafe: false,
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
lineSuffixChunks = [];
|
|
347
|
+
}
|
|
348
|
+
return {
|
|
349
|
+
historyComplete: position === 0 && lineSuffixChunks.length === 0,
|
|
350
|
+
selectionComplete: false,
|
|
351
|
+
unsafe: false,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
finally {
|
|
355
|
+
await handle.close();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
export async function inspectIntegrationIngestIdsForImportedAt(vaultRoot, importedAt, requestedIds, options = {}) {
|
|
359
|
+
const logicalPath = integrationIngestShardPath(importedAt);
|
|
360
|
+
const sources = await listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, [logicalPath]);
|
|
361
|
+
const source = sources.length === 1 ? sources[0] : undefined;
|
|
362
|
+
const archivedLogicalPaths = new Set(sources.filter((candidate) => candidate.kind !== "jsonl").map((candidate) => candidate.logicalPath));
|
|
363
|
+
const entriesById = new Map();
|
|
364
|
+
const invalidIds = new Set();
|
|
365
|
+
let unsafe = sources.length > 1;
|
|
366
|
+
const visitRaw = (raw, sourcePath) => {
|
|
367
|
+
if (!isRecord(raw) || typeof raw.id !== "string" || !requestedIds.has(raw.id)) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
try {
|
|
371
|
+
const record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
372
|
+
assertIntegrationIngestShard(record.id, record.importedAt, logicalPath);
|
|
373
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
374
|
+
if (entriesById.has(record.id)) {
|
|
375
|
+
unsafe = true;
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
entriesById.set(record.id, record);
|
|
379
|
+
}
|
|
380
|
+
catch {
|
|
381
|
+
invalidIds.add(raw.id);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
if (!source) {
|
|
385
|
+
return {
|
|
386
|
+
[INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY]: true,
|
|
387
|
+
archivedLogicalPaths,
|
|
388
|
+
entriesById,
|
|
389
|
+
failOpenAppendAllowed: false,
|
|
390
|
+
historyComplete: !unsafe,
|
|
391
|
+
invalidIds,
|
|
392
|
+
logicalPath,
|
|
393
|
+
requestedIds: new Set(requestedIds),
|
|
394
|
+
unsafe,
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
if (options.fullScan && source.kind === "jsonl") {
|
|
398
|
+
let malformedHistory = false;
|
|
399
|
+
let readFailed = false;
|
|
400
|
+
let structurallyUnsafe = false;
|
|
401
|
+
try {
|
|
402
|
+
const lines = createInterface({
|
|
403
|
+
input: await openIntegrationIngestLineStream(vaultRoot, source),
|
|
404
|
+
crlfDelay: Infinity,
|
|
405
|
+
});
|
|
406
|
+
for await (const line of lines) {
|
|
407
|
+
if (line.length === 0) {
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
if (Buffer.byteLength(line, "utf8") > MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES) {
|
|
411
|
+
structurallyUnsafe = true;
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
let raw;
|
|
415
|
+
try {
|
|
416
|
+
raw = JSON.parse(line);
|
|
417
|
+
}
|
|
418
|
+
catch {
|
|
419
|
+
malformedHistory = true;
|
|
420
|
+
for (const requestedId of requestedIds) {
|
|
421
|
+
if (line.includes(JSON.stringify(requestedId))) {
|
|
422
|
+
invalidIds.add(requestedId);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
visitRaw(raw, source.sourcePath);
|
|
428
|
+
if (unsafe) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
catch {
|
|
434
|
+
readFailed = true;
|
|
435
|
+
}
|
|
436
|
+
const failOpenAppendAllowed = malformedHistory
|
|
437
|
+
&& !unsafe
|
|
438
|
+
&& !readFailed
|
|
439
|
+
&& !structurallyUnsafe
|
|
440
|
+
&& invalidIds.size === 0;
|
|
441
|
+
unsafe = unsafe || malformedHistory || readFailed || structurallyUnsafe;
|
|
442
|
+
return {
|
|
443
|
+
[INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY]: true,
|
|
444
|
+
archivedLogicalPaths,
|
|
445
|
+
entriesById,
|
|
446
|
+
failOpenAppendAllowed,
|
|
447
|
+
historyComplete: !unsafe,
|
|
448
|
+
invalidIds,
|
|
449
|
+
logicalPath,
|
|
450
|
+
requestedIds: new Set(requestedIds),
|
|
451
|
+
unsafe,
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
if (options.fullScan || source.kind !== "jsonl") {
|
|
455
|
+
try {
|
|
456
|
+
for await (const row of readIntegrationIngestJsonlRows(vaultRoot, [source])) {
|
|
457
|
+
visitRaw(row.raw, row.sourcePath);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
catch {
|
|
461
|
+
unsafe = true;
|
|
462
|
+
}
|
|
463
|
+
return {
|
|
464
|
+
[INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY]: true,
|
|
465
|
+
archivedLogicalPaths,
|
|
466
|
+
entriesById,
|
|
467
|
+
failOpenAppendAllowed: false,
|
|
468
|
+
historyComplete: !unsafe,
|
|
469
|
+
invalidIds,
|
|
470
|
+
logicalPath,
|
|
471
|
+
requestedIds: new Set(requestedIds),
|
|
472
|
+
unsafe,
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
const absolutePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
476
|
+
let scan;
|
|
477
|
+
try {
|
|
478
|
+
scan = await scanIntegrationIngestNoveltyTail(absolutePath, (line) => {
|
|
479
|
+
let raw;
|
|
480
|
+
try {
|
|
481
|
+
raw = JSON.parse(line);
|
|
482
|
+
}
|
|
483
|
+
catch {
|
|
484
|
+
return "unsafe";
|
|
485
|
+
}
|
|
486
|
+
visitRaw(raw, source.sourcePath);
|
|
487
|
+
if (unsafe) {
|
|
488
|
+
return "unsafe";
|
|
489
|
+
}
|
|
490
|
+
return entriesById.size > 0 ? "complete" : "continue";
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
catch {
|
|
494
|
+
scan = { historyComplete: false, selectionComplete: false, unsafe: true };
|
|
495
|
+
}
|
|
496
|
+
return {
|
|
497
|
+
[INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY]: true,
|
|
498
|
+
archivedLogicalPaths,
|
|
499
|
+
entriesById,
|
|
500
|
+
failOpenAppendAllowed: false,
|
|
501
|
+
historyComplete: scan.historyComplete,
|
|
502
|
+
invalidIds,
|
|
503
|
+
logicalPath,
|
|
504
|
+
requestedIds: new Set(requestedIds),
|
|
505
|
+
unsafe: scan.unsafe || unsafe,
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Selects evidence whose provider/account/role/content identity has not already
|
|
510
|
+
* been retained. This is a storage optimization, so damaged historical rows
|
|
511
|
+
* fail open: only a valid, integrity-checked row may prove that incoming
|
|
512
|
+
* evidence is redundant.
|
|
513
|
+
*/
|
|
514
|
+
export async function selectNovelIntegrationIngestEvidence(input) {
|
|
515
|
+
if (!input.accountId) {
|
|
516
|
+
return {
|
|
517
|
+
parts: [...input.parts],
|
|
518
|
+
receiptIsNovel: input.receipt !== undefined,
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
const requestedFingerprints = new Set(input.parts.map(integrationEvidenceFingerprint));
|
|
522
|
+
const existingFingerprints = new Set();
|
|
523
|
+
const requestedEventIdsByFingerprint = new Map(input.parts.map((part) => [
|
|
524
|
+
integrationEvidenceFingerprint(part),
|
|
525
|
+
input.eventIdsByRole?.get(part.role) ?? new Set(),
|
|
526
|
+
]));
|
|
527
|
+
const existingEventLinks = new Set();
|
|
528
|
+
const existingSampleLinks = new Set();
|
|
529
|
+
const receiptRequiresPayloadIdentity = input.parts.length === 0;
|
|
530
|
+
const requestedReceiptFingerprint = input.receipt
|
|
531
|
+
? integrationIngestReceiptFingerprint(input.receipt, receiptRequiresPayloadIdentity)
|
|
532
|
+
: null;
|
|
533
|
+
let receiptIsNovel = requestedReceiptFingerprint !== null;
|
|
534
|
+
const failOpenSelection = () => ({
|
|
535
|
+
parts: [...input.parts],
|
|
536
|
+
receiptIsNovel: requestedReceiptFingerprint !== null,
|
|
124
537
|
});
|
|
125
|
-
|
|
538
|
+
const buildSelection = () => ({
|
|
539
|
+
parts: input.parts.filter((part) => !existingFingerprints.has(integrationEvidenceFingerprint(part))
|
|
540
|
+
|| [...(input.eventIdsByRole?.get(part.role) ?? [])].some((eventId) => !existingEventLinks.has(`${integrationEvidenceFingerprint(part)}\u0000${eventId}`))
|
|
541
|
+
|| [...(input.sampleIds ?? [])].some((sampleId) => !existingSampleLinks.has(`${integrationEvidenceFingerprint(part)}\u0000${sampleId}`))),
|
|
542
|
+
receiptIsNovel,
|
|
543
|
+
});
|
|
544
|
+
const selectionIsComplete = () => existingFingerprints.size === requestedFingerprints.size
|
|
545
|
+
&& [...requestedEventIdsByFingerprint.entries()].every(([fingerprint, eventIds]) => [...eventIds].every((eventId) => existingEventLinks.has(`${fingerprint}\u0000${eventId}`)))
|
|
546
|
+
&& [...requestedFingerprints].every((fingerprint) => [...(input.sampleIds ?? [])].every((sampleId) => existingSampleLinks.has(`${fingerprint}\u0000${sampleId}`)))
|
|
547
|
+
&& !receiptIsNovel;
|
|
548
|
+
if (requestedFingerprints.size === 0 && !receiptIsNovel) {
|
|
549
|
+
return { parts: [], receiptIsNovel: false };
|
|
550
|
+
}
|
|
551
|
+
let sources;
|
|
552
|
+
try {
|
|
553
|
+
sources = await listIntegrationIngestRowSourcesForLogicalPaths(input.vaultRoot, [integrationIngestShardPath(input.importedAt)]);
|
|
554
|
+
}
|
|
555
|
+
catch {
|
|
556
|
+
return failOpenSelection();
|
|
557
|
+
}
|
|
558
|
+
const source = sources.length === 1 ? sources[0] : undefined;
|
|
559
|
+
if (!source) {
|
|
560
|
+
return failOpenSelection();
|
|
561
|
+
}
|
|
562
|
+
const visitRaw = (raw, sourcePath, logicalPath) => {
|
|
563
|
+
if (!isRecord(raw) || raw.provider !== input.provider) {
|
|
564
|
+
return "continue";
|
|
565
|
+
}
|
|
566
|
+
const rawAccountId = typeof raw.accountId === "string" ? raw.accountId : undefined;
|
|
567
|
+
if ((rawAccountId ?? null) !== (input.accountId ?? null)) {
|
|
568
|
+
return "continue";
|
|
569
|
+
}
|
|
570
|
+
if (!rawIntegrationIngestCouldProveNovelty({
|
|
571
|
+
raw,
|
|
572
|
+
receiptRequiresPayloadIdentity,
|
|
573
|
+
requestedFingerprints,
|
|
574
|
+
requestedReceiptFingerprint,
|
|
575
|
+
})) {
|
|
576
|
+
return "continue";
|
|
577
|
+
}
|
|
578
|
+
let record;
|
|
579
|
+
try {
|
|
580
|
+
record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
581
|
+
assertIntegrationIngestShard(record.id, record.importedAt, logicalPath);
|
|
582
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
583
|
+
}
|
|
584
|
+
catch {
|
|
585
|
+
return "unsafe";
|
|
586
|
+
}
|
|
587
|
+
if (!integrationIngestAccountMatches(record, input.accountId)) {
|
|
588
|
+
return "continue";
|
|
589
|
+
}
|
|
590
|
+
for (const part of record.parts) {
|
|
591
|
+
const fingerprint = integrationEvidenceFingerprint(part);
|
|
592
|
+
if (!requestedFingerprints.has(fingerprint)) {
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
existingFingerprints.add(fingerprint);
|
|
596
|
+
const requestedEventIds = requestedEventIdsByFingerprint.get(fingerprint);
|
|
597
|
+
if (requestedEventIds && requestedEventIds.size > 0) {
|
|
598
|
+
for (const output of record.outputs.events) {
|
|
599
|
+
if (requestedEventIds.has(output.id)
|
|
600
|
+
&& output.roles.includes(part.role)) {
|
|
601
|
+
existingEventLinks.add(`${fingerprint}\u0000${output.id}`);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
for (const sampleId of record.outputs.sampleIds) {
|
|
606
|
+
if (input.sampleIds?.has(sampleId)) {
|
|
607
|
+
existingSampleLinks.add(`${fingerprint}\u0000${sampleId}`);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if (requestedReceiptFingerprint
|
|
612
|
+
&& record.receipt
|
|
613
|
+
&& integrationIngestReceiptFingerprint(record.receipt, receiptRequiresPayloadIdentity) === requestedReceiptFingerprint) {
|
|
614
|
+
receiptIsNovel = false;
|
|
615
|
+
}
|
|
616
|
+
return selectionIsComplete() ? "complete" : "continue";
|
|
617
|
+
};
|
|
618
|
+
if (source.kind !== "jsonl") {
|
|
619
|
+
try {
|
|
620
|
+
for await (const row of readIntegrationIngestJsonlRows(input.vaultRoot, [source])) {
|
|
621
|
+
const decision = visitRaw(row.raw, row.sourcePath, row.relativePath);
|
|
622
|
+
if (decision === "unsafe") {
|
|
623
|
+
return failOpenSelection();
|
|
624
|
+
}
|
|
625
|
+
if (decision === "complete") {
|
|
626
|
+
return { parts: [], receiptIsNovel: false };
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
catch {
|
|
631
|
+
return failOpenSelection();
|
|
632
|
+
}
|
|
633
|
+
return buildSelection();
|
|
634
|
+
}
|
|
635
|
+
// Live shards use a bounded reverse-tail scan. Archived shards above use
|
|
636
|
+
// their already-bounded representation reader because an amendment remains
|
|
637
|
+
// archived and cannot create a future live-tail proof.
|
|
638
|
+
const absolutePath = resolveVaultPath(input.vaultRoot, source.sourcePath).absolutePath;
|
|
639
|
+
if (!(await pathExists(absolutePath))) {
|
|
640
|
+
return failOpenSelection();
|
|
641
|
+
}
|
|
642
|
+
let scan;
|
|
643
|
+
try {
|
|
644
|
+
scan = await scanIntegrationIngestNoveltyTail(absolutePath, (line) => {
|
|
645
|
+
let raw;
|
|
646
|
+
try {
|
|
647
|
+
raw = JSON.parse(line);
|
|
648
|
+
}
|
|
649
|
+
catch {
|
|
650
|
+
return "unsafe";
|
|
651
|
+
}
|
|
652
|
+
return visitRaw(raw, source.sourcePath, source.logicalPath);
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
catch {
|
|
656
|
+
return failOpenSelection();
|
|
657
|
+
}
|
|
658
|
+
if (scan.selectionComplete) {
|
|
659
|
+
return { parts: [], receiptIsNovel: false };
|
|
660
|
+
}
|
|
661
|
+
if (scan.unsafe || !scan.historyComplete) {
|
|
662
|
+
return failOpenSelection();
|
|
663
|
+
}
|
|
664
|
+
return buildSelection();
|
|
126
665
|
}
|
|
127
|
-
async function
|
|
666
|
+
async function readIntegrationIngestEntriesFromSources(vaultRoot, sources) {
|
|
128
667
|
const entries = [];
|
|
129
668
|
const seen = new Map();
|
|
130
|
-
for await (const { raw, relativePath } of readIntegrationIngestJsonlRows(vaultRoot,
|
|
131
|
-
const record = parseIntegrationIngestRecord(raw,
|
|
669
|
+
for await (const { raw, relativePath, sourcePath } of readIntegrationIngestJsonlRows(vaultRoot, sources)) {
|
|
670
|
+
const record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
132
671
|
assertIntegrationIngestShard(record.id, record.importedAt, relativePath);
|
|
133
672
|
assertIntegrationIngestRecordIntegrity(record);
|
|
134
673
|
assertUniqueIntegrationIngestId(seen, record.id, relativePath);
|
|
@@ -137,62 +676,84 @@ async function readIntegrationIngestEntriesFromPaths(vaultRoot, paths) {
|
|
|
137
676
|
return entries;
|
|
138
677
|
}
|
|
139
678
|
async function readIntegrationIngestEntriesByIdFromPaths(vaultRoot, paths, ids) {
|
|
679
|
+
return readIntegrationIngestEntriesByIdFromSources(vaultRoot, await listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, paths), ids);
|
|
680
|
+
}
|
|
681
|
+
async function readIntegrationIngestEntriesByIdFromSources(vaultRoot, sources, ids) {
|
|
140
682
|
if (ids.size === 0)
|
|
141
683
|
return [];
|
|
142
684
|
const entries = [];
|
|
143
685
|
const seen = new Map();
|
|
144
|
-
for (const relativePath of
|
|
145
|
-
|
|
146
|
-
if (!(await pathExists(absolutePath))) {
|
|
686
|
+
for await (const { raw, relativePath, sourcePath, lineNumber } of readIntegrationIngestJsonlRows(vaultRoot, sources)) {
|
|
687
|
+
if (!isRecord(raw) || typeof raw.id !== "string") {
|
|
147
688
|
continue;
|
|
148
689
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
for await (const line of lines) {
|
|
155
|
-
lineNumber += 1;
|
|
156
|
-
if (line.length === 0)
|
|
157
|
-
continue;
|
|
158
|
-
let raw;
|
|
159
|
-
try {
|
|
160
|
-
raw = JSON.parse(line);
|
|
161
|
-
}
|
|
162
|
-
catch (error) {
|
|
163
|
-
throw new VaultError("VAULT_INVALID_JSONL", `Invalid JSON on line ${lineNumber}.`, {
|
|
164
|
-
relativePath,
|
|
165
|
-
lineNumber,
|
|
166
|
-
cause: error instanceof Error ? error.message : String(error),
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
if (!isRecord(raw) || typeof raw.id !== "string" || typeof raw.importedAt !== "string") {
|
|
170
|
-
throw new VaultError("INTEGRATION_INGEST_INVALID", `Integration ingest record in "${relativePath}" is missing id or importedAt.`, { relativePath, lineNumber });
|
|
171
|
-
}
|
|
172
|
-
assertIntegrationIngestShard(raw.id, raw.importedAt, relativePath);
|
|
173
|
-
if (!ids.has(raw.id)) {
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
const record = parseIntegrationIngestRecord(raw, relativePath);
|
|
177
|
-
assertIntegrationIngestRecordIntegrity(record);
|
|
178
|
-
assertUniqueIntegrationIngestId(seen, record.id, relativePath);
|
|
179
|
-
entries.push({ relativePath, record });
|
|
690
|
+
if (!ids.has(raw.id)) {
|
|
691
|
+
continue;
|
|
692
|
+
}
|
|
693
|
+
if (typeof raw.importedAt !== "string") {
|
|
694
|
+
throw new VaultError("INTEGRATION_INGEST_INVALID", `Integration ingest record in "${sourcePath}" is missing id or importedAt.`, { relativePath: sourcePath, lineNumber });
|
|
180
695
|
}
|
|
696
|
+
assertIntegrationIngestShard(raw.id, raw.importedAt, relativePath);
|
|
697
|
+
const record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
698
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
699
|
+
assertUniqueIntegrationIngestId(seen, record.id, relativePath);
|
|
700
|
+
entries.push({ relativePath, record });
|
|
181
701
|
}
|
|
182
702
|
return entries;
|
|
183
703
|
}
|
|
184
|
-
export async function buildIntegrationIngestAppendPlan(vaultRoot, records) {
|
|
704
|
+
export async function buildIntegrationIngestAppendPlan(vaultRoot, records, options = {}) {
|
|
185
705
|
const targetShardPaths = [
|
|
186
706
|
...new Set(records.map((record) => integrationIngestShardPath(record.importedAt))),
|
|
187
707
|
].sort();
|
|
188
708
|
const requestedIds = new Set(records.map((record) => record.id));
|
|
189
|
-
const
|
|
709
|
+
const targetSources = await listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, targetShardPaths);
|
|
710
|
+
const archivedTargets = new Set(targetSources
|
|
711
|
+
.filter((source) => source.kind !== "jsonl")
|
|
712
|
+
.map((source) => source.logicalPath));
|
|
713
|
+
const targetExistingEntries = await readIntegrationIngestEntriesByIdFromSources(vaultRoot, targetSources, requestedIds);
|
|
714
|
+
const existingById = new Map(targetExistingEntries.map((entry) => [entry.record.id, entry.record]));
|
|
715
|
+
return buildIntegrationIngestAppendPlanFromExisting({
|
|
716
|
+
archivedTargets,
|
|
717
|
+
existingById,
|
|
718
|
+
options,
|
|
719
|
+
records,
|
|
720
|
+
targetShardPaths,
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
export function buildIntegrationIngestAppendPlanFromInspection(records, inspection, options = {}) {
|
|
724
|
+
if (inspection[INTEGRATION_INGEST_ID_INSPECTION_AUTHORITY] !== true) {
|
|
725
|
+
throw new VaultError("INTEGRATION_INGEST_INVALID", "Integration ingest inspection authority is invalid.");
|
|
726
|
+
}
|
|
727
|
+
const targetShardPaths = [
|
|
728
|
+
...new Set(records.map((record) => integrationIngestShardPath(record.importedAt))),
|
|
729
|
+
].sort();
|
|
730
|
+
if ((inspection.unsafe && !inspection.failOpenAppendAllowed)
|
|
731
|
+
|| targetShardPaths.length !== 1
|
|
732
|
+
|| targetShardPaths[0] !== inspection.logicalPath
|
|
733
|
+
|| records.some((record) => !inspection.requestedIds.has(record.id))
|
|
734
|
+
|| records.some((record) => inspection.invalidIds.has(record.id))
|
|
735
|
+
|| records.some((record) => !inspection.historyComplete
|
|
736
|
+
&& !inspection.failOpenAppendAllowed
|
|
737
|
+
&& !inspection.entriesById.has(record.id))) {
|
|
738
|
+
throw new VaultError("INTEGRATION_INGEST_INVALID", "Integration ingest inspection does not authorize this append plan.");
|
|
739
|
+
}
|
|
740
|
+
const existingById = new Map([...inspection.entriesById].filter(([id]) => inspection.requestedIds.has(id)));
|
|
741
|
+
return buildIntegrationIngestAppendPlanFromExisting({
|
|
742
|
+
archivedTargets: new Set(inspection.archivedLogicalPaths),
|
|
743
|
+
existingById,
|
|
744
|
+
options,
|
|
745
|
+
records,
|
|
746
|
+
targetShardPaths,
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
function buildIntegrationIngestAppendPlanFromExisting(input) {
|
|
190
750
|
const pendingById = new Map();
|
|
751
|
+
const archivedAmendmentShardPaths = new Set();
|
|
191
752
|
const payloads = new Map();
|
|
192
753
|
const appendedIds = [];
|
|
193
|
-
for (const record of records) {
|
|
754
|
+
for (const record of input.records) {
|
|
194
755
|
assertIntegrationIngestRecordIntegrity(record);
|
|
195
|
-
const existing = existingById.get(record.id) ?? pendingById.get(record.id);
|
|
756
|
+
const existing = input.existingById.get(record.id) ?? pendingById.get(record.id);
|
|
196
757
|
if (existing) {
|
|
197
758
|
if (stableSerializeIntegrationIngest(existing) !== stableSerializeIntegrationIngest(record)) {
|
|
198
759
|
throw new VaultError("INTEGRATION_INGEST_ID_CONFLICT", `Integration ingest id "${record.id}" already exists with different content.`, { ingestId: record.id });
|
|
@@ -202,6 +763,12 @@ export async function buildIntegrationIngestAppendPlan(vaultRoot, records) {
|
|
|
202
763
|
pendingById.set(record.id, record);
|
|
203
764
|
appendedIds.push(record.id);
|
|
204
765
|
const relativePath = integrationIngestShardPath(record.importedAt);
|
|
766
|
+
if (input.archivedTargets.has(relativePath)) {
|
|
767
|
+
if (!input.options.allowArchivedShardAmendments) {
|
|
768
|
+
throw new VaultError("INTEGRATION_INGEST_SHARD_ARCHIVED", `Integration ingest shard "${relativePath}" is archived and cannot be appended.`, { ingestId: record.id, relativePath });
|
|
769
|
+
}
|
|
770
|
+
archivedAmendmentShardPaths.add(relativePath);
|
|
771
|
+
}
|
|
205
772
|
const rowPayload = `${JSON.stringify(record)}\n`;
|
|
206
773
|
const rowPayloadBytes = Buffer.byteLength(rowPayload, "utf8");
|
|
207
774
|
if (rowPayloadBytes > MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES) {
|
|
@@ -209,24 +776,199 @@ export async function buildIntegrationIngestAppendPlan(vaultRoot, records) {
|
|
|
209
776
|
}
|
|
210
777
|
payloads.set(relativePath, `${payloads.get(relativePath) ?? ""}${rowPayload}`);
|
|
211
778
|
}
|
|
212
|
-
return {
|
|
779
|
+
return {
|
|
780
|
+
[INTEGRATION_INGEST_APPEND_PLAN_AUTHORITY]: true,
|
|
781
|
+
archivedAmendmentShardPaths: [...archivedAmendmentShardPaths].sort(),
|
|
782
|
+
appendedIds,
|
|
783
|
+
payloads,
|
|
784
|
+
targetShardPaths: [...input.targetShardPaths],
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
export function assertAuthorizedIntegrationIngestAppendPlan(plan) {
|
|
788
|
+
if (typeof plan !== "object"
|
|
789
|
+
|| plan === null
|
|
790
|
+
|| Reflect.get(plan, INTEGRATION_INGEST_APPEND_PLAN_AUTHORITY) !== true) {
|
|
791
|
+
throw new VaultError("INTEGRATION_INGEST_INVALID", "Integration ingest append plans must be created by the integration ingest planner.");
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
export async function parseIntegrationIngestAppendPayload(payload, logicalPath) {
|
|
795
|
+
const records = [];
|
|
796
|
+
const lines = createInterface({
|
|
797
|
+
input: Readable.from([payload]),
|
|
798
|
+
crlfDelay: Infinity,
|
|
799
|
+
});
|
|
800
|
+
const source = {
|
|
801
|
+
kind: "jsonl",
|
|
802
|
+
logicalPath,
|
|
803
|
+
sourcePath: logicalPath,
|
|
804
|
+
};
|
|
805
|
+
for await (const { raw, sourcePath } of parseIntegrationIngestJsonlLines(lines, source)) {
|
|
806
|
+
const record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
807
|
+
assertIntegrationIngestShard(record.id, record.importedAt, logicalPath);
|
|
808
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
809
|
+
records.push(record);
|
|
810
|
+
}
|
|
811
|
+
return records;
|
|
213
812
|
}
|
|
214
813
|
export async function stageIntegrationIngestAppendPlan(batch, plan) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
814
|
+
await batch.stageIntegrationIngestAppendPlan(plan);
|
|
815
|
+
}
|
|
816
|
+
export async function prepareLiveIntegrationIngestAppendPayload(vaultRoot, targetRelativePath, payload) {
|
|
817
|
+
const target = resolveVaultPath(vaultRoot, targetRelativePath);
|
|
818
|
+
if (!(await pathExists(target.absolutePath))) {
|
|
819
|
+
return payload;
|
|
820
|
+
}
|
|
821
|
+
const targetStat = await stat(target.absolutePath);
|
|
822
|
+
if (targetStat.size === 0) {
|
|
823
|
+
return payload;
|
|
824
|
+
}
|
|
825
|
+
const handle = await openFile(target.absolutePath, "r");
|
|
826
|
+
const chunks = [];
|
|
827
|
+
let position = targetStat.size;
|
|
828
|
+
let finalRowByteLength = 0;
|
|
829
|
+
try {
|
|
830
|
+
while (position > 0) {
|
|
831
|
+
const readLength = Math.min(INTEGRATION_INGEST_NOVELTY_SCAN_CHUNK_BYTES, position);
|
|
832
|
+
position -= readLength;
|
|
833
|
+
const chunk = Buffer.allocUnsafe(readLength);
|
|
834
|
+
const { bytesRead } = await handle.read(chunk, 0, readLength, position);
|
|
835
|
+
const bytes = chunk.subarray(0, bytesRead);
|
|
836
|
+
const newlineIndex = bytes.lastIndexOf(0x0a);
|
|
837
|
+
const rowChunk = newlineIndex >= 0 ? bytes.subarray(newlineIndex + 1) : bytes;
|
|
838
|
+
chunks.push(rowChunk);
|
|
839
|
+
finalRowByteLength += rowChunk.byteLength;
|
|
840
|
+
if (finalRowByteLength > MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES) {
|
|
841
|
+
throw new VaultError("INTEGRATION_INGEST_ROW_TOO_LARGE", `Final integration ingest row in "${targetRelativePath}" exceeds the journal row limit.`, { relativePath: targetRelativePath, rowPayloadBytes: finalRowByteLength });
|
|
842
|
+
}
|
|
843
|
+
if (newlineIndex >= 0) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
219
846
|
}
|
|
220
847
|
}
|
|
848
|
+
finally {
|
|
849
|
+
await handle.close();
|
|
850
|
+
}
|
|
851
|
+
const finalRow = Buffer.concat(chunks.reverse()).toString("utf8");
|
|
852
|
+
if (finalRow.length === 0) {
|
|
853
|
+
return payload;
|
|
854
|
+
}
|
|
855
|
+
try {
|
|
856
|
+
const record = parseIntegrationIngestRecord(JSON.parse(finalRow), targetRelativePath);
|
|
857
|
+
assertIntegrationIngestShard(record.id, record.importedAt, targetRelativePath);
|
|
858
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
859
|
+
}
|
|
860
|
+
catch (error) {
|
|
861
|
+
throw new VaultError("VAULT_INVALID_JSONL", `Integration ingest shard "${targetRelativePath}" has an incomplete final row; append was rejected.`, {
|
|
862
|
+
relativePath: targetRelativePath,
|
|
863
|
+
cause: error instanceof Error ? error.message : String(error),
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
return `\n${payload}`;
|
|
221
867
|
}
|
|
222
|
-
export async function
|
|
223
|
-
const
|
|
224
|
-
|
|
868
|
+
export async function readArchivedIntegrationIngestShardText(vaultRoot, logicalPath) {
|
|
869
|
+
const [source] = await listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, [logicalPath]);
|
|
870
|
+
if (!source || source.kind === "jsonl") {
|
|
871
|
+
return null;
|
|
872
|
+
}
|
|
873
|
+
return {
|
|
874
|
+
content: await readIntegrationIngestSourceText(vaultRoot, source),
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
export async function appendArchivedIntegrationIngestShard({ expectedBaseByteLength, expectedBaseSha256, payload, targetRelativePath, vaultRoot, }) {
|
|
878
|
+
const source = await readArchivedIntegrationIngestShardSource(vaultRoot, targetRelativePath);
|
|
879
|
+
const baseContent = await readIntegrationIngestSourceText(vaultRoot, source);
|
|
880
|
+
const baseBytes = Buffer.from(baseContent, "utf8");
|
|
881
|
+
const payloadBytes = Buffer.from(payload, "utf8");
|
|
882
|
+
const records = await parseIntegrationIngestAppendPayload(payload, targetRelativePath);
|
|
883
|
+
if (typeof expectedBaseByteLength !== "number" || typeof expectedBaseSha256 !== "string") {
|
|
884
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_BASE_MISMATCH", `Integration ingest archive "${source.sourcePath}" append receipt base is required.`, { relativePath: source.sourcePath });
|
|
885
|
+
}
|
|
886
|
+
const baseSlice = baseBytes.subarray(0, expectedBaseByteLength);
|
|
887
|
+
const baseSliceSha256 = createHash("sha256").update(baseSlice).digest("hex");
|
|
888
|
+
if (baseSlice.byteLength !== expectedBaseByteLength || baseSliceSha256 !== expectedBaseSha256) {
|
|
889
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_BASE_MISMATCH", `Integration ingest archive "${source.sourcePath}" base content does not match the append receipt.`, { relativePath: source.sourcePath });
|
|
890
|
+
}
|
|
891
|
+
if (baseBytes.byteLength > expectedBaseByteLength) {
|
|
892
|
+
const appendedEnd = expectedBaseByteLength + payloadBytes.byteLength;
|
|
893
|
+
if (baseBytes.byteLength >= appendedEnd &&
|
|
894
|
+
baseBytes.subarray(expectedBaseByteLength, appendedEnd).equals(payloadBytes)) {
|
|
895
|
+
return {
|
|
896
|
+
originalSize: expectedBaseByteLength,
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_BASE_MISMATCH", `Integration ingest archive "${source.sourcePath}" changed after the append receipt base.`, { relativePath: source.sourcePath });
|
|
900
|
+
}
|
|
901
|
+
if (baseContent.length > 0 && !baseContent.endsWith("\n")) {
|
|
902
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" is not newline-terminated.`, { relativePath: source.sourcePath });
|
|
903
|
+
}
|
|
904
|
+
validateIntegrationIngestArchiveBaseContent(source, baseContent);
|
|
905
|
+
const appendPlan = await buildIntegrationIngestAppendPlan(vaultRoot, records, {
|
|
906
|
+
allowArchivedShardAmendments: true,
|
|
225
907
|
});
|
|
908
|
+
const appendPayload = appendPlan.payloads.get(targetRelativePath);
|
|
909
|
+
const originalSize = expectedBaseByteLength;
|
|
910
|
+
if (!appendPayload) {
|
|
911
|
+
return {
|
|
912
|
+
originalSize,
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
await writeIntegrationIngestArchiveText(vaultRoot, source, `${baseContent}${appendPayload}`);
|
|
916
|
+
return {
|
|
917
|
+
originalSize,
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
function validateIntegrationIngestArchiveBaseContent(source, baseContent) {
|
|
921
|
+
const seen = new Map();
|
|
922
|
+
const lines = baseContent.split("\n");
|
|
923
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
924
|
+
const line = lines[index];
|
|
925
|
+
if (line.length === 0) {
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
const lineNumber = index + 1;
|
|
929
|
+
const lineBytes = Buffer.byteLength(line, "utf8");
|
|
930
|
+
if (lineBytes > MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES) {
|
|
931
|
+
throw new VaultError("INTEGRATION_INGEST_ROW_TOO_LARGE", `Integration ingest row in "${source.sourcePath}" exceeds the ${MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES}-byte journal limit.`, { lineNumber, relativePath: source.sourcePath, rowPayloadBytes: lineBytes });
|
|
932
|
+
}
|
|
933
|
+
let raw;
|
|
934
|
+
try {
|
|
935
|
+
raw = JSON.parse(line);
|
|
936
|
+
}
|
|
937
|
+
catch (error) {
|
|
938
|
+
throw new VaultError("VAULT_INVALID_JSONL", `Invalid JSON on line ${lineNumber}.`, {
|
|
939
|
+
relativePath: source.sourcePath,
|
|
940
|
+
lineNumber,
|
|
941
|
+
cause: error instanceof Error ? error.message : String(error),
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
const record = parseIntegrationIngestRecord(raw, source.sourcePath);
|
|
945
|
+
assertIntegrationIngestShard(record.id, record.importedAt, source.logicalPath);
|
|
946
|
+
assertIntegrationIngestRecordIntegrity(record);
|
|
947
|
+
assertUniqueIntegrationIngestId(seen, record.id, source.logicalPath);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
export async function truncateArchivedIntegrationIngestShard({ expectedBaseByteLength, expectedBaseSha256, targetRelativePath, vaultRoot, }) {
|
|
951
|
+
const source = await readArchivedIntegrationIngestShardSource(vaultRoot, targetRelativePath);
|
|
952
|
+
const content = await readIntegrationIngestSourceText(vaultRoot, source);
|
|
953
|
+
const contentBytes = Buffer.from(content, "utf8");
|
|
954
|
+
if (contentBytes.byteLength < expectedBaseByteLength) {
|
|
955
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_BASE_MISMATCH", `Integration ingest archive "${source.sourcePath}" is smaller than the rollback base.`, { relativePath: source.sourcePath });
|
|
956
|
+
}
|
|
957
|
+
const baseBytes = contentBytes.subarray(0, expectedBaseByteLength);
|
|
958
|
+
const baseSha256 = createHash("sha256").update(baseBytes).digest("hex");
|
|
959
|
+
if (baseSha256 !== expectedBaseSha256) {
|
|
960
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_BASE_MISMATCH", `Integration ingest archive "${source.sourcePath}" base content does not match the rollback receipt.`, { relativePath: source.sourcePath });
|
|
961
|
+
}
|
|
962
|
+
if (contentBytes.byteLength === expectedBaseByteLength) {
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
await writeIntegrationIngestArchiveText(vaultRoot, source, baseBytes.toString("utf8"));
|
|
966
|
+
}
|
|
967
|
+
export async function listIntegrationIngestsForEvent(vaultRoot, eventId) {
|
|
226
968
|
const entries = [];
|
|
227
969
|
const seen = new Map();
|
|
228
|
-
for await (const { raw, relativePath } of readIntegrationIngestJsonlRows(vaultRoot,
|
|
229
|
-
const record = parseIntegrationIngestRecord(raw,
|
|
970
|
+
for await (const { raw, relativePath, sourcePath } of readIntegrationIngestJsonlRows(vaultRoot, await listIntegrationIngestRowSources(vaultRoot))) {
|
|
971
|
+
const record = parseIntegrationIngestRecord(raw, sourcePath);
|
|
230
972
|
assertIntegrationIngestShard(record.id, record.importedAt, relativePath);
|
|
231
973
|
if (!record.outputs.events.some((output) => output.id === eventId)) {
|
|
232
974
|
continue;
|
|
@@ -238,10 +980,7 @@ export async function listIntegrationIngestsForEvent(vaultRoot, eventId) {
|
|
|
238
980
|
return entries;
|
|
239
981
|
}
|
|
240
982
|
export async function readIntegrationIngestById(vaultRoot, ingestId) {
|
|
241
|
-
|
|
242
|
-
extension: ".jsonl",
|
|
243
|
-
});
|
|
244
|
-
return (await readIntegrationIngestEntriesByIdFromPaths(vaultRoot, paths.sort(), new Set([ingestId])))[0] ?? null;
|
|
983
|
+
return (await readIntegrationIngestEntriesByIdFromSources(vaultRoot, await listIntegrationIngestRowSources(vaultRoot), new Set([ingestId])))[0] ?? null;
|
|
245
984
|
}
|
|
246
985
|
export function readIntegrationEvidencePart(record, role) {
|
|
247
986
|
assertIntegrationIngestRecordIntegrity(record);
|
|
@@ -258,35 +997,415 @@ function stableSortJson(value) {
|
|
|
258
997
|
}
|
|
259
998
|
return value;
|
|
260
999
|
}
|
|
261
|
-
async function* readIntegrationIngestJsonlRows(vaultRoot,
|
|
262
|
-
for (const
|
|
263
|
-
const absolutePath = resolveVaultPath(vaultRoot,
|
|
1000
|
+
async function* readIntegrationIngestJsonlRows(vaultRoot, sources) {
|
|
1001
|
+
for (const source of sortIntegrationIngestRowSources(sources)) {
|
|
1002
|
+
const absolutePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
264
1003
|
if (!(await pathExists(absolutePath))) {
|
|
265
1004
|
continue;
|
|
266
1005
|
}
|
|
267
1006
|
const lines = createInterface({
|
|
268
|
-
input:
|
|
1007
|
+
input: await openIntegrationIngestLineStream(vaultRoot, source),
|
|
269
1008
|
crlfDelay: Infinity,
|
|
270
1009
|
});
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
1010
|
+
yield* parseIntegrationIngestJsonlLines(lines, source);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
async function* parseIntegrationIngestJsonlLines(lines, source) {
|
|
1014
|
+
let lineNumber = 0;
|
|
1015
|
+
for await (const line of lines) {
|
|
1016
|
+
lineNumber += 1;
|
|
1017
|
+
if (line.length === 0)
|
|
1018
|
+
continue;
|
|
1019
|
+
const lineBytes = Buffer.byteLength(line, "utf8");
|
|
1020
|
+
if (lineBytes > MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES) {
|
|
1021
|
+
throw new VaultError("INTEGRATION_INGEST_ROW_TOO_LARGE", `Integration ingest row in "${source.sourcePath}" exceeds the ${MAX_INTEGRATION_INGEST_JOURNAL_ROW_BYTES}-byte journal limit.`, { lineNumber, relativePath: source.sourcePath, rowPayloadBytes: lineBytes });
|
|
1022
|
+
}
|
|
1023
|
+
let raw;
|
|
1024
|
+
try {
|
|
1025
|
+
raw = JSON.parse(line);
|
|
1026
|
+
}
|
|
1027
|
+
catch (error) {
|
|
1028
|
+
throw new VaultError("VAULT_INVALID_JSONL", `Invalid JSON on line ${lineNumber}.`, {
|
|
1029
|
+
relativePath: source.sourcePath,
|
|
1030
|
+
lineNumber,
|
|
1031
|
+
cause: error instanceof Error ? error.message : String(error),
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
yield {
|
|
1035
|
+
lineNumber,
|
|
1036
|
+
raw,
|
|
1037
|
+
relativePath: source.logicalPath,
|
|
1038
|
+
sourcePath: source.sourcePath,
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
async function openIntegrationIngestLineStream(vaultRoot, source) {
|
|
1043
|
+
if (source.kind === "jsonl") {
|
|
1044
|
+
const absolutePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
1045
|
+
return createReadStream(absolutePath, { encoding: "utf8" });
|
|
1046
|
+
}
|
|
1047
|
+
return Readable.from([await readIntegrationIngestSourceText(vaultRoot, source)]);
|
|
1048
|
+
}
|
|
1049
|
+
async function listIntegrationIngestRowSources(vaultRoot) {
|
|
1050
|
+
const sources = new Map();
|
|
1051
|
+
for (const extension of [".jsonl", ".jsonl.gz", ".jsonl.zip"]) {
|
|
1052
|
+
const paths = await walkVaultFiles(vaultRoot, VAULT_LAYOUT.integrationIngestLedgerDirectory, {
|
|
1053
|
+
extension,
|
|
1054
|
+
});
|
|
1055
|
+
for (const sourcePath of paths) {
|
|
1056
|
+
const source = integrationIngestRowSourceFromPath(sourcePath);
|
|
1057
|
+
sources.set(source.sourcePath, source);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
return assertSingleIntegrationIngestShardRepresentation(sortIntegrationIngestRowSources([...sources.values()]));
|
|
1061
|
+
}
|
|
1062
|
+
async function listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, logicalPaths) {
|
|
1063
|
+
const sources = [];
|
|
1064
|
+
for (const logicalPath of [...new Set(logicalPaths)].sort()) {
|
|
1065
|
+
for (const sourcePath of [logicalPath, ...INTEGRATION_INGEST_ARCHIVE_SUFFIXES.map((suffix) => `${logicalPath}${suffix}`)]) {
|
|
1066
|
+
const resolved = resolveVaultPath(vaultRoot, sourcePath);
|
|
1067
|
+
if (await pathExists(resolved.absolutePath)) {
|
|
1068
|
+
sources.push(integrationIngestRowSourceFromPath(sourcePath));
|
|
279
1069
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
return assertSingleIntegrationIngestShardRepresentation(sortIntegrationIngestRowSources(sources));
|
|
1073
|
+
}
|
|
1074
|
+
function integrationIngestRowSourceFromPath(sourcePath) {
|
|
1075
|
+
if (sourcePath.endsWith(".jsonl.gz")) {
|
|
1076
|
+
return {
|
|
1077
|
+
kind: "gzip",
|
|
1078
|
+
logicalPath: sourcePath.slice(0, -".gz".length),
|
|
1079
|
+
sourcePath,
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
if (sourcePath.endsWith(".jsonl.zip")) {
|
|
1083
|
+
return {
|
|
1084
|
+
kind: "zip",
|
|
1085
|
+
logicalPath: sourcePath.slice(0, -".zip".length),
|
|
1086
|
+
sourcePath,
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
return {
|
|
1090
|
+
kind: "jsonl",
|
|
1091
|
+
logicalPath: sourcePath,
|
|
1092
|
+
sourcePath,
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
async function readArchivedIntegrationIngestShardSource(vaultRoot, logicalPath) {
|
|
1096
|
+
const [source] = await listIntegrationIngestRowSourcesForLogicalPaths(vaultRoot, [logicalPath]);
|
|
1097
|
+
if (!source || source.kind === "jsonl") {
|
|
1098
|
+
throw new VaultError("INTEGRATION_INGEST_SHARD_ARCHIVED", `Integration ingest shard "${logicalPath}" is not archived.`, { relativePath: logicalPath });
|
|
1099
|
+
}
|
|
1100
|
+
return source;
|
|
1101
|
+
}
|
|
1102
|
+
async function readIntegrationIngestSourceText(vaultRoot, source) {
|
|
1103
|
+
const absolutePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
1104
|
+
if (source.kind === "jsonl") {
|
|
1105
|
+
return readFile(absolutePath, "utf8");
|
|
1106
|
+
}
|
|
1107
|
+
if (source.kind === "gzip") {
|
|
1108
|
+
return readGzippedIntegrationIngestJsonlText(absolutePath, source.sourcePath);
|
|
1109
|
+
}
|
|
1110
|
+
return readZippedIntegrationIngestJsonlText(vaultRoot, source);
|
|
1111
|
+
}
|
|
1112
|
+
async function writeIntegrationIngestArchiveText(vaultRoot, source, content) {
|
|
1113
|
+
if (source.kind === "jsonl") {
|
|
1114
|
+
throw new VaultError("INTEGRATION_INGEST_SHARD_ARCHIVED", `Integration ingest shard "${source.logicalPath}" is not archived.`, { relativePath: source.logicalPath });
|
|
1115
|
+
}
|
|
1116
|
+
const archivePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
1117
|
+
if (source.kind === "gzip") {
|
|
1118
|
+
const archive = gzipSync(content);
|
|
1119
|
+
assertIntegrationIngestArchiveReplacementSize(content, archive, source.sourcePath);
|
|
1120
|
+
await writeFileAtomic(archivePath, archive);
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
const archive = createSingleEntryIntegrationIngestZipArchive(source.logicalPath.split("/").at(-1) ?? "", content);
|
|
1124
|
+
assertIntegrationIngestArchiveReplacementSize(content, archive, source.sourcePath);
|
|
1125
|
+
await writeFileAtomic(archivePath, archive);
|
|
1126
|
+
}
|
|
1127
|
+
function sortIntegrationIngestRowSources(sources) {
|
|
1128
|
+
return [...sources].sort((left, right) => {
|
|
1129
|
+
const logicalComparison = left.logicalPath.localeCompare(right.logicalPath);
|
|
1130
|
+
if (logicalComparison !== 0)
|
|
1131
|
+
return logicalComparison;
|
|
1132
|
+
return integrationIngestSourceKindOrder(left.kind) - integrationIngestSourceKindOrder(right.kind)
|
|
1133
|
+
|| left.sourcePath.localeCompare(right.sourcePath);
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
function integrationIngestSourceKindOrder(kind) {
|
|
1137
|
+
if (kind === "jsonl")
|
|
1138
|
+
return 0;
|
|
1139
|
+
if (kind === "gzip")
|
|
1140
|
+
return 1;
|
|
1141
|
+
return 2;
|
|
1142
|
+
}
|
|
1143
|
+
async function readGzippedIntegrationIngestJsonlText(absolutePath, relativePath) {
|
|
1144
|
+
const archiveStat = await stat(absolutePath);
|
|
1145
|
+
if (archiveStat.size > MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES) {
|
|
1146
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES}-byte compressed size limit.`, { byteSize: archiveStat.size, relativePath });
|
|
1147
|
+
}
|
|
1148
|
+
return readBoundedIntegrationIngestArchiveText(createReadStream(absolutePath).pipe(createGunzip()), relativePath, "gzip");
|
|
1149
|
+
}
|
|
1150
|
+
async function readBoundedIntegrationIngestArchiveText(chunks, relativePath, archiveKind) {
|
|
1151
|
+
const buffers = [];
|
|
1152
|
+
let byteSize = 0;
|
|
1153
|
+
try {
|
|
1154
|
+
for await (const chunk of chunks) {
|
|
1155
|
+
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, "utf8");
|
|
1156
|
+
byteSize += buffer.byteLength;
|
|
1157
|
+
if (byteSize > MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES) {
|
|
1158
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES}-byte uncompressed size limit.`, { byteSize, relativePath });
|
|
286
1159
|
}
|
|
287
|
-
|
|
1160
|
+
buffers.push(buffer);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
catch (error) {
|
|
1164
|
+
if (error instanceof VaultError) {
|
|
1165
|
+
throw error;
|
|
288
1166
|
}
|
|
1167
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" contains invalid ${archiveKind} data.`, { relativePath });
|
|
1168
|
+
}
|
|
1169
|
+
return Buffer.concat(buffers, byteSize).toString("utf8");
|
|
1170
|
+
}
|
|
1171
|
+
async function readZippedIntegrationIngestJsonlText(vaultRoot, source) {
|
|
1172
|
+
const archivePath = resolveVaultPath(vaultRoot, source.sourcePath).absolutePath;
|
|
1173
|
+
const archiveStat = await stat(archivePath);
|
|
1174
|
+
if (archiveStat.size > MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES) {
|
|
1175
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${source.sourcePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES}-byte compressed size limit.`, { byteSize: archiveStat.size, relativePath: source.sourcePath });
|
|
1176
|
+
}
|
|
1177
|
+
const archive = await readFile(archivePath);
|
|
1178
|
+
const entry = selectZippedIntegrationIngestJsonlEntry(archive, source);
|
|
1179
|
+
assertZippedIntegrationIngestEntrySize(entry, source.sourcePath);
|
|
1180
|
+
const localHeaderOffset = entry.localHeaderOffset;
|
|
1181
|
+
if (localHeaderOffset !== 0) {
|
|
1182
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" has hidden bytes before its JSONL entry.`, { relativePath: source.sourcePath });
|
|
289
1183
|
}
|
|
1184
|
+
assertZipReadableRange(archive, localHeaderOffset, 30, source.sourcePath);
|
|
1185
|
+
if (archive.readUInt32LE(localHeaderOffset) !== ZIP_LOCAL_FILE_HEADER_SIGNATURE) {
|
|
1186
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" has an invalid local file header.`, { relativePath: source.sourcePath });
|
|
1187
|
+
}
|
|
1188
|
+
if ((entry.flags & 0x1) !== 0) {
|
|
1189
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_UNSUPPORTED", `Integration ingest archive "${source.sourcePath}" contains an encrypted entry.`, { relativePath: source.sourcePath });
|
|
1190
|
+
}
|
|
1191
|
+
const fileNameLength = archive.readUInt16LE(localHeaderOffset + 26);
|
|
1192
|
+
const extraLength = archive.readUInt16LE(localHeaderOffset + 28);
|
|
1193
|
+
if (extraLength !== 0) {
|
|
1194
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" has hidden local header metadata.`, { relativePath: source.sourcePath });
|
|
1195
|
+
}
|
|
1196
|
+
const localNameStart = localHeaderOffset + 30;
|
|
1197
|
+
const localNameEnd = localNameStart + fileNameLength;
|
|
1198
|
+
assertZipReadableRange(archive, localNameStart, fileNameLength, source.sourcePath);
|
|
1199
|
+
const localName = archive.subarray(localNameStart, localNameEnd).toString("utf8").replaceAll("\\", "/");
|
|
1200
|
+
if (localName !== entry.name) {
|
|
1201
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" local file header does not match its central directory.`, { relativePath: source.sourcePath });
|
|
1202
|
+
}
|
|
1203
|
+
const contentOffset = localHeaderOffset + 30 + fileNameLength + extraLength;
|
|
1204
|
+
assertZipReadableRange(archive, contentOffset, entry.compressedSize, source.sourcePath);
|
|
1205
|
+
if (contentOffset + entry.compressedSize !== entry.centralDirectoryOffset) {
|
|
1206
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" has hidden bytes before its central directory.`, { relativePath: source.sourcePath });
|
|
1207
|
+
}
|
|
1208
|
+
const compressed = archive.subarray(contentOffset, contentOffset + entry.compressedSize);
|
|
1209
|
+
const content = unzipIntegrationIngestEntry(compressed, entry, source.sourcePath);
|
|
1210
|
+
if (content.byteLength !== entry.uncompressedSize) {
|
|
1211
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" has an invalid uncompressed size.`, { relativePath: source.sourcePath });
|
|
1212
|
+
}
|
|
1213
|
+
if ((crc32(content) >>> 0) !== entry.crc32) {
|
|
1214
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" failed CRC-32 verification.`, { relativePath: source.sourcePath });
|
|
1215
|
+
}
|
|
1216
|
+
return content.toString("utf8");
|
|
1217
|
+
}
|
|
1218
|
+
function selectZippedIntegrationIngestJsonlEntry(archive, source) {
|
|
1219
|
+
const entries = readZipCentralDirectory(archive, source.sourcePath);
|
|
1220
|
+
const expectedName = source.logicalPath.split("/").at(-1) ?? "";
|
|
1221
|
+
if (entries.length === 1 && entries[0]?.name === expectedName) {
|
|
1222
|
+
return entries[0];
|
|
1223
|
+
}
|
|
1224
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${source.sourcePath}" must contain exactly one entry named "${expectedName}".`, { relativePath: source.sourcePath, entryCount: entries.length });
|
|
1225
|
+
}
|
|
1226
|
+
function readZipCentralDirectory(archive, relativePath) {
|
|
1227
|
+
const eocdOffset = findZipEndOfCentralDirectory(archive);
|
|
1228
|
+
if (eocdOffset < 0) {
|
|
1229
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" is missing a ZIP central directory.`, { relativePath });
|
|
1230
|
+
}
|
|
1231
|
+
assertZipReadableRange(archive, eocdOffset, 22, relativePath);
|
|
1232
|
+
const diskNumber = archive.readUInt16LE(eocdOffset + 4);
|
|
1233
|
+
const centralDirectoryDisk = archive.readUInt16LE(eocdOffset + 6);
|
|
1234
|
+
const diskEntryCount = archive.readUInt16LE(eocdOffset + 8);
|
|
1235
|
+
const entryCount = archive.readUInt16LE(eocdOffset + 10);
|
|
1236
|
+
const centralDirectorySize = archive.readUInt32LE(eocdOffset + 12);
|
|
1237
|
+
const centralDirectoryOffset = archive.readUInt32LE(eocdOffset + 16);
|
|
1238
|
+
const commentLength = archive.readUInt16LE(eocdOffset + 20);
|
|
1239
|
+
if (diskNumber !== 0
|
|
1240
|
+
|| centralDirectoryDisk !== 0
|
|
1241
|
+
|| diskEntryCount !== entryCount
|
|
1242
|
+
|| entryCount === ZIP64_MARKER_16
|
|
1243
|
+
|| centralDirectorySize === ZIP64_MARKER_32
|
|
1244
|
+
|| centralDirectoryOffset === ZIP64_MARKER_32) {
|
|
1245
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_UNSUPPORTED", `Integration ingest archive "${relativePath}" uses an unsupported ZIP variant.`, { relativePath });
|
|
1246
|
+
}
|
|
1247
|
+
if (commentLength !== 0 || eocdOffset + 22 !== archive.byteLength) {
|
|
1248
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has an invalid ZIP comment length.`, { relativePath });
|
|
1249
|
+
}
|
|
1250
|
+
const entries = [];
|
|
1251
|
+
let offset = centralDirectoryOffset;
|
|
1252
|
+
const centralDirectoryEnd = centralDirectoryOffset + centralDirectorySize;
|
|
1253
|
+
if (centralDirectoryEnd !== eocdOffset) {
|
|
1254
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has hidden central directory padding.`, { relativePath });
|
|
1255
|
+
}
|
|
1256
|
+
assertZipReadableRange(archive, centralDirectoryOffset, centralDirectorySize, relativePath);
|
|
1257
|
+
for (let index = 0; index < entryCount; index += 1) {
|
|
1258
|
+
assertZipReadableRange(archive, offset, 46, relativePath);
|
|
1259
|
+
if (archive.readUInt32LE(offset) !== ZIP_CENTRAL_DIRECTORY_SIGNATURE) {
|
|
1260
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has an invalid central directory entry.`, { relativePath });
|
|
1261
|
+
}
|
|
1262
|
+
const flags = archive.readUInt16LE(offset + 8);
|
|
1263
|
+
const compressionMethod = archive.readUInt16LE(offset + 10);
|
|
1264
|
+
const entryCrc32 = archive.readUInt32LE(offset + 16);
|
|
1265
|
+
const compressedSize = archive.readUInt32LE(offset + 20);
|
|
1266
|
+
const uncompressedSize = archive.readUInt32LE(offset + 24);
|
|
1267
|
+
const fileNameLength = archive.readUInt16LE(offset + 28);
|
|
1268
|
+
const extraLength = archive.readUInt16LE(offset + 30);
|
|
1269
|
+
const commentLength = archive.readUInt16LE(offset + 32);
|
|
1270
|
+
const localHeaderOffset = archive.readUInt32LE(offset + 42);
|
|
1271
|
+
if (extraLength !== 0 || commentLength !== 0) {
|
|
1272
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has hidden central directory metadata.`, { relativePath });
|
|
1273
|
+
}
|
|
1274
|
+
if (compressedSize === ZIP64_MARKER_32
|
|
1275
|
+
|| uncompressedSize === ZIP64_MARKER_32
|
|
1276
|
+
|| localHeaderOffset === ZIP64_MARKER_32) {
|
|
1277
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_UNSUPPORTED", `Integration ingest archive "${relativePath}" uses an unsupported ZIP64 entry.`, { relativePath });
|
|
1278
|
+
}
|
|
1279
|
+
const nameStart = offset + 46;
|
|
1280
|
+
const nameEnd = nameStart + fileNameLength;
|
|
1281
|
+
assertZipReadableRange(archive, nameStart, fileNameLength, relativePath);
|
|
1282
|
+
entries.push({
|
|
1283
|
+
centralDirectoryOffset,
|
|
1284
|
+
compressedSize,
|
|
1285
|
+
compressionMethod,
|
|
1286
|
+
crc32: entryCrc32,
|
|
1287
|
+
flags,
|
|
1288
|
+
localHeaderOffset,
|
|
1289
|
+
name: archive.subarray(nameStart, nameEnd).toString("utf8").replaceAll("\\", "/"),
|
|
1290
|
+
uncompressedSize,
|
|
1291
|
+
});
|
|
1292
|
+
offset = nameEnd + extraLength + commentLength;
|
|
1293
|
+
}
|
|
1294
|
+
if (offset !== centralDirectoryEnd) {
|
|
1295
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has an invalid central directory size.`, { relativePath });
|
|
1296
|
+
}
|
|
1297
|
+
return entries;
|
|
1298
|
+
}
|
|
1299
|
+
function findZipEndOfCentralDirectory(archive) {
|
|
1300
|
+
const firstOffset = Math.max(0, archive.byteLength - ZIP_MAX_EOCD_SEARCH_BYTES);
|
|
1301
|
+
for (let offset = archive.byteLength - 22; offset >= firstOffset; offset -= 1) {
|
|
1302
|
+
if (archive.readUInt32LE(offset) === ZIP_EOCD_SIGNATURE) {
|
|
1303
|
+
return offset;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
return -1;
|
|
1307
|
+
}
|
|
1308
|
+
function unzipIntegrationIngestEntry(compressed, entry, relativePath) {
|
|
1309
|
+
if (entry.compressionMethod === 0) {
|
|
1310
|
+
return Buffer.from(compressed);
|
|
1311
|
+
}
|
|
1312
|
+
if (entry.compressionMethod === 8) {
|
|
1313
|
+
try {
|
|
1314
|
+
return inflateRawSync(compressed, {
|
|
1315
|
+
maxOutputLength: MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES,
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
catch (error) {
|
|
1319
|
+
if (isZlibMaxOutputLengthError(error)) {
|
|
1320
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES}-byte uncompressed size limit.`, { relativePath });
|
|
1321
|
+
}
|
|
1322
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" contains invalid deflated data.`, { relativePath });
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_UNSUPPORTED", `Integration ingest archive "${relativePath}" uses an unsupported compression method.`, { compressionMethod: entry.compressionMethod, relativePath });
|
|
1326
|
+
}
|
|
1327
|
+
function assertSingleIntegrationIngestShardRepresentation(sources) {
|
|
1328
|
+
const byLogicalPath = new Map();
|
|
1329
|
+
for (const source of sources) {
|
|
1330
|
+
const siblings = byLogicalPath.get(source.logicalPath) ?? [];
|
|
1331
|
+
siblings.push(source);
|
|
1332
|
+
byLogicalPath.set(source.logicalPath, siblings);
|
|
1333
|
+
}
|
|
1334
|
+
for (const [logicalPath, siblings] of byLogicalPath.entries()) {
|
|
1335
|
+
if (siblings.length <= 1) {
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
throw new VaultError("INTEGRATION_INGEST_SHARD_REPRESENTATION_CONFLICT", `Integration ingest shard "${logicalPath}" has multiple physical representations.`, {
|
|
1339
|
+
relativePath: logicalPath,
|
|
1340
|
+
sourcePaths: siblings.map((source) => source.sourcePath).sort(),
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
return [...sources];
|
|
1344
|
+
}
|
|
1345
|
+
function assertZippedIntegrationIngestEntrySize(entry, relativePath) {
|
|
1346
|
+
if (entry.compressedSize > MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES) {
|
|
1347
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" contains an entry that exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES}-byte compressed size limit.`, { byteSize: entry.compressedSize, relativePath });
|
|
1348
|
+
}
|
|
1349
|
+
if (entry.uncompressedSize > MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES) {
|
|
1350
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" contains an entry that exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES}-byte uncompressed size limit.`, { byteSize: entry.uncompressedSize, relativePath });
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
function assertZipReadableRange(archive, offset, length, relativePath) {
|
|
1354
|
+
if (offset < 0 || length < 0 || offset + length > archive.byteLength) {
|
|
1355
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_INVALID", `Integration ingest archive "${relativePath}" has an invalid ZIP offset.`, { relativePath });
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function assertIntegrationIngestArchiveReplacementSize(content, archive, relativePath) {
|
|
1359
|
+
const entryBytes = Buffer.byteLength(content, "utf8");
|
|
1360
|
+
if (entryBytes > MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES) {
|
|
1361
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ENTRY_BYTES}-byte uncompressed size limit.`, { byteSize: entryBytes, relativePath });
|
|
1362
|
+
}
|
|
1363
|
+
if (archive.byteLength > MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES) {
|
|
1364
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_TOO_LARGE", `Integration ingest archive "${relativePath}" exceeds the ${MAX_INTEGRATION_INGEST_ZIP_ARCHIVE_BYTES}-byte compressed size limit.`, { byteSize: archive.byteLength, relativePath });
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
function createSingleEntryIntegrationIngestZipArchive(fileName, content) {
|
|
1368
|
+
const fileNameBytes = Buffer.from(fileName, "utf8");
|
|
1369
|
+
if (fileNameBytes.byteLength === 0 || fileNameBytes.byteLength > 0xffff) {
|
|
1370
|
+
throw new VaultError("INTEGRATION_INGEST_ARCHIVE_UNSUPPORTED", "Integration ingest ZIP archive entry name is unsupported.");
|
|
1371
|
+
}
|
|
1372
|
+
const contentBytes = Buffer.from(content, "utf8");
|
|
1373
|
+
const compressed = deflateRawSync(contentBytes);
|
|
1374
|
+
const contentCrc32 = crc32(contentBytes) >>> 0;
|
|
1375
|
+
const localHeader = Buffer.alloc(30 + fileNameBytes.byteLength);
|
|
1376
|
+
localHeader.writeUInt32LE(ZIP_LOCAL_FILE_HEADER_SIGNATURE, 0);
|
|
1377
|
+
localHeader.writeUInt16LE(20, 4);
|
|
1378
|
+
localHeader.writeUInt16LE(0, 6);
|
|
1379
|
+
localHeader.writeUInt16LE(8, 8);
|
|
1380
|
+
localHeader.writeUInt32LE(contentCrc32, 14);
|
|
1381
|
+
localHeader.writeUInt32LE(compressed.byteLength, 18);
|
|
1382
|
+
localHeader.writeUInt32LE(contentBytes.byteLength, 22);
|
|
1383
|
+
localHeader.writeUInt16LE(fileNameBytes.byteLength, 26);
|
|
1384
|
+
fileNameBytes.copy(localHeader, 30);
|
|
1385
|
+
const centralDirectoryOffset = localHeader.byteLength + compressed.byteLength;
|
|
1386
|
+
const centralDirectory = Buffer.alloc(46 + fileNameBytes.byteLength);
|
|
1387
|
+
centralDirectory.writeUInt32LE(ZIP_CENTRAL_DIRECTORY_SIGNATURE, 0);
|
|
1388
|
+
centralDirectory.writeUInt16LE(20, 4);
|
|
1389
|
+
centralDirectory.writeUInt16LE(20, 6);
|
|
1390
|
+
centralDirectory.writeUInt16LE(0, 8);
|
|
1391
|
+
centralDirectory.writeUInt16LE(8, 10);
|
|
1392
|
+
centralDirectory.writeUInt32LE(contentCrc32, 16);
|
|
1393
|
+
centralDirectory.writeUInt32LE(compressed.byteLength, 20);
|
|
1394
|
+
centralDirectory.writeUInt32LE(contentBytes.byteLength, 24);
|
|
1395
|
+
centralDirectory.writeUInt16LE(fileNameBytes.byteLength, 28);
|
|
1396
|
+
centralDirectory.writeUInt32LE(0, 42);
|
|
1397
|
+
fileNameBytes.copy(centralDirectory, 46);
|
|
1398
|
+
const eocd = Buffer.alloc(22);
|
|
1399
|
+
eocd.writeUInt32LE(ZIP_EOCD_SIGNATURE, 0);
|
|
1400
|
+
eocd.writeUInt16LE(1, 8);
|
|
1401
|
+
eocd.writeUInt16LE(1, 10);
|
|
1402
|
+
eocd.writeUInt32LE(centralDirectory.byteLength, 12);
|
|
1403
|
+
eocd.writeUInt32LE(centralDirectoryOffset, 16);
|
|
1404
|
+
return Buffer.concat([localHeader, compressed, centralDirectory, eocd]);
|
|
1405
|
+
}
|
|
1406
|
+
function isZlibMaxOutputLengthError(error) {
|
|
1407
|
+
return error instanceof RangeError
|
|
1408
|
+
&& error.code === "ERR_BUFFER_TOO_LARGE";
|
|
290
1409
|
}
|
|
291
1410
|
function parseIntegrationIngestRecord(raw, relativePath) {
|
|
292
1411
|
const parsed = integrationIngestRecordSchema.safeParse(raw);
|