@ensocode/server 0.3.15-beta.241 → 0.3.15-beta.244

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.
Files changed (173) hide show
  1. package/out/phone/assets/{EditDiff-CSimrAEO.js → EditDiff-Dl1v7xzD.js} +1 -1
  2. package/out/phone/assets/{ReadFileView-Jn3R6r7-.js → ReadFileView-DnbZC0ty.js} +1 -1
  3. package/out/phone/assets/{abnfDiagram-VCTEODGH-fmoMWTbJ.js → abnfDiagram-VCTEODGH-Co7grfeK.js} +1 -1
  4. package/out/phone/assets/architecture-7GRP2DOG-CPQkhXxx.js +1 -0
  5. package/out/phone/assets/{architectureDiagram-5GKGNRK7-BVfM9qLh.js → architectureDiagram-5GKGNRK7-63szDTwV.js} +1 -1
  6. package/out/phone/assets/{blockDiagram-I7D4REHJ-DVsjIiEb.js → blockDiagram-I7D4REHJ-DiqufW2M.js} +1 -1
  7. package/out/phone/assets/{c4Diagram-7LVT6UL2-VdOATGT-.js → c4Diagram-7LVT6UL2-DEkuGuT5.js} +1 -1
  8. package/out/phone/assets/channel-CTU5U1Gc.js +1 -0
  9. package/out/phone/assets/{chunk-4HAMMTFA-BlmRWgVl.js → chunk-4HAMMTFA-BBPCzb9_.js} +1 -1
  10. package/out/phone/assets/{chunk-75Z2AOVW-B1Xx4VYV.js → chunk-75Z2AOVW-CvsXKk5y.js} +1 -1
  11. package/out/phone/assets/{chunk-DU6HZSFF-jZXKN9D0.js → chunk-DU6HZSFF-DFN-6z2K.js} +1 -1
  12. package/out/phone/assets/{chunk-F27PBJKO-pe6xAY-J.js → chunk-F27PBJKO-CxbPevJY.js} +1 -1
  13. package/out/phone/assets/{chunk-GMAD6QVW-DwzdtwGU.js → chunk-GMAD6QVW-BKkB3y89.js} +1 -1
  14. package/out/phone/assets/{chunk-GVQU2GXP-CCk8aXOq.js → chunk-GVQU2GXP-BmuuVTk9.js} +1 -1
  15. package/out/phone/assets/{chunk-IMKFNOWR-bNUmZDqg.js → chunk-IMKFNOWR-DtyReyu7.js} +1 -1
  16. package/out/phone/assets/{chunk-L3NEJ4N5-CUdCK-p_.js → chunk-L3NEJ4N5-CYQouxRc.js} +1 -1
  17. package/out/phone/assets/{chunk-OSK3NFVY-BTXa5Alc.js → chunk-OSK3NFVY-C8s892Xu.js} +1 -1
  18. package/out/phone/assets/{chunk-P2QGCYS3-CF2JAuy1.js → chunk-P2QGCYS3-Wo7i2bF8.js} +1 -1
  19. package/out/phone/assets/{chunk-POPQ4Y6H-BAnwlIFk.js → chunk-POPQ4Y6H-Cs3x8DIB.js} +1 -1
  20. package/out/phone/assets/{chunk-PWAF6VOD-BlFR6i6J.js → chunk-PWAF6VOD-JEGLXjtH.js} +1 -1
  21. package/out/phone/assets/{chunk-SHT3W25Y-DtR-NqyN.js → chunk-SHT3W25Y-DtlDK80W.js} +1 -1
  22. package/out/phone/assets/{chunk-SVP7TREG-DuaEOvLw.js → chunk-SVP7TREG-DCDTtBi2.js} +1 -1
  23. package/out/phone/assets/{chunk-TICWLB2K-BG4Kei8c.js → chunk-TICWLB2K-DH_cShpv.js} +1 -1
  24. package/out/phone/assets/classDiagram-ZZMXUADV-CAp7xfKw.js +1 -0
  25. package/out/phone/assets/classDiagram-v2-VYDZK3BY-CAp7xfKw.js +1 -0
  26. package/out/phone/assets/{codeHighlighter-KH77fp0H.js → codeHighlighter-oIs6aBXZ.js} +1 -1
  27. package/out/phone/assets/{cynefin-OW5HDTMX-n2BfpVsu.js → cynefin-OW5HDTMX-DWY8sMmw.js} +1 -1
  28. package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-DZqrq3oc.js → cynefinDiagram-5FMLGOSQ-DystTHhc.js} +1 -1
  29. package/out/phone/assets/{dagre-GXQ25YYZ-HVsu_rPg.js → dagre-GXQ25YYZ-CjIk5Pm7.js} +1 -1
  30. package/out/phone/assets/{desk-z_cqgI4L.js → desk-Dc-PsOnl.js} +1 -1
  31. package/out/phone/assets/{diagram-S7CK7UJ4-BZMmnDF5.js → diagram-S7CK7UJ4-CY0PD39z.js} +1 -1
  32. package/out/phone/assets/{diagram-UQ7AKVKN-D8T63tql.js → diagram-UQ7AKVKN-CwX9S12n.js} +1 -1
  33. package/out/phone/assets/{diagram-VSXAHHWV-qPVtZ3Wt.js → diagram-VSXAHHWV-Bk_rb32-.js} +1 -1
  34. package/out/phone/assets/{diagram-VX7I27RA-CyEJ3aas.js → diagram-VX7I27RA-C3JVMUBL.js} +1 -1
  35. package/out/phone/assets/{diagram-Z3DM3KII-O3aOm1L8.js → diagram-Z3DM3KII-Drf5stHv.js} +1 -1
  36. package/out/phone/assets/{ebnfDiagram-PWID7BFC-Csdlx5oS.js → ebnfDiagram-PWID7BFC-Cz19FBqO.js} +1 -1
  37. package/out/phone/assets/{erDiagram-RLTQ6QDP-DcUkeTEM.js → erDiagram-RLTQ6QDP-BXmpqk2p.js} +1 -1
  38. package/out/phone/assets/eventmodeling-NTZA5JFV-3NMIapix.js +1 -0
  39. package/out/phone/assets/flowDiagram-HODETNUW-DEM4t2yp.js +1 -0
  40. package/out/phone/assets/{ganttDiagram-EL5Y4UJY-BsohogYF.js → ganttDiagram-EL5Y4UJY-Bum0_E5J.js} +1 -1
  41. package/out/phone/assets/{gitGraph-4MIJSDKK-bJ82NwBa.js → gitGraph-4MIJSDKK-BCw9r0Vf.js} +1 -1
  42. package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-B4kVWOxs.js → gitGraphDiagram-WWUBYQGX-BrS3oYOR.js} +1 -1
  43. package/out/phone/assets/{info-A6RAGUB7-CtAEx6Uj.js → info-A6RAGUB7-CdAqHFpo.js} +1 -1
  44. package/out/phone/assets/{infoDiagram-27XIBGKW-NWXJXWIa.js → infoDiagram-27XIBGKW-eIHi-wVl.js} +1 -1
  45. package/out/phone/assets/{ishikawaDiagram-5VMMS53U-DNZOHXyU.js → ishikawaDiagram-5VMMS53U--ZByOgbd.js} +1 -1
  46. package/out/phone/assets/{journeyDiagram-3NMN7TZE-BILq8KCa.js → journeyDiagram-3NMN7TZE-Cez_oRvQ.js} +1 -1
  47. package/out/phone/assets/{kanban-definition-UXKFOSKX-DdZ5jVxU.js → kanban-definition-UXKFOSKX-CzRnvsUw.js} +1 -1
  48. package/out/phone/assets/{line-Bo8uZJ4I.js → line-BI6dRkfB.js} +1 -1
  49. package/out/phone/assets/main-6fqTYTkO.css +2 -0
  50. package/out/phone/assets/{main-C6jVGXbp.js → main-Bb-GRoqY.js} +37 -37
  51. package/out/phone/assets/{mermaid-parser.core-B1syl2rc.js → mermaid-parser.core-hbmkLOwJ.js} +3 -3
  52. package/out/phone/assets/{mermaid.core-96kZPVvg.js → mermaid.core-DyabQfxY.js} +4 -4
  53. package/out/phone/assets/{mindmap-definition-YA3MSWOX-CLzIHVmQ.js → mindmap-definition-YA3MSWOX-BsrANfeL.js} +1 -1
  54. package/out/phone/assets/{packet-AYTQ26CC-BBgqe8hX.js → packet-AYTQ26CC-C10GNvQY.js} +1 -1
  55. package/out/phone/assets/{pegDiagram-XKGWAZYB-CY_VEopq.js → pegDiagram-XKGWAZYB-BJZdvuYe.js} +1 -1
  56. package/out/phone/assets/{pie-WAS4IAKB-of52Xr-X.js → pie-WAS4IAKB-BO4lKzBO.js} +1 -1
  57. package/out/phone/assets/{pieDiagram-E7YTZNPT-mIG2cHsC.js → pieDiagram-E7YTZNPT-CebvsUnG.js} +1 -1
  58. package/out/phone/assets/{quadrantDiagram-AXDQQJYC-ZC2ztpMA.js → quadrantDiagram-AXDQQJYC-DAIoWitA.js} +1 -1
  59. package/out/phone/assets/{radar-RG4KPBEZ-BXO_8eMD.js → radar-RG4KPBEZ-BSvMj116.js} +1 -1
  60. package/out/phone/assets/{railroad-74A4TZTK-DSFZE_CO.js → railroad-74A4TZTK-CC8n5mQv.js} +1 -1
  61. package/out/phone/assets/railroad-abnf-HS5TGJTU-CFJfM9dh.js +1 -0
  62. package/out/phone/assets/railroad-ebnf-LZEXJU2U-B_0R-wZF.js +1 -0
  63. package/out/phone/assets/railroad-peg-WCYAUIDC-ObEBCIxG.js +1 -0
  64. package/out/phone/assets/{railroadDiagram-O6MQD6OU-BhKGjvYs.js → railroadDiagram-O6MQD6OU-BzydbcBb.js} +1 -1
  65. package/out/phone/assets/{requirementDiagram-BXWQKSXE-DhYI3BgP.js → requirementDiagram-BXWQKSXE-CKe0Zr83.js} +1 -1
  66. package/out/phone/assets/{sankeyDiagram-P5KCCOFB-DUXZpMXR.js → sankeyDiagram-P5KCCOFB-CJworGIH.js} +1 -1
  67. package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-BK3O5pAz.js → sequenceDiagram-WJ2MYXX4-DdpCJT7e.js} +1 -1
  68. package/out/phone/assets/{shellUpdate-DrB0t4Vm.js → shellUpdate-B-mV7z4A.js} +1 -1
  69. package/out/phone/assets/{stateDiagram-D77RDMKH-DrRcKs0R.js → stateDiagram-D77RDMKH-D-IrCDnR.js} +1 -1
  70. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-D6EyGCQb.js +1 -0
  71. package/out/phone/assets/{swimlanes-42K2YHIH-BCd-QVVh.js → swimlanes-42K2YHIH-Cy0iyaFc.js} +1 -1
  72. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-BgU-mVRE.js +8 -0
  73. package/out/phone/assets/{timeline-definition-24CTP7MA-DXe2OX47.js → timeline-definition-24CTP7MA-DmctHGEI.js} +1 -1
  74. package/out/phone/assets/{treeView-Q6P3EWNA-BRe0XDzs.js → treeView-Q6P3EWNA-DJ3NLlKQ.js} +1 -1
  75. package/out/phone/assets/{treemap-WGGIJYW6-s1q2y2HB.js → treemap-WGGIJYW6-Wu9CYVkP.js} +1 -1
  76. package/out/phone/assets/{vennDiagram-4TSXK5OY-BGrxD8PX.js → vennDiagram-4TSXK5OY-C9U0vhBw.js} +1 -1
  77. package/out/phone/assets/{wardley-WFR3VGLG-DO2WbZKB.js → wardley-WFR3VGLG-Bux_FNX8.js} +1 -1
  78. package/out/phone/assets/{wardleyDiagram-VM6X3IG4-BBOgHvB9.js → wardleyDiagram-VM6X3IG4-YeXD-Py0.js} +1 -1
  79. package/out/phone/assets/{xychartDiagram-S5SC5T6Z-CWe0eCMj.js → xychartDiagram-S5SC5T6Z-6G4BJgCo.js} +1 -1
  80. package/out/phone/desk.html +3 -3
  81. package/out/phone/index.html +4 -4
  82. package/out/phone/sw.js +2 -2
  83. package/out/renderer/assets/{EditDiff-Bd8hj9gf.js → EditDiff-Dq1ru-27.js} +1 -1
  84. package/out/renderer/assets/{ReadFileView-Bbb7V3MH.js → ReadFileView-DRDsV4Qh.js} +1 -1
  85. package/out/renderer/assets/{SidePanel-DML0yRbK.js → SidePanel-BzHQWaD_.js} +1 -1
  86. package/out/renderer/assets/{abnfDiagram-VCTEODGH-BLYUgV98.js → abnfDiagram-VCTEODGH-BvoAbCWQ.js} +1 -1
  87. package/out/renderer/assets/{arc-CDA8kxTv.js → arc-CJC8vTfi.js} +1 -1
  88. package/out/renderer/assets/{architectureDiagram-5GKGNRK7-D-JOyWkI.js → architectureDiagram-5GKGNRK7-DUaKoTV1.js} +1 -1
  89. package/out/renderer/assets/{blockDiagram-I7D4REHJ-BZq1xS_g.js → blockDiagram-I7D4REHJ-Ctrde6gr.js} +1 -1
  90. package/out/renderer/assets/{c4Diagram-7LVT6UL2-DlrUI2mr.js → c4Diagram-7LVT6UL2-m237al85.js} +1 -1
  91. package/out/renderer/assets/channel-4OCJMTsH.js +1 -0
  92. package/out/renderer/assets/{chunk-2Q5K7J3B-Ecw5ByAe.js → chunk-2Q5K7J3B-DxInKfng.js} +1 -1
  93. package/out/renderer/assets/{chunk-5VM5RSS4-Bp_nwDzN.js → chunk-5VM5RSS4-DYWVp5wB.js} +1 -1
  94. package/out/renderer/assets/{chunk-F27PBJKO-B4M0cyLW.js → chunk-F27PBJKO-B4co86fQ.js} +1 -1
  95. package/out/renderer/assets/{chunk-IMKFNOWR-D3R3u0O-.js → chunk-IMKFNOWR-BhBcruMO.js} +1 -1
  96. package/out/renderer/assets/{chunk-JWPE2WC7-B09_gtdy.js → chunk-JWPE2WC7-C_OTocS8.js} +1 -1
  97. package/out/renderer/assets/{chunk-POPQ4Y6H-BvmgIk3A.js → chunk-POPQ4Y6H-DuPM2iNq.js} +1 -1
  98. package/out/renderer/assets/{chunk-SVP7TREG-DTaIzWhf.js → chunk-SVP7TREG-BBAC9v6R.js} +1 -1
  99. package/out/renderer/assets/{chunk-TICWLB2K-u974J_2J.js → chunk-TICWLB2K-N6m7s6mw.js} +1 -1
  100. package/out/renderer/assets/{chunk-XXDRQBXY-Bb-N5juq.js → chunk-XXDRQBXY-B1Gr5MJz.js} +1 -1
  101. package/out/renderer/assets/classDiagram-ZZMXUADV-lVKI638e.js +1 -0
  102. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-lVKI638e.js +1 -0
  103. package/out/renderer/assets/{cose-bilkent-JH36ORCC-_0KSMiyp.js → cose-bilkent-JH36ORCC-BGacAdLc.js} +1 -1
  104. package/out/renderer/assets/{cynefin-OW5HDTMX-DlJWTqrV.js → cynefin-OW5HDTMX-CstxFU_f.js} +1 -1
  105. package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-YX_IQLVF.js → cynefinDiagram-5FMLGOSQ-B2A_z92b.js} +1 -1
  106. package/out/renderer/assets/{dagre-GXQ25YYZ-BacZro1G.js → dagre-GXQ25YYZ-B2Cuq6s4.js} +1 -1
  107. package/out/renderer/assets/{diagram-S7CK7UJ4-BdZsvDfO.js → diagram-S7CK7UJ4-sPp6xmTo.js} +1 -1
  108. package/out/renderer/assets/{diagram-UQ7AKVKN-Bx7HSPaR.js → diagram-UQ7AKVKN-C1nSgHxc.js} +1 -1
  109. package/out/renderer/assets/{diagram-VSXAHHWV-DRNaDs0S.js → diagram-VSXAHHWV-DyrFmlyo.js} +1 -1
  110. package/out/renderer/assets/{diagram-VX7I27RA-ykxcOFfg.js → diagram-VX7I27RA-C1YDNDgn.js} +1 -1
  111. package/out/renderer/assets/{diagram-Z3DM3KII-C8r2pseZ.js → diagram-Z3DM3KII-vDjTMVCb.js} +1 -1
  112. package/out/renderer/assets/{ebnfDiagram-PWID7BFC-XQ7lDc9Y.js → ebnfDiagram-PWID7BFC-go5p9rJU.js} +1 -1
  113. package/out/renderer/assets/{erDiagram-RLTQ6QDP-vKyTFhvS.js → erDiagram-RLTQ6QDP--7HBypuL.js} +1 -1
  114. package/out/renderer/assets/{flowDiagram-HODETNUW-CfrgUHAS.js → flowDiagram-HODETNUW-BhISSZBS.js} +1 -1
  115. package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-kLRdxejO.js → ganttDiagram-EL5Y4UJY-BcBSKfXJ.js} +1 -1
  116. package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-CORDJ_Ay.js → gitGraphDiagram-WWUBYQGX-CKps0oQ_.js} +1 -1
  117. package/out/renderer/assets/{index-ZFFgI5ss.js → index-DOMKWUhA.js} +267 -267
  118. package/out/renderer/assets/index-VOhKg_w1.css +1 -0
  119. package/out/renderer/assets/{infoDiagram-27XIBGKW-Cw6TRc_C.js → infoDiagram-27XIBGKW-Cuwh5obU.js} +1 -1
  120. package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-SOVuP3c1.js → ishikawaDiagram-5VMMS53U-BLMUHtbz.js} +1 -1
  121. package/out/renderer/assets/{journeyDiagram-3NMN7TZE-3HTZmvUQ.js → journeyDiagram-3NMN7TZE-CdyKTe8S.js} +1 -1
  122. package/out/renderer/assets/{kanban-definition-UXKFOSKX-DpYipMmA.js → kanban-definition-UXKFOSKX-CLmlyeai.js} +1 -1
  123. package/out/renderer/assets/{layout-BwXeh9aP.js → layout-Blff8S_S.js} +1 -1
  124. package/out/renderer/assets/{linear-CR8355iJ.js → linear-E24BfEe_.js} +1 -1
  125. package/out/renderer/assets/{mermaid.core-0Y0k-IR7.js → mermaid.core-tBzIgBPK.js} +5 -5
  126. package/out/renderer/assets/{mindmap-definition-YA3MSWOX-FWFQgIj6.js → mindmap-definition-YA3MSWOX-Ctunlg4e.js} +1 -1
  127. package/out/renderer/assets/{pegDiagram-XKGWAZYB-DM8j81UL.js → pegDiagram-XKGWAZYB-BGUDmJ0t.js} +1 -1
  128. package/out/renderer/assets/{pieDiagram-E7YTZNPT-XB2jUWtG.js → pieDiagram-E7YTZNPT-BV3SKGcw.js} +1 -1
  129. package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-D9zVY5gu.js → quadrantDiagram-AXDQQJYC-Cto7yY8W.js} +1 -1
  130. package/out/renderer/assets/{railroadDiagram-O6MQD6OU-BREkmdyd.js → railroadDiagram-O6MQD6OU--eLvppDh.js} +1 -1
  131. package/out/renderer/assets/{requirementDiagram-BXWQKSXE-c-zsytxs.js → requirementDiagram-BXWQKSXE-Dom34Gkz.js} +1 -1
  132. package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-B5k-1ijv.js → sankeyDiagram-P5KCCOFB-CN11JSQo.js} +1 -1
  133. package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-CSN_Fh8d.js → sequenceDiagram-WJ2MYXX4-9uQUwoRg.js} +1 -1
  134. package/out/renderer/assets/{sessionChanges-BEUiNgR0.js → sessionChanges-DLMjbWOi.js} +1 -1
  135. package/out/renderer/assets/{sizeCapture-INFHLROL-BKTOVTma.js → sizeCapture-INFHLROL-C1rIYWoA.js} +1 -1
  136. package/out/renderer/assets/{stateDiagram-D77RDMKH-D9ZZYX6G.js → stateDiagram-D77RDMKH-M3C0QecZ.js} +1 -1
  137. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-B8HJtGSb.js +1 -0
  138. package/out/renderer/assets/{swimlanes-42K2YHIH-DP7c5A76.js → swimlanes-42K2YHIH-DnLqJear.js} +1 -1
  139. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CNAGwVvM.js +8 -0
  140. package/out/renderer/assets/{timeline-definition-24CTP7MA-C0HwGCXi.js → timeline-definition-24CTP7MA-DJcjXRdy.js} +1 -1
  141. package/out/renderer/assets/{vennDiagram-4TSXK5OY-DRKPfvIL.js → vennDiagram-4TSXK5OY-B7cvho9j.js} +1 -1
  142. package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-DU1_TBlT.js → wardleyDiagram-VM6X3IG4-BE0YuPQP.js} +1 -1
  143. package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-cRKyBsyE.js → xychartDiagram-S5SC5T6Z-D6oIwCDT.js} +1 -1
  144. package/out/renderer/index.html +2 -2
  145. package/out/renderer/web-preload.js +1 -1
  146. package/out/server/agent.js +4 -4
  147. package/out/server/chunks/{builtinOccupancy-K9RUDw3l.js → builtinOccupancy-DvzfBkum.js} +3 -3
  148. package/out/server/chunks/{dispatchModel-JnEtucdi.js → dispatchModel-0Gu9nhKa.js} +2 -2
  149. package/out/server/chunks/{loadProvider-B5WmMMag.js → loadProvider-CDXRBHj8.js} +2 -2
  150. package/out/server/chunks/{menuSkills-C-pqhzrG.js → menuSkills-C0v0R3gX.js} +3 -3
  151. package/out/server/chunks/{projectCode-CCHyotEp.js → projectCode-CxP4jjhK.js} +2 -2
  152. package/out/server/chunks/{web-B6yI7DUY.js → web-Dw5EcbGj.js} +2 -2
  153. package/out/server/chunks/{workflowPresets-_DQtzohi.js → workflowPresets-CI-duJC2.js} +2 -2
  154. package/out/server/index.js +212 -318
  155. package/package.json +1 -1
  156. package/out/phone/assets/architecture-7GRP2DOG-sqU8jFuM.js +0 -1
  157. package/out/phone/assets/channel-CbOf5_bF.js +0 -1
  158. package/out/phone/assets/classDiagram-ZZMXUADV-CIWF3pyh.js +0 -1
  159. package/out/phone/assets/classDiagram-v2-VYDZK3BY-CIWF3pyh.js +0 -1
  160. package/out/phone/assets/eventmodeling-NTZA5JFV-jAd-hKjz.js +0 -1
  161. package/out/phone/assets/flowDiagram-HODETNUW-CcxYFoAM.js +0 -1
  162. package/out/phone/assets/main-Bk2Gcz5l.css +0 -2
  163. package/out/phone/assets/railroad-abnf-HS5TGJTU-Ch8xudvg.js +0 -1
  164. package/out/phone/assets/railroad-ebnf-LZEXJU2U-C3gTYu9G.js +0 -1
  165. package/out/phone/assets/railroad-peg-WCYAUIDC-r4pSaJqV.js +0 -1
  166. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-DBTJhEN5.js +0 -1
  167. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-CY5PGCyR.js +0 -8
  168. package/out/renderer/assets/channel-BNg-RaaW.js +0 -1
  169. package/out/renderer/assets/classDiagram-ZZMXUADV-BpOHaGYe.js +0 -1
  170. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-BpOHaGYe.js +0 -1
  171. package/out/renderer/assets/index-CtOLwaEJ.css +0 -1
  172. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BRGfinuA.js +0 -1
  173. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CffafTS2.js +0 -8
