@ensocode/server 0.3.8 → 0.3.10

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 (171) hide show
  1. package/out/phone/assets/{abnfDiagram-VCTEODGH-BYULU5bQ.js → abnfDiagram-VCTEODGH-DEIRKSmB.js} +1 -1
  2. package/out/phone/assets/architecture-7GRP2DOG-BQkxfRkk.js +1 -0
  3. package/out/phone/assets/{architectureDiagram-5GKGNRK7-B9-XfmwY.js → architectureDiagram-5GKGNRK7-CFZiReTQ.js} +1 -1
  4. package/out/phone/assets/{blockDiagram-I7D4REHJ-BDjx5h4I.js → blockDiagram-I7D4REHJ-CIBal5Ke.js} +1 -1
  5. package/out/phone/assets/{c4Diagram-7LVT6UL2-BLCrWT5z.js → c4Diagram-7LVT6UL2-Ce7SCOHL.js} +1 -1
  6. package/out/phone/assets/channel-DGPU3seL.js +1 -0
  7. package/out/phone/assets/{chunk-4HAMMTFA-CBLX5PPK.js → chunk-4HAMMTFA-COlQ1_VX.js} +1 -1
  8. package/out/phone/assets/{chunk-75Z2AOVW-BjNsM64u.js → chunk-75Z2AOVW-L2CSsdYQ.js} +1 -1
  9. package/out/phone/assets/{chunk-DU6HZSFF-D32XGmy5.js → chunk-DU6HZSFF-juQC0nTX.js} +1 -1
  10. package/out/phone/assets/{chunk-F27PBJKO-DYrJ0RKS.js → chunk-F27PBJKO-CUQNf9_G.js} +1 -1
  11. package/out/phone/assets/{chunk-GMAD6QVW-C8yUEx5a.js → chunk-GMAD6QVW-BzsNlUWy.js} +1 -1
  12. package/out/phone/assets/{chunk-GVQU2GXP-nOF6gFr6.js → chunk-GVQU2GXP-a7Sg14KC.js} +1 -1
  13. package/out/phone/assets/{chunk-IMKFNOWR-Bw90xROV.js → chunk-IMKFNOWR-B86isBFr.js} +1 -1
  14. package/out/phone/assets/{chunk-L3NEJ4N5-hIXFqCYn.js → chunk-L3NEJ4N5-D9GQEj7C.js} +1 -1
  15. package/out/phone/assets/{chunk-OSK3NFVY-CDR6cbF7.js → chunk-OSK3NFVY-ZHLE_p8D.js} +1 -1
  16. package/out/phone/assets/{chunk-P2QGCYS3-B5LBNgEn.js → chunk-P2QGCYS3-CIqiw4vs.js} +1 -1
  17. package/out/phone/assets/{chunk-POPQ4Y6H-Ctie8lW0.js → chunk-POPQ4Y6H-pTX0vZo7.js} +1 -1
  18. package/out/phone/assets/{chunk-PWAF6VOD-VUQ3ZQa0.js → chunk-PWAF6VOD-BXK9ou77.js} +1 -1
  19. package/out/phone/assets/{chunk-SHT3W25Y-ThT795xc.js → chunk-SHT3W25Y-BLZNPdt8.js} +1 -1
  20. package/out/phone/assets/{chunk-SVP7TREG-DaLedBcS.js → chunk-SVP7TREG-wR8iPcjt.js} +1 -1
  21. package/out/phone/assets/{chunk-TICWLB2K-EZdof5x9.js → chunk-TICWLB2K-CueyYenv.js} +1 -1
  22. package/out/phone/assets/classDiagram-ZZMXUADV-DgtztyWS.js +1 -0
  23. package/out/phone/assets/classDiagram-v2-VYDZK3BY-DgtztyWS.js +1 -0
  24. package/out/phone/assets/{cynefin-OW5HDTMX-s8d8cA90.js → cynefin-OW5HDTMX-LV70kdIp.js} +1 -1
  25. package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-BvUrZrEv.js → cynefinDiagram-5FMLGOSQ-jSFJ3Ff1.js} +1 -1
  26. package/out/phone/assets/{dagre-GXQ25YYZ-Y4KQyhxZ.js → dagre-GXQ25YYZ-DnmK3Igj.js} +1 -1
  27. package/out/phone/assets/{desk-BpEz3CoY.js → desk-BLXfa62y.js} +1 -1
  28. package/out/phone/assets/{diagram-S7CK7UJ4-BOnQE44W.js → diagram-S7CK7UJ4-KdmyjPOb.js} +1 -1
  29. package/out/phone/assets/{diagram-UQ7AKVKN-DinAxyUq.js → diagram-UQ7AKVKN-D1D-C9ty.js} +1 -1
  30. package/out/phone/assets/{diagram-VSXAHHWV-1SZEAZcR.js → diagram-VSXAHHWV-CO_oZjy2.js} +1 -1
  31. package/out/phone/assets/{diagram-VX7I27RA-CeqFT5PL.js → diagram-VX7I27RA-VLBWCwXT.js} +1 -1
  32. package/out/phone/assets/{diagram-Z3DM3KII-CKUQZLUU.js → diagram-Z3DM3KII-wXmAYt0S.js} +1 -1
  33. package/out/phone/assets/{ebnfDiagram-PWID7BFC-D-vPzzm8.js → ebnfDiagram-PWID7BFC-COmreC4F.js} +1 -1
  34. package/out/phone/assets/{erDiagram-RLTQ6QDP--yabuiWQ.js → erDiagram-RLTQ6QDP-YD40E3kV.js} +1 -1
  35. package/out/phone/assets/eventmodeling-NTZA5JFV-DdkbB0R7.js +1 -0
  36. package/out/phone/assets/flowDiagram-HODETNUW-B86UG3OY.js +1 -0
  37. package/out/phone/assets/{ganttDiagram-EL5Y4UJY-DuceHpP7.js → ganttDiagram-EL5Y4UJY-CC0eW0wn.js} +1 -1
  38. package/out/phone/assets/{gitGraph-4MIJSDKK-Dy69JGci.js → gitGraph-4MIJSDKK-BpKZk8Hu.js} +1 -1
  39. package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DAsGy8VO.js → gitGraphDiagram-WWUBYQGX-BCK9rLLJ.js} +1 -1
  40. package/out/phone/assets/{info-A6RAGUB7-Bi2rn7zz.js → info-A6RAGUB7-BKUEMrSk.js} +1 -1
  41. package/out/phone/assets/{infoDiagram-27XIBGKW-DLYnX9vk.js → infoDiagram-27XIBGKW-6kVlxml9.js} +1 -1
  42. package/out/phone/assets/{ishikawaDiagram-5VMMS53U-frgoq43k.js → ishikawaDiagram-5VMMS53U-36KijlM2.js} +1 -1
  43. package/out/phone/assets/{journeyDiagram-3NMN7TZE-LfNbEnHq.js → journeyDiagram-3NMN7TZE-B3r6-igU.js} +1 -1
  44. package/out/phone/assets/{kanban-definition-UXKFOSKX-BYOUPJHU.js → kanban-definition-UXKFOSKX-DDJMJ3eD.js} +1 -1
  45. package/out/phone/assets/{line-_FhXTvX4.js → line-CRvTNHUs.js} +1 -1
  46. package/out/phone/assets/main-BU1pbfVw.css +1 -0
  47. package/out/phone/assets/{main-CfWT8VXG.js → main-C650ZDk2.js} +120 -118
  48. package/out/phone/assets/{mermaid-parser.core-ByliMPZm.js → mermaid-parser.core-vpmsl7OW.js} +3 -3
  49. package/out/phone/assets/{mermaid.core-Mmd8_4Nr.js → mermaid.core-P6wqHn79.js} +4 -4
  50. package/out/phone/assets/{mindmap-definition-YA3MSWOX-C96rrhDe.js → mindmap-definition-YA3MSWOX-C1Qj4NCg.js} +1 -1
  51. package/out/phone/assets/{packet-AYTQ26CC-CMANaRii.js → packet-AYTQ26CC-dPa_bCkN.js} +1 -1
  52. package/out/phone/assets/{pegDiagram-XKGWAZYB-CGL6jEdQ.js → pegDiagram-XKGWAZYB-DP29zlwD.js} +1 -1
  53. package/out/phone/assets/{pie-WAS4IAKB-Dqr8Yw0J.js → pie-WAS4IAKB-B7gaGnZC.js} +1 -1
  54. package/out/phone/assets/{pieDiagram-E7YTZNPT-CFhX0DbB.js → pieDiagram-E7YTZNPT-BIv_DaLU.js} +1 -1
  55. package/out/phone/assets/{quadrantDiagram-AXDQQJYC-CIy7q7Mf.js → quadrantDiagram-AXDQQJYC-BRD0SxVe.js} +1 -1
  56. package/out/phone/assets/{radar-RG4KPBEZ-Lx6rDXGt.js → radar-RG4KPBEZ-DSXX0eGO.js} +1 -1
  57. package/out/phone/assets/{railroad-74A4TZTK-CFfqCtSc.js → railroad-74A4TZTK-CyBIlVYV.js} +1 -1
  58. package/out/phone/assets/railroad-abnf-HS5TGJTU-Ea30PClf.js +1 -0
  59. package/out/phone/assets/railroad-ebnf-LZEXJU2U-BAOLVW4i.js +1 -0
  60. package/out/phone/assets/railroad-peg-WCYAUIDC-DiLa9rTe.js +1 -0
  61. package/out/phone/assets/{railroadDiagram-O6MQD6OU-NmlxNdEs.js → railroadDiagram-O6MQD6OU-DqLjIO9E.js} +1 -1
  62. package/out/phone/assets/{requirementDiagram-BXWQKSXE-C1PDc05u.js → requirementDiagram-BXWQKSXE-DXMysPAW.js} +1 -1
  63. package/out/phone/assets/{sankeyDiagram-P5KCCOFB-CfwTCG6L.js → sankeyDiagram-P5KCCOFB-CvbRufzx.js} +1 -1
  64. package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-A-L3mYui.js → sequenceDiagram-WJ2MYXX4-CFMJYkK9.js} +1 -1
  65. package/out/phone/assets/{stateDiagram-D77RDMKH-nRUGxe4_.js → stateDiagram-D77RDMKH-C--GDYGR.js} +1 -1
  66. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-C87lzpXA.js +1 -0
  67. package/out/phone/assets/{storage-DU47Rb1q.js → storage-dUWOZ2xo.js} +2 -2
  68. package/out/phone/assets/{swimlanes-42K2YHIH-7K-yTToK.js → swimlanes-42K2YHIH-C_L9ypxQ.js} +1 -1
  69. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-CPaJpMYE.js +8 -0
  70. package/out/phone/assets/{timeline-definition-24CTP7MA-DXbVHlED.js → timeline-definition-24CTP7MA-BEk-ED-p.js} +1 -1
  71. package/out/phone/assets/{treeView-Q6P3EWNA-M_osDfi3.js → treeView-Q6P3EWNA-rolWZTr4.js} +1 -1
  72. package/out/phone/assets/{treemap-WGGIJYW6-BMi5B7KJ.js → treemap-WGGIJYW6-CPWEaY39.js} +1 -1
  73. package/out/phone/assets/{vennDiagram-4TSXK5OY-D3EpIx9s.js → vennDiagram-4TSXK5OY-CqImR0EN.js} +1 -1
  74. package/out/phone/assets/{wardley-WFR3VGLG-nB8yKilO.js → wardley-WFR3VGLG-CvTGA92O.js} +1 -1
  75. package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DSghcmRr.js → wardleyDiagram-VM6X3IG4-D9eDqbbx.js} +1 -1
  76. package/out/phone/assets/{xychartDiagram-S5SC5T6Z-BEl0ProS.js → xychartDiagram-S5SC5T6Z-DSenC7kX.js} +1 -1
  77. package/out/phone/desk.html +2 -2
  78. package/out/phone/index.html +3 -3
  79. package/out/renderer/assets/{abnfDiagram-VCTEODGH-BB3W0IRN.js → abnfDiagram-VCTEODGH-D81xzDT1.js} +1 -1
  80. package/out/renderer/assets/{arc-r0xtJ5ab.js → arc-ByHjKist.js} +1 -1
  81. package/out/renderer/assets/{architectureDiagram-5GKGNRK7-BC8Ww6fQ.js → architectureDiagram-5GKGNRK7-Bw7RgtuP.js} +1 -1
  82. package/out/renderer/assets/{blockDiagram-I7D4REHJ-wup9ZluJ.js → blockDiagram-I7D4REHJ-nNM7I115.js} +1 -1
  83. package/out/renderer/assets/{c4Diagram-7LVT6UL2-BwWATTxt.js → c4Diagram-7LVT6UL2-xixXJMhC.js} +1 -1
  84. package/out/renderer/assets/channel-C9jBFK-_.js +1 -0
  85. package/out/renderer/assets/{chunk-2Q5K7J3B-Dw4JQaKM.js → chunk-2Q5K7J3B-C0KzftkI.js} +1 -1
  86. package/out/renderer/assets/{chunk-5VM5RSS4-p6eptEa6.js → chunk-5VM5RSS4-CuqKTpNC.js} +1 -1
  87. package/out/renderer/assets/{chunk-F27PBJKO-crFPFXKS.js → chunk-F27PBJKO-DyZs2_AC.js} +1 -1
  88. package/out/renderer/assets/{chunk-IMKFNOWR-Bnu9wgyD.js → chunk-IMKFNOWR-C7ktAo0J.js} +1 -1
  89. package/out/renderer/assets/{chunk-JWPE2WC7-B8Xhiasd.js → chunk-JWPE2WC7-CZpmOwpA.js} +1 -1
  90. package/out/renderer/assets/{chunk-POPQ4Y6H-Cgaq3GTd.js → chunk-POPQ4Y6H-CVFNZRTi.js} +1 -1
  91. package/out/renderer/assets/{chunk-SVP7TREG-Dxz3ENUO.js → chunk-SVP7TREG-DhMMCFNi.js} +1 -1
  92. package/out/renderer/assets/{chunk-TICWLB2K-DKsdmE8K.js → chunk-TICWLB2K-BsceTDhj.js} +1 -1
  93. package/out/renderer/assets/{chunk-XXDRQBXY-D4zS63eZ.js → chunk-XXDRQBXY-C_grf3wS.js} +1 -1
  94. package/out/renderer/assets/classDiagram-ZZMXUADV-B_o-oRUo.js +1 -0
  95. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-B_o-oRUo.js +1 -0
  96. package/out/renderer/assets/{cose-bilkent-JH36ORCC-Cd7k91g4.js → cose-bilkent-JH36ORCC-wUQVmxx_.js} +1 -1
  97. package/out/renderer/assets/{cynefin-OW5HDTMX-qIf7N9zE.js → cynefin-OW5HDTMX-BR546Wt2.js} +1 -1
  98. package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-DZq47G9W.js → cynefinDiagram-5FMLGOSQ-Dp2jJhbH.js} +1 -1
  99. package/out/renderer/assets/{cytoscape-fcose-BUV0U04U.js → cytoscape-fcose-BJkAlKB8.js} +1 -1
  100. package/out/renderer/assets/{dagre-GXQ25YYZ-jHWFk6Gs.js → dagre-GXQ25YYZ-XKFl5kxK.js} +1 -1
  101. package/out/renderer/assets/{diagram-S7CK7UJ4-BM99y_vq.js → diagram-S7CK7UJ4-BBFt2zKx.js} +1 -1
  102. package/out/renderer/assets/{diagram-UQ7AKVKN-DWw2eBQS.js → diagram-UQ7AKVKN-DA2CgkM2.js} +1 -1
  103. package/out/renderer/assets/{diagram-VSXAHHWV-BpQqnXFN.js → diagram-VSXAHHWV-BL96nDcT.js} +1 -1
  104. package/out/renderer/assets/{diagram-VX7I27RA-DIwy3ILe.js → diagram-VX7I27RA-BYbjhI9j.js} +1 -1
  105. package/out/renderer/assets/{diagram-Z3DM3KII-CyggPXCP.js → diagram-Z3DM3KII-BShKaR0Y.js} +1 -1
  106. package/out/renderer/assets/{ebnfDiagram-PWID7BFC-BW1zQBfH.js → ebnfDiagram-PWID7BFC-CxCXjhNE.js} +1 -1
  107. package/out/renderer/assets/{erDiagram-RLTQ6QDP-DeBd9wgY.js → erDiagram-RLTQ6QDP-D6a85aJz.js} +1 -1
  108. package/out/renderer/assets/{flowDiagram-HODETNUW-DuHDP4W5.js → flowDiagram-HODETNUW-D7vxYWv_.js} +1 -1
  109. package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-BWzm5BP7.js → ganttDiagram-EL5Y4UJY-D4bniC42.js} +1 -1
  110. package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-BVW6A1c7.js → gitGraphDiagram-WWUBYQGX-DREOVv8G.js} +1 -1
  111. package/out/renderer/assets/{globals-BTwoz2I6.js → globals-1URrQWJU.js} +207 -207
  112. package/out/renderer/assets/globals-DoPyZAQo.css +1 -0
  113. package/out/renderer/assets/index-8xDwl1RO.js +133 -0
  114. package/out/renderer/assets/{infoDiagram-27XIBGKW-BnQ0QqrX.js → infoDiagram-27XIBGKW-iQi9WT0H.js} +1 -1
  115. package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-C8Kybb7-.js → ishikawaDiagram-5VMMS53U-CqPXH73H.js} +1 -1
  116. package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BFN7ls5V.js → journeyDiagram-3NMN7TZE-DjEyHtge.js} +1 -1
  117. package/out/renderer/assets/{kanban-definition-UXKFOSKX-DDNfT2Ap.js → kanban-definition-UXKFOSKX-D-bxhvRO.js} +1 -1
  118. package/out/renderer/assets/{layout-DG726kRG.js → layout-O4Dt9JSp.js} +1 -1
  119. package/out/renderer/assets/{linear-CyRBABsR.js → linear-B3fSR3zo.js} +1 -1
  120. package/out/renderer/assets/{mermaid.core-DPQo0NhF.js → mermaid.core-DKfKek0K.js} +5 -5
  121. package/out/renderer/assets/{mindmap-definition-YA3MSWOX-BKjiHq0N.js → mindmap-definition-YA3MSWOX-CgWelgTn.js} +1 -1
  122. package/out/renderer/assets/{pegDiagram-XKGWAZYB-cGBsq_Dp.js → pegDiagram-XKGWAZYB-6YROVnYK.js} +1 -1
  123. package/out/renderer/assets/{pieDiagram-E7YTZNPT-CB8FqRel.js → pieDiagram-E7YTZNPT-BboI-zql.js} +1 -1
  124. package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-CZsQnmHv.js → quadrantDiagram-AXDQQJYC-Ckl9-8_q.js} +1 -1
  125. package/out/renderer/assets/{railroadDiagram-O6MQD6OU-CtHtwIss.js → railroadDiagram-O6MQD6OU-CBmldUiO.js} +1 -1
  126. package/out/renderer/assets/{requirementDiagram-BXWQKSXE-C8IKRBmx.js → requirementDiagram-BXWQKSXE-BhCPsXeE.js} +1 -1
  127. package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-DxIvac4Q.js → sankeyDiagram-P5KCCOFB-KCriZNRW.js} +1 -1
  128. package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-CW0GnaxQ.js → sequenceDiagram-WJ2MYXX4-BZRpmnqw.js} +1 -1
  129. package/out/renderer/assets/settings-DbHps6fb.js +27 -0
  130. package/out/renderer/assets/{sizeCapture-INFHLROL-CUNNzORL.js → sizeCapture-INFHLROL-BHJ5WHSf.js} +1 -1
  131. package/out/renderer/assets/{stateDiagram-D77RDMKH-b6LNqPfN.js → stateDiagram-D77RDMKH-DxHudD45.js} +1 -1
  132. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C0JE59RO.js +1 -0
  133. package/out/renderer/assets/{swimlanes-42K2YHIH-C2Pjkv6k.js → swimlanes-42K2YHIH-D2ZZdZPU.js} +1 -1
  134. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-DJJObg42.js +8 -0
  135. package/out/renderer/assets/{timeline-definition-24CTP7MA-DVo6WWfn.js → timeline-definition-24CTP7MA-D4FtI5C_.js} +1 -1
  136. package/out/renderer/assets/{vennDiagram-4TSXK5OY-I_UOGgKE.js → vennDiagram-4TSXK5OY-BVq6hKjH.js} +1 -1
  137. package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-pgaJTE-_.js → wardleyDiagram-VM6X3IG4-39qPSeSF.js} +1 -1
  138. package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-C0CTpbX7.js → xychartDiagram-S5SC5T6Z-IjWUG31x.js} +1 -1
  139. package/out/renderer/index.html +3 -3
  140. package/out/renderer/settings.html +4 -4
  141. package/out/renderer/web-preload.js +21 -21
  142. package/out/server/agent.js +62 -15
  143. package/out/server/chunks/{agent-2QNVhuY3.js → agent-BbLTL3oo.js} +175 -164
  144. package/out/server/chunks/conversationsMove-CJZfkj55.js +57 -0
  145. package/out/server/chunks/{gpuBackendInstall-BsVsFpgX.js → gpuBackendInstall-DdJZ_JTr.js} +4 -4
  146. package/out/server/chunks/{loadProvider-BdIE3W6z.js → loadProvider-BOW5-6B-.js} +2 -2
  147. package/out/server/chunks/{manifest-VLS5iL-K.js → manifest-DjsZzZuh.js} +37 -6
  148. package/out/server/chunks/{workflowPresets-BJwuORhf.js → workflowPresets-BtFDIu9c.js} +187 -150
  149. package/out/server/index.js +3014 -1136
  150. package/out/server/plugin-host.js +53 -2
  151. package/package.json +1 -1
  152. package/out/phone/assets/architecture-7GRP2DOG-2pbpN4eZ.js +0 -1
  153. package/out/phone/assets/channel-D6Jp0e5s.js +0 -1
  154. package/out/phone/assets/classDiagram-ZZMXUADV-DDYMR8uV.js +0 -1
  155. package/out/phone/assets/classDiagram-v2-VYDZK3BY-DDYMR8uV.js +0 -1
  156. package/out/phone/assets/eventmodeling-NTZA5JFV-BVUcXI_2.js +0 -1
  157. package/out/phone/assets/flowDiagram-HODETNUW-lyDnpL9j.js +0 -1
  158. package/out/phone/assets/main-TDCArlgf.css +0 -1
  159. package/out/phone/assets/railroad-abnf-HS5TGJTU-Cc2ok2-H.js +0 -1
  160. package/out/phone/assets/railroad-ebnf-LZEXJU2U-B-egGDno.js +0 -1
  161. package/out/phone/assets/railroad-peg-WCYAUIDC-DGbcDKYr.js +0 -1
  162. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Bk1aRZ0l.js +0 -1
  163. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-C1bEcwWi.js +0 -8
  164. package/out/renderer/assets/channel-CPp6hdRq.js +0 -1
  165. package/out/renderer/assets/classDiagram-ZZMXUADV-Be_lIO5F.js +0 -1
  166. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-Be_lIO5F.js +0 -1
  167. package/out/renderer/assets/globals-BMp8RrrF.css +0 -1
  168. package/out/renderer/assets/index-DzCbQXPw.js +0 -131
  169. package/out/renderer/assets/settings-C-kHWSQ1.js +0 -27
  170. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-CwGKVtdP.js +0 -1
  171. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-BqwKnfw9.js +0 -8
