@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,305 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress: records of long-running work (workflows, ingestion, agent runs, imports, exports) that their owner
|
|
3
|
+
* follows and can cancel. Documented in docs/contracts/progress.md; conformance kit
|
|
4
|
+
* `@eloxiv/testing/conformance/Progress`.
|
|
5
|
+
*
|
|
6
|
+
* A task belongs to the person whose work it is (the acting user of the handler or workflow that started it), in
|
|
7
|
+
* the organisation it was started in, and syncs to that person's replica only. Work reports through
|
|
8
|
+
* `ctx.progress` (handlers: applied when the call commits; workflows: committed at once, journalled per step):
|
|
9
|
+
* a step name, a percentage or a done/total count, and a message. Cancellation is cooperative: the owner asks
|
|
10
|
+
* (`progress.cancel`), a workflow sees it at its next report or checkpoint (`{ cancelled: true }`), the task ends
|
|
11
|
+
* `cancelled` and the work returns. A finished task never changes again.
|
|
12
|
+
*/
|
|
13
|
+
import { Schema } from "effect";
|
|
14
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
|
|
15
|
+
/** What kind of work a task tracks: what a client shows beside it. */
|
|
16
|
+
export declare const PROGRESS_KINDS: readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"];
|
|
17
|
+
export declare const ProgressKind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
18
|
+
export type ProgressKind = typeof ProgressKind.Type;
|
|
19
|
+
export declare const PROGRESS_STATUSES: readonly ["running", "succeeded", "failed", "cancelled"];
|
|
20
|
+
export declare const ProgressStatus: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
21
|
+
export type ProgressStatus = typeof ProgressStatus.Type;
|
|
22
|
+
/** The longest title, step or message the kernel keeps (longer text is cut). */
|
|
23
|
+
export declare const PROGRESS_TEXT_MAX = 500;
|
|
24
|
+
/** One task, as the owner's replica holds it (table `eloxiv_progress.task`). */
|
|
25
|
+
export declare const ProgressTask: Schema.Struct<{
|
|
26
|
+
readonly id: Schema.String;
|
|
27
|
+
readonly orgId: Schema.String;
|
|
28
|
+
readonly ownerId: Schema.String;
|
|
29
|
+
readonly kind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
30
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
31
|
+
readonly source: Schema.String;
|
|
32
|
+
readonly title: Schema.String;
|
|
33
|
+
readonly step: Schema.NullOr<Schema.String>;
|
|
34
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
35
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
36
|
+
readonly percent: Schema.NullOr<Schema.Number>;
|
|
37
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
38
|
+
readonly done: Schema.NullOr<Schema.Number>;
|
|
39
|
+
readonly total: Schema.NullOr<Schema.Number>;
|
|
40
|
+
readonly status: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
41
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
42
|
+
readonly cancelRequested: Schema.Boolean;
|
|
43
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
44
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
45
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
46
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
47
|
+
readonly startedAt: Schema.Number;
|
|
48
|
+
readonly updatedAt: Schema.Number;
|
|
49
|
+
readonly finishedAt: Schema.NullOr<Schema.Number>;
|
|
50
|
+
}>;
|
|
51
|
+
export type ProgressTask = typeof ProgressTask.Type;
|
|
52
|
+
/** What work gives when it starts a task (`ctx.progress.start`). */
|
|
53
|
+
export declare const ProgressStart: Schema.Struct<{
|
|
54
|
+
readonly title: Schema.String;
|
|
55
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>>;
|
|
56
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
57
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
58
|
+
/**
|
|
59
|
+
* Tell the owner when the task ends: a notification (category `progress`, in-app and by their preferences)
|
|
60
|
+
* when it succeeds or fails, once; never for a cancellation, which the owner asked for.
|
|
61
|
+
*/
|
|
62
|
+
readonly notify: Schema.optionalKey<Schema.Boolean>;
|
|
63
|
+
}>;
|
|
64
|
+
export type ProgressStart = typeof ProgressStart.Type;
|
|
65
|
+
/** A report (`ctx.progress.update`): any of a step, a percentage, a count and a message. */
|
|
66
|
+
export declare const ProgressUpdate: Schema.Struct<{
|
|
67
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
68
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
69
|
+
readonly percent: Schema.optionalKey<Schema.Number>;
|
|
70
|
+
readonly done: Schema.optionalKey<Schema.Number>;
|
|
71
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
72
|
+
}>;
|
|
73
|
+
export type ProgressUpdate = typeof ProgressUpdate.Type;
|
|
74
|
+
/** How a task ends (`ctx.progress.complete` / `fail`). */
|
|
75
|
+
export declare const ProgressFinish: Schema.Struct<{
|
|
76
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* What a report tells the work (`ctx.progress.update` and `checkpoint` in a workflow): `cancelled` once the owner
|
|
80
|
+
* asked to stop (the task is then `cancelled`, and the work should return), `finished` once the task is no longer
|
|
81
|
+
* running (a report on it changed nothing).
|
|
82
|
+
*/
|
|
83
|
+
export declare const ProgressReport: Schema.Struct<{
|
|
84
|
+
readonly cancelled: Schema.Boolean;
|
|
85
|
+
readonly finished: Schema.Boolean;
|
|
86
|
+
}>;
|
|
87
|
+
export type ProgressReport = typeof ProgressReport.Type;
|
|
88
|
+
export declare const ProgressList: Schema.Struct<{
|
|
89
|
+
/** Only running tasks (default: every task of yours, newest first). */
|
|
90
|
+
readonly active: Schema.optionalKey<Schema.Boolean>;
|
|
91
|
+
readonly limit: Schema.optionalKey<Schema.Number>;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const ProgressTasks: Schema.Struct<{
|
|
94
|
+
readonly tasks: Schema.$Array<Schema.Struct<{
|
|
95
|
+
readonly id: Schema.String;
|
|
96
|
+
readonly orgId: Schema.String;
|
|
97
|
+
readonly ownerId: Schema.String;
|
|
98
|
+
readonly kind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
99
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
100
|
+
readonly source: Schema.String;
|
|
101
|
+
readonly title: Schema.String;
|
|
102
|
+
readonly step: Schema.NullOr<Schema.String>;
|
|
103
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
104
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
105
|
+
readonly percent: Schema.NullOr<Schema.Number>;
|
|
106
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
107
|
+
readonly done: Schema.NullOr<Schema.Number>;
|
|
108
|
+
readonly total: Schema.NullOr<Schema.Number>;
|
|
109
|
+
readonly status: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
110
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
111
|
+
readonly cancelRequested: Schema.Boolean;
|
|
112
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
113
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
114
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
115
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
116
|
+
readonly startedAt: Schema.Number;
|
|
117
|
+
readonly updatedAt: Schema.Number;
|
|
118
|
+
readonly finishedAt: Schema.NullOr<Schema.Number>;
|
|
119
|
+
}>>;
|
|
120
|
+
}>;
|
|
121
|
+
export declare const ProgressRef: Schema.Struct<{
|
|
122
|
+
readonly id: Schema.String;
|
|
123
|
+
}>;
|
|
124
|
+
export declare const ProgressCancelled: Schema.Struct<{
|
|
125
|
+
readonly id: Schema.String;
|
|
126
|
+
readonly cancelRequested: Schema.Boolean;
|
|
127
|
+
}>;
|
|
128
|
+
/** The kernel actions (module `progress`). */
|
|
129
|
+
export declare const PROGRESS_ACTIONS: {
|
|
130
|
+
readonly list: "progress.list";
|
|
131
|
+
readonly get: "progress.get";
|
|
132
|
+
readonly cancel: "progress.cancel";
|
|
133
|
+
readonly remove: "progress.remove";
|
|
134
|
+
};
|
|
135
|
+
export declare const ProgressContract: import("../Service.ts").ServiceContract<"Progress", {
|
|
136
|
+
readonly start: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
137
|
+
readonly title: Schema.String;
|
|
138
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>>;
|
|
139
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
140
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
141
|
+
/**
|
|
142
|
+
* Tell the owner when the task ends: a notification (category `progress`, in-app and by their preferences)
|
|
143
|
+
* when it succeeds or fails, once; never for a cancellation, which the owner asked for.
|
|
144
|
+
*/
|
|
145
|
+
readonly notify: Schema.optionalKey<Schema.Boolean>;
|
|
146
|
+
}>, Schema.Struct<{
|
|
147
|
+
readonly id: Schema.String;
|
|
148
|
+
}>, typeof InvalidInput>;
|
|
149
|
+
readonly update: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
150
|
+
readonly id: Schema.String;
|
|
151
|
+
readonly update: Schema.Struct<{
|
|
152
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
153
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
154
|
+
readonly percent: Schema.optionalKey<Schema.Number>;
|
|
155
|
+
readonly done: Schema.optionalKey<Schema.Number>;
|
|
156
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
157
|
+
}>;
|
|
158
|
+
}>, Schema.Struct<{
|
|
159
|
+
readonly cancelled: Schema.Boolean;
|
|
160
|
+
readonly finished: Schema.Boolean;
|
|
161
|
+
}>, typeof InvalidInput>;
|
|
162
|
+
readonly checkpoint: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
163
|
+
readonly id: Schema.String;
|
|
164
|
+
}>, Schema.Struct<{
|
|
165
|
+
readonly cancelled: Schema.Boolean;
|
|
166
|
+
readonly finished: Schema.Boolean;
|
|
167
|
+
}>, Schema.Never>;
|
|
168
|
+
readonly complete: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
169
|
+
readonly id: Schema.String;
|
|
170
|
+
readonly finish: Schema.Struct<{
|
|
171
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
172
|
+
}>;
|
|
173
|
+
}>, Schema.Void, Schema.Never>;
|
|
174
|
+
readonly fail: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
175
|
+
readonly id: Schema.String;
|
|
176
|
+
readonly finish: Schema.Struct<{
|
|
177
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
178
|
+
}>;
|
|
179
|
+
}>, Schema.Void, Schema.Never>;
|
|
180
|
+
readonly list: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
181
|
+
/** Only running tasks (default: every task of yours, newest first). */
|
|
182
|
+
readonly active: Schema.optionalKey<Schema.Boolean>;
|
|
183
|
+
readonly limit: Schema.optionalKey<Schema.Number>;
|
|
184
|
+
}>, Schema.Struct<{
|
|
185
|
+
readonly tasks: Schema.$Array<Schema.Struct<{
|
|
186
|
+
readonly id: Schema.String;
|
|
187
|
+
readonly orgId: Schema.String;
|
|
188
|
+
readonly ownerId: Schema.String;
|
|
189
|
+
readonly kind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
190
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
191
|
+
readonly source: Schema.String;
|
|
192
|
+
readonly title: Schema.String;
|
|
193
|
+
readonly step: Schema.NullOr<Schema.String>;
|
|
194
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
195
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
196
|
+
readonly percent: Schema.NullOr<Schema.Number>;
|
|
197
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
198
|
+
readonly done: Schema.NullOr<Schema.Number>;
|
|
199
|
+
readonly total: Schema.NullOr<Schema.Number>;
|
|
200
|
+
readonly status: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
201
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
202
|
+
readonly cancelRequested: Schema.Boolean;
|
|
203
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
204
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
205
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
206
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
207
|
+
readonly startedAt: Schema.Number;
|
|
208
|
+
readonly updatedAt: Schema.Number;
|
|
209
|
+
readonly finishedAt: Schema.NullOr<Schema.Number>;
|
|
210
|
+
}>>;
|
|
211
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
212
|
+
readonly get: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
}>, Schema.Struct<{
|
|
215
|
+
readonly id: Schema.String;
|
|
216
|
+
readonly orgId: Schema.String;
|
|
217
|
+
readonly ownerId: Schema.String;
|
|
218
|
+
readonly kind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
219
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
220
|
+
readonly source: Schema.String;
|
|
221
|
+
readonly title: Schema.String;
|
|
222
|
+
readonly step: Schema.NullOr<Schema.String>;
|
|
223
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
224
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
225
|
+
readonly percent: Schema.NullOr<Schema.Number>;
|
|
226
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
227
|
+
readonly done: Schema.NullOr<Schema.Number>;
|
|
228
|
+
readonly total: Schema.NullOr<Schema.Number>;
|
|
229
|
+
readonly status: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
230
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
231
|
+
readonly cancelRequested: Schema.Boolean;
|
|
232
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
233
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
234
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
235
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
236
|
+
readonly startedAt: Schema.Number;
|
|
237
|
+
readonly updatedAt: Schema.Number;
|
|
238
|
+
readonly finishedAt: Schema.NullOr<Schema.Number>;
|
|
239
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
240
|
+
readonly cancel: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
241
|
+
readonly id: Schema.String;
|
|
242
|
+
}>, Schema.Struct<{
|
|
243
|
+
readonly id: Schema.String;
|
|
244
|
+
readonly cancelRequested: Schema.Boolean;
|
|
245
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
246
|
+
readonly remove: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
247
|
+
readonly id: Schema.String;
|
|
248
|
+
}>, Schema.Struct<{
|
|
249
|
+
readonly id: Schema.String;
|
|
250
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
251
|
+
}, {
|
|
252
|
+
readonly ProgressTask: Schema.Struct<{
|
|
253
|
+
readonly id: Schema.String;
|
|
254
|
+
readonly orgId: Schema.String;
|
|
255
|
+
readonly ownerId: Schema.String;
|
|
256
|
+
readonly kind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
257
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
258
|
+
readonly source: Schema.String;
|
|
259
|
+
readonly title: Schema.String;
|
|
260
|
+
readonly step: Schema.NullOr<Schema.String>;
|
|
261
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
262
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
263
|
+
readonly percent: Schema.NullOr<Schema.Number>;
|
|
264
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
265
|
+
readonly done: Schema.NullOr<Schema.Number>;
|
|
266
|
+
readonly total: Schema.NullOr<Schema.Number>;
|
|
267
|
+
readonly status: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
268
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
269
|
+
readonly cancelRequested: Schema.Boolean;
|
|
270
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
271
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
272
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
273
|
+
readonly executionId: Schema.NullOr<Schema.String>;
|
|
274
|
+
readonly startedAt: Schema.Number;
|
|
275
|
+
readonly updatedAt: Schema.Number;
|
|
276
|
+
readonly finishedAt: Schema.NullOr<Schema.Number>;
|
|
277
|
+
}>;
|
|
278
|
+
readonly ProgressKind: Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>;
|
|
279
|
+
readonly ProgressStatus: Schema.Literals<readonly ["running", "succeeded", "failed", "cancelled"]>;
|
|
280
|
+
readonly ProgressStart: Schema.Struct<{
|
|
281
|
+
readonly title: Schema.String;
|
|
282
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"]>>;
|
|
283
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
284
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
285
|
+
/**
|
|
286
|
+
* Tell the owner when the task ends: a notification (category `progress`, in-app and by their preferences)
|
|
287
|
+
* when it succeeds or fails, once; never for a cancellation, which the owner asked for.
|
|
288
|
+
*/
|
|
289
|
+
readonly notify: Schema.optionalKey<Schema.Boolean>;
|
|
290
|
+
}>;
|
|
291
|
+
readonly ProgressUpdate: Schema.Struct<{
|
|
292
|
+
readonly step: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
294
|
+
readonly percent: Schema.optionalKey<Schema.Number>;
|
|
295
|
+
readonly done: Schema.optionalKey<Schema.Number>;
|
|
296
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
297
|
+
}>;
|
|
298
|
+
readonly ProgressReport: Schema.Struct<{
|
|
299
|
+
readonly cancelled: Schema.Boolean;
|
|
300
|
+
readonly finished: Schema.Boolean;
|
|
301
|
+
}>;
|
|
302
|
+
}>;
|
|
303
|
+
/** The percentage a report gives: its own, or derived from done and total. */
|
|
304
|
+
export declare const progressPercent: (done: number | null, total: number | null, percent: number | null) => number | null;
|
|
305
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/contracts/Progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGvE,sEAAsE;AACtE,eAAO,MAAM,cAAc,YAAI,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,E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A;AACjF,eAAO,MAAM,WAAW;;EAAuC,CAAA;AAC/D,eAAO,MAAM,iBAAiB;;;EAAwE,CAAA;AAEtG,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB;aAC3B,IAAI,EAAE,eAAe;aACrB,GAAG,EAAE,cAAc;aACnB,MAAM,EAAE,iBAAiB;aACzB,MAAM,EAAE,iBAAiB;CACjB,CAAA;AAIV,eAAO,MAAM,gBAAgB;;;;;;QAhD3B;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BH,uEAAuE;;;;;;;;;YA9DvE,0EAA0E;;;;;YAK1E,sEAAsE;;YAEtE,yFAAyF;;;;YAIzF,oEAAoE;;YAEpE,8DAA8D;;YAE9D,yEAAyE;;;;;;;;;;;;;;QAfzE,0EAA0E;;;;;QAK1E,sEAAsE;;QAEtE,yFAAyF;;;;QAIzF,oEAAoE;;QAEpE,8DAA8D;;QAE9D,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;QAfzE,0EAA0E;;;;;QAK1E,sEAAsE;;QAEtE,yFAAyF;;;;QAIzF,oEAAoE;;QAEpE,8DAA8D;;QAE9D,yEAAyE;;;;;;;;;;;;;QAiBzE;;;WAGG;;;;;;;;;;;;;;EAuHH,CAAA;AAEF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,SAAU,MAAM,GAAG,IAAI,SAAS,MAAM,GAAG,IAAI,WAAW,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAI5G,CAAA"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress: records of long-running work (workflows, ingestion, agent runs, imports, exports) that their owner
|
|
3
|
+
* follows and can cancel. Documented in docs/contracts/progress.md; conformance kit
|
|
4
|
+
* `@eloxiv/testing/conformance/Progress`.
|
|
5
|
+
*
|
|
6
|
+
* A task belongs to the person whose work it is (the acting user of the handler or workflow that started it), in
|
|
7
|
+
* the organisation it was started in, and syncs to that person's replica only. Work reports through
|
|
8
|
+
* `ctx.progress` (handlers: applied when the call commits; workflows: committed at once, journalled per step):
|
|
9
|
+
* a step name, a percentage or a done/total count, and a message. Cancellation is cooperative: the owner asks
|
|
10
|
+
* (`progress.cancel`), a workflow sees it at its next report or checkpoint (`{ cancelled: true }`), the task ends
|
|
11
|
+
* `cancelled` and the work returns. A finished task never changes again.
|
|
12
|
+
*/
|
|
13
|
+
import { Schema } from "effect";
|
|
14
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.js";
|
|
15
|
+
import { defineOperation, defineServiceContract } from "../Service.js";
|
|
16
|
+
/** What kind of work a task tracks: what a client shows beside it. */
|
|
17
|
+
export const PROGRESS_KINDS = ["workflow", "ingestion", "agent-run", "import", "export", "erasure", "action"];
|
|
18
|
+
export const ProgressKind = Schema.Literals(PROGRESS_KINDS);
|
|
19
|
+
export const PROGRESS_STATUSES = ["running", "succeeded", "failed", "cancelled"];
|
|
20
|
+
export const ProgressStatus = Schema.Literals(PROGRESS_STATUSES);
|
|
21
|
+
/** The longest title, step or message the kernel keeps (longer text is cut). */
|
|
22
|
+
export const PROGRESS_TEXT_MAX = 500;
|
|
23
|
+
/** One task, as the owner's replica holds it (table `eloxiv_progress.task`). */
|
|
24
|
+
export const ProgressTask = Schema.Struct({
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
orgId: Schema.String,
|
|
27
|
+
ownerId: Schema.String,
|
|
28
|
+
kind: ProgressKind,
|
|
29
|
+
/** The module (or `eloxiv` for the kernel's own work) that started it. */
|
|
30
|
+
source: Schema.String,
|
|
31
|
+
title: Schema.String,
|
|
32
|
+
step: Schema.NullOr(Schema.String),
|
|
33
|
+
message: Schema.NullOr(Schema.String),
|
|
34
|
+
/** 0 to 100, or `null` while the work cannot tell (indeterminate). */
|
|
35
|
+
percent: Schema.NullOr(Schema.Number),
|
|
36
|
+
/** Units done and in all, when the work counts (`percent` is then derived from them). */
|
|
37
|
+
done: Schema.NullOr(Schema.Number),
|
|
38
|
+
total: Schema.NullOr(Schema.Number),
|
|
39
|
+
status: ProgressStatus,
|
|
40
|
+
/** The owner asked to cancel; the work stops at its next report. */
|
|
41
|
+
cancelRequested: Schema.Boolean,
|
|
42
|
+
/** Why it failed (a short, redacted message), when it did. */
|
|
43
|
+
error: Schema.NullOr(Schema.String),
|
|
44
|
+
/** The workflow execution it reports for, when a workflow started it. */
|
|
45
|
+
executionId: Schema.NullOr(Schema.String),
|
|
46
|
+
startedAt: Schema.Number,
|
|
47
|
+
updatedAt: Schema.Number,
|
|
48
|
+
finishedAt: Schema.NullOr(Schema.Number),
|
|
49
|
+
});
|
|
50
|
+
const Text = Schema.String.check(Schema.isMaxLength(PROGRESS_TEXT_MAX));
|
|
51
|
+
const Count = Schema.Number.check(Schema.isGreaterThanOrEqualTo(0));
|
|
52
|
+
/** What work gives when it starts a task (`ctx.progress.start`). */
|
|
53
|
+
export const ProgressStart = Schema.Struct({
|
|
54
|
+
title: Text.check(Schema.isNonEmpty()),
|
|
55
|
+
kind: Schema.optionalKey(ProgressKind),
|
|
56
|
+
step: Schema.optionalKey(Text),
|
|
57
|
+
total: Schema.optionalKey(Count),
|
|
58
|
+
/**
|
|
59
|
+
* Tell the owner when the task ends: a notification (category `progress`, in-app and by their preferences)
|
|
60
|
+
* when it succeeds or fails, once; never for a cancellation, which the owner asked for.
|
|
61
|
+
*/
|
|
62
|
+
notify: Schema.optionalKey(Schema.Boolean),
|
|
63
|
+
});
|
|
64
|
+
/** A report (`ctx.progress.update`): any of a step, a percentage, a count and a message. */
|
|
65
|
+
export const ProgressUpdate = Schema.Struct({
|
|
66
|
+
step: Schema.optionalKey(Text),
|
|
67
|
+
message: Schema.optionalKey(Text),
|
|
68
|
+
percent: Schema.optionalKey(Schema.Number.check(Schema.isBetween({ minimum: 0, maximum: 100 }))),
|
|
69
|
+
done: Schema.optionalKey(Count),
|
|
70
|
+
total: Schema.optionalKey(Count),
|
|
71
|
+
});
|
|
72
|
+
/** How a task ends (`ctx.progress.complete` / `fail`). */
|
|
73
|
+
export const ProgressFinish = Schema.Struct({ message: Schema.optionalKey(Text) });
|
|
74
|
+
/**
|
|
75
|
+
* What a report tells the work (`ctx.progress.update` and `checkpoint` in a workflow): `cancelled` once the owner
|
|
76
|
+
* asked to stop (the task is then `cancelled`, and the work should return), `finished` once the task is no longer
|
|
77
|
+
* running (a report on it changed nothing).
|
|
78
|
+
*/
|
|
79
|
+
export const ProgressReport = Schema.Struct({ cancelled: Schema.Boolean, finished: Schema.Boolean });
|
|
80
|
+
export const ProgressList = Schema.Struct({
|
|
81
|
+
/** Only running tasks (default: every task of yours, newest first). */
|
|
82
|
+
active: Schema.optionalKey(Schema.Boolean),
|
|
83
|
+
limit: Schema.optionalKey(Schema.Number.check(Schema.isBetween({ minimum: 1, maximum: 200 }))),
|
|
84
|
+
});
|
|
85
|
+
export const ProgressTasks = Schema.Struct({ tasks: Schema.Array(ProgressTask) });
|
|
86
|
+
export const ProgressRef = Schema.Struct({ id: Schema.String });
|
|
87
|
+
export const ProgressCancelled = Schema.Struct({ id: Schema.String, cancelRequested: Schema.Boolean });
|
|
88
|
+
/** The kernel actions (module `progress`). */
|
|
89
|
+
export const PROGRESS_ACTIONS = {
|
|
90
|
+
list: "progress.list",
|
|
91
|
+
get: "progress.get",
|
|
92
|
+
cancel: "progress.cancel",
|
|
93
|
+
remove: "progress.remove",
|
|
94
|
+
};
|
|
95
|
+
const Errors = Schema.Union([Unauthenticated, Forbidden, InvalidInput]);
|
|
96
|
+
export const ProgressContract = defineServiceContract({
|
|
97
|
+
name: "Progress",
|
|
98
|
+
kind: "kernel",
|
|
99
|
+
version: "1.0.0",
|
|
100
|
+
description: "Progress records for long-running work (workflows, ingestion, agent runs, imports, exports): a title, a " +
|
|
101
|
+
"step, a percentage or count, a message and a status, owned by the person whose work it is and synced to " +
|
|
102
|
+
"their replica only. Work reports through ctx.progress in handlers and workflows; the owner cancels, and a workflow " +
|
|
103
|
+
"learns it at its next report or checkpoint and stops. Finished tasks never change.",
|
|
104
|
+
operations: {
|
|
105
|
+
start: defineOperation({
|
|
106
|
+
description: "In process (ctx.progress.start): start a task owned by the acting person. In a workflow the task is keyed " +
|
|
107
|
+
"by the execution and the name, so a resumed execution continues the same task.",
|
|
108
|
+
input: ProgressStart,
|
|
109
|
+
output: ProgressRef,
|
|
110
|
+
errors: InvalidInput,
|
|
111
|
+
}),
|
|
112
|
+
update: defineOperation({
|
|
113
|
+
description: "In process (ctx.progress.update): report a step, a percentage, a count or a message. In a workflow it " +
|
|
114
|
+
"answers whether the owner cancelled (the task then ends cancelled and nothing more is recorded) and " +
|
|
115
|
+
"whether the task had finished already (the report changed nothing).",
|
|
116
|
+
input: Schema.Struct({ id: Schema.String, update: ProgressUpdate }),
|
|
117
|
+
output: ProgressReport,
|
|
118
|
+
errors: InvalidInput,
|
|
119
|
+
}),
|
|
120
|
+
checkpoint: defineOperation({
|
|
121
|
+
description: "In process (ctx.progress.checkpoint, workflows): whether the owner cancelled (the task then ends cancelled).",
|
|
122
|
+
input: ProgressRef,
|
|
123
|
+
output: ProgressReport,
|
|
124
|
+
errors: Schema.Never,
|
|
125
|
+
}),
|
|
126
|
+
complete: defineOperation({
|
|
127
|
+
description: "In process: the task succeeded (100 percent). A cancelled or finished task stays as it is.",
|
|
128
|
+
input: Schema.Struct({ id: Schema.String, finish: ProgressFinish }),
|
|
129
|
+
output: Schema.Void,
|
|
130
|
+
errors: Schema.Never,
|
|
131
|
+
}),
|
|
132
|
+
fail: defineOperation({
|
|
133
|
+
description: "In process: the task failed, with a message (redacted and cut to the limit).",
|
|
134
|
+
input: Schema.Struct({ id: Schema.String, finish: ProgressFinish }),
|
|
135
|
+
output: Schema.Void,
|
|
136
|
+
errors: Schema.Never,
|
|
137
|
+
}),
|
|
138
|
+
list: defineOperation({
|
|
139
|
+
description: "progress.list: your own tasks in the organisation you act in, newest first.",
|
|
140
|
+
input: ProgressList,
|
|
141
|
+
output: ProgressTasks,
|
|
142
|
+
errors: Errors,
|
|
143
|
+
}),
|
|
144
|
+
get: defineOperation({
|
|
145
|
+
description: "progress.get: one of your tasks.",
|
|
146
|
+
input: ProgressRef,
|
|
147
|
+
output: ProgressTask,
|
|
148
|
+
errors: Errors,
|
|
149
|
+
}),
|
|
150
|
+
cancel: defineOperation({
|
|
151
|
+
description: "progress.cancel: ask the work behind one of your running tasks to stop. Audited. Cancelling a finished " +
|
|
152
|
+
"task changes nothing.",
|
|
153
|
+
input: ProgressRef,
|
|
154
|
+
output: ProgressCancelled,
|
|
155
|
+
errors: Errors,
|
|
156
|
+
}),
|
|
157
|
+
remove: defineOperation({
|
|
158
|
+
description: "progress.remove: delete one of your finished tasks (a running one is refused).",
|
|
159
|
+
input: ProgressRef,
|
|
160
|
+
output: ProgressRef,
|
|
161
|
+
errors: Errors,
|
|
162
|
+
}),
|
|
163
|
+
},
|
|
164
|
+
types: { ProgressTask, ProgressKind, ProgressStatus, ProgressStart, ProgressUpdate, ProgressReport },
|
|
165
|
+
});
|
|
166
|
+
/** The percentage a report gives: its own, or derived from done and total. */
|
|
167
|
+
export const progressPercent = (done, total, percent) => {
|
|
168
|
+
if (percent !== null)
|
|
169
|
+
return Math.round(percent * 100) / 100;
|
|
170
|
+
if (done === null || total === null || total <= 0)
|
|
171
|
+
return null;
|
|
172
|
+
return Math.round(Math.min(100, (done / total) * 100) * 100) / 100;
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../src/contracts/Progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;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,sEAAsE;AACtE,MAAM,CAAC,MAAM,cAAc,GAAG,CA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