@@ -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-_DQtzohi.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-CI-duJC2.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": "自动重启以应用更新",
@@ -886,6 +890,7 @@ const zhTranslations = {
886
890
  "Sign in with provider subscriptions (SuperGrok, Claude Pro, ChatGPT, etc.)": "使用订阅账号登录(SuperGrok、Claude Pro、ChatGPT 等)",
887
891
  "Add account": "添加账号",
888
892
  "{{count}} accounts": "{{count}} 个账号",
893
+ "{{count}} providers": "{{count}} 个服务商",
889
894
  "Log out": "退出登录",
890
895
  "Starting login...": "正在启动登录…",
891
896
  "Complete authorization in your browser": "请在浏览器中完成授权",
@@ -942,6 +947,8 @@ const zhTranslations = {
942
947
  "Fetch all models": "拉取全部模型",
943
948
  "Refresh model info": "刷新模型信息",
944
949
  "Refresh all models and info": "拉取全部模型与模型信息",
950
+ "Refresh provider models": "刷新此服务商的模型",
951
+ "Refresh failed": "刷新失败",
945
952
  "Model info updated": "模型信息已更新",
946
953
  "Model info refresh failed, using cache": "模型信息刷新失败,仍使用缓存",
947
954
  "Model info refresh failed": "模型信息刷新失败",
@@ -4284,143 +4291,6 @@ function processMetrics() {
4284
4291
  }
4285
4292
  ];
4286
4293
  }
