@ensocode/server 0.3.15-beta.243 → 0.3.15-beta.245
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/{EditDiff-dV8SxcNO.js → EditDiff-LjLnu8xm.js} +1 -1
- package/out/phone/assets/{ReadFileView-BL74jSoX.js → ReadFileView-D_aDFZ3i.js} +1 -1
- package/out/phone/assets/{abnfDiagram-VCTEODGH-CEKu-VDa.js → abnfDiagram-VCTEODGH-BH4d-cbL.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-CzvFNlBu.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-DZSF1JKX.js → architectureDiagram-5GKGNRK7-CZUm8whq.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-DbETbGjb.js → blockDiagram-I7D4REHJ-CibsN4eX.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-_6Y-r-uC.js → c4Diagram-7LVT6UL2-4Q1GvDNL.js} +1 -1
- package/out/phone/assets/channel-B1OjjanR.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-vCRskPi2.js → chunk-4HAMMTFA-qmi-wrXZ.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-BmrgBCi6.js → chunk-75Z2AOVW-BuwyNEKi.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-DKPNBHNE.js → chunk-DU6HZSFF-BU48Ba4y.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-L0-uVWLV.js → chunk-F27PBJKO-BmRqQ1LD.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-DXo2TRvH.js → chunk-GMAD6QVW-2xpTjCMU.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-CDwb8f7v.js → chunk-GVQU2GXP-DcgAJ1hb.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-DAErcQ9l.js → chunk-IMKFNOWR-CDKQTDLE.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-CFyx_Rve.js → chunk-L3NEJ4N5-C9I8xbyo.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-DkC9IrH5.js → chunk-OSK3NFVY-B68u1et1.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-F1s8U5mo.js → chunk-P2QGCYS3-3LE80g6a.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H--k158s9f.js → chunk-POPQ4Y6H-DYC-7n06.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-CTM9mqxJ.js → chunk-PWAF6VOD--cFXgKVZ.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-CqyCB6AP.js → chunk-SHT3W25Y-BBi9f7KR.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-DqzhG60d.js → chunk-SVP7TREG-B1DVeaeC.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-CHNZrV0N.js → chunk-TICWLB2K-DGL1KENT.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-DIqrjRkT.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-DIqrjRkT.js +1 -0
- package/out/phone/assets/{codeHighlighter-Bq1tgZ31.js → codeHighlighter-Dv9S_gnx.js} +1 -1
- package/out/phone/assets/{cynefin-OW5HDTMX-D7FIJ5TE.js → cynefin-OW5HDTMX-DvPig7gg.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-CwRefxxR.js → cynefinDiagram-5FMLGOSQ-CZScsP4a.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-2k5JKLap.js → dagre-GXQ25YYZ-Rm1WuHFV.js} +1 -1
- package/out/phone/assets/{desk-2DcKD4PO.js → desk-Dc-PsOnl.js} +1 -1
- package/out/phone/assets/{diagram-S7CK7UJ4-COP6uauS.js → diagram-S7CK7UJ4-DNecQbFS.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DGe3w4Mb.js → diagram-UQ7AKVKN-DNJ5891_.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-BdL-Y7lZ.js → diagram-VSXAHHWV-hgX1MmPB.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-Cmm1PcJ7.js → diagram-VX7I27RA-BINDbSM_.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-BELK9Cyu.js → diagram-Z3DM3KII-BznaX7I6.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-DprpRwix.js → ebnfDiagram-PWID7BFC-35AZ2YXG.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-I2-zilY7.js → erDiagram-RLTQ6QDP-Cchr8eGN.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-Rdm0dM4t.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-qD44MaaR.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-BwfKo0BI.js → ganttDiagram-EL5Y4UJY-D5_HL1Hs.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-07eg-1Rq.js → gitGraph-4MIJSDKK-CWlj41of.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-CbVbFZC2.js → gitGraphDiagram-WWUBYQGX-B1Z4kUI3.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-DLHHu_G9.js → info-A6RAGUB7-BsUYEjC5.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-cLqkTO5u.js → infoDiagram-27XIBGKW-lrQnoW76.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-Cd8fSl-A.js → ishikawaDiagram-5VMMS53U-BBmwYGjK.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-BtjAbCrz.js → journeyDiagram-3NMN7TZE-DNkmhKoE.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-DndWaQnc.js → kanban-definition-UXKFOSKX-CN7mnAup.js} +1 -1
- package/out/phone/assets/{line-Daz1Pnrk.js → line-B8a5usVN.js} +1 -1
- package/out/phone/assets/{main-D-KAtgTj.js → main-Drpa9hsc.js} +5 -5
- package/out/phone/assets/{mermaid-parser.core-DXa4u2HJ.js → mermaid-parser.core-PgYmkOU6.js} +3 -3
- package/out/phone/assets/{mermaid.core-DzGM-Ye4.js → mermaid.core-DbT50CUC.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-nro3b7Qu.js → mindmap-definition-YA3MSWOX-CMdUpbu5.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-lfMwTpBv.js → packet-AYTQ26CC-DE5zcURD.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-DCAqCUIc.js → pegDiagram-XKGWAZYB-CAHbWi6O.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-BwocEZEZ.js → pie-WAS4IAKB-CeuBFJWN.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-RtZ3p-o4.js → pieDiagram-E7YTZNPT-EsoDg3k_.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-DfOq0__S.js → quadrantDiagram-AXDQQJYC-BjX3KPnW.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-CSpvoUTZ.js → radar-RG4KPBEZ-jlg2WilL.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-CycLSwqm.js → railroad-74A4TZTK-BhL0maDf.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-CG8Dvjf0.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BmdoUAXy.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-BPjXhfuj.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-BN5MHF6W.js → railroadDiagram-O6MQD6OU-CJUntIWK.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-DIu5xE9B.js → requirementDiagram-BXWQKSXE-CUYcJ7Ct.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-BstydEqp.js → sankeyDiagram-P5KCCOFB-B7yjnRpp.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-CcUvBArn.js → sequenceDiagram-WJ2MYXX4-CI73HGux.js} +1 -1
- package/out/phone/assets/{shellUpdate-CmGIiHAj.js → shellUpdate-B-mV7z4A.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-zg_p65lf.js → stateDiagram-D77RDMKH-BF_1QkEi.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-CgcJvB8p.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-DLRevnN4.js → swimlanes-42K2YHIH-Bwq7r81u.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-3afyqKQ7.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-CA07Zepd.js → timeline-definition-24CTP7MA-Drxbs-AR.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-B8Zz7Snr.js → treeView-Q6P3EWNA-DuBbC28F.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-CPAU7wdT.js → treemap-WGGIJYW6-BfQDwuyr.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-CwdYkM1f.js → vennDiagram-4TSXK5OY-D2oNPJPu.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-CskqkmNX.js → wardley-WFR3VGLG-BCgggqb2.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DFuB2mB3.js → wardleyDiagram-VM6X3IG4-C1BpdV7C.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-B-zDdHgv.js → xychartDiagram-S5SC5T6Z-DHZBXtsf.js} +1 -1
- package/out/phone/desk.html +3 -3
- package/out/phone/index.html +3 -3
- package/out/phone/sw.js +2 -2
- package/out/renderer/assets/{EditDiff-BhdEeLFW.js → EditDiff-1q8ZinKY.js} +1 -1
- package/out/renderer/assets/{ReadFileView-zU2KPPdT.js → ReadFileView-B24dkbc8.js} +1 -1
- package/out/renderer/assets/{SidePanel-0icYoJ5O.js → SidePanel-HvFay_uK.js} +1 -1
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-DdIPktDk.js → abnfDiagram-VCTEODGH-C28b6KaR.js} +1 -1
- package/out/renderer/assets/{arc-B6R80ZK6.js → arc-D654WPOQ.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-DcXnCOUz.js → architectureDiagram-5GKGNRK7-in73oE1l.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-CKku8GkS.js → blockDiagram-I7D4REHJ-D3Uz_3X8.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-Dl6RR3j-.js → c4Diagram-7LVT6UL2-BFnUhWBv.js} +1 -1
- package/out/renderer/assets/channel-Dtd4BQ0v.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-D8Iw_pkf.js → chunk-2Q5K7J3B-BRnCXB5O.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-DUhSpdls.js → chunk-5VM5RSS4-Bzdf1vbV.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-W5SL8MUr.js → chunk-F27PBJKO-TNiuEksf.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-PLwPndGV.js → chunk-IMKFNOWR-CibX_GX4.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-6blIrMdp.js → chunk-JWPE2WC7-Cvj3V5D8.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-dx-1wuPc.js → chunk-POPQ4Y6H-DD8kMK_f.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-rOchctsj.js → chunk-SVP7TREG-Cr44V1VF.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-DRaCXImj.js → chunk-TICWLB2K-BJZ6A5Jw.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-BCrhC30c.js → chunk-XXDRQBXY-wAi8ZQ9I.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-B2CoHNXJ.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-B2CoHNXJ.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-D4e0PFmW.js → cose-bilkent-JH36ORCC-vqLyUO2H.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-RLQgcB4O.js → cynefin-OW5HDTMX-utxTipjM.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-Be4QVxeQ.js → cynefinDiagram-5FMLGOSQ-tmHpgrII.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-D4dEms30.js → dagre-GXQ25YYZ-DHvmbJzP.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-D1bZM8kp.js → diagram-S7CK7UJ4-CxkJYeKg.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-BUOm9kVS.js → diagram-UQ7AKVKN-DXiV9Phb.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-Maay-egJ.js → diagram-VSXAHHWV-Bqowd_xF.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-DHioBbkr.js → diagram-VX7I27RA-BFJEhjwB.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-NoBOALE6.js → diagram-Z3DM3KII-B8M6zQkH.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-DKsMlGNO.js → ebnfDiagram-PWID7BFC-AWO_Tu8S.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-CrceugA8.js → erDiagram-RLTQ6QDP-CFT_O4xb.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-Dsyooc0w.js → flowDiagram-HODETNUW-aVBgaS_Y.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-CA6uw94p.js → ganttDiagram-EL5Y4UJY-Cm5xhQPI.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-CKwMGVqQ.js → gitGraphDiagram-WWUBYQGX-Ypn2Cmdp.js} +1 -1
- package/out/renderer/assets/{index-D4LxgFqz.js → index-C_-_8kzt.js} +62 -62
- package/out/renderer/assets/{infoDiagram-27XIBGKW-D_WUVG3l.js → infoDiagram-27XIBGKW-C7fB8bNU.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-CJy9QY0P.js → ishikawaDiagram-5VMMS53U-CcWTHcnO.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BJCGt5LN.js → journeyDiagram-3NMN7TZE-xqTIZ2Hh.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-DEsx9e2o.js → kanban-definition-UXKFOSKX-BOT23Tck.js} +1 -1
- package/out/renderer/assets/{layout-Do2DxdOh.js → layout-CjcdzPZ2.js} +1 -1
- package/out/renderer/assets/{linear-D7u4_Jet.js → linear-h8_X4_Uj.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CheRwdcN.js → mermaid.core-CSXvmdq9.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-Dj1zY6Tj.js → mindmap-definition-YA3MSWOX-C_1TjiTd.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-DeMHxEYt.js → pegDiagram-XKGWAZYB-BzuEKB_Y.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-BzKBvB16.js → pieDiagram-E7YTZNPT-DjKNMc5Y.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-DPa4vyO_.js → quadrantDiagram-AXDQQJYC-C20n16ud.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DC5n1jqP.js → railroadDiagram-O6MQD6OU-nL2WEzvu.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-BFGfpcAs.js → requirementDiagram-BXWQKSXE-CjSoTsFt.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-CWzuO7ij.js → sankeyDiagram-P5KCCOFB-Cf75s3NX.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-6pbC_bzq.js → sequenceDiagram-WJ2MYXX4-F5oCjnNZ.js} +1 -1
- package/out/renderer/assets/{sessionChanges-BpE_kf6a.js → sessionChanges-9mvBQ4nC.js} +1 -1
- package/out/renderer/assets/{sizeCapture-INFHLROL-BVbSh92j.js → sizeCapture-INFHLROL-xvtssqwL.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-DEsyHHV6.js → stateDiagram-D77RDMKH-WIM9GNDw.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C4trPT9p.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-PUiwxgii.js → swimlanes-42K2YHIH-Cx1Lq7uL.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CdzbCDJL.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-DLRxhkx9.js → timeline-definition-24CTP7MA-DAenmhFb.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-jWOKXNZk.js → vennDiagram-4TSXK5OY-C20f02ii.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-C_s6PoY1.js → wardleyDiagram-VM6X3IG4-BKts4ozC.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-CtSoETdP.js → xychartDiagram-S5SC5T6Z-Bega92Q5.js} +1 -1
- package/out/renderer/index.html +1 -1
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +4 -4
- package/out/server/chunks/{builtinOccupancy-BkHNhNZ1.js → builtinOccupancy-8qzMLEUu.js} +3 -3
- package/out/server/chunks/{dispatchModel-D9_CXjYz.js → dispatchModel-ztJp_gru.js} +2 -2
- package/out/server/chunks/{loadProvider-D1YF4iYt.js → loadProvider-6Q-YAwjb.js} +2 -2
- package/out/server/chunks/{menuSkills-C6t47j3a.js → menuSkills-BPjdWW4F.js} +3 -3
- package/out/server/chunks/{projectCode-FQGMcmvA.js → projectCode-D1meiWQp.js} +2 -2
- package/out/server/chunks/{web--2c28PU3.js → web-2773VU9n.js} +2 -2
- package/out/server/chunks/{workflowPresets-qBnlqy0O.js → workflowPresets-CPtxxd8V.js} +2 -2
- package/out/server/index.js +209 -318
- package/package.json +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-Ck0TCz23.js +0 -1
- package/out/phone/assets/channel-BE5zs32I.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CZaWI4f1.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CZaWI4f1.js +0 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-DHZXyZ9N.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-C767Y7I4.js +0 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-hrMHL4K3.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BYCRhR6k.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DsR1d8D_.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-y0nVL_Wz.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-BXCOZBRL.js +0 -8
- package/out/renderer/assets/channel-ChHA9tHt.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-Cs094JZn.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-Cs094JZn.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-B-VkOaQO.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-gjV0EuTL.js +0 -8
package/out/server/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createDecipheriv, randomBytes, createCipheriv, randomUUID, createHash,
|
|
|
7
7
|
import { EventEmitter, addAbortListener } from "node:events";
|
|
8
8
|
import os, { homedir, tmpdir, userInfo } from "node:os";
|
|
9
9
|
import { G as providerProxyFetch, J as isValidProxyUrl, a as parseProviderProxy, L as resolveDisabledBuiltinTools, N as projectDisabledBuiltinTools, O as wrapPluginDelivery, P as persistedSettingsState, Q as proxyEnvPatchFromEnv, U as parseWebSearchChain, V as isMediaId, w as wrapUntrusted, W as readableText, X as chunkMessageText, Y as projectReadableMessages, S as SEND_IMAGE_CAPTION_MAX, s as sendImageItems, Z as effectiveSubagentAllowedModes, _ as isUnitType, C as CRYSTAL_MIN_SOURCES, $ as sameProviderProxy, a0 as proxyUrlHasCredentials, a1 as redactProxyUrlCredentials, a2 as normalizeProxyMode, a3 as parseResolveProxy, a4 as mergeNoProxy, a5 as DEFAULT_NO_PROXY, a6 as proxyEnvPatch, a7 as redactSecrets$2, a8 as unescapeUntrusted } from "./chunks/sendImage-BmenO8Vx.js";
|
|
10
|
-
import { bY as parseChildConversationMetadata, bZ as isVirtualRef, bJ as isClassifierOnlyProvider, bK as isOauthAccountPool, b_ as eligibleOauthPoolAccountKeys, b$ as findVirtualModel, c0 as createEventStream, c1 as startOauthCallbackServer, c2 as waitForOauthCallbackCode, a8 as isCodexAccountKey, ao as takeSnapshotTail, c3 as OVERVIEW_TAIL_MESSAGES, c4 as OVERVIEW_BYTE_BUDGET, c5 as syncAccountProviders, c6 as expandOauthCatalog, c7 as supportsMultipleAccounts, c8 as parseCodexAuthJson, c9 as CODEX_PROVIDER_ID, ca as nextAccountKey, cb as sanitizeUpstreamBody, bF as installCodexLinkedRefresh, cc as defaultCodexAuthPath, by as ANTIGRAVITY_PROVIDER_ID, bz as antigravityProviderConfig, bA as DEVIN_PROVIDER_ID, bB as devinProviderConfig, bC as QODER_PROVIDER_ID, bD as qoderProviderConfig, bE as QODER_CN_PROVIDER_ID, aV as providerIdOfAccountKey, cd as ordinalOfAccountKey, aa as ensureAccountProvider, ce as sanitizeOauthLabel, cf as parseAntigravityApiKey, cg as fetchAntigravityUsage, ch as fetchDevinUsage, J as parseProviderHeaders, M as MODEL_API_KINDS, ci as DEFAULT_PERSONA_PROMPT, cj as isAppLoggingEnabled, aU as setAppLoggingEnabled, ck as normalizeSshTimeoutSeconds, bM as resolveEditMode, cl as isEditMode, A as AGENT_WORKER_CRASH_FILE, cm as parseAgentWorkerCrash, a as appendCappedLog, cn as AGENT_WORKER_EXIT_LOG, bu as WORKSPACE_WRITE_TOOL_ID, co as activeDcgExemptions, cp as listActiveDcgExemptions, cq as dcgRuleState, cr as parseDcgRuleMemory, cs as emptyDcgRuleMemory, ct as removeDcgExemption, cu as addDcgExemption, cv as recordDcgRuleAllow, au as ELEVATE_TIMEOUT_MS, s as shellQuote, av as ELEVATE_UNAVAILABLE_MARKER, at as ELEVATE_TIMED_OUT_MARKER, as as ELEVATE_DECLINED_MARKER, cw as elevatedCommandOf, bG as isHeadlessRun, cx as parseRestartCheckpoint, a2 as mcpOAuthFingerprint, a1 as MCP_OAUTH_REFRESH_SKEW_MS, H as readModelsDevCache, cy as MODELS_DEV_URL, cz as writeModelsDevCache, cA as parseModelsDevPayload, cB as MODELS_DEV_CACHE_NAME, cC as modelsDevIsFresh, K as parseModelDirectorySnapshot, cD as withModelsDevOauthModels, bT as PRIVACY_MASK_ENTRY, cE as parsePrivacyMaskRecord, ai as rootIdOfReminder, aQ as toReminderSummary, aP as REMINDERS_FILE, af as parseReminderFile, cF as remindersOf, cG as hasProviderCredentials, T as MODEL_REASONING_OVERRIDES, U as MODEL_THINKING_LEVEL_OVERRIDES, cH as appUserImageDirs, bU as APP_LOGGING_ENV, bW as RESTART_CHECKPOINT_ENV, aq as ELEVATE_ASKPASS_ENV, cI as parseAgentWorkerEvent, cJ as describeAgentWorkerExit, bm as RESTART_CHECKPOINT_FILE, cK as SECRETARY_FORCED_DISABLED_TOOLS, cL as parseWindowsLocalShell, aY as resolveCompactStrategy, cM as parseSmartCompactMode, cN as SECRETARY_ALWAYS_ENABLED_TOOLS, ap as childProfileShell, cO as sweepOrphanMcpServers, aR as MCP_SERVER_REGISTRY_DIR, cP as resolveImageGenerationConfig, cQ as normalizeMaxActiveCoworkers, cR as normalizeAutoRetryLimit, cS as parsePrivacyMaskSettings, cT as reminderReviveDelay, cU as directMemberRef, p as parseApprovalAllowThreshold, cV as DEFAULT_APPROVAL_ALLOW_THRESHOLD, bX as parseAgentCommand, cW as resolveShellLimits, cX as materializeProviders, k as providerKeyFor, cY as parseVirtualModels, V as VIRTUAL_PROVIDER_ID, cZ as classifierProviderFor, c_ as classifierBaseUrlFor, c$ as childProfileToolIds, d0 as pickModelCapabilityOverrides, d1 as canBeVirtualMember, d2 as mcpTimeoutsForSpawn, bg as parseJsonFromAssistant, bh as validateAgainstSchema, d3 as AGENT_TASK_MAX_RESUMES, d4 as AGENT_WAIT_DEFAULT_MS, d5 as AGENT_WAIT_MAX_MS, ba as classifyUpstreamError, b0 as HUMAN_REQUEST_TIMEOUT_MS, a7 as projectMessage, d6 as sessionEntryToContextMessages, d7 as withPrivacyMask, d8 as withUserEntryIds, d9 as LOCAL_IMAGE_SCHEME, da as REMOTE_FETCH_HOST, db as BOT_AVATAR_HOST, dc as SECRETARY_AVATAR_HOST, dd as PLUGIN_ASSET_HOST, de as SECRETARY_REPORT_HOST, df as mediaExtension, dg as localImageUrlToPath, dh as isMediaPath, di as isVideoPath, dj as IMAGE_EXTENSIONS$1, dk as isDeliveryId, dl as SNAPSHOT_TAIL_MESSAGES, dm as splitUnattendedPrefix, dn as userTextWithoutSkills, dp as withoutQuoteBlocks, dq as quotesAsMarkdown, dr as splitPlanPrefix, ds as parseGoalResultView, dt as parseSecretarySkillDraft, du as parseSecretaryToolDraft, dv as hasNeedsUser, dw as shownNeedsUser, dx as stripGoalResultNeedsUser, dy as nextPendingReminder, dz as needsUserItems, az as resolveRoots, dA as defaultImageRoots, ay as readImageView, dB as classifyCommand, dC as formatGoalResultClaims, dD as parseGoalUpstreamRetry, dE as formatGoalResultChecks, dF as escalateGoalResultNeedsUser, dG as answerGoalResultNeedsUser, dH as nextPendingRetryDelayMs, aE as SECRETARY_ATTACHMENT_PATH_MAX, aH as SECRETARY_ATTACHMENT_MAX, aF as SECRETARY_SEND_MODES, aC as SECRETARY_ID_MAX, aG as SECRETARY_SESSION_MESSAGE_MAX, dI as probeImageView, dJ as isSecretarySlug, dK as secretaryToolScriptFile, dL as parseSecretaryToolFile, dM as renderSecretaryToolFile, dN as secretaryToolDescriptor, dO as TOOL_TIMEOUT_DEFAULT, dP as TOOL_OUTPUT_MAX, dQ as inImageViewScope, dR as IMAGE_VIEW_MAX_BYTES, aA as systemImageRoots, dS as isSecretarySkillName, aD as SECRETARY_CONTACT_CAPTION_MAX, dT as validateScopedFile, dU as readImageFacts, dV as removeSessionTempDir, dW as resolveSshTarget, dX as nextUpstreamRetryAt, dY as checkPassed, dZ as checkFailureText, d_ as parseVirtualClassifier, d$ as VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS, bp as buildInitialTitleUserText, br as TITLE_SYSTEM_PROMPT, bc as buildTurnDigest, bq as ROLLING_TITLE_SYSTEM_PROMPT, bo as buildRollingTitleUserText, bv as titleSummaryTimeoutMs, bs as extractTitle, bt as titleRejectReason, e0 as parseCreateConversationAuthorityRequest, e1 as parseConversationAuthorityRequest, e2 as parseUpdateConversationSelectionRequest, e3 as parseTitleSummaryInput, e4 as parseParentSourceBindingRequest, e5 as parseParentModelSelectionRequest, e6 as parseAgentDispatchRequest, e7 as isApprovalDecision, e8 as TASK_KEEP_REASON_MAX, e9 as EnsoSafeJournal, aX as STALE_SESSION_ERROR, ea as isSecretFilePath, eb as isUnderSecretDirectory, ec as cleanToolBatchLabel, ed as toolBatchLabelPrompt, ee as TOOL_BATCH_LABEL_SYSTEM_PROMPT, h as estimateSkillTokens, j as estimateInstructionTokens, ef as estimateToolsTotal, $ as assignMcpToolNames, a0 as createStdioTransport, b3 as listWorkflowPresets, b2 as workflowPresetRoots, eg as listCustomWorkflowPresets, eh as listBuiltinWorkflowPresets, ei as readCustomWorkflowPreset, ej as parseWorkflowPresetDraft, ek as saveCustomWorkflowPreset, el as deleteCustomWorkflowPreset, em as parseBtwPromptRequest, en as btwModelCandidates, eo as TITLE_SUMMARY_MAX_CANDIDATES, ep as parseBtwAbortRequest, eq as parseBtwSpawnRequest, er as BTW_DISABLED_TOOLS, es as parseBtwDisposeRequest, et as isDcgRuleId, aZ as createSshExecutor, eu as isHumanRequestTimeout, ev as buildSshExecArgs, ew as buildRemoteCommand, bQ as sshPasswordEnv, ex as listProjectCodeSources, ey as parseCreateProjectAuthorityRequest, ez as parseSelectProjectAuthorityRequest, eA as parseRemoveProjectAuthorityRequest, eB as withVersionSegment, eC as DEFAULT_BASE_URLS, eD as positiveFiniteNumber, a5 as isXaiChatModelId, eE as mergeFetchedOauthModels, eF as catalogModelLookup, Q as mergeCatalogEntry, eG as supportedProjectThinkingLevels, eH as upstreamContinuationText, eI as needsUserTriageDeadline, eJ as shouldSilenceTurn, eK as sessionIdsInUpdates, eL as messageText$1, eM as isPureSessionUpdate, eN as formatRetryClock, eO as hasPendingReminder, eP as formatReminderClock, eQ as buildSshPtyArgs, bP as resolveSshControlPath, I as version$1, eR as ENSO_HEADLESS_RUN_ENV } from "./chunks/workflowPresets-
|
|
10
|
+
import { bY as parseChildConversationMetadata, bZ as isVirtualRef, bJ as isClassifierOnlyProvider, bK as isOauthAccountPool, b_ as eligibleOauthPoolAccountKeys, b$ as findVirtualModel, c0 as createEventStream, c1 as startOauthCallbackServer, c2 as waitForOauthCallbackCode, a8 as isCodexAccountKey, ao as takeSnapshotTail, c3 as OVERVIEW_TAIL_MESSAGES, c4 as OVERVIEW_BYTE_BUDGET, c5 as syncAccountProviders, c6 as expandOauthCatalog, c7 as supportsMultipleAccounts, c8 as parseCodexAuthJson, c9 as CODEX_PROVIDER_ID, ca as nextAccountKey, cb as sanitizeUpstreamBody, bF as installCodexLinkedRefresh, cc as defaultCodexAuthPath, by as ANTIGRAVITY_PROVIDER_ID, bz as antigravityProviderConfig, bA as DEVIN_PROVIDER_ID, bB as devinProviderConfig, bC as QODER_PROVIDER_ID, bD as qoderProviderConfig, bE as QODER_CN_PROVIDER_ID, aV as providerIdOfAccountKey, cd as ordinalOfAccountKey, aa as ensureAccountProvider, ce as sanitizeOauthLabel, cf as parseAntigravityApiKey, cg as fetchAntigravityUsage, ch as fetchDevinUsage, J as parseProviderHeaders, M as MODEL_API_KINDS, ci as DEFAULT_PERSONA_PROMPT, cj as isAppLoggingEnabled, aU as setAppLoggingEnabled, ck as normalizeSshTimeoutSeconds, bM as resolveEditMode, cl as isEditMode, A as AGENT_WORKER_CRASH_FILE, cm as parseAgentWorkerCrash, a as appendCappedLog, cn as AGENT_WORKER_EXIT_LOG, bu as WORKSPACE_WRITE_TOOL_ID, co as activeDcgExemptions, cp as listActiveDcgExemptions, cq as dcgRuleState, cr as parseDcgRuleMemory, cs as emptyDcgRuleMemory, ct as removeDcgExemption, cu as addDcgExemption, cv as recordDcgRuleAllow, au as ELEVATE_TIMEOUT_MS, s as shellQuote, av as ELEVATE_UNAVAILABLE_MARKER, at as ELEVATE_TIMED_OUT_MARKER, as as ELEVATE_DECLINED_MARKER, cw as elevatedCommandOf, bG as isHeadlessRun, cx as parseRestartCheckpoint, a2 as mcpOAuthFingerprint, a1 as MCP_OAUTH_REFRESH_SKEW_MS, H as readModelsDevCache, cy as MODELS_DEV_URL, cz as writeModelsDevCache, cA as parseModelsDevPayload, cB as MODELS_DEV_CACHE_NAME, cC as modelsDevIsFresh, K as parseModelDirectorySnapshot, cD as withModelsDevOauthModels, bT as PRIVACY_MASK_ENTRY, cE as parsePrivacyMaskRecord, ai as rootIdOfReminder, aQ as toReminderSummary, aP as REMINDERS_FILE, af as parseReminderFile, cF as remindersOf, cG as hasProviderCredentials, T as MODEL_REASONING_OVERRIDES, U as MODEL_THINKING_LEVEL_OVERRIDES, cH as appUserImageDirs, bU as APP_LOGGING_ENV, bW as RESTART_CHECKPOINT_ENV, aq as ELEVATE_ASKPASS_ENV, cI as parseAgentWorkerEvent, cJ as describeAgentWorkerExit, bm as RESTART_CHECKPOINT_FILE, cK as SECRETARY_FORCED_DISABLED_TOOLS, cL as parseWindowsLocalShell, aY as resolveCompactStrategy, cM as parseSmartCompactMode, cN as SECRETARY_ALWAYS_ENABLED_TOOLS, ap as childProfileShell, cO as sweepOrphanMcpServers, aR as MCP_SERVER_REGISTRY_DIR, cP as resolveImageGenerationConfig, cQ as normalizeMaxActiveCoworkers, cR as normalizeAutoRetryLimit, cS as parsePrivacyMaskSettings, cT as reminderReviveDelay, cU as directMemberRef, p as parseApprovalAllowThreshold, cV as DEFAULT_APPROVAL_ALLOW_THRESHOLD, bX as parseAgentCommand, cW as resolveShellLimits, cX as materializeProviders, k as providerKeyFor, cY as parseVirtualModels, V as VIRTUAL_PROVIDER_ID, cZ as classifierProviderFor, c_ as classifierBaseUrlFor, c$ as childProfileToolIds, d0 as pickModelCapabilityOverrides, d1 as canBeVirtualMember, d2 as mcpTimeoutsForSpawn, bg as parseJsonFromAssistant, bh as validateAgainstSchema, d3 as AGENT_TASK_MAX_RESUMES, d4 as AGENT_WAIT_DEFAULT_MS, d5 as AGENT_WAIT_MAX_MS, ba as classifyUpstreamError, b0 as HUMAN_REQUEST_TIMEOUT_MS, a7 as projectMessage, d6 as sessionEntryToContextMessages, d7 as withPrivacyMask, d8 as withUserEntryIds, d9 as LOCAL_IMAGE_SCHEME, da as REMOTE_FETCH_HOST, db as BOT_AVATAR_HOST, dc as SECRETARY_AVATAR_HOST, dd as PLUGIN_ASSET_HOST, de as SECRETARY_REPORT_HOST, df as mediaExtension, dg as localImageUrlToPath, dh as isMediaPath, di as isVideoPath, dj as IMAGE_EXTENSIONS$1, dk as isDeliveryId, dl as SNAPSHOT_TAIL_MESSAGES, dm as splitUnattendedPrefix, dn as userTextWithoutSkills, dp as withoutQuoteBlocks, dq as quotesAsMarkdown, dr as splitPlanPrefix, ds as parseGoalResultView, dt as parseSecretarySkillDraft, du as parseSecretaryToolDraft, dv as hasNeedsUser, dw as shownNeedsUser, dx as stripGoalResultNeedsUser, dy as nextPendingReminder, dz as needsUserItems, az as resolveRoots, dA as defaultImageRoots, ay as readImageView, dB as classifyCommand, dC as formatGoalResultClaims, dD as parseGoalUpstreamRetry, dE as formatGoalResultChecks, dF as escalateGoalResultNeedsUser, dG as answerGoalResultNeedsUser, dH as nextPendingRetryDelayMs, aE as SECRETARY_ATTACHMENT_PATH_MAX, aH as SECRETARY_ATTACHMENT_MAX, aF as SECRETARY_SEND_MODES, aC as SECRETARY_ID_MAX, aG as SECRETARY_SESSION_MESSAGE_MAX, dI as probeImageView, dJ as isSecretarySlug, dK as secretaryToolScriptFile, dL as parseSecretaryToolFile, dM as renderSecretaryToolFile, dN as secretaryToolDescriptor, dO as TOOL_TIMEOUT_DEFAULT, dP as TOOL_OUTPUT_MAX, dQ as inImageViewScope, dR as IMAGE_VIEW_MAX_BYTES, aA as systemImageRoots, dS as isSecretarySkillName, aD as SECRETARY_CONTACT_CAPTION_MAX, dT as validateScopedFile, dU as readImageFacts, dV as removeSessionTempDir, dW as resolveSshTarget, dX as nextUpstreamRetryAt, dY as checkPassed, dZ as checkFailureText, d_ as parseVirtualClassifier, d$ as VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS, bp as buildInitialTitleUserText, br as TITLE_SYSTEM_PROMPT, bc as buildTurnDigest, bq as ROLLING_TITLE_SYSTEM_PROMPT, bo as buildRollingTitleUserText, bv as titleSummaryTimeoutMs, bs as extractTitle, bt as titleRejectReason, e0 as parseCreateConversationAuthorityRequest, e1 as parseConversationAuthorityRequest, e2 as parseUpdateConversationSelectionRequest, e3 as parseTitleSummaryInput, e4 as parseParentSourceBindingRequest, e5 as parseParentModelSelectionRequest, e6 as parseAgentDispatchRequest, e7 as isApprovalDecision, e8 as TASK_KEEP_REASON_MAX, e9 as EnsoSafeJournal, aX as STALE_SESSION_ERROR, ea as isSecretFilePath, eb as isUnderSecretDirectory, ec as cleanToolBatchLabel, ed as toolBatchLabelPrompt, ee as TOOL_BATCH_LABEL_SYSTEM_PROMPT, h as estimateSkillTokens, j as estimateInstructionTokens, ef as estimateToolsTotal, $ as assignMcpToolNames, a0 as createStdioTransport, b3 as listWorkflowPresets, b2 as workflowPresetRoots, eg as listCustomWorkflowPresets, eh as listBuiltinWorkflowPresets, ei as readCustomWorkflowPreset, ej as parseWorkflowPresetDraft, ek as saveCustomWorkflowPreset, el as deleteCustomWorkflowPreset, em as parseBtwPromptRequest, en as btwModelCandidates, eo as TITLE_SUMMARY_MAX_CANDIDATES, ep as parseBtwAbortRequest, eq as parseBtwSpawnRequest, er as BTW_DISABLED_TOOLS, es as parseBtwDisposeRequest, et as isDcgRuleId, aZ as createSshExecutor, eu as isHumanRequestTimeout, ev as buildSshExecArgs, ew as buildRemoteCommand, bQ as sshPasswordEnv, ex as listProjectCodeSources, ey as parseCreateProjectAuthorityRequest, ez as parseSelectProjectAuthorityRequest, eA as parseRemoveProjectAuthorityRequest, eB as withVersionSegment, eC as DEFAULT_BASE_URLS, eD as positiveFiniteNumber, a5 as isXaiChatModelId, eE as mergeFetchedOauthModels, eF as catalogModelLookup, Q as mergeCatalogEntry, eG as supportedProjectThinkingLevels, eH as upstreamContinuationText, eI as needsUserTriageDeadline, eJ as shouldSilenceTurn, eK as sessionIdsInUpdates, eL as messageText$1, eM as isPureSessionUpdate, eN as formatRetryClock, eO as hasPendingReminder, eP as formatReminderClock, eQ as buildSshPtyArgs, bP as resolveSshControlPath, I as version$1, eR as ENSO_HEADLESS_RUN_ENV } from "./chunks/workflowPresets-CPtxxd8V.js";
|
|
11
11
|
import { f as isSameChildSessionIdentity, n as isReservedAgentTypeName, o as BUILTIN_AGENT_TYPES, q as PLUGIN_HOST_APIS, m as pluginToolName, r as PLUGIN_INJECT_MAX_CHARS, s as PLUGIN_AGENT_RUN_ID, t as PLUGIN_AGENT_PROMPT_MAX_CHARS, u as PLUGIN_AGENT_SYSTEM_MAX_CHARS, v as PLUGIN_AGENT_DEFAULT_TIMEOUT_MS, w as PLUGIN_AGENT_MAX_TIMEOUT_MS, x as parsePluginInjectImages, b as parsePluginInjectSender, y as isHostPluginEvent, z as parsePluginToolName, D as initialInterceptState, c as isChildInterceptEvent, E as CHILD_INTERCEPT_TOTAL_TIMEOUT_MS, I as INTERCEPT_TOTAL_TIMEOUT_MS, F as CHILD_INTERCEPT_TIMEOUT_MS, G as INTERCEPT_TIMEOUT_MS, H as applyInterceptResult, J as failClosedResult, l as pluginFailureLogLevel, O as OBSERVE_TIMEOUT_MS, K as BEFORE_COMPACT_TIMEOUT_MS, L as PLUGIN_PROGRESS_MAX_CHARS, M as MCP_TRANSPORTS, N as parseDisabledWorkflowPresets, Q as visibleMemberAgentTypes, R as buildAgentTypeRegistrySnapshot, S as DEFAULT_PRESET_ID, T as PLUGIN_INJECT_WIRE_MAX_CHARS, p as parseChildSessionIdentity, i as isUuid } from "./chunks/killTree-T-p6Lr3w.js";
|
|
12
12
|
import { T as THINKING_LEVELS, A as APPROVAL_MODES$1, a as TURN_REPORT_MAX_CHARS } from "./chunks/agentConstants-D4t7d6iS.js";
|
|
13
13
|
import { b as SECRETARY_IMAGES_REL, d as SECRETARY_REPORTS_REL, e as chromiumRole, A as AGENT_SERVICE_NAME, f as descendantPids, g as commandLabel, h as parseWinProcesses, i as parsePsArgs, j as parsePs, k as cpuPercent, l as isCleanableStorageCategory, m as parseSessionCleanRequest } from "./chunks/resources-BfbTkFP0.js";
|
|
@@ -344,6 +344,10 @@ const zhTranslations = {
|
|
|
344
344
|
"Restarting server…": "正在重启服务端…",
|
|
345
345
|
"Updating…": "正在更新…",
|
|
346
346
|
"New version {{version}} is downloaded. Applying it installs and then stops the server — you will need to restart it externally (container or process manager).": "新版本 {{version}} 已下载。应用更新会安装后停止服务端——它需要你在容器或进程管理器里外部重启。",
|
|
347
|
+
"Waits for running tasks to finish before restarting; this page reconnects after the server is back. Force restart does not wait.": "重启前先等正在跑的任务收完;服务端起来后本页自动重连。「立即重启」不等待。",
|
|
348
|
+
"Restart now": "立即重启",
|
|
349
|
+
"Running tasks finish first, then the server restarts; this page reconnects when it is back.": "正在跑的任务先收完,然后服务端重启;起来后本页自动重连。",
|
|
350
|
+
"Download and install updates automatically: running tasks finish first, then the server restarts and they resume.": "自动下载并安装更新:正在跑的任务先收完,然后服务端重启,任务重启后续跑。",
|
|
347
351
|
"Automatic updates": "自动更新",
|
|
348
352
|
"Download and install updates automatically": "自动下载并安装更新",
|
|
349
353
|
"Restart automatically to apply updates": "自动重启以应用更新",
|
|
@@ -4287,143 +4291,6 @@ function processMetrics() {
|
|
|
4287
4291
|
}
|
|
4288
4292
|
];
|
|
4289
4293
|
}
|
|
4290
|
-
const PREFIX$2 = "bot-chat:";
|
|
4291
|
-
const botBrowserKey = (chatId) => `${PREFIX$2}${chatId}`;
|
|
4292
|
-
function browserSessionKey(sessionId, bot, delegationChatId, rootOf2 = (chatId) => chatId) {
|
|
4293
|
-
const chatId = bot?.chatId ?? (bot?.delegationId ? delegationChatId?.(bot.delegationId) : void 0);
|
|
4294
|
-
return chatId ? botBrowserKey(rootOf2(chatId)) : sessionId;
|
|
4295
|
-
}
|
|
4296
|
-
const CONVERSATION_ID$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
4297
|
-
function conversationCwd(input) {
|
|
4298
|
-
if (input.kind === "scratch") {
|
|
4299
|
-
if (!input.canonicalPath || !CONVERSATION_ID$2.test(input.conversationId)) return null;
|
|
4300
|
-
const sep2 = input.canonicalPath.includes("/") ? "/" : "\\";
|
|
4301
|
-
return `${input.canonicalPath.replace(/[\\/]+$/, "")}${sep2}${input.conversationId}`;
|
|
4302
|
-
}
|
|
4303
|
-
if (input.kind === "secretary") return input.canonicalPath || null;
|
|
4304
|
-
if (input.kind === "ssh") return input.canonicalPath || null;
|
|
4305
|
-
if (input.worktreePath) return input.worktreePath;
|
|
4306
|
-
return input.canonicalPath || null;
|
|
4307
|
-
}
|
|
4308
|
-
function asThinkingLevel(value) {
|
|
4309
|
-
return value && THINKING_LEVELS.includes(value) ? value : void 0;
|
|
4310
|
-
}
|
|
4311
|
-
function asApprovalMode(value) {
|
|
4312
|
-
return value && APPROVAL_MODES$1.includes(value) ? value : void 0;
|
|
4313
|
-
}
|
|
4314
|
-
function planPairResume(input) {
|
|
4315
|
-
if (input.alive) return { type: "snapshot" };
|
|
4316
|
-
const conversation = input.conversation;
|
|
4317
|
-
if (!conversation) return { type: "skip", reason: "unknown session" };
|
|
4318
|
-
if (!conversation.sessionFile) return { type: "skip", reason: "no session file" };
|
|
4319
|
-
if (input.worktreeMissing) return { type: "skip", reason: "worktree missing" };
|
|
4320
|
-
if (!conversation.lastProviderId || !conversation.lastModelId) {
|
|
4321
|
-
return { type: "skip", reason: "no remembered model" };
|
|
4322
|
-
}
|
|
4323
|
-
const cwd = input.worktreePath ?? input.projectPath;
|
|
4324
|
-
if (!cwd) return { type: "skip", reason: "no cwd" };
|
|
4325
|
-
const thinkingLevel = asThinkingLevel(conversation.thinkingLevel);
|
|
4326
|
-
const approvalMode = asApprovalMode(conversation.approvalMode);
|
|
4327
|
-
return {
|
|
4328
|
-
type: "spawn",
|
|
4329
|
-
request: {
|
|
4330
|
-
sessionId: conversation.sessionId,
|
|
4331
|
-
providerId: conversation.lastProviderId,
|
|
4332
|
-
modelId: conversation.lastModelId,
|
|
4333
|
-
cwd,
|
|
4334
|
-
resumeFile: conversation.sessionFile,
|
|
4335
|
-
loadLocalSkills: input.loadLocalSkills,
|
|
4336
|
-
...conversation.reasoningEnabled ? { reasoningEnabled: true } : {},
|
|
4337
|
-
...thinkingLevel ? { thinkingLevel } : {},
|
|
4338
|
-
...conversation.presetId ? { presetId: conversation.presetId } : {},
|
|
4339
|
-
...approvalMode ? { approvalMode } : {},
|
|
4340
|
-
...conversation.autoRejectApprovals ? { autoRejectApprovals: true } : {}
|
|
4341
|
-
}
|
|
4342
|
-
};
|
|
4343
|
-
}
|
|
4344
|
-
function projectSafeJournal(records) {
|
|
4345
|
-
const messages = [];
|
|
4346
|
-
const customEntries = [];
|
|
4347
|
-
for (const record2 of records) {
|
|
4348
|
-
switch (record2.type) {
|
|
4349
|
-
case "safe-user-text":
|
|
4350
|
-
messages.push({
|
|
4351
|
-
role: "user",
|
|
4352
|
-
content: [{ type: "text", text: record2.text }],
|
|
4353
|
-
timestamp: record2.at
|
|
4354
|
-
});
|
|
4355
|
-
break;
|
|
4356
|
-
case "safe-assistant-text":
|
|
4357
|
-
messages.push({
|
|
4358
|
-
role: "assistant",
|
|
4359
|
-
content: [{ type: "text", text: record2.text }],
|
|
4360
|
-
timestamp: record2.at
|
|
4361
|
-
});
|
|
4362
|
-
break;
|
|
4363
|
-
case "capability-receipt":
|
|
4364
|
-
customEntries.push({ kind: "capability-receipt", receipt: record2.receipt });
|
|
4365
|
-
break;
|
|
4366
|
-
}
|
|
4367
|
-
}
|
|
4368
|
-
return { messages, customEntries };
|
|
4369
|
-
}
|
|
4370
|
-
const REJECTION_TEXT = {
|
|
4371
|
-
"too-large": "超过 10MB,没有保存",
|
|
4372
|
-
"not-image": "不是 png / jpeg / webp / gif 图片,没有保存",
|
|
4373
|
-
unavailable: "没能保存"
|
|
4374
|
-
};
|
|
4375
|
-
function formatInboundImageLines(lines) {
|
|
4376
|
-
return lines.map(
|
|
4377
|
-
(line2, index2) => "path" in line2 ? `[图片 ${index2 + 1}] ${line2.path}` : `[图片 ${index2 + 1} 未收下] ${REJECTION_TEXT[line2.rejected]}`
|
|
4378
|
-
).join("\n");
|
|
4379
|
-
}
|
|
4380
|
-
function appendInboundImageLines(text2, lines) {
|
|
4381
|
-
if (lines.length === 0) return text2;
|
|
4382
|
-
const block = formatInboundImageLines(lines);
|
|
4383
|
-
return text2 ? `${text2}
|
|
4384
|
-
|
|
4385
|
-
${block}` : block;
|
|
4386
|
-
}
|
|
4387
|
-
const INBOUND_IMAGE_LINE = String.raw`\[图片 \d+(?: 未收下)?\] [^\n]*`;
|
|
4388
|
-
function parseInboundImagePaths(block) {
|
|
4389
|
-
return [...block.matchAll(/^\[图片 \d+\] (.+)$/gmu)].map((match) => match[1]);
|
|
4390
|
-
}
|
|
4391
|
-
const REJECTION_OF = new Map(
|
|
4392
|
-
Object.entries(REJECTION_TEXT).map(([kind, text2]) => [text2, kind])
|
|
4393
|
-
);
|
|
4394
|
-
function isAbsolutePath(value) {
|
|
4395
|
-
return /^(?:\/|[A-Za-z]:\/)/u.test(value.replace(/\\/gu, "/"));
|
|
4396
|
-
}
|
|
4397
|
-
function isSavedImagePath(value) {
|
|
4398
|
-
return isAbsolutePath(value) && value.replace(/\\/gu, "/").includes(`/${SECRETARY_IMAGES_REL}/`);
|
|
4399
|
-
}
|
|
4400
|
-
function parseInboundImageEntries(block, attached = 0) {
|
|
4401
|
-
const entries = [];
|
|
4402
|
-
for (const [i, row] of block.split("\n").entries()) {
|
|
4403
|
-
const match = /^\[图片 (\d+)( 未收下)?\] (.+)$/u.exec(row);
|
|
4404
|
-
if (!match || Number(match[1]) !== i + 1) return null;
|
|
4405
|
-
const value = match[3];
|
|
4406
|
-
if (match[2]) {
|
|
4407
|
-
const rejected = REJECTION_OF.get(value);
|
|
4408
|
-
if (!rejected) return null;
|
|
4409
|
-
entries.push({ index: i + 1, rejected });
|
|
4410
|
-
} else {
|
|
4411
|
-
if (!(i < attached ? isAbsolutePath(value) : isSavedImagePath(value))) return null;
|
|
4412
|
-
entries.push({ index: i + 1, path: value });
|
|
4413
|
-
}
|
|
4414
|
-
}
|
|
4415
|
-
return entries;
|
|
4416
|
-
}
|
|
4417
|
-
function inboundImageNotice(rejected, lang) {
|
|
4418
|
-
const tooLarge = rejected.includes("too-large");
|
|
4419
|
-
const notImage = rejected.includes("not-image");
|
|
4420
|
-
if (lang === "zh") {
|
|
4421
|
-
const why2 = [tooLarge ? "超过 10MB" : "", notImage ? "不是图片" : ""].filter(Boolean);
|
|
4422
|
-
return `有 ${rejected.length} 个附件没收下${why2.length ? `(${why2.join("、")})` : ""}。只收 10MB 以内的 png / jpeg / webp / gif 图片。`;
|
|
4423
|
-
}
|
|
4424
|
-
const why = [tooLarge ? "over 10 MB" : "", notImage ? "not an image" : ""].filter(Boolean);
|
|
4425
|
-
return `${rejected.length} attachment(s) were not accepted${why.length ? ` (${why.join(", ")})` : ""}. Only png, jpeg, webp or gif images up to 10 MB are accepted.`;
|
|
4426
|
-
}
|
|
4427
4294
|
const IPC_CHANNELS = {
|
|
4428
4295
|
// 设置持久化
|
|
4429
4296
|
SETTINGS_READ: "settings:read",
|
|
@@ -5168,6 +5035,143 @@ const IPC_CHANNELS = {
|
|
|
5168
5035
|
/** 桌面专用:配置项选择文件或目录,只把路径字符串交回界面 */
|
|
5169
5036
|
EXTENSION_PLUGINS_PICK_PATH: "extension-plugins:pick-path"
|
|
5170
5037
|
};
|
|
5038
|
+
const PREFIX$2 = "bot-chat:";
|
|
5039
|
+
const botBrowserKey = (chatId) => `${PREFIX$2}${chatId}`;
|
|
5040
|
+
function browserSessionKey(sessionId, bot, delegationChatId, rootOf2 = (chatId) => chatId) {
|
|
5041
|
+
const chatId = bot?.chatId ?? (bot?.delegationId ? delegationChatId?.(bot.delegationId) : void 0);
|
|
5042
|
+
return chatId ? botBrowserKey(rootOf2(chatId)) : sessionId;
|
|
5043
|
+
}
|
|
5044
|
+
const CONVERSATION_ID$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
5045
|
+
function conversationCwd(input) {
|
|
5046
|
+
if (input.kind === "scratch") {
|
|
5047
|
+
if (!input.canonicalPath || !CONVERSATION_ID$2.test(input.conversationId)) return null;
|
|
5048
|
+
const sep2 = input.canonicalPath.includes("/") ? "/" : "\\";
|
|
5049
|
+
return `${input.canonicalPath.replace(/[\\/]+$/, "")}${sep2}${input.conversationId}`;
|
|
5050
|
+
}
|
|
5051
|
+
if (input.kind === "secretary") return input.canonicalPath || null;
|
|
5052
|
+
if (input.kind === "ssh") return input.canonicalPath || null;
|
|
5053
|
+
if (input.worktreePath) return input.worktreePath;
|
|
5054
|
+
return input.canonicalPath || null;
|
|
5055
|
+
}
|
|
5056
|
+
function asThinkingLevel(value) {
|
|
5057
|
+
return value && THINKING_LEVELS.includes(value) ? value : void 0;
|
|
5058
|
+
}
|
|
5059
|
+
function asApprovalMode(value) {
|
|
5060
|
+
return value && APPROVAL_MODES$1.includes(value) ? value : void 0;
|
|
5061
|
+
}
|
|
5062
|
+
function planPairResume(input) {
|
|
5063
|
+
if (input.alive) return { type: "snapshot" };
|
|
5064
|
+
const conversation = input.conversation;
|
|
5065
|
+
if (!conversation) return { type: "skip", reason: "unknown session" };
|
|
5066
|
+
if (!conversation.sessionFile) return { type: "skip", reason: "no session file" };
|
|
5067
|
+
if (input.worktreeMissing) return { type: "skip", reason: "worktree missing" };
|
|
5068
|
+
if (!conversation.lastProviderId || !conversation.lastModelId) {
|
|
5069
|
+
return { type: "skip", reason: "no remembered model" };
|
|
5070
|
+
}
|
|
5071
|
+
const cwd = input.worktreePath ?? input.projectPath;
|
|
5072
|
+
if (!cwd) return { type: "skip", reason: "no cwd" };
|
|
5073
|
+
const thinkingLevel = asThinkingLevel(conversation.thinkingLevel);
|
|
5074
|
+
const approvalMode = asApprovalMode(conversation.approvalMode);
|
|
5075
|
+
return {
|
|
5076
|
+
type: "spawn",
|
|
5077
|
+
request: {
|
|
5078
|
+
sessionId: conversation.sessionId,
|
|
5079
|
+
providerId: conversation.lastProviderId,
|
|
5080
|
+
modelId: conversation.lastModelId,
|
|
5081
|
+
cwd,
|
|
5082
|
+
resumeFile: conversation.sessionFile,
|
|
5083
|
+
loadLocalSkills: input.loadLocalSkills,
|
|
5084
|
+
...conversation.reasoningEnabled ? { reasoningEnabled: true } : {},
|
|
5085
|
+
...thinkingLevel ? { thinkingLevel } : {},
|
|
5086
|
+
...conversation.presetId ? { presetId: conversation.presetId } : {},
|
|
5087
|
+
...approvalMode ? { approvalMode } : {},
|
|
5088
|
+
...conversation.autoRejectApprovals ? { autoRejectApprovals: true } : {}
|
|
5089
|
+
}
|
|
5090
|
+
};
|
|
5091
|
+
}
|
|
5092
|
+
function projectSafeJournal(records) {
|
|
5093
|
+
const messages = [];
|
|
5094
|
+
const customEntries = [];
|
|
5095
|
+
for (const record2 of records) {
|
|
5096
|
+
switch (record2.type) {
|
|
5097
|
+
case "safe-user-text":
|
|
5098
|
+
messages.push({
|
|
5099
|
+
role: "user",
|
|
5100
|
+
content: [{ type: "text", text: record2.text }],
|
|
5101
|
+
timestamp: record2.at
|
|
5102
|
+
});
|
|
5103
|
+
break;
|
|
5104
|
+
case "safe-assistant-text":
|
|
5105
|
+
messages.push({
|
|
5106
|
+
role: "assistant",
|
|
5107
|
+
content: [{ type: "text", text: record2.text }],
|
|
5108
|
+
timestamp: record2.at
|
|
5109
|
+
});
|
|
5110
|
+
break;
|
|
5111
|
+
case "capability-receipt":
|
|
5112
|
+
customEntries.push({ kind: "capability-receipt", receipt: record2.receipt });
|
|
5113
|
+
break;
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
return { messages, customEntries };
|
|
5117
|
+
}
|
|
5118
|
+
const REJECTION_TEXT = {
|
|
5119
|
+
"too-large": "超过 10MB,没有保存",
|
|
5120
|
+
"not-image": "不是 png / jpeg / webp / gif 图片,没有保存",
|
|
5121
|
+
unavailable: "没能保存"
|
|
5122
|
+
};
|
|
5123
|
+
function formatInboundImageLines(lines) {
|
|
5124
|
+
return lines.map(
|
|
5125
|
+
(line2, index2) => "path" in line2 ? `[图片 ${index2 + 1}] ${line2.path}` : `[图片 ${index2 + 1} 未收下] ${REJECTION_TEXT[line2.rejected]}`
|
|
5126
|
+
).join("\n");
|
|
5127
|
+
}
|
|
5128
|
+
function appendInboundImageLines(text2, lines) {
|
|
5129
|
+
if (lines.length === 0) return text2;
|
|
5130
|
+
const block = formatInboundImageLines(lines);
|
|
5131
|
+
return text2 ? `${text2}
|
|
5132
|
+
|
|
5133
|
+
${block}` : block;
|
|
5134
|
+
}
|
|
5135
|
+
const INBOUND_IMAGE_LINE = String.raw`\[图片 \d+(?: 未收下)?\] [^\n]*`;
|
|
5136
|
+
function parseInboundImagePaths(block) {
|
|
5137
|
+
return [...block.matchAll(/^\[图片 \d+\] (.+)$/gmu)].map((match) => match[1]);
|
|
5138
|
+
}
|
|
5139
|
+
const REJECTION_OF = new Map(
|
|
5140
|
+
Object.entries(REJECTION_TEXT).map(([kind, text2]) => [text2, kind])
|
|
5141
|
+
);
|
|
5142
|
+
function isAbsolutePath(value) {
|
|
5143
|
+
return /^(?:\/|[A-Za-z]:\/)/u.test(value.replace(/\\/gu, "/"));
|
|
5144
|
+
}
|
|
5145
|
+
function isSavedImagePath(value) {
|
|
5146
|
+
return isAbsolutePath(value) && value.replace(/\\/gu, "/").includes(`/${SECRETARY_IMAGES_REL}/`);
|
|
5147
|
+
}
|
|
5148
|
+
function parseInboundImageEntries(block, attached = 0) {
|
|
5149
|
+
const entries = [];
|
|
5150
|
+
for (const [i, row] of block.split("\n").entries()) {
|
|
5151
|
+
const match = /^\[图片 (\d+)( 未收下)?\] (.+)$/u.exec(row);
|
|
5152
|
+
if (!match || Number(match[1]) !== i + 1) return null;
|
|
5153
|
+
const value = match[3];
|
|
5154
|
+
if (match[2]) {
|
|
5155
|
+
const rejected = REJECTION_OF.get(value);
|
|
5156
|
+
if (!rejected) return null;
|
|
5157
|
+
entries.push({ index: i + 1, rejected });
|
|
5158
|
+
} else {
|
|
5159
|
+
if (!(i < attached ? isAbsolutePath(value) : isSavedImagePath(value))) return null;
|
|
5160
|
+
entries.push({ index: i + 1, path: value });
|
|
5161
|
+
}
|
|
5162
|
+
}
|
|
5163
|
+
return entries;
|
|
5164
|
+
}
|
|
5165
|
+
function inboundImageNotice(rejected, lang) {
|
|
5166
|
+
const tooLarge = rejected.includes("too-large");
|
|
5167
|
+
const notImage = rejected.includes("not-image");
|
|
5168
|
+
if (lang === "zh") {
|
|
5169
|
+
const why2 = [tooLarge ? "超过 10MB" : "", notImage ? "不是图片" : ""].filter(Boolean);
|
|
5170
|
+
return `有 ${rejected.length} 个附件没收下${why2.length ? `(${why2.join("、")})` : ""}。只收 10MB 以内的 png / jpeg / webp / gif 图片。`;
|
|
5171
|
+
}
|
|
5172
|
+
const why = [tooLarge ? "over 10 MB" : "", notImage ? "not an image" : ""].filter(Boolean);
|
|
5173
|
+
return `${rejected.length} attachment(s) were not accepted${why.length ? ` (${why.join(", ")})` : ""}. Only png, jpeg, webp or gif images up to 10 MB are accepted.`;
|
|
5174
|
+
}
|
|
5171
5175
|
class ActiveConversationRegistry {
|
|
5172
5176
|
constructor(options) {
|
|
5173
5177
|
this.options = options;
|
|
@@ -9364,7 +9368,7 @@ function getRuntime() {
|
|
|
9364
9368
|
for (const [id, config] of verifyOauthProviders(app.isPackaged)) {
|
|
9365
9369
|
runtime.registerProvider(id, config);
|
|
9366
9370
|
}
|
|
9367
|
-
const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-
|
|
9371
|
+
const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-6Q-YAwjb.js").then((n) => n.d);
|
|
9368
9372
|
onlineCatalogProviderIds.add(CURSOR_PROVIDER_ID);
|
|
9369
9373
|
await loadCursorProvider(runtime);
|
|
9370
9374
|
installCodexLinkedRefresh(runtime);
|
|
@@ -10485,13 +10489,6 @@ function broadcastToRenderers(channel, ...args) {
|
|
|
10485
10489
|
for (const contents of []) contents.send(channel, ...args);
|
|
10486
10490
|
sendToRemoteRenderers(channel, args);
|
|
10487
10491
|
}
|
|
10488
|
-
function anyRendererFocused() {
|
|
10489
|
-
return false;
|
|
10490
|
-
}
|
|
10491
|
-
function userRecentlyActive(withinMs) {
|
|
10492
|
-
const ui = localUi();
|
|
10493
|
-
return Boolean(ui?.anyFocused());
|
|
10494
|
-
}
|
|
10495
10492
|
const CONVERSATIONS_KEY = "enso-conversations";
|
|
10496
10493
|
function withoutConversations(settings2) {
|
|
10497
10494
|
if (!settings2 || typeof settings2 !== "object" || !(CONVERSATIONS_KEY in settings2))
|
|
@@ -27457,7 +27454,7 @@ function setMemoryServiceProgressSink(sink2) {
|
|
|
27457
27454
|
}
|
|
27458
27455
|
async function readTranscriptMain(sessionFile) {
|
|
27459
27456
|
const [{ SessionManager, sessionEntryToContextMessages: sessionEntryToContextMessages2 }, { projectMessage: projectMessage2 }] = await Promise.all(
|
|
27460
|
-
[import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-
|
|
27457
|
+
[import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-CPtxxd8V.js").then((n) => n.fs)]
|
|
27461
27458
|
);
|
|
27462
27459
|
const root = path.resolve(path.join(app.getPath("userData"), "agent", "sessions"));
|
|
27463
27460
|
const resolved = path.resolve(sessionFile);
|
|
@@ -31280,17 +31277,6 @@ function setPairHeadless(active2) {
|
|
|
31280
31277
|
function isPairHeadless() {
|
|
31281
31278
|
return headless;
|
|
31282
31279
|
}
|
|
31283
|
-
function headlessIdleBlocks() {
|
|
31284
|
-
let queuedCount2 = 0;
|
|
31285
|
-
let pendingAskCount = 0;
|
|
31286
|
-
let pendingApprovalCount = 0;
|
|
31287
|
-
for (const runtime of runtimes.values()) {
|
|
31288
|
-
queuedCount2 += runtime.queued.length;
|
|
31289
|
-
pendingAskCount += runtime.pendingAsks;
|
|
31290
|
-
pendingApprovalCount += runtime.pendingApprovals;
|
|
31291
|
-
}
|
|
31292
|
-
return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
|
|
31293
|
-
}
|
|
31294
31280
|
function runtimeOf(sessionId) {
|
|
31295
31281
|
const current2 = runtimes.get(sessionId);
|
|
31296
31282
|
if (current2) return current2;
|
|
@@ -39982,7 +39968,7 @@ function dispatchPortsFor(ctx) {
|
|
|
39982
39968
|
} = await Promise.resolve().then(() => agentHost);
|
|
39983
39969
|
const { readStoredOauthCredentialKeys: readStoredOauthCredentialKeys2 } = await Promise.resolve().then(() => oauthProviders);
|
|
39984
39970
|
const { modelUsability: modelUsability2 } = await Promise.resolve().then(() => defaultModel);
|
|
39985
|
-
const { resolveDispatchModel } = await import("./chunks/dispatchModel-
|
|
39971
|
+
const { resolveDispatchModel } = await import("./chunks/dispatchModel-ztJp_gru.js");
|
|
39986
39972
|
let keys;
|
|
39987
39973
|
try {
|
|
39988
39974
|
keys = await readStoredOauthCredentialKeys2();
|
|
@@ -63828,7 +63814,7 @@ function registerAssetHandlers() {
|
|
|
63828
63814
|
ipcMain.handle(
|
|
63829
63815
|
IPC_CHANNELS.ASSETS_LIST_PROJECT_SKILLS,
|
|
63830
63816
|
async (_event, cwd, presetId) => {
|
|
63831
|
-
const { listProjectSkills, listSkillsAt } = await import("./chunks/menuSkills-
|
|
63817
|
+
const { listProjectSkills, listSkillsAt } = await import("./chunks/menuSkills-BPjdWW4F.js");
|
|
63832
63818
|
const agentDir2 = path.join(agentDataDir(), "pi-agent");
|
|
63833
63819
|
const plugin = listSkillsAt(
|
|
63834
63820
|
menuPluginSkillPaths(typeof presetId === "string" && presetId ? presetId : void 0),
|
|
@@ -63899,7 +63885,7 @@ function registerAssetHandlers() {
|
|
|
63899
63885
|
return occupancyForMcp(parseOccupancyIds(ids2), servers, listMcpOccupancyTools);
|
|
63900
63886
|
});
|
|
63901
63887
|
ipcMain.handle(IPC_CHANNELS.ASSETS_BUILTIN_TOOL_OCCUPANCY, async () => {
|
|
63902
|
-
const { snapshotBuiltinOccupancyTools } = await import("./chunks/builtinOccupancy-
|
|
63888
|
+
const { snapshotBuiltinOccupancyTools } = await import("./chunks/builtinOccupancy-8qzMLEUu.js");
|
|
63903
63889
|
return occupancyForBuiltinTools(snapshotBuiltinOccupancyTools());
|
|
63904
63890
|
});
|
|
63905
63891
|
ipcMain.handle(IPC_CHANNELS.INSTRUCTIONS_READ, (_event, id) => {
|
|
@@ -82332,9 +82318,6 @@ function registerTerminalHandlers() {
|
|
|
82332
82318
|
}
|
|
82333
82319
|
const withDraft = /* @__PURE__ */ new Set();
|
|
82334
82320
|
const watched = /* @__PURE__ */ new Set();
|
|
82335
|
-
function anyUnsentDraft() {
|
|
82336
|
-
return withDraft.size > 0;
|
|
82337
|
-
}
|
|
82338
82321
|
function registerUnsentDraftHandlers() {
|
|
82339
82322
|
ipcMain.on(IPC_CHANNELS.COMPOSER_UNSENT_DRAFT, (event, has) => {
|
|
82340
82323
|
if (typeof has !== "boolean") return;
|
|
@@ -88874,6 +88857,19 @@ function parseControlCommand(line2) {
|
|
|
88874
88857
|
if (typeof id !== "string" || !id.trim()) return { error: "revoke requires id" };
|
|
88875
88858
|
return { cmd, id: id.trim() };
|
|
88876
88859
|
}
|
|
88860
|
+
if (cmd === "debug-applying") {
|
|
88861
|
+
const stage = parsed.stage;
|
|
88862
|
+
if (stage !== "waiting-tasks" && stage !== "installing" && stage !== "restarting")
|
|
88863
|
+
return { error: "debug-applying requires stage waiting-tasks|installing|restarting" };
|
|
88864
|
+
const busyCount = parsed.busyCount;
|
|
88865
|
+
const version2 = parsed.version;
|
|
88866
|
+
return {
|
|
88867
|
+
cmd,
|
|
88868
|
+
stage,
|
|
88869
|
+
busyCount: typeof busyCount === "number" ? busyCount : void 0,
|
|
88870
|
+
version: typeof version2 === "string" ? version2 : void 0
|
|
88871
|
+
};
|
|
88872
|
+
}
|
|
88877
88873
|
if (cmd === "plugin") return parsePluginCommand(parsed);
|
|
88878
88874
|
return { error: "unknown command" };
|
|
88879
88875
|
}
|
|
@@ -90044,7 +90040,6 @@ ${RUN_USAGE}
|
|
|
90044
90040
|
process.off("SIGTERM", onSignal);
|
|
90045
90041
|
}
|
|
90046
90042
|
}
|
|
90047
|
-
const AUTO_RESTART_IDLE_MS = 5 * 60 * 1e3;
|
|
90048
90043
|
const AUTO_RESTART_MODES = ["off", "idle", "immediate"];
|
|
90049
90044
|
function isAutoRestartMode(value) {
|
|
90050
90045
|
return AUTO_RESTART_MODES.includes(value);
|
|
@@ -90055,93 +90050,6 @@ function resolveAutoRestartMode(state) {
|
|
|
90055
90050
|
if (isAutoRestartMode(source2.autoRestartForUpdate)) return source2.autoRestartForUpdate;
|
|
90056
90051
|
return source2.autoRestartWhenIdle === true ? "idle" : "off";
|
|
90057
90052
|
}
|
|
90058
|
-
function isTurnRestartBlocked(snapshot2) {
|
|
90059
|
-
return snapshot2.agentBusy || snapshot2.queuedCount > 0 || snapshot2.pendingAskCount > 0 || snapshot2.pendingApprovalCount > 0;
|
|
90060
|
-
}
|
|
90061
|
-
function isAutoRestartBlocked(snapshot2) {
|
|
90062
|
-
if (snapshot2.mode === "immediate")
|
|
90063
|
-
return snapshot2.userActive || snapshot2.unsentDraft || snapshot2.pendingAskCount > 0 || snapshot2.pendingApprovalCount > 0;
|
|
90064
|
-
return isTurnRestartBlocked(snapshot2) || snapshot2.windowFocused;
|
|
90065
|
-
}
|
|
90066
|
-
function shouldAutoRestartForUpdate(snapshot2) {
|
|
90067
|
-
if (snapshot2.mode === "off" || isAutoRestartBlocked(snapshot2)) return false;
|
|
90068
|
-
return snapshot2.mode === "immediate" || snapshot2.idleForMs >= AUTO_RESTART_IDLE_MS;
|
|
90069
|
-
}
|
|
90070
|
-
function countQueuedMessages(value) {
|
|
90071
|
-
return Array.isArray(value) ? value.length : 0;
|
|
90072
|
-
}
|
|
90073
|
-
function countCatalogIdleBlocks(catalog2) {
|
|
90074
|
-
let queuedCount2 = 0;
|
|
90075
|
-
let pendingAskCount = 0;
|
|
90076
|
-
let pendingApprovalCount = 0;
|
|
90077
|
-
for (const entry of catalog2) {
|
|
90078
|
-
queuedCount2 += entry.queued?.length ?? 0;
|
|
90079
|
-
pendingAskCount += entry.pendingAskCount ?? 0;
|
|
90080
|
-
pendingApprovalCount += entry.pendingApprovalCount ?? 0;
|
|
90081
|
-
}
|
|
90082
|
-
return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
|
|
90083
|
-
}
|
|
90084
|
-
function persistedConversations(settings2) {
|
|
90085
|
-
if (!settings2 || typeof settings2 !== "object") return null;
|
|
90086
|
-
const store = settings2["enso-conversations"];
|
|
90087
|
-
if (!store || typeof store !== "object") return null;
|
|
90088
|
-
const state = store.state;
|
|
90089
|
-
if (!state || typeof state !== "object") return null;
|
|
90090
|
-
const conversations = state.conversations;
|
|
90091
|
-
if (!conversations || typeof conversations !== "object" || Array.isArray(conversations)) {
|
|
90092
|
-
return null;
|
|
90093
|
-
}
|
|
90094
|
-
return conversations;
|
|
90095
|
-
}
|
|
90096
|
-
function countPersistedQueuedMessages(conversations) {
|
|
90097
|
-
if (!conversations || typeof conversations !== "object") return 0;
|
|
90098
|
-
let total = 0;
|
|
90099
|
-
for (const value of Object.values(conversations)) {
|
|
90100
|
-
const row = value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
90101
|
-
total += countQueuedMessages(row?.queuedMessages);
|
|
90102
|
-
}
|
|
90103
|
-
return total;
|
|
90104
|
-
}
|
|
90105
|
-
function nextIdleSince(prev, blocked, now) {
|
|
90106
|
-
return blocked ? null : prev ?? now;
|
|
90107
|
-
}
|
|
90108
|
-
function idleDurationMs(idleSince, now) {
|
|
90109
|
-
return idleSince === null ? 0 : Math.max(0, now - idleSince);
|
|
90110
|
-
}
|
|
90111
|
-
function mergeIdleRestartBlocks(...blocks) {
|
|
90112
|
-
let queuedCount2 = 0;
|
|
90113
|
-
let pendingAskCount = 0;
|
|
90114
|
-
let pendingApprovalCount = 0;
|
|
90115
|
-
for (const block of blocks) {
|
|
90116
|
-
if (block.queuedCount > queuedCount2) queuedCount2 = block.queuedCount;
|
|
90117
|
-
if (block.pendingAskCount > pendingAskCount) pendingAskCount = block.pendingAskCount;
|
|
90118
|
-
if (block.pendingApprovalCount > pendingApprovalCount) {
|
|
90119
|
-
pendingApprovalCount = block.pendingApprovalCount;
|
|
90120
|
-
}
|
|
90121
|
-
}
|
|
90122
|
-
return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
|
|
90123
|
-
}
|
|
90124
|
-
function remainingIdleMs(idleSince, now, holdMs = AUTO_RESTART_IDLE_MS) {
|
|
90125
|
-
if (idleSince === null) return null;
|
|
90126
|
-
return Math.max(0, holdMs - idleDurationMs(idleSince, now));
|
|
90127
|
-
}
|
|
90128
|
-
function currentIdleRestartObservation() {
|
|
90129
|
-
const catalog2 = countCatalogIdleBlocks(getPairCatalog());
|
|
90130
|
-
const headless2 = isPairHeadless() ? headlessIdleBlocks() : { queuedCount: 0, pendingAskCount: 0, pendingApprovalCount: 0 };
|
|
90131
|
-
const persistedQueued = countPersistedQueuedMessages(persistedConversations(readSettings()));
|
|
90132
|
-
const blocks = mergeIdleRestartBlocks(
|
|
90133
|
-
{ queuedCount: persistedQueued, pendingAskCount: 0, pendingApprovalCount: 0 },
|
|
90134
|
-
catalog2,
|
|
90135
|
-
headless2
|
|
90136
|
-
);
|
|
90137
|
-
return {
|
|
90138
|
-
agentBusy: agentSessionIndex.anyWorkspaceBusy(),
|
|
90139
|
-
windowFocused: anyRendererFocused(),
|
|
90140
|
-
userActive: userRecentlyActive(),
|
|
90141
|
-
unsentDraft: anyUnsentDraft(),
|
|
90142
|
-
...blocks
|
|
90143
|
-
};
|
|
90144
|
-
}
|
|
90145
90053
|
const run = promisify(execFile);
|
|
90146
90054
|
function npmBin() {
|
|
90147
90055
|
const sibling = path.join(path.dirname(process.execPath), "npm");
|
|
@@ -90255,34 +90163,6 @@ function spawnReexec(dataDir2) {
|
|
|
90255
90163
|
});
|
|
90256
90164
|
child.unref();
|
|
90257
90165
|
}
|
|
90258
|
-
class IdleRestartGate {
|
|
90259
|
-
idleSince = null;
|
|
90260
|
-
failed = false;
|
|
90261
|
-
evaluate(observation, mode2, now) {
|
|
90262
|
-
if (this.failed) return false;
|
|
90263
|
-
const snapshot2 = { ...observation, mode: mode2 };
|
|
90264
|
-
this.idleSince = nextIdleSince(this.idleSince, isAutoRestartBlocked(snapshot2), now);
|
|
90265
|
-
return shouldAutoRestartForUpdate({
|
|
90266
|
-
...snapshot2,
|
|
90267
|
-
idleForMs: idleDurationMs(this.idleSince, now)
|
|
90268
|
-
});
|
|
90269
|
-
}
|
|
90270
|
-
markFailed() {
|
|
90271
|
-
this.failed = true;
|
|
90272
|
-
this.idleSince = null;
|
|
90273
|
-
}
|
|
90274
|
-
reset() {
|
|
90275
|
-
this.idleSince = null;
|
|
90276
|
-
this.failed = false;
|
|
90277
|
-
}
|
|
90278
|
-
delayUntilReadyMs(now) {
|
|
90279
|
-
if (this.failed) return null;
|
|
90280
|
-
return remainingIdleMs(this.idleSince, now);
|
|
90281
|
-
}
|
|
90282
|
-
isFailed() {
|
|
90283
|
-
return this.failed;
|
|
90284
|
-
}
|
|
90285
|
-
}
|
|
90286
90166
|
const NPM_PACKAGE = "@ensocode/server";
|
|
90287
90167
|
const DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
90288
90168
|
const SEMVER = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/;
|
|
@@ -90329,7 +90209,6 @@ const WAIT_FOR_TASKS_MS = 5 * 60 * 1e3;
|
|
|
90329
90209
|
const WAIT_POLL_MS = 1e3;
|
|
90330
90210
|
const CHECK_INTERVAL_MS = 6 * 60 * 60 * 1e3;
|
|
90331
90211
|
const INITIAL_CHECK_MS = 3e4;
|
|
90332
|
-
const BUSY_POLL_MS = 5e3;
|
|
90333
90212
|
const message = (error) => error instanceof Error ? error.message : String(error);
|
|
90334
90213
|
class ServerUpdater {
|
|
90335
90214
|
constructor(deps) {
|
|
@@ -90341,13 +90220,10 @@ class ServerUpdater {
|
|
|
90341
90220
|
downloadedVersion = null;
|
|
90342
90221
|
running = null;
|
|
90343
90222
|
autoUpdate = false;
|
|
90344
|
-
autoRestartMode = "off";
|
|
90345
90223
|
applying = false;
|
|
90346
90224
|
channel = "stable";
|
|
90347
|
-
idleGate = new IdleRestartGate();
|
|
90348
90225
|
timers = /* @__PURE__ */ new Set();
|
|
90349
90226
|
interval = null;
|
|
90350
|
-
idleTimer = null;
|
|
90351
90227
|
now() {
|
|
90352
90228
|
return this.deps.now?.() ?? Date.now();
|
|
90353
90229
|
}
|
|
@@ -90371,7 +90247,7 @@ class ServerUpdater {
|
|
|
90371
90247
|
};
|
|
90372
90248
|
}
|
|
90373
90249
|
start(autoUpdate, autoRestartMode) {
|
|
90374
|
-
this.autoRestartMode
|
|
90250
|
+
this.setAutoRestartMode(autoRestartMode);
|
|
90375
90251
|
this.setAutoUpdateEnabled(autoUpdate);
|
|
90376
90252
|
}
|
|
90377
90253
|
stop() {
|
|
@@ -90379,7 +90255,6 @@ class ServerUpdater {
|
|
|
90379
90255
|
this.timers.clear();
|
|
90380
90256
|
if (this.interval) clearInterval(this.interval);
|
|
90381
90257
|
this.interval = null;
|
|
90382
|
-
this.clearIdleTimer();
|
|
90383
90258
|
}
|
|
90384
90259
|
later(ms, fn) {
|
|
90385
90260
|
const timer2 = setTimeout(() => {
|
|
@@ -90491,7 +90366,6 @@ class ServerUpdater {
|
|
|
90491
90366
|
return;
|
|
90492
90367
|
}
|
|
90493
90368
|
this.markDownloaded(version2);
|
|
90494
|
-
this.idleGate.reset();
|
|
90495
90369
|
this.notifyIdleStateChanged();
|
|
90496
90370
|
}
|
|
90497
90371
|
markDownloaded(version2) {
|
|
@@ -90505,11 +90379,12 @@ class ServerUpdater {
|
|
|
90505
90379
|
try {
|
|
90506
90380
|
if (!this.deps.npm) throw new Error("this install cannot update itself; run npm i -g");
|
|
90507
90381
|
const busyCount = this.deps.busyCount?.() ?? 0;
|
|
90508
|
-
if (busyCount > 0) await this.waitForTasks(
|
|
90382
|
+
if (busyCount > 0) await this.waitForTasks();
|
|
90509
90383
|
this.setApplying("installing");
|
|
90510
90384
|
this.deps.writePending?.({ from: this.deps.version, to: version2 });
|
|
90511
90385
|
await this.deps.npm.install(this.spec(version2));
|
|
90512
90386
|
this.setApplying("restarting");
|
|
90387
|
+
this.downloadedVersion = null;
|
|
90513
90388
|
this.restartProcess();
|
|
90514
90389
|
} catch (error) {
|
|
90515
90390
|
this.applying = false;
|
|
@@ -90531,7 +90406,7 @@ class ServerUpdater {
|
|
|
90531
90406
|
true
|
|
90532
90407
|
);
|
|
90533
90408
|
}
|
|
90534
|
-
async waitForTasks(
|
|
90409
|
+
async waitForTasks() {
|
|
90535
90410
|
const now = this.now();
|
|
90536
90411
|
const limit = this.deps.waitForTasksMs ?? WAIT_FOR_TASKS_MS;
|
|
90537
90412
|
const poll = this.deps.waitPollMs ?? WAIT_POLL_MS;
|
|
@@ -90549,9 +90424,31 @@ class ServerUpdater {
|
|
|
90549
90424
|
if (this.restartMethod() === "reexec") this.deps.spawnReexec?.();
|
|
90550
90425
|
this.deps.quit();
|
|
90551
90426
|
}
|
|
90552
|
-
|
|
90427
|
+
/**
|
|
90428
|
+
* 手动重启。默认优雅:等正在跑的回合收完(同应用更新的等待上限),再退出拉起;
|
|
90429
|
+
* force=true 立即退出(收尾仍会安全中断写断点,任务重启后续跑)。
|
|
90430
|
+
*/
|
|
90431
|
+
restart(force = false) {
|
|
90553
90432
|
if (!this.canRestart()) throw new Error("enso-server is not running under a supervisor");
|
|
90554
|
-
|
|
90433
|
+
if (force) {
|
|
90434
|
+
this.restartProcess();
|
|
90435
|
+
return;
|
|
90436
|
+
}
|
|
90437
|
+
void this.gracefulRestart();
|
|
90438
|
+
}
|
|
90439
|
+
async gracefulRestart() {
|
|
90440
|
+
await this.exclusive(async () => {
|
|
90441
|
+
const busyCount = this.deps.busyCount?.() ?? 0;
|
|
90442
|
+
if (busyCount > 0) {
|
|
90443
|
+
this.applying = true;
|
|
90444
|
+
try {
|
|
90445
|
+
await this.waitForTasks();
|
|
90446
|
+
} finally {
|
|
90447
|
+
this.applying = false;
|
|
90448
|
+
}
|
|
90449
|
+
}
|
|
90450
|
+
this.restartProcess();
|
|
90451
|
+
});
|
|
90555
90452
|
}
|
|
90556
90453
|
setAutoUpdateEnabled(enabled2) {
|
|
90557
90454
|
this.autoUpdate = enabled2;
|
|
@@ -90564,35 +90461,14 @@ class ServerUpdater {
|
|
|
90564
90461
|
}
|
|
90565
90462
|
this.notifyIdleStateChanged();
|
|
90566
90463
|
}
|
|
90567
|
-
|
|
90568
|
-
|
|
90569
|
-
if (mode2 === "off") this.idleGate.reset();
|
|
90570
|
-
this.notifyIdleStateChanged();
|
|
90464
|
+
// 服务端没有自动重启档位:应用本身等待任务收完,设置保留通道只为不报错
|
|
90465
|
+
setAutoRestartMode(_mode) {
|
|
90571
90466
|
}
|
|
90572
90467
|
notifyIdleStateChanged() {
|
|
90573
|
-
this.
|
|
90574
|
-
if (this.applying || this.idleGate.isFailed() || !this.downloadedVersion || !this.autoUpdate || this.autoRestartMode === "off" || !this.canRestart()) {
|
|
90468
|
+
if (!this.downloadedVersion || !this.autoUpdate || this.applying || !this.canRestart()) {
|
|
90575
90469
|
return;
|
|
90576
90470
|
}
|
|
90577
|
-
|
|
90578
|
-
if (this.idleGate.evaluate(this.deps.idle(), this.autoRestartMode, now)) {
|
|
90579
|
-
void this.quitAndInstall();
|
|
90580
|
-
return;
|
|
90581
|
-
}
|
|
90582
|
-
const remaining = this.idleGate.delayUntilReadyMs(now);
|
|
90583
|
-
const delay2 = Math.min(
|
|
90584
|
-
remaining === null ? BUSY_POLL_MS : Math.max(remaining, 250),
|
|
90585
|
-
AUTO_RESTART_IDLE_MS
|
|
90586
|
-
);
|
|
90587
|
-
this.idleTimer = setTimeout(() => {
|
|
90588
|
-
this.idleTimer = null;
|
|
90589
|
-
this.notifyIdleStateChanged();
|
|
90590
|
-
}, delay2);
|
|
90591
|
-
this.idleTimer.unref?.();
|
|
90592
|
-
}
|
|
90593
|
-
clearIdleTimer() {
|
|
90594
|
-
if (this.idleTimer) clearTimeout(this.idleTimer);
|
|
90595
|
-
this.idleTimer = null;
|
|
90471
|
+
void this.quitAndInstall();
|
|
90596
90472
|
}
|
|
90597
90473
|
}
|
|
90598
90474
|
function registerServerUpdater() {
|
|
@@ -90605,7 +90481,6 @@ function registerServerUpdater() {
|
|
|
90605
90481
|
npm: globalNpmInstaller(app.getAppPath()),
|
|
90606
90482
|
broadcast: (status2) => broadcastToRenderers(IPC_CHANNELS.UPDATER_STATUS, status2),
|
|
90607
90483
|
quit: () => app.quit(),
|
|
90608
|
-
idle: () => currentIdleRestartObservation(),
|
|
90609
90484
|
busyCount: () => agentSessionIndex.busyWorkspaceCount(),
|
|
90610
90485
|
spawnReexec: () => spawnReexec(dataDir2),
|
|
90611
90486
|
writePending: (update2) => writePendingUpdate(dataDir2, { ...update2, at: Date.now() }),
|
|
@@ -90615,7 +90490,10 @@ function registerServerUpdater() {
|
|
|
90615
90490
|
ipcMain.handle(IPC_CHANNELS.UPDATER_CHECK, () => updater.checkForUpdates());
|
|
90616
90491
|
ipcMain.handle(IPC_CHANNELS.UPDATER_DOWNLOAD_UPDATE, () => updater.downloadUpdate());
|
|
90617
90492
|
ipcMain.handle(IPC_CHANNELS.UPDATER_QUIT_AND_INSTALL, () => updater.quitAndInstall());
|
|
90618
|
-
ipcMain.handle(
|
|
90493
|
+
ipcMain.handle(
|
|
90494
|
+
IPC_CHANNELS.UPDATER_RESTART,
|
|
90495
|
+
(_event, force) => updater.restart(force === true)
|
|
90496
|
+
);
|
|
90619
90497
|
ipcMain.handle(IPC_CHANNELS.UPDATER_SET_AUTO_UPDATE_ENABLED, (_event, enabled2) => {
|
|
90620
90498
|
if (typeof enabled2 === "boolean") updater.setAutoUpdateEnabled(enabled2);
|
|
90621
90499
|
});
|
|
@@ -94794,6 +94672,19 @@ async function handle(line2, updater, web) {
|
|
|
94794
94672
|
if (command.cmd === "pair") return startPairing();
|
|
94795
94673
|
if (command.cmd === "devices") return { ok: true, status: getPairStatus() };
|
|
94796
94674
|
if (command.cmd === "update") return update(updater, command.channel);
|
|
94675
|
+
if (command.cmd === "debug-applying") {
|
|
94676
|
+
if (process.env.ENSO_SERVER_DEBUG !== "1") return { ok: false, error: "debug disabled" };
|
|
94677
|
+
const status2 = {
|
|
94678
|
+
status: "applying",
|
|
94679
|
+
info: { version: command.version ?? "0.4.0-beta.1" },
|
|
94680
|
+
applying: {
|
|
94681
|
+
stage: command.stage,
|
|
94682
|
+
...command.stage === "waiting-tasks" ? { busyCount: command.busyCount ?? 2, deadlineMs: Date.now() + 5 * 60 * 1e3 } : {}
|
|
94683
|
+
}
|
|
94684
|
+
};
|
|
94685
|
+
broadcastToRenderers(IPC_CHANNELS.UPDATER_STATUS, status2);
|
|
94686
|
+
return { ok: true };
|
|
94687
|
+
}
|
|
94797
94688
|
if (command.cmd === "status") {
|
|
94798
94689
|
return {
|
|
94799
94690
|
ok: true,
|