@agimon-ai/po-cloudflare 0.0.2-alpha.13 → 0.0.2-alpha.15

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 (182) hide show
  1. package/dist/{agent-DYFqCLl2.js → agent-DTjnYFAN.js} +1 -1
  2. package/dist/{apiContracts-CDJ9sPkE.js → apiContracts-DepyzMNr.js} +80 -80
  3. package/dist/{approval-BSX-MRTE.js → approval-Biq3NCWj.js} +2 -2
  4. package/dist/{approvalPrompt-1FPgNwMA.js → approvalPrompt-DoHlIPkU.js} +2 -2
  5. package/dist/assets/assets/{CodeEditorView-h_xe1UJU.js → CodeEditorView-CwbnhMdA.js} +2 -2
  6. package/dist/assets/assets/{abnfDiagram-WEYOIA3C-DDdlyJrb.js → abnfDiagram-WEYOIA3C-CHNJg3MT.js} +2 -2
  7. package/dist/assets/assets/{architecture-WOLXFQ4H-x6IR7rBA.js → architecture-WOLXFQ4H-DyY-mL57.js} +1 -1
  8. package/dist/assets/assets/{architectureDiagram-ZHVYKT53-Byzzrb1I.js → architectureDiagram-ZHVYKT53-DAmYv-wl.js} +2 -2
  9. package/dist/assets/assets/{blockDiagram-RJAE7QA3-BaA8lxBI.js → blockDiagram-RJAE7QA3-D3b-qGaj.js} +2 -2
  10. package/dist/assets/assets/{c4Diagram-XDPPPE54-CjuzAtkj.js → c4Diagram-XDPPPE54-DWlB2YrZ.js} +2 -2
  11. package/dist/assets/assets/channel-CxmAFINg.js +2 -0
  12. package/dist/assets/assets/{chunk-2E7WHVMD-BSKphbwa.js → chunk-2E7WHVMD-25JA89WA.js} +2 -2
  13. package/dist/assets/assets/{chunk-4EMNKR2T-BU9JMt7X.js → chunk-4EMNKR2T-DtIGivhN.js} +2 -2
  14. package/dist/assets/assets/{chunk-55XCU76K-CN6ZaT2n.js → chunk-55XCU76K-CZgd1X4f.js} +2 -2
  15. package/dist/assets/assets/{chunk-7S6XSTFO-BCyoT8SS.js → chunk-7S6XSTFO-ZPC-jzOu.js} +2 -2
  16. package/dist/assets/assets/{chunk-AQDTSKZB-CGDxScjE.js → chunk-AQDTSKZB-HuXQEJ0Y.js} +2 -2
  17. package/dist/assets/assets/{chunk-DSNLSHJZ-D7PyFZYQ.js → chunk-DSNLSHJZ-DyyXCNh6.js} +2 -2
  18. package/dist/assets/assets/{chunk-HAGFOTED-CXq7ApM-.js → chunk-HAGFOTED-CO80Pld1.js} +2 -2
  19. package/dist/assets/assets/{chunk-HNE4Q36P-CPYiMdDp.js → chunk-HNE4Q36P-Irin3wRJ.js} +2 -2
  20. package/dist/assets/assets/{chunk-NQOKRVIF-B_vl6qXP.js → chunk-NQOKRVIF-Dip7Ab8s.js} +2 -2
  21. package/dist/assets/assets/{chunk-UHW7PFBP-C-LHs5I5.js → chunk-UHW7PFBP-Cl9mRLzP.js} +2 -2
  22. package/dist/assets/assets/{chunk-VQ5W62QI-DHKzZI3A.js → chunk-VQ5W62QI-DgYuTmZQ.js} +2 -2
  23. package/dist/assets/assets/{chunk-WQQL4CDK-DnpYl5Ue.js → chunk-WQQL4CDK-BqHJLjHL.js} +2 -2
  24. package/dist/assets/assets/chunk-XXDRQBXY-CJfKl316.js +2 -0
  25. package/dist/assets/assets/{chunk-YZO67HFG-BapPpuua.js → chunk-YZO67HFG-DutTp5Gm.js} +2 -2
  26. package/dist/assets/assets/{chunk-ZAUX2LTX-CR7C-KoP.js → chunk-ZAUX2LTX-B_VX-mAd.js} +2 -2
  27. package/dist/assets/assets/{chunk-ZCHMQSOR-CJZ4YysD.js → chunk-ZCHMQSOR-CKGinFsU.js} +2 -2
  28. package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-BNR2sMZj.js → classDiagram-v2-4MYWR3UA-D-Y3jX3x.js} +2 -2
  29. package/dist/assets/assets/{cose-bilkent-JH36ORCC-d4L13wmM.js → cose-bilkent-JH36ORCC-C7NHmyLp.js} +2 -2
  30. package/dist/assets/assets/{cynefin-EF2NZ3EQ-CgjKQ2wc.js → cynefin-EF2NZ3EQ-PMuf45vU.js} +1 -1
  31. package/dist/assets/assets/{cynefinDiagram-WF24UDRP-DtWQ8S8A.js → cynefinDiagram-WF24UDRP-DowrjbAT.js} +2 -2
  32. package/dist/assets/assets/{dagre-NK4GIZVX-CUNbT4H0.js → dagre-NK4GIZVX-BAIzEaka.js} +2 -2
  33. package/dist/assets/assets/{diagram-CBK3MWTC-BhsdNnti.js → diagram-CBK3MWTC-D0Czl2Ag.js} +2 -2
  34. package/dist/assets/assets/{diagram-I5XIIV2D-Cr68iKL4.js → diagram-I5XIIV2D-DFeqxsMK.js} +2 -2
  35. package/dist/assets/assets/{diagram-ODIL2UCW-DfaBisiv.js → diagram-ODIL2UCW-AOUguWbV.js} +2 -2
  36. package/dist/assets/assets/{diagram-PFBEJUXE-Bhp28TWu.js → diagram-PFBEJUXE-CA1cSt8a.js} +2 -2
  37. package/dist/assets/assets/{diagram-RJA3I4VV-Cen3NRx1.js → diagram-RJA3I4VV-B0u2juqJ.js} +2 -2
  38. package/dist/assets/assets/{diagram-TYUNFSNR-Dj4JKR8a.js → diagram-TYUNFSNR-es0LzaB8.js} +2 -2
  39. package/dist/assets/assets/{dist-CZmUvmAF.js → dist-BLQ7nnrh.js} +2 -2
  40. package/dist/assets/assets/{dist-CYdwEnPD.js → dist-BskON3r9.js} +2 -2
  41. package/dist/assets/assets/{dist-DUzzYLG8.js → dist-CXvoTeFe.js} +2 -2
  42. package/dist/assets/assets/{dist-B0srxbs3.js → dist-CdxMcTMT.js} +2 -2
  43. package/dist/assets/assets/{dist-4J5bU5cD.js → dist-Cp0KQVwU.js} +2 -2
  44. package/dist/assets/assets/{dist-DRrjAKQ8.js → dist-DHg2eGm9.js} +2 -2
  45. package/dist/assets/assets/{dist-DMqunHta.js → dist-DtPgUq6U.js} +2 -2
  46. package/dist/assets/assets/{dist-D0ii-m5d.js → dist-DwtF7q4e.js} +2 -2
  47. package/dist/assets/assets/{dist-Bxzqghpf.js → dist-HHSi5Pa8.js} +2 -2
  48. package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-fifrsTZ8.js → ebnfDiagram-V4P3TTPT-PyNabPMn.js} +2 -2
  49. package/dist/assets/assets/{elk-QONTBCTQ-B-gK4R6G.js → elk-QONTBCTQ-CBhXV7nb.js} +2 -2
  50. package/dist/assets/assets/{erDiagram-KYQIGQAA-DxFcJ8Gb.js → erDiagram-KYQIGQAA-D6Doh0oj.js} +2 -2
  51. package/dist/assets/assets/{eventmodeling-K75KTNOO-Cr1DPcrt.js → eventmodeling-K75KTNOO-Bqcnmw1J.js} +1 -1
  52. package/dist/assets/assets/flowDiagram-IUGLLWBU-mBLhK-es.js +1 -0
  53. package/dist/assets/assets/{ganttDiagram-R7GPNTJY-uH4ZFlQE.js → ganttDiagram-R7GPNTJY-Ci8zfIAD.js} +2 -2
  54. package/dist/assets/assets/{gitGraph-VSP46ZUC-BzfRujF5.js → gitGraph-VSP46ZUC-1sECbRbw.js} +1 -1
  55. package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B7MorrfJ.js → gitGraphDiagram-PDYL7XHY-DToXoQsv.js} +2 -2
  56. package/dist/assets/assets/{index-CMZb-g_r.js → index-B7gbu-ML.js} +7 -7
  57. package/dist/assets/assets/{info-OHQRW6UA-Dfn541Im.js → info-OHQRW6UA-BlA5SoJx.js} +1 -1
  58. package/dist/assets/assets/{infoDiagram-MVDRKAX5-CELYuiOm.js → infoDiagram-MVDRKAX5-BDWxp3Ha.js} +2 -2
  59. package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-XUl-Hr0g.js → ishikawaDiagram-HPEHV2GE-F4S899E1.js} +2 -2
  60. package/dist/assets/assets/{journeyDiagram-BOSHW7O7-gmxMN7KY.js → journeyDiagram-BOSHW7O7-CvoI9Nsf.js} +2 -2
  61. package/dist/assets/assets/{kanban-definition-FNSA4HC5-hYbMpxdQ.js → kanban-definition-FNSA4HC5-CnSJXuYT.js} +2 -2
  62. package/dist/assets/assets/{line-eStYUf1q.js → line-DhD-9yAH.js} +2 -2
  63. package/dist/assets/assets/{linear-DPDvRE44.js → linear-B-SQzEcY.js} +2 -2
  64. package/dist/assets/assets/{mermaid-parser.core-zFTETYCU.js → mermaid-parser.core-B5A9rCTB.js} +4 -4
  65. package/dist/assets/assets/{mermaid.core-Bkht5CEJ.js → mermaid.core-DNUNsYna.js} +5 -5
  66. package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZ9623cU.js → mindmap-definition-6OY57UG3-BIy7hTKR.js} +2 -2
  67. package/dist/assets/assets/{packet-JDAUHWVQ-B2oHDZuP.js → packet-JDAUHWVQ-7Z0kK0Bg.js} +1 -1
  68. package/dist/assets/assets/{pegDiagram-ECIUJNBX-CZgc0fZ6.js → pegDiagram-ECIUJNBX-Di9m0F_u.js} +2 -2
  69. package/dist/assets/assets/{pie-XZMESJXO-BBSikIUV.js → pie-XZMESJXO-C3iKOmXD.js} +1 -1
  70. package/dist/assets/assets/{pieDiagram-GNMPY74T-Ch_cxp2m.js → pieDiagram-GNMPY74T-Px8II-Db.js} +2 -2
  71. package/dist/assets/assets/{quadrantDiagram-D57K4MC3-OYq6X-8G.js → quadrantDiagram-D57K4MC3-SosgMm5z.js} +2 -2
  72. package/dist/assets/assets/{radar-ABXABTNO-CRfcXanu.js → radar-ABXABTNO-B4qm97Pf.js} +1 -1
  73. package/dist/assets/assets/{railroad-I3PHUGI6-D1XymudG.js → railroad-I3PHUGI6-d2qfxO5G.js} +1 -1
  74. package/dist/assets/assets/{railroad-abnf-LNEFI6M7-k0hgtxQk.js → railroad-abnf-LNEFI6M7-TDZHyV6i.js} +1 -1
  75. package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-C-QyXDks.js → railroad-ebnf-DWYD2UWJ-NcQ9gUMJ.js} +1 -1
  76. package/dist/assets/assets/{railroad-peg-JR7BVNR7-BuHnYaiY.js → railroad-peg-JR7BVNR7-Bb-t8Vbs.js} +1 -1
  77. package/dist/assets/assets/{railroadDiagram-Y72NRBL7-D9N-pNww.js → railroadDiagram-Y72NRBL7-DgLmH4DZ.js} +2 -2
  78. package/dist/assets/assets/{requirementDiagram-EQYSW5RA-qf-1Zblj.js → requirementDiagram-EQYSW5RA-auaJ7ZvR.js} +2 -2
  79. package/dist/assets/assets/{sankeyDiagram-SY24JHO5-D8wE86jL.js → sankeyDiagram-SY24JHO5-B2R-eq3C.js} +2 -2
  80. package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-74mVMj0m.js → sequenceDiagram-BLEHNHQU-CNufgwlS.js} +2 -2
  81. package/dist/assets/assets/{src-zg274ZWT.js → src-B8irHfML.js} +2 -2
  82. package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-DIBiESyI.js → stateDiagram-v2-A6IESKWZ-DnOwGwvs.js} +2 -2
  83. package/dist/assets/assets/{swimlanes-B3ENRKFQ-pUHRnBcg.js → swimlanes-B3ENRKFQ-Dse-rWzV.js} +2 -2
  84. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-C-6oBziD.js +9 -0
  85. package/dist/assets/assets/{timeline-definition-JXYKGLGB-B0dcIPgn.js → timeline-definition-JXYKGLGB-B82nGDHO.js} +2 -2
  86. package/dist/assets/assets/{treeView-D4JQ5SDB-xackbunK.js → treeView-D4JQ5SDB-CRJbThh1.js} +1 -1
  87. package/dist/assets/assets/{treemap-SAJKECNS-qiDqJfbc.js → treemap-SAJKECNS-BcJkKL_S.js} +1 -1
  88. package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-Bokdfw2g.js → usecaseDiagram-WPOLBNNX-BhL8YMbv.js} +2 -2
  89. package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-D0ObPPH8.js → vennDiagram-Q3Y3IDCW-CzmROCxJ.js} +2 -2
  90. package/dist/assets/assets/{wardley-7MLQ67FV-CYyy9ZPM.js → wardley-7MLQ67FV-DR9Tfc02.js} +1 -1
  91. package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-zo5nETrV.js → wardleyDiagram-IVAIDKWA-BxEA5YVI.js} +2 -2
  92. package/dist/assets/assets/{webpack-D_Ha02Xw.js → webpack-C_MATgNb.js} +2 -2
  93. package/dist/assets/assets/{xychartDiagram-4URNHDU4-CYtidI4I.js → xychartDiagram-4URNHDU4-DobsgzbD.js} +2 -2
  94. package/dist/assets/bundle-asset-policy.json +1 -1
  95. package/dist/assets/index.html +1 -1
  96. package/dist/assets/plugins/compositions.json +1 -1
  97. package/dist/{atomicJson-BF1fVXy1.js → atomicJson-DCIsEywH.js} +3 -3
  98. package/dist/{backgroundWork-BaczP3Z1.js → backgroundWork-Bswjs1av.js} +1 -1
  99. package/dist/{codemode-CZ_eYTwm.js → codemode-CgVosRtU.js} +1 -1
  100. package/dist/{contracts-CnRs-Twx.js → contracts-CylyLZC8.js} +1 -1
  101. package/dist/{domains-Bl6T2dKV.js → domains-BqChtBLN.js} +23 -5
  102. package/dist/{exports-DlcCEAe3.js → exports-DERO0cQf.js} +760 -147
  103. package/dist/{exports-CxkWsXI9.js → exports-wbNFqW1I.js} +9 -9
  104. package/dist/{extensionFile-D7wk8tFr.js → extensionFile-Ds7RCpnb.js} +1 -1
  105. package/dist/{harnessStore-flLz1I0F.js → harnessStore-BectazJQ.js} +4 -4
  106. package/dist/harnessStore-C0Zwvny8.js +1 -0
  107. package/dist/{help-DjybmnPW.js → help-Dpm82qDr.js} +2 -2
  108. package/dist/{hubChannel-Bi3PQrfD.js → hubChannel-COvmdWGO.js} +4 -2
  109. package/dist/{index.edge-CJ2TFpgF.js → index.edge-B0D_Lgbx.js} +2 -2
  110. package/dist/{index.edge-C9_xuXyy.js → index.edge-BLmsRNW8.js} +2 -2
  111. package/dist/{index.edge-uSjRpm6Z.js → index.edge-b0z7PQ6b.js} +1 -1
  112. package/dist/{layeredConfig-B4s0eZ5o.js → layeredConfig-pQGjhAks.js} +92 -6
  113. package/dist/{majorModes-IygGmbb8.js → majorModes-BrL4EtzH.js} +5 -14
  114. package/dist/majorModes-WXt22_km.js +1 -0
  115. package/dist/{mcpProjection-BA6baFpi.js → mcpProjection-pbPBBuvs.js} +2 -2
  116. package/dist/{notification-bGq1frYG.js → notification-CINsJWDL.js} +7 -4
  117. package/dist/{piConfig-CcoMX-1L.js → piConfig-BDUpA6w0.js} +5 -5
  118. package/dist/piSettings-tdui0CZI.js +1 -0
  119. package/dist/{platform-CyvF7X-b.js → platform-yhQXrrM_.js} +1 -1
  120. package/dist/{platformFiles-Ccj9HCvA.js → platformFiles-DB3Cw1l_.js} +1 -1
  121. package/dist/{protocol-Q7TFrOIs.js → protocol-B6LbEIe6.js} +2 -2
  122. package/dist/{server-C9gff7gU.js → server-B2G-c0hg.js} +5 -5
  123. package/dist/{server-CIhwIcbA.js → server-B8P-UkxF.js} +14 -5
  124. package/dist/{server-CxGGQFJs.js → server-BQABuCfr.js} +7 -7
  125. package/dist/{server-il_s2Ycz.js → server-BXFDsLgm.js} +340 -44
  126. package/dist/{server-C82Qzoh3.js → server-Bf1Y5E15.js} +10 -10
  127. package/dist/{server-Co57A8MH.js → server-Bt6Zsqo8.js} +2 -2
  128. package/dist/{server-CjsKNdSN.js → server-CCwwnpH0.js} +5 -5
  129. package/dist/{server-4CmqIbH2.js → server-CbcLCzQF.js} +55 -14
  130. package/dist/{server-COE7BKSa.js → server-Ci_BGVwd.js} +3 -3
  131. package/dist/{server-CTSvwoDy.js → server-CyYesT-G.js} +9 -9
  132. package/dist/{server-ziNfBZ2M.js → server-CzJjYgVk.js} +3 -3
  133. package/dist/{server-CQXqMpeC.js → server-DFCXmDed.js} +117 -55
  134. package/dist/{server-CMaTba5B.js → server-DL6UyXfJ.js} +8 -8
  135. package/dist/{server-5vLvBTTs.js → server-DPTp6GXS.js} +4 -4
  136. package/dist/{server-C_34VM3M.js → server-DRcCuj6P.js} +4 -4
  137. package/dist/{server-CcNMwEFQ.js → server-Dgn4el5K.js} +5 -5
  138. package/dist/{server-DSu_uLDX.js → server-DhkR6ugd.js} +6 -6
  139. package/dist/{server-C8HyW7wN.js → server-GIQIpf33.js} +8 -8
  140. package/dist/{server-CpJNq249.js → server-Ki0zw2Ro.js} +11 -11
  141. package/dist/{server-C_3jK2WM.js → server-MdXt445f.js} +41 -13
  142. package/dist/{server-DeSuziRK.js → server-OerXqXJT.js} +4 -4
  143. package/dist/{server-ZsazKk-n.js → server-V8W5mcGu.js} +6 -6
  144. package/dist/{server-Bm6pAAw8.js → server-_0288DYR.js} +4 -4
  145. package/dist/{server-BHhb0oir.js → server-cStfn1Yv.js} +4 -4
  146. package/dist/{server-ClsNJwdv.js → server-pY027myK.js} +14 -14
  147. package/dist/{serverPlugin-pCqlBqQG.js → serverPlugin-OOfjB8tm.js} +1114 -1111
  148. package/dist/{sessionConfig-DzAs6Pt-.js → sessionConfig-CDE3J31u.js} +263 -55
  149. package/dist/{validation-CkjZwpf-.js → validation-DuOGOKEi.js} +2 -2
  150. package/dist/{value-DGT5IoiK.js → value-DyVsxCwZ.js} +1 -1
  151. package/dist/{vaultSettings-BRr8n821.js → vaultSettings-BFCRCBM3.js} +1 -1
  152. package/dist/web-cN41ySs9.js +3 -0
  153. package/dist/worker.js +15830 -1106
  154. package/dist/workflow-BgwWq0nq.js +79 -0
  155. package/package.json +32 -32
  156. package/dist/assets/assets/channel-Bv5Xg5j2.js +0 -2
  157. package/dist/assets/assets/chunk-XXDRQBXY-Dx3Rd1jG.js +0 -2
  158. package/dist/assets/assets/flowDiagram-IUGLLWBU-BatlEhjt.js +0 -1
  159. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-C4juagrq.js +0 -9
  160. package/dist/contextProjection-DlB6wzhm.js +0 -209
  161. package/dist/harnessStore-Bap8lsAg.js +0 -1
  162. package/dist/majorModes-xpLK9HpD.js +0 -1
  163. package/dist/piSettings-B6fsgIBA.js +0 -1
  164. package/dist/web-Cfvbn9H1.js +0 -3
  165. package/dist/workflow-w5JPZXgc.js +0 -23
  166. /package/dist/assets/plugins/slots/{approval.8b3f37d9-CqQk6XG_.js → approval.09e72f36-CqQk6XG_.js} +0 -0
  167. /package/dist/assets/plugins/slots/{artifacts.47d00f81-D-vQ-7Iz.js → artifacts.50b639bb-D-vQ-7Iz.js} +0 -0
  168. /package/dist/assets/plugins/slots/{autocompact.9a92993d-B3KTYwW1.js → autocompact.6f428144-B3KTYwW1.js} +0 -0
  169. /package/dist/assets/plugins/slots/{builtin-tools.939bbfff-CZRYQVIP.js → builtin-tools.75108f21-CZRYQVIP.js} +0 -0
  170. /package/dist/assets/plugins/slots/{codemode.782e5bb1-Bzl_K_vt.js → codemode.c58fb583-Bzl_K_vt.js} +0 -0
  171. /package/dist/assets/plugins/slots/{domain.21790b66-CvnpuKCY.js → domain.753f9f92-CvnpuKCY.js} +0 -0
  172. /package/dist/assets/plugins/slots/{edit.c7c85129-kaxIknZ-.js → edit.804fec90-kaxIknZ-.js} +0 -0
  173. /package/dist/assets/plugins/slots/{files.bbcef824-wuB8gcQA.js → files.66ffc636-wuB8gcQA.js} +0 -0
  174. /package/dist/assets/plugins/slots/{grep.3dfd3214-3FnU8p-d.js → grep.98262cff-3FnU8p-d.js} +0 -0
  175. /package/dist/assets/plugins/slots/{log.33bc7d38-C0PXQ0O1.js → log.cb964209-C0PXQ0O1.js} +0 -0
  176. /package/dist/assets/plugins/slots/{mcp.59c68bcb-D0CkHnIw.js → mcp.82cc1ff5-D0CkHnIw.js} +0 -0
  177. /package/dist/assets/plugins/slots/{profile.ea55f5e1-BSY3iYfJ.js → profile.ab16dcec-BSY3iYfJ.js} +0 -0
  178. /package/dist/assets/plugins/slots/{prompts.9957cc84-xdCkNkoA.js → prompts.ae48c07a-xdCkNkoA.js} +0 -0
  179. /package/dist/assets/plugins/slots/{read.30a617e7-qqaxVlEX.js → read.4560591a-qqaxVlEX.js} +0 -0
  180. /package/dist/assets/plugins/slots/{runner.9f3559b0-DfO2Z9HG.js → runner.6e494d59-DfO2Z9HG.js} +0 -0
  181. /package/dist/assets/plugins/slots/{skill.f506a5ea-CL_n-l4h.js → skill.62a0a1b3-CL_n-l4h.js} +0 -0
  182. /package/dist/assets/plugins/slots/{vault.01657352-DbG3F_on.js → vault.3cbfcdc3-DbG3F_on.js} +0 -0
