@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
package/src/Locks.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forcing interleavings with row and table locks, for tests of what a sign-out or revocation does to work in flight:
|
|
3
|
+
* an administrator's transaction takes a lock, a request blocks on it at a known point, the test acts (signs out),
|
|
4
|
+
* then releases the lock.
|
|
5
|
+
*/
|
|
6
|
+
import { PgClient } from "@effect/sql-pg"
|
|
7
|
+
import { Effect, Redacted } from "effect"
|
|
8
|
+
import * as Reactivity from "effect/reactivity/Reactivity"
|
|
9
|
+
import { adminUrl } from "./System.ts"
|
|
10
|
+
|
|
11
|
+
export interface Held {
|
|
12
|
+
/** The backend pid of the transaction holding the lock. */
|
|
13
|
+
readonly pid: number
|
|
14
|
+
/** Run the follow-up statement (if any) and commit, releasing the lock. */
|
|
15
|
+
readonly release: () => Promise<void>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A transaction of the administrator's on `database` that runs `statement` (taking its lock), held until `release`,
|
|
20
|
+
* which runs `then` (with the same parameters) before it commits.
|
|
21
|
+
*/
|
|
22
|
+
export const holding = async (
|
|
23
|
+
database: string,
|
|
24
|
+
statement: string,
|
|
25
|
+
params: ReadonlyArray<unknown> = [],
|
|
26
|
+
then?: string,
|
|
27
|
+
): Promise<Held> => {
|
|
28
|
+
let release!: () => void
|
|
29
|
+
const released = new Promise<void>((resolve) => (release = resolve))
|
|
30
|
+
let ready!: (pid: number) => void
|
|
31
|
+
let failed!: (error: unknown) => void
|
|
32
|
+
const started = new Promise<number>((resolve, reject) => {
|
|
33
|
+
ready = resolve
|
|
34
|
+
failed = reject
|
|
35
|
+
})
|
|
36
|
+
const done = Effect.runPromise(
|
|
37
|
+
Effect.scoped(
|
|
38
|
+
Effect.gen(function* () {
|
|
39
|
+
const session = yield* PgClient.makeClient({ url: Redacted.make(adminUrl(database)) })
|
|
40
|
+
yield* session.withTransaction(
|
|
41
|
+
Effect.gen(function* () {
|
|
42
|
+
const [me] = yield* session<{ pid: number }>`SELECT pg_backend_pid() AS pid`
|
|
43
|
+
yield* session.unsafe(statement, [...params] as Array<never>)
|
|
44
|
+
yield* Effect.sync(() => ready(me!.pid))
|
|
45
|
+
yield* Effect.promise(() => released)
|
|
46
|
+
if (then !== undefined) yield* session.unsafe(then, [...params] as Array<never>)
|
|
47
|
+
}),
|
|
48
|
+
)
|
|
49
|
+
}),
|
|
50
|
+
).pipe(Effect.provide(Reactivity.layer)),
|
|
51
|
+
)
|
|
52
|
+
done.catch(failed)
|
|
53
|
+
const pid = await started
|
|
54
|
+
const held: Held = {
|
|
55
|
+
pid,
|
|
56
|
+
release: async () => {
|
|
57
|
+
outstanding.delete(held)
|
|
58
|
+
release()
|
|
59
|
+
await done
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
outstanding.add(held)
|
|
63
|
+
return held
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** Every hold not yet released. */
|
|
67
|
+
const outstanding = new Set<Held>()
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Release every hold a test left (an assertion that failed before its `release`), so no transaction outlives the
|
|
71
|
+
* test: call it from `afterEach`. Releasing twice is harmless.
|
|
72
|
+
*/
|
|
73
|
+
export const releaseAll = async () => {
|
|
74
|
+
await Promise.allSettled([...outstanding].map((held) => held.release()))
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Superuser queries on the database the locks are taken in. */
|
|
78
|
+
type Query = (text: string, params?: ReadonlyArray<unknown>) => Promise<ReadonlyArray<any>>
|
|
79
|
+
|
|
80
|
+
/** The backends waiting for `pid`'s locks, once there are some (empty after about 20 s). */
|
|
81
|
+
export const waitersOf = async (sql: Query, pid: number, timeoutMs = 20_000): Promise<ReadonlyArray<number>> => {
|
|
82
|
+
for (const until = Date.now() + timeoutMs; Date.now() < until;) {
|
|
83
|
+
const rows = (await sql(`SELECT pid FROM pg_stat_activity WHERE $1 = ANY(pg_blocking_pids(pid))`, [
|
|
84
|
+
pid,
|
|
85
|
+
])) as ReadonlyArray<{ pid: number }>
|
|
86
|
+
if (rows.length > 0) return rows.map((row) => row.pid)
|
|
87
|
+
await new Promise((resolve) => setTimeout(resolve, 50))
|
|
88
|
+
}
|
|
89
|
+
return []
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Does some backend wait for `pid`'s locks (within about 20 s)? */
|
|
93
|
+
export const waitedFor = async (sql: Query, pid: number) => (await waitersOf(sql, pid)).length > 0
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Whether `pending` (`tracked`) comes to wait for an advisory lock `pid` holds before it settles (within about 20 s): a
|
|
97
|
+
* change that must be serialised with `pid`'s work, as against one that went ahead of it.
|
|
98
|
+
*/
|
|
99
|
+
export const waitsOnAdvisoryOf = async (sql: Query, pid: number, pending: { readonly settled: boolean }) => {
|
|
100
|
+
for (const until = Date.now() + 20_000; Date.now() < until;) {
|
|
101
|
+
if (pending.settled) return false
|
|
102
|
+
const rows = (await sql(
|
|
103
|
+
`SELECT 1 FROM pg_stat_activity WHERE $1 = ANY(pg_blocking_pids(pid)) AND wait_event = 'advisory'`,
|
|
104
|
+
[pid],
|
|
105
|
+
)) as ReadonlyArray<unknown>
|
|
106
|
+
if (rows.length > 0) return !pending.settled
|
|
107
|
+
await new Promise((resolve) => setTimeout(resolve, 50))
|
|
108
|
+
}
|
|
109
|
+
return false
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* A promise and whether it has settled yet: for a sign-out that must wait for work in flight (still pending while the
|
|
114
|
+
* work is held), then complete once it commits.
|
|
115
|
+
*/
|
|
116
|
+
export const tracked = <A>(promise: Promise<A>) => {
|
|
117
|
+
const state = { settled: false, promise }
|
|
118
|
+
void promise.then(
|
|
119
|
+
() => (state.settled = true),
|
|
120
|
+
() => (state.settled = true),
|
|
121
|
+
)
|
|
122
|
+
return state
|
|
123
|
+
}
|
package/src/Routes.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every route `KernelRoutes(app)` registers, as the router receives it: the routes are built against a router that
|
|
3
|
+
* records each registration (`add`, `addAll`, and both through `prefixed`), with a running kernel's services. What
|
|
4
|
+
* registers a route (a constant path, `HttpRouter.add`, `HttpApi`, the RPC and MCP servers) does not matter: every
|
|
5
|
+
* registration reaches the router. The inventories' tests (cookie-guard.test.ts) and the tests that send something to
|
|
6
|
+
* every route (session-commit.test.ts) read it.
|
|
7
|
+
*/
|
|
8
|
+
import { Collab, CollabHousekeeping, CollabRoutes, KernelRoutes, MakeRoutes, type KernelApp } from "@eloxiv/kernel"
|
|
9
|
+
import { Effect, Layer } from "effect"
|
|
10
|
+
import { HttpRouter } from "effect/http"
|
|
11
|
+
|
|
12
|
+
export interface RegisteredRoute {
|
|
13
|
+
readonly method: string
|
|
14
|
+
readonly path: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const registeredRoutes = async (
|
|
18
|
+
run: (effect: Effect.Effect<unknown, unknown>) => Promise<unknown>,
|
|
19
|
+
app: KernelApp,
|
|
20
|
+
): Promise<ReadonlyArray<RegisteredRoute>> => {
|
|
21
|
+
const routes: Array<RegisteredRoute> = []
|
|
22
|
+
const recording = (router: HttpRouter.HttpRouter, prefix: string): HttpRouter.HttpRouter =>
|
|
23
|
+
HttpRouter.HttpRouter.of({
|
|
24
|
+
...router,
|
|
25
|
+
prefixed: (more) => recording(router.prefixed(more), `${prefix}${more.replace(/\/+$/u, "")}`),
|
|
26
|
+
add: (method, path, handler, options) => {
|
|
27
|
+
routes.push({ method, path: `${prefix}${path}` })
|
|
28
|
+
return router.add(method, path, handler, options)
|
|
29
|
+
},
|
|
30
|
+
addAll: (all) => {
|
|
31
|
+
for (const route of all) routes.push({ method: route.method, path: `${prefix}${route.path}` })
|
|
32
|
+
return router.addAll(all)
|
|
33
|
+
},
|
|
34
|
+
})
|
|
35
|
+
const router = Layer.effect(
|
|
36
|
+
HttpRouter.HttpRouter,
|
|
37
|
+
Effect.map(HttpRouter.make, (made) => recording(made, "")),
|
|
38
|
+
)
|
|
39
|
+
// The app's routes, and every router the kernel installs only for some apps (MAKE's, the collaboration socket's),
|
|
40
|
+
// whose registrations need no more than stand-ins for the services they read at startup.
|
|
41
|
+
const optional = Layer.mergeAll(
|
|
42
|
+
MakeRoutes,
|
|
43
|
+
CollabRoutes.pipe(
|
|
44
|
+
Layer.provide(
|
|
45
|
+
Layer.mergeAll(
|
|
46
|
+
Layer.succeed(Collab, { entities: new Map() } as never),
|
|
47
|
+
Layer.succeed(CollabHousekeeping, {} as never),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
),
|
|
51
|
+
)
|
|
52
|
+
await run(
|
|
53
|
+
Effect.scoped(Layer.build(Layer.mergeAll(KernelRoutes(app), optional).pipe(Layer.provide(router)))) as never,
|
|
54
|
+
)
|
|
55
|
+
return routes
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Does an inventory pattern (`*` for the rest of the path) cover a registered route's path? */
|
|
59
|
+
export const covers = (pattern: string, path: string) =>
|
|
60
|
+
pattern === path ||
|
|
61
|
+
(pattern.endsWith("/*") && (path === pattern.slice(0, -2) || path.startsWith(pattern.slice(0, -1))))
|
|
62
|
+
|
|
63
|
+
/** A path to send a request to for a registered route's pattern (`:param` and `*` filled in with `value`). */
|
|
64
|
+
export const concretePath = (pattern: string, value = "x") =>
|
|
65
|
+
pattern.replace(/\/\*$/u, `/${value}`).replace(/:[A-Za-z]+/gu, value)
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A scripted model behind an OpenAI-compatible Chat Completions endpoint, for journeys that run an app's real kernel
|
|
3
|
+
* as a process: the app's `openai` model connector talks to it as to any OpenAI-compatible server
|
|
4
|
+
* (`ELOXIV_MODEL_OPENAI_BASE_URL`, plain http on this machine with `ELOXIV_MODEL_ALLOW_LOCAL_HTTP=1`,
|
|
5
|
+
* `ELOXIV_MODEL_API=chat`; `env` holds them). It is not a model: each answer follows from the request it is sent
|
|
6
|
+
* (`decide`), never from hidden state, so a journey is deterministic. Text is streamed in several chunks (one per
|
|
7
|
+
* word), so a client sees more than one text delta for an answer. With `holdText`, a streamed text answer stops after
|
|
8
|
+
* its first word until released (`release()`, or `POST <controlUrl>/release`), so a client can be shown to draw
|
|
9
|
+
* partial text before the stored answer, whatever the timing.
|
|
10
|
+
*
|
|
11
|
+
* const model = await startScriptedChatModel({ decide: consentTurn({ trigger: "file it", tool: "mail_send", ... }) })
|
|
12
|
+
* await startSystem({ ..., env: model.env })
|
|
13
|
+
*/
|
|
14
|
+
import { createServer, type Server } from "node:http"
|
|
15
|
+
import type { AddressInfo } from "node:net"
|
|
16
|
+
|
|
17
|
+
/** One message of a Chat Completions request. */
|
|
18
|
+
export interface ScriptedChatMessage {
|
|
19
|
+
readonly role: string
|
|
20
|
+
readonly content?: unknown
|
|
21
|
+
readonly tool_calls?: ReadonlyArray<unknown>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** What the model answers: text, or one tool call. */
|
|
25
|
+
export type ScriptedChatAnswer =
|
|
26
|
+
| { readonly text: string }
|
|
27
|
+
| { readonly tool: string; readonly args: Readonly<Record<string, unknown>> }
|
|
28
|
+
|
|
29
|
+
/** A message's text, whether its content is a string or a list of parts. */
|
|
30
|
+
export const chatText = (content: unknown): string =>
|
|
31
|
+
typeof content === "string"
|
|
32
|
+
? content
|
|
33
|
+
: Array.isArray(content)
|
|
34
|
+
? content.map((part) => (typeof part?.text === "string" ? part.text : "")).join("")
|
|
35
|
+
: ""
|
|
36
|
+
|
|
37
|
+
export interface ScriptedChatModel {
|
|
38
|
+
/** The endpoint (`.../v1`). */
|
|
39
|
+
readonly baseUrl: string
|
|
40
|
+
/** The kernel's environment for it (the `openai` connector against this server, model `openai:gpt-5-mini`). */
|
|
41
|
+
readonly env: Record<string, string>
|
|
42
|
+
/** Every answer it gave, in order, with the tools it was offered. */
|
|
43
|
+
readonly answers: Array<{ readonly answer: ScriptedChatAnswer; readonly tools: ReadonlyArray<string> }>
|
|
44
|
+
/** Its control endpoint (`POST /release`, `GET /held` answering `{ held }`), for `holdText`. */
|
|
45
|
+
readonly controlUrl: string
|
|
46
|
+
/** Let every text answer held after its first word go on (`holdText`). */
|
|
47
|
+
readonly release: () => void
|
|
48
|
+
/** How many text answers are held now. */
|
|
49
|
+
readonly held: () => number
|
|
50
|
+
readonly close: () => Promise<void>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A turn that asks for a consent-marked call: a user message containing `trigger` is answered with a call of `tool`
|
|
55
|
+
* (with `args`); the tool's result with `reply` (whatever it says, so the stored answer is known); anything else with
|
|
56
|
+
* `fallback`.
|
|
57
|
+
*/
|
|
58
|
+
export const consentTurn =
|
|
59
|
+
(turn: {
|
|
60
|
+
readonly trigger: string
|
|
61
|
+
readonly tool: string
|
|
62
|
+
readonly args: Readonly<Record<string, unknown>>
|
|
63
|
+
readonly reply: string
|
|
64
|
+
readonly fallback?: string
|
|
65
|
+
}) =>
|
|
66
|
+
(messages: ReadonlyArray<ScriptedChatMessage>): ScriptedChatAnswer => {
|
|
67
|
+
if (messages.at(-1)?.role === "tool") return { text: turn.reply }
|
|
68
|
+
const asked = chatText(messages.toReversed().find((m) => m.role === "user")?.content)
|
|
69
|
+
if (asked.includes(turn.trigger)) return { tool: turn.tool, args: turn.args }
|
|
70
|
+
return { text: turn.fallback ?? "How can I help?" }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const startScriptedChatModel = async (options: {
|
|
74
|
+
readonly decide: (
|
|
75
|
+
messages: ReadonlyArray<ScriptedChatMessage>,
|
|
76
|
+
tools: ReadonlySet<string>,
|
|
77
|
+
) => ScriptedChatAnswer | Promise<ScriptedChatAnswer>
|
|
78
|
+
/** Hold each streamed text answer after its first word until released. */
|
|
79
|
+
readonly holdText?: boolean | undefined
|
|
80
|
+
}): Promise<ScriptedChatModel> => {
|
|
81
|
+
const answers: ScriptedChatModel["answers"] = []
|
|
82
|
+
let calls = 0
|
|
83
|
+
let waiting: Array<() => void> = []
|
|
84
|
+
const release = () => {
|
|
85
|
+
const go = waiting
|
|
86
|
+
waiting = []
|
|
87
|
+
for (const resume of go) resume()
|
|
88
|
+
}
|
|
89
|
+
const server: Server = createServer((request, response) => {
|
|
90
|
+
if (request.url === "/release" && request.method === "POST") {
|
|
91
|
+
release()
|
|
92
|
+
response.writeHead(200, { "content-type": "application/json" })
|
|
93
|
+
return void response.end(JSON.stringify({ released: true }))
|
|
94
|
+
}
|
|
95
|
+
if (request.url === "/held" && request.method === "GET") {
|
|
96
|
+
response.writeHead(200, { "content-type": "application/json" })
|
|
97
|
+
return void response.end(JSON.stringify({ held: waiting.length }))
|
|
98
|
+
}
|
|
99
|
+
let raw = ""
|
|
100
|
+
request.on("data", (chunk) => (raw += chunk))
|
|
101
|
+
request.on("end", () => {
|
|
102
|
+
void (async () => {
|
|
103
|
+
const body = JSON.parse(raw || "{}") as {
|
|
104
|
+
messages?: ReadonlyArray<ScriptedChatMessage>
|
|
105
|
+
tools?: ReadonlyArray<{ function?: { name?: string } }>
|
|
106
|
+
stream?: boolean
|
|
107
|
+
}
|
|
108
|
+
const tools = new Set((body.tools ?? []).map((t) => t.function?.name ?? ""))
|
|
109
|
+
const answer = await options.decide(body.messages ?? [], tools)
|
|
110
|
+
answers.push({ answer, tools: [...tools] })
|
|
111
|
+
calls += 1
|
|
112
|
+
const usage = { prompt_tokens: 10, completion_tokens: 5, total_tokens: 15 }
|
|
113
|
+
const call =
|
|
114
|
+
"tool" in answer
|
|
115
|
+
? {
|
|
116
|
+
id: `call_${calls}`,
|
|
117
|
+
type: "function",
|
|
118
|
+
function: { name: answer.tool, arguments: JSON.stringify(answer.args) },
|
|
119
|
+
}
|
|
120
|
+
: undefined
|
|
121
|
+
const base = { id: `chatcmpl-${calls}`, created: Math.floor(Date.now() / 1000), model: "scripted" }
|
|
122
|
+
if (body.stream === true) {
|
|
123
|
+
const chunk = (delta: object, finish: string | null, extra: object = {}) =>
|
|
124
|
+
`data: ${JSON.stringify({ ...base, object: "chat.completion.chunk", choices: [{ index: 0, delta, finish_reason: finish }], ...extra })}\n\n`
|
|
125
|
+
response.writeHead(200, { "content-type": "text/event-stream" })
|
|
126
|
+
if (call !== undefined)
|
|
127
|
+
response.write(chunk({ role: "assistant", tool_calls: [{ index: 0, ...call }] }, null))
|
|
128
|
+
else {
|
|
129
|
+
// One chunk per word (with its space): several text deltas for one answer.
|
|
130
|
+
const words = "text" in answer ? (answer.text.match(/\S+\s*/gu) ?? [answer.text]) : []
|
|
131
|
+
response.write(chunk({ role: "assistant", content: "" }, null))
|
|
132
|
+
for (const [at, word] of words.entries()) {
|
|
133
|
+
response.write(chunk({ content: word }, null))
|
|
134
|
+
if (at === 0 && words.length > 1 && options.holdText === true) {
|
|
135
|
+
await new Promise<void>((resume) => waiting.push(resume))
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
response.write(chunk({}, call !== undefined ? "tool_calls" : "stop", { usage }))
|
|
140
|
+
response.end("data: [DONE]\n\n")
|
|
141
|
+
return
|
|
142
|
+
}
|
|
143
|
+
response.writeHead(200, { "content-type": "application/json" })
|
|
144
|
+
response.end(
|
|
145
|
+
JSON.stringify({
|
|
146
|
+
...base,
|
|
147
|
+
object: "chat.completion",
|
|
148
|
+
choices: [
|
|
149
|
+
{
|
|
150
|
+
index: 0,
|
|
151
|
+
message:
|
|
152
|
+
call !== undefined
|
|
153
|
+
? { role: "assistant", content: null, tool_calls: [call] }
|
|
154
|
+
: { role: "assistant", content: "text" in answer ? answer.text : "" },
|
|
155
|
+
finish_reason: call !== undefined ? "tool_calls" : "stop",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
usage,
|
|
159
|
+
}),
|
|
160
|
+
)
|
|
161
|
+
})().catch((error: unknown) => {
|
|
162
|
+
response.writeHead(500, { "content-type": "application/json" })
|
|
163
|
+
response.end(JSON.stringify({ error: { message: String(error) } }))
|
|
164
|
+
})
|
|
165
|
+
})
|
|
166
|
+
})
|
|
167
|
+
await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", resolve))
|
|
168
|
+
const baseUrl = `http://127.0.0.1:${(server.address() as AddressInfo).port}/v1`
|
|
169
|
+
return {
|
|
170
|
+
baseUrl,
|
|
171
|
+
env: {
|
|
172
|
+
ELOXIV_MODEL_OPENAI_API_KEY: "sk-scripted",
|
|
173
|
+
ELOXIV_MODEL_OPENAI_BASE_URL: baseUrl,
|
|
174
|
+
ELOXIV_MODEL_ALLOW_LOCAL_HTTP: "1",
|
|
175
|
+
ELOXIV_MODEL_API: "chat",
|
|
176
|
+
ELOXIV_AGENT_MODEL: "openai:gpt-5-mini",
|
|
177
|
+
},
|
|
178
|
+
answers,
|
|
179
|
+
controlUrl: baseUrl.replace(/\/v1$/u, ""),
|
|
180
|
+
release,
|
|
181
|
+
held: () => waiting.length,
|
|
182
|
+
close: () =>
|
|
183
|
+
new Promise<void>((resolve) => {
|
|
184
|
+
release()
|
|
185
|
+
server.closeAllConnections?.()
|
|
186
|
+
server.close(() => resolve())
|
|
187
|
+
}),
|
|
188
|
+
}
|
|
189
|
+
}
|
package/src/SmtpSink.ts
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A real SMTP server for tests (RFC 5321, over `node:net`, on Bun and Node): it accepts mail on a local port
|
|
3
|
+
* and keeps every message, parsed into headers and decoded text and HTML bodies. It can refuse recipients
|
|
4
|
+
* permanently (550) and fail the next messages temporarily (451), to exercise a sender's retries.
|
|
5
|
+
*/
|
|
6
|
+
import { createServer, type Server, type Socket } from "node:net"
|
|
7
|
+
|
|
8
|
+
export interface ReceivedMail {
|
|
9
|
+
readonly from: string
|
|
10
|
+
readonly to: ReadonlyArray<string>
|
|
11
|
+
/** The message exactly as received (after removing dot-stuffing). */
|
|
12
|
+
readonly raw: string
|
|
13
|
+
/** Header names lower-cased; repeated headers keep the last value. */
|
|
14
|
+
readonly headers: Readonly<Record<string, string>>
|
|
15
|
+
readonly text: string | undefined
|
|
16
|
+
readonly html: string | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface SmtpSink {
|
|
20
|
+
readonly port: number
|
|
21
|
+
readonly url: string
|
|
22
|
+
readonly messages: () => ReadonlyArray<ReceivedMail>
|
|
23
|
+
/**
|
|
24
|
+
* Fail the next `count` messages with 451 at the end of DATA (a temporary failure); with `quoting`, the reply's
|
|
25
|
+
* text quotes the message's first link, as a server that echoes what it rejected does.
|
|
26
|
+
*/
|
|
27
|
+
readonly failNext: (count: number, options?: { readonly quoting?: boolean }) => void
|
|
28
|
+
/**
|
|
29
|
+
* Hold every message's acceptance (the reply to the end of DATA) until the returned release is called: a sender
|
|
30
|
+
* that waits for its mail waits as long.
|
|
31
|
+
*/
|
|
32
|
+
readonly stall: () => () => void
|
|
33
|
+
/** Refuse these recipients with 550 at RCPT TO (a permanent failure). */
|
|
34
|
+
readonly refuse: (address: string) => void
|
|
35
|
+
/** Every connection the sink has seen. */
|
|
36
|
+
readonly connections: () => number
|
|
37
|
+
readonly close: () => Promise<void>
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const unfold = (headerBlock: string) => headerBlock.replaceAll(/\r\n[ \t]+/g, " ")
|
|
41
|
+
|
|
42
|
+
// Whitespace between adjacent encoded words is not part of the text (RFC 2047 6.2).
|
|
43
|
+
const decodeWord = (value: string) =>
|
|
44
|
+
value
|
|
45
|
+
.replaceAll(/(\?=)[ \t]+(?==\?UTF-8\?B\?)/gi, "$1")
|
|
46
|
+
.replaceAll(/=\?UTF-8\?B\?([^?]*)\?=/gi, (_, b64: string) => Buffer.from(b64, "base64").toString("utf8"))
|
|
47
|
+
|
|
48
|
+
const parseHeaders = (block: string): Record<string, string> => {
|
|
49
|
+
const headers: Record<string, string> = {}
|
|
50
|
+
for (const line of unfold(block).split("\r\n")) {
|
|
51
|
+
const colon = line.indexOf(":")
|
|
52
|
+
if (colon <= 0) continue
|
|
53
|
+
headers[line.slice(0, colon).trim().toLowerCase()] = decodeWord(line.slice(colon + 1).trim())
|
|
54
|
+
}
|
|
55
|
+
return headers
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const decodeBody = (headers: Record<string, string>, body: string) =>
|
|
59
|
+
(headers["content-transfer-encoding"] ?? "").toLowerCase() === "base64"
|
|
60
|
+
? Buffer.from(body.replaceAll(/\s+/g, ""), "base64").toString("utf8")
|
|
61
|
+
: body
|
|
62
|
+
|
|
63
|
+
/** Split a message into headers and its text and HTML parts (one level of multipart). */
|
|
64
|
+
export const parseMail = (raw: string): Pick<ReceivedMail, "headers" | "text" | "html"> => {
|
|
65
|
+
const split = raw.indexOf("\r\n\r\n")
|
|
66
|
+
const headers = parseHeaders(split < 0 ? raw : raw.slice(0, split))
|
|
67
|
+
const body = split < 0 ? "" : raw.slice(split + 4)
|
|
68
|
+
const type = headers["content-type"] ?? "text/plain"
|
|
69
|
+
const boundary = /boundary="?([^";]+)"?/i.exec(type)?.[1]
|
|
70
|
+
if (!type.toLowerCase().startsWith("multipart/") || boundary === undefined) {
|
|
71
|
+
const decoded = decodeBody(headers, body)
|
|
72
|
+
return type.toLowerCase().startsWith("text/html")
|
|
73
|
+
? { headers, text: undefined, html: decoded }
|
|
74
|
+
: { headers, text: decoded, html: undefined }
|
|
75
|
+
}
|
|
76
|
+
let text: string | undefined
|
|
77
|
+
let html: string | undefined
|
|
78
|
+
for (const part of body.split(`--${boundary}`)) {
|
|
79
|
+
const trimmed = part.replace(/^\r\n/, "")
|
|
80
|
+
if (trimmed.startsWith("--") || trimmed.trim() === "") continue
|
|
81
|
+
const at = trimmed.indexOf("\r\n\r\n")
|
|
82
|
+
if (at < 0) continue
|
|
83
|
+
const partHeaders = parseHeaders(trimmed.slice(0, at))
|
|
84
|
+
const content = decodeBody(partHeaders, trimmed.slice(at + 4).replace(/\r\n$/, ""))
|
|
85
|
+
const partType = (partHeaders["content-type"] ?? "").toLowerCase()
|
|
86
|
+
if (partType.startsWith("text/plain")) text = content
|
|
87
|
+
else if (partType.startsWith("text/html")) html = content
|
|
88
|
+
}
|
|
89
|
+
return { headers, text, html }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export const startSmtpSink = async (): Promise<SmtpSink> => {
|
|
93
|
+
const received: Array<ReceivedMail> = []
|
|
94
|
+
const refused = new Set<string>()
|
|
95
|
+
let failures = 0
|
|
96
|
+
let quoting = false
|
|
97
|
+
let connections = 0
|
|
98
|
+
let gate: Promise<void> | undefined
|
|
99
|
+
const sockets = new Set<Socket>()
|
|
100
|
+
const server: Server = createServer((socket) => {
|
|
101
|
+
connections++
|
|
102
|
+
sockets.add(socket)
|
|
103
|
+
socket.on("close", () => sockets.delete(socket))
|
|
104
|
+
socket.on("error", () => undefined)
|
|
105
|
+
let buffer = ""
|
|
106
|
+
let from = ""
|
|
107
|
+
let to: Array<string> = []
|
|
108
|
+
let inData = false
|
|
109
|
+
const reply = (line: string) => socket.write(`${line}\r\n`)
|
|
110
|
+
reply("220 eloxiv-test-sink ESMTP")
|
|
111
|
+
socket.on("data", (chunk: Buffer) => {
|
|
112
|
+
buffer += chunk.toString("utf8")
|
|
113
|
+
for (;;) {
|
|
114
|
+
if (inData) {
|
|
115
|
+
const end = buffer.indexOf("\r\n.\r\n")
|
|
116
|
+
if (end < 0) return
|
|
117
|
+
const data = buffer.slice(0, end)
|
|
118
|
+
buffer = buffer.slice(end + 5)
|
|
119
|
+
inData = false
|
|
120
|
+
const raw = data
|
|
121
|
+
.split("\r\n")
|
|
122
|
+
.map((line) => (line.startsWith("..") ? line.slice(1) : line))
|
|
123
|
+
.join("\r\n")
|
|
124
|
+
const envelope = { from, to }
|
|
125
|
+
const accept = () => {
|
|
126
|
+
if (failures > 0) {
|
|
127
|
+
failures--
|
|
128
|
+
const link = quoting ? /https?:\/\/\S+/u.exec(parseMail(raw).text ?? raw)?.[0] : undefined
|
|
129
|
+
reply(
|
|
130
|
+
link === undefined ? "451 4.3.0 Temporary failure, try again" : `451 4.3.0 Rejected content: ${link}`,
|
|
131
|
+
)
|
|
132
|
+
} else {
|
|
133
|
+
received.push({ ...envelope, raw, ...parseMail(raw) })
|
|
134
|
+
reply(`250 2.0.0 Ok: queued as sink-${received.length}`)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (gate === undefined) accept()
|
|
138
|
+
else void gate.then(accept)
|
|
139
|
+
from = ""
|
|
140
|
+
to = []
|
|
141
|
+
continue
|
|
142
|
+
}
|
|
143
|
+
const end = buffer.indexOf("\r\n")
|
|
144
|
+
if (end < 0) return
|
|
145
|
+
const line = buffer.slice(0, end)
|
|
146
|
+
buffer = buffer.slice(end + 2)
|
|
147
|
+
const verb = line.slice(0, 4).toUpperCase()
|
|
148
|
+
if (verb === "EHLO" || verb === "HELO") {
|
|
149
|
+
reply("250-eloxiv-test-sink")
|
|
150
|
+
reply("250 AUTH PLAIN")
|
|
151
|
+
} else if (verb === "AUTH") reply("235 2.7.0 Authentication successful")
|
|
152
|
+
else if (verb === "MAIL") {
|
|
153
|
+
from = /<([^>]*)>/.exec(line)?.[1] ?? ""
|
|
154
|
+
reply("250 2.1.0 Ok")
|
|
155
|
+
} else if (verb === "RCPT") {
|
|
156
|
+
const address = /<([^>]*)>/.exec(line)?.[1] ?? ""
|
|
157
|
+
if (refused.has(address.toLowerCase())) reply("550 5.1.1 Recipient refused")
|
|
158
|
+
else {
|
|
159
|
+
to.push(address)
|
|
160
|
+
reply("250 2.1.5 Ok")
|
|
161
|
+
}
|
|
162
|
+
} else if (verb === "DATA") {
|
|
163
|
+
inData = true
|
|
164
|
+
reply("354 End data with <CR><LF>.<CR><LF>")
|
|
165
|
+
} else if (verb === "RSET") {
|
|
166
|
+
from = ""
|
|
167
|
+
to = []
|
|
168
|
+
reply("250 2.0.0 Ok")
|
|
169
|
+
} else if (verb === "NOOP") reply("250 2.0.0 Ok")
|
|
170
|
+
else if (verb === "QUIT") {
|
|
171
|
+
reply("221 2.0.0 Bye")
|
|
172
|
+
socket.end()
|
|
173
|
+
return
|
|
174
|
+
} else reply("502 5.5.2 Command not recognised")
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
})
|
|
178
|
+
await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", () => resolve()))
|
|
179
|
+
const address = server.address()
|
|
180
|
+
if (address === null || typeof address === "string") throw new Error("The SMTP sink has no port")
|
|
181
|
+
return {
|
|
182
|
+
port: address.port,
|
|
183
|
+
url: `smtp://127.0.0.1:${address.port}`,
|
|
184
|
+
messages: () => [...received],
|
|
185
|
+
failNext: (count, options) => {
|
|
186
|
+
failures = count
|
|
187
|
+
quoting = options?.quoting === true
|
|
188
|
+
},
|
|
189
|
+
stall: () => {
|
|
190
|
+
const held = Promise.withResolvers<void>()
|
|
191
|
+
gate = held.promise
|
|
192
|
+
return () => {
|
|
193
|
+
gate = undefined
|
|
194
|
+
held.resolve()
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
refuse: (address) => void refused.add(address.toLowerCase()),
|
|
198
|
+
connections: () => connections,
|
|
199
|
+
close: () =>
|
|
200
|
+
new Promise<void>((resolve) => {
|
|
201
|
+
for (const socket of sockets) socket.destroy()
|
|
202
|
+
server.close(() => resolve())
|
|
203
|
+
}),
|
|
204
|
+
}
|
|
205
|
+
}
|