@murphai/hosted-execution 0.1.15 → 0.1.17
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,308 @@
|
|
|
1
|
+
const HOSTED_USER_ROOT_KEY_WRAP_SALT = new TextEncoder().encode("murph.cloudflare.hosted.user-root-key.wrap.v1");
|
|
2
|
+
const HOSTED_USER_ROOT_KEY_WRAP_SCOPE = "root-key-recipient";
|
|
3
|
+
const HOSTED_USER_ROOT_KEY_BYTES = 32;
|
|
4
|
+
export const HOSTED_USER_ROOT_KEY_ENVELOPE_SCHEMA = "murph.hosted-user-root-key-envelope.v2";
|
|
5
|
+
export const HOSTED_USER_ROOT_KEY_RECIPIENT_KINDS = [
|
|
6
|
+
"automation",
|
|
7
|
+
"user-unlock",
|
|
8
|
+
"recovery",
|
|
9
|
+
"tee-automation",
|
|
10
|
+
];
|
|
11
|
+
export const HOSTED_USER_MANAGED_ROOT_KEY_RECIPIENT_KINDS = [
|
|
12
|
+
"user-unlock",
|
|
13
|
+
"recovery",
|
|
14
|
+
];
|
|
15
|
+
export async function generateHostedUserRecipientKeyPair() {
|
|
16
|
+
const keyPair = await crypto.subtle.generateKey({
|
|
17
|
+
name: "ECDH",
|
|
18
|
+
namedCurve: "P-256",
|
|
19
|
+
}, true, ["deriveBits"]);
|
|
20
|
+
return {
|
|
21
|
+
privateKeyJwk: parseHostedUserRecipientPrivateKeyJwk(await crypto.subtle.exportKey("jwk", keyPair.privateKey), "Hosted user recipient private key"),
|
|
22
|
+
publicKeyJwk: parseHostedUserRecipientPublicKeyJwk(await crypto.subtle.exportKey("jwk", keyPair.publicKey), "Hosted user recipient public key"),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export async function createHostedUserRootKeyEnvelope(input) {
|
|
26
|
+
const rootKey = requireRootKeyBytes(input.rootKey ?? crypto.getRandomValues(new Uint8Array(HOSTED_USER_ROOT_KEY_BYTES)), "Hosted user root key");
|
|
27
|
+
const nowIso = input.createdAt ?? new Date().toISOString();
|
|
28
|
+
const rootKeyId = input.rootKeyId ?? createHostedUserRootKeyId();
|
|
29
|
+
return {
|
|
30
|
+
envelope: {
|
|
31
|
+
createdAt: nowIso,
|
|
32
|
+
recipients: await Promise.all(input.recipients.map((recipient) => wrapHostedUserRootKeyRecipient({
|
|
33
|
+
recipient,
|
|
34
|
+
rootKey,
|
|
35
|
+
rootKeyId,
|
|
36
|
+
userId: input.userId,
|
|
37
|
+
}))),
|
|
38
|
+
rootKeyId,
|
|
39
|
+
schema: HOSTED_USER_ROOT_KEY_ENVELOPE_SCHEMA,
|
|
40
|
+
updatedAt: nowIso,
|
|
41
|
+
userId: input.userId,
|
|
42
|
+
},
|
|
43
|
+
rootKey,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export async function wrapHostedUserRootKeyRecipient(input) {
|
|
47
|
+
const rootKey = requireRootKeyBytes(input.rootKey, "Hosted user root key");
|
|
48
|
+
const recipientPublicKey = await importHostedUserRecipientPublicKey(input.recipient.publicKeyJwk);
|
|
49
|
+
const ephemeralKeyPair = await crypto.subtle.generateKey({
|
|
50
|
+
name: "ECDH",
|
|
51
|
+
namedCurve: "P-256",
|
|
52
|
+
}, true, ["deriveBits"]);
|
|
53
|
+
const wrappingKey = await deriveHostedUserRecipientWrappingKey({
|
|
54
|
+
counterpartyPublicKey: recipientPublicKey,
|
|
55
|
+
privateKey: ephemeralKeyPair.privateKey,
|
|
56
|
+
recipient: input.recipient,
|
|
57
|
+
rootKeyId: input.rootKeyId,
|
|
58
|
+
userId: input.userId,
|
|
59
|
+
});
|
|
60
|
+
const iv = crypto.getRandomValues(new Uint8Array(12));
|
|
61
|
+
const cryptoKey = await crypto.subtle.importKey("raw", toArrayBuffer(wrappingKey), "AES-GCM", false, ["encrypt"]);
|
|
62
|
+
const ciphertext = await crypto.subtle.encrypt({
|
|
63
|
+
additionalData: toArrayBuffer(buildHostedUserRootKeyRecipientAad({
|
|
64
|
+
keyId: input.recipient.keyId,
|
|
65
|
+
recipientKind: input.recipient.kind,
|
|
66
|
+
rootKeyId: input.rootKeyId,
|
|
67
|
+
userId: input.userId,
|
|
68
|
+
})),
|
|
69
|
+
iv: toArrayBuffer(iv),
|
|
70
|
+
name: "AES-GCM",
|
|
71
|
+
}, cryptoKey, toArrayBuffer(rootKey));
|
|
72
|
+
return {
|
|
73
|
+
ciphertext: encodeBase64(new Uint8Array(ciphertext)),
|
|
74
|
+
ephemeralPublicKeyJwk: parseHostedUserRecipientPublicKeyJwk(await crypto.subtle.exportKey("jwk", ephemeralKeyPair.publicKey), "Hosted wrapped root key recipient ephemeral public key"),
|
|
75
|
+
iv: encodeBase64(iv),
|
|
76
|
+
keyId: input.recipient.keyId,
|
|
77
|
+
kind: input.recipient.kind,
|
|
78
|
+
...(input.recipient.metadata ? { metadata: input.recipient.metadata } : {}),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export async function unwrapHostedUserRootKeyRecipient(input) {
|
|
82
|
+
const recipientPrivateKey = await importHostedUserRecipientPrivateKey(input.recipientPrivateKeyJwk);
|
|
83
|
+
const ephemeralPublicKey = await importHostedUserRecipientPublicKey(input.recipient.ephemeralPublicKeyJwk);
|
|
84
|
+
const wrappingKey = await deriveHostedUserRecipientWrappingKey({
|
|
85
|
+
counterpartyPublicKey: ephemeralPublicKey,
|
|
86
|
+
privateKey: recipientPrivateKey,
|
|
87
|
+
recipient: {
|
|
88
|
+
keyId: input.recipient.keyId,
|
|
89
|
+
kind: input.recipient.kind,
|
|
90
|
+
},
|
|
91
|
+
rootKeyId: input.envelope.rootKeyId,
|
|
92
|
+
userId: input.envelope.userId,
|
|
93
|
+
});
|
|
94
|
+
const cryptoKey = await crypto.subtle.importKey("raw", toArrayBuffer(wrappingKey), "AES-GCM", false, ["decrypt"]);
|
|
95
|
+
const plaintext = await crypto.subtle.decrypt({
|
|
96
|
+
additionalData: toArrayBuffer(buildHostedUserRootKeyRecipientAad({
|
|
97
|
+
keyId: input.recipient.keyId,
|
|
98
|
+
recipientKind: input.recipient.kind,
|
|
99
|
+
rootKeyId: input.envelope.rootKeyId,
|
|
100
|
+
userId: input.envelope.userId,
|
|
101
|
+
})),
|
|
102
|
+
iv: toArrayBuffer(decodeBase64(input.recipient.iv)),
|
|
103
|
+
name: "AES-GCM",
|
|
104
|
+
}, cryptoKey, toArrayBuffer(decodeBase64(input.recipient.ciphertext)));
|
|
105
|
+
return requireRootKeyBytes(new Uint8Array(plaintext), "Hosted user root key");
|
|
106
|
+
}
|
|
107
|
+
export async function unwrapHostedUserRootKeyForKind(input) {
|
|
108
|
+
const recipient = findHostedWrappedRootKeyRecipient(input.envelope, input.kind);
|
|
109
|
+
if (!recipient) {
|
|
110
|
+
throw new Error(`Hosted user root key envelope is missing a ${input.kind} recipient.`);
|
|
111
|
+
}
|
|
112
|
+
return unwrapHostedUserRootKeyRecipient({
|
|
113
|
+
envelope: input.envelope,
|
|
114
|
+
recipient,
|
|
115
|
+
recipientPrivateKeyJwk: input.recipientPrivateKeyJwk,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
export function buildHostedUserRootKeyRecipientAad(input) {
|
|
119
|
+
return new TextEncoder().encode(JSON.stringify({
|
|
120
|
+
keyId: input.keyId,
|
|
121
|
+
recipientKind: input.recipientKind,
|
|
122
|
+
rootKeyId: input.rootKeyId,
|
|
123
|
+
scope: HOSTED_USER_ROOT_KEY_WRAP_SCOPE,
|
|
124
|
+
userId: input.userId,
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
export function createHostedUserRootKeyId() {
|
|
128
|
+
return `urk:${crypto.randomUUID()}`;
|
|
129
|
+
}
|
|
130
|
+
export function parseHostedUserRootKeyEnvelope(value, label = "Hosted user root key envelope") {
|
|
131
|
+
const record = requireRecord(value, label);
|
|
132
|
+
const recipients = readArray(record.recipients, `${label}.recipients`).map((entry, index) => parseHostedWrappedRootKeyRecipient(entry, `${label}.recipients[${index}]`));
|
|
133
|
+
assertHostedUserRootKeyEnvelopeUniqueRecipientKinds(recipients, `${label}.recipients`);
|
|
134
|
+
return {
|
|
135
|
+
createdAt: requireString(record.createdAt, `${label}.createdAt`),
|
|
136
|
+
recipients,
|
|
137
|
+
rootKeyId: requireString(record.rootKeyId, `${label}.rootKeyId`),
|
|
138
|
+
schema: requireEnvelopeSchema(record.schema, `${label}.schema`),
|
|
139
|
+
updatedAt: requireString(record.updatedAt, `${label}.updatedAt`),
|
|
140
|
+
userId: requireString(record.userId, `${label}.userId`),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function assertHostedUserRootKeyEnvelopeUniqueRecipientKinds(recipients, label) {
|
|
144
|
+
const seen = new Set();
|
|
145
|
+
for (const recipient of recipients) {
|
|
146
|
+
if (seen.has(recipient.kind)) {
|
|
147
|
+
throw new TypeError(`${label} contains duplicate ${recipient.kind} recipients.`);
|
|
148
|
+
}
|
|
149
|
+
seen.add(recipient.kind);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export function parseHostedWrappedRootKeyRecipient(value, label = "Hosted wrapped root key recipient") {
|
|
153
|
+
const record = requireRecord(value, label);
|
|
154
|
+
return {
|
|
155
|
+
ciphertext: requireString(record.ciphertext, `${label}.ciphertext`),
|
|
156
|
+
ephemeralPublicKeyJwk: parseHostedUserRecipientPublicKeyJwk(record.ephemeralPublicKeyJwk, `${label}.ephemeralPublicKeyJwk`),
|
|
157
|
+
iv: requireString(record.iv, `${label}.iv`),
|
|
158
|
+
keyId: requireString(record.keyId, `${label}.keyId`),
|
|
159
|
+
kind: requireRecipientKind(record.kind, `${label}.kind`),
|
|
160
|
+
...(record.metadata === undefined
|
|
161
|
+
? {}
|
|
162
|
+
: { metadata: parseMetadataRecord(record.metadata, `${label}.metadata`) }),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export function parseHostedUserRecipientPublicKeyJwk(value, label = "Hosted user recipient public key") {
|
|
166
|
+
const record = requireRecord(value, label);
|
|
167
|
+
const kty = requireString(record.kty, `${label}.kty`);
|
|
168
|
+
const crv = requireString(record.crv, `${label}.crv`);
|
|
169
|
+
if (kty !== "EC" || crv !== "P-256") {
|
|
170
|
+
throw new TypeError(`${label} must be an EC P-256 public JWK.`);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
crv: "P-256",
|
|
174
|
+
...(record.ext === undefined ? {} : { ext: requireBoolean(record.ext, `${label}.ext`) }),
|
|
175
|
+
...(record.key_ops === undefined ? {} : {
|
|
176
|
+
key_ops: readArray(record.key_ops, `${label}.key_ops`).map((entry, index) => requireString(entry, `${label}.key_ops[${index}]`)),
|
|
177
|
+
}),
|
|
178
|
+
kty: "EC",
|
|
179
|
+
x: requireString(record.x, `${label}.x`),
|
|
180
|
+
y: requireString(record.y, `${label}.y`),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
export function parseHostedUserRecipientPrivateKeyJwk(value, label = "Hosted user recipient private key") {
|
|
184
|
+
const publicKey = parseHostedUserRecipientPublicKeyJwk(value, label);
|
|
185
|
+
const record = requireRecord(value, label);
|
|
186
|
+
return {
|
|
187
|
+
...publicKey,
|
|
188
|
+
d: requireString(record.d, `${label}.d`),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export function findHostedWrappedRootKeyRecipient(envelope, kind) {
|
|
192
|
+
return envelope.recipients.find((recipient) => recipient.kind === kind) ?? null;
|
|
193
|
+
}
|
|
194
|
+
export function isHostedUserManagedRootKeyRecipientKind(value) {
|
|
195
|
+
return value === "user-unlock" || value === "recovery";
|
|
196
|
+
}
|
|
197
|
+
async function deriveHostedUserRecipientWrappingKey(input) {
|
|
198
|
+
const sharedSecret = await crypto.subtle.deriveBits({
|
|
199
|
+
name: "ECDH",
|
|
200
|
+
public: input.counterpartyPublicKey,
|
|
201
|
+
}, input.privateKey, 256);
|
|
202
|
+
const hkdfKey = await crypto.subtle.importKey("raw", sharedSecret, "HKDF", false, ["deriveBits"]);
|
|
203
|
+
const derived = await crypto.subtle.deriveBits({
|
|
204
|
+
name: "HKDF",
|
|
205
|
+
hash: "SHA-256",
|
|
206
|
+
info: toArrayBuffer(buildHostedUserRootKeyRecipientAad({
|
|
207
|
+
keyId: input.recipient.keyId,
|
|
208
|
+
recipientKind: input.recipient.kind,
|
|
209
|
+
rootKeyId: input.rootKeyId,
|
|
210
|
+
userId: input.userId,
|
|
211
|
+
})),
|
|
212
|
+
salt: toArrayBuffer(HOSTED_USER_ROOT_KEY_WRAP_SALT),
|
|
213
|
+
}, hkdfKey, 256);
|
|
214
|
+
return new Uint8Array(derived);
|
|
215
|
+
}
|
|
216
|
+
async function importHostedUserRecipientPublicKey(value) {
|
|
217
|
+
return crypto.subtle.importKey("jwk", value, {
|
|
218
|
+
name: "ECDH",
|
|
219
|
+
namedCurve: "P-256",
|
|
220
|
+
}, false, []);
|
|
221
|
+
}
|
|
222
|
+
async function importHostedUserRecipientPrivateKey(value) {
|
|
223
|
+
return crypto.subtle.importKey("jwk", value, {
|
|
224
|
+
name: "ECDH",
|
|
225
|
+
namedCurve: "P-256",
|
|
226
|
+
}, false, ["deriveBits"]);
|
|
227
|
+
}
|
|
228
|
+
function requireEnvelopeSchema(value, label) {
|
|
229
|
+
const schema = requireString(value, label);
|
|
230
|
+
if (schema !== HOSTED_USER_ROOT_KEY_ENVELOPE_SCHEMA) {
|
|
231
|
+
throw new TypeError(`${label} must be ${HOSTED_USER_ROOT_KEY_ENVELOPE_SCHEMA}.`);
|
|
232
|
+
}
|
|
233
|
+
return schema;
|
|
234
|
+
}
|
|
235
|
+
function requireRecipientKind(value, label) {
|
|
236
|
+
const kind = requireString(value, label);
|
|
237
|
+
if (kind === "automation"
|
|
238
|
+
|| kind === "user-unlock"
|
|
239
|
+
|| kind === "recovery"
|
|
240
|
+
|| kind === "tee-automation") {
|
|
241
|
+
return kind;
|
|
242
|
+
}
|
|
243
|
+
throw new TypeError(`${label} must be a supported root key recipient kind.`);
|
|
244
|
+
}
|
|
245
|
+
function parseMetadataRecord(value, label) {
|
|
246
|
+
const record = requireRecord(value, label);
|
|
247
|
+
const result = {};
|
|
248
|
+
for (const [key, entry] of Object.entries(record)) {
|
|
249
|
+
if (entry === null
|
|
250
|
+
|| typeof entry === "string"
|
|
251
|
+
|| typeof entry === "number"
|
|
252
|
+
|| typeof entry === "boolean") {
|
|
253
|
+
result[key] = entry;
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
throw new TypeError(`${label}.${key} must be a scalar JSON value.`);
|
|
257
|
+
}
|
|
258
|
+
return result;
|
|
259
|
+
}
|
|
260
|
+
function requireRecord(value, label) {
|
|
261
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
262
|
+
throw new TypeError(`${label} must be an object.`);
|
|
263
|
+
}
|
|
264
|
+
return value;
|
|
265
|
+
}
|
|
266
|
+
function requireString(value, label) {
|
|
267
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
268
|
+
throw new TypeError(`${label} must be a non-empty string.`);
|
|
269
|
+
}
|
|
270
|
+
return value;
|
|
271
|
+
}
|
|
272
|
+
function requireBoolean(value, label) {
|
|
273
|
+
if (typeof value !== "boolean") {
|
|
274
|
+
throw new TypeError(`${label} must be a boolean.`);
|
|
275
|
+
}
|
|
276
|
+
return value;
|
|
277
|
+
}
|
|
278
|
+
function readArray(value, label) {
|
|
279
|
+
if (!Array.isArray(value)) {
|
|
280
|
+
throw new TypeError(`${label} must be an array.`);
|
|
281
|
+
}
|
|
282
|
+
return value;
|
|
283
|
+
}
|
|
284
|
+
function requireRootKeyBytes(value, label) {
|
|
285
|
+
if (value.byteLength !== HOSTED_USER_ROOT_KEY_BYTES) {
|
|
286
|
+
throw new TypeError(`${label} must be ${HOSTED_USER_ROOT_KEY_BYTES} bytes.`);
|
|
287
|
+
}
|
|
288
|
+
return value;
|
|
289
|
+
}
|
|
290
|
+
function toArrayBuffer(value) {
|
|
291
|
+
return value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength);
|
|
292
|
+
}
|
|
293
|
+
function encodeBase64(value) {
|
|
294
|
+
let binary = "";
|
|
295
|
+
for (const byte of value) {
|
|
296
|
+
binary += String.fromCharCode(byte);
|
|
297
|
+
}
|
|
298
|
+
return btoa(binary);
|
|
299
|
+
}
|
|
300
|
+
function decodeBase64(value) {
|
|
301
|
+
const binary = atob(value);
|
|
302
|
+
const bytes = new Uint8Array(binary.length);
|
|
303
|
+
for (let index = 0; index < binary.length; index += 1) {
|
|
304
|
+
bytes[index] = binary.charCodeAt(index);
|
|
305
|
+
}
|
|
306
|
+
return bytes;
|
|
307
|
+
}
|
|
308
|
+
//# sourceMappingURL=hosted-user-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-user-keys.js","sourceRoot":"","sources":["../src/hosted-user-keys.ts"],"names":[],"mappings":"AAAA,MAAM,8BAA8B,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAC7D,+CAA+C,CAChD,CAAC;AACF,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AAC7D,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC,MAAM,CAAC,MAAM,oCAAoC,GAAG,wCAAwC,CAAC;AAC7F,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,YAAY;IACZ,aAAa;IACb,UAAU;IACV,gBAAgB;CACR,CAAC;AACX,MAAM,CAAC,MAAM,4CAA4C,GAAG;IAC1D,aAAa;IACb,UAAU;CACF,CAAC;AA8CX,MAAM,CAAC,KAAK,UAAU,kCAAkC;IAItD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAC7C;QACE,IAAI,EAAE,MAAM;QACZ,UAAU,EAAE,OAAO;KACpB,EACD,IAAI,EACJ,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO;QACL,aAAa,EAAE,qCAAqC,CAClD,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,EACxD,mCAAmC,CACpC;QACD,YAAY,EAAE,oCAAoC,CAChD,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,EACvD,kCAAkC,CACnC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,K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GAAG,KAAK,CAAC,UAAU,CAAgB,CAAC;AAClG,CAAC;AAED,SAAS,YAAY,CAAC,KAAiB;IACrC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACtD,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-local-state-descriptors.d.ts","sourceRoot":"","sources":["../src/inbox-local-state-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,qCAAqC,CAAC;AAmB7C,eAAO,MAAM,0BAA0B,EAAE,SAAS,6BAA6B,EAgBrE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineLocalStateFileDescriptor, } from "./local-state-descriptor-helpers.js";
|
|
2
|
+
const INBOX_OWNER = "inbox-runtime";
|
|
3
|
+
function defineInboxStateFile(relativePath, portability, description) {
|
|
4
|
+
return defineLocalStateFileDescriptor({
|
|
5
|
+
classification: "operational",
|
|
6
|
+
description,
|
|
7
|
+
owner: INBOX_OWNER,
|
|
8
|
+
portability,
|
|
9
|
+
rebuildable: false,
|
|
10
|
+
relativePath,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export const inboxLocalStateDescriptors = [
|
|
14
|
+
defineInboxStateFile(".runtime/operations/inbox/config.json", "machine_local", "Inbox daemon and connector configuration is machine-local operational state."),
|
|
15
|
+
defineInboxStateFile(".runtime/operations/inbox/state.json", "machine_local", "Inbox daemon state is machine-local operational residue."),
|
|
16
|
+
defineInboxStateFile(".runtime/operations/inbox/promotions.json", "portable", "Inbox promotion ledger must travel with recovery and hosted idempotency context."),
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=inbox-local-state-descriptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-local-state-descriptors.js","sourceRoot":"","sources":["../src/inbox-local-state-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,GAE/B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,GAAG,eAAe,CAAC;AAEpC,SAAS,oBAAoB,CAC3B,YAAoB,EACpB,WAAyC,EACzC,WAAmB;IAEnB,OAAO,8BAA8B,CAAC;QACpC,cAAc,EAAE,aAAa;QAC7B,WAAW;QACX,KAAK,EAAE,WAAW;QAClB,WAAW;QACX,WAAW,EAAE,KAAK;QAClB,YAAY;KACb,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAA6C;IAClF,oBAAoB,CAClB,uCAAuC,EACvC,eAAe,EACf,8EAA8E,CAC/E;IACD,oBAAoB,CAClB,sCAAsC,EACtC,eAAe,EACf,0DAA0D,CAC3D;IACD,oBAAoB,CAClB,2CAA2C,EAC3C,UAAU,EACV,kFAAkF,CACnF;CACO,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { parseHostedExecutionBundleRef, sameHostedBundlePayloadRef, sameHostedExecutionBundleRef, serializeHostedExecutionBundleRef, type HostedExecutionBundleKind, type HostedExecutionBundleRef, type HostedExecutionBundleRefIdentity, } from "./hosted-bundle-ref.ts";
|
|
2
|
+
export * from "./hosted-email.ts";
|
|
3
|
+
export * from "./hosted-user-keys.ts";
|
|
4
|
+
export * from "./hosted-user-env.ts";
|
|
5
|
+
export * from "./loopback-control-plane.ts";
|
|
6
|
+
export * from "./ulid.ts";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,GACtC,MAAM,wBAAwB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { parseHostedExecutionBundleRef, sameHostedBundlePayloadRef, sameHostedExecutionBundleRef, serializeHostedExecutionBundleRef, } from "./hosted-bundle-ref.js";
|
|
2
|
+
export * from "./hosted-email.js";
|
|
3
|
+
export * from "./hosted-user-keys.js";
|
|
4
|
+
export * from "./hosted-user-env.js";
|
|
5
|
+
export * from "./loopback-control-plane.js";
|
|
6
|
+
export * from "./ulid.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,GAIlC,MAAM,wBAAwB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type VaultLocalStateClassification = "operational" | "projection" | "ephemeral";
|
|
2
|
+
export type VaultLocalStatePortability = "portable" | "machine_local";
|
|
3
|
+
export type VaultLocalStateDescriptorMatchKind = "file" | "directory" | "subtree" | "prefix";
|
|
4
|
+
export interface VaultLocalStatePathDescriptor {
|
|
5
|
+
classification: VaultLocalStateClassification;
|
|
6
|
+
description: string;
|
|
7
|
+
matchKind: VaultLocalStateDescriptorMatchKind;
|
|
8
|
+
owner: string;
|
|
9
|
+
portability: VaultLocalStatePortability;
|
|
10
|
+
rebuildable: boolean;
|
|
11
|
+
relativePath: string;
|
|
12
|
+
}
|
|
13
|
+
interface DefineLocalStateDescriptorInput {
|
|
14
|
+
classification: VaultLocalStateClassification;
|
|
15
|
+
description: string;
|
|
16
|
+
matchKind: VaultLocalStateDescriptorMatchKind;
|
|
17
|
+
owner: string;
|
|
18
|
+
portability: VaultLocalStatePortability;
|
|
19
|
+
rebuildable: boolean;
|
|
20
|
+
relativePath: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function normalizeVaultLocalStateRelativePath(value: string): string;
|
|
23
|
+
export declare function defineLocalStateFileDescriptor(input: Omit<DefineLocalStateDescriptorInput, "matchKind">): VaultLocalStatePathDescriptor;
|
|
24
|
+
export declare function defineLocalStateDirectoryDescriptor(input: Omit<DefineLocalStateDescriptorInput, "matchKind">): VaultLocalStatePathDescriptor;
|
|
25
|
+
export declare function defineLocalStateSubtreeDescriptor(input: Omit<DefineLocalStateDescriptorInput, "matchKind">): VaultLocalStatePathDescriptor;
|
|
26
|
+
export declare function defineLocalStatePrefixDescriptor(input: Omit<DefineLocalStateDescriptorInput, "matchKind">): VaultLocalStatePathDescriptor;
|
|
27
|
+
export declare function descriptorMatchesRelativePath(relativePath: string, descriptor: VaultLocalStatePathDescriptor): boolean;
|
|
28
|
+
export declare function findMostSpecificMatchingLocalStateDescriptor(relativePath: string, descriptors: readonly VaultLocalStatePathDescriptor[], classification?: VaultLocalStateClassification): VaultLocalStatePathDescriptor | null;
|
|
29
|
+
export declare function isPortableLocalStateContainerRelativePath(relativePath: string, descriptors: readonly VaultLocalStatePathDescriptor[], classification?: VaultLocalStateClassification): boolean;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=local-state-descriptor-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-descriptor-helpers.d.ts","sourceRoot":"","sources":["../src/local-state-descriptor-helpers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC;AACvF,MAAM,MAAM,0BAA0B,GAAG,UAAU,GAAG,eAAe,CAAC;AACtE,MAAM,MAAM,kCAAkC,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7F,MAAM,WAAW,6BAA6B;IAC5C,cAAc,EAAE,6BAA6B,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,kCAAkC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,0BAA0B,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,+BAA+B;IACvC,cAAc,EAAE,6BAA6B,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,kCAAkC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,0BAA0B,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM1E;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,CAAC,GACxD,6BAA6B,CAK/B;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,CAAC,GACxD,6BAA6B,CAK/B;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,CAAC,GACxD,6BAA6B,CAK/B;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,CAAC,GACxD,6BAA6B,CAK/B;AAED,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAYT;AAED,wBAAgB,4CAA4C,CAC1D,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,SAAS,6BAA6B,EAAE,EACrD,cAAc,CAAC,EAAE,6BAA6B,GAC7C,6BAA6B,GAAG,IAAI,CAmBtC;AAED,wBAAgB,yCAAyC,CACvD,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,SAAS,6BAA6B,EAAE,EACrD,cAAc,CAAC,EAAE,6BAA6B,GAC7C,OAAO,CAkBT"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
export function normalizeVaultLocalStateRelativePath(value) {
|
|
3
|
+
return value
|
|
4
|
+
.replace(/\\/gu, "/")
|
|
5
|
+
.replace(/\/+/gu, "/")
|
|
6
|
+
.replace(/^\.\//u, "")
|
|
7
|
+
.replace(/^\/+|\/+$/gu, "");
|
|
8
|
+
}
|
|
9
|
+
export function defineLocalStateFileDescriptor(input) {
|
|
10
|
+
return defineLocalStateDescriptor({
|
|
11
|
+
...input,
|
|
12
|
+
matchKind: "file",
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export function defineLocalStateDirectoryDescriptor(input) {
|
|
16
|
+
return defineLocalStateDescriptor({
|
|
17
|
+
...input,
|
|
18
|
+
matchKind: "directory",
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export function defineLocalStateSubtreeDescriptor(input) {
|
|
22
|
+
return defineLocalStateDescriptor({
|
|
23
|
+
...input,
|
|
24
|
+
matchKind: "subtree",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function defineLocalStatePrefixDescriptor(input) {
|
|
28
|
+
return defineLocalStateDescriptor({
|
|
29
|
+
...input,
|
|
30
|
+
matchKind: "prefix",
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export function descriptorMatchesRelativePath(relativePath, descriptor) {
|
|
34
|
+
const normalized = normalizeVaultLocalStateRelativePath(relativePath);
|
|
35
|
+
switch (descriptor.matchKind) {
|
|
36
|
+
case "file":
|
|
37
|
+
case "directory":
|
|
38
|
+
return normalized === descriptor.relativePath;
|
|
39
|
+
case "subtree":
|
|
40
|
+
return hasPathPrefix(normalized, descriptor.relativePath);
|
|
41
|
+
case "prefix":
|
|
42
|
+
return normalized === descriptor.relativePath || normalized.startsWith(descriptor.relativePath);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function findMostSpecificMatchingLocalStateDescriptor(relativePath, descriptors, classification) {
|
|
46
|
+
const normalized = normalizeVaultLocalStateRelativePath(relativePath);
|
|
47
|
+
let bestMatch = null;
|
|
48
|
+
for (const descriptor of descriptors) {
|
|
49
|
+
if (classification && descriptor.classification !== classification) {
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (!descriptorMatchesRelativePath(normalized, descriptor)) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (!bestMatch || compareDescriptorSpecificity(descriptor, bestMatch) > 0) {
|
|
56
|
+
bestMatch = descriptor;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return bestMatch;
|
|
60
|
+
}
|
|
61
|
+
export function isPortableLocalStateContainerRelativePath(relativePath, descriptors, classification) {
|
|
62
|
+
const normalized = normalizeVaultLocalStateRelativePath(relativePath);
|
|
63
|
+
for (const descriptor of descriptors) {
|
|
64
|
+
if (descriptor.portability !== "portable") {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if (classification && descriptor.classification !== classification) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (descriptorProvidesPortableContainer(normalized, descriptor)) {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
function defineLocalStateDescriptor(input) {
|
|
77
|
+
return {
|
|
78
|
+
...input,
|
|
79
|
+
relativePath: normalizeVaultLocalStateRelativePath(input.relativePath),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function compareDescriptorSpecificity(left, right) {
|
|
83
|
+
const pathLengthDelta = left.relativePath.length - right.relativePath.length;
|
|
84
|
+
if (pathLengthDelta !== 0) {
|
|
85
|
+
return pathLengthDelta;
|
|
86
|
+
}
|
|
87
|
+
return descriptorMatchPriority(left.matchKind) - descriptorMatchPriority(right.matchKind);
|
|
88
|
+
}
|
|
89
|
+
function descriptorMatchPriority(matchKind) {
|
|
90
|
+
switch (matchKind) {
|
|
91
|
+
case "file":
|
|
92
|
+
return 4;
|
|
93
|
+
case "directory":
|
|
94
|
+
return 3;
|
|
95
|
+
case "subtree":
|
|
96
|
+
return 2;
|
|
97
|
+
case "prefix":
|
|
98
|
+
return 1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function descriptorProvidesPortableContainer(relativePath, descriptor) {
|
|
102
|
+
switch (descriptor.matchKind) {
|
|
103
|
+
case "file":
|
|
104
|
+
return isStrictAncestorPath(relativePath, descriptor.relativePath);
|
|
105
|
+
case "directory":
|
|
106
|
+
case "subtree":
|
|
107
|
+
return hasPathPrefix(descriptor.relativePath, relativePath);
|
|
108
|
+
case "prefix": {
|
|
109
|
+
const containerRoot = normalizeVaultLocalStateRelativePath(path.posix.dirname(descriptor.relativePath));
|
|
110
|
+
return containerRoot.length > 0 && hasPathPrefix(containerRoot, relativePath);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function hasPathPrefix(relativePath, prefix) {
|
|
115
|
+
return relativePath === prefix || relativePath.startsWith(`${prefix}${path.posix.sep}`);
|
|
116
|
+
}
|
|
117
|
+
function isStrictAncestorPath(ancestorPath, targetPath) {
|
|
118
|
+
return ancestorPath !== targetPath && targetPath.startsWith(`${ancestorPath}${path.posix.sep}`);
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=local-state-descriptor-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-descriptor-helpers.js","sourceRoot":"","sources":["../src/local-state-descriptor-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AA0B7B,MAAM,UAAU,oCAAoC,CAAC,KAAa;IAChE,OAAO,KAAK;SACT,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;SACrB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;SACrB,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,KAAyD;IAEzD,OAAO,0BAA0B,CAAC;QAChC,GAAG,KAAK;QACR,SAAS,EAAE,MAAM;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAyD;IAEzD,OAAO,0BAA0B,CAAC;QAChC,GAAG,KAAK;QACR,SAAS,EAAE,WAAW;KACvB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,KAAyD;IAEzD,OAAO,0BAA0B,CAAC;QAChC,GAAG,KAAK;QACR,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,KAAyD;IAEzD,OAAO,0BAA0B,CAAC;QAChC,GAAG,KAAK;QACR,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC;AAED,M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S;YACZ,OAAO,aAAa,CAAC,UAAU,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAC9D,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,MAAM,aAAa,GAAG,oCAAoC,CACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAC5C,CAAC;YACF,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,aAAa,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,YAAoB,EAAE,MAAc;IACzD,OAAO,YAAY,KAAK,MAAM,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;AAC1F,CAAC;AAED,SAAS,oBAAoB,CAAC,YAAoB,EAAE,UAAkB;IACpE,OAAO,YAAY,KAAK,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;AAClG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-descriptor-manifests.d.ts","sourceRoot":"","sources":["../src/local-state-descriptor-manifests.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAGzF,eAAO,MAAM,8BAA8B,EAAE,SAAS,6BAA6B,EAQzE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { assistantLocalStateDescriptors } from "./assistant-local-state-descriptors.js";
|
|
2
|
+
import { deviceSyncLocalStateDescriptors } from "./device-sync-local-state-descriptors.js";
|
|
3
|
+
import { gatewayLocalStateDescriptors } from "./gateway-local-state-descriptors.js";
|
|
4
|
+
import { inboxLocalStateDescriptors } from "./inbox-local-state-descriptors.js";
|
|
5
|
+
import { parserLocalStateDescriptors } from "./parser-local-state-descriptors.js";
|
|
6
|
+
import { queryLocalStateDescriptors } from "./query-local-state-descriptors.js";
|
|
7
|
+
import { writeOperationLocalStateDescriptors } from "./write-operation-local-state-descriptors.js";
|
|
8
|
+
export const vaultLocalStatePathDescriptors = [
|
|
9
|
+
...assistantLocalStateDescriptors,
|
|
10
|
+
...inboxLocalStateDescriptors,
|
|
11
|
+
...deviceSyncLocalStateDescriptors,
|
|
12
|
+
...parserLocalStateDescriptors,
|
|
13
|
+
...queryLocalStateDescriptors,
|
|
14
|
+
...gatewayLocalStateDescriptors,
|
|
15
|
+
...writeOperationLocalStateDescriptors,
|
|
16
|
+
];
|
|
17
|
+
//# sourceMappingURL=local-state-descriptor-manifests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-descriptor-manifests.js","sourceRoot":"","sources":["../src/local-state-descriptor-manifests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AAEnG,MAAM,CAAC,MAAM,8BAA8B,GAA6C;IACtF,GAAG,8BAA8B;IACjC,GAAG,0BAA0B;IAC7B,GAAG,+BAA+B;IAClC,GAAG,2BAA2B;IAC9B,GAAG,0BAA0B;IAC7B,GAAG,4BAA4B;IAC/B,GAAG,mCAAmC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface LocalStatePathInput {
|
|
2
|
+
currentPath: string;
|
|
3
|
+
}
|
|
4
|
+
export declare function hasLocalStatePathSync(input: LocalStatePathInput): boolean;
|
|
5
|
+
export declare function hasLocalStatePath(input: LocalStatePathInput): Promise<boolean>;
|
|
6
|
+
export declare function readLocalStateTextFile(input: LocalStatePathInput): Promise<{
|
|
7
|
+
path: string;
|
|
8
|
+
text: string;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=local-state-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-files.d.ts","sourceRoot":"","sources":["../src/local-state-files.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAOzE;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAOpF;AAED,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAKzC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { readFile, stat } from "node:fs/promises";
|
|
2
|
+
import { statSync } from "node:fs";
|
|
3
|
+
export function hasLocalStatePathSync(input) {
|
|
4
|
+
try {
|
|
5
|
+
statSync(input.currentPath);
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
catch {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export async function hasLocalStatePath(input) {
|
|
13
|
+
try {
|
|
14
|
+
await stat(input.currentPath);
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export async function readLocalStateTextFile(input) {
|
|
22
|
+
return {
|
|
23
|
+
path: input.currentPath,
|
|
24
|
+
text: await readFile(input.currentPath, "utf8"),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=local-state-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-state-files.js","sourceRoot":"","sources":["../src/local-state-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMnC,MAAM,UAAU,qBAAqB,CAAC,KAA0B;IAC9D,IAAI,CAAC;QACH,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,KAA0B;IAChE,IAAI,CAAC;QACH,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,KAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,WAAW;QACvB,IAAI,EAAE,MAAM,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC;KAChD,CAAC;AACJ,CAAC"}
|