@undefineds.co/xpod 0.3.58 → 0.3.62
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/README.md +3 -0
- package/config/cli.json +88 -0
- package/config/cloud.json +32 -1
- package/config/components-ignore.json +3 -0
- package/config/extensions.local.initializer.json +44 -0
- package/config/resolver.json +86 -0
- package/config/xpod.base.json +4 -0
- package/dist/agents/AgentExecutorFactory.d.ts +3 -3
- package/dist/agents/AgentExecutorFactory.js +28 -15
- package/dist/agents/AgentExecutorFactory.js.map +1 -1
- package/dist/agents/BaseAgentExecutor.d.ts +2 -1
- package/dist/agents/BaseAgentExecutor.js +1 -0
- package/dist/agents/BaseAgentExecutor.js.map +1 -1
- package/dist/agents/ClaudeExecutor.d.ts +3 -1
- package/dist/agents/ClaudeExecutor.js +18 -12
- package/dist/agents/ClaudeExecutor.js.map +1 -1
- package/dist/agents/config/resolve.js +0 -21
- package/dist/agents/config/resolve.js.map +1 -1
- package/dist/agents/config/types.d.ts +2 -7
- package/dist/agents/config/types.js +2 -1
- package/dist/agents/config/types.js.map +1 -1
- package/dist/agents/types.d.ts +18 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/ai/schema/types.d.ts +2 -1
- package/dist/ai/schema/types.js +1 -0
- package/dist/ai/schema/types.js.map +1 -1
- package/dist/ai/service/CredentialReader.d.ts +3 -1
- package/dist/ai/service/CredentialReader.js.map +1 -1
- package/dist/ai/service/CredentialReaderImpl.d.ts +3 -1
- package/dist/ai/service/CredentialReaderImpl.js +24 -2
- package/dist/ai/service/CredentialReaderImpl.js.map +1 -1
- package/dist/ai/service/EmbeddingServiceImpl.js +13 -2
- package/dist/ai/service/EmbeddingServiceImpl.js.map +1 -1
- package/dist/ai/service/ProviderRegistry.d.ts +4 -0
- package/dist/ai/service/ProviderRegistry.js.map +1 -1
- package/dist/ai/service/ProviderRegistry.jsonld +4 -0
- package/dist/ai/service/ProviderRegistryImpl.d.ts +4 -1
- package/dist/ai/service/ProviderRegistryImpl.js +26 -4
- package/dist/ai/service/ProviderRegistryImpl.js.map +1 -1
- package/dist/ai/service/ProviderRegistryImpl.jsonld +12 -0
- package/dist/ai/service/defaultEmbeddingProfile.d.ts +5 -0
- package/dist/ai/service/defaultEmbeddingProfile.js +31 -0
- package/dist/ai/service/defaultEmbeddingProfile.js.map +1 -0
- package/dist/ai/service/index.d.ts +1 -0
- package/dist/ai/service/index.js +1 -0
- package/dist/ai/service/index.js.map +1 -1
- package/dist/ai/service/types.d.ts +1 -0
- package/dist/ai/service/types.js.map +1 -1
- package/dist/api/ApiServer.js +17 -2
- package/dist/api/ApiServer.js.map +1 -1
- package/dist/api/ai-gateway/AiGatewayService.d.ts +106 -0
- package/dist/api/ai-gateway/AiGatewayService.js +527 -0
- package/dist/api/ai-gateway/AiGatewayService.js.map +1 -0
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.d.ts +38 -0
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js +128 -0
- package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js.map +1 -0
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.d.ts +25 -0
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js +91 -0
- package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js.map +1 -0
- package/dist/api/ai-gateway/auth/GatewayApiKey.d.ts +28 -0
- package/dist/api/ai-gateway/auth/GatewayApiKey.js +162 -0
- package/dist/api/ai-gateway/auth/GatewayApiKey.js.map +1 -0
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.d.ts +56 -0
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js +143 -0
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js.map +1 -0
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.d.ts +26 -0
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js +97 -0
- package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js.map +1 -0
- package/dist/api/ai-gateway/auth/GatewayPrincipal.d.ts +20 -0
- package/dist/api/ai-gateway/auth/GatewayPrincipal.js +37 -0
- package/dist/api/ai-gateway/auth/GatewayPrincipal.js.map +1 -0
- package/dist/api/ai-gateway/auth/InvocationTokenCodec.d.ts +41 -0
- package/dist/api/ai-gateway/auth/InvocationTokenCodec.js +221 -0
- package/dist/api/ai-gateway/auth/InvocationTokenCodec.js.map +1 -0
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.d.ts +54 -0
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +152 -0
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js.map +1 -0
- package/dist/api/ai-gateway/connect/index.d.ts +367 -0
- package/dist/api/ai-gateway/connect/index.js +1061 -0
- package/dist/api/ai-gateway/connect/index.js.map +1 -0
- package/dist/api/ai-gateway/credentials/CloudKmsWrapper.d.ts +40 -0
- package/dist/api/ai-gateway/credentials/CloudKmsWrapper.js +59 -0
- package/dist/api/ai-gateway/credentials/CloudKmsWrapper.js.map +1 -0
- package/dist/api/ai-gateway/credentials/CredentialVault.d.ts +14 -0
- package/dist/api/ai-gateway/credentials/CredentialVault.js +11 -0
- package/dist/api/ai-gateway/credentials/CredentialVault.js.map +1 -0
- package/dist/api/ai-gateway/credentials/KeyWrapper.d.ts +27 -0
- package/dist/api/ai-gateway/credentials/KeyWrapper.js +3 -0
- package/dist/api/ai-gateway/credentials/KeyWrapper.js.map +1 -0
- package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.d.ts +27 -0
- package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.js +145 -0
- package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.js.map +1 -0
- package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.d.ts +13 -0
- package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.js +133 -0
- package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.js.map +1 -0
- package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.d.ts +23 -0
- package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.js +62 -0
- package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.js.map +1 -0
- package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.d.ts +23 -0
- package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.js +173 -0
- package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.js.map +1 -0
- package/dist/api/ai-gateway/errors.d.ts +21 -0
- package/dist/api/ai-gateway/errors.js +50 -0
- package/dist/api/ai-gateway/errors.js.map +1 -0
- package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.d.ts +6 -0
- package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.js +111 -0
- package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.js.map +1 -0
- package/dist/api/ai-gateway/protocol/MessagesFrontend.d.ts +6 -0
- package/dist/api/ai-gateway/protocol/MessagesFrontend.js +99 -0
- package/dist/api/ai-gateway/protocol/MessagesFrontend.js.map +1 -0
- package/dist/api/ai-gateway/protocol/ResponsesFrontend.d.ts +6 -0
- package/dist/api/ai-gateway/protocol/ResponsesFrontend.js +232 -0
- package/dist/api/ai-gateway/protocol/ResponsesFrontend.js.map +1 -0
- package/dist/api/ai-gateway/protocol/index.d.ts +3 -0
- package/dist/api/ai-gateway/protocol/index.js +10 -0
- package/dist/api/ai-gateway/protocol/index.js.map +1 -0
- package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.d.ts +7 -0
- package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.js +37 -0
- package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.d.ts +9 -0
- package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.js +127 -0
- package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.d.ts +8 -0
- package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.js +47 -0
- package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.d.ts +8 -0
- package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.js +57 -0
- package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.d.ts +1 -0
- package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.js +6 -0
- package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.d.ts +13 -0
- package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.js +34 -0
- package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/ProviderRegistry.d.ts +68 -0
- package/dist/api/ai-gateway/providers/ProviderRegistry.js +288 -0
- package/dist/api/ai-gateway/providers/ProviderRegistry.js.map +1 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.d.ts +88 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.js +645 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.js.map +1 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.d.ts +13 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.js +48 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.js.map +1 -0
- package/dist/api/ai-gateway/providers/index.d.ts +9 -0
- package/dist/api/ai-gateway/providers/index.js +26 -0
- package/dist/api/ai-gateway/providers/index.js.map +1 -0
- package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.d.ts +5 -0
- package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.js +21 -0
- package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/BailianQuotaAdapter.d.ts +5 -0
- package/dist/api/ai-gateway/quota/BailianQuotaAdapter.js +21 -0
- package/dist/api/ai-gateway/quota/BailianQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.d.ts +10 -0
- package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.js +83 -0
- package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/KimiQuotaAdapter.d.ts +10 -0
- package/dist/api/ai-gateway/quota/KimiQuotaAdapter.js +70 -0
- package/dist/api/ai-gateway/quota/KimiQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.d.ts +5 -0
- package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.js +21 -0
- package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.d.ts +214 -0
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js +511 -0
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js.map +1 -0
- package/dist/api/ai-gateway/quota/index.d.ts +6 -0
- package/dist/api/ai-gateway/quota/index.js +23 -0
- package/dist/api/ai-gateway/quota/index.js.map +1 -0
- package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.d.ts +26 -0
- package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.js +67 -0
- package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.js.map +1 -0
- package/dist/api/ai-gateway/routing/ModelRouter.d.ts +84 -0
- package/dist/api/ai-gateway/routing/ModelRouter.js +274 -0
- package/dist/api/ai-gateway/routing/ModelRouter.js.map +1 -0
- package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.d.ts +39 -0
- package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.js +122 -0
- package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.js.map +1 -0
- package/dist/api/ai-gateway/routing/SessionAffinityStore.d.ts +49 -0
- package/dist/api/ai-gateway/routing/SessionAffinityStore.js +66 -0
- package/dist/api/ai-gateway/routing/SessionAffinityStore.js.map +1 -0
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.d.ts +25 -0
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js +50 -0
- package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js.map +1 -0
- package/dist/api/ai-gateway/types.d.ts +112 -0
- package/dist/api/ai-gateway/types.js +305 -0
- package/dist/api/ai-gateway/types.js.map +1 -0
- package/dist/api/auth/AuthContext.d.ts +18 -3
- package/dist/api/auth/AuthContext.js +13 -2
- package/dist/api/auth/AuthContext.js.map +1 -1
- package/dist/api/auth/Authenticator.d.ts +3 -0
- package/dist/api/auth/Authenticator.js.map +1 -1
- package/dist/api/auth/ClientCredentialsAuthenticator.d.ts +2 -6
- package/dist/api/auth/ClientCredentialsAuthenticator.js +12 -30
- package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -1
- package/dist/api/auth/SolidTokenAuthenticator.d.ts +2 -0
- package/dist/api/auth/SolidTokenAuthenticator.js +88 -2
- package/dist/api/auth/SolidTokenAuthenticator.js.map +1 -1
- package/dist/api/auth/TokenIdentity.d.ts +6 -0
- package/dist/api/auth/TokenIdentity.js +31 -0
- package/dist/api/auth/TokenIdentity.js.map +1 -0
- package/dist/api/chatkit/ai-provider.d.ts +9 -23
- package/dist/api/chatkit/ai-provider.js +30 -153
- package/dist/api/chatkit/ai-provider.js.map +1 -1
- package/dist/api/chatkit/default-agent.d.ts +24 -15
- package/dist/api/chatkit/default-agent.js +24 -83
- package/dist/api/chatkit/default-agent.js.map +1 -1
- package/dist/api/chatkit/index.d.ts +2 -1
- package/dist/api/chatkit/index.js +3 -1
- package/dist/api/chatkit/index.js.map +1 -1
- package/dist/api/chatkit/pod-store.d.ts +13 -1
- package/dist/api/chatkit/pod-store.js +127 -7
- package/dist/api/chatkit/pod-store.js.map +1 -1
- package/dist/api/chatkit/runtime/AcpAgentRuntime.d.ts +0 -1
- package/dist/api/chatkit/runtime/AcpAgentRuntime.js +14 -51
- package/dist/api/chatkit/runtime/AcpAgentRuntime.js.map +1 -1
- package/dist/api/chatkit/runtime/AcpRunner.js +2 -1
- package/dist/api/chatkit/runtime/AcpRunner.js.map +1 -1
- package/dist/api/chatkit/runtime/CodexRuntimeProjector.d.ts +15 -1
- package/dist/api/chatkit/runtime/CodexRuntimeProjector.js +52 -34
- package/dist/api/chatkit/runtime/CodexRuntimeProjector.js.map +1 -1
- package/dist/api/chatkit/service.d.ts +8 -1
- package/dist/api/chatkit/service.js +46 -5
- package/dist/api/chatkit/service.js.map +1 -1
- package/dist/api/chatkit/store.d.ts +23 -1
- package/dist/api/chatkit/store.js +56 -0
- package/dist/api/chatkit/store.js.map +1 -1
- package/dist/api/chatkit/types.d.ts +1 -0
- package/dist/api/chatkit/types.js.map +1 -1
- package/dist/api/container/common.js +286 -13
- package/dist/api/container/common.js.map +1 -1
- package/dist/api/container/index.js +126 -6
- package/dist/api/container/index.js.map +1 -1
- package/dist/api/container/local.js +50 -6
- package/dist/api/container/local.js.map +1 -1
- package/dist/api/container/rdf.d.ts +15 -0
- package/dist/api/container/rdf.js +90 -0
- package/dist/api/container/rdf.js.map +1 -0
- package/dist/api/container/routes.js +151 -11
- package/dist/api/container/routes.js.map +1 -1
- package/dist/api/container/types.d.ts +96 -0
- package/dist/api/container/types.js.map +1 -1
- package/dist/api/handlers/AdminHandler.d.ts +25 -2
- package/dist/api/handlers/AdminHandler.js +60 -10
- package/dist/api/handlers/AdminHandler.js.map +1 -1
- package/dist/api/handlers/AiClientConfigurationHandler.d.ts +7 -0
- package/dist/api/handlers/AiClientConfigurationHandler.js +202 -0
- package/dist/api/handlers/AiClientConfigurationHandler.js.map +1 -0
- package/dist/api/handlers/AiGatewayHandler.d.ts +23 -0
- package/dist/api/handlers/AiGatewayHandler.js +231 -0
- package/dist/api/handlers/AiGatewayHandler.js.map +1 -0
- package/dist/api/handlers/AiGatewayManagementHandler.d.ts +24 -0
- package/dist/api/handlers/AiGatewayManagementHandler.js +503 -0
- package/dist/api/handlers/AiGatewayManagementHandler.js.map +1 -0
- package/dist/api/handlers/ChatHandler.d.ts +11 -12
- package/dist/api/handlers/ChatHandler.js +12 -219
- package/dist/api/handlers/ChatHandler.js.map +1 -1
- package/dist/api/handlers/DashboardHandler.js +22 -116
- package/dist/api/handlers/DashboardHandler.js.map +1 -1
- package/dist/api/handlers/NetworkSettingsHandler.d.ts +97 -0
- package/dist/api/handlers/NetworkSettingsHandler.js +511 -0
- package/dist/api/handlers/NetworkSettingsHandler.js.map +1 -0
- package/dist/api/handlers/PodSettingsHandler.d.ts +79 -0
- package/dist/api/handlers/PodSettingsHandler.js +162 -0
- package/dist/api/handlers/PodSettingsHandler.js.map +1 -0
- package/dist/api/handlers/ProvisionHandler.d.ts +3 -1
- package/dist/api/handlers/ProvisionHandler.js +22 -87
- package/dist/api/handlers/ProvisionHandler.js.map +1 -1
- package/dist/api/handlers/RdfStatsHandler.d.ts +6 -0
- package/dist/api/handlers/RdfStatsHandler.js +85 -0
- package/dist/api/handlers/RdfStatsHandler.js.map +1 -0
- package/dist/api/handlers/SettingsHandler.d.ts +5 -0
- package/dist/api/handlers/SettingsHandler.js +13 -0
- package/dist/api/handlers/SettingsHandler.js.map +1 -0
- package/dist/api/handlers/StaticSpaHandler.d.ts +8 -0
- package/dist/api/handlers/StaticSpaHandler.js +102 -0
- package/dist/api/handlers/StaticSpaHandler.js.map +1 -0
- package/dist/api/handlers/index.d.ts +1 -0
- package/dist/api/handlers/index.js +1 -0
- package/dist/api/handlers/index.js.map +1 -1
- package/dist/api/http/readBoundedJsonBody.d.ts +14 -0
- package/dist/api/http/readBoundedJsonBody.js +58 -0
- package/dist/api/http/readBoundedJsonBody.js.map +1 -0
- package/dist/api/middleware/AuthMiddleware.d.ts +1 -0
- package/dist/api/middleware/AuthMiddleware.js +33 -4
- package/dist/api/middleware/AuthMiddleware.js.map +1 -1
- package/dist/api/runs/AgentRuntimeTypes.d.ts +18 -3
- package/dist/api/runs/AgentRuntimeTypes.js +61 -0
- package/dist/api/runs/AgentRuntimeTypes.js.map +1 -1
- package/dist/api/runs/InngestRunExecutionBackend.d.ts +28 -3
- package/dist/api/runs/InngestRunExecutionBackend.js +26 -3
- package/dist/api/runs/InngestRunExecutionBackend.js.map +1 -1
- package/dist/api/runs/ManagedRunWorker.d.ts +4 -1
- package/dist/api/runs/ManagedRunWorker.js +39 -8
- package/dist/api/runs/ManagedRunWorker.js.map +1 -1
- package/dist/api/runs/PiAgentRuntimeDriver.d.ts +5 -1
- package/dist/api/runs/PiAgentRuntimeDriver.js +94 -57
- package/dist/api/runs/PiAgentRuntimeDriver.js.map +1 -1
- package/dist/api/runs/RdfRunContextRetriever.d.ts +46 -0
- package/dist/api/runs/RdfRunContextRetriever.js +277 -0
- package/dist/api/runs/RdfRunContextRetriever.js.map +1 -0
- package/dist/api/runs/RunExecutionBackend.d.ts +38 -0
- package/dist/api/runs/RunExecutionBackend.js.map +1 -1
- package/dist/api/runs/RunStateCenter.d.ts +18 -3
- package/dist/api/runs/RunStateCenter.js +85 -24
- package/dist/api/runs/RunStateCenter.js.map +1 -1
- package/dist/api/runtime.js +163 -3
- package/dist/api/runtime.js.map +1 -1
- package/dist/api/service/AiClientConfigurationService.d.ts +97 -0
- package/dist/api/service/AiClientConfigurationService.js +379 -0
- package/dist/api/service/AiClientConfigurationService.js.map +1 -0
- package/dist/api/service/RdfBenchmarkReportCatalog.d.ts +86 -0
- package/dist/api/service/RdfBenchmarkReportCatalog.js +349 -0
- package/dist/api/service/RdfBenchmarkReportCatalog.js.map +1 -0
- package/dist/api/service/RdfBenchmarkReportGate.d.ts +78 -0
- package/dist/api/service/RdfBenchmarkReportGate.js +197 -0
- package/dist/api/service/RdfBenchmarkReportGate.js.map +1 -0
- package/dist/api/service/RdfSearchIndexingService.d.ts +113 -0
- package/dist/api/service/RdfSearchIndexingService.js +272 -0
- package/dist/api/service/RdfSearchIndexingService.js.map +1 -0
- package/dist/api/service/RdfSearchIndexingSolidFsSyncer.d.ts +27 -0
- package/dist/api/service/RdfSearchIndexingSolidFsSyncer.js +90 -0
- package/dist/api/service/RdfSearchIndexingSolidFsSyncer.js.map +1 -0
- package/dist/api/service/RdfStorageStatsService.d.ts +31 -0
- package/dist/api/service/RdfStorageStatsService.js +97 -0
- package/dist/api/service/RdfStorageStatsService.js.map +1 -0
- package/dist/api/service/VectorStoreService.d.ts +2 -0
- package/dist/api/service/VectorStoreService.js +70 -2
- package/dist/api/service/VectorStoreService.js.map +1 -1
- package/dist/api/service/VercelChatService.d.ts +27 -38
- package/dist/api/service/VercelChatService.js +153 -505
- package/dist/api/service/VercelChatService.js.map +1 -1
- package/dist/api/service/provider-http-transport.d.ts +21 -0
- package/dist/api/service/provider-http-transport.js +108 -2
- package/dist/api/service/provider-http-transport.js.map +1 -1
- package/dist/api/service/provider-registry.d.ts +5 -7
- package/dist/api/service/provider-registry.js +81 -64
- package/dist/api/service/provider-registry.js.map +1 -1
- package/dist/api/tasks/InngestTaskScheduler.d.ts +44 -4
- package/dist/api/tasks/TaskMaterializer.d.ts +10 -1
- package/dist/api/tasks/TaskMaterializer.js +39 -4
- package/dist/api/tasks/TaskMaterializer.js.map +1 -1
- package/dist/api/tasks/TaskService.d.ts +5 -1
- package/dist/api/tasks/TaskService.js +3 -0
- package/dist/api/tasks/TaskService.js.map +1 -1
- package/dist/cli/commands/rdf.d.ts +9 -0
- package/dist/cli/commands/rdf.js +66 -1
- package/dist/cli/commands/rdf.js.map +1 -1
- package/dist/cli/commands/start.js +3 -0
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/lib/solid-auth.d.ts +3 -3
- package/dist/cli/lib/solid-auth.js +4 -4
- package/dist/cli/lib/solid-auth.js.map +1 -1
- package/dist/components/components.jsonld +16 -0
- package/dist/components/context.jsonld +815 -28
- package/dist/document/Chunker.jsonld +110 -0
- package/dist/document/{DocumentParser.d.ts → DocumentReader.d.ts} +23 -11
- package/dist/document/{DocumentParser.js → DocumentReader.js} +2 -2
- package/dist/document/DocumentReader.js.map +1 -0
- package/dist/document/DocumentReader.jsonld +82 -0
- package/dist/document/HeadingChunker.jsonld +41 -0
- package/dist/document/{JinaDocumentParser.d.ts → JinaReader.d.ts} +7 -7
- package/dist/document/{JinaDocumentParser.js → JinaReader.js} +12 -12
- package/dist/document/JinaReader.js.map +1 -0
- package/dist/document/JinaReader.jsonld +133 -0
- package/dist/document/L0SourceSummary.d.ts +103 -0
- package/dist/document/L0SourceSummary.js +157 -0
- package/dist/document/L0SourceSummary.js.map +1 -0
- package/dist/document/L0SourceSummary.jsonld +326 -0
- package/dist/document/PaddleOcrReader.d.ts +40 -0
- package/dist/document/PaddleOcrReader.js +53 -0
- package/dist/document/PaddleOcrReader.js.map +1 -0
- package/dist/document/PaddleOcrReader.jsonld +234 -0
- package/dist/document/ReaderAiConfig.d.ts +50 -0
- package/dist/document/ReaderAiConfig.js +109 -0
- package/dist/document/ReaderAiConfig.js.map +1 -0
- package/dist/document/ReaderAiConfig.jsonld +185 -0
- package/dist/document/ReaderPolicy.d.ts +89 -0
- package/dist/document/ReaderPolicy.js +158 -0
- package/dist/document/ReaderPolicy.js.map +1 -0
- package/dist/document/ReaderPolicy.jsonld +218 -0
- package/dist/document/index.d.ts +6 -2
- package/dist/document/index.js +6 -2
- package/dist/document/index.js.map +1 -1
- package/dist/edge/DdnsManager.d.ts +1 -1
- package/dist/edge/DdnsManager.js.map +1 -1
- package/dist/edge/EdgeNodeAgent.d.ts +4 -0
- package/dist/edge/EdgeNodeAgent.js +6 -0
- package/dist/edge/EdgeNodeAgent.js.map +1 -1
- package/dist/edge/EdgeNodeAgent.jsonld +8 -0
- package/dist/edge/EdgeNodeAgentInitializer.d.ts +16 -0
- package/dist/edge/EdgeNodeAgentInitializer.js +51 -0
- package/dist/edge/EdgeNodeAgentInitializer.js.map +1 -1
- package/dist/edge/EdgeNodeAgentInitializer.jsonld +250 -0
- package/dist/edge/EdgeNodeCertificateCapabilityBridge.d.ts +34 -0
- package/dist/edge/EdgeNodeCertificateCapabilityBridge.js +111 -0
- package/dist/edge/EdgeNodeCertificateCapabilityBridge.js.map +1 -0
- package/dist/edge/acme/AcmeCertificateManager.d.ts +14 -1
- package/dist/edge/acme/AcmeCertificateManager.js +67 -7
- package/dist/edge/acme/AcmeCertificateManager.js.map +1 -1
- package/dist/edge/acme/AcmeCertificateManager.jsonld +22 -2
- package/dist/edge/acme/ClusterCertificateManager.d.ts +12 -0
- package/dist/edge/acme/ClusterCertificateManager.js +38 -0
- package/dist/edge/acme/ClusterCertificateManager.js.map +1 -1
- package/dist/extensions/ExtensionRuntime.d.ts +17 -0
- package/dist/extensions/ExtensionRuntime.js +171 -0
- package/dist/extensions/ExtensionRuntime.js.map +1 -0
- package/dist/extensions/PodCredentialResolver.d.ts +23 -0
- package/dist/extensions/PodCredentialResolver.js +139 -0
- package/dist/extensions/PodCredentialResolver.js.map +1 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.js +20 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/types.d.ts +73 -0
- package/dist/extensions/types.js +3 -0
- package/dist/extensions/types.js.map +1 -0
- package/dist/http/SubgraphSparqlHttpHandler.d.ts +20 -1
- package/dist/http/SubgraphSparqlHttpHandler.js +324 -43
- package/dist/http/SubgraphSparqlHttpHandler.js.map +1 -1
- package/dist/http/SubgraphSparqlHttpHandler.jsonld +87 -0
- package/dist/identity/drizzle/EdgeNodeRepository.js +3 -2
- package/dist/identity/drizzle/EdgeNodeRepository.js.map +1 -1
- package/dist/identity/drizzle/schema.pg.js +1 -1
- package/dist/identity/drizzle/schema.pg.js.map +1 -1
- package/dist/identity/drizzle/schema.sqlite.js +1 -1
- package/dist/identity/drizzle/schema.sqlite.js.map +1 -1
- package/dist/identity/oidc/ScopedPickWebIdHandler.js +5 -5
- package/dist/identity/oidc/ScopedPickWebIdHandler.js.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +3 -0
- package/dist/main.js.map +1 -1
- package/dist/provision/LocalProvisionState.d.ts +28 -0
- package/dist/provision/LocalProvisionState.js +124 -0
- package/dist/provision/LocalProvisionState.js.map +1 -0
- package/dist/provision/ProvisionCodeCodec.d.ts +7 -3
- package/dist/provision/ProvisionCodeCodec.js +10 -3
- package/dist/provision/ProvisionCodeCodec.js.map +1 -1
- package/dist/provision/ProvisionPodCreator.d.ts +15 -1
- package/dist/provision/ProvisionPodCreator.js +68 -1
- package/dist/provision/ProvisionPodCreator.js.map +1 -1
- package/dist/provision/ProvisionPodCreator.jsonld +31 -0
- package/dist/provision/ServiceAccessTokenCodec.d.ts +45 -0
- package/dist/provision/ServiceAccessTokenCodec.js +86 -0
- package/dist/provision/ServiceAccessTokenCodec.js.map +1 -0
- package/dist/runtime/GatewayAdminProxyAuth.d.ts +29 -0
- package/dist/runtime/GatewayAdminProxyAuth.js +108 -0
- package/dist/runtime/GatewayAdminProxyAuth.js.map +1 -0
- package/dist/runtime/Proxy.d.ts +10 -0
- package/dist/runtime/Proxy.js +64 -6
- package/dist/runtime/Proxy.js.map +1 -1
- package/dist/runtime/XpodRuntime.js +1 -0
- package/dist/runtime/XpodRuntime.js.map +1 -1
- package/dist/runtime/bootstrap.d.ts +1 -0
- package/dist/runtime/bootstrap.js +29 -0
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/css-process.d.ts +1 -0
- package/dist/runtime/css-process.js +1 -0
- package/dist/runtime/css-process.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +3 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/lifecycle.d.ts +3 -1
- package/dist/runtime/lifecycle.js +3 -1
- package/dist/runtime/lifecycle.js.map +1 -1
- package/dist/runtime/runner/node/NodeGatewayRuntimeRunner.js +2 -0
- package/dist/runtime/runner/node/NodeGatewayRuntimeRunner.js.map +1 -1
- package/dist/runtime/runner/types.d.ts +3 -0
- package/dist/runtime/runner/types.js.map +1 -1
- package/dist/runtime/runtime-types.d.ts +2 -0
- package/dist/runtime/runtime-types.js.map +1 -1
- package/dist/runtime/safe-env.d.ts +15 -0
- package/dist/runtime/safe-env.js +109 -0
- package/dist/runtime/safe-env.js.map +1 -0
- package/dist/security/index.d.ts +1 -0
- package/dist/security/index.js +18 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/secret-cell/DeploymentRootKeyProvider.d.ts +17 -0
- package/dist/security/secret-cell/DeploymentRootKeyProvider.js +61 -0
- package/dist/security/secret-cell/DeploymentRootKeyProvider.js.map +1 -0
- package/dist/security/secret-cell/DeploymentRootKeyProvider.jsonld +124 -0
- package/dist/security/secret-cell/SecretCellVault.d.ts +55 -0
- package/dist/security/secret-cell/SecretCellVault.js +242 -0
- package/dist/security/secret-cell/SecretCellVault.js.map +1 -0
- package/dist/security/secret-cell/SecretCellVault.jsonld +207 -0
- package/dist/security/secret-cell/index.d.ts +2 -0
- package/dist/security/secret-cell/index.js +11 -0
- package/dist/security/secret-cell/index.js.map +1 -0
- package/dist/solidfs/CompositeSolidFsSyncer.d.ts +18 -0
- package/dist/solidfs/CompositeSolidFsSyncer.js +32 -0
- package/dist/solidfs/CompositeSolidFsSyncer.js.map +1 -0
- package/dist/solidfs/LocalSolidFS.js +25 -1
- package/dist/solidfs/LocalSolidFS.js.map +1 -1
- package/dist/solidfs/RdfIndexSolidFsSyncer.d.ts +41 -2
- package/dist/solidfs/RdfIndexSolidFsSyncer.js +331 -21
- package/dist/solidfs/RdfIndexSolidFsSyncer.js.map +1 -1
- package/dist/solidfs/SolidFsMetaNotes.d.ts +25 -0
- package/dist/solidfs/SolidFsMetaNotes.js +103 -0
- package/dist/solidfs/SolidFsMetaNotes.js.map +1 -0
- package/dist/solidfs/SolidFsSyncJournal.d.ts +2 -2
- package/dist/solidfs/SolidFsSyncJournal.js +9 -4
- package/dist/solidfs/SolidFsSyncJournal.js.map +1 -1
- package/dist/solidfs/SolidFsSyncJournal.jsonld +119 -0
- package/dist/solidfs/WorkspacePrompt.d.ts +13 -0
- package/dist/solidfs/WorkspacePrompt.js +42 -0
- package/dist/solidfs/WorkspacePrompt.js.map +1 -0
- package/dist/solidfs/index.d.ts +3 -0
- package/dist/solidfs/index.js +3 -0
- package/dist/solidfs/index.js.map +1 -1
- package/dist/solidfs/types.d.ts +12 -2
- package/dist/solidfs/types.js.map +1 -1
- package/dist/storage/accessors/MixDataAccessor.d.ts +36 -4
- package/dist/storage/accessors/MixDataAccessor.js +222 -23
- package/dist/storage/accessors/MixDataAccessor.js.map +1 -1
- package/dist/storage/accessors/MixDataAccessor.jsonld +89 -0
- package/dist/storage/accessors/SolidRdfDataAccessor.d.ts +6 -1
- package/dist/storage/accessors/SolidRdfDataAccessor.js +35 -0
- package/dist/storage/accessors/SolidRdfDataAccessor.js.map +1 -1
- package/dist/storage/accessors/SolidRdfDataAccessor.jsonld +20 -0
- package/dist/storage/database/PostgresPoolManager.d.ts +1 -0
- package/dist/storage/database/PostgresPoolManager.js +2 -2
- package/dist/storage/database/PostgresPoolManager.js.map +1 -1
- package/dist/storage/locking/UrlAwareRedisLocker.d.ts +2 -0
- package/dist/storage/locking/UrlAwareRedisLocker.js +65 -0
- package/dist/storage/locking/UrlAwareRedisLocker.js.map +1 -1
- package/dist/storage/locking/UrlAwareRedisLocker.jsonld +19 -0
- package/dist/storage/rdf/PostgresRdfEngine.d.ts +286 -9
- package/dist/storage/rdf/PostgresRdfEngine.js +10773 -2084
- package/dist/storage/rdf/PostgresRdfEngine.js.map +1 -1
- package/dist/storage/rdf/PostgresRdfEngine.jsonld +1693 -89
- package/dist/storage/rdf/PostgresRdfSqlExecutor.d.ts +24 -0
- package/dist/storage/rdf/PostgresRdfSqlExecutor.js +131 -0
- package/dist/storage/rdf/PostgresRdfSqlExecutor.js.map +1 -0
- package/dist/storage/rdf/PostgresRdfTextIndex.d.ts +54 -0
- package/dist/storage/rdf/PostgresRdfTextIndex.js +1255 -0
- package/dist/storage/rdf/PostgresRdfTextIndex.js.map +1 -0
- package/dist/storage/rdf/PostgresRdfTextIndex.jsonld +487 -0
- package/dist/storage/rdf/PostgresRdfVectorIndex.d.ts +46 -0
- package/dist/storage/rdf/PostgresRdfVectorIndex.js +1165 -0
- package/dist/storage/rdf/PostgresRdfVectorIndex.js.map +1 -0
- package/dist/storage/rdf/PostgresRdfVectorIndex.jsonld +423 -0
- package/dist/storage/rdf/Rdf3xIndex.d.ts +14 -1
- package/dist/storage/rdf/Rdf3xIndex.js +286 -2
- package/dist/storage/rdf/Rdf3xIndex.js.map +1 -1
- package/dist/storage/rdf/Rdf3xIndex.jsonld +36 -0
- package/dist/storage/rdf/Rdf3xSchema.d.ts +5 -1
- package/dist/storage/rdf/Rdf3xSchema.js +17 -3
- package/dist/storage/rdf/Rdf3xSchema.js.map +1 -1
- package/dist/storage/rdf/RdfAccessScope.d.ts +22 -0
- package/dist/storage/rdf/RdfAccessScope.js +345 -0
- package/dist/storage/rdf/RdfAccessScope.js.map +1 -0
- package/dist/storage/rdf/RdfAccessScope.jsonld +45 -0
- package/dist/storage/rdf/RdfFusionRankPlan.d.ts +2 -0
- package/dist/storage/rdf/RdfFusionRankPlan.js +186 -0
- package/dist/storage/rdf/RdfFusionRankPlan.js.map +1 -0
- package/dist/storage/rdf/RdfJoinShape.d.ts +8 -0
- package/dist/storage/rdf/RdfJoinShape.js +31 -0
- package/dist/storage/rdf/RdfJoinShape.js.map +1 -0
- package/dist/storage/rdf/RdfQuadIndex.d.ts +5 -2
- package/dist/storage/rdf/RdfQuadIndex.js +94 -6
- package/dist/storage/rdf/RdfQuadIndex.js.map +1 -1
- package/dist/storage/rdf/RdfQuadIndex.jsonld +12 -0
- package/dist/storage/rdf/RdfQueryExecutor.d.ts +3 -4
- package/dist/storage/rdf/RdfQueryExecutor.js +235 -8
- package/dist/storage/rdf/RdfQueryExecutor.js.map +1 -1
- package/dist/storage/rdf/RdfSearchSourceFilter.d.ts +10 -0
- package/dist/storage/rdf/RdfSearchSourceFilter.js +83 -0
- package/dist/storage/rdf/RdfSearchSourceFilter.js.map +1 -0
- package/dist/storage/rdf/RdfSparqlAdapter.d.ts +27 -1
- package/dist/storage/rdf/RdfSparqlAdapter.js +265 -3
- package/dist/storage/rdf/RdfSparqlAdapter.js.map +1 -1
- package/dist/storage/rdf/RdfSparqlAdapter.jsonld +8 -0
- package/dist/storage/rdf/RdfTermDictionary.d.ts +7 -1
- package/dist/storage/rdf/RdfTermDictionary.js +139 -0
- package/dist/storage/rdf/RdfTermDictionary.js.map +1 -1
- package/dist/storage/rdf/RdfTermDictionary.jsonld +4 -0
- package/dist/storage/rdf/RdfTextIndex.d.ts +45 -2
- package/dist/storage/rdf/RdfTextIndex.js +810 -114
- package/dist/storage/rdf/RdfTextIndex.js.map +1 -1
- package/dist/storage/rdf/RdfTextIndex.jsonld +193 -0
- package/dist/storage/rdf/RdfTextProjection.d.ts +10 -0
- package/dist/storage/rdf/RdfTextProjection.js +258 -0
- package/dist/storage/rdf/RdfTextProjection.js.map +1 -0
- package/dist/storage/rdf/RdfVectorIndex.d.ts +30 -2
- package/dist/storage/rdf/RdfVectorIndex.js +461 -38
- package/dist/storage/rdf/RdfVectorIndex.js.map +1 -1
- package/dist/storage/rdf/RdfVectorIndex.jsonld +163 -0
- package/dist/storage/rdf/SolidRdfEngine.d.ts +12 -9
- package/dist/storage/rdf/SolidRdfEngine.js +48 -22
- package/dist/storage/rdf/SolidRdfEngine.js.map +1 -1
- package/dist/storage/rdf/SolidRdfEngine.jsonld +33 -43
- package/dist/storage/rdf/SolidRdfSparqlEngine.d.ts +19 -8
- package/dist/storage/rdf/SolidRdfSparqlEngine.js +674 -44
- package/dist/storage/rdf/SolidRdfSparqlEngine.js.map +1 -1
- package/dist/storage/rdf/SolidRdfSparqlEngine.jsonld +51 -0
- package/dist/storage/rdf/index.d.ts +9 -5
- package/dist/storage/rdf/index.js +42 -1
- package/dist/storage/rdf/index.js.map +1 -1
- package/dist/storage/rdf/models-benchmark.d.ts +264 -2
- package/dist/storage/rdf/models-benchmark.js +4207 -155
- package/dist/storage/rdf/models-benchmark.js.map +1 -1
- package/dist/storage/rdf/types.d.ts +833 -4
- package/dist/storage/rdf/types.js.map +1 -1
- package/dist/storage/rdf/types.jsonld +348 -0
- package/dist/storage/sparql/CompatibilitySparqlEngine.d.ts +14 -13
- package/dist/storage/sparql/CompatibilitySparqlEngine.js +24 -24
- package/dist/storage/sparql/CompatibilitySparqlEngine.js.map +1 -1
- package/dist/storage/sparql/CompatibilitySparqlEngineImpl.d.ts +14 -13
- package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js +30 -18
- package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js.map +1 -1
- package/dist/storage/sparql/SubgraphQueryEngine.d.ts +21 -12
- package/dist/storage/sparql/SubgraphQueryEngine.js +12 -12
- package/dist/storage/sparql/SubgraphQueryEngine.js.map +1 -1
- package/dist/terminal/sandbox/MacOSSandbox.js +2 -1
- package/dist/terminal/sandbox/MacOSSandbox.js.map +1 -1
- package/dist/terminal/sandbox/index.js +2 -1
- package/dist/terminal/sandbox/index.js.map +1 -1
- package/dist/test-utils/no-auth-xpod.js +3 -0
- package/dist/test-utils/no-auth-xpod.js.map +1 -1
- package/dist/tunnel/LocalTunnelProvider.d.ts +3 -0
- package/dist/tunnel/LocalTunnelProvider.js +17 -1
- package/dist/tunnel/LocalTunnelProvider.js.map +1 -1
- package/dist/tunnel/LocalTunnelProvider.jsonld +23 -0
- package/dist/tunnel/SakuraFrpTunnelProvider.d.ts +3 -0
- package/dist/tunnel/SakuraFrpTunnelProvider.js +18 -2
- package/dist/tunnel/SakuraFrpTunnelProvider.js.map +1 -1
- package/dist/tunnel/TunnelProfiles.d.ts +22 -0
- package/dist/tunnel/TunnelProfiles.js +208 -0
- package/dist/tunnel/TunnelProfiles.js.map +1 -0
- package/dist/tunnel/index.d.ts +2 -0
- package/dist/tunnel/index.js +4 -1
- package/dist/tunnel/index.js.map +1 -1
- package/dist/util/identifiers/ClusterIdentifierStrategy.d.ts +3 -0
- package/dist/util/identifiers/ClusterIdentifierStrategy.js +18 -2
- package/dist/util/identifiers/ClusterIdentifierStrategy.js.map +1 -1
- package/dist/util/identifiers/ClusterIdentifierStrategy.jsonld +5 -1
- package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.d.ts +55 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.js +167 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionHeader.d.ts +3 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionHeader.js +8 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionList.d.ts +4 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionList.js +36 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.d.ts +4 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.js +37 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMainHeader.d.ts +3 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMainHeader.js +7 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.d.ts +14 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.js +333 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiProviderCard.d.ts +22 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiProviderCard.js +43 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiQuotaCard.d.ts +8 -0
- package/node_modules/@undefineds.co/ai-connection/dist/AiQuotaCard.js +6 -0
- package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.d.ts +120 -0
- package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.js +414 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.d.ts +32 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.js +212 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.d.ts +14 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.js +90 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.cjs +668 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.d.ts +6 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.js +6 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.d.ts +21 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.js +82 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.d.ts +13 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.js +83 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/transaction.d.ts +17 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/transaction.js +153 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.d.ts +40 -0
- package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.js +1 -0
- package/node_modules/@undefineds.co/ai-connection/dist/controller.d.ts +42 -0
- package/node_modules/@undefineds.co/ai-connection/dist/controller.js +289 -0
- package/node_modules/@undefineds.co/ai-connection/dist/index.d.ts +16 -0
- package/node_modules/@undefineds.co/ai-connection/dist/index.js +41 -0
- package/node_modules/@undefineds.co/ai-connection/dist/manifest.d.ts +1 -0
- package/node_modules/@undefineds.co/ai-connection/dist/manifest.js +18 -0
- package/node_modules/@undefineds.co/ai-connection/dist/service-access.d.ts +3 -0
- package/node_modules/@undefineds.co/ai-connection/dist/service-access.js +133 -0
- package/node_modules/@undefineds.co/ai-connection/package.json +50 -0
- package/node_modules/@undefineds.co/extension-sdk/README.md +299 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/index.d.ts +5 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/index.js +5 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/layout.d.ts +16 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/layout.js +36 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/manifest.d.ts +27 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/manifest.js +79 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/app-layout.d.ts +7 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/app-layout.js +8 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/auth-boundary.d.ts +27 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/auth-boundary.js +49 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/layout-context.d.ts +11 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/layout-context.js +9 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/workspace-layout.d.ts +38 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react/workspace-layout.js +132 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react.d.ts +12 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/react.js +19 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/testing.d.ts +7 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/testing.js +27 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/web.d.ts +225 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/web.js +142 -0
- package/node_modules/@undefineds.co/extension-sdk/package.json +49 -0
- package/node_modules/@undefineds.co/extensions/README.md +101 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.d.ts +25 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.js +45 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.d.ts +31 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.js +50 -0
- package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/index.d.ts +7 -0
- package/node_modules/@undefineds.co/extensions/dist/index.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/index.js +7 -0
- package/node_modules/@undefineds.co/extensions/dist/index.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/paddleocr.d.ts +16 -0
- package/node_modules/@undefineds.co/extensions/dist/paddleocr.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/paddleocr.js +267 -0
- package/node_modules/@undefineds.co/extensions/dist/paddleocr.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/reader.d.ts +18 -0
- package/node_modules/@undefineds.co/extensions/dist/reader.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/reader.js +39 -0
- package/node_modules/@undefineds.co/extensions/dist/reader.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/registry.d.ts +16 -0
- package/node_modules/@undefineds.co/extensions/dist/registry.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/registry.js +97 -0
- package/node_modules/@undefineds.co/extensions/dist/registry.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/types.d.ts +141 -0
- package/node_modules/@undefineds.co/extensions/dist/types.d.ts.map +1 -0
- package/node_modules/@undefineds.co/extensions/dist/types.js +2 -0
- package/node_modules/@undefineds.co/extensions/dist/types.js.map +1 -0
- package/node_modules/@undefineds.co/extensions/package.json +38 -0
- package/node_modules/@undefineds.co/shared-ui/dist/badge.d.ts +8 -0
- package/node_modules/@undefineds.co/shared-ui/dist/badge.js +17 -0
- package/node_modules/@undefineds.co/shared-ui/dist/button.d.ts +10 -0
- package/node_modules/@undefineds.co/shared-ui/dist/button.js +30 -0
- package/node_modules/@undefineds.co/shared-ui/dist/card.d.ts +7 -0
- package/node_modules/@undefineds.co/shared-ui/dist/card.js +15 -0
- package/node_modules/@undefineds.co/shared-ui/dist/index.d.ts +6 -0
- package/node_modules/@undefineds.co/shared-ui/dist/index.js +6 -0
- package/node_modules/@undefineds.co/shared-ui/dist/input.d.ts +4 -0
- package/node_modules/@undefineds.co/shared-ui/dist/input.js +5 -0
- package/node_modules/@undefineds.co/shared-ui/dist/theme.css +121 -0
- package/node_modules/@undefineds.co/shared-ui/dist/utils.d.ts +2 -0
- package/node_modules/@undefineds.co/shared-ui/dist/utils.js +5 -0
- package/node_modules/@undefineds.co/shared-ui/dist/workspace.d.ts +23 -0
- package/node_modules/@undefineds.co/shared-ui/dist/workspace.js +38 -0
- package/node_modules/@undefineds.co/shared-ui/package.json +39 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/index.d.ts +3 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/index.js +3 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/pod-runtime.d.ts +45 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/pod-runtime.js +147 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/react.d.ts +15 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/react.js +15 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/session.d.ts +42 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/session.js +127 -0
- package/node_modules/@undefineds.co/solid-sdk/package.json +45 -0
- package/package.json +31 -13
- package/static/app/assets/index-BoYHJ6si.js +230 -0
- package/static/app/assets/inrupt-smoke.js +2 -2
- package/static/app/assets/main.css +1 -1
- package/static/app/assets/main.js +9 -9
- package/static/dashboard/assets/NetworkPage-Brt79fuQ.js +2 -0
- package/static/dashboard/assets/PaneListHeader-57nvMwH6.js +1 -0
- package/static/dashboard/assets/PodPage-CM6do1vB.js +2 -0
- package/static/dashboard/assets/ServicesPage-BUNxGJRz.js +1 -0
- package/static/dashboard/assets/card-B9Zjf_2p.js +1 -0
- package/static/dashboard/assets/dashboard-8C6o666W.js +305 -0
- package/static/dashboard/assets/dashboard-CSdewNeA.css +1 -0
- package/static/dashboard/assets/database-DPh9wDY9.js +1 -0
- package/static/dashboard/assets/external-link-VbMQvVMz.js +1 -0
- package/static/dashboard/assets/index-RfiFckzb.js +51 -0
- package/static/dashboard/assets/refresh-cw-BxVxNxNr.js +1 -0
- package/static/dashboard/assets/services-status-context-DKmJ7ISr.js +1 -0
- package/static/dashboard/dashboard.html +2 -2
- package/static/settings/assets/ModelsPage-D_IH7AH3.js +1 -0
- package/static/settings/assets/PaneListHeader-Bgaze006.js +1 -0
- package/static/settings/assets/PodPage-Cy1VNObw.js +2 -0
- package/static/settings/assets/ServicesPage-BsFaxVWC.js +1 -0
- package/static/settings/assets/SettingsPage-UafNWE_p.js +48 -0
- package/static/settings/assets/card-B_bXSIn-.js +1 -0
- package/static/settings/assets/services-status-context-DiX-AbrP.js +1 -0
- package/static/settings/assets/settings-B30oMfZq.js +305 -0
- package/static/settings/assets/settings-CSdewNeA.css +1 -0
- package/static/settings/assets/workspace-layout-Dv1Yn9Ci.js +1 -0
- package/static/settings/auth.html +21 -0
- package/static/settings/reachability.html +221 -0
- package/static/settings/reachability.svg +7 -0
- package/static/settings/reachability.webmanifest +18 -0
- package/static/settings/settings.html +13 -0
- package/static/settings/signal-pod.html +293 -0
- package/static/settings/vite.svg +1 -0
- package/dist/api/service/ai-gateway-transport.d.ts +0 -25
- package/dist/api/service/ai-gateway-transport.js +0 -136
- package/dist/api/service/ai-gateway-transport.js.map +0 -1
- package/dist/api/service/chat-protocol-adapters.d.ts +0 -5
- package/dist/api/service/chat-protocol-adapters.js +0 -146
- package/dist/api/service/chat-protocol-adapters.js.map +0 -1
- package/dist/api/service/chat-routing.d.ts +0 -8
- package/dist/api/service/chat-routing.js +0 -16
- package/dist/api/service/chat-routing.js.map +0 -1
- package/dist/api/service/platform-ai-config.d.ts +0 -10
- package/dist/api/service/platform-ai-config.js +0 -76
- package/dist/api/service/platform-ai-config.js.map +0 -1
- package/dist/document/DocumentParser.js.map +0 -1
- package/dist/document/JinaDocumentParser.js.map +0 -1
- package/static/app/assets/index-C1yksyT4.js +0 -171
- package/static/dashboard/assets/dashboard-BssaVKTn.css +0 -1
- package/static/dashboard/assets/dashboard-Ckuadl3C.js +0 -54
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RdfBenchmarkReportCatalog = void 0;
|
|
27
|
+
const path = __importStar(require("node:path"));
|
|
28
|
+
const promises_1 = require("node:fs/promises");
|
|
29
|
+
const package_root_1 = require("../../runtime/package-root");
|
|
30
|
+
const DEFAULT_MAX_REPORTS = 20;
|
|
31
|
+
const DEFAULT_MAX_DEPTH = 4;
|
|
32
|
+
const DEFAULT_CACHE_TTL_MS = 30_000;
|
|
33
|
+
const MAX_REPORT_BYTES = 25 * 1024 * 1024;
|
|
34
|
+
class RdfBenchmarkReportCatalog {
|
|
35
|
+
constructor(options = {}) {
|
|
36
|
+
this.packageRoot = options.packageRoot ?? package_root_1.PACKAGE_ROOT;
|
|
37
|
+
this.roots = options.roots ?? [path.join(this.packageRoot, '.test-data')];
|
|
38
|
+
this.maxReports = options.maxReports ?? DEFAULT_MAX_REPORTS;
|
|
39
|
+
this.maxDepth = options.maxDepth ?? DEFAULT_MAX_DEPTH;
|
|
40
|
+
this.cacheTtlMs = options.cacheTtlMs ?? DEFAULT_CACHE_TTL_MS;
|
|
41
|
+
}
|
|
42
|
+
async snapshot() {
|
|
43
|
+
const now = Date.now();
|
|
44
|
+
if (this.cachedSnapshot && now - this.cachedSnapshot.capturedAt < this.cacheTtlMs) {
|
|
45
|
+
return this.cachedSnapshot.snapshot;
|
|
46
|
+
}
|
|
47
|
+
const errors = [];
|
|
48
|
+
const files = [];
|
|
49
|
+
let skippedFiles = 0;
|
|
50
|
+
for (const root of this.roots) {
|
|
51
|
+
const normalizedRoot = path.resolve(root);
|
|
52
|
+
try {
|
|
53
|
+
const found = await this.findReportFiles(normalizedRoot, normalizedRoot, 0);
|
|
54
|
+
files.push(...found);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
errors.push({ path: this.displayPath(normalizedRoot), message: errorMessage(error) });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const reports = [];
|
|
61
|
+
const candidates = await this.sortNewestFirst(files, errors);
|
|
62
|
+
for (const file of candidates) {
|
|
63
|
+
if (reports.length >= this.maxReports) {
|
|
64
|
+
skippedFiles += 1;
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const parsed = await this.readReport(file);
|
|
68
|
+
if (parsed.ok) {
|
|
69
|
+
reports.push(parsed.report);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
skippedFiles += 1;
|
|
73
|
+
errors.push({ path: this.displayPath(file), message: parsed.error });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const snapshot = {
|
|
77
|
+
roots: this.roots.map((root) => this.displayPath(path.resolve(root))),
|
|
78
|
+
reportCount: reports.length,
|
|
79
|
+
skippedFiles,
|
|
80
|
+
errors,
|
|
81
|
+
reports,
|
|
82
|
+
};
|
|
83
|
+
this.cachedSnapshot = { capturedAt: now, snapshot };
|
|
84
|
+
return snapshot;
|
|
85
|
+
}
|
|
86
|
+
async findReportFiles(root, current, depth) {
|
|
87
|
+
const entries = await (0, promises_1.readdir)(current, { withFileTypes: true });
|
|
88
|
+
const files = [];
|
|
89
|
+
for (const entry of entries) {
|
|
90
|
+
const entryPath = path.join(current, entry.name);
|
|
91
|
+
if (entry.isFile() && isBenchmarkReportFile(entry.name)) {
|
|
92
|
+
files.push(entryPath);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
if (!entry.isDirectory() || depth >= this.maxDepth) {
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if (depth === 0 && isTestDataRoot(root) && !isRdfBenchmarkDirectory(entry.name)) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
files.push(...await this.findReportFiles(root, entryPath, depth + 1));
|
|
102
|
+
}
|
|
103
|
+
return files;
|
|
104
|
+
}
|
|
105
|
+
async sortNewestFirst(files, errors) {
|
|
106
|
+
const entries = [];
|
|
107
|
+
for (const file of files) {
|
|
108
|
+
try {
|
|
109
|
+
entries.push({ file, mtimeMs: (await (0, promises_1.stat)(file)).mtimeMs });
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
errors.push({ path: this.displayPath(file), message: errorMessage(error) });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return entries
|
|
116
|
+
.sort((left, right) => right.mtimeMs - left.mtimeMs)
|
|
117
|
+
.map((entry) => entry.file);
|
|
118
|
+
}
|
|
119
|
+
async readReport(file) {
|
|
120
|
+
try {
|
|
121
|
+
const info = await (0, promises_1.stat)(file);
|
|
122
|
+
if (info.size > MAX_REPORT_BYTES) {
|
|
123
|
+
return { ok: false, error: `Report exceeds ${MAX_REPORT_BYTES} bytes` };
|
|
124
|
+
}
|
|
125
|
+
const raw = await (0, promises_1.readFile)(file, 'utf8');
|
|
126
|
+
const parsed = JSON.parse(raw);
|
|
127
|
+
const report = summarizeBenchmarkReport(parsed, this.displayPath(file));
|
|
128
|
+
if (!report) {
|
|
129
|
+
return { ok: false, error: 'Unsupported RDF benchmark report shape' };
|
|
130
|
+
}
|
|
131
|
+
return { ok: true, report };
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
return { ok: false, error: errorMessage(error) };
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
displayPath(file) {
|
|
138
|
+
const relative = path.relative(this.packageRoot, file);
|
|
139
|
+
return relative && !relative.startsWith('..') && !path.isAbsolute(relative) ? relative : file;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.RdfBenchmarkReportCatalog = RdfBenchmarkReportCatalog;
|
|
143
|
+
function summarizeBenchmarkReport(input, reportPath) {
|
|
144
|
+
if (!isRecord(input)) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
const seed = recordValue(input.seed);
|
|
148
|
+
const report = recordValue(input.report) ?? input;
|
|
149
|
+
if (!isRecord(report)) {
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
const generatedAt = stringValue(report.generatedAt) ?? timestampFromReportPath(reportPath);
|
|
153
|
+
const engine = stringValue(report.engine);
|
|
154
|
+
if (!engine || !generatedAt) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
const storage = recordValue(report.storage);
|
|
158
|
+
const pgAcceleration = recordValue(storage?.pgAcceleration);
|
|
159
|
+
const refresh = recordValue(report.refreshBenchmark) ?? recordValue(report.refresh);
|
|
160
|
+
const rdf3xRefresh = recordValue(recordValue(report.refresh)?.rdf3x);
|
|
161
|
+
const plannerStats = recordValue(rdf3xRefresh?.plannerStats);
|
|
162
|
+
const coldStart = recordValue(report.coldStartBenchmark);
|
|
163
|
+
const startup = recordValue(coldStart?.startup);
|
|
164
|
+
const firstQuery = recordValue(coldStart?.firstQueryAfterRefresh);
|
|
165
|
+
const warmSteadyState = recordValue(coldStart?.warmSteadyState);
|
|
166
|
+
const concurrencyGate = recordValue(report.concurrencyGate);
|
|
167
|
+
const servingRegressionGate = recordValue(report.servingRegressionGate);
|
|
168
|
+
const fusionBenchmarkGate = recordValue(report.fusionBenchmarkGate);
|
|
169
|
+
const failedFusionBaselineComparisonCases = failedBaselineComparisonCases(fusionBenchmarkGate);
|
|
170
|
+
const benchmarkGateConfigSources = recordArrayValue(seed?.benchmarkGateConfigSources);
|
|
171
|
+
const driver = stringValue(seed?.driver);
|
|
172
|
+
const scale = stringValue(report.scale) ?? stringValue(seed?.scale);
|
|
173
|
+
const caseProfile = stringValue(report.caseProfile) ?? stringValue(seed?.caseProfile);
|
|
174
|
+
const targetQuadCount = numberValue(seed?.targetQuadCount);
|
|
175
|
+
const bulkLoad = recordValue(seed?.bulkLoad);
|
|
176
|
+
const copyFromRows = recordValue(bulkLoad?.copyFromRows);
|
|
177
|
+
return {
|
|
178
|
+
id: path.basename(reportPath, '.json'),
|
|
179
|
+
path: reportPath,
|
|
180
|
+
generatedAt,
|
|
181
|
+
engine,
|
|
182
|
+
driver,
|
|
183
|
+
scale,
|
|
184
|
+
caseProfile,
|
|
185
|
+
rdfAccelerationProfile: stringValue(seed?.rdfAccelerationProfile) ?? stringValue(pgAcceleration?.profile),
|
|
186
|
+
textSearchBackend: stringValue(seed?.textSearchBackend),
|
|
187
|
+
seedQuadCount: numberValue(seed?.seedQuadCount),
|
|
188
|
+
targetQuadCount,
|
|
189
|
+
fullScale: booleanValue(seed?.fullScale),
|
|
190
|
+
iterations: numberValue(report.iterations) ?? numberValue(seed?.iterations),
|
|
191
|
+
warmupIterations: numberValue(report.warmupIterations) ?? numberValue(seed?.warmupIterations),
|
|
192
|
+
concurrency: numberValue(report.concurrency) ?? numberValue(seed?.concurrency),
|
|
193
|
+
planMatched: booleanValue(report.planMatched),
|
|
194
|
+
failedPlanCases: stringArrayValue(report.failedPlanCases),
|
|
195
|
+
concurrencyMatched: booleanValue(concurrencyGate?.matched),
|
|
196
|
+
failedConcurrencyCases: stringArrayValue(concurrencyGate?.failedCases),
|
|
197
|
+
servingRegressionMatched: booleanValue(servingRegressionGate?.matched),
|
|
198
|
+
servingRegressionThresholdsConfigured: hasThresholds(servingRegressionGate),
|
|
199
|
+
failedServingRegressionCases: stringArrayValue(servingRegressionGate?.failedCases),
|
|
200
|
+
fusionBenchmarkMatched: booleanValue(fusionBenchmarkGate?.matched),
|
|
201
|
+
fusionBenchmarkThresholdsConfigured: hasThresholds(fusionBenchmarkGate),
|
|
202
|
+
failedFusionBenchmarkCases: stringArrayValue(fusionBenchmarkGate?.failedCases),
|
|
203
|
+
fusionBaselineComparisonMatched: baselineComparisonMatched(fusionBenchmarkGate, failedFusionBaselineComparisonCases),
|
|
204
|
+
failedFusionBaselineComparisonCases,
|
|
205
|
+
benchmarkGateConfigSourcesConfigured: benchmarkGateConfigSources.length > 0,
|
|
206
|
+
fusionBaselineReportSourceConfigured: hasFusionBaselineReportSource(benchmarkGateConfigSources),
|
|
207
|
+
benchmarkGateConfigSourceShapeMismatches: benchmarkGateConfigSourceShapeMismatches(benchmarkGateConfigSources, {
|
|
208
|
+
driver,
|
|
209
|
+
scale,
|
|
210
|
+
targetQuads: targetQuadCount,
|
|
211
|
+
caseProfile,
|
|
212
|
+
textSearchBackend: stringValue(seed?.textSearchBackend),
|
|
213
|
+
}),
|
|
214
|
+
fusionBaselineReportSourceBaselineProfileConfigured: hasFusionBaselineReportSourceBaselineProfile(benchmarkGateConfigSources),
|
|
215
|
+
fusionHardFiltersBeforeRankCaseCount: countFusionCases(fusionBenchmarkGate, 'hardFiltersBeforeRank'),
|
|
216
|
+
fusionBatchedBroadCandidateJoinCaseCount: countFusionCases(fusionBenchmarkGate, 'batchedBroadCandidateJoin'),
|
|
217
|
+
nativeTextFtsCaseCount: countQueryCasesWithPlan(report, 'PostgresNativeFts('),
|
|
218
|
+
nativeVectorCaseCount: countQueryCasesWithPlan(report, 'PostgresNativeVector('),
|
|
219
|
+
ingestDurationMs: numberValue(seed?.ingestDurationMs),
|
|
220
|
+
copyRows: numberValue(copyFromRows?.rows),
|
|
221
|
+
copyFallbacks: numberValue(copyFromRows?.fallbacks),
|
|
222
|
+
refreshDurationMs: numberValue(refresh?.durationMs),
|
|
223
|
+
plannerStatsDurationMs: numberValue(refresh?.plannerStatsDurationMs),
|
|
224
|
+
plannerStatsAnalyzedTables: stringArrayValue(plannerStats?.analyzedTables),
|
|
225
|
+
coldStartDurationMs: numberValue(startup?.durationMs),
|
|
226
|
+
firstQueryDurationMs: numberValue(firstQuery?.durationMs),
|
|
227
|
+
warmP50DurationMs: numberValue(warmSteadyState?.p50DurationMs),
|
|
228
|
+
warmP95DurationMs: numberValue(warmSteadyState?.p95DurationMs),
|
|
229
|
+
storageFactsBytes: numberValue(storage?.factsBytes),
|
|
230
|
+
storageDerivedBytes: numberValue(storage?.derivedBytes),
|
|
231
|
+
storageTotalBytes: numberValue(storage?.totalBytes),
|
|
232
|
+
storageTotalToFactsRatio: numberValue(storage?.totalToFactsRatio),
|
|
233
|
+
pgAccelerationEnabled: booleanValue(pgAcceleration?.enabled),
|
|
234
|
+
pgAccelerationFallbackReason: stringValue(pgAcceleration?.fallbackReason),
|
|
235
|
+
pgActiveOperators: stringArrayValue(pgAcceleration?.activeOperators),
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function isBenchmarkReportFile(name) {
|
|
239
|
+
return /^models-(postgres|rdf3x-shadow|baseline|shadow)-.+\.json$/.test(name);
|
|
240
|
+
}
|
|
241
|
+
function isTestDataRoot(root) {
|
|
242
|
+
return path.basename(root) === '.test-data';
|
|
243
|
+
}
|
|
244
|
+
function isRdfBenchmarkDirectory(name) {
|
|
245
|
+
return name === 'rdf-engine' || name.startsWith('rdf-');
|
|
246
|
+
}
|
|
247
|
+
function timestampFromReportPath(reportPath) {
|
|
248
|
+
const match = reportPath.match(/models-[^-]+-(\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}-\d{3}Z)/);
|
|
249
|
+
if (!match) {
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
return match[1].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z$/, 'T$1:$2:$3.$4Z');
|
|
253
|
+
}
|
|
254
|
+
function isRecord(value) {
|
|
255
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
256
|
+
}
|
|
257
|
+
function recordValue(value) {
|
|
258
|
+
return isRecord(value) ? value : undefined;
|
|
259
|
+
}
|
|
260
|
+
function stringValue(value) {
|
|
261
|
+
return typeof value === 'string' ? value : undefined;
|
|
262
|
+
}
|
|
263
|
+
function numberValue(value) {
|
|
264
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
|
|
265
|
+
}
|
|
266
|
+
function booleanValue(value) {
|
|
267
|
+
return typeof value === 'boolean' ? value : undefined;
|
|
268
|
+
}
|
|
269
|
+
function stringArrayValue(value) {
|
|
270
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === 'string') : [];
|
|
271
|
+
}
|
|
272
|
+
function recordArrayValue(value) {
|
|
273
|
+
return Array.isArray(value) ? value.filter(isRecord) : [];
|
|
274
|
+
}
|
|
275
|
+
function failedBaselineComparisonCases(fusionBenchmarkGate) {
|
|
276
|
+
if (!fusionBenchmarkGate) {
|
|
277
|
+
return [];
|
|
278
|
+
}
|
|
279
|
+
const failedCases = [];
|
|
280
|
+
for (const item of recordArrayValue(fusionBenchmarkGate.cases)) {
|
|
281
|
+
const baselineComparison = recordValue(item.baselineComparison);
|
|
282
|
+
if (!baselineComparison) {
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
if (booleanValue(baselineComparison.matched) !== true) {
|
|
286
|
+
failedCases.push(stringValue(item.name) ?? 'unnamed fusion case');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return failedCases;
|
|
290
|
+
}
|
|
291
|
+
function hasFusionBaselineReportSource(sources) {
|
|
292
|
+
return sources.some((source) => source.kind === 'report-config' || source.kind === 'baseline-report');
|
|
293
|
+
}
|
|
294
|
+
function hasFusionBaselineReportSourceBaselineProfile(sources) {
|
|
295
|
+
return sources.some((source) => {
|
|
296
|
+
if (source.kind !== 'report-config' && source.kind !== 'baseline-report') {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
return stringValue(recordValue(source.seed)?.rdfAccelerationProfile) === 'baseline';
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function countFusionCases(gate, field) {
|
|
303
|
+
return recordArrayValue(gate?.cases).filter((testCase) => booleanValue(testCase[field]) === true).length;
|
|
304
|
+
}
|
|
305
|
+
function countQueryCasesWithPlan(report, marker) {
|
|
306
|
+
return recordArrayValue(report.queryCases).filter((testCase) => (stringArrayValue(testCase.physicalPlan).some((entry) => entry.includes(marker)))).length;
|
|
307
|
+
}
|
|
308
|
+
function benchmarkGateConfigSourceShapeMismatches(sources, expected) {
|
|
309
|
+
const mismatches = [];
|
|
310
|
+
sources.forEach((source, index) => {
|
|
311
|
+
const seed = recordValue(source.seed);
|
|
312
|
+
if (!seed) {
|
|
313
|
+
if (source.kind === 'report-config' || source.kind === 'baseline-report') {
|
|
314
|
+
mismatches.push(`source[${index}].seed is missing`);
|
|
315
|
+
}
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const prefix = `source[${index}]`;
|
|
319
|
+
appendShapeMismatch(mismatches, `${prefix}.driver`, expected.driver, stringValue(seed.driver));
|
|
320
|
+
appendShapeMismatch(mismatches, `${prefix}.scale`, expected.scale, stringValue(seed.scale));
|
|
321
|
+
appendShapeMismatch(mismatches, `${prefix}.targetQuads`, expected.targetQuads, numberValue(seed.targetQuads));
|
|
322
|
+
appendShapeMismatch(mismatches, `${prefix}.caseProfile`, expected.caseProfile, stringValue(seed.caseProfile));
|
|
323
|
+
appendShapeMismatch(mismatches, `${prefix}.textSearchBackend`, expected.textSearchBackend, stringValue(seed.textSearchBackend));
|
|
324
|
+
});
|
|
325
|
+
return mismatches;
|
|
326
|
+
}
|
|
327
|
+
function appendShapeMismatch(mismatches, label, expected, actual) {
|
|
328
|
+
if (expected !== undefined && actual !== undefined && expected !== actual) {
|
|
329
|
+
mismatches.push(`${label} expected ${expected}, got ${actual}`);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function hasThresholds(gate) {
|
|
333
|
+
const thresholds = recordValue(gate?.thresholds);
|
|
334
|
+
return numberValue(thresholds?.maxScannedRows) !== undefined
|
|
335
|
+
|| numberValue(thresholds?.maxP95DurationMs) !== undefined
|
|
336
|
+
|| Object.keys(recordValue(thresholds?.cases) ?? {}).length > 0;
|
|
337
|
+
}
|
|
338
|
+
function baselineComparisonMatched(fusionBenchmarkGate, failedCases) {
|
|
339
|
+
if (!fusionBenchmarkGate) {
|
|
340
|
+
return undefined;
|
|
341
|
+
}
|
|
342
|
+
const hasBaselineComparison = recordArrayValue(fusionBenchmarkGate.cases)
|
|
343
|
+
.some((item) => Boolean(recordValue(item.baselineComparison)));
|
|
344
|
+
return hasBaselineComparison ? failedCases.length === 0 : undefined;
|
|
345
|
+
}
|
|
346
|
+
function errorMessage(error) {
|
|
347
|
+
return error instanceof Error ? error.message : String(error);
|
|
348
|
+
}
|
|
349
|
+
//# sourceMappingURL=RdfBenchmarkReportCatalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RdfBenchmarkReportCatalog.js","sourceRoot":"","sources":["../../../src/api/service/RdfBenchmarkReportCatalog.ts"],"names":[],"mappings":";;;;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,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC;SACtE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACjE,OAAO,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACtE,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC","sourcesContent":["import * as path from 'node:path';\nimport { readFile, readdir, stat } from 'node:fs/promises';\nimport { PACKAGE_ROOT } from '../../runtime/package-root';\n\nconst DEFAULT_MAX_REPORTS = 20;\nconst DEFAULT_MAX_DEPTH = 4;\nconst DEFAULT_CACHE_TTL_MS = 30_000;\nconst MAX_REPORT_BYTES = 25 * 1024 * 1024;\n\nexport interface RdfBenchmarkReportCatalogOptions {\n roots?: string[];\n packageRoot?: string;\n maxReports?: number;\n maxDepth?: number;\n cacheTtlMs?: number;\n}\n\nexport interface RdfBenchmarkReportCatalogSnapshot {\n roots: string[];\n reportCount: number;\n skippedFiles: number;\n errors: RdfBenchmarkReportCatalogError[];\n reports: RdfBenchmarkReportSummary[];\n}\n\nexport interface RdfBenchmarkReportCatalogError {\n path: string;\n message: string;\n}\n\nexport interface RdfBenchmarkReportSummary {\n id: string;\n path: string;\n generatedAt: string;\n engine: string;\n driver?: string;\n scale?: string;\n caseProfile?: string;\n rdfAccelerationProfile?: string;\n textSearchBackend?: string;\n seedQuadCount?: number;\n targetQuadCount?: number;\n fullScale?: boolean;\n iterations?: number;\n warmupIterations?: number;\n concurrency?: number;\n planMatched?: boolean;\n failedPlanCases: string[];\n concurrencyMatched?: boolean;\n failedConcurrencyCases: string[];\n servingRegressionMatched?: boolean;\n servingRegressionThresholdsConfigured?: boolean;\n failedServingRegressionCases: string[];\n fusionBenchmarkMatched?: boolean;\n fusionBenchmarkThresholdsConfigured?: boolean;\n failedFusionBenchmarkCases: string[];\n fusionBaselineComparisonMatched?: boolean;\n failedFusionBaselineComparisonCases: string[];\n benchmarkGateConfigSourcesConfigured?: boolean;\n fusionBaselineReportSourceConfigured?: boolean;\n benchmarkGateConfigSourceShapeMismatches: string[];\n fusionBaselineReportSourceBaselineProfileConfigured?: boolean;\n fusionHardFiltersBeforeRankCaseCount?: number;\n fusionBatchedBroadCandidateJoinCaseCount?: number;\n nativeTextFtsCaseCount?: number;\n nativeVectorCaseCount?: number;\n ingestDurationMs?: number;\n copyRows?: number;\n copyFallbacks?: number;\n refreshDurationMs?: number;\n plannerStatsDurationMs?: number;\n plannerStatsAnalyzedTables: string[];\n coldStartDurationMs?: number;\n firstQueryDurationMs?: number;\n warmP50DurationMs?: number;\n warmP95DurationMs?: number;\n storageFactsBytes?: number;\n storageDerivedBytes?: number;\n storageTotalBytes?: number;\n storageTotalToFactsRatio?: number;\n pgAccelerationEnabled?: boolean;\n pgAccelerationFallbackReason?: string;\n pgActiveOperators: string[];\n}\n\nexport class RdfBenchmarkReportCatalog {\n private readonly roots: string[];\n private readonly packageRoot: string;\n private readonly maxReports: number;\n private readonly maxDepth: number;\n private readonly cacheTtlMs: number;\n private cachedSnapshot?: {\n capturedAt: number;\n snapshot: RdfBenchmarkReportCatalogSnapshot;\n };\n\n public constructor(options: RdfBenchmarkReportCatalogOptions = {}) {\n this.packageRoot = options.packageRoot ?? PACKAGE_ROOT;\n this.roots = options.roots ?? [path.join(this.packageRoot, '.test-data')];\n this.maxReports = options.maxReports ?? DEFAULT_MAX_REPORTS;\n this.maxDepth = options.maxDepth ?? DEFAULT_MAX_DEPTH;\n this.cacheTtlMs = options.cacheTtlMs ?? DEFAULT_CACHE_TTL_MS;\n }\n\n public async snapshot(): Promise<RdfBenchmarkReportCatalogSnapshot> {\n const now = Date.now();\n if (this.cachedSnapshot && now - this.cachedSnapshot.capturedAt < this.cacheTtlMs) {\n return this.cachedSnapshot.snapshot;\n }\n\n const errors: RdfBenchmarkReportCatalogError[] = [];\n const files: string[] = [];\n let skippedFiles = 0;\n\n for (const root of this.roots) {\n const normalizedRoot = path.resolve(root);\n try {\n const found = await this.findReportFiles(normalizedRoot, normalizedRoot, 0);\n files.push(...found);\n } catch (error) {\n errors.push({ path: this.displayPath(normalizedRoot), message: errorMessage(error) });\n }\n }\n\n const reports: RdfBenchmarkReportSummary[] = [];\n const candidates = await this.sortNewestFirst(files, errors);\n for (const file of candidates) {\n if (reports.length >= this.maxReports) {\n skippedFiles += 1;\n continue;\n }\n const parsed = await this.readReport(file);\n if (parsed.ok) {\n reports.push(parsed.report);\n } else {\n skippedFiles += 1;\n errors.push({ path: this.displayPath(file), message: parsed.error });\n }\n }\n\n const snapshot = {\n roots: this.roots.map((root) => this.displayPath(path.resolve(root))),\n reportCount: reports.length,\n skippedFiles,\n errors,\n reports,\n };\n this.cachedSnapshot = { capturedAt: now, snapshot };\n return snapshot;\n }\n\n private async findReportFiles(root: string, current: string, depth: number): Promise<string[]> {\n const entries = await readdir(current, { withFileTypes: true });\n const files: string[] = [];\n for (const entry of entries) {\n const entryPath = path.join(current, entry.name);\n if (entry.isFile() && isBenchmarkReportFile(entry.name)) {\n files.push(entryPath);\n continue;\n }\n if (!entry.isDirectory() || depth >= this.maxDepth) {\n continue;\n }\n if (depth === 0 && isTestDataRoot(root) && !isRdfBenchmarkDirectory(entry.name)) {\n continue;\n }\n files.push(...await this.findReportFiles(root, entryPath, depth + 1));\n }\n return files;\n }\n\n private async sortNewestFirst(files: string[], errors: RdfBenchmarkReportCatalogError[]): Promise<string[]> {\n const entries: Array<{ file: string; mtimeMs: number }> = [];\n for (const file of files) {\n try {\n entries.push({ file, mtimeMs: (await stat(file)).mtimeMs });\n } catch (error) {\n errors.push({ path: this.displayPath(file), message: errorMessage(error) });\n }\n }\n return entries\n .sort((left, right) => right.mtimeMs - left.mtimeMs)\n .map((entry) => entry.file);\n }\n\n private async readReport(file: string): Promise<\n | { ok: true; report: RdfBenchmarkReportSummary }\n | { ok: false; error: string }\n > {\n try {\n const info = await stat(file);\n if (info.size > MAX_REPORT_BYTES) {\n return { ok: false, error: `Report exceeds ${MAX_REPORT_BYTES} bytes` };\n }\n const raw = await readFile(file, 'utf8');\n const parsed = JSON.parse(raw) as unknown;\n const report = summarizeBenchmarkReport(parsed, this.displayPath(file));\n if (!report) {\n return { ok: false, error: 'Unsupported RDF benchmark report shape' };\n }\n return { ok: true, report };\n } catch (error) {\n return { ok: false, error: errorMessage(error) };\n }\n }\n\n private displayPath(file: string): string {\n const relative = path.relative(this.packageRoot, file);\n return relative && !relative.startsWith('..') && !path.isAbsolute(relative) ? relative : file;\n }\n}\n\nfunction summarizeBenchmarkReport(input: unknown, reportPath: string): RdfBenchmarkReportSummary | undefined {\n if (!isRecord(input)) {\n return undefined;\n }\n const seed = recordValue(input.seed);\n const report = recordValue(input.report) ?? input;\n if (!isRecord(report)) {\n return undefined;\n }\n\n const generatedAt = stringValue(report.generatedAt) ?? timestampFromReportPath(reportPath);\n const engine = stringValue(report.engine);\n if (!engine || !generatedAt) {\n return undefined;\n }\n\n const storage = recordValue(report.storage);\n const pgAcceleration = recordValue(storage?.pgAcceleration);\n const refresh = recordValue(report.refreshBenchmark) ?? recordValue(report.refresh);\n const rdf3xRefresh = recordValue(recordValue(report.refresh)?.rdf3x);\n const plannerStats = recordValue(rdf3xRefresh?.plannerStats);\n const coldStart = recordValue(report.coldStartBenchmark);\n const startup = recordValue(coldStart?.startup);\n const firstQuery = recordValue(coldStart?.firstQueryAfterRefresh);\n const warmSteadyState = recordValue(coldStart?.warmSteadyState);\n const concurrencyGate = recordValue(report.concurrencyGate);\n const servingRegressionGate = recordValue(report.servingRegressionGate);\n const fusionBenchmarkGate = recordValue(report.fusionBenchmarkGate);\n const failedFusionBaselineComparisonCases = failedBaselineComparisonCases(fusionBenchmarkGate);\n const benchmarkGateConfigSources = recordArrayValue(seed?.benchmarkGateConfigSources);\n const driver = stringValue(seed?.driver);\n const scale = stringValue(report.scale) ?? stringValue(seed?.scale);\n const caseProfile = stringValue(report.caseProfile) ?? stringValue(seed?.caseProfile);\n const targetQuadCount = numberValue(seed?.targetQuadCount);\n const bulkLoad = recordValue(seed?.bulkLoad);\n const copyFromRows = recordValue(bulkLoad?.copyFromRows);\n\n return {\n id: path.basename(reportPath, '.json'),\n path: reportPath,\n generatedAt,\n engine,\n driver,\n scale,\n caseProfile,\n rdfAccelerationProfile: stringValue(seed?.rdfAccelerationProfile) ?? stringValue(pgAcceleration?.profile),\n textSearchBackend: stringValue(seed?.textSearchBackend),\n seedQuadCount: numberValue(seed?.seedQuadCount),\n targetQuadCount,\n fullScale: booleanValue(seed?.fullScale),\n iterations: numberValue(report.iterations) ?? numberValue(seed?.iterations),\n warmupIterations: numberValue(report.warmupIterations) ?? numberValue(seed?.warmupIterations),\n concurrency: numberValue(report.concurrency) ?? numberValue(seed?.concurrency),\n planMatched: booleanValue(report.planMatched),\n failedPlanCases: stringArrayValue(report.failedPlanCases),\n concurrencyMatched: booleanValue(concurrencyGate?.matched),\n failedConcurrencyCases: stringArrayValue(concurrencyGate?.failedCases),\n servingRegressionMatched: booleanValue(servingRegressionGate?.matched),\n servingRegressionThresholdsConfigured: hasThresholds(servingRegressionGate),\n failedServingRegressionCases: stringArrayValue(servingRegressionGate?.failedCases),\n fusionBenchmarkMatched: booleanValue(fusionBenchmarkGate?.matched),\n fusionBenchmarkThresholdsConfigured: hasThresholds(fusionBenchmarkGate),\n failedFusionBenchmarkCases: stringArrayValue(fusionBenchmarkGate?.failedCases),\n fusionBaselineComparisonMatched: baselineComparisonMatched(fusionBenchmarkGate, failedFusionBaselineComparisonCases),\n failedFusionBaselineComparisonCases,\n benchmarkGateConfigSourcesConfigured: benchmarkGateConfigSources.length > 0,\n fusionBaselineReportSourceConfigured: hasFusionBaselineReportSource(benchmarkGateConfigSources),\n benchmarkGateConfigSourceShapeMismatches: benchmarkGateConfigSourceShapeMismatches(benchmarkGateConfigSources, {\n driver,\n scale,\n targetQuads: targetQuadCount,\n caseProfile,\n textSearchBackend: stringValue(seed?.textSearchBackend),\n }),\n fusionBaselineReportSourceBaselineProfileConfigured: hasFusionBaselineReportSourceBaselineProfile(benchmarkGateConfigSources),\n fusionHardFiltersBeforeRankCaseCount: countFusionCases(fusionBenchmarkGate, 'hardFiltersBeforeRank'),\n fusionBatchedBroadCandidateJoinCaseCount: countFusionCases(fusionBenchmarkGate, 'batchedBroadCandidateJoin'),\n nativeTextFtsCaseCount: countQueryCasesWithPlan(report, 'PostgresNativeFts('),\n nativeVectorCaseCount: countQueryCasesWithPlan(report, 'PostgresNativeVector('),\n ingestDurationMs: numberValue(seed?.ingestDurationMs),\n copyRows: numberValue(copyFromRows?.rows),\n copyFallbacks: numberValue(copyFromRows?.fallbacks),\n refreshDurationMs: numberValue(refresh?.durationMs),\n plannerStatsDurationMs: numberValue(refresh?.plannerStatsDurationMs),\n plannerStatsAnalyzedTables: stringArrayValue(plannerStats?.analyzedTables),\n coldStartDurationMs: numberValue(startup?.durationMs),\n firstQueryDurationMs: numberValue(firstQuery?.durationMs),\n warmP50DurationMs: numberValue(warmSteadyState?.p50DurationMs),\n warmP95DurationMs: numberValue(warmSteadyState?.p95DurationMs),\n storageFactsBytes: numberValue(storage?.factsBytes),\n storageDerivedBytes: numberValue(storage?.derivedBytes),\n storageTotalBytes: numberValue(storage?.totalBytes),\n storageTotalToFactsRatio: numberValue(storage?.totalToFactsRatio),\n pgAccelerationEnabled: booleanValue(pgAcceleration?.enabled),\n pgAccelerationFallbackReason: stringValue(pgAcceleration?.fallbackReason),\n pgActiveOperators: stringArrayValue(pgAcceleration?.activeOperators),\n };\n}\n\nfunction isBenchmarkReportFile(name: string): boolean {\n return /^models-(postgres|rdf3x-shadow|baseline|shadow)-.+\\.json$/.test(name);\n}\n\nfunction isTestDataRoot(root: string): boolean {\n return path.basename(root) === '.test-data';\n}\n\nfunction isRdfBenchmarkDirectory(name: string): boolean {\n return name === 'rdf-engine' || name.startsWith('rdf-');\n}\n\nfunction timestampFromReportPath(reportPath: string): string | undefined {\n const match = reportPath.match(/models-[^-]+-(\\d{4}-\\d{2}-\\d{2}T\\d{2}-\\d{2}-\\d{2}-\\d{3}Z)/);\n if (!match) {\n return undefined;\n }\n return match[1].replace(/T(\\d{2})-(\\d{2})-(\\d{2})-(\\d{3})Z$/, 'T$1:$2:$3.$4Z');\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction recordValue(value: unknown): Record<string, unknown> | undefined {\n return isRecord(value) ? value : undefined;\n}\n\nfunction stringValue(value: unknown): string | undefined {\n return typeof value === 'string' ? value : undefined;\n}\n\nfunction numberValue(value: unknown): number | undefined {\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined;\n}\n\nfunction booleanValue(value: unknown): boolean | undefined {\n return typeof value === 'boolean' ? value : undefined;\n}\n\nfunction stringArrayValue(value: unknown): string[] {\n return Array.isArray(value) ? value.filter((item): item is string => typeof item === 'string') : [];\n}\n\nfunction recordArrayValue(value: unknown): Record<string, unknown>[] {\n return Array.isArray(value) ? value.filter(isRecord) : [];\n}\n\nfunction failedBaselineComparisonCases(fusionBenchmarkGate: Record<string, unknown> | undefined): string[] {\n if (!fusionBenchmarkGate) {\n return [];\n }\n const failedCases: string[] = [];\n for (const item of recordArrayValue(fusionBenchmarkGate.cases)) {\n const baselineComparison = recordValue(item.baselineComparison);\n if (!baselineComparison) {\n continue;\n }\n if (booleanValue(baselineComparison.matched) !== true) {\n failedCases.push(stringValue(item.name) ?? 'unnamed fusion case');\n }\n }\n return failedCases;\n}\n\nfunction hasFusionBaselineReportSource(sources: readonly Record<string, unknown>[]): boolean {\n return sources.some((source) => source.kind === 'report-config' || source.kind === 'baseline-report');\n}\n\nfunction hasFusionBaselineReportSourceBaselineProfile(sources: readonly Record<string, unknown>[]): boolean {\n return sources.some((source) => {\n if (source.kind !== 'report-config' && source.kind !== 'baseline-report') {\n return false;\n }\n return stringValue(recordValue(source.seed)?.rdfAccelerationProfile) === 'baseline';\n });\n}\n\nfunction countFusionCases(gate: Record<string, unknown> | undefined, field: string): number {\n return recordArrayValue(gate?.cases).filter((testCase) => booleanValue(testCase[field]) === true).length;\n}\n\nfunction countQueryCasesWithPlan(report: Record<string, unknown>, marker: string): number {\n return recordArrayValue(report.queryCases).filter((testCase) => (\n stringArrayValue(testCase.physicalPlan).some((entry) => entry.includes(marker))\n )).length;\n}\n\nfunction benchmarkGateConfigSourceShapeMismatches(\n sources: readonly Record<string, unknown>[],\n expected: {\n driver?: string;\n scale?: string;\n targetQuads?: number;\n caseProfile?: string;\n textSearchBackend?: string;\n },\n): string[] {\n const mismatches: string[] = [];\n sources.forEach((source, index) => {\n const seed = recordValue(source.seed);\n if (!seed) {\n if (source.kind === 'report-config' || source.kind === 'baseline-report') {\n mismatches.push(`source[${index}].seed is missing`);\n }\n return;\n }\n const prefix = `source[${index}]`;\n appendShapeMismatch(mismatches, `${prefix}.driver`, expected.driver, stringValue(seed.driver));\n appendShapeMismatch(mismatches, `${prefix}.scale`, expected.scale, stringValue(seed.scale));\n appendShapeMismatch(mismatches, `${prefix}.targetQuads`, expected.targetQuads, numberValue(seed.targetQuads));\n appendShapeMismatch(mismatches, `${prefix}.caseProfile`, expected.caseProfile, stringValue(seed.caseProfile));\n appendShapeMismatch(mismatches, `${prefix}.textSearchBackend`, expected.textSearchBackend, stringValue(seed.textSearchBackend));\n });\n return mismatches;\n}\n\nfunction appendShapeMismatch<T extends string | number>(\n mismatches: string[],\n label: string,\n expected: T | undefined,\n actual: T | undefined,\n): void {\n if (expected !== undefined && actual !== undefined && expected !== actual) {\n mismatches.push(`${label} expected ${expected}, got ${actual}`);\n }\n}\n\nfunction hasThresholds(gate: Record<string, unknown> | undefined): boolean {\n const thresholds = recordValue(gate?.thresholds);\n return numberValue(thresholds?.maxScannedRows) !== undefined\n || numberValue(thresholds?.maxP95DurationMs) !== undefined\n || Object.keys(recordValue(thresholds?.cases) ?? {}).length > 0;\n}\n\nfunction baselineComparisonMatched(\n fusionBenchmarkGate: Record<string, unknown> | undefined,\n failedCases: string[],\n): boolean | undefined {\n if (!fusionBenchmarkGate) {\n return undefined;\n }\n const hasBaselineComparison = recordArrayValue(fusionBenchmarkGate.cases)\n .some((item) => Boolean(recordValue(item.baselineComparison)));\n return hasBaselineComparison ? failedCases.length === 0 : undefined;\n}\n\nfunction errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n"]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { RdfBenchmarkReportCatalogSnapshot, RdfBenchmarkReportSummary } from './RdfBenchmarkReportCatalog';
|
|
2
|
+
export interface RdfBenchmarkReportGateOptions {
|
|
3
|
+
requiredScale?: string;
|
|
4
|
+
requiredDriver?: string;
|
|
5
|
+
requiredCaseProfile?: string;
|
|
6
|
+
requiredRdfAccelerationProfile?: string;
|
|
7
|
+
requiredTextSearchBackend?: string;
|
|
8
|
+
minTargetQuadCount?: number;
|
|
9
|
+
minSeedQuadCount?: number;
|
|
10
|
+
minIterations?: number;
|
|
11
|
+
minWarmupIterations?: number;
|
|
12
|
+
minConcurrency?: number;
|
|
13
|
+
requireFullScale?: boolean;
|
|
14
|
+
requireCopyIngest?: boolean;
|
|
15
|
+
allowCopyFallbacks?: boolean;
|
|
16
|
+
requirePlannerStats?: boolean;
|
|
17
|
+
requireColdWarmTimings?: boolean;
|
|
18
|
+
requireStorageRatio?: boolean;
|
|
19
|
+
requireServingRegressionGate?: boolean;
|
|
20
|
+
requireServingRegressionThresholds?: boolean;
|
|
21
|
+
requireFusionBenchmarkGate?: boolean;
|
|
22
|
+
requireFusionBenchmarkThresholds?: boolean;
|
|
23
|
+
requireFusionBaselineComparison?: boolean;
|
|
24
|
+
requireBenchmarkGateConfigSources?: boolean;
|
|
25
|
+
requireFusionBaselineReportSource?: boolean;
|
|
26
|
+
requireFusionBaselineSourceBaselineProfile?: boolean;
|
|
27
|
+
requireFusionHardFilterEvidence?: boolean;
|
|
28
|
+
requireFusionBatchedBroadCandidateJoinEvidence?: boolean;
|
|
29
|
+
requireNativeTextFtsEvidence?: boolean;
|
|
30
|
+
requireNativeVectorEvidence?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface RdfBenchmarkReportGateResult {
|
|
33
|
+
matched: boolean;
|
|
34
|
+
evaluatedAt: string;
|
|
35
|
+
checkedReportCount: number;
|
|
36
|
+
required: RequiredRdfBenchmarkReportGateOptions;
|
|
37
|
+
matchedReport?: RdfBenchmarkReportSummary;
|
|
38
|
+
failedReasons: string[];
|
|
39
|
+
candidates: RdfBenchmarkReportGateCandidate[];
|
|
40
|
+
}
|
|
41
|
+
export interface RdfBenchmarkReportGateCandidate {
|
|
42
|
+
id: string;
|
|
43
|
+
path: string;
|
|
44
|
+
generatedAt: string;
|
|
45
|
+
matched: boolean;
|
|
46
|
+
failedReasons: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface RequiredRdfBenchmarkReportGateOptions {
|
|
49
|
+
requiredScale: string;
|
|
50
|
+
requiredDriver: string;
|
|
51
|
+
requiredCaseProfile?: string;
|
|
52
|
+
requiredRdfAccelerationProfile?: string;
|
|
53
|
+
requiredTextSearchBackend?: string;
|
|
54
|
+
minTargetQuadCount: number;
|
|
55
|
+
minSeedQuadCount: number;
|
|
56
|
+
minIterations: number;
|
|
57
|
+
minWarmupIterations: number;
|
|
58
|
+
minConcurrency: number;
|
|
59
|
+
requireFullScale: boolean;
|
|
60
|
+
requireCopyIngest: boolean;
|
|
61
|
+
allowCopyFallbacks: boolean;
|
|
62
|
+
requirePlannerStats: boolean;
|
|
63
|
+
requireColdWarmTimings: boolean;
|
|
64
|
+
requireStorageRatio: boolean;
|
|
65
|
+
requireServingRegressionGate: boolean;
|
|
66
|
+
requireServingRegressionThresholds: boolean;
|
|
67
|
+
requireFusionBenchmarkGate: boolean;
|
|
68
|
+
requireFusionBenchmarkThresholds: boolean;
|
|
69
|
+
requireFusionBaselineComparison: boolean;
|
|
70
|
+
requireBenchmarkGateConfigSources: boolean;
|
|
71
|
+
requireFusionBaselineReportSource: boolean;
|
|
72
|
+
requireFusionBaselineSourceBaselineProfile: boolean;
|
|
73
|
+
requireFusionHardFilterEvidence: boolean;
|
|
74
|
+
requireFusionBatchedBroadCandidateJoinEvidence: boolean;
|
|
75
|
+
requireNativeTextFtsEvidence: boolean;
|
|
76
|
+
requireNativeVectorEvidence: boolean;
|
|
77
|
+
}
|
|
78
|
+
export declare function evaluateRdfBenchmarkReportGate(snapshot: RdfBenchmarkReportCatalogSnapshot, options?: RdfBenchmarkReportGateOptions): RdfBenchmarkReportGateResult;
|