@agimon-ai/po-cloudflare 0.0.2-alpha.63 → 0.0.2-alpha.64
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/README.md +13 -0
- package/dist/apiContracts-CNEgbJwj.js +1715 -0
- package/dist/assets/assets/{CodeEditorView-CNdPF2Z8.js → CodeEditorView-D7pzNIoH.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-BpEuH9tc.js → abnfDiagram-WEYOIA3C-CxtSKgjr.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-CO9IcYuJ.js → architecture-WOLXFQ4H-CtnQTAsr.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-B94avglc.js → architectureDiagram-ZHVYKT53-DE2dNllJ.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-Dyj_IG8P.js → blockDiagram-RJAE7QA3-Cw4dFyL6.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-kCCb9Nvu.js → c4Diagram-XDPPPE54-BX8ZmJNh.js} +2 -2
- package/dist/assets/assets/channel-CMUucV-0.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-aabTbQRn.js → chunk-2E7WHVMD-CjyWoAjP.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-BfyoxA4A.js → chunk-4EMNKR2T-BGT3YuPv.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-Cb2-H5PY.js → chunk-55XCU76K-zOmV9K85.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-DF4Vz0iS.js → chunk-7S6XSTFO-CT9Du8QX.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-DYfgedyG.js → chunk-AQDTSKZB-DlFeSSC4.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-ELMVWOH-.js → chunk-DSNLSHJZ-C-ZPBYet.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-BfFyqWkw.js → chunk-HAGFOTED-BoAjQX39.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-brfLLH1k.js → chunk-HNE4Q36P-DIq-EGSJ.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-BPeBTdMj.js → chunk-NQOKRVIF-DCZggr3o.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-Pm1hUsoy.js → chunk-UHW7PFBP-Do_Zzrrp.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-DNrJHI3b.js → chunk-VQ5W62QI-CTQ1DMtJ.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-Bn-i8xPd.js → chunk-WQQL4CDK-Ki6uR6r0.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-CQICwlCf.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-Bm3Y2k41.js → chunk-YZO67HFG-B296g6FE.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-wKlSN4SY.js → chunk-ZAUX2LTX-BpPT7rvX.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-vvsZwzKx.js → chunk-ZCHMQSOR-Di0VGZer.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-B4fv93fc.js → classDiagram-v2-4MYWR3UA-CGj_lJO_.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-CakncvlM.js → cose-bilkent-JH36ORCC-DY0BbQbd.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-BmPuG-jp.js → cynefin-EF2NZ3EQ-CMMUJeFf.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-w05E3pMy.js → cynefinDiagram-WF24UDRP-BbOif1OC.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DtBjSPFH.js → dagre-NK4GIZVX-CphjGdnN.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-BFSVYioV.js → diagram-CBK3MWTC-DpGUyRf7.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-BDvStF0J.js → diagram-I5XIIV2D-DcYA8tlL.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DARMBHRQ.js → diagram-ODIL2UCW-ChPOrrmO.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-Pj4fyqwM.js → diagram-PFBEJUXE-BfPiSQ9L.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-BaKg3wpn.js → diagram-RJA3I4VV-rLXVMix5.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CefzxlNs.js → diagram-TYUNFSNR-BTmEjrYt.js} +2 -2
- package/dist/assets/assets/{dist-DEWrC__B.js → dist-1L_Ajly9.js} +2 -2
- package/dist/assets/assets/{dist-Cghv4o0_.js → dist-48390Dmg.js} +2 -2
- package/dist/assets/assets/{dist-CHFfGcfR.js → dist-BAD8d1kv.js} +2 -2
- package/dist/assets/assets/{dist-B9ZDItnO.js → dist-BJLZuu6S.js} +2 -2
- package/dist/assets/assets/{dist-EAEtfW9R.js → dist-BlSnUUI6.js} +2 -2
- package/dist/assets/assets/{dist-D5maITN-.js → dist-CobUSto6.js} +2 -2
- package/dist/assets/assets/{dist-CxVXLY-8.js → dist-DAGWxegY.js} +2 -2
- package/dist/assets/assets/{dist-CGCZs-fG.js → dist-DLPWqzfx.js} +2 -2
- package/dist/assets/assets/{dist-DtehQ6Vh.js → dist-QjSb6UwP.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-YewZYnYk.js → ebnfDiagram-V4P3TTPT-BN1myPAM.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-dVpXxU0t.js → elk-QONTBCTQ-C4yJXrim.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-DppuSwGu.js → erDiagram-KYQIGQAA-BLGAHUjY.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-CjOlr5k9.js → eventmodeling-K75KTNOO-BNsbrLPW.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-GEvUvJMe.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-BiP9tCoR.js → ganttDiagram-R7GPNTJY-Dtt1cLvU.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-D_37KmzW.js → gitGraph-VSP46ZUC-BB3jyory.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BpPyCOnT.js → gitGraphDiagram-PDYL7XHY-5dxhMcQJ.js} +2 -2
- package/dist/assets/assets/index-BEh1IFrK.js +256 -0
- package/dist/assets/assets/{info-OHQRW6UA-BzB_vPCs.js → info-OHQRW6UA-B6a4Z_NG.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-H2O0q8Pc.js → infoDiagram-MVDRKAX5-D4WPnECO.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CxgN92Oj.js → ishikawaDiagram-HPEHV2GE-7qHvZhsy.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-Cgi2OOJn.js → journeyDiagram-BOSHW7O7-CX3Bn1wZ.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DfNFv9yJ.js → kanban-definition-FNSA4HC5-DhEPG70e.js} +2 -2
- package/dist/assets/assets/{line-BsuG8Uxt.js → line-ChDBcVMC.js} +2 -2
- package/dist/assets/assets/{linear-5ygNOtpj.js → linear-BnYwLNuy.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-BQKUlQNj.js → mermaid-parser.core-CqVdBIHT.js} +4 -4
- package/dist/assets/assets/{mermaid.core-mIsoHdG8.js → mermaid.core-q29P4JOO.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-CwRI3Joj.js → mindmap-definition-6OY57UG3-C74KuyjY.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DA3pnTHc.js → packet-JDAUHWVQ-B4LCADWh.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-CDCKGOxK.js → pegDiagram-ECIUJNBX-Cv2MJ170.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-BLhJFhYu.js → pie-XZMESJXO-DotbpRpk.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-DYR-R-dX.js → pieDiagram-GNMPY74T-CChjMnDW.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-Bc1eK1F-.js → quadrantDiagram-D57K4MC3-DEYttxps.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-EtUBQBSs.js → radar-ABXABTNO-4s5FAd4E.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-B21qPap-.js → railroad-I3PHUGI6-DBTlhGxt.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-BIiwJieY.js → railroad-abnf-LNEFI6M7-D6ziSuiX.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-DqZK9K0J.js → railroad-ebnf-DWYD2UWJ-CqEIKDB8.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-CIQgGVCU.js → railroad-peg-JR7BVNR7-CJtfKFNH.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BD_lzGk4.js → railroadDiagram-Y72NRBL7-4mBAJ-Jl.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-aDbnnoHS.js → requirementDiagram-EQYSW5RA-BEhHi0QF.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DDdGARNy.js → sankeyDiagram-SY24JHO5-nj_cSwlP.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BIH_jN1c.js → sequenceDiagram-BLEHNHQU-DNY4na4z.js} +2 -2
- package/dist/assets/assets/{src-BaA7Sf5p.js → src-WiWJj6f2.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-C-dVVPfs.js → stateDiagram-v2-A6IESKWZ-BB9jYF4B.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-Bw5IOyh7.js → swimlanes-B3ENRKFQ-D87jJRda.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-DehW4Jm2.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-By_uqQTe.js → timeline-definition-JXYKGLGB-C2a6EPko.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-BZU7wRHU.js → treeView-D4JQ5SDB-BdB3JJaH.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-N8z3Rl5u.js → treemap-SAJKECNS-BJjjYPG9.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-CuUha2nb.js → usecaseDiagram-WPOLBNNX-DlLWyckj.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-g3YaAylz.js → vennDiagram-Q3Y3IDCW-D6fIfwd9.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-BvmZvcdT.js → wardley-7MLQ67FV-CSM_VWdu.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CvNsC8vq.js → wardleyDiagram-IVAIDKWA-CTsqqv0l.js} +2 -2
- package/dist/assets/assets/{webpack-mxF5RTCn.js → webpack-Dliwyah1.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-vCSk0HHw.js → xychartDiagram-4URNHDU4-D49cqPPi.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +1 -1
- package/dist/assets/plugins/assets/base-BsvoTtxC.css +2 -0
- package/dist/assets/plugins/chunks/po-web-runtime-B5XS1Vkn.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.09e72f36-vdtrYSJE.js +2 -0
- package/dist/assets/plugins/slots/artifacts.50b639bb-Difr6PJG.js +1 -0
- package/dist/assets/plugins/slots/author.fe075392-1ypXiPa9.js +93 -0
- package/dist/assets/plugins/slots/{autocompact.f08b6833-BLrybOV_.js → autocompact.6f428144-Da_u6U6S.js} +1 -1
- package/dist/assets/plugins/slots/backdrop-bamboo.6e4c928d-BJmw6J1H.js +1 -0
- package/dist/assets/plugins/slots/browse.fa1f1a50-DVXthO2Y.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.75108f21-CZVTaRlo.js +7 -0
- package/dist/assets/plugins/slots/calendar.d8b70190-It_2gT_o.js +2 -0
- package/dist/assets/plugins/slots/codemode.c58fb583--R-ayMy6.js +11 -0
- package/dist/assets/plugins/slots/domain.753f9f92-CTWPJ3K3.js +1 -0
- package/dist/assets/plugins/slots/edit.804fec90-CnhEiTi_.js +7 -0
- package/dist/assets/plugins/slots/files.66ffc636-bPZ6eGF5.js +2 -0
- package/dist/assets/plugins/slots/goal.45dffa01-hcQ21LSV.js +1 -0
- package/dist/assets/plugins/slots/grep.98262cff-zdlPKmsW.js +1 -0
- package/dist/assets/plugins/slots/help.5fbd20f7-DmUDRYKt.js +3 -0
- package/dist/assets/plugins/slots/log.cb964209-j2FTMopd.js +4 -0
- package/dist/assets/plugins/slots/mcp.82cc1ff5-DJAarFoV.js +55 -0
- package/dist/assets/plugins/slots/plan.3852ba52-BAjhNPLw.js +3 -0
- package/dist/assets/plugins/slots/{profile.1b4aeee4-NbT6f8xl.js → profile.ab16dcec-DcqHKZZu.js} +1 -1
- package/dist/assets/plugins/slots/{prompts.a5509377-D8btnu7Y.js → prompts.ae48c07a-DSpV7n6y.js} +21 -21
- package/dist/assets/plugins/slots/read.4560591a-B3vKeI4d.js +1 -0
- package/dist/assets/plugins/slots/runner.6e494d59-D7Z9dlE2.js +9 -0
- package/dist/assets/plugins/slots/scaffold.d87a6ee0-Cvh_qC8k.js +1 -0
- package/dist/assets/plugins/slots/sessions.6f47cb4c-feejch_0.js +1 -0
- package/dist/assets/plugins/slots/skill.62a0a1b3-DLuQV0P-.js +4 -0
- package/dist/assets/plugins/slots/space.65a27e5a-iOxXji2v.js +1 -0
- package/dist/assets/plugins/slots/subagents.8bb9992c-ChTnezHO.js +7 -0
- package/dist/assets/plugins/slots/template-advanced.59f3f98a-VbYOjCWb.js +1 -0
- package/dist/assets/plugins/slots/template-desktop.0f0b8491-D_LDs6R3.js +7 -0
- package/dist/assets/plugins/slots/template-elegant.0e3b0acf-C_Aw5CVD.js +1 -0
- package/dist/assets/plugins/slots/vault.3cbfcdc3-BLLijqYx.js +1 -0
- package/dist/assets/plugins/slots/voice.a952113d-0N-vCkeV.js +1 -0
- package/dist/assets/plugins/slots/web-search.65013836-DSo04wY4.js +1 -0
- package/dist/assets/plugins/slots/workflows.cbc5c5c0-pDf69-fN.js +16 -0
- package/dist/{index.edge-B0YYwNF0.js → index.edge-CSOYqxQ2.js} +2 -1
- package/dist/{server-CCqvf6yh.js → server-BKJC6UYx.js} +1 -2
- package/dist/{server-1LZR9ZRX.js → server-BOiCHhpU.js} +1 -1
- package/dist/{server-D97tm0wK.js → server-BQxIPMSa.js} +2 -3
- package/dist/{server-DhuzpcVR.js → server-BVW5OV5j.js} +1 -1
- package/dist/{server-3HPXqwI6.js → server-C8gWYGFl.js} +1 -1
- package/dist/{server-rIQkmCUx.js → server-CFLUZq0Z.js} +1 -1
- package/dist/{server-DSe28Ebi.js → server-CGUm_4c6.js} +1 -1
- package/dist/{server-Nb7tgHv2.js → server-CjL_6u1x.js} +1 -1
- package/dist/{server-DNtprCHS.js → server-CkBvJEiI.js} +2 -2
- package/dist/{server-COD1HYtb.js → server-CyiKrR7j.js} +1 -1
- package/dist/{server-38vPt49q.js → server-DBN_CZxx.js} +1 -1
- package/dist/{server-DeBXj3re.js → server-DKFXelb3.js} +2 -2
- package/dist/{server-B7ow4_os.js → server-DOI9mJ00.js} +1 -1
- package/dist/{server-bO3F28gq.js → server-D_v7Nt6L.js} +1 -1
- package/dist/{server-D_0XHzYJ.js → server-DjBZj5Be.js} +1 -1
- package/dist/{server-SR4ElcIH.js → server-DpuKPbyY.js} +1 -1
- package/dist/{server-CqsGbX44.js → server-DrbaM9P2.js} +2 -3
- package/dist/{server-KzfsJGF8.js → server-DykrhovZ.js} +1 -1
- package/dist/{server-CR3v0zcN.js → server-EPw6De2W.js} +2 -2
- package/dist/{server-B_g35a-5.js → server-FD4p5fz5.js} +1 -1
- package/dist/{server-D1_V9Vmd.js → server-XTBK1WrD.js} +1 -1
- package/dist/server-c93sCvo3.js +466 -0
- package/dist/{server-B7FH93rx.js → server-g9_wMnMD.js} +1 -1
- package/dist/worker.js +267 -122
- package/package.json +48 -43
- package/dist/apiContracts-C5xYJZfw.js +0 -561
- package/dist/assets/assets/channel-BDLbYxu3.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-D9IZWvba.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-9R5zxYVV.js +0 -1
- package/dist/assets/assets/index-Dus9Cw5p.js +0 -256
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-coH9laQJ.js +0 -9
- package/dist/assets/plugins/assets/base-ByEdw6HI.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-DZvTbTGl.js +0 -1
- package/dist/assets/plugins/slots/approval.72ae703a-MJpYBBW3.js +0 -2
- package/dist/assets/plugins/slots/artifacts.77a5ce89-BqGpkxIz.js +0 -1
- package/dist/assets/plugins/slots/author.1714bd0b-vpvWaIsO.js +0 -93
- package/dist/assets/plugins/slots/backdrop-bamboo.8ee8a555-Djii7v-K.js +0 -1
- package/dist/assets/plugins/slots/browse.59782354-BCYYZIGg.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.abc3edcc-QrPdFMQO.js +0 -7
- package/dist/assets/plugins/slots/calendar.d83ca386-BsY3VUmV.js +0 -2
- package/dist/assets/plugins/slots/codemode.c68822dc-BUQr5ZVr.js +0 -11
- package/dist/assets/plugins/slots/domain.d3fc60b5-CG6iqO2H.js +0 -1
- package/dist/assets/plugins/slots/edit.2aa43041-Bkj7M18J.js +0 -7
- package/dist/assets/plugins/slots/files.c1e584ee-CxGGfZ7q.js +0 -2
- package/dist/assets/plugins/slots/goal.0d58b5cd-B93fwx0M.js +0 -1
- package/dist/assets/plugins/slots/grep.b067b8cb-BH487fbj.js +0 -1
- package/dist/assets/plugins/slots/help.e5f29767-Cc-1UAi2.js +0 -3
- package/dist/assets/plugins/slots/log.24faf8a0-BmKGSUhs.js +0 -4
- package/dist/assets/plugins/slots/mcp.a6805ffa-B1pF9U1U.js +0 -55
- package/dist/assets/plugins/slots/plan.cf1a06d8-Bp6s-HU-.js +0 -3
- package/dist/assets/plugins/slots/read.a43eeb4a-D8J587IR.js +0 -1
- package/dist/assets/plugins/slots/runner.03b699da-kZzobG85.js +0 -9
- package/dist/assets/plugins/slots/scaffold.f3763f9c-DSiG8h1F.js +0 -1
- package/dist/assets/plugins/slots/sessions.dc7ce5f8-Pqp4CAW1.js +0 -1
- package/dist/assets/plugins/slots/skill.2b6ba429-BPCu7SmU.js +0 -4
- package/dist/assets/plugins/slots/space.a8901278-DmJaW-f6.js +0 -1
- package/dist/assets/plugins/slots/subagents.6f67a972-9xrGKpLe.js +0 -7
- package/dist/assets/plugins/slots/vault.593b32bd-BOhqzgok.js +0 -1
- package/dist/assets/plugins/slots/voice.fa8f3d31-PQ3c795m.js +0 -1
- package/dist/assets/plugins/slots/workflows.41d5eec7-DACCrvVZ.js +0 -16
- package/dist/presets-JqH9Fwy9.js +0 -1
- package/dist/sessionApiContracts-BDVrjHG1.js +0 -1157
package/dist/worker.js
CHANGED
|
@@ -36,6 +36,7 @@ import { A as optional, B as safeParse, C as json$3, E as looseObject, Et as val
|
|
|
36
36
|
import { f as SCAFFOLD_TENANCY_CONTRACT } from "./scaffoldRegistry-DelW098Y.js";
|
|
37
37
|
import { n as datetime, t as date$2 } from "./iso-BGFmgtky.js";
|
|
38
38
|
import { r as string$1, t as boolean$1 } from "./coerce-DM9YrILC.js";
|
|
39
|
+
import { a as writePreset, i as withSettingsWrite, r as readPresetsView } from "./presetConfig-DN-SWudD.js";
|
|
39
40
|
import { n as isTimeZone, r as personTimeZoneLine, t as PO_PERSON_TIME_ZONE_SERVICE } from "./personTimeZone-CUGezo0V.js";
|
|
40
41
|
import "./exports-HVvfn0Nl.js";
|
|
41
42
|
import { d as poClientMetadataFrom, l as isPoClientToken, n as MANUAL_TRANSCRIPTION_MAX_AUDIO_BYTES, o as ManualTranscriptionError, r as MANUAL_TRANSCRIPTION_MAX_DURATION_MS, s as PO_CLIENT_METADATA_HEADER, u as normalizeClientDeviceName } from "./manualTranscription-DN56fzgj.js";
|
|
@@ -43,7 +44,7 @@ import { i as REMOTE_CONVERSATION_SESSION_PROVENANCE, n as PO_SESSION_ATTENTION_
|
|
|
43
44
|
import "./pluginProtocol-DkpFxyrO.js";
|
|
44
45
|
import { n as gateApproval, o as PO_APPROVAL_SERVICE, r as isApprovalUnavailable, s as readPoApproval } from "./approval-C-hg3U7A.js";
|
|
45
46
|
import { a as PO_CHILD_SESSION_MCP_TOOL_SERVICE, n as PO_CHILD_SESSION_HOOKS_SERVICE, o as PO_CHILD_SESSION_SERVICE, r as PO_CHILD_SESSION_HOOK_REGISTRY_SERVICE, t as PO_CHILD_INPUT_CUSTOM_TYPE } from "./childSession-BrDCrNtL.js";
|
|
46
|
-
import { a as
|
|
47
|
+
import { a as PoThreadContract, c as PoHubRevisionsContract, i as SessionServiceStateSchema, o as PoHubAccessContract, r as SessionMethodSchemas, s as PoHubContract, t as PluginInstallRequestSchema, u as PoChannelsContract } from "./apiContracts-CNEgbJwj.js";
|
|
47
48
|
import { t as OperationCancelledError } from "./telemetry-CrTcxeA5.js";
|
|
48
49
|
import { a as createAssistantMessageEventStream } from "./diagnostics-C43OHsIc.js";
|
|
49
50
|
import { t as getProviderEnvValue } from "./provider-env-C6KlbHmf.js";
|
|
@@ -113805,6 +113806,47 @@ function scaffoldTenancy(shared) {
|
|
|
113805
113806
|
};
|
|
113806
113807
|
} };
|
|
113807
113808
|
}
|
|
113809
|
+
//#endregion
|
|
113810
|
+
//#region virtual:po-server-packages
|
|
113811
|
+
var virtual_po_server_packages_default = {
|
|
113812
|
+
"@agimon-ai/po-approval": () => import("./server-BKJC6UYx.js"),
|
|
113813
|
+
"@agimon-ai/po-artifact": () => import("./server-CFLUZq0Z.js"),
|
|
113814
|
+
"@agimon-ai/po-autocompact": () => import("./server-DqjL5T_z.js"),
|
|
113815
|
+
"@agimon-ai/po-autostop": () => import("./server-CLvrMQ5J.js"),
|
|
113816
|
+
"@agimon-ai/po-browse": async () => ({ default: (await Promise.resolve().then(() => edge_exports)).edgeBrowsePlugin }),
|
|
113817
|
+
"@agimon-ai/po-cache": () => import("./server-D_2F4rAG.js"),
|
|
113818
|
+
"@agimon-ai/po-calendar": () => import("./server-DBN_CZxx.js"),
|
|
113819
|
+
"@agimon-ai/po-codemode": () => import("./server-CkBvJEiI.js"),
|
|
113820
|
+
"@agimon-ai/po-config": () => import("./server-C8gWYGFl.js"),
|
|
113821
|
+
"@agimon-ai/po-db": () => import("./server-BHVCO9H4.js"),
|
|
113822
|
+
"@agimon-ai/po-domain": () => import("./server-CjL_6u1x.js"),
|
|
113823
|
+
"@agimon-ai/po-edit": () => import("./server-wPWoCCIY.js"),
|
|
113824
|
+
"@agimon-ai/po-file-edit": () => import("./server-Cn-yGQ3q.js"),
|
|
113825
|
+
"@agimon-ai/po-scaffold": () => import("./server-D_v7Nt6L.js"),
|
|
113826
|
+
"@agimon-ai/po-grep": () => import("./server-DSSW_piy.js"),
|
|
113827
|
+
"@agimon-ai/po-log": () => import("./server-BOiCHhpU.js"),
|
|
113828
|
+
"@agimon-ai/po-preset": () => import("./server-DKFXelb3.js"),
|
|
113829
|
+
"@agimon-ai/po-mcp": () => import("./server-DykrhovZ.js"),
|
|
113830
|
+
"@agimon-ai/po-mode": () => import("./server-DojoY0if.js"),
|
|
113831
|
+
"@agimon-ai/po-notification": () => import("./server-fpGCIeGQ.js"),
|
|
113832
|
+
"@agimon-ai/po-profile": () => import("./server-BQxIPMSa.js"),
|
|
113833
|
+
"@agimon-ai/po-prompt": () => import("./server-g9_wMnMD.js"),
|
|
113834
|
+
"@agimon-ai/po-read": () => import("./server-BkYCvszC.js"),
|
|
113835
|
+
"@agimon-ai/po-runner": () => import("./server-CyiKrR7j.js"),
|
|
113836
|
+
"@agimon-ai/po-session": () => import("./server-BVW5OV5j.js"),
|
|
113837
|
+
"@agimon-ai/po-skill": () => import("./server-XTBK1WrD.js"),
|
|
113838
|
+
"@agimon-ai/po-space": () => import("./server-cu7bCvZq.js"),
|
|
113839
|
+
"@agimon-ai/po-team": () => import("./server-EPw6De2W.js"),
|
|
113840
|
+
"@agimon-ai/po-ui": () => import("./server-CEM5dJWl.js"),
|
|
113841
|
+
"@agimon-ai/po-vault": () => import("./server-CNUO0ZAh.js"),
|
|
113842
|
+
"@agimon-ai/po-help": () => import("./server-DrbaM9P2.js"),
|
|
113843
|
+
"@agimon-ai/po-goal": () => import("./server-CGUm_4c6.js"),
|
|
113844
|
+
"@agimon-ai/po-plan": () => import("./server-DpuKPbyY.js"),
|
|
113845
|
+
"@agimon-ai/po-author": () => import("./server-DOI9mJ00.js"),
|
|
113846
|
+
"@agimon-ai/po-voice": () => import("./server-DjBZj5Be.js"),
|
|
113847
|
+
"@agimon-ai/po-workflow": () => import("./server-FD4p5fz5.js"),
|
|
113848
|
+
"@agimon-ai/po-web-search": () => import("./server-c93sCvo3.js")
|
|
113849
|
+
};
|
|
113808
113850
|
const COORDINATOR_START_WINDOW_MS = 36e5;
|
|
113809
113851
|
function assertCoordinatorStartBudget(count) {
|
|
113810
113852
|
if (count >= 5) throw new Error(`A coordinator can start at most 5 sessions an hour.`);
|
|
@@ -113948,87 +113990,7 @@ function cloudSessionPlugin(base, remote, parentTools = []) {
|
|
|
113948
113990
|
};
|
|
113949
113991
|
}
|
|
113950
113992
|
//#endregion
|
|
113951
|
-
//#region src/composition/composedPackages.ts
|
|
113952
|
-
/** Packages the session object installs; the Worker also bundles their prompts under `/bundle`. */
|
|
113953
|
-
const COMPOSED_PACKAGES = [
|
|
113954
|
-
"@agimon-ai/po-approval",
|
|
113955
|
-
"@agimon-ai/po-artifact",
|
|
113956
|
-
"@agimon-ai/po-autocompact",
|
|
113957
|
-
"@agimon-ai/po-autostop",
|
|
113958
|
-
"@agimon-ai/po-browse",
|
|
113959
|
-
"@agimon-ai/po-cache",
|
|
113960
|
-
"@agimon-ai/po-calendar",
|
|
113961
|
-
"@agimon-ai/po-codemode",
|
|
113962
|
-
"@agimon-ai/po-config",
|
|
113963
|
-
"@agimon-ai/po-db",
|
|
113964
|
-
"@agimon-ai/po-domain",
|
|
113965
|
-
"@agimon-ai/po-edit",
|
|
113966
|
-
"@agimon-ai/po-file-edit",
|
|
113967
|
-
"@agimon-ai/po-scaffold",
|
|
113968
|
-
"@agimon-ai/po-grep",
|
|
113969
|
-
"@agimon-ai/po-log",
|
|
113970
|
-
"@agimon-ai/po-preset",
|
|
113971
|
-
"@agimon-ai/po-mcp",
|
|
113972
|
-
"@agimon-ai/po-mode",
|
|
113973
|
-
"@agimon-ai/po-notification",
|
|
113974
|
-
"@agimon-ai/po-profile",
|
|
113975
|
-
"@agimon-ai/po-prompt",
|
|
113976
|
-
"@agimon-ai/po-read",
|
|
113977
|
-
"@agimon-ai/po-runner",
|
|
113978
|
-
"@agimon-ai/po-session",
|
|
113979
|
-
"@agimon-ai/po-skill",
|
|
113980
|
-
"@agimon-ai/po-space",
|
|
113981
|
-
"@agimon-ai/po-team",
|
|
113982
|
-
"@agimon-ai/po-ui",
|
|
113983
|
-
"@agimon-ai/po-vault",
|
|
113984
|
-
"@agimon-ai/po-help",
|
|
113985
|
-
"@agimon-ai/po-goal",
|
|
113986
|
-
"@agimon-ai/po-plan",
|
|
113987
|
-
"@agimon-ai/po-author",
|
|
113988
|
-
"@agimon-ai/po-voice",
|
|
113989
|
-
"@agimon-ai/po-workflow"
|
|
113990
|
-
];
|
|
113991
|
-
//#endregion
|
|
113992
113993
|
//#region src/composition/serverPackages.ts
|
|
113993
|
-
/** Static imports, so the Worker build bundles each package's source. */
|
|
113994
|
-
const SERVER_PACKAGES = {
|
|
113995
|
-
"@agimon-ai/po-approval": () => import("./server-CCqvf6yh.js"),
|
|
113996
|
-
"@agimon-ai/po-artifact": () => import("./server-rIQkmCUx.js"),
|
|
113997
|
-
"@agimon-ai/po-autocompact": () => import("./server-DqjL5T_z.js"),
|
|
113998
|
-
"@agimon-ai/po-autostop": () => import("./server-CLvrMQ5J.js"),
|
|
113999
|
-
"@agimon-ai/po-cache": () => import("./server-D_2F4rAG.js"),
|
|
114000
|
-
"@agimon-ai/po-calendar": () => import("./server-38vPt49q.js"),
|
|
114001
|
-
"@agimon-ai/po-codemode": () => import("./server-DNtprCHS.js"),
|
|
114002
|
-
"@agimon-ai/po-config": () => import("./server-3HPXqwI6.js"),
|
|
114003
|
-
"@agimon-ai/po-browse": async () => ({ default: (await Promise.resolve().then(() => edge_exports)).edgeBrowsePlugin }),
|
|
114004
|
-
"@agimon-ai/po-db": () => import("./server-BHVCO9H4.js"),
|
|
114005
|
-
"@agimon-ai/po-domain": () => import("./server-Nb7tgHv2.js"),
|
|
114006
|
-
"@agimon-ai/po-edit": () => import("./server-wPWoCCIY.js"),
|
|
114007
|
-
"@agimon-ai/po-file-edit": () => import("./server-Cn-yGQ3q.js"),
|
|
114008
|
-
"@agimon-ai/po-grep": () => import("./server-DSSW_piy.js"),
|
|
114009
|
-
"@agimon-ai/po-scaffold": () => import("./server-bO3F28gq.js"),
|
|
114010
|
-
"@agimon-ai/po-log": () => import("./server-1LZR9ZRX.js"),
|
|
114011
|
-
"@agimon-ai/po-preset": () => import("./server-DeBXj3re.js"),
|
|
114012
|
-
"@agimon-ai/po-mcp": () => import("./server-KzfsJGF8.js"),
|
|
114013
|
-
"@agimon-ai/po-mode": () => import("./server-DojoY0if.js"),
|
|
114014
|
-
"@agimon-ai/po-notification": () => import("./server-fpGCIeGQ.js"),
|
|
114015
|
-
"@agimon-ai/po-profile": () => import("./server-D97tm0wK.js"),
|
|
114016
|
-
"@agimon-ai/po-prompt": () => import("./server-B7FH93rx.js"),
|
|
114017
|
-
"@agimon-ai/po-read": () => import("./server-BkYCvszC.js"),
|
|
114018
|
-
"@agimon-ai/po-runner": () => import("./server-COD1HYtb.js"),
|
|
114019
|
-
"@agimon-ai/po-session": () => import("./server-DhuzpcVR.js"),
|
|
114020
|
-
"@agimon-ai/po-skill": () => import("./server-D1_V9Vmd.js"),
|
|
114021
|
-
"@agimon-ai/po-space": () => import("./server-cu7bCvZq.js"),
|
|
114022
|
-
"@agimon-ai/po-team": () => import("./server-CR3v0zcN.js"),
|
|
114023
|
-
"@agimon-ai/po-ui": () => import("./server-CEM5dJWl.js"),
|
|
114024
|
-
"@agimon-ai/po-vault": () => import("./server-CNUO0ZAh.js"),
|
|
114025
|
-
"@agimon-ai/po-help": () => import("./server-CqsGbX44.js"),
|
|
114026
|
-
"@agimon-ai/po-goal": () => import("./server-DSe28Ebi.js"),
|
|
114027
|
-
"@agimon-ai/po-plan": () => import("./server-SR4ElcIH.js"),
|
|
114028
|
-
"@agimon-ai/po-author": () => import("./server-B7ow4_os.js"),
|
|
114029
|
-
"@agimon-ai/po-voice": () => import("./server-D_0XHzYJ.js"),
|
|
114030
|
-
"@agimon-ai/po-workflow": () => import("./server-B_g35a-5.js")
|
|
114031
|
-
};
|
|
114032
113994
|
const SESSION = ["session"];
|
|
114033
113995
|
const GLOBAL_AND_SESSION = ["host", "session"];
|
|
114034
113996
|
/** Packages whose global providers, channels or APIs also belong to the object's one-session global host. */
|
|
@@ -114050,7 +114012,7 @@ const GLOBAL_PACKAGES = /* @__PURE__ */ new Set([
|
|
|
114050
114012
|
* The composed packages as bundle entries. The session host also takes them as its selection
|
|
114051
114013
|
* candidates, which is how it knows each package's owners.
|
|
114052
114014
|
*/
|
|
114053
|
-
const EDGE_PACKAGE_ENTRIES =
|
|
114015
|
+
const EDGE_PACKAGE_ENTRIES = Object.keys(virtual_po_server_packages_default).map((packageName) => ({
|
|
114054
114016
|
packageName,
|
|
114055
114017
|
entry: "./generated/server.ts",
|
|
114056
114018
|
module: packageName,
|
|
@@ -114096,8 +114058,8 @@ async function loadEdgePackages(scope, onNotice, entries = edgePackageEntries(),
|
|
|
114096
114058
|
activeLayers: [],
|
|
114097
114059
|
onNotice,
|
|
114098
114060
|
importer: async (url) => {
|
|
114099
|
-
if (url === "@agimon-ai/po-session") return { default: cloudSessionPlugin((await import("./server-
|
|
114100
|
-
return
|
|
114061
|
+
if (url === "@agimon-ai/po-session") return { default: cloudSessionPlugin((await import("./server-BVW5OV5j.js")).default, team, parentTools) };
|
|
114062
|
+
return virtual_po_server_packages_default[url]();
|
|
114101
114063
|
}
|
|
114102
114064
|
});
|
|
114103
114065
|
return [...packages];
|
|
@@ -115381,7 +115343,8 @@ var PoSessionObject = class extends withWorkspaceContainer(class extends Durable
|
|
|
115381
115343
|
subagent: subagent !== void 0
|
|
115382
115344
|
}));
|
|
115383
115345
|
const voiceEnabled = cloudVoiceEnabled(this.env);
|
|
115384
|
-
const
|
|
115346
|
+
const inactivePlugins = new Set(network ? [] : await owner.inactivePlugins());
|
|
115347
|
+
const entries = edgePackageEntries(voiceEnabled, browserSession !== void 0).filter((entry) => !inactivePlugins.has(entry.packageName) && (!subagent || entry.packageName !== "@agimon-ai/po-calendar"));
|
|
115385
115348
|
const voiceAi = voiceEnabled ? this.env.AI : void 0;
|
|
115386
115349
|
const base = createHeadlessSessionManager();
|
|
115387
115350
|
const apis = /* @__PURE__ */ new Map();
|
|
@@ -116822,6 +116785,164 @@ function createClientDeviceRegistry(storage, now = Date.now) {
|
|
|
116822
116785
|
};
|
|
116823
116786
|
}
|
|
116824
116787
|
//#endregion
|
|
116788
|
+
//#region virtual:po-plugin-catalog
|
|
116789
|
+
var virtual_po_plugin_catalog_default = {
|
|
116790
|
+
"layers": [
|
|
116791
|
+
{
|
|
116792
|
+
"id": "team",
|
|
116793
|
+
"name": "Team",
|
|
116794
|
+
"description": "Delegate work to a team of agents.",
|
|
116795
|
+
"category": "productivity",
|
|
116796
|
+
"icon": "users",
|
|
116797
|
+
"publisher": "Po",
|
|
116798
|
+
"tier": "plugin",
|
|
116799
|
+
"packages": ["@agimon-ai/po-team"],
|
|
116800
|
+
"installed": true,
|
|
116801
|
+
"installable": false
|
|
116802
|
+
},
|
|
116803
|
+
{
|
|
116804
|
+
"id": "browser",
|
|
116805
|
+
"name": "Browser",
|
|
116806
|
+
"description": "Browse and interact with websites.",
|
|
116807
|
+
"category": "productivity",
|
|
116808
|
+
"icon": "globe",
|
|
116809
|
+
"publisher": "Po",
|
|
116810
|
+
"tier": "plugin",
|
|
116811
|
+
"packages": ["@agimon-ai/po-browse"],
|
|
116812
|
+
"installed": true,
|
|
116813
|
+
"installable": false
|
|
116814
|
+
},
|
|
116815
|
+
{
|
|
116816
|
+
"id": "calendar",
|
|
116817
|
+
"name": "Schedule",
|
|
116818
|
+
"description": "Manage schedules and events.",
|
|
116819
|
+
"category": "productivity",
|
|
116820
|
+
"icon": "calendar",
|
|
116821
|
+
"publisher": "Po",
|
|
116822
|
+
"tier": "plugin",
|
|
116823
|
+
"packages": ["@agimon-ai/po-calendar"],
|
|
116824
|
+
"installed": true,
|
|
116825
|
+
"installable": false
|
|
116826
|
+
},
|
|
116827
|
+
{
|
|
116828
|
+
"id": "template",
|
|
116829
|
+
"name": "Layouts",
|
|
116830
|
+
"description": "The ways Po's screen can be arranged, and its background.",
|
|
116831
|
+
"category": "other",
|
|
116832
|
+
"icon": "palette",
|
|
116833
|
+
"publisher": "Po",
|
|
116834
|
+
"tier": "plugin",
|
|
116835
|
+
"packages": [
|
|
116836
|
+
"@agimon-ai/po-backdrop-bamboo",
|
|
116837
|
+
"@agimon-ai/po-template-advanced",
|
|
116838
|
+
"@agimon-ai/po-template-desktop",
|
|
116839
|
+
"@agimon-ai/po-template-elegant"
|
|
116840
|
+
],
|
|
116841
|
+
"installed": true,
|
|
116842
|
+
"installable": false
|
|
116843
|
+
},
|
|
116844
|
+
{
|
|
116845
|
+
"id": "web-search",
|
|
116846
|
+
"name": "Web search",
|
|
116847
|
+
"description": "Look things up on the web and get answers with sources.",
|
|
116848
|
+
"category": "productivity",
|
|
116849
|
+
"icon": "search",
|
|
116850
|
+
"publisher": "Po",
|
|
116851
|
+
"tier": "plugin",
|
|
116852
|
+
"packages": ["@agimon-ai/po-web-search"],
|
|
116853
|
+
"installed": true,
|
|
116854
|
+
"installable": false
|
|
116855
|
+
},
|
|
116856
|
+
{
|
|
116857
|
+
"id": "workflow",
|
|
116858
|
+
"name": "Workflows",
|
|
116859
|
+
"description": "Run multi-step jobs that keep going in the background.",
|
|
116860
|
+
"category": "productivity",
|
|
116861
|
+
"icon": "puzzle",
|
|
116862
|
+
"publisher": "Po",
|
|
116863
|
+
"tier": "plugin",
|
|
116864
|
+
"packages": ["@agimon-ai/po-workflow"],
|
|
116865
|
+
"installed": true,
|
|
116866
|
+
"installable": false
|
|
116867
|
+
}
|
|
116868
|
+
],
|
|
116869
|
+
"supportedScopes": ["host"]
|
|
116870
|
+
};
|
|
116871
|
+
//#endregion
|
|
116872
|
+
//#region src/composition/pluginActivation.ts
|
|
116873
|
+
const PREFIX = "/api/plugins/marketplace";
|
|
116874
|
+
const INITIAL_LAYERS = /* @__PURE__ */ new Set([
|
|
116875
|
+
"team",
|
|
116876
|
+
"browser",
|
|
116877
|
+
"calendar",
|
|
116878
|
+
"workflow"
|
|
116879
|
+
]);
|
|
116880
|
+
/** Preserve the packages older Workers loaded unconditionally. Interrupted seeding is safe to resume. */
|
|
116881
|
+
async function seedPluginPresets(fs, home) {
|
|
116882
|
+
await withSettingsWrite(async () => {
|
|
116883
|
+
let view = await readPresetsView(fs, home, {});
|
|
116884
|
+
if (!view.presets.some(({ name }) => name === view.defaultPreset)) {
|
|
116885
|
+
const created = await writePreset(fs, home, {}, "create", {
|
|
116886
|
+
scope: "host",
|
|
116887
|
+
name: view.defaultPreset,
|
|
116888
|
+
description: "Po Cloud plugins.",
|
|
116889
|
+
layers: [],
|
|
116890
|
+
expectedHash: view.hash
|
|
116891
|
+
});
|
|
116892
|
+
if ("error" in created) throw new Error(created.error);
|
|
116893
|
+
view = created;
|
|
116894
|
+
}
|
|
116895
|
+
for (const layer of virtual_po_plugin_catalog_default.layers.filter(({ id }) => INITIAL_LAYERS.has(id))) {
|
|
116896
|
+
const added = await writePreset(fs, home, {}, "add-layer", {
|
|
116897
|
+
scope: "host",
|
|
116898
|
+
name: "",
|
|
116899
|
+
layer: layer.id,
|
|
116900
|
+
definition: { packages: layer.packages },
|
|
116901
|
+
expectedHash: view.hash
|
|
116902
|
+
});
|
|
116903
|
+
if ("error" in added) throw new Error(added.error);
|
|
116904
|
+
view = added;
|
|
116905
|
+
}
|
|
116906
|
+
});
|
|
116907
|
+
}
|
|
116908
|
+
/** Only compiled curated packages are optional; foundation services never enter this list. */
|
|
116909
|
+
async function inactivePluginPackages(fs, home) {
|
|
116910
|
+
const view = await readPresetsView(fs, home, {});
|
|
116911
|
+
const active = /* @__PURE__ */ new Set([...view.alwaysIncluded, ...view.presets.find(({ name }) => name === view.defaultPreset)?.layers.flatMap(({ packages }) => packages) ?? []]);
|
|
116912
|
+
return [...new Set(virtual_po_plugin_catalog_default.layers.flatMap(({ packages }) => packages))].filter((name) => !active.has(name));
|
|
116913
|
+
}
|
|
116914
|
+
/** Binding-only: the admitting gateway authenticates, checks roles and strips caller-supplied stamps. */
|
|
116915
|
+
async function pluginActivation(request, fs, home) {
|
|
116916
|
+
const path = new URL(request.url).pathname;
|
|
116917
|
+
if (path === `${PREFIX}/catalog` && request.method === "GET") return Response.json(virtual_po_plugin_catalog_default);
|
|
116918
|
+
if (path !== `${PREFIX}/installs`) return Response.json({ error: "Install operation not found." }, { status: 404 });
|
|
116919
|
+
if (request.method !== "POST") return Response.json({ error: "Method not allowed." }, { status: 405 });
|
|
116920
|
+
const text = await request.text();
|
|
116921
|
+
if (text.length > 8192) return Response.json({ error: "Activation request is too large." }, { status: 413 });
|
|
116922
|
+
let body;
|
|
116923
|
+
try {
|
|
116924
|
+
body = JSON.parse(text);
|
|
116925
|
+
} catch {
|
|
116926
|
+
return Response.json({ error: "Invalid JSON." }, { status: 400 });
|
|
116927
|
+
}
|
|
116928
|
+
if (!Check(PluginInstallRequestSchema, body)) return Response.json({ error: "Expected a curated layer id, preset scope, name and hash only." }, { status: 400 });
|
|
116929
|
+
if (body.scope !== "host") return Response.json({ error: "This Worker supports host presets only." }, { status: 400 });
|
|
116930
|
+
const layer = virtual_po_plugin_catalog_default.layers.find(({ id }) => id === body.layer);
|
|
116931
|
+
if (!layer) return Response.json({ error: "This plugin is not bundled in this Worker." }, { status: 422 });
|
|
116932
|
+
const result = await withSettingsWrite(() => writePreset(fs, home, {}, "add-layer", {
|
|
116933
|
+
...body,
|
|
116934
|
+
scope: "host",
|
|
116935
|
+
definition: { packages: layer.packages }
|
|
116936
|
+
}));
|
|
116937
|
+
if ("error" in result) return Response.json(result, { status: result.conflict ? 409 : 422 });
|
|
116938
|
+
return Response.json({
|
|
116939
|
+
id: crypto.randomUUID(),
|
|
116940
|
+
layer: layer.id,
|
|
116941
|
+
state: "succeeded",
|
|
116942
|
+
membershipCommitted: true
|
|
116943
|
+
});
|
|
116944
|
+
}
|
|
116945
|
+
//#endregion
|
|
116825
116946
|
//#region \0po-edge-no-loopback
|
|
116826
116947
|
function createServer() {
|
|
116827
116948
|
throw new Error("No loopback OAuth callback server on the edge");
|
|
@@ -119541,6 +119662,7 @@ var PoOwnerObject = class extends DurableObject {
|
|
|
119541
119662
|
}
|
|
119542
119663
|
#providers;
|
|
119543
119664
|
#host;
|
|
119665
|
+
#pluginSeed;
|
|
119544
119666
|
#metrics;
|
|
119545
119667
|
#calendar;
|
|
119546
119668
|
#platform = createDurableObjectPlatform({
|
|
@@ -119692,6 +119814,8 @@ var PoOwnerObject = class extends DurableObject {
|
|
|
119692
119814
|
/** Binding-only hosted APIs. Browser authentication and roles are enforced by the admitting gateway. */
|
|
119693
119815
|
async fetch(request) {
|
|
119694
119816
|
const url = new URL(request.url);
|
|
119817
|
+
if (url.pathname.startsWith("/api/settings/presets") || url.pathname.startsWith("/api/plugins/marketplace/")) await this.#ensurePlugins();
|
|
119818
|
+
if (url.pathname.startsWith("/api/plugins/marketplace/")) return pluginActivation(request, this.#platform.env("/workspace"), this.#platform.homeDirectory);
|
|
119695
119819
|
if (url.pathname === "/api/client-devices" && request.method === "GET") return Response.json({ devices: await this.listClientDevices() });
|
|
119696
119820
|
const device = /^\/api\/client-devices\/([^/]+)$/.exec(url.pathname);
|
|
119697
119821
|
if (device && request.method === "PATCH") {
|
|
@@ -119787,6 +119911,21 @@ var PoOwnerObject = class extends DurableObject {
|
|
|
119787
119911
|
throw error;
|
|
119788
119912
|
});
|
|
119789
119913
|
}
|
|
119914
|
+
#ensurePlugins() {
|
|
119915
|
+
return this.#pluginSeed ??= (async () => {
|
|
119916
|
+
if (await this.ctx.storage.get("plugin-activation-v1")) return;
|
|
119917
|
+
await seedPluginPresets(this.#platform.env("/workspace"), this.#platform.homeDirectory);
|
|
119918
|
+
await this.ctx.storage.put("plugin-activation-v1", true);
|
|
119919
|
+
})().catch((error) => {
|
|
119920
|
+
this.#pluginSeed = void 0;
|
|
119921
|
+
throw error;
|
|
119922
|
+
});
|
|
119923
|
+
}
|
|
119924
|
+
/** Binding-only snapshot. A session reads it once on boot, through its admitted owner's namespace. */
|
|
119925
|
+
async inactivePlugins() {
|
|
119926
|
+
await this.#ensurePlugins();
|
|
119927
|
+
return inactivePluginPackages(this.#platform.env("/workspace"), this.#platform.homeDirectory);
|
|
119928
|
+
}
|
|
119790
119929
|
async hostedConfigText() {
|
|
119791
119930
|
return readTextIfExists(this.#platform.env("/workspace"), `${this.#platform.homeDirectory}/.po/config.yaml`, BACKGROUND_CONTEXT$1);
|
|
119792
119931
|
}
|
|
@@ -120003,7 +120142,7 @@ const COORDINATOR_HOME_API = "/api/coordinators/home";
|
|
|
120003
120142
|
/** po-core's machine API mount (providers page, model list) and the profile plugin's launch list. */
|
|
120004
120143
|
const PROVIDER_API = "/api/plugins/po";
|
|
120005
120144
|
const LAUNCH_PROFILES_API = /^\/api\/workspaces\/[^/]+\/plugins\/profile\/launch-profiles$/;
|
|
120006
|
-
const HOST_PACKAGE_API = /^\/api\/(?:settings(?:\/.*)?|plugins\/(?:mcp|log|vault|plugin-settings|artifacts|space|browse|calendar|scaffolds)(?:\/.*)?)$/;
|
|
120145
|
+
const HOST_PACKAGE_API = /^\/api\/(?:settings(?:\/.*)?|plugins\/(?:mcp|log|vault|plugin-settings|artifacts|space|browse|calendar|scaffolds)(?:\/.*)?|plugins\/marketplace\/(?:catalog|installs(?:\/[^/]+)?))$/;
|
|
120007
120146
|
const SESSION_HTTP_API = /^\/api\/workspaces\/([a-zA-Z0-9_-]{1,128})\/sessions\/([a-zA-Z0-9_-]{1,128})\/(?:plugins\/[a-z][a-z0-9-]*(?:\/.*)?|file|mcp(?:\/.*)?)$/;
|
|
120008
120147
|
const ID = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
120009
120148
|
const digest$4 = (value) => createHash("sha256").update(value).digest();
|
|
@@ -121666,219 +121805,225 @@ var virtual_po_capabilities_default = {
|
|
|
121666
121805
|
"packages": [
|
|
121667
121806
|
{
|
|
121668
121807
|
"name": "@agimon-ai/po-approval",
|
|
121669
|
-
"version": "0.0.0-alpha.
|
|
121808
|
+
"version": "0.0.0-alpha.164",
|
|
121670
121809
|
"contractFingerprint": "2fe2af06dfdf1ea281408f3a86b7599e2409044cac334bcd4060f55dac3d6953",
|
|
121671
121810
|
"operations": []
|
|
121672
121811
|
},
|
|
121673
121812
|
{
|
|
121674
121813
|
"name": "@agimon-ai/po-artifact",
|
|
121675
|
-
"version": "0.0.0-alpha.
|
|
121814
|
+
"version": "0.0.0-alpha.163",
|
|
121676
121815
|
"contractFingerprint": "995c1365a0db700a3901663f7908a961643f6612a4c7bdca63b2d027a955a393",
|
|
121677
121816
|
"operations": []
|
|
121678
121817
|
},
|
|
121679
121818
|
{
|
|
121680
121819
|
"name": "@agimon-ai/po-autocompact",
|
|
121681
|
-
"version": "0.0.0-alpha.
|
|
121820
|
+
"version": "0.0.0-alpha.164",
|
|
121682
121821
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121683
121822
|
"operations": []
|
|
121684
121823
|
},
|
|
121685
121824
|
{
|
|
121686
121825
|
"name": "@agimon-ai/po-autostop",
|
|
121687
|
-
"version": "0.0.0-alpha.
|
|
121826
|
+
"version": "0.0.0-alpha.164",
|
|
121688
121827
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121689
121828
|
"operations": []
|
|
121690
121829
|
},
|
|
121691
121830
|
{
|
|
121692
121831
|
"name": "@agimon-ai/po-browse",
|
|
121693
|
-
"version": "0.0.1-alpha.
|
|
121832
|
+
"version": "0.0.1-alpha.162",
|
|
121694
121833
|
"contractFingerprint": "be6ef9f776232eb98826f9843286d0e4de861370ca9a1b1c3518a76ef9214475",
|
|
121695
121834
|
"operations": []
|
|
121696
121835
|
},
|
|
121697
121836
|
{
|
|
121698
121837
|
"name": "@agimon-ai/po-cache",
|
|
121699
|
-
"version": "0.0.0-alpha.
|
|
121838
|
+
"version": "0.0.0-alpha.164",
|
|
121700
121839
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121701
121840
|
"operations": []
|
|
121702
121841
|
},
|
|
121703
121842
|
{
|
|
121704
121843
|
"name": "@agimon-ai/po-calendar",
|
|
121705
|
-
"version": "0.0.1-alpha.
|
|
121844
|
+
"version": "0.0.1-alpha.123",
|
|
121706
121845
|
"contractFingerprint": "4d2ac16f8f52ba8944c9919d1501512728e6fd59e55f55bb595e0252608954c5",
|
|
121707
121846
|
"operations": []
|
|
121708
121847
|
},
|
|
121709
121848
|
{
|
|
121710
121849
|
"name": "@agimon-ai/po-codemode",
|
|
121711
|
-
"version": "0.0.1-alpha.
|
|
121850
|
+
"version": "0.0.1-alpha.137",
|
|
121712
121851
|
"contractFingerprint": "b80fae8697548cb366f2ce11e68c6589aaadb5dd74721aee163fbc976240004f",
|
|
121713
121852
|
"operations": []
|
|
121714
121853
|
},
|
|
121715
121854
|
{
|
|
121716
121855
|
"name": "@agimon-ai/po-config",
|
|
121717
|
-
"version": "0.0.0-alpha.
|
|
121856
|
+
"version": "0.0.0-alpha.164",
|
|
121718
121857
|
"contractFingerprint": "a2034133b2bd6769831a0513c4cc40d142b7bb3f0c56cfe913ca77f4d311c1ad",
|
|
121719
121858
|
"operations": []
|
|
121720
121859
|
},
|
|
121721
121860
|
{
|
|
121722
121861
|
"name": "@agimon-ai/po-db",
|
|
121723
|
-
"version": "0.0.0-alpha.
|
|
121862
|
+
"version": "0.0.0-alpha.164",
|
|
121724
121863
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121725
121864
|
"operations": []
|
|
121726
121865
|
},
|
|
121727
121866
|
{
|
|
121728
121867
|
"name": "@agimon-ai/po-domain",
|
|
121729
|
-
"version": "0.0.0-alpha.
|
|
121868
|
+
"version": "0.0.0-alpha.164",
|
|
121730
121869
|
"contractFingerprint": "f84675636fbfb4d18b2a7ea413da2bff8c9aa0ff4a1de7fe2ef106bd3065bb97",
|
|
121731
121870
|
"operations": []
|
|
121732
121871
|
},
|
|
121733
121872
|
{
|
|
121734
121873
|
"name": "@agimon-ai/po-edit",
|
|
121735
|
-
"version": "0.0.0-alpha.
|
|
121874
|
+
"version": "0.0.0-alpha.164",
|
|
121736
121875
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121737
121876
|
"operations": []
|
|
121738
121877
|
},
|
|
121739
121878
|
{
|
|
121740
121879
|
"name": "@agimon-ai/po-file-edit",
|
|
121741
|
-
"version": "0.0.0-alpha.
|
|
121880
|
+
"version": "0.0.0-alpha.164",
|
|
121742
121881
|
"contractFingerprint": "81d440573fe5c3698f08a3b86db5fda727b8bab5d3838f6e9c52ba1bace35ba2",
|
|
121743
121882
|
"operations": []
|
|
121744
121883
|
},
|
|
121745
121884
|
{
|
|
121746
121885
|
"name": "@agimon-ai/po-scaffold",
|
|
121747
|
-
"version": "0.0.0-alpha.
|
|
121886
|
+
"version": "0.0.0-alpha.164",
|
|
121748
121887
|
"contractFingerprint": "f8f850b9a58bb4911a4315bc299a150ef0796a4ac2f51fe7c0e7935960bdfd45",
|
|
121749
121888
|
"operations": []
|
|
121750
121889
|
},
|
|
121751
121890
|
{
|
|
121752
121891
|
"name": "@agimon-ai/po-grep",
|
|
121753
|
-
"version": "0.0.0-alpha.
|
|
121892
|
+
"version": "0.0.0-alpha.164",
|
|
121754
121893
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121755
121894
|
"operations": []
|
|
121756
121895
|
},
|
|
121757
121896
|
{
|
|
121758
121897
|
"name": "@agimon-ai/po-log",
|
|
121759
|
-
"version": "0.0.0-alpha.
|
|
121898
|
+
"version": "0.0.0-alpha.164",
|
|
121760
121899
|
"contractFingerprint": "b2fd1caec91ff87dfe5532900e651a1bdcb0bd1d077b0207b6798cd6bbb06887",
|
|
121761
121900
|
"operations": []
|
|
121762
121901
|
},
|
|
121763
121902
|
{
|
|
121764
121903
|
"name": "@agimon-ai/po-preset",
|
|
121765
|
-
"version": "0.0.0-alpha.
|
|
121904
|
+
"version": "0.0.0-alpha.164",
|
|
121766
121905
|
"contractFingerprint": "99ef0dcec026a1712ee4c03caa52a816a8bc7f6f5a119c2e34101a111a7408b0",
|
|
121767
121906
|
"operations": []
|
|
121768
121907
|
},
|
|
121769
121908
|
{
|
|
121770
121909
|
"name": "@agimon-ai/po-mcp",
|
|
121771
|
-
"version": "0.0.0-alpha.
|
|
121910
|
+
"version": "0.0.0-alpha.164",
|
|
121772
121911
|
"contractFingerprint": "262dd3b193361f7a3bb6b5c3f330a7d5af7539f390885b7d7dea0fa77cc8a552",
|
|
121773
121912
|
"operations": []
|
|
121774
121913
|
},
|
|
121775
121914
|
{
|
|
121776
121915
|
"name": "@agimon-ai/po-mode",
|
|
121777
|
-
"version": "0.0.0-alpha.
|
|
121916
|
+
"version": "0.0.0-alpha.164",
|
|
121778
121917
|
"contractFingerprint": "532809f876e15199f3a42b3ed6f4706a904abffbdd3f3de3bba5a1edcaa536e6",
|
|
121779
121918
|
"operations": []
|
|
121780
121919
|
},
|
|
121781
121920
|
{
|
|
121782
121921
|
"name": "@agimon-ai/po-notification",
|
|
121783
|
-
"version": "0.0.0-alpha.
|
|
121922
|
+
"version": "0.0.0-alpha.164",
|
|
121784
121923
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121785
121924
|
"operations": []
|
|
121786
121925
|
},
|
|
121787
121926
|
{
|
|
121788
121927
|
"name": "@agimon-ai/po-profile",
|
|
121789
|
-
"version": "0.0.0-alpha.
|
|
121928
|
+
"version": "0.0.0-alpha.164",
|
|
121790
121929
|
"contractFingerprint": "a86498d20553e56959b2cc88e160434986fe6b3ad205a81e09f09d3e40dc66de",
|
|
121791
121930
|
"operations": []
|
|
121792
121931
|
},
|
|
121793
121932
|
{
|
|
121794
121933
|
"name": "@agimon-ai/po-prompt",
|
|
121795
|
-
"version": "0.0.0-alpha.
|
|
121934
|
+
"version": "0.0.0-alpha.164",
|
|
121796
121935
|
"contractFingerprint": "499a9268ada55446c3ee4cf7232acbf6902bba73382c4d876f6711880b3dfc86",
|
|
121797
121936
|
"operations": []
|
|
121798
121937
|
},
|
|
121799
121938
|
{
|
|
121800
121939
|
"name": "@agimon-ai/po-read",
|
|
121801
|
-
"version": "0.0.0-alpha.
|
|
121940
|
+
"version": "0.0.0-alpha.164",
|
|
121802
121941
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121803
121942
|
"operations": []
|
|
121804
121943
|
},
|
|
121805
121944
|
{
|
|
121806
121945
|
"name": "@agimon-ai/po-runner",
|
|
121807
|
-
"version": "0.0.0-alpha.
|
|
121946
|
+
"version": "0.0.0-alpha.164",
|
|
121808
121947
|
"contractFingerprint": "d5a7adb3dd3c6d2af5209689fc73704a60c33f43d31de662213201479ed8eb9c",
|
|
121809
121948
|
"operations": []
|
|
121810
121949
|
},
|
|
121811
121950
|
{
|
|
121812
121951
|
"name": "@agimon-ai/po-session",
|
|
121813
|
-
"version": "0.0.0-alpha.
|
|
121952
|
+
"version": "0.0.0-alpha.164",
|
|
121814
121953
|
"contractFingerprint": "fb9996e2f2a87b81905ed64d00a4434997a8a9c2231dc0854cdb40e6ae52c8ad",
|
|
121815
121954
|
"operations": []
|
|
121816
121955
|
},
|
|
121817
121956
|
{
|
|
121818
121957
|
"name": "@agimon-ai/po-skill",
|
|
121819
|
-
"version": "0.0.0-alpha.
|
|
121958
|
+
"version": "0.0.0-alpha.164",
|
|
121820
121959
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121821
121960
|
"operations": []
|
|
121822
121961
|
},
|
|
121823
121962
|
{
|
|
121824
121963
|
"name": "@agimon-ai/po-space",
|
|
121825
|
-
"version": "0.0.1-alpha.
|
|
121964
|
+
"version": "0.0.1-alpha.7",
|
|
121826
121965
|
"contractFingerprint": "c79816f514738b5368dda0194725087262e57e9b9c71f3f4012019b2db5b72da",
|
|
121827
121966
|
"operations": []
|
|
121828
121967
|
},
|
|
121829
121968
|
{
|
|
121830
121969
|
"name": "@agimon-ai/po-team",
|
|
121831
|
-
"version": "0.0.0-alpha.
|
|
121970
|
+
"version": "0.0.0-alpha.164",
|
|
121832
121971
|
"contractFingerprint": "69e6e0677775e07eb4e8b0379946b286da87c92d70bdd774f7ea1ade8db8204e",
|
|
121833
121972
|
"operations": []
|
|
121834
121973
|
},
|
|
121835
121974
|
{
|
|
121836
121975
|
"name": "@agimon-ai/po-ui",
|
|
121837
|
-
"version": "0.0.0-alpha.
|
|
121976
|
+
"version": "0.0.0-alpha.164",
|
|
121838
121977
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121839
121978
|
"operations": []
|
|
121840
121979
|
},
|
|
121841
121980
|
{
|
|
121842
121981
|
"name": "@agimon-ai/po-vault",
|
|
121843
|
-
"version": "0.0.0-alpha.
|
|
121982
|
+
"version": "0.0.0-alpha.164",
|
|
121844
121983
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121845
121984
|
"operations": []
|
|
121846
121985
|
},
|
|
121847
121986
|
{
|
|
121848
121987
|
"name": "@agimon-ai/po-help",
|
|
121849
|
-
"version": "0.0.0-alpha.
|
|
121988
|
+
"version": "0.0.0-alpha.164",
|
|
121850
121989
|
"contractFingerprint": "e4a2b566f06e64cb0a374179469dfd13adb4a60d7b8f92a3756ab54e0b05b8f9",
|
|
121851
121990
|
"operations": []
|
|
121852
121991
|
},
|
|
121853
121992
|
{
|
|
121854
121993
|
"name": "@agimon-ai/po-goal",
|
|
121855
|
-
"version": "0.0.0-alpha.
|
|
121994
|
+
"version": "0.0.0-alpha.164",
|
|
121856
121995
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
121857
121996
|
"operations": []
|
|
121858
121997
|
},
|
|
121859
121998
|
{
|
|
121860
121999
|
"name": "@agimon-ai/po-plan",
|
|
121861
|
-
"version": "0.0.0-alpha.
|
|
122000
|
+
"version": "0.0.0-alpha.164",
|
|
121862
122001
|
"contractFingerprint": "95cba01f8c05bc8464f08bdf21e49c9844251e9c8db9fbd2df388863d86fb97a",
|
|
121863
122002
|
"operations": []
|
|
121864
122003
|
},
|
|
121865
122004
|
{
|
|
121866
122005
|
"name": "@agimon-ai/po-author",
|
|
121867
|
-
"version": "0.0.0-alpha.
|
|
122006
|
+
"version": "0.0.0-alpha.164",
|
|
121868
122007
|
"contractFingerprint": "dddcdd25fbdabd502bb49d4f0b591e4d9cb4e9bc3c5ebd064c2a8fc7c2f72eb0",
|
|
121869
122008
|
"operations": []
|
|
121870
122009
|
},
|
|
121871
122010
|
{
|
|
121872
122011
|
"name": "@agimon-ai/po-voice",
|
|
121873
|
-
"version": "0.0.0-alpha.
|
|
122012
|
+
"version": "0.0.0-alpha.164",
|
|
121874
122013
|
"contractFingerprint": "0eca311908bd58bc6d565505ee77e8704e4f9b8caff4ee4945d6e6248fe3cf0a",
|
|
121875
122014
|
"operations": []
|
|
121876
122015
|
},
|
|
121877
122016
|
{
|
|
121878
122017
|
"name": "@agimon-ai/po-workflow",
|
|
121879
|
-
"version": "0.0.0-alpha.
|
|
122018
|
+
"version": "0.0.0-alpha.164",
|
|
121880
122019
|
"contractFingerprint": "2ad88dcfdf82b68934abee2bbecde77e66e774cde9ff333b10771abcb466bb74",
|
|
121881
122020
|
"operations": []
|
|
122021
|
+
},
|
|
122022
|
+
{
|
|
122023
|
+
"name": "@agimon-ai/po-web-search",
|
|
122024
|
+
"version": "0.0.0-alpha.163",
|
|
122025
|
+
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
122026
|
+
"operations": []
|
|
121882
122027
|
}
|
|
121883
122028
|
],
|
|
121884
122029
|
"templates": []
|