@@ -1,28 +1,23 @@
1
- import { G as Service, Yn as BACKGROUND_CONTEXT, l as nodeHost, p as getOrThrow, s as createSerialRunner, st as PO_CONFIG_SERVICE } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists, s as writeFileAtomic } from "./platformFiles-Ccj9HCvA.js";
3
- import { f as PROFILE_ICON_MIME_TYPES, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, s as isTimeZone, t as PO_CONFIG_ENTRY_TYPE } from "./contextProjection-DlB6wzhm.js";
4
- import "./platform-CyvF7X-b.js";
5
- import { t as createDirectoryWithMode } from "./atomicJson-BF1fVXy1.js";
6
- import { _ as YAMLMap, a as globalPoConfigDirectory, b as isSeq, d as configScopeOf, f as parsePoConfig, h as stringify, l as repositoryPoConfigPath, m as parseDocument, n as poConfigCandidates, o as globalPoConfigPath, p as parse, t as readPoConfigSourcesAsync, v as isMap } from "./layeredConfig-B4s0eZ5o.js";
7
- import { a as defaultDomainsForMajorMode, l as readPoConfig } from "./domains-Bl6T2dKV.js";
1
+ import { B as String$1, Bn as BACKGROUND_CONTEXT, R as Union, W as Null, b as Service, bn as getOrThrow, ft as _Object_, gn as nodeHost, mn as createSerialRunner, mt as Optional, rr as defineServiceContract, x as PO_CONFIG_SERVICE } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists, s as writeFileAtomic } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { t as createDirectoryWithMode } from "./atomicJson-DCIsEywH.js";
5
+ import { C as isSeq, _ as parseDocument, b as YAMLMap, c as globalPoConfigPath, f as repositoryPoConfigPath, g as parse, h as parsePoConfig, m as configScopeOf, n as poConfigCandidates, s as globalPoConfigDirectory, t as readPoConfigSourcesAsync, v as stringify, x as isMap } from "./layeredConfig-pQGjhAks.js";
6
+ import { a as defaultDomainsForMajorMode, l as readPoConfig, n as loadDomainsAsync, u as readPoConfigLayers } from "./domains-BqChtBLN.js";
8
7
  import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-58pU2dW5.js";
