@ensocode/server 0.3.4 → 0.3.5
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-6JYofuK8.js → abnfDiagram-VCTEODGH-k76opPl1.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-DFA8x3QF.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-BeLeAQB1.js → architectureDiagram-5GKGNRK7-yxQH9IuZ.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-uXn3vhT2.js → blockDiagram-I7D4REHJ-DoHteZpO.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-CjzMFRll.js → c4Diagram-7LVT6UL2-DQVO6L4q.js} +1 -1
- package/out/phone/assets/channel-BBjWfdZr.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-BA8HaYy2.js → chunk-4HAMMTFA-N9Rw4SGW.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-BhIfO9es.js → chunk-75Z2AOVW-DKJ8pOxp.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-BTLBHwj-.js → chunk-DU6HZSFF-BqGW8Nbd.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-CUw8NZk8.js → chunk-F27PBJKO-PkFmkghF.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-bZOKnRyM.js → chunk-GMAD6QVW-C9VeD3Jk.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-B0WIm1dS.js → chunk-GVQU2GXP-COhntOeE.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-DWND4rEr.js → chunk-IMKFNOWR-B87ghLVD.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-DgMknY3k.js → chunk-L3NEJ4N5-C3N2izjg.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-C5aEouov.js → chunk-OSK3NFVY-DaAlvVhz.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-D2ID3RxV.js → chunk-P2QGCYS3-BQpKr8IZ.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-C1lOuNpV.js → chunk-POPQ4Y6H-B2TZMY6U.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-CfqWQZRE.js → chunk-PWAF6VOD-CgRhpUJy.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-p37Dlvn4.js → chunk-SHT3W25Y-BySMFA99.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-CSSqW-zb.js → chunk-SVP7TREG-EDGanDUX.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-Bse5ne4b.js → chunk-TICWLB2K-BtCZ8R2k.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CXXjdIIU.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CXXjdIIU.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-BGQqPhYk.js → cynefin-OW5HDTMX-CdZmp44V.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-Cz3XWaxY.js → cynefinDiagram-5FMLGOSQ-BCz9KwUb.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-CjAF6lSz.js → dagre-GXQ25YYZ-CgFeNgh6.js} +1 -1
- package/out/phone/assets/desk-C_b7mE6l.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-B135cp5a.js → diagram-S7CK7UJ4-CwvaZIBf.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-C4pCe0fQ.js → diagram-UQ7AKVKN-DqnD4XoZ.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-CYkCrin2.js → diagram-VSXAHHWV-Kqc9GudQ.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-CT_vufh_.js → diagram-VX7I27RA-B_0DLDQ0.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-XEkkXu3P.js → diagram-Z3DM3KII-CppKBEPW.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-DfLyeXjw.js → ebnfDiagram-PWID7BFC-DeYPNCu9.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-pKNbKkAP.js → erDiagram-RLTQ6QDP-MsfxDUmk.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-D4a6gbOs.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-BBTtB5oX.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-Df4E50Mj.js → ganttDiagram-EL5Y4UJY-DaScS1os.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-CkjzZeFD.js → gitGraph-4MIJSDKK-C-FzqpZm.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-CBxfRAfy.js → gitGraphDiagram-WWUBYQGX-4Yv-hAwf.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-CHFXa2pw.js → info-A6RAGUB7-CGLEP4t7.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-K0DnZhi4.js → infoDiagram-27XIBGKW-DapEgYQa.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-DTQF2ZuR.js → ishikawaDiagram-5VMMS53U-D1B2lZSG.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-wBltkU2i.js → journeyDiagram-3NMN7TZE-BSAtMVJw.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-BZpcOajP.js → kanban-definition-UXKFOSKX-CfZ4oI7A.js} +1 -1
- package/out/phone/assets/{line-BflnZFgp.js → line-DAXmUM4p.js} +1 -1
- package/out/phone/assets/{main-Crtf_g8h.js → main-B0yD1pMI.js} +97 -97
- package/out/phone/assets/main-DNRbLxEx.css +1 -0
- package/out/phone/assets/{mermaid-parser.core-BiCTmcqa.js → mermaid-parser.core-IObm7oM0.js} +3 -3
- package/out/phone/assets/{mermaid.core-D3TwYaLF.js → mermaid.core-C1wA-mhD.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-Cz0aS_6Y.js → mindmap-definition-YA3MSWOX-3ph0EaB9.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-DW-djbhd.js → packet-AYTQ26CC-BbDAe9Au.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-CE0sZZAE.js → pegDiagram-XKGWAZYB-EsuDcX_3.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-CKGFlXok.js → pie-WAS4IAKB-BQfIj1fu.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-BrnQ32_6.js → pieDiagram-E7YTZNPT-Cw19z5Ip.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-BrxDAygB.js → quadrantDiagram-AXDQQJYC-Bqwz_sa8.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-Bo2f5QyA.js → radar-RG4KPBEZ-Dmp-89iD.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-BZEmm0Ha.js → railroad-74A4TZTK-dq2H8w8Y.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-DddVaVQM.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-BjvyqMjh.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-lBl4CV1_.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-BvOyUNMC.js → railroadDiagram-O6MQD6OU-D2Sbc7Wn.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-T42N3TW5.js → requirementDiagram-BXWQKSXE-CLNUqxbl.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-0us9ErVV.js → sankeyDiagram-P5KCCOFB-Dme5iwcw.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-BMcYh2ll.js → sequenceDiagram-WJ2MYXX4-C5dYSwPE.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-CgP9dUc3.js → stateDiagram-D77RDMKH-BuxkPvJ6.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Exd8xDBD.js +1 -0
- package/out/phone/assets/storage-p-WxHA1h.js +1 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-VnE4ceCW.js → swimlanes-42K2YHIH-DHyXnytv.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-B62_42fO.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-tH3izgae.js → timeline-definition-24CTP7MA-Bm8Z0u2Z.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-CVFDOC7i.js → treeView-Q6P3EWNA-DFUxvDDO.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-vmikHzt3.js → treemap-WGGIJYW6-CMC-hwzt.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-b8ttDCR-.js → vennDiagram-4TSXK5OY-CNL4gZsd.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-D32vKoC1.js → wardley-WFR3VGLG-CHQoq9KJ.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-CMkaIPVH.js → wardleyDiagram-VM6X3IG4-DAuBfK1O.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-pLYDcql3.js → xychartDiagram-S5SC5T6Z-B2T9ECKd.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-N6OiVFQx.js → abnfDiagram-VCTEODGH-gdhrQbX6.js} +1 -1
- package/out/renderer/assets/{arc-CXVc3U0J.js → arc-D6-Q4l2d.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-BT5CXpcQ.js → architectureDiagram-5GKGNRK7-C4y0SbLT.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-C32Vqzip.js → blockDiagram-I7D4REHJ-DrsoSFRK.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-qjwL2BP8.js → c4Diagram-7LVT6UL2-1DD8BlM8.js} +1 -1
- package/out/renderer/assets/channel-Sck-tAAK.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-YC6CQiyD.js → chunk-2Q5K7J3B-DRyc0B7g.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-E-kluPz3.js → chunk-5VM5RSS4-BJe8SghE.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-Bhx1_P75.js → chunk-F27PBJKO-BIipq4SK.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Dgb_730B.js → chunk-IMKFNOWR-D5Ak3Xd9.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-COQNHw4u.js → chunk-JWPE2WC7-BcaWCpW-.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-CQz4hRgP.js → chunk-POPQ4Y6H-C1TwLrrN.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-DGp9XQFd.js → chunk-SVP7TREG-DDOXG_t3.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-CovR1uHr.js → chunk-TICWLB2K-BqT15hZi.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-gVmqSU5b.js → chunk-XXDRQBXY-D01ts6SC.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-DnB4QNNe.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-DnB4QNNe.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-DD4PEqt_.js → cose-bilkent-JH36ORCC-C7NVrT2_.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-DNsYCrBx.js → cynefin-OW5HDTMX-2LxdFmSk.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-CoSzqs25.js → cynefinDiagram-5FMLGOSQ-_AN_Mulc.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-CV0MpCmk.js → cytoscape-fcose-COZkZZmX.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-BxpTPeHN.js → dagre-GXQ25YYZ-BUTwlM6j.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-Df_OM1vW.js → diagram-S7CK7UJ4-CseZZ-y2.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-iovjmny_.js → diagram-UQ7AKVKN-Cb7llS-8.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-BMrwlcQx.js → diagram-VSXAHHWV-CtuGqQvp.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-DqLh449X.js → diagram-VX7I27RA-BA8eov-1.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-CH_W77UO.js → diagram-Z3DM3KII-VZOjj6Hg.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-yjzodXoL.js → ebnfDiagram-PWID7BFC-YBIrle6d.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-DXxhvHYS.js → erDiagram-RLTQ6QDP-BiKyPEqW.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-b2AWCAaB.js → flowDiagram-HODETNUW-7wmZyLHw.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-COkyXL3K.js → ganttDiagram-EL5Y4UJY-D4j4GJaT.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-BYPqy5fh.js → gitGraphDiagram-WWUBYQGX-BqveM1NI.js} +1 -1
- package/out/renderer/assets/globals-C9M_MZZV.js +2539 -0
- package/out/renderer/assets/globals-l3kDGoYH.css +1 -0
- package/out/renderer/assets/index-BzSTiwH2.js +117 -0
- package/out/renderer/assets/{infoDiagram-27XIBGKW-DNg-VxlH.js → infoDiagram-27XIBGKW-DLPLnIFP.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-DProTI6a.js → ishikawaDiagram-5VMMS53U-48drIAMR.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-BWhC4n3f.js → journeyDiagram-3NMN7TZE-vjigqUq_.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-CHJRR0qi.js → kanban-definition-UXKFOSKX-CpsYVONZ.js} +1 -1
- package/out/renderer/assets/{layout-D8t6q8k0.js → layout-DqfoORoO.js} +1 -1
- package/out/renderer/assets/{linear-Cxb1p4iF.js → linear-CJzBBHcp.js} +1 -1
- package/out/renderer/assets/{mermaid.core-CFNOEUmc.js → mermaid.core-DdrGP-Hn.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-Ba78cyY4.js → mindmap-definition-YA3MSWOX-D68tLNxp.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-C7zqoWMk.js → pegDiagram-XKGWAZYB-DkgLTcrv.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-g304yFeX.js → pieDiagram-E7YTZNPT-bz5NuX1w.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-Bwn3gGTO.js → quadrantDiagram-AXDQQJYC-o_VKLyJA.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-DRetS8pv.js → railroadDiagram-O6MQD6OU-Dkf03e07.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-CHz0FVZ7.js → requirementDiagram-BXWQKSXE-CBUz_3YU.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-BYGRDIG9.js → sankeyDiagram-P5KCCOFB-B0pjUr9g.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-B60RuFFk.js → sequenceDiagram-WJ2MYXX4-ClugIL0e.js} +1 -1
- package/out/renderer/assets/settings-DvhrDn2q.js +34 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-CB-i3Fmz.js → sizeCapture-INFHLROL-D6y0rctc.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-CJOcikAJ.js → stateDiagram-D77RDMKH-DiftQepS.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DxB2-9tl.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-Buap2upT.js → swimlanes-42K2YHIH-DhuTjCNj.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-CYDUqExO.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-BdQta3QT.js → timeline-definition-24CTP7MA-CrXqgptd.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-BynM2l28.js → vennDiagram-4TSXK5OY-CDm8SO8U.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-FZjDO9FY.js → wardleyDiagram-VM6X3IG4-CxyunHwQ.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-pJPSISxM.js → xychartDiagram-S5SC5T6Z-CvC5YMSy.js} +1 -1
- package/out/renderer/index.html +3 -3
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +1 -1
- package/out/server/agent.js +562 -532
- package/out/server/chunks/{agent--Q7N17bY.js → agent-_G_O-Cpa.js} +155 -214
- package/out/server/chunks/{gpuBackendInstall-P7COXJlD.js → gpuBackendInstall-Cb6TFh_8.js} +9 -8
- package/out/server/chunks/{loadProvider-DvvFIF6F.js → loadProvider-Be9Lu1Oi.js} +7 -20
- package/out/server/chunks/{manifest-BvEa5QR3.js → manifest-CB63GQ-i.js} +6 -3
- package/out/server/chunks/{workflowPresets-CuLnfQqa.js → workflowPresets-Djlp5LPV.js} +786 -1832
- package/out/server/index.js +5743 -6563
- package/out/server/plugin-host.js +31 -25
- package/package.json +4 -4
- package/out/phone/assets/architecture-7GRP2DOG-D7mwyuxS.js +0 -1
- package/out/phone/assets/channel-BsGN1oT0.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-a1PUvjC2.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-a1PUvjC2.js +0 -1
- package/out/phone/assets/desk-1McWacjU.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-DcUsfQiW.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-sUobw8zi.js +0 -1
- package/out/phone/assets/main-CnA1zWP8.css +0 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-CGiIT1ZV.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-C85Q3c0J.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-8qPPCLgU.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-WM4CNSf-.js +0 -1
- package/out/phone/assets/storage-CahQ0cyN.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-65AiMWVp.js +0 -8
- package/out/renderer/assets/channel-B1Cv56hA.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-CDWgELaf.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-CDWgELaf.js +0 -1
- package/out/renderer/assets/globals-DX-8GWfJ.css +0 -1
- package/out/renderer/assets/globals-y5_C1IiJ.js +0 -2539
- package/out/renderer/assets/index-CHJ6mVl2.js +0 -117
- package/out/renderer/assets/settings-Cd128yRb.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-BosPi5SR.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7TQEEbL.js +0 -8
|
@@ -84,22 +84,14 @@ const BUILTIN_AGENT_TYPES = [
|
|
|
84
84
|
modelMode: "agent_pick"
|
|
85
85
|
}
|
|
86
86
|
];
|
|
87
|
-
const
|
|
88
|
-
const ENSO_LOCKED_PROFILE_ID = "enso-locked-v1";
|
|
89
|
-
const ENSO_SYSTEM_PROMPT_ID = "enso-system-v1";
|
|
90
|
-
const ENSO_LOCKED_TOOL_IDS = ["enso_capabilities", "enso_app", "ask_user"];
|
|
91
|
-
const ENSO_LOCKED_PROFILE = {
|
|
92
|
-
profileId: ENSO_LOCKED_PROFILE_ID,
|
|
93
|
-
typeKey: ENSO_AGENT_TYPE_KEY,
|
|
94
|
-
toolIds: ENSO_LOCKED_TOOL_IDS
|
|
95
|
-
};
|
|
87
|
+
const LEGACY_ENSO_TYPE_KEY = "agent:enso";
|
|
96
88
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
97
89
|
const BUILTIN_NAME_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
98
90
|
const RESERVED_AGENT_NAMES = {
|
|
99
91
|
enso: true,
|
|
100
|
-
[
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
[LEGACY_ENSO_TYPE_KEY]: true,
|
|
93
|
+
"enso-locked-v1": true,
|
|
94
|
+
"enso-system-v1": true
|
|
103
95
|
};
|
|
104
96
|
const RESERVED_AGENT_PREFIXES = [
|
|
105
97
|
"agent:",
|
|
@@ -118,8 +110,11 @@ function isReservedAgentTypeName(value) {
|
|
|
118
110
|
const normalized = normalizeAgentTypeName(value);
|
|
119
111
|
return !normalized || Object.hasOwn(RESERVED_AGENT_NAMES, normalized) || RESERVED_AGENT_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
120
112
|
}
|
|
113
|
+
function isValidLegacyProfile(typeKey, profileId) {
|
|
114
|
+
return typeKey === LEGACY_ENSO_TYPE_KEY ? profileId === "enso-locked-v1" : profileId === void 0;
|
|
115
|
+
}
|
|
121
116
|
function parseAgentTypeKey(value) {
|
|
122
|
-
if (value ===
|
|
117
|
+
if (value === LEGACY_ENSO_TYPE_KEY) return LEGACY_ENSO_TYPE_KEY;
|
|
123
118
|
if (typeof value !== "string") return null;
|
|
124
119
|
if (value.startsWith("builtin:")) {
|
|
125
120
|
const name = value.slice("builtin:".length);
|
|
@@ -162,7 +157,7 @@ function parseChildSessionIdentity(value) {
|
|
|
162
157
|
});
|
|
163
158
|
const parent = parseSessionIdentity(identity.parent);
|
|
164
159
|
const typeKey = parseAgentTypeKey(identity.typeKey);
|
|
165
|
-
if (!own || !parent || !isUuid(identity.instanceId) || typeof identity.instanceName !== "string" || !identity.instanceName || !typeKey || own.sessionId === parent.sessionId || own.generation === parent.generation || typeKey
|
|
160
|
+
if (!own || !parent || !isUuid(identity.instanceId) || typeof identity.instanceName !== "string" || !identity.instanceName || !typeKey || own.sessionId === parent.sessionId || own.generation === parent.generation || !isValidLegacyProfile(typeKey, identity.profileId)) {
|
|
166
161
|
return null;
|
|
167
162
|
}
|
|
168
163
|
return identity;
|
|
@@ -187,17 +182,7 @@ function buildAgentTypeRegistrySnapshot(input) {
|
|
|
187
182
|
const overriddenNames = new Set(
|
|
188
183
|
input.customAgentTypes.filter((entry) => isUuid(entry.id) && !isReservedAgentTypeName(entry.name)).map((entry) => entry.name.trim().toLowerCase())
|
|
189
184
|
);
|
|
190
|
-
const candidates = [
|
|
191
|
-
{
|
|
192
|
-
typeKey: ENSO_AGENT_TYPE_KEY,
|
|
193
|
-
displayName: "Enso",
|
|
194
|
-
description: "EnsoCode system agent for product capabilities and team setup",
|
|
195
|
-
source: "system",
|
|
196
|
-
locked: true,
|
|
197
|
-
canDisable: false,
|
|
198
|
-
canEdit: false
|
|
199
|
-
}
|
|
200
|
-
];
|
|
185
|
+
const candidates = [];
|
|
201
186
|
for (const builtin of BUILTIN_AGENT_TYPES) {
|
|
202
187
|
if (builtin.name === "general" || builtin.name === "enso" || disabled.has(builtin.name) || overriddenNames.has(builtin.name)) {
|
|
203
188
|
continue;
|
|
@@ -747,12 +732,6 @@ function parseCapabilityResult(value) {
|
|
|
747
732
|
}
|
|
748
733
|
return value;
|
|
749
734
|
}
|
|
750
|
-
function parseCapabilityAskResponse(value) {
|
|
751
|
-
if (!isRecord$7(value) || !hasExactKeys$3(value, ["child", "turnId", "requestId", "decision"]) || !parseChildSessionIdentity(value.child) || !isNonEmptyString$2(value.turnId) || !isNonEmptyString$2(value.requestId) || value.decision !== "allow" && value.decision !== "deny") {
|
|
752
|
-
return null;
|
|
753
|
-
}
|
|
754
|
-
return value;
|
|
755
|
-
}
|
|
756
735
|
function parseCapabilitySubject(value) {
|
|
757
736
|
if (!isRecord$7(value) || !hasExactKeys$3(value, ["kind", "id", "label"])) return null;
|
|
758
737
|
return CAPABILITY_SUBJECT_KINDS.includes(value.kind) && isNonEmptyString$2(value.id) && isNonEmptyString$2(value.label) ? value : null;
|
|
@@ -783,44 +762,6 @@ function parseCapabilityReceipt(value) {
|
|
|
783
762
|
}
|
|
784
763
|
return value;
|
|
785
764
|
}
|
|
786
|
-
function parseCapabilityExecutionEnvelope(value) {
|
|
787
|
-
if (!isRecord$7(value) || !hasExactKeys$3(value, ["modelResult", "receipt"])) return null;
|
|
788
|
-
const modelResult = parseCapabilityResult(value.modelResult);
|
|
789
|
-
const receipt = parseCapabilityReceipt(value.receipt);
|
|
790
|
-
return modelResult && receipt ? { modelResult, receipt } : null;
|
|
791
|
-
}
|
|
792
|
-
function parseOauthFlowLocator(value) {
|
|
793
|
-
if (!isRecord$7(value) || !isUuid(value.flowId)) return null;
|
|
794
|
-
if (!Number.isInteger(value.ownerWebContentsId) || value.ownerWebContentsId < 0) {
|
|
795
|
-
return null;
|
|
796
|
-
}
|
|
797
|
-
if (value.host === "provider-wizard") {
|
|
798
|
-
return hasExactKeys$3(value, ["flowId", "host", "ownerWebContentsId"]) ? value : null;
|
|
799
|
-
}
|
|
800
|
-
if (value.host !== "agent-child-tab") return null;
|
|
801
|
-
return hasExactKeys$3(value, [
|
|
802
|
-
"flowId",
|
|
803
|
-
"host",
|
|
804
|
-
"ownerWebContentsId",
|
|
805
|
-
"child",
|
|
806
|
-
"turnId",
|
|
807
|
-
"requestId"
|
|
808
|
-
]) && parseChildSessionIdentity(value.child) && isNonEmptyString$2(value.turnId) && isNonEmptyString$2(value.requestId) ? value : null;
|
|
809
|
-
}
|
|
810
|
-
function parseStartOauthWizardRequest(value) {
|
|
811
|
-
if (!isRecord$7(value) || !hasExactKeys$3(value, ["providerId"])) return null;
|
|
812
|
-
return isNonEmptyString$2(value.providerId) ? { providerId: value.providerId } : null;
|
|
813
|
-
}
|
|
814
|
-
function parseOauthFlowPromptResponse(value) {
|
|
815
|
-
if (!isRecord$7(value) || !hasExactKeys$3(value, ["locator", "requestId", "value"])) {
|
|
816
|
-
return null;
|
|
817
|
-
}
|
|
818
|
-
return parseOauthFlowLocator(value.locator) && isNonEmptyString$2(value.requestId) && isNonEmptyString$2(value.value) ? value : null;
|
|
819
|
-
}
|
|
820
|
-
function parseOauthFlowControlRequest(value) {
|
|
821
|
-
if (!isRecord$7(value) || !hasExactKeys$3(value, ["locator"])) return null;
|
|
822
|
-
return parseOauthFlowLocator(value.locator) ? value : null;
|
|
823
|
-
}
|
|
824
765
|
const COMPACT_STRATEGIES = [
|
|
825
766
|
"standard",
|
|
826
767
|
"smart",
|
|
@@ -1583,12 +1524,26 @@ function parsePrivacyMaskSettings(value) {
|
|
|
1583
1524
|
};
|
|
1584
1525
|
}
|
|
1585
1526
|
const HEADER_NAME_RE = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
1527
|
+
const INVALID_HEADER_VALUE_RE = /[^\t\x20-\x7e\x80-\xff]/;
|
|
1528
|
+
function isSendableHeaderValue(value) {
|
|
1529
|
+
return !INVALID_HEADER_VALUE_RE.test(value);
|
|
1530
|
+
}
|
|
1531
|
+
const droppedHeaderWarnings = /* @__PURE__ */ new Set();
|
|
1532
|
+
function warnDroppedHeader(name) {
|
|
1533
|
+
if (droppedHeaderWarnings.has(name)) return;
|
|
1534
|
+
droppedHeaderWarnings.add(name);
|
|
1535
|
+
console.warn(`[provider-headers] dropped ${name}: value cannot be sent as a header`);
|
|
1536
|
+
}
|
|
1586
1537
|
function parseProviderHeaders(value) {
|
|
1587
1538
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
1588
1539
|
const headers = {};
|
|
1589
1540
|
for (const [name, headerValue] of Object.entries(value)) {
|
|
1590
1541
|
if (!HEADER_NAME_RE.test(name)) continue;
|
|
1591
|
-
if (typeof headerValue !== "string"
|
|
1542
|
+
if (typeof headerValue !== "string") continue;
|
|
1543
|
+
if (!isSendableHeaderValue(headerValue)) {
|
|
1544
|
+
warnDroppedHeader(name);
|
|
1545
|
+
continue;
|
|
1546
|
+
}
|
|
1592
1547
|
headers[name] = headerValue;
|
|
1593
1548
|
}
|
|
1594
1549
|
return Object.keys(headers).length > 0 ? headers : void 0;
|
|
@@ -2178,7 +2133,7 @@ const CONTEXT_OCCUPANCY_BUCKETS = [
|
|
|
2178
2133
|
"tools",
|
|
2179
2134
|
"conversation",
|
|
2180
2135
|
"compaction",
|
|
2181
|
-
//
|
|
2136
|
+
// 为已持久化的上下文占用快照保留;项目记忆功能已移除。
|
|
2182
2137
|
"projectMemory",
|
|
2183
2138
|
"reminders"
|
|
2184
2139
|
];
|
|
@@ -2207,7 +2162,14 @@ function isPluginToolList(value) {
|
|
|
2207
2162
|
if (!Array.isArray(value) || value.length > 200) return false;
|
|
2208
2163
|
const names = /* @__PURE__ */ new Set();
|
|
2209
2164
|
for (const tool of value) {
|
|
2210
|
-
if (!isRecord(tool) || !hasOnlyKeys(tool, [
|
|
2165
|
+
if (!isRecord(tool) || !hasOnlyKeys(tool, [
|
|
2166
|
+
"name",
|
|
2167
|
+
"description",
|
|
2168
|
+
"parameters",
|
|
2169
|
+
"pluginId",
|
|
2170
|
+
"timeoutMs",
|
|
2171
|
+
"readOnly"
|
|
2172
|
+
]) || tool.name === void 0 || tool.description === void 0 || tool.parameters === void 0 || tool.pluginId === void 0 || typeof tool.name !== "string" || typeof tool.description !== "string" || tool.description.length > 1024 || !isRecord(tool.parameters) || tool.timeoutMs !== void 0 && !isPluginToolTimeout(tool.timeoutMs) || tool.readOnly !== void 0 && typeof tool.readOnly !== "boolean" || parsePluginToolName(tool.name)?.pluginId !== tool.pluginId || names.has(tool.name))
|
|
2211
2173
|
return false;
|
|
2212
2174
|
names.add(tool.name);
|
|
2213
2175
|
}
|
|
@@ -2610,7 +2572,7 @@ function parseChildConversationMetadata(value) {
|
|
|
2610
2572
|
return null;
|
|
2611
2573
|
}
|
|
2612
2574
|
const typeKey = parseAgentTypeKey(value.agentTypeKey);
|
|
2613
|
-
if (!isNonEmptyString(value.parentId) || !isUuid(value.childGeneration) || !typeKey || !isUuid(value.agentInstanceId) || !isNonEmptyString(value.agentInstanceName) || value.dispatchOrigin !== "typed-mention" && value.dispatchOrigin !== "manual" && value.dispatchOrigin !== "agent-tool" || value.mode !== void 0 && value.mode !== "task" && value.mode !== "coworker" || typeKey
|
|
2575
|
+
if (!isNonEmptyString(value.parentId) || !isUuid(value.childGeneration) || !typeKey || !isUuid(value.agentInstanceId) || !isNonEmptyString(value.agentInstanceName) || value.dispatchOrigin !== "typed-mention" && value.dispatchOrigin !== "manual" && value.dispatchOrigin !== "agent-tool" || value.mode !== void 0 && value.mode !== "task" && value.mode !== "coworker" || !isValidLegacyProfile(typeKey, value.lockedProfileId)) {
|
|
2614
2576
|
return null;
|
|
2615
2577
|
}
|
|
2616
2578
|
return value;
|
|
@@ -2667,9 +2629,6 @@ function parseResolvedChildProfileProof(value) {
|
|
|
2667
2629
|
]) || !isUuid(value.spawnSpecId) || !parseAgentTypeKey(value.typeKey) || !parseModelRef(value.model) || !Array.isArray(value.toolIds) || !value.toolIds.every(isNonEmptyString) || !Array.isArray(value.loadedSkillBindingIds) || !value.loadedSkillBindingIds.every(isNonEmptyString) || !Array.isArray(value.loadedMcpBindingIds) || !value.loadedMcpBindingIds.every(isNonEmptyString) || !isNonEmptyString(value.systemPromptHash)) {
|
|
2668
2630
|
return null;
|
|
2669
2631
|
}
|
|
2670
|
-
if (value.typeKey === "agent:enso" && (value.toolIds.length !== ENSO_LOCKED_TOOL_IDS.length || value.toolIds.some((toolId, index) => toolId !== ENSO_LOCKED_TOOL_IDS[index]) || value.loadedSkillBindingIds.length !== 0 || value.loadedMcpBindingIds.length !== 0)) {
|
|
2671
|
-
return null;
|
|
2672
|
-
}
|
|
2673
2632
|
return value;
|
|
2674
2633
|
}
|
|
2675
2634
|
function parseSafeJournalRecord(value) {
|
|
@@ -2713,8 +2672,7 @@ function parseResolvedAgentTypeSpawnConfig(value) {
|
|
|
2713
2672
|
"skillBindingIds",
|
|
2714
2673
|
"mcpServers",
|
|
2715
2674
|
"mcpBindingIds",
|
|
2716
|
-
"systemPromptHash"
|
|
2717
|
-
"lockedProfileId"
|
|
2675
|
+
"systemPromptHash"
|
|
2718
2676
|
]) || Object.keys(value).length < 12) {
|
|
2719
2677
|
return null;
|
|
2720
2678
|
}
|
|
@@ -2724,15 +2682,12 @@ function parseResolvedAgentTypeSpawnConfig(value) {
|
|
|
2724
2682
|
const mcpServers = Array.isArray(value.mcpServers) ? value.mcpServers : null;
|
|
2725
2683
|
const skillBindingIds = Array.isArray(value.skillBindingIds) ? value.skillBindingIds : null;
|
|
2726
2684
|
const mcpBindingIds = Array.isArray(value.mcpBindingIds) ? value.mcpBindingIds : null;
|
|
2727
|
-
if (!typeKey || !model || !isUuid(value.spawnSpecId) || !isNonEmptyString(value.displayName) || typeof value.description !== "string" || typeof value.systemPrompt !== "string" || value.tools !== "all" && value.tools !== "readonly"
|
|
2685
|
+
if (!typeKey || typeKey === LEGACY_ENSO_TYPE_KEY || !model || !isUuid(value.spawnSpecId) || !isNonEmptyString(value.displayName) || typeof value.description !== "string" || typeof value.systemPrompt !== "string" || value.tools !== "all" && value.tools !== "readonly" || value.allowedToolIds !== void 0 && (!Array.isArray(value.allowedToolIds) || !value.allowedToolIds.every(isNonEmptyString)) || !skillPaths || !skillPaths.every(isNonEmptyString) || !skillBindingIds || !skillBindingIds.every(isNonEmptyString) || !mcpServers || !mcpServers.every(isRecord) || !mcpBindingIds || !mcpBindingIds.every(isNonEmptyString) || skillBindingIds.length !== skillPaths.length || mcpBindingIds.length !== mcpServers.length || !isNonEmptyString(value.systemPromptHash)) {
|
|
2728
2686
|
return null;
|
|
2729
2687
|
}
|
|
2730
2688
|
if (value.reasoning !== void 0 && !MODEL_REASONING_OVERRIDES.includes(value.reasoning) || value.thinkingLevel !== void 0 && !MODEL_THINKING_LEVEL_OVERRIDES.includes(value.thinkingLevel)) {
|
|
2731
2689
|
return null;
|
|
2732
2690
|
}
|
|
2733
|
-
if (typeKey === "agent:enso" && (value.lockedProfileId !== ENSO_LOCKED_PROFILE_ID || value.tools !== "enso-locked" || value.reasoning !== void 0 || value.thinkingLevel !== void 0 || value.allowedToolIds !== void 0 || skillPaths.length !== 0 || skillBindingIds.length !== 0 || mcpServers.length !== 0 || mcpBindingIds.length !== 0) || typeKey !== "agent:enso" && (value.lockedProfileId !== void 0 || value.tools === "enso-locked")) {
|
|
2734
|
-
return null;
|
|
2735
|
-
}
|
|
2736
2691
|
return value;
|
|
2737
2692
|
}
|
|
2738
2693
|
function parseSessionSnapshot(value) {
|
|
@@ -2956,8 +2911,6 @@ function parseAgentCommand(value) {
|
|
|
2956
2911
|
return hasExactKeys(value, ["type", "snapshot", "customProviders"]) ? value : null;
|
|
2957
2912
|
case "ask-respond":
|
|
2958
2913
|
return hasExactKeys(value, ["type", "identity", "requestId", "answer"]) && parseAnySessionIdentity(value.identity) && isNonEmptyString(value.requestId) && isNonEmptyString(value.answer) ? value : null;
|
|
2959
|
-
case "capability-result":
|
|
2960
|
-
return hasExactKeys(value, ["type", "child", "turnId", "requestId", "envelope"]) && parseChildSessionIdentity(value.child) && isNonEmptyString(value.turnId) && isNonEmptyString(value.requestId) && parseCapabilityExecutionEnvelope(value.envelope) ? value : null;
|
|
2961
2914
|
case "browser-result":
|
|
2962
2915
|
case "memory-result":
|
|
2963
2916
|
case "delegation-result":
|
|
@@ -3111,9 +3064,6 @@ function parseAgentWorkerEvent(value) {
|
|
|
3111
3064
|
if (value.type === "snapshot") {
|
|
3112
3065
|
return Array.isArray(value.sessions) && value.sessions.every((session) => parseSessionSnapshot(session) !== null) ? value : null;
|
|
3113
3066
|
}
|
|
3114
|
-
if (value.type === "capability-invoke") {
|
|
3115
|
-
return parseChildSessionIdentity(value.child) && isSequence(value.seq) && isNonEmptyString(value.turnId) && isNonEmptyString(value.requestId) && isProductSurfaceId(value.capabilityId) && Object.hasOwn(value, "params") ? value : null;
|
|
3116
|
-
}
|
|
3117
3067
|
if (value.type === "mcp-status") {
|
|
3118
3068
|
return hasOnlyKeys(value, [
|
|
3119
3069
|
"type",
|
|
@@ -3274,135 +3224,126 @@ function parseAgentWorkerEvent(value) {
|
|
|
3274
3224
|
}
|
|
3275
3225
|
}
|
|
3276
3226
|
export {
|
|
3277
|
-
|
|
3227
|
+
isPluginEntry as $,
|
|
3278
3228
|
AGENT_END_TEXT_MAX as A,
|
|
3279
3229
|
BEFORE_AGENT_START_PROMPT_MAX as B,
|
|
3280
3230
|
CONTEXT_OCCUPANCY_BUCKETS as C,
|
|
3281
3231
|
DEFAULT_MAX_ACTIVE_COWORKERS as D,
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3232
|
+
toolBatchDigest as E,
|
|
3233
|
+
splitPlanPrefix as F,
|
|
3234
|
+
parsePlanMessage as G,
|
|
3235
|
+
isClassifierOnlyProvider as H,
|
|
3236
|
+
isOauthAccountPool as I,
|
|
3237
|
+
resolveEditMode as J,
|
|
3238
|
+
EMPTY_PLAN_STATE as K,
|
|
3239
|
+
mergeMaskReports as L,
|
|
3290
3240
|
MODEL_API_KINDS as M,
|
|
3291
|
-
|
|
3292
|
-
|
|
3241
|
+
PRIVACY_MASK_ENTRY as N,
|
|
3242
|
+
parseAgentCommand as O,
|
|
3293
3243
|
PLUGIN_MESSAGE_TYPE as P,
|
|
3294
|
-
|
|
3295
|
-
|
|
3244
|
+
pluginToolName as Q,
|
|
3245
|
+
parseWebSearchChain as R,
|
|
3296
3246
|
STALE_SESSION_ERROR as S,
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3247
|
+
APPROVAL_MODES as T,
|
|
3248
|
+
THINKING_LEVELS as U,
|
|
3249
|
+
parseChildConversationMetadata as V,
|
|
3250
|
+
eligibleOauthPoolAccountKeys as W,
|
|
3251
|
+
normalizeSshTimeoutSeconds as X,
|
|
3252
|
+
CLAUDE_HOOK_EVENTS as Y,
|
|
3253
|
+
isReservedAgentTypeName as Z,
|
|
3254
|
+
BUILTIN_AGENT_TYPES as _,
|
|
3305
3255
|
parseSessionIdentity as a,
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3256
|
+
parseGeneratedImagePaths as a$,
|
|
3257
|
+
PLUGIN_HOST_APIS as a0,
|
|
3258
|
+
PLUGIN_INJECT_MAX_CHARS as a1,
|
|
3259
|
+
parsePluginInjectImages as a2,
|
|
3260
|
+
isHostPluginEvent as a3,
|
|
3261
|
+
parsePluginToolName as a4,
|
|
3262
|
+
initialInterceptState as a5,
|
|
3263
|
+
CHILD_INTERCEPT_TOTAL_TIMEOUT_MS as a6,
|
|
3264
|
+
INTERCEPT_TOTAL_TIMEOUT_MS as a7,
|
|
3265
|
+
CHILD_INTERCEPT_TIMEOUT_MS as a8,
|
|
3266
|
+
INTERCEPT_TIMEOUT_MS as a9,
|
|
3267
|
+
BOT_AVATAR_HOST as aA,
|
|
3268
|
+
PLUGIN_ASSET_HOST as aB,
|
|
3269
|
+
mediaExtension as aC,
|
|
3270
|
+
localImageUrlToPath as aD,
|
|
3271
|
+
isMediaPath as aE,
|
|
3272
|
+
isVideoPath as aF,
|
|
3273
|
+
IMAGE_EXTENSIONS as aG,
|
|
3274
|
+
parseCreateConversationAuthorityRequest as aH,
|
|
3275
|
+
parseConversationAuthorityRequest as aI,
|
|
3276
|
+
parseUpdateConversationSelectionRequest as aJ,
|
|
3277
|
+
parseTitleSummaryInput as aK,
|
|
3278
|
+
parseParentSourceBindingRequest as aL,
|
|
3279
|
+
parseParentModelSelectionRequest as aM,
|
|
3280
|
+
parseAgentDispatchRequest as aN,
|
|
3281
|
+
isApprovalDecision as aO,
|
|
3282
|
+
cleanToolBatchLabel as aP,
|
|
3283
|
+
toolBatchLabelPrompt as aQ,
|
|
3284
|
+
TOOL_BATCH_LABEL_SYSTEM_PROMPT as aR,
|
|
3285
|
+
SHELL_LIMITS as aS,
|
|
3286
|
+
TITLE_SUMMARY_MAX_CANDIDATES as aT,
|
|
3287
|
+
parseCreateProjectAuthorityRequest as aU,
|
|
3288
|
+
parseSelectProjectAuthorityRequest as aV,
|
|
3289
|
+
parseRemoveProjectAuthorityRequest as aW,
|
|
3290
|
+
withVersionSegment as aX,
|
|
3291
|
+
DEFAULT_BASE_URLS as aY,
|
|
3292
|
+
PROJECTED_FILE_TEXT_LIMIT as aZ,
|
|
3293
|
+
imageGenerationPreviewPaths as a_,
|
|
3294
|
+
applyInterceptResult as aa,
|
|
3295
|
+
failClosedResult as ab,
|
|
3296
|
+
OBSERVE_TIMEOUT_MS as ac,
|
|
3297
|
+
BEFORE_COMPACT_TIMEOUT_MS as ad,
|
|
3298
|
+
PLUGIN_PROGRESS_MAX_CHARS as ae,
|
|
3299
|
+
MCP_TRANSPORTS as af,
|
|
3300
|
+
parsePrivacyMaskRecord as ag,
|
|
3301
|
+
hasProviderCredentials as ah,
|
|
3302
|
+
parseAgentWorkerEvent as ai,
|
|
3303
|
+
parseWindowsLocalShell as aj,
|
|
3304
|
+
parseSmartCompactMode as ak,
|
|
3305
|
+
resolveImageGenerationConfig as al,
|
|
3306
|
+
normalizeMaxActiveCoworkers as am,
|
|
3307
|
+
normalizeAutoRetryLimit as an,
|
|
3308
|
+
parsePrivacyMaskSettings as ao,
|
|
3309
|
+
parseDisabledWorkflowPresets as ap,
|
|
3310
|
+
DEFAULT_APPROVAL_ALLOW_THRESHOLD as aq,
|
|
3311
|
+
visibleMemberAgentTypes as ar,
|
|
3312
|
+
buildAgentTypeRegistrySnapshot as as,
|
|
3313
|
+
resolveShellLimits as at,
|
|
3364
3314
|
DEFAULT_PRESET_ID as au,
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3315
|
+
AGENT_WAIT_DEFAULT_MS as av,
|
|
3316
|
+
AGENT_WAIT_MAX_MS as aw,
|
|
3317
|
+
isDeliveryId as ax,
|
|
3318
|
+
LOCAL_IMAGE_SCHEME as ay,
|
|
3319
|
+
REMOTE_FETCH_HOST as az,
|
|
3370
3320
|
parseApprovalAllowThreshold as b,
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
PLAN_TEXT_MAX as bq,
|
|
3398
|
-
planPhase as br,
|
|
3399
|
-
parsePlanEntry as bs,
|
|
3400
|
-
parseAgentControlToolRequest as bt,
|
|
3401
|
-
nativeSearchKindFor as bu,
|
|
3402
|
-
isWorkflowPresetId as bv,
|
|
3403
|
-
PLUGIN_EVENTS as bw,
|
|
3404
|
-
isInterceptEvent as bx,
|
|
3405
|
-
APPEND_ONLY_INTERCEPT_EVENTS as by,
|
|
3321
|
+
parseMaskReport as b0,
|
|
3322
|
+
parsePluginMessageSource as b1,
|
|
3323
|
+
parseRtkToolStats as b2,
|
|
3324
|
+
isBackgroundTaskId as b3,
|
|
3325
|
+
parseShellFailure as b4,
|
|
3326
|
+
pluginArtifactsFromToolDetails as b5,
|
|
3327
|
+
parseApprovalReviewRecord as b6,
|
|
3328
|
+
PROJECTED_FILE_CHANGE_LIMIT as b7,
|
|
3329
|
+
PROJECTED_APPLY_PATCH_PATH_TEXT_LIMIT as b8,
|
|
3330
|
+
PROJECTED_APPLY_PATCH_PATH_COUNT_LIMIT as b9,
|
|
3331
|
+
foldPlanState as ba,
|
|
3332
|
+
PLAN_MODE_ON_NOTE as bb,
|
|
3333
|
+
PLAN_MODE_OFF_NOTE as bc,
|
|
3334
|
+
planFeedbackText as bd,
|
|
3335
|
+
planKickoffText as be,
|
|
3336
|
+
activePlanNote as bf,
|
|
3337
|
+
PLAN_TITLE_MAX as bg,
|
|
3338
|
+
PLAN_TEXT_MAX as bh,
|
|
3339
|
+
planPhase as bi,
|
|
3340
|
+
parsePlanEntry as bj,
|
|
3341
|
+
parseAgentControlToolRequest as bk,
|
|
3342
|
+
nativeSearchKindFor as bl,
|
|
3343
|
+
isWorkflowPresetId as bm,
|
|
3344
|
+
PLUGIN_EVENTS as bn,
|
|
3345
|
+
isInterceptEvent as bo,
|
|
3346
|
+
APPEND_ONLY_INTERCEPT_EVENTS as bp,
|
|
3406
3347
|
isProbability as c,
|
|
3407
3348
|
CONTEXT_PART_ITEMS as d,
|
|
3408
3349
|
parseProviderHeaders as e,
|
|
@@ -3419,13 +3360,13 @@ export {
|
|
|
3419
3360
|
parseChildSessionIdentity as p,
|
|
3420
3361
|
MaskReportBuilder as q,
|
|
3421
3362
|
resolvePiProviderBaseUrl as r,
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3363
|
+
DEFAULT_AUTO_RETRY_LIMIT as s,
|
|
3364
|
+
isSameChildSessionIdentity as t,
|
|
3365
|
+
resolveCompactStrategy as u,
|
|
3366
|
+
DEFAULT_SSH_TIMEOUT_SECONDS as v,
|
|
3426
3367
|
workspaceBranchChangedNote as w,
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3368
|
+
PLAN_ENTRY_TYPE as x,
|
|
3369
|
+
autoRetryOverrides as y,
|
|
3370
|
+
parseAgentSessionCustomEntry as z
|
|
3430
3371
|
};
|
|
3431
|
-
//# sourceMappingURL=agent
|
|
3372
|
+
//# sourceMappingURL=agent-_G_O-Cpa.js.map
|
|
@@ -4,13 +4,12 @@ import path from "node:path";
|
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { s as selectGpuBackendPackage, g as gpuBackendInstallDir, i as isGpuBackendReady, h as hasLlamaAddon, n as npmPackumentUrl, v as verifyIntegrity, e as extractNpmPackageBins } from "../index.js";
|
|
6
6
|
import "node:net";
|
|
7
|
-
import "node:readline";
|
|
8
7
|
import "node:child_process";
|
|
9
8
|
import "node:crypto";
|
|
10
9
|
import "node:events";
|
|
11
10
|
import "node:os";
|
|
12
|
-
import "./agent
|
|
13
|
-
import "./workflowPresets-
|
|
11
|
+
import "./agent-_G_O-Cpa.js";
|
|
12
|
+
import "./workflowPresets-Djlp5LPV.js";
|
|
14
13
|
import "node:fs/promises";
|
|
15
14
|
import "node:zlib";
|
|
16
15
|
import "@earendil-works/pi-ai";
|
|
@@ -23,20 +22,19 @@ import "node:dns/promises";
|
|
|
23
22
|
import "@mozilla/readability";
|
|
24
23
|
import "linkedom";
|
|
25
24
|
import "turndown";
|
|
25
|
+
import "undici";
|
|
26
|
+
import "@earendil-works/pi-ai/api/transform-messages";
|
|
26
27
|
import "node:http";
|
|
27
28
|
import "tweetnacl";
|
|
28
|
-
import "./manifest-
|
|
29
|
+
import "./manifest-CB63GQ-i.js";
|
|
29
30
|
import "@earendil-works/pi-mcp/oauth";
|
|
30
31
|
import "node:stream/promises";
|
|
31
32
|
import "better-sqlite3";
|
|
32
33
|
import "sqlite-vec";
|
|
33
34
|
import "@huggingface/tokenizers";
|
|
34
|
-
import "undici";
|
|
35
35
|
import "./speech-CqK6_tIR.js";
|
|
36
36
|
import "web-push";
|
|
37
37
|
import "node:stream";
|
|
38
|
-
import "@earendil-works/pi-ai/api/typesafe-system-one";
|
|
39
|
-
import "@earendil-works/pi-ai/providers/typesafe";
|
|
40
38
|
import "smol-toml";
|
|
41
39
|
import "@modelcontextprotocol/sdk/client/index.js";
|
|
42
40
|
import "@modelcontextprotocol/sdk/client/sse.js";
|
|
@@ -45,7 +43,10 @@ import "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
|
45
43
|
import "node:dns";
|
|
46
44
|
import "node:https";
|
|
47
45
|
import "node-pty";
|
|
46
|
+
import "@earendil-works/pi-ai/api/typesafe-system-one";
|
|
47
|
+
import "@earendil-works/pi-ai/providers/typesafe";
|
|
48
48
|
import "./resources-DmaKIeBc.js";
|
|
49
|
+
import "node:readline";
|
|
49
50
|
import "node:readline/promises";
|
|
50
51
|
import "fs";
|
|
51
52
|
import "util";
|
|
@@ -154,4 +155,4 @@ export {
|
|
|
154
155
|
hasPackagedAddon,
|
|
155
156
|
llamaCppVersion
|
|
156
157
|
};
|
|
157
|
-
//# sourceMappingURL=gpuBackendInstall-
|
|
158
|
+
//# sourceMappingURL=gpuBackendInstall-Cb6TFh_8.js.map
|
|
@@ -5,7 +5,8 @@ import { randomUUID } from "node:crypto";
|
|
|
5
5
|
import { EventEmitter, once } from "node:events";
|
|
6
6
|
import http2 from "node:http2";
|
|
7
7
|
import { PassThrough } from "node:stream";
|
|
8
|
-
import {
|
|
8
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
9
|
+
import { b as emptyUsage } from "./workflowPresets-Djlp5LPV.js";
|
|
9
10
|
const CURSOR_CLIENT_VERSION = process.env.PI_CURSOR_CLIENT_VERSION || "cli-2026.07.23-e383d2b";
|
|
10
11
|
const MAX_BRIDGE_MESSAGE_BYTES = 64 * 1024 * 1024;
|
|
11
12
|
const MAX_ERROR_BODY_BYTES = 1024 * 1024;
|
|
@@ -632,7 +633,7 @@ function uvarint(value) {
|
|
|
632
633
|
bytes.push(n);
|
|
633
634
|
return Uint8Array.from(bytes);
|
|
634
635
|
}
|
|
635
|
-
|
|
636
|
+
const boundBridge = new AsyncLocalStorage();
|
|
636
637
|
function isCursorModel(model) {
|
|
637
638
|
return model.provider === "cursor" || model.api === "cursor-native";
|
|
638
639
|
}
|
|
@@ -704,27 +705,13 @@ function attachCursorBridgeToSession(session, tools, cwd) {
|
|
|
704
705
|
};
|
|
705
706
|
});
|
|
706
707
|
session.prompt = (async (text, options) => {
|
|
707
|
-
|
|
708
|
-
boundBridge = bridge;
|
|
709
|
-
try {
|
|
710
|
-
await origPrompt(text, options);
|
|
711
|
-
} finally {
|
|
712
|
-
boundBridge = prev;
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
session.steer = (async (text, images, options) => {
|
|
716
|
-
const prev = boundBridge;
|
|
717
|
-
boundBridge = bridge;
|
|
718
|
-
try {
|
|
719
|
-
return await origSteer(text, images, options);
|
|
720
|
-
} finally {
|
|
721
|
-
boundBridge = prev;
|
|
722
|
-
}
|
|
708
|
+
await boundBridge.run(bridge, () => origPrompt(text, options));
|
|
723
709
|
});
|
|
710
|
+
session.steer = (async (text, images, options) => boundBridge.run(bridge, () => origSteer(text, images, options)));
|
|
724
711
|
return bridge;
|
|
725
712
|
}
|
|
726
713
|
function handlePiCursorExec(execCase, execMsg, write) {
|
|
727
|
-
const bridge = boundBridge;
|
|
714
|
+
const bridge = boundBridge.getStore();
|
|
728
715
|
const frame = execFrameFromCase(execCase, execMsg.message?.value);
|
|
729
716
|
if (!bridge || !frame) return false;
|
|
730
717
|
return bridge.dispatch(frame).then((dispatched) => {
|
|
@@ -985,4 +972,4 @@ export {
|
|
|
985
972
|
isCursorModel as i,
|
|
986
973
|
loadCursorProvider as l
|
|
987
974
|
};
|
|
988
|
-
//# sourceMappingURL=loadProvider-
|
|
975
|
+
//# sourceMappingURL=loadProvider-Be9Lu1Oi.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as pluginToolName, Z as isReservedAgentTypeName, _ as BUILTIN_AGENT_TYPES, U as THINKING_LEVELS, bm as isWorkflowPresetId, bn as PLUGIN_EVENTS, bo as isInterceptEvent, bp as APPEND_ONLY_INTERCEPT_EVENTS } from "./agent-_G_O-Cpa.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;
|
|
@@ -303,6 +303,8 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
303
303
|
if (!isNonEmptyString(t.description, 1024)) errors.push(`工具 ${name} 缺少 description`);
|
|
304
304
|
if (t.timeoutMs !== void 0 && !isTimeout(t.timeoutMs, MAX_TOOL_TIMEOUT_MS))
|
|
305
305
|
errors.push(`工具 ${name} 的 timeoutMs 不合法(1000–${MAX_TOOL_TIMEOUT_MS} 毫秒的整数)`);
|
|
306
|
+
if (t.readOnly !== void 0 && typeof t.readOnly !== "boolean")
|
|
307
|
+
errors.push(`工具 ${name} 的 readOnly 只能是布尔值`);
|
|
306
308
|
if (!isRecord(t.parameters) || t.parameters.type !== "object")
|
|
307
309
|
errors.push(`工具 ${name} 的 parameters 必须是 type=object 的 JSON Schema`);
|
|
308
310
|
else
|
|
@@ -310,7 +312,8 @@ function parseExtensionPluginManifest(raw, hostVersion) {
|
|
|
310
312
|
name,
|
|
311
313
|
description: String(t.description ?? ""),
|
|
312
314
|
parameters: t.parameters,
|
|
313
|
-
...isTimeout(t.timeoutMs, MAX_TOOL_TIMEOUT_MS) ? { timeoutMs: t.timeoutMs } : {}
|
|
315
|
+
...isTimeout(t.timeoutMs, MAX_TOOL_TIMEOUT_MS) ? { timeoutMs: t.timeoutMs } : {},
|
|
316
|
+
...t.readOnly === true ? { readOnly: true } : {}
|
|
314
317
|
});
|
|
315
318
|
}
|
|
316
319
|
uniqueIds(agentTools, "工具");
|
|
@@ -856,4 +859,4 @@ export {
|
|
|
856
859
|
mergeStatusItems as m,
|
|
857
860
|
parseStatusPatch as p
|
|
858
861
|
};
|
|
859
|
-
//# sourceMappingURL=manifest-
|
|
862
|
+
//# sourceMappingURL=manifest-CB63GQ-i.js.map
|