@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
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reflog panel — everywhere HEAD has been, and the way back.
|
|
3
|
+
*
|
|
4
|
+
* This is the undo surface for the destructive operations the other panels
|
|
5
|
+
* offer: a rebase that went wrong, a branch deleted by mistake, a reset that
|
|
6
|
+
* took the wrong commit. The commits are all still in the object store; the
|
|
7
|
+
* reflog is the only listing that still names them.
|
|
8
|
+
*
|
|
9
|
+
* The safe recovery is offered first (create a branch at that commit) because
|
|
10
|
+
* it cannot lose anything, and `reset --hard` is behind a confirmation *and* a
|
|
11
|
+
* clean-worktree check — it silently discards uncommitted work otherwise, which
|
|
12
|
+
* is exactly the mistake this panel exists to undo.
|
|
13
|
+
*/
|
|
14
|
+
import type { ExtensionContext } from "@ppm/vscode-compat";
|
|
15
|
+
import type { VscodeApi } from "./git-exec.ts";
|
|
16
|
+
import { assertValidRef, spawnGit } from "./git-exec.ts";
|
|
17
|
+
import { openPanel } from "./panel-registry.ts";
|
|
18
|
+
import { registerViewCommand } from "./register-view-command.ts";
|
|
19
|
+
import { REFLOG_FORMAT, assertValidSelector, parseReflog } from "./reflog-parser.ts";
|
|
20
|
+
import { shellHtml } from "./webview-shell.ts";
|
|
21
|
+
|
|
22
|
+
const VIEW_TYPE = "git-graph.reflog";
|
|
23
|
+
const MAX_ENTRIES = 300;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Why `reset --hard` must not run, or null if it may.
|
|
27
|
+
*
|
|
28
|
+
* It throws away the working tree without asking, and there is no reflog for
|
|
29
|
+
* uncommitted work — refusing on a dirty tree is the difference between undoing
|
|
30
|
+
* a mistake and making a worse one. The *exit code* is half the decision:
|
|
31
|
+
* reading only `stdout` meant a `git status` that failed — an index another
|
|
32
|
+
* process holds a lock on, a repository git cannot read — came back empty and
|
|
33
|
+
* was taken for "clean", so the destructive command ran on the strength of a
|
|
34
|
+
* check that never happened. A guard that cannot see has to say no.
|
|
35
|
+
*/
|
|
36
|
+
export function resetHardRefusal(status: { exitCode: number; stdout: string }): string | null {
|
|
37
|
+
if (status.exitCode !== 0) {
|
|
38
|
+
return "Could not check whether the working tree is clean, so nothing was run. Try again once git can read the repository.";
|
|
39
|
+
}
|
|
40
|
+
if (status.stdout.trim()) {
|
|
41
|
+
return "This would discard uncommitted changes, which nothing can recover. Commit or stash them first.";
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function registerReflogView(context: ExtensionContext, vscode: VscodeApi): void {
|
|
47
|
+
registerViewCommand({
|
|
48
|
+
context,
|
|
49
|
+
vscode,
|
|
50
|
+
command: VIEW_TYPE,
|
|
51
|
+
label: "Reflog",
|
|
52
|
+
open: (projectPath) => openReflogView(vscode, context, projectPath),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function openReflogView(
|
|
57
|
+
vscode: VscodeApi,
|
|
58
|
+
_context: ExtensionContext,
|
|
59
|
+
projectPath: string,
|
|
60
|
+
): void {
|
|
61
|
+
const dirName = projectPath.split(/[\\/]/).filter(Boolean).pop() || "Reflog";
|
|
62
|
+
|
|
63
|
+
const panel = openPanel({
|
|
64
|
+
vscode,
|
|
65
|
+
viewType: VIEW_TYPE,
|
|
66
|
+
title: `Reflog: ${dirName}`,
|
|
67
|
+
projectPath,
|
|
68
|
+
html: getReflogHtml(),
|
|
69
|
+
onMessage: async (raw) => {
|
|
70
|
+
const msg = raw as Record<string, any>;
|
|
71
|
+
try {
|
|
72
|
+
switch (msg.command) {
|
|
73
|
+
case "ready":
|
|
74
|
+
case "refresh":
|
|
75
|
+
await sendEntries();
|
|
76
|
+
break;
|
|
77
|
+
|
|
78
|
+
case "createBranch":
|
|
79
|
+
await createBranch(msg.selector, msg.name);
|
|
80
|
+
break;
|
|
81
|
+
|
|
82
|
+
case "checkout":
|
|
83
|
+
await checkoutDetached(msg.selector);
|
|
84
|
+
break;
|
|
85
|
+
|
|
86
|
+
case "resetHard":
|
|
87
|
+
await resetHard(msg.selector);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
} catch (e) {
|
|
91
|
+
await panel.webview.postMessage({
|
|
92
|
+
command: "error",
|
|
93
|
+
message: e instanceof Error ? e.message : String(e),
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
async function sendEntries(): Promise<void> {
|
|
100
|
+
const [logRes, headRes] = await Promise.all([
|
|
101
|
+
spawnGit(vscode, ["reflog", REFLOG_FORMAT, `--max-count=${MAX_ENTRIES}`], projectPath, 60_000),
|
|
102
|
+
spawnGit(vscode, ["rev-parse", "--abbrev-ref", "HEAD"], projectPath),
|
|
103
|
+
]);
|
|
104
|
+
if (logRes.exitCode !== 0) {
|
|
105
|
+
throw new Error(logRes.stderr.trim() || "Could not read the reflog.");
|
|
106
|
+
}
|
|
107
|
+
const entries = parseReflog(logRes.stdout);
|
|
108
|
+
await panel.webview.postMessage({
|
|
109
|
+
command: "loadEntries",
|
|
110
|
+
data: {
|
|
111
|
+
entries,
|
|
112
|
+
branch: headRes.exitCode === 0 ? headRes.stdout.trim() : null,
|
|
113
|
+
truncated: entries.length === MAX_ENTRIES,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
async function createBranch(rawSelector: unknown, rawName: unknown): Promise<void> {
|
|
119
|
+
const selector = assertValidSelector(rawSelector);
|
|
120
|
+
const name = assertValidRef(rawName, "branch name");
|
|
121
|
+
const res = await spawnGit(vscode, ["branch", "--", name, selector], projectPath);
|
|
122
|
+
await finish(res, `Created branch ${name}.`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async function checkoutDetached(rawSelector: unknown): Promise<void> {
|
|
126
|
+
const selector = assertValidSelector(rawSelector);
|
|
127
|
+
const res = await spawnGit(vscode, ["checkout", "--detach", selector], projectPath, 60_000);
|
|
128
|
+
await finish(res, "Checked out in detached HEAD.");
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
async function resetHard(rawSelector: unknown): Promise<void> {
|
|
132
|
+
const selector = assertValidSelector(rawSelector);
|
|
133
|
+
|
|
134
|
+
const refusal = resetHardRefusal(await spawnGit(vscode, ["status", "--porcelain"], projectPath));
|
|
135
|
+
if (refusal) throw new Error(refusal);
|
|
136
|
+
|
|
137
|
+
const res = await spawnGit(vscode, ["reset", "--hard", selector], projectPath, 60_000);
|
|
138
|
+
await finish(res, `Reset to ${selector}.`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async function finish(res: { exitCode: number; stdout: string; stderr: string }, okMessage: string): Promise<void> {
|
|
142
|
+
if (res.exitCode !== 0) {
|
|
143
|
+
throw new Error(res.stderr.trim() || res.stdout.trim() || "git refused the command.");
|
|
144
|
+
}
|
|
145
|
+
await panel.webview.postMessage({
|
|
146
|
+
command: "actionResult",
|
|
147
|
+
data: { message: okMessage, output: (res.stdout + res.stderr).trim() },
|
|
148
|
+
});
|
|
149
|
+
await sendEntries();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function getReflogHtml(): string {
|
|
154
|
+
return shellHtml({
|
|
155
|
+
toolbar: `
|
|
156
|
+
<div class="toolbar-left">
|
|
157
|
+
<span class="toolbar-title">Reflog</span>
|
|
158
|
+
<span class="toolbar-sub" id="branch-label"></span>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="toolbar-right">
|
|
161
|
+
<input type="text" id="filter" placeholder="Filter" />
|
|
162
|
+
<select id="kind">
|
|
163
|
+
<option value="">All actions</option>
|
|
164
|
+
<option value="commit">commit</option>
|
|
165
|
+
<option value="checkout">checkout</option>
|
|
166
|
+
<option value="reset">reset</option>
|
|
167
|
+
<option value="rebase">rebase</option>
|
|
168
|
+
<option value="merge">merge</option>
|
|
169
|
+
<option value="pull">pull</option>
|
|
170
|
+
<option value="clone">clone</option>
|
|
171
|
+
</select>
|
|
172
|
+
<button id="btn-refresh">Refresh</button>
|
|
173
|
+
</div>`,
|
|
174
|
+
body: `
|
|
175
|
+
<div id="list" class="scroll"></div>
|
|
176
|
+
<div class="foot">
|
|
177
|
+
Every commit listed here still exists, even if no branch points at it any more.
|
|
178
|
+
<b>Branch here</b> is the safe way back — it only adds a name.
|
|
179
|
+
</div>
|
|
180
|
+
<div id="output" class="output hidden"></div>`,
|
|
181
|
+
css: `
|
|
182
|
+
#filter { width: 130px; }
|
|
183
|
+
|
|
184
|
+
.rl-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
|
|
185
|
+
.rl-row:hover { background: var(--surface-hover); }
|
|
186
|
+
.rl-sel { flex-shrink: 0; font-family: ui-monospace, monospace; font-size: 10px; color: var(--subtext); min-width: 62px; }
|
|
187
|
+
.rl-main { flex: 1; min-width: 0; }
|
|
188
|
+
.rl-action { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
189
|
+
.rl-subject { color: var(--subtext); font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
190
|
+
.rl-meta { color: var(--subtext); font-size: 10px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
|
|
191
|
+
.rl-hash { font-family: ui-monospace, monospace; }
|
|
192
|
+
.rl-kind { flex-shrink: 0; font-size: 10px; padding: 1px 5px; border-radius: 3px; background: var(--surface); border: 1px solid var(--border2); }
|
|
193
|
+
.rl-kind.k-reset, .rl-kind.k-rebase { color: var(--red); }
|
|
194
|
+
.rl-kind.k-commit { color: var(--green); }
|
|
195
|
+
.rl-kind.k-checkout { color: var(--blue); }
|
|
196
|
+
.rl-acts { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
|
|
197
|
+
.rl-acts button { font-size: 10px; }
|
|
198
|
+
|
|
199
|
+
.rl-confirm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
|
|
200
|
+
.rl-confirm label { font-size: 11px; color: var(--subtext); }
|
|
201
|
+
.rl-confirm input { flex: 1; min-width: 140px; }
|
|
202
|
+
.rl-confirm.danger-zone { border-left: 3px solid var(--red); }
|
|
203
|
+
|
|
204
|
+
.foot { padding: 6px 10px; border-top: 1px solid var(--border); color: var(--subtext); font-size: 10px; flex-shrink: 0; line-height: 1.5; }
|
|
205
|
+
.output { border-top: 1px solid var(--border2); background: var(--surface); padding: 8px 10px; font-family: ui-monospace, monospace; font-size: 10px; white-space: pre-wrap; max-height: 28vh; overflow: auto; flex-shrink: 0; }
|
|
206
|
+
.output.ok { color: var(--green); }
|
|
207
|
+
.output.fail { color: var(--red); }
|
|
208
|
+
|
|
209
|
+
/* Actions must be reachable without a hover, and big enough to hit. */
|
|
210
|
+
@media (max-width: 720px) {
|
|
211
|
+
.rl-row { flex-wrap: wrap; }
|
|
212
|
+
.rl-acts { width: 100%; justify-content: flex-start; }
|
|
213
|
+
.rl-acts button { min-height: 32px; padding: 0 10px; }
|
|
214
|
+
}`,
|
|
215
|
+
script: `
|
|
216
|
+
const state = { entries: [], branch: null, truncated: false, filter: '', kind: '', pending: null };
|
|
217
|
+
|
|
218
|
+
const el = {
|
|
219
|
+
list: document.getElementById('list'),
|
|
220
|
+
branchLabel: document.getElementById('branch-label'),
|
|
221
|
+
filter: document.getElementById('filter'),
|
|
222
|
+
kind: document.getElementById('kind'),
|
|
223
|
+
output: document.getElementById('output'),
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
function visible() {
|
|
227
|
+
const needle = state.filter.trim().toLowerCase();
|
|
228
|
+
return state.entries.filter((e) => {
|
|
229
|
+
if (state.kind && e.kind !== state.kind) return false;
|
|
230
|
+
if (!needle) return true;
|
|
231
|
+
return (e.action + ' ' + e.subject + ' ' + e.hash + ' ' + e.selector).toLowerCase().includes(needle);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/** The expanded row that collects the one answer an action needs. */
|
|
236
|
+
function confirmHtml(entry) {
|
|
237
|
+
const p = state.pending;
|
|
238
|
+
if (!p || p.selector !== entry.selector) return '';
|
|
239
|
+
const short = entry.hash.slice(0, 7);
|
|
240
|
+
if (p.kind === 'branch') {
|
|
241
|
+
return '<div class="rl-confirm">'
|
|
242
|
+
+ '<label>New branch at ' + escHtml(short) + '</label>'
|
|
243
|
+
+ '<input type="text" id="confirm-input" placeholder="branch-name" />'
|
|
244
|
+
+ '<button data-act="do-branch" class="primary">Create</button>'
|
|
245
|
+
+ '<button data-act="cancel">Cancel</button>'
|
|
246
|
+
+ '</div>';
|
|
247
|
+
}
|
|
248
|
+
return '<div class="rl-confirm danger-zone">'
|
|
249
|
+
+ '<label>This moves ' + escHtml(state.branch || 'HEAD') + ' to ' + escHtml(short)
|
|
250
|
+
+ ' and rewrites the working tree. Type <b>' + escHtml(short) + '</b> to confirm.</label>'
|
|
251
|
+
+ '<input type="text" id="confirm-input" placeholder="' + escHtml(short) + '" />'
|
|
252
|
+
+ '<button data-act="do-reset" class="danger">Reset --hard</button>'
|
|
253
|
+
+ '<button data-act="cancel">Cancel</button>'
|
|
254
|
+
+ '</div>';
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function render() {
|
|
258
|
+
const rows = visible();
|
|
259
|
+
if (!rows.length) {
|
|
260
|
+
el.list.innerHTML = '<div class="empty">' + (state.entries.length
|
|
261
|
+
? 'Nothing in the reflog matches this filter.'
|
|
262
|
+
: 'This repository has no reflog yet.') + '</div>';
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
el.list.innerHTML = rows.map((e) =>
|
|
266
|
+
'<div class="rl-row" data-sel="' + escHtml(e.selector) + '" data-hash="' + escHtml(e.hash) + '">'
|
|
267
|
+
+ '<span class="rl-sel">' + escHtml(e.selector) + '</span>'
|
|
268
|
+
+ '<div class="rl-main">'
|
|
269
|
+
+ '<div class="rl-action">' + escHtml(e.action) + '</div>'
|
|
270
|
+
+ (e.subject && e.subject !== e.action ? '<div class="rl-subject">' + escHtml(e.subject) + '</div>' : '')
|
|
271
|
+
+ '<div class="rl-meta">' + avatarHtml(e.author, e.authorEmail)
|
|
272
|
+
+ '<span>' + escHtml(e.author) + '</span>'
|
|
273
|
+
+ '<span>' + escHtml(relTime(e.authorDate)) + '</span>'
|
|
274
|
+
+ '<span class="rl-hash">' + escHtml(e.hash.slice(0, 7)) + '</span>'
|
|
275
|
+
+ '<span class="rl-kind k-' + escHtml(e.kind) + '">' + escHtml(e.kind || 'other') + '</span>'
|
|
276
|
+
+ '</div>'
|
|
277
|
+
+ '</div>'
|
|
278
|
+
+ '<div class="rl-acts">'
|
|
279
|
+
+ '<button data-act="branch">Branch here</button>'
|
|
280
|
+
+ '<button data-act="checkout">Checkout</button>'
|
|
281
|
+
+ '<button data-act="reset" class="danger">Reset --hard</button>'
|
|
282
|
+
+ '</div>'
|
|
283
|
+
+ '</div>'
|
|
284
|
+
+ confirmHtml(e)).join('')
|
|
285
|
+
+ (state.truncated ? '<div class="fh-end">Showing the most recent ' + rows.length + ' entries.</div>' : '');
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
el.list.addEventListener('click', (e) => {
|
|
289
|
+
const btn = e.target.closest('button[data-act]');
|
|
290
|
+
if (!btn) return;
|
|
291
|
+
const row = btn.closest('.rl-row, .rl-confirm');
|
|
292
|
+
if (!row) return;
|
|
293
|
+
const act = btn.dataset.act;
|
|
294
|
+
clearError();
|
|
295
|
+
|
|
296
|
+
if (act === 'cancel') { state.pending = null; render(); return; }
|
|
297
|
+
|
|
298
|
+
if (act === 'do-branch') {
|
|
299
|
+
const name = (el.list.querySelector('#confirm-input') || {}).value || '';
|
|
300
|
+
if (!name.trim()) { showError('Enter a name for the new branch.'); return; }
|
|
301
|
+
vscode.postMessage({ command: 'createBranch', selector: state.pending.selector, name: name.trim() });
|
|
302
|
+
state.pending = null;
|
|
303
|
+
render();
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (act === 'do-reset') {
|
|
308
|
+
const typed = ((el.list.querySelector('#confirm-input') || {}).value || '').trim();
|
|
309
|
+
if (typed !== state.pending.hash.slice(0, 7)) {
|
|
310
|
+
showError('That did not match ' + state.pending.hash.slice(0, 7) + ' — nothing was changed.');
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
vscode.postMessage({ command: 'resetHard', selector: state.pending.selector });
|
|
314
|
+
state.pending = null;
|
|
315
|
+
render();
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const selector = row.dataset.sel;
|
|
320
|
+
const hash = row.dataset.hash;
|
|
321
|
+
if (act === 'checkout') {
|
|
322
|
+
vscode.postMessage({ command: 'checkout', selector: selector });
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
// Branch and reset both need a typed answer, and a sandboxed webview has no
|
|
326
|
+
// prompt(): the frontend mounts these panels with sandbox="allow-scripts"
|
|
327
|
+
// alone, so every modal API is a silent no-op. The row expands instead.
|
|
328
|
+
state.pending = { kind: act, selector: selector, hash: hash };
|
|
329
|
+
render();
|
|
330
|
+
const box = el.list.querySelector('#confirm-input');
|
|
331
|
+
if (box) box.focus();
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
el.list.addEventListener('keydown', (e) => {
|
|
335
|
+
if (e.key !== 'Enter' || e.target.id !== 'confirm-input') return;
|
|
336
|
+
e.preventDefault();
|
|
337
|
+
const primary = el.list.querySelector('.rl-confirm button[data-act^="do-"]');
|
|
338
|
+
if (primary) primary.click();
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
el.filter.addEventListener('input', () => { state.filter = el.filter.value; render(); });
|
|
342
|
+
el.kind.addEventListener('change', () => { state.kind = el.kind.value; render(); });
|
|
343
|
+
document.getElementById('btn-refresh').addEventListener('click', () => {
|
|
344
|
+
clearError();
|
|
345
|
+
vscode.postMessage({ command: 'refresh' });
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
function showOutput(text, ok) {
|
|
349
|
+
el.output.textContent = text;
|
|
350
|
+
el.output.classList.remove('hidden', 'ok', 'fail');
|
|
351
|
+
el.output.classList.add(ok ? 'ok' : 'fail');
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
window.addEventListener('message', (event) => {
|
|
355
|
+
const msg = event.data || {};
|
|
356
|
+
switch (msg.command) {
|
|
357
|
+
case 'loadEntries':
|
|
358
|
+
state.entries = msg.data.entries || [];
|
|
359
|
+
state.branch = msg.data.branch;
|
|
360
|
+
state.truncated = !!msg.data.truncated;
|
|
361
|
+
el.branchLabel.textContent = state.branch ? 'HEAD → ' + state.branch : '';
|
|
362
|
+
render();
|
|
363
|
+
break;
|
|
364
|
+
case 'actionResult':
|
|
365
|
+
showOutput(msg.data.message + (msg.data.output ? '\\n' + msg.data.output : ''), true);
|
|
366
|
+
break;
|
|
367
|
+
case 'error':
|
|
368
|
+
showError(msg.message);
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
vscode.postMessage({ command: 'ready' });`,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boilerplate shared by every panel-opening command: resolve the project path
|
|
3
|
+
* from the dispatch args (falling back to the PPM API), surface a readable
|
|
4
|
+
* error when there is no project, and log failures with the command name.
|
|
5
|
+
*
|
|
6
|
+
* The command id must equal the panel's viewType — the frontend derives the tab
|
|
7
|
+
* slug from both by stripping a trailing `.view`, and only creates the tab when
|
|
8
|
+
* the two slugs match.
|
|
9
|
+
*/
|
|
10
|
+
import type { ExtensionContext } from "@ppm/vscode-compat";
|
|
11
|
+
import type { VscodeApi } from "./git-exec.ts";
|
|
12
|
+
import { resolveProjectPath } from "./ppm-api.ts";
|
|
13
|
+
|
|
14
|
+
export interface ViewCommandOptions {
|
|
15
|
+
context: ExtensionContext;
|
|
16
|
+
vscode: VscodeApi;
|
|
17
|
+
/** Command id, identical to the viewType of the panel it opens. */
|
|
18
|
+
command: string;
|
|
19
|
+
/** Human label used in the "no project" error. */
|
|
20
|
+
label: string;
|
|
21
|
+
open: (projectPath: string, args: unknown[]) => void | Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function registerViewCommand(options: ViewCommandOptions): void {
|
|
25
|
+
const { context, vscode, command, label, open } = options;
|
|
26
|
+
// registerCommand returns a structural { dispose() }, while subscriptions is
|
|
27
|
+
// typed as the Disposable class; they are interchangeable at runtime.
|
|
28
|
+
context.subscriptions.push(
|
|
29
|
+
vscode.commands.registerCommand(command, async (...args: unknown[]) => {
|
|
30
|
+
const projectPath = args[0] as string | undefined;
|
|
31
|
+
const resolvedPath = projectPath || await resolveProjectPath();
|
|
32
|
+
if (!resolvedPath) {
|
|
33
|
+
console.warn(`[ext-git-graph] ${command}: no project path resolved`);
|
|
34
|
+
await vscode.window.showErrorMessage(
|
|
35
|
+
`${label}: No project selected. Open a project first, then try again.`,
|
|
36
|
+
);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
await open(resolvedPath, args);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.error(`[ext-git-graph] ${command} failed:`, e);
|
|
43
|
+
await vscode.window.showErrorMessage(`${label}: ${e instanceof Error ? e.message : String(e)}`);
|
|
44
|
+
}
|
|
45
|
+
}) as unknown as (typeof context.subscriptions)[number],
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { describe, it, expect } from "bun:test";
|
|
2
|
+
import { describeSubmoduleState, parseSubmoduleStatus } from "./submodule-parser.ts";
|
|
3
|
+
|
|
4
|
+
const A = "a".repeat(40);
|
|
5
|
+
const B = "b".repeat(40);
|
|
6
|
+
|
|
7
|
+
describe("parseSubmoduleStatus", () => {
|
|
8
|
+
it("decodes the leading state character", () => {
|
|
9
|
+
const out = parseSubmoduleStatus([
|
|
10
|
+
` ${A} libs/current (v1.2.0)`,
|
|
11
|
+
`-${A} libs/absent`,
|
|
12
|
+
`+${B} libs/drifted (heads/main)`,
|
|
13
|
+
`U${A} libs/conflicted`,
|
|
14
|
+
].join("\n"));
|
|
15
|
+
|
|
16
|
+
expect(out.map((s) => s.state)).toEqual([
|
|
17
|
+
"current", "uninitialized", "modified", "conflicted",
|
|
18
|
+
]);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it("reads the path and the recorded sha", () => {
|
|
22
|
+
const [only] = parseSubmoduleStatus(` ${A} libs/parser (v1.2.0-3-gc0ffee)`);
|
|
23
|
+
|
|
24
|
+
expect(only).toEqual({
|
|
25
|
+
path: "libs/parser",
|
|
26
|
+
hash: A,
|
|
27
|
+
state: "current",
|
|
28
|
+
describe: "v1.2.0-3-gc0ffee",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it("keeps a path that contains spaces whole", () => {
|
|
33
|
+
// The describe suffix is what makes this ambiguous; it is stripped from the
|
|
34
|
+
// end, so everything before it belongs to the path.
|
|
35
|
+
const [only] = parseSubmoduleStatus(` ${A} vendor/some lib (v1.0)`);
|
|
36
|
+
|
|
37
|
+
expect(only!.path).toBe("vendor/some lib");
|
|
38
|
+
expect(only!.describe).toBe("v1.0");
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("leaves describe unset when git printed none", () => {
|
|
42
|
+
const [only] = parseSubmoduleStatus(`-${A} libs/absent`);
|
|
43
|
+
|
|
44
|
+
expect(only!.describe).toBeUndefined();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("keeps parentheses inside a describe string", () => {
|
|
48
|
+
const [only] = parseSubmoduleStatus(` ${A} libs/parser (heads/feature/x)`);
|
|
49
|
+
|
|
50
|
+
expect(only!.describe).toBe("heads/feature/x");
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it("tolerates CRLF line endings", () => {
|
|
54
|
+
expect(parseSubmoduleStatus(` ${A} libs/a\r\n ${B} libs/b\r\n`)).toHaveLength(2);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("skips a line it cannot read rather than inventing a path", () => {
|
|
58
|
+
const out = parseSubmoduleStatus([
|
|
59
|
+
"fatal: not a git repository",
|
|
60
|
+
` ${A} libs/parser`,
|
|
61
|
+
].join("\n"));
|
|
62
|
+
|
|
63
|
+
expect(out).toHaveLength(1);
|
|
64
|
+
expect(out[0]!.path).toBe("libs/parser");
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("returns nothing for a repository with no submodules", () => {
|
|
68
|
+
expect(parseSubmoduleStatus("")).toEqual([]);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
describe("describeSubmoduleState", () => {
|
|
73
|
+
it("says what each state means", () => {
|
|
74
|
+
expect(describeSubmoduleState("current")).toBe("up to date");
|
|
75
|
+
expect(describeSubmoduleState("uninitialized")).toBe("not checked out");
|
|
76
|
+
expect(describeSubmoduleState("modified")).toBe("differs from the recorded commit");
|
|
77
|
+
expect(describeSubmoduleState("conflicted")).toBe("has merge conflicts");
|
|
78
|
+
});
|
|
79
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parsing for `git submodule status`.
|
|
3
|
+
*
|
|
4
|
+
* Each line is a one-character state, the sha the *superproject* records, the
|
|
5
|
+
* path, and — only when the submodule is checked out — what `git describe` says
|
|
6
|
+
* about that commit:
|
|
7
|
+
*
|
|
8
|
+
* c0ffee… libs/parser (v1.2.0-3-gc0ffee)
|
|
9
|
+
* -c0ffee… libs/parser
|
|
10
|
+
* +badbeef… libs/parser (heads/main)
|
|
11
|
+
* U0000000… libs/parser
|
|
12
|
+
*
|
|
13
|
+
* The leading character is the whole point of the command, so it is decoded
|
|
14
|
+
* rather than shown raw: `-` means nothing is checked out (the directory is
|
|
15
|
+
* empty), `+` means the checkout has drifted from the recorded sha, and `U`
|
|
16
|
+
* means a merge left conflicts inside it.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export type SubmoduleState = "current" | "uninitialized" | "modified" | "conflicted";
|
|
20
|
+
|
|
21
|
+
export interface Submodule {
|
|
22
|
+
path: string;
|
|
23
|
+
/** The sha the superproject points at. */
|
|
24
|
+
hash: string;
|
|
25
|
+
state: SubmoduleState;
|
|
26
|
+
/** `git describe` output for the checked-out commit, when there is one. */
|
|
27
|
+
describe?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const LINE = /^([ +\-U])([0-9a-f]{7,40}) (.*?)(?: \(([^)]*)\))?$/;
|
|
31
|
+
|
|
32
|
+
const STATES: Record<string, SubmoduleState> = {
|
|
33
|
+
" ": "current",
|
|
34
|
+
"-": "uninitialized",
|
|
35
|
+
"+": "modified",
|
|
36
|
+
U: "conflicted",
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export function parseSubmoduleStatus(stdout: string): Submodule[] {
|
|
40
|
+
const submodules: Submodule[] = [];
|
|
41
|
+
|
|
42
|
+
for (const raw of stdout.split("\n")) {
|
|
43
|
+
// Only \r from a CRLF checkout is stripped; a path may not contain one.
|
|
44
|
+
const line = raw.replace(/\r$/, "");
|
|
45
|
+
if (!line.trim()) continue;
|
|
46
|
+
|
|
47
|
+
const match = LINE.exec(line);
|
|
48
|
+
if (!match) continue;
|
|
49
|
+
|
|
50
|
+
const state = STATES[match[1] ?? " "];
|
|
51
|
+
const path = match[3] ?? "";
|
|
52
|
+
if (!state || !path) continue;
|
|
53
|
+
|
|
54
|
+
submodules.push({
|
|
55
|
+
path,
|
|
56
|
+
hash: match[2] ?? "",
|
|
57
|
+
state,
|
|
58
|
+
...(match[4] ? { describe: match[4] } : {}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return submodules;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** One line of plain English for the state, for the panel to show. */
|
|
66
|
+
export function describeSubmoduleState(state: SubmoduleState): string {
|
|
67
|
+
switch (state) {
|
|
68
|
+
case "uninitialized":
|
|
69
|
+
return "not checked out";
|
|
70
|
+
case "modified":
|
|
71
|
+
return "differs from the recorded commit";
|
|
72
|
+
case "conflicted":
|
|
73
|
+
return "has merge conflicts";
|
|
74
|
+
default:
|
|
75
|
+
return "up to date";
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -190,4 +190,13 @@ export type WebviewToExt =
|
|
|
190
190
|
| { command: "openFile"; filePath: string }
|
|
191
191
|
| { command: "openConflictFile"; filePath: string }
|
|
192
192
|
| { command: "openSourceControl" }
|
|
193
|
-
| { command: "requestStashes" }
|
|
193
|
+
| { command: "requestStashes" }
|
|
194
|
+
| { command: "searchCommits"; mode: string; text: string }
|
|
195
|
+
| { command: "openBlame"; filePath: string; hash?: string }
|
|
196
|
+
| { command: "openFileHistory"; filePath: string }
|
|
197
|
+
| { command: "openCompare"; ref1?: string; ref2?: string }
|
|
198
|
+
| { command: "openInteractiveRebase"; base?: string }
|
|
199
|
+
| { command: "openReflog" }
|
|
200
|
+
| { command: "requestSubmodules" }
|
|
201
|
+
| { command: "updateSubmodule"; path: string }
|
|
202
|
+
| { command: "openSubmodule"; path: string };
|