@undefineds.co/xpod 0.4.15 → 0.4.17

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.
Files changed (861) hide show
  1. package/config/components-ignore.json +13 -8
  2. package/dist/api/ai-gateway/auth/CallerPodAccess.d.ts +17 -1
  3. package/dist/api/ai-gateway/auth/CallerPodAccess.js +23 -7
  4. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +9 -3
  5. package/dist/api/ai-gateway/pod/OwnerPodAccess.d.ts +61 -18
  6. package/dist/api/ai-gateway/pod/OwnerPodAccess.js +49 -99
  7. package/dist/api/ai-gateway/pod/PodInterfaceKeyStore.d.ts +2 -0
  8. package/dist/api/ai-gateway/pod/PodInterfaceKeyStore.js +5 -0
  9. package/dist/api/auth/ClientCredentialsAuthenticator.d.ts +5 -22
  10. package/dist/api/auth/ClientCredentialsAuthenticator.js +21 -89
  11. package/dist/api/auth/SolidSessionFactory.d.ts +81 -0
  12. package/dist/api/auth/SolidSessionFactory.js +184 -0
  13. package/dist/api/background-service-supervisor.d.ts +63 -0
  14. package/dist/api/background-service-supervisor.js +144 -0
  15. package/dist/api/chatkit/pod-store.d.ts +4 -0
  16. package/dist/api/chatkit/pod-store.js +10 -83
  17. package/dist/api/container/common.js +48 -6
  18. package/dist/api/container/index.d.ts +8 -0
  19. package/dist/api/container/index.js +23 -6
  20. package/dist/api/container/routes.js +24 -5
  21. package/dist/api/container/types.d.ts +32 -0
  22. package/dist/api/handlers/AiGatewayManagementHandler.d.ts +4 -4
  23. package/dist/api/handlers/AiGatewayManagementHandler.js +8 -10
  24. package/dist/api/handlers/ChatKitHandler.js +5 -0
  25. package/dist/api/handlers/ChatKitV1Handler.js +9 -8
  26. package/dist/api/handlers/NetworkSettingsHandler.d.ts +31 -1
  27. package/dist/api/handlers/NetworkSettingsHandler.js +76 -3
  28. package/dist/api/handlers/PodAccessFailureResponse.d.ts +24 -0
  29. package/dist/api/handlers/PodAccessFailureResponse.js +59 -0
  30. package/dist/api/handlers/PodSettingsHandler.d.ts +9 -1
  31. package/dist/api/handlers/PodSettingsHandler.js +3 -3
  32. package/dist/api/handlers/ReachabilityHandler.js +5 -0
  33. package/dist/api/handlers/TaskCredentialHandler.d.ts +19 -0
  34. package/dist/api/handlers/TaskCredentialHandler.js +198 -0
  35. package/dist/api/network/EndpointReachabilityProbe.d.ts +40 -0
  36. package/dist/api/network/EndpointReachabilityProbe.js +129 -0
  37. package/dist/api/runtime.d.ts +2 -0
  38. package/dist/api/runtime.js +70 -23
  39. package/dist/api/tasks/PodInterfaceKeyMigration.d.ts +27 -0
  40. package/dist/api/tasks/PodInterfaceKeyMigration.js +53 -0
  41. package/dist/api/tasks/TaskAuthBinding.d.ts +22 -0
  42. package/dist/api/tasks/TaskAuthBinding.js +57 -0
  43. package/dist/api/tasks/TaskCredentialDatabase.d.ts +23 -0
  44. package/dist/api/tasks/TaskCredentialDatabase.js +82 -0
  45. package/dist/api/tasks/TaskCredentialSchema.d.ts +471 -0
  46. package/dist/api/tasks/TaskCredentialSchema.js +92 -0
  47. package/dist/api/tasks/TaskCredentialStore.d.ts +129 -0
  48. package/dist/api/tasks/TaskCredentialStore.js +341 -0
  49. package/dist/api/tasks/index.d.ts +3 -0
  50. package/dist/api/tasks/index.js +17 -1
  51. package/dist/cli/commands/start.d.ts +11 -18
  52. package/dist/cli/commands/start.js +42 -38
  53. package/dist/cli/commands/stop.js +7 -1
  54. package/dist/components/components.jsonld +1 -0
  55. package/dist/components/context.jsonld +60 -0
  56. package/dist/dns/cloudflare/CloudflareDnsProvider.d.ts +10 -1
  57. package/dist/dns/cloudflare/CloudflareDnsProvider.js +59 -28
  58. package/dist/edge/EdgeNodeAgent.d.ts +5 -0
  59. package/dist/edge/EdgeNodeAgent.js +8 -0
  60. package/dist/edge/acme/AcmeCertificateManager.d.ts +24 -0
  61. package/dist/edge/acme/AcmeCertificateManager.js +75 -7
  62. package/dist/edge/acme/AcmeCertificateManager.jsonld +24 -0
  63. package/dist/edge/acme/CertificateRenewalScheduler.d.ts +67 -0
  64. package/dist/edge/acme/CertificateRenewalScheduler.js +116 -0
  65. package/dist/edge/frp/FrpcProcessManager.d.ts +16 -0
  66. package/dist/edge/frp/FrpcProcessManager.js +73 -13
  67. package/dist/edge/reachability/ManagedClientFetch.d.ts +2 -0
  68. package/dist/edge/reachability/ManagedClientFetch.js +24 -12
  69. package/dist/edge/reachability/ManagedClientFetch.jsonld +4 -0
  70. package/dist/edge/reachability/ManagedRouteSelector.d.ts +2 -0
  71. package/dist/edge/reachability/ManagedRouteSelector.js +7 -6
  72. package/dist/edge/reachability/ManagedRouteSelector.jsonld +4 -0
  73. package/dist/edge/reachability/P2PDataPlane.d.ts +67 -4
  74. package/dist/edge/reachability/P2PDataPlane.js +156 -15
  75. package/dist/edge/reachability/P2PDataPlane.jsonld +64 -0
  76. package/dist/edge/reachability/P2PDataPlaneCrypto.d.ts +42 -0
  77. package/dist/edge/reachability/P2PDataPlaneCrypto.js +113 -0
  78. package/dist/edge/reachability/P2PDataPlaneCrypto.jsonld +69 -0
  79. package/dist/edge/reachability/P2PSignalingClient.d.ts +2 -0
  80. package/dist/edge/reachability/P2PSignalingClient.js +1 -0
  81. package/dist/edge/reachability/P2PSignalingClient.jsonld +4 -0
  82. package/dist/edge/reachability/ReachabilitySessionService.d.ts +19 -0
  83. package/dist/edge/reachability/ReachabilitySessionService.js +122 -52
  84. package/dist/edge/reachability/ReachabilitySessionService.jsonld +26 -0
  85. package/dist/edge/reachability/RouteValidation.d.ts +29 -0
  86. package/dist/edge/reachability/RouteValidation.js +58 -0
  87. package/dist/edge/reachability/TcpP2PDataPlaneTransport.d.ts +28 -4
  88. package/dist/edge/reachability/TcpP2PDataPlaneTransport.js +540 -32
  89. package/dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld +51 -0
  90. package/dist/edge/reachability/TcpP2PSignalingSession.d.ts +7 -0
  91. package/dist/edge/reachability/TcpP2PSignalingSession.js +25 -1
  92. package/dist/edge/reachability/TcpP2PSignalingSession.jsonld +12 -0
  93. package/dist/edge/reachability/index.d.ts +1 -0
  94. package/dist/edge/reachability/index.js +1 -0
  95. package/dist/edge/reachability/types.d.ts +8 -0
  96. package/dist/edge/reachability/types.jsonld +8 -0
  97. package/dist/identity/drizzle/EdgeNodeRepository.d.ts +12 -0
  98. package/dist/identity/drizzle/EdgeNodeRepository.js +37 -0
  99. package/dist/identity/drizzle/PodInterfaceKeyRepository.d.ts +3 -0
  100. package/dist/identity/drizzle/PodInterfaceKeyRepository.js +11 -0
  101. package/dist/identity/drizzle/db.d.ts +8 -0
  102. package/dist/identity/drizzle/db.js +17 -0
  103. package/dist/runtime/GatewayAdminProxyAuth.d.ts +2 -2
  104. package/dist/runtime/Proxy.js +5 -2
  105. package/dist/runtime/css-process.d.ts +3 -3
  106. package/dist/runtime/index.d.ts +7 -1
  107. package/dist/runtime/index.js +21 -1
  108. package/dist/runtime/ingress-occupant.d.ts +39 -0
  109. package/dist/runtime/ingress-occupant.js +111 -0
  110. package/dist/runtime/ingress-port.d.ts +89 -0
  111. package/dist/runtime/ingress-port.js +165 -0
  112. package/dist/runtime/oidc-issuer.d.ts +9 -0
  113. package/dist/runtime/oidc-issuer.js +23 -0
  114. package/dist/runtime/port-finder.d.ts +27 -3
  115. package/dist/runtime/port-finder.js +52 -22
  116. package/dist/runtime/port-reservations.d.ts +86 -0
  117. package/dist/runtime/port-reservations.js +183 -0
  118. package/dist/runtime/safe-env.d.ts +1 -1
  119. package/dist/runtime/user-env.d.ts +2 -2
  120. package/dist/supervisor/Supervisor.d.ts +26 -3
  121. package/dist/supervisor/Supervisor.js +130 -23
  122. package/dist/supervisor/types.d.ts +14 -1
  123. package/dist/test-utils/local-managed-client-p2p-e2e-smoke.js +15 -0
  124. package/dist/tunnel/LocalTunnelProvider.d.ts +7 -0
  125. package/dist/tunnel/LocalTunnelProvider.js +11 -3
  126. package/dist/tunnel/LocalTunnelProvider.jsonld +39 -0
  127. package/dist/tunnel/NgrokTunnelProvider.d.ts +2 -0
  128. package/dist/tunnel/NgrokTunnelProvider.js +3 -1
  129. package/dist/tunnel/NgrokTunnelProvider.jsonld +39 -0
  130. package/dist/tunnel/SakuraFrpTunnelProvider.d.ts +3 -1
  131. package/dist/tunnel/SakuraFrpTunnelProvider.js +7 -3
  132. package/dist/tunnel/TunnelClientManager.d.ts +73 -0
  133. package/dist/tunnel/TunnelClientManager.js +181 -0
  134. package/dist/tunnel/TunnelClientResolver.d.ts +56 -0
  135. package/dist/tunnel/TunnelClientResolver.js +135 -0
  136. package/dist/tunnel/TunnelDeclaredOrigin.d.ts +78 -0
  137. package/dist/tunnel/TunnelDeclaredOrigin.js +185 -0
  138. package/dist/tunnel/TunnelLifecycle.d.ts +9 -1
  139. package/dist/tunnel/TunnelLifecycle.js +24 -3
  140. package/dist/tunnel/TunnelProviderCatalog.d.ts +32 -0
  141. package/dist/tunnel/TunnelProviderCatalog.js +43 -0
  142. package/node_modules/@undefineds.co/extensions/dist-cjs/adapters/langchain.js +49 -0
  143. package/node_modules/@undefineds.co/extensions/dist-cjs/adapters/llamaindex.js +54 -0
  144. package/node_modules/@undefineds.co/extensions/dist-cjs/index.js +22 -0
  145. package/node_modules/@undefineds.co/extensions/dist-cjs/package.json +3 -0
  146. package/node_modules/@undefineds.co/extensions/dist-cjs/paddleocr.js +304 -0
  147. package/node_modules/@undefineds.co/extensions/dist-cjs/reader.js +44 -0
  148. package/node_modules/@undefineds.co/extensions/dist-cjs/registry.js +99 -0
  149. package/node_modules/@undefineds.co/extensions/dist-cjs/types.js +2 -0
  150. package/node_modules/openid-client/types/index.d.ts +623 -0
  151. package/package.json +3 -2
  152. package/static/dashboard/assets/{AiConfigContext-rWx4TyiH.js → AiConfigContext-BedwuLTE.js} +1 -1
  153. package/static/dashboard/assets/{AiConfigPage-StVJpDFT.js → AiConfigPage-hNTayf8G.js} +1 -1
  154. package/static/dashboard/assets/{DocumentProcessingPanel-DJ5yul2O.js → DocumentProcessingPanel-BSb_vOj7.js} +1 -1
  155. package/static/dashboard/assets/IndexLifecyclePanel-DAHx-PBG.js +1 -0
  156. package/static/dashboard/assets/{IndexSubjectPanel-BVKcot1_.js → IndexSubjectPanel-Bv97-ouZ.js} +1 -1
  157. package/static/dashboard/assets/ModelAssignmentsPanel-CEJZs9At.js +1 -0
  158. package/static/dashboard/assets/{ModelsPage-CECBwmeO.js → ModelsPage-DkBVXmKT.js} +11 -11
  159. package/static/dashboard/assets/NetworkPage-BDqKgRZQ.js +2 -0
  160. package/static/dashboard/assets/{PaneListHeader-DIPe8pS6.js → PaneListHeader-ByqK_C6i.js} +1 -1
  161. package/static/dashboard/assets/{SearchIndexingPanel-lalFJ3c8.js → SearchIndexingPanel-M-WYaQP3.js} +1 -1
  162. package/static/dashboard/assets/{StatusSubjectPanel-CpY_KU-G.js → StatusSubjectPanel-DPegcFpA.js} +1 -1
  163. package/static/dashboard/assets/{StatusWorkspace-BwWCii3A.js → StatusWorkspace-CPIkjO9S.js} +1 -1
  164. package/static/dashboard/assets/{SystemSettingsPage-BKZxX-_n.js → SystemSettingsPage-LyXmd6uP.js} +1 -1
  165. package/static/dashboard/assets/{SystemSettingsSubjectPanel-BZrqb2C5.js → SystemSettingsSubjectPanel-CYHqNIn2.js} +1 -1
  166. package/static/dashboard/assets/{XpodAiConnectionsPodStore-Bbpx9dTN.js → XpodAiConnectionsPodStore-DXNERI2-.js} +1 -1
  167. package/static/dashboard/assets/{activity-BJ15TLVP.js → activity-BwRbcTha.js} +1 -1
  168. package/static/dashboard/assets/{ai-connections-GG6qkTJt.js → ai-connections-Dr4-rSzX.js} +1 -1
  169. package/static/dashboard/assets/{badge-BBX5FlaB.js → badge-BbRb9MsQ.js} +1 -1
  170. package/static/dashboard/assets/{collection-runtime-UBbHBzdf.js → collection-runtime-BRfZD5oS.js} +1 -1
  171. package/static/dashboard/assets/{dashboard-7Y6BHyV9.js → dashboard-D2ozrATv.js} +73 -73
  172. package/static/dashboard/assets/{dialog-QrOJ-hB0.js → dialog-BbRbILBP.js} +1 -1
  173. package/static/dashboard/assets/{download-DK9x-VOP.js → download-SIHe8Y5t.js} +1 -1
  174. package/static/dashboard/assets/{external-link-Cnkn87mJ.js → external-link-CiYw5Q4U.js} +1 -1
  175. package/static/dashboard/assets/{index-cIa8_efI.js → index-CExLoewO.js} +1 -1
  176. package/static/dashboard/assets/{index-B1z84it5.js → index-CTgU8YW1.js} +1 -1
  177. package/static/dashboard/assets/{index-DzjauX3N.js → index-DC1jRaVA.js} +1 -1
  178. package/static/dashboard/assets/{key-round-BoS6UqKz.js → key-round-nKtxP6pb.js} +1 -1
  179. package/static/dashboard/assets/{rotate-ccw-BeWV76i0.js → rotate-ccw-CQm5hHMN.js} +1 -1
  180. package/static/dashboard/assets/{skeleton-CypcJL07.js → skeleton-TKyLbiPs.js} +1 -1
  181. package/static/dashboard/assets/{waypoints-zHOOqfhi.js → waypoints-BQS9t0ky.js} +1 -1
  182. package/static/dashboard/assets/{workspace-layout-DZ9JuxnM.js → workspace-layout-Csbbr3vZ.js} +1 -1
  183. package/static/dashboard/dashboard.html +1 -1
  184. package/static/settings/assets/AiConfigContext-eLRkXFtH.js +1 -0
  185. package/static/settings/assets/AiConfigPage-BMO-ytdK.js +1 -0
  186. package/static/settings/assets/DocumentProcessingPanel-CH-HBRzQ.js +1 -0
  187. package/static/settings/assets/IndexLifecyclePanel-ChEMn9D8.js +1 -0
  188. package/static/settings/assets/IndexSubjectPanel-DT0c11VQ.js +1 -0
  189. package/static/settings/assets/ModelAssignmentsPanel-T59L_wOk.js +1 -0
  190. package/static/{auth-callback/assets/ModelsPage-Cim7cubp.js → settings/assets/ModelsPage-m_SP4PdE.js} +7 -7
  191. package/static/settings/assets/NetworkPage-D50kdbEu.js +2 -0
  192. package/static/settings/assets/PaneListHeader-Da5jZFvG.js +1 -0
  193. package/static/settings/assets/SearchIndexingPanel-DQQd3-Jw.js +1 -0
  194. package/static/settings/assets/StatusSubjectPanel-Upqqlvon.js +1 -0
  195. package/static/settings/assets/StatusWorkspace-CPB49bGd.js +1 -0
  196. package/static/settings/assets/{SystemSettingsPage-ChKvOioO.js → SystemSettingsPage-C0wrxcNw.js} +1 -1
  197. package/static/settings/assets/{SystemSettingsSubjectPanel-DyTpOnD2.js → SystemSettingsSubjectPanel-BOm7tUH1.js} +3 -3
  198. package/static/settings/assets/XpodAiConnectionsPodStore-nFgD_usD.js +3 -0
  199. package/static/settings/assets/activity-CWy1W2W0.js +1 -0
  200. package/static/settings/assets/auth-callback-HhgEuohz.js +1 -0
  201. package/static/settings/assets/badge-v30yFaaj.js +1 -0
  202. package/static/settings/assets/collection-runtime-B7oomxic.js +1 -0
  203. package/static/settings/assets/dialog-BAe7moyL.js +1 -0
  204. package/static/settings/assets/download-C3Dzb60R.js +1 -0
  205. package/static/settings/assets/external-link-DnkJGKNc.js +1 -0
  206. package/static/{auth-callback/assets/auth-callback-Ds-c62W3.js → settings/assets/global-B_WO-aYY.js} +95 -95
  207. package/static/settings/assets/{index-DOiwLF4B.js → index-B51ot_m_.js} +1 -1
  208. package/static/settings/assets/index-CHBQVfuZ.js +41 -0
  209. package/static/{auth-callback/assets/index-DwIlrIDG.js → settings/assets/index-DbqRFton.js} +1 -1
  210. package/static/settings/assets/{index-browser-DFFWN3Kr.js → index-browser-DzhsXZHm.js} +1 -1
  211. package/static/settings/assets/key-round-DoDbsLae.js +1 -0
  212. package/static/settings/assets/rotate-ccw-DNR_R3oT.js +1 -0
  213. package/static/settings/assets/settings-BOznrBjy.js +1 -0
  214. package/static/settings/assets/skeleton-BjHhu9qI.js +1 -0
  215. package/static/settings/assets/waypoints-BXNph9Fd.js +1 -0
  216. package/static/settings/assets/workspace-layout-TZ7fteel.js +1 -0
  217. package/static/settings/auth-callback.html +15 -0
  218. package/static/settings/settings.html +3 -2
  219. package/node_modules/@solid/access-token-verifier/node_modules/n3/browser/n3.min.js +0 -1
  220. package/node_modules/@solid/community-server/node_modules/n3/browser/n3.min.js +0 -1
  221. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/aggregates.d.ts +0 -19
  222. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/ast-to-sparql.d.ts +0 -66
  223. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/compile-time-types.d.ts +0 -40
  224. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/comunica-patch.d.ts +0 -2
  225. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/conflict-resolution.d.ts +0 -110
  226. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/composite-discovery.d.ts +0 -18
  227. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/index.d.ts +0 -7
  228. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/interop-discovery.d.ts +0 -36
  229. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/interop-tables.d.ts +0 -37
  230. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/interop-types.d.ts +0 -36
  231. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/provider-cache.d.ts +0 -99
  232. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/typeindex-discovery.d.ts +0 -32
  233. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/discovery/types.d.ts +0 -132
  234. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/exact-records.d.ts +0 -21
  235. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/index.d.ts +0 -14
  236. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/ldp-executor.d.ts +0 -76
  237. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/ldp-strategy.d.ts +0 -53
  238. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/pod-executor-types.d.ts +0 -9
  239. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/pod-executor.d.ts +0 -73
  240. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/sparql-strategy.d.ts +0 -31
  241. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/strategy-factory.d.ts +0 -42
  242. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/execution/types.d.ts +0 -85
  243. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/expressions.d.ts +0 -40
  244. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/federated/executor.d.ts +0 -98
  245. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/federated/index.d.ts +0 -3
  246. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/federated/types.d.ts +0 -69
  247. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/channels/base-channel.d.ts +0 -29
  248. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/channels/index.d.ts +0 -4
  249. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/channels/sse-channel.d.ts +0 -50
  250. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/channels/websocket-channel.d.ts +0 -16
  251. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/index.d.ts +0 -3
  252. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/notifications-client.d.ts +0 -88
  253. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/notifications/types.d.ts +0 -228
  254. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/order-by.d.ts +0 -9
  255. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/pod-database.d.ts +0 -548
  256. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/pod-dialect.d.ts +0 -324
  257. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/pod-discovery.d.ts +0 -20
  258. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/pod-session.d.ts +0 -52
  259. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/profile-manager.d.ts +0 -90
  260. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/default-id-template.d.ts +0 -10
  261. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/delete-query-builder.d.ts +0 -31
  262. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/helpers.d.ts +0 -11
  263. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/index.d.ts +0 -7
  264. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/insert-query-builder.d.ts +0 -37
  265. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/select-query-builder.d.ts +0 -150
  266. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/types.d.ts +0 -40
  267. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-builders/update-query-builder.d.ts +0 -34
  268. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-conditions.d.ts +0 -60
  269. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/query-where-policy.d.ts +0 -8
  270. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/rdf-constants.d.ts +0 -16
  271. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/rdf-schema-parser.d.ts +0 -34
  272. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/repository.d.ts +0 -78
  273. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-reference.d.ts +0 -31
  274. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/base-resolver.d.ts +0 -141
  275. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/document-resolver.d.ts +0 -36
  276. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/factory.d.ts +0 -27
  277. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/fragment-resolver.d.ts +0 -34
  278. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/index.d.ts +0 -11
  279. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/resource-resolver/types.d.ts +0 -57
  280. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/runtime/pod-runtime.d.ts +0 -60
  281. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/columns.d.ts +0 -74
  282. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/defs.d.ts +0 -101
  283. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/factories.d.ts +0 -29
  284. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/index.d.ts +0 -9
  285. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/pod-table.d.ts +0 -118
  286. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/relations.d.ts +0 -26
  287. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/solid-schema.d.ts +0 -22
  288. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/types.d.ts +0 -45
  289. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/schema/utils.d.ts +0 -15
  290. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/select-plan.d.ts +0 -50
  291. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/services/pod-services.d.ts +0 -43
  292. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/generator.d.ts +0 -12
  293. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/index.d.ts +0 -4
  294. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/manager.d.ts +0 -45
  295. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/shacl-parser.d.ts +0 -19
  296. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/shacl.d.ts +0 -11
  297. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/types.d.ts +0 -149
  298. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/shape/validator.d.ts +0 -11
  299. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/solid-n3-client.d.ts +0 -86
  300. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql/builder/expression-builder.d.ts +0 -56
  301. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql/builder/select-builder.d.ts +0 -44
  302. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql/builder/update-builder.d.ts +0 -33
  303. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql/helpers.d.ts +0 -19
  304. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql/types.d.ts +0 -10
  305. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql-engine.d.ts +0 -16
  306. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/sparql-executor.d.ts +0 -40
  307. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/subject/index.d.ts +0 -29
  308. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/subject/resolver.d.ts +0 -116
  309. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/subject/types.d.ts +0 -97
  310. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/builder.d.ts +0 -86
  311. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/array.d.ts +0 -23
  312. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/default.d.ts +0 -20
  313. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/index.d.ts +0 -35
  314. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/inline.d.ts +0 -35
  315. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/inverse.d.ts +0 -26
  316. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/handlers/uri.d.ts +0 -28
  317. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/index.d.ts +0 -9
  318. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/triple/types.d.ts +0 -156
  319. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/typeindex-manager.d.ts +0 -130
  320. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/types.d.ts +0 -57
  321. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/uri/index.d.ts +0 -8
  322. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/uri/resolver.d.ts +0 -153
  323. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/uri/types.d.ts +0 -154
  324. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/utils/debug-logger.d.ts +0 -19
  325. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/utils/origin-auth.d.ts +0 -28
  326. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/utils/pod-root.d.ts +0 -15
  327. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/core/zod-integration.d.ts +0 -97
  328. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/driver.d.ts +0 -60
  329. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/index.d.ts +0 -31
  330. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/pod.d.ts +0 -140
  331. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/solid.d.ts +0 -21
  332. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/test-utils/real-test-helpers.d.ts +0 -5
  333. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/types/sparql-types.d.ts +0 -27
  334. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/find-by-iri.d.ts +0 -11
  335. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/helpers.d.ts +0 -17
  336. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/namespace.d.ts +0 -4
  337. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/rdf-helpers.d.ts +0 -17
  338. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/rdf-validation.d.ts +0 -27
  339. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/thing-operations.d.ts +0 -28
  340. package/node_modules/@undefineds.co/drizzle-solid/dist/esm/utils/webid-resolver.d.ts +0 -23
  341. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/index.ts +0 -4
  342. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/locales/index.ts +0 -1
  343. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/mini/index.ts +0 -3
  344. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/ZodError.ts +0 -330
  345. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  346. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  347. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  348. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  349. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  350. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  351. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  352. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  353. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  354. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/errors.ts +0 -13
  355. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/external.ts +0 -6
  356. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  357. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  358. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  359. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  360. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  361. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/helpers/util.ts +0 -224
  362. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/index.ts +0 -4
  363. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/locales/en.ts +0 -124
  364. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/standard-schema.ts +0 -113
  365. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  366. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  367. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  368. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  369. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  370. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  371. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  372. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  373. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  374. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  375. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  376. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  377. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  378. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  379. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  380. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  381. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  382. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  383. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  384. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  385. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  386. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  387. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  388. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  389. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  390. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  391. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  392. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  393. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  394. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  395. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  396. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  397. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  398. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  399. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  400. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  401. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  402. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  403. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  404. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  405. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  406. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  407. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  408. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  409. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  410. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  411. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  412. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  413. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  414. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  415. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  416. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  417. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  418. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  419. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  420. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  421. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  422. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  423. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  424. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  425. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  426. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v3/types.ts +0 -5138
  427. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/checks.ts +0 -32
  428. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  429. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/compat.ts +0 -70
  430. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/errors.ts +0 -82
  431. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/external.ts +0 -52
  432. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  433. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/index.ts +0 -5
  434. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/iso.ts +0 -90
  435. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/parse.ts +0 -82
  436. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  437. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  438. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  439. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  440. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  441. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  442. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  443. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  444. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  445. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  446. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  447. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  448. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  449. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  450. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  451. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  452. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  453. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  454. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  455. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  456. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  457. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  458. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  459. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  460. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  461. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  462. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  463. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  464. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  465. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  466. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  467. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  468. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  469. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  470. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  471. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  472. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  473. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  474. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  475. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  476. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  477. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  478. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  479. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  480. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  481. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  482. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  483. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  484. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  485. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  486. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  487. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  488. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  489. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  490. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  491. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  492. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  493. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  494. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  495. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  496. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  497. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  498. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  499. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  500. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  501. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  502. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  503. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  504. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  505. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  506. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  507. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  508. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  509. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  510. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  511. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  512. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  513. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  514. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  515. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  516. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/api.ts +0 -1823
  517. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/checks.ts +0 -1293
  518. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/config.ts +0 -15
  519. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/core.ts +0 -153
  520. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/doc.ts +0 -44
  521. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/errors.ts +0 -455
  522. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/index.ts +0 -16
  523. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  524. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  525. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  526. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/parse.ts +0 -195
  527. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/regexes.ts +0 -190
  528. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/registries.ts +0 -105
  529. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  530. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  531. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  532. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  533. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  534. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  535. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  536. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  537. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  538. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  539. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  540. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  541. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  542. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  543. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  544. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  545. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  546. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  547. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/util.ts +0 -983
  548. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/versions.ts +0 -5
  549. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/core/zsf.ts +0 -323
  550. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/index.ts +0 -4
  551. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ar.ts +0 -115
  552. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/az.ts +0 -111
  553. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/be.ts +0 -176
  554. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/bg.ts +0 -128
  555. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ca.ts +0 -116
  556. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/cs.ts +0 -118
  557. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/da.ts +0 -123
  558. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/de.ts +0 -116
  559. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/el.ts +0 -121
  560. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/en.ts +0 -123
  561. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/eo.ts +0 -118
  562. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/es.ts +0 -141
  563. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/fa.ts +0 -126
  564. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/fi.ts +0 -121
  565. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  566. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/fr.ts +0 -132
  567. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/he.ts +0 -246
  568. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/hr.ts +0 -131
  569. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/hu.ts +0 -117
  570. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/hy.ts +0 -164
  571. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/id.ts +0 -115
  572. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/index.ts +0 -52
  573. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/is.ts +0 -119
  574. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/it.ts +0 -116
  575. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ja.ts +0 -114
  576. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ka.ts +0 -123
  577. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/kh.ts +0 -7
  578. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/km.ts +0 -119
  579. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ko.ts +0 -121
  580. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/lt.ts +0 -239
  581. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/mk.ts +0 -118
  582. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ms.ts +0 -115
  583. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/nl.ts +0 -121
  584. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/no.ts +0 -116
  585. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ota.ts +0 -117
  586. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/pl.ts +0 -118
  587. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ps.ts +0 -126
  588. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/pt.ts +0 -116
  589. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ro.ts +0 -129
  590. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ru.ts +0 -176
  591. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/sl.ts +0 -118
  592. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/sv.ts +0 -119
  593. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ta.ts +0 -118
  594. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/th.ts +0 -119
  595. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/tr.ts +0 -111
  596. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ua.ts +0 -7
  597. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/uk.ts +0 -117
  598. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/ur.ts +0 -119
  599. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/uz.ts +0 -117
  600. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/vi.ts +0 -117
  601. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/yo.ts +0 -124
  602. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  603. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  604. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/checks.ts +0 -32
  605. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  606. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/external.ts +0 -41
  607. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/index.ts +0 -3
  608. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/iso.ts +0 -66
  609. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/parse.ts +0 -14
  610. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  611. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  612. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  613. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  614. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  615. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  616. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  617. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  618. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  619. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  620. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  621. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  622. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  623. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  624. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  625. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  626. package/node_modules/@undefineds.co/drizzle-solid/node_modules/zod/src/v4-mini/index.ts +0 -3
  627. package/node_modules/@undefineds.co/models/node_modules/n3/browser/n3.min.js +0 -1
  628. package/node_modules/jose/dist/browser/index.js +0 -30
  629. package/node_modules/jose/dist/browser/jwe/compact/decrypt.js +0 -27
  630. package/node_modules/jose/dist/browser/jwe/compact/encrypt.js +0 -26
  631. package/node_modules/jose/dist/browser/jwe/flattened/decrypt.js +0 -161
  632. package/node_modules/jose/dist/browser/jwe/flattened/encrypt.js +0 -153
  633. package/node_modules/jose/dist/browser/jwe/general/decrypt.js +0 -31
  634. package/node_modules/jose/dist/browser/jwe/general/encrypt.js +0 -174
  635. package/node_modules/jose/dist/browser/jwk/embedded.js +0 -17
  636. package/node_modules/jose/dist/browser/jwk/thumbprint.js +0 -53
  637. package/node_modules/jose/dist/browser/jwks/local.js +0 -124
  638. package/node_modules/jose/dist/browser/jwks/remote.js +0 -139
  639. package/node_modules/jose/dist/browser/jws/compact/sign.js +0 -17
  640. package/node_modules/jose/dist/browser/jws/compact/verify.js +0 -21
  641. package/node_modules/jose/dist/browser/jws/flattened/sign.js +0 -81
  642. package/node_modules/jose/dist/browser/jws/flattened/verify.js +0 -122
  643. package/node_modules/jose/dist/browser/jws/general/sign.js +0 -67
  644. package/node_modules/jose/dist/browser/jws/general/verify.js +0 -24
  645. package/node_modules/jose/dist/browser/jwt/decrypt.js +0 -23
  646. package/node_modules/jose/dist/browser/jwt/encrypt.js +0 -68
  647. package/node_modules/jose/dist/browser/jwt/produce.js +0 -75
  648. package/node_modules/jose/dist/browser/jwt/sign.js +0 -20
  649. package/node_modules/jose/dist/browser/jwt/unsecured.js +0 -32
  650. package/node_modules/jose/dist/browser/jwt/verify.js +0 -15
  651. package/node_modules/jose/dist/browser/key/export.js +0 -12
  652. package/node_modules/jose/dist/browser/key/generate_key_pair.js +0 -4
  653. package/node_modules/jose/dist/browser/key/generate_secret.js +0 -4
  654. package/node_modules/jose/dist/browser/key/import.js +0 -45
  655. package/node_modules/jose/dist/browser/lib/aesgcmkw.js +0 -16
  656. package/node_modules/jose/dist/browser/lib/buffer_utils.js +0 -51
  657. package/node_modules/jose/dist/browser/lib/cek.js +0 -20
  658. package/node_modules/jose/dist/browser/lib/check_iv_length.js +0 -8
  659. package/node_modules/jose/dist/browser/lib/check_key_type.js +0 -77
  660. package/node_modules/jose/dist/browser/lib/check_p2s.js +0 -6
  661. package/node_modules/jose/dist/browser/lib/crypto_key.js +0 -157
  662. package/node_modules/jose/dist/browser/lib/decrypt_key_management.js +0 -129
  663. package/node_modules/jose/dist/browser/lib/encrypt_key_management.js +0 -89
  664. package/node_modules/jose/dist/browser/lib/epoch.js +0 -1
  665. package/node_modules/jose/dist/browser/lib/format_pem.js +0 -4
  666. package/node_modules/jose/dist/browser/lib/invalid_key_input.js +0 -31
  667. package/node_modules/jose/dist/browser/lib/is_disjoint.js +0 -22
  668. package/node_modules/jose/dist/browser/lib/is_jwk.js +0 -13
  669. package/node_modules/jose/dist/browser/lib/is_object.js +0 -16
  670. package/node_modules/jose/dist/browser/lib/iv.js +0 -20
  671. package/node_modules/jose/dist/browser/lib/jwt_claims_set.js +0 -104
  672. package/node_modules/jose/dist/browser/lib/private_symbols.js +0 -1
  673. package/node_modules/jose/dist/browser/lib/secs.js +0 -55
  674. package/node_modules/jose/dist/browser/lib/validate_algorithms.js +0 -11
  675. package/node_modules/jose/dist/browser/lib/validate_crit.js +0 -34
  676. package/node_modules/jose/dist/browser/package.json +0 -1
  677. package/node_modules/jose/dist/browser/runtime/aeskw.js +0 -32
  678. package/node_modules/jose/dist/browser/runtime/asn1.js +0 -205
  679. package/node_modules/jose/dist/browser/runtime/base64url.js +0 -37
  680. package/node_modules/jose/dist/browser/runtime/bogus.js +0 -6
  681. package/node_modules/jose/dist/browser/runtime/check_cek_length.js +0 -8
  682. package/node_modules/jose/dist/browser/runtime/check_key_length.js +0 -8
  683. package/node_modules/jose/dist/browser/runtime/decrypt.js +0 -91
  684. package/node_modules/jose/dist/browser/runtime/digest.js +0 -6
  685. package/node_modules/jose/dist/browser/runtime/ecdhes.js +0 -47
  686. package/node_modules/jose/dist/browser/runtime/encrypt.js +0 -76
  687. package/node_modules/jose/dist/browser/runtime/fetch_jwks.js +0 -34
  688. package/node_modules/jose/dist/browser/runtime/generate.js +0 -143
  689. package/node_modules/jose/dist/browser/runtime/get_sign_verify_key.js +0 -24
  690. package/node_modules/jose/dist/browser/runtime/is_key_like.js +0 -8
  691. package/node_modules/jose/dist/browser/runtime/jwk_to_key.js +0 -104
  692. package/node_modules/jose/dist/browser/runtime/key_to_jwk.js +0 -21
  693. package/node_modules/jose/dist/browser/runtime/normalize_key.js +0 -68
  694. package/node_modules/jose/dist/browser/runtime/pbes2kw.js +0 -51
  695. package/node_modules/jose/dist/browser/runtime/random.js +0 -2
  696. package/node_modules/jose/dist/browser/runtime/rsaes.js +0 -37
  697. package/node_modules/jose/dist/browser/runtime/runtime.js +0 -1
  698. package/node_modules/jose/dist/browser/runtime/sign.js +0 -11
  699. package/node_modules/jose/dist/browser/runtime/subtle_dsa.js +0 -28
  700. package/node_modules/jose/dist/browser/runtime/subtle_rsaes.js +0 -12
  701. package/node_modules/jose/dist/browser/runtime/timing_safe_equal.js +0 -19
  702. package/node_modules/jose/dist/browser/runtime/verify.js +0 -16
  703. package/node_modules/jose/dist/browser/runtime/webcrypto.js +0 -2
  704. package/node_modules/jose/dist/browser/util/base64url.js +0 -3
  705. package/node_modules/jose/dist/browser/util/decode_jwt.js +0 -32
  706. package/node_modules/jose/dist/browser/util/decode_protected_header.js +0 -34
  707. package/node_modules/jose/dist/browser/util/errors.js +0 -114
  708. package/node_modules/jose/dist/browser/util/runtime.js +0 -2
  709. package/node_modules/openid-client/node_modules/jose/dist/browser/index.js +0 -32
  710. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/compact/decrypt.js +0 -27
  711. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/compact/encrypt.js +0 -26
  712. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/flattened/decrypt.js +0 -166
  713. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/flattened/encrypt.js +0 -175
  714. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/general/decrypt.js +0 -31
  715. package/node_modules/openid-client/node_modules/jose/dist/browser/jwe/general/encrypt.js +0 -178
  716. package/node_modules/openid-client/node_modules/jose/dist/browser/jwk/embedded.js +0 -17
  717. package/node_modules/openid-client/node_modules/jose/dist/browser/jwk/thumbprint.js +0 -53
  718. package/node_modules/openid-client/node_modules/jose/dist/browser/jwks/local.js +0 -116
  719. package/node_modules/openid-client/node_modules/jose/dist/browser/jwks/remote.js +0 -76
  720. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/compact/sign.js +0 -17
  721. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/compact/verify.js +0 -21
  722. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/flattened/sign.js +0 -81
  723. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/flattened/verify.js +0 -115
  724. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/general/sign.js +0 -67
  725. package/node_modules/openid-client/node_modules/jose/dist/browser/jws/general/verify.js +0 -24
  726. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/decrypt.js +0 -23
  727. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/encrypt.js +0 -68
  728. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/produce.js +0 -54
  729. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/sign.js +0 -21
  730. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/unsecured.js +0 -32
  731. package/node_modules/openid-client/node_modules/jose/dist/browser/jwt/verify.js +0 -16
  732. package/node_modules/openid-client/node_modules/jose/dist/browser/key/export.js +0 -12
  733. package/node_modules/openid-client/node_modules/jose/dist/browser/key/generate_key_pair.js +0 -4
  734. package/node_modules/openid-client/node_modules/jose/dist/browser/key/generate_secret.js +0 -4
  735. package/node_modules/openid-client/node_modules/jose/dist/browser/key/import.js +0 -50
  736. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/aesgcmkw.js +0 -14
  737. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/buffer_utils.js +0 -51
  738. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/cek.js +0 -20
  739. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/check_iv_length.js +0 -8
  740. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/check_key_type.js +0 -45
  741. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/check_p2s.js +0 -6
  742. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/crypto_key.js +0 -152
  743. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/decrypt_key_management.js +0 -127
  744. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/encrypt_key_management.js +0 -87
  745. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/epoch.js +0 -1
  746. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/format_pem.js +0 -4
  747. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/invalid_key_input.js +0 -30
  748. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/is_disjoint.js +0 -22
  749. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/is_object.js +0 -16
  750. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/iv.js +0 -20
  751. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/jwt_claims_set.js +0 -102
  752. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/secs.js +0 -44
  753. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/validate_algorithms.js +0 -11
  754. package/node_modules/openid-client/node_modules/jose/dist/browser/lib/validate_crit.js +0 -34
  755. package/node_modules/openid-client/node_modules/jose/dist/browser/package.json +0 -1
  756. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/aeskw.js +0 -32
  757. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/asn1.js +0 -202
  758. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/base64url.js +0 -37
  759. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/bogus.js +0 -6
  760. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/check_cek_length.js +0 -8
  761. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/check_key_length.js +0 -8
  762. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/decrypt.js +0 -85
  763. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/digest.js +0 -6
  764. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/ecdhes.js +0 -46
  765. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/encrypt.js +0 -68
  766. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/fetch_jwks.js +0 -34
  767. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/generate.js +0 -141
  768. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/get_sign_verify_key.js +0 -17
  769. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/is_key_like.js +0 -5
  770. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/jwk_to_key.js +0 -143
  771. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/key_to_jwk.js +0 -21
  772. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/pbes2kw.js +0 -51
  773. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/random.js +0 -2
  774. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/rsaes.js +0 -37
  775. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/runtime.js +0 -1
  776. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/sign.js +0 -11
  777. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/subtle_dsa.js +0 -26
  778. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/subtle_rsaes.js +0 -12
  779. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/timing_safe_equal.js +0 -19
  780. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/verify.js +0 -16
  781. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/webcrypto.js +0 -2
  782. package/node_modules/openid-client/node_modules/jose/dist/browser/runtime/zlib.js +0 -7
  783. package/node_modules/openid-client/node_modules/jose/dist/browser/util/base64url.js +0 -3
  784. package/node_modules/openid-client/node_modules/jose/dist/browser/util/decode_jwt.js +0 -32
  785. package/node_modules/openid-client/node_modules/jose/dist/browser/util/decode_protected_header.js +0 -34
  786. package/node_modules/openid-client/node_modules/jose/dist/browser/util/errors.js +0 -158
  787. package/node_modules/openid-client/node_modules/jose/dist/browser/util/runtime.js +0 -2
  788. package/static/auth-callback/assets/AiConfigContext-Bx0HCAW5.js +0 -1
  789. package/static/auth-callback/assets/AiConfigPage-ChQImMbm.js +0 -1
  790. package/static/auth-callback/assets/DocumentProcessingPanel-D830H4SH.js +0 -1
  791. package/static/auth-callback/assets/IndexLifecyclePanel-CnlkjMF8.js +0 -1
  792. package/static/auth-callback/assets/IndexSubjectPanel-CdEfg_CO.js +0 -1
  793. package/static/auth-callback/assets/ModelAssignmentsPanel-D-8A8dZx.js +0 -1
  794. package/static/auth-callback/assets/NetworkPage-CfK3x-pb.js +0 -2
  795. package/static/auth-callback/assets/PaneListHeader-Bf_kEd4U.js +0 -1
  796. package/static/auth-callback/assets/SearchIndexingPanel-4kD4RBEQ.js +0 -1
  797. package/static/auth-callback/assets/StatusSubjectPanel-Bw9AiTSf.js +0 -1
  798. package/static/auth-callback/assets/StatusWorkspace-C-301H-0.js +0 -1
  799. package/static/auth-callback/assets/SystemSettingsPage-BbWn-eG6.js +0 -1
  800. package/static/auth-callback/assets/SystemSettingsSubjectPanel-DA4wvNSm.js +0 -33
  801. package/static/auth-callback/assets/XpodAiConnectionsPodStore-CohdyLoX.js +0 -3
  802. package/static/auth-callback/assets/activity-CCsb9Oam.js +0 -1
  803. package/static/auth-callback/assets/admin-C6qCRFiY.js +0 -1
  804. package/static/auth-callback/assets/ai-connections-DexTPyfC.js +0 -1
  805. package/static/auth-callback/assets/badge-CQm5OyzR.js +0 -1
  806. package/static/auth-callback/assets/collection-runtime-DlAuU5TW.js +0 -1
  807. package/static/auth-callback/assets/dialog-CnGzg5Ff.js +0 -1
  808. package/static/auth-callback/assets/download-DwMONJvm.js +0 -1
  809. package/static/auth-callback/assets/external-link-Bu5AGqCO.js +0 -1
  810. package/static/auth-callback/assets/index-B0T-1YO8.js +0 -41
  811. package/static/auth-callback/assets/index-C8QZf_4W.js +0 -1
  812. package/static/auth-callback/assets/index-browser-lRsMcP_7.js +0 -273
  813. package/static/auth-callback/assets/key-round-BDMtU57P.js +0 -1
  814. package/static/auth-callback/assets/layout-DB3pMyTl.js +0 -1
  815. package/static/auth-callback/assets/pod-collections-host-KnnGFZHL.js +0 -8
  816. package/static/auth-callback/assets/rotate-ccw-CoKIGCsQ.js +0 -1
  817. package/static/auth-callback/assets/settings-projection-CUkyprDQ.js +0 -1
  818. package/static/auth-callback/assets/skeleton-CPoSWHDr.js +0 -1
  819. package/static/auth-callback/assets/waypoints-BeYHxqHv.js +0 -1
  820. package/static/auth-callback/assets/workspace-layout-xA5YxiK3.js +0 -1
  821. package/static/auth-callback/auth-callback.html +0 -14
  822. package/static/auth-callback/auth.html +0 -19
  823. package/static/auth-callback/reachability.html +0 -221
  824. package/static/auth-callback/reachability.svg +0 -7
  825. package/static/auth-callback/reachability.webmanifest +0 -18
  826. package/static/auth-callback/signal-pod.html +0 -293
  827. package/static/auth-callback/theme-init.js +0 -18
  828. package/static/auth-callback/vite.svg +0 -1
  829. package/static/auth-callback/xpod-desktop-client.json +0 -19
  830. package/static/dashboard/assets/IndexLifecyclePanel-CpjtgezK.js +0 -1
  831. package/static/dashboard/assets/ModelAssignmentsPanel-BxVgWZPc.js +0 -1
  832. package/static/dashboard/assets/NetworkPage-zQgFscEW.js +0 -2
  833. package/static/settings/assets/AiConfigContext-D3b1l_Kw.js +0 -1
  834. package/static/settings/assets/AiConfigPage-DYKw-atP.js +0 -1
  835. package/static/settings/assets/DocumentProcessingPanel-DguRfsIV.js +0 -1
  836. package/static/settings/assets/IndexLifecyclePanel-B85qJJA4.js +0 -1
  837. package/static/settings/assets/IndexSubjectPanel-CsN7IxaV.js +0 -1
  838. package/static/settings/assets/ModelAssignmentsPanel-DEp9byI6.js +0 -1
  839. package/static/settings/assets/ModelsPage-CzTnPs_G.js +0 -11
  840. package/static/settings/assets/NetworkPage-BDVnmUU0.js +0 -2
  841. package/static/settings/assets/PaneListHeader-Cpe39N76.js +0 -1
  842. package/static/settings/assets/SearchIndexingPanel-DA9w8lLL.js +0 -1
  843. package/static/settings/assets/StatusSubjectPanel-BU0Aq0CS.js +0 -1
  844. package/static/settings/assets/StatusWorkspace-D1AC1i5N.js +0 -1
  845. package/static/settings/assets/XpodAiConnectionsPodStore-VU5Bsz1a.js +0 -3
  846. package/static/settings/assets/activity-DGpLfsQB.js +0 -1
  847. package/static/settings/assets/badge-_hCrrWRP.js +0 -1
  848. package/static/settings/assets/collection-runtime-E40TZ8Cl.js +0 -1
  849. package/static/settings/assets/dialog-DTr2JkHn.js +0 -1
  850. package/static/settings/assets/download-B_D21DDX.js +0 -1
  851. package/static/settings/assets/external-link-BATYaM13.js +0 -1
  852. package/static/settings/assets/index-BAlAVi-J.js +0 -4
  853. package/static/settings/assets/index-Ckh4h9jj.js +0 -41
  854. package/static/settings/assets/key-round-ZTVU_1O1.js +0 -1
  855. package/static/settings/assets/rotate-ccw-DDdw8PTU.js +0 -1
  856. package/static/settings/assets/settings-CyLnISOv.js +0 -306
  857. package/static/settings/assets/settings-rk080mvG.css +0 -1
  858. package/static/settings/assets/skeleton-DEzA3hc2.js +0 -1
  859. package/static/settings/assets/waypoints-BSdfNvEb.js +0 -1
  860. package/static/settings/assets/workspace-layout-BOQnl_3d.js +0 -1
  861. /package/static/{auth-callback/assets/auth-callback-rk080mvG.css → settings/assets/global-rk080mvG.css} +0 -0
