@agimon-ai/po-cloudflare 0.0.2-alpha.2 → 0.0.2-alpha.21

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.
Files changed (283) hide show
  1. package/README.md +4 -3
  2. package/dist/abort-signals-2GUraIGq.js +34 -0
  3. package/dist/agent-DZ-OKOHn.js +6850 -0
  4. package/dist/anthropic-messages-5ODquUB-.js +14317 -0
  5. package/dist/{apiContracts-CHOiCbS_.js → apiContracts-b33nSAAI.js} +18 -81
  6. package/dist/{approval-BMXqnTYd.js → approval-r3NnI1VC.js} +19 -3
  7. package/dist/{approvalPrompt-Bg1JrEEY.js → approvalPrompt-DWoXxu3S.js} +2 -2
  8. package/dist/artifactFiles-DLCReI0-.js +1 -0
  9. package/dist/assets/assets/{CodeEditorView-BnyZHaYM.js → CodeEditorView-XeNS0L9M.js} +2 -2
  10. package/dist/assets/assets/{abnfDiagram-WEYOIA3C-muME0eCj.js → abnfDiagram-WEYOIA3C-B6ZW0nkR.js} +2 -2
  11. package/dist/assets/assets/{architecture-WOLXFQ4H-DMnhK1WH.js → architecture-WOLXFQ4H-bVR64sHO.js} +1 -1
  12. package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DKn7XGP7.js → architectureDiagram-ZHVYKT53-D7tZz3io.js} +2 -2
  13. package/dist/assets/assets/{blockDiagram-RJAE7QA3-DtDctXZg.js → blockDiagram-RJAE7QA3-DdwScfiX.js} +2 -2
  14. package/dist/assets/assets/{c4Diagram-XDPPPE54-23pGLJeP.js → c4Diagram-XDPPPE54-DgSxZJCV.js} +2 -2
  15. package/dist/assets/assets/channel-TPcVvp_3.js +2 -0
  16. package/dist/assets/assets/{chunk-2E7WHVMD-BZ2nGNPa.js → chunk-2E7WHVMD-D5TXC2SM.js} +2 -2
  17. package/dist/assets/assets/{chunk-4EMNKR2T-Dui1SYFi.js → chunk-4EMNKR2T-BWhOSvo1.js} +2 -2
  18. package/dist/assets/assets/{chunk-55XCU76K-CUB92Evl.js → chunk-55XCU76K-HkkBzLtZ.js} +2 -2
  19. package/dist/assets/assets/{chunk-7S6XSTFO-CVayPHfE.js → chunk-7S6XSTFO-CBnjycLU.js} +2 -2
  20. package/dist/assets/assets/{chunk-AQDTSKZB---wakYqY.js → chunk-AQDTSKZB-75lIIq8T.js} +2 -2
  21. package/dist/assets/assets/{chunk-DSNLSHJZ-DfbdohUR.js → chunk-DSNLSHJZ-D8PpnXMk.js} +2 -2
  22. package/dist/assets/assets/{chunk-HAGFOTED-Dr4KRh-b.js → chunk-HAGFOTED-CXRS2NIN.js} +2 -2
  23. package/dist/assets/assets/{chunk-HNE4Q36P-D06cR91Z.js → chunk-HNE4Q36P-BocUqS94.js} +2 -2
  24. package/dist/assets/assets/{chunk-NQOKRVIF-Ca4gLeDb.js → chunk-NQOKRVIF-CHf_ogYT.js} +2 -2
  25. package/dist/assets/assets/{chunk-UHW7PFBP-DmL638jN.js → chunk-UHW7PFBP-DrW1PaIv.js} +2 -2
  26. package/dist/assets/assets/{chunk-VQ5W62QI-pkxSW5Zj.js → chunk-VQ5W62QI-CLoA7bFm.js} +2 -2
  27. package/dist/assets/assets/{chunk-WQQL4CDK-Dcc8hV4U.js → chunk-WQQL4CDK-BmBsrj9I.js} +2 -2
  28. package/dist/assets/assets/chunk-XXDRQBXY-iFE4Tl8c.js +2 -0
  29. package/dist/assets/assets/{chunk-YZO67HFG-B_HKcFrw.js → chunk-YZO67HFG-DShE_cgv.js} +2 -2
  30. package/dist/assets/assets/{chunk-ZAUX2LTX-DAzZUysS.js → chunk-ZAUX2LTX-B3oLvSXy.js} +2 -2
  31. package/dist/assets/assets/{chunk-ZCHMQSOR-DAVgjymL.js → chunk-ZCHMQSOR-B14vKK7C.js} +2 -2
  32. package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Fsw8TGPu.js → classDiagram-v2-4MYWR3UA-Da8elIW2.js} +2 -2
  33. package/dist/assets/assets/{cose-bilkent-JH36ORCC-CgUbISYV.js → cose-bilkent-JH36ORCC-Du4tGtiJ.js} +2 -2
  34. package/dist/assets/assets/{cynefin-EF2NZ3EQ-D1LxAU2x.js → cynefin-EF2NZ3EQ-Cyj6i_WI.js} +1 -1
  35. package/dist/assets/assets/{cynefinDiagram-WF24UDRP-D54I1jil.js → cynefinDiagram-WF24UDRP-DFWXwO7A.js} +2 -2
  36. package/dist/assets/assets/{dagre-NK4GIZVX-DC7zL16U.js → dagre-NK4GIZVX-C1wB_cf-.js} +2 -2
  37. package/dist/assets/assets/{diagram-CBK3MWTC-DB0ptUdz.js → diagram-CBK3MWTC-MYCOBYl6.js} +2 -2
  38. package/dist/assets/assets/{diagram-I5XIIV2D-CozSftPJ.js → diagram-I5XIIV2D-BFYbKUFf.js} +2 -2
  39. package/dist/assets/assets/{diagram-ODIL2UCW-g3WOEWDS.js → diagram-ODIL2UCW-6siqTpv_.js} +2 -2
  40. package/dist/assets/assets/{diagram-PFBEJUXE-CFxGeOYi.js → diagram-PFBEJUXE-CaBr9CoB.js} +2 -2
  41. package/dist/assets/assets/{diagram-RJA3I4VV-BQBsLche.js → diagram-RJA3I4VV-DAvmuDpc.js} +2 -2
  42. package/dist/assets/assets/{diagram-TYUNFSNR-DrjpW2yq.js → diagram-TYUNFSNR-CJnhgCpo.js} +2 -2
  43. package/dist/assets/assets/{dist-DjL8d1jZ.js → dist-BQ4W1R18.js} +2 -2
  44. package/dist/assets/assets/{dist-DvgCCshF.js → dist-BnzFckPF.js} +2 -2
  45. package/dist/assets/assets/{dist-gfbb4ygy.js → dist-CFtBpcYL.js} +2 -2
  46. package/dist/assets/assets/{dist-BabjcJ3j.js → dist-CIQX1z4W.js} +2 -2
  47. package/dist/assets/assets/{dist-XIZum9n5.js → dist-ChHYoe9_.js} +2 -2
  48. package/dist/assets/assets/{dist-1-mhYUBH.js → dist-DKxZO8d9.js} +2 -2
  49. package/dist/assets/assets/{dist-h6SOnP8-.js → dist-DL6z28wl.js} +2 -2
  50. package/dist/assets/assets/{dist-B3JXhDWV.js → dist-DNyn1p9Z.js} +2 -2
  51. package/dist/assets/assets/{dist-Izr2SB3q.js → dist-qYlLXIa8.js} +2 -2
  52. package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-BZS_aAve.js → ebnfDiagram-V4P3TTPT-AUcqDTM3.js} +2 -2
  53. package/dist/assets/assets/{elk-QONTBCTQ-B2ksVmMA.js → elk-QONTBCTQ-aA10PEHJ.js} +2 -2
  54. package/dist/assets/assets/{erDiagram-KYQIGQAA-7P6zF-Z-.js → erDiagram-KYQIGQAA-hhYiqA-x.js} +2 -2
  55. package/dist/assets/assets/{eventmodeling-K75KTNOO-RoGQoRq-.js → eventmodeling-K75KTNOO-BQZqbRo5.js} +1 -1
  56. package/dist/assets/assets/flowDiagram-IUGLLWBU-BuyysPYC.js +1 -0
  57. package/dist/assets/assets/{ganttDiagram-R7GPNTJY-CTOlRy7M.js → ganttDiagram-R7GPNTJY-CLON1GpW.js} +2 -2
  58. package/dist/assets/assets/{gitGraph-VSP46ZUC-CPqytIt0.js → gitGraph-VSP46ZUC-DbmvNwR2.js} +1 -1
  59. package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BffLxuxg.js → gitGraphDiagram-PDYL7XHY-DJVO0WlL.js} +2 -2
  60. package/dist/assets/assets/index-BiTVAj5E.js +155 -0
  61. package/dist/assets/assets/index-CBNQEGK3.css +1 -0
  62. package/dist/assets/assets/{info-OHQRW6UA-BI8RK0Ow.js → info-OHQRW6UA-CAt3Nt3g.js} +1 -1
  63. package/dist/assets/assets/{infoDiagram-MVDRKAX5-DUIst1FB.js → infoDiagram-MVDRKAX5-DTuqH-Zb.js} +2 -2
  64. package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CA17Eho5.js → ishikawaDiagram-HPEHV2GE-BnWvdonT.js} +2 -2
  65. package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CNri5Ap9.js → journeyDiagram-BOSHW7O7-Btxtcgvl.js} +2 -2
  66. package/dist/assets/assets/{kanban-definition-FNSA4HC5-DnXna7jO.js → kanban-definition-FNSA4HC5-q7ek9o_H.js} +2 -2
  67. package/dist/assets/assets/{line-BsXJZn93.js → line-B7yLilmC.js} +2 -2
  68. package/dist/assets/assets/{linear-BHYaD5T0.js → linear-y8aSKEli.js} +2 -2
  69. package/dist/assets/assets/{mermaid-parser.core-B64Eo-8a.js → mermaid-parser.core-B4rH50nD.js} +4 -4
  70. package/dist/assets/assets/{mermaid.core-Zw9qmTzg.js → mermaid.core-DnRVHTjE.js} +5 -5
  71. package/dist/assets/assets/{mindmap-definition-6OY57UG3-E5qz4KNc.js → mindmap-definition-6OY57UG3-DT9Afs2v.js} +2 -2
  72. package/dist/assets/assets/{packet-JDAUHWVQ-DgfizTr3.js → packet-JDAUHWVQ-CnqNbu4p.js} +1 -1
  73. package/dist/assets/assets/{pegDiagram-ECIUJNBX-D0WK_agM.js → pegDiagram-ECIUJNBX-cvxdBBFq.js} +2 -2
  74. package/dist/assets/assets/{pie-XZMESJXO-PJR1sXD4.js → pie-XZMESJXO-etXMNsaL.js} +1 -1
  75. package/dist/assets/assets/{pieDiagram-GNMPY74T-CPuU-NTs.js → pieDiagram-GNMPY74T-CBN-R3_j.js} +2 -2
  76. package/dist/assets/assets/{quadrantDiagram-D57K4MC3-5C9yjM1b.js → quadrantDiagram-D57K4MC3-C5jjVPIH.js} +2 -2
  77. package/dist/assets/assets/{radar-ABXABTNO-BspdXgl0.js → radar-ABXABTNO-CAMd_mrV.js} +1 -1
  78. package/dist/assets/assets/{railroad-I3PHUGI6-Ct0a6hLD.js → railroad-I3PHUGI6-DIs3auoe.js} +1 -1
  79. package/dist/assets/assets/{railroad-abnf-LNEFI6M7-fduYB4SA.js → railroad-abnf-LNEFI6M7-CJXr1qWy.js} +1 -1
  80. package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-CTQa8Sww.js → railroad-ebnf-DWYD2UWJ-DfwtykqI.js} +1 -1
  81. package/dist/assets/assets/{railroad-peg-JR7BVNR7-DatoH3GJ.js → railroad-peg-JR7BVNR7-B8beAhTs.js} +1 -1
  82. package/dist/assets/assets/{railroadDiagram-Y72NRBL7-C8sWN8l2.js → railroadDiagram-Y72NRBL7-BDcQE-EL.js} +2 -2
  83. package/dist/assets/assets/{requirementDiagram-EQYSW5RA-CqRz4RcT.js → requirementDiagram-EQYSW5RA-KJ4-QjZM.js} +2 -2
  84. package/dist/assets/assets/{sankeyDiagram-SY24JHO5-bdiuKKlX.js → sankeyDiagram-SY24JHO5-VjIB-Ybr.js} +2 -2
  85. package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-Zy-8I0Hy.js → sequenceDiagram-BLEHNHQU-MfMuWq1M.js} +2 -2
  86. package/dist/assets/assets/{src-gihY33R9.js → src-BAxIj8GJ.js} +2 -2
  87. package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-DXQERPvz.js → stateDiagram-v2-A6IESKWZ-mHwLRRCY.js} +2 -2
  88. package/dist/assets/assets/{swimlanes-B3ENRKFQ-1gjZQElg.js → swimlanes-B3ENRKFQ-PArlYoqV.js} +2 -2
  89. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-The09-5S.js +9 -0
  90. package/dist/assets/assets/{timeline-definition-JXYKGLGB-CTeYEw-9.js → timeline-definition-JXYKGLGB-B2nKiNFU.js} +2 -2
  91. package/dist/assets/assets/{treeView-D4JQ5SDB-DD-EsLLT.js → treeView-D4JQ5SDB-gU23_RuI.js} +1 -1
  92. package/dist/assets/assets/{treemap-SAJKECNS-BLdFeS5J.js → treemap-SAJKECNS-CiqoMvZa.js} +1 -1
  93. package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C1GikSSP.js → usecaseDiagram-WPOLBNNX-DpeoWpMK.js} +2 -2
  94. package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-B1FoA3g8.js → vennDiagram-Q3Y3IDCW-C31iGKvM.js} +2 -2
  95. package/dist/assets/assets/{wardley-7MLQ67FV-BrHb5Bjf.js → wardley-7MLQ67FV-CIzHhzNw.js} +1 -1
  96. package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CmPLD1X4.js → wardleyDiagram-IVAIDKWA-DIIkoezc.js} +2 -2
  97. package/dist/assets/assets/{webpack-BYWDFj_R.js → webpack-RFseiMZW.js} +2 -2
  98. package/dist/assets/assets/{xychartDiagram-4URNHDU4-DR5pfEjl.js → xychartDiagram-4URNHDU4-QiHL91kC.js} +2 -2
  99. package/dist/assets/bundle-asset-policy.json +1 -1
  100. package/dist/assets/index.html +2 -2
  101. package/dist/assets/plugins/assets/base-CKKRZ7-h.css +2 -0
  102. package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
  103. package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
  104. package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
  105. package/dist/assets/plugins/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
  106. package/dist/assets/plugins/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
  107. package/dist/assets/plugins/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
  108. package/dist/assets/plugins/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
  109. package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
  110. package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  111. package/dist/assets/plugins/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  112. package/dist/assets/plugins/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  113. package/dist/assets/plugins/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  114. package/dist/assets/plugins/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  115. package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
  116. package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
  117. package/dist/assets/plugins/chunks/po-web-runtime-BJDT6Lbw.js +1 -0
  118. package/dist/assets/plugins/compositions.json +1 -0
  119. package/dist/assets/plugins/slots/approval.293d9a00-BXIhaPlQ.js +2 -0
  120. package/dist/assets/plugins/slots/artifacts.24567664-ZzR0gbvy.js +1 -0
  121. package/dist/assets/plugins/slots/author.0998a880-DAbA-7rb.js +93 -0
  122. package/dist/assets/plugins/slots/autocompact.dd97d013-IVq4Z6qm.js +1 -0
  123. package/dist/assets/plugins/slots/builtin-tools.36d7400b-CpCLjRRN.js +7 -0
  124. package/dist/assets/plugins/slots/codemode.8eaee717-VWt9PqsU.js +10 -0
  125. package/dist/assets/plugins/slots/domain.5e95fc37-5PIUBqDe.js +1 -0
  126. package/dist/assets/plugins/slots/edit.385c9aa9-DNAjPNG5.js +7 -0
  127. package/dist/assets/plugins/slots/files.daf34ed8-CQaTz0i1.js +2 -0
  128. package/dist/assets/plugins/slots/goal.77ec9930-B8EkarBq.js +1 -0
  129. package/dist/assets/plugins/slots/grep.02052cdc-CIRhO2gY.js +1 -0
  130. package/dist/assets/plugins/slots/help.ecd4c0f9-naMF9NN1.js +3 -0
  131. package/dist/assets/plugins/slots/log.a86eb6d0-D5__rAZJ.js +4 -0
  132. package/dist/assets/plugins/slots/mcp.974af249-DPNHn9XH.js +109 -0
  133. package/dist/assets/plugins/slots/plan.bafb8f68-C5GEpybF.js +3 -0
  134. package/dist/assets/plugins/slots/profile.48851a1d-yX6tzV3x.js +1 -0
  135. package/dist/assets/plugins/slots/prompts.723d7748-B7zpPeoF.js +3 -0
  136. package/dist/assets/plugins/slots/read.46bf6536-Cw5Z5z5T.js +1 -0
  137. package/dist/assets/plugins/slots/runner.53e9bd76-CiQR_FPX.js +8 -0
  138. package/dist/assets/plugins/slots/skill.086701a4-CL6h_F-x.js +4 -0
  139. package/dist/assets/plugins/slots/vault.ac9935c8-DKERQYg4.js +1 -0
  140. package/dist/assets/plugins/slots/voice.e85ca7f9-DEgb-U9m.js +1 -0
  141. package/dist/assets/pwa/pwa.js +12 -12
  142. package/dist/assets/pwa/sw.js +4 -4
  143. package/dist/{atomicJson-BJfPFSYF.js → atomicJson-C_7F2zD1.js} +2 -3
  144. package/dist/azure-openai-config-COZUaRzM.js +55 -0
  145. package/dist/azure-openai-responses-Cs4k2HOd.js +183 -0
  146. package/dist/{backgroundWork-CeFrbRnj.js → backgroundWork-B1mPDYlf.js} +1 -1
  147. package/dist/browser-BWf8OMfl.js +3 -0
  148. package/dist/childSession-Cf2-kH4O.js +22 -0
  149. package/dist/classifier-shared-IhSH9hhh.js +106 -0
  150. package/dist/cloudflare-workers-ai-system-one-BNnc8MuH.js +52 -0
  151. package/dist/{codemode-DbPu0yJN.js → codemode-DQFmrosw.js} +5 -2
  152. package/dist/contracts-DD3f1Lpn.js +19 -0
  153. package/dist/diagnostics-1lYFeSJe.js +131 -0
  154. package/dist/{server-D3PQk1Gt.js → dist-B-vqs6tA.js} +1 -546
  155. package/dist/dist-Dvx5mlIR.js +50 -0
  156. package/dist/env-api-keys-Bow6MJe2.js +32 -0
  157. package/dist/error-body-CJk7jMUh.js +102 -0
  158. package/dist/esm-BKJy3O9-.js +1553 -0
  159. package/dist/exports-B0WMEXCP.js +34 -0
  160. package/dist/{remoteMcp-CMqZldeA.js → exports-D09VsUk-.js} +1153 -175
  161. package/dist/{exports-BNZz2DNU.js → exports-nV43ShA7.js} +25 -9
  162. package/dist/{extensionFile-CXOa5G4C.js → extensionFile-DNM4xsje.js} +26 -2
  163. package/dist/github-copilot-headers-D1RedfLn.js +22 -0
  164. package/dist/google-generative-ai-DXTILNT0.js +328 -0
  165. package/dist/google-shared-e4JDCTVP.js +19588 -0
  166. package/dist/google-vertex-a1lzvJfq.js +374 -0
  167. package/dist/{domains-BNjGTOPj.js → harnessState-Dwrk3lfv.js} +175 -16
  168. package/dist/{harnessStore-BT706Ly6.js → harnessStore-Z7yDLO45.js} +4 -5
  169. package/dist/hash-Dt6RIbkn.js +16 -0
  170. package/dist/headers-CwtEVQvr.js +17 -0
  171. package/dist/help-w6vVEZGL.js +101 -0
  172. package/dist/hubChannel-Cm-sxOvU.js +21 -0
  173. package/dist/hubRevisions-58pU2dW5.js +363 -0
  174. package/dist/identity-BgfHobJH.js +165 -0
  175. package/dist/index.edge-COJJ_Dv2.js +937 -0
  176. package/dist/index.edge-ChYa2LU4.js +14 -0
  177. package/dist/index.edge-ClLTmPFz.js +191 -0
  178. package/dist/index.edge-DyYmurS7.js +62 -0
  179. package/dist/index.edge-K0w5auwG.js +56 -0
  180. package/dist/index.edge-Xa5LLtxz.js +67 -0
  181. package/dist/iso-BPQViXM8.js +10 -0
  182. package/dist/{layeredConfig-DPQAnlXD.js → layeredConfig-CUkYUs1f.js} +193 -15
  183. package/dist/{majorModes-DbCfLZH3.js → majorModes-BB0PXgFn.js} +4 -14
  184. package/dist/majorModes-C7vtBs4D.js +1 -0
  185. package/dist/{mcpProjection-BsP0IEnb.js → mcpProjection-BtKzB6oK.js} +2 -2
  186. package/dist/migrations-5gbLIQIc.js +32 -0
  187. package/dist/mistral-conversations-CLwhVDjA.js +689 -0
  188. package/dist/modeDefinition-C3Zbrw48.js +44 -0
  189. package/dist/models-Chzm15vC.js +1511 -0
  190. package/dist/narration-CpRurWLO.js +127 -0
  191. package/dist/node-BT4GsJQp.js +2479 -0
  192. package/dist/node-DytJOfYf.js +23 -0
  193. package/dist/notification-kckG3leF.js +102 -0
  194. package/dist/openai-codex-responses-DRMONxDE.js +1210 -0
  195. package/dist/openai-completions-CcNhAv8l.js +984 -0
  196. package/dist/openai-decisions-BsFjaAGw.js +142 -0
  197. package/dist/openai-kPrtlgjl.js +17357 -0
  198. package/dist/openai-prompt-cache-Bc6qNWt0.js +8 -0
  199. package/dist/openai-responses-C5Gp2UOV.js +281 -0
  200. package/dist/openai-responses-shared-BbSi-wBR.js +661 -0
  201. package/dist/openrouter-cost-CvC52g3b.js +30 -0
  202. package/dist/openrouter-images-BoHl8g8p.js +124 -0
  203. package/dist/{hubChannel-BHQyzcOo.js → packageApi-t1oCjNDU.js} +4 -41
  204. package/dist/photon_rs_bg.wasm +0 -0
  205. package/dist/pi-messages-BXfrZLC7.js +312 -0
  206. package/dist/piConfig-DQzlbPY4.js +126 -0
  207. package/dist/piSettings-Cf1QofNe.js +1 -0
  208. package/dist/platform-BIEiM4TG.js +113 -0
  209. package/dist/pluginContributions-Be9EnCAW.js +16 -0
  210. package/dist/pluginProtocol-BqXXyI4z.js +80 -0
  211. package/dist/{protocol-Xpm_mCNN.js → protocol-DDL8geoS.js} +2 -2
  212. package/dist/provider-env-CxhHUFiF.js +38 -0
  213. package/dist/provider-retry-BUoezuw8.js +79 -0
  214. package/dist/sanitize-unicode-C3Ec8oL6.js +26 -0
  215. package/dist/sealedChannel-BeWNTWys.js +27 -0
  216. package/dist/server-AbXyhXlY.js +217 -0
  217. package/dist/server-B6dqQoh2.js +1518 -0
  218. package/dist/server-BIHo9TFu.js +505 -0
  219. package/dist/{server-BZh1ZXz_.js → server-BJ7DNzCp.js} +8 -19
  220. package/dist/server-BO-j_GbD.js +15106 -0
  221. package/dist/{server-D4W7EdJY.js → server-BQzAiMns.js} +16 -16
  222. package/dist/server-BR7SZtj7.js +3125 -0
  223. package/dist/{server-BE6VqEiA.js → server-BT2ORK83.js} +20 -12
  224. package/dist/server-BbSHYRnY.js +295 -0
  225. package/dist/server-BqoKlEGk.js +1806 -0
  226. package/dist/{server-tvgQ99rv.js → server-Busl0pQI.js} +370 -120
  227. package/dist/server-CIHM4jqu.js +1116 -0
  228. package/dist/server-CgWSSdvd.js +576 -0
  229. package/dist/{server-Dpgh8PDh.js → server-Co_UWKrR.js} +14 -5
  230. package/dist/{server-BAAL9-NA.js → server-CuEPb7u-.js} +3 -10
  231. package/dist/{server-Dt4y1rZD.js → server-D40q2Jpx.js} +47 -27
  232. package/dist/server-DCyf2Asb.js +679 -0
  233. package/dist/server-DH7PfLln.js +148 -0
  234. package/dist/server-DJ8bc89M.js +934 -0
  235. package/dist/server-DYdp0W9v.js +489 -0
  236. package/dist/server-DsdPEYGu.js +639 -0
  237. package/dist/server-DymH4Ucq.js +189 -0
  238. package/dist/server-IqECnUrb.js +834 -0
  239. package/dist/{server-36iuA3MI.js → server-KBgW77zh.js} +3 -3
  240. package/dist/server-RW_9R3R3.js +1522 -0
  241. package/dist/server-aUit8j6r.js +1028 -0
  242. package/dist/{server-DJAanjoI.js → server-gifRriZK.js} +491 -103
  243. package/dist/server-nkUlqnAL.js +2658 -0
  244. package/dist/server-oxyEbv1a.js +1256 -0
  245. package/dist/{server-D8ndq0wL.js → server-ub3s16Mc.js} +11 -9
  246. package/dist/{build-2gFaVEfG.js → serverPlugin-CELT6P0Q.js} +3946 -3
  247. package/dist/{sessionConfig-rBQgzXlT.js → sessionConfig-RQGvfm6E.js} +550 -760
  248. package/dist/simple-options-CFzI5Pd_.js +156 -0
  249. package/dist/streaming-json-BWTHTwz-.js +858 -0
  250. package/dist/system-one-shared-CiIrx29d.js +132 -0
  251. package/dist/{notification-D76PSL7r.js → telemetry-Csv1ZxAn.js} +1 -92
  252. package/dist/transform-messages-D77af7Bx.js +356 -0
  253. package/dist/truncate-M3KbFyVj.js +89 -0
  254. package/dist/{server-A-_GFpPr.js → type-ASYnCGVW.js} +10 -1031
  255. package/dist/typesafe-system-one-DGxeggJh.js +37 -0
  256. package/dist/uuid-B0QJx6Kr.js +31 -0
  257. package/dist/{validation-D77NZBrx.js → validation-BJxVSAwx.js} +8 -3
  258. package/dist/{value-Djvc2foV.js → value-_W31So3B.js} +1 -1
  259. package/dist/vaultSettings-Di3n5YIg.js +328 -0
  260. package/dist/voiceTools-RMn4HvWo.js +246 -0
  261. package/dist/web-DCP7ELJj.js +3 -0
  262. package/dist/worker.js +95288 -49863
  263. package/dist/workflow-B7qx0Vv9.js +79 -0
  264. package/package.json +37 -22
  265. package/wrangler.jsonc +4 -2
  266. package/dist/assets/assets/channel-CMrEzemr.js +0 -2
  267. package/dist/assets/assets/chunk-XXDRQBXY-CFf0S6bN.js +0 -2
  268. package/dist/assets/assets/flowDiagram-IUGLLWBU-BhGbWVf0.js +0 -1
  269. package/dist/assets/assets/index-Bx_K4Joy.js +0 -155
  270. package/dist/assets/assets/index-DZM68mTk.css +0 -1
  271. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-q91tR8ri.js +0 -9
  272. package/dist/contextProjection-DVP2Vc5j.js +0 -188
  273. package/dist/harnessState-gmzJcPGt.js +0 -88
  274. package/dist/harnessStore-BiH9vSuD.js +0 -1
  275. package/dist/index.edge-BgSx_gRO.js +0 -45
  276. package/dist/majorModes-BvWNqoHt.js +0 -1
  277. package/dist/piSettings-B6fsgIBA.js +0 -1
  278. package/dist/platform-B4AAgwJ0.js +0 -16
  279. package/dist/platformFiles-C_bXo4Ig.js +0 -39
  280. package/dist/server-BZaPPoQp.js +0 -592
  281. package/dist/server-D75MWDhB.js +0 -118
  282. package/dist/server-r358hzQg.js +0 -280
  283. package/dist/serverPlugin-BOI6c6s5.js +0 -3393
