@oscharko-dev/keiko 0.2.10 → 0.2.11

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 (194) hide show
  1. package/dist/ui/csp-hashes.json +16 -16
  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 +3 -3
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +2 -2
  7. package/dist/ui/static/__next._tree.txt +2 -2
  8. package/dist/ui/static/_next/static/chunks/{8824-59a261e25fd0a5d0.js → 8824-ea9436192826dccf.js} +7 -7
  9. package/dist/ui/static/_next/static/chunks/8835-9e566b40eb4e3499.js +1 -0
  10. package/dist/ui/static/_next/static/css/157df0cf8fc82126.css +3 -0
  11. package/dist/ui/static/_not-found/__next._full.txt +2 -2
  12. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  13. package/dist/ui/static/_not-found/__next._index.txt +2 -2
  14. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  15. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  16. package/dist/ui/static/_not-found/__next._tree.txt +2 -2
  17. package/dist/ui/static/_not-found.html +1 -1
  18. package/dist/ui/static/_not-found.txt +2 -2
  19. package/dist/ui/static/index.html +1 -1
  20. package/dist/ui/static/index.txt +3 -3
  21. package/dist/ui/static/launch/__next._full.txt +3 -3
  22. package/dist/ui/static/launch/__next._head.txt +1 -1
  23. package/dist/ui/static/launch/__next._index.txt +2 -2
  24. package/dist/ui/static/launch/__next._tree.txt +2 -2
  25. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  26. package/dist/ui/static/launch/__next.launch.txt +1 -1
  27. package/dist/ui/static/launch.html +1 -1
  28. package/dist/ui/static/launch.txt +3 -3
  29. package/dist/ui/static/local-knowledge/__next._full.txt +3 -3
  30. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  31. package/dist/ui/static/local-knowledge/__next._index.txt +2 -2
  32. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  33. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  34. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  35. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +3 -3
  36. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  37. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +2 -2
  38. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
  39. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +2 -2
  40. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  41. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  42. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  43. package/dist/ui/static/local-knowledge/capsule.txt +3 -3
  44. package/dist/ui/static/local-knowledge.html +1 -1
  45. package/dist/ui/static/local-knowledge.txt +3 -3
  46. package/dist/ui/static/memoriaviva/__next._full.txt +2 -2
  47. package/dist/ui/static/memoriaviva/__next._head.txt +1 -1
  48. package/dist/ui/static/memoriaviva/__next._index.txt +2 -2
  49. package/dist/ui/static/memoriaviva/__next._tree.txt +2 -2
  50. package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +1 -1
  51. package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +1 -1
  52. package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +2 -2
  53. package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +1 -1
  54. package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +2 -2
  55. package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +2 -2
  56. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +1 -1
  57. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +1 -1
  58. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +1 -1
  59. package/dist/ui/static/memoriaviva/consolidation.html +1 -1
  60. package/dist/ui/static/memoriaviva/consolidation.txt +2 -2
  61. package/dist/ui/static/memoriaviva/detail/__next._full.txt +2 -2
  62. package/dist/ui/static/memoriaviva/detail/__next._head.txt +1 -1
  63. package/dist/ui/static/memoriaviva/detail/__next._index.txt +2 -2
  64. package/dist/ui/static/memoriaviva/detail/__next._tree.txt +2 -2
  65. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +1 -1
  66. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +1 -1
  67. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +1 -1
  68. package/dist/ui/static/memoriaviva/detail.html +1 -1
  69. package/dist/ui/static/memoriaviva/detail.txt +2 -2
  70. package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +2 -2
  71. package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +1 -1
  72. package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +2 -2
  73. package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +2 -2
  74. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +1 -1
  75. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +1 -1
  76. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +1 -1
  77. package/dist/ui/static/memoriaviva/review-queue.html +1 -1
  78. package/dist/ui/static/memoriaviva/review-queue.txt +2 -2
  79. package/dist/ui/static/memoriaviva.html +1 -1
  80. package/dist/ui/static/memoriaviva.txt +2 -2
  81. package/node_modules/@oscharko-dev/keiko-cli/dist/.tsbuildinfo +1 -1
  82. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts +4 -2
  83. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts.map +1 -1
  84. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.js +51 -28
  85. package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
  86. package/node_modules/@oscharko-dev/keiko-contracts/dist/.tsbuildinfo +1 -1
  87. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +1 -1
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +3 -3
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  91. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +1 -1
  92. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-analyzer.js +43 -1
  94. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.d.ts +5 -1
  95. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.d.ts.map +1 -1
  96. package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.js +6 -6
  97. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/bffWire.d.ts +66 -0
  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/index.d.ts +1 -1
  100. package/node_modules/@oscharko-dev/keiko-contracts/dist/qualityIntelligence/index.d.ts.map +1 -1
  101. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  102. package/node_modules/@oscharko-dev/keiko-evaluations/dist/.tsbuildinfo +1 -1
  103. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  104. package/node_modules/@oscharko-dev/keiko-evidence/dist/.tsbuildinfo +1 -1
  105. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.d.ts +3 -0
  106. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/manifestSchema.js +1 -0
  108. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.d.ts +2 -0
  109. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.d.ts.map +1 -1
  110. package/node_modules/@oscharko-dev/keiko-evidence/dist/qualityIntelligence/store.js +3 -0
  111. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  112. package/node_modules/@oscharko-dev/keiko-harness/dist/.tsbuildinfo +1 -1
  113. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  114. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/.tsbuildinfo +1 -1
  115. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  116. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  117. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  118. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  119. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  120. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/.tsbuildinfo +1 -1
  121. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  122. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/.tsbuildinfo +1 -1
  123. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
  124. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/generator.js +210 -21
  126. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/index.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/index.js +2 -3
  128. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/promptEnhancer/rendering.js +1 -1
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  130. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/.tsbuildinfo +1 -1
  131. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/testDesignModel.d.ts.map +1 -1
  132. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/testDesignModel.js +3 -0
  133. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  134. package/node_modules/@oscharko-dev/keiko-sandbox/dist/.tsbuildinfo +1 -1
  135. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  136. package/node_modules/@oscharko-dev/keiko-sdk/dist/.tsbuildinfo +1 -1
  137. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  138. package/node_modules/@oscharko-dev/keiko-security/dist/.tsbuildinfo +1 -1
  139. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  140. package/node_modules/@oscharko-dev/keiko-server/dist/.tsbuildinfo +1 -1
  141. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.d.ts +11 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.d.ts.map +1 -1
  143. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-delivery.js +94 -18
  144. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-handlers.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-handlers.js +52 -21
  146. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-service.d.ts.map +1 -1
  147. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-service.js +22 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.d.ts +3 -1
  149. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-preview-session-manager.js +5 -2
  151. package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.d.ts.map +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.js +4 -2
  153. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +16 -9
  155. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.d.ts +1 -0
  156. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/index.js +1 -0
  158. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +16 -0
  159. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -0
  160. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +368 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.d.ts +15 -0
  162. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.d.ts.map +1 -1
  163. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelSelection.js +187 -13
  164. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.d.ts +3 -0
  165. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runExecution.js +82 -24
  167. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts +2 -2
  168. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +53 -6
  170. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  171. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +3 -1
  172. package/node_modules/@oscharko-dev/keiko-server/package.json +19 -19
  173. package/node_modules/@oscharko-dev/keiko-tools/dist/.tsbuildinfo +1 -1
  174. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  175. package/node_modules/@oscharko-dev/keiko-verification/dist/.tsbuildinfo +1 -1
  176. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  177. package/node_modules/@oscharko-dev/keiko-workflows/dist/.tsbuildinfo +1 -1
  178. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts +3 -1
  179. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.js +284 -39
  181. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.d.ts +1 -0
  182. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/modelRoutedTestDesign.js +26 -7
  184. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.d.ts +2 -0
  185. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.d.ts.map +1 -1
  186. package/node_modules/@oscharko-dev/keiko-workflows/dist/qualityIntelligence/runtimeCommon.js +27 -1
  187. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  188. package/node_modules/@oscharko-dev/keiko-workspace/dist/.tsbuildinfo +1 -1
  189. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  190. package/package.json +22 -22
  191. package/dist/ui/static/_next/static/chunks/8835-0b991bfcb0308e77.js +0 -1
  192. package/dist/ui/static/_next/static/css/a44f4ffb37299b42.css +0 -3
  193. /package/dist/ui/static/_next/static/{WGuvz70_f_uiVSiv-B1wx → 7prMhE-UoHxL8LG_0obLN}/_buildManifest.js +0 -0
  194. /package/dist/ui/static/_next/static/{WGuvz70_f_uiVSiv-B1wx → 7prMhE-UoHxL8LG_0obLN}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8835],{19217:(e,t,n)=>{n.d(t,{i:()=>a});var l=n(7620);function a(){let{active:e=!0,initialFocusRef:t,restoreFocus:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.useEffect)(()=>{var l,a;if(!e)return;let s=document.documentElement,r=n?document.activeElement:null,i=Number(null!=(l=s.dataset.keikoModalOpenCount)?l:"0");return s.dataset.keikoModalOpenCount=String(i+1),s.setAttribute("data-keiko-modal-open","true"),null==t||null==(a=t.current)||a.focus(),()=>{var e,t;let l=Math.max(0,Number(null!=(e=s.dataset.keikoModalOpenCount)?e:"1")-1);0===l?(delete s.dataset.keikoModalOpenCount,s.removeAttribute("data-keiko-modal-open")):s.dataset.keikoModalOpenCount=String(l),n&&(null==r||null==(t=r.focus)||t.call(r));};},[e,t,n]);}},23934:(e,t,n)=>{n.d(t,{W:()=>a});var l=n(73599);function a(e){return e instanceof l.hD?e.message.trim().length>0?`${e.message} (${e.code})`:`Something went wrong. Try again. (${e.code})`:e instanceof Error&&e.message.trim().length>0?e.message:"An unexpected error occurred.";}},25780:(e,t,n)=>{n.d(t,{Z:()=>l});let l={draft:"Draft",indexing:"Indexing",ready:"Indexed",stale:"Stale",deleting:"Deleting",error:"Failed"};},29464:(e,t,n)=>{n.d(t,{FG:()=>m,H9:()=>x,KS:()=>y,QI:()=>j,Qi:()=>f,R3:()=>o,Tq:()=>p,WM:()=>c,qY:()=>d,r:()=>h,rw:()=>g,xY:()=>v,xr:()=>i,yN:()=>u});var l=n(73599);function a(e,t){let n={Accept:"application/json"},l="GET"!==e&&"HEAD"!==e;return(l||null!=t)&&(n["Content-Type"]="application/json"),l&&(n["X-Keiko-CSRF"]="1"),n;}async function s(e){try{let t=await e.json();return{code:t.error.code,message:t.error.message};}catch{return{code:"INTERNAL",message:`The server returned an unexpected error (HTTP ${e.status.toString()}). Try again.`};}}async function r(e,t){var n;let r=(null!=(n=null==t?void 0:t.method)?n:"GET").toUpperCase(),i=await fetch(e,{...t,headers:a(r,null==t?void 0:t.body)});if(!i.ok){let{code:e,message:t}=await s(i);throw new l.hD(e,t,i.status);}if(204!==i.status)return i.json();}async function i(){return r("/api/local-knowledge/capsules");}async function o(){return r("/api/local-knowledge/capsule-sets");}async function d(e){return r("/api/local-knowledge/capsules",{method:"POST",body:JSON.stringify(e)});}async function c(e){return r("/api/local-knowledge/capsule-sets",{method:"POST",body:JSON.stringify(e)});}async function u(e,t){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)});}async function h(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/index`,{method:"POST",body:JSON.stringify({confirm:!0})});}async function p(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/index`,{method:"DELETE",body:JSON.stringify({confirm:!0})});}async function m(e,t,n){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/connection`,{method:"POST",body:JSON.stringify({scope:t,displayName:n})});}async function f(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/connection`,{method:"DELETE",body:JSON.stringify({confirm:!0})});}async function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fetch,n=`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,r=await t(n,{headers:a("GET",void 0)});if(!r.ok){let{code:e,message:t}=await s(r);throw new l.hD(e,t,r.status);}return r.json();}async function x(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}`,{method:"DELETE",body:JSON.stringify({capsuleId:e,deleteIndex:!0,deleteSources:!1})});}async function y(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"changed-files"})});}async function v(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"repair-failed"})});}async function j(e){return r(`/api/local-knowledge/capsules/${encodeURIComponent(e)}/reindex`,{method:"POST",body:JSON.stringify({capsuleId:e,mode:"resume"})});}},49690:(e,t,n)=>{n.d(t,{FF:()=>S,Qf:()=>N,Vp:()=>l});let l="1",a=["DIRTY","VERSION_MISMATCH","CONTENT_HASH_MISMATCH","NO_ACTIVE_SESSION","NO_ACTIVE_BRIDGE","INVALID_EDITS","OUT_OF_SCOPE","PRECONDITION_REQUIRED"],s=["TIMED_OUT","QUEUE_FULL"],r=["openFile","focusTab","moveTab","splitPane","setSelection","format","save","applyTextEdits","applyPatch"];function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function o(e){return"string"==typeof e;}function d(e){return"string"==typeof e&&e.length>0;}function c(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e);}function u(e){return"number"==typeof e&&Number.isInteger(e)&&e>=0;}function h(e){return"string"==typeof e&&/^[a-f0-9]{64}$/u.test(e);}function p(e,t){return null===e||t(e);}function m(e,t){return void 0===e||t(e);}function f(e){return i(e)&&u(e.sizeBytes)&&u(e.modifiedAt)&&h(e.contentHash);}function g(e){return i(e)&&u(e.line)&&u(e.character);}function x(e){return i(e)&&g(e.start)&&g(e.end);}function y(e){return i(e)&&u(e.errors)&&u(e.warnings)&&u(e.infos);}function v(e){return i(e)&&d(e.paneId)&&(null===e.activeFile||"string"==typeof e.activeFile)&&c(e.openFiles);}function j(e){return"row"===e||"column"===e;}function b(e){return i(e)&&x(e.range)&&"string"==typeof e.newText;}function k(e){return Array.isArray(e)&&e.every(b);}function S(e){if(!i(e)||e.schemaVersion!==l||!d(e.eventId))return!1;switch(e.type){case"session":var t,n,b,S,N,w,M,C,A=e.snapshot;if(!i(A))return!1;return[A.schemaVersion===l,d(A.sessionId),d(A.windowId),d(A.workspaceRoot),p(A.activePaneId,o),Array.isArray(M=A.panes)&&M.every(v),c(A.dirtyFiles),p(A.activeFile,o),p(A.cursor,g),p(A.selection,x),p(A.diagnosticsSummary,y),m(A.languageCapability,e=>null===e||i(e)&&d(e.languageId)&&(null===e.providerId||o(e.providerId))&&"boolean"==typeof e.available&&m(e.unavailableReason,o)),m(A.documentVersion,f),m(A.activeFileContentHash,h),"none"===(C=A.textMode)||"selection"===C||"activeFile"===C,m(A.text,o),m(A.textTruncated,e=>"boolean"==typeof e),u(A.updatedAt)].every(Boolean);case"action":var E,I,L=e.action;if(!i(L))return!1;return[L.schemaVersion===l,d(L.actionId),d(L.idempotencyKey),d(L.sessionId),"string"==typeof(E=L.type)&&r.includes(E),void 0===(I=L.target)||!!i(I)&&[m(I.paneId,o),m(I.file,o),m(I.toPaneId,o),m(I.splitDirection,j),m(I.selection,x)].every(Boolean),m(L.expectedDocumentVersion,f),m(L.expectedContentHash,h),m(L.textEdits,k),m(L.patch,o)].every(Boolean);case"result":return i(b=e.result)&&b.schemaVersion===l&&d(b.actionId)&&d(b.sessionId)&&("queued"===(S=b.status)||"succeeded"===S||"failed"===S||"conflict"===S)&&(void 0===b.message||"string"==typeof b.message)&&(void 0===(N=b.conflict)||i(N)&&"string"==typeof(t=N.code)&&a.includes(t)&&"string"==typeof N.message)&&(void 0===(w=b.failure)||i(w)&&"string"==typeof(n=w.code)&&s.includes(n)&&"string"==typeof w.message);case"heartbeat":return u(e.updatedAt);default:return!1;}}function N(e){return!(0===e.length||e.startsWith("/")||/^[A-Za-z]:/u.test(e)||e.includes("\0"))&&!e.split(/[/\\]/u).includes("..");}},65538:(e,t,n)=>{function l(e){return e<1024?`${e.toString()} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:e<0x40000000?`${(e/1048576).toFixed(1)} MB`:`${(e/0x40000000).toFixed(1)} GB`;}function a(e){if(e<1e3)return`${e.toString()} ms`;if(e<6e4)return`${(e/1e3).toFixed(1)} s`;let t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3);return`${t.toString()}m ${n.toString()}s`;}function s(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}}function r(e){var t;return null!=(t={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])?t:e;}function i(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;}function o(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}}function d(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}}n.d(t,{FR:()=>d,Kb:()=>s,Yq:()=>o,_V:()=>a,_y:()=>i,az:()=>r,z3:()=>l});},68835:(e,t,n)=>{n.d(t,{CapsuleDetail:()=>ea});var l=n(54568),a=n(7620),s=n(79748);Object.freeze({maxRawFileBytes:0x40000000,maxExtractedTextBytes:0x10000000,maxParserUnits:2e5,maxParserObjects:25e6,maxChunkCount:2e6,maxEmbeddingBatchCount:1e5,maxWallClockMs:36e5,cancellationDeadlineMs:15e3,maxRetryCount:3,maxPersistedStorageGrowthBytes:0x20000000,largeFileThresholdBytes:0x4000000,extractionWindowPages:16});let r=["complete","cancelled","failed"];Object.freeze({ocr:"unavailable",multimodal:"unavailable"}),Object.freeze({PARTIAL_COVERAGE:"PARTIAL_COVERAGE",OCR_CAPABILITY_UNAVAILABLE:"OCR_CAPABILITY_UNAVAILABLE",MULTIMODAL_CAPABILITY_UNAVAILABLE:"MULTIMODAL_CAPABILITY_UNAVAILABLE",CONVERTER_UNAVAILABLE:"CONVERTER_UNAVAILABLE",RESOURCE_POLICY_EXCEEDED:"RESOURCE_POLICY_EXCEEDED",CHECKPOINT_INCOMPATIBLE:"CHECKPOINT_INCOMPATIBLE",EXTRACTION_RESUMED:"EXTRACTION_RESUMED",EXTRACTION_PROGRESS:"EXTRACTION_PROGRESS"});var i=n(29464),o=n(65587),d=n.n(o),c=n(25780),u=n(23934),h=n(97509),p=n(65538),m=n(19217),f=n(76308),g=n(80266);function x(e){return Number.isFinite(e)?`${Math.round(100*Math.max(0,Math.min(1,e))).toString()}%`:"0%";}function y(e){if(!Number.isFinite(e)||e<=0)return"0s";let t=Math.round(e/1e3),n=Math.floor(t/60),l=t%60;return 0===n?`${l.toString()}s`:`${n.toString()}m ${l.toString().padStart(2,"0")}s`;}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return{detail:null,startedAt:e,now:e,pollError:null};}function j(){return`Maximum single file size: ${(0,p.z3)(0x40000000)}. Parser budget: ${25e6.toLocaleString("en-US")} objects, ${function(){let e=Math.round(60);if(e<60)return`${e.toString()} min`;let t=e/60;return`${t.toString()} h`;}()} per document.`;}function b(e){return"file"===e.kind&&e.sizeBytes>0x40000000;}function k(e){return Array.from(new Set(e.split(/\r?\n/u).map(e=>e.trim()).filter(e=>e.length>0)));}function S(e){return b(e)?`File is ${(0,p.z3)(e.sizeBytes)}; maximum is ${(0,p.z3)(0x40000000)}.`:e.readable?void 0:"File is not readable.";}function N(e){let t=b(e);return(0,l.jsxs)(l.Fragment,{children:[(0,p.z3)(e.sizeBytes),t?" \xb7 too large":""]});}let w=[{value:"folder",label:"Folder",description:"Index every supported document under one folder."},{value:"repository",label:"Repository",description:"Connect a repository root as a capsule source."},{value:"files",label:"Files",description:"Choose specific files below a shared root."}];function M(e){let{capsuleId:t,onConnected:n,connectImpl:s=i.FG}=e,[r,o]=(0,a.useState)("folder"),[d,c]=(0,a.useState)(""),[h,p]=(0,a.useState)(""),[m,x]=(0,a.useState)(!1),[y,v]=(0,a.useState)(null),[M,C]=(0,a.useState)(!1),A=(0,a.useId)(),E=function(e,t,n){let l=t.trim();if(""===l)return null;if("folder"===e)return{kind:"folder",rootPath:l,recursive:!0};if("repository"===e)return{kind:"repository",repositoryRoot:l};let a=k(n);return 0===a.length?null:{kind:"files",rootPath:l,files:a};}(r,d,h);async function I(){if(null!==E&&!m){x(!0),v(null);try{await s(t,E),c(""),p(""),n();}catch(e){v((0,u.W)(e));}finally{x(!1);}}}return(0,l.jsxs)("div",{className:"lkd-connect-form","aria-label":"Connect a source",children:[(0,l.jsx)("span",{id:A,className:"lkd-connect-label",children:"Connect source"}),(0,l.jsx)("div",{className:"lkd-connect-row",children:(0,l.jsx)(g.A,{value:r,sections:[{options:w}],onValueChange:e=>{o(e),v(null);},disabled:m,ariaLabelledBy:A,triggerClassName:"lkd-source-kind-select",menuClassName:"lkd-source-kind-menu",menuTitle:"Source type",showMenuHeader:!1})}),(0,l.jsxs)("div",{className:"lkd-connect-row",children:[(0,l.jsx)("label",{htmlFor:"lkd-connect-path-input",className:"dlg-label",children:"repository"===r?"Absolute repository path to connect":"files"===r?"Absolute root path for the selected files":"Absolute folder path to connect"}),(0,l.jsxs)("div",{className:"lkd-connect-path-group",children:[(0,l.jsx)("input",{id:"lkd-connect-path-input",type:"text",className:"dlg-input lkd-connect-input",value:d,disabled:m,placeholder:"repository"===r?"/absolute/path/to/repository":"files"===r?"/absolute/path/to/root":"/absolute/path/to/folder",autoComplete:"off",onChange:e=>c(e.target.value),onKeyDown:e=>{"Enter"===e.key&&"files"!==r&&I();}}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:m,onClick:()=>C(!0),children:"Browse"})]})]}),"files"===r?(0,l.jsxs)("div",{className:"lkd-connect-row",children:[(0,l.jsx)("label",{htmlFor:"lkd-connect-files-input",className:"dlg-label",children:"Relative files to connect"}),(0,l.jsx)("textarea",{id:"lkd-connect-files-input",className:"dlg-input lkd-connect-input",value:h,disabled:m,placeholder:"src/app.ts\nREADME.md",rows:4,onChange:e=>p(e.target.value)})]}):null,(0,l.jsx)("div",{className:"lkd-connect-row",children:(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:m||null===E,"aria-busy":m,onClick:()=>void I(),children:m?"Connecting…":"Connect"})}),null!==y?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:y}):null,M?(0,l.jsx)(f.c2,{mode:"files"===r?"files":"folder-or-files",title:"Choose local source",description:`Select a local ${"files"===r?"file or files":"folder"} for this capsule.`,note:j(),initialRootPath:d,initialFiles:k(h),isFileDisabled:b,fileDisabledReason:S,fileMeta:N,onApply:e=>{e.files.length>0?(o("files"),c(e.rootPath),p(e.files.join("\n"))):(c(e.folderPath),"files"!==r&&p("")),v(null),C(!1);},onCancel:()=>C(!1)}):null]});}function C(e){var t,n,a,s,r,i;let{kind:o,progress:d}=e,c=d.detail,u=null==c?void 0:c.indexingJobs[0],h=null!=(t=null!=(n=null==u?void 0:u.totalDocuments)?n:null==c?void 0:c.health.documentCount)?t:0,p=void 0===u?0:u.processedDocuments+u.failedDocuments+u.skippedDocuments,m=h>0?p/h:0,f=null!=(a=null==c?void 0:c.health.chunkCount)?a:0,g=null!=(s=null==c?void 0:c.health.vectorCount)?s:0,x=f>0?g/f:0,v=d.now-d.startedAt,j=p>0?p/Math.max(v,1):0,b=j>0?Math.max(0,h-p)/j:0,k=null!=(r=null!=(i=null==u?void 0:u.status)?i:null==c?void 0:c.capsule.lifecycleState)?r:"starting",S=j>0&&h>p?`Estimated remaining ${y(b)}`:"Estimating remaining time";return(0,l.jsxs)("div",{className:"lkd-action-progress",role:"status","aria-live":"polite",children:[(0,l.jsxs)("div",{className:"lkd-action-progress-head",children:[(0,l.jsx)("span",{children:"index"===o?"Indexing documents":"refresh"===o?"Refreshing changed files":"Repairing failed files"}),(0,l.jsx)("span",{children:k})]}),(0,l.jsxs)("div",{className:"lkd-action-progress-note",children:["Still working. Elapsed ",y(v),". ",S,"."]}),(0,l.jsxs)("div",{className:"lkd-status-bars",children:[(0,l.jsxs)("div",{className:"lkd-status-bar-row",children:[(0,l.jsx)("span",{children:"Documents"}),(0,l.jsx)(A,{value:m,label:"Action document progress"}),(0,l.jsxs)("span",{children:[p.toString()," / ",h.toString()]})]}),(0,l.jsxs)("div",{className:"lkd-status-bar-row",children:[(0,l.jsx)("span",{children:"Vectors"}),(0,l.jsx)(A,{value:x,label:"Action vector progress"}),(0,l.jsxs)("span",{children:[g.toString()," / ",f.toString()]})]})]}),null!==d.pollError?(0,l.jsxs)("div",{className:"lkd-action-progress-note",children:["Progress refresh is delayed: ",d.pollError]}):null]});}function A(e){let{value:t,label:n}=e;return(0,l.jsx)("div",{className:"lkd-progress",role:"img","aria-label":`${n}: ${x(t)}`,children:(0,l.jsx)("span",{className:"lkd-progress-fill","data-tone":"ok",style:{width:x(t)}})});}function E(e){let{kind:t,capsuleDisplayName:n,nameInput:s,busy:r,error:i,progress:o,onNameChange:d,onConfirm:c,onCancel:u}=e,p=(0,a.useRef)(null),f=(0,a.useRef)(null);(0,m.i)(),(0,a.useEffect)(()=>{0;let e=document.activeElement;return()=>{var t;return null==e||null==(t=e.focus)?void 0:t.call(e);};},[!0]),(0,a.useEffect)(()=>{0;let e=p.current;if(null===e)return;let t=e.querySelector("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])");function n(t){if("Escape"===t.key){t.preventDefault(),u();return;}if("Tab"!==t.key)return;let n=Array.from(e.querySelectorAll("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])"));if(0===n.length)return void t.preventDefault();let l=n[0],a=n[n.length-1];t.shiftKey&&document.activeElement===l?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),l.focus());}return null==t||t.focus(),e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n);},[!0,p,u]),(0,a.useEffect)(()=>{"delete"===t&&null!==f.current&&f.current.focus();},[t]);let g=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=p.current;if(null!==e){if(r)g.current=!0,e.focus();else if(g.current){var t;g.current=!1,null==(t=e.querySelector("button:not([disabled]),input:not([disabled])"))||t.focus();}}},[r]);let x="delete"===t,y=!r&&(!x||s===n),v="lkd-confirm-title",j="lkd-confirm-desc";return(0,h.createPortal)((0,l.jsx)("div",{className:"dlg-overlay in",role:"presentation",onClick:e=>{e.target===e.currentTarget&&u();},children:(0,l.jsxs)("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":v,"aria-describedby":j,className:"dlg",tabIndex:-1,children:[(0,l.jsx)("div",{className:"dlg-head",children:(0,l.jsxs)("div",{className:"dlg-htext",children:[(0,l.jsx)("div",{id:v,className:"dlg-title",children:"delete"===t?"Delete capsule":"refresh"===t?"Refresh changed files":"Repair failed files"}),(0,l.jsx)("div",{id:j,className:"dlg-sub",children:"delete"===t?`This permanently deletes the capsule index. The source files on disk are NOT deleted. Type "${n}" to confirm.`:"refresh"===t?"This runs an incremental refresh. Unchanged files stay in place, changed files are re-indexed, and removed files are cleaned up.":"This retries files that previously failed indexing and also picks up any newly changed files in the same incremental pass."})]})}),x?(0,l.jsxs)("div",{className:"dlg-body",children:[(0,l.jsxs)("div",{className:"dlg-field",children:[(0,l.jsx)("label",{htmlFor:"lkd-confirm-name-input",className:"dlg-label",children:"Type the capsule name to confirm"}),(0,l.jsx)("input",{id:"lkd-confirm-name-input",type:"text",className:"dlg-input",value:s,autoComplete:"off",ref:f,disabled:r,placeholder:n,onChange:e=>d(e.target.value)})]}),null!==i?(0,l.jsx)("div",{role:"alert",className:"lk-alert",style:{marginTop:4},children:i}):null]}):(0,l.jsxs)("div",{className:"dlg-body",children:[r&&null!==o?(0,l.jsx)(C,{kind:t,progress:o}):null,null!==i?(0,l.jsx)("div",{role:"alert",className:"lk-alert",children:i}):null]}),(0,l.jsxs)("div",{className:"dlg-foot",children:[(0,l.jsx)("button",{type:"button",className:"dlg-btn",disabled:r,onClick:u,children:"Cancel"}),(0,l.jsx)("button",{type:"button",className:"dlg-btn lkd-btn-destructive",disabled:!y,"aria-disabled":!y,onClick:c,children:r?"Working…":"delete"===t?"Delete":"refresh"===t?"Refresh":"Repair"})]})]})}),document.body);}function I(e){let{capsuleId:t,capsuleDisplayName:n,sourceCount:s,lifecycleState:r,onActionComplete:o,onDeleted:d,connectCapsuleSourceImpl:c=i.FG,deleteCapsuleImpl:h=i.H9,refreshCapsuleImpl:p=i.KS,repairCapsuleImpl:m=i.xY,startIndexingImpl:f=i.r,fetchCapsuleDetailImpl:g=i.rw}=e,[x,y]=(0,a.useState)(null),[b,k]=(0,a.useState)(!1),[S,N]=(0,a.useState)(null),[w,A]=(0,a.useState)(!1),[I,L]=(0,a.useState)(null),[O,T]=(0,a.useState)(null),R=null!==O&&(w||b&&null!==x&&"delete"!==x.kind);async function $(){if(!w){T(v()),A(!0),L(null);try{await f(t),T(null),o();}catch(e){L((0,u.W)(e));}finally{A(!1);}}}function D(e){N(null),T(null),y({kind:e,nameInput:""});}async function P(e,t){"delete"!==e&&T(v()),k(!0),N(null);try{let n=await t();T(null),y(null),"delete"===e&&void 0!==d?d(n):o();}catch(e){N((0,u.W)(e));}finally{k(!1);}}return(0,a.useEffect)(()=>{if(!R)return;let e=window.setInterval(()=>{T(e=>null===e?e:{...e,now:Date.now()});},1e3);return()=>window.clearInterval(e);},[R]),(0,a.useEffect)(()=>{if(!R)return;let e=!1;async function n(){try{let n=await g(t);if(e)return;T(e=>null===e?{detail:n,startedAt:Date.now(),now:Date.now(),pollError:null}:{...e,detail:n,now:Date.now(),pollError:null});}catch(t){if(e)return;T(e=>null===e?e:{...e,now:Date.now(),pollError:(0,u.W)(t)});}}n();let l=window.setInterval(()=>{n();},2e3);return()=>{e=!0,window.clearInterval(l);};},[t,g,R]),(0,l.jsxs)("section",{className:"lkd-tools","aria-label":"Capsule tools",children:[(0,l.jsx)(M,{capsuleId:t,onConnected:o,connectImpl:c}),(0,l.jsx)("p",{className:"lkd-limit-note",children:j()}),s>0&&"ready"!==r?(0,l.jsxs)("div",{className:"lkd-index-row",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":"Index this capsule now","aria-busy":w,disabled:w,onClick:()=>void $(),children:w?"Indexing…":"Index now"}),null!==I?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:I}):null,w&&null!==O?(0,l.jsx)(C,{kind:"index",progress:O}):null]}):null,(0,l.jsxs)("div",{role:"group","aria-label":`Actions for capsule ${n}`,className:"lkd-actions-group",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":`Refresh changed files for capsule ${n}`,onClick:()=>D("refresh"),children:"Refresh changed files"}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":`Repair failed files for capsule ${n}`,onClick:()=>D("repair"),children:"Repair failed files"}),(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-danger","aria-label":`Delete capsule ${n}`,onClick:()=>D("delete"),children:"Delete"})]}),null!==x?(0,l.jsx)(E,{kind:x.kind,capsuleDisplayName:n,nameInput:x.nameInput,busy:b,error:S,progress:O,onNameChange:function(e){y(t=>null!==t?{...t,nameInput:e}:null);},onConfirm:function(){if(null===x||b)return;let{kind:e}=x;"delete"===e?P(e,()=>h(t)):"refresh"===e?P(e,()=>p(t)):P(e,()=>m(t));},onCancel:function(){b||(y(null),N(null),T(null));}}):null]});}function L(e){let{name:t,description:n,busy:s,error:r,nameInputRef:i,onNameChange:o,onDescriptionChange:d,onCancel:c,onSubmit:u}=e,h=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=e=>{if("Escape"!==e.key||s)return;let t=h.current;null!==t&&t.contains(document.activeElement)&&c();};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e);};},[s,c]),(0,l.jsxs)("form",{className:"lkd-rename-form","aria-label":"Rename capsule",onSubmit:u,ref:h,children:[(0,l.jsxs)("div",{className:"dlg-field",children:[(0,l.jsx)("label",{htmlFor:"lkd-rename-name",className:"dlg-label",children:"Display name"}),(0,l.jsx)("input",{id:"lkd-rename-name",type:"text",className:"dlg-input",ref:i,value:t,disabled:s,autoComplete:"off","aria-label":"Capsule display name",onChange:e=>o(e.target.value)})]}),(0,l.jsxs)("div",{className:"dlg-field",children:[(0,l.jsx)("label",{htmlFor:"lkd-rename-desc",className:"dlg-label",children:"Description"}),(0,l.jsx)("input",{id:"lkd-rename-desc",type:"text",className:"dlg-input",value:n,disabled:s,autoComplete:"off","aria-label":"Capsule description",onChange:e=>d(e.target.value)})]}),null!==r?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:r}):null,(0,l.jsxs)("div",{className:"lkd-rename-actions",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:s,onClick:c,children:"Cancel"}),(0,l.jsx)("button",{type:"submit",className:"lk-btn lk-btn-primary",disabled:s,"aria-busy":s,children:s?"Saving…":"Save"})]})]});}function O(e){let{capsuleId:t,displayName:n,description:s,onRenamed:r,renameImpl:o=i.yN}=e,[d,c]=(0,a.useState)(!1),[h,p]=(0,a.useState)(n),[m,f]=(0,a.useState)(null!=s?s:""),[g,x]=(0,a.useState)(!1),[y,v]=(0,a.useState)(null),j=(0,a.useRef)(null),b=(0,a.useRef)(null),k=(0,a.useRef)(!1);async function S(e){let l,a;e.preventDefault();let i=h.trim();if(0===i.length)return void v("Display name is required.");let d=(l={},i!==n&&(l.displayName=i),((a=m.trim())!==(null!=s?s:"")&&(l.description=a),void 0===l.displayName&&void 0===l.description)?null:l);if(null===d)return void c(!1);x(!0),v(null);try{await o(t,d),c(!1),r();}catch(e){v((0,u.W)(e));}finally{x(!1);}}return(0,a.useEffect)(()=>{var e,t;d?null==(e=j.current)||e.focus():k.current&&(null==(t=b.current)||t.focus()),k.current=d;},[d]),d?(0,l.jsx)(L,{name:h,description:m,busy:g,error:y,nameInputRef:j,onNameChange:p,onDescriptionChange:f,onCancel:function(){g||(c(!1),v(null));},onSubmit:e=>void S(e)}):(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost","aria-label":`Rename capsule ${n}`,ref:b,onClick:function(){p(n),f(null!=s?s:""),v(null),c(!0);},children:"Rename"});}function T(e){return new Date(e).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"});}function R(e){return Number.isFinite(e)?`${Math.round(100*Math.max(0,Math.min(1,e))).toString()}%`:"0%";}function $(e){if(!Number.isFinite(e)||e<=0)return"0s";let t=Math.round(e/1e3),n=Math.floor(t/60),l=t%60;return 0===n?`${l.toString()}s`:`${n.toString()}m ${l.toString().padStart(2,"0")}s`;}function D(e){return e.indexingJobs[0];}function P(e){return{width:R(e)};}function H(e){let{children:t}=e;return(0,l.jsx)("h2",{className:"lk-section-head",children:t});}function V(e){let[t,n]=(0,a.useState)(!1);return{visibleCount:t?e:Math.min(25,e),showAll:t,setShowAll:n};}function U(e){let{hiddenCount:t,showAll:n,onToggle:a,noun:s}=e;return!n&&t<=0?null:(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",onClick:a,children:n?`Show fewer ${s}`:`Show ${t.toString()} more ${s}`});}function F(e){let{label:t,value:n,meta:a,tone:s="neutral"}=e;return(0,l.jsxs)("div",{className:"lkd-metric-card","data-tone":s,children:[(0,l.jsx)("span",{className:"lkd-metric-label",children:t}),(0,l.jsx)("strong",{className:"lkd-metric-value",children:n}),(0,l.jsx)("span",{className:"lkd-metric-meta",children:a})]});}function B(e){let{value:t,label:n,tone:a="ok"}=e;return(0,l.jsx)("div",{className:"lkd-progress",role:"img","aria-label":`${n}: ${R(t)}`,children:(0,l.jsx)("span",{className:"lkd-progress-fill","data-tone":a,style:P(t)})});}function J(e){var t,n,a;let s,{data:r}=e,i=D(r),o=null!=(t=null==i?void 0:i.totalDocuments)?t:r.health.documentCount,d=void 0===i?0:i.processedDocuments+i.failedDocuments+i.skippedDocuments,c=Math.max(0,r.health.documentCount-r.health.failedDocuments-r.health.skippedDocuments),u=o>0?d/o:0,h=r.health.chunkCount>0?r.health.vectorCount/r.health.chunkCount:0,p=Math.max(0,r.health.chunkCount-r.health.vectorCount),m=void 0!==i?$((null!=(n=i.finishedAt)?n:Date.now())-i.startedAt):"No job recorded",f=void 0!==i?Math.max(Date.now()-i.startedAt,1):0,g=d>0?d/f:0,x=g>0?Math.max(0,o-d)/g:0,y=(null==i?void 0:i.status)==="running"&&o>0&&d>0?`ETA ${$(x)}`:m,v=p>0||r.health.failedDocuments>0?(null==i?void 0:i.lastError)!==void 0?"danger":"warn":"ok";return(0,l.jsxs)("section",{"aria-labelledby":"lkd-index-status-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-index-status-heading",children:"Index status"})}),(0,l.jsx)("span",{className:"lkd-live-note","aria-live":"polite",children:(null==i?void 0:i.status)==="running"?"Updating every 2s":"Latest run"})]}),(0,l.jsxs)("div",{className:"lkd-metric-grid",children:[(0,l.jsx)(F,{label:"Indexed documents",value:`${c.toString()} / ${r.health.documentCount.toString()}`,meta:`${r.health.failedDocuments.toString()} failed, ${r.health.skippedDocuments.toString()} skipped`,tone:r.health.failedDocuments>0?"danger":r.health.skippedDocuments>0?"warn":"ok"}),(0,l.jsx)(F,{label:"Vectors",value:`${r.health.vectorCount.toString()} / ${r.health.chunkCount.toString()}`,meta:p>0?`${p.toString()} chunks missing vectors`:"All chunks embedded",tone:p>0?"danger":"ok"}),(0,l.jsx)(F,{label:"Latest job",value:void 0!==i?X[i.status]:"Not indexed",meta:y,tone:(null==i?void 0:i.status)==="failed"?"danger":(null==i?void 0:i.status)==="running"?"warn":"neutral"})]}),(0,l.jsxs)("div",{className:"lkd-status-bars",children:[(0,l.jsxs)("div",{className:"lkd-status-bar-row",children:[(0,l.jsx)("span",{children:"Discovery progress"}),(0,l.jsx)(B,{value:u,label:"Document discovery progress"}),(0,l.jsx)("span",{children:R(u)})]}),(0,l.jsxs)("div",{className:"lkd-status-bar-row",children:[(0,l.jsx)("span",{children:"Retrieval coverage"}),(0,l.jsx)(B,{value:h,label:"Vector retrieval coverage",tone:p>0?"danger":"ok"}),(0,l.jsx)("span",{children:R(h)})]})]}),(0,l.jsx)("p",{className:"lkd-status-callout","data-tone":v,children:(s=r.health.chunkCount-r.health.vectorCount,(null==i||null==(a=i.lastError)?void 0:a.code)==="EMBEDDING_ADAPTER_FAILED"?`Embedding stopped early: ${i.lastError.message}. ${s.toString()} chunks still need vectors.`:s>0?`${s.toString()} chunks still need vectors before retrieval can cover the full source.`:r.health.unsupportedDocuments>0?`${r.health.unsupportedDocuments.toString()} documents need a different extraction path before they can be indexed.`:"Index and vectors are aligned for the current source set.")})]});}function _(e){let{label:t,value:n}=e;return(0,l.jsxs)("div",{className:"lkd-row",children:[(0,l.jsx)("dt",{className:"lkd-label",children:t}),(0,l.jsx)("dd",{className:"lkd-value",children:n})]});}function z(e){var t;let{data:n}=e,{capsule:a,health:s}=n,r=a.embeddingModelIdentity;return(0,l.jsxs)("section",{"aria-labelledby":"lkd-overview-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-overview-heading",children:"Overview"})}),(0,l.jsxs)("dl",{className:"lkd-dl",children:[(0,l.jsx)(_,{label:"Name",value:a.displayName}),void 0!==a.description?(0,l.jsx)(_,{label:"Description",value:a.description}):null,a.tags.length>0?(0,l.jsx)(_,{label:"Tags",value:(0,l.jsx)("ul",{className:"lkd-tags","aria-label":"Capsule tags",children:a.tags.map(e=>(0,l.jsx)("li",{className:"lkd-tag",children:e},e))})}):null,(0,l.jsx)(_,{label:"Status",value:(0,l.jsx)("span",{className:"lk-badge","data-state":a.lifecycleState,role:"status","aria-label":`Status: ${c.Z[a.lifecycleState]}`,children:c.Z[a.lifecycleState]})}),(0,l.jsx)(_,{label:"Embedding model",value:`${r.provider} / ${r.modelId} (${r.vectorDimensions.toString()}d, ${r.vectorMetric})`}),(0,l.jsx)(_,{label:"Storage size",value:(t=s.storageSizeBytes)<1024?`${t.toString()} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}),(0,l.jsx)(_,{label:"Unsupported documents",value:s.unsupportedDocuments.toString()}),void 0!==s.lastIndexedAt?(0,l.jsx)(_,{label:"Last indexed",value:T(s.lastIndexedAt)}):null,(0,l.jsx)(_,{label:"Vector compatible",value:s.vectorCompatible?"Yes":"No — re-index required"}),s.staleReasons.length>0?(0,l.jsx)(_,{label:"Stale reasons",value:(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":"Stale reasons",children:s.staleReasons.map(e=>(0,l.jsx)("li",{children:e},e))})}):null,s.unsupportedGuidance.length>0?(0,l.jsx)(_,{label:"Next steps",value:(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":"Unsupported document guidance",children:s.unsupportedGuidance.map(e=>(0,l.jsx)("li",{children:e},e))})}):null]})]});}function K(e){let{sources:t}=e;return 0===t.length?(0,l.jsxs)("section",{"aria-labelledby":"lkd-sources-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-sources-heading",children:"Sources"})}),(0,l.jsx)("p",{className:"lkd-empty-note",children:"No sources attached to this capsule."})]}):(0,l.jsxs)("section",{"aria-labelledby":"lkd-sources-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-sources-heading",children:"Sources"})}),(0,l.jsx)("ul",{className:"lkd-list lkd-source-list","aria-label":"Capsule sources",children:t.map(e=>{var t;let n=e.indexedCount+e.failedCount+e.skippedCount,a="folder"===(t=e.scope).kind?t.rootPath:"repository"===t.kind?t.repositoryRoot:`${t.rootPath} (${t.files.length.toString()} selected files)`;return(0,l.jsxs)("li",{className:"lkd-source-card",children:[(0,l.jsxs)("div",{className:"lkd-source-card-head",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"lkd-source-name",title:e.displayName,children:e.displayName}),(0,l.jsx)("div",{className:"lkd-source-path",title:a,children:a})]}),(0,l.jsx)("span",{className:"lkd-source-scope",children:e.scope.kind})]}),(0,l.jsxs)("div",{className:"lkd-source-coverage",role:"img","aria-label":"Source document coverage",children:[(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-ok",style:P(n>0?e.indexedCount/n:0)}),(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-fail",style:P(n>0?e.failedCount/n:0)}),(0,l.jsx)("span",{className:"lkd-source-segment lkd-source-segment-skip",style:P(n>0?e.skippedCount/n:0)})]}),(0,l.jsxs)("div",{className:"lkd-source-counts","aria-label":"Document counts",children:[(0,l.jsxs)("span",{className:"lkd-count lkd-count-ok",children:[e.indexedCount.toString()," indexed"]}),(0,l.jsxs)("span",{className:"lkd-count lkd-count-fail",children:[e.failedCount.toString()," failed"]}),(0,l.jsxs)("span",{className:"lkd-count lkd-count-skip",children:[e.skippedCount.toString()," skipped"]})]})]},e.sourceId);})})]});}function q(){return(0,l.jsxs)("section",{"aria-labelledby":"lkd-privacy-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-privacy-heading",children:"Privacy and deletion"})}),(0,l.jsxs)("ul",{className:"lkd-list","aria-label":"Privacy and deletion details",children:[(0,l.jsx)("li",{className:"lkd-source-row",children:"Indexed text, vectors, diagnostics, and job history stay in Keiko's local runtime state on this machine."}),(0,l.jsx)("li",{className:"lkd-source-row",children:"Selected chunks may be sent through the configured Model Gateway for embeddings during indexing and for grounded answers when you ask questions against this capsule."}),(0,l.jsx)("li",{className:"lkd-source-row",children:"Deleting a capsule removes its local index data and capsule-set memberships. Source files on disk are not deleted."})]})]});}let W={info:"Info",warning:"Warning",error:"Error"};function G(e){let{group:t}=e;return(0,l.jsxs)("li",{className:"lkd-diag-group","data-severity":t.severity,"aria-label":`${W[t.severity]}: ${t.code} (${t.count.toString()}x)`,children:[(0,l.jsx)("span",{className:"lkd-diag-severity","aria-hidden":"true",children:W[t.severity]}),(0,l.jsxs)("span",{className:"lkd-diag-group-count",children:[t.count.toString(),"x"]}),(0,l.jsx)("span",{className:"lkd-diag-code",children:t.code}),(0,l.jsx)("span",{className:"lkd-diag-message",children:t.message})]});}function Z(e){let{diag:t}=e;return(0,l.jsxs)("li",{className:"lkd-diag-row","data-severity":t.severity,"aria-label":`${W[t.severity]}: ${t.code}`,children:[(0,l.jsx)("span",{className:"lkd-diag-severity","aria-hidden":"true",children:W[t.severity]}),(0,l.jsx)("span",{className:"lkd-diag-code",children:t.code}),(0,l.jsx)("span",{className:"lkd-diag-message",children:t.message}),void 0!==t.pageNumber?(0,l.jsxs)("span",{className:"lkd-diag-page",children:["p.",t.pageNumber.toString()]}):null]});}function Y(e){let{diagnostics:t}=e,{visibleCount:n,showAll:a,setShowAll:s}=V(t.length),r=t.slice(0,n),i=t.length-r.length,o=function(e){let t=new Map();for(let l of e){var n;let e=`${l.severity}\u0000${l.code}\u0000${l.message}`,a=t.get(e);t.set(e,{key:e,severity:l.severity,code:l.code,message:l.message,count:(null!=(n=null==a?void 0:a.count)?n:0)+1});}return[...t.values()].sort((e,t)=>t.count-e.count||e.code.localeCompare(t.code));}(t).slice(0,8);return(0,l.jsxs)("section",{"aria-labelledby":"lkd-diag-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-diag-heading",children:"Health Diagnostics"})}),0===t.length?(0,l.jsx)("p",{className:"lkd-empty-note","data-testid":"diag-empty",children:"No parser diagnostics — all documents processed cleanly."}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:"lkd-list lkd-diag-group-list","aria-label":"Grouped parser diagnostics",children:o.map(e=>(0,l.jsx)(G,{group:e},e.key))}),(0,l.jsx)("ul",{className:"lkd-list lkd-diag-list","aria-label":"Parser diagnostics",children:r.map((e,t)=>(0,l.jsx)(Z,{diag:e},`${e.code}-${t.toString()}`))}),(0,l.jsx)(U,{hiddenCount:i,noun:"diagnostics",showAll:a,onToggle:()=>s(!a)})]})]});}let X={queued:"Queued",running:"Running",succeeded:"Succeeded",failed:"Failed",cancelled:"Cancelled"};function Q(e){let{job:t}=e,n=void 0!==t.finishedAt?$(t.finishedAt-t.startedAt):"In progress";return(0,l.jsxs)("li",{className:"lkd-job-row","aria-label":`Job ${t.id}: ${X[t.status]}`,children:[(0,l.jsx)("span",{className:"lkd-job-status","data-status":t.status,children:X[t.status]}),(0,l.jsxs)("span",{className:"lkd-job-dates",children:[(0,l.jsx)("time",{dateTime:new Date(t.startedAt).toISOString(),children:T(t.startedAt)}),void 0!==t.finishedAt?(0,l.jsxs)(l.Fragment,{children:[" — ",(0,l.jsx)("time",{dateTime:new Date(t.finishedAt).toISOString(),children:T(t.finishedAt)})]}):null]}),(0,l.jsx)("span",{className:"lkd-job-duration",children:n}),(0,l.jsxs)("div",{className:"lkd-source-counts","aria-label":"Document counts",children:[(0,l.jsxs)("span",{className:"lkd-count lkd-count-ok",children:[t.processedDocuments.toString()," processed"]}),(0,l.jsxs)("span",{className:"lkd-count lkd-count-fail",children:[t.failedDocuments.toString()," failed"]}),(0,l.jsxs)("span",{className:"lkd-count lkd-count-skip",children:[t.skippedDocuments.toString()," skipped"]})]}),void 0!==t.lastError?(0,l.jsxs)("div",{className:"lkd-job-error",children:[(0,l.jsx)("span",{children:t.lastError.code}),(0,l.jsx)("span",{children:t.lastError.message})]}):null]});}function ee(e){let{jobs:t}=e,{visibleCount:n,showAll:a,setShowAll:s}=V(t.length),r=t.slice(0,n),i=t.length-r.length;return(0,l.jsxs)("section",{"aria-labelledby":"lkd-jobs-heading",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-jobs-heading",children:"Indexing Job History"})}),0===t.length?(0,l.jsx)("p",{className:"lkd-empty-note",children:"No indexing jobs recorded yet."}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:"lkd-list","aria-label":"Indexing job history",children:r.map(e=>(0,l.jsx)(Q,{job:e},e.id))}),(0,l.jsx)(U,{hiddenCount:i,noun:"jobs",showAll:a,onToggle:()=>s(!a)})]})]});}let et={preflight:"Preflight",extracting:"Extracting",extracted:"Extracted",chunking:"Chunking",chunked:"Chunked",embedding:"Embedding",embedded:"Embedded",complete:"Complete",cancelled:"Cancelled",failed:"Failed"};function en(e){var t;let{progress:n}=e;return(0,l.jsxs)("li",{className:"lkd-source-card",children:[(0,l.jsxs)("div",{className:"lkd-source-card-head",children:[(0,l.jsx)("div",{className:"lkd-source-name",title:n.safeDisplayName,children:n.safeDisplayName}),(0,l.jsx)("span",{className:"lkd-source-scope",children:et[n.phase]})]}),(0,l.jsxs)("div",{className:"lkd-metric-meta",children:[(0,l.jsxs)("span",{"data-tone":"complete"===(t=n.coverage)?"ok":"none"===t?"danger":"warn",children:[n.coverage," coverage"]})," \xb7 ",n.processedPages.toString()," pages "," \xb7 ",n.embeddedChunkCount.toString(),"/",n.chunkCount.toString()," chunks embedded",n.resumable?" \xb7 resumable":""]})]});}function el(e){let{capsuleId:t,health:n,onActionComplete:s,jobActive:o,resumeImpl:d}=e,[c,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)(null);if(0===n.progress.length)return null;let m=n.progress.filter(e=>{var t;return t=e.phase,!r.includes(t);}).map(e=>et[e.phase]);async function f(){u(!0),p(null);try{await(null!=d?d:i.QI)(t),s();}catch(e){p(e instanceof Error?e.message:"Resume failed.");}finally{u(!1);}}return(0,l.jsxs)("section",{"aria-labelledby":"lkd-large-doc-heading",className:"lkd-status-section",children:[(0,l.jsxs)("div",{className:"lkd-section-title-row",children:[(0,l.jsx)(H,{children:(0,l.jsx)("span",{id:"lkd-large-doc-heading",children:"Large documents"})}),(0,l.jsx)("span",{className:"lkd-live-note",role:"status","aria-live":"polite",children:m.length>0?`In progress: ${m.join(", ")}`:"Idle"})]}),n.partialCoverageDocuments>0?(0,l.jsxs)("p",{className:"lkd-status-callout","data-tone":"warn",children:[n.partialCoverageDocuments.toString()," document",1===n.partialCoverageDocuments?"":"s"," indexed with partial coverage. The pipeline is stable; retrieval quality is limited for these documents."]}):null,(0,l.jsx)("ul",{className:"lkd-list lkd-source-list","aria-label":"Large-document progress",children:n.progress.map(e=>(0,l.jsx)(en,{progress:e},e.documentId))}),n.qualityWarnings.length>0?(0,l.jsx)("ul",{className:"lkd-stale-reasons","aria-label":"Retrieval quality warnings",children:n.qualityWarnings.map(e=>(0,l.jsx)("li",{children:e},e))}):null,n.resumableDocuments.length>0?(0,l.jsx)("button",{type:"button",onClick:()=>{f();},disabled:c||o,"aria-label":"Resume interrupted large-document indexing",className:"lk-action-button",children:c?"Resuming…":`Resume ${n.resumableDocuments.length.toString()} document${1===n.resumableDocuments.length?"":"s"}`}):null,null!==h?(0,l.jsx)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:h}):null]});}function ea(){var e,t,n;let{capsuleId:r,onDeleted:o,fetchDetailImpl:c,resumeImpl:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,s.useSearchParams)(),m=(0,s.useRouter)(),f=null!=r?r:null!=(e=p.get("capsuleId"))?e:"",{data:g,loadStatus:x,loadError:y,reload:v}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.rw,[n,l]=(0,a.useState)(null),[s,r]=(0,a.useState)("loading"),[o,d]=(0,a.useState)(null),c=(0,a.useCallback)(async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(""===e){l(null),d("No capsule selected."),r("error");return;}!0!==n.quiet&&(r("loading"),d(null));try{let n=await t(e);l(n),r("ready");}catch(e){if(!0===n.quiet)return;d((0,u.W)(e)),r("error");}},[e,t]);return(0,a.useEffect)(()=>{c();},[c]),(0,a.useEffect)(()=>{let e=null==n?void 0:n.indexingJobs[0];if((null==n?void 0:n.capsule.lifecycleState)!=="indexing"&&(null==e?void 0:e.status)!=="queued"&&(null==e?void 0:e.status)!=="running")return;let t=window.setInterval(()=>{c({quiet:!0});},2e3);return()=>window.clearInterval(t);},[null==n?void 0:n.capsule.lifecycleState,null==n?void 0:n.indexingJobs,c]),{data:n,loadStatus:s,loadError:o,reload:function(){c();}};}(f,c);return"loading"===x?(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"lk-loading",children:"Loading capsule…"}):"error"===x||null===g?""===f?(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:["No capsule selected. Open a capsule from the Local Knowledge overview.",(0,l.jsx)(d(),{href:"/local-knowledge",className:"lk-alert-retry",children:"Back to Local Knowledge"})]}):(null==y?void 0:y.includes("NOT_FOUND"))===!0||(null==y?void 0:y.toLowerCase().includes("not found"))===!0?(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:["This capsule no longer exists. Return to the Local Knowledge overview.",(0,l.jsx)(d(),{href:"/local-knowledge",className:"lk-alert-retry",children:"Back to capsules"})]}):(0,l.jsxs)("div",{role:"alert","aria-live":"assertive",className:"lk-alert",children:[null!=y?y:"Failed to load capsule.",(0,l.jsx)("button",{type:"button",onClick:v,"aria-label":"Retry loading capsule detail",className:"lk-alert-retry",children:"Retry"})]}):(0,l.jsxs)("div",{className:"lkd-content",children:[(0,l.jsxs)("header",{className:"lk-header",children:[(0,l.jsx)("h1",{className:"lk-title",children:g.capsule.displayName}),(0,l.jsx)(O,{capsuleId:f,displayName:g.capsule.displayName,...(void 0!==g.capsule.description?{description:g.capsule.description}:{}),onRenamed:v})]}),(0,l.jsx)(I,{capsuleId:f,capsuleDisplayName:g.capsule.displayName,sourceCount:g.sources.length,lifecycleState:g.capsule.lifecycleState,onActionComplete:v,onDeleted:function(e){void 0!==o?o(e):m.push("/local-knowledge");}}),(0,l.jsx)(J,{data:g}),void 0!==g.largeDocumentHealth?(0,l.jsx)(el,{capsuleId:f,health:g.largeDocumentHealth,onActionComplete:v,jobActive:"indexing"===g.capsule.lifecycleState||(null==(t=D(g))?void 0:t.status)==="running"||(null==(n=D(g))?void 0:n.status)==="queued",...(void 0!==h?{resumeImpl:h}:{})}):null,(0,l.jsx)(z,{data:g}),(0,l.jsx)(q,{}),(0,l.jsx)(K,{sources:g.sources}),(0,l.jsx)(Y,{diagnostics:g.parserDiagnostics}),(0,l.jsx)(ee,{jobs:g.indexingJobs})]});}},73599:(e,t,n)=>{let l,a;n.d(t,{AD:()=>x,BU:()=>Y,Cl:()=>eL,Cp:()=>E,Du:()=>R,Dz:()=>d,Fw:()=>m,Gb:()=>B,Gc:()=>eg,IL:()=>eb,IN:()=>g,IO:()=>eH,IP:()=>eS,IU:()=>T,Je:()=>p,KD:()=>F,LV:()=>eO,M0:()=>ev,Mr:()=>A,OD:()=>q,Oz:()=>M,Pi:()=>Q,Qe:()=>j,RA:()=>eR,Sf:()=>ey,Su:()=>v,T$:()=>I,T7:()=>o,Um:()=>ei,VJ:()=>h,W4:()=>ex,Wk:()=>ef,YT:()=>el,Yl:()=>K,Z1:()=>W,ZC:()=>c,ZF:()=>D,_A:()=>ec,dF:()=>X,dW:()=>ek,eR:()=>w,ej:()=>e$,fG:()=>y,gA:()=>N,hD:()=>r,iS:()=>z,im:()=>ej,ir:()=>em,jv:()=>es,lv:()=>Z,mG:()=>ep,mU:()=>ea,mj:()=>L,nk:()=>V,pp:()=>ed,q7:()=>J,qU:()=>b,qY:()=>eN,qe:()=>f,r$:()=>eh,rX:()=>en,rp:()=>eo,tA:()=>O,tZ:()=>k,uy:()=>ee,vj:()=>S,w2:()=>et,wi:()=>C,x0:()=>eP,xZ:()=>eC,xe:()=>U,xp:()=>$,y0:()=>eu,z3:()=>u,z4:()=>_,z9:()=>eA,zE:()=>ew,zv:()=>G});var s=n(81962);class r extends Error{constructor(e,t,n){super(t),this.code=e,this.status=n,this.name="ApiError";}}async function i(e,t){var n,l;let a=(null!=(n=null==t?void 0:t.method)?n:"GET").toUpperCase(),s="GET"!==a&&"HEAD"!==a,i=await fetch(e,{...t,headers:{Accept:"application/json",...(s?{"Content-Type":"application/json"}:{}),...(s?{"X-Keiko-CSRF":"1"}:{}),...(null!=(l=null==t?void 0:t.headers)?l:{})}});if(!i.ok){let e="INTERNAL",t=`HTTP ${i.status.toString()}`;try{let n=await i.json();e=n.error.code,t=n.error.message;}catch{}throw new r(e,t,i.status);}if(204!==i.status)return i.json();}async function o(){return i("/api/health");}async function d(){var e;let t=await i("/api/config");return{config:t.config,configPresent:t.configPresent,effectiveGroundingLimits:null!=(e=t.effectiveGroundingLimits)?e:s.ty};}async function c(){return null!=l||(l=i("/api/models").catch(e=>{throw l=void 0,e;})),l;}async function u(){return i("/api/voice/capability");}async function h(e){return i("/api/voice/transcribe",{method:"POST",body:JSON.stringify(e)});}async function p(e,t){return i("/api/voice/speak",{method:"POST",body:JSON.stringify(e),...(void 0===t?{}:{signal:t})});}async function m(e,t){let n=await fetch("/api/voice/speak/stream",{method:"POST",headers:{"Content-Type":"application/json","X-Keiko-CSRF":"1",Accept:"audio/pcm"},body:JSON.stringify(e),...(void 0===t?{}:{signal:t})});if(!n.ok){let e="INTERNAL",t=`HTTP ${n.status.toString()}`;try{let l=await n.json();e=l.error.code,t=l.error.message;}catch{}throw new r(e,t,n.status);}return n;}async function f(e){let t=await i("/api/gateway/setup",{method:"POST",body:JSON.stringify(e)});return l=void 0,t;}async function g(e,t){return i("/api/gateway/readiness",{method:"POST",body:JSON.stringify({...(void 0===e?{}:{modelId:e}),...(void 0===t?{}:{options:t})})});}async function x(e){return i("/api/runs",{method:"POST",body:JSON.stringify(e)});}async function y(e,t){return i("/api/prompt-enhancement",{method:"POST",body:JSON.stringify(e),...(void 0===t?{}:{signal:t})});}async function v(e){return i(`/api/runs/${encodeURIComponent(e)}/cancel`,{method:"POST",body:JSON.stringify({confirm:!0})});}async function j(e){return i(`/api/runs/${encodeURIComponent(e)}`);}async function b(e){return i(`/api/runs/${encodeURIComponent(e)}/apply`,{method:"POST",body:JSON.stringify({confirm:!0})});}async function k(e){return i(`/api/evidence/${encodeURIComponent(e)}`);}async function S(){return null!=a||(a=i("/api/projects").finally(()=>{a=void 0;})),a;}async function N(e){return i("/api/projects",{method:"POST",body:JSON.stringify(e)});}async function w(e){return i("/api/repositories/clone",{method:"POST",body:JSON.stringify(e)});}async function M(e){return i(`/api/chats?projectPath=${encodeURIComponent(e)}`);}async function C(e,t){return i(`/api/chats?id=${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)});}async function A(e,t){return i(`/api/chats?id=${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({connectedScopes:t})});}async function E(e,t){return i(`/api/chats?id=${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({localKnowledgeScopes:t})});}async function I(e,t){let n=new URLSearchParams();return n.set("chatId",e),n.set("projectPath",t),i(`/api/chats/messages?${n.toString()}`);}async function L(e,t,n,l){let a=new URLSearchParams();return a.set("id",e),a.set("chatId",t),a.set("projectPath",n),i(`/api/chats/messages?${a.toString()}`,{method:"PATCH",body:JSON.stringify(l)});}async function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i("/api/desktop/chats",{method:"POST",body:JSON.stringify(e)});}async function T(e){return i("/api/desktop/chat/voice-turn",{method:"POST",body:JSON.stringify(e)});}async function R(e,t){return i("/api/voice/realtime/grounded-tool",{method:"POST",body:JSON.stringify(e),signal:null!=t?t:null});}async function $(e,t){return i("/api/desktop/chat",{method:"POST",body:JSON.stringify(e),signal:null!=t?t:null});}class D extends Error{constructor(e,t){super(t),this.code=e,this.name="StreamingUnavailableError";}}function P(e,t,n){let l=t;for(let t of e){let e=t.trimEnd();if(e.startsWith("event:"))l=e.slice(6).trim();else if(e.startsWith("data:")){let t,a=e.slice(5).trim();try{t=JSON.parse(a);}catch{continue;}!function(e,t,n){switch(e){case"token":{let e=function(e){if("object"==typeof e&&null!==e&&"text"in e&&"string"==typeof e.text)return e;}(t);void 0!==e&&n.onToken(e.text);break;}case"done":{let e=function(e){if("object"==typeof e&&null!==e&&"chat"in e&&"messages"in e)return e;}(t);void 0!==e&&n.onDone(e);break;}case"error":{let e=function(e){if("object"==typeof e&&null!==e&&"code"in e&&"message"in e&&"string"==typeof e.code&&"string"==typeof e.message)return e;}(t);void 0!==e&&n.onError(e);break;}case"cancelled":n.onCancelled();}}(l,t,n),l=void 0;}else""===e&&(l=void 0);}return l;}async function H(e,t,n){let l,a=e.getReader(),s=new TextDecoder(),r="",i=!1;try{for(;!t.aborted;){var o;let e=await a.read();if(e.done){i=!0;break;}let t=(r+=s.decode(e.value,{stream:!0})).split("\n");r=null!=(o=t.pop())?o:"",l=P(t,l,n);}i&&""!==r&&P([r],l,n);}finally{a.releaseLock();}}async function V(e,t,n){var l,a,s,r,i;let o=await fetch("/api/desktop/chat/stream",{method:"POST",headers:{Accept:"text/event-stream","Content-Type":"application/json","X-Keiko-CSRF":"1"},body:JSON.stringify(e),signal:t});if(!(null!=(l=o.headers.get("content-type"))?l:"").includes("text/event-stream")){let e="STREAMING_UNSUPPORTED",t=`HTTP ${o.status.toString()}`;try{let n=await o.json();e=null!=(a=null==(r=n.error)?void 0:r.code)?a:e,t=null!=(s=null==(i=n.error)?void 0:i.message)?s:t;}catch{}throw new D(e,t);}if(null===o.body)throw new D("STREAMING_UNSUPPORTED","Response body was null.");await H(o.body,t,n);}async function U(e,t){let n=new URLSearchParams();return n.set("root",e),void 0!==t&&t.length>0&&n.set("path",t),i(`/api/files/directories?${n.toString()}`);}async function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=new URLSearchParams();return n.set("root",e),t.length>0&&n.set("path",t),i(`/api/files/tree?${n.toString()}`);}async function B(e,t,n,l){let a=new URLSearchParams();return a.set("root",e),a.set("q",t),void 0!==n&&a.set("limit",String(n)),i(`/api/files/search?${a.toString()}`,l);}async function J(e,t){let n=new URLSearchParams();return n.set("root",e),n.set("path",t),i(`/api/files/preview?${n.toString()}`);}async function _(e,t){let n=new URLSearchParams();return n.set("root",e),n.set("path",t),i(`/api/files/content?${n.toString()}`);}async function z(e){return i("/api/files/content",{method:"PATCH",body:JSON.stringify(e)});}async function K(e){return i("/api/files/create",{method:"POST",body:JSON.stringify(e)});}async function q(e){return i("/api/files/rename",{method:"POST",body:JSON.stringify(e)});}async function W(e){return i("/api/files/delete",{method:"POST",body:JSON.stringify(e)});}async function G(e){return i("/api/files/copy",{method:"POST",body:JSON.stringify(e)});}async function Z(e){let t=new URLSearchParams();return t.set("root",e),i(`/api/git/status?${t.toString()}`);}async function Y(e){let t=new URLSearchParams();return t.set("root",e),i(`/api/git/branches?${t.toString()}`);}async function X(e){let t=new URLSearchParams();return t.set("root",e),i(`/api/git/summary?${t.toString()}`);}async function Q(e){let t=new URLSearchParams();return t.set("root",e.root),void 0!==e.limit&&t.set("limit",e.limit.toString()),void 0!==e.skip&&t.set("skip",e.skip.toString()),i(`/api/git/history?${t.toString()}`);}async function ee(e){let t=new URLSearchParams();return t.set("root",e),i(`/api/git/remotes?${t.toString()}`);}async function et(e){let t=new URLSearchParams();return t.set("root",e.root),void 0!==e.path&&e.path.length>0&&t.set("path",e.path),void 0!==e.scope&&t.set("scope",e.scope),i(`/api/git/diff?${t.toString()}`);}async function en(e,t){return i("/api/editor/completion",{method:"POST",body:JSON.stringify({schemaVersion:s.eg,root:e.root,document:{path:e.path,languageId:e.languageId,text:e.text},position:e.position,triggerKind:e.triggerKind,...(void 0===e.triggerCharacter?{}:{triggerCharacter:e.triggerCharacter}),contextBudgetBytes:e.contextBudgetBytes,...(void 0===e.context?{}:{context:e.context}),...(void 0===e.maxCostClass?{}:{maxCostClass:e.maxCostClass})}),...(void 0===t?{}:{signal:t})});}async function el(e,t){return i("/api/editor/inline-completion",{method:"POST",body:JSON.stringify({schemaVersion:s.IF,root:e.root,document:{path:e.path,languageId:e.languageId,text:e.text},position:e.position,triggerKind:e.triggerKind,contextBudgetBytes:e.contextBudgetBytes,...(void 0===e.context?{}:{context:e.context}),...(void 0===e.maxCostClass?{}:{maxCostClass:e.maxCostClass}),...(void 0===e.maxOutputTokens?{}:{maxOutputTokens:e.maxOutputTokens})}),...(void 0===t?{}:{signal:t})});}async function ea(e){let t={schemaVersion:s.gr,root:e.root,offered:e.offered,shown:e.shown,accepted:e.accepted,rejected:e.rejected,ignored:e.ignored,partiallyAccepted:e.partiallyAccepted,requestCount:e.requestCount,requestLatencyMsP50:e.requestLatencyMsP50,requestLatencyMsP95:e.requestLatencyMsP95};await i("/api/editor/inline-completion/telemetry",{method:"POST",body:JSON.stringify(t)});}async function es(e,t){return i("/api/editor/test-generation",{method:"POST",body:JSON.stringify({schemaVersion:s.lc,root:e.root,target:e.target,contextBudgetBytes:e.contextBudgetBytes,...(void 0===e.context?{}:{context:e.context})}),...(void 0===t?{}:{signal:t})});}function er(e){return{path:e.path,languageId:e.languageId,text:e.text};}async function ei(e){let t=void 0===e||0===e.length?"":`?root=${encodeURIComponent(e)}`;return i(`/api/editor/language/capabilities${t}`);}async function eo(e,t){return(await i("/api/editor/language",{method:"POST",body:JSON.stringify({operation:"diagnostics",root:e.root,document:er(e)}),...(void 0===t?{}:{signal:t})})).result;}async function ed(e,t){return(await i("/api/editor/language",{method:"POST",body:JSON.stringify({operation:"hover",root:e.root,document:er(e),position:e.position}),...(void 0===t?{}:{signal:t})})).result;}async function ec(e,t){return(await i("/api/editor/language",{method:"POST",body:JSON.stringify({operation:"symbols",root:e.root,document:er(e)}),...(void 0===t?{}:{signal:t})})).result;}async function eu(e,t){return(await i("/api/editor/language",{method:"POST",body:JSON.stringify({operation:"formatting",root:e.root,document:er(e),...(void 0===e.options?{}:{options:e.options})}),...(void 0===t?{}:{signal:t})})).result;}async function eh(e){return i("/api/editor/agent/snapshot",{method:"POST",body:JSON.stringify({schemaVersion:e.schemaVersion,kind:"snapshot",snapshot:e})});}async function ep(e){return i("/api/editor/agent/actions",{method:"POST",body:JSON.stringify(e)});}async function em(e){return i(`/api/editor/agent/audit?sessionId=${encodeURIComponent(e)}`);}async function ef(e,t){return i("/api/chats/messages/grounded",{method:"POST",body:JSON.stringify(e),signal:null!=t?t:null});}async function eg(e){return i("/api/local-knowledge/citation-preview/status",{method:"POST",body:JSON.stringify(e)});}async function ex(e){return i("/api/local-knowledge/citation-preview/open",{method:"POST",body:JSON.stringify(e)});}async function ey(e){return i(`/api/local-knowledge/citation-preview/sessions/${encodeURIComponent(e)}`,{method:"DELETE",body:"{}"});}function ev(e){return`/api/local-knowledge/citation-preview/sessions/${encodeURIComponent(e)}/document`;}async function ej(e,t){return i("/api/git-delivery/local-branch/create",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,branchName:e.branchName,baseBranchName:e.baseBranchName,startPointRefHash:e.startPointRefHash,...(void 0===e.approval?{}:{approval:e.approval})}),...(void 0===t?{}:{signal:t})});}async function eb(e,t){return i("/api/git-delivery/local-branch/switch",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,branchName:e.branchName,...(void 0===e.approval?{}:{approval:e.approval})}),...(void 0===t?{}:{signal:t})});}async function ek(e,t){return i("/api/git-delivery/staging/stage",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,pathspecs:e.pathspecs,includeUntracked:e.includeUntracked,...(void 0===e.approval?{}:{approval:e.approval})}),...(void 0===t?{}:{signal:t})});}async function eS(e,t){return i("/api/git-delivery/staging/unstage",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,pathspecs:e.pathspecs,...(void 0===e.approval?{}:{approval:e.approval})}),...(void 0===t?{}:{signal:t})});}async function eN(e,t){return i("/api/git-delivery/commit/preview",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,...(void 0===e.messageDraft?{}:{messageDraft:e.messageDraft})}),...(void 0===t?{}:{signal:t})});}async function ew(e,t){return i("/api/git-delivery/commit/execute",{method:"POST",body:JSON.stringify({schemaVersion:"1",projectId:e.projectId,message:e.message,...(void 0===e.allowEmpty?{}:{allowEmpty:e.allowEmpty}),...(void 0===e.approval?{}:{approval:e.approval})}),...(void 0===t?{}:{signal:t})});}function eM(e){return JSON.stringify({schemaVersion:"1",projectId:e.projectId,remoteAlias:e.remoteAlias,remoteBranchName:e.remoteBranchName,sourceBranchName:e.sourceBranchName,...(void 0===e.forcePush?{}:{forcePush:e.forcePush}),...(void 0===e.setUpstreamTracking?{}:{setUpstreamTracking:e.setUpstreamTracking}),...(void 0===e.approval?{}:{approval:e.approval})});}async function eC(e,t){return i("/api/git-delivery/push/preview",{method:"POST",body:eM(e),...(void 0===t?{}:{signal:t})});}async function eA(e,t){return i("/api/git-delivery/push/execute",{method:"POST",body:eM(e),...(void 0===t?{}:{signal:t})});}function eE(e){return JSON.stringify({schemaVersion:"1",projectId:e.projectId,...(void 0===e.remote?{}:{remote:e.remote})});}function eI(e,t){return`/api/git-delivery/${e}/${t}`;}async function eL(e,t){return i(eI(e.operation,"preview"),{method:"POST",body:eE(e),...(void 0===t?{}:{signal:t})});}async function eO(e,t){return i(eI(e.operation,"execute"),{method:"POST",body:eE(e),...(void 0===t?{}:{signal:t})});}function eT(e){return JSON.stringify({schemaVersion:"1",projectId:e.projectId,kind:e.kind,ownerAndRepo:e.ownerAndRepo,headBranchName:e.headBranchName,baseBranchName:e.baseBranchName,title:e.title,body:e.body,...(void 0===e.isDraft?{}:{isDraft:e.isDraft}),...(void 0===e.prExternalId?{}:{prExternalId:e.prExternalId}),...(void 0===e.convertToDraft?{}:{convertToDraft:e.convertToDraft}),...(void 0===e.convertFromDraft?{}:{convertFromDraft:e.convertFromDraft}),...(void 0===e.approval?{}:{approval:e.approval})});}async function eR(e,t){return i("/api/git-delivery/pr/preview",{method:"POST",body:eT(e),...(void 0===t?{}:{signal:t})});}async function e$(e,t){return i("/api/git-delivery/pr/execute",{method:"POST",body:eT(e),...(void 0===t?{}:{signal:t})});}function eD(e){return JSON.stringify({schemaVersion:"1",projectId:e.projectId,kind:"merge",ownerAndRepo:e.ownerAndRepo,prExternalId:e.prExternalId,baseBranchName:e.baseBranchName,headBranchName:e.headBranchName,mergeStrategy:e.mergeStrategy,deleteBranchAfterMerge:e.deleteBranchAfterMerge,...(void 0===e.expectedHeadRefHash?{}:{expectedHeadRefHash:e.expectedHeadRefHash}),...(void 0===e.approval?{}:{approval:e.approval})});}async function eP(e,t){return i("/api/git-delivery/merge/preview",{method:"POST",body:eD(e),...(void 0===t?{}:{signal:t})});}async function eH(e,t){return i("/api/git-delivery/merge/execute",{method:"POST",body:eD(e),...(void 0===t?{}:{signal:t})});}},74883:(e,t,n)=>{n.d(t,{RX:()=>l,S_:()=>c,gB:()=>o,iu:()=>d,nP:()=>h});let l=["male","female","neutral"];function a(e){return"voice"===e.kind;}function s(e){return"voice"===e.kind&&!0===e.supportsSpeechInput;}function r(e){return"voice"===e.kind&&!0===e.supportsSpeechOutput;}function i(e){return"voice"===e.kind&&!0===e.supportsRealtimeVoice;}function o(e){return a(e)&&(s(e)||r(e)||i(e));}function d(e){let t=e.voiceProviderLocality;return{available:o(e),speechToText:s(e),speechOutput:r(e),realtimeVoice:i(e),personas:function(e){if(!a(e))return[];let t=e.supportedVoicePersonas;if(void 0===t||0===t.length)return[];let n=new Set(t);return l.filter(e=>n.has(e));}(e),...(void 0!==t?{providerLocality:t}:{})};}function c(e){return"chat"===e.kind;}let u={embedding:"embedding-only","ocr-vision":"ocr-vision-only",voice:"voice-only"};function h(e){if("chat"!==e.kind)return u[e.kind];}},75571:(e,t,n)=>{n.d(t,{F:()=>s});var l=n(54568);function a(e){let{size:t=18,sw:n=1.6,vb:a=24,fill:s,className:r,style:i,children:o,d}=e,c=void 0!==s;return(0,l.jsx)("svg",{className:r,width:t,height:t,viewBox:`0 0 ${String(a)} ${String(a)}`,fill:c?s:"none",stroke:c?"none":"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",style:i,"aria-hidden":"true",children:void 0!==d?(0,l.jsx)("path",{d:d}):o});}let s={newChat:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M4 6 H12.5"}),(0,l.jsx)("path",{d:"M4 9.5 H9.5"}),(0,l.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),search:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M12.25 4.76 A6 6 0 1 1 8.75 4.76"}),(0,l.jsx)("path",{d:"M14.7 14.7 L20 20"})]}),plugins:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"4",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,l.jsx)("rect",{x:"13.5",y:"4",width:"6.5",height:"6.5",rx:"1.5"}),(0,l.jsx)("rect",{x:"4",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"}),(0,l.jsx)("rect",{x:"13.5",y:"13.5",width:"6.5",height:"6.5",rx:"1.5"})]}),automations:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,l.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,l.jsx)("path",{d:"M11 18h2"})]}),folder:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M3.6 7.4 V6.3 a1.5 1.5 0 0 1 1.5-1.5 H8 a1.5 1.5 0 0 1 1.1 .48 L10.3 7.4"}),(0,l.jsx)("path",{d:"M13.50 7.40 H18.00 A2.4 2.4 0 0 1 20.40 9.80 V16.00 A2.4 2.4 0 0 1 18.00 18.40 H6.00 A2.4 2.4 0 0 1 3.60 16.00 V9.80 A2.4 2.4 0 0 1 6.00 7.40 H10.50"})]}),settings:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M 13.02 3.36 L 13.21 3.38 L 13.66 5.82 L 15.20 6.46 L 17.24 5.05 L 18.95 6.76 L 17.54 8.80 L 18.18 10.34 L 20.62 10.79 L 20.62 13.21 L 18.18 13.66 L 17.54 15.20 L 18.95 17.24 L 17.24 18.95 L 15.20 17.54 L 13.66 18.18 L 13.21 20.62 L 10.79 20.62 L 10.34 18.18 L 8.80 17.54 L 6.76 18.95 L 5.05 17.24 L 6.46 15.20 L 5.82 13.66 L 3.38 13.21 L 3.38 10.79 L 5.82 10.34 L 6.46 8.80 L 5.05 6.76 L 6.76 5.05 L 8.80 6.46 L 10.34 5.82 L 10.79 3.38 L 10.98 3.36"}),(0,l.jsx)("circle",{cx:"12",cy:"12",r:"2.7"})]}),files:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,l.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),browser:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,l.jsx)("path",{d:"M3.5 12h17M12 3.5c2.3 2.3 2.3 14.7 0 17M12 3.5c-2.3 2.3-2.3 14.7 0 17"})]}),review:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,l.jsx)("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2.5"})]}),terminal:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.70 5.00 H17.50 A2.5 2.5 0 0 1 20.00 7.50 V16.50 A2.5 2.5 0 0 1 17.50 19.00 H6.50 A2.5 2.5 0 0 1 4.00 16.50 V7.50 A2.5 2.5 0 0 1 6.50 5.00 H10.30"}),(0,l.jsx)("path",{d:"M8 9.6 L11 12.6 L8 15.6"}),(0,l.jsx)("path",{d:"M12.8 15.6 H16.4"})]}),agents:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"5",y:"7",width:"14",height:"11",rx:"3"}),(0,l.jsx)("path",{d:"M12 7V4M9 12h.01M15 12h.01M2.5 12.5v2M21.5 12.5v2"})]}),git:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"6",cy:"6",r:"2.5"}),(0,l.jsx)("circle",{cx:"6",cy:"18",r:"2.5"}),(0,l.jsx)("circle",{cx:"17",cy:"9",r:"2.5"}),(0,l.jsx)("path",{d:"M6 8.5v7M17 11.5c0 3-3 3.5-6 4"})]}),plus:e=>(0,l.jsx)(a,{...e,d:"M12 5v14M5 12h14"}),chevron:e=>(0,l.jsx)(a,{...e,d:"M6 9l6 6 6-6"}),chevronR:e=>(0,l.jsx)(a,{...e,d:"M9 6l6 6-6 6"}),mic:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M12 3.2 a3 3 0 0 1 3 3 V11 a3 3 0 0 1 -6 0 V6.2 a3 3 0 0 1 2 -2.8"}),(0,l.jsx)("path",{d:"M5.5 11.5 a6.5 6.5 0 0 0 13 0 M12 18 v3"})]}),arrowUp:e=>(0,l.jsx)(a,{...e,d:"M12 19V5M6 11l6-6 6 6"}),spark:e=>(0,l.jsx)(a,{...e,d:"M13.2 3.6 L19 10 l-5.2 1.4 L12 17 l-1.8 -5.6 L5 10 l5.2 -1.4 z"}),pin:e=>(0,l.jsx)(a,{...e,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,l.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"})]}),brainSlash:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"}),(0,l.jsx)("path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"}),(0,l.jsx)("path",{d:"M3.2 20.4 20.8 3.6"})]}),archive:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.20 5.00 H19.50 A1 1 0 0 1 20.50 6.00 V8.00 A1 1 0 0 1 19.50 9.00 H4.50 A1 1 0 0 1 3.50 8.00 V6.00 A1 1 0 0 1 4.50 5.00 H10.80"}),(0,l.jsx)("path",{d:"M5 9 v8 a2 2 0 0 0 2 2 h10 a2 2 0 0 0 2-2 V9"}),(0,l.jsx)("path",{d:"M10 13 h4"})]}),sidebar:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,l.jsx)("path",{d:"M9.5 5 V19"})]}),minimize:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M7 14 H10.4"}),(0,l.jsx)("path",{d:"M13.6 14 H17"})]}),expand:e=>(0,l.jsx)(a,{...e,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:e=>(0,l.jsx)(a,{...e,d:"M15 6l-6 6 6 6"}),fwd:e=>(0,l.jsx)(a,{...e,d:"M9 6l6 6-6 6"}),drag:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"9",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"15",cy:"6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"1.1",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"9",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"15",cy:"18",r:"1.1",fill:"currentColor",stroke:"none"})]}),close:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M7 7 L10.4 10.4"}),(0,l.jsx)("path",{d:"M17 7 L13.6 10.4"}),(0,l.jsx)("path",{d:"M7 17 L10.4 13.6"}),(0,l.jsx)("path",{d:"M17 17 L13.6 13.6"})]}),dots:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"6",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"12",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"}),(0,l.jsx)("circle",{cx:"18",cy:"12",r:"1.3",fill:"currentColor",stroke:"none"})]}),check:e=>(0,l.jsx)(a,{...e,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"8",y:"8",width:"10",height:"10",rx:"2"}),(0,l.jsx)("path",{d:"M6 14 H5.8 A1.8 1.8 0 0 1 4 12.2 V6.8 A1.8 1.8 0 0 1 5.8 5 H11.2 A1.8 1.8 0 0 1 13 6.8 V7"})]}),info:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M14.51 4.96 A8.6 8.6 0 1 1 9.49 4.96"}),(0,l.jsx)("path",{d:"M12 8.2 h.01"}),(0,l.jsx)("path",{d:"M12 11.3 V16.3"})]}),edit:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M4.5 6.5 H13"}),(0,l.jsx)("path",{d:"M4.5 10 H10"}),(0,l.jsx)("path",{d:"M14.4 13.6 l4-4 a1.6 1.6 0 0 1 2.3 2.3 l-6.2 6.2 -3 .7 .7 -3 z"})]}),trash:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M5 7 H19"}),(0,l.jsx)("path",{d:"M9 7 V5.6 A1.6 1.6 0 0 1 10.6 4 H13.4 A1.6 1.6 0 0 1 15 5.6 V7"}),(0,l.jsx)("path",{d:"M17.5 10 L16.8 18.2 A2 2 0 0 1 14.8 20 H9.2 A2 2 0 0 1 7.2 18.2 L6.5 10"}),(0,l.jsx)("path",{d:"M10 11.5 V17"}),(0,l.jsx)("path",{d:"M14 11.5 V17"})]}),reset:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M4 12a8 8 0 1 1 2.3 5.6"}),(0,l.jsx)("path",{d:"M4 20v-4h4"})]}),file:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M5.5 8 V5.5 a1.9 1.9 0 0 1 1.9-1.9 H12.8 L18.5 8.8 V18.5 a1.9 1.9 0 0 1-1.9 1.9 H7.4 a1.9 1.9 0 0 1-1.9-1.9 V11"}),(0,l.jsx)("path",{d:"M12.8 3.6 V7.4 a1.4 1.4 0 0 0 1.4 1.4 H18.5"})]}),diff:e=>(0,l.jsx)(a,{...e,d:"M12 4v6M9 7h6M5 17h14"}),commit:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M12.99 8.75 A3.4 3.4 0 1 1 11.01 8.75"}),(0,l.jsx)("path",{d:"M3 12 H8.6 M15.4 12 H21"})]}),pullRequest:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"6.5",cy:"6",r:"2"}),(0,l.jsx)("circle",{cx:"6.5",cy:"18",r:"2"}),(0,l.jsx)("circle",{cx:"17.5",cy:"18",r:"2"}),(0,l.jsx)("path",{d:"M6.5 8 V16"}),(0,l.jsx)("path",{d:"M17.5 16 V11 A3 3 0 0 0 14.5 8 H11.6"}),(0,l.jsx)("path",{d:"M13.6 6 L11.2 8.4 L13.6 10.8"})]}),merge:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"6.5",cy:"5.5",r:"2"}),(0,l.jsx)("circle",{cx:"17.5",cy:"5.5",r:"2"}),(0,l.jsx)("circle",{cx:"12",cy:"18.5",r:"2"}),(0,l.jsx)("path",{d:"M6.5 7.5 C 6.5 12 9 13.5 12 16.5"}),(0,l.jsx)("path",{d:"M17.5 7.5 C 17.5 12 15 13.5 12 16.5"})]}),download:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M12 4 V15"}),(0,l.jsx)("path",{d:"M7.5 10.5 L12 15 L16.5 10.5"}),(0,l.jsx)("path",{d:"M5 19.5 H19"})]}),code:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M8.5 8 L4.5 12 L8.5 16"}),(0,l.jsx)("path",{d:"M15.5 8 L19.5 12 L15.5 16"}),(0,l.jsx)("path",{d:"M13.5 5.5 L10.5 18.5"})]}),regenerate:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M6 9.5 A6.8 6.8 0 0 1 18.2 8.2"}),(0,l.jsx)("path",{d:"M18.6 4.2 L18.4 8.4 L14.3 7.7"}),(0,l.jsx)("path",{d:"M18 14.5 A6.8 6.8 0 0 1 5.8 15.8"}),(0,l.jsx)("path",{d:"M5.4 19.8 L5.6 15.6 L9.7 16.3"})]}),external:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M14 4.8 H19.2 V10"}),(0,l.jsx)("path",{d:"M19.2 4.8 L11 13"}),(0,l.jsx)("path",{d:"M17 13.5 V18 a1.6 1.6 0 0 1 -1.6 1.6 H6.6 A1.6 1.6 0 0 1 5 18 V9.2 A1.6 1.6 0 0 1 6.6 7.6 H11"})]}),link:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9.5 14.5 L14.5 9.5"}),(0,l.jsx)("path",{d:"M11 7.8 L12.8 6 a3.4 3.4 0 0 1 4.8 4.8 L15.8 12.6"}),(0,l.jsx)("path",{d:"M13 16.2 L11.2 18 a3.4 3.4 0 0 1 -4.8 -4.8 L8.2 11.4"})]}),branch:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M7.63 4.97 A2.3 2.3 0 1 1 4.37 4.97"}),(0,l.jsx)("circle",{cx:"6",cy:"17.4",r:"2.3"}),(0,l.jsx)("circle",{cx:"17.4",cy:"8.6",r:"2.3"}),(0,l.jsx)("path",{d:"M6 8.9 V15.1"}),(0,l.jsx)("path",{d:"M17.4 10.9 c0 4 -4 3.7 -7 4.7"})]}),cube:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M12 3l8 4.5v9L12 21l-8-4.5v-9z"}),(0,l.jsx)("path",{d:"M12 12l8-4.5M12 12v9M12 12L4 7.5"})]}),maximize:e=>(0,l.jsx)(a,{...e,d:"M13.50 7.00 H15.00 A2 2 0 0 1 17.00 9.00 V15.00 A2 2 0 0 1 15.00 17.00 H9.00 A2 2 0 0 1 7.00 15.00 V9.00 A2 2 0 0 1 9.00 7.00 H10.50"}),restore:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9 9 V8 a2 2 0 0 1 2 -2 h6 a2 2 0 0 1 2 2 v6 a2 2 0 0 1 -2 2 h-1"}),(0,l.jsx)("path",{d:"M11.50 9.00 H13.00 A2 2 0 0 1 15.00 11.00 V17.00 A2 2 0 0 1 13.00 19.00 H7.00 A2 2 0 0 1 5.00 17.00 V11.00 A2 2 0 0 1 7.00 9.00 H8.50"})]}),split:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,l.jsx)("path",{d:"M12 5 V19"})]}),tile:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M8.10 4.50 H9.00 A1.5 1.5 0 0 1 10.50 6.00 V10.00 A1.5 1.5 0 0 1 9.00 11.50 H5.00 A1.5 1.5 0 0 1 3.50 10.00 V6.00 A1.5 1.5 0 0 1 5.00 4.50 H5.90"}),(0,l.jsx)("path",{d:"M15.00 4.50 H19.00 A1.5 1.5 0 0 1 20.50 6.00 V10.00 A1.5 1.5 0 0 1 19.00 11.50 H15.00 A1.5 1.5 0 0 1 13.50 10.00 V6.00 A1.5 1.5 0 0 1 15.00 4.50 Z"}),(0,l.jsx)("path",{d:"M5.00 13.50 H9.00 A1.5 1.5 0 0 1 10.50 15.00 V19.00 A1.5 1.5 0 0 1 9.00 20.50 H5.00 A1.5 1.5 0 0 1 3.50 19.00 V15.00 A1.5 1.5 0 0 1 5.00 13.50 Z"}),(0,l.jsx)("path",{d:"M15.00 13.50 H19.00 A1.5 1.5 0 0 1 20.50 15.00 V19.00 A1.5 1.5 0 0 1 19.00 20.50 H15.00 A1.5 1.5 0 0 1 13.50 19.00 V15.00 A1.5 1.5 0 0 1 15.00 13.50 Z"})]}),cascade:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"4",y:"4",width:"12",height:"12",rx:"2"}),(0,l.jsx)("path",{d:"M20 8v10a2 2 0 0 1-2 2H8"})]}),editor:e=>(0,l.jsx)(a,{...e,children:(0,l.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"2.6"}),(0,l.jsx)("path",{d:"M12 3.5v2M12 18.5v2M20.5 12h-2M5.5 12h-2M18 6l-1.4 1.4M7.4 16.6 6 18M18 18l-1.4-1.4M7.4 7.4 6 6"})]}),panelRight:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,l.jsx)("path",{d:"M14.5 5 V19"})]}),panelDown:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.50 4.50 H18.00 A2.5 2.5 0 0 1 20.50 7.00 V17.00 A2.5 2.5 0 0 1 18.00 19.50 H6.00 A2.5 2.5 0 0 1 3.50 17.00 V7.00 A2.5 2.5 0 0 1 6.00 4.50 H10.50"}),(0,l.jsx)("path",{d:"M5 14.5 H19"})]}),layers:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.4 4.55 L19.6 8 L12 12.2 L4.4 8 L10.6 4.55"}),(0,l.jsx)("path",{d:"M4.4 12 L12 16.2 L19.6 12"}),(0,l.jsx)("path",{d:"M4.4 16 L12 20.2 L19.6 16"})]}),tokens:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"9",cy:"9",r:"4.5"}),(0,l.jsx)("path",{d:"M14 9.5a4.5 4.5 0 1 1-4 6.9"})]}),bolt:e=>(0,l.jsx)(a,{...e,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,l.jsx)("path",{d:"M12 8.5v7M8.5 12h7"})]}),bell:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M9.8 4.6 a5.5 5.5 0 0 1 7.7 4.4 c0 4.5 2 5.5 2 5.5 H4.5 s2 -1 2 -5.5 a5.5 5.5 0 0 1 1.1 -3.3"}),(0,l.jsx)("path",{d:"M10 19 a2 2 0 0 0 4 0"})]}),sun:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.17 8.17 A4 4 0 1 1 10.83 8.17"}),(0,l.jsx)("path",{d:"M12 2.5 V5 M12 19 V21.5 M2.5 12 H5 M19 12 H21.5 M5.1 5.1 L6.9 6.9 M17.1 17.1 l1.8 1.8 M18.9 5.1 L17.1 6.9 M6.9 17.1 L5.1 18.9"})]}),moon:e=>(0,l.jsx)(a,{...e,d:"M19.5 13.5 A8 8 0 1 1 10.5 4.2 a6.5 6.5 0 0 0 9.3 9.1"}),zoomOut:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,l.jsx)("path",{d:"M20 20l-4.2-4.2M8.3 11h5.4"})]}),zoomIn:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,l.jsx)("path",{d:"M20 20l-4.2-4.2M11 8.3v5.4M8.3 11h5.4"})]}),activity:e=>(0,l.jsx)(a,{...e,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.35 4.66 A3.6 3.6 0 1 1 10.65 4.66"}),(0,l.jsx)("path",{d:"M5.5 20 c.9 -3.7 3.4 -5.5 6.5 -5.5 s5.6 1.8 6.5 5.5"})]}),localKnowledge:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M4 19V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12"}),(0,l.jsx)("path",{d:"M4 19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2"}),(0,l.jsx)("path",{d:"M9 7v14M9 11h6"})]}),server:e=>(0,l.jsxs)(a,{...e,children:[(0,l.jsx)("path",{d:"M13.30 4.50 H18.30 A1.7 1.7 0 0 1 20.00 6.20 V8.80 A1.7 1.7 0 0 1 18.30 10.50 H5.70 A1.7 1.7 0 0 1 4.00 8.80 V6.20 A1.7 1.7 0 0 1 5.70 4.50 H10.70"}),(0,l.jsx)("path",{d:"M5.70 13.50 H18.30 A1.7 1.7 0 0 1 20.00 15.20 V17.80 A1.7 1.7 0 0 1 18.30 19.50 H5.70 A1.7 1.7 0 0 1 4.00 17.80 V15.20 A1.7 1.7 0 0 1 5.70 13.50 Z"}),(0,l.jsx)("path",{d:"M7.4 7.5 h.01 M7.4 16.5 h.01 M12 7.5 H16 M12 16.5 H16"})]})};},76308:(e,t,n)=>{n.d(t,{$e:()=>u,c2:()=>h,pD:()=>c});var l=n(54568),a=n(7620),s=n(97509),r=n(73599),i=n(19217),o=n(75571);let d="Der Ordner konnte nicht geladen werden.";function c(e){let t=e.trim().replace(/[/\\]+$/u,""),n=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return n<=0?t.startsWith("/")?"/":"":t.slice(0,n);}function u(e,t){if(null===t||0===t.length)return e;let n=e.includes("\\")&&!e.includes("/")?"\\":"/";return`${e.replace(/[/\\]+$/u,"")}${n}${t.replace(/\//gu,n)}`;}function h(e){var t;let{mode:n,title:c,description:h,note:p,initialRootPath:m,initialFiles:f=[],fetchProjectsImpl:g=r.vj,fetchFilesTreeImpl:x=r.KD,isFileDisabled:y,fileDisabledReason:v,fileMeta:j,onApply:b,onCancel:k}=e,S=(0,a.useRef)(null);(0,i.i)(),(0,a.useEffect)(()=>{var e,t;null==(t=S.current)||null==(e=t.querySelector("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])"))||e.focus();},[!0,S]),(0,a.useEffect)(()=>{0;let e=S.current;if(null!==e)return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t);function t(t){if("Escape"===t.key){t.preventDefault(),k();return;}if("Tab"!==t.key)return;let n=Array.from(e.querySelectorAll("button:not([disabled]),input:not([disabled]),[tabindex]:not([tabindex='-1'])"));if(0===n.length)return void t.preventDefault();let l=n[0],a=n[n.length-1];t.shiftKey&&document.activeElement===l?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),l.focus());}},[!0,S,k]);let[N,w]=(0,a.useState)([]),[M,C]=(0,a.useState)(m.trim()),[A,E]=(0,a.useState)(m.trim()),[I,L]=(0,a.useState)(null),[O,T]=(0,a.useState)([]),[R,$]=(0,a.useState)(()=>new Set(f)),[D,P]=(0,a.useState)(!1),[H,V]=(0,a.useState)(null);function U(e){let t=e.trim();0!==t.length&&($(new Set()),L(null),C(t),E(t));}(0,a.useEffect)(()=>{let e=!1;return g().then(t=>{if(e)return;let n=t.projects.filter(e=>e.available);w(n),0===M.length&&void 0!==n[0]&&(C(n[0].path),E(n[0].path));}).catch(()=>{e||w([]);}),()=>{e=!0;};},[M.length,g]),(0,a.useEffect)(()=>{if(0===M.length){T([]),V(null);return;}let e=!1;return P(!0),V(null),x(M,null!=I?I:"").then(t=>{if(e)return;T(t.entries),C(t.root),E(t.root);let n=t.path.length>0?t.path:null;I!==n&&L(n);}).catch(t=>{e||(T([]),V(function(e){if(e instanceof r.hD){let t=e.message.trim();return t.length>0?`${t} (${e.code})`:`${d} (${e.code})`;}if(e instanceof Error)return e.message.trim().length>0?e.message:d;let t=String(e).trim();return t.length>0?t:d;}(t)));}).finally(()=>{e||P(!1);}),()=>{e=!0;};},[M,I,x]);let F=u(M,I),B=Array.from(R),J=1===B.length?u(M,null!=(t=B[0])?t:null):"",_=0!==M.length&&("folder"===n||("file"===n?1===R.size:"files"!==n||R.size>0)),z="file"===n||"files"===n||"folder-or-files"===n,K="local-file-browser-title",q="local-file-browser-desc";return(0,s.createPortal)((0,l.jsx)("div",{className:"dlg-overlay in",role:"presentation",onClick:e=>{e.target===e.currentTarget&&k();},children:(0,l.jsxs)("div",{ref:S,role:"dialog","aria-modal":"true","aria-labelledby":K,"aria-describedby":q,className:"dlg lkd-source-picker",tabIndex:-1,children:[(0,l.jsx)("div",{className:"dlg-head",children:(0,l.jsxs)("div",{className:"dlg-htext",children:[(0,l.jsx)("div",{id:K,className:"dlg-title",children:c}),(0,l.jsx)("div",{id:q,className:"dlg-sub",children:h}),void 0!==p?(0,l.jsx)("div",{className:"dlg-sub",children:p}):null]})}),(0,l.jsxs)("div",{className:"dlg-body lkd-source-picker-body",children:[N.length>0?(0,l.jsx)("div",{className:"lkd-picker-projects","aria-label":"Registered project folders",children:N.map(e=>{var t;return(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",onClick:()=>{U(e.path);},children:null!=(t=e.name)?t:e.path},e.path);})}):null,(0,l.jsxs)("form",{className:"lkd-picker-root",onSubmit:e=>{e.preventDefault(),U(A);},children:[(0,l.jsx)("label",{htmlFor:"local-file-browser-root",className:"dlg-label",children:"Folder root"}),(0,l.jsx)("input",{id:"local-file-browser-root",type:"text",className:"dlg-input lkd-connect-input",value:A,placeholder:"/absolute/path/to/folder",onChange:e=>E(e.target.value)}),(0,l.jsx)("button",{type:"submit",className:"lk-btn lk-btn-ghost",children:"Open"})]}),(0,l.jsxs)("div",{className:"lkd-picker-current",children:[(0,l.jsx)("button",{type:"button",className:"lk-btn lk-btn-ghost",disabled:null===I,onClick:()=>{$(new Set()),L(function(e){if(null===e||0===e.length)return null;let t=e.replace(/\/+$/u,""),n=t.lastIndexOf("/");if(n<0)return null;let l=t.slice(0,n);return l.length>0?l:null;}(I));},children:"Up"}),(0,l.jsx)("span",{className:"mono",title:F,children:F||"No folder selected"})]}),null!==H?(0,l.jsx)("div",{role:"alert",className:"lk-alert",children:H}):null,D?(0,l.jsx)("p",{role:"status",className:"lk-loading",children:"Loading folder..."}):(0,l.jsxs)("ul",{className:"lkd-picker-list","aria-label":"Local source browser",children:[O.map(e=>{var t,a,s,r;let i="file"===e.kind&&!e.symlink,d="directory"!==e.kind&&(!i||!z||!e.readable||null!=(t=null==y?void 0:y(e))&&t),c="directory"!==e.kind&&d?e.symlink||"symlink"===e.kind?"Symbolic links cannot be selected.":null!=(a=null==v?void 0:v(e))?a:"File cannot be selected.":void 0,u=R.has(e.path);return(0,l.jsx)("li",{className:"lkd-picker-entry",children:"directory"===e.kind?(0,l.jsxs)("button",{type:"button",className:"lkd-picker-row",disabled:!e.readable,onClick:()=>{var t;return t=e.path,void($(new Set()),L(t));},children:[(0,l.jsx)(o.F.folder,{size:14}),(0,l.jsx)("span",{children:e.name})]}):"file"===n?(0,l.jsxs)("button",{type:"button",className:"lkd-picker-row",disabled:d,"aria-pressed":u,title:c,onClick:()=>{$(new Set([e.path]));},children:[(0,l.jsx)(o.F.files,{size:14}),(0,l.jsx)("span",{children:e.name}),(0,l.jsx)("span",{className:"lkd-picker-meta",children:null!=(s=null==j?void 0:j(e,u))?s:u?"selected":""})]}):(0,l.jsxs)("label",{className:"lkd-picker-row","data-disabled":String(d),title:c,children:[(0,l.jsx)("input",{type:"checkbox",disabled:d,checked:u,onChange:()=>{var t;return t=e.path,void $(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n;});}}),(0,l.jsx)("span",{children:e.name}),(0,l.jsx)("span",{className:"lkd-picker-meta",children:null!=(r=null==j?void 0:j(e,u))?r:u?"selected":""})]})},e.path);}),!D&&0===O.length&&M.length>0?(0,l.jsx)("li",{className:"lkd-picker-empty",children:"No entries in this folder."}):null]}),"file"===n&&1===B.length?(0,l.jsxs)("p",{className:"qi-source-picker-selection",title:J,children:["Selected file: ",(0,l.jsx)("span",{className:"qi-monospace",children:J})]}):null]}),(0,l.jsxs)("div",{className:"dlg-foot",children:[(0,l.jsx)("button",{type:"button",className:"dlg-btn",onClick:k,children:"Cancel"}),(0,l.jsx)("button",{type:"button",className:"dlg-btn primary",disabled:!_,onClick:function(){b({rootPath:M,folderPath:F,files:B});},children:"Use selection"})]})]})}),document.body);}},80266:(e,t,n)=>{n.d(t,{A:()=>d});var l=n(54568),a=n(7620),s=n(97509);function r(e){return e.findIndex(e=>!0!==e.disabled);}function i(e,t,n){if(0===e.length)return-1;let l=t;for(let t=0;t<e.length;t+=1){var a;if(l=(l+n+e.length)%e.length,(null==(a=e[l])?void 0:a.disabled)!==!0)return l;}return-1;}function o(e){let{active:t,index:n,onCommit:r,onOptionKeyDown:i,option:o,setOptionRef:d}=e,c=(0,a.useRef)(null),u=(0,a.useRef)(null),h=(0,a.useRef)(null),[p,m]=(0,a.useState)(null),f=()=>{null!==h.current&&(clearTimeout(h.current),h.current=null),m(null);},g=()=>{null!==h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{let e=u.current,t=c.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),l=Math.min(520,window.innerWidth-32),a=n.right+8+l<=window.innerWidth-16?"top-left":"top-right";m({left:"top-left"===a?n.right+8:n.left-8,placement:a,top:n.top-6});},1500);};return(0,a.useEffect)(()=>f,[]),(0,l.jsxs)("button",{ref:e=>{c.current=e,d(n,e);},"aria-selected":t,className:`ksel-option${t?" ksel-option-active":""}`,"data-disabled":!0===o.disabled?"true":void 0,disabled:o.disabled,onBlur:f,onClick:()=>r(o),onFocus:g,onKeyDown:e=>i(e,n),onPointerEnter:g,onPointerLeave:f,role:"option",type:"button",children:[(0,l.jsxs)("span",{className:"ksel-option-copy",children:[(0,l.jsx)("span",{className:"ksel-option-label",ref:u,children:o.label}),void 0!==o.description?(0,l.jsx)("span",{className:"ksel-option-desc",children:o.description}):null]}),void 0!==o.badge?(0,l.jsx)("span",{className:"ksel-option-badge",children:o.badge}):null,null!==p?(0,s.createPortal)((0,l.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":p.placement,role:"tooltip",style:{left:`${p.left.toString()}px`,top:`${p.top.toString()}px`},children:o.label}),document.body):null]});}function d(e){var t,n,d,c;let{value:u,sections:h,onValueChange:p,disabled:m=!1,placeholder:f="Select an option",ariaLabel:g,ariaDescribedBy:x,ariaLabelledBy:y,triggerClassName:v,menuClassName:j,menuTitle:b,menuCountLabel:k,showMenuHeader:S=!0,leadingVisual:N,mono:w=!1,showChevron:M=!0,menuMinWidth:C,attached:A=!0,triggerStyle:E,autoFocus:I=!1}=e,L=(0,a.useRef)(null),O=(0,a.useRef)(null),T=(0,a.useRef)([]),R=(0,a.useId)(),[$,D]=(0,a.useState)(!1),[P,H]=(0,a.useState)(-1),[V,U]=(0,a.useState)(null),[F,B]=(0,a.useState)(!1),J=(0,a.useMemo)(()=>h.flatMap((e,t)=>e.options.map((n,l)=>{var a;return{...n,key:`${null!=(a=e.label)?a:"section"}-${t.toString()}-${n.value}-${l.toString()}`,sectionLabel:e.label};})),[h]),_=J.findIndex(e=>e.value===u),z=-1===_?null:J[_],K=null!=(t=null==z?void 0:z.label)?t:f,q=null!=(n=null==z?void 0:z.description)?n:null,W=null!=(d=null!=b?b:g)?d:f,G=()=>{D(!1),H(-1);},Z=e=>{var t,n;if(m||0===J.length)return;let l=void 0!==e&&(null==(t=J[e])?void 0:t.disabled)!==!0?e:_>=0&&(null==(n=J[_])?void 0:n.disabled)!==!0?_:r(J);D(!0),H(l);};function Y(e){var t;e.disabled||(p(e.value),G(),null==(t=L.current)||t.focus());}function X(e,t){if("Escape"===e.key){var n;e.preventDefault(),G(),null==(n=L.current)||n.focus();return;}if("Tab"===e.key)return void G();if("ArrowDown"===e.key){e.preventDefault(),H(i(J,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),H(i(J,t,-1));return;}if("Home"===e.key){e.preventDefault(),H(r(J));return;}if("End"===e.key){e.preventDefault(),H(i(J,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=J[t];void 0!==n&&Y(n);}}(0,a.useEffect)(()=>{if(!$)return;let e=e=>{let t=e.target;null!==L.current&&t instanceof Node&&L.current.contains(t)||null!==O.current&&t instanceof Node&&O.current.contains(t)||G();},t=()=>G();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[$]),(0,a.useLayoutEffect)(()=>{if(!$||null===L.current)return;let e=()=>{var e;let t=null==(e=L.current)?void 0:e.getBoundingClientRect();if(void 0===t)return;let n=Math.min(void 0!==C&&t.width<Math.min(C,96)?C:t.width,window.innerWidth-32),l=A&&1>Math.abs(n-t.width),a=l?-1:6,s=window.innerHeight-t.bottom-16,r=t.top-16,i=s<Math.max(96,2*t.height)&&r>s;B(i);let o=i?r:s,d=50*!!S+2,c=Math.max(t.height,Math.min(Math.max(t.height,o-d),380)),u=c+d,h=window.getComputedStyle(L.current);U({left:Math.min(Math.max(16,t.left),window.innerWidth-n-16),width:n,top:i?Math.max(16,t.top-u-a):Math.min(t.bottom+a,window.innerHeight-16-u),optionHeight:Math.max(28,Math.min(t.height,30)),maxHeight:c,openUp:i,attached:l,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,letterSpacing:h.letterSpacing,lineHeight:h.lineHeight});};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0);};},[$,A,C,S]),(0,a.useLayoutEffect)(()=>{if(!$||null===V||!V.openUp||null===L.current||null===O.current)return;let e=L.current.getBoundingClientRect(),t=O.current.getBoundingClientRect();if(t.height<=0)return;let n=V.attached?-1:6,l=Math.max(16,e.top-t.height-n);.5>Math.abs(l-V.top)||U(e=>null===e?e:{...e,top:l});},[$,V]),(0,a.useEffect)(()=>{var e,t;$&&!(P<0)&&(null==(e=T.current[P])||e.focus(),null==(t=T.current[P])||t.scrollIntoView({block:"nearest"}));},[$,P]),(0,a.useEffect)(()=>{if(!$)return;let e=e=>{var t,n;if("Escape"===e.key){G(),null==(t=L.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=e.key.toLowerCase(),l=P>=0?P:_>=0?_:0;for(let e=1;e<=J.length;e+=1){let n=(l+e)%J.length,a=J[n];if(void 0!==a&&!0!==a.disabled&&a.label.toLowerCase().startsWith(t)){H(n);break;}}}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[$,P,J,_]);let Q=["ksel-trigger",w?"mono":"",null!=v?v:"",$?"ksel-trigger-open":"",$&&(null==V?void 0:V.attached)===!0?F?"ksel-trigger-open-up":"ksel-trigger-open-down":"",m?"ksel-trigger-disabled":""].filter(e=>e.length>0).join(" "),ee=$&&null!==V?(0,s.createPortal)((0,l.jsxs)("div",{ref:O,className:["ksel-menu",V.attached?"ksel-menu-attached":"",V.openUp?"ksel-menu-open-up":"ksel-menu-open-down",null!=j?j:""].filter(e=>e.length>0).join(" "),style:{left:`${V.left.toString()}px`,top:`${V.top.toString()}px`,width:`${V.width.toString()}px`,"--ksel-option-height":`${V.optionHeight.toString()}px`,fontFamily:V.fontFamily,fontSize:V.fontSize,fontWeight:V.fontWeight,letterSpacing:V.letterSpacing,lineHeight:V.lineHeight},children:[S?(0,l.jsxs)("div",{className:"ksel-menu-head",children:[(0,l.jsx)("div",{className:"ksel-menu-title",children:null!=(c=null!=b?b:g)?c:f}),(0,l.jsx)("div",{className:"ksel-menu-note",children:null!=k?k:`${J.length.toString()} options`})]}):null,(0,l.jsx)("div",{className:"ksel-menu-scroll",role:"listbox",id:R,"aria-label":W,style:{maxHeight:`${V.maxHeight.toString()}px`},children:h.map((e,t)=>{var n;return(0,l.jsxs)("div",{className:"ksel-section",children:[void 0!==e.label?(0,l.jsx)("div",{className:"ksel-section-label",children:e.label}):null,e.options.map(t=>{var n;let a=J.findIndex(n=>n.value===t.value&&n.sectionLabel===e.label),s=a===_,r=J[a];return void 0===r?null:(0,l.jsx)(o,{active:s,index:a,onCommit:Y,onOptionKeyDown:X,option:r,setOptionRef:(e,t)=>{T.current[e]=t;}},`${null!=(n=e.label)?n:"section"}-${t.value}`);})]},`${null!=(n=e.label)?n:"section"}-${t.toString()}`);})})]}),document.body):null;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{ref:L,"aria-controls":R,"aria-describedby":x,"aria-expanded":$,"aria-haspopup":"listbox","aria-label":g,"aria-labelledby":y,autoFocus:I,className:Q,disabled:m,onClick:()=>{$?G():Z();},onKeyDown:function(e){if(!m){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),Z(_>=0?_:r(J));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),$?G():Z());}},role:"combobox",style:E,type:"button",children:[void 0!==N?(0,l.jsx)("span",{className:"ksel-trigger-leading",children:N}):null,(0,l.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,l.jsx)("span",{className:"ksel-trigger-label",children:K}),null!==q?(0,l.jsx)("span",{className:"ksel-trigger-desc",children:q}):null]}),M?(0,l.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${$?" ksel-trigger-caret-open":""}`,children:(0,l.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,l.jsx)("path",{d:"M2.25 4.5 6 8.25 9.75 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}):null]}),ee]});}},81962:(e,t,n)=>{n.d(t,{$Q:()=>c,ty:()=>l,Vp:()=>o.Vp,eg:()=>a,IF:()=>s,gr:()=>r,lc:()=>i,eQ:()=>u,iu:()=>d.iu,nP:()=>d.nP,gB:()=>d.gB,Qf:()=>o.Qf,S_:()=>d.S_,FF:()=>o.FF});let l={maxConnectedSources:16,maxLocalKnowledgeSources:16,maxPromptReferences:8,maxExcerptChars:900,referenceBudget:10,hybridMaxCandidates:24,hybridMaxExcerptBytes:131072};l.maxConnectedSources,l.maxLocalKnowledgeSources;let a="1",s="1",r="1",i="1";var o=n(49690),d=n(74883);let c=["run:started","state:transition","model:call:started","model:call:completed","model:call:failed","tool:call:started","tool:call:completed","tool:call:failed","reasoning:trace","patch:proposed","verification:result","run:completed","run:cancelled","run:failed","command:executed","sandbox:configured","patch:applied","browser:session-opened","browser:navigated","browser:screenshot-captured","browser:page-content-captured","browser:session-closed","browser:trust-warning","browser:error","workflow:started","conventions:detected","context:selected","workflow:model:call:started","workflow:model:call:completed","patch:validated","workflow:patch:applied","workflow:verification:result","workflow:completed","workflow:failed","bug:started","bug:failure:parsed","bug:context:selected","bug:model:call:started","bug:model:call:completed","bug:rootcause:proposed","bug:patch:validated","bug:patch:applied","bug:verification:result","bug:completed","bug:failed","ready"],u=new Set(["run:completed","run:cancelled","run:failed","workflow:completed","workflow:failed","bug:completed","bug:failed"]);}}]);