@@ -1,11 +0,0 @@
1
- import subtleAlgorithm from './subtle_dsa.js';
2
- import crypto from './webcrypto.js';
3
- import checkKeyLength from './check_key_length.js';
4
- import getSignKey from './get_sign_verify_key.js';
5
- const sign = async (alg, key, data) => {
6
- const cryptoKey = await getSignKey(alg, key, 'sign');
7
- checkKeyLength(alg, cryptoKey);
8
- const signature = await crypto.subtle.sign(subtleAlgorithm(alg, cryptoKey.algorithm), cryptoKey, data);
9
- return new Uint8Array(signature);
10
- };
11
- export default sign;
@@ -1,26 +0,0 @@
1
- import { JOSENotSupported } from '../util/errors.js';
2
- export default function subtleDsa(alg, algorithm) {
3
- const hash = `SHA-${alg.slice(-3)}`;
4
- switch (alg) {
5
- case 'HS256':
6
- case 'HS384':
7
- case 'HS512':
8
- return { hash, name: 'HMAC' };
9
- case 'PS256':
10
- case 'PS384':
11
- case 'PS512':
12
- return { hash, name: 'RSA-PSS', saltLength: alg.slice(-3) >> 3 };
13
- case 'RS256':
14
- case 'RS384':
15
- case 'RS512':
16
- return { hash, name: 'RSASSA-PKCS1-v1_5' };
17
- case 'ES256':
18
- case 'ES384':
19
- case 'ES512':
20
- return { hash, name: 'ECDSA', namedCurve: algorithm.namedCurve };
21
- case 'EdDSA':
22
- return { name: algorithm.name };
23
- default:
24
- throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);
25
- }
26
- }
@@ -1,12 +0,0 @@
1
- import { JOSENotSupported } from '../util/errors.js';
2
- export default function subtleRsaEs(alg) {
3
- switch (alg) {
4
- case 'RSA-OAEP':
5
- case 'RSA-OAEP-256':
6
- case 'RSA-OAEP-384':
7
- case 'RSA-OAEP-512':
8
- return 'RSA-OAEP';
9
- default:
10
- throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);
11
- }
12
- }
@@ -1,19 +0,0 @@
1
- const timingSafeEqual = (a, b) => {
2
- if (!(a instanceof Uint8Array)) {
3
- throw new TypeError('First argument must be a buffer');
4
- }
5
- if (!(b instanceof Uint8Array)) {
6
- throw new TypeError('Second argument must be a buffer');
7
- }
8
- if (a.length !== b.length) {
9
- throw new TypeError('Input buffers must have the same length');
10
- }
11
- const len = a.length;
12
- let out = 0;
13
- let i = -1;
14
- while (++i < len) {
15
- out |= a[i] ^ b[i];
16
- }
17
- return out === 0;
18
- };
19
- export default timingSafeEqual;
@@ -1,16 +0,0 @@
1
- import subtleAlgorithm from './subtle_dsa.js';
2
- import crypto from './webcrypto.js';
3
- import checkKeyLength from './check_key_length.js';
4
- import getVerifyKey from './get_sign_verify_key.js';
5
- const verify = async (alg, key, signature, data) => {
6
- const cryptoKey = await getVerifyKey(alg, key, 'verify');
7
- checkKeyLength(alg, cryptoKey);
8
- const algorithm = subtleAlgorithm(alg, cryptoKey.algorithm);
9
- try {
10
- return await crypto.subtle.verify(algorithm, cryptoKey, signature, data);
11
- }
12
- catch (_a) {
13
- return false;
14
- }
15
- };
16
- export default verify;
@@ -1,2 +0,0 @@
1
- export default crypto;
2
- export const isCryptoKey = (key) => key instanceof CryptoKey;
@@ -1,7 +0,0 @@
1
- import { JOSENotSupported } from '../util/errors.js';
2
- export const inflate = async () => {
3
- throw new JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.');
4
- };
5
- export const deflate = async () => {
6
- throw new JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.');
7
- };
@@ -1,3 +0,0 @@
1
- import * as base64url from '../runtime/base64url.js';
2
- export const encode = base64url.encode;
3
- export const decode = base64url.decode;
@@ -1,32 +0,0 @@
1
- import { decode as base64url } from './base64url.js';
2
- import { decoder } from '../lib/buffer_utils.js';
3
- import isObject from '../lib/is_object.js';
4
- import { JWTInvalid } from './errors.js';
5
- export function decodeJwt(jwt) {
6
- if (typeof jwt !== 'string')
7
- throw new JWTInvalid('JWTs must use Compact JWS serialization, JWT must be a string');
8
- const { 1: payload, length } = jwt.split('.');
9
- if (length === 5)
10
- throw new JWTInvalid('Only JWTs using Compact JWS serialization can be decoded');
11
- if (length !== 3)
12
- throw new JWTInvalid('Invalid JWT');
13
- if (!payload)
14
- throw new JWTInvalid('JWTs must contain a payload');
15
- let decoded;
16
- try {
17
- decoded = base64url(payload);
18
- }
19
- catch (_a) {
20
- throw new JWTInvalid('Failed to base64url decode the payload');
21
- }
22
- let result;
23
- try {
24
- result = JSON.parse(decoder.decode(decoded));
25
- }
26
- catch (_b) {
27
- throw new JWTInvalid('Failed to parse the decoded payload as JSON');
28
- }
29
- if (!isObject(result))
30
- throw new JWTInvalid('Invalid JWT Claims Set');
31
- return result;
32
- }
@@ -1,34 +0,0 @@
1
- import { decode as base64url } from './base64url.js';
2
- import { decoder } from '../lib/buffer_utils.js';
3
- import isObject from '../lib/is_object.js';
4
- export function decodeProtectedHeader(token) {
5
- let protectedB64u;
6
- if (typeof token === 'string') {
7
- const parts = token.split('.');
8
- if (parts.length === 3 || parts.length === 5) {
9
- ;
10
- [protectedB64u] = parts;
11
- }
12
- }
13
- else if (typeof token === 'object' && token) {
14
- if ('protected' in token) {
15
- protectedB64u = token.protected;
16
- }
17
- else {
18
- throw new TypeError('Token does not contain a Protected Header');
19
- }
20
- }
21
- try {
22
- if (typeof protectedB64u !== 'string' || !protectedB64u) {
23
- throw new Error();
24
- }
25
- const result = JSON.parse(decoder.decode(base64url(protectedB64u)));
26
- if (!isObject(result)) {
27
- throw new Error();
28
- }
29
- return result;
30
- }
31
- catch (_a) {
32
- throw new TypeError('Invalid Token or Protected Header formatting');
33
- }
34
- }
@@ -1,158 +0,0 @@
1
- export class JOSEError extends Error {
2
- static get code() {
3
- return 'ERR_JOSE_GENERIC';
4
- }
5
- constructor(message) {
6
- var _a;
7
- super(message);
8
- this.code = 'ERR_JOSE_GENERIC';
9
- this.name = this.constructor.name;
10
- (_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(Error, this, this.constructor);
11
- }
12
- }
13
- export class JWTClaimValidationFailed extends JOSEError {
14
- static get code() {
15
- return 'ERR_JWT_CLAIM_VALIDATION_FAILED';
16
- }
17
- constructor(message, claim = 'unspecified', reason = 'unspecified') {
18
- super(message);
19
- this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';
20
- this.claim = claim;
21
- this.reason = reason;
22
- }
23
- }
24
- export class JWTExpired extends JOSEError {
25
- static get code() {
26
- return 'ERR_JWT_EXPIRED';
27
- }
28
- constructor(message, claim = 'unspecified', reason = 'unspecified') {
29
- super(message);
30
- this.code = 'ERR_JWT_EXPIRED';
31
- this.claim = claim;
32
- this.reason = reason;
33
- }
34
- }
35
- export class JOSEAlgNotAllowed extends JOSEError {
36
- constructor() {
37
- super(...arguments);
38
- this.code = 'ERR_JOSE_ALG_NOT_ALLOWED';
39
- }
40
- static get code() {
41
- return 'ERR_JOSE_ALG_NOT_ALLOWED';
42
- }
43
- }
44
- export class JOSENotSupported extends JOSEError {
45
- constructor() {
46
- super(...arguments);
47
- this.code = 'ERR_JOSE_NOT_SUPPORTED';
48
- }
49
- static get code() {
50
- return 'ERR_JOSE_NOT_SUPPORTED';
51
- }
52
- }
53
- export class JWEDecryptionFailed extends JOSEError {
54
- constructor() {
55
- super(...arguments);
56
- this.code = 'ERR_JWE_DECRYPTION_FAILED';
57
- this.message = 'decryption operation failed';
58
- }
59
- static get code() {
60
- return 'ERR_JWE_DECRYPTION_FAILED';
61
- }
62
- }
63
- export class JWEDecompressionFailed extends JOSEError {
64
- constructor() {
65
- super(...arguments);
66
- this.code = 'ERR_JWE_DECOMPRESSION_FAILED';
67
- this.message = 'decompression operation failed';
68
- }
69
- static get code() {
70
- return 'ERR_JWE_DECOMPRESSION_FAILED';
71
- }
72
- }
73
- export class JWEInvalid extends JOSEError {
74
- constructor() {
75
- super(...arguments);
76
- this.code = 'ERR_JWE_INVALID';
77
- }
78
- static get code() {
79
- return 'ERR_JWE_INVALID';
80
- }
81
- }
82
- export class JWSInvalid extends JOSEError {
83
- constructor() {
84
- super(...arguments);
85
- this.code = 'ERR_JWS_INVALID';
86
- }
87
- static get code() {
88
- return 'ERR_JWS_INVALID';
89
- }
90
- }
91
- export class JWTInvalid extends JOSEError {
92
- constructor() {
93
- super(...arguments);
94
- this.code = 'ERR_JWT_INVALID';
95
- }
96
- static get code() {
97
- return 'ERR_JWT_INVALID';
98
- }
99
- }
100
- export class JWKInvalid extends JOSEError {
101
- constructor() {
102
- super(...arguments);
103
- this.code = 'ERR_JWK_INVALID';
104
- }
105
- static get code() {
106
- return 'ERR_JWK_INVALID';
107
- }
108
- }
109
- export class JWKSInvalid extends JOSEError {
110
- constructor() {
111
- super(...arguments);
112
- this.code = 'ERR_JWKS_INVALID';
113
- }
114
- static get code() {
115
- return 'ERR_JWKS_INVALID';
116
- }
117
- }
118
- export class JWKSNoMatchingKey extends JOSEError {
119
- constructor() {
120
- super(...arguments);
121
- this.code = 'ERR_JWKS_NO_MATCHING_KEY';
122
- this.message = 'no applicable key found in the JSON Web Key Set';
123
- }
124
- static get code() {
125
- return 'ERR_JWKS_NO_MATCHING_KEY';
126
- }
127
- }
128
- export class JWKSMultipleMatchingKeys extends JOSEError {
129
- constructor() {
130
- super(...arguments);
131
- this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
132
- this.message = 'multiple matching keys found in the JSON Web Key Set';
133
- }
134
- static get code() {
135
- return 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';
136
- }
137
- }
138
- Symbol.asyncIterator;
139
- export class JWKSTimeout extends JOSEError {
140
- constructor() {
141
- super(...arguments);
142
- this.code = 'ERR_JWKS_TIMEOUT';
143
- this.message = 'request timed out';
144
- }
145
- static get code() {
146
- return 'ERR_JWKS_TIMEOUT';
147
- }
148
- }
149
- export class JWSSignatureVerificationFailed extends JOSEError {
150
- constructor() {
151
- super(...arguments);
152
- this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
153
- this.message = 'signature verification failed';
154
- }
155
- static get code() {
156
- return 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';
157
- }
158
- }
@@ -1,2 +0,0 @@
1
- import value from '../runtime/runtime.js';
2
- export default value;
@@ -1 +0,0 @@
1
- import{u as J,r as a,j as V,p as X}from"./auth-callback-Ds-c62W3.js";import{a as $}from"./ai-connections-DexTPyfC.js";import{d as D}from"./XpodAiConnectionsPodStore-CohdyLoX.js";async function R(t){return k(t(h("/api/ai/config"),{method:"GET",credentials:"include",headers:{accept:"application/json"}}))}async function G(t,e){return k(t(h("/api/ai/config"),{method:"PATCH",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(e)}))}async function H(t,e){const o=await t(h("/api/ai/config/rebuild"),{method:"POST",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify({target:e})}),s=await o.json().catch(()=>{});if(!o.ok||!s?.job)throw new Error(s?.error??"Index rebuild request failed");return s.job}async function ee(t,e){const o=e.capabilities.some(i=>i.toLowerCase()==="embedding"),s=await t(h(o?"/v1/embeddings":"/v1/chat/completions"),{method:"POST",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(o?{model:e.id,input:"xpod readiness probe"}:{model:e.id,messages:[{role:"user",content:"Reply OK."}],max_tokens:1,stream:!1})});if(!s.ok){const i=await s.json().catch(()=>{}),d=typeof i?.error=="string"?i.error:i?.error?.message;throw new Error(d??"Model readiness probe failed")}await s.arrayBuffer()}function h(t){if(typeof window>"u")throw new Error("AI Config API requires the current browser origin");return new URL(t,window.location.origin).toString()}async function k(t){const e=await t,o=await e.json().catch(()=>{});if(!e.ok||!o?.config||!o.capabilities)throw new Error(o?.error??"AI Config request failed");return o}const L=a.createContext(void 0),K=2e3;function te({children:t}){const e=J(),[o,s]=a.useState(),[i,d]=a.useState(),[c,p]=a.useState([]),[y,g]=a.useState(),[O,v]=a.useState(!0),[C,M]=a.useState(!1),[I,P]=a.useState(!1),[S,u]=a.useState(),[N,T]=a.useState(0),q=!!(e.webId&&e.currentPod);a.useEffect(()=>{if(!e.webId||!e.currentPod)return;let r=!1;return queueMicrotask(()=>{if(r||!e.webId||!e.currentPod)return;v(!0),u(void 0);const n=$({webId:e.webId,podUrl:e.currentPod.podUrl,authenticatedFetch:e.fetch}),_=D({database:e.currentPod.database,authenticatedFetch:e.fetch,podUrl:e.currentPod.podUrl,webId:e.currentPod.webId}).listModels?.()?.catch(()=>[])??Promise.resolve([]);Promise.all([R(e.fetch),n.listModels().catch(()=>[]),_]).then(([l,B,F])=>{r||(s(l.config),d(l.capabilities),g(l.lifecycle),p(Q(z(F,B))))}).catch(l=>{r||u(l instanceof Error?l.message:String(l))}).finally(()=>{r||v(!1)})}),()=>{r=!0}},[N,e.currentPod,e.fetch,e.webId]);const A=a.useCallback(()=>{T(r=>r+1)},[]),j=y?.pending??0;a.useEffect(()=>{if(j<=0||!e.webId||!e.currentPod)return;let r=!1;const n=setInterval(()=>{R(e.fetch).then(f=>{r||g(f.lifecycle)}).catch(()=>{})},K);return()=>{r=!0,clearInterval(n)}},[j,e.currentPod,e.fetch,e.webId]);const b=a.useCallback(async r=>{M(!0),u(void 0);try{const n=await G(e.fetch,r);s(n.config),d(n.capabilities),g(n.lifecycle)}catch(n){throw u(n instanceof Error?n.message:String(n)),n}finally{M(!1)}},[e.fetch]),m=a.useCallback(async r=>{P(!0),u(void 0);try{const n=await H(e.fetch,r);g(f=>({configurationVersion:f?.configurationVersion,pending:(f?.pending??0)+1,recent:[n,...f?.recent??[]].slice(0,20)}))}catch(n){throw u(n instanceof Error?n.message:String(n)),n}finally{P(!1)}},[e.fetch]),E=a.useCallback(async(r,n)=>{await b(r),await m(n)},[m,b]),x=q?O:!1,U=a.useMemo(()=>({config:o,capabilities:i,lifecycle:y,models:c,loading:x,saving:C,rebuilding:I,error:S,reload:A,save:b,rebuild:m,saveAndRebuild:E}),[i,o,x,S,y,c,m,I,A,b,E,C]);return V.jsx(L.Provider,{value:U,children:t})}function z(t,e){const o=new Map,s=i=>`${i.provider}\0${w(i.id)}`;for(const i of[...t,...e]){const d=s(i),c=o.get(d);if(!c){o.set(d,{...i,id:w(i.id)});continue}const p=[...new Set([...c.capabilities??[],...i.capabilities??[]])];o.set(d,{...c,...i,id:w(i.id),resourceId:c.resourceId??i.resourceId,displayName:c.displayName??i.displayName,availability:c.availability==="available"?c.availability:i.availability,modelType:c.modelType??i.modelType,...p.length>0?{capabilities:p}:{},...c.inputModalities??i.inputModalities?{inputModalities:c.inputModalities??i.inputModalities}:{}})}return[...o.values()]}function w(t){const e=t.lastIndexOf("#");return e>=0?t.slice(e+1):t}function Q(t){return t.map(e=>({id:e.id,displayName:e.displayName,owner:e.provider,ref:X(e.provider,e.id),capabilities:e.capabilities??[]}))}function ie(t,e){const s={chatModel:["chat"],ocrModel:["ocr"],readerModel:["document-understanding","documentunderstanding"],embeddingModel:["embedding"],indexerModel:["indexing"],rerankerModel:["reranking","reranker"]}[e];return s?t.filter(i=>i.capabilities.some(d=>s.includes(d.toLowerCase()))):t}function ne(){const t=a.useContext(L);if(!t)throw new Error("useAiConfig must be used within AiConfigProvider");return t}export{te as A,ie as m,ee as t,ne as u};
@@ -1 +0,0 @@
1
- import{c as d,j as e,v as h,r as p,O as g,N as f,w as v,x as y}from"./auth-callback-Ds-c62W3.js";import{P as b}from"./PaneListHeader-Bf_kEd4U.js";import{A as j,u as k}from"./AiConfigContext-Bx0HCAW5.js";import{T as N,u as w}from"./workspace-layout-xA5YxiK3.js";import"./ai-connections-DexTPyfC.js";import"./XpodAiConnectionsPodStore-CohdyLoX.js";import"./index-browser-lRsMcP_7.js";const M=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],C=d("file-search",M);const A=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 19H3",key:"wbqt3n"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]],I=d("list-restart",A);const L=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],H=d("scan-text",L);const q=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],_=d("sliders-horizontal",q);function o(s,a,t,n,i){return{id:s,label:a,path:t,href:`/ai-config/${t}`,end:!0,description:n,icon:i}}const l=[o("model-assignments","Model Assignments","model-assignments","Choose the model used by each Xpod capability.",_),o("document-processing","Document Processing","document-processing","Control OCR and structured document reading.",H),o("search-indexing","Search & Indexing","search-indexing","Enable FTS, vector retrieval, and backend selection.",C),o("index-lifecycle","Index Lifecycle","index-lifecycle","Control automatic indexing and derived-index rebuilds.",I)];function K(){return e.jsx(j,{children:e.jsx(S,{})})}function S(){const s=h(),{config:a,loading:t,saving:n,error:i,reload:m}=k(),[u,c]=p.useState(!1),x=l.find(r=>s.pathname.endsWith(r.path))??l[0];return e.jsx(N,{mode:"auto",listHeader:e.jsx(b,{title:"AI Config"}),list:e.jsx(T,{}),mainHeader:e.jsx("div",{className:"flex h-full min-w-0 items-center px-4",children:e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h1",{className:"text-sm font-semibold text-foreground",children:["AI Config · ",x.label]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:"Pod-level AI and derived-index policy"})]})}),main:e.jsxs("section",{className:"min-h-full bg-background",children:[n&&e.jsx("div",{role:"status","aria-live":"polite",className:"border-b border-border px-6 py-2 text-xs text-muted-foreground",children:"Saving AI configuration…"}),i?e.jsx(z,{error:i,showTechnicalDetails:u,onToggleTechnicalDetails:()=>c(r=>!r),onRetry:()=>{c(!1),m()}}):t||!a?e.jsx(P,{}):e.jsx(g,{})]}),className:"min-h-full"})}function z({error:s,showTechnicalDetails:a,onToggleTechnicalDetails:t,onRetry:n}){return e.jsx("div",{className:"mx-auto w-full max-w-4xl p-6",children:e.jsxs("div",{role:"alert","aria-live":"assertive",className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("h2",{className:"text-sm font-semibold text-foreground",children:"AI configuration could not be loaded"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Xpod could not read this Pod’s AI settings. Your existing settings were not changed."}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:n,className:"h-9 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:"Try again"}),e.jsx("button",{type:"button","aria-expanded":a,onClick:t,className:"h-9 rounded-md border border-input bg-background px-3 text-sm font-medium text-foreground hover:bg-accent",children:a?"Hide details":"Show details"})]}),a&&e.jsx("p",{className:"mt-3 break-words font-mono text-xs text-muted-foreground",children:s})]})})}function P(){return e.jsxs("div",{role:"status","aria-live":"polite",className:"mx-auto w-full max-w-4xl p-6",children:[e.jsx("div",{className:"h-7 w-52 animate-pulse rounded bg-muted"}),e.jsx("div",{className:"mt-3 h-4 w-80 max-w-full animate-pulse rounded bg-muted"}),e.jsx("div",{className:"mt-6 divide-y divide-border overflow-hidden rounded-xl border border-border",children:Array.from({length:4},(s,a)=>e.jsxs("div",{className:"grid gap-4 p-4 lg:grid-cols-[minmax(220px,1fr)_minmax(320px,440px)]",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 w-28 animate-pulse rounded bg-muted"}),e.jsx("div",{className:"h-3 w-52 animate-pulse rounded bg-muted"})]}),e.jsx("div",{className:"h-10 animate-pulse rounded-md bg-muted"})]},a))}),e.jsx("span",{className:"sr-only",children:"Loading AI configuration…"})]})}function T(){const s=w();return e.jsx("aside",{className:"h-full border-r border-border bg-muted/20 py-2",children:e.jsx("nav",{"aria-label":"AI Config sections","data-list-navigation":!0,children:l.map(a=>{const t=a.icon;return e.jsxs(f,{to:a.path,end:a.end,onClick:()=>s.openMain(),onKeyDown:v,className:({isActive:n})=>y(n,{compact:!1}),children:[e.jsx(t,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-medium",children:a.label}),e.jsx("span",{className:"mt-0.5 block text-xs leading-4 text-muted-foreground",children:a.description})]})]},a.id)})})})}export{K as default};
@@ -1 +0,0 @@
1
- import{r as u,j as a}from"./auth-callback-Ds-c62W3.js";import{i as g,A as p}from"./ModelAssignmentsPanel-D-8A8dZx.js";import{u as x}from"./AiConfigContext-Bx0HCAW5.js";import"./dialog-CnGzg5Ff.js";import"./index-B0T-1YO8.js";import"./ai-connections-DexTPyfC.js";import"./XpodAiConnectionsPodStore-CohdyLoX.js";import"./index-browser-lRsMcP_7.js";function P(){const{config:o,save:t,saving:s}=x(),[e,r]=u.useState(o?.documentProcessing);if(u.useEffect(()=>{let n=!1;return queueMicrotask(()=>{n||r(o?.documentProcessing)}),()=>{n=!0}},[o]),!e)return null;const l=g(e,o?.documentProcessing),b=async n=>{n.preventDefault(),await t({documentProcessing:e})};return a.jsx(p,{title:"Document Processing",description:"Control when Xpod invokes OCR and structured document readers.",onSubmit:b,onRestore:()=>t({documentProcessing:{ocrEnabled:!0,automaticOcr:!0,imageRecognition:!0,pdfRecognition:!0,tableRecognition:!1,processingMode:"auto",ocrFallbackOrder:["ocr","reader","plain-text"],readerPolicy:"auto",readerPriority:"structure-first",maxFileSizeMb:64,maxPages:500,failureFallback:"plain-text"}}),saving:s,dirty:l,children:a.jsxs("div",{className:"space-y-4 rounded-xl border border-border p-4",children:[a.jsx(i,{label:"Enable OCR",description:"Read text from images and scanned documents.",checked:e.ocrEnabled,onChange:n=>r({...e,ocrEnabled:n})}),a.jsx(i,{label:"Automatic OCR",description:"Run OCR when indexed content has no usable text layer.",checked:e.automaticOcr,onChange:n=>r({...e,automaticOcr:n})}),a.jsx(i,{label:"Image recognition",description:"Allow OCR and readers to process image resources.",checked:e.imageRecognition,onChange:n=>r({...e,imageRecognition:n})}),a.jsx(i,{label:"PDF recognition",description:"Process native and scanned PDF resources.",checked:e.pdfRecognition,onChange:n=>r({...e,pdfRecognition:n})}),a.jsx(i,{label:"Table recognition",description:"Preserve detected table structure when the reader supports it.",checked:e.tableRecognition,onChange:n=>r({...e,tableRecognition:n})}),a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["Processing mode",a.jsxs("select",{name:"processingMode",value:e.processingMode,onChange:n=>r({...e,processingMode:n.target.value}),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm sm:max-w-xs",children:[a.jsx("option",{value:"auto",children:"Auto"}),a.jsx("option",{value:"on-demand",children:"On demand"})]})]}),a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["OCR fallback order",a.jsx("input",{value:e.ocrFallbackOrder.join(", "),onChange:n=>r({...e,ocrFallbackOrder:n.target.value.split(",").map(c=>c.trim()).filter(c=>["ocr","reader","plain-text"].includes(c))}),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsx(d,{label:"Reader policy",value:e.readerPolicy,options:["auto","always","disabled"],onChange:n=>r({...e,readerPolicy:n})}),a.jsx(d,{label:"Reader priority",value:e.readerPriority,options:["structure-first","speed-first"],onChange:n=>r({...e,readerPriority:n})}),a.jsx(m,{label:"Maximum file size (MB)",value:e.maxFileSizeMb,min:1,max:1024,onChange:n=>r({...e,maxFileSizeMb:n})}),a.jsx(m,{label:"Maximum pages",value:e.maxPages,min:1,max:1e4,onChange:n=>r({...e,maxPages:n})}),a.jsx(d,{label:"Failure fallback",value:e.failureFallback,options:["plain-text","skip"],onChange:n=>r({...e,failureFallback:n})})]})]})})}function d({label:o,value:t,options:s,onChange:e}){return a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[o,a.jsx("select",{value:t,onChange:r=>e(r.target.value),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm",children:s.map(r=>a.jsx("option",{value:r,children:r},r))})]})}function m({label:o,value:t,min:s,max:e,onChange:r}){return a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[o,a.jsx("input",{type:"number",value:t,min:s,max:e,onChange:l=>r(l.target.valueAsNumber),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]})}function i({label:o,description:t,checked:s,onChange:e}){return a.jsxs("label",{className:"flex items-start justify-between gap-4",children:[a.jsxs("span",{children:[a.jsx("span",{className:"block text-sm font-medium",children:o}),a.jsx("span",{className:"block text-xs text-muted-foreground",children:t})]}),a.jsx("input",{type:"checkbox",checked:s,onChange:r=>e(r.target.checked),className:"mt-1 h-4 w-4 rounded border-input"})]})}export{P as DocumentProcessingPanel};
@@ -1 +0,0 @@
1
- import{r as l,j as e}from"./auth-callback-Ds-c62W3.js";import{i as h,A as b}from"./ModelAssignmentsPanel-D-8A8dZx.js";import{u as g}from"./AiConfigContext-Bx0HCAW5.js";import"./dialog-CnGzg5Ff.js";import"./index-B0T-1YO8.js";import"./ai-connections-DexTPyfC.js";import"./XpodAiConnectionsPodStore-CohdyLoX.js";import"./index-browser-lRsMcP_7.js";function S(){const{config:r,capabilities:d,lifecycle:i,save:n,rebuild:u,saving:m,rebuilding:x}=g(),[s,a]=l.useState(r?.lifecycle);if(l.useEffect(()=>{let t=!1;return queueMicrotask(()=>{t||a(r?.lifecycle)}),()=>{t=!0}},[r]),!s)return null;const f=h(s,r?.lifecycle),p=async t=>{t.preventDefault(),await n({lifecycle:s})};return e.jsxs(b,{title:"Index Lifecycle",description:"Control automatic maintenance and explicitly schedule rebuilds of derived data.",onSubmit:p,onRestore:()=>n({lifecycle:{automaticIndexing:!0,refreshAfterSourceUpdate:!0,removeAfterSourceDeletion:!0}}),saving:m,dirty:f,children:[e.jsxs("div",{className:"divide-y divide-border rounded-xl border border-border",children:[e.jsxs("label",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsxs("span",{children:[e.jsx("span",{className:"block text-sm font-medium",children:"Automatically index changes"}),e.jsx("span",{className:"block text-xs text-muted-foreground",children:"Index new and updated resources, and remove derived entries after deletion."})]}),e.jsx("input",{name:"automaticIndexing",type:"checkbox",checked:s.automaticIndexing,onChange:t=>a({...s,automaticIndexing:t.target.checked}),className:"mt-1 h-4 w-4 rounded border-input"})]}),e.jsx(c,{label:"Refresh after source updates",checked:s.refreshAfterSourceUpdate,onChange:t=>a({...s,refreshAfterSourceUpdate:t})}),e.jsx(c,{label:"Remove derived entries after source deletion",checked:s.removeAfterSourceDeletion,onChange:t=>a({...s,removeAfterSourceDeletion:t})})]}),e.jsxs("section",{className:"rounded-xl border border-border p-4",children:[e.jsx("h2",{className:"text-sm font-medium",children:"Rebuild derived indexes"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Rebuild actions never modify authority data in the Pod."}),e.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:["fts","vector","all"].map(t=>e.jsxs("button",{type:"button",disabled:!d?.rebuildTargets?.includes(t)||x,onClick:()=>u(t),className:"h-9 rounded-md border border-input px-3 text-sm font-medium disabled:opacity-50",children:["Rebuild ",t==="all"?"all":t.toUpperCase()]},t))})]}),e.jsxs("section",{className:"rounded-xl border border-border p-4",children:[e.jsx("h2",{className:"text-sm font-medium",children:"Lifecycle evidence"}),e.jsxs("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[e.jsx(o,{label:"Configuration version",value:i?.configurationVersion??r?.updatedAt??"Default"}),e.jsx(o,{label:"Pending queue",value:String(i?.pending??0)})]}),e.jsx("div",{className:"mt-4 space-y-2",children:i?.recent.length?i.recent.map(t=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md border border-border p-3 text-sm",children:[e.jsxs("span",{children:[t.target.toUpperCase()," · ",t.status]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.progress??0,"% · ",new Date(t.createdAt).toLocaleString()]}),t.error?e.jsx("span",{className:"w-full text-xs text-destructive",children:t.error}):null]},t.id)):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No rebuild jobs have been scheduled."})})]})]})}function c({label:r,checked:d,onChange:i}){return e.jsxs("label",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsx("span",{className:"text-sm font-medium",children:r}),e.jsx("input",{type:"checkbox",checked:d,onChange:n=>i(n.target.checked),className:"mt-1 h-4 w-4 rounded border-input"})]})}function o({label:r,value:d}){return e.jsxs("div",{className:"rounded-md border border-border p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:r}),e.jsx("div",{className:"mt-1 text-sm font-medium",children:d})]})}export{S as IndexLifecyclePanel};
@@ -1 +0,0 @@
1
- import{r as l,j as e,B as g,R as j,C as p,a as y,b,d as S,e as N}from"./auth-callback-Ds-c62W3.js";import{g as C}from"./admin-C6qCRFiY.js";import{S as m}from"./skeleton-CPoSWHDr.js";function F({kind:r}){const[s,n]=l.useState(null),[d,t]=l.useState(!1),i=l.useCallback(async()=>{t(!0);try{n(await C())}finally{t(!1)}},[]);return l.useEffect(()=>{let c=!0;return Promise.resolve().then(()=>{c&&i()}),()=>{c=!1}},[i]),e.jsxs("div",{className:"space-y-4 p-6",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(g,{type:"button",size:"sm",variant:"outline",onClick:i,disabled:d,children:[e.jsx(j,{className:"mr-2 h-4 w-4"}),"Refresh"]})}),e.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:d?"Refreshing index evidence…":s?"Index evidence refreshed.":"Waiting for index evidence."}),e.jsxs(p,{children:[e.jsxs(y,{children:[e.jsx(b,{children:w[r]}),e.jsx(S,{children:"Observed derived-index state; policy changes belong in AI Config."})]}),e.jsx(N,{children:d&&!s?e.jsx(B,{}):R(r,s)})]})]})}const w={overview:"Index Overview",fts:"FTS",vector:"Vector","retrieval-points":"Retrieval Points",cache:"Cache","slow-queries":"Slow Queries",benchmark:"Benchmark"};function R(r,s){if(!s)return e.jsx("p",{className:"text-sm text-muted-foreground",children:"Waiting for runtime evidence."});if(r==="benchmark"){const t=s.benchmarkReports;return e.jsx(a,{values:[["Reports",String(t?.reportCount??0)],["Skipped files",String(t?.skippedFiles??0)],["Errors",String(t?.errors.length??0)]]})}if(!s.available)return e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Unavailable: ",s.reason]});if(r==="overview"){const t=s.stats.lifecycle;return e.jsxs("div",{className:"space-y-4",children:[e.jsx(a,{values:[["Engine",s.engine],["State",v(t?.status)],["Authority data",o(s.stats.factsBytes)],["Derived storage",o(s.stats.derivedBytes)],["Total storage",o(s.stats.totalBytes)],["Generated",f(s.generatedAt)]]}),e.jsx(x,{children:"Derived indexes are rebuildable runtime evidence; Pod RDF remains the authority data."})]})}if(r==="cache"){const t=s.stats.derivedCache;return t?e.jsx(a,{values:[["Cache bytes",o(t.cacheBytes)],["Limit",o(t.maxCacheBytes)],["Pressure",`${Math.round(t.cachePressure*100)}%`],["Evictions",String(t.evictionCount)]]}):e.jsx(u,{})}if(r==="slow-queries"){const t=s.stats.slowQueries;return t?e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{values:[["Captured",String(t.entryCount)],["Limit",String(t.maxEntries)]]}),t.entries.slice(0,10).map(i=>e.jsxs("div",{className:"rounded-lg border border-border p-3 text-sm",children:[e.jsxs("div",{className:"font-medium",children:[i.runtime.durationMs," ms · ",i.runtime.returnedRows," rows"]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:i.reasons.join(", ")||i.queryKey})]},`${i.generatedAt}-${i.queryKey}`))]}):e.jsx(u,{})}if(r==="retrieval-points"){const t=s.stats.rdf3x;return t?e.jsx(a,{values:[["State",t.syncedWithFacts?"Synchronized":`${t.refreshLag} versions behind`],["Facts version",String(t.factsDataVersion)],["Retrieval version",String(t.rdf3xFactsDataVersion)],["Pending sources",String(t.pendingSources)]]}):e.jsx(u,{})}const n=s.stats.lifecycle,d=r==="fts"?n?.coldStart?.ownsTextIndex:n?.coldStart?.ownsVectorIndex;if((r==="fts"||r==="vector")&&d){const t=s.stats.pgAcceleration,i=s.stats.rdf3x;return e.jsxs("div",{className:"space-y-4",children:[e.jsx(a,{values:[["State",v(n?.status)],["Ownership","Runtime managed"],["Backend",t?.provider?`${h(t.provider)}${t.version?` ${t.version}`:""}`:n?.driver??"Not reported"],["Freshness",i?i.syncedWithFacts?"Current":`${i.refreshLag} versions behind`:"Not reported"],["Indexes",t?.customIndexes?.map(c=>c.name).join(", ")||"Runtime managed"],["Last ready",f(n?.lastReadyAt)]]}),e.jsxs(x,{children:[r==="fts"?"Text retrieval":"Vector retrieval"," is derived from Pod authority data. Enablement and backend policy are configured in AI Config."]})]})}return e.jsx(u,{})}function a({values:r}){return e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:r.map(([s,n])=>e.jsxs("div",{className:"rounded-lg border border-border p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:s}),e.jsx("div",{className:"mt-1 font-medium",children:n})]},s))})}function B(){return e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4","aria-hidden":"true",children:Array.from({length:4},(r,s)=>e.jsxs("div",{className:"rounded-lg border border-border p-3",children:[e.jsx(m,{className:"h-3 w-20"}),e.jsx(m,{className:"mt-2 h-5 w-28"})]},s))})}function u(){return e.jsx("p",{className:"text-sm text-muted-foreground",children:"This runtime does not report evidence for this index subject."})}function x({children:r}){return e.jsx("p",{className:"text-sm text-muted-foreground",children:r})}function o(r){return r<1024?`${r} B`:r<1024*1024?`${Math.round(r/1024)} KB`:`${(r/(1024*1024)).toFixed(1)} MB`}function f(r){return r?new Date(r).toLocaleString():"Not reported"}function v(r){return r?h(r):"Unknown"}function h(r){return r.charAt(0).toUpperCase()+r.slice(1)}export{F as default};
@@ -1 +0,0 @@
1
- import{j as e,u as U,r as b}from"./auth-callback-Ds-c62W3.js";import{m as z,u as L,t as q}from"./AiConfigContext-Bx0HCAW5.js";import{D as X,a as J,b as V,c as G,d as H,e as K}from"./dialog-CnGzg5Ff.js";function Q(t,s){return N(t)!==N(s)}function N(t){return Array.isArray(t)?`[${t.map(N).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).filter(([,s])=>s!==void 0).sort(([s],[n])=>s.localeCompare(n)).map(([s,n])=>`${JSON.stringify(s)}:${N(n)}`).join(",")}}`:JSON.stringify(t)}const k=[{label:"General / Chat",name:"chatModel",description:"Used for assistant conversations and general text tasks."},{label:"OCR",name:"ocrModel",description:"Reads text from images and scanned pages."},{label:"Document Reader",name:"readerModel",description:"Extracts structure and content from documents."},{label:"Embedding",name:"embeddingModel",description:"Creates vectors for semantic search."},{label:"Indexer / Summarizer",name:"indexerModel",description:"Prepares and summarizes content for indexes."},{label:"Reranker",name:"rerankerModel",description:"Reorders search results by relevance."}];function W(){const{config:t,capabilities:s,lifecycle:n,models:o,save:l,saveAndRebuild:c,saving:i,rebuilding:a}=L(),g=U(),[f,j]=b.useState({}),[u,v]=b.useState(),[y,w]=b.useState({}),[S,x]=b.useState(),[C,d]=b.useState();b.useEffect(()=>{let r=!1;return queueMicrotask(()=>{r||j(t?.models??{})}),()=>{r=!0}},[t]);const _=Q(f,t?.models??{}),M=T(f,t),h=R(n,a),A=()=>Object.fromEntries(k.map(({name:r})=>[r,f[r]||null])),F=async r=>{if(r.preventDefault(),M){if(h)return;x({models:A(),switch:M});return}await l({models:A()})},B=async()=>{const r=Object.fromEntries(k.map(({name:p})=>[p,null])),m=T(r,t);if(!m){await l({models:r});return}h||x({models:r,switch:m})},I=async()=>{const r=S;if(x(void 0),!r)return;const m=D(s);if(!m){await l({models:r.models}),d("模型已保存;此运行时不支持重建索引,请稍后手动重建。");return}await c({models:r.models},m),d(void 0)};return e.jsxs(e.Fragment,{children:[e.jsxs(P,{title:"Model Assignments",description:"Choose a connected model for each Xpod capability. Unassigned capabilities use the system default.",onSubmit:F,onRestore:()=>{B()},saving:i||a,dirty:_,children:[e.jsx("div",{className:"divide-y divide-border rounded-xl border border-border",children:k.map(r=>e.jsx(O,{...r,models:o,value:f[r.name],testing:u===r.name,testResult:y[r.name],disabled:r.name==="embeddingModel"&&h,notice:r.name!=="embeddingModel"?void 0:h?"索引重建进行中,完成后才能再次切换向量模型。":M?"切换向量模型会重建索引:保存前需要二次确认,确认后立即排队重建。":void 0,onChange:m=>j(p=>({...p,[r.name]:m})),onTest:async m=>{v(r.name);try{await q(g.fetch,m),w(p=>({...p,[r.name]:"ready"}))}catch{w(p=>({...p,[r.name]:"failed"}))}finally{v(void 0)}}},r.name))}),e.jsx(E,{lifecycle:n,fallbackNotice:C})]}),e.jsx(Z,{request:S?.switch,models:o,saving:i||a||h,onCancel:()=>x(void 0),onConfirm:()=>{I()}})]})}function T(t,s){const n=t.embeddingModel;if(n===void 0)return;const o=s?.models?.embeddingModel??"";return(n??"")===o?void 0:{from:o||void 0,to:n||void 0}}function R(t,s=!1){if(s)return!0;const n=$(t)?.phase;return n==="queued"||n==="running"}function D(t){const s=t?.rebuildTargets??[];if(s.includes("vector"))return"vector";if(s.includes("all"))return"all"}function $(t){if(!t)return;const s=t.recent[0];if(!s)return t.pending>0?{phase:"queued",pending:t.pending}:void 0;if(!(s.status==="queued"&&t.pending<=0))return{phase:s.status,pending:t.pending,target:s.target,...s.progress!==void 0?{progress:s.progress}:{},...s.error?{error:s.error}:{}}}const Y={queued:"索引重建已排队",running:"索引重建进行中",succeeded:"索引重建完成",failed:"索引重建失败"};function E({lifecycle:t,fallbackNotice:s}){const n=$(t);if(!n)return s?e.jsx("p",{role:"status",className:"text-xs text-amber-600",children:s}):null;const o=[n.progress!==void 0?`${n.progress}%`:void 0,n.pending>0?`队列 ${n.pending}`:void 0,n.error].filter(Boolean).join(" · ");return e.jsxs("p",{role:"status",className:`text-xs ${n.phase==="failed"?"text-destructive":"text-muted-foreground"}`,children:[Y[n.phase],o?` · ${o}`:""]})}function Z({request:t,models:s,saving:n,onCancel:o,onConfirm:l}){const c=i=>{if(!i)return"系统默认";const a=s.find(g=>g.ref===i);return a?`${a.displayName??a.id} · ${a.owner}`:i};return e.jsx(X,{open:!!t,onOpenChange:i=>{i||o()},children:e.jsxs(J,{"data-testid":"embedding-switch-dialog",children:[e.jsxs(V,{children:[e.jsx(G,{children:"切换向量模型并重建索引?"}),e.jsx(H,{children:"已建立的向量由原模型生成,切换后需要用新模型重建索引才能参与检索。重建期间检索只会返回文本命中。"})]}),t&&e.jsxs("dl",{className:"grid gap-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:"当前"}),e.jsx("dd",{className:"min-w-0 break-all text-right",children:c(t.from)})]}),e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:"切换为"}),e.jsx("dd",{className:"min-w-0 break-all text-right",children:c(t.to)})]})]}),e.jsxs(K,{children:[e.jsx("button",{type:"button",onClick:o,className:"h-9 rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent",children:"取消"}),e.jsx("button",{type:"button",disabled:n,onClick:l,className:"h-9 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground disabled:opacity-50",children:n?"提交中…":"确认切换并重建"})]})]})})}function O({label:t,name:s,description:n,models:o,value:l,testing:c,testResult:i,notice:a,disabled:g=!1,onChange:f,onTest:j}){const u=o.find(d=>d.ref===l),v=z(o,s),y=u?.capabilities.some(d=>["chat","embedding"].includes(d.toLowerCase()))===!0,x=[u?`Connected · credential ready · ${u.owner}`:l?"Selected model is no longer credential-ready":void 0,i==="ready"?"Probe succeeded":i==="failed"?"Probe failed; review AI Connection health":void 0].filter(Boolean).join(" · "),C=!!(l&&!u)||i==="failed";return e.jsxs("div",{"data-testid":"model-assignment-row",className:"grid gap-3 p-4 lg:grid-cols-[minmax(220px,1fr)_minmax(320px,440px)] lg:items-start",children:[e.jsxs("div",{className:"min-w-0 pt-1",children:[e.jsx("span",{className:"block text-sm font-medium text-foreground",children:t}),e.jsx("span",{className:"mt-0.5 block text-xs leading-5 text-muted-foreground",children:n})]}),e.jsxs("div",{"data-testid":"model-assignment-controls",className:"grid min-w-0 gap-2 sm:grid-cols-[minmax(0,1fr)_4.5rem] sm:items-start",children:[e.jsxs("label",{className:"min-w-0",children:[e.jsxs("span",{className:"sr-only",children:[t," model"]}),e.jsxs("select",{name:s,value:l??"",disabled:g,onChange:d=>f(d.target.value),className:"h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground disabled:opacity-50",children:[e.jsx("option",{value:"",children:"System default"}),v.map(d=>e.jsxs("option",{value:d.ref,children:[d.displayName??d.id," · ",d.owner]},`${d.owner}:${d.id}`))]})]}),e.jsx("button",{type:"button","aria-label":`Test ${t} model`,disabled:g||!y||c,title:u?y?"Send a bounded readiness probe":"This model has no bounded probe endpoint":"Select a connected model first",onClick:()=>u&&void j(u),className:"h-10 w-full self-start rounded-md border border-input bg-background px-3 text-sm font-medium text-foreground hover:bg-accent disabled:opacity-50",children:c?"Testing…":"Test"}),x&&e.jsx("span",{role:"status",className:`text-xs sm:col-span-2 ${C?"text-destructive":"text-muted-foreground"}`,children:x}),a&&e.jsx("span",{"data-testid":"model-assignment-notice",className:"text-xs text-amber-600 sm:col-span-2",children:a})]})]})}function P({title:t,description:s,children:n,onSubmit:o,onRestore:l,footerActions:c,saving:i=!1,dirty:a=!0}){return e.jsxs("form",{onSubmit:o,className:"mx-auto flex w-full max-w-4xl flex-col gap-6 p-6",children:[e.jsxs("header",{children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:t}),e.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground",children:s})]}),n,e.jsxs("div",{className:"flex justify-end gap-2 border-t border-border pt-4",children:[e.jsx("span",{role:"status",className:"mr-auto self-center text-xs text-muted-foreground",children:a?"Unsaved changes":"Applied"}),c,e.jsx("button",{type:"button",onClick:l,disabled:i||!l,className:"h-9 rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent disabled:opacity-50",children:"Restore defaults"}),e.jsx("button",{type:"submit",disabled:i||!o||!a,className:"h-9 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground disabled:opacity-50",children:i?"Saving…":"Save configuration"})]})]})}const ne=Object.freeze(Object.defineProperty({__proto__:null,AiConfigForm:P,ModelAssignmentRow:O,ModelAssignmentsPanel:W,RebuildStatusLine:E,embeddingModelSwitch:T,rebuildInFlight:R,rebuildStatusFrom:$,rebuildTargetForCapabilities:D},Symbol.toStringTag,{value:"Module"}));export{P as A,ne as M,Q as i};
@@ -1,2 +0,0 @@
1
- import{c as I,v as pe,r as d,Y as U,j as e,C as k,a as C,b as S,d as P,e as R,B as g,Z as se,R as he,N as fe,w as ve,x as be}from"./auth-callback-Ds-c62W3.js";import{P as ge}from"./PaneListHeader-Bf_kEd4U.js";import{N as ie,W as je}from"./waypoints-BeYHxqHv.js";import{A as oe}from"./activity-CCsb9Oam.js";import{T as ye,u as Ne}from"./workspace-layout-xA5YxiK3.js";import{E as le}from"./external-link-Bu5AGqCO.js";import{B as M}from"./badge-CQm5OyzR.js";import{R as we}from"./rotate-ccw-CoKIGCsQ.js";import{D as ke}from"./download-DwMONJvm.js";const Ce=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Se=I("cable",Ce);const Pe=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],de=I("earth",Pe);const Re=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],De=I("lock-keyhole",Re);const Te=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Ae=I("radio",Te);const Ee=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],Le=I("route",Ee);const Ie=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$e=I("shield-check",Ie);const Me=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Oe=I("wifi",Me);async function Ue({fetchImpl:t}){return Z(t,X("/api/network/settings/status"),{method:"GET",credentials:"include",headers:{accept:"application/json"}})}async function qe({fetchImpl:t}){return Z(t,X("/api/network/settings/diagnose"),{method:"POST",credentials:"include",headers:{accept:"application/json"}})}async function ze({fetchImpl:t}){await Z(t,X("/api/network/settings/certificate/renew"),{method:"POST",credentials:"include",headers:{accept:"application/json"}})}async function Ve({podUrl:t,fetchImpl:n,patch:r}){return Z(n,He("/api/network/settings/configuration",t),{method:"PUT",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(r)})}function X(t){const n=typeof window>"u"?"http://localhost":window.location.origin;return new URL(t,n).toString()}function He(t,n){return n?new URL(t,n).toString():X(t)}async function Z(t,n,r){const i=await t(n,r);if(!i.ok)throw await i.arrayBuffer(),new Error("Network settings request failed. Please try again.");if(!i.headers.get("content-type")?.includes("application/json"))throw await i.arrayBuffer(),new Error("Network settings request failed. Please try again.");return await i.json()}const ne=[{id:"overview",label:"Overview",path:"",icon:ie},{id:"endpoints",label:"Endpoints",path:"endpoints",icon:Se},{id:"addresses",label:"Addresses",path:"addresses",icon:de},{id:"domain-dns",label:"Domain & DNS",path:"domain-dns",icon:Le},{id:"https",label:"HTTPS",path:"https",icon:De},{id:"tunnel-profiles",label:"Tunnel Profiles",path:"tunnel-profiles",icon:je},{id:"p2p",label:"P2P",path:"p2p",icon:Ae},{id:"diagnostics",label:"Diagnostics",path:"diagnostics",icon:oe}];function _e(t){const n=["Xpod Network Diagnostics",`Generated: ${t.generatedAt}`,`Canonical URL: ${t.endpoint??"Unavailable"}`],r=t.checks.flatMap(i=>["",`[${i.status.toUpperCase()}] ${i.label}`,...i.detail?[i.detail]:[]]);return[...n,...r].join(`
2
- `)}function bt(){const t=pe(),[n,r]=d.useState(),[i,s]=d.useState([]),[o,l]=d.useState(),[p,u]=d.useState(),[y,h]=d.useState(!1),[D,T]=d.useState(!1),[B,E]=d.useState(!1),[$,F]=d.useState(!1),[a,m]=d.useState(),v=d.useRef(0),N=d.useRef(0),z=d.useRef(0),V=d.useRef(void 0),H=d.useRef(!0),K=typeof window>"u"?void 0:window.location.origin,w=K?`local-host:${K}`:void 0,A=globalThis.fetch;d.useEffect(()=>(H.current=!0,()=>{H.current=!1,v.current+=1,N.current+=1,z.current+=1}),[]);const W=d.useCallback((c,x)=>H.current&&v.current===c&&V.current===x,[]),G=d.useCallback((c,x)=>H.current&&N.current===c&&V.current===x,[]),J=d.useCallback((c,x)=>H.current&&z.current===c&&V.current===x,[]),_=d.useCallback(async()=>{const c=w;if(!c)return;const x=v.current+1;v.current=x,h(!0),u(void 0);try{const L=await Ue({fetchImpl:A});W(x,c)&&r(L)}catch{W(x,c)&&u("网络设置请求失败,请重试。")}finally{W(x,c)&&h(!1)}},[A,w,W]);d.useEffect(()=>{let c=!1;return V.current=w,v.current+=1,N.current+=1,z.current+=1,queueMicrotask(()=>{c||V.current!==w||(r(void 0),s([]),l(void 0),u(void 0),h(!1),T(!1),E(!1),w&&_())}),()=>{c=!0}},[w,_]);const ue=d.useCallback(async()=>{const c=w;if(!c)return;const x=N.current+1;N.current=x,T(!0),u(void 0);try{const L=await qe({fetchImpl:A});G(x,c)&&(s(L.checks),l(new Date),U({description:"诊断完成"}))}catch{G(x,c)&&u("网络诊断失败,请重试。")}finally{G(x,c)&&T(!1)}},[A,w,G]),me=d.useCallback(async()=>{const c=w;if(!c)return;const x=z.current+1;z.current=x,E(!0),u(void 0);try{await ze({fetchImpl:A}),J(x,c)&&(U({variant:"success",description:"证书续签成功"}),await _())}catch{J(x,c)&&u("证书续签失败,请重试。")}finally{J(x,c)&&E(!1)}},[A,w,J,_]),Y=d.useCallback(async c=>{if(K){F(!0),u(void 0);try{const x=await Ve({fetchImpl:A,patch:c});r(L=>L&&{...L,configuration:x.configuration}),m(x.applyState),U({variant:"success",description:"Network configuration saved"})}catch{u("网络配置保存失败,请重试。")}finally{F(!1)}}},[A,K]),xe=d.useMemo(()=>[{key:"local",title:"本机",values:n?.addresses.local??[]},{key:"lan",title:"局域网",values:n?.addresses.lan??[]},{key:"public",title:"公网",values:n?.addresses.public??[]}],[n]),re=t.pathname.split("/").filter(Boolean).at(-1),b=ne.some(c=>c.path===re)?re:"overview";return e.jsx(ye,{mode:"auto",listHeader:e.jsx(ge,{title:"Network"}),list:e.jsx(Be,{}),mainHeader:e.jsx(Fe,{title:ne.find(c=>(c.path||"overview")===b)?.label??"Overview",loading:y,stale:y&&!!n,onRefresh:_}),main:e.jsxs("section",{className:"flex min-h-full flex-col gap-4 bg-background p-6",children:[p?e.jsx("div",{role:"alert",className:"rounded-md border border-destructive/30 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:p}):null,(b==="overview"||b==="endpoints")&&e.jsx(Qe,{endpoint:n?.endpoint,loading:y&&!n}),b==="overview"&&e.jsx(Ke,{status:n}),(b==="overview"||b==="addresses")&&e.jsx(tt,{sections:xe,loading:y&&!n,diagnostics:i,checkedAt:o}),b==="overview"&&e.jsx(it,{status:n}),b==="domain-dns"&&e.jsxs(e.Fragment,{children:[e.jsx(at,{status:n}),e.jsx(Ge,{configuration:n?.configuration,saving:$,applyState:a,onSave:Y})]}),b==="https"&&e.jsxs(e.Fragment,{children:[e.jsx(rt,{status:n}),e.jsx(Je,{configuration:n?.configuration,saving:$,applyState:a,onSave:Y})]}),b==="tunnel-profiles"&&e.jsxs(e.Fragment,{children:[e.jsx(We,{title:"Observed tunnel",label:"Tunnel",capability:n?.tunnel}),e.jsx(Ye,{configuration:n?.configuration,providers:n?.providers??[],ingress:n?.ingress,saving:$,applyState:a,onSave:Y})]}),b==="p2p"&&e.jsx(Ze,{configuration:n?.configuration,saving:$,applyState:a,onSave:Y}),(b==="overview"||b==="diagnostics"||b==="https")&&e.jsx(ot,{status:n,endpoint:n?.endpoint,diagnostics:i,diagnosing:D,renewing:B,onDiagnose:ue,onRenewCertificate:me})]}),className:"min-h-full"})}function Be(){const t=Ne();return e.jsx("aside",{className:"h-full border-r border-border bg-muted/20 py-2",children:e.jsx("nav",{"aria-label":"Network sections","data-list-navigation":!0,children:ne.map(n=>{const r=n.icon,i=`/network${n.path?`/${n.path}`:""}`;return e.jsxs(fe,{to:i,onClick:()=>t.openMain(),onKeyDown:ve,className:({isActive:s})=>be(s,{compact:!1}),end:n.path==="",children:[e.jsx(r,{className:"h-4 w-4","aria-hidden":"true"}),n.label]},n.id)})})})}function Fe({title:t,loading:n,stale:r,onRefresh:i}){return e.jsxs("div",{className:"flex h-full min-w-0 items-center justify-between gap-4 px-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h1",{className:"text-sm font-semibold text-foreground",children:["Network · ",t]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground","aria-live":"polite",children:r?"Refreshing · showing previous snapshot":"接入点、DNS、TLS、隧道与连通性诊断"})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(g,{type:"button",size:"sm",variant:"outline",onClick:i,disabled:n,children:[e.jsx(he,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"刷新"]})})]})}function Ke({status:t}){const n=t?.addresses.public[0]??t?.addresses.lan[0]??t?.addresses.local[0]??t?.endpoint,r=t?!t.dns.supported||t.dns.status==="unsupported"?"Configure Domain & DNS, then recheck observed DNS.":!t.tls.supported||!["valid","active","ready"].includes(t.tls.status)?"Review HTTPS configuration and certificate renewal evidence.":"No connectivity action is currently required.":"Refresh network status.",i=t?.tunnel.supported===!0;return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:"Preferred access path"}),e.jsx(P,{children:"First address this runtime has configured, in public → LAN → local order"})]}),e.jsxs(R,{className:"space-y-3 text-sm",children:[e.jsx("div",{className:"break-words font-medium",children:n??"Not configured"}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-4",children:[e.jsxs(M,{variant:"outline",children:["Local ",t?.addresses.local.length?"configured":"not configured"]}),e.jsxs(M,{variant:"outline",children:["LAN ",t?.addresses.lan.length?"configured":"not configured"]}),e.jsxs(M,{variant:"outline",children:["Public ",t?.addresses.public.length?"configured":"not configured"]}),e.jsxs(M,{variant:"outline",children:["Tunnel ",i?t?.tunnel.status??"unknown":"not observed"]})]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"Configured addresses are not probe results; reachability is reported per route."}),e.jsxs("div",{className:"rounded-md border border-border bg-muted/30 p-3",children:[e.jsx("div",{className:"font-medium",children:"Next action"}),e.jsx("div",{className:"mt-1 text-muted-foreground",children:r})]})]})]})}function We({title:t,label:n,capability:r,extra:i}){return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:t}),e.jsx(P,{children:"Observed runtime state"})]}),e.jsx(R,{children:e.jsx(q,{label:n,capability:r,extra:i})})]})}function Q({title:t}){return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:t}),e.jsx(P,{children:"Desired configuration"})]}),e.jsxs(R,{className:"text-sm text-muted-foreground",children:["This runtime does not report a configurable ",t," capability."]})]})}function Ge({configuration:t,saving:n,applyState:r,onSave:i}){const[s,o]=d.useState(t?.domainDns),[l,p]=d.useState("");return d.useEffect(()=>{let u=!1;return queueMicrotask(()=>{u||o(t?.domainDns)}),()=>{u=!0}},[t]),s?e.jsxs(ee,{title:"Saved configuration",applyState:r,children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(j,{name:"domain",label:"Domain",value:s.domain,onChange:u=>o({...s,domain:u})}),e.jsx(j,{name:"provider",label:"DNS provider",value:s.provider,onChange:u=>o({...s,provider:u})}),e.jsx(ce,{name:"recordTtl",label:"Record TTL (seconds)",value:s.recordTtl,min:30,max:86400,onChange:u=>o({...s,recordTtl:u})}),e.jsx(j,{name:"dnsCredential",label:s.credentialConfigured?"Replace credential (configured)":"Credential",value:l,type:"password",onChange:p})]}),e.jsx(ae,{label:"Enable DDNS",checked:s.ddnsEnabled,onChange:u=>o({...s,ddnsEnabled:u})}),e.jsx(te,{label:"Save DNS configuration",saving:n,onClick:()=>i({domainDns:{domain:s.domain,ddnsEnabled:s.ddnsEnabled,provider:s.provider,recordTtl:s.recordTtl,...l?{credential:l}:{}}})})]}):e.jsx(Q,{title:"Domain & DNS"})}function Je({configuration:t,saving:n,applyState:r,onSave:i}){const[s,o]=d.useState(t?.https);return d.useEffect(()=>{let l=!1;return queueMicrotask(()=>{l||o(t?.https)}),()=>{l=!0}},[t]),s?e.jsxs(ee,{title:"Saved configuration",applyState:r,children:[e.jsx(ae,{label:"Enable HTTPS",checked:s.enabled,onChange:l=>o({...s,enabled:l})}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(j,{name:"acmeEmail",label:"ACME email",value:s.acmeEmail,onChange:l=>o({...s,acmeEmail:l})}),e.jsx(j,{name:"acmeDomains",label:"Certificate domains",value:s.domains.join(", "),onChange:l=>o({...s,domains:l.split(",").map(p=>p.trim()).filter(Boolean)})}),e.jsx(j,{name:"certificatePath",label:"Certificate path",value:s.certificatePath??"",onChange:l=>o({...s,certificatePath:l})}),e.jsx(j,{name:"certificateKeyPath",label:"Private-key path",value:s.certificateKeyPath??"",onChange:l=>o({...s,certificateKeyPath:l})}),e.jsx(ce,{name:"renewBeforeDays",label:"Renew before (days)",value:s.renewBeforeDays,min:1,max:90,onChange:l=>o({...s,renewBeforeDays:l})})]}),e.jsx(te,{label:"Save HTTPS configuration",saving:n,onClick:()=>i({https:s})})]}):e.jsx(Q,{title:"HTTPS"})}function Ye({configuration:t,providers:n,ingress:r,saving:i,applyState:s,onSave:o}){const[l,p]=d.useState(t?.tunnelProfiles.activeProfileId??""),[u,y]=d.useState(t?.tunnelProfiles.profiles??[]),[h,D]=d.useState({});if(d.useEffect(()=>{let a=!1;return queueMicrotask(()=>{a||(p(t?.tunnelProfiles.activeProfileId??""),y(t?.tunnelProfiles.profiles??[]),D({}))}),()=>{a=!0}},[t]),!t)return e.jsx(Q,{title:"Tunnel Profiles"});const T=(a,m)=>y(v=>v.map(N=>N.id===a?{...N,...m}:N)),B=n.filter(a=>a.runtimeSupported),E=a=>n.find(m=>m.id===a),$=()=>{const a=`tunnel-${Date.now()}`,m=B[0]?.id??"ngrok";y(v=>[...v,{id:a,provider:m,label:"New tunnel",credentialConfigured:!1,parameters:{}}])},F=a=>{y(m=>m.filter(v=>v.id!==a)),l===a&&p("none")};return e.jsxs(ee,{title:"Saved tunnel profiles",applyState:s,children:[e.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["Active profile",e.jsxs("select",{value:l||"none",onChange:a=>p(a.target.value),className:"block h-10 w-full rounded-md border border-input bg-background px-3 sm:max-w-sm",children:[e.jsx("option",{value:"none",children:"None"}),u.map(a=>e.jsxs("option",{value:a.id,children:[a.label," · ",a.provider]},a.id))]})]}),e.jsx("div",{className:"space-y-3",children:u.map(a=>e.jsxs("div",{className:"space-y-3 rounded-md border border-border p-3 text-sm",children:[e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsx(j,{name:`tunnel-label-${a.id}`,label:"Label",value:a.label,onChange:m=>T(a.id,{label:m})}),e.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["Provider",e.jsx("select",{value:a.provider,onChange:m=>T(a.id,{provider:m.target.value,parameters:{}}),className:"block h-10 w-full rounded-md border border-input bg-background px-3",children:B.map(m=>e.jsx("option",{value:m.id,children:m.label},m.id))})]}),E(a.provider)?.endpointSource==="declared"?e.jsx(j,{name:`tunnel-url-${a.id}`,label:"Public endpoint (declared)",value:a.publicUrl??"",onChange:m=>T(a.id,{publicUrl:m})}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"The provider reports its public endpoint; there is nothing to type here."}),e.jsx(j,{name:`tunnel-credential-${a.id}`,label:a.credentialConfigured?"Replace credential (configured)":"Credential",type:"password",value:h[a.id]??"",onChange:m=>D(v=>({...v,[a.id]:m}))})]}),e.jsxs("details",{children:[e.jsx("summary",{className:"cursor-pointer font-medium",children:"Provider-specific parameters"}),e.jsx("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:(E(a.provider)?.parameterFields??[]).map(({key:m,label:v})=>e.jsx(j,{name:`tunnel-${m}-${a.id}`,label:v,value:a.parameters?.[m]??"",onChange:N=>T(a.id,{parameters:{...a.parameters,[m]:N}})},m))})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:[l===a.id?"Active after restart":"Inactive"," · credential ",a.credentialConfigured?"configured":"missing"]}),e.jsx(g,{type:"button",size:"sm",variant:"ghost",onClick:()=>F(a.id),children:"Remove"})]})]},a.id))}),e.jsx(g,{type:"button",size:"sm",variant:"outline",onClick:$,children:"Add tunnel profile"}),e.jsx(Xe,{ingress:r,descriptor:E(u.find(a=>a.id===l)?.provider??"")}),e.jsx(te,{label:"Save tunnel profiles",saving:i,onClick:()=>o({tunnelProfiles:{activeProfileId:l,profiles:u.map(a=>({id:a.id,provider:a.provider,label:a.label,publicUrl:a.publicUrl,parameters:a.parameters,...h[a.id]?{credential:h[a.id]}:{}}))}})})]})}function Xe({ingress:t,descriptor:n}){if(!t||n?.originOwner!=="console")return null;const r=async()=>{await window.navigator.clipboard.writeText(t.originUrl),U({description:"Tunnel origin copied"})};return e.jsxs("div",{className:"rounded-md border border-border bg-muted/30 p-3","data-testid":"ingress-origin",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Tunnel origin (paste into the provider console)"}),e.jsxs("div",{className:"mt-1 flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"break-all font-mono text-sm",children:t.originUrl}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"Set the tunnel's local port / service to this address, not the Gateway port: this is the entry that never treats a tunnelled caller as local."})]}),e.jsxs("div",{className:"flex shrink-0 gap-1",children:[e.jsx(g,{type:"button",size:"icon",variant:"ghost","aria-label":"Copy tunnel origin",onClick:()=>{r()},children:e.jsx(se,{className:"h-4 w-4","aria-hidden":"true"})}),n.consoleUrl?e.jsx(g,{type:"button",size:"icon",variant:"ghost","aria-label":`Open ${n.label} console`,onClick:()=>window.open(n.consoleUrl,"_blank","noopener,noreferrer"),children:e.jsx(le,{className:"h-4 w-4","aria-hidden":"true"})}):null]})]})]})}function Ze({configuration:t,saving:n,applyState:r,onSave:i}){const[s,o]=d.useState(t?.p2p);return d.useEffect(()=>{let l=!1;return queueMicrotask(()=>{l||o(t?.p2p)}),()=>{l=!0}},[t]),s?e.jsxs(ee,{title:"Saved P2P configuration",applyState:r,children:[e.jsx(ae,{label:"Enable P2P fallback",checked:s.enabled,onChange:l=>o({...s,enabled:l})}),e.jsx(j,{name:"signalService",label:"Signal service",value:s.signalService,onChange:l=>o({...s,signalService:l})}),e.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["Fallback policy",e.jsxs("select",{value:s.fallbackPolicy,onChange:l=>o({...s,fallbackPolicy:l.target.value}),className:"block h-10 w-full rounded-md border border-input bg-background px-3 sm:max-w-sm",children:[e.jsx("option",{value:"never",children:"Never"}),e.jsx("option",{value:"when-direct-unavailable",children:"When direct is unavailable"}),e.jsx("option",{value:"prefer-p2p",children:"Prefer P2P"})]})]}),e.jsx(te,{label:"Save P2P configuration",saving:n,onClick:()=>i({p2p:s})})]}):e.jsx(Q,{title:"P2P"})}function ee({title:t,applyState:n,children:r}){return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:t}),e.jsx(P,{children:"Desired configuration · not presented as observed until verified"})]}),e.jsxs(R,{className:"space-y-4",children:[n==="restart-required"?e.jsx("div",{role:"status",className:"rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-800 dark:bg-amber-950/20 dark:text-amber-200",children:"Saved · restart required"}):null,r]})]})}function j({name:t,label:n,value:r,type:i="text",onChange:s}){return e.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[n,e.jsx("input",{name:t,type:i,value:r,onChange:o=>s(o.target.value),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]})}function ce({name:t,label:n,value:r,min:i,max:s,onChange:o}){return e.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[n,e.jsx("input",{name:t,type:"number",value:r,min:i,max:s,onChange:l=>o(l.target.valueAsNumber),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]})}function ae({label:t,checked:n,onChange:r}){return e.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-md border border-border p-3 text-sm font-medium",children:[t,e.jsx("input",{type:"checkbox",checked:n,onChange:i=>r(i.target.checked)})]})}function te({label:t,saving:n,onClick:r}){return e.jsx("div",{className:"flex justify-end",children:e.jsx(g,{type:"button",onClick:r,disabled:n,children:n?"Saving…":t})})}function Qe({endpoint:t,loading:n}){const r=[{label:"Canonical URL",value:t},{label:"API endpoint",value:t?et(t,"/api/"):void 0}],i=async(s,o)=>{await window.navigator.clipboard.writeText(o),U({description:`${s} copied`})};return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsxs(S,{className:"flex items-center gap-2 text-base",children:[e.jsx(de,{className:"h-4 w-4","aria-hidden":"true"}),"接入点"]}),e.jsx(P,{children:n?"正在解析接入点":"Observed endpoints · Currently effective route is the canonical URL"})]}),e.jsx(R,{className:"space-y-3",children:r.map(({label:s,value:o})=>e.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-md border border-border p-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:s}),e.jsx("div",{className:"mt-1 break-words text-sm text-foreground",children:o||"Unavailable"})]}),o?e.jsxs("div",{className:"flex shrink-0 gap-1",children:[e.jsx(g,{type:"button",size:"icon",variant:"ghost","aria-label":`Copy ${s}`,onClick:()=>{i(s,o)},children:e.jsx(se,{className:"h-4 w-4","aria-hidden":"true"})}),e.jsx(g,{type:"button",size:"icon",variant:"ghost","aria-label":`Open ${s}`,onClick:()=>window.open(o,"_blank","noopener,noreferrer"),children:e.jsx(le,{className:"h-4 w-4","aria-hidden":"true"})})]}):null]},s))})]})}function et(t,n){try{return new URL(n,t).toString()}catch{return t}}function tt({sections:t,loading:n,diagnostics:r,checkedAt:i}){return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsxs(S,{className:"flex items-center gap-2 text-base",children:[e.jsx(Oe,{className:"h-4 w-4","aria-hidden":"true"}),"网络地址"]}),e.jsx(P,{children:n?"正在刷新地址":"由运行时网络能力上报"})]}),e.jsx(R,{className:"space-y-4",children:t.map(s=>e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:s.title}),s.values.length>0?e.jsx("div",{className:"mt-1 space-y-1",children:s.values.map(o=>e.jsx(nt,{scope:s.key,value:o,diagnostics:r,checkedAt:i},o))}):e.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:"未提供"})]},s.key))})]})}function nt({scope:t,value:n,diagnostics:r,checkedAt:i}){const s=st(n),o=r.find(l=>l.id==="address-configuration");return e.jsxs("div",{className:"rounded-md border border-border p-3 text-sm",children:[e.jsx("div",{className:"break-words font-medium text-foreground",children:n}),e.jsxs("dl",{className:"mt-2 grid gap-x-4 gap-y-1 text-xs sm:grid-cols-2",children:[e.jsx(f,{label:"Interface",value:t==="local"?"Loopback":t==="lan"?"LAN interface (name not reported)":"Public route"}),e.jsx(f,{label:"IP version",value:s.ipVersion}),e.jsx(f,{label:"Port",value:s.port}),e.jsx(f,{label:"Configured",value:o?o.status==="ok"?"Yes":"No":"Not checked"}),e.jsx(f,{label:"Reachability",value:"Not probed"}),e.jsx(f,{label:"Configuration checked",value:o?.checkedAt?O(o.checkedAt):i?i.toLocaleString():"Not checked"})]})]})}function f({label:t,value:n}){return e.jsxs("div",{className:"flex justify-between gap-3",children:[e.jsx("dt",{className:"text-muted-foreground",children:t}),e.jsx("dd",{className:"text-right text-foreground",children:n})]})}function st(t){try{const n=new URL(t),r=n.hostname.replace(/^\[|\]$/g,"");return{ipVersion:r.includes(":")?"IPv6":/^\d{1,3}(?:\.\d{1,3}){3}$/.test(r)?"IPv4":"Resolved hostname",port:n.port||(n.protocol==="https:"?"443":n.protocol==="http:"?"80":"Not reported")}}catch{return{ipVersion:"Not reported",port:"Not reported"}}}function at({status:t}){const n=t?.configuration?.domainDns,r=(t?.addresses.public??[]).map(i=>{try{return new URL(i).hostname}catch{return i}});return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:"Observed DNS"}),e.jsx(P,{children:"Observed state is kept separate from desired DNS policy."})]}),e.jsxs(R,{className:"space-y-3",children:[e.jsx(q,{label:"Runtime status",capability:t?.dns}),e.jsxs("dl",{className:"grid gap-2 text-sm sm:grid-cols-2",children:[e.jsx(f,{label:"Observed hostnames",value:r.join(", ")||"Not reported"}),e.jsx(f,{label:"Expected domain",value:n?.domain||"Not configured"}),e.jsx(f,{label:"Expected value",value:t?.addresses.public[0]||"Not reported"}),e.jsx(f,{label:"Provider",value:n?.provider||"Not configured"})]})]})]})}function rt({status:t}){const n=t?.configuration?.https;return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsx(S,{className:"text-base",children:"Observed HTTPS"}),e.jsx(P,{children:"Certificate evidence reported by the active runtime."})]}),e.jsxs(R,{className:"space-y-3",children:[e.jsx(q,{label:"TLS",capability:t?.tls,extra:t?.tls.expiresAt?`Expires ${O(t.tls.expiresAt)}`:void 0}),e.jsxs("dl",{className:"grid gap-2 text-sm sm:grid-cols-2",children:[e.jsx(f,{label:"Certificate domains",value:t?.tls.domains?.join(", ")||n?.domains.join(", ")||"Not reported"}),e.jsx(f,{label:"Issuer",value:t?.tls.issuer||"Not reported by runtime"}),e.jsx(f,{label:"Validity",value:t?.tls.validFrom?`${O(t.tls.validFrom)} — ${t.tls.expiresAt?O(t.tls.expiresAt):"open"}`:t?.tls.status??"Not reported"}),e.jsx(f,{label:"Expiry",value:t?.tls.expiresAt?O(t.tls.expiresAt):"Not reported"}),e.jsx(f,{label:"Renewal status",value:t?.tls.renewalStatus||(t?.actions.renewCertificate?"Renewal available":"Renewal unavailable")}),e.jsx(f,{label:"Renewal policy",value:n?`${n.renewBeforeDays} days before expiry`:"Not configured"})]})]})]})}function it({status:t}){return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsxs(S,{className:"flex items-center gap-2 text-base",children:[e.jsx(ie,{className:"h-4 w-4","aria-hidden":"true"}),"网络能力"]}),e.jsx(P,{children:"服务端声明的网络支持"})]}),e.jsxs(R,{className:"grid gap-3 text-sm",children:[e.jsx(q,{label:"TLS",capability:t?.tls,extra:t?.tls.expiresAt?`到期时间 ${O(t.tls.expiresAt)}`:void 0}),e.jsx(q,{label:"DNS",capability:t?.dns}),e.jsx(q,{label:"Tunnel",capability:t?.tunnel})]})]})}function ot({status:t,endpoint:n,diagnostics:r,diagnosing:i,renewing:s,onDiagnose:o,onRenewCertificate:l}){const p=r.length>0?_e({generatedAt:new Date().toISOString(),endpoint:n,checks:r}):void 0,u=async()=>{p&&(await window.navigator.clipboard.writeText(p),U({description:"Diagnostic report copied"}))},y=()=>{if(!p)return;const h=URL.createObjectURL(new Blob([p],{type:"text/plain;charset=utf-8"})),D=document.createElement("a");D.href=h,D.download=`xpod-network-diagnostics-${new Date().toISOString().replace(/[:.]/g,"-")}.txt`,D.click(),URL.revokeObjectURL(h)};return e.jsxs(k,{children:[e.jsxs(C,{children:[e.jsxs(S,{className:"flex items-center gap-2 text-base",children:[e.jsx(oe,{className:"h-4 w-4","aria-hidden":"true"}),"操作"]}),e.jsx(P,{children:"仅显示网络能力允许的操作"})]}),e.jsxs(R,{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t?.actions.diagnose?e.jsxs(g,{type:"button",size:"sm",variant:"outline",onClick:o,disabled:i,children:[e.jsx($e,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"连通性诊断"]}):null,t?.actions.renewCertificate?e.jsxs(g,{type:"button",size:"sm",variant:"subtle",onClick:l,disabled:s,children:[e.jsx(we,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"续签证书"]}):null,e.jsxs(g,{type:"button",size:"sm",variant:"outline",onClick:()=>{u()},disabled:!p,children:[e.jsx(se,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"Copy diagnostics"]}),e.jsxs(g,{type:"button",size:"sm",variant:"outline",onClick:y,disabled:!p,children:[e.jsx(ke,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"Export diagnostics"]})]}),r.length>0?e.jsx("div",{className:"space-y-2",children:r.map(h=>e.jsxs("div",{className:"rounded-md border border-border bg-muted/30 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:h.label}),e.jsx(M,{variant:h.status==="ok"?"secondary":"outline",children:h.status})]}),h.detail?e.jsx("div",{className:"mt-1 break-words text-xs text-muted-foreground",children:h.detail}):null]},h.id))}):e.jsx("div",{className:"text-sm text-muted-foreground",children:"尚未运行过诊断。"})]})]})}function q({label:t,capability:n,extra:r}){const i=n?.supported===!0;return e.jsxs("div",{className:"rounded-md border border-border bg-muted/30 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:i?t:`${t} 不支持`}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[n?.status??"读取中",n?.detail?` · ${n.detail}`:""]})]}),e.jsx(M,{variant:i?"secondary":"outline",children:i?"支持":"不支持"})]}),r?e.jsx("div",{className:"mt-2 text-xs text-muted-foreground",children:r}):null]})}function O(t){if(!t)return"暂无记录";const n=new Date(t);return Number.isNaN(n.getTime())?"暂无记录":n.toLocaleString()}export{bt as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./auth-callback-Ds-c62W3.js";function s({title:e}){return t.jsx("div",{className:"flex h-full items-center px-4 text-sm font-semibold text-foreground",children:e})}export{s as P};
@@ -1 +0,0 @@
1
- import{r as g,j as n}from"./auth-callback-Ds-c62W3.js";import{i as p,A as f}from"./ModelAssignmentsPanel-D-8A8dZx.js";import{u as k}from"./AiConfigContext-Bx0HCAW5.js";import"./dialog-CnGzg5Ff.js";import"./index-B0T-1YO8.js";import"./ai-connections-DexTPyfC.js";import"./XpodAiConnectionsPodStore-CohdyLoX.js";import"./index-browser-lRsMcP_7.js";function w(){const{config:r,capabilities:d,save:o,rebuild:c,saveAndRebuild:i,saving:l,rebuilding:s}=k(),[e,a]=g.useState(r?.searchIndexing);if(g.useEffect(()=>{let t=!1;return queueMicrotask(()=>{t||a(r?.searchIndexing)}),()=>{t=!0}},[r]),!e)return null;const u=async t=>{t.preventDefault(),await o({searchIndexing:e})},x=e.ftsEnabled&&e.vectorEnabled?"all":e.vectorEnabled?"vector":"fts",b=d?.rebuildTargets?.includes(x)===!0,m=p(e,r?.searchIndexing);return n.jsxs(f,{title:"Search & Indexing",description:"Choose which derived search indexes Xpod maintains for this Pod.",onSubmit:u,onRestore:()=>o({searchIndexing:{ftsEnabled:!0,vectorEnabled:!0,progressiveIndexingEnabled:!0,textBackend:"auto",vectorBackend:"auto"}}),saving:l||s,dirty:m,footerActions:n.jsx("button",{type:"button",disabled:!b||l||s,onClick:()=>m?i({searchIndexing:e},x):c(x),className:"h-9 rounded-md border border-input px-3 text-sm font-medium disabled:opacity-50",children:s?"Scheduling…":m&&b?"Save and schedule rebuild":b?"Schedule rebuild":"Rebuild unavailable on this runtime"}),children:[n.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[n.jsx(h,{title:"Full-text Search",enabled:e.ftsEnabled,onEnabled:t=>a({...e,ftsEnabled:t}),backend:e.textBackend,onBackend:t=>a({...e,textBackend:t}),backends:[["auto","Auto"],...(d?.textBackends??[]).map(t=>[t,t==="fts5"?"FTS5":"PostgreSQL FTS"])]}),n.jsx(h,{title:"Vector Search",enabled:e.vectorEnabled,onEnabled:t=>a({...e,vectorEnabled:t}),backend:e.vectorBackend,onBackend:t=>a({...e,vectorBackend:t}),backends:[["auto","Auto"],...(d?.vectorBackends??[]).map(t=>[t,t==="vec"?"VEC":"pgvector"])]})]}),n.jsxs("label",{className:"flex items-start justify-between gap-4 rounded-xl border border-border p-4",children:[n.jsxs("span",{children:[n.jsx("span",{className:"block text-sm font-medium",children:"Progressive indexing"}),n.jsx("span",{className:"block text-xs text-muted-foreground",children:"Expand coverage as content becomes relevant instead of embedding everything eagerly."})]}),n.jsx("input",{name:"progressiveIndexingEnabled",type:"checkbox",checked:e.progressiveIndexingEnabled,onChange:t=>a({...e,progressiveIndexingEnabled:t.target.checked}),className:"mt-1 h-4 w-4 rounded border-input"})]})]})}function h({title:r,enabled:d,onEnabled:o,backend:c,onBackend:i,backends:l}){const s=l.filter(([a])=>a!=="auto"),e=v(c);return n.jsxs("section",{className:"rounded-xl border border-border p-4",children:[n.jsxs("label",{className:"flex items-center justify-between gap-3 text-sm font-medium",children:[r,n.jsx("input",{type:"checkbox",checked:d,onChange:a=>o(a.target.checked),className:"h-4 w-4 rounded border-input"})]}),n.jsxs("label",{className:"mt-4 flex items-center justify-between gap-3 text-xs font-medium text-muted-foreground",children:["Choose backend manually",n.jsx("input",{type:"checkbox",checked:e,disabled:s.length===0,onChange:a=>i(a.target.checked?s[0]?.[0]??"auto":"auto"),className:"h-4 w-4 rounded border-input"})]}),e?n.jsxs("label",{className:"mt-3 block space-y-2 text-xs font-medium text-muted-foreground",children:["Backend",n.jsx("select",{value:c,onChange:a=>i(a.target.value),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground",children:s.map(([a,u])=>n.jsx("option",{value:a,children:u},a))})]}):n.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"Auto selects the runtime-supported backend."})]})}function v(r){return r!=="auto"}export{w as SearchIndexingPanel,v as isManualBackendSelection};
@@ -1 +0,0 @@
1
- import{c as L,r as o,j as e,B as N,R as T,C as l,a as u,b as h,d as f,e as m}from"./auth-callback-Ds-c62W3.js";import{f as D,a as M,t as _,r as O}from"./admin-C6qCRFiY.js";import{E as q}from"./external-link-Bu5AGqCO.js";const G=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],U=L("rotate-cw",G);function Q({serviceId:t,title:r}){const[s,d]=o.useState(),[g,R]=o.useState(),[j,k]=o.useState([]),[v,p]=o.useState(),[b,S]=o.useState(!0),[y,w]=o.useState(!1),[C,$]=o.useState(),c=o.useCallback(async a=>{S(!0);try{const[n,A]=await Promise.all([D({signal:a}),M({source:t,level:"error",limit:5})]);d(t==="gateway"?{name:"gateway",status:"running",pid:n.adminData?.pid,uptime:n.adminData?.uptime?n.adminData.uptime*1e3:void 0,restartCount:0}:n.servicesData?.find(E=>E.name===t)),R(n.configData??void 0),k(A),$(n.checkedAt),p(void 0)}catch(n){n instanceof DOMException&&n.name==="AbortError"||p("Service status could not be loaded. The previous snapshot is retained.")}finally{S(!1)}},[t]);o.useEffect(()=>{const a=new AbortController;let n=!0;return Promise.resolve().then(()=>{n&&c(a.signal)}),()=>{n=!1,a.abort()}},[c]);const x=o.useMemo(()=>X(t,g),[g,t]),P=async()=>{const a=t==="gateway"?"the whole Xpod runtime":`${r} only`;if(!window.confirm(`Restart ${a}? Active requests may be interrupted.`))return;w(!0);const n=t==="gateway"?await _():await O(t);w(!1),n?setTimeout(()=>{c()},750):p(`Restart request for ${r} was not accepted by this runtime.`)};return e.jsxs("div",{className:"space-y-4 p-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("div",{"aria-live":"polite",className:"text-xs text-muted-foreground",children:b?"Refreshing service evidence…":C?`Checked ${C.toLocaleString()}`:"Not checked"}),e.jsxs(N,{type:"button",size:"sm",variant:"outline",onClick:()=>{c()},disabled:b,children:[e.jsx(T,{className:"mr-2 h-4 w-4"}),"Refresh"]})]}),v&&e.jsx("div",{role:"alert",className:"rounded-md border border-destructive/30 p-3 text-sm text-destructive",children:v}),e.jsxs(l,{children:[e.jsxs(u,{children:[e.jsx(h,{children:r}),e.jsx(f,{children:"Observed state, endpoint, health evidence, dependencies, and explicitly scoped lifecycle action."})]}),e.jsxs(m,{className:"grid gap-3 text-sm sm:grid-cols-2 xl:grid-cols-3",children:[e.jsx(i,{label:"State",value:s?.status??"Unknown"}),e.jsx(i,{label:"PID",value:s?.pid?.toString()??"Not reported"}),e.jsx(i,{label:"Uptime",value:s?.uptime?z(s.uptime):"Not reported"}),e.jsx(i,{label:"Restart count",value:s?.restartCount?.toString()??"Not reported"}),e.jsx(i,{label:"Internal endpoint",value:x.endpoint}),e.jsx(i,{label:"Health check",value:x.healthCheck})]})]}),e.jsxs(l,{children:[e.jsx(u,{children:e.jsx(h,{children:"Dependencies"})}),e.jsx(m,{className:"grid gap-3 text-sm sm:grid-cols-2",children:x.dependencies.map(a=>e.jsx(i,{label:a,value:B(a,t,s)},a))})]}),e.jsxs(l,{children:[e.jsxs(u,{children:[e.jsx(h,{children:"Recent errors"}),e.jsxs(f,{children:["Latest supervisor errors scoped to ",r,"."]})]}),e.jsxs(m,{className:"space-y-2",children:[j.length?j.map(a=>e.jsxs("div",{className:"rounded-lg border border-border p-3 text-sm",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(a.timestamp).toLocaleString()}),e.jsx("div",{className:"mt-1 break-words",children:a.message})]},`${a.timestamp}-${a.message}`)):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No recent errors reported."}),e.jsxs("a",{className:"inline-flex items-center text-sm font-medium text-primary hover:underline",href:`/status/logs?source=${t}`,children:[e.jsx(q,{className:"mr-1.5 h-4 w-4"}),"Open related logs"]})]})]}),e.jsxs(l,{children:[e.jsxs(u,{children:[e.jsx(h,{children:"Lifecycle"}),e.jsx(f,{children:t==="gateway"?"Gateway is the parent process, so this action restarts the whole Xpod runtime.":`This action restarts ${r} only; dependent requests may briefly fail.`})]}),e.jsx(m,{children:e.jsxs(N,{type:"button",variant:"destructive",onClick:()=>{P()},disabled:y,children:[e.jsx(U,{className:"mr-2 h-4 w-4"}),y?"Restarting…":t==="gateway"?"Restart Xpod runtime…":`Restart ${r}…`]})})]})]})}function X(t,r){const s=r?.env??{};return t==="gateway"?{endpoint:window.location.origin,healthCheck:"GET /service/status",dependencies:["Solid Server","API Server"]}:t==="css"?{endpoint:s.CSS_PORT?`http://127.0.0.1:${s.CSS_PORT}`:"Internal endpoint not reported",healthCheck:"TCP readiness + Solid root request",dependencies:["Authority storage","Identity service"]}:{endpoint:s.API_INTERNAL_URL||(s.API_PORT?`http://127.0.0.1:${s.API_PORT}`:"Internal endpoint not reported"),healthCheck:"GET /health",dependencies:["Solid Server","Configuration store"]}}function B(t,r,s){return s?s.status!=="running"?`${H(r)} is ${s.status}; dependency health is not implied`:`${t} required; direct probe evidence is not reported by this runtime`:"Not reported"}function H(t){return t==="gateway"?"Gateway":t==="css"?"Solid Server":"API Server"}function i({label:t,value:r}){return e.jsxs("div",{className:"rounded-lg border border-border p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:t}),e.jsx("div",{className:"mt-1 break-all font-medium",children:r})]})}function z(t){const r=Math.floor(t/1e3),s=Math.floor(r/3600),d=Math.floor(r%3600/60);return s?`${s}h ${d}m`:`${d}m ${r%60}s`}export{Q as ServiceStatusPanel};
@@ -1 +0,0 @@
1
- import{c as r,D as l,T as x,U as h,v,j as a,O as y,N as p,w as m,x as k}from"./auth-callback-Ds-c62W3.js";import{A as u}from"./activity-CCsb9Oam.js";import{W as f,N as w}from"./waypoints-BeYHxqHv.js";import{P as g}from"./PaneListHeader-Bf_kEd4U.js";import{T as N,u as j}from"./workspace-layout-xA5YxiK3.js";const b=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],I=r("boxes",b);const S=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],M=r("braces",S);const L=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],_=r("hard-drive",L);const z=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],d=r("scroll-text",z);const D=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],H=r("server",D);const O=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],V=r("timer",O);function s(i,t,e,n,o){return{id:i,label:t,path:e,href:`/status/${e}`,end:!0,group:n,icon:o}}const c=[s("overview","Overview","overview","Overview",u),s("gateway","Gateway","services/gateway","Services",f),s("solid-server","Solid Server","services/solid-server","Services",l),s("api-server","API Server","services/api-server","Services",H),s("logs","Logs","logs","Diagnostics",d),s("index-overview","Index Overview","index","Index",I),s("rdf","RDF","index/rdf","Index",M),s("fts","FTS","index/fts","Index",d),s("vector","Vector","index/vector","Index",x),s("retrieval-points","Retrieval Points","index/retrieval-points","Index",w),s("cache","Cache","index/cache","Index",_),s("slow-queries","Slow Queries","index/slow-queries","Index",V),s("benchmark","Benchmark","index/benchmark","Index",h)],q=["Overview","Services","Diagnostics","Index"];function C(){const i=v(),t=[...c].sort((e,n)=>n.path.length-e.path.length).find(e=>i.pathname.endsWith(e.path))??c[0];return a.jsx(N,{mode:"auto",listHeader:a.jsx(g,{title:"Status"}),list:a.jsx(A,{}),mainHeader:a.jsx("div",{className:"flex h-full items-center px-4",children:a.jsxs("div",{children:[a.jsxs("h1",{className:"text-sm font-semibold",children:["Status · ",t.label]}),a.jsx("div",{className:"text-xs text-muted-foreground",children:"Observed state and operational evidence"})]})}),main:a.jsx("section",{className:"min-h-full bg-background",children:a.jsx(y,{})}),className:"min-h-full"})}function A(){const i=j();return a.jsx("aside",{"data-list-navigation":!0,className:"h-full overflow-y-auto border-r border-border bg-muted/20 py-2",children:q.map(t=>a.jsxs("section",{className:"mb-3",children:[a.jsx("h2",{className:"px-5 py-1 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:t}),c.filter(e=>e.group===t).map(e=>{const n=e.icon;return a.jsxs(p,{to:e.path,end:e.end,onKeyDown:m,onClick:()=>i.openMain(),className:({isActive:o})=>k(o,{compact:!1}),children:[a.jsx(n,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),e.label]},e.id)})]},t))})}export{C as default};
@@ -1 +0,0 @@
1
- import{c as l,D as h,v as u,r as c,j as e,O as x,N as b,w as y,x as g}from"./auth-callback-Ds-c62W3.js";import{K as f}from"./key-round-BDMtU57P.js";import{b as v,c as k}from"./admin-C6qCRFiY.js";import{p as j}from"./settings-projection-CUkyprDQ.js";import{P as N}from"./PaneListHeader-Bf_kEd4U.js";import{T as S,u as w}from"./workspace-layout-xA5YxiK3.js";const M=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],P=l("box",M);const L=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],C=l("cloud",L);const A=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]],_=l("server-cog",A);const D=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],H=l("wrench",D),I=[{scope:"account",label:"Account",description:"Your Pod and its session.",items:[{id:"pod",label:"Pod",path:"pod",description:"Current Pod identity and data boundary.",icon:P},{id:"identity-access",label:"Identity & Access",path:"identity-access",description:"Session, WebID, and account access.",icon:f}]},{scope:"node",label:"This node",description:"Shared by every Pod on this machine.",items:[{id:"storage",label:"Storage",path:"storage",description:"Authority storage backend and limits.",icon:h},{id:"runtime",label:"Runtime",path:"runtime",description:"Low-frequency runtime configuration.",icon:_},{id:"cloud",label:"Cloud",path:"cloud",description:"Cloud coordination settings when supported.",icon:C},{id:"advanced",label:"Advanced",path:"advanced",description:"Expert and compatibility controls.",icon:H}]}];function q(){const r=u(),[n,s]=c.useState(!1);c.useEffect(()=>{let t=!1;return Promise.all([v(),k()]).then(([d,p])=>{t||s(j({registered:d?.registered===!0,managed:d?.managed===!0,domainAllocated:p?.allocated===!0}).cloud)}),()=>{t=!0}},[]);const a=c.useMemo(()=>I.map(t=>({...t,items:t.items.filter(d=>d.id!=="cloud"||n)})).filter(t=>t.items.length>0),[n]),o=c.useMemo(()=>a.flatMap(t=>t.items),[a]),i=o.find(t=>r.pathname.endsWith(`/${t.path}`))??o[0],m=a.find(t=>t.items.includes(i))?.scope;return e.jsx(S,{mode:"auto",listHeader:e.jsx(N,{title:"Settings"}),list:e.jsx(z,{groups:a}),mainHeader:e.jsx("div",{className:"flex h-full items-center px-4",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"text-sm font-semibold",children:["Settings · ",i.label]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:i.description}),m==="node"?e.jsx("div",{className:"text-xs text-amber-700 dark:text-amber-300",children:"Applies to every Pod on this machine."}):null]})}),main:e.jsx("section",{className:"min-h-full bg-background",children:e.jsx(x,{})}),className:"min-h-full"})}function z({groups:r}){const n=w();return e.jsx("aside",{className:"h-full border-r border-border bg-muted/20 py-2",children:e.jsx("nav",{"aria-label":"Settings sections","data-list-navigation":!0,children:r.map(s=>e.jsxs("div",{children:[e.jsxs("div",{className:"px-4 pb-1 pt-3",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:s.label}),e.jsx("div",{className:"text-xs leading-4 text-muted-foreground",children:s.description})]}),s.items.map(a=>{const o=a.icon;return e.jsxs(b,{to:a.path,"aria-label":a.label,onKeyDown:y,onClick:()=>n.openMain(),className:({isActive:i})=>g(i,{compact:!1}),children:[e.jsx(o,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),e.jsxs("span",{children:[e.jsx("span",{className:"block text-sm font-medium",children:a.label}),e.jsx("span",{className:"block text-xs leading-4 text-muted-foreground",children:a.description})]})]},a.id)})]},s.scope))})})}export{q as default};