@hienlh/ppm 0.19.12 → 0.20.1
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.
- package/CHANGELOG.md +36 -0
- package/CLAUDE.md +8 -1
- package/assets/skills/ppm/SKILL.md +1 -1
- package/assets/skills/ppm/references/http-api.md +4 -1
- package/dist/web/assets/accounts-settings-section-_sG1AqtH.js +1 -0
- package/dist/web/assets/{ai-resource-editor-CqL-X2zu.js → ai-resource-editor-BLctP1Pr.js} +1 -1
- package/dist/web/assets/ai-settings-section-0hSDp7xx.js +1 -0
- package/dist/web/assets/{ai-settings-section-CcqokdzF.js → ai-settings-section-CTEU2uGa.js} +1 -1
- package/dist/web/assets/{angular-html-C8nsn2VC.js → angular-html-BtJLNcMw.js} +1 -1
- package/dist/web/assets/{angular-ts-Caw9nRCH.js → angular-ts-CQiu5F_W.js} +1 -1
- package/dist/web/assets/api-client-QfreGirP.js +1 -0
- package/dist/web/assets/api-settings-D18Q4Ocp.js +1 -0
- package/dist/web/assets/{api-themes-BoOJPqwM.js → api-themes-sSv-6OLk.js} +1 -1
- package/dist/web/assets/{apl-Dhu1LORF.js → apl-CKZvgs-w.js} +1 -1
- package/dist/web/assets/{appearance-settings-section-2hZBnpPS.js → appearance-settings-section-BkcoSV0E.js} +1 -1
- package/dist/web/assets/architecture-PBZL5I3N-DfR8k8Bc.js +1 -0
- package/dist/web/assets/{astro-DwkX9sLZ.js → astro-D0b8ssLD.js} +1 -1
- package/dist/web/assets/{audio-preview-CkGZO8Uy.js → audio-preview-B4E5_7TW.js} +1 -1
- package/dist/web/assets/{blade-D1fC9Osx.js → blade-DOIpINLw.js} +1 -1
- package/dist/web/assets/{bsl-pur-PRip.js → bsl-CJ7_JlQ8.js} +1 -1
- package/dist/web/assets/{button-2WCAS8dI.js → button-DX32ffge.js} +1 -1
- package/dist/web/assets/{cairo-DDJs9amR.js → cairo-5CpV2T1P.js} +1 -1
- package/dist/web/assets/chat-tab-CJi4uYb9.js +15 -0
- package/dist/web/assets/{cobol-Bo0usdoM.js → cobol-BreMVrtc.js} +1 -1
- package/dist/web/assets/code-editor-C4kKhamq.js +7 -0
- package/dist/web/assets/{coffee-DBBsbX1e.js → coffee-D7DoKh5b.js} +1 -1
- package/dist/web/assets/{conflict-editor-NqFAJP47.js → conflict-editor-BEULKwHk.js} +1 -1
- package/dist/web/assets/{context-menu-C13b1uT3.js → context-menu-CJL8L98s.js} +1 -1
- package/dist/web/assets/{cpp-6CTO78A-.js → cpp-BnWeWAoE.js} +1 -1
- package/dist/web/assets/{crystal-DAlvpAP7.js → crystal-D2pJbFUn.js} +1 -1
- package/dist/web/assets/{csv-preview-Dvriy18_.js → csv-preview-k3eM8nFf.js} +1 -1
- package/dist/web/assets/{data-grid-overlay-editor-iRrpAV0e.js → data-grid-overlay-editor-CbBkhhJa.js} +1 -1
- package/dist/web/assets/{database-viewer-Bs2RMm5a.js → database-viewer-Cslir1dr.js} +1 -1
- package/dist/web/assets/diff-viewer-DzAIvBbn.js +4 -0
- package/dist/web/assets/{docx-preview-Bgw838ry.js → docx-preview-Xy7SZ7Vf.js} +1 -1
- package/dist/web/assets/{edge-D0tZrpC7.js → edge-aqGMtbY3.js} +1 -1
- package/dist/web/assets/{edit-diff-preview-DUgmjNre.js → edit-diff-preview-xdDQvPhs.js} +2 -2
- package/dist/web/assets/{elixir-C1E6-o4G.js → elixir-CsYMBLc5.js} +1 -1
- package/dist/web/assets/{elm-BKyTfeQX.js → elm-BU8C2gFp.js} +1 -1
- package/dist/web/assets/{erb-Cdnr4BMI.js → erb-Z_E49ab8.js} +1 -1
- package/dist/web/assets/{erlang-N1237mFq.js → erlang-BRqOjXH9.js} +1 -1
- package/dist/web/assets/{esm-ClNnmD9t.js → esm-B-vXxHUd.js} +1 -1
- package/dist/web/assets/{explorer-body-DfWunSf9.js → explorer-body-D6H-4cz9.js} +2 -2
- package/dist/web/assets/explorer-window-content-C5W_JzCz.js +1 -0
- package/dist/web/assets/{extension-manager-section-Zc9yag2c.js → extension-manager-section-DwicI3CA.js} +1 -1
- package/dist/web/assets/{extension-webview-B5FayDPz.js → extension-webview-Z3HhC8Pd.js} +1 -1
- package/dist/web/assets/{files-settings-section-CxAtO3GL.js → files-settings-section-ByV7bRbB.js} +1 -1
- package/dist/web/assets/{fortran-fixed-form-D_f9tVv0.js → fortran-fixed-form-CWbxmDGR.js} +1 -1
- package/dist/web/assets/{fsharp-DEJmdhc2.js → fsharp-DKMYbq6I.js} +1 -1
- package/dist/web/assets/{gdresource-Dmmrx2gP.js → gdresource-B3yFau4V.js} +1 -1
- package/dist/web/assets/{general-settings-section-9DfKrBns.js → general-settings-section-nLksKHur.js} +1 -1
- package/dist/web/assets/{git-commit-qwJ867ig.js → git-commit-BW0p3Ekk.js} +1 -1
- package/dist/web/assets/{git-log-panel-BsmDZurR.js → git-log-panel-iUXltiTB.js} +1 -1
- package/dist/web/assets/{git-rebase-Dkv8Zw86.js → git-rebase-DrvmQCS7.js} +1 -1
- package/dist/web/assets/gitGraph-HDMCJU4V-CPd78aaT.js +1 -0
- package/dist/web/assets/{glide-data-grid-BuYwXIoS.js → glide-data-grid-C1QB4DHt.js} +6 -6
- package/dist/web/assets/{glimmer-js-CcrXn8lQ.js → glimmer-js-BY1XApJJ.js} +1 -1
- package/dist/web/assets/{glimmer-ts-CLab3lU7.js → glimmer-ts-DPZtxF8N.js} +1 -1
- package/dist/web/assets/{glsl-DXhkG9dU.js → glsl-DZ8G_Hvf.js} +1 -1
- package/dist/web/assets/{graphql-Cuqsx8r3.js → graphql-Ck06uCZy.js} +1 -1
- package/dist/web/assets/group-chat-tab-ezXKVVpg.js +1 -0
- package/dist/web/assets/{hack-C_CBVdBc.js → hack-pLogDwAs.js} +1 -1
- package/dist/web/assets/{haml-CBWfzZpv.js → haml-CBqeCQ2A.js} +1 -1
- package/dist/web/assets/{handlebars-4e8OR-VI.js → handlebars-B66JmVtp.js} +1 -1
- package/dist/web/assets/{html-C5X4urn_.js → html-Dk4wmfwC.js} +1 -1
- package/dist/web/assets/{html-derivative-nH-jXfsL.js → html-derivative-CJWqfN51.js} +1 -1
- package/dist/web/assets/{http-CQgaG7eu.js → http-CexhotTh.js} +1 -1
- package/dist/web/assets/{hurl-B8gidJhu.js → hurl-BScKFk3Z.js} +1 -1
- package/dist/web/assets/{hxml-BAK94GX8.js → hxml-DAle7vtu.js} +1 -1
- package/dist/web/assets/{image-preview-1kGj4W9R.js → image-preview-fuU4h2nr.js} +1 -1
- package/dist/web/assets/index-CJWbFurD.js +52 -0
- package/dist/web/assets/index-CoaVwAF6.css +2 -0
- package/dist/web/assets/info-3K5VOQVL-BciNds6R.js +1 -0
- package/dist/web/assets/{jinja-BuAjvj8M.js → jinja-yHpyD80t.js} +1 -1
- package/dist/web/assets/{jira-watcher-section-rJVz40wR.js → jira-watcher-section-DwARwskB.js} +1 -1
- package/dist/web/assets/{jison-Dhhs26-L.js → jison-BY6WLJVu.js} +1 -1
- package/dist/web/assets/{julia-gZavIyll.js → julia-Dd_iYQDT.js} +1 -1
- package/dist/web/assets/{just-DDHrFReO.js → just-BTuUKpxF.js} +1 -1
- package/dist/web/assets/keybindings-store-S7YLGd8B.js +1 -0
- package/dist/web/assets/{keyboard-shortcuts-section-Dv4e3M8h.js → keyboard-shortcuts-section-BoUDvdDy.js} +1 -1
- package/dist/web/assets/{latex-BdGZa8ov.js → latex-Dt3OUlMZ.js} +1 -1
- package/dist/web/assets/{liquid-urFfd9Fr.js → liquid-BxPJU2ix.js} +1 -1
- package/dist/web/assets/{lua-CcS6tnB5.js → lua-DEGIvn7d.js} +1 -1
- package/dist/web/assets/{markdown-renderer-CEloCR06.js → markdown-renderer-DKdfiSIX.js} +3 -3
- package/dist/web/assets/markdown-renderer-DYFmMC_8.js +1 -0
- package/dist/web/assets/{marko-CSQqk4oG.js → marko-BDxwBJur.js} +1 -1
- package/dist/web/assets/{mdc-CYIe80m_.js → mdc-B8aXPTg7.js} +1 -1
- package/dist/web/assets/{media-url-DBmHJRft.js → media-url-BMeBaB0q.js} +1 -1
- package/dist/web/assets/{mobile-bottom-sheet-B3uDlD79.js → mobile-bottom-sheet-CmySDB6I.js} +1 -1
- package/dist/web/assets/mobile-explorer-sheet-CMdqLCV-.js +1 -0
- package/dist/web/assets/{nextflow-C-W8vX8I.js → nextflow-DBVZnnT_.js} +1 -1
- package/dist/web/assets/{nginx-COGi5you.js → nginx-Crpyd-Do.js} +1 -1
- package/dist/web/assets/{nim-CPitYGel.js → nim-BSqTBYDj.js} +1 -1
- package/dist/web/assets/notification-store-DpSYFj36.js +1 -0
- package/dist/web/assets/{notifications-settings-section-B2GkfB0l.js → notifications-settings-section-CIf3-3xd.js} +1 -1
- package/dist/web/assets/{number-overlay-editor-C_eD-Bdr.js → number-overlay-editor-DRjTIcPH.js} +1 -1
- package/dist/web/assets/{overview-panel-Cm2HRtEz.js → overview-panel-DiiA3B_Z.js} +1 -1
- package/dist/web/assets/packet-RMMSAZCW-ClD3l2Bs.js +1 -0
- package/dist/web/assets/{panel-store-BRrnDO_i.js → panel-store-BmdcSBNb.js} +1 -1
- package/dist/web/assets/{pdf-preview-Dmz8jkZZ.js → pdf-preview-C-7IdkIK.js} +1 -1
- package/dist/web/assets/{perl-B0yW3hbb.js → perl-BU0kbB-K.js} +1 -1
- package/dist/web/assets/{php-BNMYN5Jp.js → php-D9n1ikHN.js} +1 -1
- package/dist/web/assets/pie-UPGHQEXC-PU6kD0rW.js +1 -0
- package/dist/web/assets/{postgres-viewer-BtZbfC3f.js → postgres-viewer-BYXFYlLg.js} +3 -3
- package/dist/web/assets/{ppmbot-settings-section-OYfVG5-l.js → ppmbot-settings-section-B9dXvQ6p.js} +1 -1
- package/dist/web/assets/{process-table-DRu3NyO_.js → process-table-B6NeTWt8.js} +1 -1
- package/dist/web/assets/{project-store-BuY7rxn_.js → project-store-wWZ6bjwq.js} +1 -1
- package/dist/web/assets/{proxy-settings-section-xMbrcyr8.js → proxy-settings-section-CUqq7pdU.js} +1 -1
- package/dist/web/assets/{pug-CP5fxsxD.js → pug-BOpaczDr.js} +1 -1
- package/dist/web/assets/{qml-CHGpQosY.js → qml-B-cQXhrg.js} +1 -1
- package/dist/web/assets/{query-audit-section-CC5Mf6qp.js → query-audit-section-C1TYrPIp.js} +1 -1
- package/dist/web/assets/radar-KQ55EAFF-4LzjL0Zt.js +1 -0
- package/dist/web/assets/{razor-Cfe0AYo4.js → razor-DFB0pNCh.js} +1 -1
- package/dist/web/assets/remote-desktop-mobile-sheet-DuKwKe5F.js +2 -0
- package/dist/web/assets/{remote-desktop-mobile-view-B4BSHIxU.js → remote-desktop-mobile-view-DxMTtsa6.js} +1 -1
- package/dist/web/assets/{remote-desktop-readiness-gate-C0d0PSX4.js → remote-desktop-readiness-gate-BwjfLWqg.js} +1 -1
- package/dist/web/assets/{remote-desktop-window-content-DjeCZzqq.js → remote-desktop-window-content-BIl4N5Hn.js} +1 -1
- package/dist/web/assets/{rst-DxSSGshb.js → rst-DAXedsgm.js} +1 -1
- package/dist/web/assets/{ruby-rbK5SsJa.js → ruby-BCO4polC.js} +1 -1
- package/dist/web/assets/{run-in-terminal-DHAvC1AG.js → run-in-terminal-wHKwAnWP.js} +1 -1
- package/dist/web/assets/{sas-DDM28fbb.js → sas-DfB5dcFC.js} +1 -1
- package/dist/web/assets/schedules-settings-section-C0qOb7GI.js +1 -0
- package/dist/web/assets/{scss-TDl-6ro4.js → scss-BknIVgn7.js} +1 -1
- package/dist/web/assets/{send-to-chat-BOyUWNKw.js → send-to-chat-BI7-fFpG.js} +1 -1
- package/dist/web/assets/{separator-BzGoTlR7.js → separator-W_hJcXPk.js} +1 -1
- package/dist/web/assets/{settings-body-CXTQwhbM.js → settings-body-qbrJXX_A.js} +2 -2
- package/dist/web/assets/settings-store-CzLnTR8p.js +2 -0
- package/dist/web/assets/settings-tab-BKRgYVxf.js +1 -0
- package/dist/web/assets/settings-window-content-DWsxJDu-.js +1 -0
- package/dist/web/assets/{shaderlab-CCvmDgGS.js → shaderlab-CPu31TpY.js} +1 -1
- package/dist/web/assets/{shellsession-BzKS9yKh.js → shellsession-CFX4c_TM.js} +1 -1
- package/dist/web/assets/{soy-QfO35nDh.js → soy-rz9hilgm.js} +1 -1
- package/dist/web/assets/{sparql-D29RDfp2.js → sparql-Bo8ZDeqE.js} +1 -1
- package/dist/web/assets/{sql-query-editor-B-VwfyTf.js → sql-query-editor-CsZOpCW3.js} +1 -1
- package/dist/web/assets/{sqlite-viewer-CpUhDEhN.js → sqlite-viewer-DUrnCaP7.js} +1 -1
- package/dist/web/assets/{stata-Be6j_SNv.js → stata-B5J-QMyE.js} +1 -1
- package/dist/web/assets/{streaming-store-9_9j70zt.js → streaming-store-9XVmAMfV.js} +1 -1
- package/dist/web/assets/{surrealql-CykFjgNG.js → surrealql-Caw1ADnG.js} +1 -1
- package/dist/web/assets/{svelte-CdBF8z4-.js → svelte-D3oMVcxz.js} +1 -1
- package/dist/web/assets/{system-monitor-body-DzWXd1wM.js → system-monitor-body-C5cMpg7I.js} +2 -2
- package/dist/web/assets/system-monitor-tab-C66ywbVZ.js +1 -0
- package/dist/web/assets/{system-monitor-window-content-DIIP3dff.js → system-monitor-window-content-CENaXYJ-.js} +1 -1
- package/dist/web/assets/{tab-host-window-content-CLdcz84K.js → tab-host-window-content-HViABGoS.js} +1 -1
- package/dist/web/assets/{tab-store-PZsP5ZwG.js → tab-store-1xYJb0gM.js} +1 -1
- package/dist/web/assets/team-member-sheet-CK6eyBRL.js +2 -0
- package/dist/web/assets/team-member-window-content-D6wxg37P.js +1 -0
- package/dist/web/assets/{templ-BVHE2CNb.js → templ-BAdNyIOL.js} +1 -1
- package/dist/web/assets/{terminal-tab-BeKLpaPM.js → terminal-tab-BmyTawmN.js} +2 -2
- package/dist/web/assets/{tex-C8XwrbBw.js → tex-IQ8mELOR.js} +1 -1
- package/dist/web/assets/tool-cards-y-XJcJHo.js +9 -0
- package/dist/web/assets/treemap-KZPCXAKY-DiumLNMg.js +1 -0
- package/dist/web/assets/{ts-tags-BIHk5AM0.js → ts-tags-D1DDO2jl.js} +1 -1
- package/dist/web/assets/{twig-YcE6Q2Ox.js → twig-C8Fd5RvV.js} +1 -1
- package/dist/web/assets/use-accounts-data-BbOb2QNP.js +1 -0
- package/dist/web/assets/{use-blob-url-De-ZtcpX.js → use-blob-url-CrwoZJUJ.js} +1 -1
- package/dist/web/assets/use-inline-blame-C1G-_NjC.js +8 -0
- package/dist/web/assets/{use-monaco-theme-Kj2OGDlm.js → use-monaco-theme-BkM5rMgL.js} +1 -1
- package/dist/web/assets/{use-open-team-member-DWhhWdmJ.js → use-open-team-member-CSUU7Z8N.js} +1 -1
- package/dist/web/assets/{use-remote-desktop-display-choice-8AkPpM_0.js → use-remote-desktop-display-choice-BT2r1td1.js} +1 -1
- package/dist/web/assets/{use-websocket-kR1omKO1.js → use-websocket-BvVTwMjI.js} +1 -1
- package/dist/web/assets/{vendor-mermaid-CKKtYuTV.js → vendor-mermaid-CfY1-PkA.js} +1 -1
- package/dist/web/assets/{video-preview-BdV7LjbZ.js → video-preview-BEaofjN7.js} +1 -1
- package/dist/web/assets/{vue-q7m01V0h.js → vue-EvccXlkP.js} +1 -1
- package/dist/web/assets/{vue-html-D1y9feOj.js → vue-html-Dg0xUJCh.js} +1 -1
- package/dist/web/assets/{vue-vine-DrIGs03v.js → vue-vine-BdrMg72k.js} +1 -1
- package/dist/web/assets/{window-pip-registry-CSLhJfpL.js → window-pip-registry-CrCYYTTf.js} +1 -1
- package/dist/web/assets/{window-store-DGKf9rPG.js → window-store-D0HbQ1pM.js} +1 -1
- package/dist/web/assets/ws-auth-D111jj32.js +1 -0
- package/dist/web/assets/{xml-oyvc1920.js → xml-MmDclzxK.js} +1 -1
- package/dist/web/assets/{xsl-BbIGdNPF.js → xsl-DQEFs6Dd.js} +1 -1
- package/dist/web/index.html +23 -23
- package/dist/web/sw.js +1 -1
- package/docs/extension-development-guide.md +47 -0
- package/docs/project-roadmap.md +3 -1
- package/package.json +2 -2
- package/packages/ext-git-graph/package.json +23 -5
- package/packages/ext-git-graph/src/blame-parser.test.ts +154 -0
- package/packages/ext-git-graph/src/blame-parser.ts +148 -0
- package/packages/ext-git-graph/src/blame-view.ts +389 -0
- package/packages/ext-git-graph/src/commit-search.test.ts +118 -0
- package/packages/ext-git-graph/src/commit-search.ts +102 -0
- package/packages/ext-git-graph/src/compare-args.test.ts +111 -0
- package/packages/ext-git-graph/src/compare-args.ts +109 -0
- package/packages/ext-git-graph/src/compare-view.ts +343 -0
- package/packages/ext-git-graph/src/extension-integration.test.ts +6 -3
- package/packages/ext-git-graph/src/extension.ts +202 -249
- package/packages/ext-git-graph/src/file-history-parser.test.ts +102 -0
- package/packages/ext-git-graph/src/file-history-parser.ts +89 -0
- package/packages/ext-git-graph/src/file-history-view.ts +386 -0
- package/packages/ext-git-graph/src/git-exec.ts +122 -0
- package/packages/ext-git-graph/src/git-state.ts +81 -0
- package/packages/ext-git-graph/src/panel-nav.ts +65 -0
- package/packages/ext-git-graph/src/panel-registry.ts +72 -0
- package/packages/ext-git-graph/src/ppm-api.ts +48 -0
- package/packages/ext-git-graph/src/rebase-todo.test.ts +196 -0
- package/packages/ext-git-graph/src/rebase-todo.ts +119 -0
- package/packages/ext-git-graph/src/rebase-view.ts +483 -0
- package/packages/ext-git-graph/src/reflog-parser.test.ts +93 -0
- package/packages/ext-git-graph/src/reflog-parser.ts +86 -0
- package/packages/ext-git-graph/src/reflog-view.ts +375 -0
- package/packages/ext-git-graph/src/register-view-command.ts +47 -0
- package/packages/ext-git-graph/src/submodule-parser.test.ts +79 -0
- package/packages/ext-git-graph/src/submodule-parser.ts +77 -0
- package/packages/ext-git-graph/src/types.ts +10 -1
- package/packages/ext-git-graph/src/webview-html.ts +438 -3
- package/packages/ext-git-graph/src/webview-shell.ts +236 -0
- package/src/providers/claude-agent-sdk.ts +7 -0
- package/src/providers/codex-app-server/codex-provider.ts +89 -1
- package/src/server/index.ts +1 -1
- package/src/server/routes/accounts.ts +25 -1
- package/src/server/routes/chat.ts +29 -1
- package/src/server/routes/codex-accounts.ts +41 -1
- package/src/server/routes/git.ts +97 -0
- package/src/server/routes/settings.ts +1 -0
- package/src/server/routes/teams.ts +14 -3
- package/src/services/account-selector.service.ts +125 -20
- package/src/services/account.service.ts +176 -54
- package/src/services/autostart-generator.ts +12 -1
- package/src/services/codex-account.service.ts +87 -13
- package/src/services/db.service.ts +58 -3
- package/src/services/extension.service.ts +55 -5
- package/src/services/git-blame/blame-porcelain.ts +89 -0
- package/src/services/git-blame/git-blame.service.ts +90 -0
- package/src/services/git-hunks/git-hunks.service.ts +264 -0
- package/src/services/git-hunks/unified-diff.ts +359 -0
- package/src/services/picked-account-binding.ts +57 -0
- package/src/services/team-member-activity/member-transcript-tail.ts +64 -0
- package/src/shared/blame.ts +79 -0
- package/src/web/components/chat/chat-history-bar.tsx +34 -5
- package/src/web/components/chat/chat-tab.tsx +120 -3
- package/src/web/components/chat/codex-usage-panel.tsx +132 -14
- package/src/web/components/chat/edit-diff-preview.tsx +14 -7
- package/src/web/components/chat/team-member-window-content.tsx +8 -39
- package/src/web/components/chat/usage-badge.tsx +176 -52
- package/src/web/components/editor/code-editor.tsx +33 -1
- package/src/web/components/editor/diff-viewer.tsx +83 -8
- package/src/web/components/editor/editor-toolbar.tsx +25 -1
- package/src/web/components/git/git-status-panel.tsx +46 -0
- package/src/web/components/git/hunk-selection.ts +132 -0
- package/src/web/components/git/hunk-stage-dialog.tsx +419 -0
- package/src/web/components/settings/accounts/account-bucket-row.tsx +19 -3
- package/src/web/components/settings/accounts/account-card.tsx +153 -33
- package/src/web/components/settings/accounts/account-hint.tsx +33 -0
- package/src/web/components/settings/accounts/account-usage-format.ts +26 -0
- package/src/web/components/settings/accounts/codex-accounts-section.tsx +24 -9
- package/src/web/components/settings/accounts/codex-usage-rows.tsx +2 -2
- package/src/web/components/settings/accounts/use-accounts-data.ts +32 -2
- package/src/web/components/settings/accounts/use-codex-accounts.ts +24 -2
- package/src/web/components/shared/markdown-code-block.tsx +10 -5
- package/src/web/hooks/use-chat.ts +27 -0
- package/src/web/hooks/use-inline-blame.ts +175 -0
- package/src/web/hooks/use-member-transcript-tail.ts +95 -0
- package/src/web/lib/api-settings.ts +24 -0
- package/src/web/stores/settings-store.ts +12 -0
- package/dist/web/assets/accounts-settings-section-Cd1Nh04o.js +0 -1
- package/dist/web/assets/ai-settings-section-OaYGT5OF.js +0 -1
- package/dist/web/assets/api-client-BogqsFna.js +0 -1
- package/dist/web/assets/api-settings-BVfemzZW.js +0 -1
- package/dist/web/assets/architecture-PBZL5I3N-BZBxtErN.js +0 -1
- package/dist/web/assets/chat-tab-Cc1W2pTu.js +0 -15
- package/dist/web/assets/code-editor-gLRyCPWE.js +0 -7
- package/dist/web/assets/diff-viewer-ix1Ko0xk.js +0 -4
- package/dist/web/assets/explorer-window-content-B7HmteDI.js +0 -1
- package/dist/web/assets/gitGraph-HDMCJU4V-BHxJbXfV.js +0 -1
- package/dist/web/assets/group-chat-tab-DmZ1vLk-.js +0 -1
- package/dist/web/assets/index-N-pnuwFP.css +0 -2
- package/dist/web/assets/index-yV5RgBDh.js +0 -52
- package/dist/web/assets/info-3K5VOQVL-DI4p3vbH.js +0 -1
- package/dist/web/assets/keybindings-store-88_Zkn5F.js +0 -1
- package/dist/web/assets/markdown-renderer-UhszMWSn.js +0 -1
- package/dist/web/assets/mobile-explorer-sheet-D9cqcU3X.js +0 -1
- package/dist/web/assets/notification-store-B6X6RYqQ.js +0 -1
- package/dist/web/assets/packet-RMMSAZCW-YNQWTi_-.js +0 -1
- package/dist/web/assets/pie-UPGHQEXC-E3Wiw76n.js +0 -1
- package/dist/web/assets/radar-KQ55EAFF-BPQJUKON.js +0 -1
- package/dist/web/assets/remote-desktop-mobile-sheet-DefltAPl.js +0 -2
- package/dist/web/assets/schedules-settings-section-D76Ob6tI.js +0 -1
- package/dist/web/assets/settings-store-DWUx3865.js +0 -2
- package/dist/web/assets/settings-tab-DToHQXfC.js +0 -1
- package/dist/web/assets/settings-window-content-B2rlq-Dv.js +0 -1
- package/dist/web/assets/system-monitor-tab-CuDpwAZU.js +0 -1
- package/dist/web/assets/team-member-sheet-DLrT_Kxo.js +0 -2
- package/dist/web/assets/team-member-window-content-S8cdLcg3.js +0 -1
- package/dist/web/assets/tool-cards-CLxrQlUs.js +0 -9
- package/dist/web/assets/treemap-KZPCXAKY-C2CvKBQR.js +0 -1
- package/dist/web/assets/use-accounts-data-snYPJED_.js +0 -1
- package/dist/web/assets/ws-auth-ZSZkAT6p.js +0 -1
- /package/dist/web/assets/{abap-Cq9nYQyd.js → abap-D-o-bvtI.js} +0 -0
- /package/dist/web/assets/{actionscript-3-DL8rUIy0.js → actionscript-3-D2tIzAm8.js} +0 -0
- /package/dist/web/assets/{ada-BY8TLuhY.js → ada-DxatBcxS.js} +0 -0
- /package/dist/web/assets/{andromeeda-CyVfHsS0.js → andromeeda-D0LK9YJ3.js} +0 -0
- /package/dist/web/assets/{apache-DTQUy73x.js → apache-B7uMPNiW.js} +0 -0
- /package/dist/web/assets/{apex-CiSZngrZ.js → apex-B7GiXrAr.js} +0 -0
- /package/dist/web/assets/{api-client-oY1tC3tM.js → api-client-CEYCBt_0.js} +0 -0
- /package/dist/web/assets/{applescript-CzuRDd3h.js → applescript-D_SIFkKe.js} +0 -0
- /package/dist/web/assets/{apply-theme-r8tKDrCR.js → apply-theme-BVXAUYoN.js} +0 -0
- /package/dist/web/assets/{ara-CSFV93kR.js → ara-C3iECgdg.js} +0 -0
- /package/dist/web/assets/{asciidoc-hOQNnXhz.js → asciidoc-gc8z_MMY.js} +0 -0
- /package/dist/web/assets/{asm-DdG53NGR.js → asm-27qeoPOI.js} +0 -0
- /package/dist/web/assets/{aurora-x-DJ7ORZG6.js → aurora-x-C5J9fWe1.js} +0 -0
- /package/dist/web/assets/{awk-B3FFpX_J.js → awk-B7GBzF92.js} +0 -0
- /package/dist/web/assets/{ayu-dark-D_P1CfTe.js → ayu-dark-XlnQhuLL.js} +0 -0
- /package/dist/web/assets/{ayu-light-Cz3YLUqH.js → ayu-light-DKLLilkU.js} +0 -0
- /package/dist/web/assets/{ayu-mirage-JcMq5tgJ.js → ayu-mirage-Dv-XOprJ.js} +0 -0
- /package/dist/web/assets/{ballerina-7Hs4Rfpk.js → ballerina-DACRT-sT.js} +0 -0
- /package/dist/web/assets/{bat-COgQdnFA.js → bat-BlQCq2XE.js} +0 -0
- /package/dist/web/assets/{beancount-BJ3CutBG.js → beancount-DYDztRI0.js} +0 -0
- /package/dist/web/assets/{berry-D7so2Cui.js → berry-BE5YKqvx.js} +0 -0
- /package/dist/web/assets/{bibtex-Ct3acHa1.js → bibtex-CAm7mgEm.js} +0 -0
- /package/dist/web/assets/{bicep-jXDwCQcm.js → bicep-BKgAbfVa.js} +0 -0
- /package/dist/web/assets/{bird2-CjLD2cna.js → bird2-yrBNbW1G.js} +0 -0
- /package/dist/web/assets/{c-CdgZojnL.js → c-txZFr4RM.js} +0 -0
- /package/dist/web/assets/{c3-DtpZYego.js → c3-D_DrzBUd.js} +0 -0
- /package/dist/web/assets/{cadence-CPLkixoh.js → cadence-CUFCEgG9.js} +0 -0
- /package/dist/web/assets/{can-open-in-ppm-BntPywsy.js → can-open-in-ppm-_yqa69dV.js} +0 -0
- /package/dist/web/assets/{catppuccin-frappe-Xt0_qJa9.js → catppuccin-frappe-Dn32MuhA.js} +0 -0
- /package/dist/web/assets/{catppuccin-latte-CJnbLec5.js → catppuccin-latte-Dewo7yDf.js} +0 -0
- /package/dist/web/assets/{catppuccin-macchiato-BPHP1wYB.js → catppuccin-macchiato-D8WOWZeo.js} +0 -0
- /package/dist/web/assets/{catppuccin-mocha-ssWJodGc.js → catppuccin-mocha-b0md48XM.js} +0 -0
- /package/dist/web/assets/{clarity-DB0408F6.js → clarity-Ct3UqLBj.js} +0 -0
- /package/dist/web/assets/{clojure-dpRPlAO4.js → clojure-CwP5aPEo.js} +0 -0
- /package/dist/web/assets/{cmake-r2VkeX9y.js → cmake-D5RF49e5.js} +0 -0
- /package/dist/web/assets/{codeowners-v5nQqHiB.js → codeowners-Cl5897L_.js} +0 -0
- /package/dist/web/assets/{codeql-BSSEhKRR.js → codeql-BKh1RCg0.js} +0 -0
- /package/dist/web/assets/{common-lisp-BXb2MMMA.js → common-lisp-BhHuD6t0.js} +0 -0
- /package/dist/web/assets/{coq-BjBNi73X.js → coq-Dco3qwD8.js} +0 -0
- /package/dist/web/assets/{csharp-CdPjZRbV.js → csharp-Dpjw9ZA9.js} +0 -0
- /package/dist/web/assets/{css-BuxbQOHL.js → css-CPe4cabH.js} +0 -0
- /package/dist/web/assets/{csv-Dj-eoZwH.js → csv-BAcTN8Kt.js} +0 -0
- /package/dist/web/assets/{csv-parser-CBbALsFU.js → csv-parser-DbxGKdMG.js} +0 -0
- /package/dist/web/assets/{cue-Dz73VksN.js → cue-Cr6y60TA.js} +0 -0
- /package/dist/web/assets/{cypher-CkVkDywZ.js → cypher-DWtqXXFP.js} +0 -0
- /package/dist/web/assets/{d-oU51Pbpf.js → d-BASiTZk4.js} +0 -0
- /package/dist/web/assets/{dark-plus-DcwvjjfO.js → dark-plus-56kmnrcl.js} +0 -0
- /package/dist/web/assets/{dart-DGvu8mcX.js → dart-C5mZnjoE.js} +0 -0
- /package/dist/web/assets/{data-grid-types-B6kUrF-M.js → data-grid-types-DeY60CLU.js} +0 -0
- /package/dist/web/assets/{dax-BmbjKQ90.js → dax-B4I2e7d8.js} +0 -0
- /package/dist/web/assets/{desktop-IRBSiFfh.js → desktop-DekGg0BT.js} +0 -0
- /package/dist/web/assets/{diff-Bdik2JR8.js → diff-CWnJBd73.js} +0 -0
- /package/dist/web/assets/{dist-Bv4zQpS1.js → dist-B0J2eYBz.js} +0 -0
- /package/dist/web/assets/{dist-C8YPBIOb.js → dist-BKOM_AoT.js} +0 -0
- /package/dist/web/assets/{docker-Bgdl0H8I.js → docker-DevchDxK.js} +0 -0
- /package/dist/web/assets/{dotenv-COe5NdnA.js → dotenv-DCvtdaGJ.js} +0 -0
- /package/dist/web/assets/{dracula-DjURaSAa.js → dracula-8U6Vkk3l.js} +0 -0
- /package/dist/web/assets/{dracula-soft-Do7d0bo-.js → dracula-soft-Bfeew5Wg.js} +0 -0
- /package/dist/web/assets/{dream-maker-DYwQvJIj.js → dream-maker-DDTJVuoy.js} +0 -0
- /package/dist/web/assets/{emacs-lisp-BXjlHyDW.js → emacs-lisp-CEHJqI4m.js} +0 -0
- /package/dist/web/assets/{everforest-dark-h8Q2loiX.js → everforest-dark-CHHLt7cq.js} +0 -0
- /package/dist/web/assets/{everforest-light-CdsJiL-9.js → everforest-light-TcTbK1sM.js} +0 -0
- /package/dist/web/assets/{fennel-D0CBtOvY.js → fennel-Bh4vsA1A.js} +0 -0
- /package/dist/web/assets/{fish-DzayfrMj.js → fish-D0T0fILG.js} +0 -0
- /package/dist/web/assets/{fluent-CatjkUfx.js → fluent-CgXDXdyy.js} +0 -0
- /package/dist/web/assets/{format-bytes-BulRSULX.js → format-bytes-Bc6SqF7M.js} +0 -0
- /package/dist/web/assets/{fortran-free-form-DM04ud0b.js → fortran-free-form-CUg3Xhz4.js} +0 -0
- /package/dist/web/assets/{gdscript-BLN5iZwf.js → gdscript-Cx056p_k.js} +0 -0
- /package/dist/web/assets/{gdshader-BK-1iZQs.js → gdshader-Dj1qP4I5.js} +0 -0
- /package/dist/web/assets/{genie-BGPOFWDN.js → genie-SBt15wn7.js} +0 -0
- /package/dist/web/assets/{gherkin-CdVOJ_JY.js → gherkin-bTJiHIrB.js} +0 -0
- /package/dist/web/assets/{github-dark-B_xW8TaY.js → github-dark-BOPhyugs.js} +0 -0
- /package/dist/web/assets/{github-dark-default-h_iKq7CX.js → github-dark-default-Cktqe6NF.js} +0 -0
- /package/dist/web/assets/{github-dark-dimmed-nKDYE62T.js → github-dark-dimmed-CeWfII_B.js} +0 -0
- /package/dist/web/assets/{github-dark-high-contrast-l8I771QT.js → github-dark-high-contrast-CTx8LpdV.js} +0 -0
- /package/dist/web/assets/{github-light-DNhjkg8Z.js → github-light-DVsO5Un1.js} +0 -0
- /package/dist/web/assets/{github-light-default-DQ06uS3g.js → github-light-default-BiyPxicr.js} +0 -0
- /package/dist/web/assets/{github-light-high-contrast-qc2sZCVN.js → github-light-high-contrast-BPlnke0a.js} +0 -0
- /package/dist/web/assets/{gleam-DPPatkNH.js → gleam-CWSxvD0C.js} +0 -0
- /package/dist/web/assets/{gn-BnzGQTy5.js → gn-D7NUVJuv.js} +0 -0
- /package/dist/web/assets/{gnuplot-Ct1leoo3.js → gnuplot-c5uXmJKc.js} +0 -0
- /package/dist/web/assets/{go-qysCdbrn.js → go-CRsHi4Cw.js} +0 -0
- /package/dist/web/assets/{groovy-BkWIdrRQ.js → groovy-DpV0RA5r.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-hard-L6Iiybbl.js → gruvbox-dark-hard-DD9fguUN.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-medium-DbD3yl0b.js → gruvbox-dark-medium-BvcwpYJ-.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-soft-Ban2cHK3.js → gruvbox-dark-soft-48dCxX9M.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-hard-CK_SjS3e.js → gruvbox-light-hard-CjJ994Ip.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-medium-Bjgvhc2w.js → gruvbox-light-medium-DQJQZ_rV.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-soft-EWnyYGUu.js → gruvbox-light-soft-AqsC9mKw.js} +0 -0
- /package/dist/web/assets/{haskell-rT1N9nYr.js → haskell-B5V7yvmh.js} +0 -0
- /package/dist/web/assets/{haxe-Bbc91axo.js → haxe-LWTKfPKr.js} +0 -0
- /package/dist/web/assets/{hcl-D-3qJA4v.js → hcl-QmNZdAtI.js} +0 -0
- /package/dist/web/assets/{hjson-DWtewcyQ.js → hjson-CboJsAzK.js} +0 -0
- /package/dist/web/assets/{hlsl-C7t6hCrO.js → hlsl-Bd-DO_WL.js} +0 -0
- /package/dist/web/assets/{horizon-zJAGUQ3j.js → horizon-CU8Bi_ss.js} +0 -0
- /package/dist/web/assets/{horizon-bright-CRNyrJy8.js → horizon-bright-iSQ3_3jP.js} +0 -0
- /package/dist/web/assets/{houston-BFKa4W1-.js → houston-CTXv3Puz.js} +0 -0
- /package/dist/web/assets/{hy-W1hNjMBM.js → hy-Cd4hTidD.js} +0 -0
- /package/dist/web/assets/{image-gallery-BycaVWOu.js → image-gallery-J8h8IY0c.js} +0 -0
- /package/dist/web/assets/{imba-CPphaV-V.js → imba-BipCHEY2.js} +0 -0
- /package/dist/web/assets/{ini-CayaZ4vW.js → ini-Dd1KkMrB.js} +0 -0
- /package/dist/web/assets/{java-BPAE_9Ej.js → java-rGr0OQD8.js} +0 -0
- /package/dist/web/assets/{javascript-C5SKIVqe.js → javascript-DHhCH2TN.js} +0 -0
- /package/dist/web/assets/{json-C-0EUYmu.js → json-CMMLBCUf.js} +0 -0
- /package/dist/web/assets/{json5-BqVetEZL.js → json5-mPOwTOsB.js} +0 -0
- /package/dist/web/assets/{jsonc-DnjIzkUB.js → jsonc-Bie0E6D3.js} +0 -0
- /package/dist/web/assets/{jsonl-rbV-3EqO.js → jsonl-CpqHmtC1.js} +0 -0
- /package/dist/web/assets/{jsonnet-9hvXw4qr.js → jsonnet-D21Ms51e.js} +0 -0
- /package/dist/web/assets/{jssm-1ifXyIhu.js → jssm-BXnl1nur.js} +0 -0
- /package/dist/web/assets/{jsx-hPumywTY.js → jsx-Chnii_vB.js} +0 -0
- /package/dist/web/assets/{kanagawa-dragon-BCPjmoMO.js → kanagawa-dragon-DhxR0UjL.js} +0 -0
- /package/dist/web/assets/{kanagawa-lotus-DN2VNjy7.js → kanagawa-lotus-fupRg5wp.js} +0 -0
- /package/dist/web/assets/{kanagawa-wave-B8RZEsgc.js → kanagawa-wave-DSWbRS9M.js} +0 -0
- /package/dist/web/assets/{kdl-CkvjWQIa.js → kdl-DirGHqUy.js} +0 -0
- /package/dist/web/assets/{kotlin-D8cnRi5o.js → kotlin-DkhUVMDC.js} +0 -0
- /package/dist/web/assets/{kusto-CmeeBEJG.js → kusto-DU7OpovF.js} +0 -0
- /package/dist/web/assets/{laserwave--rtV8Mv9.js → laserwave-iLKb1ZCT.js} +0 -0
- /package/dist/web/assets/{lean-CS-Pyi42.js → lean-Cuvh_QAP.js} +0 -0
- /package/dist/web/assets/{less-Ddi_7qGm.js → less-B5tQZOdI.js} +0 -0
- /package/dist/web/assets/{lib-DIrxSyLb.js → lib-el9rA30D.js} +0 -0
- /package/dist/web/assets/{libesm-CYLrAeW3.js → libesm-CdttTIAd.js} +0 -0
- /package/dist/web/assets/{light-plus-CrEjpkkX.js → light-plus-DiHU2KL5.js} +0 -0
- /package/dist/web/assets/{llvm-Cm7ZXmAO.js → llvm-sCBTKCKN.js} +0 -0
- /package/dist/web/assets/{log-lW2sYxtp.js → log-DtyR34Ie.js} +0 -0
- /package/dist/web/assets/{logo-B-PiRb53.js → logo-CP91aQyG.js} +0 -0
- /package/dist/web/assets/{luau-8St0pC-R.js → luau-nfGo2ulP.js} +0 -0
- /package/dist/web/assets/{make-DbNdhH54.js → make-XbDn9GHe.js} +0 -0
- /package/dist/web/assets/{markdown-CYocYSGd.js → markdown-BB1_3xLr.js} +0 -0
- /package/dist/web/assets/{material-theme-CVBF1Cbi.js → material-theme-CIx_sxAy.js} +0 -0
- /package/dist/web/assets/{material-theme-darker-HFrlNZD8.js → material-theme-darker-DsQeueDD.js} +0 -0
- /package/dist/web/assets/{material-theme-lighter-BM-uz2ft.js → material-theme-lighter-x_lMi74j.js} +0 -0
- /package/dist/web/assets/{material-theme-ocean-PbvUez8m.js → material-theme-ocean-Bkgh25P8.js} +0 -0
- /package/dist/web/assets/{material-theme-palenight-B22Ck6qd.js → material-theme-palenight-CoOjdbti.js} +0 -0
- /package/dist/web/assets/{matlab-GFFNzucw.js → matlab-D6xZas_8.js} +0 -0
- /package/dist/web/assets/{mdx-BVnJzMDx.js → mdx-Cl5_YNoz.js} +0 -0
- /package/dist/web/assets/{mermaid-BlCmSTCM.js → mermaid-8Eow4jz_.js} +0 -0
- /package/dist/web/assets/{min-dark-B0PwlAfC.js → min-dark-D4DhjgRE.js} +0 -0
- /package/dist/web/assets/{min-light-C_H2ABKu.js → min-light-DzAckd0t.js} +0 -0
- /package/dist/web/assets/{mipsasm-C3rf2fo6.js → mipsasm-zI_zu0tj.js} +0 -0
- /package/dist/web/assets/{mojo-CDRuzM3o.js → mojo-DQnGGPHf.js} +0 -0
- /package/dist/web/assets/{monokai-KiebNy_Y.js → monokai-CrFoD2VD.js} +0 -0
- /package/dist/web/assets/{moonbit-CdVUHoWl.js → moonbit-DdphIGs6.js} +0 -0
- /package/dist/web/assets/{move-Dq9iKZRY.js → move-BUlkn0xW.js} +0 -0
- /package/dist/web/assets/{narrat-7y5L5sGM.js → narrat-CbOBdtCn.js} +0 -0
- /package/dist/web/assets/{nextflow-groovy-Cwcbkcrx.js → nextflow-groovy-CeVLUTuQ.js} +0 -0
- /package/dist/web/assets/{night-owl-TBgLPzj4.js → night-owl-Bm4LhUR1.js} +0 -0
- /package/dist/web/assets/{night-owl-light-Dehb9My2.js → night-owl-light-DtcBiMEf.js} +0 -0
- /package/dist/web/assets/{nix-BKj-gzoX.js → nix-DrdwQ70g.js} +0 -0
- /package/dist/web/assets/{nord-BF_r8PeX.js → nord-B0Head1v.js} +0 -0
- /package/dist/web/assets/{nushell-CeAjk9_E.js → nushell-CmUdltKn.js} +0 -0
- /package/dist/web/assets/{objective-c-Xl1OMcDp.js → objective-c-BGDR33XN.js} +0 -0
- /package/dist/web/assets/{objective-cpp-C4ZgzrRq.js → objective-cpp-Buc1Zhd0.js} +0 -0
- /package/dist/web/assets/{ocaml-CGj8IYTq.js → ocaml-xdzl9rRD.js} +0 -0
- /package/dist/web/assets/{odin-C4veqvW2.js → odin-DiUFngnd.js} +0 -0
- /package/dist/web/assets/{one-dark-pro-gAcWejsV.js → one-dark-pro-BURxmIp3.js} +0 -0
- /package/dist/web/assets/{one-light-B7E-UUXy.js → one-light-BMRMInAj.js} +0 -0
- /package/dist/web/assets/{openscad-C-wN9BEv.js → openscad-DAgLA5J3.js} +0 -0
- /package/dist/web/assets/{pascal-C8WBtxMs.js → pascal-CoDZxcRB.js} +0 -0
- /package/dist/web/assets/{pkl-BBfF4G2A.js → pkl-DzKM6BuM.js} +0 -0
- /package/dist/web/assets/{plastic-DFOAb89P.js → plastic-vF15LmNS.js} +0 -0
- /package/dist/web/assets/{plsql-BS2CEMMV.js → plsql-C1v07teA.js} +0 -0
- /package/dist/web/assets/{po-BKJDtPmy.js → po-CLLC8BuA.js} +0 -0
- /package/dist/web/assets/{poimandres-Cg3hL13e.js → poimandres-Uq0xysxM.js} +0 -0
- /package/dist/web/assets/{polar-B9ebiXUU.js → polar-2-luY1Pc.js} +0 -0
- /package/dist/web/assets/{portal-container-context-a399Hd9F.js → portal-container-context-DKymYOY-.js} +0 -0
- /package/dist/web/assets/{postcss-B5REwNY_.js → postcss-lbFhe0rz.js} +0 -0
- /package/dist/web/assets/{powerquery-stc0Gzkf.js → powerquery-RL8O9Wie.js} +0 -0
- /package/dist/web/assets/{powershell-jgd0ahJN.js → powershell-upFWhb-b.js} +0 -0
- /package/dist/web/assets/{prisma-CWuZjRhI.js → prisma-DBtYaWFk.js} +0 -0
- /package/dist/web/assets/{prolog-D5zNFE63.js → prolog-D8jSMykJ.js} +0 -0
- /package/dist/web/assets/{proto-B-6RrU7n.js → proto-BM4eadF7.js} +0 -0
- /package/dist/web/assets/{puppet-DONP8TDR.js → puppet-BQDQ3Snu.js} +0 -0
- /package/dist/web/assets/{purescript-DDJITf-A.js → purescript-Cj2aTX4s.js} +0 -0
- /package/dist/web/assets/{python-bmWy9j1-.js → python-BYpqq6u4.js} +0 -0
- /package/dist/web/assets/{qmldir-CKDwMt7X.js → qmldir-4uiTcwAu.js} +0 -0
- /package/dist/web/assets/{qss-DptQQzBn.js → qss-D5xB-Mqo.js} +0 -0
- /package/dist/web/assets/{r-BorKpJ8r.js → r-P6Ujy8rf.js} +0 -0
- /package/dist/web/assets/{racket-BaHpYVsZ.js → racket-COKgCFuM.js} +0 -0
- /package/dist/web/assets/{raku-DFJIV4k_.js → raku-z14Q9i7K.js} +0 -0
- /package/dist/web/assets/{react-X4jUntEf.js → react-D1Yg256j.js} +0 -0
- /package/dist/web/assets/{red-70oJGrkb.js → red-ObAvgvQ5.js} +0 -0
- /package/dist/web/assets/{reg-C4g235Dv.js → reg-Qv4f0JFA.js} +0 -0
- /package/dist/web/assets/{regexp-Cw1UVmti.js → regexp-CEOVGIzy.js} +0 -0
- /package/dist/web/assets/{rel-DeLhIz5L.js → rel-cWOyTUwd.js} +0 -0
- /package/dist/web/assets/{resolve-theme-b_yGlUFQ.js → resolve-theme-CMp5xxCW.js} +0 -0
- /package/dist/web/assets/{riscv-ChnTiBRK.js → riscv-BZDwx-lv.js} +0 -0
- /package/dist/web/assets/{ron-C5IWeqDn.js → ron-BpjosPS0.js} +0 -0
- /package/dist/web/assets/{rose-pine-DCR0ohYW.js → rose-pine-DhxfJWcm.js} +0 -0
- /package/dist/web/assets/{rose-pine-dawn-DvGZs1PR.js → rose-pine-dawn-BbGt9Wy_.js} +0 -0
- /package/dist/web/assets/{rose-pine-moon-BWACHjeS.js → rose-pine-moon-dj4Zxgik.js} +0 -0
- /package/dist/web/assets/{rosmsg-CQlIVazE.js → rosmsg-EciOaHo2.js} +0 -0
- /package/dist/web/assets/{rust-DGGVzWI8.js → rust-C_eH59O_.js} +0 -0
- /package/dist/web/assets/{sass-bj1C0rFI.js → sass-Dos3R5lL.js} +0 -0
- /package/dist/web/assets/{scala-MU1tLKDi.js → scala-8lVKsTvf.js} +0 -0
- /package/dist/web/assets/{scheme-CeGXtv7t.js → scheme-Bd3VdaZj.js} +0 -0
- /package/dist/web/assets/{sdbl-D0HLSGKp.js → sdbl-C4Yrjlgh.js} +0 -0
- /package/dist/web/assets/{shellscript-DkYiDvh1.js → shellscript-OFZbPKZH.js} +0 -0
- /package/dist/web/assets/{slack-dark-YqeHiGWH.js → slack-dark-aL6vlxZs.js} +0 -0
- /package/dist/web/assets/{slack-ochin-9Oe0DljJ.js → slack-ochin-BKt1E7sL.js} +0 -0
- /package/dist/web/assets/{smalltalk-CaaxedR7.js → smalltalk-D6qVBL1U.js} +0 -0
- /package/dist/web/assets/{snazzy-light-C8s2FHNC.js → snazzy-light-BrWerT0t.js} +0 -0
- /package/dist/web/assets/{solarized-dark-0ryY6oN3.js → solarized-dark-CzxTJgVQ.js} +0 -0
- /package/dist/web/assets/{solarized-light-bltgZeNh.js → solarized-light-BecaDAnG.js} +0 -0
- /package/dist/web/assets/{solidity-DOf5HmLZ.js → solidity-C9t7pZ84.js} +0 -0
- /package/dist/web/assets/{splunk-D1u4WHDW.js → splunk-CtxfFKtF.js} +0 -0
- /package/dist/web/assets/{sql-G8uQZljX.js → sql-7FE_Duz0.js} +0 -0
- /package/dist/web/assets/{ssh-config-rbXvly7Q.js → ssh-config-3Fr37ACC.js} +0 -0
- /package/dist/web/assets/{stylus-Cii1iADy.js → stylus-BP4mE1sO.js} +0 -0
- /package/dist/web/assets/{swift-DpIgonN4.js → swift-0uqTFouD.js} +0 -0
- /package/dist/web/assets/{synthwave-84-DjGLzU2b.js → synthwave-84-DQaNM3DI.js} +0 -0
- /package/dist/web/assets/{system-verilog-_Z0M0Hs1.js → system-verilog-DUIVrZHZ.js} +0 -0
- /package/dist/web/assets/{systemd-BhyDCh9P.js → systemd-CtNo_WIh.js} +0 -0
- /package/dist/web/assets/{talonscript-CNchgCRD.js → talonscript-B0HXaCVT.js} +0 -0
- /package/dist/web/assets/{tasl-m--W7Pyr.js → tasl-Cb7RAl11.js} +0 -0
- /package/dist/web/assets/{tcl-gY-M_2BC.js → tcl-B79aC6l5.js} +0 -0
- /package/dist/web/assets/{terraform-CB6CzMwo.js → terraform-75jJDjpW.js} +0 -0
- /package/dist/web/assets/{tokyo-night-COh9oRYi.js → tokyo-night-Cz9Uh9qb.js} +0 -0
- /package/dist/web/assets/{toml-Bg2bsY-v.js → toml-CD6y9A-z.js} +0 -0
- /package/dist/web/assets/{tsv-DceGDiJC.js → tsv-CXJMbBrb.js} +0 -0
- /package/dist/web/assets/{tsx-EccDYa7i.js → tsx-BuYN0I2t.js} +0 -0
- /package/dist/web/assets/{turtle-C_l2JhvX.js → turtle-DWH-Rjse.js} +0 -0
- /package/dist/web/assets/{typescript-C1ytmMcr.js → typescript-BPd-hsrR.js} +0 -0
- /package/dist/web/assets/{typespec-De2ztzG5.js → typespec-B0wvVykx.js} +0 -0
- /package/dist/web/assets/{typst-DNcS7gSr.js → typst-DWG2c48-.js} +0 -0
- /package/dist/web/assets/{use-is-mobile-CYW3FJFE.js → use-is-mobile-D1weanbj.js} +0 -0
- /package/dist/web/assets/{use-visual-viewport-D9O48HQt.js → use-visual-viewport-Bfl3Bxxb.js} +0 -0
- /package/dist/web/assets/{utils-C9OjCrou.js → utils-IrnQujwR.js} +0 -0
- /package/dist/web/assets/{v-DSMUsdMO.js → v-Ch6E4Egd.js} +0 -0
- /package/dist/web/assets/{vala-BEazLpkO.js → vala-CGVKwbPx.js} +0 -0
- /package/dist/web/assets/{vb-CV9pEJzW.js → vb-BIEbSxyT.js} +0 -0
- /package/dist/web/assets/{vendor-xterm-cuGQmUjN.js → vendor-xterm-YQlzIWv2.js} +0 -0
- /package/dist/web/assets/{verilog-DhXkLVMk.js → verilog-A-3pYPad.js} +0 -0
- /package/dist/web/assets/{vesper-n4IltYq-.js → vesper-CK1naZAV.js} +0 -0
- /package/dist/web/assets/{vhdl-CePjFbvs.js → vhdl-CVawmgMg.js} +0 -0
- /package/dist/web/assets/{viml-ChndFsm5.js → viml-CiWjaqBY.js} +0 -0
- /package/dist/web/assets/{vitesse-black-BytVdvhC.js → vitesse-black-PYXW4-BO.js} +0 -0
- /package/dist/web/assets/{vitesse-dark-83Wech0N.js → vitesse-dark-BU5s4AuG.js} +0 -0
- /package/dist/web/assets/{vitesse-light-Xg4wbeMO.js → vitesse-light-DgkIT-N7.js} +0 -0
- /package/dist/web/assets/{vyper-eW1NC3FG.js → vyper-D8cRDPp3.js} +0 -0
- /package/dist/web/assets/{wasm-BucxKwBZ.js → wasm-C02wlRbP.js} +0 -0
- /package/dist/web/assets/{wasm-Bhucqu1z.js → wasm-ClFJgzmT.js} +0 -0
- /package/dist/web/assets/{wenyan-BJFBuXuH.js → wenyan-B8plxIr8.js} +0 -0
- /package/dist/web/assets/{wgsl-6z4FUyMK.js → wgsl-CVujtm3V.js} +0 -0
- /package/dist/web/assets/{wikitext-BoDU6teJ.js → wikitext-CmcG9B69.js} +0 -0
- /package/dist/web/assets/{wit-DerMPpgt.js → wit--gl2Jium.js} +0 -0
- /package/dist/web/assets/{wolfram-D78v0Ap-.js → wolfram-6T_1D-NS.js} +0 -0
- /package/dist/web/assets/{x-YDu4m2Iq.js → x-CxoBA0po.js} +0 -0
- /package/dist/web/assets/{yaml-C4TIgIw4.js → yaml-CIVV9uA1.js} +0 -0
- /package/dist/web/assets/{zenscript-BydW-dLC.js → zenscript-CoT4yNdA.js} +0 -0
- /package/dist/web/assets/{zig-b9lTqL5E.js → zig-BWs2Qo3G.js} +0 -0
|
@@ -3,43 +3,25 @@
|
|
|
3
3
|
* Visualizes git commit history as an interactive graph in a webview.
|
|
4
4
|
*/
|
|
5
5
|
import type { ExtensionContext } from "@ppm/vscode-compat";
|
|
6
|
-
import type { SpawnResult } from "@ppm/vscode-compat/src/process.ts";
|
|
7
6
|
import type { GitGraphSettings, WebviewToExt, Worktree } from "./types.ts";
|
|
8
7
|
import { DEFAULT_SETTINGS } from "./types.ts";
|
|
9
8
|
import { getWebviewHtml } from "./webview-html.ts";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
onDidDispose: (listener: () => void) => { dispose(): void };
|
|
27
|
-
dispose(): void;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
process: {
|
|
31
|
-
spawn(cmd: string, args: string[], cwd: string, options?: { timeout?: number; env?: Record<string, string> }): Promise<SpawnResult>;
|
|
32
|
-
};
|
|
33
|
-
ViewColumn: { Active: number };
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
let baseUrl = "";
|
|
37
|
-
let authToken = "";
|
|
38
|
-
|
|
39
|
-
// One live panel per project. Opening git graph for another project must not
|
|
40
|
-
// dispose or hijack an existing project's panel (multi-tab, multi-project usage).
|
|
41
|
-
type WebviewPanel = ReturnType<VscodeApi["window"]["createWebviewPanel"]>;
|
|
42
|
-
const panelsByProject = new Map<string, WebviewPanel>();
|
|
9
|
+
import type { VscodeApi } from "./git-exec.ts";
|
|
10
|
+
import {
|
|
11
|
+
assertSafeFilePaths, assertValidHash, assertValidRef, assertValidRemote, spawnGit,
|
|
12
|
+
} from "./git-exec.ts";
|
|
13
|
+
import { authHeaders, getBaseUrl, initPpmApi, resolveProjectName } from "./ppm-api.ts";
|
|
14
|
+
import { registerBlameView } from "./blame-view.ts";
|
|
15
|
+
import { registerFileHistoryView } from "./file-history-view.ts";
|
|
16
|
+
import { registerCompareView } from "./compare-view.ts";
|
|
17
|
+
import { registerRebaseView } from "./rebase-view.ts";
|
|
18
|
+
import { registerReflogView } from "./reflog-view.ts";
|
|
19
|
+
import { parseSubmoduleStatus } from "./submodule-parser.ts";
|
|
20
|
+
import { openPanel } from "./panel-registry.ts";
|
|
21
|
+
import { detectMergeState } from "./git-state.ts";
|
|
22
|
+
import { navigateToPanel } from "./panel-nav.ts";
|
|
23
|
+
import { registerViewCommand } from "./register-view-command.ts";
|
|
24
|
+
import { buildSearchArgs, isSearchMode, parseSearchResults } from "./commit-search.ts";
|
|
43
25
|
|
|
44
26
|
function getSettings(context: ExtensionContext): GitGraphSettings {
|
|
45
27
|
return { ...DEFAULT_SETTINGS, ...(context.globalState.get<Partial<GitGraphSettings>>("settings") || {}) };
|
|
@@ -60,28 +42,21 @@ async function saveSetting(context: ExtensionContext, key: string, value: unknow
|
|
|
60
42
|
}
|
|
61
43
|
|
|
62
44
|
export function activate(context: ExtensionContext, vscode: VscodeApi): void {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
vscode
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
console.log("[ext-git-graph] webview panel created");
|
|
79
|
-
} catch (e) {
|
|
80
|
-
console.error("[ext-git-graph] openGitGraph failed:", e);
|
|
81
|
-
throw e;
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
);
|
|
45
|
+
initPpmApi();
|
|
46
|
+
|
|
47
|
+
registerViewCommand({
|
|
48
|
+
context,
|
|
49
|
+
vscode,
|
|
50
|
+
command: "git-graph.view",
|
|
51
|
+
label: "Git Graph",
|
|
52
|
+
open: (projectPath) => openGitGraph(vscode, context, projectPath),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
registerBlameView(context, vscode);
|
|
56
|
+
registerFileHistoryView(context, vscode);
|
|
57
|
+
registerCompareView(context, vscode);
|
|
58
|
+
registerRebaseView(context, vscode);
|
|
59
|
+
registerReflogView(context, vscode);
|
|
85
60
|
|
|
86
61
|
console.log("[ext-git-graph] activated");
|
|
87
62
|
}
|
|
@@ -90,75 +65,29 @@ export function deactivate(): void {
|
|
|
90
65
|
console.log("[ext-git-graph] deactivated");
|
|
91
66
|
}
|
|
92
67
|
|
|
93
|
-
/** Build fetch options with auth header when token is available */
|
|
94
|
-
function authHeaders(): RequestInit {
|
|
95
|
-
return authToken ? { headers: { Authorization: `Bearer ${authToken}` } } : {};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** Resolve project path from PPM API as fallback */
|
|
99
|
-
async function resolveProjectPath(): Promise<string | null> {
|
|
100
|
-
try {
|
|
101
|
-
const res = await fetch(`${baseUrl}/api/projects`, authHeaders());
|
|
102
|
-
const json = await res.json() as { ok: boolean; data?: { name: string; path: string }[] };
|
|
103
|
-
if (!json.ok || !json.data || json.data.length === 0) return null;
|
|
104
|
-
// Single project — safe to auto-select
|
|
105
|
-
if (json.data.length === 1) return json.data[0].path;
|
|
106
|
-
// Multiple projects — cannot guess which is active, return null
|
|
107
|
-
return null;
|
|
108
|
-
} catch {}
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** Resolve project name from path via PPM API */
|
|
113
|
-
async function resolveProjectName(projectPath: string): Promise<string> {
|
|
114
|
-
try {
|
|
115
|
-
const res = await fetch(`${baseUrl}/api/projects`, authHeaders());
|
|
116
|
-
const json = await res.json() as { ok: boolean; data?: { name: string; path: string }[] };
|
|
117
|
-
if (json.ok && json.data) {
|
|
118
|
-
const match = json.data.find((p) => p.path === projectPath);
|
|
119
|
-
if (match) return match.name;
|
|
120
|
-
}
|
|
121
|
-
} catch {}
|
|
122
|
-
// Fallback to directory name
|
|
123
|
-
return projectPath.split(/[\\/]/).filter(Boolean).pop() || "project";
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** Spawn git and return result */
|
|
127
|
-
async function spawnGit(
|
|
128
|
-
vscode: VscodeApi,
|
|
129
|
-
args: string[],
|
|
130
|
-
cwd: string,
|
|
131
|
-
timeout = 30_000,
|
|
132
|
-
): Promise<SpawnResult> {
|
|
133
|
-
return vscode.process.spawn("git", args, cwd, {
|
|
134
|
-
timeout,
|
|
135
|
-
env: { GIT_TERMINAL_PROMPT: "0" },
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
|
|
139
68
|
function openGitGraph(
|
|
140
69
|
vscode: VscodeApi,
|
|
141
70
|
context: ExtensionContext,
|
|
142
71
|
projectPath: string,
|
|
143
72
|
): void {
|
|
144
|
-
// Dispose stale panel for THIS project only, to avoid browser/server desync.
|
|
145
|
-
// On page reload the browser's WS close message can be lost, leaving the map
|
|
146
|
-
// referencing a panel the browser no longer knows about. Other projects'
|
|
147
|
-
// panels stay alive.
|
|
148
|
-
panelsByProject.get(projectPath)?.dispose(); // fires onDidDispose → clears map entry & timers
|
|
149
|
-
|
|
150
73
|
const dirName = projectPath.split(/[\\/]/).filter(Boolean).pop() || "Git Graph";
|
|
151
|
-
const panel = vscode.window.createWebviewPanel(
|
|
152
|
-
"git-graph.view",
|
|
153
|
-
`Git Graph: ${dirName}`,
|
|
154
|
-
vscode.ViewColumn.Active,
|
|
155
|
-
{ projectPath },
|
|
156
|
-
);
|
|
157
|
-
panelsByProject.set(projectPath, panel);
|
|
158
74
|
|
|
159
|
-
panel
|
|
75
|
+
// Declared before openPanel so the message handler can reach the panel it is
|
|
76
|
+
// attached to without threading it through every handler signature.
|
|
77
|
+
let uncommittedPollTimer: ReturnType<typeof setInterval> | undefined;
|
|
78
|
+
let disposed = false;
|
|
160
79
|
|
|
161
|
-
const
|
|
80
|
+
const panel = openPanel({
|
|
81
|
+
vscode,
|
|
82
|
+
viewType: "git-graph.view",
|
|
83
|
+
title: `Git Graph: ${dirName}`,
|
|
84
|
+
projectPath,
|
|
85
|
+
html: getWebviewHtml(),
|
|
86
|
+
onDispose: () => {
|
|
87
|
+
disposed = true;
|
|
88
|
+
if (uncommittedPollTimer) clearInterval(uncommittedPollTimer);
|
|
89
|
+
},
|
|
90
|
+
onMessage: async (raw: unknown) => {
|
|
162
91
|
const msg = raw as WebviewToExt;
|
|
163
92
|
// Panel is bound to its project for life — reopening a project recreates
|
|
164
93
|
// the panel, so the closure path is always current.
|
|
@@ -171,6 +100,7 @@ function openGitGraph(
|
|
|
171
100
|
handleUncommittedStatus(vscode, panel, pp); // fire-and-forget
|
|
172
101
|
handleWorktrees(vscode, panel, pp); // fire-and-forget
|
|
173
102
|
handleStashes(vscode, panel, pp); // fire-and-forget
|
|
103
|
+
handleSubmodules(vscode, panel, pp); // fire-and-forget
|
|
174
104
|
break;
|
|
175
105
|
case "requestRepoInfo":
|
|
176
106
|
await handleRepoInfo(vscode, panel, pp);
|
|
@@ -281,6 +211,103 @@ function openGitGraph(
|
|
|
281
211
|
case "requestStashes":
|
|
282
212
|
await handleStashes(vscode, panel, pp);
|
|
283
213
|
break;
|
|
214
|
+
case "requestSubmodules":
|
|
215
|
+
await handleSubmodules(vscode, panel, pp);
|
|
216
|
+
break;
|
|
217
|
+
case "updateSubmodule": {
|
|
218
|
+
// A path from the webview, so it gets the same treatment as any other.
|
|
219
|
+
// `--` keeps a path that starts with a dash out of the option list.
|
|
220
|
+
const subPath = String(msg.path || "");
|
|
221
|
+
assertSafeFilePaths([subPath], pp);
|
|
222
|
+
const updateRes = await spawnGit(
|
|
223
|
+
vscode,
|
|
224
|
+
["submodule", "update", "--init", "--recursive", "--", subPath],
|
|
225
|
+
pp,
|
|
226
|
+
180_000,
|
|
227
|
+
);
|
|
228
|
+
if (updateRes.exitCode !== 0) {
|
|
229
|
+
throw new Error(updateRes.stderr.trim() || "git could not update that submodule.");
|
|
230
|
+
}
|
|
231
|
+
await handleSubmodules(vscode, panel, pp);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
case "openSubmodule": {
|
|
235
|
+
const subPath = String(msg.path || "");
|
|
236
|
+
assertSafeFilePaths([subPath], pp);
|
|
237
|
+
await openProjectAt(vscode, `${pp}/${subPath}`, "submodule");
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
case "searchCommits": {
|
|
241
|
+
if (!isSearchMode(msg.mode)) throw new Error(`Unknown search mode: "${msg.mode}"`);
|
|
242
|
+
const searchArgs = buildSearchArgs({ mode: msg.mode, text: msg.text }, 200, pp);
|
|
243
|
+
const searchRes = await spawnGit(vscode, searchArgs, pp, 60_000);
|
|
244
|
+
if (searchRes.exitCode !== 0) {
|
|
245
|
+
throw new Error(searchRes.stderr.trim() || "Search failed.");
|
|
246
|
+
}
|
|
247
|
+
await panel.webview.postMessage({
|
|
248
|
+
command: "loadSearchResults",
|
|
249
|
+
data: { mode: msg.mode, text: msg.text, hits: parseSearchResults(searchRes.stdout) },
|
|
250
|
+
});
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
case "openBlame": {
|
|
254
|
+
assertSafeFilePaths([msg.filePath], pp);
|
|
255
|
+
const fileName = msg.filePath.split(/[\\/]/).pop() || msg.filePath;
|
|
256
|
+
await navigateToPanel({
|
|
257
|
+
vscode,
|
|
258
|
+
context,
|
|
259
|
+
viewType: "git-graph.blame",
|
|
260
|
+
title: `Blame: ${fileName}`,
|
|
261
|
+
projectPath: pp,
|
|
262
|
+
target: { filePath: msg.filePath, rev: msg.hash ? assertValidHash(msg.hash) : undefined },
|
|
263
|
+
});
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
case "openFileHistory": {
|
|
267
|
+
assertSafeFilePaths([msg.filePath], pp);
|
|
268
|
+
const fileName = msg.filePath.split(/[\\/]/).pop() || msg.filePath;
|
|
269
|
+
await navigateToPanel({
|
|
270
|
+
vscode,
|
|
271
|
+
context,
|
|
272
|
+
viewType: "git-graph.fileHistory",
|
|
273
|
+
title: `History: ${fileName}`,
|
|
274
|
+
projectPath: pp,
|
|
275
|
+
target: { filePath: msg.filePath },
|
|
276
|
+
});
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
case "openCompare":
|
|
280
|
+
await navigateToPanel({
|
|
281
|
+
vscode,
|
|
282
|
+
context,
|
|
283
|
+
viewType: "git-graph.compare",
|
|
284
|
+
title: "Compare",
|
|
285
|
+
projectPath: pp,
|
|
286
|
+
target: {
|
|
287
|
+
...(msg.ref1 ? { ref1: assertValidRef(msg.ref1, "ref1") } : {}),
|
|
288
|
+
...(msg.ref2 ? { ref2: assertValidRef(msg.ref2, "ref2") } : {}),
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
break;
|
|
292
|
+
case "openReflog":
|
|
293
|
+
await navigateToPanel({
|
|
294
|
+
vscode,
|
|
295
|
+
context,
|
|
296
|
+
viewType: "git-graph.reflog",
|
|
297
|
+
title: "Reflog",
|
|
298
|
+
projectPath: pp,
|
|
299
|
+
});
|
|
300
|
+
break;
|
|
301
|
+
case "openInteractiveRebase":
|
|
302
|
+
await navigateToPanel({
|
|
303
|
+
vscode,
|
|
304
|
+
context,
|
|
305
|
+
viewType: "git-graph.interactiveRebase",
|
|
306
|
+
title: "Interactive Rebase",
|
|
307
|
+
projectPath: pp,
|
|
308
|
+
target: msg.base ? { base: assertValidHash(msg.base) } : undefined,
|
|
309
|
+
});
|
|
310
|
+
break;
|
|
284
311
|
case "addWorktree": {
|
|
285
312
|
const addArgs = ["worktree", "add"];
|
|
286
313
|
if (msg.newBranch) {
|
|
@@ -316,41 +343,9 @@ function openGitGraph(
|
|
|
316
343
|
if (pruneResult.exitCode === 0) await handleWorktrees(vscode, panel, pp);
|
|
317
344
|
break;
|
|
318
345
|
}
|
|
319
|
-
case "openWorktree":
|
|
320
|
-
|
|
321
|
-
try {
|
|
322
|
-
const res = await fetch(`${baseUrl}/api/projects`, authHeaders());
|
|
323
|
-
const json = await res.json() as { ok: boolean; data?: { name: string; path: string }[] };
|
|
324
|
-
const match = json.data?.find((p) => p.path === msg.path);
|
|
325
|
-
if (match) {
|
|
326
|
-
await vscode.window.switchProject(match.name);
|
|
327
|
-
} else {
|
|
328
|
-
// Worktree not registered — offer to add it as a project
|
|
329
|
-
const dirName = msg.path.split(/[\\/]/).filter(Boolean).pop() || "worktree";
|
|
330
|
-
const answer = await vscode.window.showInformationMessage(
|
|
331
|
-
`Worktree "${dirName}" is not registered as a project. Add it?`,
|
|
332
|
-
"Yes, add project", "Cancel",
|
|
333
|
-
);
|
|
334
|
-
if (answer === "Yes, add project") {
|
|
335
|
-
const addRes = await fetch(`${baseUrl}/api/projects`, {
|
|
336
|
-
method: "POST",
|
|
337
|
-
headers: { "Content-Type": "application/json", ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}) },
|
|
338
|
-
body: JSON.stringify({ path: msg.path, name: dirName }),
|
|
339
|
-
});
|
|
340
|
-
const addJson = await addRes.json() as { ok: boolean; data?: { name: string } };
|
|
341
|
-
if (addJson.ok) {
|
|
342
|
-
const name = addJson.data?.name || dirName;
|
|
343
|
-
await vscode.window.switchProject(name);
|
|
344
|
-
} else {
|
|
345
|
-
await vscode.window.showErrorMessage("Failed to add project");
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
} catch {
|
|
350
|
-
await vscode.window.showErrorMessage("Failed to look up projects");
|
|
351
|
-
}
|
|
346
|
+
case "openWorktree":
|
|
347
|
+
await openProjectAt(vscode, msg.path, "Worktree");
|
|
352
348
|
break;
|
|
353
|
-
}
|
|
354
349
|
case "openConflictFile": {
|
|
355
350
|
assertSafeFilePaths([msg.filePath], pp);
|
|
356
351
|
const projectName = await resolveProjectName(pp);
|
|
@@ -370,24 +365,13 @@ function openGitGraph(
|
|
|
370
365
|
const errMsg = e instanceof Error ? e.message : String(e);
|
|
371
366
|
await panel.webview.postMessage({ command: "error", message: errMsg });
|
|
372
367
|
}
|
|
368
|
+
},
|
|
373
369
|
});
|
|
374
370
|
|
|
375
|
-
context.subscriptions.push(msgDisposable);
|
|
376
|
-
|
|
377
371
|
// Poll uncommitted changes every 5 seconds
|
|
378
|
-
|
|
379
|
-
const uncommittedPollTimer = setInterval(() => {
|
|
372
|
+
uncommittedPollTimer = setInterval(() => {
|
|
380
373
|
if (!disposed) handleUncommittedStatus(vscode, panel, projectPath);
|
|
381
374
|
}, 5_000);
|
|
382
|
-
|
|
383
|
-
panel.onDidDispose(() => {
|
|
384
|
-
disposed = true;
|
|
385
|
-
// Only clear the map entry if it still points at this panel — a recreate
|
|
386
|
-
// for the same project may have already replaced it
|
|
387
|
-
if (panelsByProject.get(projectPath) === panel) panelsByProject.delete(projectPath);
|
|
388
|
-
clearInterval(uncommittedPollTimer);
|
|
389
|
-
msgDisposable.dispose();
|
|
390
|
-
});
|
|
391
375
|
}
|
|
392
376
|
|
|
393
377
|
|
|
@@ -526,54 +510,63 @@ async function handleUncommittedStatus(
|
|
|
526
510
|
}
|
|
527
511
|
}
|
|
528
512
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
const [numResult, endResult, msgResult] = await Promise.all([
|
|
545
|
-
vscode.process.spawn("cat", [`${rebaseMergeDir}/msgnum`], projectPath, { timeout: 2000 }),
|
|
546
|
-
vscode.process.spawn("cat", [`${rebaseMergeDir}/end`], projectPath, { timeout: 2000 }),
|
|
547
|
-
vscode.process.spawn("cat", [`${rebaseMergeDir}/message`], projectPath, { timeout: 2000 }),
|
|
548
|
-
]);
|
|
549
|
-
const current = numResult.stdout.trim();
|
|
550
|
-
const total = endResult.stdout.trim();
|
|
551
|
-
return {
|
|
552
|
-
type: "rebase",
|
|
553
|
-
progress: current && total ? `${current}/${total}` : undefined,
|
|
554
|
-
message: msgResult.stdout.trim().split("\n")[0] || undefined,
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
// Check rebase-apply (non-interactive rebase / am)
|
|
559
|
-
const checkRebaseApply = await vscode.process.spawn("test", ["-d", `${gitDir}/rebase-apply`], projectPath, { timeout: 2000 });
|
|
560
|
-
if (checkRebaseApply.exitCode === 0) {
|
|
561
|
-
return { type: "rebase" };
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
// Check merge
|
|
565
|
-
const checkMerge = await vscode.process.spawn("test", ["-f", `${gitDir}/MERGE_HEAD`], projectPath, { timeout: 2000 });
|
|
566
|
-
if (checkMerge.exitCode === 0) {
|
|
567
|
-
return { type: "merge" };
|
|
568
|
-
}
|
|
513
|
+
/**
|
|
514
|
+
* Switch PPM to the project living at `path`, offering to register it first.
|
|
515
|
+
*
|
|
516
|
+
* A worktree or a submodule is a git repository PPM may never have been told
|
|
517
|
+
* about; without this, opening one would silently do nothing.
|
|
518
|
+
*/
|
|
519
|
+
async function openProjectAt(vscode: VscodeApi, path: string, kind: string): Promise<void> {
|
|
520
|
+
try {
|
|
521
|
+
const res = await fetch(`${getBaseUrl()}/api/projects`, authHeaders());
|
|
522
|
+
const json = await res.json() as { ok: boolean; data?: { name: string; path: string }[] };
|
|
523
|
+
const match = json.data?.find((p) => p.path === path);
|
|
524
|
+
if (match) {
|
|
525
|
+
await vscode.window.switchProject(match.name);
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
569
528
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
529
|
+
const dirName = path.split(/[\\/]/).filter(Boolean).pop() || kind.toLowerCase();
|
|
530
|
+
const answer = await vscode.window.showInformationMessage(
|
|
531
|
+
`${kind} "${dirName}" is not registered as a project. Add it?`,
|
|
532
|
+
"Yes, add project", "Cancel",
|
|
533
|
+
);
|
|
534
|
+
if (answer !== "Yes, add project") return;
|
|
535
|
+
|
|
536
|
+
const authInit = authHeaders() as { headers?: Record<string, string> };
|
|
537
|
+
const addRes = await fetch(`${getBaseUrl()}/api/projects`, {
|
|
538
|
+
method: "POST",
|
|
539
|
+
headers: { "Content-Type": "application/json", ...(authInit.headers ?? {}) },
|
|
540
|
+
body: JSON.stringify({ path, name: dirName }),
|
|
541
|
+
});
|
|
542
|
+
const addJson = await addRes.json() as { ok: boolean; data?: { name: string } };
|
|
543
|
+
if (addJson.ok) {
|
|
544
|
+
await vscode.window.switchProject(addJson.data?.name || dirName);
|
|
545
|
+
} else {
|
|
546
|
+
await vscode.window.showErrorMessage("Failed to add project");
|
|
547
|
+
}
|
|
548
|
+
} catch {
|
|
549
|
+
await vscode.window.showErrorMessage("Failed to look up projects");
|
|
574
550
|
}
|
|
551
|
+
}
|
|
575
552
|
|
|
576
|
-
|
|
553
|
+
/**
|
|
554
|
+
* The repository's submodules and how far each has drifted.
|
|
555
|
+
*
|
|
556
|
+
* A repository with no submodules is the overwhelming majority, and git exits
|
|
557
|
+
* non-zero for one reason or another in several of the edge cases, so a failure
|
|
558
|
+
* here reports an empty list rather than an error the user cannot act on.
|
|
559
|
+
*/
|
|
560
|
+
async function handleSubmodules(
|
|
561
|
+
vscode: VscodeApi,
|
|
562
|
+
panel: ReturnType<VscodeApi["window"]["createWebviewPanel"]>,
|
|
563
|
+
projectPath: string,
|
|
564
|
+
): Promise<void> {
|
|
565
|
+
const result = await spawnGit(vscode, ["submodule", "status", "--recursive"], projectPath, 30_000);
|
|
566
|
+
await panel.webview.postMessage({
|
|
567
|
+
command: "loadSubmodules",
|
|
568
|
+
data: result.exitCode === 0 ? parseSubmoduleStatus(result.stdout) : [],
|
|
569
|
+
});
|
|
577
570
|
}
|
|
578
571
|
|
|
579
572
|
async function handleWorktrees(
|
|
@@ -804,46 +797,6 @@ function parseCommitDetail(stdout: string): import("./types.ts").CommitDetail {
|
|
|
804
797
|
return { hash, parents, author, authorEmail, authorDate, committer, committerEmail, commitDate, message, fileChanges };
|
|
805
798
|
}
|
|
806
799
|
|
|
807
|
-
// --- Input validation for git actions ---
|
|
808
|
-
|
|
809
|
-
function assertValidHash(value: unknown): string {
|
|
810
|
-
const s = String(value || "");
|
|
811
|
-
if (s === "HEAD") return s;
|
|
812
|
-
if (!/^[0-9a-f]{4,40}$/i.test(s)) throw new Error(`Invalid commit hash: "${s}"`);
|
|
813
|
-
return s;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
function assertValidRef(value: unknown, label: string): string {
|
|
817
|
-
const s = String(value || "");
|
|
818
|
-
if (!s || /[\x00-\x1f\x7f~^:?*[\]\\]/.test(s) || s.startsWith("-") || s.includes("..")) {
|
|
819
|
-
throw new Error(`Invalid git ref for ${label}: "${s}"`);
|
|
820
|
-
}
|
|
821
|
-
return s;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
function assertValidRemote(value: unknown): string {
|
|
825
|
-
const s = String(value || "");
|
|
826
|
-
if (!s || /[\x00-\x1f\x7f]/.test(s) || s.startsWith("-")) {
|
|
827
|
-
throw new Error(`Invalid remote name: "${s}"`);
|
|
828
|
-
}
|
|
829
|
-
return s;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/** Validate file paths are relative and don't escape the project root */
|
|
833
|
-
function assertSafeFilePaths(files: string[], projectPath: string): void {
|
|
834
|
-
const { resolve, normalize } = require("path");
|
|
835
|
-
const root = normalize(projectPath) + "/";
|
|
836
|
-
for (const f of files) {
|
|
837
|
-
if (!f || f.startsWith("-") || f.startsWith("/") || /[\x00-\x1f\x7f]/.test(f)) {
|
|
838
|
-
throw new Error(`Invalid file path: "${f}"`);
|
|
839
|
-
}
|
|
840
|
-
const resolved = normalize(resolve(projectPath, f));
|
|
841
|
-
if (!resolved.startsWith(root) && resolved !== normalize(projectPath)) {
|
|
842
|
-
throw new Error(`File path escapes project root: "${f}"`);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
800
|
function buildGitActionArgs(action: string, args: Record<string, unknown>): string[] {
|
|
848
801
|
const VALID_RESET_MODES = ["soft", "mixed", "hard"];
|
|
849
802
|
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { describe, it, expect } from "bun:test";
|
|
2
|
+
import {
|
|
3
|
+
FIELD_SEP, RECORD_SEP, buildLineRangeArg, parseFileHistory,
|
|
4
|
+
} from "./file-history-parser.ts";
|
|
5
|
+
|
|
6
|
+
function record(fields: string[], statusLines: string[] = []): string {
|
|
7
|
+
return RECORD_SEP + fields.join(FIELD_SEP) + (statusLines.length ? "\n" + statusLines.join("\n") : "");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const A = "a".repeat(40);
|
|
11
|
+
const B = "b".repeat(40);
|
|
12
|
+
|
|
13
|
+
describe("parseFileHistory", () => {
|
|
14
|
+
it("reads one commit with its file status", () => {
|
|
15
|
+
const stdout = record([A, "parent1", "Mai", "mai@example.com", "1700000000", "tidy up"], ["M\tsrc/app.ts"]);
|
|
16
|
+
|
|
17
|
+
const entries = parseFileHistory(stdout);
|
|
18
|
+
|
|
19
|
+
expect(entries).toHaveLength(1);
|
|
20
|
+
expect(entries[0]).toMatchObject({
|
|
21
|
+
hash: A,
|
|
22
|
+
parents: ["parent1"],
|
|
23
|
+
author: "Mai",
|
|
24
|
+
authorEmail: "mai@example.com",
|
|
25
|
+
authorDate: 1700000000,
|
|
26
|
+
subject: "tidy up",
|
|
27
|
+
status: "M",
|
|
28
|
+
path: "src/app.ts",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it("keeps both sides of a rename", () => {
|
|
33
|
+
const stdout = record([A, "p", "Mai", "m@e.com", "1", "move it"], ["R096\tsrc/old.ts\tsrc/new.ts"]);
|
|
34
|
+
|
|
35
|
+
const entries = parseFileHistory(stdout);
|
|
36
|
+
|
|
37
|
+
expect(entries[0]!.status).toBe("R");
|
|
38
|
+
expect(entries[0]!.oldPath).toBe("src/old.ts");
|
|
39
|
+
expect(entries[0]!.path).toBe("src/new.ts");
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("treats a copy like a rename", () => {
|
|
43
|
+
const stdout = record([A, "p", "Mai", "m@e.com", "1", "copy"], ["C100\tsrc/a.ts\tsrc/b.ts"]);
|
|
44
|
+
|
|
45
|
+
expect(parseFileHistory(stdout)[0]).toMatchObject({
|
|
46
|
+
status: "C", oldPath: "src/a.ts", path: "src/b.ts",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("survives a merge commit that reports no file status", () => {
|
|
51
|
+
const stdout = record([A, "p1 p2", "Mai", "m@e.com", "1", "merge branch"]);
|
|
52
|
+
|
|
53
|
+
const entries = parseFileHistory(stdout);
|
|
54
|
+
|
|
55
|
+
expect(entries).toHaveLength(1);
|
|
56
|
+
expect(entries[0]!.parents).toEqual(["p1", "p2"]);
|
|
57
|
+
expect(entries[0]!.path).toBe("");
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("keeps a subject containing a tab or a pipe intact", () => {
|
|
61
|
+
// The reason the format uses \x1f rather than a printable separator.
|
|
62
|
+
const subject = "fix: a|b\tc";
|
|
63
|
+
const stdout = record([A, "p", "Mai", "m@e.com", "1", subject], ["M\tsrc/app.ts"]);
|
|
64
|
+
|
|
65
|
+
expect(parseFileHistory(stdout)[0]!.subject).toBe(subject);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
it("reads several commits in one go", () => {
|
|
69
|
+
const stdout = [
|
|
70
|
+
record([A, "p", "Mai", "m@e.com", "2", "second"], ["M\tsrc/app.ts"]),
|
|
71
|
+
record([B, "", "Nam", "nam@e.com", "1", "first"], ["A\tsrc/app.ts"]),
|
|
72
|
+
].join("");
|
|
73
|
+
|
|
74
|
+
const entries = parseFileHistory(stdout);
|
|
75
|
+
|
|
76
|
+
expect(entries.map((e) => e.hash)).toEqual([A, B]);
|
|
77
|
+
expect(entries[1]!.status).toBe("A");
|
|
78
|
+
expect(entries[1]!.parents).toEqual([]);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it("ignores a record missing fields rather than emitting a broken entry", () => {
|
|
82
|
+
expect(parseFileHistory(RECORD_SEP + ["only", "two"].join(FIELD_SEP))).toEqual([]);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it("returns nothing for empty output", () => {
|
|
86
|
+
expect(parseFileHistory("")).toEqual([]);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
describe("buildLineRangeArg", () => {
|
|
91
|
+
it("builds the -L argument", () => {
|
|
92
|
+
expect(buildLineRangeArg(10, 20, "src/app.ts")).toBe("-L10,20:src/app.ts");
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("orders an inverted selection so git still accepts it", () => {
|
|
96
|
+
expect(buildLineRangeArg(20, 10, "src/app.ts")).toBe("-L10,20:src/app.ts");
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it("handles a single-line range", () => {
|
|
100
|
+
expect(buildLineRangeArg(7, 7, "a.ts")).toBe("-L7,7:a.ts");
|
|
101
|
+
});
|
|
102
|
+
});
|