@agimon-ai/po-cloudflare 0.0.2-alpha.7 → 0.0.2-alpha.71
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 +64 -241
- package/container/Dockerfile +27 -0
- package/dist/{BrowserWebSocketTransport-C2SC2VeJ.js → BrowserWebSocketTransport-B4heNdrp.js} +1 -1
- package/dist/{NodeWebSocketTransport-CKilJesa.js → NodeWebSocketTransport-BCiOXUEz.js} +2 -2
- package/dist/{abort-signals-Bkmp_euQ.js → abort-signals-C8CttjsR.js} +1 -1
- package/dist/agent-CEqvgRl6.js +3878 -0
- package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-DCLLLNuM.js} +292 -64
- package/dist/apiContracts-DaOpUHnu.js +1719 -0
- package/dist/{approval-CQ3ZuoTy.js → approval-DXPV7Vm5.js} +15 -2
- package/dist/{approvalPrompt-CylV3C84.js → approvalPrompt-CBaxjb_g.js} +1 -2
- package/dist/approvalSession-C9bg7tPo.js +132 -0
- package/dist/artifactFiles-5KwXIxYf.js +1 -0
- package/dist/artifactsApi-bg2wMYWg.js +200 -0
- package/dist/assets/assets/{CodeEditorView-D4q94XH-.js → CodeEditorView-CfrVwzvL.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C85p4OYZ.js → abnfDiagram-WEYOIA3C-B80H4Cm4.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-Bt_NOdwE.js → architecture-WOLXFQ4H-Dr4hXaql.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DzH1GKMm.js → architectureDiagram-ZHVYKT53-DWyt7oXu.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-BmWU34j3.js → blockDiagram-RJAE7QA3-OxNTLdmi.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-BpGOdOuo.js → c4Diagram-XDPPPE54-B4YtcH0s.js} +2 -2
- package/dist/assets/assets/channel-bXj00dGj.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-AycP1cXU.js → chunk-2E7WHVMD-CD6FFMOX.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-DX-DrZzc.js → chunk-4EMNKR2T-CEIoX5oo.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-BdwnLWzI.js → chunk-55XCU76K-CD3t0IJi.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-D-RBAwAn.js → chunk-7S6XSTFO-Cyt75UCF.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-CCxNNhKs.js → chunk-AQDTSKZB-DRtqYBj9.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-D2hGwWm1.js → chunk-DSNLSHJZ-C8Fx2F8s.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-BPi-cqGh.js → chunk-HAGFOTED-wOLWRRnd.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D-r1ChHT.js → chunk-HNE4Q36P-CurJg4Hf.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-RgmZCAdn.js → chunk-NQOKRVIF-Dzcc5nOG.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-B-Hul-rZ.js → chunk-UHW7PFBP-B_ULFf2h.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-D1zlXCt8.js → chunk-VQ5W62QI-DH0VY4_p.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-CtjIbVJn.js → chunk-WQQL4CDK-DNxfLyXM.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-B2bMWgN9.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-BQOgXG99.js → chunk-YZO67HFG-COuMUh9U.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-CsDDxmqv.js → chunk-ZAUX2LTX-BJrCnubF.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-deyEYMjx.js → chunk-ZCHMQSOR-D1lFKPtk.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DVJHeFlq.js → classDiagram-v2-4MYWR3UA-DfZIbyVL.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-ipcN28Fw.js → cose-bilkent-JH36ORCC-CpGhv9_S.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-s9ZkPF55.js → cynefin-EF2NZ3EQ-Cxdc6nQl.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Ksr2qjsS.js → cynefinDiagram-WF24UDRP-qoj0w3lp.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-2_Wl-XEW.js → dagre-NK4GIZVX-DL6QbNDS.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-C7PeyT7l.js → diagram-CBK3MWTC-CJB3jq1_.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-DPYzeKdj.js → diagram-I5XIIV2D-4cPOxCxF.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DHw1cAmn.js → diagram-ODIL2UCW-BG3-jAxE.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-C2wA8i-1.js → diagram-PFBEJUXE-Bx8dFaXj.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-tM3moCIs.js → diagram-RJA3I4VV-CUUHND91.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CInyJxF7.js → diagram-TYUNFSNR-BDMoN-kr.js} +2 -2
- package/dist/assets/assets/{dist-BDqjNLTC.js → dist-5AxNm-uy.js} +2 -2
- package/dist/assets/assets/{dist-hpZIQBl4.js → dist-9_Rmyj2I.js} +2 -2
- package/dist/assets/assets/{dist-DSLprmec.js → dist-BE3CLKv4.js} +2 -2
- package/dist/assets/assets/{dist-BASEd5LC.js → dist-BfNCu-7x.js} +2 -2
- package/dist/assets/assets/{dist-BuYBvf4F.js → dist-BjI0b36Z.js} +2 -2
- package/dist/assets/assets/{dist-DUS0U_ge.js → dist-CM7b5P9a.js} +2 -2
- package/dist/assets/assets/{dist-CeOy6PjJ.js → dist-Ccxb9U1G.js} +2 -2
- package/dist/assets/assets/{dist-ChXoRSS6.js → dist-CjCWP21A.js} +2 -2
- package/dist/assets/assets/{dist-07dRlnp1.js → dist-DSTAktnR.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-4nZgqaSt.js → ebnfDiagram-V4P3TTPT-BivOMXZb.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-nFh54c1Q.js → elk-QONTBCTQ-CrJ1Qpy_.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-CIQ0_IgZ.js → erDiagram-KYQIGQAA-w9Bqp4sV.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-Cw4BlbYP.js → eventmodeling-K75KTNOO-CBjFM3kV.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-C6Fnfgm0.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-C97qoUpX.js → ganttDiagram-R7GPNTJY-CsWtGaqD.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-B8HWVkEX.js → gitGraph-VSP46ZUC-DsBSV9_h.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B4Js56_8.js → gitGraphDiagram-PDYL7XHY-D5GxuYHW.js} +2 -2
- package/dist/assets/assets/index-CNDyKUDF.css +1 -0
- package/dist/assets/assets/index-DWDYnZsq.js +256 -0
- package/dist/assets/assets/{info-OHQRW6UA-A4qythhA.js → info-OHQRW6UA-C7x5dSJu.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-BSNwG9yI.js → infoDiagram-MVDRKAX5-CwpI-uAa.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-D4gU-3RA.js → ishikawaDiagram-HPEHV2GE-DAa7J5G6.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CxxDrw7o.js → journeyDiagram-BOSHW7O7-BmiZnxE_.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DUxQv3v0.js → kanban-definition-FNSA4HC5-DUR_mA3L.js} +2 -2
- package/dist/assets/assets/{line-BKODXUmk.js → line-DHY49wSg.js} +2 -2
- package/dist/assets/assets/{linear-Cm5uyUun.js → linear-pTo-a9xT.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-CYst2kCg.js → mermaid-parser.core-DMg3hN3T.js} +4 -4
- package/dist/assets/assets/{mermaid.core-B4Qq8SMa.js → mermaid.core-DKtPCltA.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZFvUTIM.js → mindmap-definition-6OY57UG3-DwTkFbnV.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DZMlaiuy.js → packet-JDAUHWVQ-Tu9TrQ1x.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-BjM668dT.js → pegDiagram-ECIUJNBX-B7My4tsz.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-CmpJ6vb8.js → pie-XZMESJXO-QPQm5Gdx.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-BCA9DCDe.js → pieDiagram-GNMPY74T-Bv-zAD_z.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CUnpC-Rl.js → quadrantDiagram-D57K4MC3-HTjoGQPd.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-C9x42-KP.js → radar-ABXABTNO-LDBlEoFo.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-CLvHKrsC.js → railroad-I3PHUGI6-Dy3_ymgZ.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-B0LGF3gx.js → railroad-abnf-LNEFI6M7-QLVvYs6e.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-SKnYapAj.js → railroad-ebnf-DWYD2UWJ-CFRlv9a8.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-wsUpPloN.js → railroad-peg-JR7BVNR7-BOlq3d9c.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BYJtosKO.js → railroadDiagram-Y72NRBL7-Chg32HoU.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-YYdoWMnl.js → requirementDiagram-EQYSW5RA-VenIs_eg.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DtZyCTdM.js → sankeyDiagram-SY24JHO5-BdByqMKF.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BPE8f413.js → sequenceDiagram-BLEHNHQU-D3Do4GJE.js} +2 -2
- package/dist/assets/assets/{src-BNTOLq2G.js → src-DmfN-DA-.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-9f8Ow4Fl.js → stateDiagram-v2-A6IESKWZ-CZkRbPlf.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-DdAEbxGp.js → swimlanes-B3ENRKFQ-DRTdF9AF.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BYr_4JUb.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-DJNGd2mU.js → timeline-definition-JXYKGLGB-BVcuws_M.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-BHONoCCw.js → treeView-D4JQ5SDB-BLtOJGqO.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-pOaYkxq7.js → treemap-SAJKECNS-Dn3BWJ4v.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C3eDYL9v.js → usecaseDiagram-WPOLBNNX-CBExIKDY.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CJi1xfsR.js → vennDiagram-Q3Y3IDCW-C6FIx2L4.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-CEy4w7Ir.js → wardley-7MLQ67FV-Cjj2xSBp.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DfdLMMpN.js → wardleyDiagram-IVAIDKWA-sQPCBCFK.js} +2 -2
- package/dist/assets/assets/{webpack-v8XGbQTa.js → webpack-DDCA0aDL.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-Aw-Ix4uC.js → xychartDiagram-4URNHDU4-bZ4rifSw.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +8 -2
- package/dist/assets/mascot/cta-provider.png +0 -0
- package/dist/assets/mascot/cta-sign-in.png +0 -0
- package/dist/assets/plugins/assets/base-GzIOAd-t.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/day-bottom-left-5um-x02r-5um-x02r.webp +0 -0
- package/dist/assets/plugins/assets/day-grain-CvEuNhlI-CvEuNhlI.webp +0 -0
- package/dist/assets/plugins/assets/day-right-C9W-XtjV-C9W-XtjV.webp +0 -0
- package/dist/assets/plugins/assets/day-top-left-B544Eq9J-B544Eq9J.webp +0 -0
- package/dist/assets/plugins/assets/night-bottom-left-N03ST5Uz-N03ST5Uz.webp +0 -0
- package/dist/assets/plugins/assets/night-grain-BY9q-tNN-BY9q-tNN.webp +0 -0
- package/dist/assets/plugins/assets/night-right-C6Denrqj-C6Denrqj.webp +0 -0
- package/dist/assets/plugins/assets/night-top-left-KOou6UxY-KOou6UxY.webp +0 -0
- package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
- package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
- package/dist/assets/plugins/chunks/po-web-runtime-D8FIos2q.js +1 -0
- package/dist/assets/plugins/chunks/schemas-DVQ8BvvP.js +55 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DxS_uibk.js +2 -0
- package/dist/assets/plugins/slots/artifacts.50b639bb-Cp37TAkd.js +1 -0
- package/dist/assets/plugins/slots/author.ea449ace-Ds9Y-tjN.js +93 -0
- package/dist/assets/plugins/slots/autocompact.6f428144-CDZpN7I7.js +1 -0
- package/dist/assets/plugins/slots/backdrop-bamboo.6e4c928d-qbifuMc6.js +1 -0
- package/dist/assets/plugins/slots/browse.fa1f1a50-CVYvo1M5.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.75108f21-Cq1ljoL-.js +7 -0
- package/dist/assets/plugins/slots/calendar.d8b70190-BBjpOs1v.js +2 -0
- package/dist/assets/plugins/slots/codemode.c58fb583-DOR6OR7R.js +11 -0
- package/dist/assets/plugins/slots/domain.753f9f92-CJrXxig9.js +1 -0
- package/dist/assets/plugins/slots/edit.804fec90-BFF7_xN9.js +7 -0
- package/dist/assets/plugins/slots/files.66ffc636-CzOlZrRm.js +2 -0
- package/dist/assets/plugins/slots/goal.45dffa01-BtQBp3sw.js +1 -0
- package/dist/assets/plugins/slots/grep.98262cff-9bUDfjyT.js +1 -0
- package/dist/assets/plugins/slots/help.5fbd20f7-B4-y6gYK.js +3 -0
- package/dist/assets/plugins/slots/log.cb964209-BRPa3cVs.js +4 -0
- package/dist/assets/plugins/slots/mcp.82cc1ff5-CFtzPkPC.js +55 -0
- package/dist/assets/plugins/slots/plan.3852ba52-CH59Ff49.js +3 -0
- package/dist/assets/plugins/slots/profile.ab16dcec-0e9fWWyE.js +1 -0
- package/dist/assets/plugins/slots/prompts.ae48c07a-BTqYnBX5.js +38 -0
- package/dist/assets/plugins/slots/read.4560591a-C7fMXDEH.js +1 -0
- package/dist/assets/plugins/slots/runner.6e494d59-CqrpqhW9.js +9 -0
- package/dist/assets/plugins/slots/scaffold.d87a6ee0-9qY5gkYW.js +1 -0
- package/dist/assets/plugins/slots/session-mcp.2be84084-Cf0cqopp.js +2 -0
- package/dist/assets/plugins/slots/sessions.6f47cb4c-B1_eqPJQ.js +1 -0
- package/dist/assets/plugins/slots/skill.62a0a1b3-D-SKX8iw.js +4 -0
- package/dist/assets/plugins/slots/space.65a27e5a-fbLHc-DX.js +1 -0
- package/dist/assets/plugins/slots/subagents.8bb9992c-Cm_YMEnn.js +7 -0
- package/dist/assets/plugins/slots/template-advanced.59f3f98a-L0WOM4JT.js +1 -0
- package/dist/assets/plugins/slots/template-desktop.0f0b8491-By9BZlaL.js +7 -0
- package/dist/assets/plugins/slots/template-elegant.0e3b0acf-El05x7HK.js +1 -0
- package/dist/assets/plugins/slots/vault.3cbfcdc3-DpU_65Wy.js +1 -0
- package/dist/assets/plugins/slots/voice.a952113d-CvcuL__m.js +1 -0
- package/dist/assets/plugins/slots/web-search.65013836-NVh9fdvE.js +1 -0
- package/dist/assets/plugins/slots/workflows.cbc5c5c0-OLKSY9PE.js +16 -0
- package/dist/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +58 -4
- package/dist/{atomicJson-wczZBXQP.js → atomicJson-XYtxz032.js} +2 -3
- package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-S-quxzTC.js} +2 -2
- package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-DdpV5zh7.js} +13 -13
- package/dist/backgroundWork-Bv0ib_lY.js +49 -0
- package/dist/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
- package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
- package/dist/browser-ks_k-6KA.js +36 -0
- package/dist/calendarSetup-CI3AACVo.js +3892 -0
- package/dist/childProcess-Cv8rJuUf.js +32 -0
- package/dist/childSession-BrDCrNtL.js +25 -0
- package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-DFprgrML.js} +5 -5
- package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-B0MD19yZ.js} +3 -3
- package/dist/{codemode-CFVDmyGm.js → codemode-LpcMFMYM.js} +1 -1
- package/dist/coerce-DM9YrILC.js +13 -0
- package/dist/config-DeWkdjj7.js +1372 -0
- package/dist/contextContributions-C1bsEJef.js +13 -0
- package/dist/contracts-CW8o6Xyi.js +19 -0
- package/dist/contracts-WRa9e98H.js +40 -0
- package/dist/cordisHost-_-jtkneB.js +25 -0
- package/dist/delegation-B2rBgv8A.js +100 -0
- package/dist/{diagnostics-DPTP-yrt.js → diagnostics-BY5LXbHJ.js} +2 -2
- package/dist/{dist-BVBi6VMV.js → dist-B2ArMqge.js} +1 -1
- package/dist/{server-Cg07O2W6.js → dist-C6IqjC-m.js} +1 -546
- package/dist/{dist-PDDFdqDX.js → dist-CDz5dYMj.js} +1 -1
- package/dist/{dist-Dvx5mlIR.js → dist-kgi2Ix1y.js} +16 -3
- package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js} +1 -1
- package/dist/{env-api-keys-CAnjjnsR.js → env-api-keys-BgCPpU9t.js} +1 -1
- package/dist/{error-body-DQZRsyL5.js → error-body-CeumezyR.js} +26 -4
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/{remoteMcp-DqE2xFWS.js → exports-BEEgtkya.js} +1588 -714
- package/dist/{exports-LjvSY7Y6.js → exports-CBp_9dVk.js} +47 -28
- package/dist/exports-CRjRvvX0.js +34 -0
- package/dist/exports-Cg0wxflf.js +1 -0
- package/dist/exports-Ct56PRB9.js +46 -0
- package/dist/extensionFile-B940JOEn.js +121 -0
- package/dist/{factory-Cs8iaUtc.js → factory-BU0cZY0I.js} +1 -1
- package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-Cq9pnpl2.js} +1 -1
- package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-DmbUlCGv.js} +9 -9
- package/dist/{google-shared-S7bqOccz.js → google-shared-Diz2uk39.js} +6 -6
- package/dist/{google-vertex-BcMU_DMb.js → google-vertex-CGCpI9Po.js} +10 -10
- package/dist/{domains-B6Ae4swm.js → harnessState-Df--jB5z.js} +162 -42
- package/dist/{harnessStore-Ccbia9_u.js → harnessStore-DInwiLYb.js} +4 -5
- package/dist/{hash-B3RRpLS2.js → hash-IQBoLxOB.js} +1 -1
- package/dist/{headers-BEuxFxDI.js → headers-Dkgiqogr.js} +1 -1
- package/dist/help-C9UGKetC.js +100 -0
- package/dist/home-kwZFHqOx.js +60 -0
- package/dist/http-BekstF5S.js +64 -0
- package/dist/hubChannel-Dldv3EEb.js +32 -0
- package/dist/hubRevisions-BPoC6quI.js +364 -0
- package/dist/{identity-BIeAyilV.js → identity-BzB1N-Sn.js} +3 -3
- package/dist/index.edge-BiVQ9LoZ.js +198 -0
- package/dist/index.edge-CSGx6QOL.js +56 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-CzoLWbyl.js +238 -0
- package/dist/index.edge-D1biKw71.js +946 -0
- package/dist/index.edge-D2RirEwK.js +14 -0
- package/dist/iso-BGFmgtky.js +27 -0
- package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-D8KUrWxm.js} +1 -1
- package/dist/liquid.browser-1BcykmIN.js +4596 -0
- package/dist/manualTranscription-DN56fzgj.js +96 -0
- package/dist/{mcpProjection-BXiECnW0.js → mcpProjection-D2U50Pel.js} +1 -2
- package/dist/meta-CVgfTHQP.js +1030 -0
- package/dist/migrations-DJBPDwSR.js +32 -0
- package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-Bv_m1MRF.js} +12 -12
- package/dist/modeDefinition-Di95_IiU.js +44 -0
- package/dist/{models-D6d73jcW.js → models-D50yN8Ag.js} +41 -46
- package/dist/{node-UuMT2C3q.js → node-B4kSjHeD.js} +2 -2
- package/dist/{node-DytJOfYf.js → node-CBLSc-YH.js} +1 -1
- package/dist/notification-DjxbNoMR.js +143 -0
- package/dist/{openai-bt3ZRBZv.js → openai-D6Q-l6hT.js} +187 -187
- package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-BnoiTqYV.js} +21 -25
- package/dist/{openai-completions-BWsTNYyT.js → openai-completions-C68qs5rI.js} +26 -19
- package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-BSxU_aoV.js} +3 -3
- package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-D6hXen-k.js} +17 -15
- package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-BD8K7FAC.js} +7 -7
- package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-BPam8wyW.js} +1 -1
- package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-DylXiHy7.js} +7 -7
- package/dist/{hubChannel-Dn5NMpvu.js → packageApi-DYkaxP59.js} +33 -42
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/{pi-messages-BHAIkYBj.js → pi-messages-DaIlYYlO.js} +6 -6
- package/dist/piConfig-5tRPD0ov.js +126 -0
- package/dist/piSettings-ekBG5OeF.js +1 -0
- package/dist/platform-CQahdzpG.js +138 -0
- package/dist/pluginCatalog-BAALyedS.js +30 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-7_gVUeM9.js +1 -0
- package/dist/pluginProtocol-DVIfJnav.js +135 -0
- package/dist/portableConfig-0tnk9anb.js +49 -0
- package/dist/presetConfig-n-oiNd3h.js +541 -0
- package/dist/profileSources-D1rymC97.js +537 -0
- package/dist/{protocol-DUeE0Q8z.js → protocol-Cri0GpZR.js} +1 -2
- package/dist/{provider-env-DgfpjgTa.js → provider-env-DJb40UF7.js} +2 -2
- package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-jpvs7ixx.js} +1 -1
- package/dist/{puppeteer-cloudflare-B-GHrPGO.js → puppeteer-cloudflare-D4l8smMS.js} +3 -3
- package/dist/{server-BWJmxCrm.js → readiness-Ydw5zrKy.js} +4 -169
- package/dist/{rolldown-runtime-B-lAHAz2.js → rolldown-runtime-DbVrKiKs.js} +1 -1
- package/dist/{sanitize-unicode-Dl4ROF7y.js → sanitize-unicode-B1ZFaEtf.js} +1 -1
- package/dist/scaffoldRegistry-CeFe3Pf0.js +1240 -0
- package/dist/{schemas-Vj8-rCR4.js → schemas-D2dRon18.js} +1901 -53
- package/dist/server-AKM07WcM.js +466 -0
- package/dist/server-B0tM5Ygf.js +1300 -0
- package/dist/server-B8-vStCx.js +1116 -0
- package/dist/server-BAbdiL38.js +15108 -0
- package/dist/server-BCZ_R3kX.js +3326 -0
- package/dist/server-BGKAeB3M.js +492 -0
- package/dist/server-BIQhg1jS.js +26985 -0
- package/dist/server-BcPD_6a2.js +1533 -0
- package/dist/server-BeoA0QB-.js +580 -0
- package/dist/server-BsgvOpBF.js +24 -0
- package/dist/server-BtnOqSB5.js +156 -0
- package/dist/server-C-HBjWRo.js +2800 -0
- package/dist/{server-CWg0m_wq.js → server-C0Lt6nTt.js} +269 -1062
- package/dist/server-C8NPfG1H.js +148 -0
- package/dist/server-CKkaxOc0.js +978 -0
- package/dist/server-CMaWF5UA.js +1379 -0
- package/dist/server-CQPI6jIa.js +295 -0
- package/dist/{server-BhYE7Vqk.js → server-CQmb0lYL.js} +114 -176
- package/dist/server-CWR34Vx6.js +1884 -0
- package/dist/server-CZiAy2v5.js +641 -0
- package/dist/server-Cjtr0oVJ.js +584 -0
- package/dist/server-CkJQJ3Oo.js +571 -0
- package/dist/server-ClQQGtsI.js +679 -0
- package/dist/server-Cy2FhGBm.js +1744 -0
- package/dist/server-D8yEblCB.js +24 -0
- package/dist/server-DF0YIUeI.js +9603 -0
- package/dist/server-DRFESCq1.js +1527 -0
- package/dist/{server-zkcrP99W.js → server-Df1defzp.js} +89 -87
- package/dist/server-DgZd_TuT.js +189 -0
- package/dist/server-Dkc9Kth2.js +1830 -0
- package/dist/server-DlRePYOB.js +343 -0
- package/dist/{server-BpPEzRes.js → server-_HZm8wEC.js} +654 -745
- package/dist/{server-yABhJa2K.js → server-_jWkMESg.js} +60 -39
- package/dist/server-lgV6liTt.js +140 -0
- package/dist/server-nHPXbRDA.js +742 -0
- package/dist/server-p7qANgrf.js +877 -0
- package/dist/server-vhmQi3co.js +112 -0
- package/dist/{server-SA0dsIJ2.js → server-w1aKMZOs.js} +3 -10
- package/dist/serverPlugin-4nI5J6Zt.js +39622 -0
- package/dist/session-resources-BvR3cwiH.js +10 -0
- package/dist/{sessionConfig-DgnPcGBu.js → sessionConfig-UMlgu98q.js} +926 -844
- package/dist/{simple-options-DWrW31_K.js → simple-options-Cp5p46f9.js} +13 -6
- package/dist/space-C3Wnli1l.js +92 -0
- package/dist/sse-XlzXs1es.js +151 -0
- package/dist/{streaming-json-t4rzNHEp.js → streaming-json-CZyrX_Ux.js} +6 -6
- package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-Du6bka0h.js} +3 -3
- package/dist/{notification-valMY1zH.js → telemetry-CrTcxeA5.js} +2 -93
- package/dist/{transform-messages-CjTSwW9q.js → transform-messages-CBj9g2mx.js} +3 -16
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-BXjfQYeU.js → type-DppaYz6F.js} +955 -1187
- package/dist/type-yokaDI_F.js +7 -0
- package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-C7YFgvrX.js} +3 -3
- package/dist/{uuid-mkNGilLv.js → uuid-BVI0BZsx.js} +1 -1
- package/dist/{validation-BLnxgJU_.js → validation-QWuk6kwJ.js} +79 -74
- package/dist/vaultSettings-Bq8wkbDv.js +292 -0
- package/dist/voiceTools-BdJyfzwB.js +246 -0
- package/dist/web-B2sdV-F2.js +4 -0
- package/dist/worker.js +97821 -72579
- package/dist/workflow-DTCt4n6k.js +171 -0
- package/dist/workflowServices-RlswfHWp.js +300 -0
- package/package.json +55 -25
- package/wrangler.jsonc +16 -3
- package/dist/apiContracts-sG5b90Qa.js +0 -4451
- package/dist/assets/assets/channel-BOT7In0s.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-Dp9-QbR6.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-B9D9uWwn.js +0 -1
- package/dist/assets/assets/index-BlPEYpuN.css +0 -1
- package/dist/assets/assets/index-DS9w_Q1B.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CyUKtW7v.js +0 -9
- package/dist/assets/plugins/assets/base-DyDpY0zD.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-4JiBsb_c.js +0 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DwFz-UMh.js +0 -2
- package/dist/assets/plugins/slots/artifacts.50b639bb-CUtFC806.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.75108f21-B69GLfY_.js +0 -7
- package/dist/assets/plugins/slots/codemode.c58fb583-C0Gmb7_s.js +0 -9
- package/dist/assets/plugins/slots/domain.753f9f92-BTBYRLkE.js +0 -1
- package/dist/assets/plugins/slots/mcp.82cc1ff5-Ecacjn0a.js +0 -109
- package/dist/assets/plugins/slots/profile.ab16dcec-DIVXNHmh.js +0 -1
- package/dist/assets/plugins/slots/skill.62a0a1b3-BNr7DmPH.js +0 -4
- package/dist/backgroundWork-CSpsJ-Rg.js +0 -25
- package/dist/contextProjection-DDIQRgN4.js +0 -188
- package/dist/extensionFile-CacKVegY.js +0 -409
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-Ch6hdYYe.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-CCnwAjfF.js +0 -333
- package/dist/majorModes-DNQbxkpt.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-Bs2_X_dK.js +0 -16
- package/dist/platformFiles-CCGujP9o.js +0 -39
- package/dist/server-5hLs7M43.js +0 -656
- package/dist/server-B3iqBHOP.js +0 -118
- package/dist/server-Dv0EKLwc.js +0 -108
- package/dist/server-Y5A21sJf.js +0 -591
- package/dist/server-a1K226XK.js +0 -279
- package/dist/serverPlugin-DUc4gGep.js +0 -7279
- package/dist/value-Bd477RDX.js +0 -2247
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { Et as composeServerProviderOverrides, Jt as String$1, St as Service, V as Check, in as Optional, jt as PO_FS_SERVICE, rn as _Object_, t as defineServerPlugin } from "./serverPlugin-4nI5J6Zt.js";
|
|
2
|
+
import { c as readPoSpace, i as PO_PERSONAL_SPACE, o as PO_SPACE_SERVICE, s as poSpaceCallerOf } from "./platform-CQahdzpG.js";
|
|
3
|
+
import { n as defineTool } from "./pluginContributions-Be9EnCAW.js";
|
|
4
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BiVQ9LoZ.js";
|
|
5
|
+
import { g as HOST_ARTIFACT_PREFIX, l as ArtifactAccessError, n as listArtifactSessions, p as ARTIFACTS_SERVICE, r as listArtifacts, t as ensureArtifactRoot, u as artifactRoot } from "./index.edge-CzoLWbyl.js";
|
|
6
|
+
import { r as readPoFileAccess } from "./fileAccess-bFgmsyx0.js";
|
|
7
|
+
import { a as defineHook, c as defineRoot, l as defineRoute, m as defineToolRestriction, n as composeRootInjects, p as defineTool$1, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-B940JOEn.js";
|
|
8
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-LpcMFMYM.js";
|
|
9
|
+
import { r as moveArtifactToSpace, t as createArtifactApi } from "./artifactsApi-bg2wMYWg.js";
|
|
10
|
+
import { clearTimeout } from "node:timers";
|
|
11
|
+
//#region ../../foundations/po-artifact/src/services/artifacts/index.ts
|
|
12
|
+
/** Roots come only from admitted host configuration, never a file request. */
|
|
13
|
+
function createArtifactStorage(environment, fs) {
|
|
14
|
+
const policies = /* @__PURE__ */ new Map();
|
|
15
|
+
return {
|
|
16
|
+
...fs ? { fs } : {},
|
|
17
|
+
async rootForSession(sessionId, admittedEnvironment = environment) {
|
|
18
|
+
const root = artifactRoot(sessionId, admittedEnvironment);
|
|
19
|
+
try {
|
|
20
|
+
await ensureArtifactRoot(root, fs);
|
|
21
|
+
return root;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
if (error instanceof ArtifactAccessError && error.status === 404) return void 0;
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
sessions: (admittedEnvironment = environment) => listArtifactSessions(admittedEnvironment, fs),
|
|
28
|
+
registerWorkflowVisibility(policy) {
|
|
29
|
+
const owner = Symbol("workflow visibility");
|
|
30
|
+
policies.set(owner, policy);
|
|
31
|
+
return () => {
|
|
32
|
+
policies.delete(owner);
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
workflowVisible: (relativePath, kind) => policies.size > 0 && [...policies.values()].every((policy) => policy(relativePath, kind))
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** Publish the same storage instance used by this scope's artifact reader. */
|
|
39
|
+
var ArtifactsService = class extends Service {
|
|
40
|
+
storage;
|
|
41
|
+
constructor(context, storage) {
|
|
42
|
+
super(context, ARTIFACTS_SERVICE);
|
|
43
|
+
this.storage = storage;
|
|
44
|
+
}
|
|
45
|
+
get fs() {
|
|
46
|
+
return this.storage.fs;
|
|
47
|
+
}
|
|
48
|
+
rootForSession(sessionId, environment) {
|
|
49
|
+
return this.storage.rootForSession(sessionId, environment);
|
|
50
|
+
}
|
|
51
|
+
sessions(environment) {
|
|
52
|
+
return this.storage.sessions(environment);
|
|
53
|
+
}
|
|
54
|
+
registerWorkflowVisibility(policy) {
|
|
55
|
+
return this.storage.registerWorkflowVisibility(policy);
|
|
56
|
+
}
|
|
57
|
+
workflowVisible(relativePath, kind) {
|
|
58
|
+
return this.storage.workflowVisible(relativePath, kind);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function createArtifactsPlugin(storage) {
|
|
62
|
+
return (context) => {
|
|
63
|
+
new ArtifactsService(context, storage);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../../foundations/po-artifact/src/extensions/(backend)/root.server.ts
|
|
68
|
+
var root_server_default$1 = defineRoot(({ host, context }) => {
|
|
69
|
+
const storage = createArtifactStorage(Object.freeze({ ...host.context.environment }), context.get(PO_FS_SERVICE));
|
|
70
|
+
return {
|
|
71
|
+
value: storage,
|
|
72
|
+
services: [createArtifactsPlugin(storage)]
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region ../../foundations/po-artifact/src/types/artifacts.ts
|
|
77
|
+
const artifactsChannelType = "artifacts";
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region ../../foundations/po-artifact/src/schemas/artifactTools.ts
|
|
80
|
+
const ArtifactMoveInputSchema = _Object_({
|
|
81
|
+
path: String$1({ minLength: 1 }),
|
|
82
|
+
/** A space id from the session's spaces; Personal when left out. */
|
|
83
|
+
space: Optional(String$1({ minLength: 1 }))
|
|
84
|
+
}, { additionalProperties: false });
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../foundations/po-artifact/src/services/artifactNamespace/index.ts
|
|
87
|
+
const ARTIFACT_MOVE_TOOL = "artifacts_move_to_space";
|
|
88
|
+
const ARTIFACT_MOVE_APPROVAL = {
|
|
89
|
+
requirement: "human",
|
|
90
|
+
describe: () => ({
|
|
91
|
+
title: "Move a file to a space",
|
|
92
|
+
summary: "Move this session file to a space, where every session can use it. It leaves this session, older links to it stop working, and a move never overwrites."
|
|
93
|
+
})
|
|
94
|
+
};
|
|
95
|
+
const detached = (value) => JSON.parse(JSON.stringify(value));
|
|
96
|
+
const result = (details) => ({
|
|
97
|
+
content: [{
|
|
98
|
+
type: "text",
|
|
99
|
+
text: JSON.stringify(details, null, 2)
|
|
100
|
+
}],
|
|
101
|
+
details
|
|
102
|
+
});
|
|
103
|
+
/** Both surfaces use this boundary; po-space does the safe move. */
|
|
104
|
+
async function move(options, space, input, signal = new AbortController().signal) {
|
|
105
|
+
signal.throwIfAborted();
|
|
106
|
+
options.assertAvailable();
|
|
107
|
+
if (!Check(ArtifactMoveInputSchema, input)) throw new Error("Provide only the session-relative artifact path and, optionally, a space id.");
|
|
108
|
+
const value = await moveArtifactToSpace(options.root, options.storage, space, input.path, signal, input.space ?? "personal", options.caller);
|
|
109
|
+
return detached(value);
|
|
110
|
+
}
|
|
111
|
+
function createArtifactNamespace(options, space = () => void 0) {
|
|
112
|
+
return {
|
|
113
|
+
name: "artifacts",
|
|
114
|
+
summary: "Move a current-session artifact into a space, only when the person asks.",
|
|
115
|
+
declarations: `declare const artifacts: {
|
|
116
|
+
/** space is a space id, Personal when left out. Never overwrites. partial means the space copy exists and the session copy was kept. */
|
|
117
|
+
moveToSpace(input: { path: string; space?: string }): Promise<{ path: string; reference: string; partial?: string }>;
|
|
118
|
+
/** Older name for moveToSpace into Personal. */
|
|
119
|
+
moveToHost(input: { path: string }): Promise<{ path: string; reference: string; partial?: string }>;
|
|
120
|
+
};`,
|
|
121
|
+
approval: {
|
|
122
|
+
moveToSpace: ARTIFACT_MOVE_APPROVAL,
|
|
123
|
+
moveToHost: ARTIFACT_MOVE_APPROVAL
|
|
124
|
+
},
|
|
125
|
+
bind(run) {
|
|
126
|
+
if (run.sessionId !== options.sessionId) throw new Error("Artifacts namespace belongs to another session.");
|
|
127
|
+
let disposed = false;
|
|
128
|
+
run.onDispose(() => {
|
|
129
|
+
disposed = true;
|
|
130
|
+
});
|
|
131
|
+
const moveToSpace = async (input, name) => {
|
|
132
|
+
const started = Date.now();
|
|
133
|
+
const base = {
|
|
134
|
+
name,
|
|
135
|
+
tool: ARTIFACT_MOVE_TOOL,
|
|
136
|
+
args: Check(ArtifactMoveInputSchema, input) ? { ...input } : {}
|
|
137
|
+
};
|
|
138
|
+
const assertAvailable = () => {
|
|
139
|
+
if (disposed) throw new Error("Artifacts namespace run is disposed.");
|
|
140
|
+
options.assertAvailable();
|
|
141
|
+
};
|
|
142
|
+
try {
|
|
143
|
+
const value = await move({
|
|
144
|
+
...options,
|
|
145
|
+
assertAvailable
|
|
146
|
+
}, space(), input, run.signal);
|
|
147
|
+
run.record?.({
|
|
148
|
+
...base,
|
|
149
|
+
ok: true,
|
|
150
|
+
ms: Date.now() - started,
|
|
151
|
+
result: result(detached(value))
|
|
152
|
+
});
|
|
153
|
+
return value;
|
|
154
|
+
} catch (error) {
|
|
155
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
156
|
+
run.record?.({
|
|
157
|
+
...base,
|
|
158
|
+
ok: false,
|
|
159
|
+
ms: Date.now() - started,
|
|
160
|
+
error: message,
|
|
161
|
+
result: { content: [{
|
|
162
|
+
type: "text",
|
|
163
|
+
text: message
|
|
164
|
+
}] }
|
|
165
|
+
});
|
|
166
|
+
throw error;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
return {
|
|
170
|
+
moveToSpace: (input) => moveToSpace(input, "artifacts.moveToSpace"),
|
|
171
|
+
moveToHost: (input) => moveToSpace(input, "artifacts.moveToHost")
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The move exists only while po-space is bound: without it there is no space to move to, so the tool is withdrawn
|
|
178
|
+
* and the namespace is not registered.
|
|
179
|
+
*/
|
|
180
|
+
function createArtifactActions(agent, options) {
|
|
181
|
+
let space;
|
|
182
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
183
|
+
const setSpace = (next) => {
|
|
184
|
+
space = next;
|
|
185
|
+
for (const listener of listeners) listener();
|
|
186
|
+
};
|
|
187
|
+
const tool = defineTool({
|
|
188
|
+
name: ARTIFACT_MOVE_TOOL,
|
|
189
|
+
label: "Move artifact to a space",
|
|
190
|
+
description: "Move one current-session artifact into a space (Personal unless a space id is given) only when the person asks. Never overwrites.",
|
|
191
|
+
approval: ARTIFACT_MOVE_APPROVAL,
|
|
192
|
+
parameters: ArtifactMoveInputSchema,
|
|
193
|
+
executionMode: "serial",
|
|
194
|
+
async execute(input, execution) {
|
|
195
|
+
return result(await move(options, space, input, execution.signal));
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
const restriction = {
|
|
199
|
+
source: "@agimon-ai/po-artifact/space",
|
|
200
|
+
controlledTools: [tool.name],
|
|
201
|
+
restrict: () => space ? {} : { excludedTools: [tool.name] },
|
|
202
|
+
subscribe(listener) {
|
|
203
|
+
listeners.add(listener);
|
|
204
|
+
return () => listeners.delete(listener);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
const service = (context) => {
|
|
208
|
+
context.inject([PO_SPACE_SERVICE], (bound) => {
|
|
209
|
+
const found = readPoSpace(bound);
|
|
210
|
+
if (!found) return void 0;
|
|
211
|
+
setSpace(found);
|
|
212
|
+
return () => {
|
|
213
|
+
if (space === found) setSpace(void 0);
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
context.inject([PO_CODEMODE_SERVICE, PO_SPACE_SERVICE], (bound) => {
|
|
217
|
+
const codemode = readPoCodemode(bound);
|
|
218
|
+
if (!codemode || !agent || !readPoSpace(bound)) return void 0;
|
|
219
|
+
const registration = codemode.register("@agimon-ai/po-artifact", createArtifactNamespace(options, () => space));
|
|
220
|
+
const withdrawn = agent.registerToolRestriction({ excludedTools: [tool.name] });
|
|
221
|
+
return () => {
|
|
222
|
+
withdrawn.dispose();
|
|
223
|
+
registration.dispose();
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
return {
|
|
228
|
+
tool,
|
|
229
|
+
restriction,
|
|
230
|
+
services: [service],
|
|
231
|
+
space: () => space
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region ../../foundations/po-artifact/src/services/artifactSession/index.ts
|
|
236
|
+
/** The session's folder plus, when po-space is bound, the spaces a file can move to. */
|
|
237
|
+
async function listSessionArtifacts(root, storage, signal, space, caller = {}) {
|
|
238
|
+
const [session, spaces] = await Promise.all([listArtifacts(root, storage.workflowVisible, signal, storage.fs), space?.spaces(caller, signal ?? new AbortController().signal).catch(() => void 0)]);
|
|
239
|
+
return spaces ? {
|
|
240
|
+
...session,
|
|
241
|
+
spaces
|
|
242
|
+
} : session;
|
|
243
|
+
}
|
|
244
|
+
/** The folders of every space this session may use, for the prompt and paired-client access. */
|
|
245
|
+
async function spaceFolders(space, caller, signal) {
|
|
246
|
+
if (!space) return [];
|
|
247
|
+
const spaces = await space.spaces(caller, signal).catch(() => []);
|
|
248
|
+
return (await Promise.all(spaces.map(async (info) => {
|
|
249
|
+
const location = await space.resolve(caller, info.id, signal).catch(() => void 0);
|
|
250
|
+
return location ? [{
|
|
251
|
+
...info,
|
|
252
|
+
root: location.root
|
|
253
|
+
}] : [];
|
|
254
|
+
}))).flat();
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Creates the session artifact folder. Resolves false when the host has no artifact folder
|
|
258
|
+
* (the edge build rejects with a 404 without a file system); Node never rejects with that status here.
|
|
259
|
+
*/
|
|
260
|
+
async function prepareArtifactRoot(root, fs) {
|
|
261
|
+
try {
|
|
262
|
+
await ensureArtifactRoot(root, fs);
|
|
263
|
+
return true;
|
|
264
|
+
} catch (error) {
|
|
265
|
+
if (error instanceof ArtifactAccessError && error.status === 404) return false;
|
|
266
|
+
throw error;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
function createArtifactSession({ host, agent, context: root }, storage) {
|
|
270
|
+
const environment = Object.freeze({ ...host.context.environment });
|
|
271
|
+
const artifactStorage = storage ?? createArtifactStorage(environment);
|
|
272
|
+
const caller = poSpaceCallerOf(host.context.startedBy);
|
|
273
|
+
const fileAccess = readPoFileAccess(root);
|
|
274
|
+
let active;
|
|
275
|
+
let timer;
|
|
276
|
+
let closed = false;
|
|
277
|
+
const actions = createArtifactActions(agent, {
|
|
278
|
+
get sessionId() {
|
|
279
|
+
return agent?.context?.sessionId ?? active?.context.sessionId ?? "";
|
|
280
|
+
},
|
|
281
|
+
get root() {
|
|
282
|
+
return artifactRoot(this.sessionId, environment);
|
|
283
|
+
},
|
|
284
|
+
storage: artifactStorage,
|
|
285
|
+
caller,
|
|
286
|
+
assertAvailable() {
|
|
287
|
+
if (closed || !agent) throw new Error("Artifact session is closed or unavailable.");
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
const refresh = (force = false) => {
|
|
291
|
+
const runtime = active;
|
|
292
|
+
if (!runtime || closed) return Promise.resolve();
|
|
293
|
+
if (runtime.pending) {
|
|
294
|
+
if (force) runtime.rerun = true;
|
|
295
|
+
return runtime.pending;
|
|
296
|
+
}
|
|
297
|
+
const signal = runtime.scan.signal;
|
|
298
|
+
runtime.pending = (async () => {
|
|
299
|
+
const snapshot = {
|
|
300
|
+
...await listSessionArtifacts(runtime.root, artifactStorage, signal, actions.space(), caller),
|
|
301
|
+
...environment.PO_SESSION_TEMP_DIR ? { temporaryRoot: environment.PO_SESSION_TEMP_DIR } : {}
|
|
302
|
+
};
|
|
303
|
+
if (closed || active !== runtime) return;
|
|
304
|
+
const fingerprint = JSON.stringify(snapshot);
|
|
305
|
+
if (!force && fingerprint === runtime.fingerprint) return;
|
|
306
|
+
runtime.fingerprint = fingerprint;
|
|
307
|
+
host.context.directEvents?.publish(artifactsChannelType, runtime.context.sessionId, snapshot);
|
|
308
|
+
})().catch((error) => {
|
|
309
|
+
if (!signal.aborted) host.context.onNotice(`Artifact refresh failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
310
|
+
}).finally(() => {
|
|
311
|
+
runtime.pending = void 0;
|
|
312
|
+
if (runtime.rerun && !closed && active === runtime) {
|
|
313
|
+
runtime.rerun = false;
|
|
314
|
+
refresh(true);
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
return runtime.pending;
|
|
318
|
+
};
|
|
319
|
+
const stop = () => {
|
|
320
|
+
active?.closeAccess?.();
|
|
321
|
+
active?.closeSpaceAccess?.();
|
|
322
|
+
active?.scan.abort();
|
|
323
|
+
active = void 0;
|
|
324
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
325
|
+
timer = void 0;
|
|
326
|
+
};
|
|
327
|
+
const activity = {
|
|
328
|
+
name: "artifacts",
|
|
329
|
+
async start(context) {
|
|
330
|
+
if (closed) throw new Error("Artifact session is closed.");
|
|
331
|
+
stop();
|
|
332
|
+
const root = artifactRoot(context.sessionId, environment);
|
|
333
|
+
if (!await prepareArtifactRoot(root, artifactStorage.fs)) return stop;
|
|
334
|
+
const scan = new AbortController();
|
|
335
|
+
const folders = fileAccess === void 0 ? [] : await spaceFolders(actions.space(), caller, scan.signal);
|
|
336
|
+
const ready = await Promise.all(folders.map(async (folder) => await prepareArtifactRoot(folder.root, artifactStorage.fs) ? [folder.root] : []));
|
|
337
|
+
if (closed) throw new Error("Artifact session is closed.");
|
|
338
|
+
const spaceAccess = fileAccess === void 0 ? [] : ready.flat().map((folder) => fileAccess.register(folder));
|
|
339
|
+
active = {
|
|
340
|
+
context,
|
|
341
|
+
root,
|
|
342
|
+
scan,
|
|
343
|
+
...fileAccess === void 0 ? {} : { closeAccess: fileAccess.register(root) },
|
|
344
|
+
closeSpaceAccess: () => {
|
|
345
|
+
for (const close of spaceAccess) close();
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
const runtime = active;
|
|
349
|
+
refresh().finally(() => {
|
|
350
|
+
if (!closed && active === runtime);
|
|
351
|
+
});
|
|
352
|
+
return stop;
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
const beforeAgentStart = {
|
|
356
|
+
event: "before_agent_start",
|
|
357
|
+
async handle(event, context) {
|
|
358
|
+
const root = artifactRoot(context.sessionId, environment);
|
|
359
|
+
const systemPrompt = typeof event.systemPrompt === "string" ? event.systemPrompt : "";
|
|
360
|
+
if (!await prepareArtifactRoot(root, artifactStorage.fs)) return { systemPrompt };
|
|
361
|
+
const declaration = `Session artifact folder: ${root}`;
|
|
362
|
+
let next = systemPrompt;
|
|
363
|
+
if (!next.includes(declaration)) next = `${next}\n\n${declaration}\nSave user-designated artifacts and important deliverable documents in this folder, using descriptive filenames. Keep ordinary repository source edits in their existing locations. Do not move existing documents or overwrite artifacts without the user's intent. This folder belongs only to the current session. When a message names \`@artifact:<path>\`, it means the file at <path> inside this folder.`;
|
|
364
|
+
const folders = await spaceFolders(actions.space(), caller, new AbortController().signal);
|
|
365
|
+
const ready = (await Promise.all(folders.map(async (folder) => await prepareArtifactRoot(folder.root, artifactStorage.fs) ? [folder] : []))).flat();
|
|
366
|
+
const spaceDeclaration = ready.map((folder) => `- ${folder.label} (\`@space:${folder.id}/<path>\`): ${folder.root}`).join("\n");
|
|
367
|
+
if (ready.length > 0 && !next.includes(spaceDeclaration)) next = `${next}\n\nSpace folders:\n${spaceDeclaration}\nSpaces keep files beyond one session and hold only files the person chose to move there. When a message names \`@space:<id>/<path>\`, it means the file at <path> inside that space's folder; \`@artifact:${HOST_ARTIFACT_PREFIX}<path>\` is the same as \`@space:${PO_PERSONAL_SPACE}/<path>\`. You may read and edit these files when the task needs it; an edit changes the file everywhere the space is used. Move a session artifact into a space only when the person asks.`;
|
|
368
|
+
return { systemPrompt: next === systemPrompt ? systemPrompt : next.trim() };
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const unsubscribeSpace = actions.restriction.subscribe(() => void refresh(true));
|
|
372
|
+
return {
|
|
373
|
+
tool: actions.tool,
|
|
374
|
+
restriction: actions.restriction,
|
|
375
|
+
space: actions.space,
|
|
376
|
+
services: actions.services,
|
|
377
|
+
activities: [activity],
|
|
378
|
+
beforeAgentStart,
|
|
379
|
+
toolExecutionEnd: {
|
|
380
|
+
event: "tool_execution_end",
|
|
381
|
+
handle(_event, context) {
|
|
382
|
+
if (active?.context.sessionId === context.sessionId) refresh(true);
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
onDispose: () => {
|
|
386
|
+
closed = true;
|
|
387
|
+
unsubscribeSpace();
|
|
388
|
+
stop();
|
|
389
|
+
return Promise.resolve();
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/_lib/serverRoot.ts
|
|
395
|
+
const createArtifactServerRoot = (context) => {
|
|
396
|
+
const storage = context.root;
|
|
397
|
+
const runtime = createArtifactSession(context, storage);
|
|
398
|
+
const services = [...runtime.services, ...context.hosted("host") ? [createArtifactsPlugin(storage)] : []];
|
|
399
|
+
return {
|
|
400
|
+
value: {
|
|
401
|
+
...runtime,
|
|
402
|
+
storage
|
|
403
|
+
},
|
|
404
|
+
services,
|
|
405
|
+
activities: runtime.activities,
|
|
406
|
+
onDispose: runtime.onDispose
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/root.server.ts
|
|
411
|
+
var root_server_default = defineRoot(createArtifactServerRoot);
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region ../../foundations/po-artifact/src/services/artifactChannel/index.ts
|
|
414
|
+
function itemsOf(value) {
|
|
415
|
+
return Array.isArray(value) && value.every((item) => typeof item === "object" && item !== null && typeof item.path === "string" && typeof item.name === "string" && typeof item.size === "number" && Number.isFinite(item.size) && typeof item.modifiedAt === "number" && Number.isFinite(item.modifiedAt));
|
|
416
|
+
}
|
|
417
|
+
function snapshotOf(value) {
|
|
418
|
+
if (typeof value !== "object" || value === null) return false;
|
|
419
|
+
const snapshot = value;
|
|
420
|
+
return itemsOf(snapshot.items) && (snapshot.spaces === void 0 || Array.isArray(snapshot.spaces) && snapshot.spaces.every((space) => typeof space?.id === "string" && typeof space.label === "string")) && (snapshot.error === void 0 || typeof snapshot.error === "string") && (snapshot.temporaryRoot === void 0 || typeof snapshot.temporaryRoot === "string");
|
|
421
|
+
}
|
|
422
|
+
function createArtifactsChannel(context) {
|
|
423
|
+
const storage = context?.root;
|
|
424
|
+
return {
|
|
425
|
+
frameType: artifactsChannelType,
|
|
426
|
+
start(host) {
|
|
427
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
428
|
+
return {
|
|
429
|
+
payloadFor(scope) {
|
|
430
|
+
return sessions.get(scope.sessionId)?.snapshot;
|
|
431
|
+
},
|
|
432
|
+
sessionAdded(scope) {
|
|
433
|
+
sessions.get(scope.sessionId)?.unsubscribe();
|
|
434
|
+
const state = { unsubscribe: () => void 0 };
|
|
435
|
+
sessions.set(scope.sessionId, state);
|
|
436
|
+
state.unsubscribe = host.directEvents.subscribe(artifactsChannelType, scope.sessionId, (snapshot) => {
|
|
437
|
+
if (!snapshotOf(snapshot) || sessions.get(scope.sessionId) !== state) return;
|
|
438
|
+
state.snapshot = snapshot;
|
|
439
|
+
host.publish(scope.sessionId, snapshot);
|
|
440
|
+
}, { replayLatest: true });
|
|
441
|
+
(async () => {
|
|
442
|
+
let snapshot;
|
|
443
|
+
try {
|
|
444
|
+
snapshot = {
|
|
445
|
+
...storage ? await listSessionArtifacts(artifactRoot(scope.sessionId, scope.environment ?? {}), storage) : await listArtifacts(artifactRoot(scope.sessionId, scope.environment ?? {})),
|
|
446
|
+
...scope.environment?.PO_SESSION_TEMP_DIR ? { temporaryRoot: scope.environment.PO_SESSION_TEMP_DIR } : {}
|
|
447
|
+
};
|
|
448
|
+
} catch (error) {
|
|
449
|
+
snapshot = {
|
|
450
|
+
items: [],
|
|
451
|
+
error: error instanceof Error ? error.message : "The artifact folder could not be read."
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
if (sessions.get(scope.sessionId) !== state || state.snapshot !== void 0) return;
|
|
455
|
+
state.snapshot = snapshot;
|
|
456
|
+
host.publish(scope.sessionId, snapshot);
|
|
457
|
+
})();
|
|
458
|
+
},
|
|
459
|
+
sessionRemoved(sessionId) {
|
|
460
|
+
sessions.get(sessionId)?.unsubscribe();
|
|
461
|
+
sessions.delete(sessionId);
|
|
462
|
+
},
|
|
463
|
+
close() {
|
|
464
|
+
for (const state of sessions.values()) state.unsubscribe();
|
|
465
|
+
sessions.clear();
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region ../../foundations/po-artifact/src/extensions/(backend)/channel/artifacts.server.ts
|
|
473
|
+
var artifacts_server_default = defineChannel((context) => createArtifactsChannel(context), { context: true });
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/api/artifacts/route.server.ts
|
|
476
|
+
var route_server_default = defineRoute(({ root }) => createArtifactApi(root.storage, root.space));
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/hook/before-agent-start.server.ts
|
|
479
|
+
var before_agent_start_server_default = defineHook((context) => context.root.beforeAgentStart);
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/hook/tool-execution-end.server.ts
|
|
482
|
+
var tool_execution_end_server_default = defineHook((context) => context.root.toolExecutionEnd);
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-artifacts.server.ts
|
|
485
|
+
var codemode_how_to_artifacts_server_default = defineResource({
|
|
486
|
+
name: "codemode-how-to-artifacts",
|
|
487
|
+
description: "Move session artifacts into a space (Personal, or one an auth plugin adds) only when asked.",
|
|
488
|
+
kind: "skill",
|
|
489
|
+
pinned: true,
|
|
490
|
+
path: packageResourcePath("bundle:///po-artifact/src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-artifacts.server.ts", "src/prompts/codemode-how-to-artifacts/SKILL.md"),
|
|
491
|
+
read: () => readPackageResource("bundle:///po-artifact/src/extensions/workspaces/sessions/(backend)/resource/codemode-how-to-artifacts.server.ts", "src/prompts/codemode-how-to-artifacts/SKILL.md")
|
|
492
|
+
});
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/tool-restriction/artifacts-space.server.ts
|
|
495
|
+
/** Withdraws the move while po-space is not bound: there is no space to move to. */
|
|
496
|
+
var artifacts_space_server_default = defineToolRestriction((context) => context.root.restriction);
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region ../../foundations/po-artifact/src/extensions/workspaces/sessions/(backend)/tool/artifacts-move-to-space.server.ts
|
|
499
|
+
var artifacts_move_to_space_server_default = defineTool$1((context) => context.root.tool);
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region ../../foundations/po-artifact/generated/server.ts
|
|
502
|
+
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
503
|
+
/* v8 ignore next -- generated normalization branch */
|
|
504
|
+
const defined = (values) => values.filter((value) => value !== void 0);
|
|
505
|
+
const via = (identity, value) => value === void 0 ? void 0 : {
|
|
506
|
+
...identity,
|
|
507
|
+
...value
|
|
508
|
+
};
|
|
509
|
+
const serverPlugin = defineServerPlugin({
|
|
510
|
+
name: "@agimon-ai/po-artifact",
|
|
511
|
+
providerOverrides: composeServerProviderOverrides(root_server_default$1, root_server_default),
|
|
512
|
+
injects: composeRootInjects({
|
|
513
|
+
host: [root_server_default$1],
|
|
514
|
+
workspace: [root_server_default$1],
|
|
515
|
+
session: [root_server_default$1, root_server_default]
|
|
516
|
+
}),
|
|
517
|
+
host: async (context) => {
|
|
518
|
+
const scopeHost = await context.scopeRoot("host", root_server_default$1, context);
|
|
519
|
+
const contextHost = {
|
|
520
|
+
...context,
|
|
521
|
+
root: scopeHost.value
|
|
522
|
+
};
|
|
523
|
+
return {
|
|
524
|
+
...composeRootHooks(scopeHost),
|
|
525
|
+
get channels() {
|
|
526
|
+
return [() => via({ frameType: "artifacts" }, at(artifacts_server_default, contextHost))];
|
|
527
|
+
},
|
|
528
|
+
services: [...scopeHost.services ?? []]
|
|
529
|
+
};
|
|
530
|
+
},
|
|
531
|
+
workspace: async (context) => {
|
|
532
|
+
const scopeHost = await context.scopeRoot("host", root_server_default$1, context);
|
|
533
|
+
const contextHost = {
|
|
534
|
+
...context,
|
|
535
|
+
root: scopeHost.value
|
|
536
|
+
};
|
|
537
|
+
return {
|
|
538
|
+
...composeRootHooks(scopeHost),
|
|
539
|
+
get channels() {
|
|
540
|
+
return defined([context.hosted("host") ? void 0 : () => via({ frameType: "artifacts" }, at(artifacts_server_default, contextHost))]);
|
|
541
|
+
},
|
|
542
|
+
services: [...scopeHost.services ?? []]
|
|
543
|
+
};
|
|
544
|
+
},
|
|
545
|
+
session: async (context) => {
|
|
546
|
+
const scopeHost = await context.scopeRoot("host", root_server_default$1, context);
|
|
547
|
+
const contextHost = {
|
|
548
|
+
...context,
|
|
549
|
+
root: scopeHost.value
|
|
550
|
+
};
|
|
551
|
+
const scopeSession = await context.scopeRoot("session", root_server_default, contextHost);
|
|
552
|
+
const contextSession = {
|
|
553
|
+
...contextHost,
|
|
554
|
+
root: scopeSession.value
|
|
555
|
+
};
|
|
556
|
+
return {
|
|
557
|
+
...composeRootHooks(scopeHost, scopeSession),
|
|
558
|
+
get api() {
|
|
559
|
+
return [at(route_server_default, contextSession)];
|
|
560
|
+
},
|
|
561
|
+
get channels() {
|
|
562
|
+
return defined([context.hosted("host") ? void 0 : () => via({ frameType: "artifacts" }, at(artifacts_server_default, contextHost))]);
|
|
563
|
+
},
|
|
564
|
+
get hooks() {
|
|
565
|
+
return [via({ event: "before_agent_start" }, at(before_agent_start_server_default, contextSession)), via({ event: "tool_execution_end" }, at(tool_execution_end_server_default, contextSession))];
|
|
566
|
+
},
|
|
567
|
+
get resources() {
|
|
568
|
+
return [at(codemode_how_to_artifacts_server_default, contextSession)];
|
|
569
|
+
},
|
|
570
|
+
get toolRestrictions() {
|
|
571
|
+
return [at(artifacts_space_server_default, contextSession)];
|
|
572
|
+
},
|
|
573
|
+
get tools() {
|
|
574
|
+
return [via({ name: "artifacts_move_to_space" }, at(artifacts_move_to_space_server_default, contextSession))];
|
|
575
|
+
},
|
|
576
|
+
services: [...scopeHost.services ?? [], ...scopeSession.services ?? []],
|
|
577
|
+
get activities() {
|
|
578
|
+
return [...scopeHost.activities ?? [], ...scopeSession.activities ?? []];
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
//#endregion
|
|
584
|
+
export { serverPlugin as default, serverPlugin };
|