@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,363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Versioning: module versions and record history. Documented in docs/contracts/versioning.md; conformance kit
|
|
3
|
+
* `@eloxiv/testing/conformance/Versioning`.
|
|
4
|
+
*
|
|
5
|
+
* **Module versions.** A module's manifest has a `version` and may declare the kernel versions it works with
|
|
6
|
+
* (`kernel`, a range such as `>=0.1.0 <2.0.0` or `^1.2.0`). Setup refuses, before it changes anything, a module
|
|
7
|
+
* whose range the kernel's version is outside, and a module older than the version installed (a downgrade); it
|
|
8
|
+
* records each module's installed version and every change of version (from, to, the kernel's version, when) in
|
|
9
|
+
* one transaction with the migrations and hardening, so the record never disagrees with the schema.
|
|
10
|
+
*
|
|
11
|
+
* **Record history.** An entity that opts in (`history: true` on its contract) gets an append-only history: every
|
|
12
|
+
* change an action makes to one of its records (insert, update, delete) is recorded with the record as the
|
|
13
|
+
* action left it (as it was, for a delete), the acting person, the action and its invocation id, in the
|
|
14
|
+
* action's transaction. Modules cannot write or change it. History is read through the record's own read policy,
|
|
15
|
+
* applied to the record's latest state (the current row, or the last recorded one once deleted): whoever may read
|
|
16
|
+
* the record may read its history, nobody else. Restore is an action: a module declares one (with its own policy)
|
|
17
|
+
* and its handler calls `ctx.history.restore`, which writes the chosen version back as that action, so the
|
|
18
|
+
* restore is authorised, audited and recorded in the history like any change.
|
|
19
|
+
*
|
|
20
|
+
* **Agent edit groups.** Every change an agent run makes is kept with the run, the conversation and the message that
|
|
21
|
+
* started it (a sub-agent's with its parent's): its record versions, and an autosave of each collaborative document
|
|
22
|
+
* it changed. `versioning.agentEdits` lists a group (one message's run, or every run of a conversation), and a
|
|
23
|
+
* revert undoes exactly that group's changes: a record's through `ctx.history.revert` in the module's own action, a
|
|
24
|
+
* document's through `collab.revert`; what someone changed since stays.
|
|
25
|
+
*/
|
|
26
|
+
import { Schema } from "effect";
|
|
27
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
|
|
28
|
+
export declare const ModuleVersion: Schema.Struct<{
|
|
29
|
+
readonly module: Schema.String;
|
|
30
|
+
readonly version: Schema.String;
|
|
31
|
+
/** The kernel versions it declares it works with (`*` when it declares none). */
|
|
32
|
+
readonly kernelRange: Schema.String;
|
|
33
|
+
readonly installedAt: Schema.Number;
|
|
34
|
+
readonly updatedAt: Schema.Number;
|
|
35
|
+
}>;
|
|
36
|
+
export type ModuleVersion = typeof ModuleVersion.Type;
|
|
37
|
+
export declare const ModuleUpgrade: Schema.Struct<{
|
|
38
|
+
readonly module: Schema.String;
|
|
39
|
+
/** `null` for the first install. */
|
|
40
|
+
readonly fromVersion: Schema.NullOr<Schema.String>;
|
|
41
|
+
readonly toVersion: Schema.String;
|
|
42
|
+
readonly kernelVersion: Schema.String;
|
|
43
|
+
readonly at: Schema.Number;
|
|
44
|
+
}>;
|
|
45
|
+
export type ModuleUpgrade = typeof ModuleUpgrade.Type;
|
|
46
|
+
export declare const ModuleVersions: Schema.Struct<{
|
|
47
|
+
readonly kernelVersion: Schema.String;
|
|
48
|
+
readonly modules: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly module: Schema.String;
|
|
50
|
+
readonly version: Schema.String;
|
|
51
|
+
/** The kernel versions it declares it works with (`*` when it declares none). */
|
|
52
|
+
readonly kernelRange: Schema.String;
|
|
53
|
+
readonly installedAt: Schema.Number;
|
|
54
|
+
readonly updatedAt: Schema.Number;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly history: Schema.$Array<Schema.Struct<{
|
|
57
|
+
readonly module: Schema.String;
|
|
58
|
+
/** `null` for the first install. */
|
|
59
|
+
readonly fromVersion: Schema.NullOr<Schema.String>;
|
|
60
|
+
readonly toVersion: Schema.String;
|
|
61
|
+
readonly kernelVersion: Schema.String;
|
|
62
|
+
readonly at: Schema.Number;
|
|
63
|
+
}>>;
|
|
64
|
+
}>;
|
|
65
|
+
export { satisfiesRange } from "../Versions.ts";
|
|
66
|
+
export declare const HistoryOp: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
67
|
+
export type HistoryOp = typeof HistoryOp.Type;
|
|
68
|
+
/** The agent run a change was made by, and the conversation and message that started it (its edit group). */
|
|
69
|
+
export declare const AgentEdit: Schema.Struct<{
|
|
70
|
+
readonly runId: Schema.String;
|
|
71
|
+
readonly conversationId: Schema.String;
|
|
72
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
73
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
74
|
+
}>;
|
|
75
|
+
export type AgentEdit = typeof AgentEdit.Type;
|
|
76
|
+
/** One version of a record. */
|
|
77
|
+
export declare const RecordVersion: Schema.Struct<{
|
|
78
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
79
|
+
readonly version: Schema.Number;
|
|
80
|
+
readonly op: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
81
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
82
|
+
readonly snapshot: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
83
|
+
readonly actorUserId: Schema.String;
|
|
84
|
+
readonly action: Schema.String;
|
|
85
|
+
readonly invocationId: Schema.String;
|
|
86
|
+
readonly at: Schema.Number;
|
|
87
|
+
/** The agent run that made the change, when one did. */
|
|
88
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
89
|
+
readonly runId: Schema.String;
|
|
90
|
+
readonly conversationId: Schema.String;
|
|
91
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
92
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
93
|
+
}>>;
|
|
94
|
+
}>;
|
|
95
|
+
export type RecordVersion = typeof RecordVersion.Type;
|
|
96
|
+
/**
|
|
97
|
+
* A record of an entity with history: `<module>.<entity>` (`notes.note`) and its primary key. The contract names
|
|
98
|
+
* it `RecordRef`; it is exported as `HistoryRecordRef` beside Files' `RecordRef`, which does not check the name.
|
|
99
|
+
*/
|
|
100
|
+
export declare const HistoryRecordRef: Schema.Struct<{
|
|
101
|
+
readonly entity: Schema.String;
|
|
102
|
+
readonly id: Schema.String;
|
|
103
|
+
}>;
|
|
104
|
+
export type HistoryRecordRef = typeof HistoryRecordRef.Type;
|
|
105
|
+
export declare const RecordHistory: Schema.Struct<{
|
|
106
|
+
readonly entity: Schema.String;
|
|
107
|
+
readonly id: Schema.String;
|
|
108
|
+
/** Whether the record exists now (false once deleted). */
|
|
109
|
+
readonly exists: Schema.Boolean;
|
|
110
|
+
readonly versions: Schema.$Array<Schema.Struct<{
|
|
111
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
112
|
+
readonly version: Schema.Number;
|
|
113
|
+
readonly op: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
114
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
115
|
+
readonly snapshot: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
116
|
+
readonly actorUserId: Schema.String;
|
|
117
|
+
readonly action: Schema.String;
|
|
118
|
+
readonly invocationId: Schema.String;
|
|
119
|
+
readonly at: Schema.Number;
|
|
120
|
+
/** The agent run that made the change, when one did. */
|
|
121
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
122
|
+
readonly runId: Schema.String;
|
|
123
|
+
readonly conversationId: Schema.String;
|
|
124
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
125
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
126
|
+
}>>;
|
|
127
|
+
}>>;
|
|
128
|
+
}>;
|
|
129
|
+
export declare const VersionRef: Schema.Struct<{
|
|
130
|
+
readonly entity: Schema.String;
|
|
131
|
+
readonly id: Schema.String;
|
|
132
|
+
readonly version: Schema.Number;
|
|
133
|
+
}>;
|
|
134
|
+
export type VersionRef = typeof VersionRef.Type;
|
|
135
|
+
/**
|
|
136
|
+
* An agent edit group: the changes of the run one message of a conversation started (with its sub-agents' runs),
|
|
137
|
+
* or, without `messageId`, of every run of the conversation (back to the start of the chat). Only the caller's own
|
|
138
|
+
* runs' changes belong to it.
|
|
139
|
+
*/
|
|
140
|
+
export declare const AgentEditGroup: Schema.Struct<{
|
|
141
|
+
readonly conversationId: Schema.String;
|
|
142
|
+
readonly messageId: Schema.optionalKey<Schema.String>;
|
|
143
|
+
}>;
|
|
144
|
+
export type AgentEditGroup = typeof AgentEditGroup.Type;
|
|
145
|
+
/** What an edit group changed that the caller may read now: records with history, and collaborative documents. */
|
|
146
|
+
export declare const AgentEdits: Schema.Struct<{
|
|
147
|
+
readonly conversationId: Schema.String;
|
|
148
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
149
|
+
/** Records of entities with history (`<module>.<entity>`), with the versions the group made. */
|
|
150
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
151
|
+
readonly entity: Schema.String;
|
|
152
|
+
readonly id: Schema.String;
|
|
153
|
+
readonly versions: Schema.$Array<Schema.Number>;
|
|
154
|
+
}>>;
|
|
155
|
+
/** Records' collaborative documents (their Cedar type), with how many of the group's runs changed each. */
|
|
156
|
+
readonly documents: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly entity: Schema.String;
|
|
158
|
+
readonly id: Schema.String;
|
|
159
|
+
readonly runs: Schema.Number;
|
|
160
|
+
}>>;
|
|
161
|
+
}>;
|
|
162
|
+
export type AgentEdits = typeof AgentEdits.Type;
|
|
163
|
+
/** A record revert's input (`ctx.history.revert`): the record and the group. */
|
|
164
|
+
export declare const RecordRevert: Schema.Struct<{
|
|
165
|
+
readonly entity: Schema.String;
|
|
166
|
+
readonly id: Schema.String;
|
|
167
|
+
readonly conversationId: Schema.String;
|
|
168
|
+
readonly messageId: Schema.optionalKey<Schema.String>;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* What a revert did to a record: `reverted` (the group's changes undone, except the fields in `kept`), `unchanged`
|
|
172
|
+
* (the group did not change it, or nothing of its changes is left to undo), or `kept` (the group created or deleted
|
|
173
|
+
* the record and someone changed it since: left as it is).
|
|
174
|
+
*/
|
|
175
|
+
export declare const RecordRevertResult: Schema.Struct<{
|
|
176
|
+
readonly id: Schema.String;
|
|
177
|
+
readonly outcome: Schema.Literals<readonly ["reverted", "unchanged", "kept"]>;
|
|
178
|
+
/** Fields the group changed that someone changed again since: they keep the later value. */
|
|
179
|
+
readonly kept: Schema.$Array<Schema.String>;
|
|
180
|
+
}>;
|
|
181
|
+
export type RecordRevertResult = typeof RecordRevertResult.Type;
|
|
182
|
+
/** The kernel actions (module `versioning`). */
|
|
183
|
+
export declare const VERSIONING_ACTIONS: {
|
|
184
|
+
readonly modules: "versioning.modules";
|
|
185
|
+
readonly history: "versioning.history";
|
|
186
|
+
readonly version: "versioning.version";
|
|
187
|
+
readonly agentEdits: "versioning.agentEdits";
|
|
188
|
+
};
|
|
189
|
+
export declare const VersioningContract: import("../Service.ts").ServiceContract<"Versioning", {
|
|
190
|
+
readonly modules: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
191
|
+
readonly kernelVersion: Schema.String;
|
|
192
|
+
readonly modules: Schema.$Array<Schema.Struct<{
|
|
193
|
+
readonly module: Schema.String;
|
|
194
|
+
readonly version: Schema.String;
|
|
195
|
+
/** The kernel versions it declares it works with (`*` when it declares none). */
|
|
196
|
+
readonly kernelRange: Schema.String;
|
|
197
|
+
readonly installedAt: Schema.Number;
|
|
198
|
+
readonly updatedAt: Schema.Number;
|
|
199
|
+
}>>;
|
|
200
|
+
readonly history: Schema.$Array<Schema.Struct<{
|
|
201
|
+
readonly module: Schema.String;
|
|
202
|
+
/** `null` for the first install. */
|
|
203
|
+
readonly fromVersion: Schema.NullOr<Schema.String>;
|
|
204
|
+
readonly toVersion: Schema.String;
|
|
205
|
+
readonly kernelVersion: Schema.String;
|
|
206
|
+
readonly at: Schema.Number;
|
|
207
|
+
}>>;
|
|
208
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
209
|
+
readonly history: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
210
|
+
readonly entity: Schema.String;
|
|
211
|
+
readonly id: Schema.String;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly entity: Schema.String;
|
|
214
|
+
readonly id: Schema.String;
|
|
215
|
+
/** Whether the record exists now (false once deleted). */
|
|
216
|
+
readonly exists: Schema.Boolean;
|
|
217
|
+
readonly versions: Schema.$Array<Schema.Struct<{
|
|
218
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
219
|
+
readonly version: Schema.Number;
|
|
220
|
+
readonly op: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
221
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
222
|
+
readonly snapshot: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
223
|
+
readonly actorUserId: Schema.String;
|
|
224
|
+
readonly action: Schema.String;
|
|
225
|
+
readonly invocationId: Schema.String;
|
|
226
|
+
readonly at: Schema.Number;
|
|
227
|
+
/** The agent run that made the change, when one did. */
|
|
228
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
229
|
+
readonly runId: Schema.String;
|
|
230
|
+
readonly conversationId: Schema.String;
|
|
231
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
232
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
233
|
+
}>>;
|
|
234
|
+
}>>;
|
|
235
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
236
|
+
readonly version: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
237
|
+
readonly entity: Schema.String;
|
|
238
|
+
readonly id: Schema.String;
|
|
239
|
+
readonly version: Schema.Number;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
242
|
+
readonly version: Schema.Number;
|
|
243
|
+
readonly op: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
244
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
245
|
+
readonly snapshot: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
246
|
+
readonly actorUserId: Schema.String;
|
|
247
|
+
readonly action: Schema.String;
|
|
248
|
+
readonly invocationId: Schema.String;
|
|
249
|
+
readonly at: Schema.Number;
|
|
250
|
+
/** The agent run that made the change, when one did. */
|
|
251
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
252
|
+
readonly runId: Schema.String;
|
|
253
|
+
readonly conversationId: Schema.String;
|
|
254
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
255
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
256
|
+
}>>;
|
|
257
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
258
|
+
readonly restore: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
259
|
+
readonly entity: Schema.String;
|
|
260
|
+
readonly id: Schema.String;
|
|
261
|
+
readonly version: Schema.Number;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly id: Schema.String;
|
|
264
|
+
readonly restoredVersion: Schema.Number;
|
|
265
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
266
|
+
readonly agentEdits: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
267
|
+
readonly conversationId: Schema.String;
|
|
268
|
+
readonly messageId: Schema.optionalKey<Schema.String>;
|
|
269
|
+
}>, Schema.Struct<{
|
|
270
|
+
readonly conversationId: Schema.String;
|
|
271
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
272
|
+
/** Records of entities with history (`<module>.<entity>`), with the versions the group made. */
|
|
273
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
274
|
+
readonly entity: Schema.String;
|
|
275
|
+
readonly id: Schema.String;
|
|
276
|
+
readonly versions: Schema.$Array<Schema.Number>;
|
|
277
|
+
}>>;
|
|
278
|
+
/** Records' collaborative documents (their Cedar type), with how many of the group's runs changed each. */
|
|
279
|
+
readonly documents: Schema.$Array<Schema.Struct<{
|
|
280
|
+
readonly entity: Schema.String;
|
|
281
|
+
readonly id: Schema.String;
|
|
282
|
+
readonly runs: Schema.Number;
|
|
283
|
+
}>>;
|
|
284
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
285
|
+
readonly revert: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
286
|
+
readonly entity: Schema.String;
|
|
287
|
+
readonly id: Schema.String;
|
|
288
|
+
readonly conversationId: Schema.String;
|
|
289
|
+
readonly messageId: Schema.optionalKey<Schema.String>;
|
|
290
|
+
}>, Schema.Struct<{
|
|
291
|
+
readonly id: Schema.String;
|
|
292
|
+
readonly outcome: Schema.Literals<readonly ["reverted", "unchanged", "kept"]>;
|
|
293
|
+
/** Fields the group changed that someone changed again since: they keep the later value. */
|
|
294
|
+
readonly kept: Schema.$Array<Schema.String>;
|
|
295
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
296
|
+
}, {
|
|
297
|
+
readonly ModuleVersion: Schema.Struct<{
|
|
298
|
+
readonly module: Schema.String;
|
|
299
|
+
readonly version: Schema.String;
|
|
300
|
+
/** The kernel versions it declares it works with (`*` when it declares none). */
|
|
301
|
+
readonly kernelRange: Schema.String;
|
|
302
|
+
readonly installedAt: Schema.Number;
|
|
303
|
+
readonly updatedAt: Schema.Number;
|
|
304
|
+
}>;
|
|
305
|
+
readonly ModuleUpgrade: Schema.Struct<{
|
|
306
|
+
readonly module: Schema.String;
|
|
307
|
+
/** `null` for the first install. */
|
|
308
|
+
readonly fromVersion: Schema.NullOr<Schema.String>;
|
|
309
|
+
readonly toVersion: Schema.String;
|
|
310
|
+
readonly kernelVersion: Schema.String;
|
|
311
|
+
readonly at: Schema.Number;
|
|
312
|
+
}>;
|
|
313
|
+
readonly RecordVersion: Schema.Struct<{
|
|
314
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
315
|
+
readonly version: Schema.Number;
|
|
316
|
+
readonly op: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
317
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
318
|
+
readonly snapshot: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
319
|
+
readonly actorUserId: Schema.String;
|
|
320
|
+
readonly action: Schema.String;
|
|
321
|
+
readonly invocationId: Schema.String;
|
|
322
|
+
readonly at: Schema.Number;
|
|
323
|
+
/** The agent run that made the change, when one did. */
|
|
324
|
+
readonly agent: Schema.optionalKey<Schema.Struct<{
|
|
325
|
+
readonly runId: Schema.String;
|
|
326
|
+
readonly conversationId: Schema.String;
|
|
327
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
328
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
329
|
+
}>>;
|
|
330
|
+
}>;
|
|
331
|
+
readonly RecordRef: Schema.Struct<{
|
|
332
|
+
readonly entity: Schema.String;
|
|
333
|
+
readonly id: Schema.String;
|
|
334
|
+
}>;
|
|
335
|
+
readonly HistoryOp: Schema.Literals<readonly ["insert", "update", "delete"]>;
|
|
336
|
+
readonly AgentEdit: Schema.Struct<{
|
|
337
|
+
readonly runId: Schema.String;
|
|
338
|
+
readonly conversationId: Schema.String;
|
|
339
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
340
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
341
|
+
}>;
|
|
342
|
+
readonly AgentEditGroup: Schema.Struct<{
|
|
343
|
+
readonly conversationId: Schema.String;
|
|
344
|
+
readonly messageId: Schema.optionalKey<Schema.String>;
|
|
345
|
+
}>;
|
|
346
|
+
readonly AgentEdits: Schema.Struct<{
|
|
347
|
+
readonly conversationId: Schema.String;
|
|
348
|
+
readonly messageId: Schema.NullOr<Schema.String>;
|
|
349
|
+
/** Records of entities with history (`<module>.<entity>`), with the versions the group made. */
|
|
350
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
351
|
+
readonly entity: Schema.String;
|
|
352
|
+
readonly id: Schema.String;
|
|
353
|
+
readonly versions: Schema.$Array<Schema.Number>;
|
|
354
|
+
}>>;
|
|
355
|
+
/** Records' collaborative documents (their Cedar type), with how many of the group's runs changed each. */
|
|
356
|
+
readonly documents: Schema.$Array<Schema.Struct<{
|
|
357
|
+
readonly entity: Schema.String;
|
|
358
|
+
readonly id: Schema.String;
|
|
359
|
+
readonly runs: Schema.Number;
|
|
360
|
+
}>>;
|
|
361
|
+
}>;
|
|
362
|
+
}>;
|
|
363
|
+
//# sourceMappingURL=Versioning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Versioning.d.ts","sourceRoot":"","sources":["../../src/contracts/Versioning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMvE,eAAO,MAAM,aAAa;;;IAGxB,iFAAiF;;;;EAIjF,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD,eAAO,MAAM,aAAa;;IAExB,oCAAoC;;;;;EAKpC,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD,eAAO,MAAM,cAAc;;;;;QAjBzB,iFAAiF;;;;;;;QASjF,oCAAoC;;;;;;EAYpC,CAAA;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAK/C,eAAO,MAAM,SAAS,0DAAkD,CAAA;AACxE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,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AAoB;aAC7B,OAAO,EAAE,oBAAoB;aAC7B,OAAO,EAAE,oBAAoB;aAC7B,UAAU,EAAE,uBAAuB;CAC3B,CAAA;AAIV,eAAO,MAAM,kBAAkB;;;;;;YAnI7B,iFAAiF;;;;;;;YASjF,oCAAoC;;;;;;;;;;;;;QA4DpC,0DAA0D;;;YA3B1D,oEAAoE;;;YAGpE,4FAA4F;;;;;;YAM5F,wDAAwD;;;;gBAhBxD,qFAAqF;;;;;;;;;;QAOrF,oEAAoE;;;QAGpE,4FAA4F;;;;;;QAM5F,wDAAwD;;;;YAhBxD,qFAAqF;;;;;;;;;;;;;;;;;;QA6DrF,gGAAgG;;;;;;QAIhG,2GAA2G;;;;;;;;;;;;;;;QAgB3G,4FAA4F;;;;;;;QApH5F,iFAAiF;;;;;;;QASjF,oCAAoC;;;;;;;QAiCpC,oEAAoE;;;QAGpE,4FAA4F;;;;;;QAM5F,wDAAwD;;;;YAhBxD,qFAAqF;;;;;;;;;;;;QAArF,qFAAqF;;;;;;;;;;QA6DrF,gGAAgG;;;;;;QAIhG,2GAA2G;;;;;;;EAqG3G,CAAA"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Versioning: module versions and record history. Documented in docs/contracts/versioning.md; conformance kit
|
|
3
|
+
* `@eloxiv/testing/conformance/Versioning`.
|
|
4
|
+
*
|
|
5
|
+
* **Module versions.** A module's manifest has a `version` and may declare the kernel versions it works with
|
|
6
|
+
* (`kernel`, a range such as `>=0.1.0 <2.0.0` or `^1.2.0`). Setup refuses, before it changes anything, a module
|
|
7
|
+
* whose range the kernel's version is outside, and a module older than the version installed (a downgrade); it
|
|
8
|
+
* records each module's installed version and every change of version (from, to, the kernel's version, when) in
|
|
9
|
+
* one transaction with the migrations and hardening, so the record never disagrees with the schema.
|
|
10
|
+
*
|
|
11
|
+
* **Record history.** An entity that opts in (`history: true` on its contract) gets an append-only history: every
|
|
12
|
+
* change an action makes to one of its records (insert, update, delete) is recorded with the record as the
|
|
13
|
+
* action left it (as it was, for a delete), the acting person, the action and its invocation id, in the
|
|
14
|
+
* action's transaction. Modules cannot write or change it. History is read through the record's own read policy,
|
|
15
|
+
* applied to the record's latest state (the current row, or the last recorded one once deleted): whoever may read
|
|
16
|
+
* the record may read its history, nobody else. Restore is an action: a module declares one (with its own policy)
|
|
17
|
+
* and its handler calls `ctx.history.restore`, which writes the chosen version back as that action, so the
|
|
18
|
+
* restore is authorised, audited and recorded in the history like any change.
|
|
19
|
+
*
|
|
20
|
+
* **Agent edit groups.** Every change an agent run makes is kept with the run, the conversation and the message that
|
|
21
|
+
* started it (a sub-agent's with its parent's): its record versions, and an autosave of each collaborative document
|
|
22
|
+
* it changed. `versioning.agentEdits` lists a group (one message's run, or every run of a conversation), and a
|
|
23
|
+
* revert undoes exactly that group's changes: a record's through `ctx.history.revert` in the module's own action, a
|
|
24
|
+
* document's through `collab.revert`; what someone changed since stays.
|
|
25
|
+
*/
|
|
26
|
+
import { Schema } from "effect";
|
|
27
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.js";
|
|
28
|
+
import { defineOperation, defineServiceContract } from "../Service.js";
|
|
29
|
+
// ---------------------------------------------------------------------------------------------------------
|
|
30
|
+
// Module versions
|
|
31
|
+
export const ModuleVersion = Schema.Struct({
|
|
32
|
+
module: Schema.String,
|
|
33
|
+
version: Schema.String,
|
|
34
|
+
/** The kernel versions it declares it works with (`*` when it declares none). */
|
|
35
|
+
kernelRange: Schema.String,
|
|
36
|
+
installedAt: Schema.Number,
|
|
37
|
+
updatedAt: Schema.Number,
|
|
38
|
+
});
|
|
39
|
+
export const ModuleUpgrade = Schema.Struct({
|
|
40
|
+
module: Schema.String,
|
|
41
|
+
/** `null` for the first install. */
|
|
42
|
+
fromVersion: Schema.NullOr(Schema.String),
|
|
43
|
+
toVersion: Schema.String,
|
|
44
|
+
kernelVersion: Schema.String,
|
|
45
|
+
at: Schema.Number,
|
|
46
|
+
});
|
|
47
|
+
export const ModuleVersions = Schema.Struct({
|
|
48
|
+
kernelVersion: Schema.String,
|
|
49
|
+
modules: Schema.Array(ModuleVersion),
|
|
50
|
+
history: Schema.Array(ModuleUpgrade),
|
|
51
|
+
});
|
|
52
|
+
export { satisfiesRange } from "../Versions.js";
|
|
53
|
+
// ---------------------------------------------------------------------------------------------------------
|
|
54
|
+
// Record history
|
|
55
|
+
export const HistoryOp = Schema.Literals(["insert", "update", "delete"]);
|
|
56
|
+
/** The agent run a change was made by, and the conversation and message that started it (its edit group). */
|
|
57
|
+
export const AgentEdit = Schema.Struct({
|
|
58
|
+
runId: Schema.String,
|
|
59
|
+
conversationId: Schema.String,
|
|
60
|
+
/** The person's message that started the run (null for a run no message started). */
|
|
61
|
+
messageId: Schema.NullOr(Schema.String),
|
|
62
|
+
});
|
|
63
|
+
/** One version of a record. */
|
|
64
|
+
export const RecordVersion = Schema.Struct({
|
|
65
|
+
/** 1 for the first recorded change of the record, then 2, 3, ... */
|
|
66
|
+
version: Schema.Number,
|
|
67
|
+
op: HistoryOp,
|
|
68
|
+
/** The record as the change left it (as it was before a delete), as its table's columns. */
|
|
69
|
+
snapshot: Schema.Record(Schema.String, Schema.Unknown),
|
|
70
|
+
actorUserId: Schema.String,
|
|
71
|
+
action: Schema.String,
|
|
72
|
+
invocationId: Schema.String,
|
|
73
|
+
at: Schema.Number,
|
|
74
|
+
/** The agent run that made the change, when one did. */
|
|
75
|
+
agent: Schema.optionalKey(AgentEdit),
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* A record of an entity with history: `<module>.<entity>` (`notes.note`) and its primary key. The contract names
|
|
79
|
+
* it `RecordRef`; it is exported as `HistoryRecordRef` beside Files' `RecordRef`, which does not check the name.
|
|
80
|
+
*/
|
|
81
|
+
export const HistoryRecordRef = Schema.Struct({
|
|
82
|
+
entity: Schema.String.check(Schema.isPattern(/^[a-z][a-z0-9_]*\.[A-Za-z][A-Za-z0-9_]*$/)),
|
|
83
|
+
id: Schema.String,
|
|
84
|
+
});
|
|
85
|
+
export const RecordHistory = Schema.Struct({
|
|
86
|
+
entity: Schema.String,
|
|
87
|
+
id: Schema.String,
|
|
88
|
+
/** Whether the record exists now (false once deleted). */
|
|
89
|
+
exists: Schema.Boolean,
|
|
90
|
+
versions: Schema.Array(RecordVersion),
|
|
91
|
+
});
|
|
92
|
+
export const VersionRef = Schema.Struct({
|
|
93
|
+
entity: HistoryRecordRef.fields.entity,
|
|
94
|
+
id: Schema.String,
|
|
95
|
+
version: Schema.Number.check(Schema.isGreaterThanOrEqualTo(1)),
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* An agent edit group: the changes of the run one message of a conversation started (with its sub-agents' runs),
|
|
99
|
+
* or, without `messageId`, of every run of the conversation (back to the start of the chat). Only the caller's own
|
|
100
|
+
* runs' changes belong to it.
|
|
101
|
+
*/
|
|
102
|
+
export const AgentEditGroup = Schema.Struct({
|
|
103
|
+
conversationId: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(256)),
|
|
104
|
+
messageId: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(256))),
|
|
105
|
+
});
|
|
106
|
+
/** What an edit group changed that the caller may read now: records with history, and collaborative documents. */
|
|
107
|
+
export const AgentEdits = Schema.Struct({
|
|
108
|
+
conversationId: Schema.String,
|
|
109
|
+
messageId: Schema.NullOr(Schema.String),
|
|
110
|
+
/** Records of entities with history (`<module>.<entity>`), with the versions the group made. */
|
|
111
|
+
records: Schema.Array(Schema.Struct({ entity: Schema.String, id: Schema.String, versions: Schema.Array(Schema.Number) })),
|
|
112
|
+
/** Records' collaborative documents (their Cedar type), with how many of the group's runs changed each. */
|
|
113
|
+
documents: Schema.Array(Schema.Struct({ entity: Schema.String, id: Schema.String, runs: Schema.Number })),
|
|
114
|
+
});
|
|
115
|
+
/** A record revert's input (`ctx.history.revert`): the record and the group. */
|
|
116
|
+
export const RecordRevert = Schema.Struct({ ...HistoryRecordRef.fields, ...AgentEditGroup.fields });
|
|
117
|
+
/**
|
|
118
|
+
* What a revert did to a record: `reverted` (the group's changes undone, except the fields in `kept`), `unchanged`
|
|
119
|
+
* (the group did not change it, or nothing of its changes is left to undo), or `kept` (the group created or deleted
|
|
120
|
+
* the record and someone changed it since: left as it is).
|
|
121
|
+
*/
|
|
122
|
+
export const RecordRevertResult = Schema.Struct({
|
|
123
|
+
id: Schema.String,
|
|
124
|
+
outcome: Schema.Literals(["reverted", "unchanged", "kept"]),
|
|
125
|
+
/** Fields the group changed that someone changed again since: they keep the later value. */
|
|
126
|
+
kept: Schema.Array(Schema.String),
|
|
127
|
+
});
|
|
128
|
+
/** The kernel actions (module `versioning`). */
|
|
129
|
+
export const VERSIONING_ACTIONS = {
|
|
130
|
+
modules: "versioning.modules",
|
|
131
|
+
history: "versioning.history",
|
|
132
|
+
version: "versioning.version",
|
|
133
|
+
agentEdits: "versioning.agentEdits",
|
|
134
|
+
};
|
|
135
|
+
const Errors = Schema.Union([Unauthenticated, Forbidden, InvalidInput]);
|
|
136
|
+
export const VersioningContract = defineServiceContract({
|
|
137
|
+
name: "Versioning",
|
|
138
|
+
kind: "kernel",
|
|
139
|
+
version: "1.1.0",
|
|
140
|
+
description: "Module versions (installed version, upgrade history, compatibility between a module's version and the " +
|
|
141
|
+
"kernel's, checked by setup before it changes anything) and record history for entities that opt in: an " +
|
|
142
|
+
"append-only history of every change an action makes, with the acting person, the action and its " +
|
|
143
|
+
"invocation id, readable through the record's own read policy; restore is a module's action calling " +
|
|
144
|
+
"ctx.history.restore. Agent edit groups: every change an agent run makes is kept with its run, conversation and " +
|
|
145
|
+
"message, listed by versioning.agentEdits and reverted, later changes kept, by ctx.history.revert.",
|
|
146
|
+
operations: {
|
|
147
|
+
modules: defineOperation({
|
|
148
|
+
description: "versioning.modules: the kernel's version, each installed module's version and range, and every change of version.",
|
|
149
|
+
input: Schema.Struct({}),
|
|
150
|
+
output: ModuleVersions,
|
|
151
|
+
errors: Errors,
|
|
152
|
+
}),
|
|
153
|
+
history: defineOperation({
|
|
154
|
+
description: "versioning.history: a record's versions, oldest first, if the caller may read the record in its latest " +
|
|
155
|
+
"state (Forbidden otherwise, and for a record with no history: the two are not told apart).",
|
|
156
|
+
input: HistoryRecordRef,
|
|
157
|
+
output: RecordHistory,
|
|
158
|
+
errors: Errors,
|
|
159
|
+
}),
|
|
160
|
+
version: defineOperation({
|
|
161
|
+
description: "versioning.version: one version of a record, under the same rule.",
|
|
162
|
+
input: VersionRef,
|
|
163
|
+
output: RecordVersion,
|
|
164
|
+
errors: Errors,
|
|
165
|
+
}),
|
|
166
|
+
restore: defineOperation({
|
|
167
|
+
description: "In process (ctx.history.restore, in a module's own action on its own entity): write a version back as " +
|
|
168
|
+
"that action, after checking the caller may read the record. The write is authorised by the action's " +
|
|
169
|
+
"policy like any other and recorded as a new version.",
|
|
170
|
+
input: VersionRef,
|
|
171
|
+
output: Schema.Struct({ id: Schema.String, restoredVersion: Schema.Number }),
|
|
172
|
+
errors: Errors,
|
|
173
|
+
}),
|
|
174
|
+
agentEdits: defineOperation({
|
|
175
|
+
description: "versioning.agentEdits: what one of the caller's agent edit groups (a message's run, or a whole " +
|
|
176
|
+
"conversation's runs) changed, among the records and documents the caller may read now.",
|
|
177
|
+
input: AgentEditGroup,
|
|
178
|
+
output: AgentEdits,
|
|
179
|
+
errors: Errors,
|
|
180
|
+
}),
|
|
181
|
+
revert: defineOperation({
|
|
182
|
+
description: "In process (ctx.history.revert, in a module's own action on its own entity): undo the group's changes to " +
|
|
183
|
+
"a record, field by field, as that action (its policy decides); a field someone changed since keeps its " +
|
|
184
|
+
"value, a record the group created or deleted that someone changed since is kept. Recorded as a new version.",
|
|
185
|
+
input: RecordRevert,
|
|
186
|
+
output: RecordRevertResult,
|
|
187
|
+
errors: Errors,
|
|
188
|
+
}),
|
|
189
|
+
},
|
|
190
|
+
types: {
|
|
191
|
+
ModuleVersion,
|
|
192
|
+
ModuleUpgrade,
|
|
193
|
+
RecordVersion,
|
|
194
|
+
RecordRef: HistoryRecordRef,
|
|
195
|
+
HistoryOp,
|
|
196
|
+
AgentEdit,
|
|
197
|
+
AgentEditGroup,
|
|
198
|
+
AgentEdits,
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
//# sourceMappingURL=Versioning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Versioning.js","sourceRoot":"","sources":["../../src/contracts/Versioning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAEtE,4GAA4G;AAC5G,kBAAkB;AAElB,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM;IAC5B,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,MAAM;IAC5B,OAAO,EAAE,MAAM,CA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