@@ -6,7 +6,7 @@ import { EventEmitter, once } from "node:events";
6
6
  import http2 from "node:http2";
7
7
  import { PassThrough } from "node:stream";
8
8
  import { AsyncLocalStorage } from "node:async_hooks";
9
- import { b as emptyUsage } from "./workflowPresets-BJwuORhf.js";
9
+ import { b as emptyUsage } from "./workflowPresets-BtFDIu9c.js";
10
10
  const CURSOR_CLIENT_VERSION = process.env.PI_CURSOR_CLIENT_VERSION || "cli-2026.07.23-e383d2b";
11
11
  const MAX_BRIDGE_MESSAGE_BYTES = 64 * 1024 * 1024;
12
12
  const MAX_ERROR_BODY_BYTES = 1024 * 1024;
@@ -972,4 +972,4 @@ export {
972
972
  isCursorModel as i,
973
973
  loadCursorProvider as l
974
974
  };
975
- //# sourceMappingURL=loadProvider-BdIE3W6z.js.map
975
+ //# sourceMappingURL=loadProvider-BOW5-6B-.js.map
@@ -1,4 +1,4 @@
1
- import { a6 as pluginToolName, af as isReservedAgentTypeName, ag as BUILTIN_AGENT_TYPES, T as THINKING_LEVELS, c5 as isWorkflowPresetId, c6 as PLUGIN_EVENTS, c7 as isInterceptEvent, c8 as APPEND_ONLY_INTERCEPT_EVENTS } from "./agent-2QNVhuY3.js";
1
+ import { a7 as pluginToolName, ag as isReservedAgentTypeName, ah as BUILTIN_AGENT_TYPES, T as THINKING_LEVELS, c6 as isWorkflowPresetId, c7 as PLUGIN_EVENTS, c8 as isInterceptEvent, c9 as APPEND_ONLY_INTERCEPT_EVENTS } from "./agent-BbLTL3oo.js";
2
2
  const STATUS_TONES = ["neutral", "accent", "success", "warning", "danger"];
