@murphai/hosted-execution 0.1.15 → 0.1.18
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/LICENSE +201 -674
- package/README.md +15 -14
- package/dist/auth.d.ts +11 -25
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +32 -76
- package/dist/auth.js.map +1 -1
- package/dist/builders.d.ts +3 -4
- package/dist/builders.d.ts.map +1 -1
- package/dist/builders.js +24 -24
- package/dist/builders.js.map +1 -1
- package/dist/bundles.d.ts +3 -13
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +1 -16
- package/dist/bundles.js.map +1 -1
- package/dist/client.d.ts +2 -26
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +38 -212
- package/dist/client.js.map +1 -1
- package/dist/contracts.d.ts +49 -118
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +15 -58
- package/dist/contracts.js.map +1 -1
- package/dist/dispatch-ref.d.ts +1 -2
- package/dist/dispatch-ref.d.ts.map +1 -1
- package/dist/dispatch-ref.js +16 -30
- package/dist/dispatch-ref.js.map +1 -1
- package/dist/env.d.ts +0 -38
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +1 -87
- package/dist/env.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/observability.d.ts +3 -1
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +76 -53
- package/dist/observability.js.map +1 -1
- package/dist/outbox-payload.d.ts +7 -5
- package/dist/outbox-payload.d.ts.map +1 -1
- package/dist/outbox-payload.js +75 -38
- package/dist/outbox-payload.js.map +1 -1
- package/dist/parsers.d.ts +10 -10
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +192 -139
- package/dist/parsers.js.map +1 -1
- package/dist/routes.d.ts +4 -9
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +7 -18
- package/dist/routes.js.map +1 -1
- package/node_modules/@murphai/core/README.md +3 -0
- package/node_modules/@murphai/core/dist/assessment/index.d.ts +5 -0
- package/node_modules/@murphai/core/dist/assessment/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/index.js +4 -0
- package/node_modules/@murphai/core/dist/assessment/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/project.d.ts +9 -0
- package/node_modules/@murphai/core/dist/assessment/project.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/project.js +353 -0
- package/node_modules/@murphai/core/dist/assessment/project.js.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/storage.d.ts +13 -0
- package/node_modules/@murphai/core/dist/assessment/storage.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/storage.js +202 -0
- package/node_modules/@murphai/core/dist/assessment/storage.js.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/types.d.ts +112 -0
- package/node_modules/@murphai/core/dist/assessment/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/assessment/types.js +5 -0
- package/node_modules/@murphai/core/dist/assessment/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/atomic-write.d.ts +5 -0
- package/node_modules/@murphai/core/dist/atomic-write.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/atomic-write.js +120 -0
- package/node_modules/@murphai/core/dist/atomic-write.js.map +1 -0
- package/node_modules/@murphai/core/dist/audit.d.ts +27 -0
- package/node_modules/@murphai/core/dist/audit.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/audit.js +94 -0
- package/node_modules/@murphai/core/dist/audit.js.map +1 -0
- package/node_modules/@murphai/core/dist/automation.d.ts +55 -0
- package/node_modules/@murphai/core/dist/automation.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/automation.js +411 -0
- package/node_modules/@murphai/core/dist/automation.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/allergies.d.ts +5 -0
- package/node_modules/@murphai/core/dist/bank/allergies.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/allergies.js +209 -0
- package/node_modules/@murphai/core/dist/bank/allergies.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/conditions.d.ts +5 -0
- package/node_modules/@murphai/core/dist/bank/conditions.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/conditions.js +249 -0
- package/node_modules/@murphai/core/dist/bank/conditions.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/foods.d.ts +8 -0
- package/node_modules/@murphai/core/dist/bank/foods.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/foods.js +255 -0
- package/node_modules/@murphai/core/dist/bank/foods.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/goals.d.ts +5 -0
- package/node_modules/@murphai/core/dist/bank/goals.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/goals.js +289 -0
- package/node_modules/@murphai/core/dist/bank/goals.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/index.d.ts +10 -0
- package/node_modules/@murphai/core/dist/bank/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/index.js +10 -0
- package/node_modules/@murphai/core/dist/bank/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/protocols.d.ts +8 -0
- package/node_modules/@murphai/core/dist/bank/protocols.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/protocols.js +466 -0
- package/node_modules/@murphai/core/dist/bank/protocols.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/providers.d.ts +46 -0
- package/node_modules/@murphai/core/dist/bank/providers.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/providers.js +160 -0
- package/node_modules/@murphai/core/dist/bank/providers.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/recipes.d.ts +8 -0
- package/node_modules/@murphai/core/dist/bank/recipes.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/recipes.js +287 -0
- package/node_modules/@murphai/core/dist/bank/recipes.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/shared.d.ts +39 -0
- package/node_modules/@murphai/core/dist/bank/shared.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/shared.js +150 -0
- package/node_modules/@murphai/core/dist/bank/shared.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/types.d.ts +469 -0
- package/node_modules/@murphai/core/dist/bank/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/types.js +35 -0
- package/node_modules/@murphai/core/dist/bank/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/bank/workout-formats.d.ts +5 -0
- package/node_modules/@murphai/core/dist/bank/workout-formats.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/bank/workout-formats.js +204 -0
- package/node_modules/@murphai/core/dist/bank/workout-formats.js.map +1 -0
- package/node_modules/@murphai/core/dist/canonical-mutations.d.ts +54 -0
- package/node_modules/@murphai/core/dist/canonical-mutations.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/canonical-mutations.js +196 -0
- package/node_modules/@murphai/core/dist/canonical-mutations.js.map +1 -0
- package/node_modules/@murphai/core/dist/constants.d.ts +125 -0
- package/node_modules/@murphai/core/dist/constants.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/constants.js +132 -0
- package/node_modules/@murphai/core/dist/constants.js.map +1 -0
- package/node_modules/@murphai/core/dist/domains/events.d.ts +100 -0
- package/node_modules/@murphai/core/dist/domains/events.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/events.js +593 -0
- package/node_modules/@murphai/core/dist/domains/events.js.map +1 -0
- package/node_modules/@murphai/core/dist/domains/experiments.d.ts +71 -0
- package/node_modules/@murphai/core/dist/domains/experiments.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/experiments.js +275 -0
- package/node_modules/@murphai/core/dist/domains/experiments.js.map +1 -0
- package/node_modules/@murphai/core/dist/domains/journal.d.ts +52 -0
- package/node_modules/@murphai/core/dist/domains/journal.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/journal.js +173 -0
- package/node_modules/@murphai/core/dist/domains/journal.js.map +1 -0
- package/node_modules/@murphai/core/dist/domains/shared.d.ts +37 -0
- package/node_modules/@murphai/core/dist/domains/shared.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/shared.js +101 -0
- package/node_modules/@murphai/core/dist/domains/shared.js.map +1 -0
- package/node_modules/@murphai/core/dist/domains/vault-summary.d.ts +15 -0
- package/node_modules/@murphai/core/dist/domains/vault-summary.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/domains/vault-summary.js +58 -0
- package/node_modules/@murphai/core/dist/domains/vault-summary.js.map +1 -0
- package/node_modules/@murphai/core/dist/errors.d.ts +8 -0
- package/node_modules/@murphai/core/dist/errors.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/errors.js +14 -0
- package/node_modules/@murphai/core/dist/errors.js.map +1 -0
- package/node_modules/@murphai/core/dist/event-attachments.d.ts +69 -0
- package/node_modules/@murphai/core/dist/event-attachments.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/event-attachments.js +202 -0
- package/node_modules/@murphai/core/dist/event-attachments.js.map +1 -0
- package/node_modules/@murphai/core/dist/event-links.d.ts +15 -0
- package/node_modules/@murphai/core/dist/event-links.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/event-links.js +54 -0
- package/node_modules/@murphai/core/dist/event-links.js.map +1 -0
- package/node_modules/@murphai/core/dist/family/api.d.ts +5 -0
- package/node_modules/@murphai/core/dist/family/api.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/family/api.js +221 -0
- package/node_modules/@murphai/core/dist/family/api.js.map +1 -0
- package/node_modules/@murphai/core/dist/family/index.d.ts +3 -0
- package/node_modules/@murphai/core/dist/family/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/family/index.js +3 -0
- package/node_modules/@murphai/core/dist/family/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/family/types.d.ts +34 -0
- package/node_modules/@murphai/core/dist/family/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/family/types.js +2 -0
- package/node_modules/@murphai/core/dist/family/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/frontmatter.d.ts +4 -0
- package/node_modules/@murphai/core/dist/frontmatter.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/frontmatter.js +99 -0
- package/node_modules/@murphai/core/dist/frontmatter.js.map +1 -0
- package/node_modules/@murphai/core/dist/fs.d.ts +22 -0
- package/node_modules/@murphai/core/dist/fs.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/fs.js +172 -0
- package/node_modules/@murphai/core/dist/fs.js.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/api.d.ts +5 -0
- package/node_modules/@murphai/core/dist/genetics/api.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/api.js +226 -0
- package/node_modules/@murphai/core/dist/genetics/api.js.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/index.d.ts +3 -0
- package/node_modules/@murphai/core/dist/genetics/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/index.js +3 -0
- package/node_modules/@murphai/core/dist/genetics/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/types.d.ts +40 -0
- package/node_modules/@murphai/core/dist/genetics/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/genetics/types.js +4 -0
- package/node_modules/@murphai/core/dist/genetics/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/history/api.d.ts +7 -0
- package/node_modules/@murphai/core/dist/history/api.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/history/api.js +473 -0
- package/node_modules/@murphai/core/dist/history/api.js.map +1 -0
- package/node_modules/@murphai/core/dist/history/event-spine.d.ts +41 -0
- package/node_modules/@murphai/core/dist/history/event-spine.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/history/event-spine.js +111 -0
- package/node_modules/@murphai/core/dist/history/event-spine.js.map +1 -0
- package/node_modules/@murphai/core/dist/history/index.d.ts +3 -0
- package/node_modules/@murphai/core/dist/history/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/history/index.js +3 -0
- package/node_modules/@murphai/core/dist/history/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/history/shared.d.ts +25 -0
- package/node_modules/@murphai/core/dist/history/shared.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/history/shared.js +144 -0
- package/node_modules/@murphai/core/dist/history/shared.js.map +1 -0
- package/node_modules/@murphai/core/dist/history/types.d.ts +127 -0
- package/node_modules/@murphai/core/dist/history/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/history/types.js +8 -0
- package/node_modules/@murphai/core/dist/history/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/ids.d.ts +3 -0
- package/node_modules/@murphai/core/dist/ids.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/ids.js +20 -0
- package/node_modules/@murphai/core/dist/ids.js.map +1 -0
- package/node_modules/@murphai/core/dist/index.d.ts +30 -0
- package/node_modules/@murphai/core/dist/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/index.js +23 -0
- package/node_modules/@murphai/core/dist/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/jsonl.d.ts +12 -0
- package/node_modules/@murphai/core/dist/jsonl.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/jsonl.js +40 -0
- package/node_modules/@murphai/core/dist/jsonl.js.map +1 -0
- package/node_modules/@murphai/core/dist/memory.d.ts +17 -0
- package/node_modules/@murphai/core/dist/memory.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/memory.js +72 -0
- package/node_modules/@murphai/core/dist/memory.js.map +1 -0
- package/node_modules/@murphai/core/dist/mutations.d.ts +150 -0
- package/node_modules/@murphai/core/dist/mutations.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/mutations.js +1109 -0
- package/node_modules/@murphai/core/dist/mutations.js.map +1 -0
- package/node_modules/@murphai/core/dist/operations/canonical-write-lock.d.ts +29 -0
- package/node_modules/@murphai/core/dist/operations/canonical-write-lock.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/operations/canonical-write-lock.js +164 -0
- package/node_modules/@murphai/core/dist/operations/canonical-write-lock.js.map +1 -0
- package/node_modules/@murphai/core/dist/operations/index.d.ts +5 -0
- package/node_modules/@murphai/core/dist/operations/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/operations/index.js +3 -0
- package/node_modules/@murphai/core/dist/operations/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/operations/raw-manifests.d.ts +33 -0
- package/node_modules/@murphai/core/dist/operations/raw-manifests.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/operations/raw-manifests.js +105 -0
- package/node_modules/@murphai/core/dist/operations/raw-manifests.js.map +1 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.d.ts +166 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.js +886 -0
- package/node_modules/@murphai/core/dist/operations/write-batch.js.map +1 -0
- package/node_modules/@murphai/core/dist/path-safety.d.ts +19 -0
- package/node_modules/@murphai/core/dist/path-safety.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/path-safety.js +193 -0
- package/node_modules/@murphai/core/dist/path-safety.js.map +1 -0
- package/node_modules/@murphai/core/dist/profile/index.d.ts +4 -0
- package/node_modules/@murphai/core/dist/profile/index.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/profile/index.js +3 -0
- package/node_modules/@murphai/core/dist/profile/index.js.map +1 -0
- package/node_modules/@murphai/core/dist/profile/storage.d.ts +41 -0
- package/node_modules/@murphai/core/dist/profile/storage.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/profile/storage.js +225 -0
- package/node_modules/@murphai/core/dist/profile/storage.js.map +1 -0
- package/node_modules/@murphai/core/dist/profile/types.d.ts +29 -0
- package/node_modules/@murphai/core/dist/profile/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/profile/types.js +8 -0
- package/node_modules/@murphai/core/dist/profile/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/public-mutations.d.ts +120 -0
- package/node_modules/@murphai/core/dist/public-mutations.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/public-mutations.js +275 -0
- package/node_modules/@murphai/core/dist/public-mutations.js.map +1 -0
- package/node_modules/@murphai/core/dist/raw.d.ts +28 -0
- package/node_modules/@murphai/core/dist/raw.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/raw.js +107 -0
- package/node_modules/@murphai/core/dist/raw.js.map +1 -0
- package/node_modules/@murphai/core/dist/registry/api.d.ts +80 -0
- package/node_modules/@murphai/core/dist/registry/api.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/registry/api.js +113 -0
- package/node_modules/@murphai/core/dist/registry/api.js.map +1 -0
- package/node_modules/@murphai/core/dist/registry/id-or-slug.d.ts +15 -0
- package/node_modules/@murphai/core/dist/registry/id-or-slug.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/registry/id-or-slug.js +9 -0
- package/node_modules/@murphai/core/dist/registry/id-or-slug.js.map +1 -0
- package/node_modules/@murphai/core/dist/registry/markdown.d.ts +101 -0
- package/node_modules/@murphai/core/dist/registry/markdown.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/registry/markdown.js +136 -0
- package/node_modules/@murphai/core/dist/registry/markdown.js.map +1 -0
- package/node_modules/@murphai/core/dist/shares.d.ts +36 -0
- package/node_modules/@murphai/core/dist/shares.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/shares.js +333 -0
- package/node_modules/@murphai/core/dist/shares.js.map +1 -0
- package/node_modules/@murphai/core/dist/storage-spine.d.ts +3 -0
- package/node_modules/@murphai/core/dist/storage-spine.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/storage-spine.js +3 -0
- package/node_modules/@murphai/core/dist/storage-spine.js.map +1 -0
- package/node_modules/@murphai/core/dist/time.d.ts +11 -0
- package/node_modules/@murphai/core/dist/time.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/time.js +72 -0
- package/node_modules/@murphai/core/dist/time.js.map +1 -0
- package/node_modules/@murphai/core/dist/types.d.ts +18 -0
- package/node_modules/@murphai/core/dist/types.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/types.js +7 -0
- package/node_modules/@murphai/core/dist/types.js.map +1 -0
- package/node_modules/@murphai/core/dist/vault-core-document.d.ts +8 -0
- package/node_modules/@murphai/core/dist/vault-core-document.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/vault-core-document.js +16 -0
- package/node_modules/@murphai/core/dist/vault-core-document.js.map +1 -0
- package/node_modules/@murphai/core/dist/vault-metadata.d.ts +17 -0
- package/node_modules/@murphai/core/dist/vault-metadata.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/vault-metadata.js +44 -0
- package/node_modules/@murphai/core/dist/vault-metadata.js.map +1 -0
- package/node_modules/@murphai/core/dist/vault-upgrade.d.ts +24 -0
- package/node_modules/@murphai/core/dist/vault-upgrade.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/vault-upgrade.js +44 -0
- package/node_modules/@murphai/core/dist/vault-upgrade.js.map +1 -0
- package/node_modules/@murphai/core/dist/vault.d.ts +40 -0
- package/node_modules/@murphai/core/dist/vault.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/vault.js +649 -0
- package/node_modules/@murphai/core/dist/vault.js.map +1 -0
- package/node_modules/@murphai/core/dist/write-policy.d.ts +63 -0
- package/node_modules/@murphai/core/dist/write-policy.d.ts.map +1 -0
- package/node_modules/@murphai/core/dist/write-policy.js +146 -0
- package/node_modules/@murphai/core/dist/write-policy.js.map +1 -0
- package/node_modules/@murphai/core/package.json +27 -0
- package/node_modules/@murphai/device-syncd/README.md +123 -0
- package/node_modules/@murphai/device-syncd/dist/bin.d.ts +2 -0
- package/node_modules/@murphai/device-syncd/dist/bin.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/bin.js +29 -0
- package/node_modules/@murphai/device-syncd/dist/bin.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/client.d.ts +124 -0
- package/node_modules/@murphai/device-syncd/dist/client.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/client.js +199 -0
- package/node_modules/@murphai/device-syncd/dist/client.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config.d.ts +18 -0
- package/node_modules/@murphai/device-syncd/dist/config.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/config.js +279 -0
- package/node_modules/@murphai/device-syncd/dist/config.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/crypto.d.ts +6 -0
- package/node_modules/@murphai/device-syncd/dist/crypto.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/crypto.js +27 -0
- package/node_modules/@murphai/device-syncd/dist/crypto.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/errors.d.ts +21 -0
- package/node_modules/@murphai/device-syncd/dist/errors.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/errors.js +32 -0
- package/node_modules/@murphai/device-syncd/dist/errors.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.js +110 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-hints.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.d.ts +139 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.js +336 -0
- package/node_modules/@murphai/device-syncd/dist/hosted-runtime.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/http.d.ts +34 -0
- package/node_modules/@murphai/device-syncd/dist/http.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/http.js +644 -0
- package/node_modules/@murphai/device-syncd/dist/http.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/index.d.ts +23 -0
- package/node_modules/@murphai/device-syncd/dist/index.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/index.js +15 -0
- package/node_modules/@murphai/device-syncd/dist/index.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/garmin.d.ts +15 -0
- package/node_modules/@murphai/device-syncd/dist/providers/garmin.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/garmin.js +485 -0
- package/node_modules/@murphai/device-syncd/dist/providers/garmin.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura-webhooks.d.ts +49 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura-webhooks.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura-webhooks.js +401 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura-webhooks.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura.d.ts +20 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura.js +804 -0
- package/node_modules/@murphai/device-syncd/dist/providers/oura.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/shared-oauth.d.ts +104 -0
- package/node_modules/@murphai/device-syncd/dist/providers/shared-oauth.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/shared-oauth.js +214 -0
- package/node_modules/@murphai/device-syncd/dist/providers/shared-oauth.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.d.ts +15 -0
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.js +551 -0
- package/node_modules/@murphai/device-syncd/dist/providers/whoop.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.d.ts +4 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.js +13 -0
- package/node_modules/@murphai/device-syncd/dist/public-account.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-ingress.d.ts +43 -0
- package/node_modules/@murphai/device-syncd/dist/public-ingress.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js +353 -0
- package/node_modules/@murphai/device-syncd/dist/public-ingress.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/registry.d.ts +3 -0
- package/node_modules/@murphai/device-syncd/dist/registry.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/registry.js +5 -0
- package/node_modules/@murphai/device-syncd/dist/registry.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/service.d.ts +61 -0
- package/node_modules/@murphai/device-syncd/dist/service.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/service.js +496 -0
- package/node_modules/@murphai/device-syncd/dist/service.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/shared.d.ts +26 -0
- package/node_modules/@murphai/device-syncd/dist/shared.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/shared.js +182 -0
- package/node_modules/@murphai/device-syncd/dist/shared.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/store.d.ts +105 -0
- package/node_modules/@murphai/device-syncd/dist/store.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/store.js +965 -0
- package/node_modules/@murphai/device-syncd/dist/store.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/types.d.ts +287 -0
- package/node_modules/@murphai/device-syncd/dist/types.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/types.js +2 -0
- package/node_modules/@murphai/device-syncd/dist/types.js.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/webhook-verification.d.ts +14 -0
- package/node_modules/@murphai/device-syncd/dist/webhook-verification.d.ts.map +1 -0
- package/node_modules/@murphai/device-syncd/dist/webhook-verification.js +16 -0
- package/node_modules/@murphai/device-syncd/dist/webhook-verification.js.map +1 -0
- package/node_modules/@murphai/device-syncd/package.json +85 -0
- package/node_modules/@murphai/importers/README.md +34 -0
- package/node_modules/@murphai/importers/dist/assessment/core-port.d.ts +13 -0
- package/node_modules/@murphai/importers/dist/assessment/core-port.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/assessment/core-port.js +13 -0
- package/node_modules/@murphai/importers/dist/assessment/core-port.js.map +1 -0
- package/node_modules/@murphai/importers/dist/assessment/import-assessment-response.d.ts +15 -0
- package/node_modules/@murphai/importers/dist/assessment/import-assessment-response.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/assessment/import-assessment-response.js +32 -0
- package/node_modules/@murphai/importers/dist/assessment/import-assessment-response.js.map +1 -0
- package/node_modules/@murphai/importers/dist/assessment/index.d.ts +4 -0
- package/node_modules/@murphai/importers/dist/assessment/index.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/assessment/index.js +2 -0
- package/node_modules/@murphai/importers/dist/assessment/index.js.map +1 -0
- package/node_modules/@murphai/importers/dist/core-port.d.ts +119 -0
- package/node_modules/@murphai/importers/dist/core-port.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/core-port.js +22 -0
- package/node_modules/@murphai/importers/dist/core-port.js.map +1 -0
- package/node_modules/@murphai/importers/dist/create-importers.d.ts +17 -0
- package/node_modules/@murphai/importers/dist/create-importers.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/create-importers.js +68 -0
- package/node_modules/@murphai/importers/dist/create-importers.js.map +1 -0
- package/node_modules/@murphai/importers/dist/csv-sample-importer.d.ts +22 -0
- package/node_modules/@murphai/importers/dist/csv-sample-importer.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/csv-sample-importer.js +153 -0
- package/node_modules/@murphai/importers/dist/csv-sample-importer.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/defaults.d.ts +5 -0
- package/node_modules/@murphai/importers/dist/device-providers/defaults.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/defaults.js +11 -0
- package/node_modules/@murphai/importers/dist/device-providers/defaults.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-activity-normalizers.d.ts +9 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-activity-normalizers.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-activity-normalizers.js +172 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-activity-normalizers.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-health-normalizers.d.ts +12 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-health-normalizers.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-health-normalizers.js +619 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-health-normalizers.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-helpers.d.ts +40 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-helpers.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-helpers.js +295 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin-helpers.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin.d.ts +19 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin.js +150 -0
- package/node_modules/@murphai/importers/dist/device-providers/garmin.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.d.ts +14 -0
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.js +37 -0
- package/node_modules/@murphai/importers/dist/device-providers/import-device-provider-snapshot.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/index.d.ts +10 -0
- package/node_modules/@murphai/importers/dist/device-providers/index.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/index.js +8 -0
- package/node_modules/@murphai/importers/dist/device-providers/index.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/oura.d.ts +20 -0
- package/node_modules/@murphai/importers/dist/device-providers/oura.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/oura.js +602 -0
- package/node_modules/@murphai/importers/dist/device-providers/oura.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.d.ts +491 -0
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.js +326 -0
- package/node_modules/@murphai/importers/dist/device-providers/provider-descriptors.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/registry.d.ts +9 -0
- package/node_modules/@murphai/importers/dist/device-providers/registry.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/registry.js +5 -0
- package/node_modules/@murphai/importers/dist/device-providers/registry.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.d.ts +81 -0
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.js +215 -0
- package/node_modules/@murphai/importers/dist/device-providers/shared-normalization.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/types.d.ts +12 -0
- package/node_modules/@murphai/importers/dist/device-providers/types.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/types.js +2 -0
- package/node_modules/@murphai/importers/dist/device-providers/types.js.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/whoop.d.ts +16 -0
- package/node_modules/@murphai/importers/dist/device-providers/whoop.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/device-providers/whoop.js +410 -0
- package/node_modules/@murphai/importers/dist/device-providers/whoop.js.map +1 -0
- package/node_modules/@murphai/importers/dist/document-importer.d.ts +15 -0
- package/node_modules/@murphai/importers/dist/document-importer.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/document-importer.js +31 -0
- package/node_modules/@murphai/importers/dist/document-importer.js.map +1 -0
- package/node_modules/@murphai/importers/dist/index.d.ts +10 -0
- package/node_modules/@murphai/importers/dist/index.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/index.js +9 -0
- package/node_modules/@murphai/importers/dist/index.js.map +1 -0
- package/node_modules/@murphai/importers/dist/meal-importer.d.ts +15 -0
- package/node_modules/@murphai/importers/dist/meal-importer.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/meal-importer.js +39 -0
- package/node_modules/@murphai/importers/dist/meal-importer.js.map +1 -0
- package/node_modules/@murphai/importers/dist/preset-registry.d.ts +31 -0
- package/node_modules/@murphai/importers/dist/preset-registry.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/preset-registry.js +96 -0
- package/node_modules/@murphai/importers/dist/preset-registry.js.map +1 -0
- package/node_modules/@murphai/importers/dist/shared.d.ts +31 -0
- package/node_modules/@murphai/importers/dist/shared.d.ts.map +1 -0
- package/node_modules/@murphai/importers/dist/shared.js +154 -0
- package/node_modules/@murphai/importers/dist/shared.js.map +1 -0
- package/node_modules/@murphai/importers/package.json +36 -0
- package/node_modules/@murphai/runtime-state/README.md +37 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-local-state-descriptors.js +80 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.d.ts +29 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.js +159 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state-security.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state.d.ts +33 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state.js +47 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-state.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-usage.d.ts +56 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-usage.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-usage.js +189 -0
- package/node_modules/@murphai/runtime-state/dist/assistant-usage.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/atomic-write.d.ts +7 -0
- package/node_modules/@murphai/runtime-state/dist/atomic-write.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/atomic-write.js +27 -0
- package/node_modules/@murphai/runtime-state/dist/atomic-write.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/device-sync-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/device-sync-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/device-sync-local-state-descriptors.js +12 -0
- package/node_modules/@murphai/runtime-state/dist/device-sync-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/gateway-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/gateway-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/gateway-local-state-descriptors.js +13 -0
- package/node_modules/@murphai/runtime-state/dist/gateway-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-node.d.ts +43 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-node.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-node.js +203 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-node.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-ref.d.ts +13 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-ref.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-ref.js +46 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle-ref.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle.d.ts +67 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle.js +261 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundle.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.d.ts +31 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.js +211 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-bundles.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.d.ts +50 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.js +191 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-email.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-env.d.ts +14 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-env.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-env.js +59 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-env.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-keys.d.ts +83 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-keys.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-keys.js +308 -0
- package/node_modules/@murphai/runtime-state/dist/hosted-user-keys.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/inbox-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/inbox-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/inbox-local-state-descriptors.js +18 -0
- package/node_modules/@murphai/runtime-state/dist/inbox-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/index.d.ts +7 -0
- package/node_modules/@murphai/runtime-state/dist/index.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/index.js +7 -0
- package/node_modules/@murphai/runtime-state/dist/index.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-helpers.d.ts +31 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-helpers.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-helpers.js +120 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-helpers.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.js +17 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-descriptor-manifests.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-files.d.ts +10 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-files.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-files.js +27 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-files.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-taxonomy.d.ts +29 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-taxonomy.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-taxonomy.js +82 -0
- package/node_modules/@murphai/runtime-state/dist/local-state-taxonomy.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/locks.d.ts +46 -0
- package/node_modules/@murphai/runtime-state/dist/locks.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/locks.js +187 -0
- package/node_modules/@murphai/runtime-state/dist/locks.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/loopback-control-plane.d.ts +4 -0
- package/node_modules/@murphai/runtime-state/dist/loopback-control-plane.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/loopback-control-plane.js +35 -0
- package/node_modules/@murphai/runtime-state/dist/loopback-control-plane.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/node/index.d.ts +22 -0
- package/node_modules/@murphai/runtime-state/dist/node/index.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/node/index.js +22 -0
- package/node_modules/@murphai/runtime-state/dist/node/index.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/parser-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/parser-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/parser-local-state-descriptors.js +12 -0
- package/node_modules/@murphai/runtime-state/dist/parser-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/process-env.d.ts +4 -0
- package/node_modules/@murphai/runtime-state/dist/process-env.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/process-env.js +124 -0
- package/node_modules/@murphai/runtime-state/dist/process-env.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/query-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/query-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/query-local-state-descriptors.js +13 -0
- package/node_modules/@murphai/runtime-state/dist/query-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.d.ts +48 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.js +93 -0
- package/node_modules/@murphai/runtime-state/dist/runtime-paths.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/shared.d.ts +14 -0
- package/node_modules/@murphai/runtime-state/dist/shared.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/shared.js +46 -0
- package/node_modules/@murphai/runtime-state/dist/shared.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/sqlite.d.ts +26 -0
- package/node_modules/@murphai/runtime-state/dist/sqlite.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/sqlite.js +110 -0
- package/node_modules/@murphai/runtime-state/dist/sqlite.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/ulid.d.ts +5 -0
- package/node_modules/@murphai/runtime-state/dist/ulid.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/ulid.js +31 -0
- package/node_modules/@murphai/runtime-state/dist/ulid.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-files.d.ts +24 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-files.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-files.js +30 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-files.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-state.d.ts +18 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-state.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-state.js +25 -0
- package/node_modules/@murphai/runtime-state/dist/versioned-json-state.js.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/write-operation-local-state-descriptors.d.ts +3 -0
- package/node_modules/@murphai/runtime-state/dist/write-operation-local-state-descriptors.d.ts.map +1 -0
- package/node_modules/@murphai/runtime-state/dist/write-operation-local-state-descriptors.js +12 -0
- package/node_modules/@murphai/runtime-state/dist/write-operation-local-state-descriptors.js.map +1 -0
- package/node_modules/@murphai/runtime-state/package.json +30 -0
- package/package.json +45 -11
- package/dist/.tsbuildinfo +0 -1
- package/dist/callback-hosts.d.ts +0 -19
- package/dist/callback-hosts.d.ts.map +0 -1
- package/dist/callback-hosts.js +0 -19
- package/dist/callback-hosts.js.map +0 -1
- package/dist/web-control-plane.d.ts +0 -105
- package/dist/web-control-plane.d.ts.map +0 -1
- package/dist/web-control-plane.js +0 -358
- package/dist/web-control-plane.js.map +0 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { gunzipSync, gzipSync } from "node:zlib";
|
|
4
|
+
export const HOSTED_BUNDLE_SCHEMA = "murph.hosted-bundle.v2";
|
|
5
|
+
const WINDOWS_DRIVE_PREFIX_PATTERN = /^[A-Za-z]:/;
|
|
6
|
+
const MAX_HOSTED_BUNDLE_ARCHIVE_COMPRESSED_BYTES = 64 * 1024 * 1024;
|
|
7
|
+
const MAX_HOSTED_BUNDLE_ARCHIVE_UNCOMPRESSED_BYTES = 256 * 1024 * 1024;
|
|
8
|
+
const MAX_HOSTED_BUNDLE_ARCHIVE_FILE_COUNT = 50_000;
|
|
9
|
+
const MAX_HOSTED_BUNDLE_PATH_LENGTH = 4_096;
|
|
10
|
+
const MAX_HOSTED_BUNDLE_ROOT_LENGTH = 256;
|
|
11
|
+
const BASE64_CANONICAL_PATTERN = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;
|
|
12
|
+
export function hasHostedBundleArtifactPath(input) {
|
|
13
|
+
if (!input.bytes) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const archive = parseHostedBundleArchive(input.bytes);
|
|
17
|
+
if (archive.kind !== input.expectedKind) {
|
|
18
|
+
throw new Error(`Hosted bundle kind mismatch: expected ${input.expectedKind}, got ${archive.kind}.`);
|
|
19
|
+
}
|
|
20
|
+
const normalizedPath = normalizeBundlePath(input.path);
|
|
21
|
+
return archive.files.some((entry) => (isHostedBundleArtifactEntry(entry)
|
|
22
|
+
&& entry.root === input.root
|
|
23
|
+
&& entry.path === normalizedPath));
|
|
24
|
+
}
|
|
25
|
+
export function readHostedBundleTextFile(input) {
|
|
26
|
+
if (!input.bytes) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const archive = parseHostedBundleArchive(input.bytes);
|
|
30
|
+
if (archive.kind !== input.expectedKind) {
|
|
31
|
+
throw new Error(`Hosted bundle kind mismatch: expected ${input.expectedKind}, got ${archive.kind}.`);
|
|
32
|
+
}
|
|
33
|
+
const normalizedPath = normalizeBundlePath(input.path);
|
|
34
|
+
const file = archive.files.find((entry) => (entry.root === input.root
|
|
35
|
+
&& entry.path === normalizedPath));
|
|
36
|
+
if (!file || isHostedBundleArtifactEntry(file)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(file.contentsBase64, "base64").toString("utf8");
|
|
40
|
+
}
|
|
41
|
+
export function writeHostedBundleTextFile(input) {
|
|
42
|
+
const normalizedPath = normalizeBundlePath(input.path);
|
|
43
|
+
const archive = input.bytes
|
|
44
|
+
? parseHostedBundleArchive(input.bytes)
|
|
45
|
+
: {
|
|
46
|
+
files: [],
|
|
47
|
+
kind: input.kind,
|
|
48
|
+
schema: HOSTED_BUNDLE_SCHEMA,
|
|
49
|
+
};
|
|
50
|
+
if (archive.kind !== input.kind) {
|
|
51
|
+
throw new Error(`Hosted bundle kind mismatch: expected ${input.kind}, got ${archive.kind}.`);
|
|
52
|
+
}
|
|
53
|
+
const nextFiles = archive.files.filter((entry) => (entry.root !== input.root || entry.path !== normalizedPath));
|
|
54
|
+
if (input.text !== null) {
|
|
55
|
+
nextFiles.push({
|
|
56
|
+
contentsBase64: Buffer.from(input.text, "utf8").toString("base64"),
|
|
57
|
+
path: normalizedPath,
|
|
58
|
+
root: input.root,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return serializeHostedBundleArchive({
|
|
62
|
+
...archive,
|
|
63
|
+
files: sortHostedBundleFiles(nextFiles),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function listHostedBundleArtifacts(input) {
|
|
67
|
+
if (!input.bytes) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
const archive = parseHostedBundleArchive(input.bytes);
|
|
71
|
+
if (archive.kind !== input.expectedKind) {
|
|
72
|
+
throw new Error(`Hosted bundle kind mismatch: expected ${input.expectedKind}, got ${archive.kind}.`);
|
|
73
|
+
}
|
|
74
|
+
return archive.files
|
|
75
|
+
.filter(isHostedBundleArtifactEntry)
|
|
76
|
+
.map((entry) => ({
|
|
77
|
+
path: entry.path,
|
|
78
|
+
ref: entry.artifact,
|
|
79
|
+
root: entry.root,
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
export function encodeHostedBundleBase64(value) {
|
|
83
|
+
if (!value) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return Buffer.from(value instanceof ArrayBuffer ? new Uint8Array(value) : value).toString("base64");
|
|
87
|
+
}
|
|
88
|
+
export function decodeHostedBundleBase64(value) {
|
|
89
|
+
return value === null ? null : decodeStrictBase64(value, "Hosted bundle payload must be valid base64.");
|
|
90
|
+
}
|
|
91
|
+
export function sha256HostedBundleHex(bytes) {
|
|
92
|
+
return createHash("sha256")
|
|
93
|
+
.update(bytes instanceof ArrayBuffer ? Buffer.from(new Uint8Array(bytes)) : Buffer.from(bytes))
|
|
94
|
+
.digest("hex");
|
|
95
|
+
}
|
|
96
|
+
export function parseHostedBundleArchive(bytes) {
|
|
97
|
+
const buffer = Buffer.from(bytes instanceof ArrayBuffer ? new Uint8Array(bytes) : bytes);
|
|
98
|
+
if (buffer.byteLength > MAX_HOSTED_BUNDLE_ARCHIVE_COMPRESSED_BYTES) {
|
|
99
|
+
throw new Error(`Hosted bundle archive exceeds the ${MAX_HOSTED_BUNDLE_ARCHIVE_COMPRESSED_BYTES} byte compressed size limit.`);
|
|
100
|
+
}
|
|
101
|
+
let parsed;
|
|
102
|
+
try {
|
|
103
|
+
parsed = JSON.parse(gunzipSync(buffer, { maxOutputLength: MAX_HOSTED_BUNDLE_ARCHIVE_UNCOMPRESSED_BYTES }).toString("utf8"));
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
throw new Error("Hosted bundle archive is invalid.");
|
|
107
|
+
}
|
|
108
|
+
if (parsed.schema !== HOSTED_BUNDLE_SCHEMA
|
|
109
|
+
|| !Array.isArray(parsed.files)) {
|
|
110
|
+
throw new Error("Hosted bundle archive is invalid.");
|
|
111
|
+
}
|
|
112
|
+
if (parsed.kind !== "vault") {
|
|
113
|
+
throw new Error("Hosted bundle archive kind is invalid.");
|
|
114
|
+
}
|
|
115
|
+
if (parsed.files.length > MAX_HOSTED_BUNDLE_ARCHIVE_FILE_COUNT) {
|
|
116
|
+
throw new Error(`Hosted bundle archive exceeds the ${MAX_HOSTED_BUNDLE_ARCHIVE_FILE_COUNT} file entry limit.`);
|
|
117
|
+
}
|
|
118
|
+
const files = parsed.files.map((file) => parseHostedBundleArchiveFile(file));
|
|
119
|
+
assertUniqueHostedBundleArchiveEntries(files);
|
|
120
|
+
return {
|
|
121
|
+
files: sortHostedBundleFiles(files),
|
|
122
|
+
kind: parsed.kind,
|
|
123
|
+
schema: HOSTED_BUNDLE_SCHEMA,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export function serializeHostedBundleArchive(archive) {
|
|
127
|
+
const files = archive.files.map((file) => parseHostedBundleArchiveFile(file));
|
|
128
|
+
if (files.length > MAX_HOSTED_BUNDLE_ARCHIVE_FILE_COUNT) {
|
|
129
|
+
throw new Error(`Hosted bundle archive exceeds the ${MAX_HOSTED_BUNDLE_ARCHIVE_FILE_COUNT} file entry limit.`);
|
|
130
|
+
}
|
|
131
|
+
assertUniqueHostedBundleArchiveEntries(files);
|
|
132
|
+
return Uint8Array.from(gzipSync(Buffer.from(JSON.stringify({
|
|
133
|
+
...archive,
|
|
134
|
+
files: sortHostedBundleFiles(files),
|
|
135
|
+
}), "utf8")));
|
|
136
|
+
}
|
|
137
|
+
function decodeStrictBase64(value, errorMessage) {
|
|
138
|
+
const normalized = value.trim();
|
|
139
|
+
if (normalized.length === 0) {
|
|
140
|
+
return new Uint8Array();
|
|
141
|
+
}
|
|
142
|
+
if (normalized.length % 4 !== 0
|
|
143
|
+
|| !BASE64_CANONICAL_PATTERN.test(normalized)) {
|
|
144
|
+
throw new TypeError(errorMessage);
|
|
145
|
+
}
|
|
146
|
+
const decoded = Buffer.from(normalized, "base64");
|
|
147
|
+
if (decoded.toString("base64") !== normalized) {
|
|
148
|
+
throw new TypeError(errorMessage);
|
|
149
|
+
}
|
|
150
|
+
return Uint8Array.from(decoded);
|
|
151
|
+
}
|
|
152
|
+
function parseHostedBundleArchiveFile(file) {
|
|
153
|
+
if (!file || typeof file !== "object" || Array.isArray(file)) {
|
|
154
|
+
throw new Error("Hosted bundle archive contains an invalid file entry.");
|
|
155
|
+
}
|
|
156
|
+
const record = file;
|
|
157
|
+
if (typeof record.path !== "string" || typeof record.root !== "string") {
|
|
158
|
+
throw new Error("Hosted bundle archive contains an invalid file entry.");
|
|
159
|
+
}
|
|
160
|
+
const normalized = {
|
|
161
|
+
path: normalizeBundlePath(record.path),
|
|
162
|
+
root: normalizeHostedBundleRoot(record.root),
|
|
163
|
+
};
|
|
164
|
+
if (typeof record.contentsBase64 === "string") {
|
|
165
|
+
return {
|
|
166
|
+
contentsBase64: record.contentsBase64,
|
|
167
|
+
...normalized,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
const artifactRecord = record.artifact;
|
|
171
|
+
if (artifactRecord
|
|
172
|
+
&& typeof artifactRecord === "object"
|
|
173
|
+
&& !Array.isArray(artifactRecord)
|
|
174
|
+
&& typeof artifactRecord.sha256 === "string"
|
|
175
|
+
&& typeof artifactRecord.byteSize === "number") {
|
|
176
|
+
return {
|
|
177
|
+
artifact: {
|
|
178
|
+
byteSize: artifactRecord.byteSize,
|
|
179
|
+
sha256: artifactRecord.sha256,
|
|
180
|
+
},
|
|
181
|
+
...normalized,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
throw new Error("Hosted bundle archive contains an invalid file entry.");
|
|
185
|
+
}
|
|
186
|
+
export function normalizeBundlePath(value) {
|
|
187
|
+
const candidate = value.replace(/\\/g, "/");
|
|
188
|
+
if (!candidate || candidate.includes("\u0000")) {
|
|
189
|
+
throw new Error(`Hosted bundle path is invalid: ${value}`);
|
|
190
|
+
}
|
|
191
|
+
if (WINDOWS_DRIVE_PREFIX_PATTERN.test(candidate) || path.posix.isAbsolute(candidate)) {
|
|
192
|
+
throw new Error(`Hosted bundle path is invalid: ${value}`);
|
|
193
|
+
}
|
|
194
|
+
const normalized = path.posix.normalize(candidate);
|
|
195
|
+
if (normalized === "."
|
|
196
|
+
|| normalized === ".."
|
|
197
|
+
|| normalized.startsWith("../")
|
|
198
|
+
|| normalized.includes("/../")
|
|
199
|
+
|| normalized.length > MAX_HOSTED_BUNDLE_PATH_LENGTH) {
|
|
200
|
+
throw new Error(`Hosted bundle path is invalid: ${value}`);
|
|
201
|
+
}
|
|
202
|
+
return normalized;
|
|
203
|
+
}
|
|
204
|
+
export function resolveHostedBundleRestorePath(root, relativePath) {
|
|
205
|
+
const absoluteRoot = path.resolve(root);
|
|
206
|
+
const absolutePath = path.resolve(absoluteRoot, normalizeBundlePath(relativePath));
|
|
207
|
+
assertPathWithinRoot(absoluteRoot, absolutePath, relativePath);
|
|
208
|
+
return absolutePath;
|
|
209
|
+
}
|
|
210
|
+
function assertPathWithinRoot(root, absolutePath, originalPath) {
|
|
211
|
+
const relative = path.relative(root, absolutePath);
|
|
212
|
+
if (relative === ".."
|
|
213
|
+
|| relative.startsWith(`..${path.sep}`)
|
|
214
|
+
|| path.isAbsolute(relative)
|
|
215
|
+
|| WINDOWS_DRIVE_PREFIX_PATTERN.test(relative)) {
|
|
216
|
+
throw new Error(`Hosted bundle path escapes restore root: ${originalPath}`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export function sortHostedBundleFiles(files) {
|
|
220
|
+
return [...files].sort((left, right) => {
|
|
221
|
+
if (left.root !== right.root) {
|
|
222
|
+
return left.root.localeCompare(right.root);
|
|
223
|
+
}
|
|
224
|
+
return left.path.localeCompare(right.path);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
export function isHostedBundleArtifactEntry(value) {
|
|
228
|
+
return "artifact" in value;
|
|
229
|
+
}
|
|
230
|
+
export function assertHostedBundleArtifactIntegrity(input) {
|
|
231
|
+
if (input.bytes.byteLength !== input.ref.byteSize) {
|
|
232
|
+
throw new Error(`Hosted bundle artifact ${input.root}:${input.path} size mismatch: expected ${input.ref.byteSize}, got ${input.bytes.byteLength}.`);
|
|
233
|
+
}
|
|
234
|
+
const actualSha256 = sha256HostedBundleHex(input.bytes);
|
|
235
|
+
if (actualSha256 !== input.ref.sha256) {
|
|
236
|
+
throw new Error(`Hosted bundle artifact ${input.root}:${input.path} hash mismatch: expected ${input.ref.sha256}, got ${actualSha256}.`);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
export function toHostedBundleBytes(value) {
|
|
240
|
+
return value instanceof Uint8Array ? value : new Uint8Array(value);
|
|
241
|
+
}
|
|
242
|
+
function normalizeHostedBundleRoot(value) {
|
|
243
|
+
const normalized = value.trim();
|
|
244
|
+
if (normalized.length === 0
|
|
245
|
+
|| normalized.length > MAX_HOSTED_BUNDLE_ROOT_LENGTH
|
|
246
|
+
|| normalized.includes("\u0000")) {
|
|
247
|
+
throw new Error(`Hosted bundle root is invalid: ${value}`);
|
|
248
|
+
}
|
|
249
|
+
return normalized;
|
|
250
|
+
}
|
|
251
|
+
function assertUniqueHostedBundleArchiveEntries(files) {
|
|
252
|
+
const seen = new Set();
|
|
253
|
+
for (const file of files) {
|
|
254
|
+
const key = `${file.root}:${file.path}`;
|
|
255
|
+
if (seen.has(key)) {
|
|
256
|
+
throw new Error(`Hosted bundle archive contains duplicate file entry: ${key}.`);
|
|
257
|
+
}
|
|
258
|
+
seen.add(key);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=hosted-bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-bundle.js","sourceRoot":"","sources":["../src/hosted-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAA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,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAEhC,IACE,UAAU,CAAC,MAAM,KAAK,CAAC;WACpB,UAAU,CAAC,MAAM,GAAG,6BAA6B;WACjD,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAChC,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,kCAAkC,KAAK,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,sCAAsC,CAAC,KAAyC;IACvF,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAE/B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,wDAAwD,GAAG,GAAG,CAAC,CAAC;QAClF,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HostedBundleArtifactRef } from "./hosted-bundle.ts";
|
|
2
|
+
import { type HostedBundleArtifactRestoreFilter, type HostedBundleArtifactRestoreInput, type HostedBundleArtifactSnapshotInput } from "./hosted-bundle-node.ts";
|
|
3
|
+
export interface HostedWorkspaceArtifactPersistInput extends HostedBundleArtifactSnapshotInput {
|
|
4
|
+
ref: HostedBundleArtifactRef;
|
|
5
|
+
}
|
|
6
|
+
export type HostedWorkspaceArtifactResolver = (input: HostedBundleArtifactRestoreInput) => Promise<Uint8Array | ArrayBuffer>;
|
|
7
|
+
export declare function snapshotHostedExecutionContext(input: {
|
|
8
|
+
artifactSink?: (input: HostedWorkspaceArtifactPersistInput) => Promise<void>;
|
|
9
|
+
operatorHomeRoot?: string | null;
|
|
10
|
+
preservedArtifacts?: readonly HostedBundleArtifactRestoreInput[];
|
|
11
|
+
vaultRoot: string;
|
|
12
|
+
}): Promise<{
|
|
13
|
+
bundle: Uint8Array;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function restoreHostedExecutionContext(input: {
|
|
16
|
+
artifactResolver?: HostedWorkspaceArtifactResolver;
|
|
17
|
+
bundle?: Uint8Array | ArrayBuffer | null;
|
|
18
|
+
shouldRestoreArtifact?: HostedBundleArtifactRestoreFilter;
|
|
19
|
+
workspaceRoot: string;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
assistantStateRoot: string;
|
|
22
|
+
operatorHomeRoot: string;
|
|
23
|
+
vaultRoot: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function materializeHostedExecutionArtifacts(input: {
|
|
26
|
+
artifactResolver: HostedWorkspaceArtifactResolver;
|
|
27
|
+
bundle?: Uint8Array | ArrayBuffer | null;
|
|
28
|
+
shouldRestoreArtifact?: HostedBundleArtifactRestoreFilter;
|
|
29
|
+
workspaceRoot: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
//# sourceMappingURL=hosted-bundles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-bundles.d.ts","sourceRoot":"","sources":["../src/hosted-bundles.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAIL,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACvC,MAAM,yBAAyB,CAAC;AAKjC,MAAM,WAAW,mCAAoC,SAAQ,iCAAiC;IAC5F,GAAG,EAAE,uBAAuB,CAAC;CAC9B;AAED,MAAM,MAAM,+BAA+B,GAAG,CAC5C,KAAK,EAAE,gCAAgC,KACpC,OAAO,CAAC,UAAU,GAAG,WAAW,CAAC,CAAC;AAEvC,wBAAsB,8BAA8B,CAAC,KAAK,EAAE;IAC1D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,SAAS,gCAAgC,EAAE,CAAC;IACjE,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC,CAsDD;AAED,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;IACnD,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IACzC,qBAAqB,CAAC,EAAE,iCAAiC,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC;IACV,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CA4BD;AAED,wBAAsB,mCAAmC,CAAC,KAAK,EAAE;IAC/D,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IACzC,qBAAqB,CAAC,EAAE,iCAAiC,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBhB"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { mkdir } from "node:fs/promises";
|
|
4
|
+
import { resolveAssistantStatePaths } from "./assistant-state.js";
|
|
5
|
+
import { describeVaultLocalStateRelativePath, isPortableVaultOperationalContainerRelativePath, RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH, RUNTIME_ROOT_RELATIVE_PATH, } from "./local-state-taxonomy.js";
|
|
6
|
+
import { materializeHostedBundleArtifacts, restoreHostedBundleRoots, snapshotHostedBundleRoots, } from "./hosted-bundle-node.js";
|
|
7
|
+
const WORKSPACE_OPERATOR_HOME_ROOT = "operator-home";
|
|
8
|
+
const RAW_ARTIFACT_EXTERNALIZE_THRESHOLD_BYTES = 256 * 1024;
|
|
9
|
+
export async function snapshotHostedExecutionContext(input) {
|
|
10
|
+
const vaultRoot = path.resolve(input.vaultRoot);
|
|
11
|
+
const assistantStateRoot = resolveAssistantStatePaths(vaultRoot).assistantStateRoot;
|
|
12
|
+
const artifactSink = input.artifactSink;
|
|
13
|
+
const vaultBundle = await snapshotHostedBundleRoots({
|
|
14
|
+
externalizeFile: artifactSink
|
|
15
|
+
? (() => {
|
|
16
|
+
const persistArtifact = artifactSink;
|
|
17
|
+
return async (artifact) => {
|
|
18
|
+
if (!shouldExternalizeWorkspaceArtifact(artifact)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const ref = createHostedWorkspaceArtifactRef(artifact.bytes);
|
|
22
|
+
await persistArtifact({
|
|
23
|
+
...artifact,
|
|
24
|
+
ref,
|
|
25
|
+
});
|
|
26
|
+
return ref;
|
|
27
|
+
};
|
|
28
|
+
})()
|
|
29
|
+
: undefined,
|
|
30
|
+
kind: "vault",
|
|
31
|
+
preservedArtifacts: input.preservedArtifacts,
|
|
32
|
+
roots: [
|
|
33
|
+
{
|
|
34
|
+
root: vaultRoot,
|
|
35
|
+
rootKey: "vault",
|
|
36
|
+
shouldIncludeRelativePath(relativePath) {
|
|
37
|
+
return shouldIncludeWorkspaceSnapshotVaultRelativePath(relativePath);
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
...(input.operatorHomeRoot
|
|
41
|
+
? [
|
|
42
|
+
{
|
|
43
|
+
optional: true,
|
|
44
|
+
root: path.resolve(input.operatorHomeRoot),
|
|
45
|
+
rootKey: WORKSPACE_OPERATOR_HOME_ROOT,
|
|
46
|
+
shouldIncludeRelativePath(relativePath) {
|
|
47
|
+
return shouldIncludeHostedOperatorHomeRelativePath(relativePath);
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
]
|
|
51
|
+
: []),
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
if (vaultBundle === null) {
|
|
55
|
+
throw new Error(`Hosted vault bundle could not be created for ${vaultRoot}.`);
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
bundle: vaultBundle,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export async function restoreHostedExecutionContext(input) {
|
|
62
|
+
const workspaceRoot = path.resolve(input.workspaceRoot);
|
|
63
|
+
const vaultRoot = path.join(workspaceRoot, "vault");
|
|
64
|
+
const assistantStateRoot = resolveAssistantStatePaths(vaultRoot).assistantStateRoot;
|
|
65
|
+
const operatorHomeRoot = path.join(workspaceRoot, "home");
|
|
66
|
+
await mkdir(vaultRoot, { recursive: true });
|
|
67
|
+
await mkdir(assistantStateRoot, { recursive: true });
|
|
68
|
+
await mkdir(operatorHomeRoot, { recursive: true });
|
|
69
|
+
if (input.bundle) {
|
|
70
|
+
await restoreHostedBundleRoots({
|
|
71
|
+
artifactResolver: input.artifactResolver,
|
|
72
|
+
bytes: input.bundle,
|
|
73
|
+
expectedKind: "vault",
|
|
74
|
+
roots: {
|
|
75
|
+
[WORKSPACE_OPERATOR_HOME_ROOT]: operatorHomeRoot,
|
|
76
|
+
vault: vaultRoot,
|
|
77
|
+
},
|
|
78
|
+
shouldRestoreArtifact: input.shouldRestoreArtifact,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
assistantStateRoot,
|
|
83
|
+
operatorHomeRoot,
|
|
84
|
+
vaultRoot,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export async function materializeHostedExecutionArtifacts(input) {
|
|
88
|
+
if (!input.bundle) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const workspaceRoot = path.resolve(input.workspaceRoot);
|
|
92
|
+
const vaultRoot = path.join(workspaceRoot, "vault");
|
|
93
|
+
const assistantStateRoot = resolveAssistantStatePaths(vaultRoot).assistantStateRoot;
|
|
94
|
+
const operatorHomeRoot = path.join(workspaceRoot, "home");
|
|
95
|
+
await mkdir(vaultRoot, { recursive: true });
|
|
96
|
+
await mkdir(assistantStateRoot, { recursive: true });
|
|
97
|
+
await mkdir(operatorHomeRoot, { recursive: true });
|
|
98
|
+
await materializeHostedBundleArtifacts({
|
|
99
|
+
artifactResolver: input.artifactResolver,
|
|
100
|
+
bytes: input.bundle,
|
|
101
|
+
expectedKind: "vault",
|
|
102
|
+
roots: {
|
|
103
|
+
[WORKSPACE_OPERATOR_HOME_ROOT]: operatorHomeRoot,
|
|
104
|
+
vault: vaultRoot,
|
|
105
|
+
},
|
|
106
|
+
shouldRestoreArtifact: input.shouldRestoreArtifact,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function shouldIncludeWorkspaceSnapshotVaultRelativePath(relativePath) {
|
|
110
|
+
const normalizedRelativePath = normalizeWorkspaceSnapshotRelativePath(relativePath);
|
|
111
|
+
const localStateDescriptor = describeVaultLocalStateRelativePath(normalizedRelativePath);
|
|
112
|
+
if (isVaultRuntimeRelativePath(normalizedRelativePath)) {
|
|
113
|
+
return (!isEnvironmentRelativePath(normalizedRelativePath)
|
|
114
|
+
&& (localStateDescriptor?.portability === "portable"
|
|
115
|
+
|| isPortableVaultOperationalContainerRelativePath(normalizedRelativePath)));
|
|
116
|
+
}
|
|
117
|
+
return (!isDotGitRelativePath(normalizedRelativePath)
|
|
118
|
+
&& !isEnvironmentRelativePath(normalizedRelativePath)
|
|
119
|
+
&& !isExportPackRelativePath(normalizedRelativePath)
|
|
120
|
+
&& (localStateDescriptor === null
|
|
121
|
+
|| localStateDescriptor.portability === "portable"));
|
|
122
|
+
}
|
|
123
|
+
function isVaultRuntimeRelativePath(relativePath) {
|
|
124
|
+
return relativePath === RUNTIME_ROOT_RELATIVE_PATH
|
|
125
|
+
|| relativePath.startsWith(`${RUNTIME_ROOT_RELATIVE_PATH}${path.posix.sep}`);
|
|
126
|
+
}
|
|
127
|
+
function isDotGitRelativePath(relativePath) {
|
|
128
|
+
return relativePath === ".git" || relativePath.startsWith(`.git${path.posix.sep}`);
|
|
129
|
+
}
|
|
130
|
+
function isEnvironmentRelativePath(relativePath) {
|
|
131
|
+
return (path.posix.basename(relativePath) === ".env"
|
|
132
|
+
|| path.posix.basename(relativePath).startsWith(".env."));
|
|
133
|
+
}
|
|
134
|
+
function isExportPackRelativePath(relativePath) {
|
|
135
|
+
return (relativePath === "exports/packs"
|
|
136
|
+
|| relativePath.startsWith(`exports/packs${path.posix.sep}`));
|
|
137
|
+
}
|
|
138
|
+
function normalizeWorkspaceSnapshotRelativePath(relativePath) {
|
|
139
|
+
return relativePath
|
|
140
|
+
.replace(/\\/gu, "/")
|
|
141
|
+
.replace(/\/+/gu, "/")
|
|
142
|
+
.replace(/^\.\//u, "")
|
|
143
|
+
.replace(/^\/+|\/+$/gu, "");
|
|
144
|
+
}
|
|
145
|
+
function shouldIncludeHostedOperatorHomeRelativePath(relativePath) {
|
|
146
|
+
return (relativePath === ".murph"
|
|
147
|
+
|| relativePath === ".murph/config.json");
|
|
148
|
+
}
|
|
149
|
+
function shouldExternalizeWorkspaceArtifact(input) {
|
|
150
|
+
if (input.root !== "vault" || !input.path.startsWith(`raw${path.posix.sep}`)) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
if (isDefinitelyBinaryRawArtifact(input.path)) {
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
if (input.bytes.byteLength < RAW_ARTIFACT_EXTERNALIZE_THRESHOLD_BYTES) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
return !isLikelyTextBytes(input.bytes);
|
|
160
|
+
}
|
|
161
|
+
function isDefinitelyBinaryRawArtifact(relativePath) {
|
|
162
|
+
const extension = path.posix.extname(relativePath).toLowerCase();
|
|
163
|
+
return BINARY_RAW_ARTIFACT_EXTENSIONS.has(extension);
|
|
164
|
+
}
|
|
165
|
+
function isLikelyTextBytes(bytes) {
|
|
166
|
+
const sample = bytes.subarray(0, Math.min(bytes.byteLength, 8 * 1024));
|
|
167
|
+
for (const value of sample) {
|
|
168
|
+
if (value === 0) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
try {
|
|
173
|
+
new TextDecoder("utf-8", { fatal: true }).decode(sample);
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function createHostedWorkspaceArtifactRef(bytes) {
|
|
181
|
+
return {
|
|
182
|
+
byteSize: bytes.byteLength,
|
|
183
|
+
sha256: createHash("sha256").update(bytes).digest("hex"),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const BINARY_RAW_ARTIFACT_EXTENSIONS = new Set([
|
|
187
|
+
".aac",
|
|
188
|
+
".avi",
|
|
189
|
+
".bmp",
|
|
190
|
+
".doc",
|
|
191
|
+
".docx",
|
|
192
|
+
".gif",
|
|
193
|
+
".heic",
|
|
194
|
+
".heif",
|
|
195
|
+
".jpeg",
|
|
196
|
+
".jpg",
|
|
197
|
+
".m4a",
|
|
198
|
+
".mov",
|
|
199
|
+
".mp3",
|
|
200
|
+
".mp4",
|
|
201
|
+
".ogg",
|
|
202
|
+
".opus",
|
|
203
|
+
".pdf",
|
|
204
|
+
".png",
|
|
205
|
+
".tif",
|
|
206
|
+
".tiff",
|
|
207
|
+
".wav",
|
|
208
|
+
".webm",
|
|
209
|
+
".webp",
|
|
210
|
+
]);
|
|
211
|
+
//# sourceMappingURL=hosted-bundles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-bundles.js","sourceRoot":"","sources":["../src/hosted-bundles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EA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+
export declare const HOSTED_EMAIL_THREAD_TARGET_PREFIX = "hostedmail:";
|
|
3
|
+
export interface HostedEmailThreadTarget {
|
|
4
|
+
cc: string[];
|
|
5
|
+
lastMessageId: string | null;
|
|
6
|
+
references: string[];
|
|
7
|
+
replyAliasAddress: string | null;
|
|
8
|
+
schema: typeof HOSTED_EMAIL_THREAD_TARGET_SCHEMA;
|
|
9
|
+
subject: string | null;
|
|
10
|
+
to: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare function createHostedEmailThreadTarget(input: {
|
|
13
|
+
cc?: ReadonlyArray<string> | null;
|
|
14
|
+
lastMessageId?: string | null;
|
|
15
|
+
references?: ReadonlyArray<string> | null;
|
|
16
|
+
replyAliasAddress?: string | null;
|
|
17
|
+
subject?: string | null;
|
|
18
|
+
to?: ReadonlyArray<string> | null;
|
|
19
|
+
}): HostedEmailThreadTarget;
|
|
20
|
+
export declare function serializeHostedEmailThreadTarget(input: HostedEmailThreadTarget | Parameters<typeof createHostedEmailThreadTarget>[0]): string;
|
|
21
|
+
export declare function parseHostedEmailThreadTarget(value: string | null | undefined): HostedEmailThreadTarget | null;
|
|
22
|
+
export declare function appendHostedEmailReferenceChain(input: {
|
|
23
|
+
lastMessageId?: string | null;
|
|
24
|
+
references?: ReadonlyArray<string> | null;
|
|
25
|
+
}): string[];
|
|
26
|
+
export declare function ensureHostedEmailReplySubject(subject: string | null | undefined, fallback?: string): string;
|
|
27
|
+
export declare function normalizeHostedEmailAddress(value: string | null | undefined): string | null;
|
|
28
|
+
export declare function normalizeHostedEmailAddressList(input: ReadonlyArray<string | null | undefined>): string[];
|
|
29
|
+
export declare function resolveHostedEmailInboundSenderAddress(input: {
|
|
30
|
+
envelopeFrom?: string | null;
|
|
31
|
+
hasRepeatedHeaderFrom?: boolean;
|
|
32
|
+
headerFrom?: string | null;
|
|
33
|
+
}): string | null;
|
|
34
|
+
export declare function resolveHostedEmailDirectSenderLookupAddress(input: {
|
|
35
|
+
envelopeFrom?: string | null;
|
|
36
|
+
hasRepeatedHeaderFrom?: boolean;
|
|
37
|
+
headerFrom?: string | null;
|
|
38
|
+
}): string | null;
|
|
39
|
+
export declare function resolveHostedEmailAuthorizedSenderAddresses(input: {
|
|
40
|
+
verifiedEmailAddress?: string | null;
|
|
41
|
+
}): string[];
|
|
42
|
+
export declare function isHostedEmailInboundSenderAuthorized(input: {
|
|
43
|
+
envelopeFrom?: string | null;
|
|
44
|
+
hasRepeatedHeaderFrom?: boolean;
|
|
45
|
+
headerFrom?: string | null;
|
|
46
|
+
verifiedEmailAddress?: string | null;
|
|
47
|
+
}): boolean;
|
|
48
|
+
export declare function normalizeHostedEmailMessageId(value: string | null | undefined): string | null;
|
|
49
|
+
export declare function normalizeHostedEmailSubject(value: string | null | undefined): string | null;
|
|
50
|
+
//# sourceMappingURL=hosted-email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-email.d.ts","sourceRoot":"","sources":["../src/hosted-email.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,wCAAwC,CAAC;AACvF,eAAO,MAAM,iCAAiC,gBAAgB,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,OAAO,iCAAiC,CAAC;IACjD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,EAAE,EAAE,MAAM,EAAE,CAAC;CACd;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,EAAE,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAA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