@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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conformance kit for the StorageBackend capability (docs/contracts/storage-backend.md): any backend (a local
|
|
3
|
+
* directory, an S3-compatible store) stores and returns exact bytes, replaces objects atomically, reads byte
|
|
4
|
+
* ranges, lists by prefix in key order with a cursor, refuses keys that could escape it, assembles multipart
|
|
5
|
+
* uploads only from the parts named with their etags (in any upload order, resumable through `listParts`), and,
|
|
6
|
+
* when it signs URLs, issues URLs that work for exactly what was signed and only until they expire.
|
|
7
|
+
*
|
|
8
|
+
* Usage, in a Vitest file: `storageBackendConformance("local", () => startMyBackend())`.
|
|
9
|
+
*/
|
|
10
|
+
import type { StorageBackendShape } from "@eloxiv/kernel";
|
|
11
|
+
export interface StorageSubject {
|
|
12
|
+
readonly backend: StorageBackendShape;
|
|
13
|
+
/** The smallest part the backend accepts for all but the last part of a multipart upload. */
|
|
14
|
+
readonly minPartSize: number;
|
|
15
|
+
/**
|
|
16
|
+
* False for a store that refuses a part uploaded again with different content (rclone's S3 server streams parts
|
|
17
|
+
* through). Uploading a part again with the same content (a resumed upload's retry) must always succeed.
|
|
18
|
+
*/
|
|
19
|
+
readonly replacesParts?: boolean | undefined;
|
|
20
|
+
readonly dispose: () => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export declare const storageBackendConformance: (name: string, start: () => Promise<StorageSubject>) => import("vitest").SuiteCollector<object>;
|
|
23
|
+
//# sourceMappingURL=StorageBackend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBackend.d.ts","sourceRoot":"","sources":["../../src/conformance/StorageBackend.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAIzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAA;IACrC,6FAA6F;IAC7F,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACtC;AAsCD,eAAO,MAAM,yBAAyB,SAAU,MAAM,SAAS,MAAM,OAAO,CAAC,cAAc,CAAC,4CAyQxF,CAAA"}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { Effect, Exit } from "effect";
|
|
2
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
3
|
+
const run = (effect) => Effect.runPromise(effect);
|
|
4
|
+
const tagOf = async (effect) => {
|
|
5
|
+
const exit = await Effect.runPromise(Effect.exit(effect));
|
|
6
|
+
if (Exit.isSuccess(exit))
|
|
7
|
+
return "ok";
|
|
8
|
+
const error = exit.cause.reasons.find((r) => r._tag === "Fail")?.error;
|
|
9
|
+
return error?._tag ?? "defect";
|
|
10
|
+
};
|
|
11
|
+
const bytesOf = (text) => new TextEncoder().encode(text);
|
|
12
|
+
const textOf = (bytes) => new TextDecoder().decode(bytes);
|
|
13
|
+
const readStream = async (body) => {
|
|
14
|
+
const chunks = [];
|
|
15
|
+
const reader = body.getReader();
|
|
16
|
+
for (;;) {
|
|
17
|
+
const { done, value } = await reader.read();
|
|
18
|
+
if (done)
|
|
19
|
+
break;
|
|
20
|
+
chunks.push(value);
|
|
21
|
+
}
|
|
22
|
+
const all = new Uint8Array(chunks.reduce((n, c) => n + c.byteLength, 0));
|
|
23
|
+
let at = 0;
|
|
24
|
+
for (const c of chunks) {
|
|
25
|
+
all.set(c, at);
|
|
26
|
+
at += c.byteLength;
|
|
27
|
+
}
|
|
28
|
+
return all;
|
|
29
|
+
};
|
|
30
|
+
const filled = (size, seed) => {
|
|
31
|
+
const bytes = new Uint8Array(size);
|
|
32
|
+
for (let i = 0; i < size; i++)
|
|
33
|
+
bytes[i] = (i * 31 + seed) & 0xff;
|
|
34
|
+
return bytes;
|
|
35
|
+
};
|
|
36
|
+
const equalBytes = (a, b) => a.byteLength === b.byteLength && a.every((v, i) => v === b[i]);
|
|
37
|
+
export const storageBackendConformance = (name, start) => describe(`StorageBackend contract (${name})`, () => {
|
|
38
|
+
let s;
|
|
39
|
+
let b;
|
|
40
|
+
const ns = `kit-${Date.now().toString(36)}`;
|
|
41
|
+
const get = async (key, range) => {
|
|
42
|
+
const { object, body } = await run(b.get(key, range === undefined ? undefined : { range }));
|
|
43
|
+
return { object, bytes: await readStream(body) };
|
|
44
|
+
};
|
|
45
|
+
beforeAll(async () => {
|
|
46
|
+
s = await start();
|
|
47
|
+
b = s.backend;
|
|
48
|
+
}, 60_000);
|
|
49
|
+
afterAll(() => s?.dispose());
|
|
50
|
+
it("stores and returns exact bytes, with their size, type and an etag that follows the content", async () => {
|
|
51
|
+
const every = Uint8Array.from({ length: 256 }, (_, i) => i);
|
|
52
|
+
const put = await run(b.put(`${ns}/bytes`, every, { contentType: "application/octet-stream" }));
|
|
53
|
+
expect(put).toMatchObject({ key: `${ns}/bytes`, size: 256 });
|
|
54
|
+
const read = await get(`${ns}/bytes`);
|
|
55
|
+
expect(equalBytes(read.bytes, every)).toBe(true);
|
|
56
|
+
const head = await run(b.head(`${ns}/bytes`));
|
|
57
|
+
expect(head).toMatchObject({ key: `${ns}/bytes`, size: 256, etag: put.etag });
|
|
58
|
+
expect(Number.isNaN(Date.parse(head.modifiedAt))).toBe(false);
|
|
59
|
+
const changed = await run(b.put(`${ns}/bytes`, bytesOf("changed")));
|
|
60
|
+
expect(changed.etag).not.toBe(put.etag);
|
|
61
|
+
expect(textOf((await get(`${ns}/bytes`)).bytes)).toBe("changed");
|
|
62
|
+
// An empty object is an object.
|
|
63
|
+
await run(b.put(`${ns}/empty`, new Uint8Array(0)));
|
|
64
|
+
expect((await get(`${ns}/empty`)).bytes.byteLength).toBe(0);
|
|
65
|
+
expect((await run(b.head(`${ns}/empty`))).size).toBe(0);
|
|
66
|
+
});
|
|
67
|
+
it("replaces an object atomically: every read sees one whole version", async () => {
|
|
68
|
+
const key = `${ns}/atomic`;
|
|
69
|
+
const versions = [filled(256 * 1024, 1), filled(256 * 1024, 2), filled(256 * 1024, 3)];
|
|
70
|
+
await run(b.put(key, versions[0]));
|
|
71
|
+
const reads = [];
|
|
72
|
+
for (let i = 0; i < 12; i++) {
|
|
73
|
+
reads.push(get(key).then((r) => r.bytes));
|
|
74
|
+
await run(b.put(key, versions[(i + 1) % 3]));
|
|
75
|
+
}
|
|
76
|
+
for (const bytes of await Promise.all(reads)) {
|
|
77
|
+
expect(versions.some((v) => equalBytes(v, bytes))).toBe(true);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
it("reads byte ranges: inclusive, cut at the end, refused past it", async () => {
|
|
81
|
+
if (!b.capabilities.ranges)
|
|
82
|
+
return;
|
|
83
|
+
await run(b.put(`${ns}/range`, bytesOf("0123456789")));
|
|
84
|
+
expect(textOf((await get(`${ns}/range`, { start: 2, end: 5 })).bytes)).toBe("2345");
|
|
85
|
+
const tail = await get(`${ns}/range`, { start: 7, end: 100 });
|
|
86
|
+
expect(textOf(tail.bytes)).toBe("789");
|
|
87
|
+
expect(tail.object.size).toBe(3);
|
|
88
|
+
expect(await tagOf(b.get(`${ns}/range`, { range: { start: 10, end: 12 } }))).toBe("StorageConflict");
|
|
89
|
+
expect(await tagOf(b.get(`${ns}/range`, { range: { start: 5, end: 2 } }))).toBe("StorageInvalid");
|
|
90
|
+
});
|
|
91
|
+
it("answers a missing object with StorageNotFound, and deletes idempotently", async () => {
|
|
92
|
+
expect(await tagOf(b.get(`${ns}/missing`))).toBe("StorageNotFound");
|
|
93
|
+
expect(await tagOf(b.head(`${ns}/missing`))).toBe("StorageNotFound");
|
|
94
|
+
expect(await tagOf(b.delete(`${ns}/missing`))).toBe("ok");
|
|
95
|
+
await run(b.put(`${ns}/gone`, bytesOf("x")));
|
|
96
|
+
await run(b.delete(`${ns}/gone`));
|
|
97
|
+
expect(await tagOf(b.head(`${ns}/gone`))).toBe("StorageNotFound");
|
|
98
|
+
expect(await tagOf(b.delete(`${ns}/gone`))).toBe("ok");
|
|
99
|
+
});
|
|
100
|
+
it("refuses every key that could escape it, before touching anything", async () => {
|
|
101
|
+
for (const key of [
|
|
102
|
+
"",
|
|
103
|
+
"../escape",
|
|
104
|
+
"a/../../b",
|
|
105
|
+
"/abs",
|
|
106
|
+
"a//b",
|
|
107
|
+
"a/./b",
|
|
108
|
+
"a/",
|
|
109
|
+
"with space",
|
|
110
|
+
"ünï",
|
|
111
|
+
"a\\b",
|
|
112
|
+
"..",
|
|
113
|
+
]) {
|
|
114
|
+
expect(await tagOf(b.put(key, bytesOf("x")))).toBe("StorageInvalid");
|
|
115
|
+
expect(await tagOf(b.get(key))).toBe("StorageInvalid");
|
|
116
|
+
expect(await tagOf(b.delete(key))).toBe("StorageInvalid");
|
|
117
|
+
}
|
|
118
|
+
expect(await tagOf(b.put("a".repeat(1025), bytesOf("x")))).toBe("StorageInvalid");
|
|
119
|
+
});
|
|
120
|
+
it("lists by prefix in key order, one page at a time", async () => {
|
|
121
|
+
const keys = ["b", "a/2", "a/10", "a/1", "ab", "c/z"].map((k) => `${ns}/list/${k}`);
|
|
122
|
+
for (const key of keys)
|
|
123
|
+
await run(b.put(key, bytesOf(key)));
|
|
124
|
+
const all = [];
|
|
125
|
+
let cursor = null;
|
|
126
|
+
do {
|
|
127
|
+
const page = await run(b.list({ prefix: `${ns}/list/`, cursor, limit: 2 }));
|
|
128
|
+
expect(page.objects.length).toBeLessThanOrEqual(2);
|
|
129
|
+
all.push(...page.objects.map((o) => o.key));
|
|
130
|
+
cursor = page.nextCursor;
|
|
131
|
+
} while (cursor !== null);
|
|
132
|
+
expect(all).toEqual([...keys].sort());
|
|
133
|
+
const only = await run(b.list({ prefix: `${ns}/list/a/` }));
|
|
134
|
+
expect(only.objects.map((o) => o.key)).toEqual([`${ns}/list/a/1`, `${ns}/list/a/10`, `${ns}/list/a/2`]);
|
|
135
|
+
expect(only.objects[0].size).toBe(bytesOf(`${ns}/list/a/1`).byteLength);
|
|
136
|
+
expect((await run(b.list({ prefix: `${ns}/nothing/` }))).objects).toEqual([]);
|
|
137
|
+
});
|
|
138
|
+
it("assembles a multipart upload from the parts named, in part order, whatever order they arrived in", async () => {
|
|
139
|
+
if (!b.capabilities.multipart)
|
|
140
|
+
return;
|
|
141
|
+
const key = `${ns}/multi`;
|
|
142
|
+
const { uploadId } = await run(b.createMultipart(key, { contentType: "application/octet-stream" }));
|
|
143
|
+
const one = filled(s.minPartSize, 7);
|
|
144
|
+
const two = filled(s.minPartSize, 8);
|
|
145
|
+
const three = bytesOf("the end");
|
|
146
|
+
const p3 = await run(b.uploadPart(key, uploadId, 3, three));
|
|
147
|
+
const p1 = await run(b.uploadPart(key, uploadId, 1, s.replacesParts === false ? one : filled(s.minPartSize, 99)));
|
|
148
|
+
// Uploading a part again replaces it (with the same content, as a retry does, on every store).
|
|
149
|
+
const p1again = await run(b.uploadPart(key, uploadId, 1, one));
|
|
150
|
+
expect(p1again.etag === p1.etag).toBe(s.replacesParts === false);
|
|
151
|
+
const p2 = await run(b.uploadPart(key, uploadId, 2, two));
|
|
152
|
+
// Nothing is visible, or listed, until it completes; listParts is how an upload resumes.
|
|
153
|
+
expect(await tagOf(b.head(key))).toBe("StorageNotFound");
|
|
154
|
+
expect((await run(b.list({ prefix: key }))).objects).toEqual([]);
|
|
155
|
+
expect((await run(b.listParts(key, uploadId))).map((p) => [p.partNumber, p.size])).toEqual([
|
|
156
|
+
[1, one.byteLength],
|
|
157
|
+
[2, two.byteLength],
|
|
158
|
+
[3, three.byteLength],
|
|
159
|
+
]);
|
|
160
|
+
const done = await run(b.completeMultipart(key, uploadId, [
|
|
161
|
+
{ partNumber: 1, etag: p1again.etag },
|
|
162
|
+
{ partNumber: 2, etag: p2.etag },
|
|
163
|
+
{ partNumber: 3, etag: p3.etag },
|
|
164
|
+
]));
|
|
165
|
+
expect(done.size).toBe(one.byteLength + two.byteLength + three.byteLength);
|
|
166
|
+
const read = await get(key);
|
|
167
|
+
expect(equalBytes(read.bytes.subarray(0, one.byteLength), one)).toBe(true);
|
|
168
|
+
expect(equalBytes(read.bytes.subarray(one.byteLength, one.byteLength + two.byteLength), two)).toBe(true);
|
|
169
|
+
expect(textOf(read.bytes.subarray(one.byteLength + two.byteLength))).toBe("the end");
|
|
170
|
+
// The upload is gone once complete.
|
|
171
|
+
expect(await tagOf(b.listParts(key, uploadId))).toBe("StorageNotFound");
|
|
172
|
+
});
|
|
173
|
+
it("refuses to complete with an etag a part was not uploaded with, or with parts out of order", async () => {
|
|
174
|
+
if (!b.capabilities.multipart)
|
|
175
|
+
return;
|
|
176
|
+
// Each refusal on an upload of its own: a store may abandon an upload whose completion it refused.
|
|
177
|
+
const attempt = async (parts) => {
|
|
178
|
+
const key = `${ns}/refused-${crypto.randomUUID()}`;
|
|
179
|
+
const { uploadId } = await run(b.createMultipart(key));
|
|
180
|
+
const uploaded = [
|
|
181
|
+
await run(b.uploadPart(key, uploadId, 1, filled(s.minPartSize, 3))),
|
|
182
|
+
await run(b.uploadPart(key, uploadId, 2, bytesOf("last"))),
|
|
183
|
+
];
|
|
184
|
+
const tag = await tagOf(b.completeMultipart(key, uploadId, parts(uploaded)));
|
|
185
|
+
expect(await tagOf(b.head(key))).toBe("StorageNotFound");
|
|
186
|
+
await run(b.abortMultipart(key, uploadId));
|
|
187
|
+
return tag;
|
|
188
|
+
};
|
|
189
|
+
expect(await attempt(([, two]) => [{ partNumber: 1, etag: "0123456789abcdef0123456789abcdef" }, two])).toBe("StorageConflict");
|
|
190
|
+
expect(await attempt(([one, two]) => [two, one])).toBe("StorageConflict");
|
|
191
|
+
});
|
|
192
|
+
it("aborts a multipart upload, freeing its parts, and treats aborting a missing one as done", async () => {
|
|
193
|
+
if (!b.capabilities.multipart)
|
|
194
|
+
return;
|
|
195
|
+
const key = `${ns}/aborted`;
|
|
196
|
+
const { uploadId } = await run(b.createMultipart(key));
|
|
197
|
+
await run(b.uploadPart(key, uploadId, 1, bytesOf("part")));
|
|
198
|
+
await run(b.abortMultipart(key, uploadId));
|
|
199
|
+
expect(await tagOf(b.listParts(key, uploadId))).toBe("StorageNotFound");
|
|
200
|
+
expect(await tagOf(b.uploadPart(key, uploadId, 2, bytesOf("late")))).toBe("StorageNotFound");
|
|
201
|
+
expect(await tagOf(b.abortMultipart(key, uploadId))).toBe("ok");
|
|
202
|
+
expect(await tagOf(b.head(key))).toBe("StorageNotFound");
|
|
203
|
+
// Another key's upload id is not this key's.
|
|
204
|
+
const other = await run(b.createMultipart(`${ns}/other`));
|
|
205
|
+
expect(await tagOf(b.listParts(key, other.uploadId))).toBe("StorageNotFound");
|
|
206
|
+
expect(await tagOf(b.uploadPart(key, other.uploadId, 0, bytesOf("x")))).toBe("StorageInvalid");
|
|
207
|
+
});
|
|
208
|
+
it("signs URLs that work for exactly what was signed, and only until they expire", async () => {
|
|
209
|
+
const unsigned = await tagOf(b.signedUrl({ key: `${ns}/x`, method: "GET", expiresInSeconds: 60 }));
|
|
210
|
+
// A backend without the capability refuses, and the rest does not apply to it.
|
|
211
|
+
expect(b.capabilities.signedUrls || unsigned === "StorageInvalid").toBe(true);
|
|
212
|
+
if (!b.capabilities.signedUrls)
|
|
213
|
+
return;
|
|
214
|
+
await run(b.put(`${ns}/signed`, bytesOf("signed content"), { contentType: "text/plain" }));
|
|
215
|
+
const read = await run(b.signedUrl({
|
|
216
|
+
key: `${ns}/signed`,
|
|
217
|
+
method: "GET",
|
|
218
|
+
expiresInSeconds: 60,
|
|
219
|
+
responseContentType: "application/octet-stream",
|
|
220
|
+
responseContentDisposition: 'attachment; filename="x.txt"',
|
|
221
|
+
}));
|
|
222
|
+
const got = await fetch(read.url);
|
|
223
|
+
expect(got.status).toBe(200);
|
|
224
|
+
expect(got.headers.get("content-type")).toBe("application/octet-stream");
|
|
225
|
+
expect(got.headers.get("content-disposition")).toBe('attachment; filename="x.txt"');
|
|
226
|
+
expect(await got.text()).toBe("signed content");
|
|
227
|
+
// A changed URL (another key, a removed override) is refused.
|
|
228
|
+
const tampered = new URL(read.url);
|
|
229
|
+
tampered.searchParams.delete("response-content-type");
|
|
230
|
+
const refused = await fetch(tampered);
|
|
231
|
+
await refused.body?.cancel();
|
|
232
|
+
expect(refused.status).toBe(403);
|
|
233
|
+
const write = await run(b.signedUrl({ key: `${ns}/uploaded`, method: "PUT", expiresInSeconds: 60, contentLength: 5 }));
|
|
234
|
+
const wrongLength = await fetch(write.url, {
|
|
235
|
+
method: "PUT",
|
|
236
|
+
headers: write.headers,
|
|
237
|
+
body: "too long",
|
|
238
|
+
signal: AbortSignal.timeout(3_000),
|
|
239
|
+
}).catch(() => undefined);
|
|
240
|
+
await wrongLength?.body?.cancel();
|
|
241
|
+
expect(wrongLength === undefined || wrongLength.status >= 400).toBe(true);
|
|
242
|
+
expect(await tagOf(b.head(`${ns}/uploaded`))).toBe("StorageNotFound");
|
|
243
|
+
const put = await fetch(write.url, { method: "PUT", headers: write.headers, body: "hello" });
|
|
244
|
+
await put.body?.cancel();
|
|
245
|
+
expect(put.status).toBe(200);
|
|
246
|
+
expect(textOf((await get(`${ns}/uploaded`)).bytes)).toBe("hello");
|
|
247
|
+
// A part URL uploads a part of a multipart upload (a store that signs URLs takes multipart uploads).
|
|
248
|
+
expect(b.capabilities.multipart).toBe(true);
|
|
249
|
+
const { uploadId } = await run(b.createMultipart(`${ns}/signed-parts`));
|
|
250
|
+
const partUrl = await run(b.signedUrl({
|
|
251
|
+
key: `${ns}/signed-parts`,
|
|
252
|
+
method: "PUT",
|
|
253
|
+
expiresInSeconds: 60,
|
|
254
|
+
contentLength: 4,
|
|
255
|
+
part: { uploadId, partNumber: 1 },
|
|
256
|
+
}));
|
|
257
|
+
const uploaded = await fetch(partUrl.url, { method: "PUT", headers: partUrl.headers, body: "part" });
|
|
258
|
+
await uploaded.body?.cancel();
|
|
259
|
+
expect(uploaded.status).toBe(200);
|
|
260
|
+
const parts = await run(b.listParts(`${ns}/signed-parts`, uploadId));
|
|
261
|
+
expect(parts.map((p) => [p.partNumber, p.size])).toEqual([[1, 4]]);
|
|
262
|
+
await run(b.abortMultipart(`${ns}/signed-parts`, uploadId));
|
|
263
|
+
expect(await tagOf(b.signedUrl({ key: `${ns}/signed`, method: "GET", expiresInSeconds: 0 }))).toBe("StorageInvalid");
|
|
264
|
+
expect(await tagOf(b.signedUrl({ key: `${ns}/signed`, method: "GET", expiresInSeconds: 604_801 }))).toBe("StorageInvalid");
|
|
265
|
+
const short = await run(b.signedUrl({ key: `${ns}/signed`, method: "GET", expiresInSeconds: 1 }));
|
|
266
|
+
expect(Date.parse(short.expiresAt) - Date.now()).toBeLessThanOrEqual(1_000);
|
|
267
|
+
await new Promise((r) => setTimeout(r, 2_100));
|
|
268
|
+
const expired = await fetch(short.url);
|
|
269
|
+
await expired.body?.cancel();
|
|
270
|
+
expect(expired.status).toBeGreaterThanOrEqual(400);
|
|
271
|
+
expect(expired.status).toBeLessThan(500);
|
|
272
|
+
}, 20_000);
|
|
273
|
+
});
|
|
274
|
+
//# sourceMappingURL=StorageBackend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBackend.js","sourceRoot":"","sources":["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M,EAAE,CAAA;QAC5B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;QAClD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;IAC1C,CAAC,EAAE,MAAM,CAAC,CAAA;AACZ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a kernel implementation supplies to run the kernel conformance kits
|
|
3
|
+
* (`@eloxiv/testing/conformance/<Contract>`): a running kernel serving the
|
|
4
|
+
* conformance fixture app (`./fixture/app.ts`: modules `docs` and `peer`, with
|
|
5
|
+
* an approval stage that requires approval for `APPROVAL_REQUIRED`), on
|
|
6
|
+
* PostgreSQL, and a handful of controls over it.
|
|
7
|
+
*
|
|
8
|
+
* Nothing here reaches into the Eloxiv kernel's internals: an alternative
|
|
9
|
+
* kernel implements each member with its own means. `./Reference.ts` is the
|
|
10
|
+
* Eloxiv kernel's own subject.
|
|
11
|
+
*/
|
|
12
|
+
import type { AuditFilter, AuditRecord, DeadLetter, DeadLetterFilter, OutboxEventStatus, OutboxFilter } from "@eloxiv/contracts";
|
|
13
|
+
/** One call to the Invocation contract's `invoke`. */
|
|
14
|
+
export interface Call {
|
|
15
|
+
readonly action: string;
|
|
16
|
+
/** The raw JSON input. */
|
|
17
|
+
readonly input: unknown;
|
|
18
|
+
/** A session bearer token (`authorization: Bearer <token>`); any string for an unauthenticated call. */
|
|
19
|
+
readonly token: string;
|
|
20
|
+
/** `x-eloxiv-org`: the organisation to act in. */
|
|
21
|
+
readonly org?: string | undefined;
|
|
22
|
+
readonly idempotencyKey?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** A call's outcome: the JSON result envelope, or the standard error it failed with. */
|
|
25
|
+
export type CallOutcome = {
|
|
26
|
+
readonly ok: true;
|
|
27
|
+
readonly result: unknown;
|
|
28
|
+
} | {
|
|
29
|
+
readonly ok: false;
|
|
30
|
+
readonly error: {
|
|
31
|
+
readonly _tag: string;
|
|
32
|
+
readonly message?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export interface FixtureUser {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly email: string;
|
|
38
|
+
readonly token: string;
|
|
39
|
+
}
|
|
40
|
+
/** A statement run as some role in a rolled-back transaction: its rows, or the database's error message. */
|
|
41
|
+
export type RolledBack = {
|
|
42
|
+
readonly ok: true;
|
|
43
|
+
readonly rows: ReadonlyArray<Record<string, unknown>>;
|
|
44
|
+
} | {
|
|
45
|
+
readonly ok: false;
|
|
46
|
+
readonly message: string;
|
|
47
|
+
};
|
|
48
|
+
/** The sync endpoint's answer to one named query. */
|
|
49
|
+
export type SyncAnswer =
|
|
50
|
+
/**
|
|
51
|
+
* The query's entry in Zero's transform response, exactly as the kernel sent it: `{ id, name, ast }` for a
|
|
52
|
+
* scoped query, Zero's `{ error: "app", message, ... }` for a refused one.
|
|
53
|
+
*/
|
|
54
|
+
{
|
|
55
|
+
readonly status: 200;
|
|
56
|
+
readonly answer: Readonly<Record<string, unknown>>;
|
|
57
|
+
}
|
|
58
|
+
/** The caller is not authenticated as a member of the organisation. */
|
|
59
|
+
| {
|
|
60
|
+
readonly status: 401;
|
|
61
|
+
};
|
|
62
|
+
/** Where the kernel keeps its own state, which no module role may reach. */
|
|
63
|
+
export interface PrivateTables {
|
|
64
|
+
/** The table holding the audit log (`schema.table`, quoted as needed). */
|
|
65
|
+
readonly auditLog: string;
|
|
66
|
+
/** Other tables of the kernel's own: for example who acts in a transaction, memberships, users and sessions. */
|
|
67
|
+
readonly others: ReadonlyArray<string>;
|
|
68
|
+
}
|
|
69
|
+
export interface KernelSubject {
|
|
70
|
+
/** The kernel's base URL (its HTTP routes: `/health`, `/ready`, `/release`, the surfaces). */
|
|
71
|
+
readonly url: string;
|
|
72
|
+
/** Invocation.invoke, as an internal caller (surface `internal`) or through any surface. */
|
|
73
|
+
readonly invoke: (call: Call) => Promise<CallOutcome>;
|
|
74
|
+
/** Invocation.reach for a caller's credentials (surface `internal`): the action names, or the error's tag. */
|
|
75
|
+
readonly reach: (call: {
|
|
76
|
+
readonly token: string;
|
|
77
|
+
readonly org?: string | undefined;
|
|
78
|
+
}) => Promise<{
|
|
79
|
+
readonly ok: true;
|
|
80
|
+
readonly actions: ReadonlyArray<string>;
|
|
81
|
+
} | {
|
|
82
|
+
readonly ok: false;
|
|
83
|
+
readonly error: string;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Directory controls: a password user `<name>@example.com` who is a member of `orgs` (created if missing, with
|
|
87
|
+
* the built-in `admin` and `member` roles), holding `roles` in each (default `member`), signed in.
|
|
88
|
+
*/
|
|
89
|
+
readonly user: (name: string, orgs: ReadonlyArray<string>, roles?: ReadonlyArray<string>) => Promise<FixtureUser>;
|
|
90
|
+
/** Remove a membership. */
|
|
91
|
+
readonly leave: (userId: string, orgId: string) => Promise<void>;
|
|
92
|
+
/** Change a user's email (a principal attribute policies may read), keeping the session. */
|
|
93
|
+
readonly setEmail: (userId: string, email: string) => Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Sharing controls, through the implementation's own sharing service: a per-record grant (by Cedar entity
|
|
96
|
+
* type and record id), and its revocation.
|
|
97
|
+
*/
|
|
98
|
+
readonly share: (grant: {
|
|
99
|
+
readonly resourceType: string;
|
|
100
|
+
readonly resourceId: string;
|
|
101
|
+
readonly granteeUserId: string;
|
|
102
|
+
readonly permission: string;
|
|
103
|
+
readonly grantedBy: string;
|
|
104
|
+
}) => Promise<string>;
|
|
105
|
+
readonly unshare: (grantId: string) => Promise<void>;
|
|
106
|
+
/** Superuser SQL on the app's database: the fixture modules' tables, and the catalogue. */
|
|
107
|
+
readonly sql: <A extends object = Record<string, unknown>>(text: string, params?: ReadonlyArray<unknown>) => Promise<ReadonlyArray<A>>;
|
|
108
|
+
/** Run statements in order, as the superuser, in one transaction that is then rolled back. */
|
|
109
|
+
readonly rolledBack: (statements: ReadonlyArray<string>) => Promise<RolledBack>;
|
|
110
|
+
/**
|
|
111
|
+
* Hold a PostgreSQL transaction-level advisory lock on `key` in an open transaction until `release` is called
|
|
112
|
+
* (fixture handlers wait on such barriers). Resolves once the lock is held.
|
|
113
|
+
*/
|
|
114
|
+
readonly barrier: (key: number) => Promise<{
|
|
115
|
+
readonly release: () => Promise<void>;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* `current_user` on the kernel's own database connection, read through the kernel's pool outside any
|
|
119
|
+
* invocation (`eloxiv_kernel` for the Eloxiv kernel as deployed).
|
|
120
|
+
*/
|
|
121
|
+
readonly kernelRole: () => Promise<string>;
|
|
122
|
+
/** The kernel's private tables, for the kits to check that module roles cannot reach them. */
|
|
123
|
+
readonly privateTables: PrivateTables;
|
|
124
|
+
/** Audit.list. */
|
|
125
|
+
readonly audit: (filter: AuditFilter) => Promise<ReadonlyArray<AuditRecord>>;
|
|
126
|
+
/** Outbox.events, Outbox.retry and Outbox.dispatch; the kernel's dispatcher also runs on its own. */
|
|
127
|
+
readonly outbox: {
|
|
128
|
+
readonly events: (filter: OutboxFilter) => Promise<ReadonlyArray<OutboxEventStatus>>;
|
|
129
|
+
readonly retry: (eventId: string) => Promise<void>;
|
|
130
|
+
/** One delivery pass, its output passed through unchanged (the kit checks it against the contract). */
|
|
131
|
+
readonly dispatch: () => Promise<unknown>;
|
|
132
|
+
/** Outbox.deadLetters (across organisations). */
|
|
133
|
+
readonly deadLetters: (filter: DeadLetterFilter) => Promise<ReadonlyArray<DeadLetter>>;
|
|
134
|
+
/**
|
|
135
|
+
* An administrator operation (`listDeadLetters`, `retryDeadLetter`, `discardDeadLetter`) as the user `token`
|
|
136
|
+
* signs in, acting in `org` (or their first organisation): the output, or the standard error.
|
|
137
|
+
*/
|
|
138
|
+
readonly manage: (token: string, operation: "listDeadLetters" | "retryDeadLetter" | "discardDeadLetter", input: unknown, org?: string) => Promise<CallOutcome>;
|
|
139
|
+
};
|
|
140
|
+
/** Sync: the query endpoint, the schema check, and starting a kernel with another sync schema. */
|
|
141
|
+
readonly sync: {
|
|
142
|
+
readonly query: (token: string, name: string, args?: ReadonlyArray<unknown>, org?: string) => Promise<SyncAnswer>;
|
|
143
|
+
/** Sync.checkSchema against the fixture's entities. */
|
|
144
|
+
readonly checkSchema: (schema: unknown) => ReadonlyArray<string>;
|
|
145
|
+
/** Start (and stop) a kernel serving the fixture with this sync configuration; rejects if it refuses to start. */
|
|
146
|
+
readonly serve: (sync: {
|
|
147
|
+
readonly schema: unknown;
|
|
148
|
+
readonly queries: unknown;
|
|
149
|
+
}) => Promise<void>;
|
|
150
|
+
};
|
|
151
|
+
readonly dispose: () => Promise<void>;
|
|
152
|
+
}
|
|
153
|
+
/** How a kit obtains its subject: a fresh kernel and database per kit. */
|
|
154
|
+
export type StartSubject = () => Promise<KernelSubject>;
|
|
155
|
+
/** The result envelope of a successful call. */
|
|
156
|
+
export interface Envelope {
|
|
157
|
+
readonly kind: "output" | "replay";
|
|
158
|
+
readonly output?: unknown;
|
|
159
|
+
readonly receipt?: Receipt;
|
|
160
|
+
}
|
|
161
|
+
export interface Receipt {
|
|
162
|
+
readonly action: string;
|
|
163
|
+
readonly invocationId: string;
|
|
164
|
+
readonly outcome: string;
|
|
165
|
+
readonly targets: ReadonlyArray<string>;
|
|
166
|
+
readonly created: ReadonlyArray<string>;
|
|
167
|
+
readonly completion: {
|
|
168
|
+
readonly affected: number;
|
|
169
|
+
readonly requested: number;
|
|
170
|
+
readonly completion: string;
|
|
171
|
+
} | null;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* A call's outcome in the shape the kits assert on: `output` is the action's output on a first execution and
|
|
175
|
+
* the whole replay envelope on a replay.
|
|
176
|
+
*/
|
|
177
|
+
export declare const outcome: (call: CallOutcome) => {
|
|
178
|
+
ok: true;
|
|
179
|
+
output: {
|
|
180
|
+
id: string;
|
|
181
|
+
};
|
|
182
|
+
replayed: boolean;
|
|
183
|
+
error?: never;
|
|
184
|
+
} | {
|
|
185
|
+
output?: never;
|
|
186
|
+
replayed?: never;
|
|
187
|
+
ok: false;
|
|
188
|
+
error: string;
|
|
189
|
+
};
|
|
190
|
+
export type Outcome = ReturnType<typeof outcome>;
|
|
191
|
+
/** The failure's tag and message, or undefined for a success. */
|
|
192
|
+
export declare const failureOf: (call: CallOutcome) => {
|
|
193
|
+
tag: string;
|
|
194
|
+
message: string;
|
|
195
|
+
} | undefined;
|
|
196
|
+
/** Poll `check` until it returns true (or a value passing `until`), failing after `timeoutMs`. */
|
|
197
|
+
export declare const eventually: <A>(what: string, check: () => Promise<A>, until?: (value: A) => boolean, timeoutMs?: number) => Promise<A>;
|
|
198
|
+
//# sourceMappingURL=Subject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../../src/conformance/Subject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACb,MAAM,mBAAmB,CAAA;AAE1B,sDAAsD;AACtD,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,0BAA0B;IAC1B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,wGAAwG;IACxG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,kDAAkD;IAClD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7C;AAED,wFAAwF;AACxF,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC/C;IAAE,QAAQ,CAAC,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CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACvC,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACnH;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,SAAU,WAAW;;YAIyE;QACxG,EAAE,EAAE,MAAM,CAAA;KACX;;;;;;;;CAG2C,CAAA;AACpD,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAEhD,iEAAiE;AACjE,eAAO,MAAM,SAAS,SAAU,WAAW;;;aACwC,CAAA;AAEnF,kGAAkG;AAClG,eAAO,MAAM,UAAU,GAAU,CAAC,QAC1B,MAAM,SACL,MAAM,OAAO,CAAC,CAAC,CAAC,UAChB,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,yBAE3B,OAAO,CAAC,CAAC,CAQX,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A call's outcome in the shape the kits assert on: `output` is the action's output on a first execution and
|
|
3
|
+
* the whole replay envelope on a replay.
|
|
4
|
+
*/
|
|
5
|
+
export const outcome = (call) => call.ok
|
|
6
|
+
? {
|
|
7
|
+
ok: true,
|
|
8
|
+
output: (call.result.kind === "replay" ? call.result : call.result.output),
|
|
9
|
+
replayed: call.result.kind === "replay",
|
|
10
|
+
}
|
|
11
|
+
: { ok: false, error: call.error._tag };
|
|
12
|
+
/** The failure's tag and message, or undefined for a success. */
|
|
13
|
+
export const failureOf = (call) => call.ok ? undefined : { tag: call.error._tag, message: call.error.message ?? "" };
|
|
14
|
+
/** Poll `check` until it returns true (or a value passing `until`), failing after `timeoutMs`. */
|
|
15
|
+
export const eventually = async (what, check, until = Boolean, timeoutMs = 10_000) => {
|
|
16
|
+
const deadline = Date.now() + timeoutMs;
|
|
17
|
+
for (;;) {
|
|
18
|
+
const value = await check();
|
|
19
|
+
if (until(value))
|
|
20
|
+
return value;
|
|
21
|
+
if (Date.now() > deadline)
|
|
22
|
+
throw new Error(`Timed out after ${timeoutMs} ms waiting for ${what}`);
|
|
23
|
+
await new Promise((r) => setTimeout(r, 25));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Subject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../../src/conformance/Subject.ts"],"names":[],"mappings":"AA6KA;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAiB,EAAE,EAAE,CAC3C,IAAI,CAAC,EAAE;IACL,CAAC,CAAC;QACE,EAAE,EAAE,IAAa;QACjB,MAAM,EAAE,CAAE,IAAI,CAAC,MAAmB,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAE,IAAI,CAAC,MAAmB,CAAC,MAAM,CAEpG;QACD,QAAQ,EAAG,IAAI,CAAC,MAAmB,CAAC,IAAI,KAAK,QAAQ;KACtD;IACH,CAAC,CAAC,EAAE,EAAE,EAAE,KAAc,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;AAGpD,iEAAiE;AACjE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAiB,EAAE,EAAE,CAC7C,IAAI,CAAC,EAAE,CAAC,CAA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