@oscharko-dev/keiko 0.3.8 → 0.3.9

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 (287) hide show
  1. package/dist/ui/csp-hashes.json +28 -27
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +2 -2
  4. package/dist/ui/static/__next._full.txt +11 -12
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +3 -3
  7. package/dist/ui/static/__next._tree.txt +1 -1
  8. package/dist/ui/static/_next/static/chunks/03la2o0tcodk_.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/061l2tjhvak63.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/{440of1tk-svp7.js → 0d5rtaf3-jc-x.js} +1 -1
  11. package/dist/ui/static/_next/static/chunks/0lorosh9iyl5i.js +7 -0
  12. package/dist/ui/static/_next/static/chunks/0ncsz59mr16k6.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/{2ris2qfh-i8yp.js → 0ovebg0sbcqct.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/0q76qswp80ci1.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/0rvhrleg8f98b.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/0umcj95dn7ptb.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/{1d7s5tsir6fhz.js → 1_m1z_f54hkji.js} +1 -1
  18. package/dist/ui/static/_next/static/chunks/1kfsvai94yvr2.js +1 -0
  19. package/dist/ui/static/_next/static/chunks/1pcygmx7pvpwp.js +4 -0
  20. package/dist/ui/static/_next/static/chunks/1q2pujkdoaygu.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/1ziptu5xlzq_p.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/{0q1jeqzmpadwy.js → 2b7g5wrm7slyv.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/2bzjr2ai0a8hq.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/{1um8zhr3ig3xv.js → 2ksqufkg3ptp1.js} +1 -1
  25. package/dist/ui/static/_next/static/chunks/2lz9ujlsm75kc.js +3 -0
  26. package/dist/ui/static/_next/static/chunks/{0rt2s2w_savnr.js → 2ohow-fui5d_w.js} +1 -1
  27. package/dist/ui/static/_next/static/chunks/2qhtb4qq3arii.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/2r_lex4m5unw5.js +3 -0
  29. package/dist/ui/static/_next/static/chunks/{2643eg8cfungj.js → 2rcawuh-77fnp.js} +1 -1
  30. package/dist/ui/static/_next/static/chunks/2sji-23jqwpol.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/3-4iik5ytvbed.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/36z66lssar4oh.js +1 -0
  33. package/dist/ui/static/_next/static/chunks/3ljwwkelljh81.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/3mmcvq93ws1o_.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/{2ghf_333iydt2.js → 3mw_ni1a9rykb.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/3oqygeiv31fa7.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/3p83_dt4-z7q2.js +1 -0
  38. package/dist/ui/static/_next/static/chunks/3r74c2jeognx2.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/3yu-e53axqbxi.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/3zn27dbqgst19.js +1 -0
  41. package/dist/ui/static/_not-found/__next._full.txt +19 -14
  42. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  43. package/dist/ui/static/_not-found/__next._index.txt +3 -3
  44. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  45. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  46. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  47. package/dist/ui/static/_not-found.html +1 -1
  48. package/dist/ui/static/_not-found.txt +19 -14
  49. package/dist/ui/static/atlassian-connectors/__next._full.txt +21 -17
  50. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  51. package/dist/ui/static/atlassian-connectors/__next._index.txt +3 -3
  52. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  53. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +2 -2
  54. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +2 -2
  55. package/dist/ui/static/atlassian-connectors.html +1 -1
  56. package/dist/ui/static/atlassian-connectors.txt +21 -17
  57. package/dist/ui/static/index.html +1 -1
  58. package/dist/ui/static/index.txt +11 -12
  59. package/dist/ui/static/launch/__next._full.txt +14 -15
  60. package/dist/ui/static/launch/__next._head.txt +1 -1
  61. package/dist/ui/static/launch/__next._index.txt +3 -3
  62. package/dist/ui/static/launch/__next._tree.txt +1 -1
  63. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  64. package/dist/ui/static/launch/__next.launch.txt +1 -1
  65. package/dist/ui/static/launch.html +1 -1
  66. package/dist/ui/static/launch.txt +14 -15
  67. package/dist/ui/static/local-knowledge/__next._full.txt +23 -25
  68. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  69. package/dist/ui/static/local-knowledge/__next._index.txt +3 -3
  70. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  71. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  72. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  73. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +20 -19
  74. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  75. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +3 -3
  76. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  77. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +2 -2
  78. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +2 -2
  79. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  80. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  81. package/dist/ui/static/local-knowledge/capsule.txt +20 -19
  82. package/dist/ui/static/local-knowledge.html +1 -1
  83. package/dist/ui/static/local-knowledge.txt +23 -25
  84. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  85. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  86. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway-setup-audit.d.ts +35 -0
  87. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway-setup-audit.d.ts.map +1 -0
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway-setup-audit.js +98 -0
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +6 -0
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  91. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +1 -1
  92. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +6 -4
  93. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  94. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +4 -3
  95. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.d.ts.map +1 -1
  96. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.js +4 -0
  97. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.d.ts +19 -4
  98. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.d.ts.map +1 -1
  99. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.js +12 -0
  100. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.d.ts +2 -2
  101. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.d.ts.map +1 -1
  102. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.js +1 -1
  103. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  104. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  105. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  106. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  107. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  108. package/node_modules/@oscharko-dev/keiko-git/dist/index.d.ts +1 -1
  109. package/node_modules/@oscharko-dev/keiko-git/dist/index.d.ts.map +1 -1
  110. package/node_modules/@oscharko-dev/keiko-git/dist/index.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-git/dist/resolve.d.ts +11 -0
  112. package/node_modules/@oscharko-dev/keiko-git/dist/resolve.d.ts.map +1 -1
  113. package/node_modules/@oscharko-dev/keiko-git/dist/resolve.js +11 -1
  114. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  115. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  117. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  118. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +22 -9
  120. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +15 -6
  122. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  123. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  124. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  125. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/salience.d.ts +1 -1
  126. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/salience.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/salience.js +32 -8
  128. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  129. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  130. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  131. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  132. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  133. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  134. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  135. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  136. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  137. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  138. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  139. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  140. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  141. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  142. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  143. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +1 -1
  144. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +24 -7
  146. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts +3 -1
  147. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  148. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +3 -3
  149. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.js +45 -4
  151. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  152. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  153. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  154. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  155. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  156. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  157. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  158. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  159. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  160. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +11 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +144 -53
  163. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +70 -15
  165. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +11 -6
  167. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts +15 -0
  168. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts.map +1 -0
  169. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.js +40 -0
  170. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  171. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +5 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts +17 -0
  173. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -0
  174. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +62 -0
  175. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +3 -1
  176. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  177. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +8 -0
  178. package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +15 -0
  179. package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-server/dist/files.js +61 -7
  181. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  182. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +36 -6
  183. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +2 -0
  184. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  185. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +120 -6
  186. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +10 -1
  187. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +20 -6
  189. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +3 -0
  190. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
  191. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +3 -1
  192. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +5 -1
  193. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  194. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +72 -29
  195. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +2 -1
  196. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
  197. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +24 -11
  198. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
  199. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +15 -10
  200. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/uiRoutes.d.ts.map +1 -1
  201. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/uiRoutes.js +8 -0
  202. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
  203. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +7 -2
  204. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  205. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +4 -1
  206. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts +1 -0
  207. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  208. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +27 -0
  209. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +1 -0
  210. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  211. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/mutex.d.ts +1 -0
  212. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/mutex.d.ts.map +1 -1
  213. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/mutex.js +52 -1
  214. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  215. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  216. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  217. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  218. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  219. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.d.ts.map +1 -1
  220. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.js +25 -4
  221. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  222. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  223. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  224. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  225. package/package.json +25 -25
  226. package/release-impact.catalog.json +56 -2
  227. package/vendor/{oscharko-dev-keiko-cli-0.3.8.tgz → oscharko-dev-keiko-cli-0.3.9.tgz} +0 -0
  228. package/vendor/{oscharko-dev-keiko-connectors-0.3.8.tgz → oscharko-dev-keiko-connectors-0.3.9.tgz} +0 -0
  229. package/vendor/oscharko-dev-keiko-contracts-0.3.9.tgz +0 -0
  230. package/vendor/{oscharko-dev-keiko-evaluations-0.3.8.tgz → oscharko-dev-keiko-evaluations-0.3.9.tgz} +0 -0
  231. package/vendor/{oscharko-dev-keiko-evidence-0.3.8.tgz → oscharko-dev-keiko-evidence-0.3.9.tgz} +0 -0
  232. package/vendor/oscharko-dev-keiko-git-0.3.9.tgz +0 -0
  233. package/vendor/oscharko-dev-keiko-harness-0.3.9.tgz +0 -0
  234. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.9.tgz +0 -0
  235. package/vendor/oscharko-dev-keiko-memory-capture-0.3.9.tgz +0 -0
  236. package/vendor/{oscharko-dev-keiko-memory-consolidation-0.3.8.tgz → oscharko-dev-keiko-memory-consolidation-0.3.9.tgz} +0 -0
  237. package/vendor/{oscharko-dev-keiko-memory-governance-0.3.8.tgz → oscharko-dev-keiko-memory-governance-0.3.9.tgz} +0 -0
  238. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.8.tgz → oscharko-dev-keiko-memory-retrieval-0.3.9.tgz} +0 -0
  239. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.8.tgz → oscharko-dev-keiko-memory-vault-0.3.9.tgz} +0 -0
  240. package/vendor/oscharko-dev-keiko-model-gateway-0.3.9.tgz +0 -0
  241. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.8.tgz → oscharko-dev-keiko-quality-intelligence-0.3.9.tgz} +0 -0
  242. package/vendor/oscharko-dev-keiko-sandbox-0.3.9.tgz +0 -0
  243. package/vendor/oscharko-dev-keiko-sdk-0.3.9.tgz +0 -0
  244. package/vendor/{oscharko-dev-keiko-security-0.3.8.tgz → oscharko-dev-keiko-security-0.3.9.tgz} +0 -0
  245. package/vendor/oscharko-dev-keiko-server-0.3.9.tgz +0 -0
  246. package/vendor/{oscharko-dev-keiko-tools-0.3.8.tgz → oscharko-dev-keiko-tools-0.3.9.tgz} +0 -0
  247. package/vendor/oscharko-dev-keiko-verification-0.3.9.tgz +0 -0
  248. package/vendor/oscharko-dev-keiko-workflows-0.3.9.tgz +0 -0
  249. package/vendor/{oscharko-dev-keiko-workspace-0.3.8.tgz → oscharko-dev-keiko-workspace-0.3.9.tgz} +0 -0
  250. package/dist/ui/static/_next/static/chunks/086nnnmz_fywd.js +0 -1
  251. package/dist/ui/static/_next/static/chunks/0j7newhpahad3.js +0 -4
  252. package/dist/ui/static/_next/static/chunks/0qzc6iq46cys8.js +0 -1
  253. package/dist/ui/static/_next/static/chunks/0w9yukh2frhl7.js +0 -3
  254. package/dist/ui/static/_next/static/chunks/12tubu4vls8ub.js +0 -1
  255. package/dist/ui/static/_next/static/chunks/15dlwl7oa5tcy.js +0 -1
  256. package/dist/ui/static/_next/static/chunks/1k1foyy560lcg.js +0 -1
  257. package/dist/ui/static/_next/static/chunks/1nrtmr69b4b8b.js +0 -3
  258. package/dist/ui/static/_next/static/chunks/1xfdw53h1onrd.js +0 -1
  259. package/dist/ui/static/_next/static/chunks/2e2nqd6u2hlue.js +0 -1
  260. package/dist/ui/static/_next/static/chunks/2gnfi9geipm26.js +0 -1
  261. package/dist/ui/static/_next/static/chunks/2gsud81bhet1a.js +0 -1
  262. package/dist/ui/static/_next/static/chunks/2homfxfhdb03_.js +0 -7
  263. package/dist/ui/static/_next/static/chunks/2qmmts3k57-yo.js +0 -1
  264. package/dist/ui/static/_next/static/chunks/2wuojl4wm2nz2.js +0 -1
  265. package/dist/ui/static/_next/static/chunks/36ptysojb77co.js +0 -1
  266. package/dist/ui/static/_next/static/chunks/39fa_n4fmmm_n.js +0 -1
  267. package/dist/ui/static/_next/static/chunks/3d6nm9igh3-oe.js +0 -1
  268. package/dist/ui/static/_next/static/chunks/3jvnor1lofqja.js +0 -1
  269. package/dist/ui/static/_next/static/chunks/3vln5dgrjjzxf.js +0 -1
  270. package/dist/ui/static/_next/static/chunks/3vwy5ym45warf.js +0 -1
  271. package/dist/ui/static/_next/static/chunks/3w8dtm11s4f_j.js +0 -1
  272. package/dist/ui/static/_next/static/chunks/3z9z-4k1kedfm.js +0 -1
  273. package/dist/ui/static/_next/static/chunks/41utq0q7no-vg.js +0 -1
  274. package/vendor/oscharko-dev-keiko-contracts-0.3.8.tgz +0 -0
  275. package/vendor/oscharko-dev-keiko-git-0.3.8.tgz +0 -0
  276. package/vendor/oscharko-dev-keiko-harness-0.3.8.tgz +0 -0
  277. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.8.tgz +0 -0
  278. package/vendor/oscharko-dev-keiko-memory-capture-0.3.8.tgz +0 -0
  279. package/vendor/oscharko-dev-keiko-model-gateway-0.3.8.tgz +0 -0
  280. package/vendor/oscharko-dev-keiko-sandbox-0.3.8.tgz +0 -0
  281. package/vendor/oscharko-dev-keiko-sdk-0.3.8.tgz +0 -0
  282. package/vendor/oscharko-dev-keiko-server-0.3.8.tgz +0 -0
  283. package/vendor/oscharko-dev-keiko-verification-0.3.8.tgz +0 -0
  284. package/vendor/oscharko-dev-keiko-workflows-0.3.8.tgz +0 -0
  285. /package/dist/ui/static/_next/static/{HRXN4QzQnsMCEYDtmAj6R → OQjH4YxsBFEgdy9rVbrsH}/_buildManifest.js +0 -0
  286. /package/dist/ui/static/_next/static/{HRXN4QzQnsMCEYDtmAj6R → OQjH4YxsBFEgdy9rVbrsH}/_clientMiddlewareManifest.js +0 -0
  287. /package/dist/ui/static/_next/static/{HRXN4QzQnsMCEYDtmAj6R → OQjH4YxsBFEgdy9rVbrsH}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68611,47544,8775,e=>{"use strict";var t=e.i(48143),n=e.i(95313);function r(e,t,n){return Math.max(n.x-(t-120),Math.min(n.x+n.w-120,e));}function i(e,t){return Math.max(t.y,Math.min(t.y+t.h-38,e));}function l(e,t){return{x:r(e.minX,e.maxX-e.minX,t),y:i(e.minY,t)};}e.s(["clampWorkspaceGroupOrigin",0,l,"clampWorkspaceWindowOrigin",0,function(e,t){return{x:r(e.x,e.w,t),y:i(e.y,t)};}],47544);var o=e.i(63312),u=e.i(70478),a=e.i(4873);let d=[/\bsk-[A-Za-z0-9_-]{20,}\b/,/\bAKIA[0-9A-Z]{16}\b/,/\bgh[pousr]_[A-Za-z0-9]{36,}\b/,/\bxox[abporsu]-[A-Za-z0-9-]{10,}\b/,/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/,/-----BEGIN [A-Z ]*PRIVATE KEY-----/],c=/\b(?:\d[ -]?){13,19}\b/g;var s=e.i(92488),f=e.i(7877);let p=["apikey","accesskey","clientsecret","credential","password","privatekey","secret","token"],h=["api_key=","apikey=","client_secret=","clientsecret=","credential=","authorization:","password=","secret=","token="],m=[".env",".env.local",".env.development",".env.test",".env.production"],g={chat:["chatId","memoryEnabled","projectPath","projectPathPrivacy",t.CHAT_TITLE_IS_DEFAULT_CFG_KEY],editor:["openFiles","layoutJson","rootSessionsJson"],files:["activeFilePath","activeDirectoryPath","resolvedRoot"],figma:["snapshotRunId","selectedScreenIdsJson","selectedScreenName"],figmaView:["snapshotRunId","selectedScreenIdsJson","selectedScreenName"],figmaJson:["snapshotRunId","screenId","selectedScreenIdsJson","selectedScreenName"],figmaImage:["snapshotRunId","screenId","selectedScreenName","imageSrc"],pdfCitationPreview:["anchorQuality","currentPage","documentLabel","failureMessage","failureRetryable","failureTitle","pageLabel","pageNumber","rotation","sourceLabel","zoomMode","zoomValue"]};function y(e){return"number"==typeof e&&Number.isFinite(e);}function v(e){return Math.max(-1e6,Math.min(1e6,e));}function b(e){return Math.max(1,Math.min(32768,e));}function I(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function w(e){let t=e.trim();if(0===t.length)return!1;let n=t.toLowerCase();return function(e){for(let t of d)if(t.test(e))return!0;for(let t of e.matchAll(c)){let e=t[0].replaceAll(/[ -]/g,"");if(e.length>=13&&e.length<=19&&function(e){let t=0,n=!1;for(let r=e.length-1;r>=0;r-=1){let i=Number(e[r]);n&&(i*=2)>9&&(i-=9),t+=i,n=!n;}return t%10==0;}(e))return!0;}return!1;}(t)||function(e){let t="bearer ",n=e.toLowerCase().indexOf(t);if(-1===n)return!1;let r=0;for(let l=n+t.length;l<e.length;l+=1){var i;if(0===(null!=(i=e[l])?i:"").trim().length)break;r+=1;}return r>=8;}(t)||function(e){if(!e.includes("://"))return!1;try{let t=new URL(e);return t.username.length>0||t.password.length>0;}catch{return!1;}}(t)||h.some(e=>n.includes(e))||function(e){let t=e.toLowerCase().replaceAll("\\","/").split("/");for(let e=0;e<t.length;e+=1){var n,r;let i=null!=(n=t[e])?n:"",l=null!=(r=t[e+1])?r:"";if(m.includes(i)||".npmrc"===i||"credentials.json"===i||".aws"===i&&"credentials"===l||".ssh"===i&&l.startsWith("id_"))return!0;}return!1;}(t);}function S(e){if(0===e.length||e.length>256||e.startsWith(".")||e.trim()!==e||w(e))return!1;for(let t of e)if(!function(e){var t;let n=null!=(t=e.codePointAt(0))?t:0;return n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||46===n||95===n||45===n;}(t))return!1;return!0;}function x(e){if(0===e.length||e.length>256||e.trim()!==e||w(e))return!1;for(let n of e){var t;let e=null!=(t=n.codePointAt(0))?t:0,r=e>=48&&e<=57,i=e>=65&&e<=90,l=e>=97&&e<=122,o=46===e||58===e||95===e||45===e;if(!r&&!i&&!l&&!o)return!1;}return!0;}function A(e,t){let n,r;if("string"!=typeof e)return;let i=e.trim();if(!(0===i.length||i.length>t||w(i)||(r=(n=i.trim()).replaceAll("\\","/"),/^file:/iu.test(n)||/^[A-Za-z]:\//u.test(r)||r.startsWith("/")||r.startsWith("~/")||r.includes("/Users/")||r.includes("/home/")||r.includes("/Volumes/")||r.includes("../"))))return i;}function W(e){if(!Array.isArray(e)||0===e.length)return;let t=[];for(let n of e){if("string"!=typeof n)return;let e=n.trim().replaceAll("\\","/").replace(/^\/+/u,"");if(!(0===e.length||e.length>512||e.replaceAll("\\","/").split("/").includes("..")||w(e)||t.includes(e))&&(t.push(e),t.length>=64))break;}return t.length>0?t:void 0;}function M(e,t,n,r){return"number"==typeof e&&Number.isFinite(e)?Math.min(n,Math.max(t,Math.round(e))):r;}function R(e){let t;if("string"!=typeof e||0===e.length)return;try{t=JSON.parse(e);}catch{return;}if("object"!=typeof t||null===t||Array.isArray(t))return;let n=t;if(2===n.schemaVersion||2===n.version)return function(e){let t=function(e){let t={};for(let[n,r]of Object.entries(e)){if(!I(r))continue;let e=function(e){var t;let n="string"==typeof e.activeFile?W([e.activeFile]):void 0,r=null==n?void 0:n[0],i=W(e.openFiles),l=null!=(t=W(e.tabOrder))?t:i;if(void 0===i&&void 0===r)return""===e.activeFile&&Array.isArray(e.openFiles)&&0===e.openFiles.length&&Array.isArray(e.tabOrder)&&0===e.tabOrder.length?{activeFile:"",openFiles:[],tabOrder:[]}:void 0;let o=null!=i?i:n;if(void 0!==o)return{activeFile:void 0!==r&&o.includes(r)?r:o[0],openFiles:o,tabOrder:null!=l?l:o};}(r);if(void 0===e)continue;let i=n.slice(0,48);t[i]={id:i,...e};}return t;}(I(e.panes)?e.panes:{});if(Object.keys(t).length>1&&Object.values(t).some(e=>0===e.openFiles.length))return;let n=new Set(Object.keys(t)),r=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>32||!I(t))return null;if("pane"===t.type&&"string"==typeof t.paneId&&n.has(t.paneId))return{type:"pane",paneId:t.paneId};if("split"!==t.type)return null;let i=e(t.first,n,r+1),l=e(t.second,n,r+1);return null===i||null===l?null:{type:"split",id:"string"==typeof t.id?t.id.slice(0,48):"split-1",direction:"column"===t.direction?"column":"row",ratio:M(t.ratio,15,85,50),first:i,second:l};}(e.tree,n),i=Object.keys(t)[0];if(null===r||void 0===i)return;let l="string"==typeof e.activePaneId&&n.has(e.activePaneId)?e.activePaneId:i;return JSON.stringify({schemaVersion:2,root:function(e){if("string"!=typeof e)return"";let t=e.trim();return 0===t.length||t.length>512||w(t)?"":t;}(e.root),activePaneId:l,tree:r,panes:t,sidebarWidth:M(e.sidebarWidth,a.EDITOR_SIDEBAR_MIN_WIDTH,a.EDITOR_SIDEBAR_PERSISTED_MAX_WIDTH,a.EDITOR_SIDEBAR_DEFAULT_WIDTH),sidebarCollapsed:!0===e.sidebarCollapsed,outlinePanelVisible:!1!==e.outlinePanelVisible});}(n);let r=function(e){let t=[];for(let[n,r]of e.entries()){if("object"!=typeof r||null===r||Array.isArray(r))return;let e=function(e,t){let n="string"==typeof e.file?e.file.trim():"",r=W(e.openFiles);if(n.length>512||w(n))return;let i=null!=r?r:n.length>0?W([n]):void 0;if(void 0!==i)return{id:"string"==typeof e.id&&e.id.trim().length>0?e.id.trim().slice(0,32):`pane-${t+1}`,file:n.length>0?n.replaceAll("\\","/").replace(/^\/+/u,""):i[0],openFiles:i};}(r,n);void 0!==e&&t.push(e);}return t;}(Array.isArray(n.panes)?n.panes.slice(0,2):[]);if(void 0===r||0===r.length)return;let i="column"===n.direction?"column":"row",l="string"==typeof n.activePaneId&&r.some(e=>e.id===n.activePaneId)?n.activePaneId:r[0].id;return JSON.stringify({version:1,panes:r,activePaneId:l,direction:i,splitRatio:M(n.splitRatio,25,75,50),sidebarWidth:M(n.sidebarWidth,a.EDITOR_SIDEBAR_MIN_WIDTH,a.EDITOR_SIDEBAR_PERSISTED_MAX_WIDTH,a.EDITOR_SIDEBAR_DEFAULT_WIDTH),sidebarCollapsed:!0===n.sidebarCollapsed});}function z(e,t,n){let r;if("string"!=typeof n&&"number"!=typeof n&&"boolean"!=typeof n||(r=function(e){let t="";for(let n of e.toLowerCase())(n>="a"&&n<="z"||n>="0"&&n<="9")&&(t+=n);return t;}(t),p.some(e=>r.includes(e))))return;if("string"!=typeof n)return n;if(n.length>2048)return;let i=f.WIN_META[e].persistence;return"evidence-reference"===i?S(n)?n:void 0:w(n)?"durable.ui"===i?"[REDACTED]":void 0:n;}function k(e){let t;return!0===n.WIN_TYPES[e.type].singleton?`singleton:${e.type}`:("chat"===e.type?t=e.cfg.chatId:"qiRun"===e.type&&(t=e.cfg.runId),"string"==typeof t&&t.length>0?`${e.type}:${t}`:void 0);}function P(e,t){let n=new Map();for(let r of e){let e=t(r);if(void 0===e)continue;let i=n.get(e);(void 0===i||r.z>i.z)&&n.set(e,r);}return e.filter(e=>{let r=t(e);return void 0===r||n.get(r)===e;});}function E(e){let t=P(e,e=>e.id),n=P(t,k);return n.length===e.length&&e.length<=128?e:n.slice(0,128);}function _(e,t){let r=[],i=new Map(),l=0;for(let o of e){if(l>=2048){null==t||t();break;}l+=1;let e=function(e){var t;if(!I(e)||!("string"==typeof(t=e.type)&&Object.hasOwn(n.WIN_TYPES,t)))return null;let r=e.type;if("transient"===f.WIN_META[r].persistence||"string"!=typeof e.id||!y(e.x)||!y(e.y)||!y(e.w)||!y(e.h)||!y(e.z)||"boolean"!=typeof e.max)return null;let i={id:e.id,type:r,x:v(e.x),y:v(e.y),w:b(e.w),h:b(e.h),z:Math.max(1,Math.min(1e9,e.z)),cfg:function(e,t){var r,i;if(!I(t)||"durable.config"===f.WIN_META[e].persistence)return{};let l=new Set([...(null!=(r=n.WIN_TYPES[e].config)?r:[]).map(e=>e.key),...(null!=(i=g[e])?i:[])]),o={};for(let[n,r]of Object.entries(t)){if(!l.has(n))continue;let t=function(e,t,n){if("chat"===e&&"projectPathPrivacy"===t)return"omit"===n?n:void 0;if("editor"===e)return"openFiles"===t?W(n):"layoutJson"===t?R(n):"rootSessionsJson"===t?(0,s.sanitizeEditorRootSessionsJson)(n,R):z("editor",t,n);if("pdfCitationPreview"===e)return"documentLabel"===t||"pageLabel"===t||"sourceLabel"===t?A(n,240):"failureTitle"===t||"failureMessage"===t?A(n,360):"currentPage"===t||"pageNumber"===t?Number.isInteger(n)&&"number"==typeof n&&n>0&&n<=1e5?n:void 0:"rotation"===t?"number"==typeof n&&Number.isFinite(n)?(90*Math.round(n/90)%360+360)%360:void 0:"zoomValue"===t?"number"==typeof n&&Number.isFinite(n)?Math.min(2,Math.max(.5,Math.round(10*n)/10)):void 0:"failureRetryable"===t?"boolean"==typeof n?n:void 0:"anchorQuality"===t?"page-only"===n||"approximate"===n||"unavailable"===n?n:void 0:"zoomMode"===t&&("fit-width"===n||"fit-page"===n||"manual"===n)?n:void 0;return"figma"===e||"figmaView"===e||"figmaJson"===e||"figmaImage"===e?function(e,t){if("string"==typeof t){if("snapshotRunId"===e)return S(t)?t:void 0;if("screenId"===e)return x(t)?t:void 0;if("imageSrc"===e)return /^\/api\/figma\/snapshots\/[^/?#]+\/screens\/\d+\/image$/u.test(t)?t:void 0;if("selectedScreenIdsJson"===e){let e;try{e=JSON.parse(t);}catch{return;}if(!Array.isArray(e)||0===e.length||e.length>16)return;let n=[];for(let t of e){if("string"!=typeof t)return;let e=t.trim();if(!x(e))return;n.push(e);}return JSON.stringify(n);}if("selectedScreenName"===e){if(t.length>256||w(t))return;return t;}}}(t,n):z(e,t,n);}(e,n,r);void 0!==t&&(o[n]=t);}return"chat"===e&&"omit"===o.projectPathPrivacy&&delete o.projectPath,o;}(r,e.cfg),max:e.max},l=function(e){if(I(e)&&y(e.x)&&y(e.y)&&y(e.w)&&y(e.h))return{x:v(e.x),y:v(e.y),w:b(e.w),h:b(e.h)};}(e.prev);return{...i,...(!0===e.minimized?{minimized:!0}:{}),...(void 0!==l?{prev:l}:{}),...(y(e.zoom)?{zoom:Math.max(.5,Math.min(2,e.zoom))}:{})};}(o);if(null===e)continue;let u=[...r,"figma"!==e.type||void 0===function(e){let t=e.selectedScreenIdsJson;if("string"==typeof t)try{let e=JSON.parse(t);if(!Array.isArray(e))return;let n=e[0];return"string"==typeof n&&n.length>0?n:void 0;}catch{return;}}(e.cfg)?e:{...e,type:"figmaView",cfg:{...e.cfg}}],a=E(u);for(let e of u){if(a.includes(e))continue;let t=function(e,t){let n=t.find(t=>t.id===e.id);if(void 0!==n)return n;let r=k(e);return void 0===r?void 0:t.find(e=>k(e)===r);}(e,a);void 0!==t&&function(e,t,n){if(t!==n){for(let[r,i]of e)i===t&&e.set(r,n);e.set(t,n);}}(i,e.id,t.id);}if((r=a).length>=128)break;}return{wins:r,aliases:i};}function C(e,t){var n;return null!=(n=t.get(e))?n:e;}function D(e,t,n,r,i){return{x:e.x+Math.max(16,Math.min(i+26*r,e.w-t-16)),y:e.y+Math.max(16,Math.min(i+26*r,e.h-n-16))};}function T(e){let t=e.length;for(;t>0&&"/"===e[t-1];)t-=1;return e.slice(0,t);}function F(e){return T(e.trim().replaceAll("\\","/"));}function O(e,t){if("string"!=typeof t)return"";let n=(0,u.resolveWorkspaceFileIdentifier)(e,t);if("relative"===n.kind)return n.path;if("outside-root"===n.kind){let e=n.candidate.replace(/^\/+/u,"");return(0,u.isRootRelativeFileIdentifier)(e)?e:"";}return"";}function N(e,t){let n=e[t];return"string"==typeof n?n:void 0;}function L(e){return!0!==e.minimized&&!0!==e.max;}function $(e){let t=new Set();for(let n of e)L(n)&&t.add(n.id);return t;}function J(e,t){let n=$(e),r=[];for(let e of t.selectedWindowIds)n.has(e)&&!r.includes(e)&&r.push(e);let i=null!==t.focusedWindowId&&n.has(t.focusedWindowId)?t.focusedWindowId:null;return i===t.focusedWindowId&&r.length===t.selectedWindowIds.length&&r.every((e,n)=>e===t.selectedWindowIds[n])?t:{focusedWindowId:i,selectedWindowIds:r};}function j(e){return{wins:e,appliedDelta:{dx:0,dy:0}};}function K(e){let t={...e};return Reflect.deleteProperty(t,"prev"),t;}function Y(e){return"prev"in e;}function B(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h;}function H(e,t,n){return e.some(e=>e.a===t&&e.b===n||e.a===n&&e.b===t);}function V(e,t){return(null==e?void 0:e.type)==="chat"?e.id:(null==t?void 0:t.type)==="chat"?t.id:null;}function X(e){if((null==e?void 0:e.type)!=="chat")return;let t=e.cfg.chatId;return"string"==typeof t&&t.length>0?t:void 0;}function U(e){if((null==e?void 0:e.type)!=="chat")return;let t=e.cfg.projectPath;return"string"==typeof t&&t.length>0?t:void 0;}function Z(e){let t=X(e);if(void 0!==t)return{conversationId:t,projectPath:U(e)};}function q(e,t,n){return e.type===n?e:t.type===n?t:null;}async function G(e,t,n,r,i,l,o){try{let o=[];return null!==t&&void 0!==i&&o.push(Promise.resolve(i(e,t,r))),null!==n&&void 0!==l&&o.push(Promise.resolve(l(e,n,r))),(await Promise.all(o)).every(Boolean);}catch{return null==o||o(),!1;}}e.s(["MAX_WORKSPACE_WINDOWS",0,128,"enforceWorkspaceWindowInvariants",0,E,"sanitizePersistedWindows",0,function(e){return _(e).wins;},"sanitizePersistedWorkspace",0,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_(e,n.onWindowScanLimitReached);return{wins:r.wins,conns:function(e,t,n,r){let i=new Set(t.map(e=>e.id)),l=new Set(),o=new Set(),u=new Set(),a=[],d=0;for(let t of e){if(d>=8192){null==r||r();break;}d+=1;let e=function(e,t,n){if(!I(e)||"string"!=typeof e.id)return null;let r=function(e,t,n){if("string"!=typeof e.a||"string"!=typeof e.b)return null;let r=C(e.a,t),i=C(e.b,t);return n.has(r)&&n.has(i)?{a:r,b:i,remapped:r!==e.a||i!==e.b}:null;}(e,t,n);if(null===r)return null;let i=function(e,t,n){if("string"!=typeof e.boundChatWindowId||0===e.boundChatWindowId.length)return;let r=C(e.boundChatWindowId,t);return n.has(r)?r:void 0;}(e,t,n),l=function(e){let t=e.boundConnectorKind;if(("capsule"===t||"capsule-set"===t)&&"string"==typeof e.boundConnectorId&&0!==e.boundConnectorId.length)return{boundConnectorKind:t,boundConnectorId:e.boundConnectorId};}(e);return{endpointRemapped:r.remapped,connection:{id:e.id,a:r.a,b:r.b,...(void 0===i?{}:{boundChatWindowId:i}),...(!0===e.boundScopeElided||"string"==typeof e.boundRoot||"string"==typeof e.boundScopeKind||"string"==typeof e.boundRelativePath?{boundScopeElided:!0}:{}),...l}};}(t,n,i);if(null===e)continue;let c=e.connection;if(l.has(c.id))continue;let s=function(e){var t,n,r,i,l;return JSON.stringify([(i=e.a)<(l=e.b)?`${i}\u0000${l}`:`${l}\u0000${i}`,null!=(t=e.boundChatWindowId)?t:null,!0===e.boundScopeElided,null!=(n=e.boundConnectorKind)?n:null,null!=(r=e.boundConnectorId)?r:null]);}(c);if(e.endpointRemapped&&u.add(s),!(o.has(s)&&u.has(s))&&(a.push(c),l.add(c.id),o.add(s),a.length>=512))break;}return a;}(t,r.wins,r.aliases,n.onConnectionScanLimitReached)};}],8775);function Q(e){return e.length>0&&(e.startsWith("/")||/^[A-Za-z]:[/\\]/u.test(e));}function ee(e){let t=e.cfg.resolvedRoot;if("string"==typeof t&&t.length>0)return t;let n=e.cfg.root;return"string"==typeof n&&n.length>0?n:null;}function et(e){return /^[A-Za-z]:[/\\]?$/u.test(e)?e.replaceAll("\\","/"):T(e.replaceAll("\\","/"));}function en(e){if("files"!==e.type)return null;let t=ee(e);return null!==t&&Q(t)?t:null;}function er(e){return T(e.replaceAll("\\","/").replace(/^\/+/u,""));}function ei(e,t){return void 0!==e.root&&void 0!==t.root&&et(e.root)===et(t.root)&&e.kind===t.kind&&e.relativePaths.length===t.relativePaths.length&&e.relativePaths.every((e,n)=>{var r;return er(e)===er(null!=(r=t.relativePaths[n])?r:"");});}function el(e,t,n){let r=q(e,t,"files"),i=q(e,t,"chat");if(null===r||null===i)return null;let l=en(r);if(null===l)return null;let o=r.cfg.activeFilePath;if("string"==typeof o&&o.length>0)return{kind:"files",relativePaths:[er(o)],root:et(l),connectedAtMs:n};let u=r.cfg.activeDirectoryPath;return"string"==typeof u&&u.length>0?{kind:"directory",relativePaths:[er(u)],root:et(l),connectedAtMs:n}:{kind:"workspace-root",relativePaths:[],root:et(l),connectedAtMs:n};}function eo(e){if("string"!=typeof e.boundRoot||0===e.boundRoot.length)return null;let t=Date.now();return"directory"===e.boundScopeKind?"string"!=typeof e.boundRelativePath||0===e.boundRelativePath.length?null:{kind:"directory",relativePaths:[er(e.boundRelativePath)],root:et(e.boundRoot),connectedAtMs:t}:"files"===e.boundScopeKind?"string"!=typeof e.boundRelativePath||0===e.boundRelativePath.length?null:{kind:"files",relativePaths:[er(e.boundRelativePath)],root:et(e.boundRoot),connectedAtMs:t}:{kind:"workspace-root",relativePaths:[],root:et(e.boundRoot),connectedAtMs:t};}function eu(e){return"capsule"===e.kind?`capsule:${e.capsuleId}`:`set:${e.capsuleSetId}`;}function ea(e){return"string"!=typeof e.boundConnectorId||0===e.boundConnectorId.length?null:"capsule"===e.boundConnectorKind?{kind:"capsule",capsuleId:e.boundConnectorId,connectedAtMs:0}:"capsule-set"===e.boundConnectorKind?{kind:"capsule-set",capsuleSetId:e.boundConnectorId,connectedAtMs:0}:null;}function ed(e,t){let n=q(e,t,"connector"),r=q(e,t,"chat");if(null===n||null===r)return null;let i=n.cfg.selectedKind,l=n.cfg.selectedId;if("string"!=typeof i||"string"!=typeof l)return null;let o=l.trim();return 0===o.length?null:"capsule"===i?{kind:"capsule",capsuleId:o,connectedAtMs:Date.now()}:"capsule-set"===i?{kind:"capsule-set",capsuleSetId:o,connectedAtMs:Date.now()}:null;}e.s(["MAX_SCOPES",0,16,"appendConnectedScope",0,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;if(void 0===t.root)return null;let r=et(t.root);if(!Q(r))return null;let i=t.relativePaths.map(er),l={kind:t.kind,relativePaths:i,root:r,connectedAtMs:t.connectedAtMs};return e.some(e=>ei(e,l))||e.length>=n?e:[...e,l];},"appendConnectorScope",0,function(e,t,n){let r=eu(t);return e.some(e=>eu(e)===r)||e.length>=n?e:[...e,t];},"boundConnectorScopeOf",0,ea,"boundScopeOf",0,eo,"chatUnbindTarget",0,Z,"connectorChatBind",0,ed,"effectiveLocalKnowledgeScopes",0,function(e){var t;return null!=(t=e.localKnowledgeScopes)?t:void 0!==e.localKnowledgeScope?[e.localKnowledgeScope]:[];},"effectiveScopes",0,function(e){var t;return null!=(t=e.connectedScopes)?t:void 0!==e.connectedScope?[e.connectedScope]:[];},"filesChatBindScope",0,el,"isConnectorScopeConnected",0,function(e,t){let n=eu(t);return e.some(e=>eu(e)===n);},"isScopeConnected",0,function(e,t){return e.some(e=>ei(e,t));},"isWorkspaceWindowSelectable",0,L,"makeConnectActions",0,function(e){let{wsRef:n,viewRef:r,winsRef:i,connsRef:l,winsByIdRef:o,connsByIdRef:u,connsByEndpointRef:a,connectingRef:d,connectCleanupRef:c,focus:s,setConns:f,setConnecting:p,onScopeBind:h,onScopeUnbind:m,onConnectorBind:g,onConnectorUnbind:y,onConnectionUnbindFailure:v}=e,b=e=>{var t;return null!=(t=null==o?void 0:o.current.get(e))?t:i.current.find(t=>t.id===e);},I=e=>{var t;return null!=(t=null==a?void 0:a.current.get(e))?t:l.current.filter(t=>t.a===e||t.b===e);},w=new Set(),S=e=>{f(t=>t.filter(t=>t.id!==e));},x=(e,t)=>{var n;let r=e.a===t?e.b:e.b===t?e.a:null;return null===r?null:null!=(n=b(r))?n:null;},A=()=>{null!==c.current&&(c.current(),c.current=null),d.current=null,p(null);},W=e=>{if("files"!==e.type)return null;let t=ee(e);if(null===t||!Q(t))return null;let n=e.cfg.activeFilePath;return{id:e.id,root:t,...("string"==typeof n&&n.length>0?{activeFilePath:n}:{})};},M=e=>{let t=[];for(let n of I(e)){let r=x(n,e);(null==r?void 0:r.type)==="files"&&t.push(r);}if(0===t.length)return null;let n=[...t].sort((e,t)=>t.z-e.z),r=n.find(e=>{let t=e.cfg.activeFilePath;return"string"==typeof t&&t.length>0;}),i=null!=r?r:n[0];return void 0===i?null:W(i);},R=(e,t)=>{let n=new Set(),r=[];for(let i of I(e)){if(r.length>=16)break;let l=x(i,e),o=null===l?null:function(e,t){if("connector"!==e.type||e.cfg.selectedKind!==t)return null;let n=e.cfg.selectedId;return"string"==typeof n&&n.trim().length>0?n:null;}(l,t);null===o||n.has(o)||(n.add(o),r.push(o));}return r;};return{startConnect:(e,t)=>{if(t.preventDefault(),t.stopPropagation(),null!==d.current&&d.current.from===e)return void A();let i=n.current;if(null===i)return;let l=i.getBoundingClientRect(),o=r.current,u=e=>(e-l.left-o.x)/o.zoom,a=e=>(e-l.top-o.y)/o.zoom;null!==c.current&&(c.current(),c.current=null);let s={from:e,x:u(t.clientX),y:a(t.clientY)};d.current=s,p(s);let f=null,h=null,m=()=>{h=null;let t=f;if(null===t)return;let n={from:e,x:u(t.clientX),y:a(t.clientY)};d.current=n,p(n);},g=e=>{f=e,null===h&&(h=window.requestAnimationFrame(m));};window.addEventListener("pointermove",g),c.current=()=>{window.removeEventListener("pointermove",g),null!==h&&(window.cancelAnimationFrame(h),h=null);};},confirmConnect:(e,n)=>{n.preventDefault(),n.stopPropagation();let r=d.current;if(null===r)return;let i=b(r.from),l=b(e);if(void 0!==i&&void 0!==l&&(0,t.canConnect)(i.type,l.type)){let t=el(i,l,Date.now()),n=null===t?ed(i,l):null,o=null!==t||null!==n?V(i,l):null,u=null===o?void 0:X(b(o)),a=function(e,t,n){if(null!==e)return{conversationId:t,projectPath:U(n(e)),isCurrent:()=>X(n(e))===t};}(o,u,b);Promise.resolve(function(e,t,n,r,i,l){try{var o,u;if(null!==t&&null!==e)return null==(o=null==r?void 0:r(e,t,l))||o;if(null!==n){if(null===e)return!1;return null==(u=null==i?void 0:i(e,n,l))||u;}return!0;}catch{return!1;}}(o,t,n,h,g,a)).then(i=>{var l;return l=r.from,void(!i||void 0===b(l)||void 0===b(e)||(null===o||X(b(o))===u)&&(f(r=>H(r,l,e)?r:[...r,{id:`${l}~${e}`,a:l,b:e,...{...(null!==o?{boundChatWindowId:o}:{}),...(null!==t?{boundRoot:t.root,boundScopeKind:t.kind,boundRelativePath:t.relativePaths[0]}:{}),...(null===n?{}:"capsule"===n.kind?{boundConnectorKind:"capsule",boundConnectorId:n.capsuleId}:{boundConnectorKind:"capsule-set",boundConnectorId:n.capsuleSetId})}}]),s(e)));}).catch(()=>void 0);}A();},cancelConnect:A,removeConn:(e,t)=>{var n,r,i,o;let a=null!=(o=null==u?void 0:u.current.get(e))?o:l.current.find(t=>t.id===e);if(void 0===a||(null==t?void 0:t.unbind)===!1)return void S(e);let d=b(a.a),c=b(a.b),s=void 0!==d&&void 0!==c,f=null!=(n=a.boundChatWindowId)?n:s?V(d,c):null,p=Z(null===f?void 0:b(f)),h=null!=(r=eo(a))?r:!0!==a.boundScopeElided&&s?el(d,c,Date.now()):null,g=null!=(i=ea(a))?i:s?ed(d,c):null,I=null!==h&&void 0!==m,x=null!==g&&void 0!==y;null!==f&&(I||x)?w.has(e)||(w.add(e),G(f,h,g,p,m,y,v).then(t=>{w.delete(e),t&&S(e);})):S(e);},connect:(e,n)=>{let r=b(e),i=b(n);void 0!==r&&void 0!==i&&(0,t.canConnect)(r.type,i.type)&&f(t=>H(t,e,n)?t:[...t,{id:`${e}~${n}`,a:e,b:n}]);},linkedFilesRoot:e=>{var t,n;return null!=(t=null==(n=M(e))?void 0:n.root)?t:null;},linkedFilesContext:M,linkedAllFilesRoots:e=>{let t=new Set(),n=[];for(let r of I(e)){if(n.length>=16)break;let i=x(r,e);if(null===i)continue;let l=en(i);null===l||t.has(l)||(t.add(l),n.push(l));}return n;},linkedConnectorCapsuleIds:e=>R(e,"capsule"),linkedConnectorCapsuleSetIds:e=>R(e,"capsule-set"),linkedFigmaSnapshotRunIds:e=>{let t=new Set(),n=[];for(let r of I(e)){if(n.length>=16)break;let i=x(r,e),l=null===i?null:function(e){if("figma"!==e.type)return null;let t=e.cfg.snapshotRunId;return"string"==typeof t&&t.trim().length>0?t:null;}(i);null===l||t.has(l)||(t.add(l),n.push(l));}return n;},linkedFigmaSnapshotSources:e=>{let t=new Set(),n=[];for(let r of I(e)){if(n.length>=16)break;let i=x(r,e),l=null===i?null:function(e){let t,n,r;if("figma"!==e.type&&"figmaView"!==e.type&&"figmaJson"!==e.type)return null;let i=e.cfg.snapshotRunId;if("string"!=typeof i||0===i.trim().length)return null;let l=function(e){let t=function(e){if("string"!=typeof e||0===e.trim().length)return[];try{let t=JSON.parse(e);if(!Array.isArray(t))return[];let n=t.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>e.trim());return[...new Set(n)].sort((e,t)=>e.localeCompare(t));}catch{return[];}}(e.cfg.selectedScreenIdsJson);if(t.length>0)return t;let n=e.cfg.screenId;return"string"==typeof n&&n.trim().length>0?[n.trim()]:[];}(e);return(t=e.cfg.selectedScreenIdsJson,n=e.cfg.selectedScreenName,("figmaJson"===e.type||"figmaView"===e.type||void 0!==t||"string"==typeof n&&n.trim().length>0)&&0===l.length)?null:{key:`${i}:${l.join(",")||"*"}`,source:{kind:"figma-snapshot",label:(r=e.cfg.selectedScreenName,0===l.length||"string"!=typeof r||0===r.trim().length?i:"figmaJson"===e.type?`JSON \xb7 ${r}`:r),snapshotRunId:i,...(l.length>0?{screenIds:l}:{})}};}(i);null===l||t.has(l.key)||(t.add(l.key),n.push(l.source));}return n;},linkedImageSources:e=>{let t=new Set(),n=[];for(let r of I(e)){if(n.length>=16)break;let i=x(r,e),l=null===i?null:function(e){if("figmaImage"!==e.type)return null;let t=e.cfg.snapshotRunId,n=e.cfg.screenId;if("string"!=typeof t||0===t.trim().length||"string"!=typeof n||0===n.trim().length)return null;let r=e.cfg.selectedScreenName,i="string"==typeof r&&r.trim().length>0?`Image \xb7 ${r}`:`Image \xb7 ${n}`;return{key:`${t}:${n}`,source:{kind:"image",label:i,sourceKind:"figma-snapshot-screen",snapshotRunId:t,screenId:n}};}(i);null===l||t.has(l.key)||(t.add(l.key),n.push(l.source));}return n;},currentFilesContext:()=>{let e=null,t=0,n=null;for(let r of i.current){if("files"!==r.type)continue;let i=W(r);null!==i&&(t+=1,e=i),(null===n||r.z>n.z)&&(n=r);}return 1===t?e:null===n?null:W(n);}};},"makeLayoutActions",0,function(e){return{tileAll:function(e){let{setWins:t,worldVP:n}=e;return()=>t(e=>{if(null===e||0===e.length)return e;let t=n();if(null===t)return e;let r=e.length,i=Math.ceil(Math.sqrt(r)),l=Math.ceil(r/i),o=(t.w-12*(i+1))/i,u=(t.h-12*(l+1))/l,a=!1,d=e.map((e,n)=>{let r=Math.floor(n/i),l={x:t.x+12+n%i*(o+12),y:t.y+12+r*(u+12),w:o,h:u};return!1===e.max&&!1===e.minimized&&!Y(e)&&B(e,l)?e:(a=!0,{...K(e),max:!1,minimized:!1,...l});});return a?d:e;});}(e),splitFront:function(e){let{setWins:t,worldVP:n}=e;return()=>t(e=>{if(null===e||0===e.length)return e;let t=n();if(null===t)return e;let r=[...e].filter(e=>!0!==e.minimized).sort((e,t)=>t.z-e.z).slice(0,2).map(e=>e.id);if(r.length<2)return e;let i=!1,l=e.map(e=>{let n=r.indexOf(e.id);if(0===n){let n={x:t.x,y:t.y,w:t.w/2,h:t.h};return!1===e.max&&!1===e.minimized&&!Y(e)&&B(e,n)?e:(i=!0,{...K(e),max:!1,minimized:!1,...n});}if(1===n){let n={x:t.x+t.w/2,y:t.y,w:t.w/2,h:t.h};return!1===e.max&&!1===e.minimized&&!Y(e)&&B(e,n)?e:(i=!0,{...K(e),max:!1,minimized:!1,...n});}return e;});return i?l:e;});}(e),cascade:function(e){let{setWins:t,worldVP:n}=e;return()=>t(e=>{if(null===e)return e;let t=n();return null===t?e:e.map((e,n)=>({...K(e),max:!1,minimized:!1,x:t.x+24+30*n,y:t.y+24+30*n,w:Math.min(560,t.w-80),h:Math.min(420,t.h-80),z:n+1}));});}(e)};},"makeMutations",0,function(e){var t,r,i,l,u,d,c;return{update:(t=e.setWins,(e,n)=>t(t=>{if(null===t)return t;let r=!1,i=t.map(t=>{if(t.id!==e)return t;for(let[e,i]of Object.entries(n))if(!function e(t,n){if(Object.is(t,n))return!0;if(Array.isArray(t)||Array.isArray(n))return!!Array.isArray(t)&&!!Array.isArray(n)&&t.length===n.length&&t.every((t,r)=>e(t,n[r]));if(null===t||null===n||"object"!=typeof t||"object"!=typeof n)return!1;let r=Object.keys(t),i=Object.keys(n);return r.length===i.length&&r.every(r=>e(t[r],n[r]));}(t[e],i))return r=!0,{...t,...n};return t;});return r?i:t;})),focus:(r=e.setWins,i=e.zc,e=>r(t=>{if(null===t)return t;let n=t.find(t=>t.id===e);if(void 0===n)return t;let r=t.reduce((e,t)=>Math.max(e,t.z),-1/0);return!0!==n.minimized&&n.z>=r?t:(i.current=Math.max(i.current+1,r+1),t.map(t=>t.id===e?{...t,z:i.current}:t));})),close:(l=e.setWins,e=>l(t=>(null==t?void 0:t.some(t=>t.id===e))?t.filter(t=>t.id!==e):t)),minimize:(u=e.setWins,e=>u(t=>{if(null===t)return t;let n=!1,r=t.map(t=>t.id!==e||!0===t.minimized?t:(n=!0,{...t,minimized:!0}));return n?r:t;})),restore:(d=e.setWins,c=e.zc,e=>d(t=>{if(null===t)return t;let n=t.find(t=>t.id===e);if(void 0===n)return t;let r=t.reduce((e,t)=>Math.max(e,t.z),-1/0);return!0!==n.minimized&&n.z>=r?t:(c.current=Math.max(c.current+1,r+1),t.map(t=>t.id===e?{...t,minimized:!1,z:c.current}:t));})),maximize:function(e){let{setWins:t,zc:r,worldVP:i}=e;return e=>t(t=>{if(null===t)return t;let l=i();return null===l?t:t.map(t=>{if(t.id!==e)return t;if(t.max){var i,o;let e,u,a,d=null!=(i=t.prev)?i:(o=t.type,u=Math.min((e=n.WIN_TYPES[o]).w,Math.max(e.min.w,l.w-32)),a=Math.min(e.h,Math.max(e.min.h,l.h-32)),{x:l.x+Math.max(16,Math.round((l.w-u)/2)),y:l.y+Math.max(16,Math.round((l.h-a)/2)),w:u,h:a});return{...K(t),x:d.x,y:d.y,w:d.w,h:d.h,max:!1,z:++r.current};}return{...t,max:!0,prev:{x:t.x,y:t.y,w:t.w,h:t.h},x:l.x,y:l.y,w:l.w,h:l.h,z:++r.current};});});}(e),add:function(e){let{setWins:t,zc:r,worldVP:i}=e;return(l,o)=>{var u,a,d;let c,s,f,p=n.WIN_TYPES[l],h=null==(u=e.winsRef)?void 0:u.current;if(void 0!==h&&h.length>=128&&!function(e,t,r){let i;if(!0===n.WIN_TYPES[t].singleton)return e.some(e=>e.type===t);if("qiRun"===t&&(i="runId"),"chat"===t&&(i="chatId"),void 0===i)return!1;let l=null==r?void 0:r[i];return"string"==typeof l&&l.length>0&&e.some(e=>e.type===t&&e.cfg[i]===l);}(h,l,o))return null!==i()&&(null==(d=e.onWindowLimitReached)||d.call(e,128)),null;let{defaultW:m,defaultH:g,defaultMinW:y,defaultMinH:v}=(c=n.WIN_TYPES[l],s="figma"===l&&"string"==typeof(null==o?void 0:o.selectedScreenIdsJson)&&o.selectedScreenIdsJson.length>0,f=n.WIN_TYPES.figmaView,{defaultW:s?f.w:c.w,defaultH:s?f.h:c.h,defaultMinW:s?Math.max(c.min.w,f.min.w):c.min.w,defaultMinH:s?Math.max(c.min.h,f.min.h):c.min.h}),b=null,I=!1;return t(e=>{let t=i();if(null===t)return e;let u=null!=e?e:[];if(!0===p.singleton){let e=u.find(e=>e.type===l);if(void 0!==e)return b=e.id,u.map(t=>t.id===e.id?{...t,cfg:void 0===o?t.cfg:{...t.cfg,...o},minimized:!1,z:++r.current}:t);}let a="qiRun"===l?null==o?void 0:o.runId:void 0;if("string"==typeof a&&a.length>0){let e=u.find(e=>"qiRun"===e.type&&e.cfg.runId===a);if(void 0!==e)return b=e.id,u.map(t=>t.id===e.id?{...t,cfg:void 0===o?t.cfg:{...t.cfg,...o},minimized:!1,z:++r.current}:t);}let d="chat"===l?null==o?void 0:o.chatId:void 0;if("string"==typeof d&&d.length>0){let e=u.find(e=>"chat"===e.type&&e.cfg.chatId===d);if(void 0!==e)return b=e.id,u.map(t=>t.id===e.id?{...t,minimized:!1,z:++r.current}:t);}let c=function(e){var t,r;let i;if(e.list.length>=128)return{id:null,windows:e.list};let{x:l,y:o}=D(e.vp,e.defaultW,e.defaultH,e.list.length,40),u=!0===n.WIN_TYPES[e.type].singleton?e.type:function(e,t,n){let r="chat"===e?`${e}-${Date.now().toString(36)}-${n.toString(36)}`:`${e}-${Date.now().toString(36)}`;if(!t.some(e=>e.id===r))return r;let i=1;for(;t.some(e=>e.id===`${r}-${i.toString(36)}`);)i+=1;return`${r}-${i.toString(36)}`;}(e.type,e.list,e.zc.current+1);return{id:u,windows:[...e.list,{id:u,type:e.type,x:l,y:o,w:Math.max(e.defaultW,e.defaultMinW),h:Math.max(e.defaultH,e.defaultMinH),z:++e.zc.current,cfg:(t=e.type,i=null!=(r=e.cfg)?r:{},"chat"!==t||"boolean"==typeof i.memoryEnabled?i:{...i,memoryEnabled:!1}),max:!1,zoom:1}]};}({cfg:o,defaultH:g,defaultMinH:v,defaultMinW:y,defaultW:m,list:u,type:l,vp:t,zc:r});return b=c.id,I=null===c.id,[...c.windows];}),I&&(null==(a=e.onWindowLimitReached)||a.call(e,128)),b;};}(e),openEditorFile:function(e){let{setWins:t,zc:r,worldVP:i,winsRef:l}=e;return u=>{var d,c;let{root:s,path:f,lineStart:p,lineEnd:h}=u,m=F(s);if(0===m.length)return{ok:!1,message:"Select a repository source before opening file references."};let g=O(m,f);if(0===g.length)return{ok:!1,message:"This repository reference is not a valid file path."};let y=i();if(null===y)return{ok:!1,message:"Unable to open editor because the workspace viewport is not ready."};let v=function(e,t){if(void 0===e)return{};let n=Math.max(1,Math.floor(e)),r=Math.max(n,Math.floor(null!=t?t:n));return{revealLineStart:n,revealLineEnd:r,revealRequestId:`${Date.now().toString(36)}:${n.toString()}:${r.toString()}`};}(p,h),b=null!=(d=null==l?void 0:l.current)?d:[],I=b.find(e=>"editor"===e.type&&F("string"==typeof e.cfg.root?e.cfg.root:"")===m);if(void 0!==I){let e=I.id;return t(t=>null===t?t:t.map(t=>{var n,i;let l,u,d;if(t.id!==e)return t;let c=(n=t.cfg,l=O(m,null!=(i=N(n,"file"))?i:""),u=(0,o.createEditorLayoutStateV2)({root:m,file:l,openFiles:function(e,t,n){let r=[],i=e=>{let n=O(t,e);0===n.length||r.includes(n)||r.push(n);};if(Array.isArray(e.openFiles))for(let t of e.openFiles)i(t);return i(e.file),i(n),r;}(n,m,g),layoutJson:N(n,"layoutJson"),defaultSidebarWidth:a.EDITOR_SIDEBAR_DEFAULT_WIDTH,minSidebarWidth:a.EDITOR_SIDEBAR_MIN_WIDTH,maxSidebarWidth:a.EDITOR_SIDEBAR_PERSISTED_MAX_WIDTH}),d=(0,o.editorLayoutReducer)(u,{type:"open-file",paneId:(0,o.activeEditorPane)(u).id,file:g}),{file:g,openFiles:(0,o.editorLayoutOpenFiles)(d),layoutJson:(0,o.serializeEditorLayoutStateV2)(d)});return{...t,minimized:!1,z:++r.current,cfg:{...t.cfg,root:m,...c,...v}};})),{ok:!0,windowId:e};}if(b.length>=128)return null==(c=e.onWindowLimitReached)||c.call(e,128),{ok:!1,message:"Unable to open editor because the workspace window limit is reached."};let w=n.WIN_TYPES.editor,{x:S,y:x}=D(y,w.w,w.h,b.length,40),A=`editor-${Date.now().toString(36)}`;return t(e=>[...(null!=e?e:[]),{id:A,type:"editor",x:S,y:x,w:Math.max(w.w,w.min.w),h:Math.max(w.h,w.min.h),z:++r.current,cfg:{root:m,file:g,openFiles:[g],layoutJson:(0,o.serializeEditorLayoutStateV2)((0,o.createEditorLayoutStateV2)({root:m,file:g,openFiles:[g],defaultSidebarWidth:a.EDITOR_SIDEBAR_DEFAULT_WIDTH,minSidebarWidth:a.EDITOR_SIDEBAR_MIN_WIDTH,maxSidebarWidth:a.EDITOR_SIDEBAR_PERSISTED_MAX_WIDTH})),...v},max:!1,zoom:1}]),{ok:!0,windowId:A};};}(e),toggleTool:function(e){let{setWins:t,zc:r,worldVP:i}=e;return l=>{var o,u,a;let d=n.WIN_TYPES[l],c=null==(o=e.winsRef)?void 0:o.current;if(void 0!==c&&c.length>=128&&!c.some(e=>e.type===l)){null!==i()&&(null==(a=e.onWindowLimitReached)||a.call(e,128));return;}let s=!1;t(e=>{let t=i();if(null===t)return e;let n=null!=e?e:[],o=n.find(e=>e.type===l);if((null==o?void 0:o.minimized)===!0)return n.map(e=>e.id===o.id?{...e,minimized:!1,z:++r.current}:e);if(void 0!==o)return n.filter(e=>e.type!==l);if(n.length>=128)return s=!0,n;let{x:u,y:a}=D(t,d.w,d.h,n.length,28);return[...n,{id:l,type:l,x:u,y:a,w:d.w,h:d.h,z:++r.current,cfg:{},max:!1,zoom:1}];}),s&&(null==(u=e.onWindowLimitReached)||u.call(e,128));};}(e)};},"makeSnapActions",0,function(e){let{setSnapPrev:n,snapZone:r,worldVP:i,update:l}=e;return{setSnap:e=>{if(r.current=e,null===e)return void n(null);let l=i();null!==l&&n((0,t.snapMap)(l)[e]);},commitSnap:e=>{let o=r.current;if(r.current=null,n(null),null===o)return;let u=i();if(null===u)return;let a={...(0,t.snapMap)(u)[o],max:"maxi"===o};"maxi"===o&&(a.prev={x:u.x+40,y:u.y+40,w:480,h:360}),l(e,a);}};},"moveSelectedWorkspaceWindows",0,function(e,t,n,r){let i,o,u,a;if(!Number.isFinite(n.dx)||!Number.isFinite(n.dy)||0===n.dx&&0===n.dy)return j(e);let d=(i=new Set(t),e.filter(e=>i.has(e.id)&&L(e))),c=function(e){if(0===e.length)return null;let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let l of e)t=Math.min(t,l.x),n=Math.min(n,l.y),r=Math.max(r,l.x+l.w),i=Math.max(i,l.y+l.h);return{minX:t,minY:n,maxX:r,maxY:i};}(d);if(null===c)return j(e);let s=(u=(o=l({...c,minX:c.minX+n.dx,minY:c.minY+n.dy,maxX:c.maxX+n.dx,maxY:c.maxY+n.dy},r)).x,a=o.y,{dx:u-c.minX,dy:a-c.minY});if(0===s.dx&&0===s.dy)return j(e);let f=new Set(d.map(e=>e.id)),p=!1,h=e.map(e=>f.has(e.id)?(p=!0,{...e,x:e.x+s.dx,y:e.y+s.dy}):e);return p?{wins:h,appliedDelta:s}:j(e);},"normalizeWorkspaceSelection",0,J,"removeConnectedScope",0,function(e,t){return e.filter(e=>!ei(e,t));},"removeConnectorScope",0,function(e,t){return e.filter(e=>eu(e)!==t);},"replaceWorkspaceSelection",0,function(e,t){var n;return J(e,{focusedWindowId:null!=(n=t.at(-1))?n:null,selectedWindowIds:t});},"toggleWorkspaceSelection",0,function(e,t,n){if(!$(e).has(n))return J(e,t);let r=t.selectedWindowIds.includes(n)?t.selectedWindowIds.filter(e=>e!==n):[...t.selectedWindowIds,n];return J(e,{focusedWindowId:n,selectedWindowIds:r});},"totalSourceCap",0,function(e){return Math.max(e.maxConnectedSources,e.maxLocalKnowledgeSources);}],68611);}]);
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67914,e=>{"use strict";var t=e.i(10582),n=e.i(87032),r=e.i(5353),i=e.i(50850);function l(e){return e.findIndex(e=>!0!==e.disabled);}function o(e,t,n){if(0===e.length)return-1;let r=t;for(let t=0;t<e.length;t+=1){var i;if(r=(r+n+e.length)%e.length,(null==(i=e[r])?void 0:i.disabled)!==!0)return r;}return-1;}function a(e){let{active:i,index:l,onCommit:o,onOptionKeyDown:a,option:s,setOptionRef:d}=e,u=(0,n.useRef)(null),c=(0,n.useRef)(null),f=(0,n.useRef)(null),[p,m]=(0,n.useState)(null),g=()=>{null!==f.current&&(clearTimeout(f.current),f.current=null),m(null);},h=()=>{null!==f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{let e=c.current,t=u.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),r=Math.min(520,window.innerWidth-32),i=n.right+8+r<=window.innerWidth-16?"top-left":"top-right";m({left:"top-left"===i?n.right+8:n.left-8,placement:i,top:n.top-6});},1500);};return(0,n.useEffect)(()=>g,[]),(0,t.jsxs)("button",{ref:e=>{u.current=e,d(l,e);},"aria-selected":i,className:`ksel-option${i?" ksel-option-active":""}`,"data-disabled":!0===s.disabled?"true":void 0,disabled:s.disabled,onBlur:g,onClick:()=>o(s),onFocus:h,onKeyDown:e=>a(e,l),onPointerEnter:h,onPointerLeave:g,role:"option",type:"button",children:[(0,t.jsxs)("span",{className:"ksel-option-copy",children:[(0,t.jsx)("span",{className:"ksel-option-label",ref:c,children:s.label}),void 0!==s.description?(0,t.jsx)("span",{className:"ksel-option-desc",children:s.description}):null]}),void 0!==s.badge?(0,t.jsx)("span",{className:"ksel-option-badge",children:s.badge}):null,null!==p?(0,r.createPortal)((0,t.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":p.placement,role:"tooltip",style:{left:`${p.left.toString()}px`,top:`${p.top.toString()}px`},children:s.label}),document.body):null]});}function s(e){let{activeIndex:n,flatOptions:r,menuId:i,onCommit:l,onOptionKeyDown:o,section:s,sectionIndex:d,setOptionRef:u}=e,c=void 0!==s.label?`${i}-section-${d.toString()}`:void 0;return(0,t.jsxs)("div",{className:"ksel-section",role:void 0!==s.label?"group":"presentation","aria-labelledby":c,children:[void 0!==s.label?(0,t.jsx)("div",{className:"ksel-section-label",id:c,children:s.label}):null,s.options.map(e=>{var i;let d=r.findIndex(t=>t.value===e.value&&t.sectionLabel===s.label),c=r[d];return void 0===c?null:(0,t.jsx)(a,{active:d===n,index:d,onCommit:l,onOptionKeyDown:o,option:c,setOptionRef:u},`${null!=(i=s.label)?i:"section"}-${e.value}`);})]});}function d(e){var n;let{activeIndex:i,ariaLabel:l,flatOptions:o,menuClassName:a,menuCountLabel:d,menuId:u,menuLabel:c,menuRef:f,menuTitle:p,onCommit:m,onOptionKeyDown:g,placeholder:h,position:b,sections:y,setOptionRef:v,showMenuHeader:w}=e;return(0,r.createPortal)((0,t.jsxs)("div",{ref:f,className:["ksel-menu",b.attached?"ksel-menu-attached":"",b.openUp?"ksel-menu-open-up":"ksel-menu-open-down",null!=a?a:""].filter(e=>e.length>0).join(" "),style:{left:`${b.left.toString()}px`,top:`${b.top.toString()}px`,width:`${b.width.toString()}px`,"--ksel-option-height":`${b.optionHeight.toString()}px`,fontFamily:b.fontFamily,fontSize:b.fontSize,fontWeight:b.fontWeight,letterSpacing:b.letterSpacing,lineHeight:b.lineHeight},children:[w?(0,t.jsxs)("div",{className:"ksel-menu-head",children:[(0,t.jsx)("div",{className:"ksel-menu-title",children:null!=(n=null!=p?p:l)?n:h}),(0,t.jsx)("div",{className:"ksel-menu-note",children:null!=d?d:`${o.length.toString()} options`})]}):null,(0,t.jsx)("div",{className:"ksel-menu-scroll",role:"listbox",id:u,"aria-label":c,style:{maxHeight:`${b.maxHeight.toString()}px`},children:y.map((e,n)=>{var r;return(0,t.jsx)(s,{activeIndex:i,flatOptions:o,menuId:u,onCommit:m,onOptionKeyDown:g,section:e,sectionIndex:n,setOptionRef:v},`${null!=(r=e.label)?r:"section"}-${n.toString()}`);})})]}),document.body);}e.s(["default",0,function(e){var r,a,s,u,c,f;let{value:p,sections:m,onValueChange:g,disabled:h=!1,placeholder:b,ariaLabel:y,ariaDescribedBy:v,ariaLabelledBy:w,triggerClassName:x,menuClassName:S,menuTitle:C,menuCountLabel:k,showMenuHeader:R=!0,leadingVisual:P,mono:E=!1,showChevron:j=!0,menuMinWidth:O,attached:_=!0,triggerStyle:M,autoFocus:$=!1}=e,N=(0,i.useTranslate)(),I=(0,n.useRef)(null),T=(0,n.useRef)(null),L=(0,n.useRef)([]),D=(0,n.useId)(),[U,z]=(0,n.useState)(!1),[A,F]=(0,n.useState)(-1),[K,H]=(0,n.useState)(null),[W,B]=(0,n.useState)(!1),J=(0,n.useMemo)(()=>m.flatMap((e,t)=>e.options.map((n,r)=>{var i;return{...n,key:`${null!=(i=e.label)?i:"section"}-${t.toString()}-${n.value}-${r.toString()}`,sectionLabel:e.label};})),[m]),q=J.findIndex(e=>e.value===p),G=-1===q?null:J[q],X=null!=b?b:N("select.placeholder"),V=null!=(r=null==G?void 0:G.label)?r:X,Q=null!=(a=null==G?void 0:G.description)?a:null,Y=null!=(s=null!=C?C:y)?s:X,Z=()=>{z(!1),F(-1);},ee=e=>{var t,n;if(h||0===J.length)return;let r=void 0!==e&&(null==(t=J[e])?void 0:t.disabled)!==!0?e:q>=0&&(null==(n=J[q])?void 0:n.disabled)!==!0?q:l(J);z(!0),F(r);};function et(e){var t;e.disabled||(g(e.value),Z(),null==(t=I.current)||t.focus());}(0,n.useEffect)(()=>{if(!U)return;let e=e=>{let t=e.target;null!==I.current&&t instanceof Node&&I.current.contains(t)||null!==T.current&&t instanceof Node&&T.current.contains(t)||Z();},t=()=>Z();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[U]),(0,n.useLayoutEffect)(()=>{if(!U||null===I.current)return;let e=()=>{var e;let t=null==(e=I.current)?void 0:e.getBoundingClientRect();if(void 0===t)return;let n=Math.min(void 0!==O&&t.width<Math.min(O,96)?O:t.width,window.innerWidth-32),r=_&&1>Math.abs(n-t.width),i=r?-1:6,l=window.innerHeight-t.bottom-16,o=t.top-16,a=l<Math.max(96,2*t.height)&&o>l;B(a);let s=a?o:l,d=50*!!R+2,u=Math.max(t.height,Math.min(Math.max(t.height,s-d),380)),c=u+d,f=window.getComputedStyle(I.current);H({left:Math.min(Math.max(16,t.left),window.innerWidth-n-16),width:n,top:a?Math.max(16,t.top-c-i):Math.min(t.bottom+i,window.innerHeight-16-c),optionHeight:Math.max(28,Math.min(t.height,30)),maxHeight:u,openUp:a,attached:r,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,letterSpacing:f.letterSpacing,lineHeight:f.lineHeight});};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0);};},[U,_,O,R]),(0,n.useLayoutEffect)(()=>{if(!U||null===K||!K.openUp||null===I.current||null===T.current)return;let e=I.current.getBoundingClientRect(),t=T.current.getBoundingClientRect();if(t.height<=0)return;let n=K.attached?-1:6,r=Math.max(16,e.top-t.height-n);.5>Math.abs(r-K.top)||H(e=>null===e?e:{...e,top:r});},[U,K]),(0,n.useEffect)(()=>{var e,t;U&&!(A<0)&&(null==(e=L.current[A])||e.focus(),null==(t=L.current[A])||t.scrollIntoView({block:"nearest"}));},[U,A]),(0,n.useEffect)(()=>{if(!U)return;let e=e=>{var t,n;if("Escape"===e.key){Z(),null==(t=I.current)||t.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){if((n=e.target)instanceof HTMLElement&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SELECT"===n.tagName||n.isContentEditable))return;let t=function(e,t,n){for(let r=1;r<=e.length;r+=1){let i=(t+r)%e.length,l=e[i];if(void 0!==l&&!0!==l.disabled&&l.label.toLowerCase().startsWith(n))return i;}return-1;}(J,A>=0?A:Math.max(q,0),e.key.toLowerCase());-1!==t&&F(t);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[U,A,J,q]);let en=["ksel-trigger",(u={disabled:h,mono:E,open:U,openUp:W,position:K,triggerClassName:x}).mono?"mono":"",null!=(c=u.triggerClassName)?c:"",u.open?"ksel-trigger-open":"",u.open&&(null==(f=u.position)?void 0:f.attached)===!0?u.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",u.disabled?"ksel-trigger-disabled":""].filter(e=>e.length>0).join(" "),er=U&&null!==K?(0,t.jsx)(d,{activeIndex:A,ariaLabel:y,flatOptions:J,menuClassName:S,menuCountLabel:k,menuId:D,menuLabel:Y,menuRef:T,menuTitle:C,onCommit:et,onOptionKeyDown:function(e,t){var n,r;if("Escape"===e.key){e.preventDefault(),Z(),null==(n=I.current)||n.focus();return;}if("Tab"===e.key){e.preventDefault(),Z(),null==(r=I.current)||r.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),F(o(J,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),F(o(J,t,-1));return;}if("Home"===e.key){e.preventDefault(),F(l(J));return;}if("End"===e.key){e.preventDefault(),F(o(J,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=J[t];void 0!==n&&et(n);}},placeholder:b,position:K,sections:m,setOptionRef:(e,t)=>{L.current[e]=t;},showMenuHeader:R}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:I,"aria-controls":D,"aria-describedby":v,"aria-expanded":U,"aria-haspopup":"listbox","aria-label":y,"aria-labelledby":w,autoFocus:$,className:en,disabled:h,onClick:()=>{U?Z():ee();},onKeyDown:function(e){if(!h){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),ee(q>=0?q:l(J));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),U?Z():ee());}},role:"combobox",style:M,type:"button",children:[void 0!==P?(0,t.jsx)("span",{className:"ksel-trigger-leading",children:P}):null,(0,t.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,t.jsx)("span",{className:"ksel-trigger-label",children:V}),null!==Q?(0,t.jsx)("span",{className:"ksel-trigger-desc",children:Q}):null]}),j?(0,t.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${U?" ksel-trigger-caret-open":""}`,children:(0,t.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,t.jsx)("path",{d:"M2.25 4.5 6 8.25 9.75 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}):null]}),er]});}]);},61593,e=>{"use strict";var t=e.i(76055),n=e.i(70045);let r=["externalEmbeddings","localEmbeddings","externalReranking","localReranking","answerSynthesis","rawContentRelease","evidencePersistence"],i={externalEmbeddings:"deny",localEmbeddings:"allow",externalReranking:"deny",localReranking:"allow",answerSynthesis:"deny",rawContentRelease:"deny",evidencePersistence:"allow"};function l(e,t){let n=new Map();for(let r of null!=e?e:[])r.kind===t&&n.set(String(r.id),r);return n;}function o(e){return"html-manual-local"===e||"html-manual-http"===e;}function a(e){return`${e.documentCount.toString()} docs \xb7 ${e.chunkCount.toString()} chunks \xb7 ${e.vectorCount.toString()} vectors`;}function s(e,t){return t.some(t=>e.has(t));}function d(e){let t=function(e){var t,n;let l,d,u;if(void 0===e)return;let c=null!=(l=e.modelUsePolicy)?l:{source:"legacy-default",mode:"sealed-local",operations:i},f="incompatible"===(d=e.retrieval.embeddingCompatibilityStatus)?{label:"Embedding mismatch",description:"pod-set"===e.kind?"Semantic retrieval is disabled for affected set members until they are reindexed locally.":"Semantic retrieval is disabled for this pod until it is reindexed locally.",tone:"danger"}:"unavailable"===d?{label:"Embedding unavailable",description:"pod-set"===e.kind?"Semantic retrieval cannot run for affected set members under the current local policy.":"Semantic retrieval cannot run under the current local policy.",tone:"danger"}:"unknown"===d||!0===e.retrieval.reindexRecommended?{label:"Reindex recommended",description:"pod-set"===e.kind?"Compatibility is unverified for affected set members; lexical fallback remains available.":"Compatibility is unverified; lexical fallback remains available.",tone:"warning"}:"opaque"===d?{label:"Embedding opaque",description:"pod-set"===e.kind?"Semantic compatibility cannot be verified for this Knowledge Pod Set.":"Semantic compatibility cannot be verified for this retrieval space.",tone:"muted"}:void 0,p="deny"===(u=c.operations).answerSynthesis||"deny"===u.rawContentRelease?{label:"Policy denied",description:"pod-set"===e.kind?"This Knowledge Pod Set blocks grounded answer synthesis or raw-content release for affected members; Keiko will return a policy-denied state instead of sending excerpts to a model.":"This Knowledge Pod blocks grounded answer synthesis or raw-content release; Keiko will return a policy-denied state instead of sending excerpts to a model.",tone:"danger"}:"deny"===u.externalEmbeddings||"deny"===u.externalReranking?{label:"Sealed local policy",description:"pod-set"===e.kind?"External embedding or reranking calls are disabled for affected set members; retrieval may use lexical or local fallback.":"External embedding or reranking calls are disabled for this Knowledge Pod; retrieval may use lexical or local fallback.",tone:"warning"}:void 0,m=function(e){if("pod-set"!==e.kind||void 0===e.setReadiness)return;let t=new Set(e.setReadiness.reasonCodes);return s(t,["future-remote-member","future-federated-member","future-ephemeral-member"])?{label:"Future member placeholder",description:"This Knowledge Pod Set includes future remote, federated, or ephemeral placeholders; those members are not active retrieval sources yet.",tone:"warning"}:s(t,["missing-member","member-error","member-unavailable"])?{label:"Members unavailable",description:"Some set members are missing, failed, or unavailable; retrieval will use only available members.",tone:"danger"}:s(t,["member-indexing","member-stale","member-draft"])?{label:"Members not ready",description:"Some set members are indexing, stale, or draft; refresh or index them before relying on this set.",tone:"warning"}:s(t,["member-degraded","no-sources","no-vectors"])?{label:"Retrieval degraded",description:"Some set members have no sources, no vectors, or degraded indexing; lexical fallback may be the only available path.",tone:"warning"}:s(t,["embedding-unknown","embedding-incompatible","embedding-unavailable","embedding-opaque"])?{label:"Embedding readiness warning",description:"Some set members need embedding review; Keiko does not compare raw vector scores across embedding spaces.",tone:"warning"}:void 0;}(e),g=function(e){if(e.sourceKinds.length>0&&e.sourceKinds.every(o))return"ready"===e.readiness?{label:"HTML manual",description:`Ready for chat retrieval through Local Knowledge. ${a(e.counts)}.`,tone:"muted"}:"degraded"===e.readiness?{label:"Manual degraded",description:`Manual retrieval is degraded; answers may use only available evidence. ${a(e.counts)}.`,tone:"warning"}:"draft"===e.readiness||"indexing"===e.readiness||"stale"===e.readiness?{label:"Manual indexing",description:`Manual retrieval is ${e.readiness}; it is not yet ready to contribute evidence.`,tone:"warning"}:{label:"Manual unavailable",description:`Manual retrieval is ${e.readiness}; it cannot contribute silently as empty evidence.`,tone:"danger"};}(e),h=null!=(t=null!=(n=null!=p?p:f)?n:m)?t:g,b=r.filter(e=>"deny"===c.operations[e]);return{readiness:e.readiness,counts:e.counts,...(void 0!==e.setReadiness?{setReadiness:e.setReadiness}:{}),sourceKinds:e.sourceKinds,degradationReasons:e.degradationReasons,modelUsePolicy:c,sealed:"sealed-pod-policy"===e.governance.sealingPosture||"sealed-local"===c.mode,deniedModelOperations:b,...(void 0!==e.retrieval.embeddingCompatibilityStatus?{embeddingCompatibilityStatus:e.retrieval.embeddingCompatibilityStatus}:{}),...(void 0!==e.retrieval.embeddingCompatibilityReason?{embeddingCompatibilityReason:e.retrieval.embeddingCompatibilityReason}:{}),reindexRecommended:!0===e.retrieval.reindexRecommended,queryEmbeddingAllowed:!0===e.retrieval.queryEmbeddingAllowed,...(void 0!==h?{guidance:h}:{}),...(void 0!==e.manualRefresh?{manualRefresh:e.manualRefresh}:{})};}(e);return void 0===t?{}:{knowledgePod:t};}function u(e){return`The server returned an unexpected error (HTTP ${e.toString()}). Try again.`;}async function c(e){try{let t=await e.json();return{code:t.error.code,message:t.error.message};}catch{return{code:"INTERNAL",message:u(e.status)};}}async function f(e,t){return(0,n.bffFetchJson)(e,t,{parseFailureMessage:u});}function p(e,t){return(null==t?void 0:t.includeKnowledgePods)===!0?`${e}?includeKnowledgePods=1`:e;}async function m(e){return f(p("/api/local-knowledge/capsules",e));}async function g(e){return f(p("/api/local-knowledge/capsule-sets",e));}async function h(e){return f("/api/local-knowledge/capsules",{method:"POST",body:JSON.stringify(e)});}async function b(e){return f("/api/local-knowledge/capsule-sets",{method:"POST",body:JSON.stringify(e)});}async function y(e){return f(`/api/local-knowledge/capsule-sets/${encodeURIComponent(e)}`,{method:"DELETE"});}async function v(e,t){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)});}async function w(e,t){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({contextualRetrieval:t})});}async function x(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/index`,{method:"POST",body:JSON.stringify({confirm:!0})});}async function S(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/index`,{method:"DELETE",body:JSON.stringify({confirm:!0})});}async function C(e,t,n){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/connection`,{method:"POST",body:JSON.stringify({scope:t,displayName:n})});}async function k(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/connection`,{method:"DELETE",body:JSON.stringify({confirm:!0})});}async function R(e,t,n){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/sources/${encodeURIComponent(t)}/root`,{method:"PATCH",body:JSON.stringify({rootPath:n})});}async function P(e){var n;let r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fetch,l=`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,o=await i(l,{headers:(n=void 0,r={Accept:"application/json"},null!=n&&(r["Content-Type"]="application/json"),r)});if(!o.ok){let{code:e,message:n}=await c(o);throw new t.ApiError(e,n,o.status);}return o.json();}async function E(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,{method:"DELETE",body:JSON.stringify({capsuleId:e,deleteIndex:!0,deleteSources:!1})});}async function j(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"changed-files"})});}async function O(e){return f("/api/local-knowledge/manual-pods/create",{method:"POST",body:JSON.stringify(e)});}async function _(e,t){return f("/api/local-knowledge/manual-pods/refresh",{method:"POST",body:JSON.stringify({capsuleId:e,sourceId:t})});}async function M(e){return f(`/api/local-knowledge/manual-pods/jobs/${encodeURIComponent(e)}`);}async function $(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"repair-failed"})});}async function N(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"full-reembed",force:!0})});}async function I(e){return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"full-rebuild",force:!0})});}async function T(e,t){let n={capsuleId:e,mode:"resume",...(void 0!==t?{resumeJobId:t}:{})};return f(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify(n)});}e.s(["cancelIndexing",0,S,"capsuleSetsForKnowledgePodUi",0,function(e){let t=l(e.knowledgePods,"pod-set");return e.capsuleSets.map(e=>{var n,r;return{...e,displayName:null!=(n=null==(r=t.get(String(e.id)))?void 0:r.displayName)?n:e.displayName,...d(t.get(String(e.id)))};});},"capsulesForKnowledgePodUi",0,function(e){let t=l(e.knowledgePods,"pod");return e.capsules.map(e=>{var n,r;return{...e,displayName:null!=(n=null==(r=t.get(String(e.id)))?void 0:r.displayName)?n:e.displayName,...d(t.get(String(e.id)))};});},"connectCapsuleSource",0,C,"createCapsule",0,h,"createCapsuleSet",0,b,"deleteCapsule",0,E,"deleteCapsuleSet",0,y,"disconnectCapsule",0,k,"fetchCapsuleDetail",0,P,"fetchCapsuleSets",0,g,"fetchCapsules",0,m,"getHtmlManualPodJob",0,M,"rebindCapsuleSourceRoot",0,R,"rebuildCapsuleIndex",0,I,"reembedCapsuleForCurrentModel",0,N,"refreshCapsuleChangedFiles",0,j,"renameCapsule",0,v,"repairCapsuleFailedFiles",0,$,"resumeCapsuleLargeDocuments",0,T,"startHtmlManualPodCreate",0,O,"startHtmlManualPodRefresh",0,_,"startIndexing",0,x,"updateCapsuleContextualRetrieval",0,w],61593);},29673,e=>{"use strict";e.s(["decodeBase64ArrayBuffer",0,function(e){let t=atob(e),n=new ArrayBuffer(t.length),r=new Uint8Array(n);for(let e=0;e<t.length;e+=1)r[e]=t.codePointAt(e);return n;},"toExactArrayBuffer",0,function(e){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t;}]);},42173,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i;}});let r=e.r(87032);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t());}else e&&(n.current=l(e,r)),t&&(i.current=l(t,r));},[e,t]);}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null;};{let n=e(t);return"function"==typeof n?n:()=>e(null);}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default);},56772,(e,t,n)=>{"use strict";function r(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:l,objectFit:o}=e,a=r?40*r:t,s=i?40*i:n,d=a&&s?`viewBox='0 0 ${a} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${l}'/%3E%3C/svg%3E`;}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r;}});},95439,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return l;},imageConfigDefault:function(){return o;}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let l=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1};},98900,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return d;}}),e.r(95654);let r=e.r(88841),i=e.r(56772),l=e.r(95439),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default;}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN;}function d(e,t){var n,d;let u,c,f,{src:p,sizes:m,unoptimized:g=!1,priority:h=!1,preload:b=!1,loading:y,className:v,quality:w,width:x,height:S,fill:C=!1,style:k,overrideSrc:R,onLoad:P,onLoadingComplete:E,placeholder:j="empty",blurDataURL:O,fetchPriority:_,decoding:M="async",layout:$,objectFit:N,objectPosition:I,lazyBoundary:T,lazyRoot:L,...D}=e,{imgConf:U,showAltText:z,blurComplete:A,defaultLoader:F}=t,K=U||l.imageConfigDefault;if("allSizes"in K)u=K;else{let e=[...K.deviceSizes,...K.imageSizes].sort((e,t)=>e-t),t=K.deviceSizes.sort((e,t)=>e-t),r=null==(n=K.qualities)?void 0:n.sort((e,t)=>e-t);u={...K,allSizes:e,deviceSizes:t,qualities:r};}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=D.loader||F;delete D.loader,delete D.srcSet;let W="__next_img_default"in H;if(W){if("custom"===u.loader)throw Object.defineProperty(Error(`Image with src "${p}" is missing "loader" prop.
2
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0});}else{let e=H;H=t=>{let{config:n,...r}=t;return e(r);};}if($){"fill"===$&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[$];e&&(k={...k,...e});let t={responsive:"100vw",fill:"100vw"}[$];t&&!m&&(m=t);}let B="",J=s(x),q=s(S);if((d=p)&&"object"==typeof d&&(a(d)||void 0!==d.src)){let e=a(p)?p.default:p;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,f=e.blurHeight,O=O||e.blurDataURL,B=e.src,!C)if(J||q){if(J&&!q){let t=J/e.width;q=Math.round(e.height*t);}else if(!J&&q){let t=q/e.height;J=Math.round(e.width*t);}}else J=e.width,q=e.height;}let G=!h&&!b&&("lazy"===y||void 0===y);(!(p="string"==typeof p?p:B)||p.startsWith("data:")||p.startsWith("blob:"))&&(g=!0,G=!1),u.unoptimized&&(g=!0),W&&!u.dangerouslyAllowSVG&&p.split("?",1)[0].endsWith(".svg")&&(g=!0);let X=s(w),V=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:I}:{},z?{}:{color:"transparent"},k),Q=A||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:J,heightInt:q,blurWidth:c,blurHeight:f,blurDataURL:O||"",objectFit:V.objectFit})}")`:`url("${j}")`,Y=o.includes(V.objectFit)?"fill"===V.objectFit?"100% 100%":"cover":V.objectFit,Z=Q?{backgroundSize:Y,backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},ee=function(e){let{config:t,src:n,unoptimized:i,width:l,quality:o,sizes:a,loader:s}=e;if(i){if(n.startsWith("/")&&!n.startsWith("//")){let e=(0,r.getDeploymentId)();if(e){let t=n.indexOf("?");if(-1!==t){let r=new URLSearchParams(n.slice(t+1));r.get("dpl")||(r.append("dpl",e),n=n.slice(0,t)+"?"+r.toString());}else n+=`?dpl=${e}`;}}return{src:n,srcSet:void 0,sizes:void 0};}let{widths:d,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"};}return{widths:i,kind:"w"};}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"};}(t,l,a),c=d.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:d.map((e,r)=>`${s({config:t,src:n,quality:o,width:e})} ${"w"===u?e:r+1}${u}`).join(", "),src:s({config:t,src:n,quality:o,width:d[c]})};}({config:u,src:p,unoptimized:g,width:J,quality:X,sizes:m,loader:H}),et=G?"lazy":y;return{props:{...D,loading:et,fetchPriority:_,width:J,height:q,decoding:M,className:v,style:{...V,...Z},sizes:ee.sizes,srcSet:ee.srcSet,src:R||ee.src},meta:{unoptimized:g,preload:b||h,placeholder:j,fill:C}};}},2547,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a;}});let r=e.r(87032),i="u"<typeof window,l=i?()=>{}:r.useLayoutEffect,o=i?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e));}}if(i){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),a();}return l(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children);};}),l(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a);})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null);})),null;}},48501,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return g;},defaultHead:function(){return c;}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let l=e.r(54127),o=e.r(77427),a=e.r(10582),s=o._(e.r(87032)),d=l._(e.r(2547)),u=e.r(81788);function c(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")];}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t);}e.r(95654);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,n,r,i;return e.reduce(f,[]).reverse().concat(c().reverse()).filter((t=new Set(),n=new Set(),r=new Set(),i={},e=>{let l=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?l=!1:t.add(n);}switch(e.type){case"title":case"base":n.has(e.type)?l=!1:n.add(e.type);break;case"meta":for(let t=0,n=p.length;t<n;t++){let n=p[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?l=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set();("name"!==n||!o)&&r.has(t)?l=!1:(r.add(t),i[n]=r);}}}return l;})).reverse().map((e,t)=>{let n=e.key||t;return s.default.cloneElement(e,{key:n});});}let g=function(e){let{children:t}=e,n=(0,s.useContext)(u.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:m,headManager:n,children:t});};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default);},79034,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return l;}});let r=e.r(54127)._(e.r(87032)),i=e.r(95439),l=r.default.createContext(i.imageConfigDefault);},65196,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r;}});let r=e.r(54127)._(e.r(87032)).default.createContext(null);},33885,(e,t,n)=>{"use strict";function r(e,t){var n;let r=e||75;return(null==t||null==(n=t.qualities)?void 0:n.length)?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r;}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return r;}});},78225,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o;}});let r=e.r(33885),i=e.r(88841);function l(e){var t;let{config:n,src:l,width:o,quality:a}=e,s=(0,i.getDeploymentId)();if(l.startsWith("/")&&!l.startsWith("//")){let e=l.indexOf("?");if(-1!==e){let t=new URLSearchParams(l.slice(e+1)),n=t.get("dpl");if(n){s=n,t.delete("dpl");let r=t.toString();l=l.slice(0,e)+(r?"?"+r:"");}}}if(l.startsWith("/")&&l.includes("?")&&(null==(t=n.localPatterns)?void 0:t.length)===1&&"**"===n.localPatterns[0].pathname&&""===n.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${l}" is using a query string which is not configured in images.localPatterns.
3
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let d=(0,r.findClosestQuality)(a,n);return`${n.path}?url=${encodeURIComponent(l)}&w=${o}&q=${d}${l.startsWith("/")&&s?`&dpl=${s}`:""}`;}l.__next_img_default=!0;let o=l;},67844,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return w;}});let r=e.r(54127),i=e.r(77427),l=e.r(10582),o=i._(e.r(87032)),a=r._(e.r(5353)),s=r._(e.r(48501)),d=e.r(98900),u=e.r(95439),c=e.r(79034);e.r(95654);let f=e.r(65196),p=r._(e.r(78225)),m=e.r(42173),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,n,r,i,l,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault();},stopPropagation:()=>{i=!0,t.stopPropagation();}});}(null==r?void 0:r.current)&&r.current(e);}}));}function b(e){return o.use?{fetchPriority:e}:{fetchpriority:e};}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:d,className:u,style:c,fetchPriority:f,placeholder:p,loading:g,unoptimized:y,fill:v,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:S,setShowAltText:C,sizesInput:k,onLoad:R,onError:P,...E}=e,j=(0,o.useCallback)(e=>{e&&(P&&(e.src=e.src),e.complete&&h(e,p,w,x,S,y,k));},[n,p,w,x,S,P,y,k]),O=(0,m.useMergedRef)(t,j);return(0,l.jsx)("img",{...E,...b(f),loading:g,width:s,height:a,decoding:d,"data-nimg":v?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:O,onLoad:e=>{h(e.currentTarget,p,w,x,S,y,k);},onError:e=>{C(!0),"empty"!==p&&S(!0),P&&P(e);}});});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...b(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,l.jsx)(s.default,{children:(0,l.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)});}let w=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=g||r||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),l=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:l,localPatterns:"u"<typeof window?null==r?void 0:r.localPatterns:t.localPatterns};},[r]),{onLoad:a,onLoadingComplete:s}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a;},[a]);let h=(0,o.useRef)(s);(0,o.useEffect)(()=>{h.current=s;},[s]);let[b,w]=(0,o.useState)(!1),[x,S]=(0,o.useState)(!1),{props:C,meta:k}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:b,showAltText:x});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{...C,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:w,setShowAltText:S,sizesInput:e.sizes,ref:t}),k.preload?(0,l.jsx)(v,{isAppRouter:!n,imgAttributes:C}):null]});});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default);},32436,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return u;},getImageProps:function(){return d;}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let l=e.r(54127),o=e.r(98900),a=e.r(67844),s=l._(e.r(78225));function d(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t};}let u=a.Image;},27903,(e,t,n)=>{t.exports=e.r(32436);},42717,e=>{e.v(t=>Promise.all(["static/chunks/3oa2i9lthuh-5.js"].map(t=>e.l(t))).then(()=>t(61908)));},89442,e=>{e.v(t=>Promise.all(["static/chunks/2xw26ge230zsn.js"].map(t=>e.l(t))).then(()=>t(24939)));}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66533,e=>{"use strict";var l=e.i(10582),a=e.i(87032),n=e.i(25195),i=e.i(64666),t=e.i(30852),s=e.i(87898),r=e.i(64533),u=e.i(48268),o=e.i(95813),d=e.i(61593),c=e.i(17161),h=e.i(67914),m=e.i(60865),p=e.i(89437),g=e.i(56782);let f=c.Icons.review,b=c.Icons.folder,q=c.Icons.file,v=c.Icons.layers,x=[{id:"regression-default",label:"Regression (default)"},{id:"banking-default",label:"Banking"},{id:"insurance-default",label:"Insurance"}],N=[{id:"requirements",label:"Requirements",hint:"Paste text"},{id:"workspace",label:"Folder",hint:"Browse local"},{id:"file",label:"File",hint:"Browse local"},{id:"capsule",label:"Knowledge Pod",hint:"Local Knowledge"},{id:"capsule-set",label:"Knowledge Pod Set",hint:"Local Knowledge"}];function j(e){let{kind:a}=e;return"requirements"===a?(0,l.jsx)(f,{size:15}):"workspace"===a?(0,l.jsx)(b,{size:15}):"file"===a?(0,l.jsx)(q,{size:15}):"capsule-set"===a?(0,l.jsx)(v,{size:15}):(0,l.jsx)("svg",{"aria-hidden":"true",className:"qi-source-kind-icon-svg",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{d:"M12 3.8 19 7.7v8.6L12 20.2 5 16.3V7.7z"})});}let w={phase:"Starting…",stageName:null,candidates:0,findings:0,atomCount:null,droppedSourceCount:0,skippedSources:[]},y="Der Lauf wurde nicht erfolgreich abgeschlossen. Passe die Quelle an und versuche es erneut.",k="Modellausgabe entsprach nicht dem erwarteten Testfall-Schema",S="Technische Fehlerdetails wurden nicht in die Nutzeransicht übernommen";function I(e){switch(e.code){case"QI_IMAGE_DESCRIPTION_UNAVAILABLE":return`${e.label} (image was readable, but the image model produced no usable description)`;case"QI_IMAGE_UNAVAILABLE":return`${e.label} (stored image could not be found or read)`;case"QI_FIGMA_SNAPSHOT_UNAVAILABLE":return`${e.label} (stored Figma snapshot could not be found or read)`;case"QI_SOURCE_EMPTY":return`${e.label} (source produced no usable evidence)`;case"QI_SOURCE_DENIED":return`${e.label} (source is in a protected location)`;case"QI_SOURCE_TOO_LARGE":return`${e.label} (source is too large for this run)`;case"QI_SOURCE_UNSUPPORTED":return`${e.label} (source format is not supported)`;case"QI_WORKSPACE_NOT_FOUND":return`${e.label} (workspace path could not be read)`;case"QI_CAPSULE_UNAVAILABLE":return`${e.label} (knowledge source is unavailable)`;default:return`${e.label} (could not be read)`;}}function C(e){switch(e.kind){case"file":case"workspace":return e.path;case"capsule":return e.capsuleId;case"capsule-set":return e.capsuleSetId;case"figma-snapshot":return void 0!==e.screenIds&&e.screenIds.length>0?`${e.snapshotRunId}#${e.screenIds.join(",")}`:e.snapshotRunId;case"image":return`${e.snapshotRunId}#${e.screenId}`;}}function R(e,l){var a;let n=[e.structuredOutput?"JSON":null,!0===e.supportsResponseFormat?"response_format":null,`ctx ${(a=e.contextWindow)>=1e3?`${Math.round(a/1e3).toString()}k`:a>0?a.toString():"n/a"}`,e.latencyClass,e.costClass].filter(e=>null!==e);return{value:e.id,label:e.id,description:n.join(" · "),...(e.id===l?{badge:"Recommended"}:{})};}function A(e){return void 0===e?"working":"failed"===e.status?"failed":"unavailable"===e.status?"unavailable":"passed"===e.status?"passed":"working";}function E(e){var l;return"no-compatible-model"===e.resolved.judgeUnavailableReason?"no-compatible-model":(null==(l=e.preflight.judge)?void 0:l.status)==="unavailable"?"preflight-unavailable":"available";}function P(e){return"checking"===e?"checking":"failed"===e?"failed":"unavailable"===e?"unavailable":"passed"===e?"Ready":"working";}function L(e,l){return"file"===e.kind?l("qi.launcher.source.file"):"workspace"===e.kind?l("qi.launcher.source.folder"):"capsule"===e.kind?"Knowledge Pod":"capsule-set"===e.kind?"Knowledge Pod Set":"figma-snapshot"===e.kind?e.label.startsWith("JSON ·")?"Figma JSON":l("qi.launcher.source.figmaSnapshot"):l("qi.launcher.source.image");}function $(e,l){return"requirements"===e?l("qi.launcher.source.requirements"):"workspace"===e?l("qi.launcher.source.folder"):"file"===e?l("qi.launcher.source.file"):"capsule"===e?"Knowledge Pod":"Knowledge Pod Set";}function T(e,l){return"file"===e.kind?l("qi.launcher.source.fileLower"):"workspace"===e.kind?l("qi.launcher.source.folderLower"):"capsule"===e.kind||"capsule-set"===e.kind?L(e,l):"figma-snapshot"===e.kind?e.label.startsWith("JSON ·")?"Figma JSON":l("qi.launcher.source.figmaSnapshotLower"):l("qi.launcher.source.imageLower");}function _(e){var n,c,f,b,q,v,_,M;let O,D,{onRunCompleted:Q,startImpl:U=t.startQiRun,cancelImpl:F=t.cancelQiRun,fetchQiModelPolicyImpl:K=t.fetchQiModelPolicy,saveQiModelPolicyImpl:z=t.saveQiModelPolicy,preflightQiModelPolicyImpl:B=t.preflightQiModelPolicy,fetchCapsulesImpl:V=d.fetchCapsules,fetchCapsuleSetsImpl:G=d.fetchCapsuleSets,connectedRoot:W=null,connectedFilePath:J=null,connectedRoots:Y,connectedCapsuleIds:H,connectedCapsuleSetIds:X,connectedFigmaSnapshotRunIds:Z,connectedFigmaSnapshotSources:ee,connectedImageSources:el,retentionPolicyId:ea="qi:short-30d"}=e,en=(0,i.useQiTranslate)(),[ei,et]=(0,a.useState)(""),[es,er]=(0,a.useState)("requirements"),[eu,eo]=(0,a.useState)(""),[ed,ec]=(0,a.useState)(""),[eh,em]=(0,a.useState)(""),[ep,eg]=(0,a.useState)(""),[ef,eb]=(0,a.useState)([]),[eq,ev]=(0,a.useState)([]),[ex,eN]=(0,a.useState)(!1),[ej,ew]=(0,a.useState)(null),[ey,ek]=(0,a.useState)("regression-default"),[eS,eI]=(0,a.useState)({policyVersion:1}),[eC,eR]=(0,a.useState)(null),[eA,eE]=(0,a.useState)(!1),[eP,eL]=(0,a.useState)(!1),[e$,eT]=(0,a.useState)(null),[e_,eM]=(0,a.useState)("working"),[eO,eD]=(0,a.useState)("available"),[eQ,eU]=(0,a.useState)(""),[eF,eK]=(0,a.useState)(!1),[ez,eB]=(0,a.useState)(w),[eV,eG]=(0,a.useState)(null),[eW,eJ]=(0,a.useState)(null),eY=(0,a.useRef)(null),eH=(0,a.useRef)(null),eX=(0,a.useRef)(null),eZ=(0,a.useRef)(null),e0=(0,a.useRef)(!1),e1=(0,g.buildConnectedRunSources)({connectedRoot:W,connectedFilePath:J,connectedRoots:Y,connectedCapsuleIds:H,connectedCapsuleSetIds:X,connectedFigmaSnapshotRunIds:Z,connectedFigmaSnapshotSources:ee,connectedImageSources:el}),e6=e1.length>0,e2=ef.find(e=>e.id===eh),e5=eq.find(e=>e.id===ep),e3="capsule"===es?null==e2||null==(_=e2.knowledgePod)?void 0:_.guidance:"capsule-set"===es?null==e5||null==(M=e5.knowledgePod)?void 0:M.guidance:void 0,e8=ed.trim().length>0,e4="requirements"===es?eu.trim().length>0:"workspace"===es||"file"===es?e8:"capsule"===es?eh.trim().length>0:ep.trim().length>0,e7="requirements"===es?0===eu.trim().length:("workspace"===es||"file"===es)&&!e8,e9=e4||e7&&e6,le=null!=(n=null==eC?void 0:eC.models)?n:[],ll=le.filter(e=>"chat"===e.kind),la=le.filter(s.isQualityIntelligenceJudgeEligible),ln=null==eC?void 0:eC.recommendedPolicy.testDesignModelId,li=null==eC?void 0:eC.recommendedPolicy.judgeModelId,lt=null!=(c=null!=(f=null!=(b=eS.testDesignModelId)?b:ln)?f:null==(v=ll[0])?void 0:v.id)?c:"",ls=null!=(q=null==eC?void 0:eC.resolved.judgeModelId)?q:"",lr="no-compatible-model"===eO?en("qi.launcher.judgeUnavailable.noCompatible"):"preflight-unavailable"===eO?en("qi.launcher.judgeUnavailable.preflight"):null,lu=function(e){if(0!==e.length)return /^\d+$/u.test(e)?Number(e):NaN;}(eQ.trim()),lo=void 0===lu||Number.isSafeInteger(lu)&&Number.isFinite(lu),ld=e=>{let l=Number.parseInt(eQ.trim(),10);eU(String(Math.max(0,(Number.isFinite(l)?l:0)+e))),eG(null);},lc=!e9||!lo,lh=(0,a.useId)(),lm=(0,a.useId)(),lp=(0,a.useId)(),lg=(0,a.useId)(),lf=(0,a.useId)(),lb=(0,a.useId)(),lq=(0,a.useId)(),lv=(0,u.useNativeFileDialogCapability)(),lx=e9?lo?void 0:lm:lh,lN=(0,a.useCallback)(e=>{er(e),eG(null),ew(null);},[]),lj=(0,a.useCallback)(()=>{let e="file"===es;(0,r.pickWithNativeDialog)({mode:e?"open-file":"open-directory",title:e?"Choose file source":"Choose folder source",...(ed.trim().length>0?{defaultPath:ed.trim()}:{})}).then(e=>{if("picked"===e.kind&&void 0!==e.paths[0]){ec(e.paths[0]),eG(null);return;}"busy"===e.kind&&eG("A native dialog is already open. Close it first."),"unsupported"===e.kind&&eG("Native dialogs are unavailable on this platform."),"error"===e.kind&&eG(e.message);});},[ed,es]),lw=(0,a.useCallback)((e,l)=>{eF||0!==e.button||lN(l);},[lN,eF]),ly=(0,a.useCallback)(e=>{var l,a,n;if(eF)return;let i="ArrowRight"===(n=e.key)||"ArrowDown"===n?1:"ArrowLeft"===n||"ArrowUp"===n?-1:0;if(0===i)return;e.preventDefault();let t=N.length,s=(Math.max(0,N.findIndex(e=>e.id===es))+i+t)%t,r=N[s];void 0!==r&&(lN(r.id),null==(a=e.currentTarget.parentElement)||null==(l=a.querySelectorAll('[role="radio"]')[s])||l.focus());},[lN,eF,es]),lk=(0,a.useCallback)(e=>{if("accepted"===e.type&&(eH.current=e.runId),"event"===e.type&&("stage:failed"===e.kind||"run:failed"===e.kind)&&"string"==typeof e.reasonSummary&&(eZ.current=e.reasonSummary),"done"===e.type){var l,a,n,i;if("succeeded"===e.status){if(eX.current=e.runId,!0===e.degraded){let a;eJ((n=null!=(l=e.reasonSummary)?l:null,a="Die Modellgenerierung ist fehlgeschlagen — Keiko hat deterministische Baseline-Testfälle aus der Evidenz erstellt. Diese sind nicht modellgestützt; prüfe das Modell-Gateway und starte den Lauf für modellgestützte Testfälle erneut.",null==n||0===n.trim().length?a:"qi-error: UnparseableModelOutputError"===n?`${a} (Modellausgabe nicht als JSON parsebar)`:"qi-error: QI_PROMPT_TOO_LARGE"===n?`${a} (Quellkontext f\xfcr das Modell zu gro\xdf)`:"qi-error: QI_MODEL_SCHEMA_VIOLATION"===n?`${a} (${k})`:`${a} (${S})`));}}else"failed"===e.status&&eG(null==(i=null!=(a=e.reasonSummary)?a:eZ.current)||0===i.trim().length?y:"qi-run-error"===i?"Die Modellgenerierung ist fehlgeschlagen, bevor nutzbare Testfälle zurückgegeben wurden. Versuche es mit einer kleineren Quelle oder prüfe das ausgewählte Modell-Gateway.":"qi-error: UnparseableModelOutputError"===i?"Das Modell hat eine Ausgabe geliefert, die nicht zu Testfällen geparst werden konnte. Versuche es erneut oder nutze ein Modell mit strukturierter JSON-Ausgabe.":"qi-error: QI_PROMPT_TOO_LARGE"===i?"Der zusammengestellte Quellkontext ist für das Modell zu groß. Reduziere die Quelle und versuche es erneut.":"qi-error: QI_MODEL_SCHEMA_VIOLATION"===i?`${y} (${k})`:`${y} (${S})`);eH.current=null;}"error"===e.type&&(eH.current=null,eG((0,p.formatCodedError)(e.code,e.message))),eB(l=>function(e,l){var a,n,i;if("accepted"===l.type)return{...e,phase:"Ingested sources",atomCount:l.atomCount,droppedSourceCount:null!=(a=l.droppedSourceCount)?a:0,skippedSources:null!=(n=l.skippedSources)?n:[]};if("event"===l.type){let a="candidate:proposed"===l.kind?e.candidates+1:e.candidates,n="finding:recorded"===l.kind?e.findings+1:e.findings,t=null!=(i=l.stageName)?i:e.stageName;return{...e,phase:l.kind,stageName:t,candidates:a,findings:n};}return e;}(l,e));},[]),lS=(0,a.useCallback)(e=>{let l="no-compatible-model"===e.resolved.judgeUnavailableReason?"no-compatible-model":"available";eR(e),eI(e.policy),eD(l),eM("available"===l?A(void 0):"unavailable");},[]);(0,a.useEffect)(()=>{let e=!1;return async function(){eE(!0),eT(null);try{let l=await K();e||lS(l);}catch(l){e||eT((0,p.formatError)(l));}finally{e||eE(!1);}}(),()=>{e=!0;};},[lS,K]);let lI=(0,a.useCallback)(async e=>{let l={...eS,...e,policyVersion:1};eI(l),eL(!0),eT(null),eM("working");try{let e=await z(l);lS(e);}catch(e){eT((0,p.formatError)(e));}finally{eL(!1);}},[lS,eS,z]),lC="capsule"===es||"capsule-set"===es;(0,a.useEffect)(()=>{if(!lC)return;let e=!1;return async function(){eN(!0),ew(null);try{let[l,a]=await Promise.allSettled([V({includeKnowledgePods:!0}),G({includeKnowledgePods:!0})]);if(e)return;"fulfilled"===l.status?eb((0,d.capsulesForKnowledgePodUi)(l.value).filter(e=>"ready"===e.lifecycleState)):(eb([]),"capsule"===es&&ew((0,p.formatError)(l.reason))),"fulfilled"===a.status?ev((0,d.capsuleSetsForKnowledgePodUi)(a.value)):(ev([]),"capsule-set"===es&&ew((0,p.formatError)(a.reason)));}finally{e||eN(!1);}}(),()=>{e=!0;};},[V,G,lC,es]),(0,a.useEffect)(()=>{var e,l,a,n;if("capsule"===es){let a=ef.some(e=>e.id===eh)?eh:null!=(e=null==(l=ef[0])?void 0:l.id)?e:"";a!==eh&&em(a);}if("capsule-set"===es){let e=eq.some(e=>e.id===ep)?ep:null!=(a=null==(n=eq[0])?void 0:n.id)?a:"";e!==ep&&eg(e);}},[eh,ep,eq,ef,es]);let lR=(0,a.useCallback)(()=>{let e=ei.trim();return"requirements"===es&&eu.trim().length>0?[{kind:"requirements",label:e||"Requirements",text:eu}]:"workspace"===es&&ed.trim().length>0?[{kind:"workspace",label:e||"Folder",path:ed.trim()}]:"file"===es&&ed.trim().length>0?[{kind:"file",label:e||"File",path:ed.trim()}]:"capsule"===es&&eh.trim().length>0?[{kind:"capsule",label:e||(null==e2?void 0:e2.displayName)||"Knowledge Pod",capsuleId:eh.trim()}]:"capsule-set"===es&&ep.trim().length>0?[{kind:"capsule-set",label:e||(null==e5?void 0:e5.displayName)||"Knowledge Pod Set",capsuleSetId:ep.trim()}]:null;},[eh,ep,ei,ed,e2,e5,es,eu]),lA=(0,a.useCallback)(async()=>{var e,l,a;if(!e9||eF||!lo||e0.current)return;e0.current=!0,eK(!0),eG(null),eJ(null),eB(w),eH.current=null,eX.current=null,eZ.current=null;let n=new AbortController();eY.current=n;let i=null!=(e=lR())?e:e1,t={sources:i,profileId:ey,retentionPolicyId:ea,...(null!==eC?{modelPolicy:eS}:{}),...(void 0!==lu?{seed:lu}:{})};try{if(null!==eC){eM("checking");let e=await B(eS),n=function(e){var l,a;let{preflight:n}=e;return"failed"===n.status||(null==(l=n.generation)?void 0:l.status)==="failed"||(null==(a=n.judge)?void 0:a.status)==="failed"?"failed":"available"!==E(e)?"unavailable":A(n);}(e.modelRouting);if(eM(n),eD(E(e.modelRouting)),function(e){var l,a;if("failed"===e.preflight.status)return!0;let n=null!=(l=null==(a=e.preflight.generation)?void 0:a.status)?l:e.preflight.status;return"failed"===n||"unavailable"===n&&void 0!==e.resolved.testDesignModelId;}(e.modelRouting))return void eG(null!=(l=null==(a=e.modelRouting.preflight.generation)?void 0:a.message)?l:"The selected Quality Intelligence model is unavailable.");}await U(t,n.signal,lk);let e=eX.current;null!==e&&(null==Q||Q(e,i.filter(e=>"requirements"!==e.kind)));}catch(e){n.signal.aborted||eG((0,p.formatError)(e));}finally{eK(!1),eY.current=null,eH.current=null,e0.current=!1;}},[e9,ey,ea,eS,eC,eF,e1,lR,lk,Q,lu,B,lo,U]),lE=(0,a.useCallback)(()=>{var e;let l=eH.current;null==(e=eY.current)||e.abort(),null!==l&&(eH.current=null,F(l).catch(()=>{}));},[F]),lP=function(e){if(0===e)return null;let l=1!==e;return`${e.toString()} source${l?"s":""} over the 16-source limit ${l?"were":"was"} not included.`;}(ez.droppedSourceCount),lL=function(e){if(0===e.length)return null;let l=e.length.toString(),a=1!==e.length?"sources were":"source was";return`${l} connected ${a} skipped: ${e.map(I).join(", ")}.`;}(ez.skippedSources),l$=[lP,lL].filter(e=>null!==e).join(" ");return(0,l.jsxs)("section",{className:"qi-launcher","aria-label":en("qi.launcher.startAria"),children:[(0,l.jsx)("header",{className:"qi-col-header",children:(0,l.jsx)("h2",{className:"qi-col-title",children:en("qi.launcher.newRun")})}),(0,l.jsxs)("div",{className:"qi-launcher-body",children:[(O=eF||eA||eP,(0,l.jsxs)("div",{className:"qi-workflow-bar","aria-label":en("qi.launcher.workflow.aria"),children:[(0,l.jsxs)("div",{className:"qi-workflow-stage qi-workflow-stage-static",children:[(0,l.jsx)("span",{className:"qi-workflow-stage-label",children:en("qi.launcher.workflow.source")}),(0,l.jsx)("span",{className:"qi-workflow-stage-badge",children:en("qi.launcher.workflow.deterministic")})]}),(0,l.jsxs)("div",{className:"qi-workflow-stage qi-workflow-stage-model",children:[(0,l.jsx)("span",{className:"qi-workflow-stage-label",children:en("qi.launcher.workflow.generate")}),(0,l.jsx)(h.default,{triggerClassName:"qi-model-select",value:lt,ariaLabel:en("qi.launcher.generationModel"),disabled:O||0===ll.length,placeholder:en("qi.launcher.noChatModel"),menuTitle:en("qi.launcher.generationModel"),menuClassName:"qi-model-menu",mono:!0,sections:[{options:ll.map(e=>R(e,ln))}],onValueChange:e=>{lI({testDesignModelId:e});}})]}),(0,l.jsxs)("div",{className:"qi-workflow-stage qi-workflow-stage-model",children:[(0,l.jsx)("span",{className:"qi-workflow-stage-label",children:en("qi.launcher.workflow.judge")}),(0,l.jsx)(h.default,{triggerClassName:"qi-model-select",value:ls,ariaLabel:en("qi.launcher.judgeModel"),disabled:O||0===la.length,placeholder:en("qi.launcher.noJudgeModel"),menuTitle:en("qi.launcher.judgeModel"),menuClassName:"qi-model-menu",mono:!0,sections:[{options:la.map(e=>R(e,li))}],onValueChange:e=>{lI({judgeModelId:e});}})]}),[en("qi.launcher.workflow.coverage"),en("qi.launcher.workflow.validate"),en("qi.launcher.workflow.finalize")].map(e=>(0,l.jsxs)("div",{className:"qi-workflow-stage qi-workflow-stage-static",children:[(0,l.jsx)("span",{className:"qi-workflow-stage-label",children:e}),(0,l.jsx)("span",{className:"qi-workflow-stage-badge",children:en("qi.launcher.workflow.deterministic")})]},e)),(0,l.jsx)("span",{className:"qi-preflight-status","data-status":e_,"aria-hidden":"true",children:P(e_)}),(0,l.jsx)("span",{className:"sr-only",role:"status","aria-live":"polite",children:en("qi.launcher.preflightStatus",{status:P(e_)})})]})),null!==lr?(0,l.jsx)("p",{className:"qi-degraded-notice",style:m.NATIVE_BLOCK_STYLE,"aria-hidden":"true","data-testid":"qi-judge-unavailable",children:lr}):null,(0,l.jsx)("span",{className:"sr-only",role:"status","aria-live":"polite","data-testid":"qi-judge-availability-announcement",children:null!=lr?lr:""}),null!==e$?(0,l.jsx)("p",{className:"lk-alert",role:"alert","data-testid":"qi-model-policy-error",children:e$}):null,(D=e1[0],1===e1.length&&void 0!==D?(0,l.jsxs)("div",{className:"qi-connected-source","data-testid":"qi-connected-source",children:[(0,l.jsx)("span",{className:"qi-connected-kind",children:en("qi.launcher.connectedSingle",{source:T(D,en)})}),(0,l.jsx)("span",{className:"qi-connected-path qi-monospace",title:C(D),children:C(D)}),(0,l.jsx)("span",{className:"qi-connected-hint",children:e4?en("qi.launcher.manualOverridesSingle"):en("qi.launcher.generateUsesConnectedSingle",{source:T(D,en)})})]}):e1.length>1?(0,l.jsxs)("div",{className:"qi-connected-source","data-testid":"qi-connected-source",children:[(0,l.jsx)("span",{className:"qi-connected-kind",children:en("qi.launcher.connectedSources",{count:e1.length})}),(0,l.jsx)("ul",{className:"qi-connected-roots","aria-label":en("qi.launcher.connectedSourcesAria"),children:e1.map(e=>(0,l.jsxs)("li",{className:"qi-connected-root-item",children:[(0,l.jsx)("span",{className:"qi-connected-root-name",children:L(e,en)}),(0,l.jsx)("span",{className:"qi-connected-path qi-monospace",title:C(e),children:C(e)})]},`${e.kind}:${C(e)}`))}),(0,l.jsx)("span",{className:"qi-connected-hint",children:e4?en("qi.launcher.manualOverridesMultiple"):en("qi.launcher.generateUsesAllConnected")})]}):null),(0,l.jsxs)("div",{className:"qi-launcher-row",children:[(0,l.jsxs)("label",{className:"qi-field",children:[(0,l.jsx)("span",{className:"qi-field-label",children:en("qi.launcher.sourceLabel")}),(0,l.jsx)("input",{type:"text",className:"qi-input",value:ei,placeholder:en("qi.launcher.sourceLabelPlaceholder"),disabled:eF,"aria-describedby":e6&&!e4?lp:void 0,onChange:e=>{et(e.target.value);}}),e6&&!e4?(0,l.jsx)("span",{className:"qi-field-hint",id:lp,children:en("qi.launcher.manualLabelHint")}):null]}),(0,l.jsxs)("div",{className:"qi-field qi-field-kind",children:[(0,l.jsx)("span",{className:"qi-field-label",id:lg,children:en("qi.launcher.sourceType")}),(0,l.jsx)("div",{className:"qi-source-kind-grid",role:"radiogroup","aria-labelledby":lg,"aria-disabled":eF||void 0,children:N.map(e=>(0,l.jsxs)("button",{type:"button",className:"qi-source-kind-option",role:"radio","aria-label":$(e.id,en),"data-tip":$(e.id,en),"aria-checked":es===e.id,tabIndex:es===e.id?0:-1,disabled:eF,onPointerDown:l=>{lw(l,e.id);},onClick:()=>lN(e.id),onKeyDown:ly,children:[(0,l.jsx)("span",{className:"qi-source-kind-label",children:$(e.id,en)}),(0,l.jsx)("span",{className:"qi-source-kind-icon","aria-hidden":"true",children:(0,l.jsx)(j,{kind:e.id})})]},e.id))})]})]}),function(){let e,a,n;if("requirements"===es)return(0,l.jsxs)("label",{className:"qi-field",children:[(0,l.jsx)("span",{className:"qi-field-label",children:en("qi.launcher.requirements")}),(0,l.jsx)("textarea",{className:"qi-textarea",value:eu,rows:6,placeholder:en("qi.launcher.requirementsPlaceholder"),disabled:eF,onChange:e=>{eo(e.target.value);}})]});if("workspace"===es||"file"===es){let e;return e="file"===es,(0,l.jsxs)("div",{className:"qi-field",children:[(0,l.jsx)("span",{className:"qi-field-label",id:lf,children:e?en("qi.launcher.filePath"):en("qi.launcher.folderPath")}),(0,l.jsxs)("div",{className:"qi-path-picker",children:[(0,l.jsx)("input",{type:"text",className:"qi-path-value qi-monospace","aria-labelledby":lf,title:ed,placeholder:e?en("qi.launcher.chooseLocalFile"):en("qi.launcher.chooseLocalFolder"),value:ed,disabled:eF,onChange:e=>{ec(e.target.value),eG(null);}}),(0,l.jsx)("button",{type:"button",className:"qi-btn qi-btn-secondary qi-browse-btn",disabled:eF||!lv,"aria-describedby":lv?void 0:lq,onClick:lj,children:en("common.browse")})]}),lv?null:(0,l.jsx)("span",{id:lq,className:"qi-field-note",children:en("qi.launcher.nativeDialogUnavailable")})]});}return a=(e="capsule"===es)?ef:eq,n=eF||ex||null!==ej||0===a.length,(0,l.jsxs)("label",{className:"qi-field",children:[(0,l.jsx)("span",{className:"qi-field-label",children:e?"Knowledge Pod":"Knowledge Pod Set"}),(0,l.jsxs)("select",{className:"qi-select",value:e?eh:ep,disabled:n,"aria-describedby":void 0!==e3?lb:void 0,onChange:l=>{e?em(l.target.value):eg(l.target.value);},children:[ex?(0,l.jsx)("option",{value:"",children:en("qi.launcher.loadingKnowledgePods")}):null,ex||0!==a.length?null:(0,l.jsx)("option",{value:"",children:e?en("qi.launcher.noReadyKnowledgePods"):en("qi.launcher.noKnowledgePodSets")}),e?ef.map(e=>(0,l.jsx)("option",{value:e.id,children:e.displayName},e.id)):eq.map(e=>(0,l.jsx)("option",{value:e.id,children:`${e.displayName} (${String(e.capsuleCount)} pods)`},e.id))]}),void 0!==e3?(0,l.jsxs)("span",{className:"qi-field-hint",id:lb,role:"note","data-testid":"qi-source-guidance",children:[e3.label,": ",e3.description]}):null]});}(),null!==ej?(0,l.jsx)("p",{className:"lk-alert",role:"alert","data-testid":"qi-connector-error",children:ej}):null,(0,l.jsxs)("div",{className:"qi-launcher-controls",children:[(0,l.jsxs)("div",{className:"qi-field qi-field-inline qi-policy-profile-field",children:[(0,l.jsx)("span",{className:"qi-field-label",children:en("qi.launcher.policyProfile")}),(0,l.jsx)(h.default,{triggerClassName:"qi-select",value:ey,ariaLabel:en("qi.launcher.policyProfile"),disabled:eF,menuTitle:en("qi.launcher.policy"),menuClassName:"qi-policy-profile-menu",sections:[{options:x.map(e=>({value:e.id,label:e.label}))}],onValueChange:ek})]}),(0,l.jsxs)("label",{className:"qi-field qi-field-inline",children:[(0,l.jsx)("span",{className:"qi-field-label",children:en("qi.launcher.seedOptional")}),(0,l.jsxs)("span",{className:"number-control qi-number-control",children:[(0,l.jsx)("input",{type:"number",min:0,step:1,className:"qi-input number-control-input",value:eQ,placeholder:en("qi.launcher.seedPlaceholder"),disabled:eF,"aria-invalid":!lo||void 0,"aria-describedby":lo?void 0:lm,onChange:e=>{eU(e.target.value),eG(null);},onWheel:e=>{eF||0===e.deltaY||(e.preventDefault(),ld(e.deltaY<0?1:-1));}}),(0,l.jsx)(o.NumberControlStepper,{label:en("qi.launcher.seed"),disabled:eF,onStepUp:()=>ld(1),onStepDown:()=>ld(-1)})]}),lo?null:(0,l.jsx)("span",{className:"qi-field-error",id:lm,children:en("qi.launcher.seedError")})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",className:eF?"qi-btn qi-btn-secondary":"qi-btn qi-btn-primary","aria-disabled":!eF&&lc||void 0,"aria-describedby":eF?void 0:lx,onClick:()=>{eF?lE():lc||lA();},children:eF?en("common.cancel"):en("qi.launcher.generateTestCases")}),eF||e9?null:(0,l.jsx)("span",{className:"qi-generate-hint",id:lh,children:en("qi.launcher.generateHint")})]})]}),function(){if(!eF)return null;let e=1!==ez.findings?"s":"",a=ez.findings>0?` \xb7 ${ez.findings.toString()} finding${e}`:"";return(0,l.jsxs)("div",{className:"qi-progress","data-testid":"qi-launch-progress","aria-hidden":"true",children:[(0,l.jsx)("span",{className:"qi-progress-spinner","aria-hidden":"true"}),(0,l.jsxs)("span",{className:"qi-progress-text",children:[null!==ez.stageName?`Stage: ${ez.stageName} \xb7 `:"",ez.candidates.toString()," test case",1!==ez.candidates?"s":"",a]})]});}(),(0,l.jsx)("p",{className:"sr-only",role:"status","aria-live":"polite","data-testid":"qi-launch-progress-sr",children:function(e,l){if(!e)return"";if(null===l.stageName&&0===l.candidates&&0===l.findings)return"Generating test cases…";let a=null!==l.stageName?`Stage: ${l.stageName}. `:"",n=`${l.candidates.toString()} test case${1!==l.candidates?"s":""}`,i=1!==l.findings?"s":"",t=l.findings>0?`, ${l.findings.toString()} finding${i}`:"";return`${a}${n}${t}`;}(eF,ez)}),(0,l.jsx)("p",{className:"sr-only",role:"status","aria-live":"polite",children:l$}),null===lP&&null===lL?null:(0,l.jsxs)("div",{className:"qi-coverage-notice","data-testid":"qi-coverage-notice",children:[null!==lP?(0,l.jsx)("p",{className:"qi-coverage-line",children:lP}):null,null!==lL?(0,l.jsx)("p",{className:"qi-coverage-line",children:lL}):null]}),null!==eW?(0,l.jsx)("output",{className:"qi-degraded-notice",style:m.NATIVE_BLOCK_STYLE,"data-testid":"qi-launch-degraded",children:eW}):null,null!==eV?(0,l.jsx)("p",{className:"lk-alert",role:"alert","data-testid":"qi-launch-error",children:eV}):null]})]});}let M="keiko.quality-intelligence.retention-policy";function O(){try{return(0,n.resolveQualityIntelligenceRetentionPolicyId)(window.localStorage.getItem(M));}catch{return n.QUALITY_INTELLIGENCE_DEFAULT_RETENTION_POLICY_ID;}}function D(e){let{run:n,onOpen:i,onDelete:t,deleting:s,t:r,openButtonRef:u}=e,o=n.totals.candidates,[d,c]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useRef)(null),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(d){var e;null==(e=g.current)||e.focus();}},[d]);let b=(0,a.useCallback)(()=>{c(!1),requestAnimationFrame(()=>{var e;null==(e=h.current)||e.focus();});},[]),q=(0,a.useCallback)(e=>{"Escape"===e.key&&(e.preventDefault(),b());},[b]),v=(0,a.useCallback)(()=>{s||t(n.id);},[s,t,n.id]);return(0,l.jsxs)("li",{style:{display:"flex",alignItems:"stretch"},children:[(0,l.jsxs)("button",{type:"button",className:"qi-run-item",ref:e=>{null==u||u(n.id,e);},style:{flex:1},onClick:()=>{i(n.id,[]);},"aria-label":r("qi.hub.openRunAria",{runId:n.id,status:(0,p.runStatusLabel)(n.status,r),requestedAt:(0,p.formatDate)(n.requestedAt),count:o,review:(0,p.reviewLabel)(n.reviewState,r)}),title:r("qi.hub.openRunTitle",{runId:n.id}),children:[(0,l.jsx)("span",{className:"qi-run-title",children:(0,p.formatDate)(n.requestedAt)}),(0,l.jsx)(p.StatusBadge,{status:n.status}),(0,l.jsx)(p.ReviewBadge,{state:n.reviewState}),(0,l.jsxs)("span",{className:"qi-run-id",children:[n.id.slice(0,16),"…"]}),(0,l.jsx)("span",{className:"qi-run-totals",children:r("qi.hub.testCaseCount",{count:n.totals.candidates})})]}),d?(0,l.jsxs)("fieldset",{className:"qi-cand-actions","aria-label":r("qi.hub.confirmDeleteGroup",{requestedAt:(0,p.formatDate)(n.requestedAt)}),style:{...m.NATIVE_FIELDSET_RESET_STYLE,display:"flex",alignItems:"center",gap:4,padding:"0 6px",flexShrink:0},children:[(0,l.jsx)("button",{ref:f,type:"button",className:"qi-btn qi-btn-reject",style:{minWidth:0,padding:"4px 10px",fontSize:12,flexShrink:0},"aria-label":r("qi.hub.confirmDeleteAria",{requestedAt:(0,p.formatDate)(n.requestedAt)}),"aria-busy":s||void 0,"aria-disabled":s||void 0,onClick:v,onKeyDown:q,children:s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{"aria-hidden":"true",children:r("qi.hub.deleting")}),(0,l.jsx)("span",{className:"sr-only",children:r("qi.hub.deletingWait")})]}):r("qi.hub.confirmDelete")}),(0,l.jsx)("button",{ref:g,type:"button",className:"qi-btn qi-btn-secondary",style:{minWidth:0,padding:"4px 10px",fontSize:12,flexShrink:0},"aria-disabled":s||void 0,onClick:()=>{s||b();},onKeyDown:q,children:r("common.cancel")})]}):(0,l.jsx)("button",{ref:h,type:"button",className:"qi-btn qi-btn-reject",style:{alignSelf:"center",minWidth:0,padding:"4px 10px",fontSize:12,margin:"0 6px 0 0",flexShrink:0},"aria-label":r("qi.hub.deleteRunAria",{requestedAt:(0,p.formatDate)(n.requestedAt)}),onClick:()=>{c(!0);},children:r("common.delete")})]});}async function Q(e){var l;let{runId:a,runs:n,deleteImpl:i,loadRuns:t,t:s,openButtonRefs:r,runsHeadingRef:u,setDeletingId:o,setError:d,setDeletedAnnounce:c}=e,h=n.findIndex(e=>e.id===a),m=-1===h?void 0:null!=(l=n[h+1])?l:n[h-1],g=null==m?void 0:m.id;o(a),d(null);try{await i(a),c(s("qi.hub.deleted")),await t(),requestAnimationFrame(()=>{let e=void 0!==g?r.current.get(g):void 0;if(void 0!==e)e.focus();else{var l;null==(l=u.current)||l.focus();}});}catch(e){d((0,p.formatError)(e));}finally{o(null);}}function U(e){let{retention:a,t:n}=e;return null===a?null:(0,l.jsx)("p",{className:"qi-runs-truncated",role:"note","data-testid":"qi-runs-retention",children:n("qi.hub.retention",{days:a.retainedDays,max:a.maxRunArtifacts})});}function F(e){let{policies:a,selectedPolicyId:i,onChange:t,t:s}=e;return 0===a.length?null:(0,l.jsxs)("label",{className:"qi-field qi-field-inline",children:[(0,l.jsx)("span",{className:"qi-field-label",children:s("qi.hub.retentionPolicy")}),(0,l.jsx)("select",{className:"qi-select",value:i,"aria-label":s("qi.hub.retentionPolicy"),onChange:e=>{(0,n.isQualityIntelligenceRetentionPolicyId)(e.currentTarget.value)&&t(e.currentTarget.value);},children:a.map(e=>(0,l.jsx)("option",{value:e.policyId,children:s("qi.hub.retentionOption",{days:e.retainedDays,max:e.maxRunArtifacts})},e.policyId))})]});}function K(e){let{loading:a,error:n,runs:i,visibleRuns:t,deletingId:s,truncated:r,totalRunIds:u,t:o,openRun:d,onDelete:c,onRetry:h,onShowMore:m,registerOpenButton:g}=e;return a?(0,l.jsx)(p.LoadingSkeleton,{}):null!==n?(0,l.jsx)(p.ErrorState,{message:n,onRetry:h}):0===i.length?(0,l.jsxs)("div",{className:"lk-empty",children:[(0,l.jsx)("p",{className:"lk-empty-title",children:o("qi.hub.empty.title")}),(0,l.jsx)("p",{className:"lk-empty-body",children:o("qi.hub.empty.body")})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:"qi-run-list","aria-label":o("qi.hub.runList"),children:i.slice(0,t).map(e=>(0,l.jsx)(D,{run:e,onOpen:d,onDelete:c,deleting:s===e.id,t:o,openButtonRef:g},e.id))}),t<i.length?(0,l.jsx)("button",{type:"button",className:"qi-btn qi-btn-secondary qi-show-more",onClick:m,children:o("qi.hub.showMoreRuns",{count:i.length-t})}):null,r?(0,l.jsx)("p",{className:"qi-runs-truncated","data-testid":"qi-runs-truncated",children:o("qi.hub.truncated",{shown:i.length,total:u})}):null]});}e.s(["QiHubPanel",0,function(e){var s;let{openRun:r,connectedRoot:u=null,connectedFilePath:o=null,connectedRoots:d,connectedCapsuleIds:c,connectedCapsuleSetIds:h,connectedFigmaSnapshotRunIds:m,connectedFigmaSnapshotSources:g,connectedImageSources:f,fetchRunsImpl:b=t.fetchQiRuns,deleteImpl:q=t.deleteQiRun}=e,v=(0,i.useQiTranslate)(),[x,N]=(0,a.useState)([]),[j,w]=(0,a.useState)(0),[y,k]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),[C,R]=(0,a.useState)([]),{retentionPolicyId:A,setRetentionPolicyId:E}=function(){let[e,l]=(0,a.useState)(O);return{retentionPolicyId:e,setRetentionPolicyId:(0,a.useCallback)(e=>{let a=(0,n.resolveQualityIntelligenceRetentionPolicyId)(e);l(a);try{window.localStorage.setItem(M,a);}catch{}},[])};}(),[P,L]=(0,a.useState)(!0),[$,T]=(0,a.useState)(null),[D,z]=(0,a.useState)(25),[B,V]=(0,a.useState)(null),[G,W]=(0,a.useState)(""),J=(0,a.useRef)(new Map()),Y=(0,a.useRef)(null),H=(0,a.useCallback)((e,l)=>{null===l?J.current.delete(e):J.current.set(e,l);},[]),X=(0,a.useCallback)(async()=>{L(!0),T(null);try{var e,l;let a=await b();N(a.runs),w(a.totalRunIds),k(a.truncated),I(null!=(e=a.retention)?e:null),R(null!=(l=a.retentionPolicies)?l:[]);}catch(e){T((0,p.formatError)(e));}finally{L(!1);}},[b]);(0,a.useEffect)(()=>{X();},[X]);let Z=(0,a.useCallback)((e,l)=>{X(),r(e,l);},[X,r]),ee=(0,a.useCallback)(async e=>{null===B&&(await Q({runId:e,runs:x,deleteImpl:q,loadRuns:X,t:v,openButtonRefs:J,runsHeadingRef:Y,setDeletingId:V,setError:T,setDeletedAnnounce:W}));},[B,q,X,x,v]);return(0,l.jsxs)("div",{className:"qi-hub",children:[(0,l.jsx)(_,{onRunCompleted:Z,connectedRoot:u,connectedFilePath:o,connectedRoots:d,connectedCapsuleIds:c,connectedCapsuleSetIds:h,connectedFigmaSnapshotRunIds:m,connectedFigmaSnapshotSources:g,connectedImageSources:f,retentionPolicyId:A}),(0,l.jsxs)("section",{className:"qi-hub-runs","aria-label":v("qi.hub.runsAria"),children:[(0,l.jsxs)("header",{className:"qi-col-header",children:[(0,l.jsx)("h2",{className:"qi-col-title",ref:Y,tabIndex:-1,children:v("qi.hub.runs")}),P||null!==$?null:(0,l.jsx)("span",{className:"qi-col-count",children:j.toString()})]}),(0,l.jsx)("p",{className:"sr-only",role:"status","aria-live":"polite",children:P?v("qi.hub.loadingRuns"):null===$?v("qi.hub.listLoaded",{shown:x.length,total:y?j:x.length}):""}),(0,l.jsx)("p",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:G}),(0,l.jsx)("div",{className:"qi-col-body","aria-busy":P,children:(0,l.jsx)(K,{loading:P,error:$,runs:x,visibleRuns:D,deletingId:B,truncated:y,totalRunIds:j,t:v,openRun:r,onDelete:e=>{ee(e);},onRetry:()=>{X();},onShowMore:()=>{z(e=>e+25);},registerOpenButton:H})}),(0,l.jsx)(F,{policies:C,selectedPolicyId:A,onChange:E,t:v}),(0,l.jsx)(U,{retention:null!=(s=C.find(e=>e.policyId===A))?s:S,t:v})]})]});}],66533);},12124,e=>{e.n(e.i(66533));}]);