@@ -0,0 +1,834 @@
1
+ import { Hn as BACKGROUND_CONTEXT, Qn as readPoFs, Sn as getOrThrow, V as String$1, Wn as withAbortSignal, bt as _Array_, hn as poHomeDirectory, pt as _Object_, tr as requirePoFs, v as composeServerProviderOverrides, vn as nodeHost } from "./serverPlugin-CELT6P0Q.js";
2
+ import { l as removePath, u as writeFileAtomic } from "./platform-BIEiM4TG.js";
3
+ import { C as isScalar, S as isMap, b as Document, s as globalPoConfigDirectory, v as parseDocument, w as isSeq } from "./layeredConfig-CUkYUs1f.js";
4
+ import "./piSettings-Cf1QofNe.js";
5
+ import { i as resolvePluginEntriesAsync, l as pluginDirectoryForSource, n as listDomainNamesAsync, r as loadDomainsAsync, s as expandDomainNames } from "./harnessState-Dwrk3lfv.js";
6
+ import "./value-_W31So3B.js";
7
+ import { t as loadHarnessStateAsync } from "./harnessStore-Z7yDLO45.js";
8
+ import { c as defineRoot, h as defineServerPlugin, l as defineRoute, n as composeRootInjects, s as defineResource, t as composeRootHooks, u as defineRoutedContribution } from "./extensionFile-DNM4xsje.js";
9
+ import { n as readPackageResource, t as packageResourcePath } from "./index.edge-DyYmurS7.js";
10
+ import { r as PO_USER_MCP_CONFIG_FILE, t as PO_MCP_PROJECTION_RESOLVER_SERVICE } from "./mcpProjection-BtKzB6oK.js";
11
+ import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-DQFmrosw.js";
12
+ import { i as materializePluginEntries, n as skillName, r as splitFrontmatter, t as stageMcpResources } from "./index.edge-K0w5auwG.js";
13
+ import "./voiceTools-RMn4HvWo.js";
14
+ import path from "node:path";
15
+ //#region ../../foundations/po-domain/src/services/mcpFilter/core.ts
16
+ /**
17
+ * Unions the mcp allowlists of the selected domains in a loaded manifest.
18
+ *
19
+ * Returns undefined when any selected domain omits `mcp`, which means "give me
20
+ * everything". Filtering only kicks in once every selected domain has opted in,
21
+ * so a domain that has not been migrated yet cannot silently lose its tools.
22
+ */
23
+ function mcpAllowlistOf(manifest, domainNames) {
24
+ const expanded = expandDomainNames(manifest, domainNames);
25
+ if (expanded.length === 0) return void 0;
26
+ const servers = /* @__PURE__ */ new Set();
27
+ const proxy = /* @__PURE__ */ new Set();
28
+ for (const name of expanded) {
29
+ const allowlist = manifest.domains[name]?.mcp;
30
+ if (!allowlist) return void 0;
31
+ for (const server of allowlist.servers ?? []) servers.add(server);
32
+ for (const upstream of allowlist.proxy ?? []) proxy.add(upstream);
33
+ }
34
+ return {
35
+ servers: [...servers],
36
+ proxy: [...proxy]
37
+ };
38
+ }
39
+ /** `resolveMcpAllowlist` over an injected FileSystem. */
40
+ async function resolveMcpAllowlistAsync(fs, repoRoot, domainNames, context, homeDirectory) {
41
+ return mcpAllowlistOf(await loadDomainsAsync(fs, repoRoot, context, homeDirectory), domainNames);
42
+ }
43
+ //#endregion
44
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/_lib/domainServerResources.ts
45
+ /** The optional plugin folder of reusable code-mode scripts. */
46
+ const CODEMODE_FOLDER = "codemode";
47
+ /**
48
+ * Retain valid domains behind selection conditions; a broken neighbor must not prevent startup.
49
+ * Also finds each plugin's `codemode/` folder; code mode shows only the session's active domains.
50
+ */
51
+ async function domainServerResources(context, fs, io) {
52
+ const scripts = [];
53
+ const home = context.environment.HOME ?? nodeHost.homeDirectory();
54
+ for (const domain of await listDomainNamesAsync(fs, context.repoRoot, io, home)) try {
55
+ const plugins = await materializePluginEntries(await resolvePluginEntriesAsync(fs, context.repoRoot, [domain], [], io, home));
56
+ for (const plugin of plugins) {
57
+ const directory = `${plugin.directory}/${CODEMODE_FOLDER}`;
58
+ if ((await fs.listDir(directory, io)).ok) scripts.push({
59
+ domain,
60
+ directory
61
+ });
62
+ }
63
+ } catch (error) {
64
+ await context.client.notify({
65
+ title: `Po domain ${domain} unavailable`,
66
+ body: error instanceof Error ? error.message : String(error),
67
+ level: "warning"
68
+ });
69
+ }
70
+ return { scripts };
71
+ }
72
+ //#endregion
73
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/root.server.ts
74
+ var root_server_default = defineRoot(async ({ agent, context: root, signal }) => {
75
+ const services = [];
76
+ if (!agent) return {
77
+ value: { resources: [] },
78
+ services
79
+ };
80
+ const fs = requirePoFs(root);
81
+ const io = withAbortSignal(signal, BACKGROUND_CONTEXT);
82
+ const execution = agent.context;
83
+ const home = execution.environment.HOME ?? nodeHost.homeDirectory();
84
+ const resolver = { async resolve(domains) {
85
+ const { state } = await loadHarnessStateAsync(fs, { ...execution.environment }, io);
86
+ const directory = getOrThrow(await fs.createTempDir("po-domain-mcp-", io));
87
+ try {
88
+ const plugins = await materializePluginEntries(await resolvePluginEntriesAsync(fs, execution.repoRoot, [...domains], [...state.pluginDirectories], io, home));
89
+ return {
90
+ projection: (await stageMcpResources(execution.repoRoot, plugins, {
91
+ enabled: true,
92
+ temporaryDirectory: directory,
93
+ mcpAllowlist: await resolveMcpAllowlistAsync(fs, execution.repoRoot, [...domains], io),
94
+ userMcpConfigPath: `${poHomeDirectory(home, execution.environment)}/${PO_USER_MCP_CONFIG_FILE}`
95
+ })).mcpProjection,
96
+ cleanup: () => removePath(fs, directory, BACKGROUND_CONTEXT)
97
+ };
98
+ } catch (error) {
99
+ await removePath(fs, directory, BACKGROUND_CONTEXT);
100
+ throw error;
101
+ }
102
+ } };
103
+ services.push((cordis) => {
104
+ cordis.plugin((provider) => {
105
+ provider.provide(PO_MCP_PROJECTION_RESOLVER_SERVICE, resolver);
106
+ });
107
+ });
108
+ const { scripts } = await domainServerResources(agent.context, fs, io);
109
+ if (scripts.length > 0) root.inject([PO_CODEMODE_SERVICE], (scoped) => {
110
+ const codemode = readPoCodemode(scoped);
111
+ const registrations = scripts.map((entry) => codemode?.registerScripts("@agimon-ai/po-domain", entry));
112
+ return () => {
113
+ for (const registration of registrations) registration?.dispose();
114
+ };
115
+ });
116
+ return {
117
+ value: { resources: [] },
118
+ services
119
+ };
120
+ });
121
+ //#endregion
122
+ //#region ../../foundations/po-domain/src/types/webDomainSettings.ts
123
+ /** Query parameter listing the domains an upload joins, comma separated (domain names have no commas). */
124
+ const PLUGIN_UPLOAD_DOMAINS_QUERY = "domains";
125
+ /** Query parameter naming a domain to create for an upload. */
126
+ const PLUGIN_UPLOAD_NEW_DOMAIN_QUERY = "newDomain";
127
+ //#endregion
128
+ //#region ../../foundations/po-domain/src/types/apiRoutes.ts
129
+ /**
130
+ * Settings > Plugins, as data. The build reads the scope and base path off
131
+ * `src/extensions/(backend)/api/plugin-settings/`, and the handler matches on these
132
+ * strings, so the panel and the server cannot disagree about where a route sits.
133
+ */
134
+ const routes = {
135
+ view: {
136
+ method: "GET",
137
+ path: "/view",
138
+ response: void 0
139
+ },
140
+ /** Body `{ plugin, enabled }`. */
141
+ toggle: {
142
+ method: "POST",
143
+ path: "/toggle",
144
+ response: void 0
145
+ },
146
+ /** Body `{ domain, plugins }`. */
147
+ addToDomain: {
148
+ method: "POST",
149
+ path: "/domain-plugins",
150
+ response: void 0
151
+ },
152
+ /** Body `{ domain, plugin }`; the same path as `addToDomain`. */
153
+ removeFromDomain: {
154
+ method: "DELETE",
155
+ path: "/domain-plugins",
156
+ response: void 0
157
+ },
158
+ /** Body `{ name, description? }`. */
159
+ createDomain: {
160
+ method: "POST",
161
+ path: "/domains",
162
+ response: void 0
163
+ },
164
+ /** Body `{ name }`; the same path as `createDomain`. */
165
+ deleteDomain: {
166
+ method: "DELETE",
167
+ path: "/domains",
168
+ response: void 0
169
+ },
170
+ /** Body `{ plugin }`. */
171
+ deletePlugin: {
172
+ method: "DELETE",
173
+ path: "/plugins",
174
+ response: void 0
175
+ },
176
+ /** Body: the zip. Reads it and keeps nothing. */
177
+ previewUpload: {
178
+ method: "POST",
179
+ path: "/uploads/preview",
180
+ response: void 0
181
+ },
182
+ /** Body: the zip again, with the domains it joins in the query. */
183
+ installUpload: {
184
+ method: "POST",
185
+ path: "/uploads",
186
+ query: [PLUGIN_UPLOAD_DOMAINS_QUERY, PLUGIN_UPLOAD_NEW_DOMAIN_QUERY],
187
+ response: void 0
188
+ }
189
+ };
190
+ //#endregion
191
+ //#region ../../foundations/po-domain/src/types/domains.ts
192
+ /**
193
+ * The only names a domain, an operation or a handoff token may carry.
194
+ *
195
+ * Selections arrive from the model and from the command line, and every one of
196
+ * them ends up in a filesystem path or a process environment variable, so the
197
+ * shape is constrained once here and reused by the schema and the validator.
198
+ */
199
+ const SAFE_DOMAIN_NAME = /^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$/u;
200
+ //#endregion
201
+ //#region ../../foundations/po-domain/src/services/pluginSettings/type.ts
202
+ /** A refusal the route answers with its status rather than a generic failure. */
203
+ var PluginSettingsError = class extends Error {
204
+ status;
205
+ constructor(message, status) {
206
+ super(message);
207
+ this.status = status;
208
+ this.name = "PluginSettingsError";
209
+ }
210
+ };
211
+ //#endregion
212
+ //#region ../../foundations/po-domain/src/services/pluginSettings/index.ts
213
+ const io = BACKGROUND_CONTEXT;
214
+ const DOMAINS_FILE = "domains.yaml";
215
+ /** Where uploads land, relative to `~/.po`; also the `plugins.roots` entry that discovers them. */
216
+ const UPLOADED_PLUGINS_DIRECTORY = "plugins";
217
+ const SKILL_FILE = "SKILL.md";
218
+ /** A plugin's skills sit at most this deep under `skills/`, so a stray tree cannot stall the page. */
219
+ const MAX_SKILL_DEPTH = 4;
220
+ function globalDomainsFile(host) {
221
+ return path.join(globalPoConfigDirectory(host.homeDirectory), DOMAINS_FILE);
222
+ }
223
+ function uploadedPluginsDirectory(host) {
224
+ return path.join(globalPoConfigDirectory(host.homeDirectory), UPLOADED_PLUGINS_DIRECTORY);
225
+ }
226
+ function isInside(root, candidate) {
227
+ const relative = path.relative(root, candidate);
228
+ return relative !== "" && !relative.startsWith("..") && !path.isAbsolute(relative);
229
+ }
230
+ async function readTextIfPresent(fs, filePath) {
231
+ const result = await fs.readTextFile(filePath, io);
232
+ if (result.ok) return result.value;
233
+ if (result.error.code === "not_found") return void 0;
234
+ throw result.error;
235
+ }
236
+ /** Skill names under `skills/`, by frontmatter name or folder; unreadable files are left out. */
237
+ async function skillNames(fs, pluginDirectory, directChildren) {
238
+ const names = [];
239
+ const walk = async (directory, depth) => {
240
+ const listing = await fs.listDir(directory, io);
241
+ if (!listing.ok) return;
242
+ for (const item of listing.value) {
243
+ const child = path.join(directory, item.name);
244
+ if (item.kind === "file" && item.name === SKILL_FILE && depth > 0) {
245
+ const text = await fs.readTextFile(child, io);
246
+ if (!text.ok) continue;
247
+ try {
248
+ names.push(skillName(child, splitFrontmatter(text.value).attributes));
249
+ } catch {
250
+ names.push(path.basename(directory));
251
+ }
252
+ } else if (item.kind === "directory" && depth < (directChildren ? 1 : MAX_SKILL_DEPTH)) await walk(child, depth + 1);
253
+ }
254
+ };
255
+ await walk(path.join(pluginDirectory, "skills"), 0);
256
+ return [...new Set(names)].sort();
257
+ }
258
+ function recordKeys(text, key) {
259
+ if (text === void 0) return [];
260
+ const parsed = JSON.parse(text);
261
+ if (typeof parsed !== "object" || parsed === null) return [];
262
+ const value = parsed[key];
263
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? Object.keys(value) : [];
264
+ }
265
+ /** Server names from the plugin's MCP config, where the session would read it. */
266
+ async function mcpServerNames(fs, pluginDirectory, agentPlugin) {
267
+ return recordKeys(await readTextIfPresent(fs, path.join(pluginDirectory, agentPlugin ? "mcp.json" : ".mcp.json")), "mcpServers").sort();
268
+ }
269
+ async function hookCount(fs, pluginDirectory) {
270
+ return recordKeys(await readTextIfPresent(fs, path.join(pluginDirectory, "hooks", "hooks.json")), "hooks").length;
271
+ }
272
+ function originOf(entry, uploads) {
273
+ const { source } = entry;
274
+ if (entry.marketplace) return {
275
+ kind: "marketplace",
276
+ marketplace: entry.marketplace
277
+ };
278
+ if (source.type === "local") return isInside(uploads, source.path) ? { kind: "uploaded" } : {
279
+ kind: "folder",
280
+ path: source.path
281
+ };
282
+ return {
283
+ kind: "remote",
284
+ source: source.type === "git" ? source.url : source.package
285
+ };
286
+ }
287
+ /** What one plugin's files say it brings. Unreadable contents show as empty rather than failing the page. */
288
+ async function describePlugin(fs, directory, agentPlugin) {
289
+ try {
290
+ return {
291
+ skills: await skillNames(fs, directory, agentPlugin),
292
+ mcpServers: await mcpServerNames(fs, directory, agentPlugin),
293
+ hooks: await hookCount(fs, directory)
294
+ };
295
+ } catch {
296
+ return {
297
+ skills: [],
298
+ mcpServers: [],
299
+ hooks: 0
300
+ };
301
+ }
302
+ }
303
+ function pluginNameOf(selection) {
304
+ return typeof selection === "string" ? selection : selection.name;
305
+ }
306
+ /** The personal catalog: the global file alone, so a repository never shows up on a page about you. */
307
+ async function loadGlobalManifest(host) {
308
+ return await loadDomainsAsync(host.fs, host.homeDirectory, io, host.homeDirectory);
309
+ }
310
+ /** Settings > Plugins: the personal domains and every plugin the personal catalog knows. */
311
+ async function readPluginSettings(host) {
312
+ const manifest = await loadGlobalManifest(host);
313
+ const poDirectory = globalPoConfigDirectory(host.homeDirectory);
314
+ const uploads = uploadedPluginsDirectory(host);
315
+ const domains = Object.entries(manifest.domains).sort(([left], [right]) => left.localeCompare(right)).map(([name, domain]) => ({
316
+ name,
317
+ ...domain.description ? { description: domain.description } : {},
318
+ plugins: (domain.plugins ?? []).map(pluginNameOf)
319
+ }));
320
+ const disabled = new Set(manifest.disabled ?? []);
321
+ const standalone = new Set(manifest.standalone ?? []);
322
+ return {
323
+ domains,
324
+ plugins: await Promise.all(Object.entries(manifest.plugins.entries).sort(([left], [right]) => left.localeCompare(right)).map(async ([name, entry]) => {
325
+ const directory = pluginDirectoryForSource(entry.source, poDirectory);
326
+ const present = getOrThrow(await host.fs.exists(directory, io));
327
+ const inDomains = domains.filter((domain) => domain.plugins.includes(name)).map((domain) => domain.name);
328
+ return {
329
+ name,
330
+ ...entry.manifest?.version ? { version: entry.manifest.version } : {},
331
+ ...entry.description ? { description: entry.description } : {},
332
+ origin: originOf(entry, uploads),
333
+ ...present ? await describePlugin(host.fs, directory, entry.manifest?.agentPluginSchema !== void 0) : {
334
+ skills: [],
335
+ mcpServers: [],
336
+ hooks: 0,
337
+ missing: true
338
+ },
339
+ domains: inDomains,
340
+ enabled: !disabled.has(name) && (inDomains.length > 0 || standalone.has(name)),
341
+ deletable: entry.source.type === "local" && isInside(uploads, entry.source.path)
342
+ };
343
+ }))
344
+ };
345
+ }
346
+ function scalarNames(node) {
347
+ return isSeq(node) ? node.items.flatMap((item) => isScalar(item) ? [String(item.value)] : []) : [];
348
+ }
349
+ function setNames(document, keys, names) {
350
+ if (names.length === 0) {
351
+ document.deleteIn(keys);
352
+ return;
353
+ }
354
+ document.setIn(keys, document.createNode([...names], { flow: true }));
355
+ }
356
+ function editNames(document, keys, edit) {
357
+ setNames(document, keys, [...new Set(edit(scalarNames(document.getIn(keys))))]);
358
+ }
359
+ function selectionName(item) {
360
+ if (isScalar(item)) return String(item.value);
361
+ if (isMap(item)) return String(item.get("name"));
362
+ }
363
+ function domainPlugins(document, domain) {
364
+ const node = document.getIn([
365
+ "domains",
366
+ domain,
367
+ "plugins"
368
+ ]);
369
+ return isSeq(node) ? node : void 0;
370
+ }
371
+ function requireGlobalDomain(document, domain) {
372
+ if (!document.hasIn(["domains", domain])) throw new PluginSettingsError(`There is no domain named ${domain} in your domains.yaml.`, 404);
373
+ }
374
+ function removeFromDomain(document, domain, plugin) {
375
+ const plugins = domainPlugins(document, domain);
376
+ if (plugins) plugins.items = plugins.items.filter((item) => selectionName(item) !== plugin);
377
+ }
378
+ function addToDomain(document, domain, names) {
379
+ const plugins = domainPlugins(document, domain);
380
+ if (!plugins) {
381
+ document.setIn([
382
+ "domains",
383
+ domain,
384
+ "plugins"
385
+ ], document.createNode([...names]));
386
+ return;
387
+ }
388
+ const present = new Set(plugins.items.map(selectionName));
389
+ for (const name of names) if (!present.has(name)) plugins.add(document.createNode(name));
390
+ }
391
+ function globalDomainNames(document) {
392
+ const domains = document.get("domains");
393
+ return isMap(domains) ? domains.items.map((pair) => String(isScalar(pair.key) ? pair.key.value : pair.key)) : [];
394
+ }
395
+ /**
396
+ * Applies one edit to `~/.po/domains.yaml`, keeping its comments, then reloads the catalog.
397
+ * A result the loader refuses is rolled back, so the page can never leave every session failing.
398
+ */
399
+ async function editGlobalDomains(host, edit) {
400
+ const file = globalDomainsFile(host);
401
+ const before = await readTextIfPresent(host.fs, file);
402
+ const parsed = parseDocument(before ?? "");
403
+ if (parsed.errors.length > 0) throw new PluginSettingsError(`Your domains.yaml is not valid YAML: ${parsed.errors[0].message}`, 422);
404
+ const document = parsed.contents === null ? new Document({}) : parsed;
405
+ if (!isMap(document.contents)) throw new PluginSettingsError("Your domains.yaml must be a mapping at the top.", 422);
406
+ await edit(document);
407
+ await writeFileAtomic(host.fs, file, document.toString(), io);
408
+ try {
409
+ return await readPluginSettings(host);
410
+ } catch (error) {
411
+ if (before === void 0) getOrThrow(await host.fs.remove(file, { force: true }, io));
412
+ else await writeFileAtomic(host.fs, file, before, io);
413
+ throw new PluginSettingsError(`Po left your domains.yaml as it was, because the change would not load: ${error instanceof Error ? error.message : String(error)}`, 422);
414
+ }
415
+ }
416
+ function requirePlugin(view, name) {
417
+ const plugin = view.plugins.find((candidate) => candidate.name === name);
418
+ if (!plugin) throw new PluginSettingsError(`Po has no plugin named ${name}.`, 404);
419
+ return plugin;
420
+ }
421
+ /**
422
+ * Turns a plugin on or off. In a domain, off adds it to `plugins.disabled`; standalone, on adds
423
+ * it to `plugins.standalone` so it loads in every session, and off takes it out again.
424
+ */
425
+ async function setPluginEnabled(host, plugin, enabled) {
426
+ const current = requirePlugin(await readPluginSettings(host), plugin);
427
+ return await editGlobalDomains(host, (document) => {
428
+ const inDomain = current.domains.length > 0;
429
+ editNames(document, ["plugins", "disabled"], (names) => enabled || !inDomain ? names.filter((name) => name !== plugin) : [...names, plugin]);
430
+ editNames(document, ["plugins", "standalone"], (names) => enabled && !inDomain ? [...names, plugin] : names.filter((name) => name !== plugin));
431
+ });
432
+ }
433
+ /** Adds plugins to a personal domain. A standalone plugin added here stops loading everywhere. */
434
+ async function addPluginsToDomain(host, domain, plugins) {
435
+ const view = await readPluginSettings(host);
436
+ for (const plugin of plugins) requirePlugin(view, plugin);
437
+ return await editGlobalDomains(host, (document) => {
438
+ requireGlobalDomain(document, domain);
439
+ addToDomain(document, domain, plugins);
440
+ editNames(document, ["plugins", "standalone"], (names) => names.filter((name) => !plugins.includes(name)));
441
+ });
442
+ }
443
+ /** Takes a plugin out of one domain. Out of its last domain, it is standalone and off. */
444
+ async function removePluginFromDomain(host, domain, plugin) {
445
+ return await editGlobalDomains(host, (document) => {
446
+ requireGlobalDomain(document, domain);
447
+ removeFromDomain(document, domain, plugin);
448
+ });
449
+ }
450
+ async function createDomain(host, name, description) {
451
+ if (!SAFE_DOMAIN_NAME.test(name)) throw new PluginSettingsError("A domain name starts with a letter or number and has no spaces.", 400);
452
+ const manifest = await loadGlobalManifest(host);
453
+ if (Object.hasOwn(manifest.domains, name) || Object.hasOwn(manifest.aliases, name)) throw new PluginSettingsError(`A domain named ${name} already exists.`, 409);
454
+ return await editGlobalDomains(host, (document) => {
455
+ document.setIn(["domains", name], document.createNode({
456
+ ...description ? { description } : {},
457
+ plugins: []
458
+ }));
459
+ });
460
+ }
461
+ /** Deletes a personal domain and every default or alias naming it; its plugins stay installed. */
462
+ async function deleteDomain(host, name) {
463
+ return await editGlobalDomains(host, (document) => {
464
+ requireGlobalDomain(document, name);
465
+ document.deleteIn(["domains", name]);
466
+ if (document.has("defaultDomains")) document.set("defaultDomains", document.createNode(scalarNames(document.get("defaultDomains")).filter((entry) => entry !== name), { flow: true }));
467
+ const aliases = document.get("aliases");
468
+ if (!isMap(aliases)) return;
469
+ const names = aliases.items.map((pair) => String(isScalar(pair.key) ? pair.key.value : pair.key));
470
+ for (const alias of names) editNames(document, ["aliases", alias], (targets) => targets.filter((target) => target !== name));
471
+ });
472
+ }
473
+ /** Deletes an uploaded plugin: its folder and every mention of it in your domains.yaml. */
474
+ async function deletePlugin(host, plugin) {
475
+ const source = (await loadGlobalManifest(host)).plugins.entries[plugin]?.source;
476
+ if (!source) throw new PluginSettingsError(`Po has no plugin named ${plugin}.`, 404);
477
+ if (source.type !== "local" || !isInside(uploadedPluginsDirectory(host), source.path)) throw new PluginSettingsError(`Po can only delete plugins uploaded here. Turn ${plugin} off instead.`, 409);
478
+ const directory = source.path;
479
+ const next = await editGlobalDomains(host, (document) => {
480
+ for (const domain of globalDomainNames(document)) removeFromDomain(document, domain, plugin);
481
+ editNames(document, ["plugins", "standalone"], (names) => names.filter((name) => name !== plugin));
482
+ editNames(document, ["plugins", "disabled"], (names) => names.filter((name) => name !== plugin));
483
+ });
484
+ getOrThrow(await host.fs.remove(directory, {
485
+ recursive: true,
486
+ force: true
487
+ }, io));
488
+ return {
489
+ ...next,
490
+ plugins: next.plugins.filter((candidate) => candidate.name !== plugin)
491
+ };
492
+ }
493
+ //#endregion
494
+ //#region ../../foundations/po-domain/src/services/pluginArchive/index.edge.ts
495
+ const NODE_ONLY = "Uploading a plugin needs the Node host: the edge cannot unpack archives.";
496
+ async function inspectPluginArchive(_host, _bytes) {
497
+ throw new PluginSettingsError(NODE_ONLY, 422);
498
+ }
499
+ async function installPluginArchive(_host, _bytes, _domains, _newDomain) {
500
+ throw new PluginSettingsError(NODE_ONLY, 422);
501
+ }
502
+ //#endregion
503
+ //#region ../../foundations/po-domain/src/services/pluginSettingsApi/index.ts
504
+ const MAX_JSON_BYTES = 65536;
505
+ const MAX_NAME = 200;
506
+ const MAX_DESCRIPTION = 500;
507
+ const MAX_PLUGINS_PER_ADD = 200;
508
+ function json(body, status = 200) {
509
+ return Response.json(body, { status });
510
+ }
511
+ function nameOf(value) {
512
+ return typeof value === "string" && value.trim() && value.length <= MAX_NAME ? value.trim() : void 0;
513
+ }
514
+ function requireName(value, field) {
515
+ const name = nameOf(value);
516
+ if (!name) throw new PluginSettingsError(`Send a ${field} name.`, 400);
517
+ return name;
518
+ }
519
+ async function jsonBody(request) {
520
+ const text = await request.text();
521
+ if (text.length > MAX_JSON_BYTES) throw new PluginSettingsError("The request is too large.", 413);
522
+ let parsed;
523
+ try {
524
+ parsed = JSON.parse(text);
525
+ } catch {
526
+ throw new PluginSettingsError("Send a JSON body.", 400);
527
+ }
528
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) throw new PluginSettingsError("Send a JSON object.", 400);
529
+ return parsed;
530
+ }
531
+ async function zipBody(request) {
532
+ if (Number(request.headers.get("content-length") ?? "0") > 6291456) throw new PluginSettingsError("The archive is larger than 6 MB.", 413);
533
+ const bytes = new Uint8Array(await request.arrayBuffer());
534
+ if (bytes.byteLength === 0) throw new PluginSettingsError("Send the zipped plugin as the request body.", 400);
535
+ return bytes;
536
+ }
537
+ async function dispatch(host, request) {
538
+ const url = new URL(request.url);
539
+ const at = (route) => url.pathname === route.path && request.method === route.method;
540
+ if (at(routes.view)) return json(await readPluginSettings(host));
541
+ if (at(routes.toggle)) {
542
+ const body = await jsonBody(request);
543
+ if (typeof body.enabled !== "boolean") throw new PluginSettingsError("Send enabled as true or false.", 400);
544
+ return json(await setPluginEnabled(host, requireName(body.plugin, "plugin"), body.enabled));
545
+ }
546
+ if (at(routes.addToDomain)) {
547
+ const body = await jsonBody(request);
548
+ const plugins = Array.isArray(body.plugins) ? body.plugins.map(nameOf) : [];
549
+ if (plugins.length === 0 || plugins.length > MAX_PLUGINS_PER_ADD || plugins.some((name) => name === void 0)) throw new PluginSettingsError("Send the plugin names to add.", 400);
550
+ return json(await addPluginsToDomain(host, requireName(body.domain, "domain"), plugins));
551
+ }
552
+ if (at(routes.removeFromDomain)) {
553
+ const body = await jsonBody(request);
554
+ return json(await removePluginFromDomain(host, requireName(body.domain, "domain"), requireName(body.plugin, "plugin")));
555
+ }
556
+ if (at(routes.createDomain)) {
557
+ const body = await jsonBody(request);
558
+ const description = typeof body.description === "string" ? body.description.trim() : "";
559
+ if (description.length > MAX_DESCRIPTION) throw new PluginSettingsError("Keep the description short.", 400);
560
+ return json(await createDomain(host, requireName(body.name, "domain"), description || void 0));
561
+ }
562
+ if (at(routes.deleteDomain)) return json(await deleteDomain(host, requireName((await jsonBody(request)).name, "domain")));
563
+ if (at(routes.deletePlugin)) return json(await deletePlugin(host, requireName((await jsonBody(request)).plugin, "plugin")));
564
+ if (at(routes.previewUpload)) return json(await inspectPluginArchive(host, await zipBody(request)));
565
+ if (at(routes.installUpload)) {
566
+ const domains = (url.searchParams.get("domains") ?? "").split(",").filter(Boolean).map((value) => requireName(value, "domain"));
567
+ const newDomain = nameOf(url.searchParams.get(PLUGIN_UPLOAD_NEW_DOMAIN_QUERY));
568
+ return json(await installPluginArchive(host, await zipBody(request), domains, newDomain), 201);
569
+ }
570
+ return json({ error: "Not found." }, 404);
571
+ }
572
+ /**
573
+ * Settings > Plugins over HTTP. Writes are serialized per mount, so two quick clicks never
574
+ * interleave their read-modify-write of `~/.po/domains.yaml`.
575
+ */
576
+ function createPluginSettingsApi(fileSystem) {
577
+ return {
578
+ basePath: "plugin-settings",
579
+ start(context) {
580
+ let writes = Promise.resolve();
581
+ const guarded = async (request) => {
582
+ const fs = fileSystem();
583
+ if (!fs || !context.homeDirectory) return json({ error: "Po can't reach your home directory on this hub." }, 503);
584
+ try {
585
+ return await dispatch({
586
+ fs,
587
+ homeDirectory: context.homeDirectory
588
+ }, request);
589
+ } catch (error) {
590
+ if (error instanceof PluginSettingsError) return json({ error: error.message }, error.status);
591
+ return json({ error: error instanceof Error ? error.message : String(error) }, 500);
592
+ }
593
+ };
594
+ return {
595
+ fetch(request) {
596
+ if (request.method === "GET") return guarded(request);
597
+ const result = writes.then(() => guarded(request));
598
+ writes = result.catch(() => void 0);
599
+ return result;
600
+ },
601
+ close() {}
602
+ };
603
+ }
604
+ };
605
+ }
606
+ //#endregion
607
+ //#region ../../foundations/po-domain/src/extensions/(backend)/api/plugin-settings/route.server.ts
608
+ /** Mounts Settings > Plugins at `plugin-settings`, globally; the folder states the scope and base path. */
609
+ var route_server_default$1 = defineRoute((plugin) => createPluginSettingsApi(() => readPoFs(plugin.context)));
610
+ //#endregion
611
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/api/domains/route.server.ts
612
+ var route_server_default = defineRoute(({ agent }) => ({
613
+ basePath: "domains",
614
+ start: () => ({
615
+ fetch(request) {
616
+ if (new URL(request.url).pathname !== "/current") return Response.json({ error: "Not found" }, { status: 404 });
617
+ if (request.method !== "GET") return Response.json({ error: "Method not allowed" }, {
618
+ status: 405,
619
+ headers: { Allow: "GET" }
620
+ });
621
+ if (!agent) return Response.json({ error: "Session agent unavailable" }, { status: 404 });
622
+ const selection = agent.context.selection;
623
+ return Response.json({ domains: selection.domains });
624
+ },
625
+ close() {}
626
+ })
627
+ }));
628
+ //#endregion
629
+ //#region ../../core/po-core/src/schemas/skills.ts
630
+ /**
631
+ * The custom session entry journaled once Pi has rebuilt its resource catalog
632
+ * for a reload.
633
+ *
634
+ * A reload is the only thing that changes which skills exist, and Pi publishes
635
+ * nothing for it: the whole wire record of a `/domains` switch is the single
636
+ * `response:prompt` for the command that triggered it. An RPC client therefore
637
+ * has no way to learn that the `get_commands` answer it cached, which is what
638
+ * the web cockpit completes `$` from, now describes the previous domains.
639
+ *
640
+ * This entry is that missing signal. It rides Pi's `entry_appended` frames the
641
+ * way the minor-mode catalog projection does, so it needs no new protocol, and
642
+ * a custom entry with no registered renderer is invisible in the TUI.
643
+ */
644
+ const PO_RESOURCE_CATALOG_ENTRY_TYPE = "po-resource-catalog";
645
+ const SkillSourceNameSchema = String$1({
646
+ minLength: 1,
647
+ maxLength: 128,
648
+ pattern: "^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$"
649
+ });
650
+ _Object_({
651
+ source: SkillSourceNameSchema,
652
+ /** Absolute directories, the same ones the source hands `resources_discover`. */
653
+ directories: _Array_(String$1({ minLength: 1 }))
654
+ }, { additionalProperties: false });
655
+ //#endregion
656
+ //#region ../../foundations/po-domain/src/services/domainText/index.ts
657
+ const DOMAIN_SEPARATOR = ",";
658
+ const DOMAIN_COMMAND = "domains";
659
+ /** Splits the comma-separated argument the command and the autocomplete share. */
660
+ function splitDomains(value) {
661
+ return value.split(DOMAIN_SEPARATOR).map((item) => item.trim()).filter(Boolean);
662
+ }
663
+ function pickerTitle(listing) {
664
+ return `Domains (active: ${listing.effective.join(", ") || "(none)"})`;
665
+ }
666
+ const MARK_ON = "[x]";
667
+ const MARK_OFF = "[ ]";
668
+ const OPTION_PREFIX = /^\[[ x]\] /;
669
+ /**
670
+ * Rows for a single-pick select where domains compose: each row shows the
671
+ * membership it would flip, so a client without a multi-select still reaches
672
+ * every set one toggle at a time.
673
+ */
674
+ function domainToggleOptions(listing) {
675
+ const active = new Set(listing.effective);
676
+ return listing.available.map((name) => `${active.has(name) ? MARK_ON : MARK_OFF} ${name}`);
677
+ }
678
+ /** The domain a toggle row names. */
679
+ function toggleOptionDomain(option) {
680
+ return option.replace(OPTION_PREFIX, "").trim();
681
+ }
682
+ /** The effective set with one domain flipped, order preserved for the rest. */
683
+ function toggledDomains(effective, name) {
684
+ return effective.includes(name) ? effective.filter((domain) => domain !== name) : [...effective, name];
685
+ }
686
+ /**
687
+ * Deduplicates a requested selection and rejects anything unsafe.
688
+ *
689
+ * Bounded before the manifest is read, because a selection large enough to
690
+ * matter comes from the model rather than from a person typing the command.
691
+ */
692
+ function normalizeDomainNames(values) {
693
+ if (values.length > 32) throw new Error(`A maximum of 32 domains may be selected.`);
694
+ const result = [];
695
+ const seen = /* @__PURE__ */ new Set();
696
+ for (const value of values) {
697
+ const name = value.trim();
698
+ if (!name || name.length > 128 || !SAFE_DOMAIN_NAME.test(name)) throw new Error(`Invalid domain name: ${value}`);
699
+ if (seen.has(name)) continue;
700
+ seen.add(name);
701
+ result.push(name);
702
+ }
703
+ return result;
704
+ }
705
+ //#endregion
706
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/_lib/domainServerCommand.ts
707
+ const DOMAIN_SELECTION_KIND = "po-domains-selection";
708
+ const DOMAIN_SELECTION_VERSION = 1;
709
+ /** Full-set web replies share the string transport with legacy single-toggle labels. */
710
+ function domainSelectionReply(answer) {
711
+ if (!answer.trimStart().startsWith("{")) return null;
712
+ const reply = JSON.parse(answer);
713
+ if (typeof reply !== "object" || reply === null || !("kind" in reply) || reply.kind !== DOMAIN_SELECTION_KIND || !("version" in reply) || reply.version !== DOMAIN_SELECTION_VERSION || !("domains" in reply) || !Array.isArray(reply.domains) || !reply.domains.every((name) => typeof name === "string")) throw new Error("Invalid domains selection reply");
714
+ return reply.domains;
715
+ }
716
+ function createDomainServerCommand(host, fs) {
717
+ return {
718
+ name: DOMAIN_COMMAND,
719
+ description: "Show or change the active Po domains.",
720
+ async execute(args, execution) {
721
+ const available = await listDomainNamesAsync(fs, execution.repoRoot, BACKGROUND_CONTEXT);
722
+ let requested = splitDomains(args);
723
+ let fullSet = false;
724
+ if (requested.length === 0) {
725
+ const listing = {
726
+ active: [...execution.selection.domains],
727
+ effective: [...execution.selection.domains],
728
+ available
729
+ };
730
+ const selected = await execution.client.request({
731
+ kind: "select",
732
+ title: pickerTitle(listing),
733
+ options: domainToggleOptions(listing).map((label) => ({
734
+ label,
735
+ value: label
736
+ }))
737
+ });
738
+ if (typeof selected !== "string" || !selected) return;
739
+ const domains = domainSelectionReply(selected);
740
+ fullSet = domains !== null;
741
+ requested = domains ?? toggledDomains(listing.effective, toggleOptionDomain(selected));
742
+ }
743
+ requested = normalizeDomainNames(requested);
744
+ const unknown = requested.filter((name) => !available.includes(name));
745
+ if (unknown.length > 0) throw new Error(`Unknown domain: ${unknown.join(", ")}`);
746
+ if (fullSet) {
747
+ const wanted = new Set(requested);
748
+ const current = new Set(execution.selection.domains);
749
+ requested = [...execution.selection.domains.filter((name) => wanted.has(name)), ...available.filter((name) => wanted.has(name) && !current.has(name))];
750
+ }
751
+ if (requested.length === execution.selection.domains.length && requested.every((name, index) => name === execution.selection.domains[index])) return;
752
+ await host.changeSelection({
753
+ axis: "domains",
754
+ domains: requested
755
+ });
756
+ const projection = {
757
+ version: 1,
758
+ revision: Date.now()
759
+ };
760
+ await execution.session.appendCustomEntry(PO_RESOURCE_CATALOG_ENTRY_TYPE, projection);
761
+ }
762
+ };
763
+ }
764
+ //#endregion
765
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/command/domains.server.ts
766
+ var domains_server_default$1 = defineRoutedContribution(({ agent, context }) => agent ? createDomainServerCommand(agent, requirePoFs(context)) : void 0, { cardinality: "optional" });
767
+ //#endregion
768
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/resource/domains.server.ts
769
+ var domains_server_default = defineRoutedContribution((context) => context.root.resources, { cardinality: "many" });
770
+ //#endregion
771
+ //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts
772
+ var help_how_to_domain_server_default = defineResource({
773
+ name: "help-how-to-domain",
774
+ description: "Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.",
775
+ when: {
776
+ state: { "minor-mode": "help" },
777
+ attribution: {
778
+ kind: "minor",
779
+ mode: "help"
780
+ }
781
+ },
782
+ kind: "skill",
783
+ path: packageResourcePath("bundle:///po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts", "src/prompts/help-how-to-domain/SKILL.md"),
784
+ read: () => readPackageResource("bundle:///po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts", "src/prompts/help-how-to-domain/SKILL.md")
785
+ });
786
+ //#endregion
787
+ //#region ../../foundations/po-domain/generated/server.ts
788
+ const at = (value, context) => typeof value === "function" ? value(context) : value;
789
+ const many = (value, context) => {
790
+ const resolved = typeof value === "function" ? value(context) : value;
791
+ return Array.isArray(resolved) ? resolved : [resolved];
792
+ };
793
+ /* v8 ignore next -- generated normalization branch */
794
+ const defined = (values) => values.filter((value) => value !== void 0);
795
+ const via = (identity, value) => value === void 0 ? void 0 : {
796
+ ...identity,
797
+ ...value
798
+ };
799
+ const serverPlugin = defineServerPlugin({
800
+ name: "@agimon-ai/po-domain",
801
+ providerOverrides: composeServerProviderOverrides(root_server_default),
802
+ injects: composeRootInjects({ session: [root_server_default] }),
803
+ global: (context) => ({ get api() {
804
+ return [at(route_server_default$1, context)];
805
+ } }),
806
+ workspace: (context) => ({ get api() {
807
+ return [at(route_server_default$1, context)];
808
+ } }),
809
+ session: async (context) => {
810
+ const scopeSession = await context.scopeRoot("session", root_server_default, context);
811
+ const contextSession = {
812
+ ...context,
813
+ root: scopeSession.value
814
+ };
815
+ return {
816
+ ...composeRootHooks(scopeSession),
817
+ get api() {
818
+ return [at(route_server_default$1, context), at(route_server_default, contextSession)];
819
+ },
820
+ get commands() {
821
+ return defined([via({ name: "domains" }, at(domains_server_default$1, contextSession))]);
822
+ },
823
+ get resources() {
824
+ return [...many(domains_server_default, contextSession), at(help_how_to_domain_server_default, contextSession)];
825
+ },
826
+ services: [...scopeSession.services ?? []],
827
+ get activities() {
828
+ return [...scopeSession.activities ?? []];
829
+ }
830
+ };
831
+ }
832
+ });
833
+ //#endregion
834
+ export { serverPlugin as default, serverPlugin };