@agimon-ai/po-cloudflare 0.0.2-alpha.21 → 0.0.2-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-DZ-OKOHn.js → agent-UIPyeBP5.js} +1 -1
- package/dist/{apiContracts-b33nSAAI.js → apiContracts-C1eQw3aV.js} +14 -3
- package/dist/{approval-r3NnI1VC.js → approval-ClwOu7uT.js} +2 -2
- package/dist/{approvalPrompt-DWoXxu3S.js → approvalPrompt-DvHkKcy-.js} +2 -2
- package/dist/artifactFiles-BvCt577E.js +1 -0
- package/dist/assets/assets/{CodeEditorView-XeNS0L9M.js → CodeEditorView--WN6dPrx.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-B6ZW0nkR.js → abnfDiagram-WEYOIA3C-gI5VY9d1.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-bVR64sHO.js → architecture-WOLXFQ4H-rOlWdr7M.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-D7tZz3io.js → architectureDiagram-ZHVYKT53-LgdRA8o3.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DdwScfiX.js → blockDiagram-RJAE7QA3-Cnbl1Xjw.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-DgSxZJCV.js → c4Diagram-XDPPPE54-IZR9ycqL.js} +2 -2
- package/dist/assets/assets/channel-CrD4lVRl.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-D5TXC2SM.js → chunk-2E7WHVMD-BWuCn-Ur.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-BWhOSvo1.js → chunk-4EMNKR2T-BKCM3XwF.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-HkkBzLtZ.js → chunk-55XCU76K-D-cpZWTC.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-CBnjycLU.js → chunk-7S6XSTFO-CuzMc4IC.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-75lIIq8T.js → chunk-AQDTSKZB-DbaQ40ow.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-D8PpnXMk.js → chunk-DSNLSHJZ-BdxxGpAN.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-CXRS2NIN.js → chunk-HAGFOTED-Zh_11Odb.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-BocUqS94.js → chunk-HNE4Q36P-DlZujxY1.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-CHf_ogYT.js → chunk-NQOKRVIF-CiGV2Oc0.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-DrW1PaIv.js → chunk-UHW7PFBP-DRG6Judb.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-CLoA7bFm.js → chunk-VQ5W62QI-DG2HdXG0.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-BmBsrj9I.js → chunk-WQQL4CDK-CPuleSF6.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BjrgiCuI.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-DShE_cgv.js → chunk-YZO67HFG-of316ftl.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-B3oLvSXy.js → chunk-ZAUX2LTX-CPrtYqQo.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-B14vKK7C.js → chunk-ZCHMQSOR-DeBdEbUA.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Da8elIW2.js → classDiagram-v2-4MYWR3UA-BwVXVR6k.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-Du4tGtiJ.js → cose-bilkent-JH36ORCC-CT6olnsr.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-Cyj6i_WI.js → cynefin-EF2NZ3EQ-DuULfWya.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-DFWXwO7A.js → cynefinDiagram-WF24UDRP-DUb0X7dq.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-C1wB_cf-.js → dagre-NK4GIZVX-B74VlwTw.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-MYCOBYl6.js → diagram-CBK3MWTC-DamT65hF.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-BFYbKUFf.js → diagram-I5XIIV2D-bB1cvJ50.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-6siqTpv_.js → diagram-ODIL2UCW-BRM0DVMM.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-CaBr9CoB.js → diagram-PFBEJUXE-BpX2wcGT.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-DAvmuDpc.js → diagram-RJA3I4VV-B-uUsxzB.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CJnhgCpo.js → diagram-TYUNFSNR-B9exo1Dw.js} +2 -2
- package/dist/assets/assets/{dist-BQ4W1R18.js → dist-AmWXTl04.js} +2 -2
- package/dist/assets/assets/{dist-BnzFckPF.js → dist-BVj75dV9.js} +2 -2
- package/dist/assets/assets/{dist-qYlLXIa8.js → dist-Bez-acag.js} +2 -2
- package/dist/assets/assets/{dist-DNyn1p9Z.js → dist-C5qTd_01.js} +2 -2
- package/dist/assets/assets/{dist-CFtBpcYL.js → dist-C842uE1e.js} +2 -2
- package/dist/assets/assets/{dist-ChHYoe9_.js → dist-C87J3zaw.js} +2 -2
- package/dist/assets/assets/{dist-CIQX1z4W.js → dist-Ci0X1uP4.js} +2 -2
- package/dist/assets/assets/{dist-DKxZO8d9.js → dist-CzE956dI.js} +2 -2
- package/dist/assets/assets/{dist-DL6z28wl.js → dist-DzjRCuwU.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-AUcqDTM3.js → ebnfDiagram-V4P3TTPT-D5jOT9Db.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-aA10PEHJ.js → elk-QONTBCTQ-B_DwVG6P.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-hhYiqA-x.js → erDiagram-KYQIGQAA-CX_3h1Ot.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-BQZqbRo5.js → eventmodeling-K75KTNOO-DbiKG6BL.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-Cjl0PLdm.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-CLON1GpW.js → ganttDiagram-R7GPNTJY-elZusB4K.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-DbmvNwR2.js → gitGraph-VSP46ZUC-B9Den7o-.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-DJVO0WlL.js → gitGraphDiagram-PDYL7XHY-ROGyaCyn.js} +2 -2
- package/dist/assets/assets/index-di6cU4Gj.js +155 -0
- package/dist/assets/assets/{info-OHQRW6UA-CAt3Nt3g.js → info-OHQRW6UA-CpOqErak.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-DTuqH-Zb.js → infoDiagram-MVDRKAX5-0Allx5ry.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-BnWvdonT.js → ishikawaDiagram-HPEHV2GE-D9OuW5ON.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-Btxtcgvl.js → journeyDiagram-BOSHW7O7-BTECHgM0.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-q7ek9o_H.js → kanban-definition-FNSA4HC5-aQrr1OKW.js} +2 -2
- package/dist/assets/assets/{line-B7yLilmC.js → line-v9bOz1Ey.js} +2 -2
- package/dist/assets/assets/{linear-y8aSKEli.js → linear-Dq8OX6Zn.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-B4rH50nD.js → mermaid-parser.core-D5CkBH4_.js} +4 -4
- package/dist/assets/assets/{mermaid.core-DnRVHTjE.js → mermaid.core-mHckPBfv.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-DT9Afs2v.js → mindmap-definition-6OY57UG3-BCwuUCFw.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-CnqNbu4p.js → packet-JDAUHWVQ-EX4yzef7.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-cvxdBBFq.js → pegDiagram-ECIUJNBX-4fWFIvd_.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-etXMNsaL.js → pie-XZMESJXO-CYvVJy_o.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-CBN-R3_j.js → pieDiagram-GNMPY74T-CBP6z66Q.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-C5jjVPIH.js → quadrantDiagram-D57K4MC3-BSup4HmC.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-CAMd_mrV.js → radar-ABXABTNO-jVnoSObM.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-DIs3auoe.js → railroad-I3PHUGI6-mOKON3h5.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-CJXr1qWy.js → railroad-abnf-LNEFI6M7-DD318mU6.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-DfwtykqI.js → railroad-ebnf-DWYD2UWJ-BNtG2NvS.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-B8beAhTs.js → railroad-peg-JR7BVNR7-CLCSnjiF.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BDcQE-EL.js → railroadDiagram-Y72NRBL7-Cc3oTcyZ.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-KJ4-QjZM.js → requirementDiagram-EQYSW5RA-CqAB-seK.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-VjIB-Ybr.js → sankeyDiagram-SY24JHO5-CKupkkvN.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-MfMuWq1M.js → sequenceDiagram-BLEHNHQU-nFuDyVeJ.js} +2 -2
- package/dist/assets/assets/{src-BAxIj8GJ.js → src-DMdFFaDQ.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-mHwLRRCY.js → stateDiagram-v2-A6IESKWZ-7-tKqPT6.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-PArlYoqV.js → swimlanes-B3ENRKFQ-DHDGmhsR.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-xMPKHKuu.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-B2nKiNFU.js → timeline-definition-JXYKGLGB-Djbb1TcP.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-gU23_RuI.js → treeView-D4JQ5SDB-C4hXjFlO.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-CiqoMvZa.js → treemap-SAJKECNS-CzvybDVC.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-DpeoWpMK.js → usecaseDiagram-WPOLBNNX-BYqUavId.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-C31iGKvM.js → vennDiagram-Q3Y3IDCW-BEp6yQ4L.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-CIzHhzNw.js → wardley-7MLQ67FV-qjxSE1QX.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DIIkoezc.js → wardleyDiagram-IVAIDKWA-kyLL21Iq.js} +2 -2
- package/dist/assets/assets/{webpack-RFseiMZW.js → webpack-CArfpWUA.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-QiHL91kC.js → xychartDiagram-4URNHDU4-Du2PzsYQ.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-DuiJLOs_.css +2 -0
- package/dist/assets/plugins/chunks/po-web-runtime-EI_2k5Ip.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.3e4ea6e4-C0RmI2Pn.js +2 -0
- package/dist/assets/plugins/slots/artifacts.84980c32-B1aPICeE.js +1 -0
- package/dist/assets/plugins/slots/author.6acaa90f-Cipl-lB-.js +93 -0
- package/dist/assets/plugins/slots/{autocompact.dd97d013-IVq4Z6qm.js → autocompact.ec8f713f-d2vXqeFV.js} +1 -1
- package/dist/assets/plugins/slots/builtin-tools.16ef5e25-DhfnwpOa.js +7 -0
- package/dist/assets/plugins/slots/{codemode.8eaee717-VWt9PqsU.js → codemode.5f359b9c-CkCZsOKf.js} +4 -4
- package/dist/assets/plugins/slots/domain.832848c8-CJapYFeI.js +1 -0
- package/dist/assets/plugins/slots/edit.7c802139-4Rr7kXo0.js +7 -0
- package/dist/assets/plugins/slots/files.364f16c9-Bq_yVeTP.js +2 -0
- package/dist/assets/plugins/slots/goal.4c392100-B75Qo1Zd.js +1 -0
- package/dist/assets/plugins/slots/grep.d8bf9f57-DzeQomFK.js +1 -0
- package/dist/assets/plugins/slots/help.2ace5e43-usXaZfqP.js +3 -0
- package/dist/assets/plugins/slots/log.07fd59a4-D9njASDU.js +4 -0
- package/dist/assets/plugins/slots/mcp.ea8b6aa2-CXSgAVZB.js +109 -0
- package/dist/assets/plugins/slots/plan.b526667a-glf-Yrt8.js +3 -0
- package/dist/assets/plugins/slots/{profile.48851a1d-yX6tzV3x.js → profile.63bc3ae6-DDweHjSq.js} +1 -1
- package/dist/assets/plugins/slots/prompts.9d9b47cc-D28EtCWM.js +3 -0
- package/dist/assets/plugins/slots/read.926c024f-DMVigX9G.js +1 -0
- package/dist/assets/plugins/slots/runner.5393fa6c-ty8qh-Hn.js +8 -0
- package/dist/assets/plugins/slots/{skill.086701a4-CL6h_F-x.js → skill.56c1cc07-CptqANvN.js} +2 -2
- package/dist/assets/plugins/slots/subagents.dd77306a-DowwoyAz.js +7 -0
- package/dist/assets/plugins/slots/vault.587549ba-BlCwV79H.js +1 -0
- package/dist/assets/plugins/slots/voice.920972c8-BkULz7Nz.js +1 -0
- package/dist/{atomicJson-C_7F2zD1.js → atomicJson-BQhr0b4x.js} +2 -2
- package/dist/{backgroundWork-B1mPDYlf.js → backgroundWork-DZBsxltI.js} +1 -1
- package/dist/{codemode-DQFmrosw.js → codemode-ZkWnuAI8.js} +1 -1
- package/dist/{contracts-DD3f1Lpn.js → contracts-DPEebkOJ.js} +1 -1
- package/dist/{exports-D09VsUk-.js → exports-BDpoeBYv.js} +6 -6
- package/dist/{exports-nV43ShA7.js → exports-BMON3TcD.js} +9 -9
- package/dist/{exports-B0WMEXCP.js → exports-C9o38AKd.js} +2 -2
- package/dist/extensionFile-DIbg2lby.js +121 -0
- package/dist/{harnessState-Dwrk3lfv.js → harnessState-DFd42aw_.js} +3 -3
- package/dist/{harnessStore-Z7yDLO45.js → harnessStore-BG2zfn0y.js} +4 -4
- package/dist/{help-w6vVEZGL.js → help-BRf69VyB.js} +2 -2
- package/dist/{hubChannel-Cm-sxOvU.js → hubChannel-DckivLhM.js} +1 -1
- package/dist/{index.edge-Xa5LLtxz.js → index.edge-CkEELgJZ.js} +2 -2
- package/dist/{index.edge-DyYmurS7.js → index.edge-Dy1OxB6o.js} +1 -0
- package/dist/{index.edge-K0w5auwG.js → index.edge-Nnw3s5U5.js} +2 -2
- package/dist/{layeredConfig-CUkYUs1f.js → layeredConfig-C4fvE8Su.js} +3 -3
- package/dist/majorModes-CROQp_qf.js +1 -0
- package/dist/{majorModes-BB0PXgFn.js → majorModes-NI9R9cdG.js} +3 -3
- package/dist/{mcpProjection-BtKzB6oK.js → mcpProjection-BAFCLInc.js} +2 -2
- package/dist/{narration-CpRurWLO.js → narration-Iro44gEb.js} +2 -2
- package/dist/{notification-kckG3leF.js → notification-BmlTSXKU.js} +2 -2
- package/dist/{packageApi-t1oCjNDU.js → packageApi-Be2PgMFg.js} +1 -1
- package/dist/{piConfig-DQzlbPY4.js → piConfig-CTIrk5Sf.js} +4 -4
- package/dist/piSettings-F4H1df-n.js +1 -0
- package/dist/{platform-BIEiM4TG.js → platform-CIq8Kome.js} +1 -1
- package/dist/{pluginProtocol-BqXXyI4z.js → pluginProtocol-vfpJc92C.js} +2 -2
- package/dist/{protocol-DDL8geoS.js → protocol-CY4BiIpC.js} +2 -2
- package/dist/{server-KBgW77zh.js → server-B6_lwFVd.js} +3 -3
- package/dist/{server-DymH4Ucq.js → server-B6d00a08.js} +4 -4
- package/dist/{server-oxyEbv1a.js → server-B7f7QKc7.js} +8 -8
- package/dist/{server-AbXyhXlY.js → server-BFIwOGAA.js} +4 -4
- package/dist/{server-DsdPEYGu.js → server-BHZoezDN.js} +5 -5
- package/dist/{server-nkUlqnAL.js → server-BNumwxSM.js} +10 -10
- package/dist/{server-BJ7DNzCp.js → server-BR_dbEMf.js} +7 -7
- package/dist/{server-DH7PfLln.js → server-BVYZMr8z.js} +5 -5
- package/dist/{server-CuEPb7u-.js → server-BsCxTCv0.js} +2 -2
- package/dist/{server-BbSHYRnY.js → server-CBfCgKl2.js} +3 -3
- package/dist/{server-Co_UWKrR.js → server-CJtR2Sru.js} +5 -5
- package/dist/{server-CIHM4jqu.js → server-COl1e25y.js} +9 -9
- package/dist/{server-RW_9R3R3.js → server-CPgGcnWc.js} +6 -6
- package/dist/{server-IqECnUrb.js → server-CczrVvaO.js} +13 -13
- package/dist/{server-aUit8j6r.js → server-CuexObML.js} +7 -7
- package/dist/{server-DYdp0W9v.js → server-D7ltUBhP.js} +7 -7
- package/dist/{server-Busl0pQI.js → server-DEjEmSss.js} +8 -8
- package/dist/{server-B6dqQoh2.js → server-DFhOl3ch.js} +7 -7
- package/dist/{server-BT2ORK83.js → server-DILDgYKb.js} +9 -9
- package/dist/{server-CgWSSdvd.js → server-DJek9T1E.js} +6 -6
- package/dist/{server-ub3s16Mc.js → server-DPviMT6J.js} +4 -4
- package/dist/{server-DCyf2Asb.js → server-DfkiwDYb.js} +3 -3
- package/dist/{server-gifRriZK.js → server-DkeqHklt.js} +10 -10
- package/dist/{server-DJ8bc89M.js → server-DsUu0QU_.js} +3 -3
- package/dist/{server-BIHo9TFu.js → server-Dxa0NtKz.js} +4 -4
- package/dist/{server-BR7SZtj7.js → server-DzU8k3tY.js} +10 -10
- package/dist/{server-D40q2Jpx.js → server-_f8nacEA.js} +6 -6
- package/dist/{server-BqoKlEGk.js → server-nl7Kb6NK.js} +8 -8
- package/dist/{server-BO-j_GbD.js → server-pwBR7ut8.js} +12 -12
- package/dist/{server-BQzAiMns.js → server-uZBMAHRY.js} +11 -11
- package/dist/{serverPlugin-CELT6P0Q.js → serverPlugin-CFEhyxga.js} +319 -7
- package/dist/{sessionConfig-RQGvfm6E.js → sessionConfig-BznfkRmn.js} +9 -9
- package/dist/{type-ASYnCGVW.js → type-BxD21peU.js} +6 -6
- package/dist/{validation-BJxVSAwx.js → validation-DbxpyQ_I.js} +2 -2
- package/dist/{value-_W31So3B.js → value-CKjNDElQ.js} +1 -1
- package/dist/{vaultSettings-Di3n5YIg.js → vaultSettings-B0Fm3-rm.js} +1 -1
- package/dist/{voiceTools-RMn4HvWo.js → voiceTools-D_g-1t1o.js} +1 -1
- package/dist/web-Bb6qSzGG.js +3 -0
- package/dist/worker.js +534 -96
- package/dist/{workflow-B7qx0Vv9.js → workflow-CCXu-Egt.js} +1 -1
- package/package.json +38 -37
- package/dist/artifactFiles-DLCReI0-.js +0 -1
- package/dist/assets/assets/channel-TPcVvp_3.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-iFE4Tl8c.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BuyysPYC.js +0 -1
- package/dist/assets/assets/index-BiTVAj5E.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-The09-5S.js +0 -9
- package/dist/assets/plugins/assets/base-CKKRZ7-h.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-BJDT6Lbw.js +0 -1
- package/dist/assets/plugins/slots/approval.293d9a00-BXIhaPlQ.js +0 -2
- package/dist/assets/plugins/slots/artifacts.24567664-ZzR0gbvy.js +0 -1
- package/dist/assets/plugins/slots/author.0998a880-DAbA-7rb.js +0 -93
- package/dist/assets/plugins/slots/builtin-tools.36d7400b-CpCLjRRN.js +0 -7
- package/dist/assets/plugins/slots/domain.5e95fc37-5PIUBqDe.js +0 -1
- package/dist/assets/plugins/slots/edit.385c9aa9-DNAjPNG5.js +0 -7
- package/dist/assets/plugins/slots/files.daf34ed8-CQaTz0i1.js +0 -2
- package/dist/assets/plugins/slots/goal.77ec9930-B8EkarBq.js +0 -1
- package/dist/assets/plugins/slots/grep.02052cdc-CIRhO2gY.js +0 -1
- package/dist/assets/plugins/slots/help.ecd4c0f9-naMF9NN1.js +0 -3
- package/dist/assets/plugins/slots/log.a86eb6d0-D5__rAZJ.js +0 -4
- package/dist/assets/plugins/slots/mcp.974af249-DPNHn9XH.js +0 -109
- package/dist/assets/plugins/slots/plan.bafb8f68-C5GEpybF.js +0 -3
- package/dist/assets/plugins/slots/prompts.723d7748-B7zpPeoF.js +0 -3
- package/dist/assets/plugins/slots/read.46bf6536-Cw5Z5z5T.js +0 -1
- package/dist/assets/plugins/slots/runner.53e9bd76-CiQR_FPX.js +0 -8
- package/dist/assets/plugins/slots/vault.ac9935c8-DKERQYg4.js +0 -1
- package/dist/assets/plugins/slots/voice.e85ca7f9-DEgb-U9m.js +0 -1
- package/dist/extensionFile-DNM4xsje.js +0 -433
- package/dist/majorModes-C7vtBs4D.js +0 -1
- package/dist/piSettings-Cf1QofNe.js +0 -1
- package/dist/web-DCP7ELJj.js +0 -3
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
import { _ as PO_SERVER_HOST_SERVICE, b as requirePoServerHost, ir as PO_SERVER_SCOPE_SERVICE, p as readPoHeadlessHost, rr as PO_SERVER_SCOPE_LEVELS, sr as requirePoServerScope } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
-
//#region ../../core/po-core/src/services/pluginLifecycle/index.ts
|
|
3
|
-
/** Runs ordered cleanup steps to completion before reporting their failures. */
|
|
4
|
-
async function runCleanups(steps, message) {
|
|
5
|
-
const errors = [];
|
|
6
|
-
for (const step of steps) {
|
|
7
|
-
if (!step) continue;
|
|
8
|
-
try {
|
|
9
|
-
await step();
|
|
10
|
-
} catch (error) {
|
|
11
|
-
errors.push(error);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
if (errors.length) throw new AggregateError(errors, message);
|
|
15
|
-
}
|
|
16
|
-
/** Owns one mounted plugin, independently of the host supplying its context. */
|
|
17
|
-
function createPluginLifecycle(makeContext) {
|
|
18
|
-
const controller = new AbortController();
|
|
19
|
-
const context = makeContext(controller.signal);
|
|
20
|
-
const cleanups = [];
|
|
21
|
-
let hooks;
|
|
22
|
-
let startup;
|
|
23
|
-
let disposal;
|
|
24
|
-
let started = false;
|
|
25
|
-
let draining = false;
|
|
26
|
-
const dispose = () => {
|
|
27
|
-
if (disposal) return disposal;
|
|
28
|
-
disposal = Promise.resolve().then(async () => {
|
|
29
|
-
await startup?.catch(() => void 0);
|
|
30
|
-
draining = true;
|
|
31
|
-
const onStop = hooks?.onStop;
|
|
32
|
-
const onDispose = hooks?.onDispose;
|
|
33
|
-
await runCleanups([
|
|
34
|
-
started && onStop ? () => onStop(context) : void 0,
|
|
35
|
-
...cleanups.splice(0).reverse(),
|
|
36
|
-
onDispose ? () => onDispose(context) : void 0
|
|
37
|
-
], "Plugin cleanup failed.");
|
|
38
|
-
});
|
|
39
|
-
controller.abort();
|
|
40
|
-
return disposal;
|
|
41
|
-
};
|
|
42
|
-
return {
|
|
43
|
-
context,
|
|
44
|
-
own(cleanup) {
|
|
45
|
-
if (draining) throw new Error("Cannot own a registration after plugin cleanup begins.");
|
|
46
|
-
cleanups.push(cleanup);
|
|
47
|
-
},
|
|
48
|
-
mount(definition, register) {
|
|
49
|
-
if (startup || disposal) return Promise.reject(/* @__PURE__ */ new Error("A plugin lifecycle can only mount once."));
|
|
50
|
-
startup = Promise.resolve().then(async () => {
|
|
51
|
-
controller.signal.throwIfAborted();
|
|
52
|
-
const resolved = typeof definition === "function" ? await definition() : definition;
|
|
53
|
-
hooks = resolved;
|
|
54
|
-
controller.signal.throwIfAborted();
|
|
55
|
-
await register(resolved);
|
|
56
|
-
controller.signal.throwIfAborted();
|
|
57
|
-
started = true;
|
|
58
|
-
if (resolved.onStart) await resolved.onStart(context);
|
|
59
|
-
controller.signal.throwIfAborted();
|
|
60
|
-
});
|
|
61
|
-
return startup.catch(async (error) => {
|
|
62
|
-
try {
|
|
63
|
-
await dispose();
|
|
64
|
-
} catch (cleanupError) {
|
|
65
|
-
const errors = cleanupError instanceof AggregateError ? cleanupError.errors : [cleanupError];
|
|
66
|
-
throw new AggregateError([error, ...errors], error instanceof Error ? error.message : String(error), { cause: error });
|
|
67
|
-
}
|
|
68
|
-
throw error;
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
dispose
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region ../../core/po-core/src/extensions/serverPlugin.ts
|
|
76
|
-
/**
|
|
77
|
-
* Holds a built root's teardown for the levels that reuse it.
|
|
78
|
-
*
|
|
79
|
-
* The building level keeps the root's hooks in its own lifecycle, but each one runs only when no
|
|
80
|
-
* inner level still holds a lease. Otherwise the last lease to be released runs what the building
|
|
81
|
-
* level held back. So a reload of the building level installs the new build for itself and for every
|
|
82
|
-
* level that mounts from then on, while a session already running keeps the root it mounted with
|
|
83
|
-
* until it closes.
|
|
84
|
-
*/
|
|
85
|
-
function holdRoot(built) {
|
|
86
|
-
let leases = 0;
|
|
87
|
-
let owed = {
|
|
88
|
-
stop: false,
|
|
89
|
-
dispose: false
|
|
90
|
-
};
|
|
91
|
-
let stopped = false;
|
|
92
|
-
let disposed = false;
|
|
93
|
-
const stop = async (context) => {
|
|
94
|
-
if (stopped) return;
|
|
95
|
-
stopped = true;
|
|
96
|
-
await built.onStop?.(context);
|
|
97
|
-
};
|
|
98
|
-
const dispose = async (context) => {
|
|
99
|
-
if (disposed) return;
|
|
100
|
-
disposed = true;
|
|
101
|
-
await built.onDispose?.(context);
|
|
102
|
-
};
|
|
103
|
-
return {
|
|
104
|
-
held: {
|
|
105
|
-
value: built.value,
|
|
106
|
-
...built.activities === void 0 ? {} : { activities: built.activities },
|
|
107
|
-
acquire() {
|
|
108
|
-
leases += 1;
|
|
109
|
-
let released = false;
|
|
110
|
-
return async () => {
|
|
111
|
-
if (released) return;
|
|
112
|
-
released = true;
|
|
113
|
-
leases -= 1;
|
|
114
|
-
if (leases > 0 || owed.context === void 0) return;
|
|
115
|
-
const context = owed.context;
|
|
116
|
-
await runCleanups([owed.stop ? () => stop(context) : void 0, owed.dispose ? () => dispose(context) : void 0], "Shared root cleanup failed.");
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
declaration: {
|
|
121
|
-
...built,
|
|
122
|
-
onStop: async (context) => {
|
|
123
|
-
owed = {
|
|
124
|
-
...owed,
|
|
125
|
-
stop: true,
|
|
126
|
-
context
|
|
127
|
-
};
|
|
128
|
-
if (leases === 0) await stop(context);
|
|
129
|
-
},
|
|
130
|
-
onDispose: async (context) => {
|
|
131
|
-
owed = {
|
|
132
|
-
...owed,
|
|
133
|
-
dispose: true,
|
|
134
|
-
context
|
|
135
|
-
};
|
|
136
|
-
if (leases === 0) await dispose(context);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
const depth = (level) => PO_SERVER_SCOPE_LEVELS.indexOf(level);
|
|
142
|
-
/** Throws for a contract listed where it cannot work, so a bad declaration fails at load, not at mount. */
|
|
143
|
-
function checkContracts(plugin) {
|
|
144
|
-
for (const level of PO_SERVER_SCOPE_LEVELS) {
|
|
145
|
-
const provided = plugin.provides?.[level] ?? [];
|
|
146
|
-
if (provided.length > 0 && plugin[level] === void 0) throw new Error(`Server plugin '${plugin.name}' provides contracts at the ${level} level but declares nothing there.`);
|
|
147
|
-
const names = /* @__PURE__ */ new Set();
|
|
148
|
-
for (const contract of provided) {
|
|
149
|
-
if (contract.scope !== level) throw new Error(`Server plugin '${plugin.name}' lists the ${contract.scope} contract '${contract.name}' as provided at the ${level} level.`);
|
|
150
|
-
if (names.has(contract.name)) throw new Error(`Server plugin '${plugin.name}' provides contract '${contract.name}' twice.`);
|
|
151
|
-
names.add(contract.name);
|
|
152
|
-
}
|
|
153
|
-
for (const contract of plugin.injects?.[level] ?? []) if (depth(contract.scope) > depth(level)) throw new Error(`Server plugin '${plugin.name}' cannot inject the ${contract.scope} contract '${contract.name}' at the ${level} level.`);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function defineServerPlugin(plugin) {
|
|
157
|
-
checkContracts(plugin);
|
|
158
|
-
return {
|
|
159
|
-
name: plugin.name,
|
|
160
|
-
...plugin.providerOverrides ? { providerOverrides: plugin.providerOverrides } : {},
|
|
161
|
-
...plugin.provides ? { provides: plugin.provides } : {},
|
|
162
|
-
...plugin.injects ? { injects: plugin.injects } : {},
|
|
163
|
-
inject: [.../* @__PURE__ */ new Set([
|
|
164
|
-
PO_SERVER_HOST_SERVICE,
|
|
165
|
-
PO_SERVER_SCOPE_SERVICE,
|
|
166
|
-
...plugin.inject ?? []
|
|
167
|
-
])],
|
|
168
|
-
async apply(context) {
|
|
169
|
-
const level = requirePoServerHost(context).scope;
|
|
170
|
-
const declaration = plugin[level];
|
|
171
|
-
if (!declaration) return void 0;
|
|
172
|
-
const required = (plugin.injects?.[level] ?? []).map((contract) => contract.name);
|
|
173
|
-
if (required.length === 0) return mount(plugin, declaration, context);
|
|
174
|
-
await context.inject(required, (inner) => mount(plugin, declaration, inner));
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
async function mount(owner, declaration, context) {
|
|
179
|
-
const host = requirePoServerHost(context);
|
|
180
|
-
const level = host.scope;
|
|
181
|
-
const agent = level === "session" ? readPoHeadlessHost(context) : void 0;
|
|
182
|
-
const share = requirePoServerScope(context).plugin(owner);
|
|
183
|
-
/** Every root this level holds, built here or reused, for the levels inside it. */
|
|
184
|
-
const roots = {};
|
|
185
|
-
/** What this level holds of the build's shared values and outer roots, released once it has unwound. */
|
|
186
|
-
const leases = [];
|
|
187
|
-
let withdraw;
|
|
188
|
-
const lifecycle = createPluginLifecycle((signal) => ({
|
|
189
|
-
context,
|
|
190
|
-
host,
|
|
191
|
-
agent,
|
|
192
|
-
signal,
|
|
193
|
-
resources: { async acquire(key, create, dispose) {
|
|
194
|
-
signal.throwIfAborted();
|
|
195
|
-
const lease = await share.acquire(key, create, dispose);
|
|
196
|
-
if (signal.aborted) {
|
|
197
|
-
await lease.release();
|
|
198
|
-
signal.throwIfAborted();
|
|
199
|
-
}
|
|
200
|
-
leases.push(() => lease.release());
|
|
201
|
-
return lease.value;
|
|
202
|
-
} },
|
|
203
|
-
async scopeRoot(rootLevel, root, rootContext) {
|
|
204
|
-
const reused = share.outer(rootLevel).map((held) => held[rootLevel]).find((candidate) => candidate !== void 0);
|
|
205
|
-
if (reused !== void 0) {
|
|
206
|
-
leases.push(reused.acquire());
|
|
207
|
-
roots[rootLevel] = reused;
|
|
208
|
-
return {
|
|
209
|
-
value: reused.value,
|
|
210
|
-
...reused.activities === void 0 ? {} : { activities: reused.activities }
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
const { held, declaration: owned } = holdRoot(await root(rootContext));
|
|
214
|
-
roots[rootLevel] = held;
|
|
215
|
-
return owned;
|
|
216
|
-
},
|
|
217
|
-
hosted: (from) => share.outer(from).length > 0
|
|
218
|
-
}));
|
|
219
|
-
context.effect(() => async () => {
|
|
220
|
-
withdraw?.();
|
|
221
|
-
try {
|
|
222
|
-
await lifecycle.dispose();
|
|
223
|
-
} finally {
|
|
224
|
-
for (const release of leases.splice(0).reverse()) try {
|
|
225
|
-
await release();
|
|
226
|
-
} catch (error) {
|
|
227
|
-
host.context.onNotice(`server plugin '${owner.name}' could not release a shared value (${error instanceof Error ? error.message : String(error)})`);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
const own = (registration) => {
|
|
232
|
-
lifecycle.own(() => registration.dispose());
|
|
233
|
-
if ("mounted" in registration && registration.mounted === false) throw new Error("Server plugin registration was refused.");
|
|
234
|
-
};
|
|
235
|
-
await lifecycle.mount(() => typeof declaration === "function" ? declaration(lifecycle.context) : declaration, async (scope) => {
|
|
236
|
-
for (const service of scope.services ?? []) {
|
|
237
|
-
const fiber = context.plugin(service);
|
|
238
|
-
lifecycle.own(() => fiber.dispose());
|
|
239
|
-
await fiber;
|
|
240
|
-
}
|
|
241
|
-
for (const channel of scope.channels ?? []) own(host.registerChannel(channel()));
|
|
242
|
-
for (const api of scope.api ?? []) own(host.registerApi(api));
|
|
243
|
-
for (const method of scope.methods ?? []) own(method.register(host));
|
|
244
|
-
if (!agent) return;
|
|
245
|
-
const session = scope;
|
|
246
|
-
for (const restriction of session.toolRestrictions ?? []) {
|
|
247
|
-
if (!("restrict" in restriction)) {
|
|
248
|
-
own(agent.registerToolRestriction(restriction));
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
let registration;
|
|
252
|
-
lifecycle.own(() => {
|
|
253
|
-
const current = registration;
|
|
254
|
-
registration = void 0;
|
|
255
|
-
return current?.dispose();
|
|
256
|
-
});
|
|
257
|
-
const refresh = () => {
|
|
258
|
-
if (lifecycle.context.signal.aborted) return;
|
|
259
|
-
const previous = registration;
|
|
260
|
-
registration = void 0;
|
|
261
|
-
previous?.dispose();
|
|
262
|
-
registration = agent.registerToolRestriction(restriction.restrict());
|
|
263
|
-
if ("mounted" in registration && registration.mounted === false) throw new Error(`Server tool restriction ${restriction.source} was refused.`);
|
|
264
|
-
};
|
|
265
|
-
refresh();
|
|
266
|
-
const unsubscribe = restriction.subscribe?.(refresh);
|
|
267
|
-
if (unsubscribe) lifecycle.own(unsubscribe);
|
|
268
|
-
}
|
|
269
|
-
for (const resource of session.resources ?? []) if (resource !== void 0) own(agent.registerResource(resource));
|
|
270
|
-
for (const tool of session.tools ?? []) if ("kind" in tool) own(agent.registerTool({
|
|
271
|
-
...tool,
|
|
272
|
-
async execute(toolCallId, input, signal, update, execution) {
|
|
273
|
-
const invocationSignal = signal ? AbortSignal.any([signal, lifecycle.context.signal]) : lifecycle.context.signal;
|
|
274
|
-
invocationSignal.throwIfAborted();
|
|
275
|
-
try {
|
|
276
|
-
return await tool.execute(input, {
|
|
277
|
-
toolCallId,
|
|
278
|
-
signal: invocationSignal,
|
|
279
|
-
cwd: execution.cwd,
|
|
280
|
-
update: (result) => update?.(result),
|
|
281
|
-
notify: (request) => execution.client.notify(request)
|
|
282
|
-
});
|
|
283
|
-
} catch (error) {
|
|
284
|
-
return {
|
|
285
|
-
content: [{
|
|
286
|
-
type: "text",
|
|
287
|
-
text: error instanceof Error ? error.message : String(error)
|
|
288
|
-
}],
|
|
289
|
-
isError: true
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}));
|
|
294
|
-
else own(agent.registerTool(tool));
|
|
295
|
-
for (const command of session.commands ?? []) if ("kind" in command) own(agent.registerCommand({
|
|
296
|
-
...command,
|
|
297
|
-
execute: (args, execution) => {
|
|
298
|
-
lifecycle.context.signal.throwIfAborted();
|
|
299
|
-
return command.execute(args, {
|
|
300
|
-
cwd: execution.cwd,
|
|
301
|
-
signal: lifecycle.context.signal,
|
|
302
|
-
notify: (request) => execution.client.notify(request)
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
}));
|
|
306
|
-
else own(agent.registerCommand(command));
|
|
307
|
-
for (const hook of session.hooks ?? []) own(agent.registerHook(hook));
|
|
308
|
-
for (const activity of session.activities ?? []) own(agent.registerActivity(activity));
|
|
309
|
-
});
|
|
310
|
-
if (level !== "session") withdraw = share.run(roots);
|
|
311
|
-
return () => lifecycle.dispose();
|
|
312
|
-
}
|
|
313
|
-
//#endregion
|
|
314
|
-
//#region ../../core/po-core/src/extensions/extensionFile.ts
|
|
315
|
-
/**
|
|
316
|
-
* Identity helpers for folder-routed backend files, one per surface.
|
|
317
|
-
*
|
|
318
|
-
* A routed file's default export is its whole contract with the host, and
|
|
319
|
-
* nothing else validates it: the generated entry merges the path's identity in
|
|
320
|
-
* and hands the result to a contribution array, where an excess or misspelled
|
|
321
|
-
* key is invisible. These make the shape checkable at the point it is written,
|
|
322
|
-
* and give the factory form a typed context instead of an implicit any.
|
|
323
|
-
*
|
|
324
|
-
* Most return their argument unchanged, so the value is entirely in the
|
|
325
|
-
* position they check and the inference they supply. The two that do not,
|
|
326
|
-
* `defineTool` and `defineCommand`, add the discriminant the host reads to
|
|
327
|
-
* tell a portable contribution from a raw host declaration.
|
|
328
|
-
*/
|
|
329
|
-
/** Declares non-default route cardinality while preserving the routed surface's inferred host type. */
|
|
330
|
-
function defineRoutedContribution(file, _options) {
|
|
331
|
-
return file;
|
|
332
|
-
}
|
|
333
|
-
/** `resource/<name>.ts`. Declares one package resource. */
|
|
334
|
-
function defineResource(file) {
|
|
335
|
-
return file;
|
|
336
|
-
}
|
|
337
|
-
/** `tool-restriction/<name>.ts`. Declares one tool restriction. */
|
|
338
|
-
function defineToolRestriction(file) {
|
|
339
|
-
return file;
|
|
340
|
-
}
|
|
341
|
-
/** `tool/<name>.ts`. Adds the discriminant the contribution array expects. */
|
|
342
|
-
function defineTool(file) {
|
|
343
|
-
return typeof file === "function" ? (context) => ({
|
|
344
|
-
kind: "tool",
|
|
345
|
-
...file(context)
|
|
346
|
-
}) : {
|
|
347
|
-
kind: "tool",
|
|
348
|
-
...file
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
/** `tool/<name>.server.ts`. A native headless tool, handed to the host untouched. */
|
|
352
|
-
function defineServerTool(file) {
|
|
353
|
-
return file;
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* `root.ts`. Constructs one scope and names what its subtree shares.
|
|
357
|
-
*
|
|
358
|
-
* The answer to a package whose surfaces all read one per-mount object graph.
|
|
359
|
-
* The root builds that graph once, and every routed file beneath it receives
|
|
360
|
-
* it as `context.root`, so the package decomposes into a file per surface
|
|
361
|
-
* without either rebuilding the graph per file or reaching for a module-level
|
|
362
|
-
* singleton.
|
|
363
|
-
*
|
|
364
|
-
* `inject` names the contracts, from this package or another, that the level
|
|
365
|
-
* waits for before it builds this root and restarts with when they change.
|
|
366
|
-
*/
|
|
367
|
-
function defineRoot(file, options) {
|
|
368
|
-
return options?.inject === void 0 ? file : Object.assign(file, { inject: options.inject });
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* The contracts each level waits for: every contract injected by the roots that level builds or
|
|
372
|
-
* reuses, once each. A level none of whose roots inject anything is left out.
|
|
373
|
-
*/
|
|
374
|
-
function composeRootInjects(levels) {
|
|
375
|
-
const injects = {};
|
|
376
|
-
for (const [level, roots] of Object.entries(levels)) {
|
|
377
|
-
const contracts = new Map(roots.flatMap((root) => root.inject ?? []).map((contract) => [contract.name, contract]));
|
|
378
|
-
if (contracts.size > 0) injects[level] = [...contracts.values()];
|
|
379
|
-
}
|
|
380
|
-
return injects;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Folds every root in a scope chain into one set of lifecycle hooks.
|
|
384
|
-
*
|
|
385
|
-
* Start outermost first and tear down innermost first, which is the order the
|
|
386
|
-
* roots were constructed in and the only order in which an inner scope can
|
|
387
|
-
* still rely on its outer one while stopping.
|
|
388
|
-
*/
|
|
389
|
-
function composeRootHooks(...roots) {
|
|
390
|
-
const reversed = [...roots].reverse();
|
|
391
|
-
return {
|
|
392
|
-
async onStart(context) {
|
|
393
|
-
for (const root of roots) await root.onStart?.(context);
|
|
394
|
-
},
|
|
395
|
-
async onStop(context) {
|
|
396
|
-
await runCleanups(reversed.map((root) => () => root.onStop?.(context)), "Root stop failed.");
|
|
397
|
-
},
|
|
398
|
-
async onDispose(context) {
|
|
399
|
-
await runCleanups(reversed.map((root) => () => root.onDispose?.(context)), "Root cleanup failed.");
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
/** `command/<name>.server.ts`. A native headless or portable Po command. */
|
|
404
|
-
function defineServerCommand(file) {
|
|
405
|
-
return file;
|
|
406
|
-
}
|
|
407
|
-
/** `command/<name>.ts`. Adds the discriminant the contribution array expects. */
|
|
408
|
-
function defineCommand(file) {
|
|
409
|
-
return typeof file === "function" ? (context) => ({
|
|
410
|
-
kind: "command",
|
|
411
|
-
...file(context)
|
|
412
|
-
}) : {
|
|
413
|
-
kind: "command",
|
|
414
|
-
...file
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
/** `hook/<event>.ts`. Name the event here too when the handler needs a precise payload. */
|
|
418
|
-
function defineHook(file) {
|
|
419
|
-
return file;
|
|
420
|
-
}
|
|
421
|
-
function defineChannel(file, options) {
|
|
422
|
-
return options?.context === true ? file : () => file();
|
|
423
|
-
}
|
|
424
|
-
/** `api/<segments>/route.ts`. The folder path is the route. */
|
|
425
|
-
function defineRoute(file) {
|
|
426
|
-
return file;
|
|
427
|
-
}
|
|
428
|
-
/** `method/<member>.ts`. Build the value with `defineServerMethod` to keep schema inference. */
|
|
429
|
-
function defineMethod(file) {
|
|
430
|
-
return file;
|
|
431
|
-
}
|
|
432
|
-
//#endregion
|
|
433
|
-
export { defineHook as a, defineRoot as c, defineServerCommand as d, defineServerTool as f, runCleanups as g, defineServerPlugin as h, defineCommand as i, defineRoute as l, defineToolRestriction as m, composeRootInjects as n, defineMethod as o, defineTool as p, defineChannel as r, defineResource as s, composeRootHooks as t, defineRoutedContribution as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./majorModes-BB0PXgFn.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./serverPlugin-CELT6P0Q.js";
|
package/dist/web-DCP7ELJj.js
DELETED