@undefineds.co/xpod 0.3.57 → 0.3.61
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/obj.d.ts +9 -0
- package/dist/cli/commands/obj.js +74 -3
- package/dist/cli/commands/obj.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/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 +32 -12
- 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,103 @@
|
|
|
1
|
+
import type { ReaderExpectedUse } from './ReaderPolicy';
|
|
2
|
+
export type SourceUsageSurface = 'chat' | 'task' | 'run' | 'message' | 'tool-call' | 'upload' | 'ui-open';
|
|
3
|
+
export type SourceUsageConfidence = 'low' | 'medium' | 'high';
|
|
4
|
+
export type L0SourceSummaryMode = 'context-inferred' | 'lightweight-preview' | 'old-cache';
|
|
5
|
+
export type L0SourceEvidence = 'path' | 'mime' | 'message-context' | 'tool-history' | 'user-description' | 'neighbor-files' | 'old-cache' | 'local-preview';
|
|
6
|
+
export interface SourceUsageMention {
|
|
7
|
+
surface: SourceUsageSurface;
|
|
8
|
+
resource: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
excerpt?: string;
|
|
11
|
+
mentionedAs?: string;
|
|
12
|
+
actor?: string;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
confidence: SourceUsageConfidence;
|
|
15
|
+
}
|
|
16
|
+
export interface SourceRecentAction {
|
|
17
|
+
action: 'uploaded' | 'opened' | 'edited' | 'moved' | 'renamed' | 'attached' | 'referenced' | 'generated';
|
|
18
|
+
resource: string;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
actor?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RelatedSource {
|
|
23
|
+
source: string;
|
|
24
|
+
relation: 'same-folder' | 'linked-from-message' | 'generated-from' | 'attached-together' | 'referenced-by-same-run';
|
|
25
|
+
}
|
|
26
|
+
export interface SourceUsageRecord {
|
|
27
|
+
surface: SourceUsageSurface;
|
|
28
|
+
resource: string;
|
|
29
|
+
text?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
actor?: string;
|
|
32
|
+
timestamp: string;
|
|
33
|
+
action?: SourceRecentAction['action'];
|
|
34
|
+
attachment?: {
|
|
35
|
+
name?: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
id?: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface BuildSourceUsageContextInput {
|
|
41
|
+
source: string;
|
|
42
|
+
records: SourceUsageRecord[];
|
|
43
|
+
maxExcerptLength?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface SourceUsageContext {
|
|
46
|
+
source: string;
|
|
47
|
+
mentions: SourceUsageMention[];
|
|
48
|
+
recentActions: SourceRecentAction[];
|
|
49
|
+
relatedSources?: RelatedSource[];
|
|
50
|
+
}
|
|
51
|
+
export type L0GenerationAction = 'create-l0' | 'reader-required' | 'skip';
|
|
52
|
+
export interface L0SourceSummaryPlan {
|
|
53
|
+
action: L0GenerationAction;
|
|
54
|
+
mode?: L0SourceSummaryMode;
|
|
55
|
+
evidence: L0SourceEvidence[];
|
|
56
|
+
confidence: SourceUsageConfidence;
|
|
57
|
+
previewSuggestion?: {
|
|
58
|
+
pages?: string;
|
|
59
|
+
bytes?: number;
|
|
60
|
+
lines?: string;
|
|
61
|
+
};
|
|
62
|
+
reason: string;
|
|
63
|
+
}
|
|
64
|
+
export interface L0SourceSummaryInput {
|
|
65
|
+
source: string;
|
|
66
|
+
sourceUsageContext: SourceUsageContext;
|
|
67
|
+
requestedEvidence?: ReaderExpectedUse;
|
|
68
|
+
oldCacheFresh?: boolean;
|
|
69
|
+
lightweightPreviewAvailable?: boolean;
|
|
70
|
+
pathHint?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface L0SourceSummary {
|
|
73
|
+
source: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
mode: L0SourceSummaryMode;
|
|
76
|
+
confidence: SourceUsageConfidence;
|
|
77
|
+
evidence: L0SourceEvidence[];
|
|
78
|
+
previewRange?: {
|
|
79
|
+
pages?: string;
|
|
80
|
+
bytes?: number;
|
|
81
|
+
lines?: string;
|
|
82
|
+
};
|
|
83
|
+
readerConfirmed: false;
|
|
84
|
+
sourceUsageContext?: SourceUsageContext;
|
|
85
|
+
}
|
|
86
|
+
export interface CreateL0SourceSummaryInput {
|
|
87
|
+
source: string;
|
|
88
|
+
summary?: string;
|
|
89
|
+
mode: L0SourceSummaryMode;
|
|
90
|
+
confidence: SourceUsageConfidence;
|
|
91
|
+
evidence: L0SourceEvidence[];
|
|
92
|
+
previewRange?: {
|
|
93
|
+
pages?: string;
|
|
94
|
+
bytes?: number;
|
|
95
|
+
lines?: string;
|
|
96
|
+
};
|
|
97
|
+
sourceUsageContext?: SourceUsageContext;
|
|
98
|
+
maxExcerptLength?: number;
|
|
99
|
+
}
|
|
100
|
+
export declare function chooseL0SourceSummaryPlan(input: L0SourceSummaryInput): L0SourceSummaryPlan;
|
|
101
|
+
export declare function createL0SourceSummary(input: CreateL0SourceSummaryInput): L0SourceSummary;
|
|
102
|
+
export declare function boundSourceUsageContext(context: SourceUsageContext, maxExcerptLength?: number): SourceUsageContext;
|
|
103
|
+
export declare function buildSourceUsageContext(input: BuildSourceUsageContextInput): SourceUsageContext;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chooseL0SourceSummaryPlan = chooseL0SourceSummaryPlan;
|
|
4
|
+
exports.createL0SourceSummary = createL0SourceSummary;
|
|
5
|
+
exports.boundSourceUsageContext = boundSourceUsageContext;
|
|
6
|
+
exports.buildSourceUsageContext = buildSourceUsageContext;
|
|
7
|
+
const ReaderPolicy_1 = require("./ReaderPolicy");
|
|
8
|
+
const READER_REQUIRED_USES = new Set(['table-extraction', 'ocr', 'full-import']);
|
|
9
|
+
function chooseL0SourceSummaryPlan(input) {
|
|
10
|
+
if (input.requestedEvidence && READER_REQUIRED_USES.has(input.requestedEvidence)) {
|
|
11
|
+
return {
|
|
12
|
+
action: 'reader-required',
|
|
13
|
+
evidence: [],
|
|
14
|
+
confidence: 'low',
|
|
15
|
+
reason: `Requested evidence ${input.requestedEvidence} needs reader output beyond L0.`,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
if (input.oldCacheFresh) {
|
|
19
|
+
return {
|
|
20
|
+
action: 'create-l0',
|
|
21
|
+
mode: 'old-cache',
|
|
22
|
+
evidence: ['old-cache'],
|
|
23
|
+
confidence: 'high',
|
|
24
|
+
reason: 'Fresh old cache can be reused for source-level summary.',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const highContext = input.sourceUsageContext.mentions.some((mention) => mention.confidence === 'high');
|
|
28
|
+
const meaningfulPath = hasMeaningfulPath(input.pathHint ?? input.source);
|
|
29
|
+
if (highContext || meaningfulPath) {
|
|
30
|
+
const evidence = [];
|
|
31
|
+
if (meaningfulPath)
|
|
32
|
+
evidence.push('path');
|
|
33
|
+
if (highContext)
|
|
34
|
+
evidence.push('message-context');
|
|
35
|
+
return {
|
|
36
|
+
action: 'create-l0',
|
|
37
|
+
mode: 'context-inferred',
|
|
38
|
+
evidence,
|
|
39
|
+
confidence: highContext ? 'high' : 'medium',
|
|
40
|
+
reason: 'Path or product context is enough to infer an L0 source summary.',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (input.lightweightPreviewAvailable) {
|
|
44
|
+
return {
|
|
45
|
+
action: 'create-l0',
|
|
46
|
+
mode: 'lightweight-preview',
|
|
47
|
+
evidence: ['local-preview'],
|
|
48
|
+
confidence: 'medium',
|
|
49
|
+
previewSuggestion: {
|
|
50
|
+
pages: String(ReaderPolicy_1.DEFAULT_DOCUMENT_READER_POLICY.l0.suggestion.localPreviewPages),
|
|
51
|
+
bytes: ReaderPolicy_1.DEFAULT_DOCUMENT_READER_POLICY.l0.suggestion.localPreviewBytes,
|
|
52
|
+
},
|
|
53
|
+
reason: 'Context is weak; read lightweight preview before writing L0.',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
action: 'skip',
|
|
58
|
+
evidence: [],
|
|
59
|
+
confidence: 'low',
|
|
60
|
+
reason: 'No reliable context or preview is available for L0.',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function createL0SourceSummary(input) {
|
|
64
|
+
return {
|
|
65
|
+
source: input.source,
|
|
66
|
+
summary: input.summary,
|
|
67
|
+
mode: input.mode,
|
|
68
|
+
confidence: input.confidence,
|
|
69
|
+
evidence: [...new Set(input.evidence)],
|
|
70
|
+
previewRange: input.previewRange,
|
|
71
|
+
readerConfirmed: false,
|
|
72
|
+
sourceUsageContext: input.sourceUsageContext
|
|
73
|
+
? boundSourceUsageContext(input.sourceUsageContext, input.maxExcerptLength ?? 240)
|
|
74
|
+
: undefined,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function boundSourceUsageContext(context, maxExcerptLength = 240) {
|
|
78
|
+
return {
|
|
79
|
+
...context,
|
|
80
|
+
mentions: context.mentions.map((mention) => ({
|
|
81
|
+
...mention,
|
|
82
|
+
excerpt: mention.excerpt ? truncate(mention.excerpt, maxExcerptLength) : undefined,
|
|
83
|
+
})),
|
|
84
|
+
recentActions: [...context.recentActions],
|
|
85
|
+
relatedSources: context.relatedSources ? [...context.relatedSources] : undefined,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function buildSourceUsageContext(input) {
|
|
89
|
+
const sourceName = sourceBasename(input.source);
|
|
90
|
+
const maxExcerptLength = input.maxExcerptLength ?? 240;
|
|
91
|
+
const mentions = [];
|
|
92
|
+
const recentActions = [];
|
|
93
|
+
for (const record of input.records) {
|
|
94
|
+
const matchedAttachment = attachmentMatchesSource(record.attachment, input.source, sourceName);
|
|
95
|
+
const matchedText = textMentionsSource(record.text, input.source, sourceName);
|
|
96
|
+
if (matchedAttachment || matchedText) {
|
|
97
|
+
const excerptSource = record.text ?? record.title ?? record.attachment?.name ?? sourceName;
|
|
98
|
+
mentions.push({
|
|
99
|
+
surface: record.surface,
|
|
100
|
+
resource: record.resource,
|
|
101
|
+
title: record.title,
|
|
102
|
+
excerpt: truncate(excerptSource, maxExcerptLength),
|
|
103
|
+
mentionedAs: matchedAttachment ? (record.attachment?.name ?? sourceName) : sourceName,
|
|
104
|
+
actor: record.actor,
|
|
105
|
+
timestamp: record.timestamp,
|
|
106
|
+
confidence: matchedAttachment ? 'high' : 'medium',
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (record.action && (matchedAttachment || matchedText)) {
|
|
110
|
+
recentActions.push({
|
|
111
|
+
action: record.action,
|
|
112
|
+
resource: record.resource,
|
|
113
|
+
timestamp: record.timestamp,
|
|
114
|
+
actor: record.actor,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
source: input.source,
|
|
120
|
+
mentions,
|
|
121
|
+
recentActions,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function attachmentMatchesSource(attachment, source, sourceName) {
|
|
125
|
+
if (!attachment)
|
|
126
|
+
return false;
|
|
127
|
+
return attachment.url === source || attachment.id === source || attachment.name === sourceName;
|
|
128
|
+
}
|
|
129
|
+
function textMentionsSource(text, source, sourceName) {
|
|
130
|
+
if (!text)
|
|
131
|
+
return false;
|
|
132
|
+
return text.includes(source) || text.includes(sourceName);
|
|
133
|
+
}
|
|
134
|
+
function sourceBasename(source) {
|
|
135
|
+
try {
|
|
136
|
+
const parsed = new URL(source);
|
|
137
|
+
return decodeURIComponent(parsed.pathname.split('/').filter(Boolean).pop() ?? source);
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return source.split(/[\/]/u).filter(Boolean).pop() ?? source;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function hasMeaningfulPath(path) {
|
|
144
|
+
const tail = path.split(/[/?#]/u).filter(Boolean).pop() ?? path;
|
|
145
|
+
const base = tail.replace(/\.[a-z0-9]+$/iu, '').toLowerCase();
|
|
146
|
+
if (!base || base.length < 4)
|
|
147
|
+
return false;
|
|
148
|
+
if (/^(scan|image|img|doc|file|untitled|new|tmp|temp)[-_ ]?\d*$/iu.test(base))
|
|
149
|
+
return false;
|
|
150
|
+
return /[a-z\u4e00-\u9fff]{3,}/iu.test(base);
|
|
151
|
+
}
|
|
152
|
+
function truncate(value, maxLength) {
|
|
153
|
+
if (value.length <= maxLength)
|
|
154
|
+
return value;
|
|
155
|
+
return value.slice(0, Math.max(0, maxLength - 1)) + '…';
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=L0SourceSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"L0SourceSummary.js","sourceRoot":"","sources":["../../src/document/L0SourceSummary.ts"],"names":[],"mappings":"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","sourcesContent":["import { DEFAULT_DOCUMENT_READER_POLICY } from './ReaderPolicy';\nimport type { ReaderExpectedUse } from './ReaderPolicy';\n\nexport type SourceUsageSurface = 'chat' | 'task' | 'run' | 'message' | 'tool-call' | 'upload' | 'ui-open';\nexport type SourceUsageConfidence = 'low' | 'medium' | 'high';\nexport type L0SourceSummaryMode = 'context-inferred' | 'lightweight-preview' | 'old-cache';\nexport type L0SourceEvidence =\n | 'path'\n | 'mime'\n | 'message-context'\n | 'tool-history'\n | 'user-description'\n | 'neighbor-files'\n | 'old-cache'\n | 'local-preview';\n\nexport interface SourceUsageMention {\n surface: SourceUsageSurface;\n resource: string;\n title?: string;\n excerpt?: string;\n mentionedAs?: string;\n actor?: string;\n timestamp: string;\n confidence: SourceUsageConfidence;\n}\n\nexport interface SourceRecentAction {\n action: 'uploaded' | 'opened' | 'edited' | 'moved' | 'renamed' | 'attached' | 'referenced' | 'generated';\n resource: string;\n timestamp: string;\n actor?: string;\n}\n\nexport interface RelatedSource {\n source: string;\n relation: 'same-folder' | 'linked-from-message' | 'generated-from' | 'attached-together' | 'referenced-by-same-run';\n}\n\n\nexport interface SourceUsageRecord {\n surface: SourceUsageSurface;\n resource: string;\n text?: string;\n title?: string;\n actor?: string;\n timestamp: string;\n action?: SourceRecentAction['action'];\n attachment?: {\n name?: string;\n url?: string;\n id?: string;\n };\n}\n\nexport interface BuildSourceUsageContextInput {\n source: string;\n records: SourceUsageRecord[];\n maxExcerptLength?: number;\n}\n\nexport interface SourceUsageContext {\n source: string;\n mentions: SourceUsageMention[];\n recentActions: SourceRecentAction[];\n relatedSources?: RelatedSource[];\n}\n\nexport type L0GenerationAction = 'create-l0' | 'reader-required' | 'skip';\n\nexport interface L0SourceSummaryPlan {\n action: L0GenerationAction;\n mode?: L0SourceSummaryMode;\n evidence: L0SourceEvidence[];\n confidence: SourceUsageConfidence;\n previewSuggestion?: {\n pages?: string;\n bytes?: number;\n lines?: string;\n };\n reason: string;\n}\n\nexport interface L0SourceSummaryInput {\n source: string;\n sourceUsageContext: SourceUsageContext;\n requestedEvidence?: ReaderExpectedUse;\n oldCacheFresh?: boolean;\n lightweightPreviewAvailable?: boolean;\n pathHint?: string;\n}\n\nexport interface L0SourceSummary {\n source: string;\n summary?: string;\n mode: L0SourceSummaryMode;\n confidence: SourceUsageConfidence;\n evidence: L0SourceEvidence[];\n previewRange?: {\n pages?: string;\n bytes?: number;\n lines?: string;\n };\n readerConfirmed: false;\n sourceUsageContext?: SourceUsageContext;\n}\n\nexport interface CreateL0SourceSummaryInput {\n source: string;\n summary?: string;\n mode: L0SourceSummaryMode;\n confidence: SourceUsageConfidence;\n evidence: L0SourceEvidence[];\n previewRange?: {\n pages?: string;\n bytes?: number;\n lines?: string;\n };\n sourceUsageContext?: SourceUsageContext;\n maxExcerptLength?: number;\n}\n\nconst READER_REQUIRED_USES = new Set<ReaderExpectedUse>(['table-extraction', 'ocr', 'full-import']);\n\nexport function chooseL0SourceSummaryPlan(input: L0SourceSummaryInput): L0SourceSummaryPlan {\n if (input.requestedEvidence && READER_REQUIRED_USES.has(input.requestedEvidence)) {\n return {\n action: 'reader-required',\n evidence: [],\n confidence: 'low',\n reason: `Requested evidence ${input.requestedEvidence} needs reader output beyond L0.`,\n };\n }\n\n if (input.oldCacheFresh) {\n return {\n action: 'create-l0',\n mode: 'old-cache',\n evidence: ['old-cache'],\n confidence: 'high',\n reason: 'Fresh old cache can be reused for source-level summary.',\n };\n }\n\n const highContext = input.sourceUsageContext.mentions.some((mention) => mention.confidence === 'high');\n const meaningfulPath = hasMeaningfulPath(input.pathHint ?? input.source);\n if (highContext || meaningfulPath) {\n const evidence: L0SourceEvidence[] = [];\n if (meaningfulPath) evidence.push('path');\n if (highContext) evidence.push('message-context');\n return {\n action: 'create-l0',\n mode: 'context-inferred',\n evidence,\n confidence: highContext ? 'high' : 'medium',\n reason: 'Path or product context is enough to infer an L0 source summary.',\n };\n }\n\n if (input.lightweightPreviewAvailable) {\n return {\n action: 'create-l0',\n mode: 'lightweight-preview',\n evidence: ['local-preview'],\n confidence: 'medium',\n previewSuggestion: {\n pages: String(DEFAULT_DOCUMENT_READER_POLICY.l0.suggestion.localPreviewPages),\n bytes: DEFAULT_DOCUMENT_READER_POLICY.l0.suggestion.localPreviewBytes,\n },\n reason: 'Context is weak; read lightweight preview before writing L0.',\n };\n }\n\n return {\n action: 'skip',\n evidence: [],\n confidence: 'low',\n reason: 'No reliable context or preview is available for L0.',\n };\n}\n\nexport function createL0SourceSummary(input: CreateL0SourceSummaryInput): L0SourceSummary {\n return {\n source: input.source,\n summary: input.summary,\n mode: input.mode,\n confidence: input.confidence,\n evidence: [...new Set(input.evidence)],\n previewRange: input.previewRange,\n readerConfirmed: false,\n sourceUsageContext: input.sourceUsageContext\n ? boundSourceUsageContext(input.sourceUsageContext, input.maxExcerptLength ?? 240)\n : undefined,\n };\n}\n\nexport function boundSourceUsageContext(context: SourceUsageContext, maxExcerptLength = 240): SourceUsageContext {\n return {\n ...context,\n mentions: context.mentions.map((mention) => ({\n ...mention,\n excerpt: mention.excerpt ? truncate(mention.excerpt, maxExcerptLength) : undefined,\n })),\n recentActions: [...context.recentActions],\n relatedSources: context.relatedSources ? [...context.relatedSources] : undefined,\n };\n}\n\n\nexport function buildSourceUsageContext(input: BuildSourceUsageContextInput): SourceUsageContext {\n const sourceName = sourceBasename(input.source);\n const maxExcerptLength = input.maxExcerptLength ?? 240;\n const mentions: SourceUsageMention[] = [];\n const recentActions: SourceRecentAction[] = [];\n\n for (const record of input.records) {\n const matchedAttachment = attachmentMatchesSource(record.attachment, input.source, sourceName);\n const matchedText = textMentionsSource(record.text, input.source, sourceName);\n\n if (matchedAttachment || matchedText) {\n const excerptSource = record.text ?? record.title ?? record.attachment?.name ?? sourceName;\n mentions.push({\n surface: record.surface,\n resource: record.resource,\n title: record.title,\n excerpt: truncate(excerptSource, maxExcerptLength),\n mentionedAs: matchedAttachment ? (record.attachment?.name ?? sourceName) : sourceName,\n actor: record.actor,\n timestamp: record.timestamp,\n confidence: matchedAttachment ? 'high' : 'medium',\n });\n }\n\n if (record.action && (matchedAttachment || matchedText)) {\n recentActions.push({\n action: record.action,\n resource: record.resource,\n timestamp: record.timestamp,\n actor: record.actor,\n });\n }\n }\n\n return {\n source: input.source,\n mentions,\n recentActions,\n };\n}\n\nfunction attachmentMatchesSource(\n attachment: SourceUsageRecord['attachment'] | undefined,\n source: string,\n sourceName: string,\n): boolean {\n if (!attachment) return false;\n return attachment.url === source || attachment.id === source || attachment.name === sourceName;\n}\n\nfunction textMentionsSource(text: string | undefined, source: string, sourceName: string): boolean {\n if (!text) return false;\n return text.includes(source) || text.includes(sourceName);\n}\n\nfunction sourceBasename(source: string): string {\n try {\n const parsed = new URL(source);\n return decodeURIComponent(parsed.pathname.split('/').filter(Boolean).pop() ?? source);\n } catch {\n return source.split(/[\\/]/u).filter(Boolean).pop() ?? source;\n }\n}\n\nfunction hasMeaningfulPath(path: string): boolean {\n const tail = path.split(/[/?#]/u).filter(Boolean).pop() ?? path;\n const base = tail.replace(/\\.[a-z0-9]+$/iu, '').toLowerCase();\n if (!base || base.length < 4) return false;\n if (/^(scan|image|img|doc|file|untitled|new|tmp|temp)[-_ ]?\\d*$/iu.test(base)) return false;\n return /[a-z\\u4e00-\\u9fff]{3,}/iu.test(base);\n}\n\nfunction truncate(value: string, maxLength: number): string {\n if (value.length <= maxLength) return value;\n return value.slice(0, Math.max(0, maxLength - 1)) + '…';\n}\n"]}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@undefineds.co/xpod/^0.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@undefineds.co/xpod",
|
|
6
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention",
|
|
9
|
+
"@type": "AbstractClass",
|
|
10
|
+
"requireElement": "SourceUsageMention",
|
|
11
|
+
"parameters": [],
|
|
12
|
+
"memberFields": [
|
|
13
|
+
{
|
|
14
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_surface",
|
|
15
|
+
"memberFieldName": "surface"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_resource",
|
|
19
|
+
"memberFieldName": "resource"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_title",
|
|
23
|
+
"memberFieldName": "title"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_excerpt",
|
|
27
|
+
"memberFieldName": "excerpt"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_mentionedAs",
|
|
31
|
+
"memberFieldName": "mentionedAs"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_actor",
|
|
35
|
+
"memberFieldName": "actor"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_timestamp",
|
|
39
|
+
"memberFieldName": "timestamp"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageMention__member_confidence",
|
|
43
|
+
"memberFieldName": "confidence"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"constructorArguments": []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceRecentAction",
|
|
50
|
+
"@type": "AbstractClass",
|
|
51
|
+
"requireElement": "SourceRecentAction",
|
|
52
|
+
"parameters": [],
|
|
53
|
+
"memberFields": [
|
|
54
|
+
{
|
|
55
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceRecentAction__member_action",
|
|
56
|
+
"memberFieldName": "action"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceRecentAction__member_resource",
|
|
60
|
+
"memberFieldName": "resource"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceRecentAction__member_timestamp",
|
|
64
|
+
"memberFieldName": "timestamp"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceRecentAction__member_actor",
|
|
68
|
+
"memberFieldName": "actor"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"constructorArguments": []
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#RelatedSource",
|
|
75
|
+
"@type": "AbstractClass",
|
|
76
|
+
"requireElement": "RelatedSource",
|
|
77
|
+
"parameters": [],
|
|
78
|
+
"memberFields": [
|
|
79
|
+
{
|
|
80
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#RelatedSource__member_source",
|
|
81
|
+
"memberFieldName": "source"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#RelatedSource__member_relation",
|
|
85
|
+
"memberFieldName": "relation"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"constructorArguments": []
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord",
|
|
92
|
+
"@type": "AbstractClass",
|
|
93
|
+
"requireElement": "SourceUsageRecord",
|
|
94
|
+
"parameters": [],
|
|
95
|
+
"memberFields": [
|
|
96
|
+
{
|
|
97
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_surface",
|
|
98
|
+
"memberFieldName": "surface"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_resource",
|
|
102
|
+
"memberFieldName": "resource"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_text",
|
|
106
|
+
"memberFieldName": "text"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_title",
|
|
110
|
+
"memberFieldName": "title"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_actor",
|
|
114
|
+
"memberFieldName": "actor"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_timestamp",
|
|
118
|
+
"memberFieldName": "timestamp"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_action",
|
|
122
|
+
"memberFieldName": "action"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageRecord__member_attachment",
|
|
126
|
+
"memberFieldName": "attachment"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"constructorArguments": []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#BuildSourceUsageContextInput",
|
|
133
|
+
"@type": "AbstractClass",
|
|
134
|
+
"requireElement": "BuildSourceUsageContextInput",
|
|
135
|
+
"parameters": [],
|
|
136
|
+
"memberFields": [
|
|
137
|
+
{
|
|
138
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#BuildSourceUsageContextInput__member_source",
|
|
139
|
+
"memberFieldName": "source"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#BuildSourceUsageContextInput__member_records",
|
|
143
|
+
"memberFieldName": "records"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#BuildSourceUsageContextInput__member_maxExcerptLength",
|
|
147
|
+
"memberFieldName": "maxExcerptLength"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"constructorArguments": []
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageContext",
|
|
154
|
+
"@type": "AbstractClass",
|
|
155
|
+
"requireElement": "SourceUsageContext",
|
|
156
|
+
"parameters": [],
|
|
157
|
+
"memberFields": [
|
|
158
|
+
{
|
|
159
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageContext__member_source",
|
|
160
|
+
"memberFieldName": "source"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageContext__member_mentions",
|
|
164
|
+
"memberFieldName": "mentions"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageContext__member_recentActions",
|
|
168
|
+
"memberFieldName": "recentActions"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#SourceUsageContext__member_relatedSources",
|
|
172
|
+
"memberFieldName": "relatedSources"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"constructorArguments": []
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan",
|
|
179
|
+
"@type": "AbstractClass",
|
|
180
|
+
"requireElement": "L0SourceSummaryPlan",
|
|
181
|
+
"parameters": [],
|
|
182
|
+
"memberFields": [
|
|
183
|
+
{
|
|
184
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_action",
|
|
185
|
+
"memberFieldName": "action"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_mode",
|
|
189
|
+
"memberFieldName": "mode"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_evidence",
|
|
193
|
+
"memberFieldName": "evidence"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_confidence",
|
|
197
|
+
"memberFieldName": "confidence"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_previewSuggestion",
|
|
201
|
+
"memberFieldName": "previewSuggestion"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryPlan__member_reason",
|
|
205
|
+
"memberFieldName": "reason"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"constructorArguments": []
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput",
|
|
212
|
+
"@type": "AbstractClass",
|
|
213
|
+
"requireElement": "L0SourceSummaryInput",
|
|
214
|
+
"parameters": [],
|
|
215
|
+
"memberFields": [
|
|
216
|
+
{
|
|
217
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_source",
|
|
218
|
+
"memberFieldName": "source"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_sourceUsageContext",
|
|
222
|
+
"memberFieldName": "sourceUsageContext"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_requestedEvidence",
|
|
226
|
+
"memberFieldName": "requestedEvidence"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_oldCacheFresh",
|
|
230
|
+
"memberFieldName": "oldCacheFresh"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_lightweightPreviewAvailable",
|
|
234
|
+
"memberFieldName": "lightweightPreviewAvailable"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummaryInput__member_pathHint",
|
|
238
|
+
"memberFieldName": "pathHint"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"constructorArguments": []
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary",
|
|
245
|
+
"@type": "AbstractClass",
|
|
246
|
+
"requireElement": "L0SourceSummary",
|
|
247
|
+
"parameters": [],
|
|
248
|
+
"memberFields": [
|
|
249
|
+
{
|
|
250
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_source",
|
|
251
|
+
"memberFieldName": "source"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_summary",
|
|
255
|
+
"memberFieldName": "summary"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_mode",
|
|
259
|
+
"memberFieldName": "mode"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_confidence",
|
|
263
|
+
"memberFieldName": "confidence"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_evidence",
|
|
267
|
+
"memberFieldName": "evidence"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_previewRange",
|
|
271
|
+
"memberFieldName": "previewRange"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_readerConfirmed",
|
|
275
|
+
"memberFieldName": "readerConfirmed"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#L0SourceSummary__member_sourceUsageContext",
|
|
279
|
+
"memberFieldName": "sourceUsageContext"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"constructorArguments": []
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput",
|
|
286
|
+
"@type": "AbstractClass",
|
|
287
|
+
"requireElement": "CreateL0SourceSummaryInput",
|
|
288
|
+
"parameters": [],
|
|
289
|
+
"memberFields": [
|
|
290
|
+
{
|
|
291
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_source",
|
|
292
|
+
"memberFieldName": "source"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_summary",
|
|
296
|
+
"memberFieldName": "summary"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_mode",
|
|
300
|
+
"memberFieldName": "mode"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_confidence",
|
|
304
|
+
"memberFieldName": "confidence"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_evidence",
|
|
308
|
+
"memberFieldName": "evidence"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_previewRange",
|
|
312
|
+
"memberFieldName": "previewRange"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_sourceUsageContext",
|
|
316
|
+
"memberFieldName": "sourceUsageContext"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"@id": "undefineds:dist/document/L0SourceSummary.jsonld#CreateL0SourceSummaryInput__member_maxExcerptLength",
|
|
320
|
+
"memberFieldName": "maxExcerptLength"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"constructorArguments": []
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { DocumentReader, ReadDocument, ReadOptions } from './DocumentReader';
|
|
2
|
+
export interface PaddleOcrClientReadInput {
|
|
3
|
+
fileUrl?: string;
|
|
4
|
+
filePath?: string;
|
|
5
|
+
token: string;
|
|
6
|
+
model: string;
|
|
7
|
+
pageRange?: string;
|
|
8
|
+
expectedUse?: string;
|
|
9
|
+
timeout?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PaddleOcrClientReadResult {
|
|
12
|
+
markdown?: string;
|
|
13
|
+
content?: string;
|
|
14
|
+
text?: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
pages?: unknown[];
|
|
17
|
+
}
|
|
18
|
+
export interface PaddleOcrClientLike {
|
|
19
|
+
readDocument(input: PaddleOcrClientReadInput): Promise<PaddleOcrClientReadResult>;
|
|
20
|
+
}
|
|
21
|
+
export interface PaddleOcrReaderOptions {
|
|
22
|
+
token: string;
|
|
23
|
+
model: string;
|
|
24
|
+
client: PaddleOcrClientLike;
|
|
25
|
+
defaultTimeout?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface PaddleOcrReadOptions extends ReadOptions {
|
|
28
|
+
pageRange?: string;
|
|
29
|
+
expectedUse?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class PaddleOcrReader implements DocumentReader {
|
|
32
|
+
protected readonly logger: import("global-logger-factory").Logger<unknown>;
|
|
33
|
+
private readonly token;
|
|
34
|
+
private readonly model;
|
|
35
|
+
private readonly client;
|
|
36
|
+
private readonly defaultTimeout;
|
|
37
|
+
constructor(options: PaddleOcrReaderOptions);
|
|
38
|
+
read(url: string, options?: PaddleOcrReadOptions): Promise<ReadDocument>;
|
|
39
|
+
supports(url: string): boolean;
|
|
40
|
+
}
|