9
- import "./web-Cfvbn9H1.js";
10
- import { n as savePiImageSettingsAsync, r as DEFAULT_IMAGE_MAX_DIMENSION, t as readPiImageSettings } from "./piConfig-CcoMX-1L.js";
11
- import { i as MODES_FILE, r as loadMajorModesConfig, t as readMajorModesConfig } from "./majorModes-IygGmbb8.js";
12
- import { t as loadHarnessStateAsync } from "./harnessStore-flLz1I0F.js";
8
+ import "./web-cN41ySs9.js";
9
+ import { n as savePiImageSettingsAsync, r as DEFAULT_IMAGE_MAX_DIMENSION, t as readPiImageSettings } from "./piConfig-BDUpA6w0.js";
10
+ import { r as MODES_FILE, t as readMajorModesConfig } from "./majorModes-BrL4EtzH.js";
11
+ import { t as loadHarnessStateAsync } from "./harnessStore-BectazJQ.js";
13
12
  import path from "node:path";
14
13
  import { Buffer as Buffer$1 } from "node:buffer";
15
14
  //#region ../../foundations/po-config/src/services/config/sync.edge.ts
16
- function nodeOnly$2(name, asyncName) {
15
+ function nodeOnly(name, asyncName) {
17
16
  throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
18
17
  }
19
18
  /** @deprecated Node-only sync shim; use readPoConfig. Removed in M2. */
20
19
  function loadPoConfig(_repoRoot, _homeDirectory, _environment) {
21
- return nodeOnly$2("loadPoConfig", "readPoConfig");
22
- }
23
- /** @deprecated Node-only sync shim; use readPoConfigLayers. Removed in M2. */
24
- function loadPoConfigLayers(_repoRoot, _homeDirectory, _environment) {
25
- return nodeOnly$2("loadPoConfigLayers", "readPoConfigLayers");
20
+ return nodeOnly("loadPoConfig", "readPoConfig");
26
21
  }
27
22
  //#endregion
28
23
  //#region ../../foundations/po-config/src/services/configWriter/core.ts
@@ -138,15 +133,6 @@ async function writePoConfigValuesAsync(fs, filePath, edits, context, options =
138
133
  });
