@intent-hq/web 2.361.0 → 2.361.2

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 (158) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{chat-search.CWdkjFsY.css → chat-search.BEJJqsqt.css} +1 -1
  3. package/web/app/immutable/chunks/{C-UIC-T7.js → -7du9lfn.js} +1 -1
  4. package/web/app/immutable/chunks/{kcZjzSP7.js → 0_7FQkiC.js} +1 -1
  5. package/web/app/immutable/chunks/{c4wFHOws.js → 1EW4b83o.js} +1 -1
  6. package/web/app/immutable/chunks/{B9t82so5.js → 2wJjyVNk.js} +2 -2
  7. package/web/app/immutable/chunks/{BN7TE2rx.js → 52-_4pXR.js} +1 -1
  8. package/web/app/immutable/chunks/{cFIrJg-T.js → 5NiJCy7J.js} +1 -1
  9. package/web/app/immutable/chunks/{VFkYp0FY.js → 5u3dQlae.js} +1 -1
  10. package/web/app/immutable/chunks/{C9ujJ6il.js → 6d4Jv8Hz.js} +2 -2
  11. package/web/app/immutable/chunks/{BUd39PAw.js → 7tcI69cn.js} +1 -1
  12. package/web/app/immutable/chunks/{CKxDlPZO.js → 8HLudOb-.js} +1 -1
  13. package/web/app/immutable/chunks/{B1Qwlozr.js → 96DwTK9j.js} +2 -2
  14. package/web/app/immutable/chunks/{PsyApth6.js → As8lK70V.js} +1 -1
  15. package/web/app/immutable/chunks/{cqV5ArDy.js → AxCVH26S.js} +1 -1
  16. package/web/app/immutable/chunks/B07OdpUU.js +305 -0
  17. package/web/app/immutable/chunks/{DDA9SIgp.js → B0JbhmMb.js} +1 -1
  18. package/web/app/immutable/chunks/{Dd5jECmn.js → B1Tr5BPZ.js} +1 -1
  19. package/web/app/immutable/chunks/{COGpUz3t.js → B2ns9OTA.js} +1 -1
  20. package/web/app/immutable/chunks/{D-2XEcTW.js → B4kCZd9W.js} +1 -1
  21. package/web/app/immutable/chunks/{D27yNjLf.js → B5Pg9_MZ.js} +1 -1
  22. package/web/app/immutable/chunks/{f178PQSp.js → B9pYL5w0.js} +1 -1
  23. package/web/app/immutable/chunks/{sUAKfW_e.js → B9tRD7MQ.js} +1 -1
  24. package/web/app/immutable/chunks/{B2islIT9.js → BAgFsuQz.js} +1 -1
  25. package/web/app/immutable/chunks/{DZ-8xGs3.js → BD9wTbmm.js} +1 -1
  26. package/web/app/immutable/chunks/{B3a7OI2F.js → BG4tBRsm.js} +1 -1
  27. package/web/app/immutable/chunks/{BinCXnWY.js → BGOuxFsr.js} +1 -1
  28. package/web/app/immutable/chunks/{Lpw6MOlz.js → BKHUH54N.js} +1 -1
  29. package/web/app/immutable/chunks/{D_rNeuD7.js → BKw6wLyE.js} +1 -1
  30. package/web/app/immutable/chunks/{BeTn7XSu.js → BLFlTVjy.js} +4 -4
  31. package/web/app/immutable/chunks/{D7Vw4JcL.js → BMYcVUUM.js} +1 -1
  32. package/web/app/immutable/chunks/{BWmQZ9-W.js → BOSMtVmb.js} +1 -1
  33. package/web/app/immutable/chunks/{CVFwlr2Z.js → BPG9IRUj.js} +1 -1
  34. package/web/app/immutable/chunks/{qWbeHdf9.js → BPRz9VyT.js} +1 -1
  35. package/web/app/immutable/chunks/{Bv2wmdPv.js → BSM5O6JV.js} +1 -1
  36. package/web/app/immutable/chunks/{VPOqbJP9.js → BTR14c-t.js} +3 -3
  37. package/web/app/immutable/chunks/{C9vs7bl5.js → BWUH3HmG.js} +1 -1
  38. package/web/app/immutable/chunks/{CIDE3x9D.js → BZp1yALL.js} +1 -1
  39. package/web/app/immutable/chunks/{CyPGin7U.js → BbIMIfqX.js} +1 -1
  40. package/web/app/immutable/chunks/BbV7MtxC.js +1 -0
  41. package/web/app/immutable/chunks/{C1RT5V9K.js → BeLtysng.js} +1 -1
  42. package/web/app/immutable/chunks/{_2nk2_Hn.js → Bgk8kfr8.js} +1 -1
  43. package/web/app/immutable/chunks/Bhx5E4sN.js +2 -0
  44. package/web/app/immutable/chunks/{t3JsxPaO.js → Big1YQpq.js} +1 -1
  45. package/web/app/immutable/chunks/{j3M2P1q-.js → Bl0Adq86.js} +1 -1
  46. package/web/app/immutable/chunks/{Bw8AD9dJ.js → Bl2aLOn5.js} +1 -1
  47. package/web/app/immutable/chunks/{BsOXr_0z.js → BskEvHZa.js} +1 -1
  48. package/web/app/immutable/chunks/{BqVB3HSC.js → Bt_RDNlI.js} +1 -1
  49. package/web/app/immutable/chunks/{CSSLtQaO.js → Bx_nP_MK.js} +1 -1
  50. package/web/app/immutable/chunks/{Rn1PSvxr.js → Bya2sQrR.js} +1 -1
  51. package/web/app/immutable/chunks/{DgLG2932.js → Byj6QL5F.js} +1 -1
  52. package/web/app/immutable/chunks/{D93k--bp.js → C-Qm3bfA.js} +1 -1
  53. package/web/app/immutable/chunks/{Bkvyt2Uf.js → C1wjuTFV.js} +1 -1
  54. package/web/app/immutable/chunks/{YgZ9xfEe.js → C3L3GwMq.js} +1 -1
  55. package/web/app/immutable/chunks/{CKn-VDhm.js → C4qqiNcA.js} +1 -1
  56. package/web/app/immutable/chunks/{D-RdTqFP.js → C5cRG0yV.js} +3 -3
  57. package/web/app/immutable/chunks/{CTNuszHC.js → C9otdzZM.js} +4 -4
  58. package/web/app/immutable/chunks/{Dads5On7.js → CGINFMqT.js} +1 -1
  59. package/web/app/immutable/chunks/CJHViisg.js +12 -0
  60. package/web/app/immutable/chunks/{C27IcubQ.js → CNUg0Cs8.js} +1 -1
  61. package/web/app/immutable/chunks/{kV-fkifL.js → CO15VKbw.js} +1 -1
  62. package/web/app/immutable/chunks/{BzRgELGj.js → CVOsommd.js} +2 -2
  63. package/web/app/immutable/chunks/{BhQ7Nd7i.js → C_z20mJT.js} +1 -1
  64. package/web/app/immutable/chunks/{Cot5yElc.js → Cb4s3Dt_.js} +3 -3
  65. package/web/app/immutable/chunks/{KnX_02Jn.js → CgS1Dv_8.js} +1 -1
  66. package/web/app/immutable/chunks/{B-gNGby7.js → Ch9oF0ek.js} +1 -1
  67. package/web/app/immutable/chunks/{Bep3Jqpc.js → CjorBqRt.js} +1 -1
  68. package/web/app/immutable/chunks/{B5XDKjvt.js → CkVsI2Jc.js} +1 -1
  69. package/web/app/immutable/chunks/{CTRLupPR.js → CmVyGqNV.js} +2 -2
  70. package/web/app/immutable/chunks/{BvyARSUu.js → CpBPE3-0.js} +1 -1
  71. package/web/app/immutable/chunks/{1j8IB6qY.js → CpHAR9_T.js} +1 -1
  72. package/web/app/immutable/chunks/{BfLVjdWH.js → CpY-WDD9.js} +1 -1
  73. package/web/app/immutable/chunks/{VSdJtUTR.js → Cq0xvhw9.js} +3 -3
  74. package/web/app/immutable/chunks/{BYAWXKUB.js → Cq8fk3CH.js} +1 -1
  75. package/web/app/immutable/chunks/{DqKDx046.js → CrLichOk.js} +1 -1
  76. package/web/app/immutable/chunks/CsqD9xz6.js +2 -0
  77. package/web/app/immutable/chunks/{CuHcMIuh.js → CssvkQD7.js} +1 -1
  78. package/web/app/immutable/chunks/{MMcMOHPP.js → CuoerPJp.js} +3 -3
  79. package/web/app/immutable/chunks/{BYMZ452w.js → CvH6beJr.js} +1 -1
  80. package/web/app/immutable/chunks/{CiCc1qZy.js → CyQJi5fM.js} +1 -1
  81. package/web/app/immutable/chunks/{DxuDR3-b.js → CytLF-ur.js} +6 -6
  82. package/web/app/immutable/chunks/{aF9CaLLA.js → D00mCTUs.js} +1 -1
  83. package/web/app/immutable/chunks/{D_sZQPLm.js → D0VMf2Fp.js} +3 -3
  84. package/web/app/immutable/chunks/{D7HGt2gg.js → D0g6v2_u.js} +1 -1
  85. package/web/app/immutable/chunks/{BkNoKwFt.js → D1FSU9Gk.js} +1 -1
  86. package/web/app/immutable/chunks/{DP_4YjFn.js → D1Vat_ZV.js} +1 -1
  87. package/web/app/immutable/chunks/{BW5RQ7dH.js → D3rVaYU0.js} +1 -1
  88. package/web/app/immutable/chunks/{B81eIwbi.js → D4LnecGU.js} +2 -2
  89. package/web/app/immutable/chunks/{1c0lZJrV.js → D5kZvSPC.js} +1 -1
  90. package/web/app/immutable/chunks/{DwC7M61S.js → D9H2UCuG.js} +1 -1
  91. package/web/app/immutable/chunks/{vSqR6YVO.js → DAwOD17b.js} +1 -1
  92. package/web/app/immutable/chunks/{CIeKs3Fz.js → DC3pczce.js} +1 -1
  93. package/web/app/immutable/chunks/{C2NcLB2u.js → DD4-FHBp.js} +1 -1
  94. package/web/app/immutable/chunks/{Bz8fykGF.js → DHBQy6St.js} +1 -1
  95. package/web/app/immutable/chunks/{CpV8u0F6.js → DHbwKi-E.js} +2 -2
  96. package/web/app/immutable/chunks/{CFuZ1Me4.js → DQTzZEWU.js} +2 -2
  97. package/web/app/immutable/chunks/{D81z2pn-.js → DVlYg0SZ.js} +3 -3
  98. package/web/app/immutable/chunks/{D7Qg9UsC.js → DWWTsFh-.js} +1 -1
  99. package/web/app/immutable/chunks/{BKkSBqXG.js → DXcrfgZH.js} +1 -1
  100. package/web/app/immutable/chunks/{Dm7totry.js → Db7PzaF_.js} +1 -1
  101. package/web/app/immutable/chunks/{Khf-yjCZ.js → DjKDfA1m.js} +2 -2
  102. package/web/app/immutable/chunks/{DR2khMiR.js → DkNdI_Wp.js} +1 -1
  103. package/web/app/immutable/chunks/{OJCFNlvY.js → DkgfeEA0.js} +1 -1
  104. package/web/app/immutable/chunks/{BJf3iy0S.js → DlBKZ9jQ.js} +2 -2
  105. package/web/app/immutable/chunks/{XwrZ1aRW.js → Ds8ezw9K.js} +1 -1
  106. package/web/app/immutable/chunks/{DFrHql0h.js → DsCJG1hb.js} +1 -1
  107. package/web/app/immutable/chunks/{CL0ULjU-.js → Dtqu7Pxg.js} +1 -1
  108. package/web/app/immutable/chunks/{BkBez7WX.js → DuTju9rc.js} +1 -1
  109. package/web/app/immutable/chunks/{BzFCW_oO.js → DvCS4TTw.js} +1 -1
  110. package/web/app/immutable/chunks/{CK61dfwH.js → DyIRpoZq.js} +1 -1
  111. package/web/app/immutable/chunks/{DXJZHh0A.js → DzmdzUVi.js} +1 -1
  112. package/web/app/immutable/chunks/{Cmh4buXt.js → MzfVdJbX.js} +1 -1
  113. package/web/app/immutable/chunks/{EtMoREaX.js → OiHDtgNp.js} +1 -1
  114. package/web/app/immutable/chunks/{ByVGRZX6.js → QWfAA7k-.js} +1 -1
  115. package/web/app/immutable/chunks/{DwM4HivY.js → TaZ6zGN1.js} +1 -1
  116. package/web/app/immutable/chunks/{CPuPCqZE.js → Tqm9-f9l.js} +1 -1
  117. package/web/app/immutable/chunks/{BEXbHJh4.js → Vfi0Dmt8.js} +1 -1
  118. package/web/app/immutable/chunks/{BM-7iiyp.js → W67SWYQh.js} +1 -1
  119. package/web/app/immutable/chunks/{CSykTYZD.js → YhYmjxML.js} +1 -1
  120. package/web/app/immutable/chunks/{Bw3Jc49z.js → aCDFJfWo.js} +1 -1
  121. package/web/app/immutable/chunks/{Bs7k0nr9.js → aokikQw5.js} +47 -47
  122. package/web/app/immutable/chunks/{BVPML882.js → buVzC4lf.js} +1 -1
  123. package/web/app/immutable/chunks/{CjLcyZTM.js → c1DCm8IK.js} +1 -1
  124. package/web/app/immutable/chunks/{Bwq11IJN.js → cU6Fqv3g.js} +1 -1
  125. package/web/app/immutable/chunks/{95Q5Q_xW.js → dGnsWF4N.js} +1 -1
  126. package/web/app/immutable/chunks/{C5ak_0Xq.js → ivBdCvd6.js} +1 -1
  127. package/web/app/immutable/chunks/{D5Y-fh7x.js → kbpbXlKS.js} +1 -1
  128. package/web/app/immutable/chunks/{hvIpWr_e.js → lZNvj_WH.js} +1 -1
  129. package/web/app/immutable/chunks/{Dd5fSdFI.js → rUCEwUE_.js} +1 -1
  130. package/web/app/immutable/chunks/{CucLWNXy.js → t94_2IkW.js} +1 -1
  131. package/web/app/immutable/chunks/{BSxTNz_Y.js → tSlfPnTD.js} +1 -1
  132. package/web/app/immutable/chunks/y2YthUTc.js +1 -0
  133. package/web/app/immutable/chunks/{BMiSQSg-.js → yTlZ1Sih.js} +1 -1
  134. package/web/app/immutable/entry/{app.BcpofzE6.js → app.CYYj7JvH.js} +2 -2
  135. package/web/app/immutable/entry/start.BH_-Ros5.js +1 -0
  136. package/web/app/immutable/nodes/{0.BQUOze-j.js → 0.vJoG8nTo.js} +1 -1
  137. package/web/app/immutable/nodes/{1.Bp05_YjA.js → 1.Di6AbyQm.js} +1 -1
  138. package/web/app/immutable/nodes/{10.3aTkNQpJ.js → 10.BkazfxT8.js} +16 -16
  139. package/web/app/immutable/nodes/{11.BXjLtpXc.js → 11.Ck_7PTgk.js} +4 -4
  140. package/web/app/immutable/nodes/{15.DfBroLQA.js → 15.DWwqZzAg.js} +1 -1
  141. package/web/app/immutable/nodes/{19.-ypsiFbk.js → 19.CjDPuA-n.js} +2 -2
  142. package/web/app/immutable/nodes/{2.DULGAXhA.js → 2.B7bl9OWL.js} +4 -4
  143. package/web/app/immutable/nodes/{3.CM-CFkEo.js → 3.CY1Mye6q.js} +1 -1
  144. package/web/app/immutable/nodes/{4.DiNldv1M.js → 4.sNrk6dxf.js} +1 -1
  145. package/web/app/immutable/nodes/{5.DDbl8ORw.js → 5.BrOibHKo.js} +1 -1
  146. package/web/app/immutable/nodes/{6.CGP2STrw.js → 6.BVYLHxv3.js} +1 -1
  147. package/web/app/immutable/nodes/{7.xmorhsK4.js → 7.BZ0ZLzU_.js} +1 -1
  148. package/web/app/immutable/nodes/{8.D_BxSNz-.js → 8.BNlg4qDc.js} +1 -1
  149. package/web/app/immutable/nodes/{9.BUD_PMUy.js → 9.C8X38wWW.js} +4 -4
  150. package/web/app/version.json +1 -1
  151. package/web/index.html +9 -9
  152. package/web/app/immutable/chunks/CA6_Ao_-.js +0 -305
  153. package/web/app/immutable/chunks/CZXdxwZ-.js +0 -2
  154. package/web/app/immutable/chunks/D9WrKwE8.js +0 -1
  155. package/web/app/immutable/chunks/DSDcLbxr.js +0 -12
  156. package/web/app/immutable/chunks/DbaZdUr0.js +0 -1
  157. package/web/app/immutable/chunks/DbgIztcj.js +0 -2
  158. package/web/app/immutable/entry/start.BYusRIxF.js +0 -1
