@eloxiv/testing 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/Admin.d.ts +20 -0
- package/dist/Admin.d.ts.map +1 -0
- package/dist/Admin.js +61 -0
- package/dist/Admin.js.map +1 -0
- package/dist/Agent.d.ts +97 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +210 -0
- package/dist/Agent.js.map +1 -0
- package/dist/AgentSurface.d.ts +20 -0
- package/dist/AgentSurface.d.ts.map +1 -0
- package/dist/AgentSurface.js +36 -0
- package/dist/AgentSurface.js.map +1 -0
- package/dist/Embedder.d.ts +21 -0
- package/dist/Embedder.d.ts.map +1 -0
- package/dist/Embedder.js +54 -0
- package/dist/Embedder.js.map +1 -0
- package/dist/EvalMain.d.ts +2 -0
- package/dist/EvalMain.d.ts.map +1 -0
- package/dist/EvalMain.js +80 -0
- package/dist/EvalMain.js.map +1 -0
- package/dist/Evals.d.ts +95 -0
- package/dist/Evals.d.ts.map +1 -0
- package/dist/Evals.js +389 -0
- package/dist/Evals.js.map +1 -0
- package/dist/Kernel.d.ts +88 -0
- package/dist/Kernel.d.ts.map +1 -0
- package/dist/Kernel.js +108 -0
- package/dist/Kernel.js.map +1 -0
- package/dist/Launch.d.ts +86 -0
- package/dist/Launch.d.ts.map +1 -0
- package/dist/Launch.js +370 -0
- package/dist/Launch.js.map +1 -0
- package/dist/Locks.d.ts +39 -0
- package/dist/Locks.d.ts.map +1 -0
- package/dist/Locks.js +94 -0
- package/dist/Locks.js.map +1 -0
- package/dist/Routes.d.ts +19 -0
- package/dist/Routes.d.ts.map +1 -0
- package/dist/Routes.js +38 -0
- package/dist/Routes.js.map +1 -0
- package/dist/ScriptedChatModel.d.ts +51 -0
- package/dist/ScriptedChatModel.d.ts.map +1 -0
- package/dist/ScriptedChatModel.js +135 -0
- package/dist/ScriptedChatModel.js.map +1 -0
- package/dist/SmtpSink.d.ts +36 -0
- package/dist/SmtpSink.d.ts.map +1 -0
- package/dist/SmtpSink.js +185 -0
- package/dist/SmtpSink.js.map +1 -0
- package/dist/System.d.ts +271 -0
- package/dist/System.d.ts.map +1 -0
- package/dist/System.js +905 -0
- package/dist/System.js.map +1 -0
- package/dist/TcpProxy.d.ts +17 -0
- package/dist/TcpProxy.d.ts.map +1 -0
- package/dist/TcpProxy.js +100 -0
- package/dist/TcpProxy.js.map +1 -0
- package/dist/auth/TrustedProxyAuth.d.ts +28 -0
- package/dist/auth/TrustedProxyAuth.d.ts.map +1 -0
- package/dist/auth/TrustedProxyAuth.js +128 -0
- package/dist/auth/TrustedProxyAuth.js.map +1 -0
- package/dist/conformance/ActionConsent.d.ts +3 -0
- package/dist/conformance/ActionConsent.d.ts.map +1 -0
- package/dist/conformance/ActionConsent.js +347 -0
- package/dist/conformance/ActionConsent.js.map +1 -0
- package/dist/conformance/ActionRegistry.d.ts +64 -0
- package/dist/conformance/ActionRegistry.d.ts.map +1 -0
- package/dist/conformance/ActionRegistry.js +136 -0
- package/dist/conformance/ActionRegistry.js.map +1 -0
- package/dist/conformance/Actor.d.ts +43 -0
- package/dist/conformance/Actor.d.ts.map +1 -0
- package/dist/conformance/Actor.js +171 -0
- package/dist/conformance/Actor.js.map +1 -0
- package/dist/conformance/AgentReference.d.ts +30 -0
- package/dist/conformance/AgentReference.d.ts.map +1 -0
- package/dist/conformance/AgentReference.js +137 -0
- package/dist/conformance/AgentReference.js.map +1 -0
- package/dist/conformance/AgentResources.d.ts +3 -0
- package/dist/conformance/AgentResources.d.ts.map +1 -0
- package/dist/conformance/AgentResources.js +454 -0
- package/dist/conformance/AgentResources.js.map +1 -0
- package/dist/conformance/AgentRuntime.d.ts +3 -0
- package/dist/conformance/AgentRuntime.d.ts.map +1 -0
- package/dist/conformance/AgentRuntime.js +302 -0
- package/dist/conformance/AgentRuntime.js.map +1 -0
- package/dist/conformance/AgentSubject.d.ts +87 -0
- package/dist/conformance/AgentSubject.d.ts.map +1 -0
- package/dist/conformance/AgentSubject.js +18 -0
- package/dist/conformance/AgentSubject.js.map +1 -0
- package/dist/conformance/Approvals.d.ts +3 -0
- package/dist/conformance/Approvals.d.ts.map +1 -0
- package/dist/conformance/Approvals.js +258 -0
- package/dist/conformance/Approvals.js.map +1 -0
- package/dist/conformance/Audit.d.ts +3 -0
- package/dist/conformance/Audit.d.ts.map +1 -0
- package/dist/conformance/Audit.js +221 -0
- package/dist/conformance/Audit.js.map +1 -0
- package/dist/conformance/CalendarProvider.d.ts +4 -0
- package/dist/conformance/CalendarProvider.d.ts.map +1 -0
- package/dist/conformance/CalendarProvider.js +108 -0
- package/dist/conformance/CalendarProvider.js.map +1 -0
- package/dist/conformance/CapabilityKit.d.ts +191 -0
- package/dist/conformance/CapabilityKit.d.ts.map +1 -0
- package/dist/conformance/CapabilityKit.js +375 -0
- package/dist/conformance/CapabilityKit.js.map +1 -0
- package/dist/conformance/ClientSDK.d.ts +78 -0
- package/dist/conformance/ClientSDK.d.ts.map +1 -0
- package/dist/conformance/ClientSDK.js +163 -0
- package/dist/conformance/ClientSDK.js.map +1 -0
- package/dist/conformance/CollabDocument.d.ts +3 -0
- package/dist/conformance/CollabDocument.d.ts.map +1 -0
- package/dist/conformance/CollabDocument.js +934 -0
- package/dist/conformance/CollabDocument.js.map +1 -0
- package/dist/conformance/CollabReference.d.ts +8 -0
- package/dist/conformance/CollabReference.d.ts.map +1 -0
- package/dist/conformance/CollabReference.js +138 -0
- package/dist/conformance/CollabReference.js.map +1 -0
- package/dist/conformance/CollabSubject.d.ts +68 -0
- package/dist/conformance/CollabSubject.d.ts.map +1 -0
- package/dist/conformance/CollabSubject.js +2 -0
- package/dist/conformance/CollabSubject.js.map +1 -0
- package/dist/conformance/Command.d.ts +3 -0
- package/dist/conformance/Command.d.ts.map +1 -0
- package/dist/conformance/Command.js +73 -0
- package/dist/conformance/Command.js.map +1 -0
- package/dist/conformance/Connections.d.ts +4 -0
- package/dist/conformance/Connections.d.ts.map +1 -0
- package/dist/conformance/Connections.js +308 -0
- package/dist/conformance/Connections.js.map +1 -0
- package/dist/conformance/ConnectionsReference.d.ts +56 -0
- package/dist/conformance/ConnectionsReference.d.ts.map +1 -0
- package/dist/conformance/ConnectionsReference.js +74 -0
- package/dist/conformance/ConnectionsReference.js.map +1 -0
- package/dist/conformance/ConnectorReference.d.ts +86 -0
- package/dist/conformance/ConnectorReference.d.ts.map +1 -0
- package/dist/conformance/ConnectorReference.js +185 -0
- package/dist/conformance/ConnectorReference.js.map +1 -0
- package/dist/conformance/ContextAccounting.d.ts +8 -0
- package/dist/conformance/ContextAccounting.d.ts.map +1 -0
- package/dist/conformance/ContextAccounting.js +125 -0
- package/dist/conformance/ContextAccounting.js.map +1 -0
- package/dist/conformance/Daemon.d.ts +150 -0
- package/dist/conformance/Daemon.d.ts.map +1 -0
- package/dist/conformance/Daemon.js +718 -0
- package/dist/conformance/Daemon.js.map +1 -0
- package/dist/conformance/DaemonReference.d.ts +15 -0
- package/dist/conformance/DaemonReference.d.ts.map +1 -0
- package/dist/conformance/DaemonReference.js +163 -0
- package/dist/conformance/DaemonReference.js.map +1 -0
- package/dist/conformance/DbTx.d.ts +17 -0
- package/dist/conformance/DbTx.d.ts.map +1 -0
- package/dist/conformance/DbTx.js +184 -0
- package/dist/conformance/DbTx.js.map +1 -0
- package/dist/conformance/DecisionTokens.d.ts +3 -0
- package/dist/conformance/DecisionTokens.d.ts.map +1 -0
- package/dist/conformance/DecisionTokens.js +551 -0
- package/dist/conformance/DecisionTokens.js.map +1 -0
- package/dist/conformance/Delegation.d.ts +3 -0
- package/dist/conformance/Delegation.d.ts.map +1 -0
- package/dist/conformance/Delegation.js +149 -0
- package/dist/conformance/Delegation.js.map +1 -0
- package/dist/conformance/DeskReference.d.ts +21 -0
- package/dist/conformance/DeskReference.d.ts.map +1 -0
- package/dist/conformance/DeskReference.js +47 -0
- package/dist/conformance/DeskReference.js.map +1 -0
- package/dist/conformance/DeviceControl.d.ts +3 -0
- package/dist/conformance/DeviceControl.d.ts.map +1 -0
- package/dist/conformance/DeviceControl.js +579 -0
- package/dist/conformance/DeviceControl.js.map +1 -0
- package/dist/conformance/Directory.d.ts +36 -0
- package/dist/conformance/Directory.d.ts.map +1 -0
- package/dist/conformance/Directory.js +253 -0
- package/dist/conformance/Directory.js.map +1 -0
- package/dist/conformance/DirectoryProvider.d.ts +4 -0
- package/dist/conformance/DirectoryProvider.d.ts.map +1 -0
- package/dist/conformance/DirectoryProvider.js +58 -0
- package/dist/conformance/DirectoryProvider.js.map +1 -0
- package/dist/conformance/DocumentSource.d.ts +4 -0
- package/dist/conformance/DocumentSource.d.ts.map +1 -0
- package/dist/conformance/DocumentSource.js +43 -0
- package/dist/conformance/DocumentSource.js.map +1 -0
- package/dist/conformance/EndpointReference.d.ts +40 -0
- package/dist/conformance/EndpointReference.d.ts.map +1 -0
- package/dist/conformance/EndpointReference.js +67 -0
- package/dist/conformance/EndpointReference.js.map +1 -0
- package/dist/conformance/Files.d.ts +40 -0
- package/dist/conformance/Files.d.ts.map +1 -0
- package/dist/conformance/Files.js +592 -0
- package/dist/conformance/Files.js.map +1 -0
- package/dist/conformance/FilesReference.d.ts +31 -0
- package/dist/conformance/FilesReference.d.ts.map +1 -0
- package/dist/conformance/FilesReference.js +116 -0
- package/dist/conformance/FilesReference.js.map +1 -0
- package/dist/conformance/FilesSubject.d.ts +46 -0
- package/dist/conformance/FilesSubject.d.ts.map +1 -0
- package/dist/conformance/FilesSubject.js +3 -0
- package/dist/conformance/FilesSubject.js.map +1 -0
- package/dist/conformance/Flags.d.ts +3 -0
- package/dist/conformance/Flags.d.ts.map +1 -0
- package/dist/conformance/Flags.js +183 -0
- package/dist/conformance/Flags.js.map +1 -0
- package/dist/conformance/Host.d.ts +64 -0
- package/dist/conformance/Host.d.ts.map +1 -0
- package/dist/conformance/Host.js +152 -0
- package/dist/conformance/Host.js.map +1 -0
- package/dist/conformance/HttpApi.d.ts +5 -0
- package/dist/conformance/HttpApi.d.ts.map +1 -0
- package/dist/conformance/HttpApi.js +131 -0
- package/dist/conformance/HttpApi.js.map +1 -0
- package/dist/conformance/InboxReference.d.ts +28 -0
- package/dist/conformance/InboxReference.d.ts.map +1 -0
- package/dist/conformance/InboxReference.js +331 -0
- package/dist/conformance/InboxReference.js.map +1 -0
- package/dist/conformance/InboxSubject.d.ts +92 -0
- package/dist/conformance/InboxSubject.d.ts.map +1 -0
- package/dist/conformance/InboxSubject.js +16 -0
- package/dist/conformance/InboxSubject.js.map +1 -0
- package/dist/conformance/Ingestion.d.ts +10 -0
- package/dist/conformance/Ingestion.d.ts.map +1 -0
- package/dist/conformance/Ingestion.js +335 -0
- package/dist/conformance/Ingestion.js.map +1 -0
- package/dist/conformance/Ingress.d.ts +62 -0
- package/dist/conformance/Ingress.d.ts.map +1 -0
- package/dist/conformance/Ingress.js +346 -0
- package/dist/conformance/Ingress.js.map +1 -0
- package/dist/conformance/Invocation.d.ts +3 -0
- package/dist/conformance/Invocation.d.ts.map +1 -0
- package/dist/conformance/Invocation.js +665 -0
- package/dist/conformance/Invocation.js.map +1 -0
- package/dist/conformance/IsolationMatrix.d.ts +60 -0
- package/dist/conformance/IsolationMatrix.d.ts.map +1 -0
- package/dist/conformance/IsolationMatrix.js +196 -0
- package/dist/conformance/IsolationMatrix.js.map +1 -0
- package/dist/conformance/LiveConnection.d.ts +72 -0
- package/dist/conformance/LiveConnection.d.ts.map +1 -0
- package/dist/conformance/LiveConnection.js +125 -0
- package/dist/conformance/LiveConnection.js.map +1 -0
- package/dist/conformance/LocalClient.d.ts +62 -0
- package/dist/conformance/LocalClient.d.ts.map +1 -0
- package/dist/conformance/LocalClient.js +526 -0
- package/dist/conformance/LocalClient.js.map +1 -0
- package/dist/conformance/Locale.d.ts +28 -0
- package/dist/conformance/Locale.d.ts.map +1 -0
- package/dist/conformance/Locale.js +115 -0
- package/dist/conformance/Locale.js.map +1 -0
- package/dist/conformance/MachineIdentity.d.ts +39 -0
- package/dist/conformance/MachineIdentity.d.ts.map +1 -0
- package/dist/conformance/MachineIdentity.js +595 -0
- package/dist/conformance/MachineIdentity.js.map +1 -0
- package/dist/conformance/MailProvider.d.ts +4 -0
- package/dist/conformance/MailProvider.d.ts.map +1 -0
- package/dist/conformance/MailProvider.js +167 -0
- package/dist/conformance/MailProvider.js.map +1 -0
- package/dist/conformance/Memory.d.ts +10 -0
- package/dist/conformance/Memory.d.ts.map +1 -0
- package/dist/conformance/Memory.js +179 -0
- package/dist/conformance/Memory.js.map +1 -0
- package/dist/conformance/Messaging.d.ts +49 -0
- package/dist/conformance/Messaging.d.ts.map +1 -0
- package/dist/conformance/Messaging.js +117 -0
- package/dist/conformance/Messaging.js.map +1 -0
- package/dist/conformance/Metering.d.ts +26 -0
- package/dist/conformance/Metering.d.ts.map +1 -0
- package/dist/conformance/Metering.js +236 -0
- package/dist/conformance/Metering.js.map +1 -0
- package/dist/conformance/ModelProvider.d.ts +32 -0
- package/dist/conformance/ModelProvider.d.ts.map +1 -0
- package/dist/conformance/ModelProvider.js +100 -0
- package/dist/conformance/ModelProvider.js.map +1 -0
- package/dist/conformance/ModuleManifest.d.ts +9 -0
- package/dist/conformance/ModuleManifest.d.ts.map +1 -0
- package/dist/conformance/ModuleManifest.js +542 -0
- package/dist/conformance/ModuleManifest.js.map +1 -0
- package/dist/conformance/NotebookAgent.d.ts +32 -0
- package/dist/conformance/NotebookAgent.d.ts.map +1 -0
- package/dist/conformance/NotebookAgent.js +31 -0
- package/dist/conformance/NotebookAgent.js.map +1 -0
- package/dist/conformance/NotificationChannel.d.ts +40 -0
- package/dist/conformance/NotificationChannel.d.ts.map +1 -0
- package/dist/conformance/NotificationChannel.js +78 -0
- package/dist/conformance/NotificationChannel.js.map +1 -0
- package/dist/conformance/Notifications.d.ts +3 -0
- package/dist/conformance/Notifications.d.ts.map +1 -0
- package/dist/conformance/Notifications.js +240 -0
- package/dist/conformance/Notifications.js.map +1 -0
- package/dist/conformance/OAuthClient.d.ts +123 -0
- package/dist/conformance/OAuthClient.d.ts.map +1 -0
- package/dist/conformance/OAuthClient.js +204 -0
- package/dist/conformance/OAuthClient.js.map +1 -0
- package/dist/conformance/Outbox.d.ts +3 -0
- package/dist/conformance/Outbox.d.ts.map +1 -0
- package/dist/conformance/Outbox.js +266 -0
- package/dist/conformance/Outbox.js.map +1 -0
- package/dist/conformance/PlatformReference.d.ts +5 -0
- package/dist/conformance/PlatformReference.d.ts.map +1 -0
- package/dist/conformance/PlatformReference.js +66 -0
- package/dist/conformance/PlatformReference.js.map +1 -0
- package/dist/conformance/PlatformSubject.d.ts +45 -0
- package/dist/conformance/PlatformSubject.d.ts.map +1 -0
- package/dist/conformance/PlatformSubject.js +3 -0
- package/dist/conformance/PlatformSubject.js.map +1 -0
- package/dist/conformance/Privacy.d.ts +3 -0
- package/dist/conformance/Privacy.d.ts.map +1 -0
- package/dist/conformance/Privacy.js +437 -0
- package/dist/conformance/Privacy.js.map +1 -0
- package/dist/conformance/Progress.d.ts +3 -0
- package/dist/conformance/Progress.d.ts.map +1 -0
- package/dist/conformance/Progress.js +153 -0
- package/dist/conformance/Progress.js.map +1 -0
- package/dist/conformance/Push.d.ts +38 -0
- package/dist/conformance/Push.d.ts.map +1 -0
- package/dist/conformance/Push.js +649 -0
- package/dist/conformance/Push.js.map +1 -0
- package/dist/conformance/PushReference.d.ts +3 -0
- package/dist/conformance/PushReference.d.ts.map +1 -0
- package/dist/conformance/PushReference.js +97 -0
- package/dist/conformance/PushReference.js.map +1 -0
- package/dist/conformance/QuerySurface.d.ts +9 -0
- package/dist/conformance/QuerySurface.d.ts.map +1 -0
- package/dist/conformance/QuerySurface.js +349 -0
- package/dist/conformance/QuerySurface.js.map +1 -0
- package/dist/conformance/Readiness.d.ts +23 -0
- package/dist/conformance/Readiness.d.ts.map +1 -0
- package/dist/conformance/Readiness.js +110 -0
- package/dist/conformance/Readiness.js.map +1 -0
- package/dist/conformance/Reference.d.ts +17 -0
- package/dist/conformance/Reference.d.ts.map +1 -0
- package/dist/conformance/Reference.js +246 -0
- package/dist/conformance/Reference.js.map +1 -0
- package/dist/conformance/Release.d.ts +73 -0
- package/dist/conformance/Release.d.ts.map +1 -0
- package/dist/conformance/Release.js +556 -0
- package/dist/conformance/Release.js.map +1 -0
- package/dist/conformance/ReleaseReference.d.ts +5 -0
- package/dist/conformance/ReleaseReference.d.ts.map +1 -0
- package/dist/conformance/ReleaseReference.js +124 -0
- package/dist/conformance/ReleaseReference.js.map +1 -0
- package/dist/conformance/ResultRendering.d.ts +3 -0
- package/dist/conformance/ResultRendering.d.ts.map +1 -0
- package/dist/conformance/ResultRendering.js +120 -0
- package/dist/conformance/ResultRendering.js.map +1 -0
- package/dist/conformance/Sandbox.d.ts +58 -0
- package/dist/conformance/Sandbox.d.ts.map +1 -0
- package/dist/conformance/Sandbox.js +213 -0
- package/dist/conformance/Sandbox.js.map +1 -0
- package/dist/conformance/SandboxReference.d.ts +3 -0
- package/dist/conformance/SandboxReference.d.ts.map +1 -0
- package/dist/conformance/SandboxReference.js +44 -0
- package/dist/conformance/SandboxReference.js.map +1 -0
- package/dist/conformance/Scheduler.d.ts +106 -0
- package/dist/conformance/Scheduler.d.ts.map +1 -0
- package/dist/conformance/Scheduler.js +576 -0
- package/dist/conformance/Scheduler.js.map +1 -0
- package/dist/conformance/ScreenContext.d.ts +84 -0
- package/dist/conformance/ScreenContext.d.ts.map +1 -0
- package/dist/conformance/ScreenContext.js +290 -0
- package/dist/conformance/ScreenContext.js.map +1 -0
- package/dist/conformance/Search.d.ts +3 -0
- package/dist/conformance/Search.d.ts.map +1 -0
- package/dist/conformance/Search.js +333 -0
- package/dist/conformance/Search.js.map +1 -0
- package/dist/conformance/Secrets.d.ts +8 -0
- package/dist/conformance/Secrets.d.ts.map +1 -0
- package/dist/conformance/Secrets.js +231 -0
- package/dist/conformance/Secrets.js.map +1 -0
- package/dist/conformance/SecretsReference.d.ts +44 -0
- package/dist/conformance/SecretsReference.d.ts.map +1 -0
- package/dist/conformance/SecretsReference.js +73 -0
- package/dist/conformance/SecretsReference.js.map +1 -0
- package/dist/conformance/ServicesReference.d.ts +8 -0
- package/dist/conformance/ServicesReference.d.ts.map +1 -0
- package/dist/conformance/ServicesReference.js +273 -0
- package/dist/conformance/ServicesReference.js.map +1 -0
- package/dist/conformance/ServicesSubject.d.ts +104 -0
- package/dist/conformance/ServicesSubject.d.ts.map +1 -0
- package/dist/conformance/ServicesSubject.js +2 -0
- package/dist/conformance/ServicesSubject.js.map +1 -0
- package/dist/conformance/Settings.d.ts +3 -0
- package/dist/conformance/Settings.d.ts.map +1 -0
- package/dist/conformance/Settings.js +177 -0
- package/dist/conformance/Settings.js.map +1 -0
- package/dist/conformance/Sharing.d.ts +3 -0
- package/dist/conformance/Sharing.d.ts.map +1 -0
- package/dist/conformance/Sharing.js +368 -0
- package/dist/conformance/Sharing.js.map +1 -0
- package/dist/conformance/ShellSubject.d.ts +29 -0
- package/dist/conformance/ShellSubject.d.ts.map +1 -0
- package/dist/conformance/ShellSubject.js +13 -0
- package/dist/conformance/ShellSubject.js.map +1 -0
- package/dist/conformance/SignOutRace.d.ts +23 -0
- package/dist/conformance/SignOutRace.d.ts.map +1 -0
- package/dist/conformance/SignOutRace.js +49 -0
- package/dist/conformance/SignOutRace.js.map +1 -0
- package/dist/conformance/Slot.d.ts +3 -0
- package/dist/conformance/Slot.d.ts.map +1 -0
- package/dist/conformance/Slot.js +79 -0
- package/dist/conformance/Slot.js.map +1 -0
- package/dist/conformance/Space.d.ts +63 -0
- package/dist/conformance/Space.d.ts.map +1 -0
- package/dist/conformance/Space.js +294 -0
- package/dist/conformance/Space.js.map +1 -0
- package/dist/conformance/StorageAdapter.d.ts +76 -0
- package/dist/conformance/StorageAdapter.d.ts.map +1 -0
- package/dist/conformance/StorageAdapter.js +181 -0
- package/dist/conformance/StorageAdapter.js.map +1 -0
- package/dist/conformance/StorageBackend.d.ts +23 -0
- package/dist/conformance/StorageBackend.d.ts.map +1 -0
- package/dist/conformance/StorageBackend.js +274 -0
- package/dist/conformance/StorageBackend.js.map +1 -0
- package/dist/conformance/Subject.d.ts +198 -0
- package/dist/conformance/Subject.d.ts.map +1 -0
- package/dist/conformance/Subject.js +26 -0
- package/dist/conformance/Subject.js.map +1 -0
- package/dist/conformance/Sync.d.ts +3 -0
- package/dist/conformance/Sync.d.ts.map +1 -0
- package/dist/conformance/Sync.js +190 -0
- package/dist/conformance/Sync.js.map +1 -0
- package/dist/conformance/Telemetry.d.ts +3 -0
- package/dist/conformance/Telemetry.d.ts.map +1 -0
- package/dist/conformance/Telemetry.js +218 -0
- package/dist/conformance/Telemetry.js.map +1 -0
- package/dist/conformance/ThemeTokens.d.ts +22 -0
- package/dist/conformance/ThemeTokens.d.ts.map +1 -0
- package/dist/conformance/ThemeTokens.js +121 -0
- package/dist/conformance/ThemeTokens.js.map +1 -0
- package/dist/conformance/ToolSource.d.ts +5 -0
- package/dist/conformance/ToolSource.d.ts.map +1 -0
- package/dist/conformance/ToolSource.js +520 -0
- package/dist/conformance/ToolSource.js.map +1 -0
- package/dist/conformance/Versioning.d.ts +3 -0
- package/dist/conformance/Versioning.d.ts.map +1 -0
- package/dist/conformance/Versioning.js +160 -0
- package/dist/conformance/Versioning.js.map +1 -0
- package/dist/conformance/View.d.ts +3 -0
- package/dist/conformance/View.d.ts.map +1 -0
- package/dist/conformance/View.js +121 -0
- package/dist/conformance/View.js.map +1 -0
- package/dist/conformance/WorkItems.d.ts +3 -0
- package/dist/conformance/WorkItems.d.ts.map +1 -0
- package/dist/conformance/WorkItems.js +152 -0
- package/dist/conformance/WorkItems.js.map +1 -0
- package/dist/conformance/Workflow.d.ts +63 -0
- package/dist/conformance/Workflow.d.ts.map +1 -0
- package/dist/conformance/Workflow.js +235 -0
- package/dist/conformance/Workflow.js.map +1 -0
- package/dist/conformance/acme/chatlog.d.ts +591 -0
- package/dist/conformance/acme/chatlog.d.ts.map +1 -0
- package/dist/conformance/acme/chatlog.js +101 -0
- package/dist/conformance/acme/chatlog.js.map +1 -0
- package/dist/conformance/acme/connector.d.ts +12 -0
- package/dist/conformance/acme/connector.d.ts.map +1 -0
- package/dist/conformance/acme/connector.js +123 -0
- package/dist/conformance/acme/connector.js.map +1 -0
- package/dist/conformance/acme/migrations/0000_messages.sql +8 -0
- package/dist/conformance/archive/app.d.ts +728 -0
- package/dist/conformance/archive/app.d.ts.map +1 -0
- package/dist/conformance/archive/app.js +30 -0
- package/dist/conformance/archive/app.js.map +1 -0
- package/dist/conformance/archive/contract.d.ts +467 -0
- package/dist/conformance/archive/contract.d.ts.map +1 -0
- package/dist/conformance/archive/contract.js +187 -0
- package/dist/conformance/archive/contract.js.map +1 -0
- package/dist/conformance/archive/memo.sync.gen.d.ts +148 -0
- package/dist/conformance/archive/memo.sync.gen.d.ts.map +1 -0
- package/dist/conformance/archive/memo.sync.gen.js +23 -0
- package/dist/conformance/archive/memo.sync.gen.js.map +1 -0
- package/dist/conformance/archive/migrations/archive/0000_archive.sql +9 -0
- package/dist/conformance/archive/migrations/memo/0000_memo.sql +6 -0
- package/dist/conformance/archive/schema.d.ts +185 -0
- package/dist/conformance/archive/schema.d.ts.map +1 -0
- package/dist/conformance/archive/schema.js +22 -0
- package/dist/conformance/archive/schema.js.map +1 -0
- package/dist/conformance/archive/server.d.ts +273 -0
- package/dist/conformance/archive/server.d.ts.map +1 -0
- package/dist/conformance/archive/server.js +127 -0
- package/dist/conformance/archive/server.js.map +1 -0
- package/dist/conformance/archive/sync.gen.d.ts +319 -0
- package/dist/conformance/archive/sync.gen.d.ts.map +1 -0
- package/dist/conformance/archive/sync.gen.js +29 -0
- package/dist/conformance/archive/sync.gen.js.map +1 -0
- package/dist/conformance/atlas/app.d.ts +3 -0
- package/dist/conformance/atlas/app.d.ts.map +1 -0
- package/dist/conformance/atlas/app.js +15 -0
- package/dist/conformance/atlas/app.js.map +1 -0
- package/dist/conformance/atlas/contract.d.ts +489 -0
- package/dist/conformance/atlas/contract.d.ts.map +1 -0
- package/dist/conformance/atlas/contract.js +114 -0
- package/dist/conformance/atlas/contract.js.map +1 -0
- package/dist/conformance/crm/app.d.ts +304 -0
- package/dist/conformance/crm/app.d.ts.map +1 -0
- package/dist/conformance/crm/app.js +95 -0
- package/dist/conformance/crm/app.js.map +1 -0
- package/dist/conformance/crm/contract.d.ts +586 -0
- package/dist/conformance/crm/contract.d.ts.map +1 -0
- package/dist/conformance/crm/contract.js +153 -0
- package/dist/conformance/crm/contract.js.map +1 -0
- package/dist/conformance/crm/migrations/crm/0000_crm.sql +18 -0
- package/dist/conformance/crm/migrations/team/0000_team.sql +6 -0
- package/dist/conformance/crm/schema.d.ts +261 -0
- package/dist/conformance/crm/schema.d.ts.map +1 -0
- package/dist/conformance/crm/schema.js +25 -0
- package/dist/conformance/crm/schema.js.map +1 -0
- package/dist/conformance/crm/sync.gen.d.ts +188 -0
- package/dist/conformance/crm/sync.gen.d.ts.map +1 -0
- package/dist/conformance/crm/sync.gen.js +25 -0
- package/dist/conformance/crm/sync.gen.js.map +1 -0
- package/dist/conformance/desk/contract.d.ts +306 -0
- package/dist/conformance/desk/contract.d.ts.map +1 -0
- package/dist/conformance/desk/contract.js +56 -0
- package/dist/conformance/desk/contract.js.map +1 -0
- package/dist/conformance/desk/migrations/0000_notes.sql +7 -0
- package/dist/conformance/desk/server.d.ts +231 -0
- package/dist/conformance/desk/server.d.ts.map +1 -0
- package/dist/conformance/desk/server.js +123 -0
- package/dist/conformance/desk/server.js.map +1 -0
- package/dist/conformance/drafts/migrations/0000_drafts.sql +8 -0
- package/dist/conformance/drafts/module.d.ts +571 -0
- package/dist/conformance/drafts/module.d.ts.map +1 -0
- package/dist/conformance/drafts/module.js +190 -0
- package/dist/conformance/drafts/module.js.map +1 -0
- package/dist/conformance/fixture/app.d.ts +24 -0
- package/dist/conformance/fixture/app.d.ts.map +1 -0
- package/dist/conformance/fixture/app.js +26 -0
- package/dist/conformance/fixture/app.js.map +1 -0
- package/dist/conformance/fixture/docs/bad-sync.d.ts +105 -0
- package/dist/conformance/fixture/docs/bad-sync.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/bad-sync.js +22 -0
- package/dist/conformance/fixture/docs/bad-sync.js.map +1 -0
- package/dist/conformance/fixture/docs/contract.d.ts +1091 -0
- package/dist/conformance/fixture/docs/contract.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/contract.js +277 -0
- package/dist/conformance/fixture/docs/contract.js.map +1 -0
- package/dist/conformance/fixture/docs/migrations/0000_docs.sql +9 -0
- package/dist/conformance/fixture/docs/migrations/0001_seen.sql +12 -0
- package/dist/conformance/fixture/docs/migrations/0002_attachment.sql +6 -0
- package/dist/conformance/fixture/docs/policy.cedar +110 -0
- package/dist/conformance/fixture/docs/schema.d.ts +308 -0
- package/dist/conformance/fixture/docs/schema.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/schema.js +36 -0
- package/dist/conformance/fixture/docs/schema.js.map +1 -0
- package/dist/conformance/fixture/docs/server.d.ts +552 -0
- package/dist/conformance/fixture/docs/server.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/server.js +192 -0
- package/dist/conformance/fixture/docs/server.js.map +1 -0
- package/dist/conformance/fixture/docs/sync.d.ts +402 -0
- package/dist/conformance/fixture/docs/sync.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/sync.gen.d.ts +574 -0
- package/dist/conformance/fixture/docs/sync.gen.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/sync.gen.js +48 -0
- package/dist/conformance/fixture/docs/sync.gen.js.map +1 -0
- package/dist/conformance/fixture/docs/sync.js +23 -0
- package/dist/conformance/fixture/docs/sync.js.map +1 -0
- package/dist/conformance/fixture/peer/migrations/0000_peer.sql +8 -0
- package/dist/conformance/fixture/peer/module.d.ts +306 -0
- package/dist/conformance/fixture/peer/module.d.ts.map +1 -0
- package/dist/conformance/fixture/peer/module.js +44 -0
- package/dist/conformance/fixture/peer/module.js.map +1 -0
- package/dist/conformance/fixture/release/blocking/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/blocking/0001_wait.sql +2 -0
- package/dist/conformance/fixture/release/blocking-renamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/blocking-renamed/0001_wait.sql +5 -0
- package/dist/conformance/fixture/release/broken/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/broken/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/broken/0002_label.sql +3 -0
- package/dist/conformance/fixture/release/drift/escalate/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/drift/escalate/0001_escalate.sql +8 -0
- package/dist/conformance/fixture/release/drift/v1/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/escape/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/escape/0001_escape.sql +5 -0
- package/dist/conformance/fixture/release/misnamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/misnamed/0001_misname.sql +10 -0
- package/dist/conformance/fixture/release/module.d.ts +1878 -0
- package/dist/conformance/fixture/release/module.d.ts.map +1 -0
- package/dist/conformance/fixture/release/module.js +102 -0
- package/dist/conformance/fixture/release/module.js.map +1 -0
- package/dist/conformance/fixture/release/outside/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/outside/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/outside/0002_index.sql +4 -0
- package/dist/conformance/fixture/release/outside/0003_later.sql +1 -0
- package/dist/conformance/fixture/release/renamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/renamed/0001_misname.sql +10 -0
- package/dist/conformance/fixture/release/renamed/0002_restore.sql +1 -0
- package/dist/conformance/fixture/release/rogue/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/rogue/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/rogue/0002_definer.sql +1 -0
- package/dist/conformance/fixture/release/slow/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/undeclared/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/undeclared/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/undeclared/0002_index.sql +1 -0
- package/dist/conformance/fixture/release/v1/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/v2/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/v2/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/v2/0002_label.sql +3 -0
- package/dist/conformance/fixture/release/viewed-retyped/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/viewed-retyped/0001_retype.sql +1 -0
- package/dist/conformance/kit-hash.d.ts +8 -0
- package/dist/conformance/kit-hash.d.ts.map +1 -0
- package/dist/conformance/kit-hash.js +20 -0
- package/dist/conformance/kit-hash.js.map +1 -0
- package/dist/conformance/ledger/contract.d.ts +380 -0
- package/dist/conformance/ledger/contract.d.ts.map +1 -0
- package/dist/conformance/ledger/contract.js +81 -0
- package/dist/conformance/ledger/contract.js.map +1 -0
- package/dist/conformance/ledger/migrations/0000_entries.sql +8 -0
- package/dist/conformance/ledger/server.d.ts +312 -0
- package/dist/conformance/ledger/server.d.ts.map +1 -0
- package/dist/conformance/ledger/server.js +152 -0
- package/dist/conformance/ledger/server.js.map +1 -0
- package/dist/conformance/library/app.d.ts +616 -0
- package/dist/conformance/library/app.d.ts.map +1 -0
- package/dist/conformance/library/app.js +35 -0
- package/dist/conformance/library/app.js.map +1 -0
- package/dist/conformance/library/contract.d.ts +377 -0
- package/dist/conformance/library/contract.d.ts.map +1 -0
- package/dist/conformance/library/contract.js +63 -0
- package/dist/conformance/library/contract.js.map +1 -0
- package/dist/conformance/library/migrations/0000_library.sql +14 -0
- package/dist/conformance/library/schema.d.ts +174 -0
- package/dist/conformance/library/schema.d.ts.map +1 -0
- package/dist/conformance/library/schema.js +24 -0
- package/dist/conformance/library/schema.js.map +1 -0
- package/dist/conformance/library/server.d.ts +191 -0
- package/dist/conformance/library/server.d.ts.map +1 -0
- package/dist/conformance/library/server.js +52 -0
- package/dist/conformance/library/server.js.map +1 -0
- package/dist/conformance/library/sync.gen.d.ts +519 -0
- package/dist/conformance/library/sync.gen.d.ts.map +1 -0
- package/dist/conformance/library/sync.gen.js +42 -0
- package/dist/conformance/library/sync.gen.js.map +1 -0
- package/dist/conformance/locale/catalog.d.ts +93 -0
- package/dist/conformance/locale/catalog.d.ts.map +1 -0
- package/dist/conformance/locale/catalog.js +104 -0
- package/dist/conformance/locale/catalog.js.map +1 -0
- package/dist/conformance/notebook/app.d.ts +1039 -0
- package/dist/conformance/notebook/app.d.ts.map +1 -0
- package/dist/conformance/notebook/app.js +88 -0
- package/dist/conformance/notebook/app.js.map +1 -0
- package/dist/conformance/notebook/evals/pages.evals.json +94 -0
- package/dist/conformance/notebook/migrations/0000_notebook.sql +10 -0
- package/dist/conformance/notebook/module.d.ts +717 -0
- package/dist/conformance/notebook/module.d.ts.map +1 -0
- package/dist/conformance/notebook/module.js +188 -0
- package/dist/conformance/notebook/module.js.map +1 -0
- package/dist/conformance/pad/app.d.ts +9 -0
- package/dist/conformance/pad/app.d.ts.map +1 -0
- package/dist/conformance/pad/app.js +13 -0
- package/dist/conformance/pad/app.js.map +1 -0
- package/dist/conformance/pad/contract.d.ts +281 -0
- package/dist/conformance/pad/contract.d.ts.map +1 -0
- package/dist/conformance/pad/contract.js +66 -0
- package/dist/conformance/pad/contract.js.map +1 -0
- package/dist/conformance/pad/migrations/pad/0000_pad.sql +8 -0
- package/dist/conformance/pad/migrations/pad/0001_live_copy.sql +2 -0
- package/dist/conformance/pad/schema.d.ts +127 -0
- package/dist/conformance/pad/schema.d.ts.map +1 -0
- package/dist/conformance/pad/schema.js +17 -0
- package/dist/conformance/pad/schema.js.map +1 -0
- package/dist/conformance/pad/server.d.ts +149 -0
- package/dist/conformance/pad/server.d.ts.map +1 -0
- package/dist/conformance/pad/server.js +81 -0
- package/dist/conformance/pad/server.js.map +1 -0
- package/dist/conformance/purchases/app.d.ts +480 -0
- package/dist/conformance/purchases/app.d.ts.map +1 -0
- package/dist/conformance/purchases/app.js +32 -0
- package/dist/conformance/purchases/app.js.map +1 -0
- package/dist/conformance/purchases/contract.d.ts +720 -0
- package/dist/conformance/purchases/contract.d.ts.map +1 -0
- package/dist/conformance/purchases/contract.js +148 -0
- package/dist/conformance/purchases/contract.js.map +1 -0
- package/dist/conformance/purchases/migrations/0000_purchases.sql +17 -0
- package/dist/conformance/purchases/server.d.ts +250 -0
- package/dist/conformance/purchases/server.d.ts.map +1 -0
- package/dist/conformance/purchases/server.js +85 -0
- package/dist/conformance/purchases/server.js.map +1 -0
- package/dist/conformance/studio/app.d.ts +996 -0
- package/dist/conformance/studio/app.d.ts.map +1 -0
- package/dist/conformance/studio/app.js +251 -0
- package/dist/conformance/studio/app.js.map +1 -0
- package/dist/conformance/studio/contract.d.ts +1318 -0
- package/dist/conformance/studio/contract.d.ts.map +1 -0
- package/dist/conformance/studio/contract.js +280 -0
- package/dist/conformance/studio/contract.js.map +1 -0
- package/dist/conformance/studio/migrations/billing/0000_billing.sql +6 -0
- package/dist/conformance/studio/migrations/journal/0000_journal.sql +9 -0
- package/dist/conformance/studio/migrations/mailbox/0000_mailbox.sql +7 -0
- package/dist/conformance/studio/migrations/tasks/0000_tasks.sql +7 -0
- package/dist/conformance/workshop/app.d.ts +8 -0
- package/dist/conformance/workshop/app.d.ts.map +1 -0
- package/dist/conformance/workshop/app.js +13 -0
- package/dist/conformance/workshop/app.js.map +1 -0
- package/dist/conformance/workshop/migrations/0000_notes.sql +7 -0
- package/dist/conformance/workshop/module.d.ts +407 -0
- package/dist/conformance/workshop/module.d.ts.map +1 -0
- package/dist/conformance/workshop/module.js +71 -0
- package/dist/conformance/workshop/module.js.map +1 -0
- package/dist/fakes/AcmeFake.d.ts +46 -0
- package/dist/fakes/AcmeFake.d.ts.map +1 -0
- package/dist/fakes/AcmeFake.js +131 -0
- package/dist/fakes/AcmeFake.js.map +1 -0
- package/dist/fakes/ApnsFake.d.ts +79 -0
- package/dist/fakes/ApnsFake.d.ts.map +1 -0
- package/dist/fakes/ApnsFake.js +220 -0
- package/dist/fakes/ApnsFake.js.map +1 -0
- package/dist/fakes/FcmFake.d.ts +46 -0
- package/dist/fakes/FcmFake.d.ts.map +1 -0
- package/dist/fakes/FcmFake.js +185 -0
- package/dist/fakes/FcmFake.js.map +1 -0
- package/dist/fakes/GoogleFake.d.ts +221 -0
- package/dist/fakes/GoogleFake.d.ts.map +1 -0
- package/dist/fakes/GoogleFake.js +1035 -0
- package/dist/fakes/GoogleFake.js.map +1 -0
- package/dist/fakes/HttpApiFake.d.ts +22 -0
- package/dist/fakes/HttpApiFake.d.ts.map +1 -0
- package/dist/fakes/HttpApiFake.js +74 -0
- package/dist/fakes/HttpApiFake.js.map +1 -0
- package/dist/fakes/McpFake.d.ts +80 -0
- package/dist/fakes/McpFake.d.ts.map +1 -0
- package/dist/fakes/McpFake.js +312 -0
- package/dist/fakes/McpFake.js.map +1 -0
- package/dist/fakes/MicrosoftGraphFake.d.ts +254 -0
- package/dist/fakes/MicrosoftGraphFake.d.ts.map +1 -0
- package/dist/fakes/MicrosoftGraphFake.js +850 -0
- package/dist/fakes/MicrosoftGraphFake.js.map +1 -0
- package/dist/fakes/S3Fake.d.ts +29 -0
- package/dist/fakes/S3Fake.d.ts.map +1 -0
- package/dist/fakes/S3Fake.js +347 -0
- package/dist/fakes/S3Fake.js.map +1 -0
- package/dist/fakes/Server.d.ts +137 -0
- package/dist/fakes/Server.d.ts.map +1 -0
- package/dist/fakes/Server.js +357 -0
- package/dist/fakes/Server.js.map +1 -0
- package/dist/fakes/SignInProviderFake.d.ts +21 -0
- package/dist/fakes/SignInProviderFake.d.ts.map +1 -0
- package/dist/fakes/SignInProviderFake.js +56 -0
- package/dist/fakes/SignInProviderFake.js.map +1 -0
- package/dist/fakes/SlackFake.d.ts +136 -0
- package/dist/fakes/SlackFake.d.ts.map +1 -0
- package/dist/fakes/SlackFake.js +787 -0
- package/dist/fakes/SlackFake.js.map +1 -0
- package/dist/fakes/Store.d.ts +40 -0
- package/dist/fakes/Store.d.ts.map +1 -0
- package/dist/fakes/Store.js +82 -0
- package/dist/fakes/Store.js.map +1 -0
- package/dist/fakes/TelemetryFakes.d.ts +77 -0
- package/dist/fakes/TelemetryFakes.d.ts.map +1 -0
- package/dist/fakes/TelemetryFakes.js +121 -0
- package/dist/fakes/TelemetryFakes.js.map +1 -0
- package/dist/fakes/TestCa.d.ts +11 -0
- package/dist/fakes/TestCa.d.ts.map +1 -0
- package/dist/fakes/TestCa.js +115 -0
- package/dist/fakes/TestCa.js.map +1 -0
- package/dist/fakes/WorkOsFake.d.ts +40 -0
- package/dist/fakes/WorkOsFake.d.ts.map +1 -0
- package/dist/fakes/WorkOsFake.js +103 -0
- package/dist/fakes/WorkOsFake.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/make/reference.d.ts +520 -0
- package/dist/make/reference.d.ts.map +1 -0
- package/dist/make/reference.js +182 -0
- package/dist/make/reference.js.map +1 -0
- package/dist/make/sources.d.ts +48 -0
- package/dist/make/sources.d.ts.map +1 -0
- package/dist/make/sources.js +806 -0
- package/dist/make/sources.js.map +1 -0
- package/package.json +77 -3
- package/src/Admin.ts +82 -0
- package/src/Agent.ts +289 -0
- package/src/AgentSurface.ts +51 -0
- package/src/Embedder.ts +69 -0
- package/src/EvalMain.ts +81 -0
- package/src/Evals.ts +490 -0
- package/src/Kernel.ts +228 -0
- package/src/Launch.ts +428 -0
- package/src/Locks.ts +123 -0
- package/src/Routes.ts +65 -0
- package/src/ScriptedChatModel.ts +189 -0
- package/src/SmtpSink.ts +205 -0
- package/src/System.ts +1072 -0
- package/src/TcpProxy.ts +102 -0
- package/src/auth/TrustedProxyAuth.ts +173 -0
- package/src/conformance/ActionConsent.ts +437 -0
- package/src/conformance/ActionRegistry.ts +174 -0
- package/src/conformance/Actor.ts +216 -0
- package/src/conformance/AgentReference.ts +171 -0
- package/src/conformance/AgentResources.ts +548 -0
- package/src/conformance/AgentRuntime.ts +388 -0
- package/src/conformance/AgentSubject.ts +103 -0
- package/src/conformance/Approvals.ts +363 -0
- package/src/conformance/Audit.ts +257 -0
- package/src/conformance/CalendarProvider.ts +156 -0
- package/src/conformance/CapabilityKit.ts +564 -0
- package/src/conformance/ClientSDK.ts +233 -0
- package/src/conformance/CollabDocument.ts +1203 -0
- package/src/conformance/CollabReference.ts +152 -0
- package/src/conformance/CollabSubject.ts +64 -0
- package/src/conformance/Command.ts +75 -0
- package/src/conformance/Connections.ts +357 -0
- package/src/conformance/ConnectionsReference.ts +172 -0
- package/src/conformance/ConnectorReference.ts +280 -0
- package/src/conformance/ContextAccounting.ts +169 -0
- package/src/conformance/Daemon.ts +936 -0
- package/src/conformance/DaemonReference.ts +189 -0
- package/src/conformance/DbTx.ts +253 -0
- package/src/conformance/DecisionTokens.ts +652 -0
- package/src/conformance/Delegation.ts +177 -0
- package/src/conformance/DeskReference.ts +73 -0
- package/src/conformance/DeviceControl.ts +700 -0
- package/src/conformance/Directory.ts +315 -0
- package/src/conformance/DirectoryProvider.ts +72 -0
- package/src/conformance/DocumentSource.ts +62 -0
- package/src/conformance/EndpointReference.ts +117 -0
- package/src/conformance/Files.ts +685 -0
- package/src/conformance/FilesReference.ts +154 -0
- package/src/conformance/FilesSubject.ts +50 -0
- package/src/conformance/Flags.ts +215 -0
- package/src/conformance/Host.ts +197 -0
- package/src/conformance/HttpApi.ts +169 -0
- package/src/conformance/InboxReference.ts +401 -0
- package/src/conformance/InboxSubject.ts +101 -0
- package/src/conformance/Ingestion.ts +425 -0
- package/src/conformance/Ingress.ts +498 -0
- package/src/conformance/Invocation.ts +780 -0
- package/src/conformance/IsolationMatrix.ts +215 -0
- package/src/conformance/LiveConnection.ts +197 -0
- package/src/conformance/LocalClient.ts +651 -0
- package/src/conformance/Locale.ts +141 -0
- package/src/conformance/MachineIdentity.ts +828 -0
- package/src/conformance/MailProvider.ts +217 -0
- package/src/conformance/Memory.ts +223 -0
- package/src/conformance/Messaging.ts +185 -0
- package/src/conformance/Metering.ts +293 -0
- package/src/conformance/ModelProvider.ts +139 -0
- package/src/conformance/ModuleManifest.ts +630 -0
- package/src/conformance/NotebookAgent.ts +41 -0
- package/src/conformance/NotificationChannel.ts +122 -0
- package/src/conformance/Notifications.ts +316 -0
- package/src/conformance/OAuthClient.ts +240 -0
- package/src/conformance/Outbox.ts +342 -0
- package/src/conformance/PlatformReference.ts +73 -0
- package/src/conformance/PlatformSubject.ts +50 -0
- package/src/conformance/Privacy.ts +577 -0
- package/src/conformance/Progress.ts +244 -0
- package/src/conformance/Push.ts +820 -0
- package/src/conformance/PushReference.ts +101 -0
- package/src/conformance/QuerySurface.ts +408 -0
- package/src/conformance/Readiness.ts +157 -0
- package/src/conformance/Reference.ts +326 -0
- package/src/conformance/Release.ts +690 -0
- package/src/conformance/ReleaseReference.ts +179 -0
- package/src/conformance/ResultRendering.ts +149 -0
- package/src/conformance/Sandbox.ts +313 -0
- package/src/conformance/SandboxReference.ts +52 -0
- package/src/conformance/Scheduler.ts +764 -0
- package/src/conformance/ScreenContext.ts +402 -0
- package/src/conformance/Search.ts +419 -0
- package/src/conformance/Secrets.ts +277 -0
- package/src/conformance/SecretsReference.ts +131 -0
- package/src/conformance/ServicesReference.ts +330 -0
- package/src/conformance/ServicesSubject.ts +105 -0
- package/src/conformance/Settings.ts +204 -0
- package/src/conformance/Sharing.ts +486 -0
- package/src/conformance/ShellSubject.ts +47 -0
- package/src/conformance/SignOutRace.ts +77 -0
- package/src/conformance/Slot.ts +84 -0
- package/src/conformance/Space.ts +432 -0
- package/src/conformance/StorageAdapter.ts +253 -0
- package/src/conformance/StorageBackend.ts +327 -0
- package/src/conformance/Subject.ts +208 -0
- package/src/conformance/Sync.ts +215 -0
- package/src/conformance/Telemetry.ts +287 -0
- package/src/conformance/ThemeTokens.ts +163 -0
- package/src/conformance/ToolSource.ts +632 -0
- package/src/conformance/Versioning.ts +199 -0
- package/src/conformance/View.ts +143 -0
- package/src/conformance/WorkItems.ts +186 -0
- package/src/conformance/Workflow.ts +304 -0
- package/src/conformance/acme/chatlog.ts +115 -0
- package/src/conformance/acme/connector.ts +151 -0
- package/src/conformance/acme/migrations/0000_messages.sql +8 -0
- package/src/conformance/archive/app.ts +33 -0
- package/src/conformance/archive/contract.ts +191 -0
- package/src/conformance/archive/memo.sync.gen.ts +25 -0
- package/src/conformance/archive/migrations/archive/0000_archive.sql +9 -0
- package/src/conformance/archive/migrations/memo/0000_memo.sql +6 -0
- package/src/conformance/archive/schema.ts +25 -0
- package/src/conformance/archive/server.ts +146 -0
- package/src/conformance/archive/sync.gen.ts +32 -0
- package/src/conformance/atlas/app.ts +16 -0
- package/src/conformance/atlas/contract.ts +118 -0
- package/src/conformance/crm/app.ts +107 -0
- package/src/conformance/crm/contract.ts +163 -0
- package/src/conformance/crm/migrations/crm/0000_crm.sql +18 -0
- package/src/conformance/crm/migrations/team/0000_team.sql +6 -0
- package/src/conformance/crm/schema.ts +28 -0
- package/src/conformance/crm/sync.gen.ts +27 -0
- package/src/conformance/desk/contract.ts +61 -0
- package/src/conformance/desk/migrations/0000_notes.sql +7 -0
- package/src/conformance/desk/server.ts +131 -0
- package/src/conformance/drafts/migrations/0000_drafts.sql +8 -0
- package/src/conformance/drafts/module.ts +211 -0
- package/src/conformance/fixture/app.ts +37 -0
- package/src/conformance/fixture/docs/bad-sync.ts +34 -0
- package/src/conformance/fixture/docs/contract.ts +297 -0
- package/src/conformance/fixture/docs/migrations/0000_docs.sql +9 -0
- package/src/conformance/fixture/docs/migrations/0001_seen.sql +12 -0
- package/src/conformance/fixture/docs/migrations/0002_attachment.sql +6 -0
- package/src/conformance/fixture/docs/policy.cedar +110 -0
- package/src/conformance/fixture/docs/schema.ts +41 -0
- package/src/conformance/fixture/docs/server.ts +292 -0
- package/src/conformance/fixture/docs/sync.gen.ts +54 -0
- package/src/conformance/fixture/docs/sync.ts +24 -0
- package/src/conformance/fixture/peer/migrations/0000_peer.sql +8 -0
- package/src/conformance/fixture/peer/module.ts +51 -0
- package/src/conformance/fixture/release/blocking/0000_item.sql +3 -0
- package/src/conformance/fixture/release/blocking/0001_wait.sql +2 -0
- package/src/conformance/fixture/release/blocking-renamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/blocking-renamed/0001_wait.sql +5 -0
- package/src/conformance/fixture/release/broken/0000_item.sql +3 -0
- package/src/conformance/fixture/release/broken/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/broken/0002_label.sql +3 -0
- package/src/conformance/fixture/release/drift/escalate/0000_item.sql +5 -0
- package/src/conformance/fixture/release/drift/escalate/0001_escalate.sql +8 -0
- package/src/conformance/fixture/release/drift/v1/0000_item.sql +5 -0
- package/src/conformance/fixture/release/escape/0000_item.sql +3 -0
- package/src/conformance/fixture/release/escape/0001_escape.sql +5 -0
- package/src/conformance/fixture/release/misnamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/misnamed/0001_misname.sql +10 -0
- package/src/conformance/fixture/release/module.ts +119 -0
- package/src/conformance/fixture/release/outside/0000_item.sql +3 -0
- package/src/conformance/fixture/release/outside/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/outside/0002_index.sql +4 -0
- package/src/conformance/fixture/release/outside/0003_later.sql +1 -0
- package/src/conformance/fixture/release/renamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/renamed/0001_misname.sql +10 -0
- package/src/conformance/fixture/release/renamed/0002_restore.sql +1 -0
- package/src/conformance/fixture/release/rogue/0000_item.sql +3 -0
- package/src/conformance/fixture/release/rogue/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/rogue/0002_definer.sql +1 -0
- package/src/conformance/fixture/release/slow/0000_item.sql +5 -0
- package/src/conformance/fixture/release/undeclared/0000_item.sql +3 -0
- package/src/conformance/fixture/release/undeclared/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/undeclared/0002_index.sql +1 -0
- package/src/conformance/fixture/release/v1/0000_item.sql +3 -0
- package/src/conformance/fixture/release/v2/0000_item.sql +3 -0
- package/src/conformance/fixture/release/v2/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/v2/0002_label.sql +3 -0
- package/src/conformance/fixture/release/viewed-retyped/0000_item.sql +3 -0
- package/src/conformance/fixture/release/viewed-retyped/0001_retype.sql +1 -0
- package/src/conformance/kit-hash.ts +18 -0
- package/src/conformance/ledger/contract.ts +92 -0
- package/src/conformance/ledger/migrations/0000_entries.sql +8 -0
- package/src/conformance/ledger/server.ts +174 -0
- package/src/conformance/library/app.ts +38 -0
- package/src/conformance/library/contract.ts +66 -0
- package/src/conformance/library/migrations/0000_library.sql +14 -0
- package/src/conformance/library/schema.ts +27 -0
- package/src/conformance/library/server.ts +65 -0
- package/src/conformance/library/sync.gen.ts +47 -0
- package/src/conformance/locale/catalog.ts +111 -0
- package/src/conformance/notebook/app.ts +115 -0
- package/src/conformance/notebook/evals/pages.evals.json +94 -0
- package/src/conformance/notebook/migrations/0000_notebook.sql +10 -0
- package/src/conformance/notebook/module.ts +215 -0
- package/src/conformance/notebook/skills/meeting-notes.md +4 -0
- package/src/conformance/pad/app.ts +21 -0
- package/src/conformance/pad/contract.ts +69 -0
- package/src/conformance/pad/migrations/pad/0000_pad.sql +8 -0
- package/src/conformance/pad/migrations/pad/0001_live_copy.sql +2 -0
- package/src/conformance/pad/schema.ts +18 -0
- package/src/conformance/pad/server.ts +102 -0
- package/src/conformance/purchases/app.ts +34 -0
- package/src/conformance/purchases/contract.ts +161 -0
- package/src/conformance/purchases/migrations/0000_purchases.sql +17 -0
- package/src/conformance/purchases/server.ts +95 -0
- package/src/conformance/replica-search.mjs +22 -0
- package/src/conformance/studio/app.ts +298 -0
- package/src/conformance/studio/contract.ts +319 -0
- package/src/conformance/studio/migrations/billing/0000_billing.sql +6 -0
- package/src/conformance/studio/migrations/journal/0000_journal.sql +9 -0
- package/src/conformance/studio/migrations/mailbox/0000_mailbox.sql +7 -0
- package/src/conformance/studio/migrations/tasks/0000_tasks.sql +7 -0
- package/src/conformance/workshop/app.ts +14 -0
- package/src/conformance/workshop/migrations/0000_notes.sql +7 -0
- package/src/conformance/workshop/module.ts +79 -0
- package/src/fakes/AcmeFake.ts +182 -0
- package/src/fakes/ApnsFake.ts +245 -0
- package/src/fakes/FcmFake.ts +231 -0
- package/src/fakes/GoogleFake.ts +1346 -0
- package/src/fakes/HttpApiFake.ts +116 -0
- package/src/fakes/McpFake.ts +355 -0
- package/src/fakes/MicrosoftGraphFake.ts +1191 -0
- package/src/fakes/S3Fake.ts +376 -0
- package/src/fakes/Server.ts +445 -0
- package/src/fakes/SignInProviderFake.ts +70 -0
- package/src/fakes/SlackFake.ts +893 -0
- package/src/fakes/Store.ts +96 -0
- package/src/fakes/TelemetryFakes.ts +197 -0
- package/src/fakes/TestCa.ts +166 -0
- package/src/fakes/WorkOsFake.ts +136 -0
- package/src/index.ts +9 -0
- package/src/make/reference.ts +259 -0
- package/src/make/sources.ts +836 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conformance kit for the Slot shell contract (docs/contracts/slot.md), over the shell fixture
|
|
3
|
+
* (`./atlas/contract.ts`): every module's slots; each slot's contributions from every module, resolved to the
|
|
4
|
+
* view or palette entry they name, in one deterministic order (`order` ascending, unordered after, then
|
|
5
|
+
* installation order, then contribution id), whatever order the modules are listed in their own manifests; the
|
|
6
|
+
* manifest check refusing contributions of the wrong kind, to missing slots, or of missing targets.
|
|
7
|
+
*
|
|
8
|
+
* Usage: `slotConformance((modules, options) => myShellRegistry(modules, options))`.
|
|
9
|
+
*/
|
|
10
|
+
import { defineModuleContract, manifestProblems, SlotDescriptor, SlotEntry } from "@eloxiv/contracts"
|
|
11
|
+
import { Schema } from "effect"
|
|
12
|
+
import { describe, expect, it } from "vitest"
|
|
13
|
+
import { almanac, atlas, SHELL_ORIGIN, shellFixture } from "./atlas/contract.ts"
|
|
14
|
+
import { thrown, type MakeShellNavigation } from "./ShellSubject.ts"
|
|
15
|
+
|
|
16
|
+
const ids = (entries: ReadonlyArray<SlotEntry>) => entries.map((e) => e.contribution)
|
|
17
|
+
|
|
18
|
+
export const slotConformance = (make: MakeShellNavigation) =>
|
|
19
|
+
describe("Slot contract", () => {
|
|
20
|
+
const shell = make(shellFixture, { origin: SHELL_ORIGIN })
|
|
21
|
+
|
|
22
|
+
it("lists every module's slots, in installation order then by id", () => {
|
|
23
|
+
const slots = shell.slots()
|
|
24
|
+
for (const slot of slots) expect(Schema.is(SlotDescriptor)(slot)).toBe(true)
|
|
25
|
+
expect(slots).toEqual([
|
|
26
|
+
{ id: "atlas.panels", module: "atlas", description: "Panels beside the board", accepts: "view" },
|
|
27
|
+
{ id: "atlas.toolbar", module: "atlas", description: "Buttons on the board's toolbar", accepts: "command" },
|
|
28
|
+
])
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("resolves a slot's contributions from every module, ordered, to the views and entries they name", () => {
|
|
32
|
+
const panels = shell.slot("atlas.panels")
|
|
33
|
+
for (const entry of panels) expect(Schema.is(SlotEntry)(entry)).toBe(true)
|
|
34
|
+
// Ordered first (almanac's, order 1); then unordered, by installation order (atlas before almanac).
|
|
35
|
+
expect(ids(panels)).toEqual(["almanac.entriesPanel", "atlas.archivePanel", "almanac.diaryPanel"])
|
|
36
|
+
expect(panels[0]).toMatchObject({
|
|
37
|
+
module: "almanac",
|
|
38
|
+
order: 1,
|
|
39
|
+
target: { view: { id: "almanac.entries", route: "/almanac", title: "Almanac" } },
|
|
40
|
+
})
|
|
41
|
+
const toolbar = shell.slot("atlas.toolbar")
|
|
42
|
+
// Order 1, then the two at order 2 by installation order: atlas's, then almanac's.
|
|
43
|
+
expect(ids(toolbar)).toEqual(["almanac.todayButton", "atlas.newButton", "almanac.searchButton"])
|
|
44
|
+
expect(toolbar[1]).toMatchObject({
|
|
45
|
+
target: { command: { id: "atlas.newCard", run: { kind: "action", action: "atlas.create" } } },
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
it("orders the same whatever order the manifests list their contributions in", () => {
|
|
50
|
+
const reversed = defineModuleContract({
|
|
51
|
+
...almanac,
|
|
52
|
+
contributions: Object.fromEntries(Object.entries(almanac.contributions).toReversed()),
|
|
53
|
+
})
|
|
54
|
+
const again = make([atlas, reversed], { origin: SHELL_ORIGIN })
|
|
55
|
+
expect(ids(again.slot("atlas.panels"))).toEqual(ids(shell.slot("atlas.panels")))
|
|
56
|
+
expect(ids(again.slot("atlas.toolbar"))).toEqual(ids(shell.slot("atlas.toolbar")))
|
|
57
|
+
// Installation order is the tie-break: with almanac installed first, its unordered panel comes first.
|
|
58
|
+
const swapped = make([almanac, atlas], { origin: SHELL_ORIGIN })
|
|
59
|
+
expect(ids(swapped.slot("atlas.panels"))).toEqual([
|
|
60
|
+
"almanac.entriesPanel",
|
|
61
|
+
"almanac.diaryPanel",
|
|
62
|
+
"atlas.archivePanel",
|
|
63
|
+
])
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
it("fails a slot no module declares with UnknownSlot", () => {
|
|
67
|
+
expect(thrown(() => shell.slot("atlas.nothing"))).toMatchObject({ _tag: "UnknownSlot", slot: "atlas.nothing" })
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
it("is guarded by the manifest check: wrong kinds, missing slots and missing targets are refused", () => {
|
|
71
|
+
const bad = defineModuleContract({
|
|
72
|
+
...almanac,
|
|
73
|
+
contributions: {
|
|
74
|
+
"almanac.wrongKind": { slot: "atlas.toolbar", view: "almanac.entries" },
|
|
75
|
+
"almanac.noSlot": { slot: "atlas.sidebar", view: "almanac.entries" },
|
|
76
|
+
"almanac.noView": { slot: "atlas.panels", view: "almanac.calendar" },
|
|
77
|
+
},
|
|
78
|
+
})
|
|
79
|
+
const problems = manifestProblems([atlas, bad]).join("\n")
|
|
80
|
+
expect(problems).toContain("almanac.wrongKind contributes a view to slot atlas.toolbar, which accepts commands")
|
|
81
|
+
expect(problems).toContain("almanac.noSlot contributes to slot atlas.sidebar, which does not exist")
|
|
82
|
+
expect(problems).toContain("almanac.noView contributes unknown view almanac.calendar")
|
|
83
|
+
})
|
|
84
|
+
})
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conformance kit for the Space shell contract (docs/contracts/space.md). Two parts:
|
|
3
|
+
*
|
|
4
|
+
* - **The kernel** (a running kernel serving `./atlas/app.ts`'s spaces conformance app, through `InboxSubject`):
|
|
5
|
+
* only holders of `eloxiv.spaces.manage` define and withdraw spaces, in their own organisation; a member's
|
|
6
|
+
* replica (the sync endpoint's scoped query) holds exactly the spaces granted to everyone or to a role they hold
|
|
7
|
+
* in the organisation they act in, live as roles change, as spaces are re-granted and withdrawn; preferences
|
|
8
|
+
* are each person's own, only for a space granted to them, and never add an entry the space does not have;
|
|
9
|
+
* every call is audited.
|
|
10
|
+
* - **Resolution on the client** (`resolve`): a space granted through several roles is one space; entries naming
|
|
11
|
+
* views no installed module declares are dropped; the person's entry order and hidden entries apply, never
|
|
12
|
+
* adding an entry; pinned first, then position, then title; hidden spaces only when asked for.
|
|
13
|
+
*
|
|
14
|
+
* Usage: `spaceConformance({ kernel: () => startMyKernel(spacesApp), resolve })`.
|
|
15
|
+
*/
|
|
16
|
+
import {
|
|
17
|
+
ResolvedSpace,
|
|
18
|
+
SPACES_ACTIONS,
|
|
19
|
+
SPACES_MANAGE_PERMISSION,
|
|
20
|
+
type SpaceDefinition,
|
|
21
|
+
type ViewDescriptor,
|
|
22
|
+
} from "@eloxiv/contracts"
|
|
23
|
+
import { Schema } from "effect"
|
|
24
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest"
|
|
25
|
+
import { shellFixture } from "./atlas/contract.ts"
|
|
26
|
+
import { unique, until, type InboxOutcome, type InboxSubject, type InboxUser } from "./InboxSubject.ts"
|
|
27
|
+
|
|
28
|
+
/** A grant row and a preference row, as the client's replica holds them. */
|
|
29
|
+
export interface GrantRow {
|
|
30
|
+
readonly spaceId: string
|
|
31
|
+
readonly title: string
|
|
32
|
+
readonly description?: string | null
|
|
33
|
+
readonly icon?: string | null
|
|
34
|
+
readonly entries: ReadonlyArray<{ readonly view: string }>
|
|
35
|
+
readonly position: number
|
|
36
|
+
readonly updatedAt: number
|
|
37
|
+
}
|
|
38
|
+
export interface PreferenceRow {
|
|
39
|
+
readonly spaceId: string
|
|
40
|
+
readonly pinned?: boolean | null
|
|
41
|
+
readonly hidden?: boolean | null
|
|
42
|
+
readonly position?: number | null
|
|
43
|
+
readonly entryOrder?: ReadonlyArray<string> | null
|
|
44
|
+
readonly hiddenEntries?: ReadonlyArray<string> | null
|
|
45
|
+
readonly updatedAt?: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** One person's replica of the spaces, connected to the sync server and kept open. */
|
|
49
|
+
export interface SpacesReplica {
|
|
50
|
+
/** The space ids of the grant rows the replica holds now. */
|
|
51
|
+
readonly granted: () => ReadonlyArray<string>
|
|
52
|
+
/** The space ids of the preference rows the replica holds now. */
|
|
53
|
+
readonly preferences: () => ReadonlyArray<string>
|
|
54
|
+
readonly close: () => Promise<void>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SpaceSubject {
|
|
58
|
+
readonly kernel: () => Promise<InboxSubject>
|
|
59
|
+
/**
|
|
60
|
+
* Open a person's replica in `org` against a sync server over the kernel's database, connected for the rest of
|
|
61
|
+
* the test (its server must not re-run the person's queries on its own while it is open, so what changes is
|
|
62
|
+
* the live evaluation of the filter, not a fresh query).
|
|
63
|
+
*/
|
|
64
|
+
readonly replica: (kernel: InboxSubject, person: InboxUser, org: string) => Promise<SpacesReplica>
|
|
65
|
+
/** The implementation's client-side resolution, over the shell fixture's installed views. */
|
|
66
|
+
readonly resolve: (
|
|
67
|
+
grants: ReadonlyArray<GrantRow>,
|
|
68
|
+
preferences: ReadonlyArray<PreferenceRow>,
|
|
69
|
+
views: { readonly findView: (id: string) => ViewDescriptor | undefined },
|
|
70
|
+
options?: { readonly includeHidden?: boolean },
|
|
71
|
+
) => ReadonlyArray<ResolvedSpace>
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const ok = (outcome: InboxOutcome) => {
|
|
75
|
+
if (!outcome.ok) throw new Error(`Expected success, got ${JSON.stringify(outcome.error)}`)
|
|
76
|
+
return (outcome.result as { readonly output?: unknown }).output
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** The installed views of the shell fixture, for `resolve`. */
|
|
80
|
+
const fixtureViews = (() => {
|
|
81
|
+
const views = new Map<string, ViewDescriptor>()
|
|
82
|
+
for (const module of shellFixture) {
|
|
83
|
+
for (const [id, view] of Object.entries(module.views)) {
|
|
84
|
+
views.set(id, { id, module: module.name, title: view.title, route: view.route, shows: view.shows })
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return { findView: (id: string) => views.get(id) }
|
|
88
|
+
})()
|
|
89
|
+
|
|
90
|
+
export const spaceConformance = (subject: SpaceSubject) =>
|
|
91
|
+
describe("Space contract", () => {
|
|
92
|
+
describe("the kernel", () => {
|
|
93
|
+
let kernel: InboxSubject
|
|
94
|
+
let admin: InboxUser
|
|
95
|
+
let sales: InboxUser
|
|
96
|
+
let other: InboxUser
|
|
97
|
+
let outsider: InboxUser
|
|
98
|
+
const org = "acme"
|
|
99
|
+
beforeAll(async () => {
|
|
100
|
+
kernel = await subject.kernel()
|
|
101
|
+
admin = await kernel.user("ada", org, { roles: ["admin"] })
|
|
102
|
+
await kernel.role(org, "sales", [])
|
|
103
|
+
await kernel.role(org, "support", [])
|
|
104
|
+
sales = await kernel.user("sam", org, { roles: ["sales"] })
|
|
105
|
+
other = await kernel.user("oli", org, { roles: ["support"] })
|
|
106
|
+
outsider = await kernel.user("gus", "globex", { roles: ["admin"] })
|
|
107
|
+
await kernel.role("globex", "sales", [])
|
|
108
|
+
await kernel.assignRole(outsider.id, "globex", "sales")
|
|
109
|
+
})
|
|
110
|
+
afterAll(() => kernel?.dispose())
|
|
111
|
+
|
|
112
|
+
const define = (by: InboxUser, space: SpaceDefinition, inOrg = org) =>
|
|
113
|
+
kernel.invoke({ action: SPACES_ACTIONS.define, input: space, token: by.token, org: inOrg })
|
|
114
|
+
/** The spaces a person's replica holds: the space ids of the grant rows the sync query selects. */
|
|
115
|
+
const granted = async (person: InboxUser, inOrg = org) => {
|
|
116
|
+
const answer = await kernel.query(person.token, "spaces.granted", inOrg)
|
|
117
|
+
const ids = await kernel.selected(answer, "eloxiv_spaces.space_grant")
|
|
118
|
+
const rows =
|
|
119
|
+
ids.length === 0
|
|
120
|
+
? []
|
|
121
|
+
: await kernel.sql<{ space_id: string }>(
|
|
122
|
+
`SELECT DISTINCT space_id FROM eloxiv_spaces.space_grant WHERE id = ANY($1::text[]) ORDER BY 1`,
|
|
123
|
+
[ids],
|
|
124
|
+
)
|
|
125
|
+
return rows.map((r) => r.space_id)
|
|
126
|
+
}
|
|
127
|
+
const preferences = async (person: InboxUser) => {
|
|
128
|
+
const answer = await kernel.query(person.token, "spaces.preferences", org)
|
|
129
|
+
const ids = await kernel.selected(answer, "eloxiv_spaces.preference")
|
|
130
|
+
return ids.length === 0
|
|
131
|
+
? []
|
|
132
|
+
: kernel.sql<{
|
|
133
|
+
user_id: string
|
|
134
|
+
space_id: string
|
|
135
|
+
entry_order: unknown
|
|
136
|
+
hidden_entries: unknown
|
|
137
|
+
pinned: boolean | null
|
|
138
|
+
}>(
|
|
139
|
+
`SELECT user_id, space_id, entry_order, hidden_entries, pinned FROM eloxiv_spaces.preference WHERE id = ANY($1::text[])`,
|
|
140
|
+
[ids],
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
const board = (id: string, audience: SpaceDefinition["audience"]): SpaceDefinition => ({
|
|
144
|
+
id,
|
|
145
|
+
title: `Space ${id}`,
|
|
146
|
+
entries: [{ view: "atlas.board" }, { view: "almanac.entries" }],
|
|
147
|
+
audience,
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
it("lets only holders of eloxiv.spaces.manage define and withdraw spaces", async () => {
|
|
151
|
+
const id = unique("x").toLowerCase()
|
|
152
|
+
const refused = await define(sales, board(id, { everyone: true }))
|
|
153
|
+
expect(refused).toMatchObject({ ok: false, error: { _tag: "Forbidden" } })
|
|
154
|
+
expect(ok(await define(admin, board(id, { everyone: true })))).toEqual({ id })
|
|
155
|
+
const withdraw = await kernel.invoke({ action: SPACES_ACTIONS.remove, input: { id }, token: sales.token, org })
|
|
156
|
+
expect(withdraw).toMatchObject({ ok: false, error: { _tag: "Forbidden" } })
|
|
157
|
+
expect(await granted(sales)).toContain(id)
|
|
158
|
+
// Both attempts are audited, each with its outcome.
|
|
159
|
+
const audit = await kernel.audit({ action: SPACES_ACTIONS.define })
|
|
160
|
+
expect(audit.filter((r) => r.actorUserId === sales.id).map((r) => r.outcome)).toContain("denied")
|
|
161
|
+
expect(audit.filter((r) => r.actorUserId === admin.id).map((r) => r.outcome)).toContain("succeeded")
|
|
162
|
+
// A role granted the permission (and nothing else) may define spaces.
|
|
163
|
+
await kernel.role(org, "curator", [SPACES_MANAGE_PERMISSION])
|
|
164
|
+
await kernel.assignRole(other.id, org, "curator")
|
|
165
|
+
expect(ok(await define(other, board(unique("cur").toLowerCase(), { everyone: true })))).toMatchObject({})
|
|
166
|
+
await kernel.unassignRole(other.id, org, "curator")
|
|
167
|
+
})
|
|
168
|
+
|
|
169
|
+
it("syncs exactly the spaces granted to everyone or to a role the member holds, in their organisation", async () => {
|
|
170
|
+
const everyone = unique("all").toLowerCase()
|
|
171
|
+
const forSales = unique("sales").toLowerCase()
|
|
172
|
+
const forBoth = unique("both").toLowerCase()
|
|
173
|
+
ok(await define(admin, board(everyone, { everyone: true })))
|
|
174
|
+
ok(await define(admin, board(forSales, { roles: ["sales"] })))
|
|
175
|
+
ok(await define(admin, board(forBoth, { roles: ["sales", "support"] })))
|
|
176
|
+
// Another organisation's administrator defines a space for its own sales role.
|
|
177
|
+
const theirs = unique("globex").toLowerCase()
|
|
178
|
+
ok(await define(outsider, board(theirs, { roles: ["sales"] }), "globex"))
|
|
179
|
+
|
|
180
|
+
expect(await granted(sales)).toEqual(expect.arrayContaining([everyone, forSales, forBoth]))
|
|
181
|
+
expect(await granted(sales)).not.toContain(theirs)
|
|
182
|
+
expect(await granted(other)).toEqual(expect.arrayContaining([everyone, forBoth]))
|
|
183
|
+
expect(await granted(other)).not.toContain(forSales)
|
|
184
|
+
expect(await granted(outsider, "globex")).toEqual([theirs])
|
|
185
|
+
// A member of acme asking as globex is refused by the endpoint, never served acme's rows there.
|
|
186
|
+
const across = await kernel.query(sales.token, "spaces.granted", "globex")
|
|
187
|
+
expect(across.status === 401 || (await kernel.selected(across, "eloxiv_spaces.space_grant")).length === 0).toBe(
|
|
188
|
+
true,
|
|
189
|
+
)
|
|
190
|
+
})
|
|
191
|
+
|
|
192
|
+
it("refuses a wildcard or malformed role in an audience: everyone is said only as { everyone: true }", async () => {
|
|
193
|
+
for (const roles of [["*"], ["sales", "*"], ["Sales"], ["a b"], [""]]) {
|
|
194
|
+
const refused = await define(admin, board(unique("wild").toLowerCase(), { roles }))
|
|
195
|
+
expect(refused, JSON.stringify(roles)).toMatchObject({ ok: false, error: { _tag: "InvalidInput" } })
|
|
196
|
+
}
|
|
197
|
+
// Nothing was granted to a member holding none of those roles.
|
|
198
|
+
expect((await granted(other)).some((id) => id.startsWith("wild-"))).toBe(false)
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
it("updates a connected replica live as roles, grants and preferences change", async () => {
|
|
202
|
+
const id = unique("live").toLowerCase()
|
|
203
|
+
const later = unique("later").toLowerCase()
|
|
204
|
+
const marker = unique("marker").toLowerCase()
|
|
205
|
+
const member = await kernel.user(unique("liv").toLowerCase(), org)
|
|
206
|
+
// The same role held in another organisation grants nothing here.
|
|
207
|
+
await kernel.user(member.email.split("@")[0]!, "globex", { roles: ["sales"] })
|
|
208
|
+
ok(await define(admin, board(id, { roles: ["support"] })))
|
|
209
|
+
ok(await define(admin, board(marker, { everyone: true })))
|
|
210
|
+
const replica = await subject.replica(kernel, member, org)
|
|
211
|
+
try {
|
|
212
|
+
await until(
|
|
213
|
+
"the everyone space",
|
|
214
|
+
async () => replica.granted(),
|
|
215
|
+
(ids) => ids.includes(marker),
|
|
216
|
+
)
|
|
217
|
+
expect(replica.granted()).not.toContain(id)
|
|
218
|
+
await kernel.assignRole(member.id, org, "support")
|
|
219
|
+
await until(
|
|
220
|
+
"the space after gaining the role",
|
|
221
|
+
async () => replica.granted(),
|
|
222
|
+
(ids) => ids.includes(id),
|
|
223
|
+
)
|
|
224
|
+
ok(
|
|
225
|
+
await kernel.invoke({
|
|
226
|
+
action: SPACES_ACTIONS.personalise,
|
|
227
|
+
input: { space: id, pinned: true },
|
|
228
|
+
token: member.token,
|
|
229
|
+
org,
|
|
230
|
+
}),
|
|
231
|
+
)
|
|
232
|
+
await until(
|
|
233
|
+
"the preference",
|
|
234
|
+
async () => replica.preferences(),
|
|
235
|
+
(ids) => ids.includes(id),
|
|
236
|
+
)
|
|
237
|
+
await kernel.unassignRole(member.id, org, "support")
|
|
238
|
+
await until(
|
|
239
|
+
"the space gone after losing the role",
|
|
240
|
+
async () => replica.granted(),
|
|
241
|
+
(ids) => !ids.includes(id),
|
|
242
|
+
)
|
|
243
|
+
await until(
|
|
244
|
+
"its preference gone with it",
|
|
245
|
+
async () => replica.preferences(),
|
|
246
|
+
(ids) => !ids.includes(id),
|
|
247
|
+
)
|
|
248
|
+
// A later grant to the lost role, then a space for everyone: the replica receives the second, never the first.
|
|
249
|
+
ok(await define(admin, board(later, { roles: ["support"] })))
|
|
250
|
+
const after = unique("after").toLowerCase()
|
|
251
|
+
ok(await define(admin, board(after, { everyone: true })))
|
|
252
|
+
// Changes arrive in order: once the last is in the replica, the earlier grant would have been too.
|
|
253
|
+
await until(
|
|
254
|
+
"the replica caught up",
|
|
255
|
+
async () => replica.granted(),
|
|
256
|
+
(ids) => ids.includes(after),
|
|
257
|
+
)
|
|
258
|
+
expect(replica.granted()).not.toContain(later)
|
|
259
|
+
expect(replica.granted()).not.toContain(id)
|
|
260
|
+
} finally {
|
|
261
|
+
await replica.close()
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
it("follows roles live: gaining a role grants its spaces, losing it takes them away", async () => {
|
|
266
|
+
const id = unique("live").toLowerCase()
|
|
267
|
+
ok(await define(admin, board(id, { roles: ["support"] })))
|
|
268
|
+
expect(await granted(sales)).not.toContain(id)
|
|
269
|
+
await kernel.assignRole(sales.id, org, "support")
|
|
270
|
+
await until(
|
|
271
|
+
"the space after gaining the role",
|
|
272
|
+
() => granted(sales),
|
|
273
|
+
(ids) => ids.includes(id),
|
|
274
|
+
)
|
|
275
|
+
await kernel.unassignRole(sales.id, org, "support")
|
|
276
|
+
await until(
|
|
277
|
+
"the space gone after losing the role",
|
|
278
|
+
() => granted(sales),
|
|
279
|
+
(ids) => !ids.includes(id),
|
|
280
|
+
)
|
|
281
|
+
})
|
|
282
|
+
|
|
283
|
+
it("re-grants a redefined space and withdraws a removed one from everyone", async () => {
|
|
284
|
+
const id = unique("move").toLowerCase()
|
|
285
|
+
ok(await define(admin, board(id, { roles: ["sales"] })))
|
|
286
|
+
expect(await granted(sales)).toContain(id)
|
|
287
|
+
ok(await define(admin, { ...board(id, { roles: ["support"] }), title: "Moved" }))
|
|
288
|
+
expect(await granted(sales)).not.toContain(id)
|
|
289
|
+
expect(await granted(other)).toContain(id)
|
|
290
|
+
ok(await kernel.invoke({ action: SPACES_ACTIONS.remove, input: { id }, token: admin.token, org }))
|
|
291
|
+
expect(await granted(other)).not.toContain(id)
|
|
292
|
+
expect(await granted(admin)).not.toContain(id)
|
|
293
|
+
})
|
|
294
|
+
|
|
295
|
+
it("keeps preferences to their owner, for granted spaces only, and never adds an entry", async () => {
|
|
296
|
+
const id = unique("mine").toLowerCase()
|
|
297
|
+
const hiddenFromSam = unique("theirs").toLowerCase()
|
|
298
|
+
ok(await define(admin, board(id, { everyone: true })))
|
|
299
|
+
ok(await define(admin, board(hiddenFromSam, { roles: ["support"] })))
|
|
300
|
+
const personalised = await kernel.invoke({
|
|
301
|
+
action: SPACES_ACTIONS.personalise,
|
|
302
|
+
input: {
|
|
303
|
+
space: id,
|
|
304
|
+
pinned: true,
|
|
305
|
+
entryOrder: ["almanac.entries", "atlas.secretView", "atlas.board"],
|
|
306
|
+
hiddenEntries: ["atlas.board", "almanac.diary"],
|
|
307
|
+
},
|
|
308
|
+
token: sales.token,
|
|
309
|
+
org,
|
|
310
|
+
})
|
|
311
|
+
expect(ok(personalised)).toEqual({ id })
|
|
312
|
+
const mine = await preferences(sales)
|
|
313
|
+
expect(mine.find((p) => p.space_id === id)).toMatchObject({
|
|
314
|
+
user_id: sales.id,
|
|
315
|
+
pinned: true,
|
|
316
|
+
entry_order: ["almanac.entries", "atlas.board"],
|
|
317
|
+
hidden_entries: ["atlas.board"],
|
|
318
|
+
})
|
|
319
|
+
expect((await preferences(other)).some((p) => p.space_id === id)).toBe(false)
|
|
320
|
+
// A space not granted to the person, whether or not it exists: refused alike.
|
|
321
|
+
for (const space of [hiddenFromSam, "no-such-space"]) {
|
|
322
|
+
const refused = await kernel.invoke({
|
|
323
|
+
action: SPACES_ACTIONS.personalise,
|
|
324
|
+
input: { space, pinned: true },
|
|
325
|
+
token: sales.token,
|
|
326
|
+
org,
|
|
327
|
+
})
|
|
328
|
+
expect(refused, space).toMatchObject({ ok: false, error: { _tag: "Forbidden" } })
|
|
329
|
+
}
|
|
330
|
+
// Withdrawn from the person, the space takes their preferences with it: unsynced, and reset reaches none.
|
|
331
|
+
const fleeting = unique("gone").toLowerCase()
|
|
332
|
+
ok(await define(admin, board(fleeting, { roles: ["sales"] })))
|
|
333
|
+
ok(
|
|
334
|
+
await kernel.invoke({
|
|
335
|
+
action: SPACES_ACTIONS.personalise,
|
|
336
|
+
input: { space: fleeting, pinned: true },
|
|
337
|
+
token: sales.token,
|
|
338
|
+
org,
|
|
339
|
+
}),
|
|
340
|
+
)
|
|
341
|
+
expect((await preferences(sales)).some((p) => p.space_id === fleeting)).toBe(true)
|
|
342
|
+
ok(await define(admin, board(fleeting, { roles: ["support"] })))
|
|
343
|
+
expect((await preferences(sales)).some((p) => p.space_id === fleeting)).toBe(false)
|
|
344
|
+
ok(await kernel.invoke({ action: SPACES_ACTIONS.reset, input: { id: fleeting }, token: sales.token, org }))
|
|
345
|
+
const kept = await kernel.sql<{ pinned: boolean | null }>(
|
|
346
|
+
`SELECT pinned FROM eloxiv_spaces.preference WHERE user_id = $1 AND space_id = $2`,
|
|
347
|
+
[sales.id, fleeting],
|
|
348
|
+
)
|
|
349
|
+
expect(kept.map((r) => r.pinned)).toEqual([true])
|
|
350
|
+
ok(await kernel.invoke({ action: SPACES_ACTIONS.reset, input: { id }, token: sales.token, org }))
|
|
351
|
+
expect((await preferences(sales)).find((p) => p.space_id === id)).toMatchObject({
|
|
352
|
+
pinned: null,
|
|
353
|
+
entry_order: null,
|
|
354
|
+
})
|
|
355
|
+
})
|
|
356
|
+
})
|
|
357
|
+
|
|
358
|
+
describe("resolution on the client", () => {
|
|
359
|
+
const grant = (spaceId: string, extra: Partial<GrantRow> = {}): GrantRow => ({
|
|
360
|
+
spaceId,
|
|
361
|
+
title: `Space ${spaceId}`,
|
|
362
|
+
entries: [{ view: "atlas.board" }, { view: "almanac.entries" }, { view: "gone.view" }],
|
|
363
|
+
position: 0,
|
|
364
|
+
updatedAt: 1,
|
|
365
|
+
...extra,
|
|
366
|
+
})
|
|
367
|
+
const resolved = (...args: Parameters<SpaceSubject["resolve"]>) => {
|
|
368
|
+
const spaces = subject.resolve(...args)
|
|
369
|
+
for (const space of spaces) expect(Schema.is(ResolvedSpace)(space)).toBe(true)
|
|
370
|
+
return spaces
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
it("makes one space of several grants, with the newest definition, dropping uninstalled views", () => {
|
|
374
|
+
const [space, ...rest] = resolved(
|
|
375
|
+
[grant("a", { title: "Old", updatedAt: 1 }), grant("a", { title: "New", updatedAt: 2 })],
|
|
376
|
+
[],
|
|
377
|
+
fixtureViews,
|
|
378
|
+
)
|
|
379
|
+
expect(rest).toEqual([])
|
|
380
|
+
expect(space).toMatchObject({ id: "a", title: "New", pinned: false, hidden: false, position: 0 })
|
|
381
|
+
expect(space!.entries.map((e) => e.id)).toEqual(["atlas.board", "almanac.entries"])
|
|
382
|
+
})
|
|
383
|
+
|
|
384
|
+
it("applies the person's entry order and hidden entries, never adding one", () => {
|
|
385
|
+
const [space] = resolved(
|
|
386
|
+
[grant("a")],
|
|
387
|
+
[{ spaceId: "a", entryOrder: ["almanac.entries", "almanac.diary"], hiddenEntries: ["atlas.board"] }],
|
|
388
|
+
fixtureViews,
|
|
389
|
+
)
|
|
390
|
+
expect(space!.entries.map((e) => e.id)).toEqual(["almanac.entries"])
|
|
391
|
+
})
|
|
392
|
+
|
|
393
|
+
it("orders pinned first, then by position (the person's over the organisation's), then title", () => {
|
|
394
|
+
const spaces = resolved(
|
|
395
|
+
[
|
|
396
|
+
grant("c", { title: "Charlie", position: 1 }),
|
|
397
|
+
grant("b", { title: "Bravo", position: 1 }),
|
|
398
|
+
grant("a", { title: "Alpha", position: 5 }),
|
|
399
|
+
grant("d", { title: "Delta", position: 0 }),
|
|
400
|
+
],
|
|
401
|
+
[
|
|
402
|
+
{ spaceId: "a", pinned: true },
|
|
403
|
+
{ spaceId: "d", position: 9 },
|
|
404
|
+
],
|
|
405
|
+
fixtureViews,
|
|
406
|
+
)
|
|
407
|
+
expect(spaces.map((s) => s.id)).toEqual(["a", "b", "c", "d"])
|
|
408
|
+
})
|
|
409
|
+
|
|
410
|
+
it("takes the newest preference of a space reached through several grants", () => {
|
|
411
|
+
const [space] = resolved(
|
|
412
|
+
[grant("a")],
|
|
413
|
+
[
|
|
414
|
+
{ spaceId: "a", pinned: false, updatedAt: 1 },
|
|
415
|
+
{ spaceId: "a", pinned: true, updatedAt: 2 },
|
|
416
|
+
],
|
|
417
|
+
fixtureViews,
|
|
418
|
+
)
|
|
419
|
+
expect(space!.pinned).toBe(true)
|
|
420
|
+
})
|
|
421
|
+
|
|
422
|
+
it("leaves hidden spaces out unless asked for", () => {
|
|
423
|
+
const grants = [grant("a"), grant("b")]
|
|
424
|
+
const prefs = [{ spaceId: "b", hidden: true }]
|
|
425
|
+
expect(resolved(grants, prefs, fixtureViews).map((s) => s.id)).toEqual(["a"])
|
|
426
|
+
expect(resolved(grants, prefs, fixtureViews, { includeHidden: true }).map((s) => [s.id, s.hidden])).toEqual([
|
|
427
|
+
["a", false],
|
|
428
|
+
["b", true],
|
|
429
|
+
])
|
|
430
|
+
})
|
|
431
|
+
})
|
|
432
|
+
})
|