139
134
  }
140
135
  //#endregion
141
- //#region ../../foundations/po-config/src/services/domains/sync.edge.ts
142
- function nodeOnly$1(name, asyncName) {
143
- throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
144
- }
145
- /** @deprecated Node-only sync shim; use loadDomainsAsync. Removed in M2. */
146
- function loadDomains(_repoRoot, _homeDirectory) {
147
- return nodeOnly$1("loadDomains", "loadDomainsAsync");
148
- }
149
- //#endregion
150
136
  //#region ../../foundations/po-config/src/constants/settings.ts
151
137
  const SELECTION_KEYS = {
152
138
  majorMode: ["selection", "majorMode"],
@@ -352,6 +338,66 @@ function parsePersonaFrontMatter(content) {
352
338
  };
353
339
  }
354
340
  //#endregion
341
+ //#region ../../core/po-core/src/schemas/profileIdentity.ts
342
+ /**
343
+ * The custom session entry the runtime journals when the active profile's
344
+ * persona identity changes.
345
+ *
346
+ * A profile has always been prompt text only, so a cockpit had nothing to show
347
+ * for it beyond the profile name already published as footer status. This entry
348
+ * carries the persona's display name and avatar so the transcript can attribute
349
+ * each assistant message to the persona that produced it.
350
+ *
351
+ * It rides Pi's `entry_appended` frames on the road the agent-model projection
352
+ * already uses, so any RPC client sees the change live and on replay without a
353
+ * new protocol.
354
+ *
355
+ * Unlike the minor-mode, context, and agent-model projections, this entry is
356
+ * NOT a projection: it is transcript, positioned in journal order. A cockpit
357
+ * folding it must keep every occurrence rather than collapsing to the latest
358
+ * one, because a message written before a switch keeps the identity it was
359
+ * written under. Collapsing would rewrite history.
360
+ */
361
+ const PO_PROFILE_IDENTITY_ENTRY_TYPE = "po-profile-identity";
362
+ /**
363
+ * Ceiling on the encoded icon, counted on the finished `data:` URL rather than
364
+ * the file, so one number bounds both the journal entry and the transport.
365
+ *
366
+ * An avatar renders at 32 CSS pixels. This much room is already generous, and
367
+ * the cap exists because the entry is replayed with the transcript: an oversize
368
+ * icon is dropped and the persona keeps its name, never failing a profile load.
369
+ */
370
+ const PROFILE_ICON_MAX_DATA_URL_LENGTH = 262144;
371
+ const MAX_PROFILE_NAME_LENGTH = 128;
372
+ /**
373
+ * Image types allowed for a persona icon.
374
+ *
375
+ * Deliberately narrower than the cockpit's general media catalog: `image/svg+xml`
376
+ * is excluded because an SVG rendered same-origin executes script, and the icon
377
+ * path comes from user-authored persona front-matter. Do not reconcile this list
378
+ * with the broader media type map.
379
+ */
380
+ const PROFILE_ICON_MIME_TYPES = [
381
+ "image/png",
382
+ "image/jpeg",
383
+ "image/gif",
384
+ "image/webp"
385
+ ];
386
+ _Object_({
387
+ profile: Union([String$1({
388
+ minLength: 1,
389
+ maxLength: MAX_PROFILE_NAME_LENGTH
390
+ }), Null()]),
391
+ name: Optional(String$1({
392
+ minLength: 1,
393
+ maxLength: MAX_PROFILE_NAME_LENGTH
394
+ })),
395
+ icon: Optional(String$1({
396
+ minLength: 1,
397
+ maxLength: PROFILE_ICON_MAX_DATA_URL_LENGTH
398
+ }))
399
+ }, { additionalProperties: false });
400
+ //#endregion
355
401
  //#region ../../foundations/po-config/src/services/personaIcon/core.ts
