@hienlh/ppm 0.20.9 → 0.21.0

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 (968) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/CLAUDE.md +42 -1
  3. package/LICENSE +5 -0
  4. package/THIRD-PARTY-NOTICES.md +83 -0
  5. package/assets/skills/ppm/SKILL.md +1 -1
  6. package/assets/skills/ppm/references/http-api.md +1 -1
  7. package/bun.lock +38 -7
  8. package/dist/web/assets/KaTeX_Size3-Regular-gV2CO0n9.woff2 +0 -0
  9. package/dist/web/assets/accounts-settings-section-BuxD9zH3.js +1 -0
  10. package/dist/web/assets/ai-resource-editor-F09pf8Hd.js +1 -0
  11. package/dist/web/assets/ai-settings-section-Dd9tOUp0.js +1 -0
  12. package/dist/web/assets/ai-settings-section-FrU2X8Fu.js +1 -0
  13. package/dist/web/assets/{angular-html-CTx8qAkv.js → angular-html-DkR4iCth.js} +1 -1
  14. package/dist/web/assets/{angular-ts-BhBGUAnu.js → angular-ts-DcyL4Chx.js} +1 -1
  15. package/dist/web/assets/api-client-BUCo1lms.js +1 -0
  16. package/dist/web/assets/{api-settings-CqiVKFUX.js → api-settings-BcNjZIvG.js} +1 -1
  17. package/dist/web/assets/{api-themes-DtLXqXpC.js → api-themes-DBfyVUtX.js} +1 -1
  18. package/dist/web/assets/{apl-Dec3pSzF.js → apl-BVlrVtjt.js} +1 -1
  19. package/dist/web/assets/appearance-settings-section-whgnq3ss.js +1 -0
  20. package/dist/web/assets/architecture-PBZL5I3N-5K0wEkAn.js +1 -0
  21. package/dist/web/assets/{astro-Cb_3-S86.js → astro-MjJlozLj.js} +1 -1
  22. package/dist/web/assets/audio-preview-Bc54GCAV.js +1 -0
  23. package/dist/web/assets/{blade-1QMj5JxI.js → blade-DnJWi1fz.js} +1 -1
  24. package/dist/web/assets/{bsl-D0bT3Wjp.js → bsl-DCmJxSIz.js} +1 -1
  25. package/dist/web/assets/{button-DhnNoqpV.js → button-VW4QGKCn.js} +1 -1
  26. package/dist/web/assets/{cairo-DTuGb2w7.js → cairo-C8dDenub.js} +1 -1
  27. package/dist/web/assets/chat-tab-Cr6_KSGO.js +15 -0
  28. package/dist/web/assets/{cobol-DSx_Nb7T.js → cobol-DPx_nifl.js} +1 -1
  29. package/dist/web/assets/code-editor-DfmlGamv.js +7 -0
  30. package/dist/web/assets/codex-daily-guard-CfybHv_c.js +1 -0
  31. package/dist/web/assets/{coffee-DBcQ7DKB.js → coffee-DvFzqhgN.js} +1 -1
  32. package/dist/web/assets/conflict-editor-DenQUOT2.js +19 -0
  33. package/dist/web/assets/context-menu-DOODKZdF.js +1 -0
  34. package/dist/web/assets/{cpp-Bj1azGr-.js → cpp-BLJN0umi.js} +1 -1
  35. package/dist/web/assets/{crystal-CCgkDI0i.js → crystal-BXR-9fGw.js} +1 -1
  36. package/dist/web/assets/csv-preview-CClrJOuR.js +2 -0
  37. package/dist/web/assets/{data-grid-overlay-editor-C2NAQ-88.js → data-grid-overlay-editor-D4fhcMfT.js} +1 -1
  38. package/dist/web/assets/database-viewer-DItjm8wB.js +1 -0
  39. package/dist/web/assets/dialog-DQTn55Mt.js +1 -0
  40. package/dist/web/assets/diff-viewer-BpNj7pN9.js +4 -0
  41. package/dist/web/assets/docx-preview-DYBkiUaE.js +12 -0
  42. package/dist/web/assets/{edge-ClBfeO7z.js → edge-rWOlCmXT.js} +1 -1
  43. package/dist/web/assets/{edit-diff-preview-CRjufuw_.js → edit-diff-preview-COtmo54G.js} +1 -1
  44. package/dist/web/assets/editor-font-BDrdiGf1.js +1 -0
  45. package/dist/web/assets/editor-language-service-DxkZ51E5.js +1 -0
  46. package/dist/web/assets/{elixir-ir__-3kt.js → elixir-E7Y82okW.js} +1 -1
  47. package/dist/web/assets/{elm-CUv-xMuU.js → elm-DTPGbc-w.js} +1 -1
  48. package/dist/web/assets/{erb-DcRwHyUq.js → erb-DHqLHrE6.js} +1 -1
  49. package/dist/web/assets/{erlang-DW-GAdmv.js → erlang-Byg0nNiV.js} +1 -1
  50. package/dist/web/assets/{esm-DBm5LSCw.js → esm-D_DmOM7n.js} +1 -1
  51. package/dist/web/assets/explorer-body-D-5z464e.js +2 -0
  52. package/dist/web/assets/explorer-window-content-7-1wuRul.js +1 -0
  53. package/dist/web/assets/extension-manager-section-BhwB6nqr.js +1 -0
  54. package/dist/web/assets/extension-webview-DI4VL2tJ.js +12 -0
  55. package/dist/web/assets/file-icons-EzPL0q-k.js +1 -0
  56. package/dist/web/assets/file-icons.generated-CfaJuvZu.css +1 -0
  57. package/dist/web/assets/file-store-DMABxOkV.js +1 -0
  58. package/dist/web/assets/files-settings-section-CZzABuKz.js +1 -0
  59. package/dist/web/assets/format-file-meta-DOpzJJhS.js +1 -0
  60. package/dist/web/assets/{fortran-fixed-form-DrQbMSkt.js → fortran-fixed-form-CY1n0Xf6.js} +1 -1
  61. package/dist/web/assets/{fsharp-DvDj84Ys.js → fsharp-_vEDSCJz.js} +1 -1
  62. package/dist/web/assets/{gdresource-CPgY7R2s.js → gdresource-B6XT0wAC.js} +1 -1
  63. package/dist/web/assets/geist-cyrillic-ext-wght-italic-BYAq_K0C.woff2 +0 -0
  64. package/dist/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  65. package/dist/web/assets/geist-cyrillic-wght-italic-Da0gXVk3.woff2 +0 -0
  66. package/dist/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  67. package/dist/web/assets/geist-latin-ext-wght-italic-XgKbg5n7.woff2 +0 -0
  68. package/dist/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  69. package/dist/web/assets/geist-latin-wght-italic-dTnRTFFJ.woff2 +0 -0
  70. package/dist/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  71. package/dist/web/assets/geist-vietnamese-wght-italic-0fly6zkB.woff2 +0 -0
  72. package/dist/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  73. package/dist/web/assets/general-settings-section-BcxwiZ0X.js +1 -0
  74. package/dist/web/assets/{git-commit-NJ9iGbTd.js → git-commit-Wk9ovq59.js} +1 -1
  75. package/dist/web/assets/git-log-panel-CRN4JVOx.js +1 -0
  76. package/dist/web/assets/{git-rebase-DBSy9OKE.js → git-rebase-DSarGPvK.js} +1 -1
  77. package/dist/web/assets/git-repo-store-Dy69YCHN.js +1 -0
  78. package/dist/web/assets/gitGraph-HDMCJU4V-DkVT2MAM.js +1 -0
  79. package/dist/web/assets/glide-data-grid-BvgAqSUr.js +141 -0
  80. package/dist/web/assets/{glimmer-js-EGWSSdwJ.js → glimmer-js-CkYI35_P.js} +1 -1
  81. package/dist/web/assets/{glimmer-ts-BpfXRYRV.js → glimmer-ts-BqmIZcds.js} +1 -1
  82. package/dist/web/assets/{glsl-BtWQ4j8X.js → glsl-Be-yBCF5.js} +1 -1
  83. package/dist/web/assets/{graphql-DHR5AO2c.js → graphql-a5DrENHY.js} +1 -1
  84. package/dist/web/assets/group-chat-tab-DFa5mAx5.js +1 -0
  85. package/dist/web/assets/{hack-A3iOItmC.js → hack-BLAg20aD.js} +1 -1
  86. package/dist/web/assets/{haml-DXA8NXfZ.js → haml-Dj6bGOQH.js} +1 -1
  87. package/dist/web/assets/{handlebars-BdIFK4pP.js → handlebars-dmEa36Oh.js} +1 -1
  88. package/dist/web/assets/{html-derivative-Cd_vDV4L.js → html-derivative-lLi3-RNT.js} +1 -1
  89. package/dist/web/assets/{html-BTA4eRkb.js → html-yacZYzSE.js} +1 -1
  90. package/dist/web/assets/{http-CMY5fp9k.js → http-1KaxcE4e.js} +1 -1
  91. package/dist/web/assets/{hurl-DJZLRi6K.js → hurl-ST-dEEZR.js} +1 -1
  92. package/dist/web/assets/{hxml-C2EdtM37.js → hxml-CpDtuq__.js} +1 -1
  93. package/dist/web/assets/icons-DQjqk0lJ.js +1 -0
  94. package/dist/web/assets/image-preview-CJVxL0uH.js +1 -0
  95. package/dist/web/assets/index-D7DbXD3G.css +1 -0
  96. package/dist/web/assets/index-ZtfxZOyb.js +52 -0
  97. package/dist/web/assets/info-3K5VOQVL-BBsmKGzA.js +1 -0
  98. package/dist/web/assets/input-D-dR8RI6.js +1 -0
  99. package/dist/web/assets/{jinja-DWU92jHm.js → jinja-Cjw-evAn.js} +1 -1
  100. package/dist/web/assets/{jira-watcher-section-BhQzWJ3r.js → jira-watcher-section-DIC1yIV3.js} +1 -1
  101. package/dist/web/assets/{jison-Bt3f5-S6.js → jison-DfATMYoY.js} +1 -1
  102. package/dist/web/assets/{julia-BS-e0jQg.js → julia-DDCaxiqT.js} +1 -1
  103. package/dist/web/assets/{just-OU89Ot3I.js → just-CJL529u6.js} +1 -1
  104. package/dist/web/assets/keybindings-store-tVfhPANS.js +1 -0
  105. package/dist/web/assets/keyboard-shortcuts-section-BW03P3AF.js +1 -0
  106. package/dist/web/assets/{latex-Bt5mTs31.js → latex-Zc4EpLpW.js} +1 -1
  107. package/dist/web/assets/{liquid-C03IGCJ6.js → liquid-B_6KMNYS.js} +1 -1
  108. package/dist/web/assets/{lua-Dl4zPu0P.js → lua-BtS2idK7.js} +1 -1
  109. package/dist/web/assets/markdown-renderer-CvL1pWeK.js +3 -0
  110. package/dist/web/assets/markdown-renderer-sJNNVhlS.js +1 -0
  111. package/dist/web/assets/{marko-BEnkIoHY.js → marko-Wk6LBnck.js} +1 -1
  112. package/dist/web/assets/{mdc-DGglct19.js → mdc-cRaXBrzL.js} +1 -1
  113. package/dist/web/assets/{media-url-LiPp2UsV.js → media-url-DL8OCGGg.js} +1 -1
  114. package/dist/web/assets/{mobile-bottom-sheet-BizNfPAu.js → mobile-bottom-sheet-CoUauvLF.js} +1 -1
  115. package/dist/web/assets/mobile-explorer-sheet-CZ0HZ2E_.js +1 -0
  116. package/dist/web/assets/monaco-dotenv-language-BDYnKcnr.js +1 -0
  117. package/dist/web/assets/monaspace-argon-latin-400-italic-DHf095HZ.woff2 +0 -0
  118. package/dist/web/assets/monaspace-argon-latin-400-italic-DZMiIHEH.woff +0 -0
  119. package/dist/web/assets/monaspace-argon-latin-400-normal-DZUN4ACH.woff +0 -0
  120. package/dist/web/assets/monaspace-argon-latin-400-normal-RS-2TGNg.woff2 +0 -0
  121. package/dist/web/assets/monaspace-argon-latin-700-normal-4y--rLW1.woff +0 -0
  122. package/dist/web/assets/monaspace-argon-latin-700-normal-D9kWRRK5.woff2 +0 -0
  123. package/dist/web/assets/monaspace-krypton-latin-400-italic-BoBCEexI.woff2 +0 -0
  124. package/dist/web/assets/monaspace-krypton-latin-400-italic-LWEicbvC.woff +0 -0
  125. package/dist/web/assets/monaspace-krypton-latin-400-normal-D9XlxC9R.woff +0 -0
  126. package/dist/web/assets/monaspace-krypton-latin-400-normal-DsuVXUab.woff2 +0 -0
  127. package/dist/web/assets/nerd-symbols-codicons-DSvMY_FK.woff2 +0 -0
  128. package/dist/web/assets/nerd-symbols-devicons-BBab8P54.woff2 +0 -0
  129. package/dist/web/assets/nerd-symbols-font-awesome-BzNW1pRA.woff2 +0 -0
  130. package/dist/web/assets/nerd-symbols-font-awesome-ext-D30e--UY.woff2 +0 -0
  131. package/dist/web/assets/nerd-symbols-font-awesome-legacy-D_qekXx9.woff2 +0 -0
  132. package/dist/web/assets/nerd-symbols-font-logos-gdu3INfy.woff2 +0 -0
  133. package/dist/web/assets/nerd-symbols-iec-power-Cw6TNeDf.woff2 +0 -0
  134. package/dist/web/assets/nerd-symbols-material-l-CXi9Ay.woff2 +0 -0
  135. package/dist/web/assets/nerd-symbols-misc-BaVfdyeB.woff2 +0 -0
  136. package/dist/web/assets/nerd-symbols-octicons-CJLTTzKm.woff2 +0 -0
  137. package/dist/web/assets/nerd-symbols-pomicons-D7T3Ya3H.woff2 +0 -0
  138. package/dist/web/assets/nerd-symbols-powerline-Cgg0sdGS.woff2 +0 -0
  139. package/dist/web/assets/nerd-symbols-seti-DYiUFq6z.woff2 +0 -0
  140. package/dist/web/assets/nerd-symbols-weather-D4Jrp5XD.woff2 +0 -0
  141. package/dist/web/assets/{nextflow-DKFYidyC.js → nextflow-Bos2wvDV.js} +1 -1
  142. package/dist/web/assets/{nginx-Bhq0tzlh.js → nginx-DMlOwzdr.js} +1 -1
  143. package/dist/web/assets/{nim-CSuBzart.js → nim-D2dZQA88.js} +1 -1
  144. package/dist/web/assets/notification-store-BZbsPnW0.js +1 -0
  145. package/dist/web/assets/notifications-settings-section-DPUROMw-.js +1 -0
  146. package/dist/web/assets/{number-overlay-editor-CYHlP43e.js → number-overlay-editor-DZ2i_Bnb.js} +1 -1
  147. package/dist/web/assets/{overview-panel-xn2BYvn6.js → overview-panel-R146OIom.js} +1 -1
  148. package/dist/web/assets/packet-RMMSAZCW-DwmYPOlx.js +1 -0
  149. package/dist/web/assets/panel-store-BVLBRn6M.js +1 -0
  150. package/dist/web/assets/pdf-preview-BWUPGLp6.js +1 -0
  151. package/dist/web/assets/{perl-uDVR7Ceh.js → perl-C5-Z6fPn.js} +1 -1
  152. package/dist/web/assets/{php-Bby8J3zk.js → php-BXNNhkMH.js} +1 -1
  153. package/dist/web/assets/pie-UPGHQEXC-D0oogIFi.js +1 -0
  154. package/dist/web/assets/{postgres-viewer-CJbHLcGE.js → postgres-viewer-CjOvaruz.js} +3 -3
  155. package/dist/web/assets/ppmbot-settings-section-DrvWh8l8.js +1 -0
  156. package/dist/web/assets/problems-panel-B7BWVhdy.js +1 -0
  157. package/dist/web/assets/process-table-BRMS1MrX.js +1 -0
  158. package/dist/web/assets/{project-store-Dy3A3LJT.js → project-store-BhMbVln3.js} +1 -1
  159. package/dist/web/assets/proxy-settings-section-Bv0Ny-Yy.js +1 -0
  160. package/dist/web/assets/{pug-EapfojTW.js → pug-C1zf1yWy.js} +1 -1
  161. package/dist/web/assets/{qml-DiR6J5_C.js → qml-OW58jGpD.js} +1 -1
  162. package/dist/web/assets/query-audit-section-BcHJZcVC.js +1 -0
  163. package/dist/web/assets/radar-KQ55EAFF-CQIJOQGa.js +1 -0
  164. package/dist/web/assets/{razor-B2QvlGNY.js → razor-DzjSaobM.js} +1 -1
  165. package/dist/web/assets/remote-desktop-mobile-sheet-ByjaeZKX.js +2 -0
  166. package/dist/web/assets/remote-desktop-mobile-view-D13mtr9F.js +1 -0
  167. package/dist/web/assets/remote-desktop-readiness-gate-BTzss2wX.js +1 -0
  168. package/dist/web/assets/remote-desktop-window-content-CbqTCaC6.js +1 -0
  169. package/dist/web/assets/{rst-D2eJ0kH4.js → rst-RfuihOUW.js} +1 -1
  170. package/dist/web/assets/{ruby-DzpnBpz-.js → ruby-CNO3pli1.js} +1 -1
  171. package/dist/web/assets/{run-in-terminal-DisO5HC-.js → run-in-terminal-Cb_hVU8x.js} +1 -1
  172. package/dist/web/assets/{sas-WDAKsX0U.js → sas-DZY5BtXx.js} +1 -1
  173. package/dist/web/assets/schedules-settings-section-DO8xAOVj.js +1 -0
  174. package/dist/web/assets/scroll-area-LtNV8g5o.js +1 -0
  175. package/dist/web/assets/{scss-Ci6PdscL.js → scss--4g-REcN.js} +1 -1
  176. package/dist/web/assets/{send-to-chat-DDFdKWNf.js → send-to-chat-Cnpru1M0.js} +1 -1
  177. package/dist/web/assets/{separator-CyisF27O.js → separator-Cds1yxy8.js} +1 -1
  178. package/dist/web/assets/settings-body-Rnu-FcX-.js +2 -0
  179. package/dist/web/assets/settings-store-DZPgPtEA.js +2 -0
  180. package/dist/web/assets/settings-tab-C6PHxs0Z.js +1 -0
  181. package/dist/web/assets/settings-window-content-CQ4gT2qj.js +1 -0
  182. package/dist/web/assets/{shaderlab-Cv3mWofL.js → shaderlab-Cu4sBiVn.js} +1 -1
  183. package/dist/web/assets/{shellsession-D1KVtQa1.js → shellsession-DWzJfEv7.js} +1 -1
  184. package/dist/web/assets/{soy-BGLBwFZT.js → soy-BnqE-5Ff.js} +1 -1
  185. package/dist/web/assets/{sparql-TvnQmFDh.js → sparql-Ctg__NhZ.js} +1 -1
  186. package/dist/web/assets/{sql-query-editor-DaQqRBNA.js → sql-query-editor-D9k19T_M.js} +1 -1
  187. package/dist/web/assets/sqlite-viewer-DoV9hnWJ.js +1 -0
  188. package/dist/web/assets/{stata-Gi-BKyEv.js → stata-Qk2h66XW.js} +1 -1
  189. package/dist/web/assets/{streaming-store-DAbnOfLu.js → streaming-store-uDu3PoN1.js} +1 -1
  190. package/dist/web/assets/{surrealql-BVXs6tkz.js → surrealql-8QEX7EfH.js} +1 -1
  191. package/dist/web/assets/{svelte-BlnFpLWV.js → svelte-D_mubC5-.js} +1 -1
  192. package/dist/web/assets/system-monitor-body-2vQ1kMxE.js +2 -0
  193. package/dist/web/assets/system-monitor-tab-krAcvwF7.js +1 -0
  194. package/dist/web/assets/system-monitor-window-content-qXLcicFM.js +1 -0
  195. package/dist/web/assets/tab-host-window-content-7fPZNEni.js +1 -0
  196. package/dist/web/assets/{tab-store-B7BksLr-.js → tab-store-DGJGnbwv.js} +1 -1
  197. package/dist/web/assets/team-member-sheet-2FnRmk1a.js +2 -0
  198. package/dist/web/assets/team-member-window-content-BgvJFypM.js +1 -0
  199. package/dist/web/assets/{templ-YJYH5r1A.js → templ-C1jV0fsO.js} +1 -1
  200. package/dist/web/assets/terminal-tab-Cs0sGljx.js +3 -0
  201. package/dist/web/assets/{tex-IVZLDIeh.js → tex-D_StFXy_.js} +1 -1
  202. package/dist/web/assets/tool-cards-DU_S2o51.js +9 -0
  203. package/dist/web/assets/treemap-KZPCXAKY-BhEtjljr.js +1 -0
  204. package/dist/web/assets/{ts-tags-DBd321I-.js → ts-tags-B5m47rEm.js} +1 -1
  205. package/dist/web/assets/{twig-DQENQjEn.js → twig-C_br6GIl.js} +1 -1
  206. package/dist/web/assets/{use-blob-url-CGChX4vi.js → use-blob-url-C-SGi_Hb.js} +1 -1
  207. package/dist/web/assets/use-inline-blame-B4trxGcR.js +16 -0
  208. package/dist/web/assets/use-lsp-CV0vzILO.js +6 -0
  209. package/dist/web/assets/use-monaco-theme-DBqbWjWX.js +1 -0
  210. package/dist/web/assets/{use-open-team-member-kmNnlzDD.js → use-open-team-member-DENsjp0s.js} +1 -1
  211. package/dist/web/assets/use-remote-desktop-display-choice-BK_f787P.js +1 -0
  212. package/dist/web/assets/{use-websocket-D8OGBwH8.js → use-websocket-LgXiX1qN.js} +1 -1
  213. package/dist/web/assets/{vendor-mermaid-BoRFiriK.js → vendor-mermaid-Cbig5zA6.js} +1 -1
  214. package/dist/web/assets/video-preview-BDNwumbW.js +1 -0
  215. package/dist/web/assets/{vue-Do2JXEwi.js → vue-DQwCnLdr.js} +1 -1
  216. package/dist/web/assets/{vue-html-Bse0CwSC.js → vue-html-T_EoGpPJ.js} +1 -1
  217. package/dist/web/assets/{vue-vine-C8JSXu5Z.js → vue-vine-DmxLqX50.js} +1 -1
  218. package/dist/web/assets/{window-pip-registry-C2dcY0pE.js → window-pip-registry-3l4hoxuD.js} +1 -1
  219. package/dist/web/assets/{window-store-2z4t5YAt.js → window-store-UC1jJeLM.js} +1 -1
  220. package/dist/web/assets/ws-auth-DEAJiGCR.js +1 -0
  221. package/dist/web/assets/{xml-OX6YmzGK.js → xml-Bs6Bw8is.js} +1 -1
  222. package/dist/web/assets/{xsl-RQUQgcgy.js → xsl-f5ZNhRCc.js} +1 -1
  223. package/dist/web/index.html +105 -71
  224. package/dist/web/sw.js +1 -1
  225. package/docs/project-roadmap.md +2 -0
  226. package/licenses/Apache-2.0.txt +73 -0
  227. package/licenses/CC-BY-4.0.txt +156 -0
  228. package/licenses/MIT.txt +18 -0
  229. package/licenses/OFL-1.1.txt +43 -0
  230. package/licenses/Unlicense.txt +10 -0
  231. package/package.json +14 -7
  232. package/packages/ext-git-graph/src/blame-view.ts +4 -5
  233. package/packages/ext-git-graph/src/commit-detail-escaping.test.ts +205 -0
  234. package/packages/ext-git-graph/src/commit-detail-file-cap.test.ts +65 -0
  235. package/packages/ext-git-graph/src/commit-message-html.test.ts +214 -0
  236. package/packages/ext-git-graph/src/commit-message-html.ts +190 -0
  237. package/packages/ext-git-graph/src/commit-request-generation.test.ts +57 -0
  238. package/packages/ext-git-graph/src/compare-view.ts +4 -5
  239. package/packages/ext-git-graph/src/extension.ts +148 -36
  240. package/packages/ext-git-graph/src/file-history-view.ts +4 -5
  241. package/packages/ext-git-graph/src/log-args.test.ts +57 -0
  242. package/packages/ext-git-graph/src/ppm-api.ts +39 -6
  243. package/packages/ext-git-graph/src/project-scope.test.ts +77 -0
  244. package/packages/ext-git-graph/src/project-scope.ts +69 -0
  245. package/packages/ext-git-graph/src/shortstat-parser.test.ts +53 -0
  246. package/packages/ext-git-graph/src/shortstat-parser.ts +45 -0
  247. package/packages/ext-git-graph/src/types.ts +2 -0
  248. package/packages/ext-git-graph/src/webview-html.test.ts +407 -0
  249. package/packages/ext-git-graph/src/webview-html.ts +631 -108
  250. package/packages/ext-git-graph/src/webview-shell.test.ts +63 -0
  251. package/packages/ext-git-graph/src/webview-shell.ts +48 -7
  252. package/scripts/copy-monaco.ts +63 -0
  253. package/scripts/gen-file-icons.ts +485 -0
  254. package/scripts/gen-nerd-font.ts +311 -0
  255. package/scripts/gen-product-icons.ts +442 -0
  256. package/scripts/monaco-staging.ts +32 -0
  257. package/scripts/precompress-web.ts +77 -0
  258. package/scripts/third-party-notices.ts +160 -0
  259. package/scripts/vite-monaco-dev-assets.ts +63 -0
  260. package/src/providers/claude-agent-sdk.ts +32 -2
  261. package/src/server/index.ts +17 -0
  262. package/src/server/routes/chat.ts +16 -6
  263. package/src/server/routes/git.ts +113 -1
  264. package/src/server/routes/lsp.ts +58 -0
  265. package/src/server/routes/project-scoped.ts +2 -0
  266. package/src/server/routes/static-encoding.ts +73 -0
  267. package/src/server/routes/static-fallback.ts +51 -0
  268. package/src/server/routes/static.ts +41 -5
  269. package/src/server/ws/lsp.ts +433 -0
  270. package/src/services/chat-search.service.ts +211 -26
  271. package/src/services/fs-ops/fs-real-path.ts +23 -0
  272. package/src/services/git-blame/commit-line-diff.ts +124 -0
  273. package/src/services/git-blame/git-blame.service.ts +96 -1
  274. package/src/services/git-repos/git-repo-discovery.ts +152 -0
  275. package/src/services/lsp/lsp-capabilities.ts +160 -0
  276. package/src/services/lsp/lsp-manager.ts +442 -0
  277. package/src/services/lsp/lsp-protocol.ts +170 -0
  278. package/src/services/lsp/lsp-session.ts +466 -0
  279. package/src/services/lsp/server-registry.ts +401 -0
  280. package/src/services/search-index-db.service.ts +10 -2
  281. package/src/shared/blame.ts +51 -0
  282. package/src/shared/lsp-uri.ts +108 -0
  283. package/src/web/app.tsx +6 -0
  284. package/src/web/components/ai-resources/ai-resource-editor.tsx +1 -1
  285. package/src/web/components/ai-resources/ai-resources-panel.tsx +1 -1
  286. package/src/web/components/ai-resources/mcp-group.tsx +1 -1
  287. package/src/web/components/ai-resources/new-resource-menu.tsx +1 -1
  288. package/src/web/components/ai-resources/resource-visuals.tsx +1 -1
  289. package/src/web/components/auth/login-screen.tsx +1 -1
  290. package/src/web/components/auth/support-dialog.tsx +1 -1
  291. package/src/web/components/chat/attachment-chips.tsx +113 -5
  292. package/src/web/components/chat/background-command-bar.tsx +1 -1
  293. package/src/web/components/chat/background-output-panel.tsx +1 -1
  294. package/src/web/components/chat/change-edit-list.tsx +1 -1
  295. package/src/web/components/chat/change-file-row.tsx +1 -1
  296. package/src/web/components/chat/chat-history-bar.tsx +2 -2
  297. package/src/web/components/chat/chat-history-panel.tsx +1 -1
  298. package/src/web/components/chat/chat-placeholder.tsx +1 -1
  299. package/src/web/components/chat/chat-scroll-nav.tsx +1 -1
  300. package/src/web/components/chat/chat-tab.tsx +1 -1
  301. package/src/web/components/chat/chat-toolbar-overflow-menu.tsx +1 -1
  302. package/src/web/components/chat/chat-welcome.tsx +1 -1
  303. package/src/web/components/chat/codex-usage-panel.tsx +1 -1
  304. package/src/web/components/chat/file-picker.tsx +1 -1
  305. package/src/web/components/chat/image-preview-states.tsx +1 -1
  306. package/src/web/components/chat/message-action-bar.tsx +1 -1
  307. package/src/web/components/chat/message-input.tsx +1 -1
  308. package/src/web/components/chat/message-list.tsx +1 -1
  309. package/src/web/components/chat/mode-selector.tsx +1 -1
  310. package/src/web/components/chat/model-selector.tsx +1 -1
  311. package/src/web/components/chat/model-thinking-selector.tsx +1 -1
  312. package/src/web/components/chat/pre-compact-button.tsx +1 -1
  313. package/src/web/components/chat/provider-selector.tsx +1 -1
  314. package/src/web/components/chat/send-message-card.tsx +1 -1
  315. package/src/web/components/chat/session-context-menu.tsx +1 -1
  316. package/src/web/components/chat/session-debug-dialog.tsx +1 -1
  317. package/src/web/components/chat/session-history-list.tsx +1 -1
  318. package/src/web/components/chat/session-list-panel.tsx +1 -1
  319. package/src/web/components/chat/session-picker.tsx +1 -1
  320. package/src/web/components/chat/slash-command-picker.tsx +1 -1
  321. package/src/web/components/chat/task-tracker.tsx +1 -1
  322. package/src/web/components/chat/team-activity-panel.tsx +1 -1
  323. package/src/web/components/chat/team-member-activity-row.tsx +1 -1
  324. package/src/web/components/chat/team-member-list.tsx +1 -1
  325. package/src/web/components/chat/team-member-sheet.tsx +1 -1
  326. package/src/web/components/chat/team-member-window-content.tsx +1 -1
  327. package/src/web/components/chat/team-working-bar.tsx +1 -1
  328. package/src/web/components/chat/tool-cards.tsx +2 -2
  329. package/src/web/components/chat/turn-change-sheet.tsx +1 -1
  330. package/src/web/components/chat/turn-change-tray.tsx +1 -1
  331. package/src/web/components/chat/turn-cost-warning.tsx +1 -1
  332. package/src/web/components/chat/usage-badge.tsx +1 -1
  333. package/src/web/components/chat/usage-panel-shell.tsx +1 -1
  334. package/src/web/components/chat/version-switcher.tsx +1 -1
  335. package/src/web/components/database/connection-import-export.tsx +1 -1
  336. package/src/web/components/database/connection-list.tsx +1 -1
  337. package/src/web/components/database/connection-row.tsx +1 -1
  338. package/src/web/components/database/database-sidebar.tsx +1 -1
  339. package/src/web/components/database/database-viewer.tsx +1 -1
  340. package/src/web/components/database/export-button.tsx +1 -1
  341. package/src/web/components/database/glide-context-menu.tsx +1 -1
  342. package/src/web/components/database/glide-data-grid.tsx +1 -1
  343. package/src/web/components/database/glide-data-preview-panel.tsx +2 -2
  344. package/src/web/components/database/glide-grid-pagination.tsx +1 -1
  345. package/src/web/components/database/glide-grid-toolbar.tsx +1 -1
  346. package/src/web/components/database/glide-header-menu.tsx +1 -1
  347. package/src/web/components/database/glide-save-bar.tsx +1 -1
  348. package/src/web/components/database/schema-table-tree.tsx +1 -1
  349. package/src/web/components/editor/audio-preview.tsx +1 -1
  350. package/src/web/components/editor/code-editor.tsx +167 -21
  351. package/src/web/components/editor/compare-picker.tsx +1 -1
  352. package/src/web/components/editor/conflict-editor.tsx +15 -6
  353. package/src/web/components/editor/csv-preview.tsx +1 -1
  354. package/src/web/components/editor/diff-viewer.tsx +59 -37
  355. package/src/web/components/editor/docx-preview.tsx +1 -1
  356. package/src/web/components/editor/editor-breadcrumb-external.tsx +1 -1
  357. package/src/web/components/editor/editor-breadcrumb.tsx +1 -1
  358. package/src/web/components/editor/editor-language-picker.tsx +3 -1
  359. package/src/web/components/editor/editor-language-service.tsx +77 -0
  360. package/src/web/components/editor/editor-mobile-toolbar.tsx +13 -2
  361. package/src/web/components/editor/editor-placeholder.tsx +1 -1
  362. package/src/web/components/editor/editor-toolbar.tsx +1 -1
  363. package/src/web/components/editor/image-preview.tsx +1 -1
  364. package/src/web/components/editor/lsp-status.tsx +241 -0
  365. package/src/web/components/editor/pdf-preview.tsx +1 -1
  366. package/src/web/components/editor/video-player/video-player-controls.tsx +1 -1
  367. package/src/web/components/editor/video-player/video-player.tsx +1 -1
  368. package/src/web/components/editor/video-player/video-settings-menu.tsx +1 -1
  369. package/src/web/components/editor/video-preview.tsx +1 -1
  370. package/src/web/components/explorer/file-tree.tsx +1 -1
  371. package/src/web/components/explorer/inline-tree-input.tsx +1 -1
  372. package/src/web/components/explorer/search-panel.tsx +3 -2
  373. package/src/web/components/explorer/tree-node-context-menu.tsx +1 -1
  374. package/src/web/components/explorer/tree-node.tsx +5 -12
  375. package/src/web/components/extensions/extension-quickpick.tsx +1 -1
  376. package/src/web/components/extensions/extension-tree-view.tsx +1 -1
  377. package/src/web/components/extensions/extension-webview.tsx +53 -20
  378. package/src/web/components/extensions/webview-theme.ts +121 -0
  379. package/src/web/components/floating-window/pip/pip-caption-button.tsx +1 -1
  380. package/src/web/components/git/create-worktree-dialog.tsx +5 -3
  381. package/src/web/components/git/git-log-panel.tsx +4 -2
  382. package/src/web/components/git/git-placeholder.tsx +1 -1
  383. package/src/web/components/git/git-ref-badge.tsx +1 -1
  384. package/src/web/components/git/git-repo-picker.tsx +145 -0
  385. package/src/web/components/git/git-status-panel.tsx +231 -250
  386. package/src/web/components/git/git-worktree-panel.tsx +6 -4
  387. package/src/web/components/git/hunk-stage-dialog.tsx +5 -3
  388. package/src/web/components/group-chat/group-chat-tab.tsx +1 -1
  389. package/src/web/components/group-chat/group-create-dialog.tsx +1 -1
  390. package/src/web/components/group-chat/group-full-transcript-view.tsx +1 -1
  391. package/src/web/components/group-chat/group-list.tsx +1 -1
  392. package/src/web/components/group-chat/group-member-edit-dialog.tsx +1 -1
  393. package/src/web/components/group-chat/group-member-roster.tsx +1 -1
  394. package/src/web/components/group-chat/group-message-item.tsx +1 -1
  395. package/src/web/components/group-chat/group-transcript-messages.tsx +1 -1
  396. package/src/web/components/jira/jira-config-form.tsx +1 -1
  397. package/src/web/components/jira/jira-filter-builder.tsx +1 -1
  398. package/src/web/components/jira/jira-panel.tsx +1 -1
  399. package/src/web/components/jira/jira-results-panel.tsx +1 -1
  400. package/src/web/components/jira/jira-ticket-card.tsx +1 -1
  401. package/src/web/components/jira/jira-ticket-detail.tsx +1 -1
  402. package/src/web/components/jira/jira-watcher-form.tsx +1 -1
  403. package/src/web/components/jira/jira-watcher-list.tsx +1 -1
  404. package/src/web/components/layout/add-project-form.tsx +1 -1
  405. package/src/web/components/layout/cloud-alias-row.tsx +1 -1
  406. package/src/web/components/layout/cloud-share-named-tunnel-row.tsx +1 -1
  407. package/src/web/components/layout/cloud-share-popover.tsx +1 -1
  408. package/src/web/components/layout/command-palette-filter-chips.tsx +1 -1
  409. package/src/web/components/layout/command-palette.tsx +46 -8
  410. package/src/web/components/layout/dock-header.tsx +4 -4
  411. package/src/web/components/layout/dock-panel.tsx +3 -3
  412. package/src/web/components/layout/draggable-tab.tsx +20 -3
  413. package/src/web/components/layout/editor-panel.tsx +1 -1
  414. package/src/web/components/layout/mobile-drawer-tab-bar.tsx +10 -1
  415. package/src/web/components/layout/mobile-drawer.tsx +1 -1
  416. package/src/web/components/layout/mobile-nav.tsx +3 -3
  417. package/src/web/components/layout/mobile-tab-switcher-sheet.tsx +13 -4
  418. package/src/web/components/layout/nav-section-rail.tsx +1 -1
  419. package/src/web/components/layout/notification-bell-popover.tsx +1 -1
  420. package/src/web/components/layout/panel-layout.tsx +1 -1
  421. package/src/web/components/layout/project-bottom-sheet.tsx +4 -1
  422. package/src/web/components/layout/project-sort.ts +1 -1
  423. package/src/web/components/layout/project-switcher.tsx +1 -1
  424. package/src/web/components/layout/reparenting-tab.tsx +1 -1
  425. package/src/web/components/layout/sidebar.tsx +1 -1
  426. package/src/web/components/layout/status-bar.tsx +4 -1
  427. package/src/web/components/layout/tab-bar.tsx +9 -23
  428. package/src/web/components/layout/tab-content.tsx +6 -1
  429. package/src/web/components/layout/tab-pool.tsx +1 -0
  430. package/src/web/components/layout/tab-pop-out-menu-item.tsx +1 -1
  431. package/src/web/components/layout/upgrade-button.tsx +1 -1
  432. package/src/web/components/layout/wake-lock-indicator.tsx +1 -1
  433. package/src/web/components/os-explorer/explorer-body.tsx +1 -1
  434. package/src/web/components/os-explorer/explorer-breadcrumb.tsx +1 -1
  435. package/src/web/components/os-explorer/explorer-sidebar.tsx +1 -1
  436. package/src/web/components/os-explorer/explorer-sort-menu.tsx +1 -1
  437. package/src/web/components/os-explorer/explorer-toolbar.tsx +1 -1
  438. package/src/web/components/os-explorer/icons/file-type-icon-map.ts +10 -94
  439. package/src/web/components/os-explorer/icons/file-type-icon.tsx +17 -13
  440. package/src/web/components/os-explorer/mobile/mobile-bottom-toolbar.tsx +1 -1
  441. package/src/web/components/os-explorer/mobile/mobile-explorer-top-bar.tsx +1 -1
  442. package/src/web/components/os-explorer/mobile/mobile-more-sheet.tsx +1 -1
  443. package/src/web/components/os-explorer/mobile/mobile-places-sheet.tsx +1 -1
  444. package/src/web/components/os-explorer/mobile/mobile-places-strip.tsx +1 -1
  445. package/src/web/components/os-explorer/properties-dialog.tsx +1 -1
  446. package/src/web/components/os-explorer/skins/macos-window-chrome.tsx +1 -1
  447. package/src/web/components/os-explorer/skins/windows-window-chrome.tsx +1 -1
  448. package/src/web/components/os-explorer/upload/upload-batch-card.tsx +1 -1
  449. package/src/web/components/os-explorer/upload/upload-batch-row.tsx +1 -1
  450. package/src/web/components/os-explorer/use-coarse-long-press.ts +8 -0
  451. package/src/web/components/os-explorer/views/column-view-mobile.tsx +1 -1
  452. package/src/web/components/os-explorer/views/icons-view-tile.tsx +1 -1
  453. package/src/web/components/os-explorer/views/list-row.tsx +1 -1
  454. package/src/web/components/os-explorer/views/list-view.tsx +1 -1
  455. package/src/web/components/postgres/postgres-viewer.tsx +1 -1
  456. package/src/web/components/problems/problems-panel.tsx +230 -0
  457. package/src/web/components/problems/problems-status.tsx +53 -0
  458. package/src/web/components/projects/dir-suggest.tsx +1 -1
  459. package/src/web/components/projects/project-list.tsx +1 -1
  460. package/src/web/components/remote-desktop/remote-desktop-mobile-toolbar.tsx +1 -1
  461. package/src/web/components/remote-desktop/remote-desktop-mobile-view.tsx +1 -1
  462. package/src/web/components/remote-desktop/remote-desktop-readiness-gate.tsx +1 -1
  463. package/src/web/components/remote-desktop/remote-desktop-warning-gate.tsx +1 -1
  464. package/src/web/components/remote-desktop/remote-desktop-window-content.tsx +1 -1
  465. package/src/web/components/root-error-boundary.tsx +116 -0
  466. package/src/web/components/settings/accounts/account-add-dialog.tsx +1 -1
  467. package/src/web/components/settings/accounts/account-card.tsx +1 -1
  468. package/src/web/components/settings/accounts/account-export-dialog.tsx +1 -1
  469. package/src/web/components/settings/accounts/account-export-simulation.tsx +1 -1
  470. package/src/web/components/settings/accounts/account-import-dialog.tsx +1 -1
  471. package/src/web/components/settings/accounts/account-profile-panel.tsx +1 -1
  472. package/src/web/components/settings/accounts/account-rotation-settings.tsx +1 -1
  473. package/src/web/components/settings/accounts/account-token-test-dialog.tsx +1 -1
  474. package/src/web/components/settings/accounts/account-usage-pattern-chart.tsx +1 -1
  475. package/src/web/components/settings/accounts/accounts-pane-header.tsx +1 -1
  476. package/src/web/components/settings/accounts/accounts-settings-section.tsx +1 -1
  477. package/src/web/components/settings/accounts/claude-accounts-section.tsx +9 -1
  478. package/src/web/components/settings/accounts/codex-accounts-section.tsx +10 -1
  479. package/src/web/components/settings/accounts/codex-add-account-dialog.tsx +1 -1
  480. package/src/web/components/settings/accounts/codex-backup-dialog.tsx +1 -1
  481. package/src/web/components/settings/ai-settings-section.tsx +1 -1
  482. package/src/web/components/settings/appearance-settings-section.tsx +56 -1
  483. package/src/web/components/settings/change-password-section.tsx +1 -1
  484. package/src/web/components/settings/extension-manager-section.tsx +1 -1
  485. package/src/web/components/settings/general-settings-section.tsx +1 -1
  486. package/src/web/components/settings/glob-list-editor.tsx +1 -1
  487. package/src/web/components/settings/keyboard-shortcuts-section.tsx +1 -1
  488. package/src/web/components/settings/mcp-server-dialog.tsx +1 -1
  489. package/src/web/components/settings/notifications-settings-section.tsx +1 -1
  490. package/src/web/components/settings/ppmbot-settings-section.tsx +1 -1
  491. package/src/web/components/settings/proxy-settings-section.tsx +1 -1
  492. package/src/web/components/settings/proxy-test-section.tsx +1 -1
  493. package/src/web/components/settings/query-audit-section.tsx +1 -1
  494. package/src/web/components/settings/schedules/schedule-row.tsx +1 -1
  495. package/src/web/components/settings/schedules/schedules-settings-section.tsx +1 -1
  496. package/src/web/components/settings/settings-body.tsx +1 -1
  497. package/src/web/components/settings/settings-categories.ts +14 -3
  498. package/src/web/components/settings/settings-category-list.tsx +1 -1
  499. package/src/web/components/settings/settings-section-content.tsx +1 -1
  500. package/src/web/components/settings/tag-settings-section.tsx +1 -1
  501. package/src/web/components/settings/theme-grid.tsx +1 -1
  502. package/src/web/components/settings/theme-manager-section.tsx +1 -1
  503. package/src/web/components/settings/theme-picker.tsx +1 -1
  504. package/src/web/components/shared/bug-report-popup.tsx +1 -1
  505. package/src/web/components/shared/connection-lost-overlay.tsx +1 -1
  506. package/src/web/components/shared/diagram-overlay.tsx +1 -1
  507. package/src/web/components/shared/image-overlay.tsx +1 -1
  508. package/src/web/components/shared/theme-mode-menu.tsx +1 -1
  509. package/src/web/components/sqlite/sqlite-data-grid.tsx +1 -1
  510. package/src/web/components/sqlite/sqlite-table-list.tsx +1 -1
  511. package/src/web/components/sqlite/sqlite-viewer.tsx +1 -1
  512. package/src/web/components/system/process-group-row.tsx +1 -1
  513. package/src/web/components/system/process-row.tsx +1 -1
  514. package/src/web/components/system/process-table-toolbar.tsx +1 -1
  515. package/src/web/components/system/resource-status-bar.tsx +1 -1
  516. package/src/web/components/system/sortable-header.tsx +1 -1
  517. package/src/web/components/system/system-monitor-body.tsx +1 -1
  518. package/src/web/components/terminal/terminal-finish-login.tsx +1 -1
  519. package/src/web/components/terminal/terminal-links-sheet.tsx +1 -1
  520. package/src/web/components/terminal/terminal-mobile-toolbar.tsx +1 -1
  521. package/src/web/components/terminal/terminal-placeholder.tsx +1 -1
  522. package/src/web/components/terminal/terminal-tab.tsx +1 -1
  523. package/src/web/components/tunnels/named-tunnel/named-tunnel-copy.ts +1 -0
  524. package/src/web/components/tunnels/named-tunnel/named-tunnel-login-step.tsx +1 -1
  525. package/src/web/components/tunnels/named-tunnel/named-tunnel-section.tsx +1 -1
  526. package/src/web/components/tunnels/named-tunnel/named-tunnel-setup-content.tsx +9 -3
  527. package/src/web/components/tunnels/named-tunnel/named-tunnel-setup-popup.tsx +1 -1
  528. package/src/web/components/tunnels/named-tunnel/named-tunnel-step-reducer.ts +14 -2
  529. package/src/web/components/tunnels/tunnel-manager-tab.tsx +1 -1
  530. package/src/web/components/ui/accordion.tsx +1 -1
  531. package/src/web/components/ui/adaptive-context-menu.tsx +9 -2
  532. package/src/web/components/ui/browse-button.tsx +1 -1
  533. package/src/web/components/ui/context-menu.tsx +1 -1
  534. package/src/web/components/ui/dialog.tsx +1 -1
  535. package/src/web/components/ui/dropdown-menu.tsx +1 -1
  536. package/src/web/components/ui/file-browser-picker.tsx +4 -6
  537. package/src/web/components/ui/select.tsx +1 -1
  538. package/src/web/components/ui/sidebar-header.tsx +1 -1
  539. package/src/web/components/ui/sonner.tsx +1 -1
  540. package/src/web/hooks/use-git-repo.ts +124 -0
  541. package/src/web/hooks/use-global-keybindings.ts +11 -6
  542. package/src/web/hooks/use-inline-blame.ts +161 -11
  543. package/src/web/hooks/use-is-touch-only.ts +46 -0
  544. package/src/web/hooks/use-lsp.ts +182 -0
  545. package/src/web/hooks/use-terminal.ts +60 -2
  546. package/src/web/hooks/use-touch-tab-drag.ts +18 -2
  547. package/src/web/hooks/use-url-sync.ts +15 -1
  548. package/src/web/index.html +74 -0
  549. package/src/web/lib/blame-hover-commands.ts +82 -0
  550. package/src/web/lib/blame-hover.ts +199 -0
  551. package/src/web/lib/chunk-recovery.ts +113 -0
  552. package/src/web/lib/editor-font.ts +70 -0
  553. package/src/web/lib/ext-command-dispatch.ts +24 -0
  554. package/src/web/lib/file-icons.generated.ts +408 -0
  555. package/src/web/lib/file-icons.tsx +192 -0
  556. package/src/web/lib/fluent-icon.tsx +62 -0
  557. package/src/web/lib/git-file-tree.ts +83 -0
  558. package/src/web/lib/git-repo-scope.ts +157 -0
  559. package/src/web/lib/icons.generated.tsx +428 -0
  560. package/src/web/lib/icons.ts +17 -0
  561. package/src/web/lib/lsp/lsp-client.ts +321 -0
  562. package/src/web/lib/lsp/lsp-documents.ts +39 -0
  563. package/src/web/lib/lsp/lsp-monaco.ts +214 -0
  564. package/src/web/lib/lsp/lsp-navigation.ts +129 -0
  565. package/src/web/lib/lsp/lsp-responses.ts +244 -0
  566. package/src/web/lib/lsp/lsp-semantic-tokens.ts +180 -0
  567. package/src/web/lib/lsp/lsp-shadow-models.ts +254 -0
  568. package/src/web/lib/lsp/monaco-builtin-typescript.ts +149 -0
  569. package/src/web/lib/lsp/register-providers.ts +458 -0
  570. package/src/web/lib/monaco-diff-language.ts +62 -0
  571. package/src/web/lib/monaco-dotenv-language.ts +134 -0
  572. package/src/web/lib/sidebar-tabs/tab-registry.ts +11 -2
  573. package/src/web/lib/tab-type-icons.ts +32 -4
  574. package/src/web/main.tsx +30 -1
  575. package/src/web/stores/git-repo-store.ts +117 -0
  576. package/src/web/stores/git-status-store.ts +10 -7
  577. package/src/web/stores/keybindings-store.ts +1 -0
  578. package/src/web/stores/panel-utils.ts +5 -2
  579. package/src/web/stores/problems-store.ts +116 -0
  580. package/src/web/stores/settings-store.ts +40 -0
  581. package/src/web/stores/tab-store.ts +2 -1
  582. package/src/web/stores/window-panel-persistence.ts +1 -0
  583. package/src/web/styles/file-icons.generated.css +1007 -0
  584. package/src/web/styles/fonts/nerd-symbols-codicons.woff2 +0 -0
  585. package/src/web/styles/fonts/nerd-symbols-devicons.woff2 +0 -0
  586. package/src/web/styles/fonts/nerd-symbols-font-awesome-ext.woff2 +0 -0
  587. package/src/web/styles/fonts/nerd-symbols-font-awesome-legacy.woff2 +0 -0
  588. package/src/web/styles/fonts/nerd-symbols-font-awesome.woff2 +0 -0
  589. package/src/web/styles/fonts/nerd-symbols-font-logos.woff2 +0 -0
  590. package/src/web/styles/fonts/nerd-symbols-iec-power.woff2 +0 -0
  591. package/src/web/styles/fonts/nerd-symbols-material.woff2 +0 -0
  592. package/src/web/styles/fonts/nerd-symbols-misc.woff2 +0 -0
  593. package/src/web/styles/fonts/nerd-symbols-octicons.woff2 +0 -0
  594. package/src/web/styles/fonts/nerd-symbols-pomicons.woff2 +0 -0
  595. package/src/web/styles/fonts/nerd-symbols-powerline.woff2 +0 -0
  596. package/src/web/styles/fonts/nerd-symbols-seti.woff2 +0 -0
  597. package/src/web/styles/fonts/nerd-symbols-weather.woff2 +0 -0
  598. package/src/web/styles/globals.css +30 -3
  599. package/src/web/styles/nerd-font.generated.css +153 -0
  600. package/src/web/sw.ts +69 -2
  601. package/src/web/theme/adapters/monaco-adapter.ts +20 -1
  602. package/src/web/theme/diff-token-rules.ts +34 -0
  603. package/src/web/theme/semantic-token-rules.ts +103 -0
  604. package/src/web/theme/theme-mode-options.ts +1 -1
  605. package/vite.config.ts +24 -7
  606. package/dist/web/assets/accounts-settings-section-ByM99C7p.js +0 -1
  607. package/dist/web/assets/ai-resource-editor-BsB9wa0z.js +0 -1
  608. package/dist/web/assets/ai-settings-section-BT-QVUBa.js +0 -1
  609. package/dist/web/assets/ai-settings-section-BUPOINaw.js +0 -1
  610. package/dist/web/assets/api-client-C6VTn7cG.js +0 -1
  611. package/dist/web/assets/appearance-settings-section-DJEoECoJ.js +0 -1
  612. package/dist/web/assets/architecture-PBZL5I3N-D55g5j-p.js +0 -1
  613. package/dist/web/assets/arrow-left-DpXaakMC.js +0 -1
  614. package/dist/web/assets/arrow-right-BqNSIscF.js +0 -1
  615. package/dist/web/assets/audio-preview-CF4tTFv_.js +0 -1
  616. package/dist/web/assets/bot-D3-n2i31.js +0 -1
  617. package/dist/web/assets/brain-CuAQMSBE.js +0 -1
  618. package/dist/web/assets/calendar-clock-CDP7AVjA.js +0 -1
  619. package/dist/web/assets/chat-tab-fD2vWwj2.js +0 -15
  620. package/dist/web/assets/check-BQKbhtoA.js +0 -1
  621. package/dist/web/assets/chevron-down-B9puixxZ.js +0 -1
  622. package/dist/web/assets/chevron-right-DK_HbYZC.js +0 -1
  623. package/dist/web/assets/chevron-up-BPAINgoK.js +0 -1
  624. package/dist/web/assets/circle-BpGTLAas.js +0 -1
  625. package/dist/web/assets/circle-question-mark-DUaySkoB.js +0 -1
  626. package/dist/web/assets/clock-Dqq0H9yH.js +0 -1
  627. package/dist/web/assets/code-CX6640Tv.js +0 -1
  628. package/dist/web/assets/code-editor-CyFLXCsD.js +0 -7
  629. package/dist/web/assets/codex-daily-guard-Cg19EWxk.js +0 -1
  630. package/dist/web/assets/conflict-editor-DSjo2FRy.js +0 -19
  631. package/dist/web/assets/context-menu-DchAkdnL.js +0 -1
  632. package/dist/web/assets/copy-Bt_1tjoJ.js +0 -1
  633. package/dist/web/assets/csv-preview-BIE3Wpww.js +0 -2
  634. package/dist/web/assets/database-9_p74TtY.js +0 -1
  635. package/dist/web/assets/database-viewer-CMvIORcM.js +0 -1
  636. package/dist/web/assets/diff-viewer-BQQ6fUr6.js +0 -4
  637. package/dist/web/assets/docx-preview-DcCh59Oe.js +0 -12
  638. package/dist/web/assets/download-CEPFebri.js +0 -1
  639. package/dist/web/assets/explorer-body-DRo2JHP9.js +0 -2
  640. package/dist/web/assets/explorer-window-content-7mnRpSqn.js +0 -1
  641. package/dist/web/assets/extension-manager-section-CEfr7-Kv.js +0 -1
  642. package/dist/web/assets/extension-webview-D7HqqdTv.js +0 -3
  643. package/dist/web/assets/eye-BQaWPI4P.js +0 -1
  644. package/dist/web/assets/eye-off-BlB3QV90.js +0 -1
  645. package/dist/web/assets/file-exclamation-point-BDmSZbxs.js +0 -1
  646. package/dist/web/assets/files-settings-section-h6a-WpSO.js +0 -1
  647. package/dist/web/assets/flask-conical-Cj-J6cxs.js +0 -1
  648. package/dist/web/assets/folder-symlink-BSYalAHC.js +0 -1
  649. package/dist/web/assets/general-settings-section-Bt3KNcyM.js +0 -1
  650. package/dist/web/assets/git-log-panel-H-Bg9p7m.js +0 -1
  651. package/dist/web/assets/gitGraph-HDMCJU4V-At-P8hlA.js +0 -1
  652. package/dist/web/assets/glide-data-grid-D3Xc_WGh.js +0 -141
  653. package/dist/web/assets/group-chat-tab-BkLt7J_s.js +0 -1
  654. package/dist/web/assets/hand-BkDyLfcc.js +0 -1
  655. package/dist/web/assets/image-preview-D_6-FhZP.js +0 -1
  656. package/dist/web/assets/index-BV_sFdHY.js +0 -52
  657. package/dist/web/assets/index-Di9nVG3y.css +0 -2
  658. package/dist/web/assets/info-3K5VOQVL-btSsuixb.js +0 -1
  659. package/dist/web/assets/key-round-Cv4z7_KG.js +0 -1
  660. package/dist/web/assets/keybindings-store-alreySno.js +0 -1
  661. package/dist/web/assets/keyboard-HG0BUtuN.js +0 -1
  662. package/dist/web/assets/keyboard-shortcuts-section-B_D0FamP.js +0 -1
  663. package/dist/web/assets/loader-circle-H81ywCuQ.js +0 -1
  664. package/dist/web/assets/markdown-renderer-CG_nGh7k.js +0 -3
  665. package/dist/web/assets/markdown-renderer-CgbqvSuc.js +0 -1
  666. package/dist/web/assets/mobile-explorer-sheet-DAZTzi1k.js +0 -1
  667. package/dist/web/assets/monitor-CKcYUoAV.js +0 -1
  668. package/dist/web/assets/notification-store-HCg5Shw9.js +0 -1
  669. package/dist/web/assets/notifications-settings-section-BAs_p_ai.js +0 -1
  670. package/dist/web/assets/packet-RMMSAZCW-B20_sIFd.js +0 -1
  671. package/dist/web/assets/panel-store-XhAruR6D.js +0 -1
  672. package/dist/web/assets/pdf-preview-BJjqU3AX.js +0 -1
  673. package/dist/web/assets/pie-UPGHQEXC-nzfJdXCC.js +0 -1
  674. package/dist/web/assets/power-D_wlLkC0.js +0 -1
  675. package/dist/web/assets/ppmbot-settings-section-5U0a58oj.js +0 -1
  676. package/dist/web/assets/process-table-CqGL0Bcj.js +0 -1
  677. package/dist/web/assets/proxy-settings-section-B1LDpGSc.js +0 -1
  678. package/dist/web/assets/query-audit-section-DfCvY94_.js +0 -1
  679. package/dist/web/assets/radar-KQ55EAFF-CS4sHKD5.js +0 -1
  680. package/dist/web/assets/remote-desktop-mobile-sheet-_LH4uCcA.js +0 -2
  681. package/dist/web/assets/remote-desktop-mobile-view-C5TUPDh_.js +0 -1
  682. package/dist/web/assets/remote-desktop-readiness-gate-DuT4A893.js +0 -1
  683. package/dist/web/assets/remote-desktop-window-content-B4V-1aJn.js +0 -1
  684. package/dist/web/assets/save-BehCuMf4.js +0 -1
  685. package/dist/web/assets/schedules-settings-section-C2SjwWFB.js +0 -1
  686. package/dist/web/assets/send-CtXcGcsk.js +0 -1
  687. package/dist/web/assets/settings-body-CdFauCAU.js +0 -2
  688. package/dist/web/assets/settings-store-BkNrLdjk.js +0 -2
  689. package/dist/web/assets/settings-tab-DGUlmMbc.js +0 -1
  690. package/dist/web/assets/settings-window-content-CIH5sihe.js +0 -1
  691. package/dist/web/assets/shield-check-z9PX8HVZ.js +0 -1
  692. package/dist/web/assets/shield-off-Du0U5dVI.js +0 -1
  693. package/dist/web/assets/sparkles-CO9zx1f-.js +0 -1
  694. package/dist/web/assets/sqlite-viewer-Bpz7QnBk.js +0 -1
  695. package/dist/web/assets/system-monitor-body-BBJOWFCa.js +0 -2
  696. package/dist/web/assets/system-monitor-tab-D7RIwhmg.js +0 -1
  697. package/dist/web/assets/system-monitor-window-content-CH0UmMP9.js +0 -1
  698. package/dist/web/assets/tab-host-window-content-C_yU5MH_.js +0 -1
  699. package/dist/web/assets/table-BK4h8E7u.js +0 -1
  700. package/dist/web/assets/team-member-sheet-CopMME1E.js +0 -2
  701. package/dist/web/assets/team-member-window-content-CUDQ6oX7.js +0 -1
  702. package/dist/web/assets/terminal-tab-BjI95uG5.js +0 -3
  703. package/dist/web/assets/text-wrap-DLtVgSnU.js +0 -1
  704. package/dist/web/assets/tool-cards-I71v1w5Z.js +0 -9
  705. package/dist/web/assets/treemap-KZPCXAKY-BBrhTPZk.js +0 -1
  706. package/dist/web/assets/use-coarse-long-press-XrJ4Upuv.js +0 -1
  707. package/dist/web/assets/use-inline-blame-CRUwd6FF.js +0 -8
  708. package/dist/web/assets/use-monaco-theme-qzMbRfCW.js +0 -1
  709. package/dist/web/assets/use-remote-desktop-display-choice-0zDkCmsK.js +0 -1
  710. package/dist/web/assets/video-preview-Mlgl7hGr.js +0 -1
  711. package/dist/web/assets/ws-auth-DI1E6Fe7.js +0 -1
  712. package/dist/web/assets/x-DlnNFF2t.js +0 -1
  713. package/dist/web/monacoeditorwork/css.worker.bundle.js +0 -54268
  714. package/dist/web/monacoeditorwork/editor.worker.bundle.js +0 -14316
  715. package/dist/web/monacoeditorwork/html.worker.bundle.js +0 -30452
  716. package/dist/web/monacoeditorwork/json.worker.bundle.js +0 -22095
  717. package/dist/web/monacoeditorwork/ts.worker.bundle.js +0 -225957
  718. package/src/web/components/explorer/file-icon-map.ts +0 -69
  719. /package/dist/web/assets/{abap-BIHt2d9F.js → abap-tkptwpsK.js} +0 -0
  720. /package/dist/web/assets/{actionscript-3-rbCNRHFj.js → actionscript-3-Di9TMGwg.js} +0 -0
  721. /package/dist/web/assets/{ada-CN94LQTJ.js → ada-CB9F079D.js} +0 -0
  722. /package/dist/web/assets/{andromeeda-BsmcoXuQ.js → andromeeda-Dcl8jpb7.js} +0 -0
  723. /package/dist/web/assets/{apache-pRQmqcVZ.js → apache-D0Nk0qsH.js} +0 -0
  724. /package/dist/web/assets/{apex-CNEumC1X.js → apex-mQIoWncD.js} +0 -0
  725. /package/dist/web/assets/{api-client-DKvkxuDr.js → api-client-bfB7cXRM.js} +0 -0
  726. /package/dist/web/assets/{applescript-DjEVsS-3.js → applescript-C6ljbcsI.js} +0 -0
  727. /package/dist/web/assets/{apply-theme-Abd1TNqE.js → apply-theme-BwIMNXyX.js} +0 -0
  728. /package/dist/web/assets/{ara-DbhZRlTL.js → ara-WFqRPGPe.js} +0 -0
  729. /package/dist/web/assets/{asciidoc-BsfbAXIK.js → asciidoc-bNd8w4nf.js} +0 -0
  730. /package/dist/web/assets/{asm-Vw5NMXjI.js → asm-BQ1_F580.js} +0 -0
  731. /package/dist/web/assets/{aurora-x-CoahU6sR.js → aurora-x-Ciqs_Dbu.js} +0 -0
  732. /package/dist/web/assets/{awk-ChKjCxHz.js → awk-GCR-6KZV.js} +0 -0
  733. /package/dist/web/assets/{ayu-dark-By9RKxTf.js → ayu-dark-DxJXuj99.js} +0 -0
  734. /package/dist/web/assets/{ayu-light-CEsgeLON.js → ayu-light-jvSyJWDV.js} +0 -0
  735. /package/dist/web/assets/{ayu-mirage-CYrtwSLW.js → ayu-mirage-Cg3BPO6H.js} +0 -0
  736. /package/dist/web/assets/{ballerina-CCSVz22W.js → ballerina-BPz4CrX6.js} +0 -0
  737. /package/dist/web/assets/{bat-DU4--CMj.js → bat-CSTs2hIG.js} +0 -0
  738. /package/dist/web/assets/{beancount-DF_tlRlF.js → beancount-DMateAZX.js} +0 -0
  739. /package/dist/web/assets/{berry-CZTnatvO.js → berry-9lXg0GRM.js} +0 -0
  740. /package/dist/web/assets/{bibtex-BSpXy8jk.js → bibtex-DIbqmvFg.js} +0 -0
  741. /package/dist/web/assets/{bicep-yv1Ydq5Z.js → bicep-02WGsoJ8.js} +0 -0
  742. /package/dist/web/assets/{bird2-Db7Z7SMN.js → bird2-BY0tbu3k.js} +0 -0
  743. /package/dist/web/assets/{c-C3ivhwA4.js → c-jMBX_9Je.js} +0 -0
  744. /package/dist/web/assets/{c3-N4mKyst9.js → c3-B8JVbNjW.js} +0 -0
  745. /package/dist/web/assets/{cadence-BYK8tFFk.js → cadence-DUIf1tvL.js} +0 -0
  746. /package/dist/web/assets/{can-open-in-ppm-DU5MH6XF.js → can-open-in-ppm-DGEc0s4P.js} +0 -0
  747. /package/dist/web/assets/{catppuccin-frappe-BK9Tv2XG.js → catppuccin-frappe-FhUCVxex.js} +0 -0
  748. /package/dist/web/assets/{catppuccin-latte-De4mVCp3.js → catppuccin-latte-CzfrtmgL.js} +0 -0
  749. /package/dist/web/assets/{catppuccin-macchiato-Bxt_D7cs.js → catppuccin-macchiato-6xL0lOtj.js} +0 -0
  750. /package/dist/web/assets/{catppuccin-mocha-Dz2o8gN7.js → catppuccin-mocha-D39-xS3P.js} +0 -0
  751. /package/dist/web/assets/{clarity-BJdh0Pw-.js → clarity-D8TeGvoT.js} +0 -0
  752. /package/dist/web/assets/{clojure-DG-FYGzn.js → clojure-Dx_acSX7.js} +0 -0
  753. /package/dist/web/assets/{cmake-D1imEXan.js → cmake-CyeYPq8o.js} +0 -0
  754. /package/dist/web/assets/{codeowners-YpylTFB5.js → codeowners-DrTI0lmI.js} +0 -0
  755. /package/dist/web/assets/{codeql-ajDEPgqi.js → codeql-CPkFxVW-.js} +0 -0
  756. /package/dist/web/assets/{common-lisp-C2sCrd-m.js → common-lisp-B0k-3LTj.js} +0 -0
  757. /package/dist/web/assets/{coq-BqybyDc9.js → coq-uygpo7to.js} +0 -0
  758. /package/dist/web/assets/{createLucideIcon-D6fVXe3s.js → createLucideIcon-DoiEKeJ_.js} +0 -0
  759. /package/dist/web/assets/{csharp-nKCEiujy.js → csharp-DKUYGfSp.js} +0 -0
  760. /package/dist/web/assets/{css-CJSp2CsD.js → css-DoOUp7v4.js} +0 -0
  761. /package/dist/web/assets/{csv-Nh9vQwQm.js → csv-B3YE13gi.js} +0 -0
  762. /package/dist/web/assets/{csv-parser-iow1WWML.js → csv-parser-DXePqmXe.js} +0 -0
  763. /package/dist/web/assets/{cue-Ch79RPsU.js → cue-DViO2wvn.js} +0 -0
  764. /package/dist/web/assets/{cypher-CgiOQ6hs.js → cypher-4BMCIW5N.js} +0 -0
  765. /package/dist/web/assets/{d-CmBcySpH.js → d-BT_sTHas.js} +0 -0
  766. /package/dist/web/assets/{dark-plus-COLEX2ui.js → dark-plus-DVVXu-1N.js} +0 -0
  767. /package/dist/web/assets/{dart-BTAArMcJ.js → dart-DHz6f6_6.js} +0 -0
  768. /package/dist/web/assets/{data-grid-types-tNj9zuRV.js → data-grid-types-OgUxMLdQ.js} +0 -0
  769. /package/dist/web/assets/{dax-BbZzRY9i.js → dax-ChYCjweK.js} +0 -0
  770. /package/dist/web/assets/{desktop-OmQvU3-J.js → desktop-D6Lt4p04.js} +0 -0
  771. /package/dist/web/assets/{diff-BEPnb9Fb.js → diff-D8TDe4hP.js} +0 -0
  772. /package/dist/web/assets/{dist-BiqPfYiP.js → dist-CrBOCtCW.js} +0 -0
  773. /package/dist/web/assets/{dist-BDpuZ376.js → dist-DOTlFQJA.js} +0 -0
  774. /package/dist/web/assets/{docker-Cg17HgTD.js → docker-Bsp0YbPx.js} +0 -0
  775. /package/dist/web/assets/{dotenv-DEMIaY7V.js → dotenv-B_7giSY_.js} +0 -0
  776. /package/dist/web/assets/{dracula-BkCFq8SO.js → dracula-TrQL2iB5.js} +0 -0
  777. /package/dist/web/assets/{dracula-soft-Cjp6-ltF.js → dracula-soft-n2XOlgh-.js} +0 -0
  778. /package/dist/web/assets/{dream-maker-Ce7Y_UKj.js → dream-maker-CdIEdhpT.js} +0 -0
  779. /package/dist/web/assets/{emacs-lisp-BjpyfTbN.js → emacs-lisp-CSbixs6u.js} +0 -0
  780. /package/dist/web/assets/{everforest-dark-9r4okw1s.js → everforest-dark-BuZahZYp.js} +0 -0
  781. /package/dist/web/assets/{everforest-light-GCQTZ3Ju.js → everforest-light-DPH53z5H.js} +0 -0
  782. /package/dist/web/assets/{fennel-ITjY5Z6u.js → fennel-B1-K_hlJ.js} +0 -0
  783. /package/dist/web/assets/{fish-DP2uEzyg.js → fish-Cy12Dbua.js} +0 -0
  784. /package/dist/web/assets/{fluent-irzaP1f6.js → fluent-B_82ys8E.js} +0 -0
  785. /package/dist/web/assets/{format-bytes-B9Dbme9a.js → format-bytes-D5sBgIqU.js} +0 -0
  786. /package/dist/web/assets/{fortran-free-form-BAPoainr.js → fortran-free-form-BRQdNzZF.js} +0 -0
  787. /package/dist/web/assets/{gdscript-DJ098V1z.js → gdscript-XBDmLUm9.js} +0 -0
  788. /package/dist/web/assets/{gdshader-DS2Jfy-K.js → gdshader-DhVfB3u4.js} +0 -0
  789. /package/dist/web/assets/{genie-CqfOaFFx.js → genie-X3K29Y49.js} +0 -0
  790. /package/dist/web/assets/{gherkin-CoZ2ucDH.js → gherkin-DKIx-6cX.js} +0 -0
  791. /package/dist/web/assets/{github-dark-BNLgnSO9.js → github-dark-Bf7zdp5s.js} +0 -0
  792. /package/dist/web/assets/{github-dark-default-CYlSggwi.js → github-dark-default-DqsBBV11.js} +0 -0
  793. /package/dist/web/assets/{github-dark-dimmed-DumUysDk.js → github-dark-dimmed-X2gqRz6w.js} +0 -0
  794. /package/dist/web/assets/{github-dark-high-contrast-TKrcDJ2I.js → github-dark-high-contrast-Z7tvbGX4.js} +0 -0
  795. /package/dist/web/assets/{github-light-DVENFHLJ.js → github-light-BKxt-7zZ.js} +0 -0
  796. /package/dist/web/assets/{github-light-default-DtN8AGcE.js → github-light-default-B0liF4d4.js} +0 -0
  797. /package/dist/web/assets/{github-light-high-contrast-NSyF37x4.js → github-light-high-contrast-F4encJwr.js} +0 -0
  798. /package/dist/web/assets/{gleam-hp4NMSb5.js → gleam-Pz2bHgBB.js} +0 -0
  799. /package/dist/web/assets/{gn-Dptw2PEu.js → gn-CgmdNsPU.js} +0 -0
  800. /package/dist/web/assets/{gnuplot-9juRzjwv.js → gnuplot-qLNF5yZ9.js} +0 -0
  801. /package/dist/web/assets/{go-D-QLCda0.js → go-CSDUNhE7.js} +0 -0
  802. /package/dist/web/assets/{groovy-DHKNy6Eh.js → groovy-B3NEnOHF.js} +0 -0
  803. /package/dist/web/assets/{gruvbox-dark-hard-BFD6aQdB.js → gruvbox-dark-hard-DcoftiUX.js} +0 -0
  804. /package/dist/web/assets/{gruvbox-dark-medium-D5llYBNp.js → gruvbox-dark-medium-D1wVSuD8.js} +0 -0
  805. /package/dist/web/assets/{gruvbox-dark-soft-DOztQmNR.js → gruvbox-dark-soft-DWpunymH.js} +0 -0
  806. /package/dist/web/assets/{gruvbox-light-hard-BFGD-8Pd.js → gruvbox-light-hard-rHMvyUdS.js} +0 -0
  807. /package/dist/web/assets/{gruvbox-light-medium-DzoyXgT7.js → gruvbox-light-medium-3O2KiXO7.js} +0 -0
  808. /package/dist/web/assets/{gruvbox-light-soft-B1Ix2zLN.js → gruvbox-light-soft-lNlXJPwH.js} +0 -0
  809. /package/dist/web/assets/{haskell-BnrJ0k7G.js → haskell-aaG3aC0h.js} +0 -0
  810. /package/dist/web/assets/{haxe-DwShHT_-.js → haxe-CPcHhUDd.js} +0 -0
  811. /package/dist/web/assets/{hcl-VOjEibVB.js → hcl-CMQNlR_4.js} +0 -0
  812. /package/dist/web/assets/{hjson-BHEn7pNn.js → hjson-DeuklPFj.js} +0 -0
  813. /package/dist/web/assets/{hlsl-CrvxlGii.js → hlsl-BI3hlsaM.js} +0 -0
  814. /package/dist/web/assets/{horizon-D3T-P0u6.js → horizon-C7-gOcjs.js} +0 -0
  815. /package/dist/web/assets/{horizon-bright-vifGsEdk.js → horizon-bright-Cxt9bRW7.js} +0 -0
  816. /package/dist/web/assets/{houston-IrOgT7r4.js → houston-DbF2G7iD.js} +0 -0
  817. /package/dist/web/assets/{hy-5eSgTJ8G.js → hy-DRG6Hs2I.js} +0 -0
  818. /package/dist/web/assets/{image-gallery-COea0nSk.js → image-gallery-CObzTisL.js} +0 -0
  819. /package/dist/web/assets/{imba-Dp0I4DVl.js → imba-CxKv_2TW.js} +0 -0
  820. /package/dist/web/assets/{ini-CHDKad9O.js → ini-BiHsyCdO.js} +0 -0
  821. /package/dist/web/assets/{java-YLv7IDJ1.js → java-D3RZzgDB.js} +0 -0
  822. /package/dist/web/assets/{javascript-jr4kIdgl.js → javascript-4FmSqG-T.js} +0 -0
  823. /package/dist/web/assets/{json-EJWSOZfp.js → json-CjB236_E.js} +0 -0
  824. /package/dist/web/assets/{json5-D6f_uNwJ.js → json5-bkfO-Rco.js} +0 -0
  825. /package/dist/web/assets/{jsonc-DrHCdmos.js → jsonc-BwaTeLyv.js} +0 -0
  826. /package/dist/web/assets/{jsonl-Cwc3cXEL.js → jsonl-CfxNSwGd.js} +0 -0
  827. /package/dist/web/assets/{jsonnet-BwZfaIFT.js → jsonnet-CQETCYrp.js} +0 -0
  828. /package/dist/web/assets/{jssm-BpEmg_MT.js → jssm-D5o3Zzdz.js} +0 -0
  829. /package/dist/web/assets/{jsx-DBGPwcr4.js → jsx-BAMILPLo.js} +0 -0
  830. /package/dist/web/assets/{kanagawa-dragon-DRfVaGIX.js → kanagawa-dragon-BhGVxu3R.js} +0 -0
  831. /package/dist/web/assets/{kanagawa-lotus-CjOlny0Q.js → kanagawa-lotus-FH4Y59ro.js} +0 -0
  832. /package/dist/web/assets/{kanagawa-wave-DvdM88a4.js → kanagawa-wave-eilvP9MB.js} +0 -0
  833. /package/dist/web/assets/{kdl-DSo3PvM0.js → kdl-BQ-yvXUK.js} +0 -0
  834. /package/dist/web/assets/{kotlin-BV8TwCGu.js → kotlin-BuCx0-VT.js} +0 -0
  835. /package/dist/web/assets/{kusto-DCo1Fdmm.js → kusto-DAN_n_Cy.js} +0 -0
  836. /package/dist/web/assets/{laserwave-DPX9FvD9.js → laserwave-Cq2BlxrT.js} +0 -0
  837. /package/dist/web/assets/{lean-Cya8dqZu.js → lean-Dhq7uXKw.js} +0 -0
  838. /package/dist/web/assets/{less-CJUPgkIs.js → less-CxaMQb8j.js} +0 -0
  839. /package/dist/web/assets/{lib-DUBAP_Gd.js → lib-BVwmtv2i.js} +0 -0
  840. /package/dist/web/assets/{libesm-CcPYXCKp.js → libesm-DdtEjhIi.js} +0 -0
  841. /package/dist/web/assets/{light-plus-BXXrlFJH.js → light-plus-B4sMAend.js} +0 -0
  842. /package/dist/web/assets/{llvm-CUbQanZr.js → llvm-DQ6-B_6Y.js} +0 -0
  843. /package/dist/web/assets/{log-B3fFlSMd.js → log-Bb_vqvu7.js} +0 -0
  844. /package/dist/web/assets/{logo-ucAyw6zf.js → logo-BzfYv3A_.js} +0 -0
  845. /package/dist/web/assets/{luau-C4l6TSTB.js → luau-BnAeNR77.js} +0 -0
  846. /package/dist/web/assets/{make-CDtGIVc7.js → make-B6IFuxpC.js} +0 -0
  847. /package/dist/web/assets/{markdown-CH1zKu2p.js → markdown-Z0xi77Fn.js} +0 -0
  848. /package/dist/web/assets/{material-theme-CEuGVTmh.js → material-theme-1scy1SYn.js} +0 -0
  849. /package/dist/web/assets/{material-theme-darker-CUZ3MoIr.js → material-theme-darker-G-JykXQP.js} +0 -0
  850. /package/dist/web/assets/{material-theme-lighter-DxAqJSid.js → material-theme-lighter-BtKkCMVq.js} +0 -0
  851. /package/dist/web/assets/{material-theme-ocean-BSvvHJp6.js → material-theme-ocean-irrDC89L.js} +0 -0
  852. /package/dist/web/assets/{material-theme-palenight-QVOl50_m.js → material-theme-palenight-Eq5_K4LM.js} +0 -0
  853. /package/dist/web/assets/{matlab-CZLQLwUp.js → matlab-BE3oCXZC.js} +0 -0
  854. /package/dist/web/assets/{mdx-DO4NJsOo.js → mdx-DYiuFTGw.js} +0 -0
  855. /package/dist/web/assets/{mermaid-CIwzg1uO.js → mermaid-DVlaEvtw.js} +0 -0
  856. /package/dist/web/assets/{min-dark-BdIgslXy.js → min-dark-DSkeTpQa.js} +0 -0
  857. /package/dist/web/assets/{min-light-DyU-T1r2.js → min-light-CFv2Q0uF.js} +0 -0
  858. /package/dist/web/assets/{mipsasm-DRad-Klm.js → mipsasm-CiAFuZQ2.js} +0 -0
  859. /package/dist/web/assets/{mojo-DXp5LDOc.js → mojo-ARshcaSQ.js} +0 -0
  860. /package/dist/web/assets/{monokai-BiKX3qby.js → monokai-CPTV-SOg.js} +0 -0
  861. /package/dist/web/assets/{moonbit-BOUoLF5r.js → moonbit-D57B0dZr.js} +0 -0
  862. /package/dist/web/assets/{move-Dlk64FWK.js → move-qgy3G_o9.js} +0 -0
  863. /package/dist/web/assets/{narrat-B-qd2Lh0.js → narrat-CZ3rC-oc.js} +0 -0
  864. /package/dist/web/assets/{nextflow-groovy-iAMYas0F.js → nextflow-groovy-BxxIOcI4.js} +0 -0
  865. /package/dist/web/assets/{night-owl-3YNqjftR.js → night-owl-B1ryGCda.js} +0 -0
  866. /package/dist/web/assets/{night-owl-light-GIncHb5w.js → night-owl-light-BZvNnvMF.js} +0 -0
  867. /package/dist/web/assets/{nix-xjlEb3uw.js → nix-BVBQi8yv.js} +0 -0
  868. /package/dist/web/assets/{nord-C8tvWx7P.js → nord-3NXw613h.js} +0 -0
  869. /package/dist/web/assets/{nushell-BqBb4pU6.js → nushell-BMOLRalb.js} +0 -0
  870. /package/dist/web/assets/{objective-c-Bk6s0Cn5.js → objective-c-AxruEUgh.js} +0 -0
  871. /package/dist/web/assets/{objective-cpp-DGTVWQ3V.js → objective-cpp-cFT0qRsD.js} +0 -0
  872. /package/dist/web/assets/{ocaml-D6wPQ4kw.js → ocaml-_8JH6O8J.js} +0 -0
  873. /package/dist/web/assets/{odin-C9mw2xRN.js → odin-nwYvR0O6.js} +0 -0
  874. /package/dist/web/assets/{one-dark-pro-SMBlneFb.js → one-dark-pro-C1LaYJaH.js} +0 -0
  875. /package/dist/web/assets/{one-light-C9JMU1Cx.js → one-light-B7rMc__c.js} +0 -0
  876. /package/dist/web/assets/{openscad-C0I9CtuA.js → openscad-Cwes8bKO.js} +0 -0
  877. /package/dist/web/assets/{pascal-D0z4DJnY.js → pascal-DMt-6tdZ.js} +0 -0
  878. /package/dist/web/assets/{pkl-CITYNGVz.js → pkl-QBTyYQmB.js} +0 -0
  879. /package/dist/web/assets/{plastic-Bf0T6rmg.js → plastic-BTSUp8Fk.js} +0 -0
  880. /package/dist/web/assets/{plsql-Chr907pu.js → plsql-DQv3IFXP.js} +0 -0
  881. /package/dist/web/assets/{po-07U75CYV.js → po-CNwZx4tW.js} +0 -0
  882. /package/dist/web/assets/{poimandres-B0T4qwXY.js → poimandres-8Os7Qequ.js} +0 -0
  883. /package/dist/web/assets/{polar-BvNJMMV5.js → polar-b4yK8oD8.js} +0 -0
  884. /package/dist/web/assets/{portal-container-context-Bqn516X4.js → portal-container-context-BarKmT4S.js} +0 -0
  885. /package/dist/web/assets/{postcss-BSdf-zzo.js → postcss-sFctwpxx.js} +0 -0
  886. /package/dist/web/assets/{powerquery-B2Ad_HK8.js → powerquery-Cg_WrtuN.js} +0 -0
  887. /package/dist/web/assets/{powershell-DO5WY2v2.js → powershell-C7Ifz95h.js} +0 -0
  888. /package/dist/web/assets/{prisma-BfaRPYzs.js → prisma-Z52HUJzQ.js} +0 -0
  889. /package/dist/web/assets/{prolog-Cz0Nue9e.js → prolog-DLqW-zR1.js} +0 -0
  890. /package/dist/web/assets/{proto-FVleUZJO.js → proto-BOIzxCCJ.js} +0 -0
  891. /package/dist/web/assets/{puppet-BEX5o7hE.js → puppet-De7TjZIf.js} +0 -0
  892. /package/dist/web/assets/{purescript-BZX6Kw4j.js → purescript-R76ou1WT.js} +0 -0
  893. /package/dist/web/assets/{python-CO89UIxE.js → python-Dprm0tNP.js} +0 -0
  894. /package/dist/web/assets/{qmldir-DH526DWB.js → qmldir-Clp_jpNw.js} +0 -0
  895. /package/dist/web/assets/{qss-wp8im4Iz.js → qss-eQPYYzSo.js} +0 -0
  896. /package/dist/web/assets/{r-F9n--bvq.js → r-CCcRHIf5.js} +0 -0
  897. /package/dist/web/assets/{racket-BQvbOE5D.js → racket-CzE472yp.js} +0 -0
  898. /package/dist/web/assets/{raku-B0iWSynj.js → raku-DQwXrTSi.js} +0 -0
  899. /package/dist/web/assets/{react-Bcm1Oab0.js → react-Bghu0NUO.js} +0 -0
  900. /package/dist/web/assets/{red-Cm00r9eI.js → red-KCS6wyop.js} +0 -0
  901. /package/dist/web/assets/{reg-CBuhna22.js → reg-CcrAddUh.js} +0 -0
  902. /package/dist/web/assets/{regexp-C9j1_6oU.js → regexp-DDbud-Ri.js} +0 -0
  903. /package/dist/web/assets/{rel-BYzlBhbq.js → rel-99GDgaHp.js} +0 -0
  904. /package/dist/web/assets/{resolve-theme-Dm8ehbOv.js → resolve-theme-CW2niGV2.js} +0 -0
  905. /package/dist/web/assets/{riscv-CQQP0Ro9.js → riscv-Dm2eNv0R.js} +0 -0
  906. /package/dist/web/assets/{ron-j1ON9YzM.js → ron-CzFt0ygH.js} +0 -0
  907. /package/dist/web/assets/{rose-pine-Cbri3jon.js → rose-pine-Ck6lCrCP.js} +0 -0
  908. /package/dist/web/assets/{rose-pine-dawn-BMuvKrGo.js → rose-pine-dawn-vtALRJNj.js} +0 -0
  909. /package/dist/web/assets/{rose-pine-moon-4biZzaYD.js → rose-pine-moon-DPto8qXw.js} +0 -0
  910. /package/dist/web/assets/{rosmsg-CXx22rtz.js → rosmsg-NtS6429H.js} +0 -0
  911. /package/dist/web/assets/{rust-D28cFIhL.js → rust-BjIXvF9h.js} +0 -0
  912. /package/dist/web/assets/{sass-DtNw4V28.js → sass-CQ23wf5E.js} +0 -0
  913. /package/dist/web/assets/{scala-hv69_YQC.js → scala-LfKLM143.js} +0 -0
  914. /package/dist/web/assets/{scheme-Dtp9B_ng.js → scheme-D3SLBXlF.js} +0 -0
  915. /package/dist/web/assets/{sdbl-DEwEngAE.js → sdbl-ODRd2rGN.js} +0 -0
  916. /package/dist/web/assets/{shellscript-CCOF9tox.js → shellscript-3KB1G_oA.js} +0 -0
  917. /package/dist/web/assets/{slack-dark-DT0E0ABt.js → slack-dark-DTtyWmIy.js} +0 -0
  918. /package/dist/web/assets/{slack-ochin-DHHiQnxo.js → slack-ochin-Bu0PApk3.js} +0 -0
  919. /package/dist/web/assets/{smalltalk-BF_I35xJ.js → smalltalk-haMT-Sbe.js} +0 -0
  920. /package/dist/web/assets/{snazzy-light-Cv7tIZo9.js → snazzy-light-DXJzefE9.js} +0 -0
  921. /package/dist/web/assets/{solarized-dark-wZ5YPCys.js → solarized-dark-B6LyYa18.js} +0 -0
  922. /package/dist/web/assets/{solarized-light-DGDOr1AS.js → solarized-light-QLADebkv.js} +0 -0
  923. /package/dist/web/assets/{solidity-BJknuPqJ.js → solidity-mzfq1aDc.js} +0 -0
  924. /package/dist/web/assets/{splunk-B1ClO_KU.js → splunk-CyH4RWBp.js} +0 -0
  925. /package/dist/web/assets/{sql-CXZ66NtF.js → sql-CWVlT5D3.js} +0 -0
  926. /package/dist/web/assets/{ssh-config-kgM67Sf6.js → ssh-config-DNvQJ1Qx.js} +0 -0
  927. /package/dist/web/assets/{stylus-RcVaInR-.js → stylus-ByQQdtmf.js} +0 -0
  928. /package/dist/web/assets/{swift-Cm0fh2lX.js → swift-D1cpY4ow.js} +0 -0
  929. /package/dist/web/assets/{synthwave-84-CwLiazxr.js → synthwave-84-BDF_-QiW.js} +0 -0
  930. /package/dist/web/assets/{system-verilog-CzYaDVLH.js → system-verilog-BYrkMydC.js} +0 -0
  931. /package/dist/web/assets/{systemd-DbSagfLw.js → systemd-CQm3zyK0.js} +0 -0
  932. /package/dist/web/assets/{talonscript-BCFnWejL.js → talonscript-DMW5CzE1.js} +0 -0
  933. /package/dist/web/assets/{tasl-BUdqtEe1.js → tasl-BhFzMCr2.js} +0 -0
  934. /package/dist/web/assets/{tcl-CR_lTV9N.js → tcl-D7VEAF-9.js} +0 -0
  935. /package/dist/web/assets/{terraform-Bqsha-xe.js → terraform-DdT5A0Vy.js} +0 -0
  936. /package/dist/web/assets/{tokyo-night-Cnuo6JB6.js → tokyo-night-WGLMM6Q9.js} +0 -0
  937. /package/dist/web/assets/{toml-CLFdhT22.js → toml-CZ7ipXHZ.js} +0 -0
  938. /package/dist/web/assets/{tsv-Dw3tLrZN.js → tsv-B1zVvoTr.js} +0 -0
  939. /package/dist/web/assets/{tsx-B8k1sFqw.js → tsx-D4HwRUBq.js} +0 -0
  940. /package/dist/web/assets/{turtle-BMKMfTrj.js → turtle-B4r8KEJH.js} +0 -0
  941. /package/dist/web/assets/{typescript-D38LfGSl.js → typescript-BnHhxMtp.js} +0 -0
  942. /package/dist/web/assets/{typespec-EbgGJHV_.js → typespec-DP2q46GT.js} +0 -0
  943. /package/dist/web/assets/{typst-CQXV2SzX.js → typst-DFsD_yaD.js} +0 -0
  944. /package/dist/web/assets/{use-is-mobile-Dypg-2ZO.js → use-is-mobile-BQ9Bv5Ga.js} +0 -0
  945. /package/dist/web/assets/{use-visual-viewport-Bj3QHRkF.js → use-visual-viewport-CbwnktSG.js} +0 -0
  946. /package/dist/web/assets/{utils-CwNUra6_.js → utils-Bmf_8h7Y.js} +0 -0
  947. /package/dist/web/assets/{v-Ci1jObJJ.js → v-Bji8hSVT.js} +0 -0
  948. /package/dist/web/assets/{vala-C_NdfqrY.js → vala-D3TIgGmU.js} +0 -0
  949. /package/dist/web/assets/{vb-K_r_h_s8.js → vb-DvcxFS2q.js} +0 -0
  950. /package/dist/web/assets/{vendor-xterm-BtjgHRUe.js → vendor-xterm-BqPDsE9b.js} +0 -0
  951. /package/dist/web/assets/{verilog-DQPYLsZI.js → verilog-Dy7cF35d.js} +0 -0
  952. /package/dist/web/assets/{vesper-BrmzEV8s.js → vesper-BzjwUv9J.js} +0 -0
  953. /package/dist/web/assets/{vhdl-CjxQGaH2.js → vhdl-DuFnFNmW.js} +0 -0
  954. /package/dist/web/assets/{viml-CTKJNQH1.js → viml-yAPgKlbz.js} +0 -0
  955. /package/dist/web/assets/{vitesse-black-i-H_3p1i.js → vitesse-black-oSSQdyIZ.js} +0 -0
  956. /package/dist/web/assets/{vitesse-dark-DZC_Yy3_.js → vitesse-dark-BZxwPihB.js} +0 -0
  957. /package/dist/web/assets/{vitesse-light-rf4kpmk8.js → vitesse-light-uIigycvt.js} +0 -0
  958. /package/dist/web/assets/{vyper-BLnOw4Nf.js → vyper-CX3NAxm5.js} +0 -0
  959. /package/dist/web/assets/{wasm-DbLMmiW0.js → wasm-6mEOOvVa.js} +0 -0
  960. /package/dist/web/assets/{wasm-CWeHvGNG.js → wasm-D9td37qO.js} +0 -0
  961. /package/dist/web/assets/{wenyan-CLwdRuzd.js → wenyan-lwNIHgk6.js} +0 -0
  962. /package/dist/web/assets/{wgsl-CBTDMVJR.js → wgsl-DQAzCfog.js} +0 -0
  963. /package/dist/web/assets/{wikitext-CQHrF84e.js → wikitext-DTXmt5NE.js} +0 -0
  964. /package/dist/web/assets/{wit-8xdbdipU.js → wit-Bdw_7WDH.js} +0 -0
  965. /package/dist/web/assets/{wolfram-tFwx32a_.js → wolfram-DqyHDZ07.js} +0 -0
  966. /package/dist/web/assets/{yaml-BP8N91fU.js → yaml-CPXhdByd.js} +0 -0
  967. /package/dist/web/assets/{zenscript-B10Pj7JT.js → zenscript-6s_i5zek.js} +0 -0
  968. /package/dist/web/assets/{zig-BZKcTtrK.js → zig-B2htezJ_.js} +0 -0