@@ -1 +1 @@
1
- import{t as St,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./AeC4KVgG.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as M,bV as N,aA as F}from"./CJxGDkBm.js";import{b as vt}from"./NtFyWdpR.js";import{IX as l,eB as Ut,eC as At,sO as Bt,oa as xt,ob as Ft,Jv as Tt,JK as _t,JA as Dt,of as T}from"./BkzMrEqG.js";import{t as Lt}from"./D2MmXC4A.js";import{g as Wt}from"./BrMXrCxP.js";import{ds as Et,bA as Gt,bC as Mt,bz as Nt,bE as Vt,c$ as zt,f as Ht}from"./BEyxbMng.js";import{C as Jt}from"./D7Vw4JcL.js";import{V as qt}from"./Bf8LaRpQ.js";import{bT as Kt,bN as Ot,b8 as Xt}from"./DDA9SIgp.js";import{i as _,n as V}from"./H2jLkRRS.js";import{af as jt}from"./D81z2pn-.js";function Qt(D,$){if(new.target)return St({component:Qt,...D});Pt($,!0);const z=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),J=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),K=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),X=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,Q]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{M(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(Dt()),get wrapEnabled(){return K()},onToggleWrap:()=>l.dispatch(_t()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Kt(),tt=Ot(),et=Xt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const L=Wt(),p=Lt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(p),S=s(()=>z().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Nt(p),rt=Vt(p),dt=s(()=>H()||[]),lt=zt(p),f=s(()=>J()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let w=N(!0),R=N(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&_(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function E(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!L||!C()||L.registerActions({display:Y})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):X()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});vt(Jt(D,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(R,d,!0),()=>t(R))}var $t=kt(ft);return Q(),$t}export{Qt as default};
1
+ import{t as St,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./AeC4KVgG.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as M,bV as N,aA as F}from"./CJxGDkBm.js";import{b as vt}from"./NtFyWdpR.js";import{IX as l,eB as Ut,eC as At,sO as Bt,oa as xt,ob as Ft,Jv as Tt,JK as _t,JA as Dt,of as T}from"./BkzMrEqG.js";import{t as Lt}from"./D2MmXC4A.js";import{g as Wt}from"./BrMXrCxP.js";import{ds as Et,bA as Gt,bC as Mt,bz as Nt,bE as Vt,c$ as zt,f as Ht}from"./BEyxbMng.js";import{C as Jt}from"./BMYcVUUM.js";import{V as qt}from"./Bf8LaRpQ.js";import{bT as Kt,bN as Ot,b8 as Xt}from"./B0JbhmMb.js";import{i as _,n as V}from"./H2jLkRRS.js";import{af as jt}from"./DVlYg0SZ.js";function Qt(D,$){if(new.target)return St({component:Qt,...D});Pt($,!0);const z=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),J=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),K=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),X=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,Q]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{M(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(Dt()),get wrapEnabled(){return K()},onToggleWrap:()=>l.dispatch(_t()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Kt(),tt=Ot(),et=Xt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const L=Wt(),p=Lt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(p),S=s(()=>z().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Nt(p),rt=Vt(p),dt=s(()=>H()||[]),lt=zt(p),f=s(()=>J()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let w=N(!0),R=N(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&_(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function E(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!L||!C()||L.registerActions({display:Y})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):X()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});vt(Jt(D,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(R,d,!0),()=>t(R))}var $t=kt(ft);return Q(),$t}export{Qt as default};
@@ -1 +1 @@
1
- import{g as l,r as m,d as a}from"./Bw3Jc49z.js";import{p}from"./vSqR6YVO.js";import{b as t,ay as o}from"./CTNuszHC.js";import{M as u,b as c}from"./CfNfee-Y.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
1
+ import{g as l,r as m,d as a}from"./aCDFJfWo.js";import{p}from"./DAwOD17b.js";import{b as t,ay as o}from"./C9otdzZM.js";import{M as u,b as c}from"./CfNfee-Y.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CFuZ1Me4.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/CD7PpB6R.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/BV4GrhSx.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CTRLupPR.js","/app/immutable/chunks/DbaZdUr0.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BEyxbMng.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/yAiwGS7g.js","/app/immutable/chunks/Bqk0L-NS.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/EjOa78um.js","/app/immutable/chunks/DxuDR3-b.js"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"./AeC4KVgG.js";import{c as m}from"./ChTqQfQN.js";import{t as g}from"./DKwAaLwd.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}function l(){return typeof window>"u"?null:g(window.location.pathname)}function h(){return l()!==null}let w=0;function v(){w+=1}function T(){return w}const y=m("Navigation"),_="settings-previous-path";function s(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function E(t,e={}){if(d()||h()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){y.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=e.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||v(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:o}=await import("./CFuZ1Me4.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await n(t,{preserveFocus:!0,background:e.assistantContent===!0,agentId:e.assistantAgentId})){if(e.assistantContent)return;const{openPanel:o}=await i(async()=>{const{openPanel:a}=await import("./BkzMrEqG.js").then(r=>r.Iv);return{openPanel:a}},__vite__mapDeps([3,4,2,5,6,7,8,1,9,10,11]),import.meta.url),{store:f}=await i(async()=>{const{store:a}=await import("./Bqk0L-NS.js");return{store:a}},__vite__mapDeps([45,3,4,2,5,6,7,8,1,9,10,11,46,47]),import.meta.url);f.dispatch(o("chief"));const{goto:p}=await i(async()=>{const{goto:a}=await import("./DxuDR3-b.js").then(r=>r.n);return{goto:a}},__vite__mapDeps([48,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(s(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!s(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(_,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./DxuDR3-b.js").then(o=>o.n);return{goto:n}},__vite__mapDeps([48,2]),import.meta.url);return e.state?u(t,{state:e.state}):u(t)}const b=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:_,isHudWindowRenderer:d,isSettingsRoute:s,navigateToRoute:E},Symbol.toStringTag,{value:"Module"}));export{_ as S,s as a,v as b,l as c,h as d,T as e,b as f,d as i,E as n};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DQTzZEWU.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/CD7PpB6R.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/BV4GrhSx.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CmVyGqNV.js","/app/immutable/chunks/BbV7MtxC.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BEyxbMng.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/yAiwGS7g.js","/app/immutable/chunks/Bqk0L-NS.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/EjOa78um.js","/app/immutable/chunks/CytLF-ur.js"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"./AeC4KVgG.js";import{c as m}from"./ChTqQfQN.js";import{t as g}from"./DKwAaLwd.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}function l(){return typeof window>"u"?null:g(window.location.pathname)}function h(){return l()!==null}let w=0;function v(){w+=1}function T(){return w}const y=m("Navigation"),_="settings-previous-path";function s(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function E(t,e={}){if(d()||h()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){y.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=e.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||v(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:o}=await import("./DQTzZEWU.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await n(t,{preserveFocus:!0,background:e.assistantContent===!0,agentId:e.assistantAgentId})){if(e.assistantContent)return;const{openPanel:o}=await i(async()=>{const{openPanel:a}=await import("./BkzMrEqG.js").then(r=>r.Iv);return{openPanel:a}},__vite__mapDeps([3,4,2,5,6,7,8,1,9,10,11]),import.meta.url),{store:f}=await i(async()=>{const{store:a}=await import("./Bqk0L-NS.js");return{store:a}},__vite__mapDeps([45,3,4,2,5,6,7,8,1,9,10,11,46,47]),import.meta.url);f.dispatch(o("chief"));const{goto:p}=await i(async()=>{const{goto:a}=await import("./CytLF-ur.js").then(r=>r.n);return{goto:a}},__vite__mapDeps([48,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(s(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!s(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(_,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CytLF-ur.js").then(o=>o.n);return{goto:n}},__vite__mapDeps([48,2]),import.meta.url);return e.state?u(t,{state:e.state}):u(t)}const b=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:_,isHudWindowRenderer:d,isSettingsRoute:s,navigateToRoute:E},Symbol.toStringTag,{value:"Module"}));export{_ as S,s as a,v as b,l as c,h as d,T as e,b as f,d as i,E as n};
@@ -1 +1 @@
1
- import{t as ht,bo as E,bw as $t,bq as It,b as bt,bs as d}from"./AeC4KVgG.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as q,bV as B,aA as U}from"./CJxGDkBm.js";import{k as At}from"./HftJbvyF.js";import{b as Dt}from"./NtFyWdpR.js";import{IX as a,eB as Pt,eC as St,o6 as Et,zJ as Ut,oa as _t,ob as Tt,Jv as Ft,JK as xt,JA as Wt,vs as vt,uJ as Nt}from"./BkzMrEqG.js";import{t as qt}from"./D2MmXC4A.js";import{g as Bt}from"./BrMXrCxP.js";import{ds as Ht,bN as Lt,bC as Ot,bG as Jt,bE as Kt}from"./BEyxbMng.js";import{af as Mt}from"./D81z2pn-.js";import{C as Gt}from"./D7Vw4JcL.js";import{V as Vt}from"./Bf8LaRpQ.js";import{bT as jt,bN as zt,b8 as Xt}from"./DDA9SIgp.js";import{i as Qt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const H=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),L=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),J=()=>d(X,"$foldUnchanged",n),K=()=>d(z,"$lineWrapping",n),M=()=>d(Q,"$diffSideBySide",n),G=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{q(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return J()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Ft())})},z=jt(),X=zt(),Q=Xt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const F=Bt(),g=qt(()=>i()),Y=Ht(g),Z=Mt(g),w=crypto.randomUUID(),tt=Lt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&H().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Jt(g),at=Kt(g),nt=s(()=>L()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=B(!0),R=B(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Qt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:j})});const v=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,v)),()=>a.dispatch(Tt(e,v))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},N=Ct(),gt=Rt(N);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>G()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Gt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Nt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>q(R,b,!0),()=>t(R))}}),kt(_,N);var pt=wt(mt);return V(),pt}export{Yt as default};
1
+ import{t as ht,bo as E,bw as $t,bq as It,b as bt,bs as d}from"./AeC4KVgG.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as q,bV as B,aA as U}from"./CJxGDkBm.js";import{k as At}from"./HftJbvyF.js";import{b as Dt}from"./NtFyWdpR.js";import{IX as a,eB as Pt,eC as St,o6 as Et,zJ as Ut,oa as _t,ob as Tt,Jv as Ft,JK as xt,JA as Wt,vs as vt,uJ as Nt}from"./BkzMrEqG.js";import{t as qt}from"./D2MmXC4A.js";import{g as Bt}from"./BrMXrCxP.js";import{ds as Ht,bN as Lt,bC as Ot,bG as Jt,bE as Kt}from"./BEyxbMng.js";import{af as Mt}from"./DVlYg0SZ.js";import{C as Gt}from"./BMYcVUUM.js";import{V as Vt}from"./Bf8LaRpQ.js";import{bT as jt,bN as zt,b8 as Xt}from"./B0JbhmMb.js";import{i as Qt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const H=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),L=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),J=()=>d(X,"$foldUnchanged",n),K=()=>d(z,"$lineWrapping",n),M=()=>d(Q,"$diffSideBySide",n),G=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{q(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return J()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Ft())})},z=jt(),X=zt(),Q=Xt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const F=Bt(),g=qt(()=>i()),Y=Ht(g),Z=Mt(g),w=crypto.randomUUID(),tt=Lt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&H().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Jt(g),at=Kt(g),nt=s(()=>L()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=B(!0),R=B(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Qt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:j})});const v=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,v)),()=>a.dispatch(Tt(e,v))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},N=Ct(),gt=Rt(N);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>G()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Gt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Nt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>q(R,b,!0),()=>t(R))}}),kt(_,N);var pt=wt(mt);return V(),pt}export{Yt as default};
@@ -1 +1 @@
1
- import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./AeC4KVgG.js";import{bs as J,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as A,c5 as W,a7 as oe,ay as ie}from"./CJxGDkBm.js";import{i as I}from"./k2awEenT.js";import{s as X}from"./DrHJ7oPv.js";import{f as T}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{D as ce}from"./Ce9GHWmv.js";import{T as de}from"./B81eIwbi.js";import{IX as ue,iT as le}from"./BkzMrEqG.js";var pe=A('<p class="text-sm text-muted-foreground"> </p>'),j=A('<p role="status" class="text-sm"> </p>'),ge=A('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function L(y,r){if(new.target)return F({component:L,...y});J(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),q=P(f),U=w(q,!0),D=m(q,2),n=w(D,!0),h=m(D,2);{var M=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};I(h,e=>{a().claimsPrimary&&e(M)})}var B=m(h,2);{var Q=e=>{ce(e,{get checklist(){return d()}})};I(B,e=>{d()&&e(Q)})}var O=m(B,2);{var V=e=>{var t=j(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};I(O,e=>{c()&&e(V)})}var Y=m(O,2);{var Z=e=>{var t=j(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};I(Y,e=>{g()&&!b()&&e(Z)})}$(f);var S=m(f,2),E=P(S);T(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var R=m(E,2);T(R,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(R,2);{let e=ne(()=>g()&&!b());T(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(S),$(x),k((e,t,s,o)=>{X(x,"aria-label",e),X(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),K(C)}function me(y,r){if(new.target)return F({component:me,...y});J(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(W(()=>c()),W(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),q=ie(f);{var U=n=>{L(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};I(q,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=K(x);return b(),D}export{me as default};
1
+ import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./AeC4KVgG.js";import{bs as J,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as A,c5 as W,a7 as oe,ay as ie}from"./CJxGDkBm.js";import{i as I}from"./k2awEenT.js";import{s as X}from"./DrHJ7oPv.js";import{f as T}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{D as ce}from"./Ce9GHWmv.js";import{T as de}from"./D4LnecGU.js";import{IX as ue,iT as le}from"./BkzMrEqG.js";var pe=A('<p class="text-sm text-muted-foreground"> </p>'),j=A('<p role="status" class="text-sm"> </p>'),ge=A('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function L(y,r){if(new.target)return F({component:L,...y});J(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),q=P(f),U=w(q,!0),D=m(q,2),n=w(D,!0),h=m(D,2);{var M=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};I(h,e=>{a().claimsPrimary&&e(M)})}var B=m(h,2);{var Q=e=>{ce(e,{get checklist(){return d()}})};I(B,e=>{d()&&e(Q)})}var O=m(B,2);{var V=e=>{var t=j(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};I(O,e=>{c()&&e(V)})}var Y=m(O,2);{var Z=e=>{var t=j(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};I(Y,e=>{g()&&!b()&&e(Z)})}$(f);var S=m(f,2),E=P(S);T(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var R=m(E,2);T(R,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(R,2);{let e=ne(()=>g()&&!b());T(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(S),$(x),k((e,t,s,o)=>{X(x,"aria-label",e),X(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),K(C)}function me(y,r){if(new.target)return F({component:me,...y});J(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(W(()=>c()),W(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),q=ie(f);{var U=n=>{L(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};I(q,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=K(x);return b(),D}export{me as default};