356
402
  /**
357
403
  * Pure half of persona icon loading: confinement and image sniffing. The
@@ -439,6 +485,27 @@ async function readPersonaIconAsync(fs, personaPath, iconRelative, context) {
439
485
  }
440
486
  }
441
487
  //#endregion
488
+ //#region ../../core/po-core/src/schemas/personTimeZone.ts
489
+ const PO_PERSON_TIME_ZONE_SERVICE = "po/person-time-zone";
490
+ defineServiceContract(PO_PERSON_TIME_ZONE_SERVICE, { scope: "session" });
491
+ function readPoPersonTimeZone(context) {
492
+ return context.get(PO_PERSON_TIME_ZONE_SERVICE);
493
+ }
494
+ /** True for a zone name this runtime's Intl accepts, such as `Australia/Sydney`. */
495
+ function isTimeZone(value) {
496
+ if (typeof value !== "string" || value.length === 0 || value.length > 64) return false;
497
+ try {
498
+ new Intl.DateTimeFormat("en", { timeZone: value });
499
+ return true;
500
+ } catch {
501
+ return false;
502
+ }
503
+ }
504
+ /** The system prompt line. It names no clock time, so it stays stable and the prompt cache holds. */
505
+ function personTimeZoneLine(zone) {
506
+ return zone === void 0 ? "Person's timezone: unknown. Ask the person before acting on a clock time or date; never assume the server's zone." : `Person's timezone: ${zone.timeZone} (from their ${zone.source}). Read and write dates and clock times in this zone unless the person names another.`;
507
+ }
508
+ //#endregion
442
509
  //#region ../../foundations/po-config/src/services/profileBinding/index.ts
