@ensocode/server 0.3.5 → 0.3.7
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/out/phone/assets/{abnfDiagram-VCTEODGH-k76opPl1.js → abnfDiagram-VCTEODGH-2-rZfXru.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-yfAdIxfu.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-yxQH9IuZ.js → architectureDiagram-5GKGNRK7-vlXme2Q3.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-DoHteZpO.js → blockDiagram-I7D4REHJ-BD1NeeU7.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-DQVO6L4q.js → c4Diagram-7LVT6UL2-BLQd5mqT.js} +1 -1
- package/out/phone/assets/channel-D8BkMJGk.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-N9Rw4SGW.js → chunk-4HAMMTFA-CxF_O9R8.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-DKJ8pOxp.js → chunk-75Z2AOVW-DmshWRC4.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-BqGW8Nbd.js → chunk-DU6HZSFF-CZrdwMNN.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-PkFmkghF.js → chunk-F27PBJKO-ColBn-9C.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-C9VeD3Jk.js → chunk-GMAD6QVW-CJN3ap1i.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-COhntOeE.js → chunk-GVQU2GXP-h3qKgG9R.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-B87ghLVD.js → chunk-IMKFNOWR-CZRKz_sn.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-C3N2izjg.js → chunk-L3NEJ4N5-CMO7DEvv.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-DaAlvVhz.js → chunk-OSK3NFVY-C5uece6k.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-BQpKr8IZ.js → chunk-P2QGCYS3-WgQBUDEk.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-B2TZMY6U.js → chunk-POPQ4Y6H-VHLT_ckM.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-CgRhpUJy.js → chunk-PWAF6VOD-AIbXljX0.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-BySMFA99.js → chunk-SHT3W25Y-Bxg4nJYZ.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-EDGanDUX.js → chunk-SVP7TREG-C4_nxyeQ.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-BtCZ8R2k.js → chunk-TICWLB2K-B5wDGVGC.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CIHzXafb.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CIHzXafb.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-CdZmp44V.js → cynefin-OW5HDTMX-IUYlkNoA.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-BCz9KwUb.js → cynefinDiagram-5FMLGOSQ-ciimhepC.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-CgFeNgh6.js → dagre-GXQ25YYZ-Dk3tslas.js} +1 -1
- package/out/phone/assets/{desk-C_b7mE6l.js → desk-9dPB4fYu.js} +1 -1
- package/out/phone/assets/{diagram-S7CK7UJ4-CwvaZIBf.js → diagram-S7CK7UJ4-BhDokNwG.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DqnD4XoZ.js → diagram-UQ7AKVKN-CciyntsZ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-Kqc9GudQ.js → diagram-VSXAHHWV-BG3YhyOX.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-B_0DLDQ0.js → diagram-VX7I27RA-Wx7x7olQ.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-CppKBEPW.js → diagram-Z3DM3KII-CcI8MVzR.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-DeYPNCu9.js → ebnfDiagram-PWID7BFC-Cug1-9Ha.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-MsfxDUmk.js → erDiagram-RLTQ6QDP-kjxgMXRS.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-CTu3xjKC.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-EMW1nWtZ.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-DaScS1os.js → ganttDiagram-EL5Y4UJY-Ci67p8ni.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-C-FzqpZm.js → gitGraph-4MIJSDKK-Bq5w_SFd.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-4Yv-hAwf.js → gitGraphDiagram-WWUBYQGX-6MPAWIQP.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-CGLEP4t7.js → info-A6RAGUB7-D05oiQx3.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DapEgYQa.js → infoDiagram-27XIBGKW-DEMR262W.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-D1B2lZSG.js → ishikawaDiagram-5VMMS53U-D54EdxMb.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-BSAtMVJw.js → journeyDiagram-3NMN7TZE-BIEdfqGB.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-CfZ4oI7A.js → kanban-definition-UXKFOSKX-Ps-NZDsh.js} +1 -1
- package/out/phone/assets/{line-DAXmUM4p.js → line-DGUUioP5.js} +1 -1
- package/out/phone/assets/main-DYdpq0Gx.css +1 -0
- package/out/phone/assets/{main-B0yD1pMI.js → main-Do_3fZm7.js} +107 -107
- package/out/phone/assets/{mermaid-parser.core-IObm7oM0.js → mermaid-parser.core-BkNZLgza.js} +3 -3
- package/out/phone/assets/{mermaid.core-C1wA-mhD.js → mermaid.core-nEcMItTa.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-3ph0EaB9.js → mindmap-definition-YA3MSWOX-DZvLJVDS.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-BbDAe9Au.js → packet-AYTQ26CC-BORABWaG.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-EsuDcX_3.js → pegDiagram-XKGWAZYB-CGyyPNG0.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BQfIj1fu.js → pie-WAS4IAKB-DXKTNLO7.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-Cw19z5Ip.js → pieDiagram-E7YTZNPT-BHlAnBZb.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-Bqwz_sa8.js → quadrantDiagram-AXDQQJYC-CYx8zP0Z.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-Dmp-89iD.js → radar-RG4KPBEZ-mYzEXGPZ.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-dq2H8w8Y.js → railroad-74A4TZTK-BpSoFKZI.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-C8SKwwnT.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-RhLt9QbJ.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-_H7Uu52_.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-D2Sbc7Wn.js → railroadDiagram-O6MQD6OU-BAlwhvnj.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-CLNUqxbl.js → requirementDiagram-BXWQKSXE-C2R7ulaS.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-Dme5iwcw.js → sankeyDiagram-P5KCCOFB-c0sv5hNV.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-C5dYSwPE.js → sequenceDiagram-WJ2MYXX4-Cz6Zq57N.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-BuxkPvJ6.js → stateDiagram-D77RDMKH-DZhgDUa6.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-nNiD0itH.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DHyXnytv.js → swimlanes-42K2YHIH-ByNqwNMl.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-Dz8lzRW1.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-Bm8Z0u2Z.js → timeline-definition-24CTP7MA-CSFOYvnV.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-DFUxvDDO.js → treeView-Q6P3EWNA-CDqEDufz.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-CMC-hwzt.js → treemap-WGGIJYW6-DfjCLTFL.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-CNL4gZsd.js → vennDiagram-4TSXK5OY-CjV_vvWy.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-CHQoq9KJ.js → wardley-WFR3VGLG-Df2M8YsO.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DAuBfK1O.js → wardleyDiagram-VM6X3IG4-B2bcg9of.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-B2T9ECKd.js → xychartDiagram-S5SC5T6Z-Fq1wBYKM.js} +1 -1
- package/out/phone/desk.html +1 -1
- package/out/phone/index.html +2 -2
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-gdhrQbX6.js → abnfDiagram-VCTEODGH-DMPmG_xF.js} +1 -1
- package/out/renderer/assets/{arc-D6-Q4l2d.js → arc-DjMiWCQZ.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-C4y0SbLT.js → architectureDiagram-5GKGNRK7-Dy1W4IYD.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-DrsoSFRK.js → blockDiagram-I7D4REHJ-B8zx5UuN.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-1DD8BlM8.js → c4Diagram-7LVT6UL2-D7MZ3XeI.js} +1 -1
- package/out/renderer/assets/channel-BCPz1zGb.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-DRyc0B7g.js → chunk-2Q5K7J3B-BEMGeNvl.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-BJe8SghE.js → chunk-5VM5RSS4-CTB_kPAW.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BIipq4SK.js → chunk-F27PBJKO-CDc0IpL4.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-D5Ak3Xd9.js → chunk-IMKFNOWR-5NElfs8W.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-BcaWCpW-.js → chunk-JWPE2WC7-DfZ55eH3.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-C1TwLrrN.js → chunk-POPQ4Y6H-BK1Mb8zQ.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-DDOXG_t3.js → chunk-SVP7TREG-BTCzRhBg.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-BqT15hZi.js → chunk-TICWLB2K-BIdRdQio.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-D01ts6SC.js → chunk-XXDRQBXY-xdEJ7eED.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-D5itFA4H.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-D5itFA4H.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-C7NVrT2_.js → cose-bilkent-JH36ORCC-Dbeuy5zT.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-2LxdFmSk.js → cynefin-OW5HDTMX-DYk68iql.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-_AN_Mulc.js → cynefinDiagram-5FMLGOSQ-CW9N3zhw.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-COZkZZmX.js → cytoscape-fcose-BtmodGyv.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-BUTwlM6j.js → dagre-GXQ25YYZ-xTaBduGi.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-CseZZ-y2.js → diagram-S7CK7UJ4-Okomm8Ap.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-Cb7llS-8.js → diagram-UQ7AKVKN-CvzlGwuY.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-CtuGqQvp.js → diagram-VSXAHHWV-BJtbgGmH.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-BA8eov-1.js → diagram-VX7I27RA-vefJMKYp.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-VZOjj6Hg.js → diagram-Z3DM3KII-ChsgoF9h.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-YBIrle6d.js → ebnfDiagram-PWID7BFC-D9X9DUcr.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-BiKyPEqW.js → erDiagram-RLTQ6QDP-C024iQV7.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-7wmZyLHw.js → flowDiagram-HODETNUW-CPVYCBuI.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-D4j4GJaT.js → ganttDiagram-EL5Y4UJY-C65Z220Q.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-BqveM1NI.js → gitGraphDiagram-WWUBYQGX-B2ZCfyVT.js} +1 -1
- package/out/renderer/assets/{globals-C9M_MZZV.js → globals-B4auqknW.js} +153 -153
- package/out/renderer/assets/globals-biae1A0_.css +1 -0
- package/out/renderer/assets/index-XLAcGpdw.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-DLPLnIFP.js → infoDiagram-27XIBGKW-D7RgOT5Z.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-48drIAMR.js → ishikawaDiagram-5VMMS53U-CEyzfHnV.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-vjigqUq_.js → journeyDiagram-3NMN7TZE-C1GjLzvL.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-CpsYVONZ.js → kanban-definition-UXKFOSKX-umALrvd6.js} +1 -1
- package/out/renderer/assets/{layout-DqfoORoO.js → layout-CPiirD-6.js} +1 -1
- package/out/renderer/assets/{linear-CJzBBHcp.js → linear-DeKsEgmD.js} +1 -1
- package/out/renderer/assets/{mermaid.core-DdrGP-Hn.js → mermaid.core-upLR8Tou.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-D68tLNxp.js → mindmap-definition-YA3MSWOX-CDpc91To.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-DkgLTcrv.js → pegDiagram-XKGWAZYB-ZWCzr3Tm.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-bz5NuX1w.js → pieDiagram-E7YTZNPT-Cli5NL_V.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-o_VKLyJA.js → quadrantDiagram-AXDQQJYC-DyHSkgko.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-Dkf03e07.js → railroadDiagram-O6MQD6OU-BifUAJjm.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-CBUz_3YU.js → requirementDiagram-BXWQKSXE-4vjbe8oI.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-B0pjUr9g.js → sankeyDiagram-P5KCCOFB-BDHiusDD.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-ClugIL0e.js → sequenceDiagram-WJ2MYXX4-CfTMNjuO.js} +1 -1
- package/out/renderer/assets/settings-B1-ZqHbd.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-D6y0rctc.js → sizeCapture-INFHLROL-BInsctow.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-DiftQepS.js → stateDiagram-D77RDMKH-3R4s4xE6.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DqJbnbM3.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-DhuTjCNj.js → swimlanes-42K2YHIH-CHnfm1qW.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-Gz8US82e.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-CrXqgptd.js → timeline-definition-24CTP7MA-BSOSQ438.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-CDm8SO8U.js → vennDiagram-4TSXK5OY-Bw_mOynV.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-CxyunHwQ.js → wardleyDiagram-VM6X3IG4-DZF4RS4h.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-CvC5YMSy.js → xychartDiagram-S5SC5T6Z-DwVUcf5G.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +5 -4
- package/out/server/chunks/{agent-_G_O-Cpa.js → agent-BlAuVqNp.js} +4 -2
- package/out/server/chunks/{gpuBackendInstall-Cb6TFh_8.js → gpuBackendInstall-C0fP_8jk.js} +4 -4
- package/out/server/chunks/{loadProvider-Be9Lu1Oi.js → loadProvider-1NxA7GHt.js} +2 -2
- package/out/server/chunks/{manifest-CB63GQ-i.js → manifest-CojWIAHB.js} +2 -2
- package/out/server/chunks/{workflowPresets-Djlp5LPV.js → workflowPresets-COTLnY4e.js} +71 -17
- package/out/server/index.js +310 -54
- package/out/server/plugin-host.js +33 -3
- package/package.json +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-DFA8x3QF.js +0 -1
- package/out/phone/assets/channel-BBjWfdZr.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CXXjdIIU.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CXXjdIIU.js +0 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-D4a6gbOs.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-BBTtB5oX.js +0 -1
- package/out/phone/assets/main-DNRbLxEx.css +0 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-DddVaVQM.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BjvyqMjh.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-lBl4CV1_.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Exd8xDBD.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-B62_42fO.js +0 -8
- package/out/renderer/assets/channel-Sck-tAAK.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DnB4QNNe.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DnB4QNNe.js +0 -1
- package/out/renderer/assets/globals-l3kDGoYH.css +0 -1
- package/out/renderer/assets/index-BzSTiwH2.js +0 -117
- package/out/renderer/assets/settings-DvhrDn2q.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DxB2-9tl.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CYDUqExO.js +0 -8
package/out/server/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import fs, { readFileSync, mkdirSync, chmodSync, existsSync, writeFileSync, appendFileSync, realpathSync, statSync, renameSync, rmSync, copyFileSync, readdirSync, unlinkSync, mkdtempSync, createReadStream, openSync, readSync, closeSync, watch, lstatSync, fstatSync, writeSync,
|
|
2
|
+
import fs, { readFileSync, mkdirSync, chmodSync, existsSync, writeFileSync, appendFileSync, realpathSync, statSync, renameSync, rmSync, copyFileSync, readdirSync, unlinkSync, mkdtempSync, createReadStream, openSync, readSync, closeSync, watch, lstatSync, fstatSync, writeSync, accessSync, constants as constants$2, rmdirSync } from "node:fs";
|
|
3
3
|
import { createServer, isIP, createConnection } from "node:net";
|
|
4
4
|
import path, { join, resolve, dirname, basename as basename$1, relative, isAbsolute, sep, extname } from "node:path";
|
|
5
5
|
import { fork, execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
6
6
|
import { createDecipheriv, randomBytes, createCipheriv, randomUUID, createHash, timingSafeEqual as timingSafeEqual$1, verify, createPublicKey } from "node:crypto";
|
|
7
7
|
import { EventEmitter } from "node:events";
|
|
8
8
|
import os, { homedir, tmpdir, userInfo } from "node:os";
|
|
9
|
-
import { R as parseWebSearchChain, T as APPROVAL_MODES$1, U as THINKING_LEVELS, t as isSameChildSessionIdentity, V as parseChildConversationMetadata, H as isClassifierOnlyProvider, I as isOauthAccountPool, W as eligibleOauthPoolAccountKeys, j as isCodexAccountKey, X as normalizeSshTimeoutSeconds, Y as CLAUDE_HOOK_EVENTS, Z as isReservedAgentTypeName, _ as BUILTIN_AGENT_TYPES, $ as isPluginEntry, a0 as PLUGIN_HOST_APIS, Q as pluginToolName, a1 as PLUGIN_INJECT_MAX_CHARS, a2 as parsePluginInjectImages, a3 as isHostPluginEvent, a4 as parsePluginToolName, a5 as initialInterceptState, m as isChildInterceptEvent, a6 as CHILD_INTERCEPT_TOTAL_TIMEOUT_MS, a7 as INTERCEPT_TOTAL_TIMEOUT_MS, a8 as CHILD_INTERCEPT_TIMEOUT_MS, a9 as INTERCEPT_TIMEOUT_MS, aa as applyInterceptResult, ab as failClosedResult, ac as OBSERVE_TIMEOUT_MS, ad as BEFORE_COMPACT_TIMEOUT_MS, ae as PLUGIN_PROGRESS_MAX_CHARS, af as MCP_TRANSPORTS, N as PRIVACY_MASK_ENTRY, ag as parsePrivacyMaskRecord, ah as hasProviderCredentials, g as MODEL_REASONING_OVERRIDES, h as MODEL_THINKING_LEVEL_OVERRIDES, ai as parseAgentWorkerEvent, aj as parseWindowsLocalShell, J as resolveEditMode, u as resolveCompactStrategy, ak as parseSmartCompactMode, al as resolveImageGenerationConfig, am as normalizeMaxActiveCoworkers, an as normalizeAutoRetryLimit, ao as parsePrivacyMaskSettings, ap as parseDisabledWorkflowPresets, b as parseApprovalAllowThreshold, aq as DEFAULT_APPROVAL_ALLOW_THRESHOLD, ar as visibleMemberAgentTypes, O as parseAgentCommand, as as buildAgentTypeRegistrySnapshot, at as resolveShellLimits, e as parseProviderHeaders, au as DEFAULT_PRESET_ID, av as AGENT_WAIT_DEFAULT_MS, aw as AGENT_WAIT_MAX_MS, l as isUuid, ax as isDeliveryId, F as splitPlanPrefix, p as parseChildSessionIdentity, ay as LOCAL_IMAGE_SCHEME, az as REMOTE_FETCH_HOST, aA as BOT_AVATAR_HOST, aB as PLUGIN_ASSET_HOST, aC as mediaExtension, aD as localImageUrlToPath, aE as isMediaPath, aF as isVideoPath, aG as IMAGE_EXTENSIONS$1, aH as parseCreateConversationAuthorityRequest, aI as parseConversationAuthorityRequest, aJ as parseUpdateConversationSelectionRequest, aK as parseTitleSummaryInput, aL as parseParentSourceBindingRequest, aM as parseParentModelSelectionRequest, aN as parseAgentDispatchRequest, aO as isApprovalDecision, aP as cleanToolBatchLabel, aQ as toolBatchLabelPrompt, aR as TOOL_BATCH_LABEL_SYSTEM_PROMPT, aS as SHELL_LIMITS, K as EMPTY_PLAN_STATE, aT as TITLE_SUMMARY_MAX_CANDIDATES, aU as parseCreateProjectAuthorityRequest, aV as parseSelectProjectAuthorityRequest, aW as parseRemoveProjectAuthorityRequest, aX as withVersionSegment, aY as DEFAULT_BASE_URLS, M as MODEL_API_KINDS } from "./chunks/agent-
|
|
10
|
-
import { bF as isMediaId, bG as isVirtualRef, bH as findVirtualModel, a0 as takeSnapshotTail, bI as syncAccountProviders, bJ as expandOauthCatalog, bK as supportsMultipleAccounts, bL as parseCodexAuthJson, bM as CODEX_PROVIDER_ID, bN as nextAccountKey, bO as sanitizeUpstreamBody, bq as installCodexLinkedRefresh, bP as defaultCodexAuthPath, bj as ANTIGRAVITY_PROVIDER_ID, bk as antigravityProviderConfig, bl as DEVIN_PROVIDER_ID, bm as devinProviderConfig, bn as QODER_PROVIDER_ID, bo as qoderProviderConfig, bp as QODER_CN_PROVIDER_ID, as as providerIdOfAccountKey, bQ as ordinalOfAccountKey, $ as ensureAccountProvider, bR as sanitizeOauthLabel, bS as parseAntigravityApiKey, bT as fetchAntigravityUsage, bU as fetchDevinUsage, bV as DEFAULT_PERSONA_PROMPT, A as AGENT_WORKER_CRASH_FILE, bW as parseAgentWorkerCrash, aY as appendCappedLog, bX as AGENT_WORKER_EXIT_LOG, b5 as WORKSPACE_WRITE_TOOL_ID, aa as ELEVATE_TIMEOUT_MS, s as shellQuote, ab as ELEVATE_UNAVAILABLE_MARKER, a9 as ELEVATE_TIMED_OUT_MARKER, a8 as ELEVATE_DECLINED_MARKER, bY as elevatedCommandOf, br as isHeadlessRun, bZ as startOauthCallbackServer, U as mcpOAuthFingerprint, T as MCP_OAUTH_REFRESH_SKEW_MS, F as readModelsDevCache, b_ as MODELS_DEV_URL, b$ as writeModelsDevCache, c0 as parseModelsDevPayload, c1 as MODELS_DEV_CACHE_NAME, c2 as modelsDevIsFresh, H as parseModelDirectorySnapshot, c3 as withModelsDevOauthModels, a6 as ELEVATE_ASKPASS_ENV, c4 as describeAgentWorkerExit, a4 as childProfileShell, c5 as directMemberRef, c6 as materializeProviders, p as providerKeyFor, c7 as parseVirtualModels, V as VIRTUAL_PROVIDER_ID, c8 as classifierProviderFor, c9 as classifierBaseUrlFor, ca as childProfileToolIds, cb as pickModelCapabilityOverrides, cc as canBeVirtualMember, cd as mcpTimeoutsForSpawn, aV as parseJsonFromAssistant, aW as validateAgainstSchema, ay as HUMAN_REQUEST_TIMEOUT_MS, ce as withPrivacyMask, cf as withUserEntryIds, _ as projectMessage, cg as UNIT_TYPES, ch as DEDUP_MIN_CHARS, ci as DEFAULT_IMPORTANCE, cj as DEFAULT_UNIT_TYPE, ck as isEvolvesRelation, cl as DEDUP_MAX, cm as DEDUP_VECTOR, cn as CRYSTAL_MIN_SOURCES, co as DISTILL_MAX_OUTPUT_TOKENS, cp as DISTILL_MIN_IMPORTANCE, cq as DISTILL_MAX_CHUNK_CHARS, cr as DISTILL_SINGLE_EXTRACT_MAX_TOKENS, cs as DISTILL_EXTRACT_MAX_TOKENS, ct as DISTILL_CONSOLIDATE_MAX_TOKENS, cu as isUnitType, cv as DISTILL_MAX_ATTEMPTS, cw as KG_MAX_LABEL_CHARS, cx as KG_MAX_ENTITY_NAME_CHARS, cy as KG_MAX_DESCRIPTION_CHARS, cz as KG_MAX_ENTITIES, cA as KG_MAX_RELATIONS, cB as KG_EXTRACT_MAX_TOKENS, cC as KG_DEFAULT_RELATION_TYPE, cD as KG_DEFAULT_ENTITY_TYPE, cE as KG_MAX_ATTEMPTS, cF as MIN_FLOOR, cG as IMP_MULT, cH as RECENCY_W, cI as FREQUENCY_W, cJ as FREQUENCY_MAX_COUNT, cK as HALF_LIFE_DAYS, cL as RRF_K, cM as DECAY_WEIGHT, cN as TEMPORAL_YEAR_BOOST, cO as CRYSTAL_BOOST, cP as MMR_LAMBDA, cQ as parseMemorySearchRequest, cR as parseMemoryCaptureRequest, cS as parseMemoryCrystallizeRequest, cT as parseMemoryDeleteRequest, cU as SNAPSHOT_TAIL_MESSAGES, bd as splitUnattendedPrefix, cV as userTextWithoutSkills, cW as resolveSshTarget, cX as checkPassed, cY as checkFailureText, ai as SEND_IMAGE_CAPTION_MAX, cZ as parseVirtualClassifier, c_ as VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS, b0 as buildInitialTitleUserText, b2 as TITLE_SYSTEM_PROMPT, aU as buildTurnDigest, b1 as ROLLING_TITLE_SYSTEM_PROMPT, a$ as buildRollingTitleUserText, bc as titleSummaryTimeoutMs, b3 as extractTitle, b4 as titleRejectReason, ak as sendImageItems, c$ as isSecretFilePath, d0 as isUnderSecretDirectory, aH as createComputerTool, aO as ComputerInvoker, d1 as codemodeToolSnapshot, aK as createTaskTools, aF as createMemoryTools, aM as MemoryInvoker, b8 as createWebTools, aD as createBrowserTools, aB as createUnifiedSubagentTool, aL as BrowserInvoker, aQ as createAskTool, aP as AskManager, bb as createSubmitPlanTool, b9 as createTodoTool, g as estimateSkillTokens, h as estimateInstructionTokens, d2 as estimateToolsTotal, bi as createProjectSettingsManager, be as resolveHarnessSkillRoots, S as assignMcpToolNames, aJ as listWorkflowPresets, aC as workflowPresetRoots, d3 as listCustomWorkflowPresets, d4 as listBuiltinWorkflowPresets, d5 as readCustomWorkflowPreset, d6 as parseWorkflowPresetDraft, d7 as saveCustomWorkflowPreset, d8 as deleteCustomWorkflowPreset, au as createSshExecutor, d9 as isHumanRequestTimeout, da as buildSshExecArgs, db as buildRemoteCommand, bD as sshPasswordEnv, dc as listProjectCodeSources, dd as positiveFiniteNumber, Y as isXaiChatModelId, de as mergeFetchedOauthModels, K as mergeCatalogEntry, I as findCatalogModelById, J as findModelsDevModel, df as supportedProjectThinkingLevels, dg as buildSshPtyArgs, bC as resolveSshControlPath, G as version$1, dh as ENSO_HEADLESS_RUN_ENV } from "./chunks/workflowPresets-
|
|
9
|
+
import { R as parseWebSearchChain, T as APPROVAL_MODES$1, U as THINKING_LEVELS, t as isSameChildSessionIdentity, V as parseChildConversationMetadata, H as isClassifierOnlyProvider, I as isOauthAccountPool, W as eligibleOauthPoolAccountKeys, j as isCodexAccountKey, X as normalizeSshTimeoutSeconds, Y as CLAUDE_HOOK_EVENTS, Z as isReservedAgentTypeName, _ as BUILTIN_AGENT_TYPES, $ as isPluginEntry, a0 as PLUGIN_HOST_APIS, Q as pluginToolName, a1 as PLUGIN_INJECT_MAX_CHARS, a2 as parsePluginInjectImages, a3 as isHostPluginEvent, a4 as parsePluginToolName, a5 as initialInterceptState, m as isChildInterceptEvent, a6 as CHILD_INTERCEPT_TOTAL_TIMEOUT_MS, a7 as INTERCEPT_TOTAL_TIMEOUT_MS, a8 as CHILD_INTERCEPT_TIMEOUT_MS, a9 as INTERCEPT_TIMEOUT_MS, aa as applyInterceptResult, ab as failClosedResult, ac as OBSERVE_TIMEOUT_MS, ad as BEFORE_COMPACT_TIMEOUT_MS, ae as PLUGIN_PROGRESS_MAX_CHARS, af as MCP_TRANSPORTS, N as PRIVACY_MASK_ENTRY, ag as parsePrivacyMaskRecord, ah as hasProviderCredentials, g as MODEL_REASONING_OVERRIDES, h as MODEL_THINKING_LEVEL_OVERRIDES, ai as parseAgentWorkerEvent, aj as parseWindowsLocalShell, J as resolveEditMode, u as resolveCompactStrategy, ak as parseSmartCompactMode, al as resolveImageGenerationConfig, am as normalizeMaxActiveCoworkers, an as normalizeAutoRetryLimit, ao as parsePrivacyMaskSettings, ap as parseDisabledWorkflowPresets, b as parseApprovalAllowThreshold, aq as DEFAULT_APPROVAL_ALLOW_THRESHOLD, ar as visibleMemberAgentTypes, O as parseAgentCommand, as as buildAgentTypeRegistrySnapshot, at as resolveShellLimits, e as parseProviderHeaders, au as DEFAULT_PRESET_ID, av as AGENT_WAIT_DEFAULT_MS, aw as AGENT_WAIT_MAX_MS, l as isUuid, ax as isDeliveryId, F as splitPlanPrefix, p as parseChildSessionIdentity, ay as LOCAL_IMAGE_SCHEME, az as REMOTE_FETCH_HOST, aA as BOT_AVATAR_HOST, aB as PLUGIN_ASSET_HOST, aC as mediaExtension, aD as localImageUrlToPath, aE as isMediaPath, aF as isVideoPath, aG as IMAGE_EXTENSIONS$1, aH as parseCreateConversationAuthorityRequest, aI as parseConversationAuthorityRequest, aJ as parseUpdateConversationSelectionRequest, aK as parseTitleSummaryInput, aL as parseParentSourceBindingRequest, aM as parseParentModelSelectionRequest, aN as parseAgentDispatchRequest, aO as isApprovalDecision, S as STALE_SESSION_ERROR, aP as cleanToolBatchLabel, aQ as toolBatchLabelPrompt, aR as TOOL_BATCH_LABEL_SYSTEM_PROMPT, aS as SHELL_LIMITS, K as EMPTY_PLAN_STATE, aT as TITLE_SUMMARY_MAX_CANDIDATES, aU as parseCreateProjectAuthorityRequest, aV as parseSelectProjectAuthorityRequest, aW as parseRemoveProjectAuthorityRequest, aX as withVersionSegment, aY as DEFAULT_BASE_URLS, M as MODEL_API_KINDS } from "./chunks/agent-BlAuVqNp.js";
|
|
10
|
+
import { bF as isMediaId, bG as isVirtualRef, bH as findVirtualModel, a0 as takeSnapshotTail, bI as syncAccountProviders, bJ as expandOauthCatalog, bK as supportsMultipleAccounts, bL as parseCodexAuthJson, bM as CODEX_PROVIDER_ID, bN as nextAccountKey, bO as sanitizeUpstreamBody, bq as installCodexLinkedRefresh, bP as defaultCodexAuthPath, bj as ANTIGRAVITY_PROVIDER_ID, bk as antigravityProviderConfig, bl as DEVIN_PROVIDER_ID, bm as devinProviderConfig, bn as QODER_PROVIDER_ID, bo as qoderProviderConfig, bp as QODER_CN_PROVIDER_ID, as as providerIdOfAccountKey, bQ as ordinalOfAccountKey, $ as ensureAccountProvider, bR as sanitizeOauthLabel, bS as parseAntigravityApiKey, bT as fetchAntigravityUsage, bU as fetchDevinUsage, bV as DEFAULT_PERSONA_PROMPT, A as AGENT_WORKER_CRASH_FILE, bW as parseAgentWorkerCrash, aY as appendCappedLog, bX as AGENT_WORKER_EXIT_LOG, b5 as WORKSPACE_WRITE_TOOL_ID, aa as ELEVATE_TIMEOUT_MS, s as shellQuote, ab as ELEVATE_UNAVAILABLE_MARKER, a9 as ELEVATE_TIMED_OUT_MARKER, a8 as ELEVATE_DECLINED_MARKER, bY as elevatedCommandOf, br as isHeadlessRun, bZ as startOauthCallbackServer, U as mcpOAuthFingerprint, T as MCP_OAUTH_REFRESH_SKEW_MS, F as readModelsDevCache, b_ as MODELS_DEV_URL, b$ as writeModelsDevCache, c0 as parseModelsDevPayload, c1 as MODELS_DEV_CACHE_NAME, c2 as modelsDevIsFresh, H as parseModelDirectorySnapshot, c3 as withModelsDevOauthModels, a6 as ELEVATE_ASKPASS_ENV, c4 as describeAgentWorkerExit, a4 as childProfileShell, c5 as directMemberRef, c6 as materializeProviders, p as providerKeyFor, c7 as parseVirtualModels, V as VIRTUAL_PROVIDER_ID, c8 as classifierProviderFor, c9 as classifierBaseUrlFor, ca as childProfileToolIds, cb as pickModelCapabilityOverrides, cc as canBeVirtualMember, cd as mcpTimeoutsForSpawn, aV as parseJsonFromAssistant, aW as validateAgainstSchema, ay as HUMAN_REQUEST_TIMEOUT_MS, ce as withPrivacyMask, cf as withUserEntryIds, _ as projectMessage, cg as UNIT_TYPES, ch as DEDUP_MIN_CHARS, ci as DEFAULT_IMPORTANCE, cj as DEFAULT_UNIT_TYPE, ck as isEvolvesRelation, cl as DEDUP_MAX, cm as DEDUP_VECTOR, cn as CRYSTAL_MIN_SOURCES, co as DISTILL_MAX_OUTPUT_TOKENS, cp as DISTILL_MIN_IMPORTANCE, cq as DISTILL_MAX_CHUNK_CHARS, cr as DISTILL_SINGLE_EXTRACT_MAX_TOKENS, cs as DISTILL_EXTRACT_MAX_TOKENS, ct as DISTILL_CONSOLIDATE_MAX_TOKENS, cu as isUnitType, cv as DISTILL_MAX_ATTEMPTS, cw as KG_MAX_LABEL_CHARS, cx as KG_MAX_ENTITY_NAME_CHARS, cy as KG_MAX_DESCRIPTION_CHARS, cz as KG_MAX_ENTITIES, cA as KG_MAX_RELATIONS, cB as KG_EXTRACT_MAX_TOKENS, cC as KG_DEFAULT_RELATION_TYPE, cD as KG_DEFAULT_ENTITY_TYPE, cE as KG_MAX_ATTEMPTS, cF as MIN_FLOOR, cG as IMP_MULT, cH as RECENCY_W, cI as FREQUENCY_W, cJ as FREQUENCY_MAX_COUNT, cK as HALF_LIFE_DAYS, cL as RRF_K, cM as DECAY_WEIGHT, cN as TEMPORAL_YEAR_BOOST, cO as CRYSTAL_BOOST, cP as MMR_LAMBDA, cQ as parseMemorySearchRequest, cR as parseMemoryCaptureRequest, cS as parseMemoryCrystallizeRequest, cT as parseMemoryDeleteRequest, cU as SNAPSHOT_TAIL_MESSAGES, bd as splitUnattendedPrefix, cV as userTextWithoutSkills, cW as resolveSshTarget, cX as checkPassed, cY as checkFailureText, ai as SEND_IMAGE_CAPTION_MAX, cZ as parseVirtualClassifier, c_ as VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS, b0 as buildInitialTitleUserText, b2 as TITLE_SYSTEM_PROMPT, aU as buildTurnDigest, b1 as ROLLING_TITLE_SYSTEM_PROMPT, a$ as buildRollingTitleUserText, bc as titleSummaryTimeoutMs, b3 as extractTitle, b4 as titleRejectReason, ak as sendImageItems, c$ as isSecretFilePath, d0 as isUnderSecretDirectory, aH as createComputerTool, aO as ComputerInvoker, d1 as codemodeToolSnapshot, aK as createTaskTools, aF as createMemoryTools, aM as MemoryInvoker, b8 as createWebTools, aD as createBrowserTools, aB as createUnifiedSubagentTool, aL as BrowserInvoker, aQ as createAskTool, aP as AskManager, bb as createSubmitPlanTool, b9 as createTodoTool, g as estimateSkillTokens, h as estimateInstructionTokens, d2 as estimateToolsTotal, bi as createProjectSettingsManager, be as resolveHarnessSkillRoots, S as assignMcpToolNames, aJ as listWorkflowPresets, aC as workflowPresetRoots, d3 as listCustomWorkflowPresets, d4 as listBuiltinWorkflowPresets, d5 as readCustomWorkflowPreset, d6 as parseWorkflowPresetDraft, d7 as saveCustomWorkflowPreset, d8 as deleteCustomWorkflowPreset, au as createSshExecutor, d9 as isHumanRequestTimeout, da as buildSshExecArgs, db as buildRemoteCommand, bD as sshPasswordEnv, dc as listProjectCodeSources, dd as positiveFiniteNumber, Y as isXaiChatModelId, de as mergeFetchedOauthModels, K as mergeCatalogEntry, I as findCatalogModelById, J as findModelsDevModel, df as supportedProjectThinkingLevels, dg as buildSshPtyArgs, bC as resolveSshControlPath, G as version$1, dh as ENSO_HEADLESS_RUN_ENV } from "./chunks/workflowPresets-COTLnY4e.js";
|
|
11
11
|
import { readFile, rm, open, writeFile, stat, realpath, lstat, mkdir, symlink, readdir, copyFile, readlink, appendFile, rename, chmod, mkdtemp, rmdir, statfs } from "node:fs/promises";
|
|
12
12
|
import nacl from "tweetnacl";
|
|
13
13
|
import { promisify, TextDecoder as TextDecoder$1 } from "node:util";
|
|
14
14
|
import { parse as parse$2 } from "yaml";
|
|
15
|
-
import { i as isPluginId, a as isNewerPluginVersion, b as isPluginRelativePath, e as enginesAllow, M as MAX_TOOL_TIMEOUT_MS, p as parseStatusPatch, c as parseExtensionPluginManifest, m as mergeStatusItems } from "./chunks/manifest-
|
|
15
|
+
import { i as isPluginId, a as isNewerPluginVersion, b as isPluginRelativePath, e as enginesAllow, M as MAX_TOOL_TIMEOUT_MS, p as parseStatusPatch, c as parseExtensionPluginManifest, m as mergeStatusItems } from "./chunks/manifest-CojWIAHB.js";
|
|
16
16
|
import { inflateRawSync, gunzipSync, deflateRawSync, crc32, gzipSync } from "node:zlib";
|
|
17
17
|
import { stepUpScope, authorizeMcp, discoverOAuthServerInfo, refreshAuthorization, selectResource, OAuthError } from "@earendil-works/pi-mcp/oauth";
|
|
18
18
|
import { sessionEntryToContextMessages, loadSkills, DefaultPackageManager, SessionManager } from "@earendil-works/pi-coding-agent";
|
|
@@ -495,6 +495,9 @@ const IPC_CHANNELS = {
|
|
|
495
495
|
UPDATER_TAKE_INTERRUPTED_SESSIONS: "updater:takeInterruptedSessions",
|
|
496
496
|
// 网络代理
|
|
497
497
|
PROXY_APPLY: "proxy:apply",
|
|
498
|
+
// 自定义 CA 证书(NODE_EXTRA_CA_CERTS)
|
|
499
|
+
CA_CERT_STATUS: "ca-cert:status",
|
|
500
|
+
CA_CERT_APPLY: "ca-cert:apply",
|
|
498
501
|
// userData/user.css:读取、首次写模板并用系统程序打开、文件变化广播
|
|
499
502
|
APPEARANCE_USER_CSS_GET: "appearance:user-css:get",
|
|
500
503
|
APPEARANCE_USER_CSS_OPEN: "appearance:user-css:open",
|
|
@@ -2709,6 +2712,8 @@ class AgentDispatchService {
|
|
|
2709
2712
|
...typeof persisted.approvalMode === "string" ? { approvalMode: persisted.approvalMode } : {},
|
|
2710
2713
|
...persisted.autoRejectApprovals === true ? { autoRejectApprovals: true } : {}
|
|
2711
2714
|
};
|
|
2715
|
+
if (this.options.sessionIndex.isCurrent(parent))
|
|
2716
|
+
this.options.sessionIndex.prepareParent(parent);
|
|
2712
2717
|
const spawned = this.options.host.spawnParent(parent, request2, credentialKeys);
|
|
2713
2718
|
if (!spawned.ok) throw new Error(spawned.error ?? "Failed to spawn parent container.");
|
|
2714
2719
|
const ready = await this.waitForParent(parent);
|
|
@@ -3383,6 +3388,18 @@ const zhTranslations = {
|
|
|
3383
3388
|
"Custom proxy": "自定义代理",
|
|
3384
3389
|
"Proxy URL": "代理地址",
|
|
3385
3390
|
"Enter an http(s) proxy URL": "请输入 http(s) 代理地址",
|
|
3391
|
+
"Custom CA certificate": "自定义 CA 证书",
|
|
3392
|
+
"Trust an extra CA (PEM file) for model endpoints signed by a private CA. TLS verification stays on.": "为私有 CA 签发的模型接口额外信任一个 CA(PEM 文件),TLS 校验保持开启。",
|
|
3393
|
+
"Choose certificate file": "选择证书文件",
|
|
3394
|
+
"Set: {{path}}": "已设置:{{path}}",
|
|
3395
|
+
"Using NODE_EXTRA_CA_CERTS from the launch environment: {{path}}": "已使用启动环境中的 NODE_EXTRA_CA_CERTS(优先于此设置):{{path}}",
|
|
3396
|
+
"Not set; using NODE_EXTRA_CA_CERTS from the login shell: {{path}}": "未设置,使用登录 shell 中的 NODE_EXTRA_CA_CERTS:{{path}}",
|
|
3397
|
+
"Certificate file unavailable ({{reason}}): {{path}}": "证书文件不可用({{reason}}):{{path}}",
|
|
3398
|
+
"Path must be absolute": "须为绝对路径",
|
|
3399
|
+
"File not found": "文件不存在",
|
|
3400
|
+
"Not a file": "不是文件",
|
|
3401
|
+
"File is not readable": "文件不可读",
|
|
3402
|
+
"Changes restart the agent process right away (running turns are interrupted). Requests made by the app main process take effect after restarting the app.": "修改后会立即重启 Agent 进程(进行中的回合会中断);主进程侧需重启应用生效。",
|
|
3386
3403
|
Shortcuts: "快捷键",
|
|
3387
3404
|
"Click a shortcut to rebind it. Backspace removes it; Esc cancels.": "点击键位改绑。Backspace 删除;Esc 取消。",
|
|
3388
3405
|
"Remove shortcut": "删除快捷键",
|
|
@@ -3640,6 +3657,10 @@ const zhTranslations = {
|
|
|
3640
3657
|
"Seconds to wait after tools and thinking finish": "工具和思考都结束后再等这么多秒",
|
|
3641
3658
|
sec: "秒",
|
|
3642
3659
|
"Pin unfinished todos": "固定显示未完成待办",
|
|
3660
|
+
"Show active sessions in the title bar": "在顶栏显示活跃会话",
|
|
3661
|
+
"Show active conversations as tabs above the conversation. Hold ⌘/Ctrl to see number shortcuts. Hidden while Bot mode is enabled.": "在对话区上方以标签显示活跃中的会话,按住 ⌘/Ctrl 显示数字快捷键。开启 Bot 模式时不显示。",
|
|
3662
|
+
"Also show recent conversations": "同时显示最近会话",
|
|
3663
|
+
"Conversations with messages within this window. Off shows only Active ones.": "这段时间内有过消息的会话;关闭则只显示活跃中的会话。",
|
|
3643
3664
|
"Turn marks": "轮次刻度",
|
|
3644
3665
|
"Marks along the conversation for each turn. Hover to preview, click to jump. Hidden when the chat uses the full width.": "对话旁边的轮次刻度。悬停预览,点击跳转。聊天铺满宽度时不显示。",
|
|
3645
3666
|
Left: "左",
|
|
@@ -4147,6 +4168,10 @@ const zhTranslations = {
|
|
|
4147
4168
|
"Fit to original size": "适应初始大小",
|
|
4148
4169
|
"View fullscreen": "全屏查看",
|
|
4149
4170
|
"Exit fullscreen": "退出全屏",
|
|
4171
|
+
"Export SVG": "导出 SVG",
|
|
4172
|
+
"Export PNG": "导出 PNG",
|
|
4173
|
+
"Diagram is too large for PNG, exported SVG instead": "图太大,无法导出 PNG,已改为导出 SVG",
|
|
4174
|
+
"PNG export failed, exported SVG instead": "PNG 导出失败,已改为导出 SVG",
|
|
4150
4175
|
Projects: "项目",
|
|
4151
4176
|
All: "全部",
|
|
4152
4177
|
Ungrouped: "未分组",
|
|
@@ -4284,7 +4309,8 @@ const zhTranslations = {
|
|
|
4284
4309
|
"Password (leave blank to keep)": "密码(留空则保持原密码)",
|
|
4285
4310
|
"Failed to add project": "添加项目失败",
|
|
4286
4311
|
"Failed to add project.": "添加项目失败。",
|
|
4287
|
-
"
|
|
4312
|
+
"New project": "新建项目",
|
|
4313
|
+
"Reference in chat": "引用到对话",
|
|
4288
4314
|
"Only folders can be added as projects": "只能将文件夹添加为项目",
|
|
4289
4315
|
"Only the first {{count}} folders were added": "一次最多添加 {{count}} 个文件夹",
|
|
4290
4316
|
"Could not read the path of the dropped folder": "无法读取拖入文件夹的路径",
|
|
@@ -8421,7 +8447,7 @@ function getRuntime() {
|
|
|
8421
8447
|
runtime.registerProvider(DEVIN_PROVIDER_ID, devinProviderConfig());
|
|
8422
8448
|
runtime.registerProvider(QODER_PROVIDER_ID, qoderProviderConfig("global"));
|
|
8423
8449
|
runtime.registerProvider(QODER_CN_PROVIDER_ID, qoderProviderConfig("cn"));
|
|
8424
|
-
const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-
|
|
8450
|
+
const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-1NxA7GHt.js").then((n) => n.d);
|
|
8425
8451
|
onlineCatalogProviderIds.add(CURSOR_PROVIDER_ID);
|
|
8426
8452
|
await loadCursorProvider(runtime);
|
|
8427
8453
|
installCodexLinkedRefresh(runtime);
|
|
@@ -9548,6 +9574,7 @@ const SETTINGS_STATE_FIELDS = [
|
|
|
9548
9574
|
"pluginAutoUpdate",
|
|
9549
9575
|
"proxyMode",
|
|
9550
9576
|
"customProxyUrl",
|
|
9577
|
+
"customCaCertPath",
|
|
9551
9578
|
"openChangesOnFileEdit",
|
|
9552
9579
|
"fileOpenRules",
|
|
9553
9580
|
"contextMenuOpen",
|
|
@@ -9560,6 +9587,8 @@ const SETTINGS_STATE_FIELDS = [
|
|
|
9560
9587
|
"liveActivityFoldDelaySec",
|
|
9561
9588
|
"pinUnfinishedTodos",
|
|
9562
9589
|
"pinnedModels",
|
|
9590
|
+
"headerSessionTabs",
|
|
9591
|
+
"headerRecentMinutes",
|
|
9563
9592
|
"chatWide",
|
|
9564
9593
|
"navRailSide",
|
|
9565
9594
|
"chatTypography",
|
|
@@ -9670,6 +9699,7 @@ const CONFIG_SYNC_EXCLUDED_STATE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
9670
9699
|
"pluginAutoUpdate",
|
|
9671
9700
|
"proxyMode",
|
|
9672
9701
|
"customProxyUrl",
|
|
9702
|
+
"customCaCertPath",
|
|
9673
9703
|
"sshTimeoutSeconds",
|
|
9674
9704
|
"backgroundImageEnabled",
|
|
9675
9705
|
"backgroundSourceType",
|
|
@@ -9701,6 +9731,8 @@ const CONFIG_SYNC_EXCLUDED_STATE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
9701
9731
|
"voiceVocabulary",
|
|
9702
9732
|
"voiceGeminiApiKey",
|
|
9703
9733
|
"onboarded",
|
|
9734
|
+
"headerSessionTabs",
|
|
9735
|
+
"headerRecentMinutes",
|
|
9704
9736
|
"plugins",
|
|
9705
9737
|
"projects",
|
|
9706
9738
|
"projectGroups",
|
|
@@ -11066,6 +11098,10 @@ class PluginProcess {
|
|
|
11066
11098
|
this.closed = true;
|
|
11067
11099
|
this.beginStop();
|
|
11068
11100
|
}
|
|
11101
|
+
/** 只推给活着的进程;不拉起、不影响空闲计时 */
|
|
11102
|
+
notifyTurnEnd(sessionId) {
|
|
11103
|
+
if (this.child && !this.stopping) this.post({ t: "session-turn-end", sessionId });
|
|
11104
|
+
}
|
|
11069
11105
|
/** 先发 shutdown,最多等 3 秒再 kill;再过 5 秒仍无 exit 则 SIGKILL 并结束等待 */
|
|
11070
11106
|
beginStop() {
|
|
11071
11107
|
this.clearIdle();
|
|
@@ -12133,6 +12169,36 @@ class PluginHostGate {
|
|
|
12133
12169
|
invocations;
|
|
12134
12170
|
injects = /* @__PURE__ */ new Map();
|
|
12135
12171
|
viewEvents = /* @__PURE__ */ new Map();
|
|
12172
|
+
/** 插件被调用或注入过的主会话(新的在后);常驻进程没有发起会话,回合结束按它们判定同项目 */
|
|
12173
|
+
anchors = /* @__PURE__ */ new Map();
|
|
12174
|
+
noteSession(pluginId, sessionId) {
|
|
12175
|
+
const root = sessionId.split("::")[0];
|
|
12176
|
+
const list2 = (this.anchors.get(pluginId) ?? []).filter((id) => id !== root);
|
|
12177
|
+
list2.push(root);
|
|
12178
|
+
this.anchors.set(pluginId, list2.slice(-32));
|
|
12179
|
+
}
|
|
12180
|
+
forgetSession(sessionId) {
|
|
12181
|
+
for (const [pluginId, list2] of this.anchors) {
|
|
12182
|
+
const next = list2.filter((id) => id !== sessionId);
|
|
12183
|
+
if (next.length > 0) this.anchors.set(pluginId, next);
|
|
12184
|
+
else this.anchors.delete(pluginId);
|
|
12185
|
+
}
|
|
12186
|
+
}
|
|
12187
|
+
forgetPlugin(pluginId) {
|
|
12188
|
+
this.anchors.delete(pluginId);
|
|
12189
|
+
}
|
|
12190
|
+
/** 回合结束推送的可见性:readAll 看所有项目;session.read 只看与插件用过的会话同项目的 */
|
|
12191
|
+
canSeeSession(pluginId, sessionId) {
|
|
12192
|
+
const manifest = this.deps.manifest(pluginId);
|
|
12193
|
+
const sessions2 = this.deps.sessions;
|
|
12194
|
+
if (!manifest || !sessions2) return false;
|
|
12195
|
+
if (manifest.permissions.includes("session.readAll") && (sessions2.listAll?.() ?? []).some((s) => s.id === sessionId))
|
|
12196
|
+
return true;
|
|
12197
|
+
if (!manifest.permissions.includes("session.read")) return false;
|
|
12198
|
+
return (this.anchors.get(pluginId) ?? []).some(
|
|
12199
|
+
(anchor) => anchor === sessionId || sessions2.list(anchor).some((s) => s.id === sessionId)
|
|
12200
|
+
);
|
|
12201
|
+
}
|
|
12136
12202
|
/** 每个插件 10 秒内最多注入 5 条,防止失控的常驻插件撑爆会话上下文 */
|
|
12137
12203
|
admitInject(pluginId) {
|
|
12138
12204
|
const now = this.deps.now();
|
|
@@ -12380,6 +12446,7 @@ class PluginHostGate {
|
|
|
12380
12446
|
}
|
|
12381
12447
|
}
|
|
12382
12448
|
if (!result.ok) throw pluginError("INJECT_FAILED", result.error);
|
|
12449
|
+
this.noteSession(pluginId, sessionId);
|
|
12383
12450
|
return null;
|
|
12384
12451
|
}
|
|
12385
12452
|
case "session.abort": {
|
|
@@ -12485,6 +12552,10 @@ class PluginHostGate {
|
|
|
12485
12552
|
if (!visible) throw pluginError("NOT_FOUND", "没有这个会话");
|
|
12486
12553
|
return sessions2.status(target);
|
|
12487
12554
|
}
|
|
12555
|
+
case "session.watchTurnEnd":
|
|
12556
|
+
permitRead();
|
|
12557
|
+
if (typeof a.on !== "boolean") throw pluginError("INVALID_ARGS", "on 必须是布尔值");
|
|
12558
|
+
return a.on;
|
|
12488
12559
|
case "session.focus": {
|
|
12489
12560
|
permit("session.focus");
|
|
12490
12561
|
const inv = gestured("切换会话");
|
|
@@ -13600,6 +13671,8 @@ class ExtensionPluginService {
|
|
|
13600
13671
|
idTails = /* @__PURE__ */ new Map();
|
|
13601
13672
|
observeLanes = /* @__PURE__ */ new Map();
|
|
13602
13673
|
processes = /* @__PURE__ */ new Map();
|
|
13674
|
+
/** 调过 session.watchTurnEnd 的进程;按进程实例记,换了进程就不再投递 */
|
|
13675
|
+
turnEndWatchers = /* @__PURE__ */ new Map();
|
|
13603
13676
|
staged = /* @__PURE__ */ new Map();
|
|
13604
13677
|
crashes = /* @__PURE__ */ new Map();
|
|
13605
13678
|
/** 进程内最近一条错误日志;崩溃停用时写进登记 */
|
|
@@ -13929,8 +14002,10 @@ class ExtensionPluginService {
|
|
|
13929
14002
|
}
|
|
13930
14003
|
async setEnabled(id, enabled2) {
|
|
13931
14004
|
return this.withIdLock(id, async () => {
|
|
13932
|
-
if (!enabled2)
|
|
13933
|
-
|
|
14005
|
+
if (!enabled2) {
|
|
14006
|
+
this.stopProcess(id);
|
|
14007
|
+
this.gate.forgetPlugin(id);
|
|
14008
|
+
} else {
|
|
13934
14009
|
this.recentErrors.delete(id);
|
|
13935
14010
|
this.prepareFailed.delete(id);
|
|
13936
14011
|
}
|
|
@@ -14045,6 +14120,7 @@ class ExtensionPluginService {
|
|
|
14045
14120
|
this.records = this.records.filter((r) => r.id !== id);
|
|
14046
14121
|
this.persist();
|
|
14047
14122
|
this.stopProcess(id);
|
|
14123
|
+
this.gate.forgetPlugin(id);
|
|
14048
14124
|
this.removeLocalFiles(id);
|
|
14049
14125
|
await this.logger.discard(id);
|
|
14050
14126
|
rmSync(this.logPath(id), { force: true });
|
|
@@ -14540,6 +14616,17 @@ class ExtensionPluginService {
|
|
|
14540
14616
|
targets.filter((entry) => this.canDeliverObserve(entry.id)).map((entry) => send2(entry.id))
|
|
14541
14617
|
);
|
|
14542
14618
|
}
|
|
14619
|
+
/** 主会话一轮结束;只推给订阅了且看得见这个会话的进程 */
|
|
14620
|
+
notifyTurnEnd(sessionId) {
|
|
14621
|
+
for (const [id, proc] of this.turnEndWatchers) {
|
|
14622
|
+
if (this.processes.get(id) !== proc || !this.gate.canSeeSession(id, sessionId)) continue;
|
|
14623
|
+
proc.notifyTurnEnd(sessionId);
|
|
14624
|
+
}
|
|
14625
|
+
}
|
|
14626
|
+
/** 会话删除:插件不再据它判定可见范围 */
|
|
14627
|
+
forgetSession(sessionId) {
|
|
14628
|
+
this.gate.forgetSession(sessionId);
|
|
14629
|
+
}
|
|
14543
14630
|
async intercept(input) {
|
|
14544
14631
|
const initial = initialInterceptState(input.event, input.payload);
|
|
14545
14632
|
const child = input.agent !== void 0;
|
|
@@ -14903,6 +14990,7 @@ class ExtensionPluginService {
|
|
|
14903
14990
|
if (signal?.aborted) throw pluginError("ABORTED", "调用已取消");
|
|
14904
14991
|
const proc = this.processFor(pluginId);
|
|
14905
14992
|
const spawn2 = proc.ready();
|
|
14993
|
+
if (ctx.sessionId) this.gate.noteSession(pluginId, ctx.sessionId);
|
|
14906
14994
|
const invocationId = this.gate.invocations.create({
|
|
14907
14995
|
pluginId,
|
|
14908
14996
|
sessionId: ctx.sessionId,
|
|
@@ -14972,9 +15060,18 @@ class ExtensionPluginService {
|
|
|
14972
15060
|
main: manifest.main ?? "",
|
|
14973
15061
|
dataDir: dataDir2
|
|
14974
15062
|
},
|
|
14975
|
-
handleHostCall: (api, args, invocationId) =>
|
|
15063
|
+
handleHostCall: async (api, args, invocationId) => {
|
|
15064
|
+
const value = await this.gate.handle(manifest.id, api, args, invocationId);
|
|
15065
|
+
if (api !== "session.watchTurnEnd") return value;
|
|
15066
|
+
if (value === true) this.turnEndWatchers.set(manifest.id, proc);
|
|
15067
|
+
else if (this.turnEndWatchers.get(manifest.id) === proc)
|
|
15068
|
+
this.turnEndWatchers.delete(manifest.id);
|
|
15069
|
+
return null;
|
|
15070
|
+
},
|
|
14976
15071
|
onExit: ({ unexpected }) => {
|
|
14977
15072
|
if (unexpected) this.appendLog(manifest.id, "warn", "插件进程意外退出");
|
|
15073
|
+
if (this.turnEndWatchers.get(manifest.id) === proc)
|
|
15074
|
+
this.turnEndWatchers.delete(manifest.id);
|
|
14978
15075
|
if (this.processes.get(manifest.id) === proc && this.dynamic.clear(manifest.id))
|
|
14979
15076
|
this.touch();
|
|
14980
15077
|
onExit(unexpected);
|
|
@@ -15024,6 +15121,7 @@ class ExtensionPluginService {
|
|
|
15024
15121
|
this.gate.invocations.cancelPlugin(id);
|
|
15025
15122
|
this.processes.get(id)?.stop();
|
|
15026
15123
|
this.processes.delete(id);
|
|
15124
|
+
this.turnEndWatchers.delete(id);
|
|
15027
15125
|
if (this.dynamic.clear(id)) this.touch();
|
|
15028
15126
|
}
|
|
15029
15127
|
/** 从表里拿掉后一直等到进程退出。stop 只是开始优雅退出,最长约 3 秒。 */
|
|
@@ -15577,7 +15675,8 @@ const ENV_ALLOWLIST = [
|
|
|
15577
15675
|
"http_proxy",
|
|
15578
15676
|
"https_proxy",
|
|
15579
15677
|
"all_proxy",
|
|
15580
|
-
"no_proxy"
|
|
15678
|
+
"no_proxy",
|
|
15679
|
+
"NODE_EXTRA_CA_CERTS"
|
|
15581
15680
|
];
|
|
15582
15681
|
function pluginHostEnv(source) {
|
|
15583
15682
|
const env = {};
|
|
@@ -15595,6 +15694,9 @@ function setPluginMcpBridge(bridge) {
|
|
|
15595
15694
|
mcpBridge = bridge;
|
|
15596
15695
|
}
|
|
15597
15696
|
const noMcp = () => Promise.reject(pluginError("UNSUPPORTED", "当前环境无法调用 MCP"));
|
|
15697
|
+
function peekExtensionPlugins() {
|
|
15698
|
+
return service$2;
|
|
15699
|
+
}
|
|
15598
15700
|
function getExtensionPlugins() {
|
|
15599
15701
|
if (service$2) return service$2;
|
|
15600
15702
|
const capabilities = pluginHostCapabilities({
|
|
@@ -17282,6 +17384,14 @@ function stopAgentWorker() {
|
|
|
17282
17384
|
function agentWorkerAlive() {
|
|
17283
17385
|
return worker !== null;
|
|
17284
17386
|
}
|
|
17387
|
+
async function restartAgentWorker(timeoutMs = 5e3) {
|
|
17388
|
+
const child = worker;
|
|
17389
|
+
if (!child) return false;
|
|
17390
|
+
await killAndWaitExit(child, timeoutMs);
|
|
17391
|
+
if (worker === child) stopAgentWorker();
|
|
17392
|
+
if (!worker) startAgentWorker();
|
|
17393
|
+
return true;
|
|
17394
|
+
}
|
|
17285
17395
|
function stopAgentWorkerForQuit(timeoutMs) {
|
|
17286
17396
|
const child = worker;
|
|
17287
17397
|
if (!child) return Promise.resolve();
|
|
@@ -18821,6 +18931,7 @@ const agentHost = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
18821
18931
|
resolveWebSearchConfig,
|
|
18822
18932
|
respondApproval,
|
|
18823
18933
|
respondAsk,
|
|
18934
|
+
restartAgentWorker,
|
|
18824
18935
|
resumeCoworkerSession,
|
|
18825
18936
|
retrySession,
|
|
18826
18937
|
rewindSession,
|
|
@@ -20663,7 +20774,7 @@ async function loadLlama() {
|
|
|
20663
20774
|
llamaPromise ??= (async () => {
|
|
20664
20775
|
let backendError;
|
|
20665
20776
|
try {
|
|
20666
|
-
const { ensureGpuBackend } = await import("./chunks/gpuBackendInstall-
|
|
20777
|
+
const { ensureGpuBackend } = await import("./chunks/gpuBackendInstall-C0fP_8jk.js");
|
|
20667
20778
|
await ensureGpuBackend().catch((err) => {
|
|
20668
20779
|
backendError = err;
|
|
20669
20780
|
console.warn("[llama] GPU backend unavailable, using CPU:", err);
|
|
@@ -21194,6 +21305,10 @@ const rootOf$1 = (sessionId) => {
|
|
|
21194
21305
|
const sep2 = sessionId.indexOf("::");
|
|
21195
21306
|
return sep2 === -1 ? sessionId : sessionId.slice(0, sep2);
|
|
21196
21307
|
};
|
|
21308
|
+
function turnEndSessionId(event) {
|
|
21309
|
+
if (event.type !== "turn-completed" && event.type !== "turn-failed") return null;
|
|
21310
|
+
return "parent" in event.identity ? null : event.identity.sessionId;
|
|
21311
|
+
}
|
|
21197
21312
|
class SessionStateTracker {
|
|
21198
21313
|
nodes = /* @__PURE__ */ new Map();
|
|
21199
21314
|
reported = /* @__PURE__ */ new Map();
|
|
@@ -25685,7 +25800,7 @@ async function readSessionTranscript(sessionFile) {
|
|
|
25685
25800
|
const resolved = path.resolve(sessionFile);
|
|
25686
25801
|
if (!resolved.startsWith(`${root}${path.sep}`)) return [];
|
|
25687
25802
|
const [{ SessionManager: SessionManager2, sessionEntryToContextMessages: sessionEntryToContextMessages2 }, { projectMessage: projectMessage2 }] = await Promise.all(
|
|
25688
|
-
[import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-
|
|
25803
|
+
[import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-COTLnY4e.js").then((n) => n.di)]
|
|
25689
25804
|
);
|
|
25690
25805
|
const branch = SessionManager2.open(resolved, sessionDir2).getBranch();
|
|
25691
25806
|
const out = [];
|
|
@@ -25910,10 +26025,7 @@ function scheduleReembed() {
|
|
|
25910
26025
|
const prev = reembedRun ?? Promise.resolve();
|
|
25911
26026
|
reembedRun = prev.then(async () => {
|
|
25912
26027
|
if (ac.signal.aborted) return;
|
|
25913
|
-
if (!db)
|
|
25914
|
-
lastEmbeddingError = "memory database is not open yet";
|
|
25915
|
-
return;
|
|
25916
|
-
}
|
|
26028
|
+
if (!db) return;
|
|
25917
26029
|
const e = await memoryEmbedder();
|
|
25918
26030
|
if (!e || ac.signal.aborted || !db) return;
|
|
25919
26031
|
const job = await runReembedJob(db, e, { signal: ac.signal });
|
|
@@ -30837,6 +30949,14 @@ function planPairResume(input) {
|
|
|
30837
30949
|
}
|
|
30838
30950
|
};
|
|
30839
30951
|
}
|
|
30952
|
+
function projectNameFromPath(path2) {
|
|
30953
|
+
return path2.split(/[\\/]/).filter(Boolean).pop() ?? path2;
|
|
30954
|
+
}
|
|
30955
|
+
function projectDisplayName(project) {
|
|
30956
|
+
const alias = project.alias?.trim();
|
|
30957
|
+
if (alias) return alias;
|
|
30958
|
+
return project.name === project.path ? projectNameFromPath(project.path) : project.name;
|
|
30959
|
+
}
|
|
30840
30960
|
const MAX_STALL_RETRIES = 3;
|
|
30841
30961
|
function shouldAbortStalledGeneration(input) {
|
|
30842
30962
|
if (input.timeoutMs <= 0 || input.spawning || input.status !== "running") return false;
|
|
@@ -31143,7 +31263,8 @@ function adoptPairSessionHeadless(session2) {
|
|
|
31143
31263
|
state.order = [session2.sessionId, ...state.order.filter((id) => id !== session2.sessionId)];
|
|
31144
31264
|
});
|
|
31145
31265
|
agent$1?.createAuthority(session2.sessionId, session2.projectId);
|
|
31146
|
-
const
|
|
31266
|
+
const pairProject = getPairProjects().find((project) => project.id === session2.projectId);
|
|
31267
|
+
const projectName = pairProject ? projectDisplayName(pairProject) : "";
|
|
31147
31268
|
mutatePairCatalog(
|
|
31148
31269
|
(catalog2) => upsertCatalogEntry(
|
|
31149
31270
|
catalog2,
|
|
@@ -33240,7 +33361,7 @@ function leaf(value) {
|
|
|
33240
33361
|
return parts[parts.length - 1] ?? "";
|
|
33241
33362
|
}
|
|
33242
33363
|
function projectLabel(project) {
|
|
33243
|
-
return project
|
|
33364
|
+
return projectDisplayName(project) || leaf(project.path);
|
|
33244
33365
|
}
|
|
33245
33366
|
function buildUsageProjectAliases(input = {}) {
|
|
33246
33367
|
const byCwd = /* @__PURE__ */ new Map();
|
|
@@ -33325,7 +33446,8 @@ function readSettingsProjects() {
|
|
|
33325
33446
|
out.push({
|
|
33326
33447
|
id: project.id,
|
|
33327
33448
|
name: typeof project.name === "string" ? project.name : "",
|
|
33328
|
-
path: project.path
|
|
33449
|
+
path: project.path,
|
|
33450
|
+
...typeof project.alias === "string" ? { alias: project.alias } : {}
|
|
33329
33451
|
});
|
|
33330
33452
|
}
|
|
33331
33453
|
return out;
|
|
@@ -46016,7 +46138,10 @@ class AgentSessionIndex {
|
|
|
46016
46138
|
}
|
|
46017
46139
|
prepareParent(identity) {
|
|
46018
46140
|
const current2 = this.sessions.get(identity.sessionId);
|
|
46019
|
-
if (current2 && isSameGeneration(current2.identity, identity))
|
|
46141
|
+
if (current2 && isSameGeneration(current2.identity, identity)) {
|
|
46142
|
+
current2.detached = false;
|
|
46143
|
+
return;
|
|
46144
|
+
}
|
|
46020
46145
|
this.releaseParentReservations(identity.sessionId);
|
|
46021
46146
|
this.sessions.set(identity.sessionId, {
|
|
46022
46147
|
identity,
|
|
@@ -46079,6 +46204,11 @@ class AgentSessionIndex {
|
|
|
46079
46204
|
const current2 = this.sessions.get(identity.sessionId);
|
|
46080
46205
|
return Boolean(current2?.ready && current2.alive && isSameGeneration(current2.identity, identity));
|
|
46081
46206
|
}
|
|
46207
|
+
/** 同代会话已从 worker 释放且尚未重新 spawn:prompt/steer 发过去只会被当作过期代次拒绝 */
|
|
46208
|
+
isDetached(identity) {
|
|
46209
|
+
const current2 = this.sessions.get(identity.sessionId);
|
|
46210
|
+
return Boolean(current2?.detached && isSameGeneration(current2.identity, identity));
|
|
46211
|
+
}
|
|
46082
46212
|
childProof(identity) {
|
|
46083
46213
|
const current2 = this.sessions.get(identity.sessionId);
|
|
46084
46214
|
return current2 && isSameGeneration(current2.identity, identity) ? current2.proof : void 0;
|
|
@@ -46208,6 +46338,7 @@ class AgentSessionIndex {
|
|
|
46208
46338
|
for (const session2 of this.sessions.values()) {
|
|
46209
46339
|
session2.alive = false;
|
|
46210
46340
|
session2.ready = false;
|
|
46341
|
+
session2.detached = true;
|
|
46211
46342
|
session2.lastSeq = -1;
|
|
46212
46343
|
}
|
|
46213
46344
|
this.reservations.clear();
|
|
@@ -46251,6 +46382,7 @@ class AgentSessionIndex {
|
|
|
46251
46382
|
parent.started = true;
|
|
46252
46383
|
parent.ready = true;
|
|
46253
46384
|
parent.alive = true;
|
|
46385
|
+
parent.detached = false;
|
|
46254
46386
|
parent.sessionFile = event.sessionFile;
|
|
46255
46387
|
parent.model = event.model;
|
|
46256
46388
|
return true;
|
|
@@ -46265,6 +46397,7 @@ class AgentSessionIndex {
|
|
|
46265
46397
|
if (!current2) return false;
|
|
46266
46398
|
current2.ready = false;
|
|
46267
46399
|
current2.alive = false;
|
|
46400
|
+
current2.detached = true;
|
|
46268
46401
|
current2.status = "failed";
|
|
46269
46402
|
current2.lastSeq = -1;
|
|
46270
46403
|
this.releaseParentReservations(identity.sessionId);
|
|
@@ -49506,6 +49639,13 @@ function broadcastAgentEvent(event) {
|
|
|
49506
49639
|
forwardAgentEvent(event);
|
|
49507
49640
|
handlePairHeadlessAgentEvent(event);
|
|
49508
49641
|
publishPluginSessionStatus(event);
|
|
49642
|
+
publishPluginTurnEnd(event);
|
|
49643
|
+
}
|
|
49644
|
+
function publishPluginTurnEnd(event) {
|
|
49645
|
+
const sessionId = turnEndSessionId(event);
|
|
49646
|
+
if (!sessionId) return;
|
|
49647
|
+
if (sourceAuthority?.conversation(sessionId)?.bot) return;
|
|
49648
|
+
peekExtensionPlugins()?.notifyTurnEnd(sessionId);
|
|
49509
49649
|
}
|
|
49510
49650
|
function publishPluginSessionStatus(event) {
|
|
49511
49651
|
for (const change of pluginSessionStates.observe(event)) {
|
|
@@ -49538,6 +49678,7 @@ const subagentProgressPush = new SubagentProgressPush((sessionId, runs) => {
|
|
|
49538
49678
|
function exactIdentity(sessionId) {
|
|
49539
49679
|
return isNonEmptyString$4(sessionId) ? agentSessionIndex.currentIdentity(sessionId) : void 0;
|
|
49540
49680
|
}
|
|
49681
|
+
const DETACHED_SESSION_ERROR = "会话已从后台释放(闲置回收或重启),请重新发送以恢复会话";
|
|
49541
49682
|
function rootIdentity(sessionId) {
|
|
49542
49683
|
const identity = exactIdentity(sessionId);
|
|
49543
49684
|
return identity && !("parent" in identity) ? identity : void 0;
|
|
@@ -49575,6 +49716,7 @@ function preparePluginsForSpawn() {
|
|
|
49575
49716
|
}
|
|
49576
49717
|
function removeConversationFiles(conversation) {
|
|
49577
49718
|
const project = sourceAuthority?.project(conversation.projectId);
|
|
49719
|
+
peekExtensionPlugins()?.forgetSession(conversation.conversationId);
|
|
49578
49720
|
removeConversationSessionFiles({
|
|
49579
49721
|
sessionDir: path.join(app.getPath("userData"), "agent", "sessions"),
|
|
49580
49722
|
conversationId: conversation.conversationId,
|
|
@@ -50452,6 +50594,16 @@ function registerAgentHandlers() {
|
|
|
50452
50594
|
);
|
|
50453
50595
|
sourceBindings?.invalidateBindingsForConversation(workerEvent.identity.sessionId);
|
|
50454
50596
|
}
|
|
50597
|
+
if (workerEvent.type === "parent-rejected" && !workerEvent.reason.startsWith(STALE_SESSION_ERROR)) {
|
|
50598
|
+
const selection = sourceAuthority?.conversation(workerEvent.identity.sessionId)?.selection;
|
|
50599
|
+
console.warn("[agent] spawn rejected", {
|
|
50600
|
+
sessionId: workerEvent.identity.sessionId,
|
|
50601
|
+
generation: workerEvent.identity.generation,
|
|
50602
|
+
providerId: selection?.providerId,
|
|
50603
|
+
modelId: selection?.modelId,
|
|
50604
|
+
reason: workerEvent.reason
|
|
50605
|
+
});
|
|
50606
|
+
}
|
|
50455
50607
|
if (workerEvent.type === "fork-done") {
|
|
50456
50608
|
const pending2 = pendingWorktreeForks.get(workerEvent.targetConversationId);
|
|
50457
50609
|
if (!pending2 || pending2.identity.sessionId !== workerEvent.identity.sessionId || pending2.identity.generation !== workerEvent.identity.generation)
|
|
@@ -51006,6 +51158,8 @@ function registerAgentHandlers() {
|
|
|
51006
51158
|
if (!identity || !isValidMessageInput(sessionId, text2, images) || deliveryId !== void 0 && !isDeliveryId(deliveryId)) {
|
|
51007
51159
|
return { ok: false, error: "invalid prompt or stale session generation" };
|
|
51008
51160
|
}
|
|
51161
|
+
if (agentSessionIndex.isDetached(identity))
|
|
51162
|
+
return { ok: false, error: DETACHED_SESSION_ERROR };
|
|
51009
51163
|
return promptSession(
|
|
51010
51164
|
identity,
|
|
51011
51165
|
text2,
|
|
@@ -51023,6 +51177,8 @@ function registerAgentHandlers() {
|
|
|
51023
51177
|
if (!identity || !isValidMessageInput(sessionId, text2, images) || deliveryId !== void 0 && !isDeliveryId(deliveryId)) {
|
|
51024
51178
|
return { ok: false, error: "invalid steer or stale session generation" };
|
|
51025
51179
|
}
|
|
51180
|
+
if (agentSessionIndex.isDetached(identity))
|
|
51181
|
+
return { ok: false, error: DETACHED_SESSION_ERROR };
|
|
51026
51182
|
return steerSession(
|
|
51027
51183
|
identity,
|
|
51028
51184
|
text2,
|
|
@@ -52900,6 +53056,102 @@ function registerBtwHandlers() {
|
|
|
52900
53056
|
return { ok: true };
|
|
52901
53057
|
});
|
|
52902
53058
|
}
|
|
53059
|
+
const CA_CERT_ENV = "NODE_EXTRA_CA_CERTS";
|
|
53060
|
+
function checkCaCertFile(path2) {
|
|
53061
|
+
if (!isAbsolute(path2)) return "not-absolute";
|
|
53062
|
+
try {
|
|
53063
|
+
if (!statSync(path2).isFile()) return "not-file";
|
|
53064
|
+
} catch {
|
|
53065
|
+
return "not-found";
|
|
53066
|
+
}
|
|
53067
|
+
try {
|
|
53068
|
+
accessSync(path2, constants$2.R_OK);
|
|
53069
|
+
return null;
|
|
53070
|
+
} catch {
|
|
53071
|
+
return "not-readable";
|
|
53072
|
+
}
|
|
53073
|
+
}
|
|
53074
|
+
function resolveExtraCaCert(input) {
|
|
53075
|
+
const check = input.check ?? checkCaCertFile;
|
|
53076
|
+
const settingPath = input.setting.trim();
|
|
53077
|
+
const inherited = input.inherited?.trim();
|
|
53078
|
+
if (inherited) return { source: "env", path: inherited, settingPath };
|
|
53079
|
+
if (settingPath) {
|
|
53080
|
+
const error = check(settingPath);
|
|
53081
|
+
return error ? { source: "none", path: "", settingPath, error } : { source: "setting", path: settingPath, settingPath };
|
|
53082
|
+
}
|
|
53083
|
+
const shell2 = input.shell?.trim();
|
|
53084
|
+
if (shell2 && !check(shell2)) return { source: "shell", path: shell2, settingPath };
|
|
53085
|
+
return { source: "none", path: "", settingPath };
|
|
53086
|
+
}
|
|
53087
|
+
class CaCertConfig {
|
|
53088
|
+
constructor(env, restartWorker, check = checkCaCertFile) {
|
|
53089
|
+
this.env = env;
|
|
53090
|
+
this.restartWorker = restartWorker;
|
|
53091
|
+
this.check = check;
|
|
53092
|
+
this.inherited = env[CA_CERT_ENV];
|
|
53093
|
+
this.current = this.resolve();
|
|
53094
|
+
}
|
|
53095
|
+
env;
|
|
53096
|
+
restartWorker;
|
|
53097
|
+
check;
|
|
53098
|
+
setting = "";
|
|
53099
|
+
shell;
|
|
53100
|
+
current;
|
|
53101
|
+
inherited;
|
|
53102
|
+
status() {
|
|
53103
|
+
return this.current;
|
|
53104
|
+
}
|
|
53105
|
+
/** 启动早期、fork worker 之前调用 */
|
|
53106
|
+
initFromConfig(setting) {
|
|
53107
|
+
this.setting = typeof setting === "string" ? setting.trim() : "";
|
|
53108
|
+
this.commit();
|
|
53109
|
+
return this.current;
|
|
53110
|
+
}
|
|
53111
|
+
applyShellValue(value) {
|
|
53112
|
+
this.shell = value;
|
|
53113
|
+
this.commit();
|
|
53114
|
+
return this.current;
|
|
53115
|
+
}
|
|
53116
|
+
/** 设置热更新:生效值变化才重启 worker(worker env 是 fork 时的快照) */
|
|
53117
|
+
async setCustomPath(path2) {
|
|
53118
|
+
this.setting = path2.trim();
|
|
53119
|
+
if (this.commit()) await this.restartWorker();
|
|
53120
|
+
return this.current;
|
|
53121
|
+
}
|
|
53122
|
+
resolve() {
|
|
53123
|
+
return resolveExtraCaCert({
|
|
53124
|
+
inherited: this.inherited,
|
|
53125
|
+
setting: this.setting,
|
|
53126
|
+
shell: this.shell,
|
|
53127
|
+
check: this.check
|
|
53128
|
+
});
|
|
53129
|
+
}
|
|
53130
|
+
commit() {
|
|
53131
|
+
const before = this.env[CA_CERT_ENV];
|
|
53132
|
+
this.current = this.resolve();
|
|
53133
|
+
if (this.current.source === "env") return false;
|
|
53134
|
+
if (this.current.path) this.env[CA_CERT_ENV] = this.current.path;
|
|
53135
|
+
else delete this.env[CA_CERT_ENV];
|
|
53136
|
+
return this.env[CA_CERT_ENV] !== before;
|
|
53137
|
+
}
|
|
53138
|
+
}
|
|
53139
|
+
let instance$1 = null;
|
|
53140
|
+
function getCaCertConfig() {
|
|
53141
|
+
instance$1 ??= new CaCertConfig(process.env, restartAgentWorker);
|
|
53142
|
+
return instance$1;
|
|
53143
|
+
}
|
|
53144
|
+
function registerCaCertHandlers() {
|
|
53145
|
+
ipcMain.handle(IPC_CHANNELS.CA_CERT_STATUS, () => getCaCertConfig().status());
|
|
53146
|
+
ipcMain.handle(
|
|
53147
|
+
IPC_CHANNELS.CA_CERT_APPLY,
|
|
53148
|
+
async (_event, raw) => {
|
|
53149
|
+
const config2 = getCaCertConfig();
|
|
53150
|
+
if (typeof raw !== "string") return { ...config2.status(), error: "not-found" };
|
|
53151
|
+
return config2.setCustomPath(raw);
|
|
53152
|
+
}
|
|
53153
|
+
);
|
|
53154
|
+
}
|
|
52903
53155
|
const file = (dir, id) => path.join(dir, `${id}.json`);
|
|
52904
53156
|
function readSnapshots(dir, conversationId) {
|
|
52905
53157
|
if (!isValidId(conversationId)) return {};
|
|
@@ -60300,30 +60552,23 @@ const proxyConfig = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
60300
60552
|
ProxyConfig,
|
|
60301
60553
|
getProxyConfig
|
|
60302
60554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
60303
|
-
function
|
|
60304
|
-
|
|
60305
|
-
|
|
60306
|
-
|
|
60307
|
-
|
|
60308
|
-
|
|
60309
|
-
|
|
60310
|
-
|
|
60311
|
-
if (
|
|
60312
|
-
|
|
60313
|
-
return { ok: false, error: "invalid proxy url" };
|
|
60314
|
-
}
|
|
60315
|
-
config2.setCustomProxyUrl(input.customUrl);
|
|
60555
|
+
async function applyProxySettings(raw) {
|
|
60556
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
60557
|
+
return { ok: false, error: "invalid proxy settings" };
|
|
60558
|
+
}
|
|
60559
|
+
const input = raw;
|
|
60560
|
+
const config2 = getProxyConfig();
|
|
60561
|
+
config2.setProxyMode(normalizeProxyMode(input.mode));
|
|
60562
|
+
if (typeof input.customUrl === "string") {
|
|
60563
|
+
if (input.customUrl.trim() !== "" && !isValidProxyUrl(input.customUrl)) {
|
|
60564
|
+
return { ok: false, error: "invalid proxy url" };
|
|
60316
60565
|
}
|
|
60317
|
-
|
|
60318
|
-
}
|
|
60319
|
-
}
|
|
60320
|
-
function projectNameFromPath(path2) {
|
|
60321
|
-
return path2.split(/[\\/]/).filter(Boolean).pop() ?? path2;
|
|
60566
|
+
config2.setCustomProxyUrl(input.customUrl);
|
|
60567
|
+
}
|
|
60568
|
+
return { ok: await config2.resolveProxy() };
|
|
60322
60569
|
}
|
|
60323
|
-
function
|
|
60324
|
-
|
|
60325
|
-
if (alias) return alias;
|
|
60326
|
-
return project.name === project.path ? projectNameFromPath(project.path) : project.name;
|
|
60570
|
+
function registerProxyHandlers() {
|
|
60571
|
+
ipcMain.handle(IPC_CHANNELS.PROXY_APPLY, (_event, raw) => applyProxySettings(raw));
|
|
60327
60572
|
}
|
|
60328
60573
|
const PARTITION_SUFFIX = "-browser";
|
|
60329
60574
|
function partitionName(isPackaged) {
|
|
@@ -61326,6 +61571,7 @@ function registerIpcHandlers() {
|
|
|
61326
61571
|
registerExtensionPluginHandlers();
|
|
61327
61572
|
registerAgentHandlers();
|
|
61328
61573
|
registerProxyHandlers();
|
|
61574
|
+
registerCaCertHandlers();
|
|
61329
61575
|
registerCompactionHandlers();
|
|
61330
61576
|
registerProjectHandlers();
|
|
61331
61577
|
registerSshConnectionHandlers();
|
|
@@ -66205,6 +66451,7 @@ export async function mountMain(activate, options = {}) {
|
|
|
66205
66451
|
const methods = new Map();
|
|
66206
66452
|
const exportsMap = new Map();
|
|
66207
66453
|
const triggers = new Map();
|
|
66454
|
+
const turnEndListeners = new Set();
|
|
66208
66455
|
|
|
66209
66456
|
const call = (api, args) => {
|
|
66210
66457
|
calls.push({ api, args });
|
|
@@ -66255,6 +66502,11 @@ export async function mountMain(activate, options = {}) {
|
|
|
66255
66502
|
status: (...args) => call('session.status', args),
|
|
66256
66503
|
focus: (...args) => call('session.focus', args),
|
|
66257
66504
|
create: (...args) => call('session.create', args),
|
|
66505
|
+
onTurnEnd: (listener) => {
|
|
66506
|
+
const entry = (event) => listener(event);
|
|
66507
|
+
turnEndListeners.add(entry);
|
|
66508
|
+
return () => turnEndListeners.delete(entry);
|
|
66509
|
+
},
|
|
66258
66510
|
},
|
|
66259
66511
|
composer: {
|
|
66260
66512
|
readDraft: (...args) => call('composer.readDraft', args),
|
|
@@ -66286,6 +66538,9 @@ export async function mountMain(activate, options = {}) {
|
|
|
66286
66538
|
fire: (event, data, ctx) => invoke(events, 'event', event, [data, ctxOr(ctx)]),
|
|
66287
66539
|
schedule: (id) => invoke(schedules, 'schedule', id, [ctxOr()]),
|
|
66288
66540
|
method: (name, args, ctx) => invoke(methods, 'method', name, [args, ctxOr(ctx)]),
|
|
66541
|
+
turnEnd: async (sessionId) => {
|
|
66542
|
+
for (const listener of [...turnEndListeners]) await listener({ sessionId });
|
|
66543
|
+
},
|
|
66289
66544
|
};
|
|
66290
66545
|
}
|
|
66291
66546
|
`;
|
|
@@ -67441,6 +67696,18 @@ async function runCommand(argv, ctx) {
|
|
|
67441
67696
|
return false;
|
|
67442
67697
|
}
|
|
67443
67698
|
}
|
|
67699
|
+
function serveControlConnection(socket, handle2) {
|
|
67700
|
+
socket.on("error", () => socket.destroy());
|
|
67701
|
+
const lines = createInterface({ input: socket });
|
|
67702
|
+
lines.on("error", () => {
|
|
67703
|
+
});
|
|
67704
|
+
lines.on("line", (line2) => {
|
|
67705
|
+
void handle2(line2).catch((error) => ({ ok: false, error: String(error) })).then((reply) => {
|
|
67706
|
+
if (socket.writable) socket.end(`${JSON.stringify(reply)}
|
|
67707
|
+
`);
|
|
67708
|
+
});
|
|
67709
|
+
});
|
|
67710
|
+
}
|
|
67444
67711
|
const PLUGIN_ID_ACTIONS = [
|
|
67445
67712
|
"enable",
|
|
67446
67713
|
"disable",
|
|
@@ -67514,18 +67781,6 @@ function parseControlCommand(line2) {
|
|
|
67514
67781
|
if (cmd === "plugin") return parsePluginCommand(parsed);
|
|
67515
67782
|
return { error: "unknown command" };
|
|
67516
67783
|
}
|
|
67517
|
-
function serveControlConnection(socket, handle2) {
|
|
67518
|
-
socket.on("error", () => socket.destroy());
|
|
67519
|
-
const lines = createInterface({ input: socket });
|
|
67520
|
-
lines.on("error", () => {
|
|
67521
|
-
});
|
|
67522
|
-
lines.on("line", (line2) => {
|
|
67523
|
-
void handle2(line2).catch((error) => ({ ok: false, error: String(error) })).then((reply) => {
|
|
67524
|
-
if (socket.writable) socket.end(`${JSON.stringify(reply)}
|
|
67525
|
-
`);
|
|
67526
|
-
});
|
|
67527
|
-
});
|
|
67528
|
-
}
|
|
67529
67784
|
const OUTPUT_FORMATS = ["text", "json", "stream-json"];
|
|
67530
67785
|
const RUN_NETWORK_TOOLS = ["web", "browser", "image_generation"];
|
|
67531
67786
|
const TOOL_ALIASES = {
|
|
@@ -73261,6 +73516,7 @@ async function serve(web) {
|
|
|
73261
73516
|
const persisted = readSettings()?.["enso-settings"];
|
|
73262
73517
|
const state = persisted?.state ?? {};
|
|
73263
73518
|
getProxyConfig().initFromConfig(state.proxyMode, state.customProxyUrl);
|
|
73519
|
+
getCaCertConfig().initFromConfig(state.customCaCertPath);
|
|
73264
73520
|
syncMemoryEmbeddingFromSettings(state);
|
|
73265
73521
|
syncMemoryDistillFromSettings(state);
|
|
73266
73522
|
syncMemoryKgFromSettings(state);
|