@@ -10,7 +10,7 @@ import type { VscodeApi } from "./git-exec.ts";
10
10
  import {
11
11
  assertSafeFilePaths, assertValidHash, assertValidRef, assertValidRemote, spawnGit,
12
12
  } from "./git-exec.ts";
13
- import { authHeaders, getBaseUrl, initPpmApi, resolveProjectName } from "./ppm-api.ts";
13
+ import { authHeaders, getBaseUrl, initPpmApi, resolveFileTab } from "./ppm-api.ts";
14
14
  import { registerBlameView } from "./blame-view.ts";
15
15
  import { registerFileHistoryView } from "./file-history-view.ts";
16
16
  import { registerCompareView } from "./compare-view.ts";
@@ -117,10 +117,9 @@ function openGitGraph(
117
117
  case "openDiff": {
118
118
  assertSafeFilePaths([msg.filePath], pp);
119
119
  const fileName = msg.filePath.split(/[\\/]/).pop() || msg.filePath;
120
- const projectName = await resolveProjectName(pp);
121
- await vscode.window.openTab("git-diff", `${fileName} (${msg.hash.substring(0, 7)})`, projectName, {
122
- projectName,
123
- filePath: msg.filePath,
120
+ const target = await resolveFileTab(pp, msg.filePath);
121
+ await vscode.window.openTab("git-diff", `${fileName} (${msg.hash.substring(0, 7)})`, target.projectName, {
122
+ ...target,
124
123
  ...(msg.parentHash ? { ref1: msg.parentHash } : {}),
125
124
  ...(msg.hash !== "uncommitted" && msg.hash !== "staged" ? { ref2: msg.hash } : {}),
126
125
  });
@@ -198,11 +197,8 @@ function openGitGraph(
198
197
  break;
199
198
  case "openFile": {
200
199
  assertSafeFilePaths([msg.filePath], pp);
201
- const projectName = await resolveProjectName(pp);
202
- await vscode.window.openTab("editor", msg.filePath, projectName, {
203
- projectName,
204
- filePath: msg.filePath,
205
- });
200
+ const target = await resolveFileTab(pp, msg.filePath);
201
+ await vscode.window.openTab("editor", msg.filePath, target.projectName, target);
206
202
  break;
207
203
  }
208
204
  case "requestWorktrees":
@@ -348,12 +344,9 @@ function openGitGraph(
348
344
  break;
349
345
  case "openConflictFile": {
350
346
  assertSafeFilePaths([msg.filePath], pp);
351
- const projectName = await resolveProjectName(pp);
347
+ const target = await resolveFileTab(pp, msg.filePath);
352
348
  // Opens as conflict-editor tab (Phase 4 will wire this properly)
353
- await vscode.window.openTab("conflict-editor", `Conflict: ${msg.filePath.split(/[\\/]/).pop()}`, projectName, {
354
- projectName,
355
- filePath: msg.filePath,
356
- });
349
+ await vscode.window.openTab("conflict-editor", `Conflict: ${msg.filePath.split(/[\\/]/).pop()}`, target.projectName, target);
357
350
  break;
358
351
  }
359
352
  case "openSourceControl": {
@@ -402,6 +395,41 @@ async function handleRepoInfo(
402
395
  });
403
396
  }
404
397
 
398
+ /**
399
+ * Which commit-window requests a panel still wants the answers to.
400
+ *
401
+ * Scrolling fires one `requestCommits` per page and each one spawns two git
402
+ * processes — the log and the lines-changed pass — with nothing stopping the
403
+ * previous pair. Pages are additive, so a late *append* is still wanted; what
404
+ * is not is anything from before the list was last thrown away. Switching
405
+ * branch or refreshing sends `skip: 0`, which replaces the list, and an
406
+ * in-flight page-two append landing after that appends the old branch's
407
+ * commits to the new branch's first page.
408
+ *
409
+ * So responses are dropped by generation rather than cancelled — there is no
410
+ * abort to reach for through the extension spawn API — and the second pass is
411
+ * skipped outright when it is already stale, which is also what keeps the
412
+ * process count down while somebody scrolls.
413
+ */
414
+ export interface CommitRequestState {
415
+ latest: number;
416
+ lastReset: number;
417
+ }
418
+
419
+ /** Record a new request and return its generation. */
420
+ export function beginCommitRequest(state: CommitRequestState, skip: number): number {
421
+ state.latest += 1;
422
+ if (skip === 0) state.lastReset = state.latest;
423
+ return state.latest;
424
+ }
425
+
426
+ /** True when the list this request was answering has since been replaced. */
427
+ export function isStaleCommitRequest(state: CommitRequestState, generation: number): boolean {
428
+ return generation < state.lastReset;
429
+ }
430
+
431
+ const commitRequests = new WeakMap<object, CommitRequestState>();
432
+
405
433
  async function handleRequestCommits(
406
434
  vscode: VscodeApi,
407
435
  panel: ReturnType<VscodeApi["window"]["createWebviewPanel"]>,
@@ -413,25 +441,22 @@ async function handleRequestCommits(
413
441
  ): Promise<void> {
414
442
  const { parseGitLog } = await import("./git-log-parser.ts");
415
443
  const settings = context ? getSettings(context) : DEFAULT_SETTINGS;
416
- const orderFlag = settings.commitOrdering === "date" ? "--date-order"
417
- : settings.commitOrdering === "author-date" ? "--author-date-order"
418
- : "--topo-order";
419
- const args = [
420
- "log",
421
- `--format=%H%n%P%n%an%n%ae%n%at%n%cn%n%ce%n%ct%n%D%n%s%n<END_COMMIT>`,
422
- orderFlag,
423
- `-n`, String(maxCommits),
424
- ];
425
- if (settings.firstParentOnly) args.push("--first-parent");
426
- if (skip > 0) args.push(`--skip=${skip}`);
427
- if (branch && branch !== "all") {
428
- args.push(branch);
429
- } else {
430
- // Exclude stash refs — stashes are loaded separately via handleStashes
431
- args.push("--exclude=refs/stash", "--all");
444
+ const window = { maxCommits, skip, branch, firstParentOnly: settings.firstParentOnly,
445
+ ordering: settings.commitOrdering };
446
+
447
+ let requests = commitRequests.get(panel);
448
+ if (!requests) {
449
+ requests = { latest: 0, lastReset: 0 };
450
+ commitRequests.set(panel, requests);
432
451
  }
452
+ const generation = beginCommitRequest(requests, skip);
433
453
 
434
- const result = await spawnGit(vscode, args, projectPath);
454
+ const result = await spawnGit(
455
+ vscode,
456
+ logArgs(window, `--format=%H%n%P%n%an%n%ae%n%at%n%cn%n%ce%n%ct%n%D%n%s%n<END_COMMIT>`),
457
+ projectPath,
458
+ );
459
+ if (isStaleCommitRequest(requests, generation)) return;
435
460
  const commits = parseGitLog(result.stdout);
436
461
 
437
462
  await panel.webview.postMessage({
@@ -439,14 +464,66 @@ async function handleRequestCommits(
439
464
  data: commits,
440
465
  append: skip > 0,
441
466
  });
467
+
468
+ // Lines changed, in a second pass. Asking the first log for --shortstat makes
469
+ // git diff every commit in the window, and that cost would land before the
470
+ // graph could be drawn at all; this way the numbers fill into their column a
471
+ // moment after the rows are already on screen.
472
+ try {
473
+ const { parseShortstat } = await import("./shortstat-parser.ts");
474
+ const stats = await spawnGit(vscode, logArgs(window, "--format=%H", "--shortstat"), projectPath);
475
+ if (isStaleCommitRequest(requests, generation)) return;
476
+ await panel.webview.postMessage({
477
+ command: "loadCommitStats",
478
+ data: parseShortstat(stats.stdout),
479
+ });
480
+ } catch {
481
+ // A column of numbers is not worth an error banner over the graph.
482
+ }
483
+ }
484
+
485
+ export interface LogWindow {
486
+ maxCommits: number;
487
+ skip: number;
488
+ branch?: string;
489
+ firstParentOnly?: boolean;
490
+ ordering?: string;
491
+ }
492
+
493
+ /**
494
+ * The commit window, as git arguments.
495
+ *
496
+ * Shared so the stats pass sees exactly the same commits as the graph: the two
497
+ * are joined by hash, so a different window would silently leave rows blank.
498
+ * Exported for its own test — the branch in it comes from a webview.
499
+ */
500
+ export function logArgs(window: LogWindow, ...format: string[]): string[] {
501
+ const orderFlag = window.ordering === "date" ? "--date-order"
502
+ : window.ordering === "author-date" ? "--author-date-order"
503
+ : "--topo-order";
504
+ const args = ["log", ...format, orderFlag, "-n", String(window.maxCommits)];
505
+ if (window.firstParentOnly) args.push("--first-parent");
506
+ if (window.skip > 0) args.push(`--skip=${window.skip}`);
507
+ if (window.branch && window.branch !== "all") {
508
+ // The branch came from a webview. git happens to reject a dash-leading
509
+ // refname on its own, but that is a coincidence rather than a design, and
510
+ // this window is now spawned twice per request — once for the graph and
511
+ // once for the stats — so the value reaches git on two paths.
512
+ args.push(assertValidRef(window.branch, "branch"));
513
+ } else {
514
+ // Exclude stash refs — stashes are loaded separately via handleStashes
515
+ args.push("--exclude=refs/stash", "--all");
516
+ }
517
+ return args;
442
518
  }
443
519
 
444
520
  async function handleCommitDetails(
445
521
  vscode: VscodeApi,
446
522
  panel: ReturnType<VscodeApi["window"]["createWebviewPanel"]>,
447
523
  projectPath: string,
448
- hash: string,
524
+ rawHash: string,
449
525
  ): Promise<void> {
526
+ const hash = assertValidHash(rawHash);
450
527
  const result = await spawnGit(vscode, [
451
528
  "show", "--numstat", "--format=%H%n%P%n%an%n%ae%n%at%n%cn%n%ce%n%ct%n%B%n<END_MSG>", hash,
452
529
  ], projectPath);
@@ -749,7 +826,32 @@ function parseStashes(stdout: string): import("./types.ts").Stash[] {
749
826
  });
750
827
  }
751
828
 
752
- function parseCommitDetail(stdout: string): import("./types.ts").CommitDetail {
829
+ /**
830
+ * Files listed for one commit. The uncommitted-status handler two functions
831
+ * away already caps at the same number; this one capped at nothing, and a
832
+ * commit touching ten thousand files became ten thousand objects across
833
+ * `postMessage` and ten thousand rows in one `innerHTML`. A repository you
834
+ * clone can ship that commit.
835
+ *
836
+ * The cap has to be *said*, not just applied: a truncated list rendered as
837
+ * "500 files changed" is a wrong number presented as a fact, which is worse
838
+ * than a slow panel. `filesOmitted` carries what was dropped, the way the
839
+ * message cap appends its own `[… N more characters]`.
840
+ */
841
+ export const MAX_DETAIL_FILES = 500;
842
+
843
+ /**
844
+ * Characters of commit message the panel will render.
845
+ *
846
+ * `%B` is whatever the author wrote and is not bounded by anything — and the
847
+ * message then goes through the issue-link matcher, whose span-overlap check is
848
+ * quadratic in the number of matches. `\b[0-9a-f]{7,40}\b` matches once per
849
+ * hex-looking word, so a body of them is ~n² comparisons. 100 KB is longer than
850
+ * any message anyone reads and short enough that the worst case stays cheap.
851
+ */
852
+ const MAX_MESSAGE_CHARS = 100_000;
853
+
854
+ export function parseCommitDetail(stdout: string): import("./types.ts").CommitDetail {
753
855
  const [headerBlock, rest] = stdout.split("<END_MSG>");
754
856
  const lines = headerBlock.trim().split("\n");
755
857
  const hash = lines[0];
@@ -760,14 +862,24 @@ function parseCommitDetail(stdout: string): import("./types.ts").CommitDetail {
760
862
  const committer = lines[5];
761
863
  const committerEmail = lines[6];
762
864
  const commitDate = parseInt(lines[7], 10);
763
- const message = lines.slice(8).join("\n").trim();
865
+ const full = lines.slice(8).join("\n").trim();
866
+ const message = full.length > MAX_MESSAGE_CHARS
867
+ ? `${full.slice(0, MAX_MESSAGE_CHARS)}\n\n[… ${full.length - MAX_MESSAGE_CHARS} more characters]`
868
+ : full;
764
869
 
765
870
  // Parse --numstat output for file changes (format: "adds\tdels\tpath")
766
871
  const fileChanges: import("./types.ts").FileChange[] = [];
872
+ let filesOmitted = 0;
767
873
  if (rest) {
768
874
  for (const line of rest.trim().split("\n").filter(Boolean)) {
769
875
  const numstatMatch = line.match(/^(\d+|-)\t(\d+|-)\t(.+)$/);
770
876
  if (numstatMatch) {
877
+ // Past the cap the rest of the walk is only counting, so that the panel
878
+ // can say how many files it is not showing.
879
+ if (fileChanges.length >= MAX_DETAIL_FILES) {
880
+ filesOmitted++;
881
+ continue;
882
+ }
771
883
  const additions = numstatMatch[1] === "-" ? 0 : parseInt(numstatMatch[1], 10);
772
884
  const deletions = numstatMatch[2] === "-" ? 0 : parseInt(numstatMatch[2], 10);
773
885
  let filePath = numstatMatch[3];
@@ -794,7 +906,7 @@ function parseCommitDetail(stdout: string): import("./types.ts").CommitDetail {
794
906
  }
795
907
  }
796
908
 
797
- return { hash, parents, author, authorEmail, authorDate, committer, committerEmail, commitDate, message, fileChanges };
909
+ return { hash, parents, author, authorEmail, authorDate, committer, committerEmail, commitDate, message, fileChanges, filesOmitted };
798
910
  }
799
911
 
800
912
  function buildGitActionArgs(action: string, args: Record<string, unknown>): string[] {
@@ -12,7 +12,7 @@ import { assertSafeFilePaths, assertValidHash, assertValidLineNumber, spawnGit }
12
12
  import { openPanel } from "./panel-registry.ts";
13
13
  import { registerViewCommand } from "./register-view-command.ts";
14
14
  import { navigateToPanel, takePendingTarget } from "./panel-nav.ts";
15
- import { resolveProjectName } from "./ppm-api.ts";
15
+ import { resolveFileTab } from "./ppm-api.ts";
16
16
  import { FILE_HISTORY_FORMAT, buildLineRangeArg, parseFileHistory } from "./file-history-parser.ts";
17
17
  import { FILE_PICKER_CSS, FILE_PICKER_HTML, FILE_PICKER_JS, shellHtml } from "./webview-shell.ts";
18
18
 
@@ -99,11 +99,10 @@ export function openFileHistoryView(
99
99
  assertSafeFilePaths([filePath], projectPath);
100
100
  const hash = assertValidHash(msg.hash);
101
101
  const fileName = filePath.split(/[\\/]/).pop() || filePath;
102
- const projectName = await resolveProjectName(projectPath);
102
+ const target = await resolveFileTab(projectPath, filePath);
103
103
  const parent = await spawnGit(vscode, ["rev-parse", `${hash}^`], projectPath);
104
- await vscode.window.openTab("git-diff", `${fileName} (${hash.slice(0, 7)})`, projectName, {
105
- projectName,
106
- filePath,
104
+ await vscode.window.openTab("git-diff", `${fileName} (${hash.slice(0, 7)})`, target.projectName, {
105
+ ...target,
107
106
  ...(parent.exitCode === 0 ? { ref1: parent.stdout.trim() } : {}),
108
107
  ref2: hash,
109
108
  });
@@ -0,0 +1,57 @@
1
+ /**
2
+ * `git-exec.ts` opens with the rule this file enforces: every git argument that
3
+ * originates in a webview passes through one of its `assert*` guards before it
4
+ * reaches `spawn`. The branch in a commit window did not — and since the stats
5
+ * pass was split out, that window is built twice per request, so the value
6
+ * reached git on two paths instead of one.
7
+ *
8
+ * git does reject a dash-leading refname by itself, so nothing was exploitable.
9
+ * The guard is what makes that a property of this code rather than a property
10
+ * of whichever git happens to be installed.
11
+ */
12
+ import { describe, it, expect } from "bun:test";
13
+ import { logArgs } from "./extension.ts";
14
+
15
+ describe("logArgs", () => {
16
+ it("puts a real branch at the end of the arguments", () => {
17
+ const args = logArgs({ maxCommits: 50, skip: 0, branch: "feature/x" }, "--format=%H");
18
+
19
+ expect(args).toEqual(["log", "--format=%H", "--topo-order", "-n", "50", "feature/x"]);
20
+ });
21
+
22
+ it("asks for every ref but the stashes when no branch is named", () => {
23
+ for (const window of [{ maxCommits: 10, skip: 0 }, { maxCommits: 10, skip: 0, branch: "all" }]) {
24
+ expect(logArgs(window, "--format=%H")).toEqual([
25
+ "log", "--format=%H", "--topo-order", "-n", "10", "--exclude=refs/stash", "--all",
26
+ ]);
27
+ }
28
+ });
29
+
30
+ it("carries the window's paging and ordering", () => {
31
+ expect(logArgs({ maxCommits: 20, skip: 40, ordering: "date", firstParentOnly: true }, "--format=%H"))
32
+ .toEqual([
33
+ "log", "--format=%H", "--date-order", "-n", "20", "--first-parent", "--skip=40",
34
+ "--exclude=refs/stash", "--all",
35
+ ]);
36
+ expect(logArgs({ maxCommits: 20, skip: 0, ordering: "author-date" }, "--format=%H"))
37
+ .toContain("--author-date-order");
38
+ });
39
+
40
+ it("refuses a branch git would read as an option", () => {
41
+ expect(() => logArgs({ maxCommits: 10, skip: 0, branch: "--upload-pack=sh" }, "--format=%H"))
42
+ .toThrow(/Invalid git ref/);
43
+ });
44
+
45
+ it("refuses a branch that is really a range", () => {
46
+ // `a..b` is two commits, not one ref: it would silently change which
47
+ // commits the graph and the stats pass are asking about.
48
+ expect(() => logArgs({ maxCommits: 10, skip: 0, branch: "main..evil" }, "--format=%H"))
49
+ .toThrow(/Invalid git ref/);
50
+ });
51
+
52
+ it("refuses a branch with a control character or a revision operator in it", () => {
53
+ for (const branch of ["main\u0000", "main^{tree}", "main:path", "ma in\n--all"]) {
54
+ expect(() => logArgs({ maxCommits: 10, skip: 0, branch }, "--format=%H")).toThrow(/Invalid git ref/);
55
+ }
56
+ });
57
+ });
@@ -2,6 +2,7 @@
2
2
  * Thin client for the PPM HTTP API, used to map a project path to the project
3
3
  * name that `window.openTab` needs. Initialised once from `activate`.
4
4
  */
5
+ import { pickProject, toProjectRelative, type ProjectRef } from "./project-scope.ts";
5
6
  let baseUrl = "";
6
7
  let authToken = "";
7
8
 
@@ -33,16 +34,48 @@ export async function resolveProjectPath(): Promise<string | null> {
33
34
  return null;
34
35
  }
35
36
 
36
- /** Resolve project name from path via PPM API */
37
- export async function resolveProjectName(projectPath: string): Promise<string> {
37
+ /**
38
+ * Resolve the registered project owning `dirPath` via the PPM API.
39
+ *
40
+ * `dirPath` is the panel's git root, which for a container workspace is a
41
+ * *subfolder* of the project — so an exact match is not enough. The basename
42
+ * fallback is kept for the case where the API cannot be reached at all, but it
43
+ * is a guess: it names no registered project, so anything built from it will
44
+ * 404.
45
+ */
46
+ export async function resolveProject(dirPath: string): Promise<ProjectRef> {
38
47
  try {
39
48
  const res = await fetch(`${baseUrl}/api/projects`, authHeaders());
40
- const json = await res.json() as { ok: boolean; data?: { name: string; path: string }[] };
49
+ const json = await res.json() as { ok: boolean; data?: ProjectRef[] };
41
50
  if (json.ok && json.data) {
42
- const match = json.data.find((p) => p.path === projectPath);
43
- if (match) return match.name;
51
+ const match = pickProject(json.data, dirPath);
52
+ if (match) return match;
44
53
  }
45
54
  } catch {}
46
55
  // Fallback to directory name
47
- return projectPath.split(/[\\/]/).filter(Boolean).pop() || "project";
56
+ return { name: dirPath.split(/[\\/]/).filter(Boolean).pop() || "project", path: dirPath };
57
+ }
58
+
59
+ /** Resolve project name from path via PPM API */
60
+ export async function resolveProjectName(dirPath: string): Promise<string> {
61
+ return (await resolveProject(dirPath)).name;
62
+ }
63
+
64
+ /**
65
+ * What a tab needs to open a file git named: the project it belongs to, and the
66
+ * path expressed relative to *that* rather than to the repository git ran in.
67
+ *
68
+ * Both come from one lookup on purpose — the name and the rebasing depend on
69
+ * the same answer, and resolving them separately is how one of them gets
70
+ * forgotten.
71
+ */
72
+ export async function resolveFileTab(
73
+ gitRoot: string,
74
+ filePath: string,
75
+ ): Promise<{ projectName: string; filePath: string }> {
76
+ const project = await resolveProject(gitRoot);
77
+ return {
78
+ projectName: project.name,
79
+ filePath: toProjectRelative(project.path, gitRoot, filePath),
80
+ };
48
81
  }
@@ -0,0 +1,77 @@
1
+ import { describe, expect, test } from "bun:test";
2
+ import { pickProject, toProjectRelative } from "./project-scope.ts";
3
+
4
+ const projects = [
5
+ { name: "workspace", path: "/home/me/work" },
6
+ { name: "inner", path: "/home/me/work/inner" },
7
+ { name: "other", path: "/home/me/other" },
8
+ ];
9
+
10
+ describe("pickProject", () => {
11
+ test("matches a project by its own path", () => {
12
+ expect(pickProject(projects, "/home/me/other")?.name).toBe("other");
13
+ });
14
+
15
+ test("finds the project containing a repository one level down", () => {
16
+ // The whole point: a panel is opened on the repository, and the project it
17
+ // belongs to is what every API route and tab is keyed by.
18
+ expect(pickProject(projects, "/home/me/work/service-a")?.name).toBe("workspace");
19
+ });
20
+
21
+ test("prefers the innermost project when they nest", () => {
22
+ expect(pickProject(projects, "/home/me/work/inner/pkg")?.name).toBe("inner");
23
+ });
24
+
25
+ test("does not match a sibling that merely shares a prefix", () => {
26
+ expect(pickProject(projects, "/home/me/work-evil/repo")).toBeNull();
27
+ });
28
+
29
+ test("ignores a trailing separator on either side", () => {
30
+ expect(pickProject([{ name: "w", path: "/home/me/work/" }], "/home/me/work")?.name).toBe("w");
31
+ });
32
+
33
+ test("treats a Windows path the same as a POSIX one", () => {
34
+ const win = [{ name: "w", path: "C:\\Users\\me\\work" }];
35
+ expect(pickProject(win, "C:\\Users\\me\\work\\service-a")?.name).toBe("w");
36
+ });
37
+
38
+ test("answers null when nothing owns the path", () => {
39
+ expect(pickProject(projects, "/tmp/elsewhere")).toBeNull();
40
+ });
41
+ });
42
+
43
+ describe("toProjectRelative", () => {
44
+ test("is the identity when the repository is the project", () => {
45
+ // Every ordinary project takes this path, so it must not be able to change.
46
+ expect(toProjectRelative("/home/me/work", "/home/me/work", "src/index.ts")).toBe("src/index.ts");
47
+ });
48
+
49
+ test("prefixes the repository's own directory when it is nested", () => {
50
+ expect(toProjectRelative("/home/me/work", "/home/me/work/service-a", "src/index.ts")).toBe(
51
+ "service-a/src/index.ts",
52
+ );
53
+ });
54
+
55
+ test("keeps a repository two levels down whole", () => {
56
+ expect(toProjectRelative("/home/me/work", "/home/me/work/apps/api", "main.go")).toBe(
57
+ "apps/api/main.go",
58
+ );
59
+ });
60
+
61
+ test("strips a leading ./ and normalises separators", () => {
62
+ expect(toProjectRelative("/home/me/work", "/home/me/work/svc", "./src\\a.ts")).toBe(
63
+ "svc/src/a.ts",
64
+ );
65
+ });
66
+
67
+ test("leaves the path alone when the repository is not inside the project", () => {
68
+ // A worktree opened from outside the project: there is no prefix that would
69
+ // make the path meaningful, and inventing one would name a file that is not
70
+ // there.
71
+ expect(toProjectRelative("/home/me/work", "/tmp/wt", "src/index.ts")).toBe("src/index.ts");
72
+ });
73
+
74
+ test("answers the repository directory itself for an empty path", () => {
75
+ expect(toProjectRelative("/home/me/work", "/home/me/work/svc", "")).toBe("svc");
76
+ });
77
+ });
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Which PPM project a panel's git root belongs to, and how to address a file
3
+ * inside it.
4
+ *
5
+ * A panel is opened on the *repository*. For nearly every project that is the
6
+ * project folder itself, but a workspace folder can be a container whose
7
+ * children are the repositories — so the path a panel was handed is often a
8
+ * subfolder of the project. Two things follow, and both are silent failures
9
+ * otherwise:
10
+ *
11
+ * - The project name is not the basename of that path. It is the name of the
12
+ * registered project *containing* it, because that is what `/api/projects/:name`
13
+ * and `window.openTab` are keyed by; the basename fallback would build URLs
14
+ * for a project that does not exist and 404.
15
+ * - A file path git reported is relative to the repository, while a tab's
16
+ * `filePath` is relative to the project. Opening a diff without rebasing it
17
+ * lands one or more directories too high and shows an empty buffer for a file
18
+ * that plainly exists.
19
+ *
20
+ * Pure on purpose: the fetch-backed wrappers live in `ppm-api.ts`.
21
+ */
22
+
23
+ export interface ProjectRef {
24
+ name: string;
25
+ path: string;
26
+ }
27
+
28
+ /** Trailing separators off, backslashes to forward slashes. */
29
+ function normalizeDir(path: string): string {
30
+ return path.replace(/\\/g, "/").replace(/\/+$/, "");
31
+ }
32
+
33
+ /**
34
+ * The registered project that owns `dirPath`, or null when none does.
35
+ *
36
+ * Longest match wins: a project nested inside another one is the more specific
37
+ * answer, and taking the first hit would attribute its repositories to the
38
+ * outer project.
39
+ */
40
+ export function pickProject(projects: ProjectRef[], dirPath: string): ProjectRef | null {
41
+ const target = normalizeDir(dirPath);
42
+ let best: ProjectRef | null = null;
43
+ let bestLength = -1;
44
+ for (const project of projects) {
45
+ const root = normalizeDir(project.path);
46
+ if (target !== root && !target.startsWith(`${root}/`)) continue;
47
+ if (root.length > bestLength) {
48
+ best = project;
49
+ bestLength = root.length;
50
+ }
51
+ }
52
+ return best;
53
+ }
54
+
55
+ /**
56
+ * A repository-relative file path, expressed relative to the project root.
57
+ *
58
+ * The identity when the repository *is* the project — which is the case worth
59
+ * protecting, since it is every ordinary project.
60
+ */
61
+ export function toProjectRelative(projectPath: string, gitRoot: string, filePath: string): string {
62
+ const root = normalizeDir(projectPath);
63
+ const repo = normalizeDir(gitRoot);
64
+ const file = filePath.replace(/\\/g, "/").replace(/^\.?\//, "");
65
+ if (repo === root) return file;
66
+ if (!repo.startsWith(`${root}/`)) return file;
67
+ const prefix = repo.slice(root.length + 1);
68
+ return file ? `${prefix}/${file}` : prefix;
69
+ }
@@ -0,0 +1,53 @@
1
+ import { describe, it, expect } from "bun:test";
2
+ import { parseShortstat } from "./shortstat-parser.ts";
3
+
4
+ const A = "a".repeat(40);
5
+ const B = "b".repeat(40);
6
+ const C = "c".repeat(40);
7
+
8
+ describe("parseShortstat", () => {
9
+ it("reads insertions and deletions", () => {
10
+ const out = parseShortstat(`${A}\n 3 files changed, 12 insertions(+), 4 deletions(-)\n`);
11
+ expect(out[A]).toEqual({ files: 3, insertions: 12, deletions: 4 });
12
+ });
13
+
14
+ it("handles a commit that only adds, and one that only deletes", () => {
15
+ const out = parseShortstat(
16
+ `${A}\n 1 file changed, 2 insertions(+)\n\n${B}\n 1 file changed, 7 deletions(-)\n`,
17
+ );
18
+ expect(out[A]).toEqual({ files: 1, insertions: 2, deletions: 0 });
19
+ expect(out[B]).toEqual({ files: 1, insertions: 0, deletions: 7 });
20
+ });
21
+
22
+ it("leaves a merge commit out rather than giving it zeroes", () => {
23
+ // git prints no diffstat for a merge by default. Absent and 0/0 are
24
+ // different things: one is "not computed", the other is "changed nothing".
25
+ const out = parseShortstat(`${A}\n\n${B}\n 2 files changed, 1 insertion(+)\n`);
26
+ expect(out[A]).toBeUndefined();
27
+ expect(out[B]).toEqual({ files: 2, insertions: 1, deletions: 0 });
28
+ });
29
+
30
+ it("keeps each stat with the hash printed before it", () => {
31
+ const out = parseShortstat(
32
+ `${A}\n 1 file changed, 1 insertion(+)\n\n${B}\n 2 files changed, 2 insertions(+)\n\n${C}\n 3 files changed, 3 deletions(-)\n`,
33
+ );
34
+ expect(out[A]!.insertions).toBe(1);
35
+ expect(out[B]!.insertions).toBe(2);
36
+ expect(out[C]!.deletions).toBe(3);
37
+ });
38
+
39
+ it("ignores a stat line with no hash before it", () => {
40
+ const out = parseShortstat(" 9 files changed, 9 insertions(+)\n");
41
+ expect(Object.keys(out)).toEqual([]);
42
+ });
43
+
44
+ it("ignores anything that is not a full hash", () => {
45
+ // A short hash in a commit message must not be mistaken for a record start.
46
+ const out = parseShortstat(`8abb115\n 1 file changed, 1 insertion(+)\n`);
47
+ expect(Object.keys(out)).toEqual([]);
48
+ });
49
+
50
+ it("is empty for empty output", () => {
51
+ expect(parseShortstat("")).toEqual({});
52
+ });
53
+ });
@@ -0,0 +1,45 @@
1
+ /**
2
+ * `git log --format=%H --shortstat` into a hash → lines-changed map.
3
+ *
4
+ * A second pass rather than `--shortstat` on the main log: adding it there costs
5
+ * git a diff per commit (~100ms for 300 commits on a 2k-commit repository, and
6
+ * far more on a large one) and that cost would land *before* the graph could be
7
+ * drawn at all. This runs after the commits have already been sent, so the
8
+ * numbers fill in a moment later and nothing waits for them.
9
+ *
10
+ * A merge commit produces no diffstat at all, which is git's default and not an
11
+ * error — it is simply absent from the map, and the column stays blank for it.
12
+ */
13
+
14
+ export interface CommitStat {
15
+ files: number;
16
+ insertions: number;
17
+ deletions: number;
18
+ }
19
+
20
+ /** " 3 files changed, 12 insertions(+), 4 deletions(-)" — any of the three clauses may be missing. */
21
+ const SHORTSTAT = /^\s*(\d+) files? changed(?:, (\d+) insertions?\(\+\))?(?:, (\d+) deletions?\(-\))?/;
22
+ const FULL_HASH = /^[0-9a-f]{40}$/;
23
+
24
+ export function parseShortstat(stdout: string): Record<string, CommitStat> {
25
+ const stats: Record<string, CommitStat> = {};
26
+ let hash: string | null = null;
27
+
28
+ for (const line of stdout.split("\n")) {
29
+ if (FULL_HASH.test(line.trim())) {
30
+ hash = line.trim();
31
+ continue;
32
+ }
33
+ const match = SHORTSTAT.exec(line);
34
+ // The stat follows the hash it belongs to, so a stat with no hash before it
35
+ // is not ours — better to drop it than to attach it to the wrong commit.
36
+ if (!match || !hash) continue;
37
+ stats[hash] = {
38
+ files: Number(match[1]),
39
+ insertions: match[2] ? Number(match[2]) : 0,
40
+ deletions: match[3] ? Number(match[3]) : 0,
41
+ };
42
+ hash = null;
43
+ }
44
+ return stats;
45
+ }
@@ -67,6 +67,8 @@ export interface CommitDetail {
67
67
  message: string;
68
68
  parents: string[];
69
69
  fileChanges: FileChange[];
70
+ /** Files the `MAX_DETAIL_FILES` cap dropped, so the panel can say it capped. */
71
+ filesOmitted: number;
70
72
  }
71
73
 
72
74
  export interface FileChange {