@eloxiv/testing 0.0.0-stage → 0.1.1
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 +908 -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 +70 -0
- package/dist/conformance/LocalClient.d.ts.map +1 -0
- package/dist/conformance/LocalClient.js +576 -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 +1075 -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 +707 -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,302 @@
|
|
|
1
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
2
|
+
import { byUserMessage } from "../Agent.js";
|
|
3
|
+
import { unique, until } from "./AgentSubject.js";
|
|
4
|
+
export const agentRuntimeConformance = (start) => describe("AgentRuntime contract", () => {
|
|
5
|
+
let s;
|
|
6
|
+
let ada;
|
|
7
|
+
let ben;
|
|
8
|
+
beforeAll(async () => {
|
|
9
|
+
s = await start();
|
|
10
|
+
ada = await s.person("ada");
|
|
11
|
+
ben = await s.person("ben");
|
|
12
|
+
}, 120_000);
|
|
13
|
+
afterAll(() => s?.dispose());
|
|
14
|
+
const pages = (title) => s.sql(`SELECT id, owner_id, tag FROM notebook.page WHERE title = $1`, [title]);
|
|
15
|
+
it("runs a multi-turn tool loop: two actions and a query, each agent-originated in the audit", async () => {
|
|
16
|
+
const title = unique("plan");
|
|
17
|
+
const ask = `Write a page called ${title}, tag it, then list my pages`;
|
|
18
|
+
s.script((prompt) => {
|
|
19
|
+
if (prompt.lastUser !== ask)
|
|
20
|
+
return { text: "?" };
|
|
21
|
+
if (prompt.turn === 0)
|
|
22
|
+
return { toolCalls: [{ tool: "notebook_write", input: { title, body: "steps" }, id: "w1" }] };
|
|
23
|
+
if (prompt.turn === 1) {
|
|
24
|
+
const written = prompt.results.find((r) => r.toolCallId === "w1")?.value;
|
|
25
|
+
return {
|
|
26
|
+
toolCalls: [{ tool: "notebook_tag", input: { id: written.output.output.id, tag: "todo" }, id: "t1" }],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (prompt.turn === 2)
|
|
30
|
+
return { toolCalls: [{ tool: "query", input: { view: "notebook.pages" }, id: "q1" }] };
|
|
31
|
+
const rows = prompt.results.find((r) => r.toolCallId === "q1")?.value.output.rows;
|
|
32
|
+
return {
|
|
33
|
+
text: `You have ${rows.length} page(s); ${title} is tagged ${rows.find((r) => r.title === title)?.tag}.`,
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const sent = await s.send(ada, ask);
|
|
37
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
38
|
+
expect(run.status).toBe("succeeded");
|
|
39
|
+
expect(run.stopReason).toBe("completed");
|
|
40
|
+
expect(run.steps).toBe(4);
|
|
41
|
+
expect(run.result).toBe(`You have 1 page(s); ${title} is tagged todo.`);
|
|
42
|
+
const [page] = await pages(title);
|
|
43
|
+
expect(page).toMatchObject({ owner_id: ada.id, tag: "todo" });
|
|
44
|
+
// Each tool call went through the invocation path as Ada, on the agent surface, keyed by its step.
|
|
45
|
+
const audit = await s.audit({});
|
|
46
|
+
const ofRun = audit.filter((r) => (r.idempotencyKey ?? "").includes(`tool/`) && (r.idempotencyKey ?? "").includes(sent.runId));
|
|
47
|
+
const byAction = (a, b) => String(a[0]).localeCompare(String(b[0]));
|
|
48
|
+
expect(ofRun.map((r) => [r.action, r.surface, r.actorUserId, r.outcome]).sort(byAction)).toEqual([
|
|
49
|
+
["eloxiv.queryView", "agent", ada.id, "succeeded"],
|
|
50
|
+
["notebook.tag", "agent", ada.id, "succeeded"],
|
|
51
|
+
["notebook.write", "agent", ada.id, "succeeded"],
|
|
52
|
+
].sort(byAction));
|
|
53
|
+
// The person's message started the run on the HTTP surface, as Ada herself.
|
|
54
|
+
expect(audit.some((r) => r.action === "agent.send" && r.surface === "http" && r.actorUserId === ada.id)).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
it("offers the model every action its agent can reach except people's own, plus query, load_skill and delegate", async () => {
|
|
57
|
+
s.script(byUserMessage({}, { text: "ok" }));
|
|
58
|
+
const sent = await s.send(ada, "What can you do?");
|
|
59
|
+
await s.waitRun(ada, sent.runId);
|
|
60
|
+
const call = s.calls().at(-1);
|
|
61
|
+
const tools = [...call.seen.tools].sort();
|
|
62
|
+
for (const tool of [
|
|
63
|
+
"notebook_write",
|
|
64
|
+
"notebook_tag",
|
|
65
|
+
"notebook_tear",
|
|
66
|
+
"agent_remember",
|
|
67
|
+
"agent_forget",
|
|
68
|
+
"query",
|
|
69
|
+
"load_skill",
|
|
70
|
+
"delegate",
|
|
71
|
+
]) {
|
|
72
|
+
expect(tools).toContain(tool);
|
|
73
|
+
}
|
|
74
|
+
// The policy hides notebook.seal from a member without the notebook.seal permission: it is not offered.
|
|
75
|
+
expect(tools).not.toContain("notebook_seal");
|
|
76
|
+
for (const personOnly of [
|
|
77
|
+
"agent_send",
|
|
78
|
+
"agent_cancel",
|
|
79
|
+
"agent_setBudget",
|
|
80
|
+
"agent_configureModel",
|
|
81
|
+
"consent_approve",
|
|
82
|
+
]) {
|
|
83
|
+
expect(tools).not.toContain(personOnly);
|
|
84
|
+
}
|
|
85
|
+
// The module's skill and the app's instructions are in context.
|
|
86
|
+
expect(call.seen.system.some((text) => text.includes(`Skill "notebook.pages"`))).toBe(true);
|
|
87
|
+
expect(call.seen.system.some((text) => text.includes("Write plainly"))).toBe(true);
|
|
88
|
+
});
|
|
89
|
+
it("streams a run's events over HTTP, in order, ending with run-finished, and resumes from a sequence number", async () => {
|
|
90
|
+
const title = unique("stream");
|
|
91
|
+
s.script(byUserMessage({
|
|
92
|
+
[`Note ${title}`]: [
|
|
93
|
+
{ toolCalls: [{ tool: "notebook_write", input: { title } }] },
|
|
94
|
+
{ text: `Noted ${title}.` },
|
|
95
|
+
],
|
|
96
|
+
}));
|
|
97
|
+
const sent = await s.send(ada, `Note ${title}`);
|
|
98
|
+
const events = await s.follow(ada, sent.runId);
|
|
99
|
+
expect(events.map((e) => e.type)).toEqual([
|
|
100
|
+
"run-started",
|
|
101
|
+
"model-step",
|
|
102
|
+
"tool-result",
|
|
103
|
+
"model-step",
|
|
104
|
+
"run-finished",
|
|
105
|
+
]);
|
|
106
|
+
expect(events.map((e) => e.seq)).toEqual([0, 1, 2, 3, 4]);
|
|
107
|
+
expect(events.at(-1).data.status).toBe("succeeded");
|
|
108
|
+
// Another person cannot follow it.
|
|
109
|
+
expect((await s.run(ben, sent.runId)).ok).toBe(false);
|
|
110
|
+
});
|
|
111
|
+
it("keeps a person's conversation and continues it with the next message", async () => {
|
|
112
|
+
s.script((prompt) => ({ text: `turn ${prompt.prompt.filter((m) => m.role === "user").length}` }));
|
|
113
|
+
const first = await s.send(ada, "Hello there");
|
|
114
|
+
await s.waitRun(ada, first.runId);
|
|
115
|
+
const second = await s.send(ada, "And again", first.conversationId);
|
|
116
|
+
expect(second.conversationId).toBe(first.conversationId);
|
|
117
|
+
const run = await s.waitRun(ada, second.runId);
|
|
118
|
+
expect(run.result).toBe("turn 2");
|
|
119
|
+
// Someone else cannot post into it.
|
|
120
|
+
const intruder = await s.invoke(ben, "agent.send", { text: "hi", conversationId: first.conversationId });
|
|
121
|
+
expect(intruder.ok).toBe(false);
|
|
122
|
+
});
|
|
123
|
+
it("syncs conversations, messages and runs only to their owner", async () => {
|
|
124
|
+
s.script(byUserMessage({}, { text: "private reply" }));
|
|
125
|
+
const adas = await s.send(ada, "Ada's secret question");
|
|
126
|
+
const bens = await s.send(ben, "Ben's secret question");
|
|
127
|
+
await s.waitRun(ada, adas.runId);
|
|
128
|
+
await s.waitRun(ben, bens.runId);
|
|
129
|
+
const conversations = await s.syncRows(ada, "agent.conversations", "eloxiv_agent.conversation");
|
|
130
|
+
expect(conversations).toContain(adas.conversationId);
|
|
131
|
+
expect(conversations).not.toContain(bens.conversationId);
|
|
132
|
+
const messages = await s.syncRows(ada, "agent.messages", "eloxiv_agent.message");
|
|
133
|
+
const owners = await s.sql(`SELECT id, user_id FROM eloxiv_agent.message WHERE id = ANY($1)`, [messages]);
|
|
134
|
+
expect(owners.length).toBeGreaterThan(0);
|
|
135
|
+
expect(owners.every((m) => m.user_id === ada.id)).toBe(true);
|
|
136
|
+
expect(await s.syncRows(ben, "agent.runs", "eloxiv_agent.run")).not.toContain(adas.runId);
|
|
137
|
+
});
|
|
138
|
+
it("holds a destructive tool call for the person's consent, then resumes the run once approved", async () => {
|
|
139
|
+
const title = unique("tear");
|
|
140
|
+
const write = await s.invoke(ada, "notebook.write", { title });
|
|
141
|
+
const id = write.result.output.id;
|
|
142
|
+
s.script(byUserMessage({
|
|
143
|
+
[`Tear out ${title}`]: [{ toolCalls: [{ tool: "notebook_tear", input: { id } }] }, { text: "Torn out." }],
|
|
144
|
+
}));
|
|
145
|
+
const sent = await s.send(ada, `Tear out ${title}`);
|
|
146
|
+
const waiting = await s.waitRun(ada, sent.runId, ["waiting"]);
|
|
147
|
+
expect(waiting.status).toBe("waiting");
|
|
148
|
+
expect(await pages(title)).toHaveLength(1);
|
|
149
|
+
const [held] = await s.sql(`SELECT id, status FROM eloxiv_consent.request WHERE user_id = $1 AND action = 'notebook.tear' AND status = 'pending'`, [ada.id]);
|
|
150
|
+
expect(held).toBeDefined();
|
|
151
|
+
const approved = await s.invoke(ada, "consent.approve", { id: held.id });
|
|
152
|
+
expect(approved.ok).toBe(true);
|
|
153
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
154
|
+
expect(run.status).toBe("succeeded");
|
|
155
|
+
expect(run.result).toBe("Torn out.");
|
|
156
|
+
expect(await pages(title)).toHaveLength(0);
|
|
157
|
+
const events = (await s.follow(ada, sent.runId)).map((e) => e.type);
|
|
158
|
+
expect(events).toContain("consent-required");
|
|
159
|
+
expect(events).toContain("consent-decided");
|
|
160
|
+
// Exactly one tear ran, agent-originated.
|
|
161
|
+
const tears = (await s.audit({})).filter((r) => r.action === "notebook.tear" && r.outcome === "succeeded");
|
|
162
|
+
expect(tears.filter((r) => (r.idempotencyKey ?? "").includes(sent.runId)).map((r) => r.surface)).toEqual([
|
|
163
|
+
"agent",
|
|
164
|
+
]);
|
|
165
|
+
});
|
|
166
|
+
it("tells the model when the person declines, and nothing runs", async () => {
|
|
167
|
+
const title = unique("keep");
|
|
168
|
+
const write = await s.invoke(ada, "notebook.write", { title });
|
|
169
|
+
const id = write.result.output.id;
|
|
170
|
+
s.script((prompt) => prompt.lastUser !== `Tear out ${title}`
|
|
171
|
+
? { text: "?" }
|
|
172
|
+
: prompt.turn === 0
|
|
173
|
+
? { toolCalls: [{ tool: "notebook_tear", input: { id } }] }
|
|
174
|
+
: { text: `Result: ${prompt.results[0]?.value?.error?._tag}` });
|
|
175
|
+
const sent = await s.send(ada, `Tear out ${title}`);
|
|
176
|
+
await s.waitRun(ada, sent.runId, ["waiting"]);
|
|
177
|
+
const [held] = await s.sql(`SELECT id FROM eloxiv_consent.request WHERE user_id = $1 AND action = 'notebook.tear' AND status = 'pending'`, [ada.id]);
|
|
178
|
+
await s.invoke(ada, "consent.reject", { id: held.id });
|
|
179
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
180
|
+
expect(run.result).toBe("Result: ConsentRejected");
|
|
181
|
+
expect(await pages(title)).toHaveLength(1);
|
|
182
|
+
});
|
|
183
|
+
it("stops a run at its step limit", async () => {
|
|
184
|
+
s.script(() => ({ toolCalls: [{ tool: "query", input: { view: "notebook.pages" } }] }));
|
|
185
|
+
const sent = await s.send(ada, "Loop forever");
|
|
186
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
187
|
+
expect(run.status).toBe("stopped");
|
|
188
|
+
expect(run.stopReason).toBe("steps");
|
|
189
|
+
expect(run.steps).toBe(run.limits.maxSteps);
|
|
190
|
+
});
|
|
191
|
+
it("cancels a run that waits for consent", async () => {
|
|
192
|
+
const title = unique("cancel");
|
|
193
|
+
const write = await s.invoke(ada, "notebook.write", { title });
|
|
194
|
+
const id = write.result.output.id;
|
|
195
|
+
s.script(byUserMessage({ [`Tear ${title}`]: [{ toolCalls: [{ tool: "notebook_tear", input: { id } }] }] }));
|
|
196
|
+
const sent = await s.send(ada, `Tear ${title}`);
|
|
197
|
+
await s.waitRun(ada, sent.runId, ["waiting"]);
|
|
198
|
+
expect((await s.invoke(ben, "agent.cancel", { runId: sent.runId })).ok).toBe(false);
|
|
199
|
+
expect((await s.invoke(ada, "agent.cancel", { runId: sent.runId })).ok).toBe(true);
|
|
200
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
201
|
+
expect(run.status).toBe("cancelled");
|
|
202
|
+
expect(await pages(title)).toHaveLength(1);
|
|
203
|
+
});
|
|
204
|
+
/** Send `text`, hold the run's model call in flight, cancel the run there, then let the model answer. */
|
|
205
|
+
const cancelInFlight = async (text) => {
|
|
206
|
+
const held = s.hold((prompt) => prompt.lastUser === text && !prompt.compaction);
|
|
207
|
+
try {
|
|
208
|
+
const sent = await s.send(ada, text);
|
|
209
|
+
await held.reached;
|
|
210
|
+
expect((await s.invoke(ada, "agent.cancel", { runId: sent.runId })).ok).toBe(true);
|
|
211
|
+
held.release();
|
|
212
|
+
return { sent, run: await s.waitRun(ada, sent.runId), events: await s.follow(ada, sent.runId) };
|
|
213
|
+
}
|
|
214
|
+
finally {
|
|
215
|
+
held.release();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
it("ends a run cancelled while its model call is in flight cancelled: the plain-text reply is metered and discarded", async () => {
|
|
219
|
+
const text = `Say hello ${unique("inflight")}`;
|
|
220
|
+
s.script(byUserMessage({ [text]: [{ text: "Hello there, all done." }] }));
|
|
221
|
+
const { sent, run, events } = await cancelInFlight(text);
|
|
222
|
+
expect(run).toMatchObject({ status: "cancelled", stopReason: "cancelled", result: null });
|
|
223
|
+
// The reply is not the assistant's answer: nothing of it in the conversation.
|
|
224
|
+
expect(await s.sql(`SELECT id FROM eloxiv_agent.message WHERE run_id = $1 AND role = 'assistant'`, [sent.runId])).toEqual([]);
|
|
225
|
+
// The stream records the discarded reply with its usage, and ends with the run cancelled.
|
|
226
|
+
expect(events.map((e) => e.type)).toEqual(["run-started", "reply-discarded", "run-finished"]);
|
|
227
|
+
const discarded = events[1].data;
|
|
228
|
+
expect(discarded).toMatchObject({ step: 0, reason: "cancelled" });
|
|
229
|
+
expect(discarded.usage.inputTokens).toBeGreaterThan(0);
|
|
230
|
+
expect(events.at(-1).data).toMatchObject({ status: "cancelled", stopReason: "cancelled" });
|
|
231
|
+
// The call was made and its tokens spent: metered once, at the provider's count, and counted in the run.
|
|
232
|
+
const usage = await s.sql(`SELECT estimated, input_tokens AS input, output_tokens AS output FROM eloxiv_agent.usage WHERE run_id = $1`, [sent.runId]);
|
|
233
|
+
expect(usage).toEqual([
|
|
234
|
+
{
|
|
235
|
+
estimated: false,
|
|
236
|
+
input: discarded.usage.inputTokens,
|
|
237
|
+
output: discarded.usage.outputTokens,
|
|
238
|
+
},
|
|
239
|
+
]);
|
|
240
|
+
expect(run.steps).toBe(1);
|
|
241
|
+
expect(run.usage).toEqual({ inputTokens: usage[0].input, outputTokens: usage[0].output });
|
|
242
|
+
});
|
|
243
|
+
it("makes no tool call of a reply that arrives after the run's cancellation committed", async () => {
|
|
244
|
+
const title = unique("late");
|
|
245
|
+
const text = `Write ${title}`;
|
|
246
|
+
s.script(byUserMessage({
|
|
247
|
+
[text]: [{ toolCalls: [{ tool: "notebook_write", input: { title } }] }, { text: "Written." }],
|
|
248
|
+
}));
|
|
249
|
+
const { sent, run, events } = await cancelInFlight(text);
|
|
250
|
+
expect(run.status).toBe("cancelled");
|
|
251
|
+
expect(await pages(title)).toHaveLength(0);
|
|
252
|
+
expect(events.map((e) => e.type)).toEqual(["run-started", "reply-discarded", "run-finished"]);
|
|
253
|
+
expect(events[1].data.toolCalls).toBe(1);
|
|
254
|
+
// The model was asked once: the run made no call after the cancellation.
|
|
255
|
+
expect(s.calls().filter((c) => c.seen.lastUser === text)).toHaveLength(1);
|
|
256
|
+
expect((await s.audit({})).filter((r) => r.action === "notebook.write" && (r.idempotencyKey ?? "").includes(sent.runId))).toEqual([]);
|
|
257
|
+
});
|
|
258
|
+
it("refuses to cancel a run that already finished, which keeps its outcome", async () => {
|
|
259
|
+
const text = `Quick ${unique("finished")}`;
|
|
260
|
+
s.script(byUserMessage({ [text]: [{ text: "Done quickly." }] }));
|
|
261
|
+
const sent = await s.send(ada, text);
|
|
262
|
+
const before = await s.waitRun(ada, sent.runId);
|
|
263
|
+
expect(before.status).toBe("succeeded");
|
|
264
|
+
const refused = await s.invoke(ada, "agent.cancel", { runId: sent.runId });
|
|
265
|
+
expect(refused.ok).toBe(false);
|
|
266
|
+
expect(refused.error).toMatchObject({ _tag: "InvalidInput" });
|
|
267
|
+
expect(String(refused.error["message"])).toContain("already finished (succeeded)");
|
|
268
|
+
expect(await s.waitRun(ada, sent.runId)).toMatchObject({ status: "succeeded", result: "Done quickly." });
|
|
269
|
+
const events = await s.follow(ada, sent.runId);
|
|
270
|
+
expect(events.at(-1).data).toMatchObject({ status: "succeeded" });
|
|
271
|
+
expect(events.filter((e) => e.type === "run-finished")).toHaveLength(1);
|
|
272
|
+
// Cancelling a cancelled run again is a no-op that says so.
|
|
273
|
+
const again = `Again ${unique("cancelled")}`;
|
|
274
|
+
s.script(byUserMessage({ [again]: [{ text: "never" }] }));
|
|
275
|
+
const { sent: cancelled } = await cancelInFlight(again);
|
|
276
|
+
const second = await s.invoke(ada, "agent.cancel", { runId: cancelled.runId });
|
|
277
|
+
expect(second.error).toBeUndefined();
|
|
278
|
+
expect(second.ok).toBe(true);
|
|
279
|
+
expect((await s.waitRun(ada, cancelled.runId)).status).toBe("cancelled");
|
|
280
|
+
});
|
|
281
|
+
it("refuses an agent's attempt to start or steer runs (no agent-to-agent protocol)", async () => {
|
|
282
|
+
s.script(byUserMessage({
|
|
283
|
+
"Start another agent": [{ toolCalls: [{ tool: "agent_send", input: { text: "hi" } }] }, { text: "tried" }],
|
|
284
|
+
}));
|
|
285
|
+
const sent = await s.send(ada, "Start another agent");
|
|
286
|
+
const run = await s.waitRun(ada, sent.runId);
|
|
287
|
+
expect(run.status).toBe("succeeded");
|
|
288
|
+
const result = (await s.follow(ada, sent.runId)).find((e) => e.type === "tool-result");
|
|
289
|
+
expect(result.data.error).toBe("ToolNotAllowed");
|
|
290
|
+
const sends = (await s.audit({})).filter((r) => r.action === "agent.send" && r.surface === "agent");
|
|
291
|
+
expect(sends).toEqual([]);
|
|
292
|
+
});
|
|
293
|
+
it("answers one-shot completions for module code, metered for the person", async () => {
|
|
294
|
+
s.script(() => ({ text: "four" }));
|
|
295
|
+
const before = await s.sql(`SELECT count(*)::int AS n FROM eloxiv_agent.usage WHERE user_id = $1 AND run_id IS NULL`, [ada.id]);
|
|
296
|
+
const answer = await s.complete(ada, { messages: [{ role: "user", content: "2 + 2?" }] });
|
|
297
|
+
expect(answer).toMatchObject({ ok: true, result: { text: "four" } });
|
|
298
|
+
const after = await until("the completion's usage", () => s.sql(`SELECT count(*)::int AS n FROM eloxiv_agent.usage WHERE user_id = $1 AND run_id IS NULL`, [ada.id]), (rows) => rows[0].n === before[0].n + 1);
|
|
299
|
+
expect(after[0].n).toBe(before[0].n + 1);
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
//# sourceMappingURL=AgentRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentRuntime.js","sourceRoot":"","sources":["../../src/conformance/AgentRuntime.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAA+D,MAAM,mBAAmB,CAAA;AAE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,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;QACzF,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;QACpE,MAAM,KAAK,GAAG,MAAM,KAAK,CACvB,wBAAwB,EACxB,GAAG,EAAE,CACH,CAAC,CAAC,GAAG,CACH,yFAAyF,EACzF,CAAC,GAAG,CAAC,EAAE,CAAC,CACT,EACH,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAE,CAAC,CAAC,GAAG,CAAC,CAC1C,CAAA;QACD,MAAM,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a kernel implementation supplies to run the agent kits (AgentRuntime, Memory, Delegation,
|
|
3
|
+
* ContextAccounting, AgentResources, Metering): a running kernel serving the agent conformance app
|
|
4
|
+
* (`./notebook/app.ts`: the notebook fixture, the agent module, the inbox modules) whose model provider is the
|
|
5
|
+
* scripted one (`../Agent.ts`) with a script the kit sets, and a handful of controls. `./AgentReference.ts` is
|
|
6
|
+
* the Eloxiv kernel's own subject.
|
|
7
|
+
*/
|
|
8
|
+
import type { AuditFilter, AuditRecord, ContextInventory, Run, RunEvent, SentMessage } from "@eloxiv/contracts";
|
|
9
|
+
import type { Script, ScriptedCall, ScriptPrompt } from "../Agent.ts";
|
|
10
|
+
export interface AgentPerson {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly email: string;
|
|
13
|
+
/** The person's own session credential. */
|
|
14
|
+
readonly token: string;
|
|
15
|
+
}
|
|
16
|
+
/** A call's outcome: the JSON result envelope, or the error with all its fields. */
|
|
17
|
+
export type AgentOutcome = {
|
|
18
|
+
readonly ok: true;
|
|
19
|
+
readonly result: any;
|
|
20
|
+
readonly error?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
readonly ok: false;
|
|
23
|
+
readonly result?: undefined;
|
|
24
|
+
readonly error: {
|
|
25
|
+
readonly _tag: string;
|
|
26
|
+
readonly [field: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export interface AgentSubject {
|
|
30
|
+
readonly url: string;
|
|
31
|
+
/** The organisation every person acts in. */
|
|
32
|
+
readonly org: string;
|
|
33
|
+
/** A password user `<name>@example.com`, a member of the organisation with `roles` (`admin` grants the kernel's permissions), signed in. */
|
|
34
|
+
readonly person: (name: string, options?: {
|
|
35
|
+
readonly roles?: ReadonlyArray<string>;
|
|
36
|
+
}) => Promise<AgentPerson>;
|
|
37
|
+
/** Create (or replace) a role that grants `permissions`. */
|
|
38
|
+
readonly role: (role: string, permissions: ReadonlyArray<string>) => Promise<void>;
|
|
39
|
+
/** Replace the scripted model's script (it decides each response from the prompt alone). */
|
|
40
|
+
readonly script: (script: Script) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Hold the scripted model's next call whose prompt `match` accepts (default: any but a compaction) in flight, its
|
|
43
|
+
* answer decided by the script, until `release`; `reached` resolves once the call is held.
|
|
44
|
+
*/
|
|
45
|
+
readonly hold: (match?: (prompt: ScriptPrompt) => boolean) => {
|
|
46
|
+
readonly reached: Promise<ScriptedCall>;
|
|
47
|
+
readonly release: () => void;
|
|
48
|
+
/** Let the held call fail with `error` instead. */
|
|
49
|
+
readonly fail: (error: unknown) => void;
|
|
50
|
+
};
|
|
51
|
+
/** Every call the scripted model has received, in order. */
|
|
52
|
+
readonly calls: () => ReadonlyArray<ScriptedCall>;
|
|
53
|
+
/** `POST /agent/messages` as the person. */
|
|
54
|
+
readonly send: (person: AgentPerson, text: string, conversationId?: string) => Promise<SentMessage>;
|
|
55
|
+
/** Poll the run (as the person) until its status is one of `statuses` (default: any finished state). */
|
|
56
|
+
readonly waitRun: (person: AgentPerson, runId: string, statuses?: ReadonlyArray<string>) => Promise<Run>;
|
|
57
|
+
/** The run's stored events, followed over the event stream to `run-finished`. */
|
|
58
|
+
readonly follow: (person: AgentPerson, runId: string) => Promise<ReadonlyArray<RunEvent>>;
|
|
59
|
+
/** `GET /agent/runs/<id>` as the person: the run, or the error. */
|
|
60
|
+
readonly run: (person: AgentPerson, runId: string) => Promise<AgentOutcome>;
|
|
61
|
+
/** The context x-ray of one model call (latest when `step` is omitted), or the error. */
|
|
62
|
+
readonly inventory: (person: AgentPerson, runId: string, step?: number) => Promise<ContextInventory>;
|
|
63
|
+
readonly children: (person: AgentPerson, runId: string) => Promise<ReadonlyArray<Run>>;
|
|
64
|
+
/** An action called by the person (HTTP surface, their own session). */
|
|
65
|
+
readonly invoke: (person: AgentPerson, action: string, input: unknown) => Promise<AgentOutcome>;
|
|
66
|
+
/** `GET <path>` on the kernel as the person (the agent's read routes: resources, memory, budgets, usage). */
|
|
67
|
+
readonly get: (person: AgentPerson, path: string) => Promise<AgentOutcome>;
|
|
68
|
+
/** `POST /agent/complete` as the person. */
|
|
69
|
+
readonly complete: (person: AgentPerson, request: {
|
|
70
|
+
readonly messages: ReadonlyArray<{
|
|
71
|
+
role: string;
|
|
72
|
+
content: string;
|
|
73
|
+
}>;
|
|
74
|
+
readonly schema?: unknown;
|
|
75
|
+
}) => Promise<AgentOutcome>;
|
|
76
|
+
/** The ids of `table`'s rows the sync query `query` delivers to the person's replica. */
|
|
77
|
+
readonly syncRows: (person: AgentPerson, query: string, table: string) => Promise<ReadonlyArray<string>>;
|
|
78
|
+
readonly sql: <A extends object = Record<string, unknown>>(text: string, params?: ReadonlyArray<unknown>) => Promise<ReadonlyArray<A>>;
|
|
79
|
+
readonly audit: (filter: AuditFilter) => Promise<ReadonlyArray<AuditRecord>>;
|
|
80
|
+
readonly dispose: () => Promise<void>;
|
|
81
|
+
}
|
|
82
|
+
export type StartAgentSubject = () => Promise<AgentSubject>;
|
|
83
|
+
/** Poll until `check` returns a value `done` accepts. */
|
|
84
|
+
export declare const until: <A>(what: string, check: () => Promise<A>, done: (value: A) => boolean, timeoutMs?: number) => Promise<A>;
|
|
85
|
+
export declare const unique: (prefix: string) => string;
|
|
86
|
+
export declare const FINISHED: readonly ["succeeded", "stopped", "failed", "cancelled"];
|
|
87
|
+
//# sourceMappingURL=AgentSubject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSubject.d.ts","sourceRoot":"","sources":["../../src/conformance/AgentSubject.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/G,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAGrE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,oFAAoF;AACpF,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACvE;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IA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(what, check, done, timeoutMs = 30_000) => {
|
|
4
|
+
// (Scaled for a remote database: `slow`, ELOXIV_TEST_TIMEOUT_SCALE.)
|
|
5
|
+
const deadline = Date.now() + slow(timeoutMs);
|
|
6
|
+
let last;
|
|
7
|
+
for (;;) {
|
|
8
|
+
last = await check();
|
|
9
|
+
if (done(last))
|
|
10
|
+
return last;
|
|
11
|
+
if (Date.now() > deadline)
|
|
12
|
+
throw new Error(`Timed out waiting for ${what}; last: ${JSON.stringify(last)?.slice(0, 1_000)}`);
|
|
13
|
+
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export const unique = (prefix) => `${prefix}-${crypto.randomUUID().slice(0, 8)}`;
|
|
17
|
+
export const FINISHED = ["succeeded", "stopped", "failed", "cancelled"];
|
|
18
|
+
//# sourceMappingURL=AgentSubject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSubject.js","sourceRoot":"","sources":["../../src/conformance/AgentSubject.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAwEnC,yDAAyD;AACzD,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,EACxB,IAAY,EACZ,KAAuB,EACvB,IAA2B,EAC3B,SAAS,GAAG,MAAM,EAClB,EAAE;IACF,qEAAqE;IACrE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAA;IAC7C,IAAI,IAAmB,CAAA;IACvB,SAAS,CAAC;QACR,IAAI,GAAG,MAAM,KAAK,EAAE,CAAA;QACpB,IAAI,IAAI,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;QAC3B,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ;YACvB,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,WAAW,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,CA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