@eloxiv/contracts 0.0.0-stage → 0.1.0
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 +21 -0
- package/README.md +6 -2
- package/dist/Agent.d.ts +792 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +610 -0
- package/dist/Agent.js.map +1 -0
- package/dist/Analytics.d.ts +46 -0
- package/dist/Analytics.d.ts.map +1 -0
- package/dist/Analytics.js +89 -0
- package/dist/Analytics.js.map +1 -0
- package/dist/Approval.d.ts +70 -0
- package/dist/Approval.d.ts.map +1 -0
- package/dist/Approval.js +127 -0
- package/dist/Approval.js.map +1 -0
- package/dist/Catalog.d.ts +238 -0
- package/dist/Catalog.d.ts.map +1 -0
- package/dist/Catalog.js +169 -0
- package/dist/Catalog.js.map +1 -0
- package/dist/Checklist.d.ts +99 -0
- package/dist/Checklist.d.ts.map +1 -0
- package/dist/Checklist.js +105 -0
- package/dist/Checklist.js.map +1 -0
- package/dist/Data.d.ts +107 -0
- package/dist/Data.d.ts.map +1 -0
- package/dist/Data.js +93 -0
- package/dist/Data.js.map +1 -0
- package/dist/Devices.d.ts +857 -0
- package/dist/Devices.d.ts.map +1 -0
- package/dist/Devices.js +590 -0
- package/dist/Devices.js.map +1 -0
- package/dist/Durable.d.ts +406 -0
- package/dist/Durable.d.ts.map +1 -0
- package/dist/Durable.js +203 -0
- package/dist/Durable.js.map +1 -0
- package/dist/Errors.d.ts +95 -0
- package/dist/Errors.d.ts.map +1 -0
- package/dist/Errors.js +72 -0
- package/dist/Errors.js.map +1 -0
- package/dist/JsonSchema.d.ts +355 -0
- package/dist/JsonSchema.d.ts.map +1 -0
- package/dist/JsonSchema.js +151 -0
- package/dist/JsonSchema.js.map +1 -0
- package/dist/Manifest.d.ts +353 -0
- package/dist/Manifest.d.ts.map +1 -0
- package/dist/Manifest.js +894 -0
- package/dist/Manifest.js.map +1 -0
- package/dist/Module.d.ts +447 -0
- package/dist/Module.d.ts.map +1 -0
- package/dist/Module.js +221 -0
- package/dist/Module.js.map +1 -0
- package/dist/Optimistic.d.ts +192 -0
- package/dist/Optimistic.d.ts.map +1 -0
- package/dist/Optimistic.js +319 -0
- package/dist/Optimistic.js.map +1 -0
- package/dist/Projection.d.ts +163 -0
- package/dist/Projection.d.ts.map +1 -0
- package/dist/Projection.js +158 -0
- package/dist/Projection.js.map +1 -0
- package/dist/Proposals.d.ts +103 -0
- package/dist/Proposals.d.ts.map +1 -0
- package/dist/Proposals.js +72 -0
- package/dist/Proposals.js.map +1 -0
- package/dist/Receipt.d.ts +243 -0
- package/dist/Receipt.d.ts.map +1 -0
- package/dist/Receipt.js +108 -0
- package/dist/Receipt.js.map +1 -0
- package/dist/Records.d.ts +297 -0
- package/dist/Records.d.ts.map +1 -0
- package/dist/Records.js +171 -0
- package/dist/Records.js.map +1 -0
- package/dist/Render.d.ts +207 -0
- package/dist/Render.d.ts.map +1 -0
- package/dist/Render.js +502 -0
- package/dist/Render.js.map +1 -0
- package/dist/Rpc.d.ts +115 -0
- package/dist/Rpc.d.ts.map +1 -0
- package/dist/Rpc.js +68 -0
- package/dist/Rpc.js.map +1 -0
- package/dist/SearchLanguages.d.ts +4 -0
- package/dist/SearchLanguages.d.ts.map +1 -0
- package/dist/SearchLanguages.js +33 -0
- package/dist/SearchLanguages.js.map +1 -0
- package/dist/Service.d.ts +59 -0
- package/dist/Service.d.ts.map +1 -0
- package/dist/Service.js +38 -0
- package/dist/Service.js.map +1 -0
- package/dist/Versions.d.ts +9 -0
- package/dist/Versions.d.ts.map +1 -0
- package/dist/Versions.js +78 -0
- package/dist/Versions.js.map +1 -0
- package/dist/contracts/ActionConsent.d.ts +189 -0
- package/dist/contracts/ActionConsent.d.ts.map +1 -0
- package/dist/contracts/ActionConsent.js +129 -0
- package/dist/contracts/ActionConsent.js.map +1 -0
- package/dist/contracts/ActionRegistry.d.ts +149 -0
- package/dist/contracts/ActionRegistry.d.ts.map +1 -0
- package/dist/contracts/ActionRegistry.js +37 -0
- package/dist/contracts/ActionRegistry.js.map +1 -0
- package/dist/contracts/Actor.d.ts +129 -0
- package/dist/contracts/Actor.d.ts.map +1 -0
- package/dist/contracts/Actor.js +47 -0
- package/dist/contracts/Actor.js.map +1 -0
- package/dist/contracts/AgentResources.d.ts +248 -0
- package/dist/contracts/AgentResources.d.ts.map +1 -0
- package/dist/contracts/AgentResources.js +158 -0
- package/dist/contracts/AgentResources.js.map +1 -0
- package/dist/contracts/AgentRuntime.d.ts +453 -0
- package/dist/contracts/AgentRuntime.d.ts.map +1 -0
- package/dist/contracts/AgentRuntime.js +117 -0
- package/dist/contracts/AgentRuntime.js.map +1 -0
- package/dist/contracts/Approvals.d.ts +303 -0
- package/dist/contracts/Approvals.d.ts.map +1 -0
- package/dist/contracts/Approvals.js +117 -0
- package/dist/contracts/Approvals.js.map +1 -0
- package/dist/contracts/Audit.d.ts +510 -0
- package/dist/contracts/Audit.d.ts.map +1 -0
- package/dist/contracts/Audit.js +139 -0
- package/dist/contracts/Audit.js.map +1 -0
- package/dist/contracts/CalendarProvider.d.ts +572 -0
- package/dist/contracts/CalendarProvider.d.ts.map +1 -0
- package/dist/contracts/CalendarProvider.js +203 -0
- package/dist/contracts/CalendarProvider.js.map +1 -0
- package/dist/contracts/Capability.d.ts +197 -0
- package/dist/contracts/Capability.d.ts.map +1 -0
- package/dist/contracts/Capability.js +189 -0
- package/dist/contracts/Capability.js.map +1 -0
- package/dist/contracts/ClientSDK.d.ts +250 -0
- package/dist/contracts/ClientSDK.d.ts.map +1 -0
- package/dist/contracts/ClientSDK.js +184 -0
- package/dist/contracts/ClientSDK.js.map +1 -0
- package/dist/contracts/CollabDocument.d.ts +781 -0
- package/dist/contracts/CollabDocument.d.ts.map +1 -0
- package/dist/contracts/CollabDocument.js +364 -0
- package/dist/contracts/CollabDocument.js.map +1 -0
- package/dist/contracts/Command.d.ts +183 -0
- package/dist/contracts/Command.d.ts.map +1 -0
- package/dist/contracts/Command.js +66 -0
- package/dist/contracts/Command.js.map +1 -0
- package/dist/contracts/Connections.d.ts +612 -0
- package/dist/contracts/Connections.d.ts.map +1 -0
- package/dist/contracts/Connections.js +323 -0
- package/dist/contracts/Connections.js.map +1 -0
- package/dist/contracts/ContextAccounting.d.ts +79 -0
- package/dist/contracts/ContextAccounting.d.ts.map +1 -0
- package/dist/contracts/ContextAccounting.js +32 -0
- package/dist/contracts/ContextAccounting.js.map +1 -0
- package/dist/contracts/Daemon.d.ts +486 -0
- package/dist/contracts/Daemon.d.ts.map +1 -0
- package/dist/contracts/Daemon.js +192 -0
- package/dist/contracts/Daemon.js.map +1 -0
- package/dist/contracts/DbTx.d.ts +149 -0
- package/dist/contracts/DbTx.d.ts.map +1 -0
- package/dist/contracts/DbTx.js +94 -0
- package/dist/contracts/DbTx.js.map +1 -0
- package/dist/contracts/Delegation.d.ts +121 -0
- package/dist/contracts/Delegation.d.ts.map +1 -0
- package/dist/contracts/Delegation.js +76 -0
- package/dist/contracts/Delegation.js.map +1 -0
- package/dist/contracts/DeviceControl.d.ts +293 -0
- package/dist/contracts/DeviceControl.d.ts.map +1 -0
- package/dist/contracts/DeviceControl.js +107 -0
- package/dist/contracts/DeviceControl.js.map +1 -0
- package/dist/contracts/Directory.d.ts +492 -0
- package/dist/contracts/Directory.d.ts.map +1 -0
- package/dist/contracts/Directory.js +225 -0
- package/dist/contracts/Directory.js.map +1 -0
- package/dist/contracts/DirectoryProvider.d.ts +214 -0
- package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
- package/dist/contracts/DirectoryProvider.js +73 -0
- package/dist/contracts/DirectoryProvider.js.map +1 -0
- package/dist/contracts/DocumentSource.d.ts +190 -0
- package/dist/contracts/DocumentSource.d.ts.map +1 -0
- package/dist/contracts/DocumentSource.js +64 -0
- package/dist/contracts/DocumentSource.js.map +1 -0
- package/dist/contracts/Files.d.ts +762 -0
- package/dist/contracts/Files.d.ts.map +1 -0
- package/dist/contracts/Files.js +339 -0
- package/dist/contracts/Files.js.map +1 -0
- package/dist/contracts/Flags.d.ts +265 -0
- package/dist/contracts/Flags.d.ts.map +1 -0
- package/dist/contracts/Flags.js +197 -0
- package/dist/contracts/Flags.js.map +1 -0
- package/dist/contracts/Host.d.ts +320 -0
- package/dist/contracts/Host.d.ts.map +1 -0
- package/dist/contracts/Host.js +224 -0
- package/dist/contracts/Host.js.map +1 -0
- package/dist/contracts/HttpApi.d.ts +102 -0
- package/dist/contracts/HttpApi.d.ts.map +1 -0
- package/dist/contracts/HttpApi.js +89 -0
- package/dist/contracts/HttpApi.js.map +1 -0
- package/dist/contracts/Ingestion.d.ts +522 -0
- package/dist/contracts/Ingestion.d.ts.map +1 -0
- package/dist/contracts/Ingestion.js +275 -0
- package/dist/contracts/Ingestion.js.map +1 -0
- package/dist/contracts/Ingress.d.ts +132 -0
- package/dist/contracts/Ingress.d.ts.map +1 -0
- package/dist/contracts/Ingress.js +102 -0
- package/dist/contracts/Ingress.js.map +1 -0
- package/dist/contracts/Invocation.d.ts +361 -0
- package/dist/contracts/Invocation.d.ts.map +1 -0
- package/dist/contracts/Invocation.js +104 -0
- package/dist/contracts/Invocation.js.map +1 -0
- package/dist/contracts/LocalClient.d.ts +878 -0
- package/dist/contracts/LocalClient.d.ts.map +1 -0
- package/dist/contracts/LocalClient.js +423 -0
- package/dist/contracts/LocalClient.js.map +1 -0
- package/dist/contracts/Locale.d.ts +162 -0
- package/dist/contracts/Locale.d.ts.map +1 -0
- package/dist/contracts/Locale.js +123 -0
- package/dist/contracts/Locale.js.map +1 -0
- package/dist/contracts/MachineIdentity.d.ts +434 -0
- package/dist/contracts/MachineIdentity.d.ts.map +1 -0
- package/dist/contracts/MachineIdentity.js +223 -0
- package/dist/contracts/MachineIdentity.js.map +1 -0
- package/dist/contracts/MailProvider.d.ts +791 -0
- package/dist/contracts/MailProvider.d.ts.map +1 -0
- package/dist/contracts/MailProvider.js +237 -0
- package/dist/contracts/MailProvider.js.map +1 -0
- package/dist/contracts/Memory.d.ts +62 -0
- package/dist/contracts/Memory.d.ts.map +1 -0
- package/dist/contracts/Memory.js +43 -0
- package/dist/contracts/Memory.js.map +1 -0
- package/dist/contracts/Messaging.d.ts +154 -0
- package/dist/contracts/Messaging.d.ts.map +1 -0
- package/dist/contracts/Messaging.js +97 -0
- package/dist/contracts/Messaging.js.map +1 -0
- package/dist/contracts/Metering.d.ts +334 -0
- package/dist/contracts/Metering.d.ts.map +1 -0
- package/dist/contracts/Metering.js +202 -0
- package/dist/contracts/Metering.js.map +1 -0
- package/dist/contracts/ModelProvider.d.ts +142 -0
- package/dist/contracts/ModelProvider.d.ts.map +1 -0
- package/dist/contracts/ModelProvider.js +72 -0
- package/dist/contracts/ModelProvider.js.map +1 -0
- package/dist/contracts/ModuleManifest.d.ts +2519 -0
- package/dist/contracts/ModuleManifest.d.ts.map +1 -0
- package/dist/contracts/ModuleManifest.js +272 -0
- package/dist/contracts/ModuleManifest.js.map +1 -0
- package/dist/contracts/NotificationChannel.d.ts +378 -0
- package/dist/contracts/NotificationChannel.d.ts.map +1 -0
- package/dist/contracts/NotificationChannel.js +136 -0
- package/dist/contracts/NotificationChannel.js.map +1 -0
- package/dist/contracts/Notifications.d.ts +417 -0
- package/dist/contracts/Notifications.d.ts.map +1 -0
- package/dist/contracts/Notifications.js +267 -0
- package/dist/contracts/Notifications.js.map +1 -0
- package/dist/contracts/Outbox.d.ts +469 -0
- package/dist/contracts/Outbox.d.ts.map +1 -0
- package/dist/contracts/Outbox.js +215 -0
- package/dist/contracts/Outbox.js.map +1 -0
- package/dist/contracts/Privacy.d.ts +1029 -0
- package/dist/contracts/Privacy.d.ts.map +1 -0
- package/dist/contracts/Privacy.js +437 -0
- package/dist/contracts/Privacy.js.map +1 -0
- package/dist/contracts/Progress.d.ts +305 -0
- package/dist/contracts/Progress.d.ts.map +1 -0
- package/dist/contracts/Progress.js +174 -0
- package/dist/contracts/Progress.js.map +1 -0
- package/dist/contracts/QuerySurface.d.ts +231 -0
- package/dist/contracts/QuerySurface.d.ts.map +1 -0
- package/dist/contracts/QuerySurface.js +113 -0
- package/dist/contracts/QuerySurface.js.map +1 -0
- package/dist/contracts/Readiness.d.ts +105 -0
- package/dist/contracts/Readiness.d.ts.map +1 -0
- package/dist/contracts/Readiness.js +57 -0
- package/dist/contracts/Readiness.js.map +1 -0
- package/dist/contracts/Release.d.ts +295 -0
- package/dist/contracts/Release.d.ts.map +1 -0
- package/dist/contracts/Release.js +175 -0
- package/dist/contracts/Release.js.map +1 -0
- package/dist/contracts/ResultRendering.d.ts +533 -0
- package/dist/contracts/ResultRendering.d.ts.map +1 -0
- package/dist/contracts/ResultRendering.js +59 -0
- package/dist/contracts/ResultRendering.js.map +1 -0
- package/dist/contracts/Sandbox.d.ts +1164 -0
- package/dist/contracts/Sandbox.d.ts.map +1 -0
- package/dist/contracts/Sandbox.js +550 -0
- package/dist/contracts/Sandbox.js.map +1 -0
- package/dist/contracts/Scheduler.d.ts +814 -0
- package/dist/contracts/Scheduler.d.ts.map +1 -0
- package/dist/contracts/Scheduler.js +202 -0
- package/dist/contracts/Scheduler.js.map +1 -0
- package/dist/contracts/ScreenContext.d.ts +514 -0
- package/dist/contracts/ScreenContext.d.ts.map +1 -0
- package/dist/contracts/ScreenContext.js +272 -0
- package/dist/contracts/ScreenContext.js.map +1 -0
- package/dist/contracts/Search.d.ts +308 -0
- package/dist/contracts/Search.d.ts.map +1 -0
- package/dist/contracts/Search.js +107 -0
- package/dist/contracts/Search.js.map +1 -0
- package/dist/contracts/Secrets.d.ts +483 -0
- package/dist/contracts/Secrets.d.ts.map +1 -0
- package/dist/contracts/Secrets.js +136 -0
- package/dist/contracts/Secrets.js.map +1 -0
- package/dist/contracts/Settings.d.ts +221 -0
- package/dist/contracts/Settings.d.ts.map +1 -0
- package/dist/contracts/Settings.js +163 -0
- package/dist/contracts/Settings.js.map +1 -0
- package/dist/contracts/Sharing.d.ts +319 -0
- package/dist/contracts/Sharing.d.ts.map +1 -0
- package/dist/contracts/Sharing.js +172 -0
- package/dist/contracts/Sharing.js.map +1 -0
- package/dist/contracts/Slot.d.ts +162 -0
- package/dist/contracts/Slot.d.ts.map +1 -0
- package/dist/contracts/Slot.js +56 -0
- package/dist/contracts/Slot.js.map +1 -0
- package/dist/contracts/Space.d.ts +256 -0
- package/dist/contracts/Space.d.ts.map +1 -0
- package/dist/contracts/Space.js +133 -0
- package/dist/contracts/Space.js.map +1 -0
- package/dist/contracts/StorageAdapter.d.ts +124 -0
- package/dist/contracts/StorageAdapter.d.ts.map +1 -0
- package/dist/contracts/StorageAdapter.js +96 -0
- package/dist/contracts/StorageAdapter.js.map +1 -0
- package/dist/contracts/StorageBackend.d.ts +310 -0
- package/dist/contracts/StorageBackend.d.ts.map +1 -0
- package/dist/contracts/StorageBackend.js +196 -0
- package/dist/contracts/StorageBackend.js.map +1 -0
- package/dist/contracts/Sync.d.ts +286 -0
- package/dist/contracts/Sync.d.ts.map +1 -0
- package/dist/contracts/Sync.js +157 -0
- package/dist/contracts/Sync.js.map +1 -0
- package/dist/contracts/Telemetry.d.ts +183 -0
- package/dist/contracts/Telemetry.d.ts.map +1 -0
- package/dist/contracts/Telemetry.js +153 -0
- package/dist/contracts/Telemetry.js.map +1 -0
- package/dist/contracts/ThemeTokens.d.ts +212 -0
- package/dist/contracts/ThemeTokens.d.ts.map +1 -0
- package/dist/contracts/ThemeTokens.js +111 -0
- package/dist/contracts/ThemeTokens.js.map +1 -0
- package/dist/contracts/ToolSource.d.ts +135 -0
- package/dist/contracts/ToolSource.d.ts.map +1 -0
- package/dist/contracts/ToolSource.js +81 -0
- package/dist/contracts/ToolSource.js.map +1 -0
- package/dist/contracts/Versioning.d.ts +363 -0
- package/dist/contracts/Versioning.d.ts.map +1 -0
- package/dist/contracts/Versioning.js +201 -0
- package/dist/contracts/Versioning.js.map +1 -0
- package/dist/contracts/View.d.ts +232 -0
- package/dist/contracts/View.d.ts.map +1 -0
- package/dist/contracts/View.js +102 -0
- package/dist/contracts/View.js.map +1 -0
- package/dist/contracts/WorkItems.d.ts +242 -0
- package/dist/contracts/WorkItems.d.ts.map +1 -0
- package/dist/contracts/WorkItems.js +126 -0
- package/dist/contracts/WorkItems.js.map +1 -0
- package/dist/contracts/Workflow.d.ts +191 -0
- package/dist/contracts/Workflow.d.ts.map +1 -0
- package/dist/contracts/Workflow.js +63 -0
- package/dist/contracts/Workflow.js.map +1 -0
- package/dist/contracts/index.d.ts +75 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +196 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/devices/module.d.ts +3777 -0
- package/dist/devices/module.d.ts.map +1 -0
- package/dist/devices/module.js +179 -0
- package/dist/devices/module.js.map +1 -0
- package/dist/drizzle/Entity.d.ts +148 -0
- package/dist/drizzle/Entity.d.ts.map +1 -0
- package/dist/drizzle/Entity.js +396 -0
- package/dist/drizzle/Entity.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -3
- package/schema/Actor.json +46 -0
- package/schema/AuditRecord.json +403 -0
- package/schema/DaemonHealth.json +29 -0
- package/schema/InvocationError.json +257 -0
- package/schema/InvocationReceipt.json +253 -0
- package/schema/Lockfile.json +129 -0
- package/schema/OutboxEvent.json +36 -0
- package/schema/PairingConfirm.json +33 -0
- package/schema/PairingResult.json +18 -0
- package/schema/PairingStart.json +18 -0
- package/schema/ProvenanceEntry.json +110 -0
- package/schema/ReplayEnvelope.json +269 -0
- package/schema/Surface.json +17 -0
- package/schema/codegen/LocalClient.json +1295 -0
- package/schema/codegen/Sandbox.json +320 -0
- package/schema/contracts/ActionConsent.json +1930 -0
- package/schema/contracts/ActionRegistry.json +722 -0
- package/schema/contracts/Actor.json +451 -0
- package/schema/contracts/AgentResources.json +1400 -0
- package/schema/contracts/AgentRuntime.json +4017 -0
- package/schema/contracts/Approvals.json +2916 -0
- package/schema/contracts/Audit.json +3268 -0
- package/schema/contracts/CalendarProvider.json +5557 -0
- package/schema/contracts/ClientSDK.json +1400 -0
- package/schema/contracts/CollabDocument.json +4012 -0
- package/schema/contracts/Command.json +616 -0
- package/schema/contracts/Connections.json +6687 -0
- package/schema/contracts/ContextAccounting.json +685 -0
- package/schema/contracts/Daemon.json +4555 -0
- package/schema/contracts/DbTx.json +321 -0
- package/schema/contracts/Delegation.json +949 -0
- package/schema/contracts/DeviceControl.json +2626 -0
- package/schema/contracts/Directory.json +5168 -0
- package/schema/contracts/DirectoryProvider.json +2090 -0
- package/schema/contracts/DocumentSource.json +2044 -0
- package/schema/contracts/Files.json +4122 -0
- package/schema/contracts/Flags.json +1202 -0
- package/schema/contracts/Host.json +1769 -0
- package/schema/contracts/HttpApi.json +1615 -0
- package/schema/contracts/Ingestion.json +3211 -0
- package/schema/contracts/Ingress.json +819 -0
- package/schema/contracts/Invocation.json +2044 -0
- package/schema/contracts/LocalClient.json +6642 -0
- package/schema/contracts/Locale.json +654 -0
- package/schema/contracts/MachineIdentity.json +2303 -0
- package/schema/contracts/MailProvider.json +6663 -0
- package/schema/contracts/Memory.json +579 -0
- package/schema/contracts/Messaging.json +1764 -0
- package/schema/contracts/Metering.json +3060 -0
- package/schema/contracts/ModelProvider.json +1127 -0
- package/schema/contracts/ModuleManifest.json +9449 -0
- package/schema/contracts/NotificationChannel.json +986 -0
- package/schema/contracts/Notifications.json +4280 -0
- package/schema/contracts/Outbox.json +1451 -0
- package/schema/contracts/Privacy.json +4354 -0
- package/schema/contracts/Progress.json +1524 -0
- package/schema/contracts/QuerySurface.json +661 -0
- package/schema/contracts/Readiness.json +209 -0
- package/schema/contracts/Release.json +805 -0
- package/schema/contracts/ResultRendering.json +2859 -0
- package/schema/contracts/Sandbox.json +2286 -0
- package/schema/contracts/Scheduler.json +6138 -0
- package/schema/contracts/ScreenContext.json +1238 -0
- package/schema/contracts/Search.json +1058 -0
- package/schema/contracts/Secrets.json +2444 -0
- package/schema/contracts/Settings.json +654 -0
- package/schema/contracts/Sharing.json +2854 -0
- package/schema/contracts/Slot.json +537 -0
- package/schema/contracts/Space.json +892 -0
- package/schema/contracts/StorageAdapter.json +623 -0
- package/schema/contracts/StorageBackend.json +2421 -0
- package/schema/contracts/Sync.json +894 -0
- package/schema/contracts/Telemetry.json +696 -0
- package/schema/contracts/ThemeTokens.json +547 -0
- package/schema/contracts/ToolSource.json +1333 -0
- package/schema/contracts/Versioning.json +1481 -0
- package/schema/contracts/View.json +750 -0
- package/schema/contracts/WorkItems.json +1731 -0
- package/schema/contracts/Workflow.json +1242 -0
- package/src/Agent.ts +758 -0
- package/src/Analytics.ts +110 -0
- package/src/Approval.ts +131 -0
- package/src/Catalog.ts +192 -0
- package/src/Checklist.ts +162 -0
- package/src/Data.ts +109 -0
- package/src/Devices.ts +721 -0
- package/src/Durable.ts +240 -0
- package/src/Errors.ts +111 -0
- package/src/JsonSchema.ts +166 -0
- package/src/Manifest.ts +1147 -0
- package/src/Module.ts +640 -0
- package/src/Optimistic.ts +332 -0
- package/src/Projection.ts +207 -0
- package/src/Proposals.ts +89 -0
- package/src/Receipt.ts +125 -0
- package/src/Records.ts +197 -0
- package/src/Render.ts +515 -0
- package/src/Rpc.ts +113 -0
- package/src/SearchLanguages.ts +33 -0
- package/src/Service.ts +102 -0
- package/src/Versions.ts +69 -0
- package/src/contracts/ActionConsent.ts +150 -0
- package/src/contracts/ActionRegistry.ts +39 -0
- package/src/contracts/Actor.ts +53 -0
- package/src/contracts/AgentResources.ts +167 -0
- package/src/contracts/AgentRuntime.ts +154 -0
- package/src/contracts/Approvals.ts +133 -0
- package/src/contracts/Audit.ts +160 -0
- package/src/contracts/CalendarProvider.ts +241 -0
- package/src/contracts/Capability.ts +246 -0
- package/src/contracts/ClientSDK.ts +199 -0
- package/src/contracts/CollabDocument.ts +420 -0
- package/src/contracts/Command.ts +74 -0
- package/src/contracts/Connections.ts +360 -0
- package/src/contracts/ContextAccounting.ts +35 -0
- package/src/contracts/Daemon.ts +247 -0
- package/src/contracts/DbTx.ts +110 -0
- package/src/contracts/Delegation.ts +91 -0
- package/src/contracts/DeviceControl.ts +143 -0
- package/src/contracts/Directory.ts +384 -0
- package/src/contracts/DirectoryProvider.ts +82 -0
- package/src/contracts/DocumentSource.ts +71 -0
- package/src/contracts/Files.ts +395 -0
- package/src/contracts/Flags.ts +241 -0
- package/src/contracts/Host.ts +245 -0
- package/src/contracts/HttpApi.ts +100 -0
- package/src/contracts/Ingestion.ts +315 -0
- package/src/contracts/Ingress.ts +132 -0
- package/src/contracts/Invocation.ts +122 -0
- package/src/contracts/LocalClient.ts +614 -0
- package/src/contracts/Locale.ts +133 -0
- package/src/contracts/MachineIdentity.ts +305 -0
- package/src/contracts/MailProvider.ts +272 -0
- package/src/contracts/Memory.ts +47 -0
- package/src/contracts/Messaging.ts +108 -0
- package/src/contracts/Metering.ts +231 -0
- package/src/contracts/ModelProvider.ts +87 -0
- package/src/contracts/ModuleManifest.ts +310 -0
- package/src/contracts/NotificationChannel.ts +158 -0
- package/src/contracts/Notifications.ts +309 -0
- package/src/contracts/Outbox.ts +246 -0
- package/src/contracts/Privacy.ts +502 -0
- package/src/contracts/Progress.ts +196 -0
- package/src/contracts/QuerySurface.ts +134 -0
- package/src/contracts/Readiness.ts +67 -0
- package/src/contracts/Release.ts +199 -0
- package/src/contracts/ResultRendering.ts +65 -0
- package/src/contracts/Sandbox.ts +648 -0
- package/src/contracts/Scheduler.ts +237 -0
- package/src/contracts/ScreenContext.ts +316 -0
- package/src/contracts/Search.ts +126 -0
- package/src/contracts/Secrets.ts +162 -0
- package/src/contracts/Settings.ts +207 -0
- package/src/contracts/Sharing.ts +205 -0
- package/src/contracts/Slot.ts +61 -0
- package/src/contracts/Space.ts +157 -0
- package/src/contracts/StorageAdapter.ts +104 -0
- package/src/contracts/StorageBackend.ts +220 -0
- package/src/contracts/Sync.ts +180 -0
- package/src/contracts/Telemetry.ts +177 -0
- package/src/contracts/ThemeTokens.ts +136 -0
- package/src/contracts/ToolSource.ts +94 -0
- package/src/contracts/Versioning.ts +237 -0
- package/src/contracts/View.ts +116 -0
- package/src/contracts/WorkItems.ts +144 -0
- package/src/contracts/Workflow.ts +67 -0
- package/src/contracts/index.ts +205 -0
- package/src/devices/module.ts +201 -0
- package/src/drizzle/Entity.ts +524 -0
- package/src/index.ts +19 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { type JsonSchemaDocument } from "./JsonSchema.ts";
|
|
2
|
+
import type { Schema } from "effect";
|
|
3
|
+
export declare const catalog: {
|
|
4
|
+
readonly Actor: Schema.Struct<{
|
|
5
|
+
readonly userId: Schema.String;
|
|
6
|
+
readonly orgId: Schema.String;
|
|
7
|
+
readonly email: Schema.String;
|
|
8
|
+
readonly emailVerified: Schema.optionalKey<Schema.Boolean>;
|
|
9
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
10
|
+
readonly groups: Schema.$Array<Schema.String>;
|
|
11
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
12
|
+
}>;
|
|
13
|
+
readonly AuditRecord: Schema.Struct<{
|
|
14
|
+
readonly invocationId: Schema.String;
|
|
15
|
+
readonly action: Schema.String;
|
|
16
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
17
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
18
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
19
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
20
|
+
readonly inputHash: Schema.String;
|
|
21
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
22
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
23
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
24
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
25
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
26
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
27
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
28
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
29
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
30
|
+
readonly kind: Schema.String;
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
}>>;
|
|
33
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
34
|
+
readonly runId: Schema.String;
|
|
35
|
+
readonly conversationId: Schema.String;
|
|
36
|
+
readonly step: Schema.Number;
|
|
37
|
+
readonly toolCallId: Schema.String;
|
|
38
|
+
}>>;
|
|
39
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
40
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
41
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
42
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
43
|
+
}>>;
|
|
44
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
45
|
+
}>>>;
|
|
46
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
47
|
+
readonly entity: Schema.String;
|
|
48
|
+
readonly inserted: Schema.Number;
|
|
49
|
+
readonly updated: Schema.Number;
|
|
50
|
+
readonly deleted: Schema.Number;
|
|
51
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
52
|
+
readonly truncated: Schema.Boolean;
|
|
53
|
+
}>>>>;
|
|
54
|
+
readonly id: Schema.String;
|
|
55
|
+
readonly at: Schema.String;
|
|
56
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
57
|
+
}>;
|
|
58
|
+
readonly DaemonHealth: Schema.Struct<{
|
|
59
|
+
readonly status: Schema.Literal<"ok">;
|
|
60
|
+
readonly version: Schema.String;
|
|
61
|
+
readonly runtime: Schema.String;
|
|
62
|
+
readonly paired: Schema.Boolean;
|
|
63
|
+
}>;
|
|
64
|
+
readonly InvocationError: Schema.Union<readonly [typeof import("./Errors.ts").Unauthenticated, typeof import("./Errors.ts").Forbidden, typeof import("./Errors.ts").ApprovalRequired, typeof import("./Errors.ts").ConsentRequired, typeof import("./Errors.ts").IdempotencyConflict, typeof import("./Errors.ts").InvalidInput, typeof import("./Errors.ts").UnknownAction, typeof import("./Errors.ts").ActionFailed, typeof import("./Errors.ts").ClientOutdated]>;
|
|
65
|
+
readonly InvocationReceipt: Schema.Struct<{
|
|
66
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
67
|
+
readonly action: Schema.String;
|
|
68
|
+
readonly invocationId: Schema.String;
|
|
69
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
70
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
71
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
72
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
73
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
readonly source: Schema.String;
|
|
77
|
+
readonly type: Schema.String;
|
|
78
|
+
}>>>;
|
|
79
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
80
|
+
readonly correlationId: Schema.String;
|
|
81
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
82
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
83
|
+
readonly idempotencyKey: Schema.String;
|
|
84
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
87
|
+
readonly inserted: Schema.Number;
|
|
88
|
+
readonly updated: Schema.Number;
|
|
89
|
+
}>>;
|
|
90
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
91
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
92
|
+
readonly reason: Schema.String;
|
|
93
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
94
|
+
}>>;
|
|
95
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
96
|
+
readonly affected: Schema.Number;
|
|
97
|
+
readonly requested: Schema.Number;
|
|
98
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
99
|
+
}>>;
|
|
100
|
+
}>;
|
|
101
|
+
readonly Lockfile: Schema.Struct<{
|
|
102
|
+
readonly lockfileVersion: Schema.Literal<1>;
|
|
103
|
+
readonly items: Schema.$Record<Schema.String, Schema.Struct<{
|
|
104
|
+
readonly name: Schema.String;
|
|
105
|
+
readonly type: Schema.String;
|
|
106
|
+
readonly registry: Schema.String;
|
|
107
|
+
readonly registryVersion: Schema.String;
|
|
108
|
+
readonly contentHash: Schema.String;
|
|
109
|
+
readonly installedAt: Schema.String;
|
|
110
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
111
|
+
readonly path: Schema.String;
|
|
112
|
+
readonly sha256: Schema.String;
|
|
113
|
+
}>>;
|
|
114
|
+
readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
115
|
+
readonly item: Schema.optionalKey<Schema.String>;
|
|
116
|
+
readonly owner: Schema.optionalKey<Schema.Literals<readonly ["registry", "app"]>>;
|
|
117
|
+
readonly conflicts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
118
|
+
readonly path: Schema.String;
|
|
119
|
+
readonly reason: Schema.Literals<readonly ["content", "deleted-locally", "binary"]>;
|
|
120
|
+
}>>>;
|
|
121
|
+
readonly updatedFrom: Schema.optionalKey<Schema.Struct<{
|
|
122
|
+
readonly registryVersion: Schema.String;
|
|
123
|
+
readonly contentHash: Schema.String;
|
|
124
|
+
}>>;
|
|
125
|
+
readonly updatedAt: Schema.optionalKey<Schema.String>;
|
|
126
|
+
}>>;
|
|
127
|
+
}>;
|
|
128
|
+
readonly OutboxEvent: Schema.Struct<{
|
|
129
|
+
readonly id: Schema.String;
|
|
130
|
+
readonly invocationId: Schema.String;
|
|
131
|
+
readonly type: Schema.String;
|
|
132
|
+
readonly module: Schema.String;
|
|
133
|
+
readonly orgId: Schema.String;
|
|
134
|
+
readonly payload: Schema.Unknown;
|
|
135
|
+
readonly occurredAt: Schema.String;
|
|
136
|
+
}>;
|
|
137
|
+
readonly PairingConfirm: Schema.Struct<{
|
|
138
|
+
readonly pairingId: Schema.String;
|
|
139
|
+
readonly code: Schema.String;
|
|
140
|
+
readonly clientName: Schema.String;
|
|
141
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["shell", "browser-extension", "cli", "computer-use", "desktop-app"]>>;
|
|
142
|
+
}>;
|
|
143
|
+
readonly PairingResult: Schema.Struct<{
|
|
144
|
+
readonly clientId: Schema.String;
|
|
145
|
+
readonly token: Schema.String;
|
|
146
|
+
}>;
|
|
147
|
+
readonly PairingStart: Schema.Struct<{
|
|
148
|
+
readonly pairingId: Schema.String;
|
|
149
|
+
readonly expiresAt: Schema.String;
|
|
150
|
+
}>;
|
|
151
|
+
readonly ProvenanceEntry: Schema.Struct<{
|
|
152
|
+
readonly name: Schema.String;
|
|
153
|
+
readonly type: Schema.String;
|
|
154
|
+
readonly registry: Schema.String;
|
|
155
|
+
readonly registryVersion: Schema.String;
|
|
156
|
+
readonly contentHash: Schema.String;
|
|
157
|
+
readonly installedAt: Schema.String;
|
|
158
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
159
|
+
readonly path: Schema.String;
|
|
160
|
+
readonly sha256: Schema.String;
|
|
161
|
+
}>>;
|
|
162
|
+
readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
163
|
+
readonly item: Schema.optionalKey<Schema.String>;
|
|
164
|
+
readonly owner: Schema.optionalKey<Schema.Literals<readonly ["registry", "app"]>>;
|
|
165
|
+
readonly conflicts: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
166
|
+
readonly path: Schema.String;
|
|
167
|
+
readonly reason: Schema.Literals<readonly ["content", "deleted-locally", "binary"]>;
|
|
168
|
+
}>>>;
|
|
169
|
+
readonly updatedFrom: Schema.optionalKey<Schema.Struct<{
|
|
170
|
+
readonly registryVersion: Schema.String;
|
|
171
|
+
readonly contentHash: Schema.String;
|
|
172
|
+
}>>;
|
|
173
|
+
readonly updatedAt: Schema.optionalKey<Schema.String>;
|
|
174
|
+
}>;
|
|
175
|
+
readonly ReplayEnvelope: Schema.Struct<{
|
|
176
|
+
readonly kind: Schema.Literal<"replay">;
|
|
177
|
+
readonly receipt: Schema.Struct<{
|
|
178
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
179
|
+
readonly action: Schema.String;
|
|
180
|
+
readonly invocationId: Schema.String;
|
|
181
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
182
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
183
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
184
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
185
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
186
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
187
|
+
readonly id: Schema.String;
|
|
188
|
+
readonly source: Schema.String;
|
|
189
|
+
readonly type: Schema.String;
|
|
190
|
+
}>>>;
|
|
191
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
192
|
+
readonly correlationId: Schema.String;
|
|
193
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
194
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
195
|
+
readonly idempotencyKey: Schema.String;
|
|
196
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
199
|
+
readonly inserted: Schema.Number;
|
|
200
|
+
readonly updated: Schema.Number;
|
|
201
|
+
}>>;
|
|
202
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
203
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
204
|
+
readonly reason: Schema.String;
|
|
205
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
206
|
+
}>>;
|
|
207
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
208
|
+
readonly affected: Schema.Number;
|
|
209
|
+
readonly requested: Schema.Number;
|
|
210
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
211
|
+
}>>;
|
|
212
|
+
}>;
|
|
213
|
+
}>;
|
|
214
|
+
readonly Surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
215
|
+
};
|
|
216
|
+
/** A set of published types emitted as one document for native code generation (`codegen/<name>.json`). */
|
|
217
|
+
export interface CodegenSource {
|
|
218
|
+
readonly name: string;
|
|
219
|
+
readonly description: string;
|
|
220
|
+
readonly version: string;
|
|
221
|
+
readonly types: Readonly<Record<string, Schema.Top>>;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* What native clients generate types from (decision 14), each emitted as one bundle, `codegen/<name>.json`: the
|
|
225
|
+
* LocalClient contract, and Sandbox's view runtime types a native MAKE renderer draws (the tree, its element, props
|
|
226
|
+
* and calls, each named, so a generator renames nothing).
|
|
227
|
+
*/
|
|
228
|
+
export declare const codegenSources: ReadonlyArray<CodegenSource>;
|
|
229
|
+
/**
|
|
230
|
+
* A set of types as one JSON Schema document for code generators (typify): every published type, and every type it
|
|
231
|
+
* refers to, under `$defs` by its own name (the `Encoded` suffix Effect gives tagged errors dropped), a union whose
|
|
232
|
+
* variants are objects tagged by one property (`type`, `state`, `_tag`) written as `oneOf`, so it becomes a tagged
|
|
233
|
+
* enum, and Effect's empty-struct and non-finite-number encodings simplified (`forGenerators`).
|
|
234
|
+
*/
|
|
235
|
+
export declare const codegenBundle: (contract: CodegenSource) => JsonSchemaDocument;
|
|
236
|
+
/** File path (relative to `schema/`) to JSON Schema document, in a stable order. */
|
|
237
|
+
export declare const emitCatalog: () => ReadonlyArray<readonly [string, JsonSchemaDocument]>;
|
|
238
|
+
//# sourceMappingURL=Catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../src/Catalog.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcV,CAAA;AAEV,2GAA2G;AAC3G,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;CACrD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,aAAa,CAkBvD,CAAA;AA+DD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,kBA6CvD,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,WAAW,QAAO,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAMjF,CAAA"}
|
package/dist/Catalog.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/** Every kernel-level contract that is published as JSON Schema (`schema/*.json`, `schema/contracts/*.json`). */
|
|
2
|
+
import { InvocationError } from "./Errors.js";
|
|
3
|
+
import { Actor, AuditRecord, Lockfile, OutboxEvent, ProvenanceEntry, Surface } from "./Records.js";
|
|
4
|
+
import { DaemonHealth, PairingConfirm, PairingResult, PairingStart } from "./Devices.js";
|
|
5
|
+
import { serviceContracts } from "./contracts/index.js";
|
|
6
|
+
import { LocalClientContract } from "./contracts/LocalClient.js";
|
|
7
|
+
import { MakeViewCall, MakeViewElement, MakeViewMessage, MakeViewNode, MakeViewPropValue, MakeViewProps, MakeViewStep, SandboxContract, } from "./contracts/Sandbox.js";
|
|
8
|
+
import { toJsonSchema } from "./JsonSchema.js";
|
|
9
|
+
import { InvocationReceipt, ReplayEnvelope } from "./Receipt.js";
|
|
10
|
+
import { serviceToJson } from "./Service.js";
|
|
11
|
+
export const catalog = {
|
|
12
|
+
Actor,
|
|
13
|
+
AuditRecord,
|
|
14
|
+
DaemonHealth,
|
|
15
|
+
InvocationError,
|
|
16
|
+
InvocationReceipt,
|
|
17
|
+
Lockfile,
|
|
18
|
+
OutboxEvent,
|
|
19
|
+
PairingConfirm,
|
|
20
|
+
PairingResult,
|
|
21
|
+
PairingStart,
|
|
22
|
+
ProvenanceEntry,
|
|
23
|
+
ReplayEnvelope,
|
|
24
|
+
Surface,
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* What native clients generate types from (decision 14), each emitted as one bundle, `codegen/<name>.json`: the
|
|
28
|
+
* LocalClient contract, and Sandbox's view runtime types a native MAKE renderer draws (the tree, its element, props
|
|
29
|
+
* and calls, each named, so a generator renames nothing).
|
|
30
|
+
*/
|
|
31
|
+
export const codegenSources = [
|
|
32
|
+
LocalClientContract,
|
|
33
|
+
{
|
|
34
|
+
name: "Sandbox",
|
|
35
|
+
description: "The MAKE view runtime's types for native renderers (Sandbox contract): one step of a view (its state, the calls " +
|
|
36
|
+
"it asks for, the tree), the tree's node and element, an element's props, a call and the messages a view is told.",
|
|
37
|
+
version: SandboxContract.version,
|
|
38
|
+
types: {
|
|
39
|
+
MakeViewStep,
|
|
40
|
+
MakeViewMessage,
|
|
41
|
+
MakeViewNode,
|
|
42
|
+
MakeViewElement,
|
|
43
|
+
MakeViewProps,
|
|
44
|
+
MakeViewPropValue,
|
|
45
|
+
MakeViewCall,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
const rewriteRefs = (value, rename) => {
|
|
50
|
+
if (Array.isArray(value))
|
|
51
|
+
return value.map((item) => rewriteRefs(item, rename));
|
|
52
|
+
if (typeof value !== "object" || value === null)
|
|
53
|
+
return value;
|
|
54
|
+
const out = {};
|
|
55
|
+
for (const [key, field] of Object.entries(value)) {
|
|
56
|
+
out[key] =
|
|
57
|
+
key === "$ref" && typeof field === "string" && field.startsWith("#/$defs/")
|
|
58
|
+
? `#/$defs/${rename(field.slice("#/$defs/".length))}`
|
|
59
|
+
: rewriteRefs(field, rename);
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
};
|
|
63
|
+
/** The single-value property every variant of `anyOf` (all `$ref`s) is tagged by, if there is one. */
|
|
64
|
+
const tagOf = (variants, defs) => {
|
|
65
|
+
const objects = variants.map((variant) => {
|
|
66
|
+
const ref = variant.$ref;
|
|
67
|
+
return typeof ref === "string" ? defs[ref.slice("#/$defs/".length)] : undefined;
|
|
68
|
+
});
|
|
69
|
+
if (objects.some((object) => object?.type !== "object"))
|
|
70
|
+
return undefined;
|
|
71
|
+
for (const candidate of ["type", "state", "_tag"]) {
|
|
72
|
+
const values = objects.map((object) => object.properties?.[candidate]?.enum);
|
|
73
|
+
if (values.every((value) => Array.isArray(value) && value.length === 1) &&
|
|
74
|
+
new Set(values.map((value) => value[0])).size === values.length &&
|
|
75
|
+
objects.every((object) => object.required?.includes(candidate))) {
|
|
76
|
+
return candidate;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return undefined;
|
|
80
|
+
};
|
|
81
|
+
const NOT_NULL = JSON.stringify({ type: "null" });
|
|
82
|
+
const NON_FINITE = JSON.stringify({ type: "string", enum: ["Infinity", "-Infinity", "NaN"] });
|
|
83
|
+
const ANY_STRING = JSON.stringify({ type: "string" });
|
|
84
|
+
/**
|
|
85
|
+
* Two of Effect's encodings a generator reads poorly, rewritten for it: an empty struct (`{ not: { type: "null" } }`,
|
|
86
|
+
* any value but null) is `{ type: "object" }` (a request body is always an object), and the strings Effect accepts
|
|
87
|
+
* for non-finite numbers (`"Infinity"`, `"-Infinity"`, `"NaN"`) are dropped from an `anyOf` that already allows any
|
|
88
|
+
* string.
|
|
89
|
+
*/
|
|
90
|
+
const forGenerators = (value) => {
|
|
91
|
+
if (Array.isArray(value))
|
|
92
|
+
return value.map(forGenerators);
|
|
93
|
+
if (typeof value !== "object" || value === null)
|
|
94
|
+
return value;
|
|
95
|
+
const out = {};
|
|
96
|
+
for (const [key, field] of Object.entries(value)) {
|
|
97
|
+
if (key === "not" && JSON.stringify(field) === NOT_NULL) {
|
|
98
|
+
out["type"] = "object";
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (key === "anyOf" && Array.isArray(field) && field.some((v) => JSON.stringify(v) === ANY_STRING)) {
|
|
102
|
+
out[key] = field.filter((v) => JSON.stringify(v) !== NON_FINITE).map(forGenerators);
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
out[key] = forGenerators(field);
|
|
106
|
+
}
|
|
107
|
+
return out;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* A set of types as one JSON Schema document for code generators (typify): every published type, and every type it
|
|
111
|
+
* refers to, under `$defs` by its own name (the `Encoded` suffix Effect gives tagged errors dropped), a union whose
|
|
112
|
+
* variants are objects tagged by one property (`type`, `state`, `_tag`) written as `oneOf`, so it becomes a tagged
|
|
113
|
+
* enum, and Effect's empty-struct and non-finite-number encodings simplified (`forGenerators`).
|
|
114
|
+
*/
|
|
115
|
+
export const codegenBundle = (contract) => {
|
|
116
|
+
const defs = {};
|
|
117
|
+
const add = (name, schema) => {
|
|
118
|
+
const existing = defs[name];
|
|
119
|
+
if (existing !== undefined && JSON.stringify(existing) !== JSON.stringify(schema)) {
|
|
120
|
+
throw new Error(`${contract.name}: two different types are both named ${name}`);
|
|
121
|
+
}
|
|
122
|
+
defs[name] = schema;
|
|
123
|
+
};
|
|
124
|
+
for (const [name, schema] of Object.entries(contract.types)) {
|
|
125
|
+
const { $schema: _, $defs, ...document } = toJsonSchema(schema);
|
|
126
|
+
for (const [def, definition] of Object.entries(($defs ?? {})))
|
|
127
|
+
add(def, definition);
|
|
128
|
+
const ref = document["$ref"];
|
|
129
|
+
if (typeof ref !== "string" || ref !== `#/$defs/${name}` || Object.keys(document).length !== 1)
|
|
130
|
+
add(name, document);
|
|
131
|
+
}
|
|
132
|
+
const names = new Set(Object.keys(defs));
|
|
133
|
+
const rename = (name) => {
|
|
134
|
+
const short = name.endsWith("Encoded") ? name.slice(0, -"Encoded".length) : name;
|
|
135
|
+
return short !== name && !names.has(short) ? short : name;
|
|
136
|
+
};
|
|
137
|
+
const renamed = {};
|
|
138
|
+
for (const [name, definition] of Object.entries(defs)) {
|
|
139
|
+
renamed[rename(name)] = forGenerators(rewriteRefs(definition, rename));
|
|
140
|
+
}
|
|
141
|
+
for (const definition of Object.values(renamed)) {
|
|
142
|
+
const variants = definition.anyOf;
|
|
143
|
+
if (variants === undefined)
|
|
144
|
+
continue;
|
|
145
|
+
const tag = tagOf(variants, renamed);
|
|
146
|
+
if (tag === undefined)
|
|
147
|
+
continue;
|
|
148
|
+
delete definition.anyOf;
|
|
149
|
+
definition.oneOf = variants;
|
|
150
|
+
}
|
|
151
|
+
const sorted = Object.fromEntries(Object.keys(renamed)
|
|
152
|
+
.sort()
|
|
153
|
+
.map((name) => [name, renamed[name]]));
|
|
154
|
+
return {
|
|
155
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
156
|
+
$id: `https://eloxiv.dev/schema/codegen/${contract.name}.json`,
|
|
157
|
+
title: contract.name,
|
|
158
|
+
description: contract.description,
|
|
159
|
+
version: contract.version,
|
|
160
|
+
$defs: sorted,
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/** File path (relative to `schema/`) to JSON Schema document, in a stable order. */
|
|
164
|
+
export const emitCatalog = () => [
|
|
165
|
+
...Object.entries(catalog).map(([name, schema]) => [`${name}.json`, { title: name, ...toJsonSchema(schema) }]),
|
|
166
|
+
...serviceContracts.map((contract) => [`contracts/${contract.name}.json`, serviceToJson(contract)]),
|
|
167
|
+
...codegenSources.map((source) => [`codegen/${source.name}.json`, codegenBundle(source)]),
|
|
168
|
+
];
|
|
169
|
+
//# sourceMappingURL=Catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../src/Catalog.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAClG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,YAAY,EAA2B,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MA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
|
+
/**
|
|
2
|
+
* Setup checklists (the onboarding a module or app declares, ledger B-067): named lists of steps a person (or an
|
|
3
|
+
* organisation) completes, dismisses and reopens, and a list they collapse or dismiss as a whole. A checklist's state
|
|
4
|
+
* is a Settings value (docs/contracts/settings.md) under the checklist's key, so it is durable, follows the person to
|
|
5
|
+
* every device (a `user` checklist's value syncs to each of their replicas), is written through the one invocation
|
|
6
|
+
* path (`settings.set`, which the person's agent can call as they could), and is audited. This module is the
|
|
7
|
+
* declaration and the pure state: `defineChecklist` gives the setting to declare in the manifest (`settings`), the
|
|
8
|
+
* transitions compute the next value to write, and `checklistSummary` what a screen or an agent shows.
|
|
9
|
+
*/
|
|
10
|
+
import { Schema } from "effect";
|
|
11
|
+
import type { SettingDeclaration } from "./Manifest.ts";
|
|
12
|
+
export declare const ChecklistStepState: Schema.Struct<{
|
|
13
|
+
readonly status: Schema.Literals<readonly ["done", "dismissed"]>;
|
|
14
|
+
/** When it was done or dismissed (ISO 8601). */
|
|
15
|
+
readonly at: Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
export type ChecklistStepState = typeof ChecklistStepState.Type;
|
|
18
|
+
/** What is stored: the steps done or dismissed (others are open), and whether the list is collapsed or dismissed. */
|
|
19
|
+
export declare const ChecklistState: Schema.Struct<{
|
|
20
|
+
readonly steps: Schema.$Record<Schema.String, Schema.Struct<{
|
|
21
|
+
readonly status: Schema.Literals<readonly ["done", "dismissed"]>;
|
|
22
|
+
/** When it was done or dismissed (ISO 8601). */
|
|
23
|
+
readonly at: Schema.String;
|
|
24
|
+
}>>;
|
|
25
|
+
readonly collapsed: Schema.Boolean;
|
|
26
|
+
readonly dismissed: Schema.Boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export type ChecklistState = typeof ChecklistState.Type;
|
|
29
|
+
export declare const EMPTY_CHECKLIST: ChecklistState;
|
|
30
|
+
export interface ChecklistStep {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly title: string;
|
|
33
|
+
readonly description?: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface Checklist {
|
|
36
|
+
/** The setting's key, in its module's namespace (`mail.setup`). */
|
|
37
|
+
readonly key: string;
|
|
38
|
+
readonly title: string;
|
|
39
|
+
readonly description: string;
|
|
40
|
+
/** `user`: each person's own progress; `org`: one shared list, which organisation administrators complete. */
|
|
41
|
+
readonly scope: "user" | "org";
|
|
42
|
+
readonly steps: ReadonlyArray<ChecklistStep>;
|
|
43
|
+
/** The setting to declare in the module's manifest under `key` (`settings: { [key]: checklist.setting }`). */
|
|
44
|
+
readonly setting: SettingDeclaration<typeof ChecklistState>;
|
|
45
|
+
}
|
|
46
|
+
export declare const defineChecklist: (checklist: {
|
|
47
|
+
readonly key: string;
|
|
48
|
+
readonly title: string;
|
|
49
|
+
readonly description: string;
|
|
50
|
+
readonly scope?: "user" | "org";
|
|
51
|
+
readonly steps: ReadonlyArray<ChecklistStep>;
|
|
52
|
+
}) => Checklist;
|
|
53
|
+
/** The step is done. A step the checklist does not declare changes nothing. */
|
|
54
|
+
export declare const completeStep: (checklist: Checklist, state: ChecklistState, step: string, at: string) => ChecklistState;
|
|
55
|
+
/** The step is skipped: not done, no longer asked for. */
|
|
56
|
+
export declare const dismissStep: (checklist: Checklist, state: ChecklistState, step: string, at: string) => ChecklistState;
|
|
57
|
+
/** The step is open again (done or dismissed before). */
|
|
58
|
+
export declare const reopenStep: (checklist: Checklist, state: ChecklistState, step: string) => ChecklistState;
|
|
59
|
+
/** The list is folded away (or unfolded); its steps are kept. */
|
|
60
|
+
export declare const collapseChecklist: (state: ChecklistState, collapsed: boolean) => ChecklistState;
|
|
61
|
+
/** The whole list is dismissed (not shown again), or shown again; its steps are kept. */
|
|
62
|
+
export declare const dismissChecklist: (state: ChecklistState, dismissed: boolean) => ChecklistState;
|
|
63
|
+
export interface ChecklistSummary {
|
|
64
|
+
readonly key: string;
|
|
65
|
+
readonly title: string;
|
|
66
|
+
readonly steps: ReadonlyArray<ChecklistStep & {
|
|
67
|
+
readonly status: "open" | "done" | "dismissed";
|
|
68
|
+
readonly at: string | null;
|
|
69
|
+
}>;
|
|
70
|
+
readonly total: number;
|
|
71
|
+
readonly done: number;
|
|
72
|
+
readonly dismissed: number;
|
|
73
|
+
readonly open: number;
|
|
74
|
+
/** Every step done or dismissed. */
|
|
75
|
+
readonly complete: boolean;
|
|
76
|
+
readonly collapsed: boolean;
|
|
77
|
+
/** The whole list was dismissed. */
|
|
78
|
+
readonly listDismissed: boolean;
|
|
79
|
+
/** Whether to show it at all: neither dismissed nor complete. */
|
|
80
|
+
readonly visible: boolean;
|
|
81
|
+
}
|
|
82
|
+
/** What to show of a checklist: its declared steps in order with their status (a step no longer declared is ignored). */
|
|
83
|
+
export declare const checklistSummary: (checklist: Checklist, state: ChecklistState) => ChecklistSummary;
|
|
84
|
+
/** The `settings.set` input that stores `state` for `checklist` (at its scope's level). */
|
|
85
|
+
export declare const checklistWrite: (checklist: Checklist, state: ChecklistState) => {
|
|
86
|
+
key: string;
|
|
87
|
+
value: {
|
|
88
|
+
readonly steps: {
|
|
89
|
+
readonly [x: string]: {
|
|
90
|
+
readonly status: "dismissed" | "done";
|
|
91
|
+
readonly at: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly collapsed: boolean;
|
|
95
|
+
readonly dismissed: boolean;
|
|
96
|
+
};
|
|
97
|
+
level: "org" | "user";
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=Checklist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checklist.d.ts","sourceRoot":"","sources":["../src/Checklist.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,eAAO,MAAM,kBAAkB;;IAE7B,gDAAgD;;EAEhD,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO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;;;;IACL,KAAK;CACL,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Setup checklists (the onboarding a module or app declares, ledger B-067): named lists of steps a person (or an
|
|
3
|
+
* organisation) completes, dismisses and reopens, and a list they collapse or dismiss as a whole. A checklist's state
|
|
4
|
+
* is a Settings value (docs/contracts/settings.md) under the checklist's key, so it is durable, follows the person to
|
|
5
|
+
* every device (a `user` checklist's value syncs to each of their replicas), is written through the one invocation
|
|
6
|
+
* path (`settings.set`, which the person's agent can call as they could), and is audited. This module is the
|
|
7
|
+
* declaration and the pure state: `defineChecklist` gives the setting to declare in the manifest (`settings`), the
|
|
8
|
+
* transitions compute the next value to write, and `checklistSummary` what a screen or an agent shows.
|
|
9
|
+
*/
|
|
10
|
+
import { Schema } from "effect";
|
|
11
|
+
export const ChecklistStepState = Schema.Struct({
|
|
12
|
+
status: Schema.Literals(["done", "dismissed"]),
|
|
13
|
+
/** When it was done or dismissed (ISO 8601). */
|
|
14
|
+
at: Schema.String,
|
|
15
|
+
});
|
|
16
|
+
/** What is stored: the steps done or dismissed (others are open), and whether the list is collapsed or dismissed. */
|
|
17
|
+
export const ChecklistState = Schema.Struct({
|
|
18
|
+
steps: Schema.Record(Schema.String, ChecklistStepState),
|
|
19
|
+
collapsed: Schema.Boolean,
|
|
20
|
+
dismissed: Schema.Boolean,
|
|
21
|
+
});
|
|
22
|
+
export const EMPTY_CHECKLIST = { steps: {}, collapsed: false, dismissed: false };
|
|
23
|
+
const STEP_ID = /^[a-z][a-z0-9_-]{0,63}$/u;
|
|
24
|
+
export const defineChecklist = (checklist) => {
|
|
25
|
+
if (checklist.steps.length === 0)
|
|
26
|
+
throw new Error(`Checklist ${checklist.key} has no steps`);
|
|
27
|
+
const ids = new Set();
|
|
28
|
+
for (const step of checklist.steps) {
|
|
29
|
+
if (!STEP_ID.test(step.id))
|
|
30
|
+
throw new Error(`Checklist ${checklist.key}: step id ${step.id} is not a lower-case id`);
|
|
31
|
+
if (ids.has(step.id))
|
|
32
|
+
throw new Error(`Checklist ${checklist.key} has two steps ${step.id}`);
|
|
33
|
+
ids.add(step.id);
|
|
34
|
+
}
|
|
35
|
+
const scope = checklist.scope ?? "user";
|
|
36
|
+
return {
|
|
37
|
+
key: checklist.key,
|
|
38
|
+
title: checklist.title,
|
|
39
|
+
description: checklist.description,
|
|
40
|
+
scope,
|
|
41
|
+
steps: checklist.steps,
|
|
42
|
+
setting: {
|
|
43
|
+
description: `${checklist.title}: the setup checklist's progress (${checklist.description})`,
|
|
44
|
+
scope,
|
|
45
|
+
schema: ChecklistState,
|
|
46
|
+
default: EMPTY_CHECKLIST,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const declared = (checklist, step) => checklist.steps.some((s) => s.id === step);
|
|
51
|
+
const withStep = (state, step, value) => {
|
|
52
|
+
const steps = { ...state.steps };
|
|
53
|
+
if (value === undefined)
|
|
54
|
+
delete steps[step];
|
|
55
|
+
else
|
|
56
|
+
steps[step] = value;
|
|
57
|
+
return { ...state, steps };
|
|
58
|
+
};
|
|
59
|
+
/** The step is done. A step the checklist does not declare changes nothing. */
|
|
60
|
+
export const completeStep = (checklist, state, step, at) => declared(checklist, step) ? withStep(state, step, { status: "done", at }) : state;
|
|
61
|
+
/** The step is skipped: not done, no longer asked for. */
|
|
62
|
+
export const dismissStep = (checklist, state, step, at) => declared(checklist, step) ? withStep(state, step, { status: "dismissed", at }) : state;
|
|
63
|
+
/** The step is open again (done or dismissed before). */
|
|
64
|
+
export const reopenStep = (checklist, state, step) => declared(checklist, step) ? withStep(state, step, undefined) : state;
|
|
65
|
+
/** The list is folded away (or unfolded); its steps are kept. */
|
|
66
|
+
export const collapseChecklist = (state, collapsed) => ({
|
|
67
|
+
...state,
|
|
68
|
+
collapsed,
|
|
69
|
+
});
|
|
70
|
+
/** The whole list is dismissed (not shown again), or shown again; its steps are kept. */
|
|
71
|
+
export const dismissChecklist = (state, dismissed) => ({
|
|
72
|
+
...state,
|
|
73
|
+
dismissed,
|
|
74
|
+
collapsed: dismissed ? state.collapsed : false,
|
|
75
|
+
});
|
|
76
|
+
/** What to show of a checklist: its declared steps in order with their status (a step no longer declared is ignored). */
|
|
77
|
+
export const checklistSummary = (checklist, state) => {
|
|
78
|
+
const steps = checklist.steps.map((step) => {
|
|
79
|
+
const stored = state.steps[step.id];
|
|
80
|
+
return { ...step, status: stored?.status ?? "open", at: stored?.at ?? null };
|
|
81
|
+
});
|
|
82
|
+
const done = steps.filter((s) => s.status === "done").length;
|
|
83
|
+
const dismissed = steps.filter((s) => s.status === "dismissed").length;
|
|
84
|
+
const open = steps.length - done - dismissed;
|
|
85
|
+
return {
|
|
86
|
+
key: checklist.key,
|
|
87
|
+
title: checklist.title,
|
|
88
|
+
steps,
|
|
89
|
+
total: steps.length,
|
|
90
|
+
done,
|
|
91
|
+
dismissed,
|
|
92
|
+
open,
|
|
93
|
+
complete: open === 0,
|
|
94
|
+
collapsed: state.collapsed,
|
|
95
|
+
listDismissed: state.dismissed,
|
|
96
|
+
visible: !state.dismissed && open > 0,
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
/** The `settings.set` input that stores `state` for `checklist` (at its scope's level). */
|
|
100
|
+
export const checklistWrite = (checklist, state) => ({
|
|
101
|
+
key: checklist.key,
|
|
102
|
+
value: Schema.encodeSync(ChecklistState)(state),
|
|
103
|
+
level: checklist.scope,
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=Checklist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checklist.js","sourceRoot":"","sources":["../src/Checklist.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,WAA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