@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.
- package/out/phone/assets/{abnfDiagram-VCTEODGH-BYULU5bQ.js → abnfDiagram-VCTEODGH-DEIRKSmB.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-BQkxfRkk.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-B9-XfmwY.js → architectureDiagram-5GKGNRK7-CFZiReTQ.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-BDjx5h4I.js → blockDiagram-I7D4REHJ-CIBal5Ke.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-BLCrWT5z.js → c4Diagram-7LVT6UL2-Ce7SCOHL.js} +1 -1
- package/out/phone/assets/channel-DGPU3seL.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-CBLX5PPK.js → chunk-4HAMMTFA-COlQ1_VX.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-BjNsM64u.js → chunk-75Z2AOVW-L2CSsdYQ.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-D32XGmy5.js → chunk-DU6HZSFF-juQC0nTX.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-DYrJ0RKS.js → chunk-F27PBJKO-CUQNf9_G.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-C8yUEx5a.js → chunk-GMAD6QVW-BzsNlUWy.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-nOF6gFr6.js → chunk-GVQU2GXP-a7Sg14KC.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-Bw90xROV.js → chunk-IMKFNOWR-B86isBFr.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-hIXFqCYn.js → chunk-L3NEJ4N5-D9GQEj7C.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-CDR6cbF7.js → chunk-OSK3NFVY-ZHLE_p8D.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-B5LBNgEn.js → chunk-P2QGCYS3-CIqiw4vs.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-Ctie8lW0.js → chunk-POPQ4Y6H-pTX0vZo7.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-VUQ3ZQa0.js → chunk-PWAF6VOD-BXK9ou77.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-ThT795xc.js → chunk-SHT3W25Y-BLZNPdt8.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-DaLedBcS.js → chunk-SVP7TREG-wR8iPcjt.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-EZdof5x9.js → chunk-TICWLB2K-CueyYenv.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-DgtztyWS.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-DgtztyWS.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-s8d8cA90.js → cynefin-OW5HDTMX-LV70kdIp.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-BvUrZrEv.js → cynefinDiagram-5FMLGOSQ-jSFJ3Ff1.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-Y4KQyhxZ.js → dagre-GXQ25YYZ-DnmK3Igj.js} +1 -1
- package/out/phone/assets/{desk-BpEz3CoY.js → desk-BLXfa62y.js} +1 -1
- package/out/phone/assets/{diagram-S7CK7UJ4-BOnQE44W.js → diagram-S7CK7UJ4-KdmyjPOb.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-DinAxyUq.js → diagram-UQ7AKVKN-D1D-C9ty.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-1SZEAZcR.js → diagram-VSXAHHWV-CO_oZjy2.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-CeqFT5PL.js → diagram-VX7I27RA-VLBWCwXT.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-CKUQZLUU.js → diagram-Z3DM3KII-wXmAYt0S.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-D-vPzzm8.js → ebnfDiagram-PWID7BFC-COmreC4F.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP--yabuiWQ.js → erDiagram-RLTQ6QDP-YD40E3kV.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-DdkbB0R7.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-B86UG3OY.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-DuceHpP7.js → ganttDiagram-EL5Y4UJY-CC0eW0wn.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-Dy69JGci.js → gitGraph-4MIJSDKK-BpKZk8Hu.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DAsGy8VO.js → gitGraphDiagram-WWUBYQGX-BCK9rLLJ.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-Bi2rn7zz.js → info-A6RAGUB7-BKUEMrSk.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-DLYnX9vk.js → infoDiagram-27XIBGKW-6kVlxml9.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-frgoq43k.js → ishikawaDiagram-5VMMS53U-36KijlM2.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-LfNbEnHq.js → journeyDiagram-3NMN7TZE-B3r6-igU.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-BYOUPJHU.js → kanban-definition-UXKFOSKX-DDJMJ3eD.js} +1 -1
- package/out/phone/assets/{line-_FhXTvX4.js → line-CRvTNHUs.js} +1 -1
- package/out/phone/assets/main-BU1pbfVw.css +1 -0
- package/out/phone/assets/{main-CfWT8VXG.js → main-C650ZDk2.js} +120 -118
- package/out/phone/assets/{mermaid-parser.core-ByliMPZm.js → mermaid-parser.core-vpmsl7OW.js} +3 -3
- package/out/phone/assets/{mermaid.core-Mmd8_4Nr.js → mermaid.core-P6wqHn79.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-C96rrhDe.js → mindmap-definition-YA3MSWOX-C1Qj4NCg.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-CMANaRii.js → packet-AYTQ26CC-dPa_bCkN.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-CGL6jEdQ.js → pegDiagram-XKGWAZYB-DP29zlwD.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-Dqr8Yw0J.js → pie-WAS4IAKB-B7gaGnZC.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CFhX0DbB.js → pieDiagram-E7YTZNPT-BIv_DaLU.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-CIy7q7Mf.js → quadrantDiagram-AXDQQJYC-BRD0SxVe.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-Lx6rDXGt.js → radar-RG4KPBEZ-DSXX0eGO.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-CFfqCtSc.js → railroad-74A4TZTK-CyBIlVYV.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-Ea30PClf.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BAOLVW4i.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-DiLa9rTe.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-NmlxNdEs.js → railroadDiagram-O6MQD6OU-DqLjIO9E.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-C1PDc05u.js → requirementDiagram-BXWQKSXE-DXMysPAW.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-CfwTCG6L.js → sankeyDiagram-P5KCCOFB-CvbRufzx.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-A-L3mYui.js → sequenceDiagram-WJ2MYXX4-CFMJYkK9.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-nRUGxe4_.js → stateDiagram-D77RDMKH-C--GDYGR.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-C87lzpXA.js +1 -0
- package/out/phone/assets/{storage-DU47Rb1q.js → storage-dUWOZ2xo.js} +2 -2
- package/out/phone/assets/{swimlanes-42K2YHIH-7K-yTToK.js → swimlanes-42K2YHIH-C_L9ypxQ.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-CPaJpMYE.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-DXbVHlED.js → timeline-definition-24CTP7MA-BEk-ED-p.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-M_osDfi3.js → treeView-Q6P3EWNA-rolWZTr4.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-BMi5B7KJ.js → treemap-WGGIJYW6-CPWEaY39.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-D3EpIx9s.js → vennDiagram-4TSXK5OY-CqImR0EN.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-nB8yKilO.js → wardley-WFR3VGLG-CvTGA92O.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DSghcmRr.js → wardleyDiagram-VM6X3IG4-D9eDqbbx.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-BEl0ProS.js → xychartDiagram-S5SC5T6Z-DSenC7kX.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-BB3W0IRN.js → abnfDiagram-VCTEODGH-D81xzDT1.js} +1 -1
- package/out/renderer/assets/{arc-r0xtJ5ab.js → arc-ByHjKist.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-BC8Ww6fQ.js → architectureDiagram-5GKGNRK7-Bw7RgtuP.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-wup9ZluJ.js → blockDiagram-I7D4REHJ-nNM7I115.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-BwWATTxt.js → c4Diagram-7LVT6UL2-xixXJMhC.js} +1 -1
- package/out/renderer/assets/channel-C9jBFK-_.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-Dw4JQaKM.js → chunk-2Q5K7J3B-C0KzftkI.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-p6eptEa6.js → chunk-5VM5RSS4-CuqKTpNC.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-crFPFXKS.js → chunk-F27PBJKO-DyZs2_AC.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Bnu9wgyD.js → chunk-IMKFNOWR-C7ktAo0J.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-B8Xhiasd.js → chunk-JWPE2WC7-CZpmOwpA.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-Cgaq3GTd.js → chunk-POPQ4Y6H-CVFNZRTi.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-Dxz3ENUO.js → chunk-SVP7TREG-DhMMCFNi.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-DKsdmE8K.js → chunk-TICWLB2K-BsceTDhj.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-D4zS63eZ.js → chunk-XXDRQBXY-C_grf3wS.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-B_o-oRUo.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-B_o-oRUo.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-Cd7k91g4.js → cose-bilkent-JH36ORCC-wUQVmxx_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-qIf7N9zE.js → cynefin-OW5HDTMX-BR546Wt2.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-DZq47G9W.js → cynefinDiagram-5FMLGOSQ-Dp2jJhbH.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BUV0U04U.js → cytoscape-fcose-BJkAlKB8.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-jHWFk6Gs.js → dagre-GXQ25YYZ-XKFl5kxK.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-BM99y_vq.js → diagram-S7CK7UJ4-BBFt2zKx.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DWw2eBQS.js → diagram-UQ7AKVKN-DA2CgkM2.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BpQqnXFN.js → diagram-VSXAHHWV-BL96nDcT.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-DIwy3ILe.js → diagram-VX7I27RA-BYbjhI9j.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CyggPXCP.js → diagram-Z3DM3KII-BShKaR0Y.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-BW1zQBfH.js → ebnfDiagram-PWID7BFC-CxCXjhNE.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-DeBd9wgY.js → erDiagram-RLTQ6QDP-D6a85aJz.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-DuHDP4W5.js → flowDiagram-HODETNUW-D7vxYWv_.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-BWzm5BP7.js → ganttDiagram-EL5Y4UJY-D4bniC42.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-BVW6A1c7.js → gitGraphDiagram-WWUBYQGX-DREOVv8G.js} +1 -1
- package/out/renderer/assets/{globals-BTwoz2I6.js → globals-1URrQWJU.js} +207 -207
- package/out/renderer/assets/globals-DoPyZAQo.css +1 -0
- package/out/renderer/assets/index-8xDwl1RO.js +133 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-BnQ0QqrX.js → infoDiagram-27XIBGKW-iQi9WT0H.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-C8Kybb7-.js → ishikawaDiagram-5VMMS53U-CqPXH73H.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BFN7ls5V.js → journeyDiagram-3NMN7TZE-DjEyHtge.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-DDNfT2Ap.js → kanban-definition-UXKFOSKX-D-bxhvRO.js} +1 -1
- package/out/renderer/assets/{layout-DG726kRG.js → layout-O4Dt9JSp.js} +1 -1
- package/out/renderer/assets/{linear-CyRBABsR.js → linear-B3fSR3zo.js} +1 -1
- package/out/renderer/assets/{mermaid.core-DPQo0NhF.js → mermaid.core-DKfKek0K.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-BKjiHq0N.js → mindmap-definition-YA3MSWOX-CgWelgTn.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-cGBsq_Dp.js → pegDiagram-XKGWAZYB-6YROVnYK.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-CB8FqRel.js → pieDiagram-E7YTZNPT-BboI-zql.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-CZsQnmHv.js → quadrantDiagram-AXDQQJYC-Ckl9-8_q.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-CtHtwIss.js → railroadDiagram-O6MQD6OU-CBmldUiO.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-C8IKRBmx.js → requirementDiagram-BXWQKSXE-BhCPsXeE.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-DxIvac4Q.js → sankeyDiagram-P5KCCOFB-KCriZNRW.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-CW0GnaxQ.js → sequenceDiagram-WJ2MYXX4-BZRpmnqw.js} +1 -1
- package/out/renderer/assets/settings-DbHps6fb.js +27 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-CUNNzORL.js → sizeCapture-INFHLROL-BHJ5WHSf.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-b6LNqPfN.js → stateDiagram-D77RDMKH-DxHudD45.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C0JE59RO.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-C2Pjkv6k.js → swimlanes-42K2YHIH-D2ZZdZPU.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-DJJObg42.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-DVo6WWfn.js → timeline-definition-24CTP7MA-D4FtI5C_.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-I_UOGgKE.js → vennDiagram-4TSXK5OY-BVq6hKjH.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-pgaJTE-_.js → wardleyDiagram-VM6X3IG4-39qPSeSF.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-C0CTpbX7.js → xychartDiagram-S5SC5T6Z-IjWUG31x.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +21 -21
- package/out/server/agent.js +62 -15
- package/out/server/chunks/{agent-2QNVhuY3.js → agent-BbLTL3oo.js} +175 -164
- package/out/server/chunks/conversationsMove-CJZfkj55.js +57 -0
- package/out/server/chunks/{gpuBackendInstall-BsVsFpgX.js → gpuBackendInstall-DdJZ_JTr.js} +4 -4
- package/out/server/chunks/{loadProvider-BdIE3W6z.js → loadProvider-BOW5-6B-.js} +2 -2
- package/out/server/chunks/{manifest-VLS5iL-K.js → manifest-DjsZzZuh.js} +37 -6
- package/out/server/chunks/{workflowPresets-BJwuORhf.js → workflowPresets-BtFDIu9c.js} +187 -150
- package/out/server/index.js +3014 -1136
- package/out/server/plugin-host.js +53 -2
- package/package.json +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-2pbpN4eZ.js +0 -1
- package/out/phone/assets/channel-D6Jp0e5s.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-DDYMR8uV.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-DDYMR8uV.js +0 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-BVUcXI_2.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-lyDnpL9j.js +0 -1
- package/out/phone/assets/main-TDCArlgf.css +0 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-Cc2ok2-H.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-B-egGDno.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DGbcDKYr.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Bk1aRZ0l.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-C1bEcwWi.js +0 -8
- package/out/renderer/assets/channel-CPp6hdRq.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-Be_lIO5F.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-Be_lIO5F.js +0 -1
- package/out/renderer/assets/globals-BMp8RrrF.css +0 -1
- package/out/renderer/assets/index-DzCbQXPw.js +0 -131
- package/out/renderer/assets/settings-C-kHWSQ1.js +0 -27
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-CwGKVtdP.js +0 -1
- 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-
|
|
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-
|
|
975
|
+
//# sourceMappingURL=loadProvider-BOW5-6B-.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
882
|
-
|
|
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-
|
|
919
|
+
//# sourceMappingURL=manifest-DjsZzZuh.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as THINKING_LEVELS$1,
|
|
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,
|
|
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,
|
|
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 (
|
|
472
|
+
if (catalog && (!catalog.thinkingLevelsUnknown || catalog.reasoning === false)) {
|
|
473
473
|
return {
|
|
474
|
-
value: catalog
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
10444
|
+
...mode,
|
|
10448
10445
|
stdio
|
|
10449
10446
|
});
|
|
10450
10447
|
}
|
|
10451
|
-
return spawn(command, { shell: true, cwd, env,
|
|
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,
|
|
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:
|
|
10548
|
-
promptSnippet: `${name}: run
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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:
|
|
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:
|
|
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
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16023
|
-
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
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
|
-
|
|
16054
|
-
|
|
16055
|
-
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
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
|
-
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
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
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
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
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
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-
|
|
16288
|
+
//# sourceMappingURL=workflowPresets-BtFDIu9c.js.map
|