3
3
  const MAX_STATUS_TEXT = 24;
4
4
  const MAX_STATUS_TOOLTIP = 200;
@@ -63,7 +63,8 @@ const EXTENSION_PLUGIN_PERMISSIONS = [
63
63
  "session.readAll",
64
64
  "session.focus",
65
65
  "session.create",
66
- "agent.run"
66
+ "agent.run",
67
+ "secretary.contact"
67
68
  ];
68
69
  const PLUGIN_TRIGGER_SYMBOLS = ["#"];
69
70
  const KEY_NAME = /^(?:[a-z0-9]|f(?:[1-9]|1[0-2])|[,./;'[\]\\=`-]|arrow(?:up|down|left|right)|enter|space|tab|backspace|delete|home|end|pageup|pagedown)$/;
@@ -100,6 +101,13 @@ const TOOL = /^[a-z][a-z0-9_]*$/;
100
101
  const LOCAL_ID = /^[a-z][a-z0-9-]{0,31}$/;
101
102
  const FILE_SUFFIX = /^\.[a-z0-9][a-z0-9_-]*(\.[a-z0-9][a-z0-9_-]*)*$/;
102
103
  const DOMAIN = /^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;
104
+ const WILDCARD_DOMAIN = /^\*\.(?=.{1,251}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;
105
+ function pluginDomainAllowed(domains, hostname) {
106
+ const host = hostname.toLowerCase();
107
+ return domains.some(
108
+ (domain) => domain.startsWith("*.") ? host.endsWith(domain.slice(1)) : domain === host
109
+ );
110
+ }
103
111
  const ENGINE = /^>=(\d+)\.(\d+)\.(\d+)$/;
104
112
  const METHOD = /^[A-Za-z][A-Za-z0-9_.-]{0,63}$/;
105
113
  const MCP_TOOL = /^[A-Za-z0-9_.-]{1,64}$/;
@@ -257,7 +265,7 @@ function parseExtensionPluginManifest(raw, hostVersion) {
257
265
  domains: stringList(
258
266
  isRecord(netRaw) ? netRaw.domains : void 0,
259
267
  "net.domains",
260
- (d) => typeof d === "string" && DOMAIN.test(d)
268
+ (d) => typeof d === "string" && (DOMAIN.test(d) || WILDCARD_DOMAIN.test(d))
261
269
  )
262
270
  };
263
271
  const mcpRaw = raw.mcp === void 0 ? {} : raw.mcp;
@@ -351,6 +359,19 @@ function parseExtensionPluginManifest(raw, hostVersion) {
351
359
  else views.push({ id: v.id, title: v.title, entry: v.entry });
352
360
  }
353
361
  uniqueIds(views, "侧栏页面");
362
+ const contactChannels = [];
363
+ for (const v of list("contactChannels")) {
364
+ if (!isRecord(v) || typeof v.id !== "string" || !LOCAL_ID.test(v.id) || !isNonEmptyString(v.title, 40) || v.icon !== void 0 && !isPluginRelativePath(v.icon) || v.settingsView !== void 0 && (!isPluginRelativePath(v.settingsView) || !v.settingsView.endsWith(".html")))
365
+ errors.push("联系方式渠道不合法");
366
+ else
367
+ contactChannels.push({
368
+ id: v.id,
369
+ title: v.title.trim(),
370
+ ...typeof v.icon === "string" ? { icon: v.icon } : {},
371
+ ...typeof v.settingsView === "string" ? { settingsView: v.settingsView } : {}
372
+ });
373
+ }
374
+ uniqueIds(contactChannels, "联系方式渠道");
354
375
  const fileViewers = [];
355
376
  for (const v of list("fileViewers")) {
356
377
  if (!isRecord(v) || typeof v.id !== "string" || !LOCAL_ID.test(v.id) || !isNonEmptyString(v.title, 40) || !isPluginRelativePath(v.entry) || !v.entry.endsWith(".html") || !Array.isArray(v.extensions) || v.extensions.length === 0 || v.extensions.length > 32 || !v.extensions.every(
@@ -657,6 +678,14 @@ function parseExtensionPluginManifest(raw, hostVersion) {
657
678
  need(triggers.length > 0, "ui.slot", "triggers");
658
679
  need(views.length > 0, "ui.view", "views");
659
680
  need(fileViewers.length > 0, "ui.view", "fileViewers");
681
+ need(contactChannels.length > 0, "secretary.contact", "contactChannels");
682
+ need(
683
+ contactChannels.some((channel) => channel.settingsView !== void 0),
684
+ "ui.view",
685
+ "contactChannels.settingsView"
686
+ );
687
+ if (permissions.includes("secretary.contact") && !main)
688
+ errors.push("secretary.contact 需要 main 来收发消息");
660
689
  need(mcpServers.length > 0, "mcp.server", "mcpServers");
661
690
  need(fs.read.length > 0, "fs.read", "fs.read");
662
691
  need(fs.write.length > 0, "fs.write", "fs.write");
@@ -705,6 +734,7 @@ function parseExtensionPluginManifest(raw, hostVersion) {
705
734
  schedules,
706
735
  exports: exportsList,
707
736
  themes,
737
+ ...contactChannels.length > 0 ? { contactChannels } : {},
708
738
  dynamic
709
739
  }
710
740
  }
@@ -878,11 +908,12 @@ export {
878
908
  MAX_TOOL_TIMEOUT_MS as M,
879
909
  isNewerPluginVersion as a,
880
910
  isPluginRelativePath as b,
881
- parseExtensionPluginManifest as c,
882
- parsePluginModelChoice as d,
911
+ pluginDomainAllowed as c,
912
+ parseExtensionPluginManifest as d,
883
913
  enginesAllow as e,
914
+ parsePluginModelChoice as f,
884
915
  isPluginId as i,
885
916
  mergeStatusItems as m,
886
917
  parseStatusPatch as p
887
918
  };
888
- //# sourceMappingURL=manifest-VLS5iL-K.js.map
919
+ //# sourceMappingURL=manifest-DjsZzZuh.js.map
@@ -1,4 +1,4 @@
1
- import { T as THINKING_LEVELS$1, a7 as APPROVAL_MODES, g as MODEL_REASONING_OVERRIDES, h as MODEL_THINKING_LEVEL_OVERRIDES, Y as splitPlanPrefix, bD as DEFAULT_BASE_URLS, $ as isClassifierOnlyProvider, bI as PROJECTED_FILE_TEXT_LIMIT, bx as SHELL_LIMITS, bJ as imageGenerationPreviewPaths, bK as parseGeneratedImagePaths, bL as parseMaskReport, P as PLUGIN_MESSAGE_TYPE, bM as parsePluginMessageSource, bN as parseRtkToolStats, bO as isBackgroundTaskId, bP as parseShellFailure, ar as parsePluginToolName, bQ as pluginArtifactsFromToolDetails, bR as parseApprovalReviewRecord, bS as PROJECTED_FILE_CHANGE_LIMIT, bT as PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT, bU as PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT, a4 as PRIVACY_MASK_ENTRY, aE as parsePrivacyMaskRecord, a3 as mergeMaskReports, bV as foldPlanState, bW as PLAN_MODE_ON_NOTE, bX as PLAN_MODE_OFF_NOTE, bY as planFeedbackText, bZ as planKickoffText, b_ as activePlanNote, b$ as PLAN_TITLE_MAX, c0 as PLAN_TEXT_MAX, c1 as planPhase, K as PLAN_ENTRY_TYPE, c2 as parsePlanEntry, aX as AGENT_WAIT_DEFAULT_MS, aY as AGENT_WAIT_MAX_MS, c3 as parseAgentControlToolRequest, c4 as nativeSearchKindFor, c5 as isWorkflowPresetId } from "./agent-2QNVhuY3.js";
1
+ import { T as THINKING_LEVELS$1, a8 as APPROVAL_MODES, g as MODEL_REASONING_OVERRIDES, h as MODEL_THINKING_LEVEL_OVERRIDES, Z as splitPlanPrefix, bE as DEFAULT_BASE_URLS, a0 as isClassifierOnlyProvider, bJ as PROJECTED_FILE_TEXT_LIMIT, by as SHELL_LIMITS, bK as imageGenerationPreviewPaths, bL as parseGeneratedImagePaths, bM as parseMaskReport, P as PLUGIN_MESSAGE_TYPE, bN as parsePluginMessageSource, bO as parseRtkToolStats, bP as isBackgroundTaskId, bQ as parseShellFailure, as as parsePluginToolName, bR as pluginArtifactsFromToolDetails, bS as parseApprovalReviewRecord, bT as PROJECTED_FILE_CHANGE_LIMIT, bU as PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT, bV as PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT, a5 as PRIVACY_MASK_ENTRY, aF as parsePrivacyMaskRecord, a4 as mergeMaskReports, bW as foldPlanState, bX as PLAN_MODE_ON_NOTE, bY as PLAN_MODE_OFF_NOTE, bZ as planFeedbackText, b_ as planKickoffText, b$ as activePlanNote, c0 as PLAN_TITLE_MAX, c1 as PLAN_TEXT_MAX, c2 as planPhase, L as PLAN_ENTRY_TYPE, c3 as parsePlanEntry, aY as AGENT_WAIT_DEFAULT_MS, aZ as AGENT_WAIT_MAX_MS, c4 as parseAgentControlToolRequest, c5 as nativeSearchKindFor, c6 as isWorkflowPresetId } from "./agent-BbLTL3oo.js";
2
2
  import fs, { statSync, writeFileSync, appendFileSync, existsSync, readFileSync, mkdirSync, realpathSync, constants, lstatSync, createWriteStream, renameSync, readdirSync } from "node:fs";
3
3
  import { readFile, writeFile, rename, rm, unlink, open, lstat, chmod, realpath, access, mkdir } from "node:fs/promises";
4
4
  import os, { homedir } from "node:os";
@@ -425,7 +425,7 @@ function resolveCustomModelCapabilities(catalog, overrides) {
425
425
  const picked = pickModelCapabilityOverrides(overrides);
426
426
  const catalogHit = catalog !== void 0;
427
427
  const reasoning = resolveReasoning(catalog, picked);
428
- const thinking = resolveThinkingLevelMap(catalog, picked, catalogHit, reasoning.value);
428
+ const thinking = resolveThinkingLevelMap(catalog, picked, reasoning.value);
429
429
  const contextWindow = resolvePositive(
430
430
  picked.contextWindow,
431
431
  catalogHit ? positiveFiniteNumber(catalog?.contextWindow) : void 0,
@@ -462,16 +462,16 @@ function resolveReasoning(catalog, picked) {
462
462
  }
463
463
  return { value: true, source: "default" };
464
464
  }
465
- function resolveThinkingLevelMap(catalog, picked, catalogHit, reasoningEnabled) {
465
+ function resolveThinkingLevelMap(catalog, picked, reasoningEnabled) {
466
466
  if (picked.thinkingLevel) {
467
467
  return {
468
468
  value: thinkingLevelMapForCap(picked.thinkingLevel),
469
469
  source: "override"
470
470
  };
471
471
  }
472
- if (catalogHit) {
472
+ if (catalog && (!catalog.thinkingLevelsUnknown || catalog.reasoning === false)) {
473
473
  return {
474
- value: catalog?.thinkingLevelMap,
474
+ value: catalog.thinkingLevelMap,
475
475
  source: "catalog"
476
476
  };
477
477
  }
@@ -620,6 +620,7 @@ function mergeCatalogEntry(pi, dev) {
620
620
  if (!pi) {
621
621
  return {
622
622
  id: dev.id,
623
+ thinkingLevelsUnknown: true,
623
624
  ...dev.provider ? { provider: dev.provider } : {},
624
625
  ...dev.contextWindow ? { contextWindow: dev.contextWindow } : {},
625
626
  ...dev.maxTokens ? { maxTokens: dev.maxTokens } : {},
@@ -6856,18 +6857,6 @@ function buildSshExecArgs(host, remoteCommand, options = {}) {
6856
6857
  args.push("--", host, remoteCommand);
6857
6858
  return args;
6858
6859
  }
6859
- const DEFAULT_PERSONA_PROMPT = "You are a coding assistant running inside pi, a coding agent harness. Help users inspect files, run commands, and modify code.";
6860
- function replacePersonaParagraph(prompt2, persona) {
6861
- if (!persona) return prompt2;
6862
- if (prompt2 === DEFAULT_PERSONA_PROMPT || prompt2.startsWith(`${DEFAULT_PERSONA_PROMPT}
6863
-
6864
- `)) {
6865
- return `${persona}${prompt2.slice(DEFAULT_PERSONA_PROMPT.length)}`;
6866
- }
6867
- return `${prompt2}
6868
-
6869
- ${persona}`;
6870
- }
6871
6860
  const UNATTENDED_PREFIX = /^<unattended>\n([\s\S]*?)\n<\/unattended>(?:\n\n|$)/;
6872
6861
  function splitUnattendedPrefix(text2) {
6873
6862
  const match = UNATTENDED_PREFIX.exec(text2);
@@ -9381,6 +9370,9 @@ function createAskTool(manager) {
9381
9370
  }
9382
9371
  };
9383
9372
  }
9373
+ const SHELL_READ_HINT = "Shell read-only shortcut: prefer read (offset/limit) for files, grep for content, find for paths — the dedicated tools handle line ranges and stream far less output.";
9374
+ const SHELL_SLEEP_HINT = "Sleep-waiting in a foreground command costs a model round per check. Put the whole wait in one command that exits when the condition holds (e.g. `until <check>; do sleep 10; done; <report>`) and run it with background: true — you are notified when it finishes, then end your turn.";
9375
+ const SHELL_TIMEOUT_HINT = "timeout only kills the process; it does not keep this call in the foreground. If the command may outlast the yield, set background: true and end your turn — completion wakes you. Do not poll with sleep, ps, pgrep, or task_output loops.";
9384
9376
  class ForegroundDetachedError extends Error {
9385
9377
  constructor(taskId, reason, output, owner) {
9386
9378
  super(`Command moved to background task ${taskId}`);
@@ -9974,6 +9966,7 @@ class BackgroundTaskManager {
9974
9966
  child.on("error", (error) => {
9975
9967
  task.output += `
9976
9968
  [spawn error] ${error.message}`;
9969
+ if (task.info.status === "running" && !task.settling) void this.settle(task, "failed");
9977
9970
  });
9978
9971
  child.on("close", (code, signal) => this.exited(task, code, signal));
9979
9972
  this.announce(task);
@@ -10406,7 +10399,7 @@ const READLIKE_SHELL = [
10406
10399
  ];
10407
10400
  function shellReadHint(command) {
10408
10401
  if (!READLIKE_SHELL.some((pattern) => pattern.test(command))) return "";
10409
- return "Shell read-only shortcut: prefer read (offset/limit) for files, grep for content, find for paths — the dedicated tools handle line ranges and stream far less output.";
10402
+ return SHELL_READ_HINT;
10410
10403
  }
10411
10404
  const SLEEP_UNIT_SEC = { "": 1, s: 1, m: 60, h: 3600 };
10412
10405
  const SLEEP_HINT_MIN_SEC = 20;
@@ -10418,12 +10411,12 @@ function shellSleepHint(command) {
10418
10411
  if (sleeps.length === 0) return "";
10419
10412
  const loop = /(?:^|[;&|\s])(?:while|until|for)\s/.test(bare);
10420
10413
  if (!loop && sleeps.reduce((sum, value) => sum + value, 0) < SLEEP_HINT_MIN_SEC) return "";
10421
- return "Sleep-waiting in a foreground command costs a model round per check. Put the whole wait in one command that exits when the condition holds (e.g. `until <check>; do sleep 10; done; <report>`) and run it with background: true — you are notified when it finishes, then end your turn.";
10414
+ return SHELL_SLEEP_HINT;
10422
10415
  }
10423
10416
  const TIMEOUT_HINT_MIN_SEC = SHELL_LIMITS.yieldDefaultMs / 1e3;
10424
10417
  function shellTimeoutHint(timeoutSec) {
10425
10418
  if (timeoutSec === void 0 || timeoutSec < TIMEOUT_HINT_MIN_SEC) return "";
10426
- return "timeout only kills the process; it does not keep this call in the foreground. If the command may outlast the yield, set background: true and end your turn — completion wakes you. Do not poll with sleep, ps, pgrep, or task_output loops.";
10419
+ return SHELL_TIMEOUT_HINT;
10427
10420
  }
10428
10421
  function withCommandHints(result2, command, timeoutSec) {
10429
10422
  const hint = [shellReadHint(command), shellSleepHint(command), shellTimeoutHint(timeoutSec)].filter(Boolean).join("\n");
@@ -10437,18 +10430,22 @@ ${first.text}`;
10437
10430
  else content.unshift({ type: "text", text: hint });
10438
10431
  return result2;
10439
10432
  }
10433
+ function backgroundSpawnMode(platform) {
10434
+ return platform === "win32" ? { detached: false, windowsHide: true } : { detached: true };
10435
+ }
10440
10436
  function spawnBackground(command, cwd, spawnOpts) {
10441
10437
  const env = spawnOpts?.env ?? process.env;
10442
10438
  const stdio = ["ignore", "pipe", "pipe"];
10439
+ const mode = backgroundSpawnMode(process.platform);
10443
10440
  if (spawnOpts?.file) {
10444
10441
  return spawn(spawnOpts.file, [...spawnOpts.argsPrefix ?? [], command], {
10445
10442
  cwd,
10446
10443
  env,
10447
- detached: true,
10444
+ ...mode,
10448
10445
  stdio
10449
10446
  });
10450
10447
  }
10451
- return spawn(command, { shell: true, cwd, env, detached: true, stdio });
10448
+ return spawn(command, { shell: true, cwd, env, ...mode, stdio });
10452
10449
  }
10453
10450
  function processAlive(pid) {
10454
10451
  if (!Number.isInteger(pid) || pid <= 0) return false;
@@ -10471,6 +10468,29 @@ const asRecord$3 = (params) => params && typeof params === "object" && !Array.is
10471
10468
  function explicitTimeoutSec(record) {
10472
10469
  return typeof record.timeout === "number" && Number.isFinite(record.timeout) && record.timeout > 0 ? record.timeout : void 0;
10473
10470
  }
10471
+ function shellTerms(name) {
10472
+ return name === "powershell" ? {
10473
+ kind: "PowerShell",
10474
+ syntax: "Commands run in PowerShell, not bash: there is no head, tail or /tmp — use Select-Object -First N / -Last N and $env:TEMP, and chain with ; (&& and || need PowerShell 7). ",
10475
+ sessionState: "Set-Location, $env: changes",
10476
+ follow: "Get-Content -Wait",
10477
+ readCommands: "Get-Content",
10478
+ searchCommands: "Select-String or Get-ChildItem -Recurse",
10479
+ poll: "Start-Sleep, Get-Process",
10480
+ pollJob: "Start-Sleep, Get-Process",
10481
+ detach: "Start-Job, Start-Process or a trailing &"
10482
+ } : {
10483
+ kind: "shell",
10484
+ syntax: "",
10485
+ sessionState: "cd, export",
10486
+ follow: "tail -f",
10487
+ readCommands: "cat/head/tail/sed/nl",
10488
+ searchCommands: "rg/grep/find",
10489
+ poll: "sleep, ps, pgrep",
10490
+ pollJob: "sleep, ps, pgrep, top",
10491
+ detach: "&, nohup, setsid or disown"
10492
+ };
10493
+ }
10474
10494
  function detachedResult(error, context) {
10475
10495
  const { taskId } = error;
10476
10496
  const text2 = yieldReceiptText({
@@ -10525,6 +10545,8 @@ function foregroundCommandTimeoutMs(toolName2, args, limits = SHELL_LIMITS) {
10525
10545
  }
10526
10546
  function withBackground(definition, manager, sessionId, cwd, transform, foregroundSessionId = sessionId) {
10527
10547
  const limits = manager.limits;
10548
+ const name = definition.name;
10549
+ const terms = shellTerms(name);
10528
10550
  const baseParams = definition.parameters;
10529
10551
  const parameters = {
10530
10552
  ...baseParams,
@@ -10536,21 +10558,20 @@ function withBackground(definition, manager, sessionId, cwd, transform, foregrou
10536
10558
  },
10537
10559
  background: {
10538
10560
  type: "boolean",
10539
- description: `Run in the background and return immediately with a job id. Use this whenever the command may outlast the foreground yield (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds/tests; servers/watchers ~${yieldSec(limits.yieldServerMs)}s). Required for anything that does not exit on its own (dev servers, watch modes, tail -f). You will be notified automatically when it finishes — do not poll or sleep-wait; end your turn instead.`
10561
+ description: `Run in the background and return immediately with a job id. Use this whenever the command may outlast the foreground yield (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds/tests; servers/watchers ~${yieldSec(limits.yieldServerMs)}s). Required for anything that does not exit on its own (dev servers, watch modes, ${terms.follow}). You will be notified automatically when it finishes — do not poll or sleep-wait; end your turn instead.`
10540
10562
  }
10541
10563
  }
10542
10564
  };
10543
- const name = definition.name;
10544
10565
  return {
10545
10566
  ...definition,
10546
10567
  parameters,
10547
- description: `${definition.description} Each call runs in a fresh shell: cd, export and activated virtualenvs do not persist between calls, so chain them in one command. A foreground call still running at its yield point (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds, tests and installs; ~${yieldSec(limits.yieldServerMs)}s for servers and watchers) keeps running as a background job and returns a receipt with the job id and log path — that is not a failure. timeout only kills the command when reached. There is no interactive input: password prompts, confirmations and editors fail immediately, so use non-interactive flags. Read files with read (offset/limit) instead of cat/head/tail/sed/nl; search with grep and locate with find instead of running rg/grep/find in a shell command. Do not poll a running job with sleep, ps, pgrep, top, or task_output loops. If you already know the command will outlast the yield, set background: true instead of a large timeout.`,
10548
- promptSnippet: `${name}: run shell commands as tracked jobs. Anything that can outlive the call must use background=true. timeout only kills; it does not extend the wait. Foreground calls yield back with a receipt at ~${yieldSec(limits.yieldServerMs)}–${yieldSec(limits.yieldBuildMs)}s depending on the command, instead of blocking the turn.`,
10568
+ description: `${definition.description} ${terms.syntax}Each call runs in a fresh shell: ${terms.sessionState} and activated virtualenvs do not persist between calls, so chain them in one command. A foreground call still running at its yield point (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds, tests and installs; ~${yieldSec(limits.yieldServerMs)}s for servers and watchers) keeps running as a background job and returns a receipt with the job id and log path — that is not a failure. timeout only kills the command when reached. There is no interactive input: password prompts, confirmations and editors fail immediately, so use non-interactive flags. Read files with read (offset/limit) instead of ${terms.readCommands}; search with grep and locate with find instead of running ${terms.searchCommands} in a shell command. Do not poll a running job with ${terms.pollJob}, or task_output loops. If you already know the command will outlast the yield, set background: true instead of a large timeout.`,
10569
+ promptSnippet: `${name}: run ${terms.kind} commands as tracked jobs. Anything that can outlive the call must use background=true. timeout only kills; it does not extend the wait. Foreground calls yield back with a receipt at ~${yieldSec(limits.yieldServerMs)}–${yieldSec(limits.yieldBuildMs)}s depending on the command, instead of blocking the turn.`,
10549
10570
  promptGuidelines: [
10550
10571
  ...definition.promptGuidelines ?? [],
10551
- `Never background a command with &, nohup, setsid or disown — set background: true on ${name}, which tracks the job and wakes you when it ends.`,
10572
+ `Never background a command with ${terms.detach} — set background: true on ${name}, which tracks the job and wakes you when it ends.`,
10552
10573
  `A ${name} yield receipt means the command is still running as a background job, not that it failed: do not rerun it and do not poll it (task_output loops, sleep) — continue other work or end your turn; its completion wakes you automatically.`,
10553
- `timeout only kills — it does not extend the foreground wait. If a command may outlast the yield (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds), set background: true from the start and end your turn. Never poll with sleep, ps, pgrep, or task_output loops.`
10574
+ `timeout only kills — it does not extend the foreground wait. If a command may outlast the yield (~${yieldSec(limits.yieldDefaultMs)}s; ~${yieldSec(limits.yieldBuildMs)}s for builds), set background: true from the start and end your turn. Never poll with ${terms.poll}, or task_output loops.`
10554
10575
  ],
10555
10576
  async execute(toolCallId, params, signal, onUpdate, ctx) {
10556
10577
  const record = params;
@@ -11402,7 +11423,7 @@ function parseDirectoryProvider(value) {
11402
11423
  }
11403
11424
  return provider;
11404
11425
  }
11405
- const version = "0.3.8";
11426
+ const version = "0.3.10";
11406
11427
  function readModelsDevCache(file) {
11407
11428
  try {
11408
11429
  if (!existsSync(file)) return void 0;
@@ -11868,6 +11889,18 @@ function stampCompactionFromHook(messages, branch) {
11868
11889
  };
11869
11890
  });
11870
11891
  }
11892
+ const DEFAULT_PERSONA_PROMPT = "You are a coding assistant running inside pi, a coding agent harness. Help users inspect files, run commands, and modify code.";
11893
+ function replacePersonaParagraph(prompt2, persona) {
11894
+ if (!persona) return prompt2;
11895
+ if (prompt2 === DEFAULT_PERSONA_PROMPT || prompt2.startsWith(`${DEFAULT_PERSONA_PROMPT}
11896
+
11897
+ `)) {
11898
+ return `${persona}${prompt2.slice(DEFAULT_PERSONA_PROMPT.length)}`;
11899
+ }
11900
+ return `${prompt2}
11901
+
11902
+ ${persona}`;
11903
+ }
11871
11904
  const COMPUTER_DEFAULT_TIMEOUT_SEC = 60;
11872
11905
  const COMPUTER_MAX_TIMEOUT_SEC = 120;
11873
11906
  function asRecord$2(value) {
@@ -14328,11 +14361,11 @@ function scopeError(resolved, roots) {
14328
14361
  const allowed = roots.length > 0 ? roots.join(", ") : "(none)";
14329
14362
  return `path is out of scope: ${resolved}. Allowed roots: ${allowed}`;
14330
14363
  }
14331
- async function validate(deps, requested) {
14364
+ async function validateScopedFile(deps, requested, noun = "image") {
14332
14365
  const trimmed = requested.trim();
14333
14366
  if (!trimmed) return { ok: false, error: "path is required" };
14334
14367
  if (!path.isAbsolute(trimmed))
14335
- return { ok: false, error: "path must be absolute; give the full path of the image" };
14368
+ return { ok: false, error: `path must be absolute; give the full path of the ${noun}` };
14336
14369
  const resolved = await deps.realpath(trimmed);
14337
14370
  if (!resolved) return { ok: false, error: `no such file: ${trimmed}` };
14338
14371
  const roots = deps.roots();
@@ -14342,10 +14375,11 @@ async function validate(deps, requested) {
14342
14375
  if (size > IMAGE_VIEW_MAX_BYTES)
14343
14376
  return {
14344
14377
  ok: false,
14345
- error: `image is too large: ${formatMegabytes(size)}, the limit is ${formatMegabytes(IMAGE_VIEW_MAX_BYTES)}`
14378
+ error: `${noun} is too large: ${formatMegabytes(size)}, the limit is ${formatMegabytes(IMAGE_VIEW_MAX_BYTES)}`
14346
14379
  };
14347
14380
  return { ok: true, path: resolved, size };
14348
14381
  }
14382
+ const validate = validateScopedFile;
14349
14383
  async function readHead(deps, target) {
14350
14384
  if (deps.head) return deps.head(target, HEAD_BYTES);
14351
14385
  const bytes = await deps.read(target);
@@ -15984,82 +16018,82 @@ export {
15984
16018
  transcriptMessages as Z,
15985
16019
  projectMessage as _,
15986
16020
  APPLY_PATCH_PROMPT_GUIDELINES as a,
15987
- validateAgainstSchema as a$,
15988
- takeSnapshotTail as a0,
15989
- attachBackgroundCommandHooks as a1,
15990
- ForegroundDetachedError as a2,
15991
- withHardenedEnv as a3,
15992
- withDetachableExec as a4,
15993
- ELEVATE_ASKPASS_ENV as a5,
15994
- buildElevatedCommand as a6,
15995
- ELEVATE_DECLINED_MARKER as a7,
15996
- ELEVATE_TIMED_OUT_MARKER as a8,
15997
- ELEVATE_TIMEOUT_MS as a9,
15998
- ApprovalGate as aA,
15999
- HUMAN_REQUEST_TIMEOUT_MS as aB,
16000
- TodoStaleReminder as aC,
16001
- CoworkerIdleReminder as aD,
16002
- createUnifiedSubagentTool as aE,
16003
- workflowPresetRoots as aF,
16004
- withMandatoryApproval as aG,
16005
- createBrowserTools as aH,
16006
- withNavigateApproval as aI,
16007
- createMemoryTools as aJ,
16008
- withComputerApproval as aK,
16009
- createComputerTool as aL,
16010
- withApproval as aM,
16011
- listWorkflowPresets as aN,
16012
- createTaskTools as aO,
16013
- BrowserInvoker as aP,
16014
- MemoryInvoker as aQ,
16015
- PlanController as aR,
16016
- ComputerInvoker as aS,
16017
- AskManager as aT,
16018
- createAskTool as aU,
16019
- snapshotMainConversation as aV,
16020
- lastAssistantText as aW,
16021
- positiveContextWindow as aX,
16022
- foregroundCommandTimeoutMs as aY,
16023
- buildTurnDigest as aZ,
16024
- parseJsonFromAssistant as a_,
16025
- ELEVATE_UNAVAILABLE_MARKER as aa,
16026
- expandSkillCommands as ab,
16027
- CODEMODE_FORBIDDEN_TOOLS as ac,
16028
- normalizeTaskCheck as ad,
16029
- validateFetchUrl as ae,
16030
- isPublicAddress as af,
16031
- throwUnlessAllowed as ag,
16032
- readImageView as ah,
16033
- resolveRoots as ai,
16034
- systemImageRoots as aj,
16035
- wrapUntrusted as ak,
16036
- SEND_IMAGE_CAPTION_MAX as al,
16037
- SEND_IMAGE_PER_REPLY as am,
16038
- sendImageItems as an,
16039
- prependTurnNote as ao,
16040
- describeSubagentModels as ap,
16041
- resolveWorkflowPresetArgs as aq,
16042
- extractWriteTargetPaths as ar,
16043
- programTokens as as,
16044
- BackgroundTaskManager as at,
16045
- isDeferredMcp as au,
16046
- providerIdOfAccountKey as av,
16047
- resolveOauthCatalogModel as aw,
16048
- createSshExecutor as ax,
16049
- partitionMcpNamespaces as ay,
16050
- CodemodeHost as az,
16021
+ parseJsonFromAssistant as a$,
16022
+ replacePersonaParagraph as a0,
16023
+ takeSnapshotTail as a1,
16024
+ attachBackgroundCommandHooks as a2,
16025
+ ForegroundDetachedError as a3,
16026
+ withHardenedEnv as a4,
16027
+ withDetachableExec as a5,
16028
+ ELEVATE_ASKPASS_ENV as a6,
16029
+ buildElevatedCommand as a7,
16030
+ ELEVATE_DECLINED_MARKER as a8,
16031
+ ELEVATE_TIMED_OUT_MARKER as a9,
16032
+ CodemodeHost as aA,
16033
+ ApprovalGate as aB,
16034
+ HUMAN_REQUEST_TIMEOUT_MS as aC,
16035
+ TodoStaleReminder as aD,
16036
+ CoworkerIdleReminder as aE,
16037
+ createUnifiedSubagentTool as aF,
16038
+ workflowPresetRoots as aG,
16039
+ withMandatoryApproval as aH,
16040
+ createBrowserTools as aI,
16041
+ withNavigateApproval as aJ,
16042
+ createMemoryTools as aK,
16043
+ withComputerApproval as aL,
16044
+ createComputerTool as aM,
16045
+ withApproval as aN,
16046
+ listWorkflowPresets as aO,
16047
+ createTaskTools as aP,
16048
+ BrowserInvoker as aQ,
16049
+ MemoryInvoker as aR,
16050
+ PlanController as aS,
16051
+ ComputerInvoker as aT,
16052
+ AskManager as aU,
16053
+ createAskTool as aV,
16054
+ snapshotMainConversation as aW,
16055
+ lastAssistantText as aX,
16056
+ positiveContextWindow as aY,
16057
+ foregroundCommandTimeoutMs as aZ,
16058
+ buildTurnDigest as a_,
16059
+ ELEVATE_TIMEOUT_MS as aa,
16060
+ ELEVATE_UNAVAILABLE_MARKER as ab,
16061
+ expandSkillCommands as ac,
16062
+ CODEMODE_FORBIDDEN_TOOLS as ad,
16063
+ normalizeTaskCheck as ae,
16064
+ validateFetchUrl as af,
16065
+ isPublicAddress as ag,
16066
+ throwUnlessAllowed as ah,
16067
+ readImageView as ai,
16068
+ resolveRoots as aj,
16069
+ systemImageRoots as ak,
16070
+ wrapUntrusted as al,
16071
+ SEND_IMAGE_CAPTION_MAX as am,
16072
+ SEND_IMAGE_PER_REPLY as an,
16073
+ sendImageItems as ao,
16074
+ prependTurnNote as ap,
16075
+ describeSubagentModels as aq,
16076
+ resolveWorkflowPresetArgs as ar,
16077
+ extractWriteTargetPaths as as,
16078
+ programTokens as at,
16079
+ BackgroundTaskManager as au,
16080
+ isDeferredMcp as av,
16081
+ providerIdOfAccountKey as aw,
16082
+ resolveOauthCatalogModel as ax,
16083
+ createSshExecutor as ay,
16084
+ partitionMcpNamespaces as az,
16051
16085
  emptyUsage as b,
16052
16086
  DEFAULT_PERSONA_PROMPT as b$,
16053
- appendYieldJson as b0,
16054
- appendCappedLog as b1,
16055
- AGENT_COMPACTION_LOG as b2,
16056
- describeTitleModel as b3,
16057
- buildRollingTitleUserText as b4,
16058
- buildInitialTitleUserText as b5,
16059
- ROLLING_TITLE_SYSTEM_PROMPT as b6,
16060
- TITLE_SYSTEM_PROMPT as b7,
16061
- extractTitle as b8,
16062
- titleRejectReason as b9,
16087
+ validateAgainstSchema as b0,
16088
+ appendYieldJson as b1,
16089
+ appendCappedLog as b2,
16090
+ AGENT_COMPACTION_LOG as b3,
16091
+ describeTitleModel as b4,
16092
+ buildRollingTitleUserText as b5,
16093
+ buildInitialTitleUserText as b6,
16094
+ ROLLING_TITLE_SYSTEM_PROMPT as b7,
16095
+ TITLE_SYSTEM_PROMPT as b8,
16096
+ extractTitle as b9,
16063
16097
  loadWorkflowPreset as bA,
16064
16098
  cloneModelsDevOauthModel as bB,
16065
16099
  withWriteScope as bC,
@@ -16087,18 +16121,18 @@ export {
16087
16121
  parseAntigravityApiKey as bY,
16088
16122
  fetchAntigravityUsage as bZ,
16089
16123
  fetchDevinUsage as b_,
16090
- resolveChildReasoning as ba,
16091
- pickChildReasoningOverride as bb,
16092
- createWebTools as bc,
16093
- createTodoTool as bd,
16094
- withPlanGate as be,
16095
- createSubmitPlanTool as bf,
16096
- titleSummaryTimeoutMs as bg,
16097
- splitUnattendedPrefix as bh,
16098
- resolveHarnessSkillRoots as bi,
16099
- approvalReviewResultExtension as bj,
16100
- readHarnessRuleFiles as bk,
16101
- replacePersonaParagraph as bl,
16124
+ titleRejectReason as ba,
16125
+ resolveChildReasoning as bb,
16126
+ pickChildReasoningOverride as bc,
16127
+ createWebTools as bd,
16128
+ createTodoTool as be,
16129
+ withPlanGate as bf,
16130
+ createSubmitPlanTool as bg,
16131
+ titleSummaryTimeoutMs as bh,
16132
+ splitUnattendedPrefix as bi,
16133
+ resolveHarnessSkillRoots as bj,
16134
+ approvalReviewResultExtension as bk,
16135
+ readHarnessRuleFiles as bl,
16102
16136
  createProjectSettingsManager as bm,
16103
16137
  CODEMODE_TOOL_NAME as bn,
16104
16138
  prepareCodemodeInput as bo,
@@ -16189,42 +16223,45 @@ export {
16189
16223
  SNAPSHOT_TAIL_MESSAGES as d7,
16190
16224
  userTextWithoutSkills as d8,
16191
16225
  defaultImageRoots as d9,
16192
- parseBtwDisposeRequest as dA,
16193
- isHumanRequestTimeout as dB,
16194
- buildSshExecArgs as dC,
16195
- buildRemoteCommand as dD,
16196
- listProjectCodeSources as dE,
16197
- positiveFiniteNumber as dF,
16198
- mergeFetchedOauthModels as dG,
16199
- supportedProjectThinkingLevels as dH,
16200
- buildSshPtyArgs as dI,
16201
- ENSO_HEADLESS_RUN_ENV as dJ,
16202
- projection as dK,
16226
+ parseBtwAbortRequest as dA,
16227
+ parseBtwSpawnRequest as dB,
16228
+ BTW_DISABLED_TOOLS as dC,
16229
+ parseBtwDisposeRequest as dD,
16230
+ isHumanRequestTimeout as dE,
16231
+ buildSshExecArgs as dF,
16232
+ buildRemoteCommand as dG,
16233
+ listProjectCodeSources as dH,
16234
+ positiveFiniteNumber as dI,
16235
+ mergeFetchedOauthModels as dJ,
16236
+ supportedProjectThinkingLevels as dK,
16237
+ buildSshPtyArgs as dL,
16238
+ ENSO_HEADLESS_RUN_ENV as dM,
16239
+ projection as dN,
16203
16240
  classifyCommand as da,
16204
16241
  chunkMessageText as db,
16205
16242
  readableText as dc,
16206
16243
  projectReadableMessages as dd,
16207
16244
  probeImageView as de,
16208
- resolveSshTarget as df,
16209
- checkPassed as dg,
16210
- checkFailureText as dh,
16211
- parseVirtualClassifier as di,
16212
- VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS as dj,
16213
- isSecretFilePath as dk,
16214
- isUnderSecretDirectory as dl,
16215
- codemodeToolSnapshot as dm,
16216
- estimateToolsTotal as dn,
16217
- listCustomWorkflowPresets as dp,
16218
- listBuiltinWorkflowPresets as dq,
16219
- readCustomWorkflowPreset as dr,
16220
- parseWorkflowPresetDraft as ds,
16221
- saveCustomWorkflowPreset as dt,
16222
- deleteCustomWorkflowPreset as du,
16223
- parseBtwPromptRequest as dv,
16224
- btwModelCandidates as dw,
16225
- parseBtwAbortRequest as dx,
16226
- parseBtwSpawnRequest as dy,
16227
- BTW_DISABLED_TOOLS as dz,
16245
+ validateScopedFile as df,
16246
+ IMAGE_VIEW_MAX_BYTES as dg,
16247
+ readImageFacts as dh,
16248
+ resolveSshTarget as di,
16249
+ checkPassed as dj,
16250
+ checkFailureText as dk,
16251
+ parseVirtualClassifier as dl,
16252
+ VIRTUAL_CLASSIFIER_DEFAULT_TIMEOUT_MS as dm,
16253
+ isSecretFilePath as dn,
16254
+ isUnderSecretDirectory as dp,
16255
+ codemodeToolSnapshot as dq,
16256
+ estimateToolsTotal as dr,
16257
+ listCustomWorkflowPresets as ds,
16258
+ listBuiltinWorkflowPresets as dt,
16259
+ readCustomWorkflowPreset as du,
16260
+ parseWorkflowPresetDraft as dv,
16261
+ saveCustomWorkflowPreset as dw,
16262
+ deleteCustomWorkflowPreset as dx,
16263
+ parseBtwPromptRequest as dy,
16264
+ btwModelCandidates as dz,
16228
16265
  executeApplyPatch as e,
16229
16266
  estimateToolTokens as f,
16230
16267
  estimateSkillTokens as g,
@@ -16248,4 +16285,4 @@ export {
16248
16285
  isReflectionsConsolidatedEntry as y,
16249
16286
  isObservationsDroppedEntry as z
16250
16287
  };
16251
- //# sourceMappingURL=workflowPresets-BJwuORhf.js.map
16288
+ //# sourceMappingURL=workflowPresets-BtFDIu9c.js.map