@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/dist/EvalMain.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { join, resolve } from "node:path";
|
|
10
|
+
import { pathToFileURL } from "node:url";
|
|
11
|
+
import { parseArgs } from "node:util";
|
|
12
|
+
import { evalProvider, evalRepeat, formatReport, loadEvalSuites, runEvals } from "./Evals.js";
|
|
13
|
+
import { dropDatabase } from "./System.js";
|
|
14
|
+
const { values } = parseArgs({
|
|
15
|
+
options: {
|
|
16
|
+
app: { type: "string" },
|
|
17
|
+
module: { type: "string", multiple: true },
|
|
18
|
+
model: { type: "string" },
|
|
19
|
+
repeat: { type: "string" },
|
|
20
|
+
permission: { type: "string", multiple: true },
|
|
21
|
+
database: { type: "string" },
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const fail = (message) => {
|
|
25
|
+
console.error(`eloxiv eval: ${message}`);
|
|
26
|
+
process.exit(2);
|
|
27
|
+
};
|
|
28
|
+
const appDir = resolve(values.app ?? process.cwd());
|
|
29
|
+
const database = values.database ?? "eloxiv_evals";
|
|
30
|
+
if (!/^[a-z0-9_]{1,50}$/.test(database))
|
|
31
|
+
fail(`--database must be lower case letters, digits and _ (got ${database})`);
|
|
32
|
+
let repeat = 1;
|
|
33
|
+
try {
|
|
34
|
+
repeat = evalRepeat(values.repeat);
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
fail(e.message);
|
|
38
|
+
}
|
|
39
|
+
const { app } = (await import(__rewriteRelativeImportExtension(pathToFileURL(join(appDir, "server", "main.ts")).href)));
|
|
40
|
+
if (app === undefined)
|
|
41
|
+
fail(`${appDir}/server/main.ts exports no app (the app item's server entry does)`);
|
|
42
|
+
const modules = app.modules;
|
|
43
|
+
const loaded = await loadEvalSuites(modules);
|
|
44
|
+
if (loaded.missing.length > 0)
|
|
45
|
+
console.warn(`skills without evals: ${loaded.missing.join(", ")}`);
|
|
46
|
+
const only = values.module ?? [];
|
|
47
|
+
const unknown = only.filter((m) => !loaded.suites.some((s) => s.module === m));
|
|
48
|
+
if (unknown.length > 0)
|
|
49
|
+
fail(`no evals for module ${unknown.join(", ")}`);
|
|
50
|
+
const suites = only.length === 0 ? loaded.suites : loaded.suites.filter((s) => only.includes(s.module));
|
|
51
|
+
if (suites.length === 0)
|
|
52
|
+
fail("the app's modules declare no eval cases (skills.<id>.evals in a module's contract)");
|
|
53
|
+
let provider;
|
|
54
|
+
try {
|
|
55
|
+
provider = await evalProvider(suites, values.model ?? process.env["ELOXIV_EVAL_MODEL"]);
|
|
56
|
+
}
|
|
57
|
+
catch (e) {
|
|
58
|
+
fail(e.message);
|
|
59
|
+
}
|
|
60
|
+
let passed = true;
|
|
61
|
+
for (let run = 1; run <= repeat; run++) {
|
|
62
|
+
await dropDatabase(database, appDir);
|
|
63
|
+
try {
|
|
64
|
+
const report = await runEvals({
|
|
65
|
+
modules,
|
|
66
|
+
database,
|
|
67
|
+
suites,
|
|
68
|
+
provider: provider,
|
|
69
|
+
permissions: values.permission ?? [],
|
|
70
|
+
log: (line) => console.log(line),
|
|
71
|
+
});
|
|
72
|
+
console.log(`\n${repeat > 1 ? `Run ${run} of ${repeat}: ` : ""}${formatReport(report)}\n`);
|
|
73
|
+
passed &&= report.passed;
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
await dropDatabase(database, appDir);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
process.exit(passed ? 0 : 1);
|
|
80
|
+
//# sourceMappingURL=EvalMain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalMain.js","sourceRoot":"","sources":["../src/EvalMain.ts"],"names":[],"mappings":";;;;;;;;AAaA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE;QACP,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;Q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AA;IACpC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC;YAC5B,OAAO;YACP,QAAQ;YACR,MAAM;YACN,QAAQ,EAAE,QAAS;YACnB,WAAW,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;YACpC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;SACjC,CAAC,CAAA;QACF,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,OAAO,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC1F,MAAM,KAAK,MAAM,CAAC,MAAM,CAAA;IAC1B,CAAC;YAAS,CAAC;QACT,MAAM,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IACtC,CAAC;AACH,CAAC;AACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/Evals.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { SkillEvals } from "@eloxiv/contracts";
|
|
2
|
+
import { type AnyKernelModule, type KernelApp, type ModelProviderImpl } from "@eloxiv/kernel";
|
|
3
|
+
import { type Script } from "./Agent.ts";
|
|
4
|
+
export interface EvalSuite {
|
|
5
|
+
readonly module: string;
|
|
6
|
+
readonly skill: string;
|
|
7
|
+
readonly file: string;
|
|
8
|
+
readonly evals: SkillEvals;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Every eval file the modules' skills declare. Skills without evals are listed in `missing`; a skill for development
|
|
12
|
+
* only is never given to the app's agent, so the runtime's evals do not cover it, and a lab skill (one that requires a
|
|
13
|
+
* flag, off by default) is not required to have them (its evals load if it declares them).
|
|
14
|
+
*/
|
|
15
|
+
export declare const loadEvalSuites: (modules: ReadonlyArray<AnyKernelModule>) => Promise<{
|
|
16
|
+
suites: EvalSuite[];
|
|
17
|
+
missing: string[];
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* The script the scripted provider plays: each case's turns, keyed by its prompt. A tool call's input may name
|
|
21
|
+
* an earlier result of the turn (`"$result:notebook_write:output.output.id"`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const evalScript: (suites: ReadonlyArray<EvalSuite>) => Script;
|
|
24
|
+
/**
|
|
25
|
+
* The model provider for an eval run, from `ELOXIV_EVAL_MODEL`:
|
|
26
|
+
* - unset or `scripted`: the scripted provider playing the cases' scripts;
|
|
27
|
+
* - `gateway:<model>` (for example `gateway:anthropic/claude-sonnet-4.5`): the Vercel AI Gateway, with
|
|
28
|
+
* `AI_GATEWAY_API_KEY`;
|
|
29
|
+
* - `<provider>:<model>` (for example `anthropic:claude-sonnet-4-5`, `openai:gpt-5`): the AI SDK provider package
|
|
30
|
+
* `@ai-sdk/<provider>` (installed in the workspace), whose default instance reads its usual API key variable.
|
|
31
|
+
*/
|
|
32
|
+
export declare const evalProvider: (suites: ReadonlyArray<EvalSuite>, spec?: string | undefined) => Promise<{
|
|
33
|
+
provider: ModelProviderImpl;
|
|
34
|
+
model: string;
|
|
35
|
+
real: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
export interface CaseReport {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly passed: boolean;
|
|
40
|
+
readonly failures: ReadonlyArray<string>;
|
|
41
|
+
readonly runId: string;
|
|
42
|
+
/** What the agent answered, and the tools it called in order (with each call's outcome), to see why a case failed. */
|
|
43
|
+
readonly answer: string;
|
|
44
|
+
readonly calls: ReadonlyArray<string>;
|
|
45
|
+
}
|
|
46
|
+
export interface SkillReport {
|
|
47
|
+
readonly module: string;
|
|
48
|
+
readonly skill: string;
|
|
49
|
+
readonly threshold: number;
|
|
50
|
+
readonly score: number;
|
|
51
|
+
readonly passed: boolean;
|
|
52
|
+
readonly cases: ReadonlyArray<CaseReport>;
|
|
53
|
+
}
|
|
54
|
+
export interface EvalReport {
|
|
55
|
+
readonly model: string;
|
|
56
|
+
readonly skills: ReadonlyArray<SkillReport>;
|
|
57
|
+
readonly passed: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Does `actual` contain every field of `expected` (deeply, for objects)? */
|
|
60
|
+
export declare const matches: (actual: unknown, expected: unknown) => boolean;
|
|
61
|
+
/** The app's actions as tools: whether each only reads. */
|
|
62
|
+
export type ActionTools = ReadonlyMap<string, {
|
|
63
|
+
readonly readOnly: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
/** Does `text` contain `phrase` (case-insensitive) with no letter or digit right before or after it? */
|
|
66
|
+
export declare const includesWhole: (text: string, phrase: string) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* How many times to run the suite (`ELOXIV_EVAL_REPEAT`): unset or empty is once; otherwise a whole number from 1
|
|
69
|
+
* to 1000, or an error (a mistyped value must not pass without running anything).
|
|
70
|
+
*/
|
|
71
|
+
export declare const evalRepeat: (raw: string | undefined) => number;
|
|
72
|
+
/**
|
|
73
|
+
* Run every suite on a fresh kernel (the modules, the agent module and the inbox modules, on `database`), as a
|
|
74
|
+
* member of one organisation, with the provider `evalProvider` picks.
|
|
75
|
+
*/
|
|
76
|
+
export declare const runEvals: (options: {
|
|
77
|
+
readonly modules: ReadonlyArray<AnyKernelModule>;
|
|
78
|
+
readonly database: string;
|
|
79
|
+
readonly suites: ReadonlyArray<EvalSuite>;
|
|
80
|
+
readonly provider?: {
|
|
81
|
+
readonly provider: ModelProviderImpl;
|
|
82
|
+
readonly model: string;
|
|
83
|
+
} | undefined;
|
|
84
|
+
/** Extra app settings (sync, instructions). */
|
|
85
|
+
readonly app?: Partial<KernelApp> | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Permissions of the modules' vocabularies every evaluator holds (through a role `evaluator` in the evals
|
|
88
|
+
* organisation), for skills whose actions need them (managing people, reading free/busy).
|
|
89
|
+
*/
|
|
90
|
+
readonly permissions?: ReadonlyArray<string> | undefined;
|
|
91
|
+
readonly log?: ((line: string) => void) | undefined;
|
|
92
|
+
}) => Promise<EvalReport>;
|
|
93
|
+
/** A plain-text report: one line per skill with its score against its threshold, and each failing case. */
|
|
94
|
+
export declare const formatReport: (report: EvalReport) => string;
|
|
95
|
+
//# sourceMappingURL=Evals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Evals.d.ts","sourceRoot":"","sources":["../src/Evals.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAA0C,MAAM,mBAAmB,CAAA;AACtF,OAAO,EAML,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAA;AAMvB,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,YAAY,CAAA;AAG1D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAmB,aAAa,CAAC,eAAe,CAAC;;;EAuB3E,CAAA;AAkBD;;;GAGG;AACH,eAAO,MAAM,UAAU,WACZ,aAAa,CAAC,SAAS,CAAC,KAAG,MAkBnC,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,WAAkB,aAAa,CAAC,SAAS,CAAC;cAEJ,iBAAiB;;;EAwB/E,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA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,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IAChG,+CAA+C;IAC/C,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;IAC7C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACxD,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CACpD,KAAG,OAAO,CAAC,UAAU,CAiIrB,CAAA;AAED,2GAA2G;AAC3G,eAAO,MAAM,YAAY,WAAY,UAAU,WAYjC,CAAA"}
|
package/dist/Evals.js
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The agent eval harness (criterion 8): every module skill declares eval cases (`skills.<id>.evals`, a
|
|
11
|
+
* `SkillEvals` JSON file in the module), and the harness runs them through the real agent runtime on a real
|
|
12
|
+
* kernel, scoring each skill against its threshold.
|
|
13
|
+
*
|
|
14
|
+
* A case sends its prompt as a person (over HTTP, through the client SDK), follows the run to its end, then
|
|
15
|
+
* checks the tool calls the run made (in order; others may come between), the tools it must not call, the
|
|
16
|
+
* answer, and the state it left (published query views read as the person, retried briefly for effects that
|
|
17
|
+
* arrive through the outbox).
|
|
18
|
+
*
|
|
19
|
+
* The model is chosen by `ELOXIV_EVAL_MODEL` (see `evalProvider`): unset, the scripted provider plays each
|
|
20
|
+
* case's `script` (CI: a regression test of the harness and the runtime); set, a real model is measured.
|
|
21
|
+
*/
|
|
22
|
+
import { agentClient, signIn } from "@eloxiv/client";
|
|
23
|
+
import { SkillEvals, toolName } from "@eloxiv/contracts";
|
|
24
|
+
import { agentModule, Directory, inboxModules, QueryViews, Registry, } from "@eloxiv/kernel";
|
|
25
|
+
import { gateway } from "ai";
|
|
26
|
+
import { Effect, Schema } from "effect";
|
|
27
|
+
import { readFile } from "node:fs/promises";
|
|
28
|
+
import { join } from "node:path";
|
|
29
|
+
import { fileURLToPath } from "node:url";
|
|
30
|
+
import { scriptedProvider } from "./Agent.js";
|
|
31
|
+
import { startKernel } from "./Kernel.js";
|
|
32
|
+
/**
|
|
33
|
+
* Every eval file the modules' skills declare. Skills without evals are listed in `missing`; a skill for development
|
|
34
|
+
* only is never given to the app's agent, so the runtime's evals do not cover it, and a lab skill (one that requires a
|
|
35
|
+
* flag, off by default) is not required to have them (its evals load if it declares them).
|
|
36
|
+
*/
|
|
37
|
+
export const loadEvalSuites = async (modules) => {
|
|
38
|
+
const suites = [];
|
|
39
|
+
const missing = [];
|
|
40
|
+
for (const module of modules) {
|
|
41
|
+
const directory = fileURLToPath(module.directory);
|
|
42
|
+
for (const [skill, declaration] of Object.entries((module.contract.skills ?? {}))) {
|
|
43
|
+
if (declaration.audience === "development")
|
|
44
|
+
continue;
|
|
45
|
+
if (declaration.evals === undefined) {
|
|
46
|
+
if (declaration.requires === undefined)
|
|
47
|
+
missing.push(skill);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const file = join(directory, declaration.evals.path);
|
|
51
|
+
const evals = Schema.decodeUnknownSync(SkillEvals)(JSON.parse(await readFile(file, "utf8")));
|
|
52
|
+
if (evals.skill !== skill)
|
|
53
|
+
throw new Error(`${file} declares evals for ${evals.skill}, not ${skill}`);
|
|
54
|
+
suites.push({ module: module.contract.name, skill, file, evals });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return { suites, missing };
|
|
58
|
+
};
|
|
59
|
+
/** Replace `"$result:<tool>:<path>"` strings in `value` with the field of the first result of that tool. */
|
|
60
|
+
const substitute = (value, results) => {
|
|
61
|
+
if (typeof value === "string" && value.startsWith("$result:")) {
|
|
62
|
+
const [, tool, path] = value.split(":");
|
|
63
|
+
return at(results.find((r) => r.toolName === tool)?.value, path ?? "");
|
|
64
|
+
}
|
|
65
|
+
if (Array.isArray(value))
|
|
66
|
+
return value.map((v) => substitute(v, results));
|
|
67
|
+
if (value !== null && typeof value === "object") {
|
|
68
|
+
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, substitute(v, results)]));
|
|
69
|
+
}
|
|
70
|
+
return value;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* The script the scripted provider plays: each case's turns, keyed by its prompt. A tool call's input may name
|
|
74
|
+
* an earlier result of the turn (`"$result:notebook_write:output.output.id"`).
|
|
75
|
+
*/
|
|
76
|
+
export const evalScript = (suites) => (prompt) => {
|
|
77
|
+
if (prompt.compaction)
|
|
78
|
+
return { text: "" };
|
|
79
|
+
for (const suite of suites) {
|
|
80
|
+
const found = suite.evals.cases.find((c) => c.prompt === prompt.lastUser);
|
|
81
|
+
if (found === undefined)
|
|
82
|
+
continue;
|
|
83
|
+
const turn = found.script[prompt.turn];
|
|
84
|
+
if (turn === undefined)
|
|
85
|
+
return { text: "done" };
|
|
86
|
+
return "text" in turn
|
|
87
|
+
? { text: turn.text }
|
|
88
|
+
: {
|
|
89
|
+
toolCalls: turn.toolCalls.map((call) => ({
|
|
90
|
+
tool: call.tool,
|
|
91
|
+
input: substitute(call.input, prompt.results),
|
|
92
|
+
})),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return { text: "I have no script for this." };
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* The model provider for an eval run, from `ELOXIV_EVAL_MODEL`:
|
|
99
|
+
* - unset or `scripted`: the scripted provider playing the cases' scripts;
|
|
100
|
+
* - `gateway:<model>` (for example `gateway:anthropic/claude-sonnet-4.5`): the Vercel AI Gateway, with
|
|
101
|
+
* `AI_GATEWAY_API_KEY`;
|
|
102
|
+
* - `<provider>:<model>` (for example `anthropic:claude-sonnet-4-5`, `openai:gpt-5`): the AI SDK provider package
|
|
103
|
+
* `@ai-sdk/<provider>` (installed in the workspace), whose default instance reads its usual API key variable.
|
|
104
|
+
*/
|
|
105
|
+
export const evalProvider = async (suites, spec = process.env["ELOXIV_EVAL_MODEL"]) => {
|
|
106
|
+
if (spec === undefined || spec === "" || spec === "scripted") {
|
|
107
|
+
return { provider: scriptedProvider(evalScript(suites)), model: "scripted", real: false };
|
|
108
|
+
}
|
|
109
|
+
const at = spec.indexOf(":");
|
|
110
|
+
if (at <= 0)
|
|
111
|
+
throw new Error(`ELOXIV_EVAL_MODEL must be <provider>:<model>, got ${spec}`);
|
|
112
|
+
const id = spec.slice(0, at);
|
|
113
|
+
const model = spec.slice(at + 1);
|
|
114
|
+
if (id === "gateway") {
|
|
115
|
+
return {
|
|
116
|
+
provider: { id, models: [{ id: model }], languageModel: () => gateway(model) },
|
|
117
|
+
model,
|
|
118
|
+
real: true,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
const name = `@ai-sdk/${id}`;
|
|
122
|
+
const loaded = (await import(__rewriteRelativeImportExtension(name)).catch((error) => {
|
|
123
|
+
throw new Error(`Install ${name} in the workspace to evaluate with ${spec} (pnpm add -w ${name})`, { cause: error });
|
|
124
|
+
}));
|
|
125
|
+
const instance = loaded[id];
|
|
126
|
+
if (typeof instance !== "function")
|
|
127
|
+
throw new Error(`${name} exports no default provider instance named ${id}`);
|
|
128
|
+
return {
|
|
129
|
+
provider: { id, models: [{ id: model }], languageModel: () => instance(model) },
|
|
130
|
+
model,
|
|
131
|
+
real: true,
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/** Does `actual` contain every field of `expected` (deeply, for objects)? */
|
|
135
|
+
export const matches = (actual, expected) => {
|
|
136
|
+
if (expected === null || typeof expected !== "object")
|
|
137
|
+
return actual === expected;
|
|
138
|
+
if (Array.isArray(expected))
|
|
139
|
+
return Array.isArray(actual) && expected.every((e, i) => matches(actual[i], e));
|
|
140
|
+
if (actual === null || typeof actual !== "object")
|
|
141
|
+
return false;
|
|
142
|
+
return Object.entries(expected).every(([key, value]) => matches(actual[key], value));
|
|
143
|
+
};
|
|
144
|
+
const at = (value, path) => path.split(".").reduce((current, key) => current?.[key], value);
|
|
145
|
+
/** Did a call succeed? An action's must return its output (`{ kind: "output" }`); the agent's own tools, `ok`. */
|
|
146
|
+
const succeeded = (tool, result, actions) => {
|
|
147
|
+
const r = result;
|
|
148
|
+
if (r?.ok !== true)
|
|
149
|
+
return false;
|
|
150
|
+
return !actions.has(tool) || r.output?.kind === "output";
|
|
151
|
+
};
|
|
152
|
+
const failureOf = (result) => {
|
|
153
|
+
const r = result;
|
|
154
|
+
if (r === undefined)
|
|
155
|
+
return "it has no result";
|
|
156
|
+
if (r.ok === true)
|
|
157
|
+
return `a ${r.output?.kind ?? "result"} envelope, not output`;
|
|
158
|
+
return r.error?._tag ?? "an error";
|
|
159
|
+
};
|
|
160
|
+
const resultsOf = (events) => events
|
|
161
|
+
.filter((e) => e.type === "tool-result")
|
|
162
|
+
.map((e) => e.data);
|
|
163
|
+
/** The run's tool calls in order, each with its result. */
|
|
164
|
+
const callsOf = (events) => {
|
|
165
|
+
const resultOf = new Map(resultsOf(events).map((r) => [`${r.step}:${r.toolCallId}`, r.result]));
|
|
166
|
+
return events
|
|
167
|
+
.filter((e) => e.type === "model-step")
|
|
168
|
+
.flatMap((e) => {
|
|
169
|
+
const data = e.data;
|
|
170
|
+
return data.toolCalls.map((call) => Object.assign({}, call, { result: resultOf.get(`${data.step}:${call.toolCallId}`) }));
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/** Does `text` contain `phrase` (case-insensitive) with no letter or digit right before or after it? */
|
|
174
|
+
export const includesWhole = (text, phrase) => {
|
|
175
|
+
const escaped = phrase.replaceAll(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
176
|
+
return new RegExp(`(?<![\\p{L}\\p{N}])${escaped}(?![\\p{L}\\p{N}])`, "iu").test(text);
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* How many times to run the suite (`ELOXIV_EVAL_REPEAT`): unset or empty is once; otherwise a whole number from 1
|
|
180
|
+
* to 1000, or an error (a mistyped value must not pass without running anything).
|
|
181
|
+
*/
|
|
182
|
+
export const evalRepeat = (raw) => {
|
|
183
|
+
if (raw === undefined || raw === "")
|
|
184
|
+
return 1;
|
|
185
|
+
const runs = /^[1-9][0-9]{0,3}$/u.test(raw) ? Number(raw) : Number.NaN;
|
|
186
|
+
if (!Number.isSafeInteger(runs) || runs < 1 || runs > 1000) {
|
|
187
|
+
throw new Error(`ELOXIV_EVAL_REPEAT must be a whole number of runs from 1 to 1000, not ${JSON.stringify(raw)}`);
|
|
188
|
+
}
|
|
189
|
+
return runs;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Score one case from the run's events and the state it left. An expected call counts only if it succeeded (an
|
|
193
|
+
* action's result is its output, not an error or a replay); a case that expects an action that changes data must
|
|
194
|
+
* assert the state it leaves.
|
|
195
|
+
*/
|
|
196
|
+
const scoreCase = async (testCase, events, answer, readView, actions) => {
|
|
197
|
+
const failures = [];
|
|
198
|
+
const results = resultsOf(events);
|
|
199
|
+
const calls = callsOf(events);
|
|
200
|
+
let from = 0;
|
|
201
|
+
for (const expected of testCase.expect.toolCalls) {
|
|
202
|
+
const matching = (call, i) => i >= from &&
|
|
203
|
+
call.toolName === expected.tool &&
|
|
204
|
+
(expected.input === undefined || matches(call.input, expected.input));
|
|
205
|
+
const index = calls.findIndex((call, i) => matching(call, i) && succeeded(call.toolName, call.result, actions));
|
|
206
|
+
if (index >= 0) {
|
|
207
|
+
from = index + 1;
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
const attempted = calls.find((call, i) => matching(call, i));
|
|
211
|
+
failures.push(attempted !== undefined
|
|
212
|
+
? `the call to ${expected.tool} did not succeed: ${failureOf(attempted.result)}`
|
|
213
|
+
: `expected a call to ${expected.tool}${expected.input === undefined ? "" : ` with ${JSON.stringify(expected.input)}`}`);
|
|
214
|
+
}
|
|
215
|
+
const writes = testCase.expect.toolCalls.find((expected) => actions.get(expected.tool)?.readOnly === false);
|
|
216
|
+
if (writes !== undefined && (testCase.state ?? []).length === 0) {
|
|
217
|
+
failures.push(`${writes.tool} changes data, so the case must assert the state it leaves (state)`);
|
|
218
|
+
}
|
|
219
|
+
for (const tool of testCase.expect.forbiddenTools ?? []) {
|
|
220
|
+
if (calls.some((call) => call.toolName === tool))
|
|
221
|
+
failures.push(`called ${tool}, which it must not`);
|
|
222
|
+
}
|
|
223
|
+
for (const text of testCase.expect.answerIncludes ?? []) {
|
|
224
|
+
if (!includesWhole(answer, text))
|
|
225
|
+
failures.push(`answer lacks "${text}": ${answer.slice(0, 200)}`);
|
|
226
|
+
}
|
|
227
|
+
for (const pattern of testCase.expect.answerMatches ?? []) {
|
|
228
|
+
if (!new RegExp(pattern, "iu").test(answer))
|
|
229
|
+
failures.push(`answer does not match /${pattern}/: ${answer.slice(0, 200)}`);
|
|
230
|
+
}
|
|
231
|
+
for (const pattern of testCase.expect.answerExcludes ?? []) {
|
|
232
|
+
if (new RegExp(pattern, "iu").test(answer))
|
|
233
|
+
failures.push(`answer matches /${pattern}/, which it must not: ${answer.slice(0, 200)}`);
|
|
234
|
+
}
|
|
235
|
+
const resolve = (fields) => Object.fromEntries(Object.entries(fields).map(([key, value]) => {
|
|
236
|
+
if (typeof value !== "string" || !value.startsWith("$result:"))
|
|
237
|
+
return [key, value];
|
|
238
|
+
const [, tool, path] = value.split(":");
|
|
239
|
+
const result = results.find((r) => r.toolName === tool)?.result;
|
|
240
|
+
return [key, result === undefined ? Symbol("missing result") : at(result, path ?? "")];
|
|
241
|
+
}));
|
|
242
|
+
for (const assertion of testCase.state ?? []) {
|
|
243
|
+
const deadline = Date.now() + 5_000;
|
|
244
|
+
for (;;) {
|
|
245
|
+
const rows = await readView(assertion.view);
|
|
246
|
+
const contains = assertion.contains === undefined || rows.some((row) => matches(row, resolve(assertion.contains)));
|
|
247
|
+
const absent = assertion.absent === undefined || !rows.some((row) => matches(row, resolve(assertion.absent)));
|
|
248
|
+
if (contains && absent)
|
|
249
|
+
break;
|
|
250
|
+
if (Date.now() > deadline) {
|
|
251
|
+
failures.push(contains
|
|
252
|
+
? `${assertion.view} holds a row it must not: ${JSON.stringify(assertion.absent)}`
|
|
253
|
+
: `${assertion.view} lacks a row matching ${JSON.stringify(assertion.contains)}`);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return failures;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Run every suite on a fresh kernel (the modules, the agent module and the inbox modules, on `database`), as a
|
|
263
|
+
* member of one organisation, with the provider `evalProvider` picks.
|
|
264
|
+
*/
|
|
265
|
+
export const runEvals = async (options) => {
|
|
266
|
+
const chosen = options.provider ?? (await evalProvider(options.suites));
|
|
267
|
+
// A run that has nothing to measure measures nothing: it fails rather than passing empty.
|
|
268
|
+
if (options.suites.every((suite) => suite.evals.cases.length === 0)) {
|
|
269
|
+
return { model: `${chosen.provider.id}:${chosen.model}`, skills: [], passed: false };
|
|
270
|
+
}
|
|
271
|
+
const app = {
|
|
272
|
+
name: "evals",
|
|
273
|
+
...options.app,
|
|
274
|
+
// The app's modules may include the kernel's own (agent, inbox): each once.
|
|
275
|
+
modules: [...options.modules, agentModule, ...inboxModules].filter((module, index, all) => all.findIndex((m) => m.contract.name === module.contract.name) === index),
|
|
276
|
+
agent: {
|
|
277
|
+
providers: [chosen.provider],
|
|
278
|
+
defaultModel: { provider: chosen.provider.id, model: chosen.model },
|
|
279
|
+
limits: { maxSteps: 12, maxWallMs: 5 * 60_000 },
|
|
280
|
+
},
|
|
281
|
+
};
|
|
282
|
+
const kernel = await startKernel({ app, database: options.database });
|
|
283
|
+
try {
|
|
284
|
+
const password = "eloxiv-evals-password";
|
|
285
|
+
await kernel.run(Effect.gen(function* () {
|
|
286
|
+
const directory = yield* Directory;
|
|
287
|
+
yield* directory.createOrganization({ id: "evals", name: "Evals" });
|
|
288
|
+
}));
|
|
289
|
+
const permissions = options.permissions ?? [];
|
|
290
|
+
if (permissions.length > 0) {
|
|
291
|
+
await kernel.admin(`INSERT INTO eloxiv.role (org_id, id, name) VALUES ('evals', 'evaluator', 'Evaluator')`);
|
|
292
|
+
for (const permission of permissions) {
|
|
293
|
+
await kernel.admin(`INSERT INTO eloxiv.role_permission (org_id, role_id, permission) VALUES ('evals', 'evaluator', $1)`, [permission]);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
const roles = permissions.length > 0 ? ["member", "evaluator"] : ["member"];
|
|
297
|
+
/** Each case acts as a new member, so its state checks see only what its own run left (and the organisation's). */
|
|
298
|
+
let people = 0;
|
|
299
|
+
const person = async () => {
|
|
300
|
+
const email = `evaluator-${++people}@example.com`;
|
|
301
|
+
await kernel.run(Effect.gen(function* () {
|
|
302
|
+
const directory = yield* Directory;
|
|
303
|
+
const userId = yield* directory.ensureUser({ email, name: `Evaluator ${people}`, password });
|
|
304
|
+
yield* directory.addMember({ orgId: "evals", userId, roles });
|
|
305
|
+
}));
|
|
306
|
+
const session = await signIn(kernel.url, { email, password });
|
|
307
|
+
const headers = new Headers({ authorization: `Bearer ${session.token}`, "x-eloxiv-org": "evals" });
|
|
308
|
+
return {
|
|
309
|
+
client: agentClient({ baseUrl: kernel.url, token: () => session.token, orgId: "evals" }),
|
|
310
|
+
readView: (view) => kernel.run(Effect.gen(function* () {
|
|
311
|
+
const views = yield* QueryViews;
|
|
312
|
+
return yield* views.read({ headers, view });
|
|
313
|
+
})),
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
const actions = await kernel.run(Effect.gen(function* () {
|
|
317
|
+
const registry = yield* Registry;
|
|
318
|
+
return new Map([...registry.actions.values()].map((a) => [
|
|
319
|
+
toolName(a.contract.name),
|
|
320
|
+
{ readOnly: a.contract.hints.readOnly },
|
|
321
|
+
]));
|
|
322
|
+
}));
|
|
323
|
+
const skills = [];
|
|
324
|
+
for (const suite of options.suites) {
|
|
325
|
+
const cases = [];
|
|
326
|
+
for (const testCase of suite.evals.cases) {
|
|
327
|
+
const { client, readView } = await person();
|
|
328
|
+
const sent = await client.send({ text: testCase.prompt });
|
|
329
|
+
// A run held for the person's consent would wait for ever: the case fails, and the run is cancelled.
|
|
330
|
+
const deadline = Date.now() + 4 * 60_000;
|
|
331
|
+
let held = false;
|
|
332
|
+
for (;;) {
|
|
333
|
+
const current = await client.run(sent.runId);
|
|
334
|
+
if (["succeeded", "stopped", "failed", "cancelled"].includes(current.status))
|
|
335
|
+
break;
|
|
336
|
+
if (current.status === "waiting") {
|
|
337
|
+
held = true;
|
|
338
|
+
await client.cancel(sent.runId);
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
if (Date.now() > deadline)
|
|
342
|
+
throw new Error(`Eval run ${sent.runId} did not finish`);
|
|
343
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
344
|
+
}
|
|
345
|
+
const { events, run } = await client.follow(sent.runId);
|
|
346
|
+
const failures = [
|
|
347
|
+
...(held ? ["the run was held for the person's consent"] : []),
|
|
348
|
+
...(run.status === "succeeded" || held ? [] : [`run ${run.status} (${run.stopReason}): ${run.error ?? ""}`]),
|
|
349
|
+
...(await scoreCase(testCase, events, run.result ?? "", readView, actions)),
|
|
350
|
+
];
|
|
351
|
+
const calls = callsOf(events).map((call) => `${call.toolName}(${JSON.stringify(call.input)}) -> ${succeeded(call.toolName, call.result, actions) ? "ok" : failureOf(call.result)}`);
|
|
352
|
+
const answer = run.result ?? "";
|
|
353
|
+
cases.push({ name: testCase.name, passed: failures.length === 0, failures, runId: sent.runId, answer, calls });
|
|
354
|
+
options.log?.(`${failures.length === 0 ? "PASS" : "FAIL"} ${suite.skill} / ${testCase.name}${failures.length === 0 ? "" : `: ${failures.join("; ")}\n calls: ${calls.join(", ") || "none"}\n answer: ${answer.slice(0, 300)}`}`);
|
|
355
|
+
}
|
|
356
|
+
const score = cases.length === 0 ? 0 : cases.filter((c) => c.passed).length / cases.length;
|
|
357
|
+
skills.push({
|
|
358
|
+
module: suite.module,
|
|
359
|
+
skill: suite.skill,
|
|
360
|
+
threshold: suite.evals.threshold,
|
|
361
|
+
score,
|
|
362
|
+
passed: score >= suite.evals.threshold,
|
|
363
|
+
cases,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
model: `${chosen.provider.id}:${chosen.model}`,
|
|
368
|
+
skills,
|
|
369
|
+
passed: skills.length > 0 && skills.every((s) => s.passed && s.cases.length > 0),
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
finally {
|
|
373
|
+
await kernel.dispose();
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
/** A plain-text report: one line per skill with its score against its threshold, and each failing case. */
|
|
377
|
+
export const formatReport = (report) => [
|
|
378
|
+
`Evals with ${report.model}`,
|
|
379
|
+
...report.skills.flatMap((s) => [
|
|
380
|
+
`${s.passed ? "PASS" : "FAIL"} ${s.module} / ${s.skill}: ${(s.score * 100).toFixed(0)}% (threshold ${(s.threshold * 100).toFixed(0)}%)`,
|
|
381
|
+
...s.cases.filter((c) => !c.passed).map((c) => ` ${c.name}: ${c.failures.join("; ")}`),
|
|
382
|
+
]),
|
|
383
|
+
report.skills.every((s) => s.cases.length === 0)
|
|
384
|
+
? "No eval case ran."
|
|
385
|
+
: report.passed
|
|
386
|
+
? "Every skill meets its threshold."
|
|
387
|
+
: "Some skills are below their threshold.",
|
|
388
|
+
].join("\n");
|
|
389
|
+
//# sourceMappingURL=Evals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Evals.js","sourceRoot":"","sources":["../src/Evals.ts"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAgC,MAAM,mBAAmB,CAAA;AACtF,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,GAIT,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAe,MAAM,YAAY,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AASzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,OAAuC,EAAE,EAAE;IAC9E,MAAM,MAAM,GAAqB,EAAE,CAAA;IACnC,MAAM,OAAO,GAAkB,EAAE,CAAA;IACjC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QACjD,KAAK,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,CAC/C,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,EAAE,CAG5B,CACF,EAAE,CAAC;YACF,IAAI,WA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