@hienlh/ppm 0.19.11 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-BQyru31C.js +1 -0
- package/dist/web/assets/{ai-resource-editor-iMqzzz5c.js → ai-resource-editor-BgYIPGVP.js} +1 -1
- package/dist/web/assets/{ai-settings-section-B-1z-PRb.js → ai-settings-section-Cywmtnps.js} +1 -1
- package/dist/web/assets/ai-settings-section-iBRCQvBR.js +1 -0
- 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-2XZgB0mV.js → appearance-settings-section-mhu9T6Fk.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-Bs9OD6ss.js +15 -0
- package/dist/web/assets/{cobol-Bo0usdoM.js → cobol-BreMVrtc.js} +1 -1
- package/dist/web/assets/code-editor-Cv_pzHo7.js +7 -0
- package/dist/web/assets/{coffee-DBBsbX1e.js → coffee-D7DoKh5b.js} +1 -1
- package/dist/web/assets/{conflict-editor-BpdoTEfv.js → conflict-editor-BnWaMSEa.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-C3DoHISX.js → csv-preview-DG4YAabr.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-CxZ2fdcd.js → database-viewer-B-wA2qT-.js} +1 -1
- package/dist/web/assets/diff-viewer-DRtzdfXk.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-6tzdk7Pn.js} +1 -1
- 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-Bpe6UX0b.js → explorer-body-uh8oJp6J.js} +2 -2
- package/dist/web/assets/explorer-window-content-DLn_4egF.js +1 -0
- package/dist/web/assets/{extension-manager-section-D_rKLp-o.js → extension-manager-section-C_ZGYvWf.js} +1 -1
- package/dist/web/assets/{extension-webview-kEtrZoRZ.js → extension-webview-DbFWxJpj.js} +1 -1
- package/dist/web/assets/{files-settings-section-B0wLfQ9S.js → files-settings-section-BrUbJglA.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-DZ3xpgwh.js → general-settings-section-B9ZPZVso.js} +1 -1
- package/dist/web/assets/{git-commit-qwJ867ig.js → git-commit-BW0p3Ekk.js} +1 -1
- package/dist/web/assets/{git-log-panel-BNicD2In.js → git-log-panel-C0jnhmgC.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-CdK5dW5L.js → glide-data-grid-CZVKIum-.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-DnPtmbPc.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-CHQAPZIX.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-DL_boZNh.js → jira-watcher-section-Bjldyhru.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-DBVXZKp8.js +1 -0
- package/dist/web/assets/{keyboard-shortcuts-section-DzQzV49E.js → keyboard-shortcuts-section-D7jaCPrv.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-BfoCOrL8.js → markdown-renderer-B4B5oxQS.js} +3 -3
- package/dist/web/assets/markdown-renderer-DwHh-jd_.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-JJxZYWkV.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-CCWNUHsS.js +1 -0
- package/dist/web/assets/{notifications-settings-section-BXCaGBVc.js → notifications-settings-section-DbbX7-Qp.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-DbRFOtQD.js → pdf-preview-DxNjWa1v.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-BrQRqTso.js → postgres-viewer-BScvk5ev.js} +3 -3
- package/dist/web/assets/{ppmbot-settings-section-BEV23_SM.js → ppmbot-settings-section-jFA9Ncgo.js} +1 -1
- package/dist/web/assets/{process-table-CG8d5eXs.js → process-table-BexeYWQm.js} +1 -1
- package/dist/web/assets/{project-store-BuY7rxn_.js → project-store-wWZ6bjwq.js} +1 -1
- package/dist/web/assets/{proxy-settings-section-Cw0Wtsv0.js → proxy-settings-section-C_seKq56.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-50B7mQal.js → query-audit-section-BWXJmPDV.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-B--PeL5i.js +2 -0
- package/dist/web/assets/{remote-desktop-mobile-view-DPF_b_jd.js → remote-desktop-mobile-view-jgn8nmQa.js} +1 -1
- package/dist/web/assets/{remote-desktop-readiness-gate-J7E6355i.js → remote-desktop-readiness-gate-CjDth-W_.js} +1 -1
- package/dist/web/assets/{remote-desktop-window-content-0xsAifZH.js → remote-desktop-window-content-CrHAUA03.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-DMFn3mYL.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-CUTsPLea.js → settings-body-Dz2vPTEP.js} +2 -2
- package/dist/web/assets/settings-store-CzLnTR8p.js +2 -0
- package/dist/web/assets/settings-tab-B5QbsvS4.js +1 -0
- package/dist/web/assets/settings-window-content-iM2bPoX5.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-CwOcDbp4.js → sql-query-editor-C0mGgLfX.js} +1 -1
- package/dist/web/assets/{sqlite-viewer-DYdcqZv1.js → sqlite-viewer-Bs3RKf1X.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-CugdEvdh.js → system-monitor-body-DvUmEdNe.js} +2 -2
- package/dist/web/assets/system-monitor-tab-CHZ5F_ZE.js +1 -0
- package/dist/web/assets/{system-monitor-window-content-CJfcQqc2.js → system-monitor-window-content-DjzqoeCN.js} +1 -1
- package/dist/web/assets/{tab-host-window-content-5Ga7BheG.js → tab-host-window-content-DKeAr5mD.js} +1 -1
- package/dist/web/assets/{tab-store-PZsP5ZwG.js → tab-store-1xYJb0gM.js} +1 -1
- package/dist/web/assets/team-member-sheet-Cl9ZB3dl.js +2 -0
- package/dist/web/assets/team-member-window-content-DfP7WdFD.js +1 -0
- package/dist/web/assets/{templ-BVHE2CNb.js → templ-BAdNyIOL.js} +1 -1
- package/dist/web/assets/{terminal-tab-CkxJIjii.js → terminal-tab-J1Fqa_rm.js} +2 -2
- package/dist/web/assets/{tex-C8XwrbBw.js → tex-IQ8mELOR.js} +1 -1
- package/dist/web/assets/tool-cards-DQghSuKX.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-KWcMgRlc.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-DOhDvEKJ.js → use-monaco-theme-aa4-wjKQ.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-B3VIBQxC.js → use-remote-desktop-display-choice-B-TpQ-Ua.js} +1 -1
- package/dist/web/assets/{use-websocket-D9MsDysx.js → use-websocket-BBslmv3D.js} +1 -1
- package/dist/web/assets/{vendor-mermaid-CKKtYuTV.js → vendor-mermaid-CfY1-PkA.js} +1 -1
- package/dist/web/assets/{video-preview-VL2Br0YM.js → video-preview-Bd0lcK3d.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 +35 -6
- package/src/web/components/chat/chat-tab.tsx +120 -3
- package/src/web/components/chat/codex-usage-panel.tsx +148 -14
- 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/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/hooks/use-usage.ts +3 -3
- 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-C1YP1iCb.js +0 -1
- package/dist/web/assets/ai-settings-section-BJPgHUqk.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-Bn4vZVZJ.js +0 -15
- package/dist/web/assets/code-editor-DN5GJXT3.js +0 -7
- package/dist/web/assets/diff-viewer-DxzD_YSO.js +0 -4
- package/dist/web/assets/explorer-window-content-DixZaLLP.js +0 -1
- package/dist/web/assets/gitGraph-HDMCJU4V-BHxJbXfV.js +0 -1
- package/dist/web/assets/group-chat-tab-D-HXdnoU.js +0 -1
- package/dist/web/assets/index-DdMq4zqb.js +0 -52
- package/dist/web/assets/index-N-pnuwFP.css +0 -2
- package/dist/web/assets/info-3K5VOQVL-DI4p3vbH.js +0 -1
- package/dist/web/assets/keybindings-store-DQkz4a35.js +0 -1
- package/dist/web/assets/markdown-renderer-C35QMvZp.js +0 -1
- package/dist/web/assets/mobile-explorer-sheet-ZHfT5IN3.js +0 -1
- package/dist/web/assets/notification-store-J1yP_Ebb.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-DhcAyXE5.js +0 -2
- package/dist/web/assets/schedules-settings-section-BFzMEPTd.js +0 -1
- package/dist/web/assets/settings-store-DWUx3865.js +0 -2
- package/dist/web/assets/settings-tab-DVV26vPK.js +0 -1
- package/dist/web/assets/settings-window-content-z64J3tfm.js +0 -1
- package/dist/web/assets/system-monitor-tab-jnPQtmvK.js +0 -1
- package/dist/web/assets/team-member-sheet-8FDCVZMG.js +0 -2
- package/dist/web/assets/team-member-window-content-0JRiWRdG.js +0 -1
- package/dist/web/assets/tool-cards-DuTlfeWN.js +0 -9
- package/dist/web/assets/treemap-KZPCXAKY-C2CvKBQR.js +0 -1
- package/dist/web/assets/use-accounts-data--pdg01TI.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,154 @@
|
|
|
1
|
+
import { describe, it, expect } from "bun:test";
|
|
2
|
+
import { computeAgeWeights, isUncommittedHash, parseBlamePorcelain } from "./blame-parser.ts";
|
|
3
|
+
|
|
4
|
+
const A = "a".repeat(40);
|
|
5
|
+
const B = "b".repeat(40);
|
|
6
|
+
const ZERO = "0".repeat(40);
|
|
7
|
+
|
|
8
|
+
/** Build one porcelain block; `full` controls whether the commit header repeats. */
|
|
9
|
+
function block(hash: string, orig: number, final: number, content: string, full?: {
|
|
10
|
+
author: string; mail: string; time: number; summary: string;
|
|
11
|
+
}): string {
|
|
12
|
+
const lines = [`${hash} ${orig} ${final}`];
|
|
13
|
+
if (full) {
|
|
14
|
+
lines.push(
|
|
15
|
+
`author ${full.author}`,
|
|
16
|
+
`author-mail <${full.mail}>`,
|
|
17
|
+
`author-time ${full.time}`,
|
|
18
|
+
"author-tz +0000",
|
|
19
|
+
`summary ${full.summary}`,
|
|
20
|
+
"filename src/app.ts",
|
|
21
|
+
);
|
|
22
|
+
} else {
|
|
23
|
+
lines.push("filename src/app.ts");
|
|
24
|
+
}
|
|
25
|
+
lines.push(`\t${content}`);
|
|
26
|
+
return lines.join("\n");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
describe("parseBlamePorcelain", () => {
|
|
30
|
+
it("attaches metadata sent once to every later line of the same commit", () => {
|
|
31
|
+
const stdout = [
|
|
32
|
+
block(A, 1, 1, "const a = 1;", { author: "Mai", mail: "mai@example.com", time: 1700000000, summary: "add a" }),
|
|
33
|
+
block(A, 2, 2, "const b = 2;"),
|
|
34
|
+
].join("\n") + "\n";
|
|
35
|
+
|
|
36
|
+
const result = parseBlamePorcelain(stdout);
|
|
37
|
+
|
|
38
|
+
expect(result.lines).toHaveLength(2);
|
|
39
|
+
expect(result.lines[0]!.hash).toBe(A);
|
|
40
|
+
expect(result.lines[1]!.hash).toBe(A);
|
|
41
|
+
// The second block carries no author line — it must still resolve.
|
|
42
|
+
expect(result.commits[A]!.author).toBe("Mai");
|
|
43
|
+
expect(result.commits[A]!.authorMail).toBe("mai@example.com");
|
|
44
|
+
expect(result.commits[A]!.summary).toBe("add a");
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("keeps the line content verbatim, including a trailing CR", () => {
|
|
48
|
+
const stdout = block(A, 1, 1, "const a = 1;\r", {
|
|
49
|
+
author: "Mai", mail: "mai@example.com", time: 1, summary: "s",
|
|
50
|
+
}) + "\n";
|
|
51
|
+
|
|
52
|
+
const result = parseBlamePorcelain(stdout);
|
|
53
|
+
|
|
54
|
+
expect(result.lines[0]!.content).toBe("const a = 1;\r");
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("preserves an empty line rather than dropping it", () => {
|
|
58
|
+
const stdout = [
|
|
59
|
+
block(A, 1, 1, "", { author: "Mai", mail: "m@e.com", time: 1, summary: "s" }),
|
|
60
|
+
block(A, 2, 2, "x"),
|
|
61
|
+
].join("\n") + "\n";
|
|
62
|
+
|
|
63
|
+
const result = parseBlamePorcelain(stdout);
|
|
64
|
+
|
|
65
|
+
expect(result.lines).toHaveLength(2);
|
|
66
|
+
expect(result.lines[0]!.content).toBe("");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("labels the all-zero hash as not committed yet", () => {
|
|
70
|
+
const stdout = block(ZERO, 1, 1, "wip") + "\n";
|
|
71
|
+
|
|
72
|
+
const result = parseBlamePorcelain(stdout);
|
|
73
|
+
|
|
74
|
+
expect(isUncommittedHash(result.lines[0]!.hash)).toBe(true);
|
|
75
|
+
expect(result.commits[ZERO]!.author).toBe("Not Committed Yet");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("records the original and final line numbers separately", () => {
|
|
79
|
+
const stdout = block(A, 12, 3, "moved", {
|
|
80
|
+
author: "Mai", mail: "m@e.com", time: 1, summary: "s",
|
|
81
|
+
}) + "\n";
|
|
82
|
+
|
|
83
|
+
const result = parseBlamePorcelain(stdout);
|
|
84
|
+
|
|
85
|
+
expect(result.lines[0]!.origLine).toBe(12);
|
|
86
|
+
expect(result.lines[0]!.finalLine).toBe(3);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it("keeps the path a renamed file had at that commit", () => {
|
|
90
|
+
const stdout = [
|
|
91
|
+
`${A} 1 1`,
|
|
92
|
+
"author Mai",
|
|
93
|
+
"author-mail <m@e.com>",
|
|
94
|
+
"author-time 1",
|
|
95
|
+
"summary s",
|
|
96
|
+
"filename src/old-name.ts",
|
|
97
|
+
"\tcode",
|
|
98
|
+
].join("\n") + "\n";
|
|
99
|
+
|
|
100
|
+
const result = parseBlamePorcelain(stdout);
|
|
101
|
+
|
|
102
|
+
expect(result.commits[A]!.filename).toBe("src/old-name.ts");
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it("returns nothing for an empty file", () => {
|
|
106
|
+
expect(parseBlamePorcelain("")).toEqual({ lines: [], commits: {} });
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
describe("computeAgeWeights", () => {
|
|
111
|
+
it("scales the oldest commit to 0 and the newest to 1", () => {
|
|
112
|
+
const commits = {
|
|
113
|
+
[A]: { hash: A, author: "", authorMail: "", authorTime: 1000, summary: "", boundary: false },
|
|
114
|
+
[B]: { hash: B, author: "", authorMail: "", authorTime: 2000, summary: "", boundary: false },
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const weights = computeAgeWeights(commits);
|
|
118
|
+
|
|
119
|
+
expect(weights[A]).toBe(0);
|
|
120
|
+
expect(weights[B]).toBe(1);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("does not let uncommitted lines flatten the scale", () => {
|
|
124
|
+
const commits = {
|
|
125
|
+
[A]: { hash: A, author: "", authorMail: "", authorTime: 1000, summary: "", boundary: false },
|
|
126
|
+
[B]: { hash: B, author: "", authorMail: "", authorTime: 2000, summary: "", boundary: false },
|
|
127
|
+
[ZERO]: { hash: ZERO, author: "", authorMail: "", authorTime: 0, summary: "", boundary: false },
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const weights = computeAgeWeights(commits);
|
|
131
|
+
|
|
132
|
+
// Without excluding it, the zero timestamp would become the minimum and
|
|
133
|
+
// push both real commits to the warm end of the heatmap.
|
|
134
|
+
expect(weights[A]).toBe(0);
|
|
135
|
+
expect(weights[B]).toBe(1);
|
|
136
|
+
expect(weights[ZERO]).toBe(1);
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it("gives a single commit the full weight instead of dividing by zero", () => {
|
|
140
|
+
const commits = {
|
|
141
|
+
[A]: { hash: A, author: "", authorMail: "", authorTime: 1000, summary: "", boundary: false },
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
expect(computeAgeWeights(commits)[A]).toBe(1);
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
it("returns no weights when nothing is committed", () => {
|
|
148
|
+
const commits = {
|
|
149
|
+
[ZERO]: { hash: ZERO, author: "", authorMail: "", authorTime: 0, summary: "", boundary: false },
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
expect(computeAgeWeights(commits)).toEqual({});
|
|
153
|
+
});
|
|
154
|
+
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parser for `git blame --porcelain`.
|
|
3
|
+
*
|
|
4
|
+
* The porcelain format emits the full commit header only the *first* time a
|
|
5
|
+
* commit is seen; later lines from the same commit carry just the sha header,
|
|
6
|
+
* an optional `previous`/`filename`, and the content line. So commit metadata
|
|
7
|
+
* is accumulated into a map and lines reference it by sha — using
|
|
8
|
+
* `--line-porcelain` instead would repeat every header and roughly triple the
|
|
9
|
+
* output for no extra information.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface BlameCommitInfo {
|
|
13
|
+
hash: string;
|
|
14
|
+
author: string;
|
|
15
|
+
authorMail: string;
|
|
16
|
+
authorTime: number;
|
|
17
|
+
summary: string;
|
|
18
|
+
/** Set when this commit is the boundary of the traversal (e.g. a shallow root). */
|
|
19
|
+
boundary: boolean;
|
|
20
|
+
/** Path the file had at this commit — differs from the current path after a rename. */
|
|
21
|
+
filename?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface BlameLine {
|
|
25
|
+
hash: string;
|
|
26
|
+
/** 1-based line number in the file as it is now. */
|
|
27
|
+
finalLine: number;
|
|
28
|
+
/** 1-based line number in the file at that commit. */
|
|
29
|
+
origLine: number;
|
|
30
|
+
content: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface BlameResult {
|
|
34
|
+
lines: BlameLine[];
|
|
35
|
+
commits: Record<string, BlameCommitInfo>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** git uses an all-zero sha for lines that are not committed yet. */
|
|
39
|
+
export const UNCOMMITTED_HASH = "0".repeat(40);
|
|
40
|
+
|
|
41
|
+
export function isUncommittedHash(hash: string): boolean {
|
|
42
|
+
return /^0+$/.test(hash);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function stripAngles(value: string): string {
|
|
46
|
+
return value.replace(/^</, "").replace(/>$/, "");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function parseBlamePorcelain(stdout: string): BlameResult {
|
|
50
|
+
const commits: Record<string, BlameCommitInfo> = {};
|
|
51
|
+
const lines: BlameLine[] = [];
|
|
52
|
+
|
|
53
|
+
// Split on \n only: content lines may legitimately end with \r (a CRLF file),
|
|
54
|
+
// and that \r belongs to the file, not to the porcelain framing.
|
|
55
|
+
const rawLines = stdout.split("\n");
|
|
56
|
+
let current: BlameCommitInfo | null = null;
|
|
57
|
+
let finalLine = 0;
|
|
58
|
+
let origLine = 0;
|
|
59
|
+
|
|
60
|
+
for (const raw of rawLines) {
|
|
61
|
+
if (raw === "") continue;
|
|
62
|
+
|
|
63
|
+
// Content line — the only line kind that starts with a tab.
|
|
64
|
+
if (raw.startsWith("\t")) {
|
|
65
|
+
if (!current) continue;
|
|
66
|
+
lines.push({ hash: current.hash, finalLine, origLine, content: raw.slice(1) });
|
|
67
|
+
current = null;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const header = raw.match(/^([0-9a-f]{40})\s+(\d+)\s+(\d+)(?:\s+(\d+))?$/);
|
|
72
|
+
if (header) {
|
|
73
|
+
const hash = header[1] as string;
|
|
74
|
+
origLine = Number(header[2]);
|
|
75
|
+
finalLine = Number(header[3]);
|
|
76
|
+
let info = commits[hash];
|
|
77
|
+
if (!info) {
|
|
78
|
+
info = {
|
|
79
|
+
hash,
|
|
80
|
+
author: isUncommittedHash(hash) ? "Not Committed Yet" : "",
|
|
81
|
+
authorMail: "",
|
|
82
|
+
authorTime: 0,
|
|
83
|
+
summary: isUncommittedHash(hash) ? "Uncommitted changes" : "",
|
|
84
|
+
boundary: false,
|
|
85
|
+
};
|
|
86
|
+
commits[hash] = info;
|
|
87
|
+
}
|
|
88
|
+
current = info;
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!current) continue;
|
|
93
|
+
|
|
94
|
+
const sep = raw.indexOf(" ");
|
|
95
|
+
const key = sep === -1 ? raw : raw.slice(0, sep);
|
|
96
|
+
const value = sep === -1 ? "" : raw.slice(sep + 1);
|
|
97
|
+
|
|
98
|
+
switch (key) {
|
|
99
|
+
case "author":
|
|
100
|
+
if (value) current.author = value;
|
|
101
|
+
break;
|
|
102
|
+
case "author-mail":
|
|
103
|
+
current.authorMail = stripAngles(value);
|
|
104
|
+
break;
|
|
105
|
+
case "author-time":
|
|
106
|
+
current.authorTime = Number(value) || 0;
|
|
107
|
+
break;
|
|
108
|
+
case "summary":
|
|
109
|
+
if (value) current.summary = value;
|
|
110
|
+
break;
|
|
111
|
+
case "filename":
|
|
112
|
+
current.filename = value;
|
|
113
|
+
break;
|
|
114
|
+
case "boundary":
|
|
115
|
+
current.boundary = true;
|
|
116
|
+
break;
|
|
117
|
+
default:
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return { lines, commits };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Map each commit to a 0..1 recency weight for the age heatmap: 1 = newest
|
|
127
|
+
* commit in the blame, 0 = oldest. Uncommitted lines are excluded — they would
|
|
128
|
+
* always peg the scale to "now" and flatten every real commit to 0.
|
|
129
|
+
*/
|
|
130
|
+
export function computeAgeWeights(commits: Record<string, BlameCommitInfo>): Record<string, number> {
|
|
131
|
+
const times = Object.values(commits)
|
|
132
|
+
.filter((c) => !isUncommittedHash(c.hash) && c.authorTime > 0)
|
|
133
|
+
.map((c) => c.authorTime);
|
|
134
|
+
const weights: Record<string, number> = {};
|
|
135
|
+
if (times.length === 0) return weights;
|
|
136
|
+
|
|
137
|
+
const min = Math.min(...times);
|
|
138
|
+
const max = Math.max(...times);
|
|
139
|
+
const span = max - min;
|
|
140
|
+
for (const c of Object.values(commits)) {
|
|
141
|
+
if (isUncommittedHash(c.hash)) {
|
|
142
|
+
weights[c.hash] = 1;
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
weights[c.hash] = span === 0 ? 1 : (c.authorTime - min) / span;
|
|
146
|
+
}
|
|
147
|
+
return weights;
|
|
148
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blame panel — per-line authorship for one file.
|
|
3
|
+
*
|
|
4
|
+
* This is a panel rather than editor gutter annotations because PPM's extension
|
|
5
|
+
* API exposes no editor: there is no `activeTextEditor`, no `setDecorations`,
|
|
6
|
+
* and `vscode.languages` throws. So the panel renders its own read-only code
|
|
7
|
+
* view (plain monospace — syntax highlighting would need the editor's tokenizer)
|
|
8
|
+
* with the blame gutter beside it.
|
|
9
|
+
*/
|
|
10
|
+
import type { ExtensionContext } from "@ppm/vscode-compat";
|
|
11
|
+
import type { VscodeApi } from "./git-exec.ts";
|
|
12
|
+
import { assertSafeFilePaths, assertValidHash, assertValidLineNumber, spawnGit } from "./git-exec.ts";
|
|
13
|
+
import { openPanel } from "./panel-registry.ts";
|
|
14
|
+
import { registerViewCommand } from "./register-view-command.ts";
|
|
15
|
+
import { navigateToPanel, takePendingTarget } from "./panel-nav.ts";
|
|
16
|
+
import { resolveProjectName } from "./ppm-api.ts";
|
|
17
|
+
import { computeAgeWeights, isUncommittedHash, parseBlamePorcelain } from "./blame-parser.ts";
|
|
18
|
+
import { FILE_PICKER_CSS, FILE_PICKER_HTML, FILE_PICKER_JS, shellHtml } from "./webview-shell.ts";
|
|
19
|
+
|
|
20
|
+
const VIEW_TYPE = "git-graph.blame";
|
|
21
|
+
|
|
22
|
+
export interface BlameTarget {
|
|
23
|
+
filePath: string;
|
|
24
|
+
/** Scroll to and highlight this 1-based line once loaded. */
|
|
25
|
+
line?: number;
|
|
26
|
+
/** Blame the file as of this commit instead of the working tree. */
|
|
27
|
+
rev?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function registerBlameView(context: ExtensionContext, vscode: VscodeApi): void {
|
|
31
|
+
registerViewCommand({
|
|
32
|
+
context,
|
|
33
|
+
vscode,
|
|
34
|
+
command: VIEW_TYPE,
|
|
35
|
+
label: "Git Blame",
|
|
36
|
+
open: (projectPath, args) => {
|
|
37
|
+
// args[1] lets the graph's file tree open blame straight onto a file.
|
|
38
|
+
const filePath = typeof args[1] === "string" ? args[1] : undefined;
|
|
39
|
+
openBlameView(vscode, context, projectPath, filePath ? { filePath } : undefined);
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function openBlameView(
|
|
45
|
+
vscode: VscodeApi,
|
|
46
|
+
context: ExtensionContext,
|
|
47
|
+
projectPath: string,
|
|
48
|
+
target?: BlameTarget,
|
|
49
|
+
): void {
|
|
50
|
+
const dirName = projectPath.split(/[\\/]/).filter(Boolean).pop() || "Blame";
|
|
51
|
+
const initialTarget = target ?? takePendingTarget<BlameTarget>(VIEW_TYPE, projectPath);
|
|
52
|
+
|
|
53
|
+
// Full tracked-file list, fetched once and filtered here so the webview never
|
|
54
|
+
// has to hold a huge repo's worth of paths.
|
|
55
|
+
let fileList: string[] | null = null;
|
|
56
|
+
|
|
57
|
+
const panel = openPanel({
|
|
58
|
+
vscode,
|
|
59
|
+
viewType: VIEW_TYPE,
|
|
60
|
+
title: `Blame: ${dirName}`,
|
|
61
|
+
projectPath,
|
|
62
|
+
html: getBlameHtml(),
|
|
63
|
+
onMessage: async (raw) => {
|
|
64
|
+
const msg = raw as Record<string, any>;
|
|
65
|
+
try {
|
|
66
|
+
switch (msg.command) {
|
|
67
|
+
case "ready":
|
|
68
|
+
await panel.webview.postMessage({ command: "init", data: { target: initialTarget ?? null } });
|
|
69
|
+
if (initialTarget?.filePath) {
|
|
70
|
+
await loadBlame(initialTarget.filePath, initialTarget.rev, initialTarget.line);
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
|
|
74
|
+
case "requestFiles": {
|
|
75
|
+
if (!fileList) {
|
|
76
|
+
const res = await spawnGit(vscode, ["ls-files", "-z"], projectPath, 60_000);
|
|
77
|
+
fileList = res.stdout.split("\0").filter(Boolean);
|
|
78
|
+
}
|
|
79
|
+
const query = String(msg.query || "").toLowerCase();
|
|
80
|
+
const matches = (query
|
|
81
|
+
? fileList.filter((f) => f.toLowerCase().includes(query))
|
|
82
|
+
: fileList
|
|
83
|
+
).slice(0, 300);
|
|
84
|
+
await panel.webview.postMessage({
|
|
85
|
+
command: "loadFiles",
|
|
86
|
+
data: { files: matches, total: fileList.length },
|
|
87
|
+
});
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
case "requestBlame":
|
|
92
|
+
await loadBlame(String(msg.filePath || ""), msg.rev ? String(msg.rev) : undefined, msg.line);
|
|
93
|
+
break;
|
|
94
|
+
|
|
95
|
+
case "blamePrevious": {
|
|
96
|
+
// Resolve `<hash>^` here rather than passing a caret into git args —
|
|
97
|
+
// assertValidHash deliberately rejects revision expressions.
|
|
98
|
+
const hash = assertValidHash(msg.hash);
|
|
99
|
+
const filePath = String(msg.filePath || "");
|
|
100
|
+
assertSafeFilePaths([filePath], projectPath);
|
|
101
|
+
const parent = await spawnGit(vscode, ["rev-parse", `${hash}^`], projectPath);
|
|
102
|
+
if (parent.exitCode !== 0) {
|
|
103
|
+
await panel.webview.postMessage({ command: "error", message: "This is the first commit for this file." });
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
await loadBlame(filePath, parent.stdout.trim(), undefined);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
case "openDiff": {
|
|
111
|
+
const filePath = String(msg.filePath || "");
|
|
112
|
+
assertSafeFilePaths([filePath], projectPath);
|
|
113
|
+
const hash = assertValidHash(msg.hash);
|
|
114
|
+
const fileName = filePath.split(/[\\/]/).pop() || filePath;
|
|
115
|
+
const projectName = await resolveProjectName(projectPath);
|
|
116
|
+
const parent = await spawnGit(vscode, ["rev-parse", `${hash}^`], projectPath);
|
|
117
|
+
await vscode.window.openTab("git-diff", `${fileName} (${hash.slice(0, 7)})`, projectName, {
|
|
118
|
+
projectName,
|
|
119
|
+
filePath,
|
|
120
|
+
...(parent.exitCode === 0 ? { ref1: parent.stdout.trim() } : {}),
|
|
121
|
+
ref2: hash,
|
|
122
|
+
});
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
case "openLineHistory": {
|
|
127
|
+
const filePath = String(msg.filePath || "");
|
|
128
|
+
assertSafeFilePaths([filePath], projectPath);
|
|
129
|
+
const line = assertValidLineNumber(msg.line, "line");
|
|
130
|
+
const fileName = filePath.split(/[\\/]/).pop() || filePath;
|
|
131
|
+
await navigateToPanel({
|
|
132
|
+
vscode,
|
|
133
|
+
context,
|
|
134
|
+
viewType: "git-graph.fileHistory",
|
|
135
|
+
title: `History: ${fileName}:${line}`,
|
|
136
|
+
projectPath,
|
|
137
|
+
// A single line is a one-line range; the panel widens it from there.
|
|
138
|
+
target: { filePath, lineStart: line, lineEnd: line },
|
|
139
|
+
});
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
case "openHistory": {
|
|
144
|
+
const filePath = String(msg.filePath || "");
|
|
145
|
+
assertSafeFilePaths([filePath], projectPath);
|
|
146
|
+
const fileName = filePath.split(/[\\/]/).pop() || filePath;
|
|
147
|
+
await navigateToPanel({
|
|
148
|
+
vscode,
|
|
149
|
+
context,
|
|
150
|
+
viewType: "git-graph.fileHistory",
|
|
151
|
+
title: `History: ${fileName}`,
|
|
152
|
+
projectPath,
|
|
153
|
+
target: { filePath },
|
|
154
|
+
});
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
} catch (e) {
|
|
159
|
+
await panel.webview.postMessage({
|
|
160
|
+
command: "error",
|
|
161
|
+
message: e instanceof Error ? e.message : String(e),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
async function loadBlame(filePath: string, rev?: string, line?: unknown): Promise<void> {
|
|
168
|
+
if (!filePath) return;
|
|
169
|
+
assertSafeFilePaths([filePath], projectPath);
|
|
170
|
+
const args = ["blame", "--porcelain"];
|
|
171
|
+
if (rev) args.push(assertValidHash(rev));
|
|
172
|
+
args.push("--", filePath);
|
|
173
|
+
|
|
174
|
+
await panel.webview.postMessage({ command: "loading", data: { filePath } });
|
|
175
|
+
const res = await spawnGit(vscode, args, projectPath, 60_000);
|
|
176
|
+
if (res.exitCode !== 0) {
|
|
177
|
+
const detail = res.stderr.trim() || `git blame exited with ${res.exitCode}`;
|
|
178
|
+
await panel.webview.postMessage({ command: "error", message: detail });
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const parsed = parseBlamePorcelain(res.stdout);
|
|
183
|
+
await panel.webview.postMessage({
|
|
184
|
+
command: "loadBlame",
|
|
185
|
+
data: {
|
|
186
|
+
filePath,
|
|
187
|
+
rev: rev ?? null,
|
|
188
|
+
lines: parsed.lines,
|
|
189
|
+
commits: parsed.commits,
|
|
190
|
+
weights: computeAgeWeights(parsed.commits),
|
|
191
|
+
uncommitted: Object.keys(parsed.commits).filter(isUncommittedHash),
|
|
192
|
+
focusLine: typeof line === "number" ? line : null,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function getBlameHtml(): string {
|
|
199
|
+
return shellHtml({
|
|
200
|
+
toolbar: `
|
|
201
|
+
<div class="toolbar-left">
|
|
202
|
+
<button id="btn-pick" title="Choose a file">Open file…</button>
|
|
203
|
+
<span class="toolbar-title" id="file-label">No file</span>
|
|
204
|
+
<span class="toolbar-sub" id="rev-label"></span>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="toolbar-right">
|
|
207
|
+
<button id="btn-history" title="File history" disabled>History</button>
|
|
208
|
+
<button id="btn-refresh" title="Reload blame" disabled>Reload</button>
|
|
209
|
+
</div>`,
|
|
210
|
+
body: `${FILE_PICKER_HTML}
|
|
211
|
+
<div id="blame" class="scroll"></div>
|
|
212
|
+
<div id="detail" class="detail hidden"></div>`,
|
|
213
|
+
css: `${FILE_PICKER_CSS}
|
|
214
|
+
#blame { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
|
|
215
|
+
.bl-row { display: grid; grid-template-columns: 4px 190px 52px 1fr; align-items: stretch; border-bottom: 1px solid transparent; }
|
|
216
|
+
.bl-row:hover { background: var(--surface-hover); }
|
|
217
|
+
.bl-row.focus { background: var(--selected); }
|
|
218
|
+
.bl-heat { width: 4px; }
|
|
219
|
+
.bl-gutter { display: flex; align-items: center; gap: 5px; padding: 1px 6px; border-right: 1px solid var(--border); color: var(--subtext); font-size: 10px; cursor: pointer; overflow: hidden; white-space: nowrap; min-width: 0; }
|
|
220
|
+
.bl-gutter.repeat { color: transparent; }
|
|
221
|
+
.bl-gutter.repeat .avatar { visibility: hidden; }
|
|
222
|
+
.bl-row:hover .bl-gutter.repeat { color: var(--subtle); }
|
|
223
|
+
.bl-gutter .bl-author { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
|
|
224
|
+
.bl-gutter .bl-hash { font-variant-numeric: tabular-nums; }
|
|
225
|
+
.bl-uncommitted .bl-gutter { color: var(--yellow); font-style: italic; }
|
|
226
|
+
.bl-lineno { text-align: right; padding: 1px 8px 1px 4px; color: var(--subtle); border-right: 1px solid var(--border); font-variant-numeric: tabular-nums; user-select: none; }
|
|
227
|
+
.bl-code { padding: 1px 8px; white-space: pre; overflow-x: visible; }
|
|
228
|
+
|
|
229
|
+
.detail { border-top: 1px solid var(--border2); background: var(--surface); padding: 8px 12px; flex-shrink: 0; max-height: 34vh; overflow: auto; }
|
|
230
|
+
.detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
|
231
|
+
.detail-subject { font-weight: 600; font-size: 12px; }
|
|
232
|
+
.detail-meta { color: var(--subtext); font-size: 11px; margin-bottom: 6px; }
|
|
233
|
+
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
234
|
+
|
|
235
|
+
@media (max-width: 640px) {
|
|
236
|
+
.bl-row { grid-template-columns: 4px 118px 40px 1fr; }
|
|
237
|
+
.bl-gutter .bl-hash { display: none; }
|
|
238
|
+
}`,
|
|
239
|
+
script: `
|
|
240
|
+
const state = { filePath: null, rev: null, lines: [], commits: {}, weights: {}, selected: null, selectedLine: null };
|
|
241
|
+
|
|
242
|
+
const el = {
|
|
243
|
+
blame: document.getElementById('blame'),
|
|
244
|
+
fileLabel: document.getElementById('file-label'),
|
|
245
|
+
revLabel: document.getElementById('rev-label'),
|
|
246
|
+
detail: document.getElementById('detail'),
|
|
247
|
+
btnHistory: document.getElementById('btn-history'),
|
|
248
|
+
btnRefresh: document.getElementById('btn-refresh'),
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/* Heatmap: newest commits run warm (orange), oldest run cool (blue). */
|
|
252
|
+
function heatColor(w) {
|
|
253
|
+
const stops = [[59,130,246],[20,184,166],[234,179,8],[249,115,22],[239,68,68]];
|
|
254
|
+
const x = Math.max(0, Math.min(1, Number(w) || 0)) * (stops.length - 1);
|
|
255
|
+
const i = Math.floor(x), f = x - i;
|
|
256
|
+
const a = stops[i], b = stops[Math.min(i + 1, stops.length - 1)];
|
|
257
|
+
const c = a.map((v, k) => Math.round(v + (b[k] - v) * f));
|
|
258
|
+
return 'rgb(' + c.join(',') + ')';
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function render() {
|
|
262
|
+
if (!state.filePath) {
|
|
263
|
+
el.blame.innerHTML = '<div class="empty">Choose a file to see who last touched each line.</div>';
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (!state.lines.length) {
|
|
267
|
+
el.blame.innerHTML = '<div class="empty">This file has no lines to blame.</div>';
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
let html = '';
|
|
271
|
+
let prevHash = null;
|
|
272
|
+
for (const line of state.lines) {
|
|
273
|
+
const info = state.commits[line.hash] || {};
|
|
274
|
+
const uncommitted = /^0+$/.test(line.hash);
|
|
275
|
+
const repeat = line.hash === prevHash;
|
|
276
|
+
prevHash = line.hash;
|
|
277
|
+
html += '<div class="bl-row' + (uncommitted ? ' bl-uncommitted' : '') + '" data-line="' + line.finalLine + '" data-hash="' + escHtml(line.hash) + '">'
|
|
278
|
+
+ '<div class="bl-heat" style="background:' + (uncommitted ? 'var(--yellow)' : heatColor(state.weights[line.hash])) + '"></div>'
|
|
279
|
+
+ '<div class="bl-gutter' + (repeat ? ' repeat' : '') + '">'
|
|
280
|
+
+ (uncommitted ? '' : avatarHtml(info.author, info.authorMail))
|
|
281
|
+
+ '<span class="bl-author">' + escHtml(uncommitted ? 'Uncommitted' : (info.author || '?')) + '</span>'
|
|
282
|
+
+ '<span class="bl-hash">' + escHtml(uncommitted ? '' : line.hash.slice(0, 7)) + '</span>'
|
|
283
|
+
+ '</div>'
|
|
284
|
+
+ '<div class="bl-lineno">' + line.finalLine + '</div>'
|
|
285
|
+
+ '<div class="bl-code">' + escHtml(line.content || ' ') + '</div>'
|
|
286
|
+
+ '</div>';
|
|
287
|
+
}
|
|
288
|
+
el.blame.innerHTML = html;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function showDetail(hash, line) {
|
|
292
|
+
const info = state.commits[hash];
|
|
293
|
+
if (!info || /^0+$/.test(hash)) { el.detail.classList.add('hidden'); return; }
|
|
294
|
+
state.selected = hash;
|
|
295
|
+
state.selectedLine = Number(line) || null;
|
|
296
|
+
el.detail.classList.remove('hidden');
|
|
297
|
+
el.detail.innerHTML = '<div class="detail-head">' + avatarHtml(info.author, info.authorMail)
|
|
298
|
+
+ '<span class="detail-subject">' + escHtml(info.summary || '(no subject)') + '</span></div>'
|
|
299
|
+
+ '<div class="detail-meta">' + escHtml(info.author || '?') + ' <' + escHtml(info.authorMail || '') + '> · '
|
|
300
|
+
+ escHtml(relTime(info.authorTime)) + ' · <code>' + escHtml(hash.slice(0, 10)) + '</code>'
|
|
301
|
+
+ (info.filename && info.filename !== state.filePath ? ' · was <code>' + escHtml(info.filename) + '</code>' : '')
|
|
302
|
+
+ '</div>'
|
|
303
|
+
+ '<div class="detail-actions">'
|
|
304
|
+
+ '<button data-act="diff">Open this commit\\'s diff</button>'
|
|
305
|
+
+ '<button data-act="prev">Blame before this commit</button>'
|
|
306
|
+
+ (state.selectedLine ? '<button data-act="lineHistory">History of line ' + state.selectedLine + '</button>' : '')
|
|
307
|
+
+ '<button data-act="close">Close</button>'
|
|
308
|
+
+ '</div>';
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
el.blame.addEventListener('click', (e) => {
|
|
312
|
+
const gutter = e.target.closest('.bl-gutter');
|
|
313
|
+
if (!gutter) return;
|
|
314
|
+
const row = gutter.closest('.bl-row');
|
|
315
|
+
if (row) showDetail(row.dataset.hash, row.dataset.line);
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
el.detail.addEventListener('click', (e) => {
|
|
319
|
+
const btn = e.target.closest('button[data-act]');
|
|
320
|
+
if (!btn) return;
|
|
321
|
+
const act = btn.dataset.act;
|
|
322
|
+
if (act === 'close') { el.detail.classList.add('hidden'); return; }
|
|
323
|
+
if (act === 'diff') vscode.postMessage({ command: 'openDiff', filePath: state.filePath, hash: state.selected });
|
|
324
|
+
if (act === 'prev') vscode.postMessage({ command: 'blamePrevious', filePath: state.filePath, hash: state.selected });
|
|
325
|
+
if (act === 'lineHistory') vscode.postMessage({ command: 'openLineHistory', filePath: state.filePath, line: state.selectedLine });
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
/* --- File picker (shared) --- */
|
|
329
|
+
${FILE_PICKER_JS}
|
|
330
|
+
|
|
331
|
+
function onFileChosen(filePath) {
|
|
332
|
+
vscode.postMessage({ command: 'requestBlame', filePath });
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
document.getElementById('btn-pick').addEventListener('click', () => {
|
|
336
|
+
if (isFilePickerOpen()) closeFilePicker(); else openFilePicker();
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
el.btnRefresh.addEventListener('click', () => {
|
|
340
|
+
if (state.filePath) vscode.postMessage({ command: 'requestBlame', filePath: state.filePath, rev: state.rev || undefined });
|
|
341
|
+
});
|
|
342
|
+
el.btnHistory.addEventListener('click', () => {
|
|
343
|
+
if (state.filePath) vscode.postMessage({ command: 'openHistory', filePath: state.filePath });
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
window.addEventListener('message', (event) => {
|
|
347
|
+
const msg = event.data || {};
|
|
348
|
+
switch (msg.command) {
|
|
349
|
+
case 'init':
|
|
350
|
+
if (!msg.data.target) { render(); openFilePicker(); }
|
|
351
|
+
break;
|
|
352
|
+
case 'loading':
|
|
353
|
+
clearError();
|
|
354
|
+
el.blame.innerHTML = '<div class="empty"><span class="spinner"></span></div>';
|
|
355
|
+
break;
|
|
356
|
+
case 'loadFiles':
|
|
357
|
+
applyFileList(msg.data);
|
|
358
|
+
break;
|
|
359
|
+
case 'loadBlame': {
|
|
360
|
+
clearError();
|
|
361
|
+
state.filePath = msg.data.filePath;
|
|
362
|
+
state.rev = msg.data.rev;
|
|
363
|
+
state.lines = msg.data.lines;
|
|
364
|
+
state.commits = msg.data.commits;
|
|
365
|
+
state.weights = msg.data.weights;
|
|
366
|
+
el.fileLabel.textContent = state.filePath;
|
|
367
|
+
el.revLabel.textContent = state.rev ? 'at ' + state.rev.slice(0, 7) : '';
|
|
368
|
+
el.btnHistory.disabled = false;
|
|
369
|
+
el.btnRefresh.disabled = false;
|
|
370
|
+
el.detail.classList.add('hidden');
|
|
371
|
+
render();
|
|
372
|
+
if (msg.data.focusLine) {
|
|
373
|
+
const row = el.blame.querySelector('.bl-row[data-line="' + msg.data.focusLine + '"]');
|
|
374
|
+
if (row) { row.classList.add('focus'); row.scrollIntoView({ block: 'center' }); }
|
|
375
|
+
}
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
case 'error':
|
|
379
|
+
showError(msg.message);
|
|
380
|
+
if (!state.lines.length) el.blame.innerHTML = '<div class="empty">' + escHtml(msg.message) + '</div>';
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
render();
|
|
386
|
+
vscode.postMessage({ command: 'ready' });
|
|
387
|
+
`,
|
|
388
|
+
});
|
|
389
|
+
}
|