@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/EvalMain.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The entry `eloxiv eval` runs for an app (docs/cli.md, "eval"): the app's module skills' eval cases through the real
|
|
3
|
+
* agent runtime on a real kernel, on a fresh database it drops before and after, scored against each skill's
|
|
4
|
+
* threshold. It runs on the CLI's runtime, from the app's directory:
|
|
5
|
+
*
|
|
6
|
+
* <runtime> EvalMain.ts --app <dir> [--module <m>]... [--model <spec>] [--repeat <n>] [--permission <p>]...
|
|
7
|
+
* [--database <name>]
|
|
8
|
+
*
|
|
9
|
+
* The app's modules are its server entry's (`server/main.ts` exports `app`, a `KernelApp`); `--model` is
|
|
10
|
+
* `ELOXIV_EVAL_MODEL`'s form (unset: the scripted provider plays each case's `script`). Exits 0 when every skill meets
|
|
11
|
+
* its threshold in every run, 1 when one does not, 2 when the run could not start.
|
|
12
|
+
*/
|
|
13
|
+
import type { KernelApp } from "@eloxiv/kernel"
|
|
14
|
+
import { join, resolve } from "node:path"
|
|
15
|
+
import { pathToFileURL } from "node:url"
|
|
16
|
+
import { parseArgs } from "node:util"
|
|
17
|
+
import { evalProvider, evalRepeat, formatReport, loadEvalSuites, runEvals } from "./Evals.ts"
|
|
18
|
+
import { dropDatabase } from "./System.ts"
|
|
19
|
+
|
|
20
|
+
const { values } = parseArgs({
|
|
21
|
+
options: {
|
|
22
|
+
app: { type: "string" },
|
|
23
|
+
module: { type: "string", multiple: true },
|
|
24
|
+
model: { type: "string" },
|
|
25
|
+
repeat: { type: "string" },
|
|
26
|
+
permission: { type: "string", multiple: true },
|
|
27
|
+
database: { type: "string" },
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const fail = (message: string): never => {
|
|
32
|
+
console.error(`eloxiv eval: ${message}`)
|
|
33
|
+
process.exit(2)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const appDir = resolve(values.app ?? process.cwd())
|
|
37
|
+
const database = values.database ?? "eloxiv_evals"
|
|
38
|
+
if (!/^[a-z0-9_]{1,50}$/.test(database)) fail(`--database must be lower case letters, digits and _ (got ${database})`)
|
|
39
|
+
let repeat = 1
|
|
40
|
+
try {
|
|
41
|
+
repeat = evalRepeat(values.repeat)
|
|
42
|
+
} catch (e) {
|
|
43
|
+
fail((e as Error).message)
|
|
44
|
+
}
|
|
45
|
+
const { app } = (await import(pathToFileURL(join(appDir, "server", "main.ts")).href)) as { app?: KernelApp }
|
|
46
|
+
if (app === undefined) fail(`${appDir}/server/main.ts exports no app (the app item's server entry does)`)
|
|
47
|
+
const modules = app!.modules
|
|
48
|
+
|
|
49
|
+
const loaded = await loadEvalSuites(modules)
|
|
50
|
+
if (loaded.missing.length > 0) console.warn(`skills without evals: ${loaded.missing.join(", ")}`)
|
|
51
|
+
const only = values.module ?? []
|
|
52
|
+
const unknown = only.filter((m) => !loaded.suites.some((s) => s.module === m))
|
|
53
|
+
if (unknown.length > 0) fail(`no evals for module ${unknown.join(", ")}`)
|
|
54
|
+
const suites = only.length === 0 ? loaded.suites : loaded.suites.filter((s) => only.includes(s.module))
|
|
55
|
+
if (suites.length === 0) fail("the app's modules declare no eval cases (skills.<id>.evals in a module's contract)")
|
|
56
|
+
|
|
57
|
+
let provider: Awaited<ReturnType<typeof evalProvider>>
|
|
58
|
+
try {
|
|
59
|
+
provider = await evalProvider(suites, values.model ?? process.env["ELOXIV_EVAL_MODEL"])
|
|
60
|
+
} catch (e) {
|
|
61
|
+
fail((e as Error).message)
|
|
62
|
+
}
|
|
63
|
+
let passed = true
|
|
64
|
+
for (let run = 1; run <= repeat; run++) {
|
|
65
|
+
await dropDatabase(database, appDir)
|
|
66
|
+
try {
|
|
67
|
+
const report = await runEvals({
|
|
68
|
+
modules,
|
|
69
|
+
database,
|
|
70
|
+
suites,
|
|
71
|
+
provider: provider!,
|
|
72
|
+
permissions: values.permission ?? [],
|
|
73
|
+
log: (line) => console.log(line),
|
|
74
|
+
})
|
|
75
|
+
console.log(`\n${repeat > 1 ? `Run ${run} of ${repeat}: ` : ""}${formatReport(report)}\n`)
|
|
76
|
+
passed &&= report.passed
|
|
77
|
+
} finally {
|
|
78
|
+
await dropDatabase(database, appDir)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
process.exit(passed ? 0 : 1)
|
package/src/Evals.ts
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent eval harness (criterion 8): every module skill declares eval cases (`skills.<id>.evals`, a
|
|
3
|
+
* `SkillEvals` JSON file in the module), and the harness runs them through the real agent runtime on a real
|
|
4
|
+
* kernel, scoring each skill against its threshold.
|
|
5
|
+
*
|
|
6
|
+
* A case sends its prompt as a person (over HTTP, through the client SDK), follows the run to its end, then
|
|
7
|
+
* checks the tool calls the run made (in order; others may come between), the tools it must not call, the
|
|
8
|
+
* answer, and the state it left (published query views read as the person, retried briefly for effects that
|
|
9
|
+
* arrive through the outbox).
|
|
10
|
+
*
|
|
11
|
+
* The model is chosen by `ELOXIV_EVAL_MODEL` (see `evalProvider`): unset, the scripted provider plays each
|
|
12
|
+
* case's `script` (CI: a regression test of the harness and the runtime); set, a real model is measured.
|
|
13
|
+
*/
|
|
14
|
+
import { agentClient, signIn } from "@eloxiv/client"
|
|
15
|
+
import { SkillEvals, toolName, type EvalCase, type RunEvent } from "@eloxiv/contracts"
|
|
16
|
+
import {
|
|
17
|
+
agentModule,
|
|
18
|
+
Directory,
|
|
19
|
+
inboxModules,
|
|
20
|
+
QueryViews,
|
|
21
|
+
Registry,
|
|
22
|
+
type AnyKernelModule,
|
|
23
|
+
type KernelApp,
|
|
24
|
+
type ModelProviderImpl,
|
|
25
|
+
} from "@eloxiv/kernel"
|
|
26
|
+
import { gateway } from "ai"
|
|
27
|
+
import { Effect, Schema } from "effect"
|
|
28
|
+
import { readFile } from "node:fs/promises"
|
|
29
|
+
import { join } from "node:path"
|
|
30
|
+
import { fileURLToPath } from "node:url"
|
|
31
|
+
import { scriptedProvider, type Script } from "./Agent.ts"
|
|
32
|
+
import { startKernel } from "./Kernel.ts"
|
|
33
|
+
|
|
34
|
+
export interface EvalSuite {
|
|
35
|
+
readonly module: string
|
|
36
|
+
readonly skill: string
|
|
37
|
+
readonly file: string
|
|
38
|
+
readonly evals: SkillEvals
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Every eval file the modules' skills declare. Skills without evals are listed in `missing`; a skill for development
|
|
43
|
+
* 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
|
|
44
|
+
* flag, off by default) is not required to have them (its evals load if it declares them).
|
|
45
|
+
*/
|
|
46
|
+
export const loadEvalSuites = async (modules: ReadonlyArray<AnyKernelModule>) => {
|
|
47
|
+
const suites: Array<EvalSuite> = []
|
|
48
|
+
const missing: Array<string> = []
|
|
49
|
+
for (const module of modules) {
|
|
50
|
+
const directory = fileURLToPath(module.directory)
|
|
51
|
+
for (const [skill, declaration] of Object.entries(
|
|
52
|
+
(module.contract.skills ?? {}) as Record<
|
|
53
|
+
string,
|
|
54
|
+
{ readonly evals?: { readonly path: string }; readonly audience?: string; readonly requires?: unknown }
|
|
55
|
+
>,
|
|
56
|
+
)) {
|
|
57
|
+
if (declaration.audience === "development") continue
|
|
58
|
+
if (declaration.evals === undefined) {
|
|
59
|
+
if (declaration.requires === undefined) missing.push(skill)
|
|
60
|
+
continue
|
|
61
|
+
}
|
|
62
|
+
const file = join(directory, declaration.evals.path)
|
|
63
|
+
const evals = Schema.decodeUnknownSync(SkillEvals)(JSON.parse(await readFile(file, "utf8")))
|
|
64
|
+
if (evals.skill !== skill) throw new Error(`${file} declares evals for ${evals.skill}, not ${skill}`)
|
|
65
|
+
suites.push({ module: module.contract.name, skill, file, evals })
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return { suites, missing }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Replace `"$result:<tool>:<path>"` strings in `value` with the field of the first result of that tool. */
|
|
72
|
+
const substitute = (
|
|
73
|
+
value: unknown,
|
|
74
|
+
results: ReadonlyArray<{ readonly toolName: string; readonly value: unknown }>,
|
|
75
|
+
): unknown => {
|
|
76
|
+
if (typeof value === "string" && value.startsWith("$result:")) {
|
|
77
|
+
const [, tool, path] = value.split(":")
|
|
78
|
+
return at(results.find((r) => r.toolName === tool)?.value, path ?? "")
|
|
79
|
+
}
|
|
80
|
+
if (Array.isArray(value)) return value.map((v) => substitute(v, results))
|
|
81
|
+
if (value !== null && typeof value === "object") {
|
|
82
|
+
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, substitute(v, results)]))
|
|
83
|
+
}
|
|
84
|
+
return value
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The script the scripted provider plays: each case's turns, keyed by its prompt. A tool call's input may name
|
|
89
|
+
* an earlier result of the turn (`"$result:notebook_write:output.output.id"`).
|
|
90
|
+
*/
|
|
91
|
+
export const evalScript =
|
|
92
|
+
(suites: ReadonlyArray<EvalSuite>): Script =>
|
|
93
|
+
(prompt) => {
|
|
94
|
+
if (prompt.compaction) return { text: "" }
|
|
95
|
+
for (const suite of suites) {
|
|
96
|
+
const found = suite.evals.cases.find((c) => c.prompt === prompt.lastUser)
|
|
97
|
+
if (found === undefined) continue
|
|
98
|
+
const turn = found.script[prompt.turn]
|
|
99
|
+
if (turn === undefined) return { text: "done" }
|
|
100
|
+
return "text" in turn
|
|
101
|
+
? { text: turn.text }
|
|
102
|
+
: {
|
|
103
|
+
toolCalls: turn.toolCalls.map((call) => ({
|
|
104
|
+
tool: call.tool,
|
|
105
|
+
input: substitute(call.input, prompt.results),
|
|
106
|
+
})),
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return { text: "I have no script for this." }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The model provider for an eval run, from `ELOXIV_EVAL_MODEL`:
|
|
114
|
+
* - unset or `scripted`: the scripted provider playing the cases' scripts;
|
|
115
|
+
* - `gateway:<model>` (for example `gateway:anthropic/claude-sonnet-4.5`): the Vercel AI Gateway, with
|
|
116
|
+
* `AI_GATEWAY_API_KEY`;
|
|
117
|
+
* - `<provider>:<model>` (for example `anthropic:claude-sonnet-4-5`, `openai:gpt-5`): the AI SDK provider package
|
|
118
|
+
* `@ai-sdk/<provider>` (installed in the workspace), whose default instance reads its usual API key variable.
|
|
119
|
+
*/
|
|
120
|
+
export const evalProvider = async (suites: ReadonlyArray<EvalSuite>, spec = process.env["ELOXIV_EVAL_MODEL"]) => {
|
|
121
|
+
if (spec === undefined || spec === "" || spec === "scripted") {
|
|
122
|
+
return { provider: scriptedProvider(evalScript(suites)) as ModelProviderImpl, model: "scripted", real: false }
|
|
123
|
+
}
|
|
124
|
+
const at = spec.indexOf(":")
|
|
125
|
+
if (at <= 0) throw new Error(`ELOXIV_EVAL_MODEL must be <provider>:<model>, got ${spec}`)
|
|
126
|
+
const id = spec.slice(0, at)
|
|
127
|
+
const model = spec.slice(at + 1)
|
|
128
|
+
if (id === "gateway") {
|
|
129
|
+
return {
|
|
130
|
+
provider: { id, models: [{ id: model }], languageModel: () => gateway(model) } as ModelProviderImpl,
|
|
131
|
+
model,
|
|
132
|
+
real: true,
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const name = `@ai-sdk/${id}`
|
|
136
|
+
const loaded = (await import(name).catch((error: unknown) => {
|
|
137
|
+
throw new Error(`Install ${name} in the workspace to evaluate with ${spec} (pnpm add -w ${name})`, { cause: error })
|
|
138
|
+
})) as Record<string, unknown>
|
|
139
|
+
const instance = loaded[id] as ((model: string) => unknown) | undefined
|
|
140
|
+
if (typeof instance !== "function") throw new Error(`${name} exports no default provider instance named ${id}`)
|
|
141
|
+
return {
|
|
142
|
+
provider: { id, models: [{ id: model }], languageModel: () => instance(model) } as ModelProviderImpl,
|
|
143
|
+
model,
|
|
144
|
+
real: true,
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface CaseReport {
|
|
149
|
+
readonly name: string
|
|
150
|
+
readonly passed: boolean
|
|
151
|
+
readonly failures: ReadonlyArray<string>
|
|
152
|
+
readonly runId: string
|
|
153
|
+
/** What the agent answered, and the tools it called in order (with each call's outcome), to see why a case failed. */
|
|
154
|
+
readonly answer: string
|
|
155
|
+
readonly calls: ReadonlyArray<string>
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface SkillReport {
|
|
159
|
+
readonly module: string
|
|
160
|
+
readonly skill: string
|
|
161
|
+
readonly threshold: number
|
|
162
|
+
readonly score: number
|
|
163
|
+
readonly passed: boolean
|
|
164
|
+
readonly cases: ReadonlyArray<CaseReport>
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface EvalReport {
|
|
168
|
+
readonly model: string
|
|
169
|
+
readonly skills: ReadonlyArray<SkillReport>
|
|
170
|
+
readonly passed: boolean
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Does `actual` contain every field of `expected` (deeply, for objects)? */
|
|
174
|
+
export const matches = (actual: unknown, expected: unknown): boolean => {
|
|
175
|
+
if (expected === null || typeof expected !== "object") return actual === expected
|
|
176
|
+
if (Array.isArray(expected)) return Array.isArray(actual) && expected.every((e, i) => matches(actual[i], e))
|
|
177
|
+
if (actual === null || typeof actual !== "object") return false
|
|
178
|
+
return Object.entries(expected).every(([key, value]) => matches((actual as Record<string, unknown>)[key], value))
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const at = (value: unknown, path: string) =>
|
|
182
|
+
path.split(".").reduce<unknown>((current, key) => (current as Record<string, unknown> | undefined)?.[key], value)
|
|
183
|
+
|
|
184
|
+
/** The app's actions as tools: whether each only reads. */
|
|
185
|
+
export type ActionTools = ReadonlyMap<string, { readonly readOnly: boolean }>
|
|
186
|
+
|
|
187
|
+
/** Did a call succeed? An action's must return its output (`{ kind: "output" }`); the agent's own tools, `ok`. */
|
|
188
|
+
const succeeded = (tool: string, result: unknown, actions: ActionTools) => {
|
|
189
|
+
const r = result as { readonly ok?: unknown; readonly output?: { readonly kind?: unknown } } | undefined
|
|
190
|
+
if (r?.ok !== true) return false
|
|
191
|
+
return !actions.has(tool) || r.output?.kind === "output"
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const failureOf = (result: unknown) => {
|
|
195
|
+
const r = result as
|
|
196
|
+
| {
|
|
197
|
+
readonly ok?: unknown
|
|
198
|
+
readonly error?: { readonly _tag?: string }
|
|
199
|
+
readonly output?: { readonly kind?: string }
|
|
200
|
+
}
|
|
201
|
+
| undefined
|
|
202
|
+
if (r === undefined) return "it has no result"
|
|
203
|
+
if (r.ok === true) return `a ${r.output?.kind ?? "result"} envelope, not output`
|
|
204
|
+
return r.error?._tag ?? "an error"
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const resultsOf = (events: ReadonlyArray<RunEvent>) =>
|
|
208
|
+
events
|
|
209
|
+
.filter((e) => e.type === "tool-result")
|
|
210
|
+
.map((e) => e.data as { step: number; toolCallId: string; toolName: string; result: unknown })
|
|
211
|
+
|
|
212
|
+
/** The run's tool calls in order, each with its result. */
|
|
213
|
+
const callsOf = (events: ReadonlyArray<RunEvent>) => {
|
|
214
|
+
const resultOf = new Map(resultsOf(events).map((r) => [`${r.step}:${r.toolCallId}`, r.result]))
|
|
215
|
+
return events
|
|
216
|
+
.filter((e) => e.type === "model-step")
|
|
217
|
+
.flatMap((e) => {
|
|
218
|
+
const data = e.data as {
|
|
219
|
+
step: number
|
|
220
|
+
toolCalls: ReadonlyArray<{ toolCallId: string; toolName: string; input: unknown }>
|
|
221
|
+
}
|
|
222
|
+
return data.toolCalls.map((call) =>
|
|
223
|
+
Object.assign({}, call, { result: resultOf.get(`${data.step}:${call.toolCallId}`) }),
|
|
224
|
+
)
|
|
225
|
+
})
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** Does `text` contain `phrase` (case-insensitive) with no letter or digit right before or after it? */
|
|
229
|
+
export const includesWhole = (text: string, phrase: string) => {
|
|
230
|
+
const escaped = phrase.replaceAll(/[.*+?^${}()|[\]\\]/gu, "\\$&")
|
|
231
|
+
return new RegExp(`(?<![\\p{L}\\p{N}])${escaped}(?![\\p{L}\\p{N}])`, "iu").test(text)
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* How many times to run the suite (`ELOXIV_EVAL_REPEAT`): unset or empty is once; otherwise a whole number from 1
|
|
236
|
+
* to 1000, or an error (a mistyped value must not pass without running anything).
|
|
237
|
+
*/
|
|
238
|
+
export const evalRepeat = (raw: string | undefined): number => {
|
|
239
|
+
if (raw === undefined || raw === "") return 1
|
|
240
|
+
const runs = /^[1-9][0-9]{0,3}$/u.test(raw) ? Number(raw) : Number.NaN
|
|
241
|
+
if (!Number.isSafeInteger(runs) || runs < 1 || runs > 1000) {
|
|
242
|
+
throw new Error(`ELOXIV_EVAL_REPEAT must be a whole number of runs from 1 to 1000, not ${JSON.stringify(raw)}`)
|
|
243
|
+
}
|
|
244
|
+
return runs
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Score one case from the run's events and the state it left. An expected call counts only if it succeeded (an
|
|
249
|
+
* action's result is its output, not an error or a replay); a case that expects an action that changes data must
|
|
250
|
+
* assert the state it leaves.
|
|
251
|
+
*/
|
|
252
|
+
const scoreCase = async (
|
|
253
|
+
testCase: EvalCase,
|
|
254
|
+
events: ReadonlyArray<RunEvent>,
|
|
255
|
+
answer: string,
|
|
256
|
+
readView: (view: string) => Promise<ReadonlyArray<Record<string, unknown>>>,
|
|
257
|
+
actions: ActionTools,
|
|
258
|
+
) => {
|
|
259
|
+
const failures: Array<string> = []
|
|
260
|
+
const results = resultsOf(events)
|
|
261
|
+
const calls = callsOf(events)
|
|
262
|
+
let from = 0
|
|
263
|
+
for (const expected of testCase.expect.toolCalls) {
|
|
264
|
+
const matching = (call: (typeof calls)[number], i: number) =>
|
|
265
|
+
i >= from &&
|
|
266
|
+
call.toolName === expected.tool &&
|
|
267
|
+
(expected.input === undefined || matches(call.input, expected.input))
|
|
268
|
+
const index = calls.findIndex((call, i) => matching(call, i) && succeeded(call.toolName, call.result, actions))
|
|
269
|
+
if (index >= 0) {
|
|
270
|
+
from = index + 1
|
|
271
|
+
continue
|
|
272
|
+
}
|
|
273
|
+
const attempted = calls.find((call, i) => matching(call, i))
|
|
274
|
+
failures.push(
|
|
275
|
+
attempted !== undefined
|
|
276
|
+
? `the call to ${expected.tool} did not succeed: ${failureOf(attempted.result)}`
|
|
277
|
+
: `expected a call to ${expected.tool}${expected.input === undefined ? "" : ` with ${JSON.stringify(expected.input)}`}`,
|
|
278
|
+
)
|
|
279
|
+
}
|
|
280
|
+
const writes = testCase.expect.toolCalls.find((expected) => actions.get(expected.tool)?.readOnly === false)
|
|
281
|
+
if (writes !== undefined && (testCase.state ?? []).length === 0) {
|
|
282
|
+
failures.push(`${writes.tool} changes data, so the case must assert the state it leaves (state)`)
|
|
283
|
+
}
|
|
284
|
+
for (const tool of testCase.expect.forbiddenTools ?? []) {
|
|
285
|
+
if (calls.some((call) => call.toolName === tool)) failures.push(`called ${tool}, which it must not`)
|
|
286
|
+
}
|
|
287
|
+
for (const text of testCase.expect.answerIncludes ?? []) {
|
|
288
|
+
if (!includesWhole(answer, text)) failures.push(`answer lacks "${text}": ${answer.slice(0, 200)}`)
|
|
289
|
+
}
|
|
290
|
+
for (const pattern of testCase.expect.answerMatches ?? []) {
|
|
291
|
+
if (!new RegExp(pattern, "iu").test(answer))
|
|
292
|
+
failures.push(`answer does not match /${pattern}/: ${answer.slice(0, 200)}`)
|
|
293
|
+
}
|
|
294
|
+
for (const pattern of testCase.expect.answerExcludes ?? []) {
|
|
295
|
+
if (new RegExp(pattern, "iu").test(answer))
|
|
296
|
+
failures.push(`answer matches /${pattern}/, which it must not: ${answer.slice(0, 200)}`)
|
|
297
|
+
}
|
|
298
|
+
const resolve = (fields: Readonly<Record<string, unknown>>) =>
|
|
299
|
+
Object.fromEntries(
|
|
300
|
+
Object.entries(fields).map(([key, value]) => {
|
|
301
|
+
if (typeof value !== "string" || !value.startsWith("$result:")) return [key, value]
|
|
302
|
+
const [, tool, path] = value.split(":")
|
|
303
|
+
const result = results.find((r) => r.toolName === tool)?.result
|
|
304
|
+
return [key, result === undefined ? Symbol("missing result") : at(result, path ?? "")]
|
|
305
|
+
}),
|
|
306
|
+
)
|
|
307
|
+
for (const assertion of testCase.state ?? []) {
|
|
308
|
+
const deadline = Date.now() + 5_000
|
|
309
|
+
for (;;) {
|
|
310
|
+
const rows = await readView(assertion.view)
|
|
311
|
+
const contains =
|
|
312
|
+
assertion.contains === undefined || rows.some((row) => matches(row, resolve(assertion.contains!)))
|
|
313
|
+
const absent = assertion.absent === undefined || !rows.some((row) => matches(row, resolve(assertion.absent!)))
|
|
314
|
+
if (contains && absent) break
|
|
315
|
+
if (Date.now() > deadline) {
|
|
316
|
+
failures.push(
|
|
317
|
+
contains
|
|
318
|
+
? `${assertion.view} holds a row it must not: ${JSON.stringify(assertion.absent)}`
|
|
319
|
+
: `${assertion.view} lacks a row matching ${JSON.stringify(assertion.contains)}`,
|
|
320
|
+
)
|
|
321
|
+
break
|
|
322
|
+
}
|
|
323
|
+
await new Promise((r) => setTimeout(r, 100))
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return failures
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Run every suite on a fresh kernel (the modules, the agent module and the inbox modules, on `database`), as a
|
|
331
|
+
* member of one organisation, with the provider `evalProvider` picks.
|
|
332
|
+
*/
|
|
333
|
+
export const runEvals = async (options: {
|
|
334
|
+
readonly modules: ReadonlyArray<AnyKernelModule>
|
|
335
|
+
readonly database: string
|
|
336
|
+
readonly suites: ReadonlyArray<EvalSuite>
|
|
337
|
+
readonly provider?: { readonly provider: ModelProviderImpl; readonly model: string } | undefined
|
|
338
|
+
/** Extra app settings (sync, instructions). */
|
|
339
|
+
readonly app?: Partial<KernelApp> | undefined
|
|
340
|
+
/**
|
|
341
|
+
* Permissions of the modules' vocabularies every evaluator holds (through a role `evaluator` in the evals
|
|
342
|
+
* organisation), for skills whose actions need them (managing people, reading free/busy).
|
|
343
|
+
*/
|
|
344
|
+
readonly permissions?: ReadonlyArray<string> | undefined
|
|
345
|
+
readonly log?: ((line: string) => void) | undefined
|
|
346
|
+
}): Promise<EvalReport> => {
|
|
347
|
+
const chosen = options.provider ?? (await evalProvider(options.suites))
|
|
348
|
+
// A run that has nothing to measure measures nothing: it fails rather than passing empty.
|
|
349
|
+
if (options.suites.every((suite) => suite.evals.cases.length === 0)) {
|
|
350
|
+
return { model: `${chosen.provider.id}:${chosen.model}`, skills: [], passed: false }
|
|
351
|
+
}
|
|
352
|
+
const app: KernelApp = {
|
|
353
|
+
name: "evals",
|
|
354
|
+
...options.app,
|
|
355
|
+
// The app's modules may include the kernel's own (agent, inbox): each once.
|
|
356
|
+
modules: [...options.modules, agentModule, ...inboxModules].filter(
|
|
357
|
+
(module, index, all) => all.findIndex((m) => m.contract.name === module.contract.name) === index,
|
|
358
|
+
),
|
|
359
|
+
agent: {
|
|
360
|
+
providers: [chosen.provider],
|
|
361
|
+
defaultModel: { provider: chosen.provider.id, model: chosen.model },
|
|
362
|
+
limits: { maxSteps: 12, maxWallMs: 5 * 60_000 },
|
|
363
|
+
},
|
|
364
|
+
}
|
|
365
|
+
const kernel = await startKernel({ app, database: options.database })
|
|
366
|
+
try {
|
|
367
|
+
const password = "eloxiv-evals-password"
|
|
368
|
+
await kernel.run(
|
|
369
|
+
Effect.gen(function* () {
|
|
370
|
+
const directory = yield* Directory
|
|
371
|
+
yield* directory.createOrganization({ id: "evals", name: "Evals" })
|
|
372
|
+
}),
|
|
373
|
+
)
|
|
374
|
+
const permissions = options.permissions ?? []
|
|
375
|
+
if (permissions.length > 0) {
|
|
376
|
+
await kernel.admin(`INSERT INTO eloxiv.role (org_id, id, name) VALUES ('evals', 'evaluator', 'Evaluator')`)
|
|
377
|
+
for (const permission of permissions) {
|
|
378
|
+
await kernel.admin(
|
|
379
|
+
`INSERT INTO eloxiv.role_permission (org_id, role_id, permission) VALUES ('evals', 'evaluator', $1)`,
|
|
380
|
+
[permission],
|
|
381
|
+
)
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const roles = permissions.length > 0 ? ["member", "evaluator"] : ["member"]
|
|
385
|
+
/** Each case acts as a new member, so its state checks see only what its own run left (and the organisation's). */
|
|
386
|
+
let people = 0
|
|
387
|
+
const person = async () => {
|
|
388
|
+
const email = `evaluator-${++people}@example.com`
|
|
389
|
+
await kernel.run(
|
|
390
|
+
Effect.gen(function* () {
|
|
391
|
+
const directory = yield* Directory
|
|
392
|
+
const userId = yield* directory.ensureUser({ email, name: `Evaluator ${people}`, password })
|
|
393
|
+
yield* directory.addMember({ orgId: "evals", userId, roles })
|
|
394
|
+
}),
|
|
395
|
+
)
|
|
396
|
+
const session = await signIn(kernel.url, { email, password })
|
|
397
|
+
const headers = new Headers({ authorization: `Bearer ${session.token}`, "x-eloxiv-org": "evals" })
|
|
398
|
+
return {
|
|
399
|
+
client: agentClient({ baseUrl: kernel.url, token: () => session.token, orgId: "evals" }),
|
|
400
|
+
readView: (view: string) =>
|
|
401
|
+
kernel.run(
|
|
402
|
+
Effect.gen(function* () {
|
|
403
|
+
const views = yield* QueryViews
|
|
404
|
+
return yield* views.read({ headers, view })
|
|
405
|
+
}),
|
|
406
|
+
),
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const actions: ActionTools = await kernel.run(
|
|
411
|
+
Effect.gen(function* () {
|
|
412
|
+
const registry = yield* Registry
|
|
413
|
+
return new Map(
|
|
414
|
+
[...registry.actions.values()].map((a) => [
|
|
415
|
+
toolName(a.contract.name),
|
|
416
|
+
{ readOnly: a.contract.hints.readOnly },
|
|
417
|
+
]),
|
|
418
|
+
)
|
|
419
|
+
}),
|
|
420
|
+
)
|
|
421
|
+
const skills: Array<SkillReport> = []
|
|
422
|
+
for (const suite of options.suites) {
|
|
423
|
+
const cases: Array<CaseReport> = []
|
|
424
|
+
for (const testCase of suite.evals.cases) {
|
|
425
|
+
const { client, readView } = await person()
|
|
426
|
+
const sent = await client.send({ text: testCase.prompt })
|
|
427
|
+
// A run held for the person's consent would wait for ever: the case fails, and the run is cancelled.
|
|
428
|
+
const deadline = Date.now() + 4 * 60_000
|
|
429
|
+
let held = false
|
|
430
|
+
for (;;) {
|
|
431
|
+
const current = await client.run(sent.runId)
|
|
432
|
+
if (["succeeded", "stopped", "failed", "cancelled"].includes(current.status)) break
|
|
433
|
+
if (current.status === "waiting") {
|
|
434
|
+
held = true
|
|
435
|
+
await client.cancel(sent.runId)
|
|
436
|
+
break
|
|
437
|
+
}
|
|
438
|
+
if (Date.now() > deadline) throw new Error(`Eval run ${sent.runId} did not finish`)
|
|
439
|
+
await new Promise((r) => setTimeout(r, 100))
|
|
440
|
+
}
|
|
441
|
+
const { events, run } = await client.follow(sent.runId)
|
|
442
|
+
const failures = [
|
|
443
|
+
...(held ? ["the run was held for the person's consent"] : []),
|
|
444
|
+
...(run.status === "succeeded" || held ? [] : [`run ${run.status} (${run.stopReason}): ${run.error ?? ""}`]),
|
|
445
|
+
...(await scoreCase(testCase, events, run.result ?? "", readView, actions)),
|
|
446
|
+
]
|
|
447
|
+
const calls = callsOf(events).map(
|
|
448
|
+
(call) =>
|
|
449
|
+
`${call.toolName}(${JSON.stringify(call.input)}) -> ${succeeded(call.toolName, call.result, actions) ? "ok" : failureOf(call.result)}`,
|
|
450
|
+
)
|
|
451
|
+
const answer = run.result ?? ""
|
|
452
|
+
cases.push({ name: testCase.name, passed: failures.length === 0, failures, runId: sent.runId, answer, calls })
|
|
453
|
+
options.log?.(
|
|
454
|
+
`${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)}`}`,
|
|
455
|
+
)
|
|
456
|
+
}
|
|
457
|
+
const score = cases.length === 0 ? 0 : cases.filter((c) => c.passed).length / cases.length
|
|
458
|
+
skills.push({
|
|
459
|
+
module: suite.module,
|
|
460
|
+
skill: suite.skill,
|
|
461
|
+
threshold: suite.evals.threshold,
|
|
462
|
+
score,
|
|
463
|
+
passed: score >= suite.evals.threshold,
|
|
464
|
+
cases,
|
|
465
|
+
})
|
|
466
|
+
}
|
|
467
|
+
return {
|
|
468
|
+
model: `${chosen.provider.id}:${chosen.model}`,
|
|
469
|
+
skills,
|
|
470
|
+
passed: skills.length > 0 && skills.every((s) => s.passed && s.cases.length > 0),
|
|
471
|
+
}
|
|
472
|
+
} finally {
|
|
473
|
+
await kernel.dispose()
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** A plain-text report: one line per skill with its score against its threshold, and each failing case. */
|
|
478
|
+
export const formatReport = (report: EvalReport) =>
|
|
479
|
+
[
|
|
480
|
+
`Evals with ${report.model}`,
|
|
481
|
+
...report.skills.flatMap((s) => [
|
|
482
|
+
`${s.passed ? "PASS" : "FAIL"} ${s.module} / ${s.skill}: ${(s.score * 100).toFixed(0)}% (threshold ${(s.threshold * 100).toFixed(0)}%)`,
|
|
483
|
+
...s.cases.filter((c) => !c.passed).map((c) => ` ${c.name}: ${c.failures.join("; ")}`),
|
|
484
|
+
]),
|
|
485
|
+
report.skills.every((s) => s.cases.length === 0)
|
|
486
|
+
? "No eval case ran."
|
|
487
|
+
: report.passed
|
|
488
|
+
? "Every skill meets its threshold."
|
|
489
|
+
: "Some skills are below their threshold.",
|
|
490
|
+
].join("\n")
|