codeplane-darwin-x64-baseline 29.0.27 → 29.0.29
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/bin/codeplane +0 -0
- package/bin/runtime/tui/{_baseUniq-BXCc5S1E-ebr9rttb.js → _baseUniq-BfD7UfsT-jps4dmj6.js} +1 -1
- package/bin/runtime/tui/{ar-C7WDtW3h-bpze5df9.js → ar-BYeN3pXe-155y7w1s.js} +1 -1
- package/bin/runtime/tui/{ar-CoHVjd7F-07zkrmd5.js → ar-CsVRXOrn-8nb1rkwn.js} +1 -1
- package/bin/runtime/tui/{arc-DgVZspTm-0ypezsbp.js → arc-BTlxV9GP-24yz18fx.js} +1 -1
- package/bin/runtime/tui/{architectureDiagram-Q4EWVU46-C-LBnatD-qvbzgj8m.js → architectureDiagram-Q4EWVU46-B32q3lAf-3e8c40dc.js} +1 -1
- package/bin/runtime/tui/{blockDiagram-DXYQGD6D-7Wy4PzsZ-emv86afh.js → blockDiagram-DXYQGD6D-CbcvnwdO-j1bx77nd.js} +1 -1
- package/bin/runtime/tui/{br-DGP42J1P-qcyejd77.js → br-CREbSB32-shvwd30s.js} +1 -1
- package/bin/runtime/tui/{br-Cm1fwwtR-23esbz83.js → br-l9My7yvY-jykfx79x.js} +1 -1
- package/bin/runtime/tui/{bs-bhMJCGbH-nh565g6n.js → bs-DTB1gccJ-knrfyad5.js} +1 -1
- package/bin/runtime/tui/{bs-DYQWDns2-aypp0v5g.js → bs-DhOZrUk6-mfrtqtd1.js} +1 -1
- package/bin/runtime/tui/{c4Diagram-AHTNJAMY-CBV2Knv6-q8zc34q4.js → c4Diagram-AHTNJAMY-CwNzZ3PC-prgsdss1.js} +1 -1
- package/bin/runtime/tui/channel-oxCztWtt-052dehj8.js +1 -0
- package/bin/runtime/tui/{chunk-4BX2VUAB-DlX15Csq-gzxbjh1k.js → chunk-4BX2VUAB-DCEFdtm5-m2jk00xm.js} +1 -1
- package/bin/runtime/tui/{chunk-4TB4RGXK-BbFZM4-O-5s2ee0yb.js → chunk-4TB4RGXK-B9mLur-R-edk75snh.js} +1 -1
- package/bin/runtime/tui/{chunk-55IACEB6-DEqIdo-w-v92x30ds.js → chunk-55IACEB6-a4gcHkw3-7rpjy5xw.js} +1 -1
- package/bin/runtime/tui/{chunk-EDXVE4YY-0kyOG_xt-r8w3yrh8.js → chunk-EDXVE4YY-BhSdG1nS-c4mab1jm.js} +1 -1
- package/bin/runtime/tui/{chunk-FMBD7UC4-BhdCY7iu-faxwezph.js → chunk-FMBD7UC4-DuFuEoQM-sngwsdjy.js} +1 -1
- package/bin/runtime/tui/{chunk-OYMX7WX6-BvSfrePW-h8fytghk.js → chunk-OYMX7WX6-CU9wOSVg-d1v6xrbh.js} +1 -1
- package/bin/runtime/tui/{chunk-QZHKN3VN-B4kK4smI-ssw8597m.js → chunk-QZHKN3VN-DFWe_hTX-wfsefqk3.js} +1 -1
- package/bin/runtime/tui/{chunk-YZCP3GAM-BAZg0cIs-wrb9n1kx.js → chunk-YZCP3GAM-CDxGmG6i-c6r64fvz.js} +1 -1
- package/bin/runtime/tui/classDiagram-6PBFFD2Q-DbBlh_v1-tg9gjtr2.js +1 -0
- package/bin/runtime/tui/classDiagram-v2-HSJHXN6E-DbBlh_v1-tg9gjtr2.js +1 -0
- package/bin/runtime/tui/clone-xzZaR_mE-9b7mg33e.js +1 -0
- package/bin/runtime/tui/{cose-bilkent-S5V4N54A-v9DhiFwv-t900025f.js → cose-bilkent-S5V4N54A-BnFtAG0--nr6phe98.js} +1 -1
- package/bin/runtime/tui/{da-xczuYfI1-049pvcph.js → da-DFOwg2x2-wte0h547.js} +1 -1
- package/bin/runtime/tui/{da-CYEOjsPI-94y9fp7w.js → da-VphWawJH-7thaxtf9.js} +1 -1
- package/bin/runtime/tui/{dagre-KV5264BT-CFGjacpE-cv4593ch.js → dagre-KV5264BT-Da2qha1j-tp0910k1.js} +1 -1
- package/bin/runtime/tui/{de-D_ApD3Lp-67env03q.js → de-BWTZljWf-18a2gc1v.js} +1 -1
- package/bin/runtime/tui/{de-BWHKn6LX-syzcyeym.js → de-D0HPnGEL-yr2ay6v5.js} +1 -1
- package/bin/runtime/tui/{diagram-5BDNPKRD-DP1WUpCE-azg1t53s.js → diagram-5BDNPKRD-BUp68ftj-8j0n1fj2.js} +1 -1
- package/bin/runtime/tui/{diagram-G4DWMVQ6-BrTFxQvp-305regw1.js → diagram-G4DWMVQ6-DvTxSX1G-wm1yrczt.js} +1 -1
- package/bin/runtime/tui/{diagram-MMDJMWI5-DV1D3yNM-tvnq3hhc.js → diagram-MMDJMWI5-DyUS0c6f-e44cgeey.js} +1 -1
- package/bin/runtime/tui/{diagram-TYMM5635-DHDlqxRo-t7pxy017.js → diagram-TYMM5635-q-0wd4LC-2hbng02y.js} +1 -1
- package/bin/runtime/tui/{dialog-connect-provider-Bu4KLQuy-ehppfh4e.js → dialog-connect-provider-CNUrqWk6-9kjtjsqr.js} +2 -2
- package/bin/runtime/tui/{dialog-edit-project-uKYzJNxD-0a2nzmfq.js → dialog-edit-project-vp8zSgO3-ft5s1g6v.js} +1 -1
- package/bin/runtime/tui/{dialog-fork-lX7VZtPV-x83egj0w.js → dialog-fork-DznmvncP-4hrvf496.js} +1 -1
- package/bin/runtime/tui/{dialog-manage-models-BZuWLq4u-dwdas9b6.js → dialog-manage-models-CMvcMz5S-v2bhzcpm.js} +1 -1
- package/bin/runtime/tui/{dialog-quick-switcher-FNMUQYgW-qkk8rhm9.js → dialog-quick-switcher-D8VIbyGb-gw1b20hr.js} +1 -1
- package/bin/runtime/tui/{dialog-select-directory-C2zCcomM-1s7yxnkb.js → dialog-select-directory-BOqM4AIe-8ee7n3ht.js} +1 -1
- package/bin/runtime/tui/{dialog-select-file-BXGfJUaI-x1fnpfrt.js → dialog-select-file-DHEee5CQ-vsbp3m66.js} +1 -1
- package/bin/runtime/tui/{dialog-select-mcp-D8P018FT-hccnvbkx.js → dialog-select-mcp-CSpF9uEK-4hmdxg8n.js} +1 -1
- package/bin/runtime/tui/{dialog-select-model-unpaid-ZqNhReD2-hkpjksap.js → dialog-select-model-unpaid-a3cfHziA-bn5ph7hy.js} +2 -2
- package/bin/runtime/tui/{dialog-select-provider-BQ1tZN31-kyza0h3w.js → dialog-select-provider-C0mRAA1a-fref92pn.js} +1 -1
- package/bin/runtime/tui/{dialog-select-server-Dp5Tet44-w23bdak8.js → dialog-select-server-Do9ifHo5-1drz1498.js} +1 -1
- package/bin/runtime/tui/{erDiagram-SMLLAGMA-DiPsmx_P-h863e846.js → erDiagram-SMLLAGMA-ZJeV273i-7w5e2sex.js} +1 -1
- package/bin/runtime/tui/{es-Bm4f8gjn-avanmr70.js → es--gctLFvl-v6a7b2xz.js} +1 -1
- package/bin/runtime/tui/{es-ffI1PtU3-j2qbashc.js → es-7nfJcwlX-27a82pys.js} +1 -1
- package/bin/runtime/tui/{file-icon-CUHAYYUI-xgekeymb.js → file-icon-CGxXqMDY-8am7jrws.js} +1 -1
- package/bin/runtime/tui/{flowDiagram-DWJPFMVM-BFJRoOYj-7a52m6s2.js → flowDiagram-DWJPFMVM-Djdjywgs-2ypw200w.js} +1 -1
- package/bin/runtime/tui/{fr-Bm0j7Aay-dtkpf17v.js → fr-CToiX956-pzjz3qz6.js} +1 -1
- package/bin/runtime/tui/{fr-DHvHAp1Q-j9mvgd6f.js → fr-iNBKwJLv-3ez4w1s9.js} +1 -1
- package/bin/runtime/tui/{ganttDiagram-T4ZO3ILL-DEcUzDDg-m2angqhx.js → ganttDiagram-T4ZO3ILL-BUuxjBWP-0vghskz1.js} +1 -1
- package/bin/runtime/tui/{ghostty-web-DkA_oC48-6my3ek27.js → ghostty-web-C-qqn0yr-mbq3ch97.js} +1 -1
- package/bin/runtime/tui/{gitGraphDiagram-UUTBAWPF-DyEWD7iv-yr5pn97y.js → gitGraphDiagram-UUTBAWPF-BbSncmV--67a9f4kt.js} +1 -1
- package/bin/runtime/tui/{graph-7N1CdcOt-mgrqhyq6.js → graph-CZKWeYhv-53p6f4qh.js} +1 -1
- package/bin/runtime/tui/{home-ojzNiARa-67718yh6.js → home-CH5jMWbN-v8ewez0b.js} +1 -1
- package/bin/runtime/tui/{index-Dk9AuGHe-kcn31g1f.js → index-8BjFOjO4-ydpjbfy6.js} +6 -6
- package/bin/runtime/tui/{index-CZQK3M02-3hth30dy.css → index-Q8LEoj4f-6wvhwvxf.css} +1 -1
- package/bin/runtime/tui/{index-75ynt75d.html → index-rtvgvfq3.html} +2 -2
- package/bin/runtime/tui/{infoDiagram-42DDH7IO-g1WD2pcN-etnrabs5.js → infoDiagram-42DDH7IO-DJaCnOew-r13e4030.js} +1 -1
- package/bin/runtime/tui/{ishikawaDiagram-UXIWVN3A-D-UCqId0-ypcah34e.js → ishikawaDiagram-UXIWVN3A-K47kP3ph-62rf0z74.js} +1 -1
- package/bin/runtime/tui/{ja-DV6qlDOA-3yqnrsnb.js → ja-C6zddKtF-hv04eebd.js} +1 -1
- package/bin/runtime/tui/{ja-B5Gdg2t9-r21m9nrd.js → ja-CoysfMhk-7xzdqynq.js} +1 -1
- package/bin/runtime/tui/{journeyDiagram-VCZTEJTY-CSwp5Y-c-ehz3ekwe.js → journeyDiagram-VCZTEJTY-CaE7-Haz-8r2c4jnz.js} +1 -1
- package/bin/runtime/tui/{kanban-definition-6JOO6SKY-C7WTaGz8-fj06fpsw.js → kanban-definition-6JOO6SKY-Bb-hsY0s-aasfekbw.js} +1 -1
- package/bin/runtime/tui/{ko-DNi2zFC1-m7cj5pdq.js → ko-CVZIA0ni-d1jqv1wg.js} +1 -1
- package/bin/runtime/tui/{ko-pwsP5uts-wdg2aq56.js → ko-DoOvmC4A-wycn7mcw.js} +1 -1
- package/bin/runtime/tui/{layout-CJswCNga-tbatvxc1.js → layout-JyBe0l3F-eqavzyr6.js} +1 -1
- package/bin/runtime/tui/{linear-Dto289-h-16r94w31.js → linear-CaE8wR4T-q55sp8sd.js} +1 -1
- package/bin/runtime/tui/{list-CT29kQSN-acq35eh1.js → list-DyidJmck-j34zc199.js} +1 -1
- package/bin/runtime/tui/{mermaid.core-DbO6n2h4-tg5zx1ng.js → mermaid.core-Ox16xmjh-p50wsj1v.js} +5 -5
- package/bin/runtime/tui/{min-CJdsHiRt-n129jggv.js → min-DEpKLwZg-gaycjgsz.js} +1 -1
- package/bin/runtime/tui/{mindmap-definition-QFDTVHPH-BkJZCSUH-rp9527h3.js → mindmap-definition-QFDTVHPH-DutsyxQk-w8y39vwx.js} +1 -1
- package/bin/runtime/tui/{no-BH_W1RAp-mwg0dchd.js → no-Cx-dl_Gm-mt3q85yb.js} +1 -1
- package/bin/runtime/tui/{no-De8BE4vY-ap3qk4hs.js → no-DaNj7mKg-vqnp73h5.js} +1 -1
- package/bin/runtime/tui/node-main.js +1 -1
- package/bin/runtime/tui/{notifications-B607QxUU-gbgq17mw.js → notifications-DxC0Apej-f8af5r5z.js} +1 -1
- package/bin/runtime/tui/{pieDiagram-DEJITSTG-DqnudaQB-gfsh57v9.js → pieDiagram-DEJITSTG-DB-rrD_O-kr64fnvh.js} +1 -1
- package/bin/runtime/tui/{pl-Da8eMlcS-s2g6ceqm.js → pl-Bv2Q_WJZ-knsz8q1p.js} +1 -1
- package/bin/runtime/tui/{pl-DG-qxxy_-xywv6svq.js → pl-CY_ugA_f-8ayzwqdw.js} +1 -1
- package/bin/runtime/tui/{provider-icon-DCNYdPio-zmna8th6.js → provider-icon-DKDLm47a-qg8nj4h7.js} +1 -1
- package/bin/runtime/tui/{quadrantDiagram-34T5L4WZ-C_HzUK4S-hxtjy0zx.js → quadrantDiagram-34T5L4WZ-_1xsgMNG-6mqrba52.js} +1 -1
- package/bin/runtime/tui/{requirementDiagram-MS252O5E-BgAZJzHP-khy0ha0c.js → requirementDiagram-MS252O5E-DyP17ArS-egcwhdjz.js} +1 -1
- package/bin/runtime/tui/{ru-_enNKtGU-ypv353r7.js → ru-BWkh6TkK-6tzvaqta.js} +1 -1
- package/bin/runtime/tui/{ru-CHGG5AH5-tdwj88bm.js → ru-DPV-_Ofh-08grk4fe.js} +1 -1
- package/bin/runtime/tui/{sankeyDiagram-XADWPNL6-D-PDI1Ve-85bdf32v.js → sankeyDiagram-XADWPNL6-Cbj4cgXb-tgyp51p5.js} +1 -1
- package/bin/runtime/tui/{sequenceDiagram-FGHM5R23-BX2zoePz-dzdrnppv.js → sequenceDiagram-FGHM5R23-DM0mxL0d-9s2z4ymr.js} +1 -1
- package/bin/runtime/tui/{session-DVJbvogH-y8vqmchd.js → session-BS25gURC-q41z29y8.js} +27 -27
- package/bin/runtime/tui/{settings-DlhhO5F3-tn503twe.js → settings-VAqPDyCs-bjk2qas8.js} +1 -1
- package/bin/runtime/tui/{stateDiagram-FHFEXIEX-BqaWDtLL-kag26kc5.js → stateDiagram-FHFEXIEX-DfHNnVKk-hmg2fg64.js} +1 -1
- package/bin/runtime/tui/stateDiagram-v2-QKLJ7IA2-DHw3jS5u-nd05n2r6.js +1 -0
- package/bin/runtime/tui/{th-CvZ2XK4O-6n653kcv.js → th-BYy61-Pk-a91c289v.js} +1 -1
- package/bin/runtime/tui/{th-uv889OOl-xqgc6myg.js → th-RnCwfRls-1ht7y5qy.js} +1 -1
- package/bin/runtime/tui/{timeline-definition-GMOUNBTQ-BTF1SJ45-zm04s33j.js → timeline-definition-GMOUNBTQ-gFRUC-Xb-cg6s7wvv.js} +1 -1
- package/bin/runtime/tui/{tr-viLz0J-6-36cfsh80.js → tr-Bg30jRK1-g6z60z21.js} +1 -1
- package/bin/runtime/tui/{tr-DQDhMHN2-8t7z6sdk.js → tr-WXFhlpI_-y4xpb353.js} +1 -1
- package/bin/runtime/tui/{vennDiagram-DHZGUBPP-C2-K2e9q-cxtkt1h9.js → vennDiagram-DHZGUBPP-Ma9CzSYb-jb833vc6.js} +1 -1
- package/bin/runtime/tui/{wardley-RL74JXVD-BjFgiMeD-0pjpked9.js → wardley-RL74JXVD-Dkz2_xIB-bf1dhrw4.js} +1 -1
- package/bin/runtime/tui/{wardleyDiagram-NUSXRM2D-DVeIGY-b-6mpenc28.js → wardleyDiagram-NUSXRM2D-DPAOUtmF-k82phyn1.js} +1 -1
- package/bin/runtime/tui/{xychartDiagram-5P7HB3ND-CzrG1jGW-693htcj1.js → xychartDiagram-5P7HB3ND-Bagxlbib-ewzfmy14.js} +1 -1
- package/bin/runtime/tui/{zh-CZmCSE6f-cvfrbby6.js → zh-DJ2QlV_g-pn40fz61.js} +1 -1
- package/bin/runtime/tui/{zh-Da6OjCLD-ns7ykhxz.js → zh-Do5Xw6ep-djtna5mp.js} +1 -1
- package/bin/runtime/tui/{zht-BWgeUI0m-azyswzeg.js → zht-DCLHk-2v-ncme9raw.js} +1 -1
- package/bin/runtime/tui/{zht-CkYkAZwe-d5he8z0q.js → zht-DJRgZ82L-vf8mm8jw.js} +1 -1
- package/package.json +1 -1
- package/bin/runtime/tui/channel-BmkHrkgd-5j57arnv.js +0 -1
- package/bin/runtime/tui/classDiagram-6PBFFD2Q-At4KnqAM-vmk2fhk5.js +0 -1
- package/bin/runtime/tui/classDiagram-v2-HSJHXN6E-At4KnqAM-vmk2fhk5.js +0 -1
- package/bin/runtime/tui/clone-Daqv6ynS-5vd51yp7.js +0 -1
- package/bin/runtime/tui/stateDiagram-v2-QKLJ7IA2-Qo190tHS-dj6ctr9r.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as le}from"./chunk-4BX2VUAB-DlX15Csq.js";import{I as he}from"./chunk-QZHKN3VN-B4kK4smI.js";import{t as $e,q as fe,s as ge,g as ue,a as ye,b as xe,_ as h,E as J,l as w,d as me,c as W,u as pe,F as be,z as we,k as B,G as ke,H as ve,I as Ce}from"./mermaid.core-DbO6n2h4.js";import{p as Ee}from"./wardley-RL74JXVD-BjFgiMeD.js";import"./index-Dk9AuGHe.js";import"./min-CJdsHiRt.js";import"./_baseUniq-BXCc5S1E.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Ie=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Re=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Ie,branch:Re,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,I=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],R=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),R=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{p as le}from"./chunk-4BX2VUAB-DCEFdtm5.js";import{I as he}from"./chunk-QZHKN3VN-DFWe_hTX.js";import{t as $e,q as fe,s as ge,g as ue,a as ye,b as xe,_ as h,E as J,l as w,d as me,c as W,u as pe,F as be,z as we,k as B,G as ke,H as ve,I as Ce}from"./mermaid.core-Ox16xmjh.js";import{p as Ee}from"./wardley-RL74JXVD-Dkz2_xIB.js";import"./index-8BjFOjO4.js";import"./min-DEpKLwZg.js";import"./_baseUniq-BfD7UfsT.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Ie=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Re=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Ie,branch:Re,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,I=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],R=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),R=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${s-i/2-L/2},${x+I}
|
|
3
3
|
${s-i/2-L/2},${x-I}
|
|
4
4
|
${t.posWithOffset-i/2-L},${x-c-I}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aQ as T,aR as C,aS as z,aT as R,aU as S,aV as k,aW as V,aX as L,aY as K,aZ as j,a_ as ee,a$ as te,b0 as re,b1 as se,b2 as ne,b3 as ie,aG as ae,b4 as oe,b5 as ue,b6 as he,b7 as y,b8 as $,b9 as v}from"./mermaid.core-
|
|
1
|
+
import{aQ as T,aR as C,aS as z,aT as R,aU as S,aV as k,aW as V,aX as L,aY as K,aZ as j,a_ as ee,a$ as te,b0 as re,b1 as se,b2 as ne,b3 as ie,aG as ae,b4 as oe,b5 as ue,b6 as he,b7 as y,b8 as $,b9 as v}from"./mermaid.core-Ox16xmjh.js";import{k as d,g as Y,s as de,e as ce,f as fe,h as ge,j as le,d as be,l as _e,b as pe,m,n as g,r as ye}from"./_baseUniq-BfD7UfsT.js";function me(t,e){return t&&T(e,d(e),t)}function je(t,e){return t&&T(e,C(e),t)}function Te(t,e){return T(t,Y(t),e)}var Oe=Object.getOwnPropertySymbols,W=Oe?function(t){for(var e=[];t;)ce(e,Y(t)),t=z(t);return e}:de;function Ae(t,e){return T(t,W(t),e)}function Ee(t){return fe(t,C,W)}var Ce=Object.prototype,Le=Ce.hasOwnProperty;function we(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Le.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Ne(t,e){var r=e?R(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Fe=/\w*$/;function Pe(t){var e=new t.constructor(t.source,Fe.exec(t));return e.lastIndex=t.lastIndex,e}var I=S?S.prototype:void 0,D=I?I.valueOf:void 0;function Se(t){return D?Object(D.call(t)):{}}var $e="[object Boolean]",ve="[object Date]",Ie="[object Map]",De="[object Number]",Me="[object RegExp]",Ge="[object Set]",Ue="[object String]",xe="[object Symbol]",Be="[object ArrayBuffer]",Re="[object DataView]",Ve="[object Float32Array]",Ke="[object Float64Array]",Ye="[object Int8Array]",We="[object Int16Array]",qe="[object Int32Array]",He="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Xe="[object Uint16Array]",Ze="[object Uint32Array]";function Je(t,e,r){var s=t.constructor;switch(e){case Be:return R(t);case $e:case ve:return new s(+t);case Re:return Ne(t,r);case Ve:case Ke:case Ye:case We:case qe:case He:case Qe:case Xe:case Ze:return k(t,r);case Ie:return new s;case De:case Ue:return new s(t);case Me:return Pe(t);case Ge:return new s;case xe:return Se(t)}}var ze="[object Map]";function ke(t){return V(t)&&L(t)==ze}var M=j&&j.isMap,et=M?K(M):ke,tt="[object Set]";function rt(t){return V(t)&&L(t)==tt}var G=j&&j.isSet,st=G?K(G):rt,nt=1,it=2,at=4,q="[object Arguments]",ot="[object Array]",ut="[object Boolean]",ht="[object Date]",dt="[object Error]",H="[object Function]",ct="[object GeneratorFunction]",ft="[object Map]",gt="[object Number]",Q="[object Object]",lt="[object RegExp]",bt="[object Set]",_t="[object String]",pt="[object Symbol]",yt="[object WeakMap]",mt="[object ArrayBuffer]",jt="[object DataView]",Tt="[object Float32Array]",Ot="[object Float64Array]",At="[object Int8Array]",Et="[object Int16Array]",Ct="[object Int32Array]",Lt="[object Uint8Array]",wt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Ft="[object Uint32Array]",o={};o[q]=o[ot]=o[mt]=o[jt]=o[ut]=o[ht]=o[Tt]=o[Ot]=o[At]=o[Et]=o[Ct]=o[ft]=o[gt]=o[Q]=o[lt]=o[bt]=o[_t]=o[pt]=o[Lt]=o[wt]=o[Nt]=o[Ft]=!0;o[dt]=o[H]=o[yt]=!1;function O(t,e,r,s,n,a){var i,u=e&nt,h=e&it,Z=e&at;if(i!==void 0)return i;if(!ee(t))return t;var w=ae(t);if(w){if(i=we(t),!u)return te(t,i)}else{var b=L(t),N=b==H||b==ct;if(re(t))return se(t,u);if(b==Q||b==q||N&&!n){if(i=h||N?{}:ne(t),!u)return h?Ae(t,je(i,t)):Te(t,me(i,t))}else{if(!o[b])return n?t:{};i=Je(t,b,u)}}a||(a=new ie);var F=a.get(t);if(F)return F;a.set(t,i),st(t)?t.forEach(function(c){i.add(O(c,e,r,c,t,a))}):et(t)&&t.forEach(function(c,f){i.set(f,O(c,e,r,f,t,a))});var J=Z?h?Ee:le:h?C:d,P=w?void 0:J(t);return ge(P||t,function(c,f){P&&(f=c,c=t[f]),oe(i,f,O(c,e,r,f,t,a))}),i}function Pt(t,e){return be(e,function(r){return t[r]})}function A(t){return t==null?[]:Pt(t,d(t))}function _(t){return t===void 0}var St=ue(function(t){return _e(pe(t,1,he,!0))}),$t="\0",l="\0",U="";class X{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=y(void 0),this._defaultEdgeLabelFn=y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return $(e)||(e=y(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return d(this._nodes)}sources(){var e=this;return m(this.nodes(),function(r){return v(e._in[r])})}sinks(){var e=this;return m(this.nodes(),function(r){return v(e._out[r])})}setNodes(e,r){var s=arguments,n=this;return g(e,function(a){s.length>1?n.setNode(a,r):n.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=l,this._children[e]={},this._children[l][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],g(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),g(d(this._in[e]),r),delete this._in[e],delete this._preds[e],g(d(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(_(r))r=l;else{r+="";for(var s=r;!_(s);s=this.parent(s))if(s===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==l)return r}}children(e){if(_(e)&&(e=l),this._isCompound){var r=this._children[e];if(r)return d(r)}else{if(e===l)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return d(r)}successors(e){var r=this._sucs[e];if(r)return d(r)}neighbors(e){var r=this.predecessors(e);if(r)return St(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var s=this;g(this._nodes,function(i,u){e(u)&&r.setNode(u,i)}),g(this._edgeObjs,function(i){r.hasNode(i.v)&&r.hasNode(i.w)&&r.setEdge(i,s.edge(i))});var n={};function a(i){var u=s.parent(i);return u===void 0||r.hasNode(u)?(n[i]=u,u):u in n?n[u]:a(u)}return this._isCompound&&g(r.nodes(),function(i){r.setParent(i,a(i))}),r}setDefaultEdgeLabel(e){return $(e)||(e=y(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return A(this._edgeObjs)}setPath(e,r){var s=this,n=arguments;return ye(e,function(a,i){return n.length>1?s.setEdge(a,i,r):s.setEdge(a,i),i}),this}setEdge(){var e,r,s,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(e=i.v,r=i.w,s=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(e=i,r=arguments[1],s=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),e=""+e,r=""+r,_(s)||(s=""+s);var u=p(this._isDirected,e,r,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,u))return a&&(this._edgeLabels[u]=n),this;if(!_(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=a?n:this._defaultEdgeLabelFn(e,r,s);var h=vt(this._isDirected,e,r,s);return e=h.v,r=h.w,Object.freeze(h),this._edgeObjs[u]=h,x(this._preds[r],e),x(this._sucs[e],r),this._in[r][u]=h,this._out[e][u]=h,this._edgeCount++,this}edge(e,r,s){var n=arguments.length===1?E(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return this._edgeLabels[n]}hasEdge(e,r,s){var n=arguments.length===1?E(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(e,r,s){var n=arguments.length===1?E(this._isDirected,arguments[0]):p(this._isDirected,e,r,s),a=this._edgeObjs[n];return a&&(e=a.v,r=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],B(this._preds[r],e),B(this._sucs[e],r),delete this._in[r][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,r){var s=this._in[e];if(s){var n=A(s);return r?m(n,function(a){return a.v===r}):n}}outEdges(e,r){var s=this._out[e];if(s){var n=A(s);return r?m(n,function(a){return a.w===r}):n}}nodeEdges(e,r){var s=this.inEdges(e,r);if(s)return s.concat(this.outEdges(e,r))}}X.prototype._nodeCount=0;X.prototype._edgeCount=0;function x(t,e){t[e]?t[e]++:t[e]=1}function B(t,e){--t[e]||delete t[e]}function p(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}return n+U+a+U+(_(s)?$t:s)}function vt(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}var u={v:n,w:a};return s&&(u.name=s),u}function E(t,e){return p(t,e.v,e.w,e.name)}export{X as G,O as b,_ as i,A as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ar as xe,c as Xe,E as Y,k as W,as as Ze,a2 as et,o as le,p as ce,A as tt,f as j,C as st,u as nt,a7 as rt,j as T,l as u,m as h,y as w,Q as at,H as ot,q as N,N as V,O as it,L as Q,at as we,au as ae,V as ve,W as _e,X as Se,Y as De,G as lt,af as ct,P as ye}from"./index-
|
|
1
|
+
import{ar as xe,c as Xe,E as Y,k as W,as as Ze,a2 as et,o as le,p as ce,A as tt,f as j,C as st,u as nt,a7 as rt,j as T,l as u,m as h,y as w,Q as at,H as ot,q as N,N as V,O as it,L as Q,at as we,au as ae,V as ve,W as _e,X as Se,Y as De,G as lt,af as ct,P as ye}from"./index-8BjFOjO4.js";const q=1440*60*1e3,ut={all:void 0,"30d":30,"7d":7},$e=e=>!e.parentID&&!e.time?.archived,Me=e=>e.time.updated??e.time.created,dt=e=>e.split(`
|
|
2
2
|
`).reduce((t,s)=>s.startsWith("+++")||s.startsWith("---")?t:s.startsWith("+")?{additions:t.additions+1,deletions:t.deletions}:s.startsWith("-")?{additions:t.additions,deletions:t.deletions+1}:t,{additions:0,deletions:0}),mt=e=>{const t={additions:e.additions??0,deletions:e.deletions??0};return t.additions+t.deletions>0||e.patch.trim().length===0?t:dt(e.patch)},ft=e=>xe(e).reduce((t,s)=>{const n=mt(s);return{files:n.additions+n.deletions>0||s.status||s.patch.trim().length>0?t.files.add(s.file):t.files,additions:t.additions+n.additions,deletions:t.deletions+n.deletions}},{files:new Set,additions:0,deletions:0}),ue=(e,t)=>{const s=xe(t?.[e.id]),n=ft(s.length>0?s:e.summary?.diffs),r=(e.summary?.additions??0)+(e.summary?.deletions??0);return(e.summary?.files??0)+(e.summary?.additions??0)+(e.summary?.deletions??0)>0?{files:e.summary?.files||n.files.size,additions:r>0?e.summary?.additions??0:n.additions,deletions:r>0?e.summary?.deletions??0:n.deletions}:{files:n.files.size,additions:n.additions,deletions:n.deletions}},X=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t.getTime()};function gt(e,t){const s=new Date(e);s.setHours(0,0,0,0),s.setDate(s.getDate()-(t-1));const n=[];for(let r=0;r<t;r++)s.setHours(0,0,0,0),n.push(s.getTime()),s.setDate(s.getDate()+1);return n}function ht(e){return e.map(t=>{const s=t.sessions.filter($e),n=t.sessions.filter(o=>!o.parentID&&!!o.time?.archived).length,r=s.reduce((o,i)=>{const l=Me(i);return o===void 0||l>o?l:o},void 0),a=s.reduce((o,i)=>{const l=ue(i,t.sessionDiffs);return{files:o.files+l.files,additions:o.additions+l.additions,deletions:o.deletions+l.deletions}},{files:0,additions:0,deletions:0});return{directory:t.directory,worktree:t.worktree,name:t.name,iconColor:t.iconColor,vcs:t.vcs,sessions:s.length,archived:n,files:a.files,additions:a.additions,deletions:a.deletions,lastActivity:r}}).sort((t,s)=>{if(s.sessions!==t.sessions)return s.sessions-t.sessions;const n=s.lastActivity??0,r=t.lastActivity??0;return n!==r?n-r:t.name.localeCompare(s.name)})}function bt(e,t=8){const s=[];for(const n of e)for(const r of n.sessions){if(!$e(r))continue;const a=ue(r,n.sessionDiffs);s.push({id:r.id,title:r.title||r.id,directory:n.directory,worktree:n.worktree,projectName:n.name,projectColor:n.iconColor,updated:Me(r),files:a.files,additions:a.additions,deletions:a.deletions})}return s.sort((n,r)=>r.updated-n.updated).slice(0,t)}const A={novel:1e5,dune:25e4,lotr:6e5,warAndPeace:75e4,bible:1e6,shakespeare:12e5,harryPotter:15e5},J=2e8,vt=[{key:"home.fact.devin.match",available:e=>e.tokens>=1e7&&e.activeDays>=5&&e.tokens/Math.max(e.activeDays,1)>=J*.5,build:e=>({percent:Math.round(e.tokens/Math.max(e.activeDays,1)/J*100)})},{key:"home.fact.devin.behind",available:e=>e.tokens>=1e6&&e.activeDays>=5&&e.tokens/Math.max(e.activeDays,1)<J*.5,build:e=>({ratio:Math.max(2,Math.round(J/Math.max(1,e.tokens/Math.max(e.activeDays,1))))})},{key:"home.fact.tokens.novel",available:e=>e.tokens>=A.novel,build:e=>({count:Math.round(e.tokens/A.novel)})},{key:"home.fact.tokens.dune",available:e=>e.tokens>=A.dune,build:e=>({count:Math.round(e.tokens/A.dune)})},{key:"home.fact.tokens.lotr",available:e=>e.tokens>=A.lotr,build:e=>({count:Math.round(e.tokens/A.lotr)})},{key:"home.fact.tokens.warAndPeace",available:e=>e.tokens>=A.warAndPeace,build:e=>({count:Math.round(e.tokens/A.warAndPeace)})},{key:"home.fact.tokens.bible",available:e=>e.tokens>=A.bible,build:e=>({count:Math.round(e.tokens/A.bible)})},{key:"home.fact.tokens.shakespeare",available:e=>e.tokens>=A.shakespeare,build:e=>({count:Math.round(e.tokens/A.shakespeare)})},{key:"home.fact.tokens.harryPotter",available:e=>e.tokens>=A.harryPotter,build:e=>({count:Math.round(e.tokens/A.harryPotter)})},{key:"home.fact.tokens.perMessage",available:e=>e.messages>=20&&e.tokens>=5e4,build:e=>({count:Math.round(e.tokens/Math.max(e.messages,1))})},{key:"home.fact.messages.perActiveDay",available:e=>e.messages>=50&&e.activeDays>=3,build:e=>({count:Math.round(e.messages/Math.max(e.activeDays,1))})},{key:"home.fact.messages.thousand",available:e=>e.messages>=1e3,build:e=>({count:Math.round(e.messages/1e3)})},{key:"home.fact.messages.total",available:e=>e.messages>=100,build:e=>({count:e.messages})},{key:"home.fact.streak.week",available:e=>e.currentStreak>=7&&e.currentStreak<30,build:e=>({count:e.currentStreak})},{key:"home.fact.streak.month",available:e=>e.currentStreak>=30&&e.currentStreak<100,build:e=>({count:e.currentStreak})},{key:"home.fact.streak.legendary",available:e=>e.currentStreak>=100,build:e=>({count:e.currentStreak})},{key:"home.fact.streak.bestEver",available:e=>e.longestStreak>=14&&e.longestStreak>e.currentStreak,build:e=>({count:e.longestStreak})},{key:"home.fact.activeDays.percent",available:e=>e.activeDays>=30,build:e=>({count:e.activeDays,percent:Math.min(100,Math.round(e.activeDays/365*100))})},{key:"home.fact.activeDays.workYear",available:e=>e.activeDays>=220,build:e=>({count:e.activeDays})},{key:"home.fact.sessions.perWeek",available:e=>e.sessions>=10&&e.activeDays>=14,build:e=>({count:Math.max(1,Math.round(e.sessions/Math.max(e.activeDays,1)*7))})},{key:"home.fact.sessions.century",available:e=>e.sessions>=100,build:e=>({count:e.sessions})},{key:"home.fact.sessions.thousand",available:e=>e.sessions>=1e3,build:e=>({count:Math.round(e.sessions/1e3)})},{key:"home.fact.peakHour.midnight",available:e=>e.peakHour!==void 0&&(e.peakHour<5||e.peakHour===23),build:e=>({hour:e.peakHour??0})},{key:"home.fact.peakHour.earlybird",available:e=>e.peakHour!==void 0&&e.peakHour>=5&&e.peakHour<=8,build:e=>({hour:e.peakHour??0})},{key:"home.fact.peakHour.midday",available:e=>e.peakHour!==void 0&&e.peakHour>=11&&e.peakHour<=14,build:e=>({hour:e.peakHour??0})},{key:"home.fact.peakHour.afternoon",available:e=>e.peakHour!==void 0&&e.peakHour>=15&&e.peakHour<=18,build:e=>({hour:e.peakHour??0})},{key:"home.fact.peakHour.evening",available:e=>e.peakHour!==void 0&&e.peakHour>=19&&e.peakHour<=22,build:e=>({hour:e.peakHour??0})}],yt=e=>{const t=new Date(e),s=new Date(t.getFullYear(),0,0);return Math.floor((t.getTime()-s.getTime())/(1440*60*1e3))};function kt(e,t){const s=vt.filter(a=>a.available(e));if(s.length===0)return;const n=yt(t)%s.length,r=s[n];return{key:r.key,params:r.build(e)}}const L=5,pt=e=>e.role==="assistant",xt=e=>{const t=e.tokens;return t?typeof t.total=="number"&&t.total>0?t.total:(t.input??0)+(t.output??0)+(t.reasoning??0)+(t.cache?.read??0)+(t.cache?.write??0):0};function wt(){return{count:0,tokens:0,hours:Array.from({length:24},()=>0),models:{},git:{commits:0}}}const _t=e=>"info"in e?e:{info:e,parts:[]},St=e=>e.type==="tool"&&e.state.status==="completed",Ae=(e,t)=>{const s=e[t];return typeof s!="string"?"":s},Dt=e=>{if(e.tool!=="git")return 0;const t=e.state.input,s=Ae(t,"operation");if(s==="commit")return 1;if(s!=="run")return 0;const n=t.args;return Array.isArray(n)&&n[0]==="commit"?1:0},$t=e=>e.tool!=="bash"?0:Ae(e.state.input,"command").match(/(?:^|[;&|]\s*)git\s+commit(?:\s|$)/g)?.length??0,Mt=e=>({commits:(e??[]).reduce((t,s)=>St(s)?t+Dt(s)+$t(s):t,0)});function At(e,t){const s=e.days;for(const n of t){const r=_t(n),a=r.info,o=a.time.created;o>e.newestMessageAt&&(e.newestMessageAt=o);const i=X(o);let l=s[i];l||(l=wt(),s[i]=l),l.count+=1;const y=Mt(r.parts);l.git.commits+=y.commits;const v=new Date(o).getHours();if(l.hours[v]=(l.hours[v]??0)+1,!pt(a))continue;const k=xt(a);l.tokens+=k;const m=a.modelID;if(!m)continue;const g=l.models[m]??{count:0,tokens:0,providerID:a.providerID};g.count+=1,g.tokens+=k,l.models[m]=g}}function Ce(e,t){const s={sessionID:e,updatedAt:t,newestMessageAt:0,days:{}};return{add(n){At(s,n)},finish(){return s}}}function Ct(e,t,s){const n=Ce(e,t);return n.add(s),n.finish()}const Ne=()=>({days:{}}),Nt=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.days;return!!t&&typeof t=="object"&&!Array.isArray(t)};function It(){return{count:0,tokens:0,hours:Array.from({length:24},()=>0),models:{},git:{commits:0}}}function Ie(e){const t={};for(const[s,n]of Object.entries(e.days??{})){if(!n)continue;const r={};for(const[a,o]of Object.entries(n.models??{}))o&&(r[a]={count:o.count??0,tokens:o.tokens??0,providerID:o.providerID,sessions:{...o.sessions}});t[Number(s)]={count:n.count??0,tokens:n.tokens??0,hours:Array.from({length:24},(a,o)=>n.hours?.[o]??0),models:r,git:{commits:n.git?.commits??0}}}return{days:t}}const K=(e,t)=>{const s=(e??0)+(t??0);return s<=0?0:s},Ht=e=>e.count>0||e.tokens>0||e.git.commits>0||e.hours.some(t=>t>0)||Object.keys(e.models).length>0;function Tt(e,t,s,n){e.count=K(e.count,n*(s.count??0)),e.tokens=K(e.tokens,n*(s.tokens??0)),e.git.commits=K(e.git.commits,n*(s.git?.commits??0));for(let r=0;r<24;r++)e.hours[r]=K(e.hours[r],n*(s.hours?.[r]??0));for(const[r,a]of Object.entries(s.models??{})){if(!a)continue;const o=e.models[r]??{count:0,tokens:0,providerID:a.providerID,sessions:{}};if(o.count=K(o.count,n*(a.count??0)),o.tokens=K(o.tokens,n*(a.tokens??0)),o.providerID||(o.providerID=a.providerID),(a.count??0)>0){const i=(o.sessions[t]??0)+n*(a.count??0);i>0?o.sessions[t]=i:delete o.sessions[t]}o.count>0||o.tokens>0||Object.keys(o.sessions).length>0?e.models[r]=o:delete e.models[r]}}function U(e,t,s){if(!(!t||!t.days))for(const[n,r]of Object.entries(t.days)){if(!r)continue;const a=Number(n),o=e.days[a]??It();Tt(o,t.sessionID,r,s),Ht(o)?e.days[a]=o:delete e.days[a]}}function Et(e){const t=Ne();for(const s of e)s&&U(t,s,1);return t}function zt(e,t,s){const n=Ie(e);return t&&U(n,t,-1),U(n,s,1),n}function Ft(e,t){const s=Ie(e);for(const n of t)U(s,n,-1);return s}const Ot={all:void 0,"30d":30,"7d":7},de=(e,t)=>{const s=Ot[t];if(s!==void 0)return X(e)-(s-1)*q},me=(e,t)=>t===void 0||e>=t;function Rt(e,t){if(e.size===0)return{current:0,longest:0};const s=[...e].sort((i,l)=>i-l);let n=1,r=1;for(let i=1;i<s.length;i++)s[i]-s[i-1]===q?(r+=1,r>n&&(n=r)):r=1;let a=0,o=X(t);for(e.has(o)||(o-=q);e.has(o);)a+=1,o-=q;return{current:a,longest:n}}function Pt(e,t,s){const n=de(t,s),r=Array.from({length:24},()=>0),a=new Set;let o=0,i=0,l=0;for(const[m,g]of Object.entries(e.days??{})){if(!g)continue;const p=Number(m);if(!me(p,n))continue;o+=g.count??0,i+=g.tokens??0,l+=g.git?.commits??0,(g.count??0)>0&&a.add(p);const M=g.hours??[];for(let _=0;_<24;_++)r[_]+=M[_]??0}const y=r.reduce((m,g,p)=>g>m.count?{hour:p,count:g}:m,{hour:-1,count:0}),{current:v,longest:k}=Rt(a,t);return{messages:o,tokens:i,activeDays:a.size,currentStreak:v,longestStreak:k,peakHour:y.count>0?y.hour:void 0,gitCommits:l}}function Kt(e,t,s){const n=de(s,t),r=new Map;for(const[o,i]of Object.entries(e.days??{})){if(!i)continue;const l=Number(o);if(!me(l,n))continue;const y=i.models??{};for(const[v,k]of Object.entries(y)){if(!k)continue;const m=r.get(v);r.set(v,{count:(m?.count??0)+(k.count??0),providerID:m?.providerID??k.providerID})}}let a;for(const[o,i]of r)(!a||i.count>a.messages)&&(a={modelID:o,providerID:i.providerID,messages:i.count});return a}function Lt(e,t,s){const n=de(s,t),r=new Map;for(const[a,o]of Object.entries(e.days??{})){if(!o)continue;const i=Number(a);if(!me(i,n))continue;const l=o.models??{};for(const[y,v]of Object.entries(l)){if(!v)continue;let k=r.get(y);k||(k={providerID:v.providerID,messages:0,tokens:0,sessions:new Set},r.set(y,k)),k.messages+=v.count??0,k.tokens+=v.tokens??0;for(const[m,g]of Object.entries(v.sessions??{}))g>0&&k.sessions.add(m)}}return[...r.entries()].map(([a,o])=>({modelID:a,providerID:o.providerID,messages:o.messages,tokens:o.tokens,sessions:o.sessions.size})).sort((a,o)=>o.messages-a.messages)}const jt=364;function Gt(e,t){const s=X(t);return gt(s,jt).map(n=>({start:n,count:e.days[n]?.count??0}))}const B=()=>({version:L,aggregates:{},materialized:Ne()});function Yt(e){if(!e||typeof e!="object"||Array.isArray(e))return B();const t=e;if(t.version!==L&&t.version!==4)return B();const s=t.aggregates&&typeof t.aggregates=="object"&&!Array.isArray(t.aggregates)?t.aggregates:{};return{version:L,aggregates:s,materialized:t.version===L&&Nt(t.materialized)?t.materialized:Et(Object.values(s))}}function Wt(){const e=Xe(),t=(()=>{const m=e.scope,g=typeof m=="string"?m:m.key;return`codeplane.server.${qt(g,"server")}.dat:home-stats`})(),s=(()=>{if(typeof localStorage>"u")return B();try{const m=localStorage.getItem(t);return m?Yt(JSON.parse(m)):B()}catch{return B()}})(),[n,r]=Y(s);W(()=>{const m=n();if(!(typeof localStorage>"u"))try{localStorage.setItem(t,JSON.stringify(m))}catch{}});function a(m){return n().aggregates[m]}function o(m,g){const p=n().aggregates[m];return p?p.updatedAt<g:!0}function i(m){r(g=>({version:L,aggregates:{...g.aggregates,[m.sessionID]:m},materialized:zt(g.materialized,g.aggregates[m.sessionID],m)}))}function l(m,g,p){i(Ct(m,g,p))}function y(m){m.length!==0&&r(g=>{const p={...g.aggregates},M=[...new Set(m)],_=M.flatMap(C=>p[C]?[p[C]]:[]);for(const C of M)delete p[C];return{version:L,aggregates:p,materialized:_.length>0?Ft(g.materialized,_):g.materialized}})}function v(m){const g=new Set(m),p=[];for(const M of Object.keys(n().aggregates))g.has(M)||p.push(M);p.length>0&&y(p)}function k(){return Object.values(n().aggregates)}return{ready:()=>!0,get store(){return n()},get:a,isStale:o,applyAggregate:i,applyMessages:l,syncWithSessionList:v,all:k}}function qt(e,t){const s=(e.slice(0,18)||t).replace(/[^a-zA-Z0-9._-]/g,"-"),n=Ze(e)??"0";return`${s}.${n}`}const ke=e=>typeof e=="number"&&Number.isFinite(e)?e:0,Bt=(e,t,s)=>Math.min(Math.max(e,t),s);function Vt(e){const t=ke(e.value),[s,n]=Y(t);let r=!1,a,o=t;return W(et(()=>ke(e.value),i=>{if(!r){r=!0,o=i,n(i);return}const l=o;if(l===i)return;const y=Math.abs(i-l);if(y>1e9||!Number.isFinite(y)){o=i,n(i);return}const v=e.durationMs??700,k=performance.now(),m=Math.min(l,i),g=Math.max(l,i),p=M=>{const _=Math.min(1,(M-k)/v),C=1-Math.pow(1-_,3),I=Bt(l+(i-l)*C,m,g);o=I,n(I),_<1?a=requestAnimationFrame(p):(o=i,n(i),a=void 0)};a!==void 0&&cancelAnimationFrame(a),a=requestAnimationFrame(p)})),le(()=>{a!==void 0&&cancelAnimationFrame(a)}),ce(()=>e.format(s()))}var Qt=w('<div class="size-full overflow-y-auto"><div class="mx-auto flex min-h-full w-full max-w-3xl flex-col gap-4 px-4 py-5 sm:gap-6 sm:px-6 sm:py-8"><div class="grid grid-cols-1 gap-6">'),Jt=w('<div class="shrink-0 flex items-center justify-between gap-4 border-b border-border-weak-base pb-4"><div class=min-w-0><div class="text-20-medium text-text-strong truncate"></div><div class="text-12-regular text-text-weak">'),Ut=w('<div class="shrink-0 text-12-regular text-text-weak">'),Xt=w('<section class="overflow-hidden rounded-xl border border-border-weaker-base bg-background-base shadow-[var(--shadow-xs)]"><div class="flex items-center justify-between gap-3 border-b border-border-weaker-base px-3 py-2 sm:px-4">'),Zt=w('<div class="inline-flex items-center gap-0.5 rounded-lg bg-surface-base p-0.5">'),es=w('<button type=button class="rounded-md px-2.5 py-1 text-12-medium tabular-nums transition-colors">'),ts=w('<div class="grid grid-cols-2 gap-px bg-border-weaker-base sm:grid-cols-4">'),ss=w('<div class="px-3 py-4 sm:px-4">'),ns=w('<div class="grid grid-cols-2 gap-px border-t border-border-weaker-base bg-border-weaker-base sm:grid-cols-4">'),rs=w('<div class="border-t border-border-weaker-base px-3 py-2 text-12-regular text-text-weak sm:px-4">'),as=w('<div class="divide-y divide-border-weaker-base">'),os=w('<div class="px-4 py-10 text-center text-12-regular text-text-weak">'),is=w('<div class="flex items-center gap-3 px-3 py-3 sm:px-4"><div class="min-w-0 flex-1"><div class="flex items-center justify-between gap-3"><span class="truncate text-14-medium text-text-strong"></span><span class="shrink-0 text-12-regular text-text-base tabular-nums"></span></div><div class="mt-1.5 h-1 overflow-hidden rounded-full bg-surface-base"><div class="h-full rounded-full bg-[color-mix(in_srgb,var(--text-interactive-base)_55%,transparent)]"></div></div><div class="mt-1.5 flex items-center justify-between gap-3 text-12-regular text-text-weak tabular-nums"><span></span><span>'),He=w('<div class="min-w-0 bg-background-base px-3 py-3 sm:px-4"><div class="truncate text-12-regular text-text-weak"></div><div class="pt-0.5 truncate text-18-medium text-text-strong tabular-nums">'),ls=w('<div class=w-full style="container-type:inline-size;--heatmap-cell:calc((100cqi - 153px) / 52)"><div class=grid style="grid-template-columns:repeat(52, var(--heatmap-cell));grid-template-rows:repeat(7, var(--heatmap-cell));grid-auto-flow:column;gap:3px">'),cs=w('<div class="rounded-md border border-dashed border-border-weaker-base px-4 py-6 text-center text-12-regular text-text-weak">'),us=w("<button type=button style=width:var(--heatmap-cell);height:var(--heatmap-cell)><span>"),ds=w("<div style=width:var(--heatmap-cell);height:var(--heatmap-cell)>"),Te=w('<div class="overflow-hidden rounded-lg border border-border-weaker-base bg-background-base shadow-[var(--shadow-xs)]">'),Ee=w('<section class="flex flex-col gap-3 min-w-0"><div class="text-14-medium text-text-strong">'),ze=w('<div class="rounded-lg border border-border-weaker-base bg-background-base px-4 py-8 text-center text-12-regular text-text-weak shadow-[var(--shadow-xs)]">'),ms=w('<span class="shrink-0 tabular-nums">'),fs=w('<button type=button class="group flex w-full min-w-0 items-center gap-3 border-b border-border-weaker-base px-3 py-3 text-left transition-colors last:border-b-0 hover:bg-surface-raised-base-hover focus:outline-none focus-visible:bg-surface-raised-base-hover"><div class="min-w-0 flex-1"><div class="flex items-center justify-between gap-3"><span class="truncate text-14-medium text-text-strong"></span><span class="shrink-0 text-12-regular text-text-base tabular-nums"></span></div><div class="mt-1.5 h-1 overflow-hidden rounded-full bg-surface-base"><div class="h-full rounded-full bg-[color-mix(in_srgb,var(--text-interactive-base)_55%,transparent)]"></div></div><div class="mt-1.5 flex items-center justify-between gap-3 text-12-regular text-text-weak"><span class=truncate>'),gs=w("<span>"),hs=w('<button type=button class="group flex w-full min-w-0 items-center gap-3 border-b border-border-weaker-base px-3 py-3 text-left transition-colors last:border-b-0 hover:bg-surface-raised-base-hover focus:outline-none focus-visible:bg-surface-raised-base-hover"><div class="min-w-0 flex-1"><div class="truncate text-14-medium text-text-strong"></div><div class="mt-0.5 flex items-center gap-2 text-12-regular text-text-weak"><span class=truncate></span><span class=shrink-0>·</span><span class="shrink-0 tabular-nums">');const bs=["all","30d","7d"],vs={all:"home.range.all","30d":"home.range.30d","7d":"home.range.7d"},ys=7,ks=52,S=e=>typeof e!="number"||!Number.isFinite(e)||e<0?0:e;function Ns(){const e=tt(),t=j(),s=st(),n=nt(),r=rt(),a=Wt(),[o,i]=Y("all"),[l,y]=Y("overview"),[v,k]=Y(0),m=setInterval(()=>k(c=>c+1),3e4);le(()=>clearInterval(m));const g=T(()=>new Intl.NumberFormat(t.intl())),p=c=>ct.fromMillis(c).setLocale(t.intl()).toRelative()??"",M=c=>new Intl.DateTimeFormat(t.intl(),{hour:"numeric"}).format(new Date(2e3,0,1,c)),_=new Set,C=(c,d)=>`${c}
|
|
3
3
|
${d.id}
|
|
4
4
|
${d.time.updated??d.time.created}`,I=new Set,E=new Map,P=new AbortController,Fe=2,Oe=200,G=[];let Z=0;const fe=()=>{if(!P.signal.aborted)for(;Z<Fe;){const c=G.shift();if(!c)return;Z++,c.run().finally(()=>{Z--,I.delete(c.key),E.get(c.sessionKey)===c.key&&E.delete(c.sessionKey),fe()})}},Re=c=>{if(!P.signal.aborted&&!I.has(c.key)){for(I.add(c.key),G.push(c);G.length>Oe;){const d=G.pop();d&&(I.delete(d.key),E.get(d.sessionKey)===d.key&&E.delete(d.sessionKey))}fe()}};le(()=>{P.abort(),G.length=0,I.clear(),E.clear()});const ee=T(()=>(v(),e.projects.list().map(c=>{const[d]=s.child(c.worktree,{bootstrap:!1});return{directory:c.worktree,worktree:c.worktree,name:ot(c),iconColor:c.icon?.color,vcs:c.vcs,sessions:d.session??[],sessionDiffs:d.session_diff}})));W(()=>{const c=[];for(const d of ee())for(const b of d.sessions)b.parentID||b.time?.archived||c.push(b.id);a.syncWithSessionList(c)}),W(()=>{const c=ee().flatMap(d=>d.sessions.filter(b=>!b.parentID&&!b.time?.archived).map(b=>({worktree:d.worktree,sessionID:b.id,updatedAt:b.time.updated??b.time.created}))).sort((d,b)=>b.updatedAt-d.updatedAt);for(const d of c){const b=`${d.worktree}
|