@agimon-ai/po-cloudflare 0.0.2-alpha.49 → 0.0.2-alpha.50
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/dist/{agent-CSH23i2-.js → agent-DeeAnjjz.js} +1 -1
- package/dist/{anthropic-messages-BxS7qXqx.js → anthropic-messages-Bb89iLZO.js} +10 -10
- package/dist/{apiContracts-BT1b_Bvo.js → apiContracts-ztWPx8ew.js} +97 -2
- package/dist/{approval-DSfCC4gB.js → approval-B3rZD3vi.js} +2 -2
- package/dist/{approvalPrompt-BKYgk3bB.js → approvalPrompt-T51v0aYQ.js} +1 -1
- package/dist/artifactFiles-YozWvMHZ.js +1 -0
- package/dist/assets/assets/{CodeEditorView-BHaOMRjc.js → CodeEditorView-BZreyNJ9.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-CDWx0dCZ.js → abnfDiagram-WEYOIA3C-BE7KqxXX.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-CVl8TlUa.js → architecture-WOLXFQ4H-BqxOtxzz.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-B-9U5J2m.js → architectureDiagram-ZHVYKT53-BTrOVDhK.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DeAmR8GR.js → blockDiagram-RJAE7QA3-Ci_V69PA.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-DH-55ik1.js → c4Diagram-XDPPPE54-Ch5yK_LJ.js} +2 -2
- package/dist/assets/assets/channel-28QpGJYz.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-CtD9IAQe.js → chunk-2E7WHVMD-CnjzNB0B.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-BlWBPhJT.js → chunk-4EMNKR2T-H3Z9aXMz.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CLbB5lqy.js → chunk-55XCU76K-Crb784Nd.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-D33yaufg.js → chunk-7S6XSTFO-Bhb8Cq8W.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-PRYBX44u.js → chunk-AQDTSKZB-Bdiy66o6.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-CyfThOqM.js → chunk-DSNLSHJZ-BsoZXJEj.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-DzN80Tcl.js → chunk-HAGFOTED-0MgFC_CG.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-DKoC-RgY.js → chunk-HNE4Q36P-BhMZjXs-.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-BLXN1l5s.js → chunk-NQOKRVIF-DHcaG9QS.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-CtkUl02Z.js → chunk-UHW7PFBP-DjlNz5nO.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-DcSOZjGK.js → chunk-VQ5W62QI-C0xnjFjO.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-aN1-PJ3t.js → chunk-WQQL4CDK-IL7oUBns.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-Bub_UHy5.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-DhtQKpcb.js → chunk-YZO67HFG-DFvNB4L3.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-BKRwwtRo.js → chunk-ZAUX2LTX-CBziY9pS.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-BZT1wRxe.js → chunk-ZCHMQSOR-Bv4ua3h_.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-CMWkILSY.js → classDiagram-v2-4MYWR3UA-fLHJI2xV.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-Dar4SYjM.js → cose-bilkent-JH36ORCC-QLtWBuTM.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-Dh1r-XyN.js → cynefin-EF2NZ3EQ-DRN6U5Db.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Dv7zKVsq.js → cynefinDiagram-WF24UDRP-B9tI4Ohe.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-Bf9qZfJX.js → dagre-NK4GIZVX-DemzfdmQ.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-Ca4NIw3-.js → diagram-CBK3MWTC-CCtRultv.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-DR1tHQSH.js → diagram-I5XIIV2D-DVEQL1F5.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-Bja9G_fP.js → diagram-ODIL2UCW-BunVSCj_.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-CcKrvx7F.js → diagram-PFBEJUXE-CEUUKIXa.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-ChfUAp5c.js → diagram-RJA3I4VV-SEZpVMDm.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-Z7EIy_Dd.js → diagram-TYUNFSNR-0CgFbF0g.js} +2 -2
- package/dist/assets/assets/{dist-CeHA3RMV.js → dist-4t2WgOpD.js} +2 -2
- package/dist/assets/assets/{dist-CnDVRyzg.js → dist-8H1TKz4k.js} +2 -2
- package/dist/assets/assets/{dist-CY2drnbW.js → dist-BBlZilCK.js} +2 -2
- package/dist/assets/assets/{dist-pvEcNix9.js → dist-Cchu6W_C.js} +2 -2
- package/dist/assets/assets/{dist-DkzTnMW6.js → dist-Cl5qgt5T.js} +2 -2
- package/dist/assets/assets/{dist-CB7zR0aj.js → dist-CxONU_pm.js} +2 -2
- package/dist/assets/assets/{dist-C8ca3uHq.js → dist-DG2_A_-c.js} +2 -2
- package/dist/assets/assets/{dist-C5b3-Ra2.js → dist-n9YauqZQ.js} +2 -2
- package/dist/assets/assets/{dist-D4ABsHNx.js → dist-oMn6a8nE.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-Cj7VJ0V4.js → ebnfDiagram-V4P3TTPT-Dz2ycJOH.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-0md1Ryrf.js → elk-QONTBCTQ-Fz6_Xvrt.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-DtERkMAJ.js → erDiagram-KYQIGQAA-BeAyOrBT.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-CSIPK-Eo.js → eventmodeling-K75KTNOO-vgU4BWAt.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-CbSbYWGc.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-WODJvYlC.js → ganttDiagram-R7GPNTJY-_fUeQ4ak.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-u62VUFlC.js → gitGraph-VSP46ZUC-MCPA7tZi.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-nliEw829.js → gitGraphDiagram-PDYL7XHY-C78rE9i-.js} +2 -2
- package/dist/assets/assets/index-B-yoyELp.js +254 -0
- package/dist/assets/assets/index-Dv8yd_7T.css +1 -0
- package/dist/assets/assets/{info-OHQRW6UA-CYikzsdB.js → info-OHQRW6UA-CxuW7oHz.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-CAW8nciZ.js → infoDiagram-MVDRKAX5-h1NxvFys.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CfEaOuah.js → ishikawaDiagram-HPEHV2GE-9oaXEGSL.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-gQ-SjkNw.js → journeyDiagram-BOSHW7O7-DSRwY8rF.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DMD23QWj.js → kanban-definition-FNSA4HC5-BuHi-5zC.js} +2 -2
- package/dist/assets/assets/{line-BqPW5Rca.js → line-DvFrHoai.js} +2 -2
- package/dist/assets/assets/{linear-Gt3NZtDp.js → linear-mRkmV-4z.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-jr9WuLKp.js → mermaid-parser.core-B8_o932Q.js} +4 -4
- package/dist/assets/assets/{mermaid.core-nONZH9ES.js → mermaid.core-BR2YA5nB.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-P0G1aSZ_.js → mindmap-definition-6OY57UG3-viTBTXW6.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-BRYh19T9.js → packet-JDAUHWVQ-Dtgoqz0L.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-DVXvDw5m.js → pegDiagram-ECIUJNBX-DWUPy1rh.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-C4zblXYs.js → pie-XZMESJXO-CUP1koYX.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-DQZMSxzU.js → pieDiagram-GNMPY74T-n8WMTMQD.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CoJW9FbN.js → quadrantDiagram-D57K4MC3-uK4w29JE.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-C1hflkM-.js → radar-ABXABTNO-CV-LmuYc.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-BWfPWtIx.js → railroad-I3PHUGI6-CsxFmccj.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-ZD-V0lbr.js → railroad-abnf-LNEFI6M7-BRmXkest.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-101vSltK.js → railroad-ebnf-DWYD2UWJ-SR-1HXXm.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-C2qdCoeJ.js → railroad-peg-JR7BVNR7-Dpe5MEPi.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-CVB1kO7b.js → railroadDiagram-Y72NRBL7-DoAKpoFS.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-D2U3nwPk.js → requirementDiagram-EQYSW5RA-BPjOn4Pf.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-CKjkT8B_.js → sankeyDiagram-SY24JHO5-Cf9hfQdb.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-CwVqG2fG.js → sequenceDiagram-BLEHNHQU-D_QaYjbD.js} +2 -2
- package/dist/assets/assets/{src-bIf72vcz.js → src-HTbVeRm1.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-97EIvkg9.js → stateDiagram-v2-A6IESKWZ-1p9Y0Un1.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-D9egyUg3.js → swimlanes-B3ENRKFQ-CEVVK_zp.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-C49rEDta.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-CbG0LH-D.js → timeline-definition-JXYKGLGB-9pe0K3s8.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-COfpvikT.js → treeView-D4JQ5SDB-Bj9XkRRd.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-CU-jFNpR.js → treemap-SAJKECNS-CnXKaZRY.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-BGnYi9SF.js → usecaseDiagram-WPOLBNNX-DEXeWicE.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-Cb4zd6ET.js → vennDiagram-Q3Y3IDCW-DdA9gmFA.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-ULAC2YGd.js → wardley-7MLQ67FV-DKzlfoOw.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-Bi-y7zjP.js → wardleyDiagram-IVAIDKWA-Clv7IZl4.js} +2 -2
- package/dist/assets/assets/{webpack-eZcyXM6S.js → webpack-OeCRLcVC.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-BvTZJqeU.js → xychartDiagram-4URNHDU4-C54cqAqQ.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +2 -2
- package/dist/assets/plugins/assets/base-B0t0AVu8.css +2 -0
- package/dist/assets/plugins/chunks/po-web-runtime-DLnDPODx.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/{approval.72ae703a-DFWTk7Ap.js → approval.dd60ec90-CR2OaKdj.js} +2 -2
- package/dist/assets/plugins/slots/artifacts.a078f1a5-DXOy-Db5.js +1 -0
- package/dist/assets/plugins/slots/author.497633d0-DjkOdKb_.js +93 -0
- package/dist/assets/plugins/slots/{autocompact.f08b6833-BZ-Hd0ei.js → autocompact.86aeccf4-CCAkxpcf.js} +1 -1
- package/dist/assets/plugins/slots/{browse.a8452a8d-DekLuc-Z.js → browse.5fcf164c-D2F6in0q.js} +1 -1
- package/dist/assets/plugins/slots/{builtin-tools.abc3edcc-zeBI1cKp.js → builtin-tools.0a7f0b8e-KLaHCXJX.js} +2 -2
- package/dist/assets/plugins/slots/{codemode.c68822dc-HLrDhndJ.js → codemode.ff16ac06-ctjp1saw.js} +3 -3
- package/dist/assets/plugins/slots/{domain.d3fc60b5-Dwn3GboM.js → domain.3ddea842-D4VgRtoX.js} +1 -1
- package/dist/assets/plugins/slots/{edit.2aa43041-CddVpEel.js → edit.c5b0b072-CYrIo7XF.js} +2 -2
- package/dist/assets/plugins/slots/{files.c1e584ee-DxOpzqm3.js → files.8ffcdcc0-DBjHUcji.js} +2 -2
- package/dist/assets/plugins/slots/{goal.b1d8b03b-C9tmOreI.js → goal.423c7a26-Ds3wyEeZ.js} +1 -1
- package/dist/assets/plugins/slots/{grep.b067b8cb-C4OjbSn9.js → grep.95f470b3-3TszNGfJ.js} +1 -1
- package/dist/assets/plugins/slots/{help.3b3e56cb-CcgpN98Q.js → help.03b9ba99-BHoaVx3j.js} +3 -3
- package/dist/assets/plugins/slots/{log.24faf8a0-BtnnodkX.js → log.19bda339-BAzKHYY8.js} +2 -2
- package/dist/assets/plugins/slots/{mcp.a6805ffa-DrBGkASK.js → mcp.ffbe405a-BHFKcU6F.js} +8 -8
- package/dist/assets/plugins/slots/{plan.19d1704d-C3Tml2Sz.js → plan.5eac6563-B5nViq3a.js} +2 -2
- package/dist/assets/plugins/slots/profile.176710dd-Cf1v3fyE.js +1 -0
- package/dist/assets/plugins/slots/prompts.2c187969-BiyzyQgT.js +92 -0
- package/dist/assets/plugins/slots/{read.a43eeb4a-DNoCGY1k.js → read.1629d556-kJqaLIcB.js} +1 -1
- package/dist/assets/plugins/slots/{runner.03b699da-DGs8HywA.js → runner.962030e5-C3VAYDKl.js} +2 -2
- package/dist/assets/plugins/slots/{sessions.dc7ce5f8-CwbzOt92.js → sessions.fc763f42-IDfQ1Gsb.js} +1 -1
- package/dist/assets/plugins/slots/{skill.2b6ba429-6Lp0cyos.js → skill.f5396fde-CzGijuLN.js} +2 -2
- package/dist/assets/plugins/slots/subagents.d815a296-B4OPMPsa.js +7 -0
- package/dist/assets/plugins/slots/{vault.593b32bd-dkDWzchJ.js → vault.57fd9047-CV5AIlOK.js} +1 -1
- package/dist/assets/plugins/slots/{voice.376a066c-Clktk2zw.js → voice.b709d05c-BXO76eLb.js} +1 -1
- package/dist/assets/pwa/sw.js +58 -4
- package/dist/{atomicJson-BMo59M38.js → atomicJson-BEwCGOHa.js} +2 -2
- package/dist/{backgroundWork-DCAXx7Rj.js → backgroundWork-BwTUtLj_.js} +1 -1
- package/dist/childProcess-OAg6F7cb.js +19 -0
- package/dist/{childSession-Cf2-kH4O.js → childSession-BrDCrNtL.js} +4 -1
- package/dist/{codemode-BGg_bdyR.js → codemode-BC69sRMW.js} +1 -1
- package/dist/contextContributions-DRo8z3cF.js +13 -0
- package/dist/{contracts-CeDnw9WN.js → contracts-Cq4n5vLR.js} +1 -1
- package/dist/{contracts-SLVZxN23.js → contracts-DcwtBPdo.js} +1 -1
- package/dist/cordisHost-DqWZKUop.js +84 -0
- package/dist/{edge-BbnHwvoB.js → edge-DFU343Be.js} +3 -3
- package/dist/{exports-CgYBL1bW.js → exports-B7DxmM03.js} +9 -9
- package/dist/{exports-B1xOpEc-.js → exports-DBB15F3r.js} +2 -2
- package/dist/{exports-dzvew8OY.js → exports-DVW9gl4R.js} +5 -5
- package/dist/exports-JAI2BYXJ.js +1 -0
- package/dist/{extensionFile-H7Bjt9rF.js → extensionFile-DJfGtEm7.js} +1 -1
- package/dist/{harnessState-CzTo3NWb.js → harnessState-DVQuUGEJ.js} +4 -48
- package/dist/{harnessStore-HgDpAK-Y.js → harnessStore-TpUmvc_t.js} +4 -4
- package/dist/{help-CdXCQR-p.js → help-BppjPyQI.js} +1 -1
- package/dist/help-D7HCuxQ9.js +1 -0
- package/dist/{http-D_AAaFOy.js → http-BjbClq7Q.js} +1 -1
- package/dist/hubChannel-DckivLhM.js +21 -0
- package/dist/{hubRevisions-CopbJuaH.js → hubRevisions-CPq0Lw8l.js} +1 -1
- package/dist/{index.edge-CDBGyAxt.js → index.edge-Bwlovw2c.js} +3 -2
- package/dist/{index.edge-CWx_JOvW.js → index.edge-CT1-41gV.js} +1 -1
- package/dist/{index.edge-CLT9TXWK.js → index.edge-CyGkGu9u.js} +18 -3
- package/dist/{layeredConfig-BvV_w_m2.js → layeredConfig-CfQAMbyp.js} +58 -19
- package/dist/majorModes-B5hXn8yj.js +1 -0
- package/dist/{majorModes-p6P4xD2z.js → majorModes-CT3VJzoq.js} +198 -4
- package/dist/{mcpProjection-BK-vdY56.js → mcpProjection-Dy6Keyoz.js} +1 -1
- package/dist/{narration-DIrslirB.js → narration-B4spVaUo.js} +1 -2
- package/dist/{node-CdIUdDAa.js → node-BFDU14GD.js} +2 -2
- package/dist/{hubChannel-DOTAJmh-.js → packageApi-Bc5Kcla4.js} +2 -22
- package/dist/{piConfig-D5evFOm2.js → piConfig-Dhp5UqUp.js} +4 -4
- package/dist/piSettings-Ciixnc7H.js +1 -0
- package/dist/{platform-CtU1y037.js → platform-B5tkndf7.js} +1 -1
- package/dist/pluginCatalog-Buo6FquN.js +30 -0
- package/dist/{pluginProtocol-OfEeF1XB.js → pluginProtocol-H8vuILsi.js} +1 -1
- package/dist/{protocol-DirvkM0v.js → protocol-BjZE-9pm.js} +1 -1
- package/dist/{server-D0Pm5Cv2.js → server-88RujZX-.js} +27 -13
- package/dist/{server-DugpZ3mm.js → server-B02_qESd.js} +4 -4
- package/dist/server-B2b3ArJl.js +8911 -0
- package/dist/{server-BgTNradt.js → server-BJMBotJ0.js} +14 -9
- package/dist/{server-DgVadu7t.js → server-BSWRB_lw.js} +11 -16
- package/dist/{server-Dwhi3TsC.js → server-BWScnPFb.js} +7 -7
- package/dist/{server-Bn6iYrFZ.js → server-Bf-pCwOK.js} +6 -6
- package/dist/{server-M4-DDDOZ.js → server-Bh6qNviY.js} +3 -3
- package/dist/{server-DeR8jImg.js → server-Bq4Jlbdd.js} +2 -2
- package/dist/{server-En-VI4hy.js → server-BtK7Ja-V.js} +13 -13
- package/dist/{server-DGLYoLHo.js → server-BtydnIhg.js} +3 -3
- package/dist/{server-BeQLpTvF.js → server-BwztYUCh.js} +9 -9
- package/dist/{server-OCmkZppg.js → server-BygmI2dZ.js} +12 -11
- package/dist/{server-CBuDowok.js → server-Bzb_ZL02.js} +8 -19
- package/dist/{server-CoNI7Dae.js → server-C-NEhHuy.js} +412 -172
- package/dist/{server-DelJO3ld.js → server-C3lGe-sy.js} +10 -9
- package/dist/{server-BVl2a_ZP.js → server-C8CXdYUR.js} +4 -4
- package/dist/{server-Beu4-0kB.js → server-CJ503asg.js} +6 -6
- package/dist/{server-Dqw1_tvL.js → server-CTIIJbTv.js} +6 -6
- package/dist/{server-BArlvPpk.js → server-CXvVeIJE.js} +3 -3
- package/dist/{server-CrRlurQ-.js → server-CcTYnLE9.js} +5 -5
- package/dist/{server-DwkmvgKM.js → server-CpwLjt8P.js} +8 -8
- package/dist/{server-DNzsSgHD.js → server-EjgeojQz.js} +10 -15
- package/dist/{server-gs5DpTRC.js → server-FPxRUfNk.js} +5 -5
- package/dist/{server-DiJBt90_.js → server-Jin4SYAk.js} +11 -11
- package/dist/{server-CjdOcJNc.js → server-LnRG2YS0.js} +3 -3
- package/dist/{server-CKudOGCM.js → server-VQY8sbQ4.js} +6 -6
- package/dist/{server-YVf7pXLX.js → server-Xe4-8cn1.js} +10 -10
- package/dist/{server-B5kTx-CV.js → server-ay4PZuRC.js} +6 -6
- package/dist/{server-BahQu59l.js → server-bru8Ax_I.js} +12 -12
- package/dist/{server-CMNfxYhY.js → server-sB7mpmr_.js} +10 -10
- package/dist/{serverPlugin-S99Dzxlv.js → serverPlugin-CNbUxIzn.js} +71 -1
- package/dist/{sessionConfig-DHQgWLKi.js → sessionConfig-D5aUjkJm.js} +73 -74
- package/dist/type-DHl8NZZ_.js +8 -0
- package/dist/{type-CFxy2Td1.js → type-DfAOYs92.js} +8 -8
- package/dist/{validation-DsS1zGbs.js → validation-Bsg_2ZRM.js} +2 -2
- package/dist/{vaultSettings-ByX7CWjt.js → vaultSettings-Cp8r77ss.js} +1 -1
- package/dist/{voiceTools-ttmxBia8.js → voiceTools-GxJVjGeJ.js} +1 -1
- package/dist/web-DuR90K88.js +4 -0
- package/dist/worker.js +928 -311
- package/dist/{workflow-DJjGTfkb.js → workflow-C-tL1njy.js} +1 -1
- package/package.json +39 -39
- package/dist/artifactFiles-BJK8g2Wq.js +0 -1
- package/dist/assets/assets/channel-bSjoaDB4.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BIzpIYaa.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-B9oPI3Eh.js +0 -1
- package/dist/assets/assets/index-BlFg3Cgj.js +0 -200
- package/dist/assets/assets/index-CWkfd_A-.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BkS3IR0c.js +0 -9
- package/dist/assets/plugins/assets/base-Bz0oeehA.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-oroB3Znq.js +0 -1
- package/dist/assets/plugins/slots/artifacts.77a5ce89--B-D-lue.js +0 -1
- package/dist/assets/plugins/slots/author.1c902d5c--QQ4lLeg.js +0 -93
- package/dist/assets/plugins/slots/profile.1b4aeee4-1K7Wt9AD.js +0 -1
- package/dist/assets/plugins/slots/prompts.a5509377-h93o8dcF.js +0 -38
- package/dist/assets/plugins/slots/subagents.9adbe0d5-tX_I8uwl.js +0 -7
- package/dist/help-CavvEZPE.js +0 -1
- package/dist/majorModes-CNeGE-W8.js +0 -1
- package/dist/piSettings-BFxJzcgF.js +0 -1
- package/dist/web-BqagDnwS.js +0 -3
- package/dist/{node-CjBe953N.js → node-CBLSc-YH.js} +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as readTextIfExists } from "./platform-
|
|
3
|
-
import { t as readPoConfigSourcesAsync } from "./layeredConfig-
|
|
1
|
+
import { Rt as BACKGROUND_CONTEXT, at as nodeHost, lt as getOrThrow } from "./serverPlugin-CNbUxIzn.js";
|
|
2
|
+
import { s as readTextIfExists, u as writeFileAtomic } from "./platform-B5tkndf7.js";
|
|
3
|
+
import { a as globalPoConfigDirectory, i as readPoConfigLayers, t as readPoConfigSourcesAsync } from "./layeredConfig-CfQAMbyp.js";
|
|
4
|
+
import { c as isMap, i as parseDocument, l as isScalar, u as isSeq } from "./portableConfig-DgqvRK_1.js";
|
|
5
|
+
import { createHash } from "node:crypto";
|
|
4
6
|
import path from "node:path";
|
|
7
|
+
import { isDeepStrictEqual } from "node:util";
|
|
5
8
|
//#region ../../foundations/po-config/src/services/majorModes/core.ts
|
|
6
9
|
const MODES_FILE = "modes.yaml";
|
|
7
10
|
const FALLBACK_MAJOR_MODE = "copilot";
|
|
@@ -246,6 +249,197 @@ function resolveLayers(config, majorMode) {
|
|
|
246
249
|
return [...config.majorMode[majorMode].layers];
|
|
247
250
|
}
|
|
248
251
|
//#endregion
|
|
252
|
+
//#region ../../foundations/po-config/src/services/presets/index.ts
|
|
253
|
+
const io = BACKGROUND_CONTEXT;
|
|
254
|
+
let writes = Promise.resolve();
|
|
255
|
+
/** Serialize settings writes and the marketplace's final clash check plus membership commit. */
|
|
256
|
+
function withSettingsWrite(action) {
|
|
257
|
+
const result = writes.then(action);
|
|
258
|
+
writes = result.catch(() => void 0);
|
|
259
|
+
return result;
|
|
260
|
+
}
|
|
261
|
+
function packageName(entry) {
|
|
262
|
+
return typeof entry === "string" ? entry : entry.name;
|
|
263
|
+
}
|
|
264
|
+
function modesFile(homeDirectory) {
|
|
265
|
+
return path.join(globalPoConfigDirectory(homeDirectory, {}), MODES_FILE);
|
|
266
|
+
}
|
|
267
|
+
/** sha256 of the file's bytes, empty when absent, as `config/core` hashes `config.yaml`. */
|
|
268
|
+
function hashOf(text) {
|
|
269
|
+
return text === void 0 ? "" : createHash("sha256").update(text, "utf8").digest("hex");
|
|
270
|
+
}
|
|
271
|
+
/** Explicit file sources keep the preset API independent of ambient host configuration. */
|
|
272
|
+
async function modesConfig(fs, home, environment, root) {
|
|
273
|
+
const files = [modesFile(home), ...root ? [path.join(root, ".po", MODES_FILE)] : []];
|
|
274
|
+
const sources = [];
|
|
275
|
+
for (const filePath of files) {
|
|
276
|
+
const text = await readTextIfExists(fs, filePath, io);
|
|
277
|
+
if (text === void 0 || !text.trim()) continue;
|
|
278
|
+
const document = parseDocument(text);
|
|
279
|
+
if (!document.errors.length && document.contents === null) continue;
|
|
280
|
+
if (document.errors.length || !isMap(document.contents)) throw new Error(`Invalid YAML in ${filePath}.`);
|
|
281
|
+
sources.push({
|
|
282
|
+
filePath,
|
|
283
|
+
baseDirectory: filePath === files[0] ? path.dirname(filePath) : root,
|
|
284
|
+
text,
|
|
285
|
+
document: document.toJS()
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
return composeMajorModesConfig(sources, root ?? home, environment, (specifier) => specifier.replace(/@[^@/]+$/u, "").split("/").slice(0, specifier.startsWith("@") ? 2 : 1).join("/"));
|
|
289
|
+
}
|
|
290
|
+
/** Turning on in an inherited host default changes that preset at its source, not a shadow copy. */
|
|
291
|
+
function defaultAddsToHost(config, home, file, root) {
|
|
292
|
+
const name = config.defaultMajorMode;
|
|
293
|
+
return !!root && config.majorModeSources?.[name]?.filePath === modesFile(home) && config.defaultMajorModeSource?.filePath !== file;
|
|
294
|
+
}
|
|
295
|
+
/** Effective presets, with the hash of the file owned by this mount. */
|
|
296
|
+
async function readPresetsView(fs, homeDirectory, environment, root) {
|
|
297
|
+
const config = await modesConfig(fs, homeDirectory, environment, root);
|
|
298
|
+
const file = root ? path.join(root, ".po", MODES_FILE) : modesFile(homeDirectory);
|
|
299
|
+
const text = await readTextIfExists(fs, file, io);
|
|
300
|
+
const host = root ? await modesConfig(fs, homeDirectory, environment) : void 0;
|
|
301
|
+
const view = {
|
|
302
|
+
defaultPreset: config.defaultMajorMode,
|
|
303
|
+
presets: Object.entries(config.majorMode).map(([name, mode]) => ({
|
|
304
|
+
name,
|
|
305
|
+
description: mode.description,
|
|
306
|
+
layers: mode.layers.map((layer) => ({
|
|
307
|
+
name: layer,
|
|
308
|
+
packages: (config.layers[layer]?.packages ?? []).map(packageName)
|
|
309
|
+
})),
|
|
310
|
+
...root ? { overridesHost: !!host?.majorMode[name] && config.majorModeSources?.[name]?.filePath === file } : {},
|
|
311
|
+
...root && config.majorModeSources?.[name]?.filePath === modesFile(homeDirectory) ? { inherited: true } : {}
|
|
312
|
+
})),
|
|
313
|
+
alwaysIncluded: (config.default?.packages ?? []).map(packageName),
|
|
314
|
+
hash: hashOf(text),
|
|
315
|
+
...root ? {
|
|
316
|
+
file,
|
|
317
|
+
hostHash: hashOf(await readTextIfExists(fs, modesFile(homeDirectory), io))
|
|
318
|
+
} : {}
|
|
319
|
+
};
|
|
320
|
+
return {
|
|
321
|
+
...view,
|
|
322
|
+
defaultHash: defaultAddsToHost(config, homeDirectory, file, root) ? view.hostHash : view.hash
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
/** Defaults and admitted repository selections that would break if a preset disappeared. */
|
|
326
|
+
async function referencesTo(fs, home, environment, file, name, repositories, root) {
|
|
327
|
+
const references = [];
|
|
328
|
+
for (const repository of [
|
|
329
|
+
{ path: void 0 },
|
|
330
|
+
...repositories,
|
|
331
|
+
...root && !repositories.some((repository) => repository.path === root) ? [{ path: root }] : []
|
|
332
|
+
]) {
|
|
333
|
+
const config = await modesConfig(fs, home, environment, repository.path);
|
|
334
|
+
if (config.majorModeSources?.[name]?.filePath !== file && !(root && repository.path === root && Object.hasOwn(config.majorMode, name))) continue;
|
|
335
|
+
if (config.defaultMajorMode === name && config.defaultMajorModeSource) {
|
|
336
|
+
const reference = {
|
|
337
|
+
file: config.defaultMajorModeSource.filePath,
|
|
338
|
+
key: "defaultMajorMode"
|
|
339
|
+
};
|
|
340
|
+
if (!references.some((entry) => entry.file === reference.file && entry.key === reference.key)) references.push(reference);
|
|
341
|
+
}
|
|
342
|
+
const layers = await readPoConfigLayers(fs, repository.path ?? home, io, {
|
|
343
|
+
homeDirectory: home,
|
|
344
|
+
environment
|
|
345
|
+
});
|
|
346
|
+
if (layers.effective.selection?.majorMode === name) references.push({
|
|
347
|
+
file: layers.originOf(["selection", "majorMode"]) === "repository" ? layers.repositoryFile.filePath : layers.globalFile.filePath,
|
|
348
|
+
key: "selection.majorMode"
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
return references.filter((entry, index) => references.findIndex((other) => other.file === entry.file && other.key === entry.key) === index);
|
|
352
|
+
}
|
|
353
|
+
/** One comment-preserving atomic edit, validated by the same composer as runtime loads. */
|
|
354
|
+
async function writePreset(fs, home, environment, operation, input, root, repositories = []) {
|
|
355
|
+
let file = root ? path.join(root, ".po", MODES_FILE) : modesFile(home);
|
|
356
|
+
let text = await readTextIfExists(fs, file, io);
|
|
357
|
+
if (!(operation === "add-layer" && !input.name) && hashOf(text) !== input.expectedHash) return {
|
|
358
|
+
error: "Your presets changed since this page loaded.",
|
|
359
|
+
conflict: { hash: hashOf(text) }
|
|
360
|
+
};
|
|
361
|
+
let config = await modesConfig(fs, home, environment, root);
|
|
362
|
+
const name = input.name || config.defaultMajorMode;
|
|
363
|
+
if (operation === "add-layer" && !input.name && defaultAddsToHost(config, home, file, root)) {
|
|
364
|
+
file = modesFile(home);
|
|
365
|
+
text = await readTextIfExists(fs, file, io);
|
|
366
|
+
config = await modesConfig(fs, home, environment);
|
|
367
|
+
}
|
|
368
|
+
const hash = hashOf(text);
|
|
369
|
+
if (hash !== input.expectedHash) return {
|
|
370
|
+
error: "Your presets changed since this page loaded.",
|
|
371
|
+
conflict: { hash }
|
|
372
|
+
};
|
|
373
|
+
const document = parseDocument(text ?? "{}");
|
|
374
|
+
if (document.errors.length || document.contents !== null && !isMap(document.contents)) return { error: `Your ${MODES_FILE} could not be read as YAML.` };
|
|
375
|
+
const exists = Object.hasOwn(config.majorMode, name);
|
|
376
|
+
if (operation === "create") {
|
|
377
|
+
if (document.getIn(["majorMode", name]) != null) return { error: `There is already a preset named ${name}.` };
|
|
378
|
+
const create = input;
|
|
379
|
+
document.setIn(["majorMode", name], {
|
|
380
|
+
description: create.description,
|
|
381
|
+
layers: create.layers ?? []
|
|
382
|
+
});
|
|
383
|
+
} else {
|
|
384
|
+
if (!exists) return { error: `There is no preset named ${name}.` };
|
|
385
|
+
if (operation === "rename" || operation === "delete") {
|
|
386
|
+
const references = await referencesTo(fs, home, environment, file, name, repositories, root);
|
|
387
|
+
if (references.length) return {
|
|
388
|
+
error: `Preset ${name} is still referenced.`,
|
|
389
|
+
references
|
|
390
|
+
};
|
|
391
|
+
if (operation === "rename") {
|
|
392
|
+
const newName = input.newName;
|
|
393
|
+
if (Object.hasOwn(config.majorMode, newName) || document.hasIn(["majorMode", newName])) return { error: `There is already a preset named ${newName}.` };
|
|
394
|
+
const modes = document.get("majorMode", true);
|
|
395
|
+
const pair = isMap(modes) ? modes.items.find((entry) => isScalar(entry.key) && entry.key.value === name) : void 0;
|
|
396
|
+
if (pair && isScalar(pair.key)) pair.key.value = newName;
|
|
397
|
+
else document.setIn(["majorMode", newName], config.majorMode[name]);
|
|
398
|
+
}
|
|
399
|
+
if (root && (await modesConfig(fs, home, environment)).majorMode[name]) document.setIn(["majorMode", name], null);
|
|
400
|
+
else if (operation === "delete") document.deleteIn(["majorMode", name]);
|
|
401
|
+
} else if (operation === "default") document.set("defaultMajorMode", name);
|
|
402
|
+
else {
|
|
403
|
+
const { layer, definition } = input;
|
|
404
|
+
if (operation === "add-layer") {
|
|
405
|
+
const existing = config.layers[layer];
|
|
406
|
+
if (existing && definition) {
|
|
407
|
+
const { baseDirectory: _base, filePath: _file, ...value } = existing;
|
|
408
|
+
if (!isDeepStrictEqual(value, parseLayer(layer, definition))) return { error: `Layer ${layer} already has a conflicting definition.` };
|
|
409
|
+
}
|
|
410
|
+
if (!existing) {
|
|
411
|
+
if (!definition || document.hasIn(["layers", layer])) return { error: `Layer ${layer} has no available definition.` };
|
|
412
|
+
document.setIn(["layers", layer], definition);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if (!document.hasIn(["majorMode", name])) document.setIn(["majorMode", name], config.majorMode[name]);
|
|
416
|
+
const modePath = ["majorMode", name];
|
|
417
|
+
const mode = document.getIn(modePath, true);
|
|
418
|
+
const layersPath = isSeq(mode) ? modePath : [...modePath, "layers"];
|
|
419
|
+
const layers = document.getIn(layersPath, true);
|
|
420
|
+
if (!isSeq(layers)) return { error: `Preset ${name} has no layer list.` };
|
|
421
|
+
const index = layers.items.findIndex((entry) => String(entry) === layer);
|
|
422
|
+
if (operation === "add-layer" && index < 0) layers.add(layer);
|
|
423
|
+
if (operation === "remove-layer") {
|
|
424
|
+
for (let index = layers.items.length - 1; index >= 0; index--) if (String(layers.items[index]) === layer) layers.delete(index);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
await writeFileAtomic(fs, file, document.toString(), io);
|
|
429
|
+
try {
|
|
430
|
+
await modesConfig(fs, home, environment);
|
|
431
|
+
for (const repository of repositories) await modesConfig(fs, home, environment, repository.path);
|
|
432
|
+
return {
|
|
433
|
+
...await readPresetsView(fs, home, environment, root),
|
|
434
|
+
writtenFile: file
|
|
435
|
+
};
|
|
436
|
+
} catch (error) {
|
|
437
|
+
if (text === void 0) getOrThrow(await fs.remove(file, { force: true }, io));
|
|
438
|
+
else await writeFileAtomic(fs, file, text, io);
|
|
439
|
+
return { error: `Po left ${MODES_FILE} as it was: ${error instanceof Error ? error.message : String(error)}` };
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
249
443
|
//#region ../../foundations/po-config/src/services/majorModes/index.ts
|
|
250
444
|
const PACKAGE_MANIFEST = "package.json";
|
|
251
445
|
const SCOPE_PREFIX = "@";
|
|
@@ -320,4 +514,4 @@ async function readPackageConfigurations(fs, config, names, packageName, context
|
|
|
320
514
|
return resolvePackageConfigurations(config, names, packageName, (specifier, baseDirectory) => packageNames.get(key(specifier, baseDirectory)));
|
|
321
515
|
}
|
|
322
516
|
//#endregion
|
|
323
|
-
export {
|
|
517
|
+
export { writePreset as a, withSettingsWrite as i, readPackageConfigurations as n, resolveLayers as o, readPresetsView as r, readMajorModesConfig as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as String, G as Boolean, M as Check, U as Literal, X as Optional, Y as _Object_, Z as _Array_, j as Errors, z as Union } from "./serverPlugin-CNbUxIzn.js";
|
|
2
2
|
/** The portable MCP document revision represented by `agent-plugin-v1`. */
|
|
3
3
|
const AGENT_PLUGIN_MCP_SCHEMA_URL = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
|
|
4
4
|
/** Cordis service name for the immutable MCP projection of one Pi session. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./layeredConfig-BvV_w_m2.js";
|
|
1
|
+
import "./layeredConfig-CfQAMbyp.js";
|
|
3
2
|
//#region ../../core/po-core/src/services/clientMetadata/_lib/codec.ts
|
|
4
3
|
const PO_CLIENT_METADATA_HEADER = "x-po-client-metadata";
|
|
5
4
|
const PO_CLIENT_METADATA_QUERY = "poClient";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as path$2, n as crypto$2, o as stream, r as fs$3, s as util, t as child_process } from "./node-
|
|
2
|
-
import { a as checkMemorySyncInterval, c as decodeUTF8, d as AnthropicError, f as __classPrivateFieldGet, l as encodeUTF8, n as promiseWithResolvers, o as isStatus, p as __classPrivateFieldSet, s as loggerFor, u as ToolError } from "./anthropic-messages-
|
|
1
|
+
import { a as path$2, n as crypto$2, o as stream, r as fs$3, s as util, t as child_process } from "./node-CBLSc-YH.js";
|
|
2
|
+
import { a as checkMemorySyncInterval, c as decodeUTF8, d as AnthropicError, f as __classPrivateFieldGet, l as encodeUTF8, n as promiseWithResolvers, o as isStatus, p as __classPrivateFieldSet, s as loggerFor, u as ToolError } from "./anthropic-messages-Bb89iLZO.js";
|
|
3
3
|
import * as crypto$1 from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import * as fssync from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { nn as defineServiceContract } from "./serverPlugin-CNbUxIzn.js";
|
|
2
2
|
//#region ../../core/po-core/src/schemas/packageApi.ts
|
|
3
3
|
/** Only canonical resource paths may select a protocol listener. */
|
|
4
4
|
function parsePoSocketPath(pathname) {
|
|
@@ -67,24 +67,4 @@ function poApiCallerFrom(headers) {
|
|
|
67
67
|
const PO_EDIT_PRESENCE_SERVICE = "po/edit-presence";
|
|
68
68
|
const PO_EDIT_PRESENCE_CONTRACT = defineServiceContract(PO_EDIT_PRESENCE_SERVICE, { scope: "workspace" });
|
|
69
69
|
//#endregion
|
|
70
|
-
|
|
71
|
-
/** Compact host-wide session attention, published over the existing direct event bus. */
|
|
72
|
-
const PO_SESSION_ATTENTION_EVENT = "po.session.attention";
|
|
73
|
-
/** Caller-authored attention entries, consumed live without replaying historical notices. */
|
|
74
|
-
const PO_SESSION_NOTIFICATION_EVENT = "po.session.notification";
|
|
75
|
-
/**
|
|
76
|
-
* Provenance of a session a workflow step opened.
|
|
77
|
-
*
|
|
78
|
-
* The step's conversation belongs to the workflow that ran it and is read in
|
|
79
|
-
* that workflow's view, so the session rail leaves such sessions out.
|
|
80
|
-
*/
|
|
81
|
-
const WORKFLOW_STEP_SESSION_PROVENANCE = "workflow";
|
|
82
|
-
/** Provenance of a conversation an external MCP client opened and drives. */
|
|
83
|
-
const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
|
|
84
|
-
/**
|
|
85
|
-
* Provenance of a coordinator: it may message every session in its workspace, and the home coordinator
|
|
86
|
-
* may also message every coordinator and sessions in workspaces without one. Reserved for the host; public create paths refuse it.
|
|
87
|
-
*/
|
|
88
|
-
const COORDINATOR_SESSION_PROVENANCE = "coordinator";
|
|
89
|
-
//#endregion
|
|
90
|
-
export { WORKFLOW_STEP_SESSION_PROVENANCE as a, PO_EDIT_PRESENCE_SERVICE as c, REMOTE_CONVERSATION_SESSION_PROVENANCE as i, parsePoSocketPath as l, PO_SESSION_ATTENTION_EVENT as n, PO_API_ROUTE_PREFIX as o, PO_SESSION_NOTIFICATION_EVENT as r, PO_EDIT_PRESENCE_CONTRACT as s, COORDINATOR_SESSION_PROVENANCE as t, poApiCallerFrom as u };
|
|
70
|
+
export { poApiCallerFrom as a, parsePoSocketPath as i, PO_EDIT_PRESENCE_CONTRACT as n, PO_EDIT_PRESENCE_SERVICE as r, PO_API_ROUTE_PREFIX as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as readTextIfExists } from "./platform-
|
|
3
|
-
import { n as writePrivateAtomicJsonAsync } from "./atomicJson-
|
|
4
|
-
import "./piSettings-
|
|
1
|
+
import { at as nodeHost, rt as createSerialRunner, tt as piAgentDirectory } from "./serverPlugin-CNbUxIzn.js";
|
|
2
|
+
import { s as readTextIfExists } from "./platform-B5tkndf7.js";
|
|
3
|
+
import { n as writePrivateAtomicJsonAsync } from "./atomicJson-BEwCGOHa.js";
|
|
4
|
+
import "./piSettings-Ciixnc7H.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region ../../foundations/po-config/src/services/imageSettings/index.ts
|
|
7
7
|
const IMAGE_SETTINGS_KEY = "images";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./serverPlugin-CNbUxIzn.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as withAbortSignal, Rt as BACKGROUND_CONTEXT, ht as SessionIdentityDoc, it as fileMutationRunner, lt as getOrThrow } from "./serverPlugin-CNbUxIzn.js";
|
|
2
2
|
import { createHash, randomUUID } from "node:crypto";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region ../../core/po-core/src/services/platformFiles/index.ts
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { A as string, O as record, T as object, c as _enum, f as array } from "./schemas-BMBR99Q5.js";
|
|
2
|
+
//#region ../../core/po-core/src/schemas/pluginCatalog.ts
|
|
3
|
+
const pluginTierSchema = _enum([
|
|
4
|
+
"core",
|
|
5
|
+
"foundation",
|
|
6
|
+
"default",
|
|
7
|
+
"minor",
|
|
8
|
+
"plugin"
|
|
9
|
+
]);
|
|
10
|
+
const pluginCatalogLayerSchema = object({
|
|
11
|
+
id: string().min(1),
|
|
12
|
+
name: string().min(1),
|
|
13
|
+
description: string(),
|
|
14
|
+
category: string().min(1),
|
|
15
|
+
icon: string().min(1),
|
|
16
|
+
/** The plugin's own logo, embedded by the release from the package's `poPlugin.logo`. Drawn as an image only. */
|
|
17
|
+
logo: string().regex(/^data:image\/(?:svg\+xml|png);base64,[A-Za-z0-9+/]+=*$/u).optional(),
|
|
18
|
+
packages: array(object({
|
|
19
|
+
name: string().min(1).optional(),
|
|
20
|
+
version: string().min(1).optional(),
|
|
21
|
+
integrity: string().min(1).optional()
|
|
22
|
+
})),
|
|
23
|
+
publisher: string().min(1),
|
|
24
|
+
tier: pluginTierSchema
|
|
25
|
+
});
|
|
26
|
+
object({
|
|
27
|
+
packageTiers: record(string(), pluginTierSchema),
|
|
28
|
+
layers: array(pluginCatalogLayerSchema)
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as String, J as Unknown, M as Check, U as Literal, Y as _Object_, an as requireCurrentRevisionKey, on as requireCurrentScope, z as Union } from "./serverPlugin-CNbUxIzn.js";
|
|
2
2
|
const PoPluginMountSchema = Union([
|
|
3
3
|
_Object_({ scope: Literal("host") }, { additionalProperties: false }),
|
|
4
4
|
_Object_({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as String$1, G as Boolean, U as Literal, X as Optional, Y as _Object_, j as Errors } from "./serverPlugin-CNbUxIzn.js";
|
|
2
2
|
_Object_({
|
|
3
3
|
code: String$1({ minLength: 1 }),
|
|
4
4
|
message: String$1({ minLength: 1 }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
3
|
-
import { n as readPackageConfigurations, t as readMajorModesConfig } from "./majorModes-
|
|
4
|
-
import "./exports-
|
|
5
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-
|
|
6
|
-
import { i as isUnattended, n as gateApproval, o as PO_APPROVAL_SERVICE, s as readPoApproval, t as ApprovalPendingError } from "./approval-
|
|
7
|
-
import { a as PO_BACKGROUND_WORK_SERVICE, l as readPoBackgroundWorkService } from "./backgroundWork-
|
|
8
|
-
import { c as defineRoot, d as defineServerCommand, f as defineServerTool, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-
|
|
9
|
-
import { r as assertCodemodeNamespaceName, t as PO_CODEMODE_CONTRACT } from "./codemode-
|
|
10
|
-
import "./majorModes-
|
|
1
|
+
import { B as String$1, Bt as withAbortSignal, E as composeServerProviderOverrides, Jt as readPoBrowser, Kt as PO_SHELL_SERVICE, M as Check, N as Check$1, P as Errors, Q as PO_SESSION_FILES_SERVICE, Qt as readPoNpm, Rt as BACKGROUND_CONTEXT, Ut as PO_BROWSER_SERVICE, W as Integer, X as Optional, Xt as readPoFs, Y as _Object_, Zt as readPoIsolate, _ as invalidImageReason, in as requirePoServerScope, k as PO_CONFIG_SERVICE, lt as getOrThrow, nn as defineServiceContract, t as defineServerPlugin, tn as PO_SERVER_SCOPE_SERVICE, x as readPoHeadlessHost } from "./serverPlugin-CNbUxIzn.js";
|
|
2
|
+
import "./platform-B5tkndf7.js";
|
|
3
|
+
import { n as readPackageConfigurations, t as readMajorModesConfig } from "./majorModes-CT3VJzoq.js";
|
|
4
|
+
import "./exports-B7DxmM03.js";
|
|
5
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-Bwlovw2c.js";
|
|
6
|
+
import { i as isUnattended, n as gateApproval, o as PO_APPROVAL_SERVICE, s as readPoApproval, t as ApprovalPendingError } from "./approval-B3rZD3vi.js";
|
|
7
|
+
import { a as PO_BACKGROUND_WORK_SERVICE, l as readPoBackgroundWorkService } from "./backgroundWork-BwTUtLj_.js";
|
|
8
|
+
import { c as defineRoot, d as defineServerCommand, f as defineServerTool, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-DJfGtEm7.js";
|
|
9
|
+
import { r as assertCodemodeNamespaceName, t as PO_CODEMODE_CONTRACT } from "./codemode-BC69sRMW.js";
|
|
10
|
+
import "./majorModes-B5hXn8yj.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ../../../node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/meta/meta.mjs
|
|
@@ -1325,6 +1325,7 @@ const MAX_DECLARATION_CHARS = 24e3;
|
|
|
1325
1325
|
const MAX_QUERY_LINES = 40;
|
|
1326
1326
|
const MAX_CONCURRENT_RUNS = 8;
|
|
1327
1327
|
const MAX_RECORDED_CALLS = 50;
|
|
1328
|
+
const UPDATE_INTERVAL_MS = 500;
|
|
1328
1329
|
const MAX_RECORDED_TEXT = 8e3;
|
|
1329
1330
|
const MAX_RECORDED_JSON = 16e3;
|
|
1330
1331
|
const MAX_LISTED_SCRIPTS = 20;
|
|
@@ -1652,7 +1653,7 @@ function createCodemodeTools({ registry, isolate, scripts, npm, fs, signal: life
|
|
|
1652
1653
|
if (domainScripts.length === 0) return [];
|
|
1653
1654
|
return [`Domain scripts: ${domainScripts.slice(0, MAX_LISTED_SCRIPTS).join(", ")}${domainScripts.length > MAX_LISTED_SCRIPTS ? ` and ${domainScripts.length - MAX_LISTED_SCRIPTS} more` : ""}. Use discover({ query }) to see what one does before importing it.`];
|
|
1654
1655
|
};
|
|
1655
|
-
const executeCode = async (parameters, signal, execution, deadlineMs, toolCallId, background = false) => {
|
|
1656
|
+
const executeCode = async (parameters, signal, execution, deadlineMs, toolCallId, background = false, onUpdate) => {
|
|
1656
1657
|
const service = isolate();
|
|
1657
1658
|
if (!service) return text("Code mode is not available on this host.", true);
|
|
1658
1659
|
if (closing || ownerSignal.aborted) return text("Code mode session is disposing.", true);
|
|
@@ -1671,6 +1672,17 @@ function createCodemodeTools({ registry, isolate, scripts, npm, fs, signal: life
|
|
|
1671
1672
|
bytes: 0
|
|
1672
1673
|
};
|
|
1673
1674
|
const output = createOutput();
|
|
1675
|
+
let updateTimer;
|
|
1676
|
+
const scheduleUpdate = () => {
|
|
1677
|
+
if (onUpdate === void 0 || updateTimer !== void 0) return;
|
|
1678
|
+
updateTimer = setTimeout(() => {
|
|
1679
|
+
updateTimer = void 0;
|
|
1680
|
+
if (!runSignal.aborted) onUpdate({
|
|
1681
|
+
content: [],
|
|
1682
|
+
details: { calls: [...calls] }
|
|
1683
|
+
});
|
|
1684
|
+
}, UPDATE_INTERVAL_MS);
|
|
1685
|
+
};
|
|
1674
1686
|
const presence = execution.interaction === "unattended" ? "unattended" : execution.sessionContext?.interaction;
|
|
1675
1687
|
const interaction = isUnattended({
|
|
1676
1688
|
...execution.caller === void 0 ? {} : { caller: execution.caller },
|
|
@@ -1688,6 +1700,7 @@ function createCodemodeTools({ registry, isolate, scripts, npm, fs, signal: life
|
|
|
1688
1700
|
onDispose: (cleanup) => void cleanups.push(cleanup),
|
|
1689
1701
|
record: (call) => {
|
|
1690
1702
|
if (calls.length < MAX_RECORDED_CALLS) calls.push(recordedCall(call, imageBudget));
|
|
1703
|
+
scheduleUpdate();
|
|
1691
1704
|
},
|
|
1692
1705
|
emitImage: (image) => runSignal.aborted ? {
|
|
1693
1706
|
emitted: false,
|
|
@@ -1837,6 +1850,7 @@ function createCodemodeTools({ registry, isolate, scripts, npm, fs, signal: life
|
|
|
1837
1850
|
};
|
|
1838
1851
|
} finally {
|
|
1839
1852
|
controller.abort();
|
|
1853
|
+
clearTimeout(updateTimer);
|
|
1840
1854
|
for (const cleanup of cleanups.reverse()) await Promise.resolve().then(cleanup).catch((error) => {
|
|
1841
1855
|
const message = `Code mode cleanup failed: ${String(error)}`;
|
|
1842
1856
|
output.note(message);
|
|
@@ -1924,8 +1938,8 @@ function createCodemodeTools({ registry, isolate, scripts, npm, fs, signal: life
|
|
|
1924
1938
|
parameters: ExecToolSchema,
|
|
1925
1939
|
promptSnippet: "Run a TypeScript script against live Po objects (browser and other namespaces)",
|
|
1926
1940
|
executionMode: "serial",
|
|
1927
|
-
async execute(toolCallId, parameters, signal,
|
|
1928
|
-
return executeCode(parameters, signal, execution, Math.min(MAX_TIMEOUT_MS$1, Math.max(MIN_TIMEOUT_MS, parameters.timeoutMs ?? DEFAULT_TIMEOUT_MS$1)), toolCallId);
|
|
1941
|
+
async execute(toolCallId, parameters, signal, onUpdate, execution) {
|
|
1942
|
+
return executeCode(parameters, signal, execution, Math.min(MAX_TIMEOUT_MS$1, Math.max(MIN_TIMEOUT_MS, parameters.timeoutMs ?? DEFAULT_TIMEOUT_MS$1)), toolCallId, false, onUpdate);
|
|
1929
1943
|
}
|
|
1930
1944
|
};
|
|
1931
1945
|
const execBackground = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as FileTooLargeError, o as readBoundedFile } from "./platform-
|
|
3
|
-
import { t as readPiImageSettings } from "./piConfig-
|
|
1
|
+
import { $t as requirePoFs, B as String, Bt as withAbortSignal, Gt as PO_FS_SERVICE, Rt as BACKGROUND_CONTEXT, W as Integer, X as Optional, Y as _Object_, t as defineServerPlugin } from "./serverPlugin-CNbUxIzn.js";
|
|
2
|
+
import { i as FileTooLargeError, o as readBoundedFile } from "./platform-B5tkndf7.js";
|
|
3
|
+
import { t as readPiImageSettings } from "./piConfig-Dhp5UqUp.js";
|
|
4
4
|
import { n as formatDimensionNote, r as resizeImage } from "./index.edge-Ts1NG9b4.js";
|
|
5
|
-
import { f as defineServerTool } from "./extensionFile-
|
|
5
|
+
import { f as defineServerTool } from "./extensionFile-DJfGtEm7.js";
|
|
6
6
|
import { a as decodeUtf8, c as formatFileHeader, i as computeFileTag, l as formatTaggedLine, o as displayPath, p as splitLines, r as resolveReadInputPath, t as isWritableFile } from "./index.edge-ClLTmPFz.js";
|
|
7
7
|
import { i as truncateLine, n as formatSize, r as truncateHead, t as DEFAULT_MAX_BYTES } from "./truncate-M3KbFyVj.js";
|
|
8
8
|
//#region ../../default/po-read/src/schemas/readTool.ts
|