4287
- const PREFIX$2 = "bot-chat:";
4288
- const botBrowserKey = (chatId) => `${PREFIX$2}${chatId}`;
4289
- function browserSessionKey(sessionId, bot, delegationChatId, rootOf2 = (chatId) => chatId) {
4290
- const chatId = bot?.chatId ?? (bot?.delegationId ? delegationChatId?.(bot.delegationId) : void 0);
4291
- return chatId ? botBrowserKey(rootOf2(chatId)) : sessionId;
4292
- }
4293
- 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;
4294
- function conversationCwd(input) {
4295
- if (input.kind === "scratch") {
4296
- if (!input.canonicalPath || !CONVERSATION_ID$2.test(input.conversationId)) return null;
4297
- const sep2 = input.canonicalPath.includes("/") ? "/" : "\\";
4298
- return `${input.canonicalPath.replace(/[\\/]+$/, "")}${sep2}${input.conversationId}`;
4299
- }
4300
- if (input.kind === "secretary") return input.canonicalPath || null;
4301
- if (input.kind === "ssh") return input.canonicalPath || null;
4302
- if (input.worktreePath) return input.worktreePath;
4303
- return input.canonicalPath || null;
4304
- }
4305
- function asThinkingLevel(value) {
4306
- return value && THINKING_LEVELS.includes(value) ? value : void 0;
4307
- }
4308
- function asApprovalMode(value) {
4309
- return value && APPROVAL_MODES$1.includes(value) ? value : void 0;
4310
- }
4311
- function planPairResume(input) {
4312
- if (input.alive) return { type: "snapshot" };
4313
- const conversation = input.conversation;
4314
- if (!conversation) return { type: "skip", reason: "unknown session" };
4315
- if (!conversation.sessionFile) return { type: "skip", reason: "no session file" };
4316
- if (input.worktreeMissing) return { type: "skip", reason: "worktree missing" };
4317
- if (!conversation.lastProviderId || !conversation.lastModelId) {
4318
- return { type: "skip", reason: "no remembered model" };
4319
- }
4320
- const cwd = input.worktreePath ?? input.projectPath;
4321
- if (!cwd) return { type: "skip", reason: "no cwd" };
4322
- const thinkingLevel = asThinkingLevel(conversation.thinkingLevel);
4323
- const approvalMode = asApprovalMode(conversation.approvalMode);
4324
- return {
4325
- type: "spawn",
4326
- request: {
4327
- sessionId: conversation.sessionId,
4328
- providerId: conversation.lastProviderId,
4329
- modelId: conversation.lastModelId,
4330
- cwd,
4331
- resumeFile: conversation.sessionFile,
4332
- loadLocalSkills: input.loadLocalSkills,
4333
- ...conversation.reasoningEnabled ? { reasoningEnabled: true } : {},
4334
- ...thinkingLevel ? { thinkingLevel } : {},
4335
- ...conversation.presetId ? { presetId: conversation.presetId } : {},
4336
- ...approvalMode ? { approvalMode } : {},
4337
- ...conversation.autoRejectApprovals ? { autoRejectApprovals: true } : {}
4338
- }
4339
- };
4340
- }
4341
- function projectSafeJournal(records) {
4342
- const messages = [];
4343
- const customEntries = [];
4344
- for (const record2 of records) {
4345
- switch (record2.type) {
4346
- case "safe-user-text":
4347
- messages.push({
4348
- role: "user",
4349
- content: [{ type: "text", text: record2.text }],
4350
- timestamp: record2.at
4351
- });
4352
- break;
4353
- case "safe-assistant-text":
4354
- messages.push({
4355
- role: "assistant",
4356
- content: [{ type: "text", text: record2.text }],
4357
- timestamp: record2.at
4358
- });
4359
- break;
4360
- case "capability-receipt":
4361
- customEntries.push({ kind: "capability-receipt", receipt: record2.receipt });
4362
- break;
4363
- }
4364
- }
4365
- return { messages, customEntries };
4366
- }
4367
- const REJECTION_TEXT = {
4368
- "too-large": "超过 10MB,没有保存",
4369
- "not-image": "不是 png / jpeg / webp / gif 图片,没有保存",
4370
- unavailable: "没能保存"
4371
- };
4372
- function formatInboundImageLines(lines) {
4373
- return lines.map(
4374
- (line2, index2) => "path" in line2 ? `[图片 ${index2 + 1}] ${line2.path}` : `[图片 ${index2 + 1} 未收下] ${REJECTION_TEXT[line2.rejected]}`
4375
- ).join("\n");
4376
- }
4377
- function appendInboundImageLines(text2, lines) {
4378
- if (lines.length === 0) return text2;
4379
- const block = formatInboundImageLines(lines);
4380
- return text2 ? `${text2}
4381
-
4382
- ${block}` : block;
4383
- }
4384
- const INBOUND_IMAGE_LINE = String.raw`\[图片 \d+(?: 未收下)?\] [^\n]*`;
4385
- function parseInboundImagePaths(block) {
4386
- return [...block.matchAll(/^\[图片 \d+\] (.+)$/gmu)].map((match) => match[1]);
4387
- }
4388
- const REJECTION_OF = new Map(
4389
- Object.entries(REJECTION_TEXT).map(([kind, text2]) => [text2, kind])
4390
- );
4391
- function isAbsolutePath(value) {
4392
- return /^(?:\/|[A-Za-z]:\/)/u.test(value.replace(/\\/gu, "/"));
4393
- }
4394
- function isSavedImagePath(value) {
4395
- return isAbsolutePath(value) && value.replace(/\\/gu, "/").includes(`/${SECRETARY_IMAGES_REL}/`);
4396
- }
4397
- function parseInboundImageEntries(block, attached = 0) {
4398
- const entries = [];
4399
- for (const [i, row] of block.split("\n").entries()) {
4400
- const match = /^\[图片 (\d+)( 未收下)?\] (.+)$/u.exec(row);
4401
- if (!match || Number(match[1]) !== i + 1) return null;
4402
- const value = match[3];
4403
- if (match[2]) {
4404
- const rejected = REJECTION_OF.get(value);
4405
- if (!rejected) return null;
4406
- entries.push({ index: i + 1, rejected });
4407
- } else {
4408
- if (!(i < attached ? isAbsolutePath(value) : isSavedImagePath(value))) return null;
4409
- entries.push({ index: i + 1, path: value });
4410
- }
4411
- }
4412
- return entries;
4413
- }
4414
- function inboundImageNotice(rejected, lang) {
4415
- const tooLarge = rejected.includes("too-large");
4416
- const notImage = rejected.includes("not-image");
4417
- if (lang === "zh") {
4418
- const why2 = [tooLarge ? "超过 10MB" : "", notImage ? "不是图片" : ""].filter(Boolean);
4419
- return `有 ${rejected.length} 个附件没收下${why2.length ? `(${why2.join("、")})` : ""}。只收 10MB 以内的 png / jpeg / webp / gif 图片。`;
4420
- }
4421
- const why = [tooLarge ? "over 10 MB" : "", notImage ? "not an image" : ""].filter(Boolean);
4422
- 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.`;
4423
- }
4424
4294
  const IPC_CHANNELS = {
4425
4295
  // 设置持久化
4426
4296
  SETTINGS_READ: "settings:read",
@@ -5165,6 +5035,143 @@ const IPC_CHANNELS = {
5165
5035
  /** 桌面专用:配置项选择文件或目录,只把路径字符串交回界面 */
5166
5036
  EXTENSION_PLUGINS_PICK_PATH: "extension-plugins:pick-path"
5167
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
+ }
5168
5175
  class ActiveConversationRegistry {
5169
5176
  constructor(options) {
5170
5177
  this.options = options;
@@ -9361,7 +9368,7 @@ function getRuntime() {
9361
9368
  for (const [id, config] of verifyOauthProviders(app.isPackaged)) {
9362
9369
  runtime.registerProvider(id, config);
9363
9370
  }
9364
- const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-B5WmMMag.js").then((n) => n.d);
9371
+ const { CURSOR_PROVIDER_ID, loadCursorProvider } = await import("./chunks/loadProvider-CDXRBHj8.js").then((n) => n.d);
9365
9372
  onlineCatalogProviderIds.add(CURSOR_PROVIDER_ID);
9366
9373
  await loadCursorProvider(runtime);
9367
9374
  installCodexLinkedRefresh(runtime);
@@ -10482,13 +10489,6 @@ function broadcastToRenderers(channel, ...args) {
10482
10489
  for (const contents of []) contents.send(channel, ...args);
10483
10490
  sendToRemoteRenderers(channel, args);
10484
10491
  }
10485
- function anyRendererFocused() {
10486
- return false;
10487
- }
10488
- function userRecentlyActive(withinMs) {
10489
- const ui = localUi();
10490
- return Boolean(ui?.anyFocused());
10491
- }
10492
10492
  const CONVERSATIONS_KEY = "enso-conversations";
10493
10493
  function withoutConversations(settings2) {
10494
10494
  if (!settings2 || typeof settings2 !== "object" || !(CONVERSATIONS_KEY in settings2))
@@ -27454,7 +27454,7 @@ function setMemoryServiceProgressSink(sink2) {
27454
27454
  }
27455
27455
  async function readTranscriptMain(sessionFile) {
27456
27456
  const [{ SessionManager, sessionEntryToContextMessages: sessionEntryToContextMessages2 }, { projectMessage: projectMessage2 }] = await Promise.all(
27457
- [import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-_DQtzohi.js").then((n) => n.fs)]
27457
+ [import("@earendil-works/pi-coding-agent"), import("./chunks/workflowPresets-CI-duJC2.js").then((n) => n.fs)]
27458
27458
  );
27459
27459
  const root = path.resolve(path.join(app.getPath("userData"), "agent", "sessions"));
27460
27460
  const resolved = path.resolve(sessionFile);
@@ -31277,17 +31277,6 @@ function setPairHeadless(active2) {
31277
31277
  function isPairHeadless() {
31278
31278
  return headless;
31279
31279
  }
31280
- function headlessIdleBlocks() {
31281
- let queuedCount2 = 0;
31282
- let pendingAskCount = 0;
31283
- let pendingApprovalCount = 0;
31284
- for (const runtime of runtimes.values()) {
31285
- queuedCount2 += runtime.queued.length;
31286
- pendingAskCount += runtime.pendingAsks;
31287
- pendingApprovalCount += runtime.pendingApprovals;
31288
- }
31289
- return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
31290
- }
31291
31280
  function runtimeOf(sessionId) {
31292
31281
  const current2 = runtimes.get(sessionId);
31293
31282
  if (current2) return current2;
@@ -39979,7 +39968,7 @@ function dispatchPortsFor(ctx) {
39979
39968
  } = await Promise.resolve().then(() => agentHost);
39980
39969
  const { readStoredOauthCredentialKeys: readStoredOauthCredentialKeys2 } = await Promise.resolve().then(() => oauthProviders);
39981
39970
  const { modelUsability: modelUsability2 } = await Promise.resolve().then(() => defaultModel);
39982
- const { resolveDispatchModel } = await import("./chunks/dispatchModel-JnEtucdi.js");
39971
+ const { resolveDispatchModel } = await import("./chunks/dispatchModel-0Gu9nhKa.js");
39983
39972
  let keys;
39984
39973
  try {
39985
39974
  keys = await readStoredOauthCredentialKeys2();
@@ -63825,7 +63814,7 @@ function registerAssetHandlers() {
63825
63814
  ipcMain.handle(
63826
63815
  IPC_CHANNELS.ASSETS_LIST_PROJECT_SKILLS,
63827
63816
  async (_event, cwd, presetId) => {
63828
- const { listProjectSkills, listSkillsAt } = await import("./chunks/menuSkills-C-pqhzrG.js");
63817
+ const { listProjectSkills, listSkillsAt } = await import("./chunks/menuSkills-C0v0R3gX.js");
63829
63818
  const agentDir2 = path.join(agentDataDir(), "pi-agent");
63830
63819
  const plugin = listSkillsAt(
63831
63820
  menuPluginSkillPaths(typeof presetId === "string" && presetId ? presetId : void 0),
@@ -63896,7 +63885,7 @@ function registerAssetHandlers() {
63896
63885
  return occupancyForMcp(parseOccupancyIds(ids2), servers, listMcpOccupancyTools);
63897
63886
  });
63898
63887
  ipcMain.handle(IPC_CHANNELS.ASSETS_BUILTIN_TOOL_OCCUPANCY, async () => {
63899
- const { snapshotBuiltinOccupancyTools } = await import("./chunks/builtinOccupancy-K9RUDw3l.js");
63888
+ const { snapshotBuiltinOccupancyTools } = await import("./chunks/builtinOccupancy-DvzfBkum.js");
63900
63889
  return occupancyForBuiltinTools(snapshotBuiltinOccupancyTools());
63901
63890
  });
63902
63891
  ipcMain.handle(IPC_CHANNELS.INSTRUCTIONS_READ, (_event, id) => {
@@ -82329,9 +82318,6 @@ function registerTerminalHandlers() {
82329
82318
  }
82330
82319
  const withDraft = /* @__PURE__ */ new Set();
82331
82320
  const watched = /* @__PURE__ */ new Set();
82332
- function anyUnsentDraft() {
82333
- return withDraft.size > 0;
82334
- }
82335
82321
  function registerUnsentDraftHandlers() {
82336
82322
  ipcMain.on(IPC_CHANNELS.COMPOSER_UNSENT_DRAFT, (event, has) => {
82337
82323
  if (typeof has !== "boolean") return;
@@ -88871,6 +88857,19 @@ function parseControlCommand(line2) {
88871
88857
  if (typeof id !== "string" || !id.trim()) return { error: "revoke requires id" };
88872
88858
  return { cmd, id: id.trim() };
88873
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
+ }
88874
88873
  if (cmd === "plugin") return parsePluginCommand(parsed);
88875
88874
  return { error: "unknown command" };
88876
88875
  }
@@ -90041,7 +90040,6 @@ ${RUN_USAGE}
90041
90040
  process.off("SIGTERM", onSignal);
90042
90041
  }
90043
90042
  }
90044
- const AUTO_RESTART_IDLE_MS = 5 * 60 * 1e3;
90045
90043
  const AUTO_RESTART_MODES = ["off", "idle", "immediate"];
90046
90044
  function isAutoRestartMode(value) {
90047
90045
  return AUTO_RESTART_MODES.includes(value);
@@ -90052,93 +90050,6 @@ function resolveAutoRestartMode(state) {
90052
90050
  if (isAutoRestartMode(source2.autoRestartForUpdate)) return source2.autoRestartForUpdate;
90053
90051
  return source2.autoRestartWhenIdle === true ? "idle" : "off";
90054
90052
  }
90055
- function isTurnRestartBlocked(snapshot2) {
90056
- return snapshot2.agentBusy || snapshot2.queuedCount > 0 || snapshot2.pendingAskCount > 0 || snapshot2.pendingApprovalCount > 0;
90057
- }
90058
- function isAutoRestartBlocked(snapshot2) {
90059
- if (snapshot2.mode === "immediate")
90060
- return snapshot2.userActive || snapshot2.unsentDraft || snapshot2.pendingAskCount > 0 || snapshot2.pendingApprovalCount > 0;
90061
- return isTurnRestartBlocked(snapshot2) || snapshot2.windowFocused;
90062
- }
90063
- function shouldAutoRestartForUpdate(snapshot2) {
90064
- if (snapshot2.mode === "off" || isAutoRestartBlocked(snapshot2)) return false;
90065
- return snapshot2.mode === "immediate" || snapshot2.idleForMs >= AUTO_RESTART_IDLE_MS;
90066
- }
90067
- function countQueuedMessages(value) {
90068
- return Array.isArray(value) ? value.length : 0;
90069
- }
90070
- function countCatalogIdleBlocks(catalog2) {
90071
- let queuedCount2 = 0;
90072
- let pendingAskCount = 0;
90073
- let pendingApprovalCount = 0;
90074
- for (const entry of catalog2) {
90075
- queuedCount2 += entry.queued?.length ?? 0;
90076
- pendingAskCount += entry.pendingAskCount ?? 0;
90077
- pendingApprovalCount += entry.pendingApprovalCount ?? 0;
90078
- }
90079
- return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
90080
- }
90081
- function persistedConversations(settings2) {
90082
- if (!settings2 || typeof settings2 !== "object") return null;
90083
- const store = settings2["enso-conversations"];
90084
- if (!store || typeof store !== "object") return null;
90085
- const state = store.state;
90086
- if (!state || typeof state !== "object") return null;
90087
- const conversations = state.conversations;
90088
- if (!conversations || typeof conversations !== "object" || Array.isArray(conversations)) {
90089
- return null;
90090
- }
90091
- return conversations;
90092
- }
90093
- function countPersistedQueuedMessages(conversations) {
90094
- if (!conversations || typeof conversations !== "object") return 0;
90095
- let total = 0;
90096
- for (const value of Object.values(conversations)) {
90097
- const row = value && typeof value === "object" && !Array.isArray(value) ? value : null;
90098
- total += countQueuedMessages(row?.queuedMessages);
90099
- }
90100
- return total;
90101
- }
90102
- function nextIdleSince(prev, blocked, now) {
90103
- return blocked ? null : prev ?? now;
90104
- }
90105
- function idleDurationMs(idleSince, now) {
90106
- return idleSince === null ? 0 : Math.max(0, now - idleSince);
90107
- }
90108
- function mergeIdleRestartBlocks(...blocks) {
90109
- let queuedCount2 = 0;
90110
- let pendingAskCount = 0;
90111
- let pendingApprovalCount = 0;
90112
- for (const block of blocks) {
90113
- if (block.queuedCount > queuedCount2) queuedCount2 = block.queuedCount;
90114
- if (block.pendingAskCount > pendingAskCount) pendingAskCount = block.pendingAskCount;
90115
- if (block.pendingApprovalCount > pendingApprovalCount) {
90116
- pendingApprovalCount = block.pendingApprovalCount;
90117
- }
90118
- }
90119
- return { queuedCount: queuedCount2, pendingAskCount, pendingApprovalCount };
90120
- }
90121
- function remainingIdleMs(idleSince, now, holdMs = AUTO_RESTART_IDLE_MS) {
90122
- if (idleSince === null) return null;
90123
- return Math.max(0, holdMs - idleDurationMs(idleSince, now));
90124
- }
90125
- function currentIdleRestartObservation() {
90126
- const catalog2 = countCatalogIdleBlocks(getPairCatalog());
90127
- const headless2 = isPairHeadless() ? headlessIdleBlocks() : { queuedCount: 0, pendingAskCount: 0, pendingApprovalCount: 0 };
90128
- const persistedQueued = countPersistedQueuedMessages(persistedConversations(readSettings()));
90129
- const blocks = mergeIdleRestartBlocks(
90130
- { queuedCount: persistedQueued, pendingAskCount: 0, pendingApprovalCount: 0 },
90131
- catalog2,
90132
- headless2
90133
- );
90134
- return {
90135
- agentBusy: agentSessionIndex.anyWorkspaceBusy(),
90136
- windowFocused: anyRendererFocused(),
90137
- userActive: userRecentlyActive(),
90138
- unsentDraft: anyUnsentDraft(),
90139
- ...blocks
90140
- };
90141
- }
90142
90053
  const run = promisify(execFile);
90143
90054
  function npmBin() {
90144
90055
  const sibling = path.join(path.dirname(process.execPath), "npm");
@@ -90252,34 +90163,6 @@ function spawnReexec(dataDir2) {
90252
90163
  });
90253
90164
  child.unref();
90254
90165
  }
90255
- class IdleRestartGate {
90256
- idleSince = null;
90257
- failed = false;
90258
- evaluate(observation, mode2, now) {
90259
- if (this.failed) return false;
90260
- const snapshot2 = { ...observation, mode: mode2 };
90261
- this.idleSince = nextIdleSince(this.idleSince, isAutoRestartBlocked(snapshot2), now);
90262
- return shouldAutoRestartForUpdate({
90263
- ...snapshot2,
90264
- idleForMs: idleDurationMs(this.idleSince, now)
90265
- });
90266
- }
90267
- markFailed() {
90268
- this.failed = true;
90269
- this.idleSince = null;
90270
- }
90271
- reset() {
90272
- this.idleSince = null;
90273
- this.failed = false;
90274
- }
90275
- delayUntilReadyMs(now) {
90276
- if (this.failed) return null;
90277
- return remainingIdleMs(this.idleSince, now);
90278
- }
90279
- isFailed() {
90280
- return this.failed;
90281
- }
90282
- }
90283
90166
  const NPM_PACKAGE = "@ensocode/server";
90284
90167
  const DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
90285
90168
  const SEMVER = /^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/;
@@ -90326,7 +90209,6 @@ const WAIT_FOR_TASKS_MS = 5 * 60 * 1e3;
90326
90209
  const WAIT_POLL_MS = 1e3;
90327
90210
  const CHECK_INTERVAL_MS = 6 * 60 * 60 * 1e3;
90328
90211
  const INITIAL_CHECK_MS = 3e4;
90329
- const BUSY_POLL_MS = 5e3;
90330
90212
  const message = (error) => error instanceof Error ? error.message : String(error);
90331
90213
  class ServerUpdater {
90332
90214
  constructor(deps) {
@@ -90338,13 +90220,10 @@ class ServerUpdater {
90338
90220
  downloadedVersion = null;
90339
90221
  running = null;
90340
90222
  autoUpdate = false;
90341
- autoRestartMode = "off";
90342
90223
  applying = false;
90343
90224
  channel = "stable";
90344
- idleGate = new IdleRestartGate();
90345
90225
  timers = /* @__PURE__ */ new Set();
90346
90226
  interval = null;
90347
- idleTimer = null;
90348
90227
  now() {
90349
90228
  return this.deps.now?.() ?? Date.now();
90350
90229
  }
@@ -90368,7 +90247,7 @@ class ServerUpdater {
90368
90247
  };
90369
90248
  }
90370
90249
  start(autoUpdate, autoRestartMode) {
90371
- this.autoRestartMode = autoRestartMode;
90250
+ this.setAutoRestartMode(autoRestartMode);
90372
90251
  this.setAutoUpdateEnabled(autoUpdate);
90373
90252
  }
90374
90253
  stop() {
@@ -90376,7 +90255,6 @@ class ServerUpdater {
90376
90255
  this.timers.clear();
90377
90256
  if (this.interval) clearInterval(this.interval);
90378
90257
  this.interval = null;
90379
- this.clearIdleTimer();
90380
90258
  }
90381
90259
  later(ms, fn) {
90382
90260
  const timer2 = setTimeout(() => {
@@ -90488,7 +90366,6 @@ class ServerUpdater {
90488
90366
  return;
90489
90367
  }
90490
90368
  this.markDownloaded(version2);
90491
- this.idleGate.reset();
90492
90369
  this.notifyIdleStateChanged();
90493
90370
  }
90494
90371
  markDownloaded(version2) {
@@ -90502,11 +90379,12 @@ class ServerUpdater {
90502
90379
  try {
90503
90380
  if (!this.deps.npm) throw new Error("this install cannot update itself; run npm i -g");
90504
90381
  const busyCount = this.deps.busyCount?.() ?? 0;
90505
- if (busyCount > 0) await this.waitForTasks(version2);
90382
+ if (busyCount > 0) await this.waitForTasks();
90506
90383
  this.setApplying("installing");
90507
90384
  this.deps.writePending?.({ from: this.deps.version, to: version2 });
90508
90385
  await this.deps.npm.install(this.spec(version2));
90509
90386
  this.setApplying("restarting");
90387
+ this.downloadedVersion = null;
90510
90388
  this.restartProcess();
90511
90389
  } catch (error) {
90512
90390
  this.applying = false;
@@ -90528,7 +90406,7 @@ class ServerUpdater {
90528
90406
  true
90529
90407
  );
90530
90408
  }
90531
- async waitForTasks(version2) {
90409
+ async waitForTasks() {
90532
90410
  const now = this.now();
90533
90411
  const limit = this.deps.waitForTasksMs ?? WAIT_FOR_TASKS_MS;
90534
90412
  const poll = this.deps.waitPollMs ?? WAIT_POLL_MS;
@@ -90546,9 +90424,31 @@ class ServerUpdater {
90546
90424
  if (this.restartMethod() === "reexec") this.deps.spawnReexec?.();
90547
90425
  this.deps.quit();
90548
90426
  }
90549
- restart() {
90427
+ /**
90428
+ * 手动重启。默认优雅:等正在跑的回合收完(同应用更新的等待上限),再退出拉起;
90429
+ * force=true 立即退出(收尾仍会安全中断写断点,任务重启后续跑)。
90430
+ */
90431
+ restart(force = false) {
90550
90432
  if (!this.canRestart()) throw new Error("enso-server is not running under a supervisor");
90551
- this.restartProcess();
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
+ });
90552
90452
  }
90553
90453
  setAutoUpdateEnabled(enabled2) {
90554
90454
  this.autoUpdate = enabled2;
@@ -90561,35 +90461,14 @@ class ServerUpdater {
90561
90461
  }
90562
90462
  this.notifyIdleStateChanged();
90563
90463
  }
90564
- setAutoRestartMode(mode2) {
90565
- this.autoRestartMode = mode2;
90566
- if (mode2 === "off") this.idleGate.reset();
90567
- this.notifyIdleStateChanged();
90464
+ // 服务端没有自动重启档位:应用本身等待任务收完,设置保留通道只为不报错
90465
+ setAutoRestartMode(_mode) {
90568
90466
  }
90569
90467
  notifyIdleStateChanged() {
90570
- this.clearIdleTimer();
90571
- 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()) {
90572
90469
  return;
90573
90470
  }
90574
- const now = this.now();
90575
- if (this.idleGate.evaluate(this.deps.idle(), this.autoRestartMode, now)) {
90576
- void this.quitAndInstall();
90577
- return;
90578
- }
90579
- const remaining = this.idleGate.delayUntilReadyMs(now);
90580
- const delay2 = Math.min(
90581
- remaining === null ? BUSY_POLL_MS : Math.max(remaining, 250),
90582
- AUTO_RESTART_IDLE_MS
90583
- );
90584
- this.idleTimer = setTimeout(() => {
90585
- this.idleTimer = null;
90586
- this.notifyIdleStateChanged();
90587
- }, delay2);
90588
- this.idleTimer.unref?.();
90589
- }
90590
- clearIdleTimer() {
90591
- if (this.idleTimer) clearTimeout(this.idleTimer);
90592
- this.idleTimer = null;
90471
+ void this.quitAndInstall();
90593
90472
  }
90594
90473
  }
90595
90474
  function registerServerUpdater() {
@@ -90602,7 +90481,6 @@ function registerServerUpdater() {
90602
90481
  npm: globalNpmInstaller(app.getAppPath()),
90603
90482
  broadcast: (status2) => broadcastToRenderers(IPC_CHANNELS.UPDATER_STATUS, status2),
90604
90483
  quit: () => app.quit(),
90605
- idle: () => currentIdleRestartObservation(),
90606
90484
  busyCount: () => agentSessionIndex.busyWorkspaceCount(),
90607
90485
  spawnReexec: () => spawnReexec(dataDir2),
90608
90486
  writePending: (update2) => writePendingUpdate(dataDir2, { ...update2, at: Date.now() }),
@@ -90612,7 +90490,10 @@ function registerServerUpdater() {
90612
90490
  ipcMain.handle(IPC_CHANNELS.UPDATER_CHECK, () => updater.checkForUpdates());
90613
90491
  ipcMain.handle(IPC_CHANNELS.UPDATER_DOWNLOAD_UPDATE, () => updater.downloadUpdate());
90614
90492
  ipcMain.handle(IPC_CHANNELS.UPDATER_QUIT_AND_INSTALL, () => updater.quitAndInstall());
90615
- ipcMain.handle(IPC_CHANNELS.UPDATER_RESTART, () => updater.restart());
90493
+ ipcMain.handle(
90494
+ IPC_CHANNELS.UPDATER_RESTART,
90495
+ (_event, force) => updater.restart(force === true)
90496
+ );
90616
90497
  ipcMain.handle(IPC_CHANNELS.UPDATER_SET_AUTO_UPDATE_ENABLED, (_event, enabled2) => {
90617
90498
  if (typeof enabled2 === "boolean") updater.setAutoUpdateEnabled(enabled2);
90618
90499
  });
@@ -94791,6 +94672,19 @@ async function handle(line2, updater, web) {
94791
94672
  if (command.cmd === "pair") return startPairing();
94792
94673
  if (command.cmd === "devices") return { ok: true, status: getPairStatus() };
94793
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
+ }
94794
94688
  if (command.cmd === "status") {
94795
94689
  return {
94796
94690
  ok: true,