443
510
  const BINDING_KEYS = /* @__PURE__ */ new Set([
444
511
  "provider",
@@ -490,6 +557,26 @@ const BROWSER_MODES = /* @__PURE__ */ new Set([
490
557
  const ALIAS_PATTERN = /^[A-Z][A-Z0-9_]{0,63}$/;
491
558
  const FIELD_PATTERN = /^(?:[A-Za-z][A-Za-z0-9_.-]{0,63}|profileSecret:[A-Z][A-Z0-9_]{0,63})$/;
492
559
  const BROWSER_PROFILE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;
560
+ /** Browser-level defaults only. Every alias still requires its own exact recipient origins. */
561
+ const PROFILE_SOCIAL_BROWSER_ORIGINS = Object.freeze([
562
+ "https://x.com",
563
+ "https://www.x.com",
564
+ "https://twitter.com",
565
+ "https://www.twitter.com",
566
+ "https://reddit.com",
567
+ "https://www.reddit.com",
568
+ "https://linkedin.com",
569
+ "https://www.linkedin.com",
570
+ "https://facebook.com",
571
+ "https://www.facebook.com",
572
+ "https://instagram.com",
573
+ "https://www.instagram.com",
574
+ "https://tiktok.com",
575
+ "https://www.tiktok.com",
576
+ "https://youtube.com",
577
+ "https://www.youtube.com",
578
+ "https://accounts.google.com"
579
+ ]);
493
580
  function record(value, location, keys) {
494
581
  if (typeof value !== "object" || value === null || Array.isArray(value)) throw new Error(`${location} must be a mapping`);
495
582
  if (keys && Object.keys(value).some((key) => !keys.has(key))) throw new Error(`${location} contains unsupported metadata`);
@@ -555,7 +642,7 @@ function browser(value, location) {
555
642
  if (pinned?.required && entry.mode !== void 0 && entry.mode !== "playwright") throw new Error(`${location}.fingerprint.required needs playwright mode`);
556
643
  return Object.freeze({
557
644
  profileName: entry.profileName,
558
- allowedOrigins: origins(entry.allowedOrigins, `${location}.allowedOrigins`),
645
+ allowedOrigins: Object.freeze([.../* @__PURE__ */ new Set([...origins(entry.allowedOrigins, `${location}.allowedOrigins`), ...PROFILE_SOCIAL_BROWSER_ORIGINS])]),
559
646
  ...entry.mode === void 0 ? {} : { mode: entry.mode },
560
647
  ...entry.proxySecret === void 0 ? {} : { proxySecret: entry.proxySecret },
561
648
  ...entry.geoip === void 0 ? {} : { geoip: entry.geoip },
@@ -920,19 +1007,6 @@ function sortProfiles(byName) {
920
1007
  return [...byName.values()].sort((left, right) => left.name.localeCompare(right.name));
921
1008
  }
922
1009
  //#endregion
923
- //#region ../../foundations/po-config/src/services/profiles/sync.edge.ts
924
- function nodeOnly(name, asyncName) {
925
- throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
926
- }
927
- /** @deprecated Node-only sync shim; use loadProfilesAsync. Removed in M2. */
928
- function loadProfiles(_repoRoot, _homeDirectory) {
929
- return nodeOnly("loadProfiles", "loadProfilesAsync");
930
- }
931
- /** @deprecated Node-only sync shim; use buildPersonaPromptAsync. Removed in M2. */
932
- function buildPersonaPrompt(_personaRoot, _personaDirectory) {
933
- return nodeOnly("buildPersonaPrompt", "buildPersonaPromptAsync");
934
- }
935
- //#endregion
936
1010
  //#region ../../foundations/po-config/src/services/profiles/index.ts
937
1011
  /** Profile reads over a FileSystem; the Node shims in `./sync` give the same answers from node:fs. */
938
1012
  const realPath = async (fs, target, context) => getOrThrow(await fs.canonicalPath(target, context));
@@ -1090,6 +1164,13 @@ async function commitGlobalProfileRootAsync(fs, plan, context) {
1090
1164
  }
1091
1165
  //#endregion
1092
1166
  //#region ../../foundations/po-config/src/services/settings/index.ts
1167
+ /** The mount's admitted home and environment, so no reader falls back to the host's. */
1168
+ function readOptions(homeDirectory, environment) {
1169
+ return {
1170
+ ...homeDirectory === void 0 ? {} : { homeDirectory },
1171
+ environment
1172
+ };
1173
+ }
1093
1174
  function isRecord(value) {
1094
1175
  return typeof value === "object" && value !== null && !Array.isArray(value);
1095
1176
  }
@@ -1142,12 +1223,13 @@ function configuredSelectionValue(layers, key, effective) {
1142
1223
  origin
1143
1224
  };
1144
1225
  }
1145
- function repositorySettingsView(repository, homeDirectory, environment) {
1226
+ async function repositorySettingsView(fs, repository, homeDirectory, environment, io) {
1146
1227
  const repoRoot = repository.path;
1147
- const layers = loadPoConfigLayers(repoRoot, homeDirectory, environment);
1148
- const modes = loadMajorModesConfig(repoRoot, homeDirectory, environment);
1149
- const domains = loadDomains(repoRoot, homeDirectory);
1150
- const profiles = loadProfiles(repoRoot, homeDirectory);
1228
+ const options = readOptions(homeDirectory, environment);
1229
+ const layers = await readPoConfigLayers(fs, repoRoot, io, options);
1230
+ const modes = await readMajorModesConfig(fs, repoRoot, io, options);
1231
+ const domains = await loadDomainsAsync(fs, repoRoot, io, homeDirectory);
1232
+ const profiles = await loadProfilesAsync(fs, repoRoot, io, homeDirectory);
1151
1233
  const configured = layers.effective.selection;
1152
1234
  const effectiveMajorMode = configured?.majorMode ?? modes.defaultMajorMode;
1153
1235
  const effectiveDomains = configured?.domains ?? defaultDomainsForMajorMode(effectiveMajorMode, {}, domains.defaultDomains);
@@ -1226,9 +1308,9 @@ function selectionEdits(changes) {
1226
1308
  ...value === null ? {} : { value }
1227
1309
  }));
1228
1310
  }
1229
- function configView(context, keys) {
1311
+ async function configView(fs, context, keys, io) {
1230
1312
  const root = context.scope === "workspace" ? context.workspaceRoot : void 0;
1231
- const layers = loadPoConfigLayers(root, context.homeDirectory, context.environment ?? {});
1313
+ const layers = await readPoConfigLayers(fs, root, io, readOptions(context.homeDirectory, context.environment ?? {}));
1232
1314
  const values = {};
1233
1315
  for (const key of keys) {
1234
1316
  const keyPath = key.split(".");
@@ -1252,7 +1334,7 @@ function configView(context, keys) {
1252
1334
  //#region ../../foundations/po-config/src/services/settingsApi/index.ts
1253
1335
  /**
1254
1336
  * Config handlers are bound to their mount. Request paths cannot choose a different repository.
1255
- * Writes and image settings go through the host's FileSystem.
1337
+ * Reads, writes and image settings all go through the host's FileSystem.
1256
1338
  */
1257
1339
  const createSettingsApi = (fs) => ({
1258
1340
  basePath: "settings",
@@ -1286,9 +1368,9 @@ const createSettingsApi = (fs) => ({
1286
1368
  */
1287
1369
  const addresses = (route) => url.pathname === route.path && request.method === route.method;
1288
1370
  const currentRepository = repository();
1289
- if (addresses(apiRoutes_default.config)) return Response.json(configView(context, url.searchParams.getAll("key")));
1371
+ if (addresses(apiRoutes_default.config)) return Response.json(await configView(fs, context, url.searchParams.getAll("key"), io));
1290
1372
  if (addresses(apiRoutes_default.repositories)) return Response.json({ repositories: context.repositories?.() ?? [] });
1291
- if (addresses(apiRoutes_default.repository)) return currentRepository ? Response.json(repositorySettingsView(currentRepository, homeDirectory, environment)) : Response.json({ error: "Choose a workspace." }, { status: 404 });
1373
+ if (addresses(apiRoutes_default.repository)) return currentRepository ? Response.json(await repositorySettingsView(fs, currentRepository, homeDirectory, environment, io)) : Response.json({ error: "Choose a workspace." }, { status: 404 });
1292
1374
  if (url.pathname === apiRoutes_default.images.path && context.scope === "global") {
1293
1375
  if (request.method === apiRoutes_default.images.method) return Response.json(await imageView());
1294
1376
  if (request.method === apiRoutes_default.saveImages.method) {
@@ -1318,7 +1400,7 @@ const createSettingsApi = (fs) => ({
1318
1400
  const body = parseSelectionWrite(await request.json());
1319
1401
  if (!body) return Response.json({ error: "A selection write needs typed changes and a file hash." }, { status: 400 });
1320
1402
  if (!currentRepository || body.repositoryId !== currentRepository.id) return Response.json({ error: "Workspace not found in this mount." }, { status: 404 });
1321
- const before = repositorySettingsView(currentRepository, homeDirectory, environment);
1403
+ const before = await repositorySettingsView(fs, currentRepository, homeDirectory, environment, io);
1322
1404
  if (before.hash !== body.expectedHash) return Response.json({
1323
1405
  error: "The repository config changed since it was read.",
1324
1406
  hash: before.hash
@@ -1327,7 +1409,7 @@ const createSettingsApi = (fs) => ({
1327
1409
  if (invalid) return Response.json({ error: invalid }, { status: 422 });
1328
1410
  await writePoConfigValuesAsync(fs, repositoryPoConfigPath(currentRepository.path), selectionEdits(body.changes), io, { scope: "repository" });
1329
1411
  context.configurationChanged?.();
1330
- return Response.json(repositorySettingsView(currentRepository, homeDirectory, environment));
1412
+ return Response.json(await repositorySettingsView(fs, currentRepository, homeDirectory, environment, io));
1331
1413
  }
1332
1414
  if (addresses(apiRoutes_default.value)) {
1333
1415
  const body = parseWrite(await request.json());
@@ -1338,7 +1420,7 @@ const createSettingsApi = (fs) => ({
1338
1420
  const allowed = configScopeOf(edit.keyPath);
1339
1421
  return allowed !== "both" && allowed !== scope;
1340
1422
  })) return Response.json({ error: "This key cannot be set at this scope." }, { status: 409 });
1341
- const before = configView(context, []);
1423
+ const before = await configView(fs, context, [], io);
1342
1424
  if (before.hashes[scope] !== body.expectedHash) return Response.json({
1343
1425
  error: "The config changed since it was read.",
1344
1426
  hash: before.hashes[scope]
@@ -1348,7 +1430,7 @@ const createSettingsApi = (fs) => ({
1348
1430
  ...value === null ? {} : { value }
1349
1431
  })), io, { scope });
1350
1432
  context.configurationChanged?.();
1351
- return Response.json(configView(context, body.edits.map((edit) => edit.keyPath.join("."))));
1433
+ return Response.json(await configView(fs, context, body.edits.map((edit) => edit.keyPath.join(".")), io));
1352
1434
  }
1353
1435
  return Response.json({ error: "Configuration route not found." }, { status: 404 });
1354
1436
  };
@@ -1373,6 +1455,132 @@ const createSettingsApi = (fs) => ({
1373
1455
  }
1374
1456
  });
1375
1457
  //#endregion
1458
+ //#region ../../core/po-core/src/services/toolCost/index.ts
1459
+ /** Mirrors the wire shape MCP advertises, so both estimates stay comparable. */
1460
+ function schemaPayload(entry) {
1461
+ return JSON.stringify({
1462
+ name: entry.name,
1463
+ ...entry.description === void 0 ? {} : { description: entry.description },
1464
+ ...entry.parameters === void 0 ? {} : { parameters: entry.parameters }
1465
+ });
1466
+ }
1467
+ function promptPayload(entry) {
1468
+ return [entry.promptSnippet ?? "", ...entry.promptGuidelines ?? []].filter(Boolean).join("\n");
1469
+ }
1470
+ function tokensForTool(entry, countTokens) {
1471
+ const schemaTokens = countTokens(schemaPayload(entry));
1472
+ const prompt = promptPayload(entry);
1473
+ const promptTokens = prompt.length === 0 ? 0 : countTokens(prompt);
1474
+ return {
1475
+ schemaTokens,
1476
+ promptTokens,
1477
+ totalTokens: schemaTokens + promptTokens
1478
+ };
1479
+ }
1480
+ /** Journal entry the cockpit reads; mirrored by CONTEXT_ENTRY_TYPE in po-web. */
1481
+ const PO_CONTEXT_ENTRY_TYPE = "po-context";
1482
+ /** Session selection and transition journal identities, not transport channels. */
1483
+ const PO_CONFIG_ENTRY_TYPE = "po:config:v1";
1484
+ const PO_CONFIG_TRANSITION_ENTRY_TYPE = "po:transition:v1";
1485
+ /** The tokenizer these counts came from, so a reader can judge them. */
1486
+ const CONTEXT_PROJECTION_ESTIMATOR = "gpt-tokenizer";
1487
+ /** Everything the runtime could not attribute lands here rather than vanishing. */
1488
+ const CORE_GROUP = "core";
1489
+ /** Pi's own tools have no package; the runtime itself is the owner. */
1490
+ const CORE_OWNER = "pi";
1491
+ const KIND_ORDER = {
1492
+ major: 0,
1493
+ minor: 1,
1494
+ domain: 2,
1495
+ shared: 3,
1496
+ core: 4
1497
+ };
1498
+ const SOURCE_ORDER = {
1499
+ extension: 0,
1500
+ mcp: 1,
1501
+ plugin: 2,
1502
+ core: 3
1503
+ };
1504
+ function skillSource(group) {
1505
+ if (group === "plugins") return "plugin";
1506
+ if (group === "extensions") return "extension";
1507
+ return "core";
1508
+ }
1509
+ function byRow(left, right) {
1510
+ return SOURCE_ORDER[left.source] - SOURCE_ORDER[right.source] || left.name.localeCompare(right.name);
1511
+ }
1512
+ function projectContext(input) {
1513
+ const buckets = /* @__PURE__ */ new Map();
1514
+ const declare = (id, label, kind) => {
1515
+ if (!buckets.has(id)) buckets.set(id, {
1516
+ kind,
1517
+ label,
1518
+ items: []
1519
+ });
1520
+ };
1521
+ if (input.majorMode) declare(input.majorMode, input.majorMode, "major");
1522
+ for (const group of input.groups) declare(group.id, group.label, group.kind);
1523
+ for (const domain of input.domains) declare(domain, domain, "domain");
1524
+ const place = (owner, item, conditional) => {
1525
+ const attributed = conditional ?? input.attribution[owner];
1526
+ const id = attributed?.mode ?? CORE_GROUP;
1527
+ const kind = attributed?.kind ?? "core";
1528
+ declare(id, attributed && "label" in attributed ? attributed.label ?? id : id, kind);
1529
+ buckets.get(id)?.items.push(item);
1530
+ };
1531
+ for (const source of input.sources) {
1532
+ const owner = source.kind === "extension" ? source.packageName ?? source.key : source.kind === "mcp" ? source.key.slice(4) : CORE_OWNER;
1533
+ for (const tool of source.tools) {
1534
+ const cost = tokensForTool(tool, input.countTokens);
1535
+ const item = {
1536
+ name: tool.name,
1537
+ itemKind: "tool",
1538
+ source: source.kind === "core" ? "core" : source.kind,
1539
+ owner,
1540
+ tokens: cost.totalTokens,
1541
+ active: tool.active
1542
+ };
1543
+ if (source.kind === "core") {
1544
+ declare(CORE_GROUP, CORE_GROUP, "core");
1545
+ buckets.get(CORE_GROUP)?.items.push(item);
1546
+ } else place(owner, item, tool.contextAttribution);
1547
+ }
1548
+ }
1549
+ for (const skill of input.skills) place(skill.owner, {
1550
+ name: skill.name,
1551
+ itemKind: "skill",
1552
+ source: skillSource(skill.group),
1553
+ owner: skill.owner,
1554
+ tokens: skill.promptTokens ?? 0,
1555
+ active: true
1556
+ }, skill.contextAttribution);
1557
+ const groups = [...buckets.entries()].map(([id, bucket]) => {
1558
+ const items = [...bucket.items].sort(byRow);
1559
+ return {
1560
+ id,
1561
+ label: bucket.label,
1562
+ kind: bucket.kind,
1563
+ items,
1564
+ tokens: items.reduce((total, item) => total + (item.active ? item.tokens : 0), 0),
1565
+ inactiveTokens: items.reduce((total, item) => total + (item.active ? 0 : item.tokens), 0)
1566
+ };
1567
+ }).sort((left, right) => KIND_ORDER[left.kind] - KIND_ORDER[right.kind] || left.label.localeCompare(right.label));
1568
+ return {
1569
+ version: 1,
1570
+ revision: input.revision,
1571
+ selection: {
1572
+ majorMode: input.majorMode,
1573
+ domains: [...input.domains],
1574
+ ...input.profile === void 0 ? {} : { profile: input.profile }
1575
+ },
1576
+ groups,
1577
+ totalTokens: groups.reduce((total, group) => total + group.tokens, 0),
1578
+ inactiveTokens: groups.reduce((total, group) => total + group.inactiveTokens, 0),
1579
+ ...input.systemPrompt === void 0 ? {} : { systemPrompt: input.systemPrompt },
1580
+ estimator: CONTEXT_PROJECTION_ESTIMATOR
1581
+ };
1582
+ }
1583
+ //#endregion
1376
1584
  //#region ../../foundations/po-config/src/services/poConfigService/index.ts
1377
1585
  function deepFreeze$1(value) {
1378
1586
  if (typeof value !== "object" || value === null || Object.isFrozen(value)) return value;
@@ -1523,4 +1731,4 @@ function providePoConfigContext(ctx, context, generation = `po-config:${crypto.r
1523
1731
  return new PoConfigService(ctx, deepFreeze(context), loadPoConfig, generation);
1524
1732
  }
1525
1733
  //#endregion
1526
- export { commitGlobalProfileRootAsync as a, buildPersonaPrompt as c, parseProfileBinding as d, parseProfileVaultSecrets as f, ProfileCatalogChangedError as i, loadProfiles as l, providePoConfigContext as n, loadProfilesAsync as o, loadPoConfig as p, createSettingsApi as r, planGlobalProfileRootAsync as s, createNativePoConfigContext as t, inlineProfile as u };
1734
+ export { readPoPersonTimeZone as _, tokensForTool as a, PROFILE_ICON_MIME_TYPES as b, commitGlobalProfileRootAsync as c, inlineProfile as d, parseProfileBinding as f, personTimeZoneLine as g, isTimeZone as h, projectContext as i, loadProfilesAsync as l, PO_PERSON_TIME_ZONE_SERVICE as m, providePoConfigContext as n, createSettingsApi as o, parseProfileVaultSecrets as p, PO_CONTEXT_ENTRY_TYPE as r, ProfileCatalogChangedError as s, createNativePoConfigContext as t, planGlobalProfileRootAsync as u, PO_PROFILE_IDENTITY_ENTRY_TYPE as v, loadPoConfig as x, PROFILE_ICON_MAX_DATA_URL_LENGTH as y };
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Lt as Integer, Ot as Number$1, Qt as _Object_, Xt as Unknown, an as _Array_, en as Optional, vt as Record, wt as Union, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { t as PoProtocolError } from "./protocol-Q7TFrOIs.js";
1
+ import { $ as Boolean, B as String, H as Number$1, M as Record, R as Union, X as Literal, Z as Integer, ft as _Object_, mt as Optional, ut as Unknown, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import { t as PoProtocolError } from "./protocol-B6LbEIe6.js";
3
3
  //#region ../../foundations/po-minor-mode/src/schemas/mode.ts
4
4
  const MINOR_MODE_CATALOG_SOURCE = "@agimon-ai/po/mode-catalog";
5
5
  const PO_MINOR_MODE_CATALOG_SERVICE = "po/minor-mode-catalog";
@@ -1,4 +1,4 @@
1
- import { An as IsLessEqualThan, Bn as IsSymbol, Cn as IsConstructor, Dn as IsGreaterEqualThan, En as IsFunction, Et as String$1, Fn as IsNull, Gn as Some, Hn as IsUnsafePropertyKey, In as IsNumber, It as Literal, Kn as SomeAll, Ln as IsObject, Mn as IsMaxLength$1, Nn as IsMinLength$1, On as IsGreaterThan, Pn as IsMultipleOf$1, Qt as _Object_, Rn as IsObjectNotArray, Tn as IsEqual, Un as IsValueLike, Ut as Hash, Vn as IsUndefined, Wn as Keys, Xt as Unknown, _n as EveryAll, bn as IsBigInt, cn as Get$2, gn as Every, jn as IsLessThan, kn as IsInteger, mn as Entries, pn as Counted, vn as HasPropertyKey, wn as IsDeepEqual, wt as Union, xn as IsBoolean, yn as IsArray, zn as IsString } from "./serverPlugin-pCqlBqQG.js";
1
+ import { $t as IsString, At as Every, B as String$1, Bt as IsFunction, Dt as Counted, Ft as IsBoolean, Gt as IsLessThan, Ht as IsGreaterThan, Jt as IsMultipleOf$1, Kt as IsMaxLength$1, Lt as IsConstructor, Mt as HasPropertyKey, Nt as IsArray, Ot as Entries, Pt as IsBigInt, Qt as IsObjectNotArray, R as Union, Rt as IsDeepEqual, St as Get$2, Ut as IsInteger, Vt as IsGreaterEqualThan, Wt as IsLessEqualThan, X as Literal, Xt as IsNumber, Yt as IsNull, Zt as IsObject, an as Some, en as IsSymbol, ft as _Object_, in as Keys, jt as EveryAll, nn as IsUnsafePropertyKey, on as SomeAll, qt as IsMinLength$1, rn as IsValueLike, rt as Hash, tn as IsUndefined, ut as Unknown, zt as IsEqual } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#endregion
3
3
  //#region ../../../node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/arguments/arguments.mjs
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { nr as defineServiceContract } from "./serverPlugin-pCqlBqQG.js";
1
+ import { rr as defineServiceContract } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../foundations/po-vault/src/constants/vault.ts
3
3
  const PO_VAULT_SERVICE = "po/vault";
4
4
  /** The signed-in account's shared vault, bound by a host that can reach it; absent otherwise. */
@@ -0,0 +1,3 @@
1
+ import "./serverPlugin-OOfjB8tm.js";
2
+ import "./approvalPrompt-DoHlIPkU.js";
3
+ import "./hubRevisions-58pU2dW5.js";