@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 @@
|
|
|
1
|
+
{"version":3,"file":"process-env.js","sourceRoot":"","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@@
|
|
|
1
|
+
{"version":3,"file":"query-local-state-descriptors.d.ts","sourceRoot":"","sources":["../src/query-local-state-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,qCAAqC,CAAC;AAI7C,eAAO,MAAM,0BAA0B,EAAE,SAAS,6BAA6B,EAUrE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineLocalStateFileDescriptor, } from "./local-state-descriptor-helpers.js";
|
|
2
|
+
const QUERY_OWNER = "query";
|
|
3
|
+
export const queryLocalStateDescriptors = [
|
|
4
|
+
defineLocalStateFileDescriptor({
|
|
5
|
+
classification: "projection",
|
|
6
|
+
description: "Query owns the rebuildable local read projection over canonical vault entities and lexical search documents.",
|
|
7
|
+
owner: QUERY_OWNER,
|
|
8
|
+
portability: "machine_local",
|
|
9
|
+
rebuildable: true,
|
|
10
|
+
relativePath: ".runtime/projections/query.sqlite",
|
|
11
|
+
}),
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=query-local-state-descriptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-local-state-descriptors.js","sourceRoot":"","sources":["../src/query-local-state-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,GAE/B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,CAAC,MAAM,0BAA0B,GAA6C;IAClF,8BAA8B,CAAC;QAC7B,cAAc,EAAE,YAAY;QAC5B,WAAW,EACT,8GAA8G;QAChH,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,mCAAmC;KAClD,CAAC;CACM,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH, RUNTIME_PROJECTION_ROOT_RELATIVE_PATH, RUNTIME_ROOT_RELATIVE_PATH, RUNTIME_CACHE_ROOT_RELATIVE_PATH, RUNTIME_TEMP_ROOT_RELATIVE_PATH, } from "./local-state-taxonomy.ts";
|
|
2
|
+
export declare const QUERY_DB_RELATIVE_PATH = ".runtime/projections/query.sqlite";
|
|
3
|
+
export declare const INBOX_DB_RELATIVE_PATH = ".runtime/projections/inboxd.sqlite";
|
|
4
|
+
export declare const INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH = ".runtime/operations/inbox";
|
|
5
|
+
export declare const INBOX_CONFIG_RELATIVE_PATH = ".runtime/operations/inbox/config.json";
|
|
6
|
+
export declare const INBOX_STATE_RELATIVE_PATH = ".runtime/operations/inbox/state.json";
|
|
7
|
+
export declare const INBOX_PROMOTIONS_RELATIVE_PATH = ".runtime/operations/inbox/promotions.json";
|
|
8
|
+
export declare const DEVICE_SYNC_DB_RELATIVE_PATH = ".runtime/operations/device-sync/state.sqlite";
|
|
9
|
+
export declare const GATEWAY_DB_RELATIVE_PATH = ".runtime/projections/gateway.sqlite";
|
|
10
|
+
export declare const DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH = ".runtime/operations/device-sync";
|
|
11
|
+
export declare const DEVICE_SYNC_LAUNCHER_STATE_RELATIVE_PATH = ".runtime/operations/device-sync/launcher.json";
|
|
12
|
+
export declare const DEVICE_SYNC_STDOUT_LOG_RELATIVE_PATH = ".runtime/operations/device-sync/stdout.log";
|
|
13
|
+
export declare const DEVICE_SYNC_STDERR_LOG_RELATIVE_PATH = ".runtime/operations/device-sync/stderr.log";
|
|
14
|
+
export declare const PARSER_RUNTIME_DIRECTORY_RELATIVE_PATH = ".runtime/operations/parsers";
|
|
15
|
+
export declare const PARSER_TOOLCHAIN_CONFIG_RELATIVE_PATH = ".runtime/operations/parsers/toolchain.json";
|
|
16
|
+
export declare const ASSISTANT_RUNTIME_DIRECTORY_RELATIVE_PATH = ".runtime/operations/assistant";
|
|
17
|
+
export interface RuntimePaths {
|
|
18
|
+
absoluteVaultRoot: string;
|
|
19
|
+
runtimeRoot: string;
|
|
20
|
+
operationalRoot: string;
|
|
21
|
+
projectionsRoot: string;
|
|
22
|
+
cacheRoot: string;
|
|
23
|
+
tempRoot: string;
|
|
24
|
+
queryDbPath: string;
|
|
25
|
+
inboxDbPath: string;
|
|
26
|
+
inboxRuntimeRoot: string;
|
|
27
|
+
inboxConfigPath: string;
|
|
28
|
+
inboxStatePath: string;
|
|
29
|
+
inboxPromotionsPath: string;
|
|
30
|
+
deviceSyncDbPath: string;
|
|
31
|
+
gatewayDbPath: string;
|
|
32
|
+
deviceSyncRuntimeRoot: string;
|
|
33
|
+
deviceSyncLauncherStatePath: string;
|
|
34
|
+
deviceSyncStdoutLogPath: string;
|
|
35
|
+
deviceSyncStderrLogPath: string;
|
|
36
|
+
parserRuntimeRoot: string;
|
|
37
|
+
parserToolchainConfigPath: string;
|
|
38
|
+
}
|
|
39
|
+
export type InboxRuntimePaths = Pick<RuntimePaths, "absoluteVaultRoot" | "runtimeRoot" | "operationalRoot" | "projectionsRoot" | "inboxDbPath" | "inboxRuntimeRoot" | "inboxConfigPath" | "inboxStatePath" | "inboxPromotionsPath">;
|
|
40
|
+
export type DeviceSyncRuntimePaths = Pick<RuntimePaths, "absoluteVaultRoot" | "runtimeRoot" | "operationalRoot" | "deviceSyncDbPath" | "deviceSyncRuntimeRoot" | "deviceSyncLauncherStatePath" | "deviceSyncStdoutLogPath" | "deviceSyncStderrLogPath">;
|
|
41
|
+
export type GatewayRuntimePaths = Pick<RuntimePaths, "absoluteVaultRoot" | "runtimeRoot" | "projectionsRoot" | "gatewayDbPath">;
|
|
42
|
+
export type ParserRuntimePaths = Pick<RuntimePaths, "absoluteVaultRoot" | "runtimeRoot" | "operationalRoot" | "parserRuntimeRoot" | "parserToolchainConfigPath">;
|
|
43
|
+
export declare function resolveRuntimePaths(vaultRoot: string): RuntimePaths;
|
|
44
|
+
export declare function resolveGatewayRuntimePaths(vaultRoot: string): GatewayRuntimePaths;
|
|
45
|
+
export declare function resolveInboxRuntimePaths(vaultRoot: string): InboxRuntimePaths;
|
|
46
|
+
export declare function resolveDeviceSyncRuntimePaths(vaultRoot: string): DeviceSyncRuntimePaths;
|
|
47
|
+
export declare function resolveParserRuntimePaths(vaultRoot: string): ParserRuntimePaths;
|
|
48
|
+
//# sourceMappingURL=runtime-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-paths.d.ts","sourceRoot":"","sources":["../src/runtime-paths.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,sCAAsC,EACtC,qCAAqC,EACrC,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,sBAAsB,sCAA0D,CAAC;AAC9F,eAAO,MAAM,sBAAsB,uCAA2D,CAAC;AAC/F,eAAO,MAAM,qCAAqC,8BAAoD,CAAC;AACvG,eAAO,MAAM,0BAA0B,0CAAyD,CAAC;AACjG,eAAO,MAAM,yBAAyB,yCAAwD,CAAC;AAC/F,eAAO,MAAM,8BAA8B,8CAA6D,CAAC;AACzG,eAAO,MAAM,4BAA4B,iDAAuE,CAAC;AACjH,eAAO,MAAM,wBAAwB,wCAA4D,CAAC;AAClG,eAAO,MAAM,2CAA2C,oCAA0D,CAAC;AACnH,eAAO,MAAM,wCAAwC,kDAAiE,CAAC;AACvH,eAAO,MAAM,oCAAoC,+CAA8D,CAAC;AAChH,eAAO,MAAM,oCAAoC,+CAA8D,CAAC;AAChH,eAAO,MAAM,sCAAsC,gCAAsD,CAAC;AAC1G,eAAO,MAAM,qCAAqC,+CAA6D,CAAC;AAChH,eAAO,MAAM,yCAAyC,kCAAuC,CAAC;AAE9F,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM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wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAc7E;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,GAAG,sBAAsB,CAavF;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,CAU/E"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH, RUNTIME_PROJECTION_ROOT_RELATIVE_PATH, RUNTIME_ROOT_RELATIVE_PATH, RUNTIME_CACHE_ROOT_RELATIVE_PATH, RUNTIME_TEMP_ROOT_RELATIVE_PATH, ASSISTANT_RUNTIME_ROOT_RELATIVE_PATH, } from "./local-state-taxonomy.js";
|
|
3
|
+
export { RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH, RUNTIME_PROJECTION_ROOT_RELATIVE_PATH, RUNTIME_ROOT_RELATIVE_PATH, RUNTIME_CACHE_ROOT_RELATIVE_PATH, RUNTIME_TEMP_ROOT_RELATIVE_PATH, } from "./local-state-taxonomy.js";
|
|
4
|
+
export const QUERY_DB_RELATIVE_PATH = `${RUNTIME_PROJECTION_ROOT_RELATIVE_PATH}/query.sqlite`;
|
|
5
|
+
export const INBOX_DB_RELATIVE_PATH = `${RUNTIME_PROJECTION_ROOT_RELATIVE_PATH}/inboxd.sqlite`;
|
|
6
|
+
export const INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH = `${RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH}/inbox`;
|
|
7
|
+
export const INBOX_CONFIG_RELATIVE_PATH = `${INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH}/config.json`;
|
|
8
|
+
export const INBOX_STATE_RELATIVE_PATH = `${INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH}/state.json`;
|
|
9
|
+
export const INBOX_PROMOTIONS_RELATIVE_PATH = `${INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH}/promotions.json`;
|
|
10
|
+
export const DEVICE_SYNC_DB_RELATIVE_PATH = `${RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH}/device-sync/state.sqlite`;
|
|
11
|
+
export const GATEWAY_DB_RELATIVE_PATH = `${RUNTIME_PROJECTION_ROOT_RELATIVE_PATH}/gateway.sqlite`;
|
|
12
|
+
export const DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH = `${RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH}/device-sync`;
|
|
13
|
+
export const DEVICE_SYNC_LAUNCHER_STATE_RELATIVE_PATH = `${DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH}/launcher.json`;
|
|
14
|
+
export const DEVICE_SYNC_STDOUT_LOG_RELATIVE_PATH = `${DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH}/stdout.log`;
|
|
15
|
+
export const DEVICE_SYNC_STDERR_LOG_RELATIVE_PATH = `${DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH}/stderr.log`;
|
|
16
|
+
export const PARSER_RUNTIME_DIRECTORY_RELATIVE_PATH = `${RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH}/parsers`;
|
|
17
|
+
export const PARSER_TOOLCHAIN_CONFIG_RELATIVE_PATH = `${PARSER_RUNTIME_DIRECTORY_RELATIVE_PATH}/toolchain.json`;
|
|
18
|
+
export const ASSISTANT_RUNTIME_DIRECTORY_RELATIVE_PATH = ASSISTANT_RUNTIME_ROOT_RELATIVE_PATH;
|
|
19
|
+
export function resolveRuntimePaths(vaultRoot) {
|
|
20
|
+
const absoluteVaultRoot = path.resolve(vaultRoot);
|
|
21
|
+
const runtimeRoot = path.join(absoluteVaultRoot, RUNTIME_ROOT_RELATIVE_PATH);
|
|
22
|
+
const operationalRoot = path.join(absoluteVaultRoot, RUNTIME_OPERATIONAL_ROOT_RELATIVE_PATH);
|
|
23
|
+
const projectionsRoot = path.join(absoluteVaultRoot, RUNTIME_PROJECTION_ROOT_RELATIVE_PATH);
|
|
24
|
+
return {
|
|
25
|
+
absoluteVaultRoot,
|
|
26
|
+
runtimeRoot,
|
|
27
|
+
operationalRoot,
|
|
28
|
+
projectionsRoot,
|
|
29
|
+
cacheRoot: path.join(absoluteVaultRoot, RUNTIME_CACHE_ROOT_RELATIVE_PATH),
|
|
30
|
+
tempRoot: path.join(absoluteVaultRoot, RUNTIME_TEMP_ROOT_RELATIVE_PATH),
|
|
31
|
+
queryDbPath: path.join(absoluteVaultRoot, QUERY_DB_RELATIVE_PATH),
|
|
32
|
+
inboxDbPath: path.join(absoluteVaultRoot, INBOX_DB_RELATIVE_PATH),
|
|
33
|
+
inboxRuntimeRoot: path.join(absoluteVaultRoot, INBOX_RUNTIME_DIRECTORY_RELATIVE_PATH),
|
|
34
|
+
inboxConfigPath: path.join(absoluteVaultRoot, INBOX_CONFIG_RELATIVE_PATH),
|
|
35
|
+
inboxStatePath: path.join(absoluteVaultRoot, INBOX_STATE_RELATIVE_PATH),
|
|
36
|
+
inboxPromotionsPath: path.join(absoluteVaultRoot, INBOX_PROMOTIONS_RELATIVE_PATH),
|
|
37
|
+
deviceSyncDbPath: path.join(absoluteVaultRoot, DEVICE_SYNC_DB_RELATIVE_PATH),
|
|
38
|
+
gatewayDbPath: path.join(absoluteVaultRoot, GATEWAY_DB_RELATIVE_PATH),
|
|
39
|
+
deviceSyncRuntimeRoot: path.join(absoluteVaultRoot, DEVICE_SYNC_RUNTIME_DIRECTORY_RELATIVE_PATH),
|
|
40
|
+
deviceSyncLauncherStatePath: path.join(absoluteVaultRoot, DEVICE_SYNC_LAUNCHER_STATE_RELATIVE_PATH),
|
|
41
|
+
deviceSyncStdoutLogPath: path.join(absoluteVaultRoot, DEVICE_SYNC_STDOUT_LOG_RELATIVE_PATH),
|
|
42
|
+
deviceSyncStderrLogPath: path.join(absoluteVaultRoot, DEVICE_SYNC_STDERR_LOG_RELATIVE_PATH),
|
|
43
|
+
parserRuntimeRoot: path.join(absoluteVaultRoot, PARSER_RUNTIME_DIRECTORY_RELATIVE_PATH),
|
|
44
|
+
parserToolchainConfigPath: path.join(absoluteVaultRoot, PARSER_TOOLCHAIN_CONFIG_RELATIVE_PATH),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function resolveGatewayRuntimePaths(vaultRoot) {
|
|
48
|
+
const runtimePaths = resolveRuntimePaths(vaultRoot);
|
|
49
|
+
return {
|
|
50
|
+
absoluteVaultRoot: runtimePaths.absoluteVaultRoot,
|
|
51
|
+
runtimeRoot: runtimePaths.runtimeRoot,
|
|
52
|
+
projectionsRoot: runtimePaths.projectionsRoot,
|
|
53
|
+
gatewayDbPath: runtimePaths.gatewayDbPath,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function resolveInboxRuntimePaths(vaultRoot) {
|
|
57
|
+
const runtimePaths = resolveRuntimePaths(vaultRoot);
|
|
58
|
+
return {
|
|
59
|
+
absoluteVaultRoot: runtimePaths.absoluteVaultRoot,
|
|
60
|
+
runtimeRoot: runtimePaths.runtimeRoot,
|
|
61
|
+
operationalRoot: runtimePaths.operationalRoot,
|
|
62
|
+
projectionsRoot: runtimePaths.projectionsRoot,
|
|
63
|
+
inboxDbPath: runtimePaths.inboxDbPath,
|
|
64
|
+
inboxRuntimeRoot: runtimePaths.inboxRuntimeRoot,
|
|
65
|
+
inboxConfigPath: runtimePaths.inboxConfigPath,
|
|
66
|
+
inboxStatePath: runtimePaths.inboxStatePath,
|
|
67
|
+
inboxPromotionsPath: runtimePaths.inboxPromotionsPath,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export function resolveDeviceSyncRuntimePaths(vaultRoot) {
|
|
71
|
+
const runtimePaths = resolveRuntimePaths(vaultRoot);
|
|
72
|
+
return {
|
|
73
|
+
absoluteVaultRoot: runtimePaths.absoluteVaultRoot,
|
|
74
|
+
runtimeRoot: runtimePaths.runtimeRoot,
|
|
75
|
+
operationalRoot: runtimePaths.operationalRoot,
|
|
76
|
+
deviceSyncDbPath: runtimePaths.deviceSyncDbPath,
|
|
77
|
+
deviceSyncRuntimeRoot: runtimePaths.deviceSyncRuntimeRoot,
|
|
78
|
+
deviceSyncLauncherStatePath: runtimePaths.deviceSyncLauncherStatePath,
|
|
79
|
+
deviceSyncStdoutLogPath: runtimePaths.deviceSyncStdoutLogPath,
|
|
80
|
+
deviceSyncStderrLogPath: runtimePaths.deviceSyncStderrLogPath,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export function resolveParserRuntimePaths(vaultRoot) {
|
|
84
|
+
const runtimePaths = resolveRuntimePaths(vaultRoot);
|
|
85
|
+
return {
|
|
86
|
+
absoluteVaultRoot: runtimePaths.absoluteVaultRoot,
|
|
87
|
+
runtimeRoot: runtimePaths.runtimeRoot,
|
|
88
|
+
operationalRoot: runtimePaths.operationalRoot,
|
|
89
|
+
parserRuntimeRoot: runtimePaths.parserRuntimeRoot,
|
|
90
|
+
parserToolchainConfigPath: runtimePaths.parserToolchainConfigPath,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=runtime-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-paths.js","sourceRoot":"","sources":["../src/runtime-paths.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,sCAAsC,EACtC,qCAAqC,EACrC,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,EAC/B,oCAAoC,GACrC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,sCAAsC,EACtC,qCAAqC,EACrC,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,qCAAqC,eAAe,CAAC;AAC9F,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,qCAAqC,gBAAgB,CAAC;AAC/F,MAAM,CAAC,MA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MAAM,YAAY,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAEpD,OAAO;QACL,iBAAiB,EAAE,YAAY,CAAC,iBAAiB;QACjD,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,eAAe,EAAE,YAAY,CAAC,eAAe;QAC7C,iBAAiB,EAAE,YAAY,CAAC,iBAAiB;QACjD,yBAAyB,EAAE,YAAY,CAAC,yBAAyB;KAClE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const ASSISTANT_RUNTIME_DIRECTORY_NAME = "assistant";
|
|
2
|
+
export declare const ASSISTANT_STATE_DIRECTORY_NAME = "assistant";
|
|
3
|
+
export interface SiblingLocalStateBucketRoot {
|
|
4
|
+
absoluteVaultRoot: string;
|
|
5
|
+
bucketName: string;
|
|
6
|
+
rootPath: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function hashVaultRoot(value: string): string;
|
|
9
|
+
export declare function resolveSiblingLocalStateBucketRoot(vaultRoot: string, directoryName: string): SiblingLocalStateBucketRoot;
|
|
10
|
+
export declare function buildProcessCommand(argv?: readonly string[]): string;
|
|
11
|
+
export declare function fingerprintHost(hostname?: string): string;
|
|
12
|
+
export declare function isProcessRunning(pid: number): boolean;
|
|
13
|
+
export declare function toVaultRelativePath(vaultRoot: string, targetPath: string): string;
|
|
14
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,cAAc,CAAC;AAC5D,eAAO,MAAM,8BAA8B,cAAmC,CAAC;AAE/E,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACpB,2BAA2B,CAS7B;AAED,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,SAAS,MAAM,EAAiB,GAAG,MAAM,CAMlF;AAED,wBAAgB,eAAe,CAAC,QAAQ,SAAgB,GAAG,MAAM,CAEhE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAgBrD;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAGjF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
export const ASSISTANT_RUNTIME_DIRECTORY_NAME = "assistant";
|
|
5
|
+
export const ASSISTANT_STATE_DIRECTORY_NAME = ASSISTANT_RUNTIME_DIRECTORY_NAME;
|
|
6
|
+
export function hashVaultRoot(value) {
|
|
7
|
+
return createHash("sha1").update(path.resolve(value)).digest("hex").slice(0, 12);
|
|
8
|
+
}
|
|
9
|
+
export function resolveSiblingLocalStateBucketRoot(vaultRoot, directoryName) {
|
|
10
|
+
const absoluteVaultRoot = path.resolve(vaultRoot);
|
|
11
|
+
const bucketName = `${path.basename(absoluteVaultRoot)}-${hashVaultRoot(absoluteVaultRoot)}`;
|
|
12
|
+
return {
|
|
13
|
+
absoluteVaultRoot,
|
|
14
|
+
bucketName,
|
|
15
|
+
rootPath: path.join(path.dirname(absoluteVaultRoot), directoryName, bucketName),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function buildProcessCommand(argv = process.argv) {
|
|
19
|
+
const parts = [argv[0], argv[1]]
|
|
20
|
+
.map((value) => (typeof value === "string" && value.trim().length > 0 ? path.basename(value) : ""))
|
|
21
|
+
.filter(Boolean);
|
|
22
|
+
return parts.join(" ").trim() || "unknown";
|
|
23
|
+
}
|
|
24
|
+
export function fingerprintHost(hostname = os.hostname()) {
|
|
25
|
+
return `sha256:${createHash("sha256").update(hostname).digest("hex").slice(0, 12)}`;
|
|
26
|
+
}
|
|
27
|
+
export function isProcessRunning(pid) {
|
|
28
|
+
try {
|
|
29
|
+
process.kill(pid, 0);
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
if (error &&
|
|
34
|
+
typeof error === "object" &&
|
|
35
|
+
"code" in error &&
|
|
36
|
+
error.code === "ESRCH") {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export function toVaultRelativePath(vaultRoot, targetPath) {
|
|
43
|
+
const relativePath = path.relative(path.resolve(vaultRoot), path.resolve(targetPath));
|
|
44
|
+
return relativePath.length > 0 ? relativePath : ".";
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,gCAAgC,GAAG,WAAW,CAAC;AAC5D,MAAM,CAAC,MAAM,8BAA8B,GAAG,gCAAgC,CAAC;AAQ/E,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,SAAiB,EACjB,aAAqB;IAErB,MAAM,iBAAiB,GAAG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,OAAO,KAAK,EAAE,CAAC;QACf,IACE,KAAK;YACL,OAAO,KAAK,KAAK,QAAQ;YACzB,MAAM,IAAI,KAAK;YACd,KAA4B,CAAC,IAAI,KAAK,OAAO,EAC9C,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,SAAiB,EAAE,UAAkB;IACvE,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACtF,OAAO,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DatabaseSync } from "node:sqlite";
|
|
2
|
+
export declare const DEFAULT_SQLITE_TIMEOUT_MS = 5000;
|
|
3
|
+
export interface OpenSqliteRuntimeDatabaseOptions {
|
|
4
|
+
create?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
foreignKeys?: boolean;
|
|
8
|
+
journalMode?: "DELETE" | "TRUNCATE" | "PERSIST" | "MEMORY" | "WAL" | "OFF";
|
|
9
|
+
synchronous?: "OFF" | "NORMAL" | "FULL" | "EXTRA";
|
|
10
|
+
}
|
|
11
|
+
export interface SqliteRuntimeMigration {
|
|
12
|
+
migrate(database: DatabaseSync): void;
|
|
13
|
+
version: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ApplySqliteRuntimeMigrationsInput {
|
|
16
|
+
migrations: readonly SqliteRuntimeMigration[];
|
|
17
|
+
schemaVersion: number;
|
|
18
|
+
storeName: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function openSqliteRuntimeDatabase(databasePath: string, options?: OpenSqliteRuntimeDatabaseOptions): DatabaseSync;
|
|
21
|
+
export declare function tableExists(database: DatabaseSync, name: string): boolean;
|
|
22
|
+
export declare function withImmediateTransaction<T>(database: DatabaseSync, operation: () => T): T;
|
|
23
|
+
export declare function readSqliteRuntimeUserVersion(database: DatabaseSync): number;
|
|
24
|
+
export declare function writeSqliteRuntimeUserVersion(database: DatabaseSync, version: number): void;
|
|
25
|
+
export declare function applySqliteRuntimeMigrations(database: DatabaseSync, input: ApplySqliteRuntimeMigrationsInput): number;
|
|
26
|
+
//# sourceMappingURL=sqlite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.d.ts","sourceRoot":"","sources":["../src/sqlite.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,yBAAyB,OAAQ,CAAC;AAE/C,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC;IAC3E,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CACnD;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gCAAqC,GAC7C,YAAY,CAyBd;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAUzE;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAWzF;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAI3E;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM3F;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,iCAAiC,GACvC,MAAM,CAsCR"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { mkdirSync } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { DatabaseSync } from "node:sqlite";
|
|
4
|
+
export const DEFAULT_SQLITE_TIMEOUT_MS = 5_000;
|
|
5
|
+
export function openSqliteRuntimeDatabase(databasePath, options = {}) {
|
|
6
|
+
const readOnly = options.readOnly ?? false;
|
|
7
|
+
if (!readOnly && (options.create ?? true)) {
|
|
8
|
+
mkdirSync(path.dirname(databasePath), { recursive: true });
|
|
9
|
+
}
|
|
10
|
+
const database = new DatabaseSync(databasePath, {
|
|
11
|
+
readOnly,
|
|
12
|
+
timeout: options.timeoutMs ?? DEFAULT_SQLITE_TIMEOUT_MS,
|
|
13
|
+
});
|
|
14
|
+
if (options.foreignKeys ?? true) {
|
|
15
|
+
database.exec("PRAGMA foreign_keys = ON;");
|
|
16
|
+
}
|
|
17
|
+
if (!readOnly) {
|
|
18
|
+
database.exec(`PRAGMA journal_mode = ${options.journalMode ?? "WAL"}; PRAGMA synchronous = ${options.synchronous ?? "NORMAL"};`);
|
|
19
|
+
}
|
|
20
|
+
return database;
|
|
21
|
+
}
|
|
22
|
+
export function tableExists(database, name) {
|
|
23
|
+
const row = database
|
|
24
|
+
.prepare(`
|
|
25
|
+
SELECT name
|
|
26
|
+
FROM sqlite_master
|
|
27
|
+
WHERE type IN ('table', 'view') AND name = ?
|
|
28
|
+
`)
|
|
29
|
+
.get(name);
|
|
30
|
+
return row?.name === name;
|
|
31
|
+
}
|
|
32
|
+
export function withImmediateTransaction(database, operation) {
|
|
33
|
+
database.exec("BEGIN IMMEDIATE TRANSACTION");
|
|
34
|
+
try {
|
|
35
|
+
const result = operation();
|
|
36
|
+
database.exec("COMMIT");
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
database.exec("ROLLBACK");
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export function readSqliteRuntimeUserVersion(database) {
|
|
45
|
+
const row = database.prepare("PRAGMA user_version;").get();
|
|
46
|
+
const version = row?.user_version;
|
|
47
|
+
return typeof version === "number" && Number.isInteger(version) && version >= 0 ? version : 0;
|
|
48
|
+
}
|
|
49
|
+
export function writeSqliteRuntimeUserVersion(database, version) {
|
|
50
|
+
if (!Number.isInteger(version) || version < 0) {
|
|
51
|
+
throw new Error(`SQLite runtime user_version must be a non-negative integer. Received ${String(version)}.`);
|
|
52
|
+
}
|
|
53
|
+
database.exec(`PRAGMA user_version = ${version};`);
|
|
54
|
+
}
|
|
55
|
+
export function applySqliteRuntimeMigrations(database, input) {
|
|
56
|
+
assertSqliteRuntimeSchemaVersion(input.schemaVersion, `${input.storeName} schemaVersion`);
|
|
57
|
+
const migrations = [...input.migrations].sort((left, right) => left.version - right.version);
|
|
58
|
+
assertSqliteRuntimeMigrationPlan(migrations, input);
|
|
59
|
+
const currentVersion = readSqliteRuntimeUserVersion(database);
|
|
60
|
+
if (currentVersion > input.schemaVersion) {
|
|
61
|
+
throw new Error(`${input.storeName} database schema version ${currentVersion} is newer than supported version ${input.schemaVersion}.`);
|
|
62
|
+
}
|
|
63
|
+
let appliedVersion = currentVersion;
|
|
64
|
+
for (const migration of migrations) {
|
|
65
|
+
if (migration.version <= appliedVersion) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (migration.version > input.schemaVersion) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
withImmediateTransaction(database, () => {
|
|
72
|
+
migration.migrate(database);
|
|
73
|
+
writeSqliteRuntimeUserVersion(database, migration.version);
|
|
74
|
+
});
|
|
75
|
+
appliedVersion = migration.version;
|
|
76
|
+
}
|
|
77
|
+
if (appliedVersion !== input.schemaVersion) {
|
|
78
|
+
throw new Error(`${input.storeName} database schema stopped at version ${appliedVersion}; expected ${input.schemaVersion}.`);
|
|
79
|
+
}
|
|
80
|
+
return appliedVersion;
|
|
81
|
+
}
|
|
82
|
+
function assertSqliteRuntimeMigrationPlan(migrations, input) {
|
|
83
|
+
let previousVersion = 0;
|
|
84
|
+
for (const migration of migrations) {
|
|
85
|
+
assertSqliteRuntimeSchemaVersion(migration.version, `${input.storeName} migration version`);
|
|
86
|
+
if (migration.version <= previousVersion) {
|
|
87
|
+
throw new Error(`${input.storeName} migrations must be strictly increasing. Duplicate or out-of-order version ${migration.version}.`);
|
|
88
|
+
}
|
|
89
|
+
previousVersion = migration.version;
|
|
90
|
+
}
|
|
91
|
+
if (input.schemaVersion === 0) {
|
|
92
|
+
if (migrations.length > 0) {
|
|
93
|
+
throw new Error(`${input.storeName} schemaVersion 0 cannot declare migrations.`);
|
|
94
|
+
}
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (migrations.length === 0) {
|
|
98
|
+
throw new Error(`${input.storeName} requires migrations covering schema version ${input.schemaVersion}, but none were provided.`);
|
|
99
|
+
}
|
|
100
|
+
const lastVersion = migrations[migrations.length - 1]?.version ?? 0;
|
|
101
|
+
if (lastVersion !== input.schemaVersion) {
|
|
102
|
+
throw new Error(`${input.storeName} migrations stop at version ${lastVersion}; expected ${input.schemaVersion}.`);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function assertSqliteRuntimeSchemaVersion(version, label) {
|
|
106
|
+
if (!Number.isInteger(version) || version < 0) {
|
|
107
|
+
throw new Error(`${label} must be a non-negative integer. Received ${String(version)}.`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=sqlite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.js","sourceRoot":"","sources":["../src/sqlite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC;AAsB/C,MAAM,UAAU,yBAAyB,CACvC,YAAoB,EACpB,UAA4C,EAAE;IAE9C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC;IAE3C,IAAI,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QAC1C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,YAAY,EAAE;QAC9C,QAAQ;QACR,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,yBAAyB;KACxD,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;QAChC,QAAQ,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,QAAQ,CAAC,IAAI,CACX,yBAAyB,OAAO,CAAC,WAAW,IAAI,KAAK,0BACnD,OAAO,CAAC,WAAW,IAAI,QACzB,GAAG,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAA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AE,KAAa;IACtE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,6CAA6C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type RandomByteSource = (length: number) => Uint8Array;
|
|
2
|
+
export declare function encodeCrockford(value: number, length: number): string;
|
|
3
|
+
export declare function encodeRandomCrockford(length: number, randomByteSource?: RandomByteSource): string;
|
|
4
|
+
export declare function generateUlid(now?: number, randomByteSource?: RandomByteSource): string;
|
|
5
|
+
//# sourceMappingURL=ulid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ulid.d.ts","sourceRoot":"","sources":["../src/ulid.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,UAAU,CAAC;AAE9D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAUrE;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,gBAAgB,GAAE,gBAAoC,GACrD,MAAM,CAYR;AAED,wBAAgB,YAAY,CAC1B,GAAG,SAAa,EAChB,gBAAgB,GAAE,gBAAoC,GACrD,MAAM,CAER"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
2
|
+
export function encodeCrockford(value, length) {
|
|
3
|
+
let remainder = value;
|
|
4
|
+
let encoded = "";
|
|
5
|
+
do {
|
|
6
|
+
encoded = CROCKFORD[remainder % 32] + encoded;
|
|
7
|
+
remainder = Math.floor(remainder / 32);
|
|
8
|
+
} while (remainder > 0);
|
|
9
|
+
return encoded.padStart(length, "0").slice(-length);
|
|
10
|
+
}
|
|
11
|
+
export function encodeRandomCrockford(length, randomByteSource = randomCryptoBytes) {
|
|
12
|
+
const bytes = randomByteSource(length);
|
|
13
|
+
let encoded = "";
|
|
14
|
+
for (const byte of bytes) {
|
|
15
|
+
encoded += CROCKFORD[byte % 32];
|
|
16
|
+
if (encoded.length === length) {
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return encoded.slice(0, length);
|
|
21
|
+
}
|
|
22
|
+
export function generateUlid(now = Date.now(), randomByteSource = randomCryptoBytes) {
|
|
23
|
+
return `${encodeCrockford(now, 10)}${encodeRandomCrockford(16, randomByteSource)}`;
|
|
24
|
+
}
|
|
25
|
+
function randomCryptoBytes(length) {
|
|
26
|
+
if (typeof crypto?.getRandomValues !== "function") {
|
|
27
|
+
throw new Error("Web Crypto getRandomValues is unavailable.");
|
|
28
|
+
}
|
|
29
|
+
return crypto.getRandomValues(new Uint8Array(length));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ulid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ulid.js","sourceRoot":"","sources":["../src/ulid.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,kCAAkC,CAAC;AAIrD,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,MAAc;IAC3D,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,GAAG,CAAC;QACF,OAAO,GAAG,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC;QAC9C,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC,CAAC;IACzC,CAAC,QAAQ,SAAS,GAAG,CAAC,EAAE;IAExB,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,MAAc,EACd,mBAAqC,iBAAiB;IAEtD,MAAM,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACvC,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,OAAO,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;QAChC,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC9B,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,EAChB,mBAAqC,iBAAiB;IAEtD,OAAO,GAAG,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,qBAAqB,CAAC,EAAE,EAAE,gBAAgB,CAAC,EAAE,CAAC;AACrF,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,IAAI,OAAO,MAAM,EAAE,eAAe,KAAK,UAAU,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ParseVersionedJsonStateEnvelopeInput } from "./versioned-json-state.ts";
|
|
2
|
+
export interface ReadVersionedJsonStateFileInput<T> extends ParseVersionedJsonStateEnvelopeInput<T> {
|
|
3
|
+
currentPath: string;
|
|
4
|
+
}
|
|
5
|
+
export interface VersionedJsonStateFileReadDependencies {
|
|
6
|
+
readFile(path: string): Promise<string>;
|
|
7
|
+
}
|
|
8
|
+
export interface VersionedJsonStateFileWriteDependencies {
|
|
9
|
+
chmod(path: string, mode: number): Promise<void>;
|
|
10
|
+
mkdir(path: string): Promise<void>;
|
|
11
|
+
writeFile(path: string, text: string): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare function readVersionedJsonStateFile<T>(input: ReadVersionedJsonStateFileInput<T>, dependencies?: VersionedJsonStateFileReadDependencies): Promise<{
|
|
14
|
+
filePath: string;
|
|
15
|
+
value: T;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function writeVersionedJsonStateFile<T>(input: {
|
|
18
|
+
filePath: string;
|
|
19
|
+
mode?: number;
|
|
20
|
+
schema: string;
|
|
21
|
+
schemaVersion: number;
|
|
22
|
+
value: T;
|
|
23
|
+
}, dependencies?: VersionedJsonStateFileWriteDependencies): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=versioned-json-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-json-files.d.ts","sourceRoot":"","sources":["../src/versioned-json-files.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,oCAAoC,EAC1C,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,+BAA+B,CAAC,CAAC,CAChD,SAAQ,oCAAoC,CAAC,CAAC,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAChD,KAAK,EAAE,+BAA+B,CAAC,CAAC,CAAC,EACzC,YAAY,CAAC,EAAE,sCAAsC,GACpD,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CASzC;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EACjD,KAAK,EAAE;IACL,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;CACV,EACD,YAAY,CAAC,EAAE,uCAAuC,GACrD,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { chmod as fsChmod, mkdir as fsMkdir, writeFile as fsWriteFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { readLocalStateTextFile } from "./local-state-files.js";
|
|
4
|
+
import { createVersionedJsonStateEnvelope, parseVersionedJsonStateEnvelope, } from "./versioned-json-state.js";
|
|
5
|
+
export async function readVersionedJsonStateFile(input, dependencies) {
|
|
6
|
+
const raw = dependencies
|
|
7
|
+
? await dependencies.readFile(input.currentPath)
|
|
8
|
+
: (await readLocalStateTextFile({ currentPath: input.currentPath })).text;
|
|
9
|
+
return {
|
|
10
|
+
filePath: input.currentPath,
|
|
11
|
+
value: parseVersionedJsonStateEnvelope(JSON.parse(raw), input),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export async function writeVersionedJsonStateFile(input, dependencies) {
|
|
15
|
+
const resolvedDependencies = dependencies ?? {
|
|
16
|
+
chmod: fsChmod,
|
|
17
|
+
async mkdir(targetPath) {
|
|
18
|
+
await fsMkdir(targetPath, { recursive: true });
|
|
19
|
+
},
|
|
20
|
+
writeFile(filePath, text) {
|
|
21
|
+
return fsWriteFile(filePath, text, "utf8");
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
await resolvedDependencies.mkdir(path.dirname(input.filePath));
|
|
25
|
+
await resolvedDependencies.writeFile(input.filePath, `${JSON.stringify(createVersionedJsonStateEnvelope(input), null, 2)}\n`);
|
|
26
|
+
if (typeof input.mode === "number") {
|
|
27
|
+
await resolvedDependencies.chmod(input.filePath, input.mode);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=versioned-json-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-json-files.js","sourceRoot":"","sources":["../src/versioned-json-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,gCAAgC,EAChC,+BAA+B,GAEhC,MAAM,2BAA2B,CAAC;AAiBnC,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,KAAyC,EACzC,YAAqD;IAErD,MAAM,GAAG,GAAG,YAAY;QACtB,CAAC,CAAC,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC;QAChD,CAAC,CAAC,CAAC,MAAM,sBAAsB,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAE5E,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,WAAW;QAC3B,KAAK,EAAE,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,EAAE,KAAK,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,KAMC,EACD,YAAsD;IAEtD,MAAM,oBAAoB,GAAG,YAAY,IAAI;QAC3C,KAAK,EAAE,OAAO;QACd,KAAK,CAAC,KAAK,CAAC,UAAkB;YAC5B,MAAM,OAAO,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,CAAC;QACD,SAAS,CAAC,QAAgB,EAAE,IAAY;YACtC,OAAO,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC;IAEF,MAAM,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/D,MAAM,oBAAoB,CAAC,SAAS,CAClC,KAAK,CAAC,QAAQ,EACd,GAAG,IAAI,CAAC,SAAS,CAAC,gCAAgC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CACxE,CAAC;IAEF,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface VersionedJsonStateEnvelope<T> {
|
|
2
|
+
schema: string;
|
|
3
|
+
schemaVersion: number;
|
|
4
|
+
value: T;
|
|
5
|
+
}
|
|
6
|
+
export interface ParseVersionedJsonStateEnvelopeInput<T> {
|
|
7
|
+
label: string;
|
|
8
|
+
parseValue: (value: unknown) => T;
|
|
9
|
+
schema: string;
|
|
10
|
+
schemaVersion: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function createVersionedJsonStateEnvelope<T>(input: {
|
|
13
|
+
schema: string;
|
|
14
|
+
schemaVersion: number;
|
|
15
|
+
value: T;
|
|
16
|
+
}): VersionedJsonStateEnvelope<T>;
|
|
17
|
+
export declare function parseVersionedJsonStateEnvelope<T>(value: unknown, input: ParseVersionedJsonStateEnvelopeInput<T>): T;
|
|
18
|
+
//# sourceMappingURL=versioned-json-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-json-state.d.ts","sourceRoot":"","sources":["../src/versioned-json-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,oCAAoC,CAAC,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,gCAAgC,CAAC,CAAC,EAAE,KAAK,EAAE;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;CACV,GAAG,0BAA0B,CAAC,CAAC,CAAC,CAMhC;AAED,wBAAgB,+BAA+B,CAAC,CAAC,EAC/C,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,oCAAoC,CAAC,CAAC,CAAC,GAC7C,CAAC,CAiBH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function createVersionedJsonStateEnvelope(input) {
|
|
2
|
+
return {
|
|
3
|
+
schema: input.schema,
|
|
4
|
+
schemaVersion: input.schemaVersion,
|
|
5
|
+
value: input.value,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export function parseVersionedJsonStateEnvelope(value, input) {
|
|
9
|
+
if (isPlainObject(value) && "schema" in value && "schemaVersion" in value && "value" in value) {
|
|
10
|
+
const schema = typeof value.schema === "string" ? value.schema.trim() : "";
|
|
11
|
+
const schemaVersion = typeof value.schemaVersion === "number" ? value.schemaVersion : NaN;
|
|
12
|
+
if (schema !== input.schema) {
|
|
13
|
+
throw new TypeError(`${input.label} schema must be ${input.schema}.`);
|
|
14
|
+
}
|
|
15
|
+
if (schemaVersion !== input.schemaVersion) {
|
|
16
|
+
throw new TypeError(`${input.label} schemaVersion must be ${input.schemaVersion}.`);
|
|
17
|
+
}
|
|
18
|
+
return input.parseValue(value.value);
|
|
19
|
+
}
|
|
20
|
+
throw new TypeError(`${input.label} must be a versioned ${input.schema} envelope.`);
|
|
21
|
+
}
|
|
22
|
+
function isPlainObject(value) {
|
|
23
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=versioned-json-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versioned-json-state.js","sourceRoot":"","sources":["../src/versioned-json-state.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,gCAAgC,CAAI,KAInD;IACC,OAAO;QACL,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAc,EACd,KAA8C;IAE9C,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,QAAQ,IAAI,KAAK,IAAI,eAAe,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC;QAC9F,MAAM,MAAM,GAAG,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3E,MAAM,aAAa,GAAG,OAAO,KAAK,CAAC,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;QAE1F,IAAI,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAC5B,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,mBAAmB,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,aAAa,KAAK,KAAK,CAAC,aAAa,EAAE,CAAC;YAC1C,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,0BAA0B,KAAK,CAAC,aAAa,GAAG,CAAC,CAAC;QACtF,CAAC;QAED,OAAO,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,IAAI,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,wBAAwB,KAAK,CAAC,MAAM,YAAY,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
package/node_modules/@murphai/runtime-state/dist/write-operation-local-state-descriptors.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-operation-local-state-descriptors.d.ts","sourceRoot":"","sources":["../src/write-operation-local-state-descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,mCAAmC,EAAE,SAAS,6BAA6B,EAU9E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineLocalStatePrefixDescriptor, } from "./local-state-descriptor-helpers.js";
|
|
2
|
+
export const writeOperationLocalStateDescriptors = [
|
|
3
|
+
defineLocalStatePrefixDescriptor({
|
|
4
|
+
classification: "operational",
|
|
5
|
+
description: "Committed write-operation receipts and staged payload artifacts must travel with recovery and idempotency context.",
|
|
6
|
+
owner: "write-operations",
|
|
7
|
+
portability: "portable",
|
|
8
|
+
rebuildable: false,
|
|
9
|
+
relativePath: ".runtime/operations/op_",
|
|
10
|
+
}),
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=write-operation-local-state-descriptors.js.map
|