@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,12 +1,12 @@
1
- import { s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import "./platform-CyvF7X-b.js";
3
- import "./atomicJson-BF1fVXy1.js";
4
- import "./layeredConfig-B4s0eZ5o.js";
5
- import "./sessionConfig-DzAs6Pt-.js";
6
- import "./domains-Bl6T2dKV.js";
7
- import "./piConfig-CcoMX-1L.js";
8
- import "./majorModes-IygGmbb8.js";
9
- import "./harnessStore-flLz1I0F.js";
1
+ import { mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./platform-yhQXrrM_.js";
3
+ import "./atomicJson-DCIsEywH.js";
4
+ import "./layeredConfig-pQGjhAks.js";
5
+ import "./sessionConfig-CDE3J31u.js";
6
+ import "./domains-BqChtBLN.js";
7
+ import "./piConfig-BDUpA6w0.js";
8
+ import "./majorModes-BrL4EtzH.js";
9
+ import "./harnessStore-BectazJQ.js";
10
10
  import "node:path";
11
11
  //#region ../../foundations/po-config/src/services/init/templates.ts
12
12
  /** Personal-only: a repository pin would override the layout the person picks during onboarding. */
@@ -1,4 +1,4 @@
1
- import { U as readPoHeadlessHost, X as requirePoServerHost, er as PO_SERVER_SCOPE_LEVELS, ir as requirePoServerScope, q as PO_SERVER_HOST_SERVICE, tr as PO_SERVER_SCOPE_SERVICE } from "./serverPlugin-pCqlBqQG.js";
1
+ import { ar as requirePoServerScope, g as PO_SERVER_HOST_SERVICE, nr as PO_SERVER_SCOPE_SERVICE, p as readPoHeadlessHost, tr as PO_SERVER_SCOPE_LEVELS, y as requirePoServerHost } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../core/po-core/src/services/pluginLifecycle/index.ts
3
3
  /** Runs ordered cleanup steps to completion before reporting their failures. */
4
4
  async function runCleanups(steps, message) {
@@ -1,7 +1,7 @@
1
- import { l as nodeHost, s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./atomicJson-BF1fVXy1.js";
1
+ import { gn as nodeHost, mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import "./atomicJson-DCIsEywH.js";
5
5
  import { t as readHarnessState } from "./harnessState-gmzJcPGt.js";
6
6
  import "node:path";
7
7
  //#region ../../foundations/po-config/src/services/harnessStore/core.ts
@@ -0,0 +1 @@
1
+ import "./harnessStore-BectazJQ.js";
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Lt as Integer, Qt as _Object_, an as _Array_, en as Optional, nr as defineServiceContract, wt as Union } from "./serverPlugin-pCqlBqQG.js";
2
- import "./value-DGT5IoiK.js";
1
+ import { B as String, R as Union, X as Literal, Z as Integer, ft as _Object_, mt as Optional, rr as defineServiceContract, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./value-DyVsxCwZ.js";
3
3
  //#region ../../core/po-core/src/schemas/help.ts
4
4
  const PO_HELP_WHEN = {
5
5
  state: { "minor-mode": "help" },
@@ -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 ../../core/po-core/src/schemas/packageApi.ts
3
3
  /** Only canonical resource paths may select a protocol listener. */
4
4
  function parsePoSocketPath(pathname) {
@@ -70,6 +70,8 @@ const PO_EDIT_PRESENCE_CONTRACT = defineServiceContract(PO_EDIT_PRESENCE_SERVICE
70
70
  //#region ../../core/po-core/src/schemas/hubChannel.ts
71
71
  /** Compact host-wide session attention, published over the existing direct event bus. */
72
72
  const PO_SESSION_ATTENTION_EVENT = "po.session.attention";
73
+ /** Caller-authored attention entries, consumed live without replaying historical notices. */
74
+ const PO_SESSION_NOTIFICATION_EVENT = "po.session.notification";
73
75
  /**
74
76
  * Provenance of a session a workflow step opened.
75
77
  *
@@ -85,4 +87,4 @@ const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
85
87
  */
86
88
  const COORDINATOR_SESSION_PROVENANCE = "coordinator";
87
89
  //#endregion
88
- export { PO_API_ROUTE_PREFIX as a, parsePoSocketPath as c, WORKFLOW_STEP_SESSION_PROVENANCE as i, poApiCallerFrom as l, PO_SESSION_ATTENTION_EVENT as n, PO_EDIT_PRESENCE_CONTRACT as o, REMOTE_CONVERSATION_SESSION_PROVENANCE as r, PO_EDIT_PRESENCE_SERVICE as s, COORDINATOR_SESSION_PROVENANCE as t };
90
+ export { WORKFLOW_STEP_SESSION_PROVENANCE as a, PO_EDIT_PRESENCE_SERVICE as c, REMOTE_CONVERSATION_SESSION_PROVENANCE as i, parsePoSocketPath as l, PO_SESSION_ATTENTION_EVENT as n, PO_API_ROUTE_PREFIX as o, PO_SESSION_NOTIFICATION_EVENT as r, PO_EDIT_PRESENCE_CONTRACT as s, COORDINATOR_SESSION_PROVENANCE as t, poApiCallerFrom as u };
@@ -1,5 +1,5 @@
1
- import { p as parse } from "./layeredConfig-B4s0eZ5o.js";
2
- import { s as isRemotePluginSource } from "./domains-Bl6T2dKV.js";
1
+ import { g as parse } from "./layeredConfig-pQGjhAks.js";
2
+ import { s as isRemotePluginSource } from "./domains-BqChtBLN.js";
3
3
  //#region ../../foundations/po-domain/src/services/pluginMaterializer/index.edge.ts
4
4
  /**
5
5
  * Local plugin entries pass through unchanged. Remote entries need git or upm
@@ -1,5 +1,5 @@
1
- import { a as piAgentDirectory } from "./serverPlugin-pCqlBqQG.js";
2
- import "./piSettings-B6fsgIBA.js";
1
+ import { fn as piAgentDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./piSettings-tdui0CZI.js";
3
3
  import path from "node:path";
4
4
  //#region ../../foundations/po-artifact/src/constants/artifacts.ts
5
5
  const ARTIFACT_DIRECTORY = "po-artifacts";
@@ -19,7 +19,7 @@ var _virtual_po_bundle_default = {
19
19
  "/bundle/po-mcp/src/prompts/help-how-to-mcp/SKILL.md": "---\nname: help-how-to-mcp\ndescription: Use Po MCP to inspect domain-scoped servers, authenticate, reload configuration, measure what server tool schemas cost in context, and troubleshoot tool availability.\n---\n\n# Use Po MCP\n\nUse MCP when a task depends on a configured external server, proxy upstream, or tool selected by the active Po domains.\n\n## Named tools and accounts\n\nMain and native child agents receive permitted direct tool names, descriptions and complete input schemas.\nUse the advertised registered name: configured entries `personal` and `work` exposing `search` become\n`personal_search` and `work_search`, even at the same endpoint. Each entry uses its own connection and\nconfigured-name credential slot. Never infer dispatch identity by splitting the prefix.\n\nChildren borrow the parent's tools. The direct connection-management tool is main-agent-only;\nborrowed trusted `exec` still binds to the parent's session. `mcp` and `mcp_use` requests\nexpand into permitted direct tools; configured-server or `server/tool` selectors narrow access.\nCapability ceilings require explicit MCP permission and still constrain exact tool grants.\n\n## Po MCP namespace\n\nCode mode's `mcp` namespace is taught by the `codemode-how-to-mcp` skill, which is always\nactive. Pi's internal MCP codemode and tool search remain disabled. These are separate\nmechanisms, also distinct from code mode run by a remote MCP client. While code mode is\nbound, the main agent's direct tools for these servers are withdrawn (Context lists them as\ninactive) and only an MCP App's tool stays direct. Without code mode every direct tool and the\n`mcp_use` compatibility route remain. The namespace does not change MCP access grants.\n\n## Remote MCP connection\n\nThis connection already belongs to one Po session. Use the tools actually\nexposed by its selected domains. Prefer a named upstream tool with its declared\nschema. Use `mcp_use` only when the server name, tool name, and arguments have\nbeen discovered from a trusted catalog; never guess them.\n\nThe commands below are local Po interfaces, not Bash commands or MCP tools.\nIf status, authentication, or reload is not exposed, explain which local action\nthe user needs to take. Do not read private credentials or create another session\nto work around an unavailable capability. Tool/resource support in a packaged\nChatGPT plugin does not establish support in this MCP connection.\n\n## Local Po: inspect and operate\n\n- Run `/mcp` for the interactive overlay.\n- Run `/mcp status` to inspect configured servers, connection state, and diagnostics.\n- Run `/mcp auth <server>` when a server requires OAuth authorization.\n- Run `/mcp reload` after changing MCP configuration.\n\nThe web Context panel also offers authorization and management actions. Headless hosts never open a desktop browser automatically; use the provider link in Context or the reported authorization URL.\n\n## Test a URL server without saving it\n\nAsk the person for permission before connecting. Help mode is not approval.\nIn Help mode, discover `mcpTest` and call `await mcpTest.add({name, url, type: 'http'})`\n(or `type: 'sse'`). Optional headers and OAuth client settings use the discovered schema.\nNever paste literal secrets into tool arguments or code: conversation history can persist them.\nUse `${ENV_VAR}` references from the admitted session environment for sensitive settings.\nIn configured servers, prefer `${vault:NAME}` references in header values, env values and\n`bearerToken`. Agents never write secret values: ask the person to enter a missing secret in the\nsession MCP panel (\"needs secret NAME\").\nWithout code mode, use the main-agent-only `mcp_test_server` tool with `action: 'add'` and `server`.\n\nAdd waits for connection and OAuth completion. If sign-in is needed, ask the person to open\nthe MCP servers panel and follow its link. Use a long enough `exec` timeout or a background\nexec for browser sign-in. Cancellation removes the unfinished addition. Never paste secrets\nor authorization codes into the conversation.\n\n`mcpTest.list()` lists only session-added servers. `mcpTest.remove(name)` disconnects one and\nforgets its memory credentials. Entries, headers and credentials never go into MCP config,\nthe Po vault, credential files or the shared definitions cache. Reload retains them; ending the\nsession forgets them. Turning Help off hides management but leaves already-added servers\nconnected. MCP disabled with `--no-mcp` remains disabled. No stdio or `/mcp add` is supported.\n\n## Inspect schema cost and domain selection\n\nPermitted direct tools contribute names, descriptions and full input schemas to native child model context, and to the main agent's unless code mode is bound (then only MCP Apps' tools do). Context shows the active declarations and estimated schema cost; a withdrawn tool shows as inactive.\n\n- Run `po --explain` to inspect per-server schema estimates. Figures come from a real handshake and are cached, so the first run for a new server descriptor is slower than later ones.\n- Compare declarations with `po --domains <name[,name...]> --explain`.\n- Control server availability with an `mcp.servers` allowlist in `.po/domains.yaml` rather than deleting servers from `.mcp.json`, which keeps them available to other domains.\n\nKeep catalogs out of prompt prose and narrow child subsets. Filtering activates only when every selected domain declares `mcp`. A selection that mixes an allowlisted domain with one that omits `mcp` stays unfiltered.\n\n## Troubleshoot missing tools\n\n1. Confirm the server exists in repository `.mcp.json`, a valid Agent Plugin `mcp.json`, or `mcp-config.yaml` for proxy upstreams.\n2. Confirm the active `.po/domains.yaml` selection permits the direct server or proxy upstream.\n3. Check `/mcp status` diagnostics before changing configuration.\n4. Reload after a valid change, then confirm the tool catalog again.\n5. If Po was launched with `--no-mcp`, keep MCP disabled unless the user explicitly starts a new session without that flag.\n6. A server in the `closed`, `degraded`, `failed` or `needs-auth` state is withheld from direct tools, the `mcp` namespace and `codemode-how-to-mcp` until it reconnects. After `/mcp disconnect <server>` it stays hidden, even across `/mcp reload`, until `/mcp auth <server>`, a supplied secret or a reconnect. Removing a server in settings drops it from every live session whose copy came from that file.\n\n## Approval for tools that change data\n\nMCP tools that are not marked `readOnlyHint: true` or `destructiveHint: false` go through Po's approval gate before they run, from direct tools, `mcp_use`, the code-mode `mcp` namespace and MCP App calls. The request is non-blocking: the agent keeps working and the call runs once approved.\n\n- Global switch: \"Run destructive MCP tools without asking\" in MCP settings, saved as `autoApproveDestructiveTools` in `<po home>/mcp-settings.json`. It applies to every session at once.\n- Session switch: `/mcp approve on|off|status`. It resets when the session restarts.\n- Either switch skips the prompt. An MCP App call the person already confirmed in the App is not asked twice.\n- Subagents, background execs and unattended runs are not asked; they run directly. Keep auto-approve off unless the person wants it.\n- The edge host has neither switch, so its destructive tools always ask.\n Domain filtering happens before disallowed stdio processes are spawned. Treat allowed stdio configuration as executable code because it runs with the Pi process environment and operating-system privileges. Keep OAuth stores and emitted configuration private.\n\n## Session file transfer\n\nUse advertised `share_file({path})` for a short-lived public link to a session file,\nnot an absolute host path as an attachment. It needs remote access and returns\nURL, file name, MIME, size, expiry, and a three-download limit without a consent\nprompt. Outbound file parameters to other MCP servers still ask consent.\n\n`save_file` accepts exactly one `file` form: a public HTTPS\n`{download_url,file_name,file_id?,mime_type?}` (25 MiB maximum), or\n`{name,data_base64}` (5 MiB decoded maximum). Default storage is private session\nattachments. Optional relative `path` writes a new file in the bound cwd through\nexisting non-symlink parents, never overwriting. This mode assumes no hostile\nconcurrent workspace mutation; portable identity rechecks are not atomic against\nancestor swaps. Failed cwd writes truncate owned bytes but may leave an empty\nprivate file that must be removed before retry.\n",
20
20
  "/bundle/po-profile/src/prompts/codemode-how-to-memory/SKILL.md": "---\nname: codemode-how-to-memory\ndescription: Keep and recall durable facts about how the person likes to work, per profile, through the memory namespace. Use when a stable preference, convention, or decision should outlive this session, or when earlier context about the person may help; not for task progress or repository facts.\n---\n\n# Profile memory\n\n`memory` is long-term memory for the selected profile. One memory per profile, shared across repositories. Nothing is loaded into the prompt for you: search when it could help.\n\n## When to use it\n\n- Recall: before asking the person something they probably answered before (tone, tools, conventions), call `memory.search({ query })` with a few plain words, then `memory.read({ id })` for the full entry.\n- Remember: when the person states a stable preference or a decision that should hold next time, call `memory.write({ title, body })`. One fact per entry, short title, self-contained body.\n- Correct: `memory.read` first, then `memory.write({ id, title, body, expectedRevision })` with the revision you read.\n- Forget: `memory.forget({ id, expectedRevision })` when asked, or when an entry is wrong.\n\n## Do not\n\n- Store secrets, tokens, or credentials. Redaction is best effort, not a guarantee.\n- Store task progress (use `tasks`) or facts derivable from the repository.\n- Write on a guess. Store what the person said or clearly showed.\n- Retry blindly on a revision conflict: re-read, merge, then write.\n\n## Failure modes\n\n- \"No profile is selected\": there is no memory without a profile. Say so; do not work around it.\n- \"The selected profile changed during the memory call\": the person switched profiles mid-call. Discard the result and call again.\n- Search treats operators as literal text; use plain words.\n\nAutomatic extraction is opt-in (`profileMemory.automatic: true` in the user-global `config.yaml`). Extracted entries have `origin: 'extracted'`; treat them as hints and correct or forget wrong ones.\n",
21
21
  "/bundle/po-profile/src/prompts/help-how-to-profile/SKILL.md": "---\nname: help-how-to-profile\ndescription: Configure Po profile discovery, personas, environment defaults, and precedence in profiles.yaml. Use when creating or changing personal or repository profiles. Do not use for config.yaml runtime settings, modes.yaml, or domains.yaml.\n---\n\n# Author Po profiles\n\nConfigure a profile as one persona plus optional environment defaults.\n\n## Workflow\n\n1. Read both `~/.po/profiles.yaml` and the repository's `.po/profiles.yaml` when they exist.\n2. Use `profiles.roots` for one-level persona discovery. A discovered directory may add `env`, `integration`, and scoped vault `secrets` through a strict `profile.yaml` sidecar. Use `profiles.entries` when a profile needs an explicit persona path.\n3. Resolve relative roots and persona paths against the file that declares them. Keep an explicit persona inside that file's `agents/` directory or one of its configured roots.\n4. Put instructions in `profile.md`, `SOUL.md`, or `AGENTS.md`. Po concatenates non-empty files in that order.\n5. Keep every `env` value a nonsecret string. An already exported value wins for process defaults; input templates read only the profile's declared mapping. Never put secret references in `env`, including Liquid syntax. Give each integration secret the narrowest `purposes` (`browser`, `proxy`, `env`, or `input`).\n6. Preserve the precedence rules. Explicit entries override discoveries, including sidecar-synced ones, and repository entries override personal entries at the same precedence level.\n7. Verify the selection with `po --profile <name> --explain`, then smoke-test `/profile` when changing live switching behavior.\n8. For profiles a plugin contributes, read the contract's section on plugin sources before relying on a name or default: a name no file declares waits for the plugin for at most ten seconds, then the session starts with no profile and one warning.\n\n## Input templates\n\nPass `{{ env.LOGIN_EMAIL }}` or `{{ secrets.PASSWORD }}` directly as input text to an integrated surface, not through a secret-reading tool. `secret` is a synonym for `secrets`; legacy `${env.NAME}` and `${secrets.NAME}` remain supported. Values resolve host-side, once, just before input. Only interpolation is supported: no tags, filters, bracket access, expressions, or recursive templates. Missing names and malformed templates fail rather than being typed literally.\n\nFor a vault-backed alias, add profile-level `secrets.PASSWORD` with `vault: { namespace: logins, key: example, field: password }`. Omit `field` only when the stored value itself is a string. Never put the actual credential into YAML. Browser delivery needs `purposes: [browser]` and exact `allowedOrigins`. Native delivery needs `purposes: [input]` and exact app identifiers in `allowedTargets`, for example `{ ios: [com.example.app], computer: [com.example.desktop] }`. Combine purposes only when both are needed. Provider-backed integration aliases may use the same input purpose and target allowlist. Do not reuse an alias in both mappings.\n\nA person without YAML saves a secret from the composer's '+' menu (Secret). It lands in the vault as `secrets/<NAME>` holding `{ value, purposes, allowedOrigins?, allowedTargets? }`, and resolves as `{{ secrets.NAME }}` in every session when no profile alias has that name. The same allowlist checks apply, and a malformed entry resolves as missing.\n\nUse only surface methods that explicitly implement this boundary. A target supplied by the model is not proof of the foreground app. Native surfaces may refuse unsupported targets, recording, or later observations to keep values out of captures. Never bypass those refusals with shell commands, clipboard tricks, raw API calls, or direct vault access. Arbitrary tool arguments and scripts are not globally templated.\n\nRead [references/profiles-contract.md](references/profiles-contract.md) before changing discovery, precedence, path handling, or profile application.\n",
22
- "/bundle/po-profile/src/prompts/help-how-to-profile/references/profiles-contract.md": "# Po profiles authoring contract\n\n## Sources and shape\n\nPo reads profile declarations in this order:\n\n1. `~/.po/profiles.yaml`\n2. `<repoRoot>/.po/profiles.yaml`\n\nPlugins may also contribute in-memory profiles through `ProfileSources.register`. Session reads pass\n`{ workspaceId }` to each source's `list(scope)`, so a source can show only the profiles that belong\nto the session's workspace. File profiles are never filtered. See\n[Plugin sources, readiness and defaults](#plugin-sources-readiness-and-defaults) for sources that load\nasynchronously.\nThe current catalog shape is:\n\n```yaml\nprofiles:\n roots: [agents/acme]\n entries:\n writer:\n persona: agents/special/writer\n env:\n BRAND: acme\n TONE: concise\n defaultProfile: writer\n```\n\nThe document may contain only the `profiles` mapping. In catalog form, `profiles` may contain only\n`roots`, `entries` and `defaultProfile`. Po still accepts the earlier flat form, where profile\nnames appear directly below `profiles`, but new configuration should use catalog form.\n\n`defaultProfile` names the persona a run starts on when nothing else names one, the same way\n`modes.yaml` declares `defaultMajorMode` and `domains.yaml` declares `defaultDomains`. A repository\ndeclaration replaces a personal one. `po --profile <name>` overrides it for one run, and an\ninherited `PO_PROFILE` wins so a nested run stays on the persona its parent chose. A\n`defaultProfile` or `selection.profile` that names no file profile is not an error by itself: it is a\nrequested name that a plugin source may still deliver. The launch waits for the sources, at most ten\nseconds in total, and when the name never appears it starts with no profile and shows one warning.\nA value that is not a non-empty string still fails loading.\n\nEvery relative root or persona path resolves against the file that declares it. Repository paths\nresolve from the repository root. Personal paths resolve from `~/.po`.\n\n## Root discovery\n\nEach `profiles.roots` value must resolve to an existing directory.\n\n- If the root directly contains `profile.md`, `SOUL.md`, or `AGENTS.md`, the root is one profile.\n Its directory name is the profile name, and its children are not scanned.\n- Otherwise, Po inspects only the root's direct-child directories. A child becomes a profile\n when it directly contains at least one persona file.\n- Discovery does not recurse. Add another root or an explicit entry for a deeper persona.\n- A discovered profile has an empty environment mapping unless its directory holds a `profile.yaml` sidecar.\n- Unreadable candidates and candidates whose real path or persona files escape the configured root\n are ignored. An invalid configured root itself is an error.\n\n### Discovered `profile.yaml` sidecar\n\nA discovered persona directory may hold a nonsecret `profile.yaml` sidecar, typically written by a\nsync tool such as po-unsendbox:\n\n```yaml\nversion: 1\nenv:\n BRAND: receiptnote\nintegration:\n provider: unsendbox\n # same shape as an explicit entry's integration\n```\n\nOnly `version` (exactly `1`), `env`, `integration`, and scoped vault `secrets` are allowed. These are validated exactly like an\nexplicit entry. `env` cannot contain secret aliases in legacy or Liquid syntax. The sidecar must be a regular\nfile of at most 64 KiB inside the real persona directory; a symlink cannot escape it. A bad sidecar\nskips only that profile and reports a diagnostic in `loadProfileCatalog(...).diagnostics`; the rest of\nthe catalog still loads. Diagnostics never echo sidecar values. Sync and async loaders behave the same.\n\n## Explicit entries and path confinement\n\nAn explicit entry may contain only `persona`, `env`, optional `integration`, and optional vault `secrets`. `persona` is required, must be a non-empty\nrelative path, and must resolve to a directory containing readable persona content.\n\nThe persona must remain inside either:\n\n- the `agents/` directory beside the declaring repository root or personal `.po` directory, or\n- one of the `profiles.roots` directories declared in that same file.\n\nPo checks both the lexical path and the real filesystem path. A persona-directory symlink cannot\nescape an allowed root. Each resolved persona file must also remain inside the real persona\ndirectory, so a file symlink cannot import instructions from outside it. Invalid explicit entries\nfail loading instead of being skipped.\n\nPersona content is assembled from non-empty files in this order:\n\n1. `profile.md`\n2. `SOUL.md`\n3. `AGENTS.md`\n\n## Nonsecret integration bindings\n\nAn explicit profile may bind one integration provider. The binding contains identifiers only,\nnever API keys, passwords, cookies, or resolved credential values:\n\n```yaml\nprofiles:\n entries:\n worker:\n persona: agents/worker\n integration:\n provider: unsendbox\n organizationId: org-id\n mailboxId: mailbox-id\n credentialRef: local-auth-reference\n secrets:\n PASSWORD:\n credentialId: existing-credential-id\n field: password\n allowedOrigins: [https://login.example.com]\n browser:\n profileName: worker\n allowedOrigins: [https://login.example.com]\n```\n\n`provider`, `organizationId`, `mailboxId`, `credentialRef`, and `secrets` are required.\n`credentialRef` identifies authentication supplied by the concrete integration outside profile\nconfiguration. An empty `secrets` mapping is allowed. Each uppercase secret alias names an existing\ncredential and field (a field name, or `profileSecret:<ALIAS>` for provider-held profile secrets).\n\nEach integration secret declares `purposes`, a nonempty unique subset of `browser`, `proxy`, `env`, and `input`, defaulting\nto `[browser]`:\n\n- `browser`: `{{ secrets.PASSWORD }}` is filled host-side by the browser, never profile `env`. It\n requires nonempty exact HTTP(S) `allowedOrigins`, without paths, wildcards, userinfo, or trailing\n slashes.\n- `proxy`: named by `browser.proxySecret` and resolved host-side for the browser proxy only.\n- `env`: injected only into workflow `run` steps that declare the alias, through `po/profile-secrets`.\n- `input`: delivered only to an explicitly allowed native app through a trusted input boundary. Requires\n `allowedTargets`, a nonempty mapping of surface names to nonempty exact application-identifier lists,\n such as `{ios: [com.example.app], computer: [com.example.desktop]}`. Wildcards are refused. Browser,\n env and proxy are reserved and cannot be native surface names. Non-input aliases cannot set targets.\n\nA secret without the `browser` purpose cannot list origins. The optional browser binding requires a\nsafe profile name, not a filesystem path, and its own nonempty `allowedOrigins` containing every\nbrowser-purpose secret origin. It may set `mode` (`playwright`, `extension`, or `stealth`) and\n`proxySecret`, which must name a `proxy`-purpose secret. Unknown metadata is rejected.\n\nThe public `@agimon-ai/po-profile` API exposes the session-owned `po/profile-runtime` Cordis service.\nConsumers declare that service as an injected dependency, use `requireProfileRuntime(context)`,\nand attach exactly one concrete provider with `attachProvider(providerName, factory)`. The factory\nreceives deeply immutable binding metadata plus `{profileName, generation, signal}` and returns\n`{resolveSecret(reference, signal), dispose()}`. The attachment returns an awaited cleanup operation.\nDo not invoke `runtime.resolveSecret` from the factory: resolution is rejected until initialization\nfinishes. The runtime does not load provider SDKs or persist resolved values.\n\n`runtime.resolveSecret(name, {origin, signal})` accepts a trusted actual target-frame origin from\nthe browser boundary, never a tool-supplied origin, and resolves `browser`-purpose aliases only.\n`runtime.resolveProxySecret(signal)` is host-only and resolves `browser.proxySecret`. `ready()` rejects\nif a configured provider is missing or failed. Session startup and new-turn admission both require\nreadiness. Profile changes and shutdown abort old generations before asynchronous provider cleanup;\nlate secret results are rejected rather than delivered to a replacement profile. Persona-only\nprofiles remain compatible. The concrete browser integration owns persistence and exclusive profile\nleases.\n\nThe global `po/profile-secrets` service serves jobs that run outside a session. Providers call\n`registerProvider(provider, factory)`; workflow hosts call `resolveEnv({cwd, profile, names, signal})`.\nEach call loads the profile catalog for `cwd`, requires the `env` purpose for every name, opens a fresh\nprovider connection, and disposes it before returning. Every failure is the same generic error. The\nservice is never exposed as a model tool. `redactSecrets(value, secrets)` and\n`createSecretRedactionStream(secrets)` redact raw, JSON-escaped, and URL-encoded forms of resolved\nvalues, including overlapping and chunk-split matches; use them before any output reaches a model.\n\n## Vault aliases and Liquid input\n\nVault-backed aliases live at the profile level, independently of any integration provider:\n\n```yaml\nprofiles:\n entries:\n worker:\n persona: agents/worker\n env:\n LOGIN_EMAIL: ops@example.com\n secrets:\n PASSWORD:\n vault: { namespace: logins, key: example, field: password }\n purposes: [browser, input]\n allowedOrigins: [https://login.example.com]\n allowedTargets:\n ios: [com.example.app]\n computer: [com.example.desktop]\n```\n\nThe host reads only the configured vault entry. With `field`, only an own string property of that exact\nname is accepted (no nested traversal); without it, the value itself must be a nonempty string. Vault\naliases support browser and input purposes, not proxy or workflow env. Provider and vault alias names\nmust not collide. The vault remains host-only with no secret-reading model namespace.\n\nInput text may combine literals, `{{ env.LOGIN_EMAIL }}`, and `{{ secrets.PASSWORD }}`. `secret` is a\nsynonym for `secrets`, and legacy `${env.NAME}`, `${secret.NAME}`, and `${secrets.NAME}` remain supported.\nThe shared `@agimon-ai/po-core/inputTemplate` parser and LiquidJS renderer support interpolation only,\nwith at most 16 references and bounded input/output. Tags, filters, expressions, bracket/prototype access,\nand malformed templates fail before resolving any credential. Resolved values are never rendered again.\n`env` reads only this profile's declared nonsecret values, never arbitrary process or session environment.\n\n`runtime.resolveInputSecret(name, {surface, target, signal})` is host-only. The surface must obtain the\nactual app identity at its native boundary, recheck it after asynchronous resolution, and prevent values\nfrom reaching output, traces, logs, recordings, and screenshots. Profile changes, shutdown and request\ncancellation discard late results. Consumers must never return the resolved string to the model. New\nsurfaces reuse the shared parser/renderer and runtime method, not global argument interpolation or raw\nvault reads. A tool-supplied target is never authorization evidence. Browser aliases retain their existing\nactual-frame origin checks. An integration browser allowlist remains an additional restriction when set.\n\n## Persona identity front-matter\n\nA persona may open `profile.md` with a YAML front-matter block declaring who it is and how it\nsounds. Only `profile.md` is read this way; `SOUL.md` and `AGENTS.md` are always prose.\n\n```markdown\n---\nname: Rhea\nicon: avatar.png\nvoice:\n voice: Karen\n rate: 175\n---\n\nYou are Rhea, a blunt systems architect.\n```\n\nAll three fields are optional. `name` replaces the profile's directory name in the cockpit,\n`icon` is an image beside `profile.md`, and `voice` shadows `voice.autoCapture.tts` from\n`config.yaml` per field: a persona setting only `rate` keeps the configured voice. The TTS `engine`\nis never overridable, because it selects the synthesiser rather than the persona.\n\nBecause identity lives here rather than in `profiles.yaml`, it applies to profiles found by root\ndiscovery as well as to explicit entries.\n\nA block is only treated as identity when it is fenced on the very first line, closed, parses as a\nYAML mapping, and declares at least one of `name`, `icon`, or `voice`. Anything else is left in the\npersona text byte for byte, so a persona that legitimately opens with a horizontal rule is\nunaffected. A recognised block is removed from the prompt: it describes the persona rather than\ninstructing it. A `profile.md` holding nothing but front-matter therefore has no persona text, and\nthe profile fails to load unless `SOUL.md` or `AGENTS.md` supplies it.\n\nThe icon is read once when the profile loads and travels to the cockpit as a `data:` URL, so no\nfile is served at request time. It must be a PNG, JPEG, GIF, or WebP, checked by content rather\nthan by file extension. SVG is refused because an SVG rendered in the cockpit executes script. The\nicon must stay inside the persona directory under the same real-path rule as persona files, so a\nsymlink cannot smuggle a file out of it. An icon that is missing, unreadable, of another type, or\nlarger than 256 KiB once encoded is dropped: the persona keeps its name and the cockpit falls back\nto the default avatar rather than failing the profile.\n\n## Plugin sources, readiness and defaults\n\nA plugin that holds profiles in memory registers a `ProfileSource` with `ProfileSources.register(id, source)`.\nBesides the synchronous, cached `list(scope)`, a source may declare two optional hooks:\n\n- `ready(scope, signal)` resolves when `list` reflects the source's first complete load for that scope and\n rejects when the load failed. The signal aborts when nobody waits any more, so shared background work\n must keep running.\n- `defaultProfile(scope, signal)` returns the name a workspace starts with when nothing asked for a profile,\n or `undefined` for no opinion. Reject when the source holds a default it cannot honor.\n\nA source without the hooks counts as immediately ready and offers no default. The registry waits for every\ndeclared `ready` together and reports failures by source id only. It asks `defaultProfile` in registration\norder: the first answer that is not `undefined` wins, and a source that rejects ends the search instead of\nhanding the decision to the next source. A file profile keeps a name a source also holds.\n`readProfileSources(context, scope)` returns a view that reads every hook as that workspace.\n\n`resolveInitialProfile(files, sources, { intent, scope, signal })` decides a session's first profile once.\n`intent` is `{ kind: 'named', name }` for a requested name, `{ kind: 'unspecified' }` when nothing asked,\nand `{ kind: 'none' }` for an explicit choice of no profile that no default overrides.\n\n- A name that is already listed resolves at once and never waits.\n- A missing name waits for source readiness. Every wait of one resolution shares a single ten second\n deadline; a hook that ignores its signal cannot hold the session back.\n- A source default applies only to `unspecified` in a workspace with an id, and it must name a profile that\n is in that workspace's catalog. A default that is not listed yet waits for the sources under the same\n deadline before it is ruled out. An unlisted default never falls through to another source.\n- A name that never arrives, a failing source, a timeout and an unlisted default all give a session with no\n profile and one warning (`timeout`, `missing`, `source-failed` or `invalid-default`). Only the owning\n session aborting rejects.\n\nThe result is an `InitialProfileOutcome` holding names only. A launcher that decides before the session\nexists publishes it on the session context as `po/profile-initial-outcome` and builds the persona and\nenvironment from the same decision. The session then applies that outcome without waiting again, checks the\nname against the live catalog, and shows the warning once when it starts. A session launched without an\noutcome resolves for itself: a saved name waits for its source, and a session with no profile consults\n`defaultProfile` when its workspace is known. It cannot tell an explicit \"no profile\" from an absent choice, so\na launcher that wants no profile must publish an outcome. The decision it makes is published on the session\ncontext too. Every applied selection, whoever asked for it, leaves one identity marker once the session has\nstarted.\n\n`GET /api/workspaces/<workspace>/plugins/profile/launch-profiles` lists what a launcher may offer before a\nsession exists: `{ profiles: [{ name, identity?: { name?, icon?, role?, contact? }, sourceId }], readiness }`,\nwhere `sourceId` is `files` or a source id, and `readiness` is `unavailable` when a source failed or was not\nready within ten seconds. It never carries environment, persona text or paths, bindings, credential\nreferences or secrets.\n\nThe owner-authenticated session API lives under\n`/api/workspaces/<workspace>/sessions/<session>/plugins/profile`:\n\n- `GET /current` returns `{ profile: string | null }` from the live selection.\n- `GET /profiles` returns the same display-only catalog as the launch endpoint, but uses the session's\n repository root and admitted `HOME`, and the session workspace's sources. It waits up to ten seconds,\n keeps partial results on timeout or source failure, and may be requested again to discover late profiles.\n- `PUT /current` accepts `{ profile: string | null }`; `null` explicitly clears the selection. A known name\n is accepted immediately. A missing name waits up to ten seconds and is checked again. The change uses\n the next tool boundary, so a busy session keeps the request pending until application completes.\n Success returns the actual applied `{ profile }`. Identity journaling follows the normal host selection\n path and is not published a second time by the API.\n\nInvalid JSON or selection bodies return 400 `Invalid profile selection`. A name still missing after\nsuccessful readiness returns 404 `Unknown profile`. Incomplete readiness returns 503\n`Profiles are not ready. Try again.` An integration admission failure returns 503\n`Profile integration is unavailable. Restore its credential or choose another profile.` These sanitized\nresponses do not echo names or source errors. Profile configuration failure returns 500\n`Profile configuration is unavailable`.\n\nNative uses this API for the in-session Profile page. Only the core dispatch-gate 503 bodies\n`Session selection is not ready.` and `Session selection changed before dispatch.` fall back to the\n`/profile` recovery dialog: those responses occur before profile code runs. An admission failure does not\ntrigger recovery or replay. A request abort prevents application only before enqueue; an already queued\nchange may still apply after the caller leaves. Never automatically retry a failed or abandoned write.\nThe next live selection status is authoritative.\n\n## Precedence\n\nPo resolves names in four passes, from lowest to highest precedence:\n\n1. Personal root discoveries\n2. Repository root discoveries\n3. Personal explicit entries\n4. Repository explicit entries\n\nA later profile replaces an earlier profile with the same name. This means any explicit entry\noverrides discovery, including a personal explicit entry replacing a repository discovery. A\nrepository explicit entry wins over a personal explicit entry. Unrelated names from all sources\nremain available, and the final list is sorted by profile name.\n\nA `profile.yaml` sidecar does not change precedence: a synced profile is still a discovery. Any\nexplicit entry with the same name, personal or repository, replaces it entirely, including its\nintegration. When moving a profile to sync, remove or rename the old explicit entry.\n\n## Environment defaults and activation\n\nEvery `env` key maps to a nonsecret string. Secret alias expressions are rejected in `env`. Applying a profile writes only variables that are not already\nexported by the caller. When switching profiles, Po removes a value contributed by the previous\nprofile only if that value has not since changed, then applies the next profile's defaults.\n\nThe `/profile` command resolves the named profile and executes the change through the session\ntransition coordinator. A profile change uses Pi reload so extensions re-read the environment.\nPo assembles the persona into a private run-directory file, and the persona Pi entry appends\nthat content to the system prompt after reload.\n\nAutonomous voice can switch profiles too. The `profile` voice capability lists the configured\npersonas and queues a switch, which arrives as `/profile --voice-switch-token=…`. The chosen name\ntravels in a TTL-bounded handoff rather than in the command text, so an edited transcript cannot be\nturned into a switch to a different persona. A spoken switch therefore takes the same reload path\nas the command, which is also what lets the new persona's voice take effect: the spoken voice is\nread when autonomous voice activates.\n\n## Verification\n\n```sh\npnpm nx test @agimon-ai/po-config\npnpm nx typecheck @agimon-ai/po-config\npnpm nx test @agimon-ai/po-profile\npnpm nx typecheck @agimon-ai/po-profile\npnpm --filter @agimon-ai/po exec po --profile writer --explain\n```\n\nUse an actual parent session to smoke-test `/profile` when changing transition, environment, or\npersona application behavior.\n",
22
+ "/bundle/po-profile/src/prompts/help-how-to-profile/references/profiles-contract.md": "# Po profiles authoring contract\n\n## Sources and shape\n\nPo reads profile declarations in this order:\n\n1. `~/.po/profiles.yaml`\n2. `<repoRoot>/.po/profiles.yaml`\n\nPlugins may also contribute in-memory profiles through `ProfileSources.register`. Session reads pass\n`{ workspaceId }` to each source's `list(scope)`, so a source can show only the profiles that belong\nto the session's workspace. File profiles are never filtered. See\n[Plugin sources, readiness and defaults](#plugin-sources-readiness-and-defaults) for sources that load\nasynchronously.\nThe current catalog shape is:\n\n```yaml\nprofiles:\n roots: [agents/acme]\n entries:\n writer:\n persona: agents/special/writer\n env:\n BRAND: acme\n TONE: concise\n defaultProfile: writer\n```\n\nThe document may contain only the `profiles` mapping. In catalog form, `profiles` may contain only\n`roots`, `entries` and `defaultProfile`. Po still accepts the earlier flat form, where profile\nnames appear directly below `profiles`, but new configuration should use catalog form.\n\n`defaultProfile` names the persona a run starts on when nothing else names one, the same way\n`modes.yaml` declares `defaultMajorMode` and `domains.yaml` declares `defaultDomains`. A repository\ndeclaration replaces a personal one. `po --profile <name>` overrides it for one run, and an\ninherited `PO_PROFILE` wins so a nested run stays on the persona its parent chose. A\n`defaultProfile` or `selection.profile` that names no file profile is not an error by itself: it is a\nrequested name that a plugin source may still deliver. The launch waits for the sources, at most ten\nseconds in total, and when the name never appears it starts with no profile and shows one warning.\nA value that is not a non-empty string still fails loading.\n\nEvery relative root or persona path resolves against the file that declares it. Repository paths\nresolve from the repository root. Personal paths resolve from `~/.po`.\n\n## Root discovery\n\nEach `profiles.roots` value must resolve to an existing directory.\n\n- If the root directly contains `profile.md`, `SOUL.md`, or `AGENTS.md`, the root is one profile.\n Its directory name is the profile name, and its children are not scanned.\n- Otherwise, Po inspects only the root's direct-child directories. A child becomes a profile\n when it directly contains at least one persona file.\n- Discovery does not recurse. Add another root or an explicit entry for a deeper persona.\n- A discovered profile has an empty environment mapping unless its directory holds a `profile.yaml` sidecar.\n- Unreadable candidates and candidates whose real path or persona files escape the configured root\n are ignored. An invalid configured root itself is an error.\n\n### Discovered `profile.yaml` sidecar\n\nA discovered persona directory may hold a nonsecret `profile.yaml` sidecar, typically written by a\nsync tool such as po-unsendbox:\n\n```yaml\nversion: 1\nenv:\n BRAND: receiptnote\nintegration:\n provider: unsendbox\n # same shape as an explicit entry's integration\n```\n\nOnly `version` (exactly `1`), `env`, `integration`, and scoped vault `secrets` are allowed. These are validated exactly like an\nexplicit entry. `env` cannot contain secret aliases in legacy or Liquid syntax. The sidecar must be a regular\nfile of at most 64 KiB inside the real persona directory; a symlink cannot escape it. A bad sidecar\nskips only that profile and reports a diagnostic in `loadProfileCatalog(...).diagnostics`; the rest of\nthe catalog still loads. Diagnostics never echo sidecar values. Sync and async loaders behave the same.\n\n## Explicit entries and path confinement\n\nAn explicit entry may contain only `persona`, `env`, optional `integration`, and optional vault `secrets`. `persona` is required, must be a non-empty\nrelative path, and must resolve to a directory containing readable persona content.\n\nThe persona must remain inside either:\n\n- the `agents/` directory beside the declaring repository root or personal `.po` directory, or\n- one of the `profiles.roots` directories declared in that same file.\n\nPo checks both the lexical path and the real filesystem path. A persona-directory symlink cannot\nescape an allowed root. Each resolved persona file must also remain inside the real persona\ndirectory, so a file symlink cannot import instructions from outside it. Invalid explicit entries\nfail loading instead of being skipped.\n\nPersona content is assembled from non-empty files in this order:\n\n1. `profile.md`\n2. `SOUL.md`\n3. `AGENTS.md`\n\n## Nonsecret integration bindings\n\nAn explicit profile may bind one integration provider. The binding contains identifiers only,\nnever API keys, passwords, cookies, or resolved credential values:\n\n```yaml\nprofiles:\n entries:\n worker:\n persona: agents/worker\n integration:\n provider: unsendbox\n organizationId: org-id\n mailboxId: mailbox-id\n credentialRef: local-auth-reference\n secrets:\n PASSWORD:\n credentialId: existing-credential-id\n field: password\n allowedOrigins: [https://login.example.com]\n browser:\n profileName: worker\n allowedOrigins: [https://login.example.com]\n```\n\n`provider`, `organizationId`, `mailboxId`, `credentialRef`, and `secrets` are required.\n`credentialRef` identifies authentication supplied by the concrete integration outside profile\nconfiguration. An empty `secrets` mapping is allowed. Each uppercase secret alias names an existing\ncredential and field (a field name, or `profileSecret:<ALIAS>` for provider-held profile secrets).\n\nEach integration secret declares `purposes`, a nonempty unique subset of `browser`, `proxy`, `env`, and `input`, defaulting\nto `[browser]`:\n\n- `browser`: `{{ secrets.PASSWORD }}` is filled host-side by the browser, never profile `env`. It\n requires nonempty exact HTTP(S) `allowedOrigins`, without paths, wildcards, userinfo, or trailing\n slashes.\n- `proxy`: named by `browser.proxySecret` and resolved host-side for the browser proxy only.\n- `env`: injected only into workflow `run` steps that declare the alias, through `po/profile-secrets`.\n- `input`: delivered only to an explicitly allowed native app through a trusted input boundary. Requires\n `allowedTargets`, a nonempty mapping of surface names to nonempty exact application-identifier lists,\n such as `{ios: [com.example.app], computer: [com.example.desktop]}`. Wildcards are refused. Browser,\n env and proxy are reserved and cannot be native surface names. Non-input aliases cannot set targets.\n\nA secret without the `browser` purpose cannot list origins. The optional browser binding requires a\nsafe profile name, not a filesystem path, and its own nonempty exact `allowedOrigins`. Browser\npolicies combine configured origins with `PROFILE_SOCIAL_BROWSER_ORIGINS` from\n`@agimon-ai/po-config/profiles`: exact HTTPS apex/www origins for X, Reddit, LinkedIn, Facebook,\nInstagram, TikTok and YouTube, plus legacy Twitter origins and `https://accounts.google.com` for\nYouTube sign-in. The effective browser origins must contain every browser-purpose secret origin.\nThese shared defaults never expand an individual secret's origins or purposes. They also apply to\npersona-only browser policies. A browser binding may set `mode` (`playwright`, `extension`, or\n`stealth`) and `proxySecret`, which must name a `proxy`-purpose secret. Unknown metadata is rejected.\n\nThe public `@agimon-ai/po-profile` API exposes the session-owned `po/profile-runtime` Cordis service.\nConsumers declare that service as an injected dependency, use `requireProfileRuntime(context)`,\nand attach exactly one concrete provider with `attachProvider(providerName, factory)`. The factory\nreceives deeply immutable binding metadata plus `{profileName, generation, signal}` and returns\n`{resolveSecret(reference, signal), dispose()}`. The attachment returns an awaited cleanup operation.\nDo not invoke `runtime.resolveSecret` from the factory: resolution is rejected until initialization\nfinishes. The runtime does not load provider SDKs or persist resolved values.\n\n`runtime.resolveSecret(name, {origin, signal})` accepts a trusted actual target-frame origin from\nthe browser boundary, never a tool-supplied origin, and resolves `browser`-purpose aliases only.\n`runtime.resolveProxySecret(signal)` is host-only and resolves `browser.proxySecret`. `ready()` rejects\nif a configured provider is missing or failed. Session startup and new-turn admission both require\nreadiness. Profile changes and shutdown abort old generations before asynchronous provider cleanup;\nlate secret results are rejected rather than delivered to a replacement profile. Persona-only\nprofiles remain compatible. The concrete browser integration owns persistence and exclusive profile\nleases.\n\nSession secret delivery rereads current provider-backed alias metadata before resolution and again\nbefore returning a value. New aliases become usable after the provider publishes them, without a\nprofile refresh, provider reconnection, selection generation change or browser tab closure. Removed\nor changed aliases invalidate in-flight results. Provider, organization, mailbox and authentication\nreferences must still match the selected identity. Browser launch identity, env and file-backed vault\naliases stay pinned until an explicit profile selection or refresh.\n\nThe global `po/profile-secrets` service serves jobs that run outside a session. Providers call\n`registerProvider(provider, factory)`; workflow hosts call `resolveEnv({cwd, profile, names, signal})`.\nEach call loads the profile catalog for `cwd`, requires the `env` purpose for every name, opens a fresh\nprovider connection, and disposes it before returning. Every failure is the same generic error. The\nservice is never exposed as a model tool. `redactSecrets(value, secrets)` and\n`createSecretRedactionStream(secrets)` redact raw, JSON-escaped, and URL-encoded forms of resolved\nvalues, including overlapping and chunk-split matches; use them before any output reaches a model.\n\n## Vault aliases and Liquid input\n\nVault-backed aliases live at the profile level, independently of any integration provider:\n\n```yaml\nprofiles:\n entries:\n worker:\n persona: agents/worker\n env:\n LOGIN_EMAIL: ops@example.com\n secrets:\n PASSWORD:\n vault: { namespace: logins, key: example, field: password }\n purposes: [browser, input]\n allowedOrigins: [https://login.example.com]\n allowedTargets:\n ios: [com.example.app]\n computer: [com.example.desktop]\n```\n\nThe host reads only the configured vault entry. With `field`, only an own string property of that exact\nname is accepted (no nested traversal); without it, the value itself must be a nonempty string. Vault\naliases support browser and input purposes, not proxy or workflow env. Provider and vault alias names\nmust not collide. The vault remains host-only with no secret-reading model namespace.\n\nInput text may combine literals, `{{ env.LOGIN_EMAIL }}`, and `{{ secrets.PASSWORD }}`. `secret` is a\nsynonym for `secrets`, and legacy `${env.NAME}`, `${secret.NAME}`, and `${secrets.NAME}` remain supported.\nThe shared `@agimon-ai/po-core/inputTemplate` parser and LiquidJS renderer support interpolation only,\nwith at most 16 references and bounded input/output. Tags, filters, expressions, bracket/prototype access,\nand malformed templates fail before resolving any credential. Resolved values are never rendered again.\n`env` reads only this profile's declared nonsecret values, never arbitrary process or session environment.\n\n`runtime.resolveInputSecret(name, {surface, target, signal})` is host-only. The surface must obtain the\nactual app identity at its native boundary, recheck it after asynchronous resolution, and prevent values\nfrom reaching output, traces, logs, recordings, and screenshots. Profile changes, shutdown and request\ncancellation discard late results. Consumers must never return the resolved string to the model. New\nsurfaces reuse the shared parser/renderer and runtime method, not global argument interpolation or raw\nvault reads. A tool-supplied target is never authorization evidence. Browser aliases retain their existing\nactual-frame origin checks. An integration browser allowlist remains an additional restriction when set.\n\n## Persona identity front-matter\n\nA persona may open `profile.md` with a YAML front-matter block declaring who it is and how it\nsounds. Only `profile.md` is read this way; `SOUL.md` and `AGENTS.md` are always prose.\n\n```markdown\n---\nname: Rhea\nicon: avatar.png\nvoice:\n voice: Karen\n rate: 175\n---\n\nYou are Rhea, a blunt systems architect.\n```\n\nAll three fields are optional. `name` replaces the profile's directory name in the cockpit,\n`icon` is an image beside `profile.md`, and `voice` shadows `voice.autoCapture.tts` from\n`config.yaml` per field: a persona setting only `rate` keeps the configured voice. The TTS `engine`\nis never overridable, because it selects the synthesiser rather than the persona.\n\nBecause identity lives here rather than in `profiles.yaml`, it applies to profiles found by root\ndiscovery as well as to explicit entries.\n\nA block is only treated as identity when it is fenced on the very first line, closed, parses as a\nYAML mapping, and declares at least one of `name`, `icon`, or `voice`. Anything else is left in the\npersona text byte for byte, so a persona that legitimately opens with a horizontal rule is\nunaffected. A recognised block is removed from the prompt: it describes the persona rather than\ninstructing it. A `profile.md` holding nothing but front-matter therefore has no persona text, and\nthe profile fails to load unless `SOUL.md` or `AGENTS.md` supplies it.\n\nThe icon is read once when the profile loads and travels to the cockpit as a `data:` URL, so no\nfile is served at request time. It must be a PNG, JPEG, GIF, or WebP, checked by content rather\nthan by file extension. SVG is refused because an SVG rendered in the cockpit executes script. The\nicon must stay inside the persona directory under the same real-path rule as persona files, so a\nsymlink cannot smuggle a file out of it. An icon that is missing, unreadable, of another type, or\nlarger than 256 KiB once encoded is dropped: the persona keeps its name and the cockpit falls back\nto the default avatar rather than failing the profile.\n\n## Plugin sources, readiness and defaults\n\nA plugin that holds profiles in memory registers a `ProfileSource` with `ProfileSources.register(id, source)`.\nBesides the synchronous, cached `list(scope)`, a source may declare two optional hooks:\n\n- `ready(scope, signal)` resolves when `list` reflects the source's first complete load for that scope and\n rejects when the load failed. The signal aborts when nobody waits any more, so shared background work\n must keep running.\n- `defaultProfile(scope, signal)` returns the name a workspace starts with when nothing asked for a profile,\n or `undefined` for no opinion. Reject when the source holds a default it cannot honor.\n\nA source without the hooks counts as immediately ready and offers no default. The registry waits for every\ndeclared `ready` together and reports failures by source id only. It asks `defaultProfile` in registration\norder: the first answer that is not `undefined` wins, and a source that rejects ends the search instead of\nhanding the decision to the next source. A file profile keeps a name a source also holds.\n`readProfileSources(context, scope)` returns a view that reads every hook as that workspace.\n\n`resolveInitialProfile(files, sources, { intent, scope, signal })` decides a session's first profile once.\n`intent` is `{ kind: 'named', name }` for a requested name, `{ kind: 'unspecified' }` when nothing asked,\nand `{ kind: 'none' }` for an explicit choice of no profile that no default overrides.\n\n- A name that is already listed resolves at once and never waits.\n- A missing name waits for source readiness. Every wait of one resolution shares a single ten second\n deadline; a hook that ignores its signal cannot hold the session back.\n- A source default applies only to `unspecified` in a workspace with an id, and it must name a profile that\n is in that workspace's catalog. A default that is not listed yet waits for the sources under the same\n deadline before it is ruled out. An unlisted default never falls through to another source.\n- A name that never arrives, a failing source, a timeout and an unlisted default all give a session with no\n profile and one warning (`timeout`, `missing`, `source-failed` or `invalid-default`). Only the owning\n session aborting rejects.\n\nThe result is an `InitialProfileOutcome` holding names only. A launcher that decides before the session\nexists publishes it on the session context as `po/profile-initial-outcome` and builds the persona and\nenvironment from the same decision. The session then applies that outcome without waiting again, checks the\nname against the live catalog, and shows the warning once when it starts. A session launched without an\noutcome resolves for itself: a saved name waits for its source, and a session with no profile consults\n`defaultProfile` when its workspace is known. It cannot tell an explicit \"no profile\" from an absent choice, so\na launcher that wants no profile must publish an outcome. The decision it makes is published on the session\ncontext too. Every applied selection, whoever asked for it, leaves one identity marker once the session has\nstarted.\n\n`GET /api/workspaces/<workspace>/plugins/profile/launch-profiles` lists what a launcher may offer before a\nsession exists: `{ profiles: [{ name, identity?: { name?, icon?, role?, contact? }, sourceId }], readiness }`,\nwhere `sourceId` is `files` or a source id, and `readiness` is `unavailable` when a source failed or was not\nready within ten seconds. It never carries environment, persona text or paths, bindings, credential\nreferences or secrets.\n\nThe owner-authenticated session API lives under\n`/api/workspaces/<workspace>/sessions/<session>/plugins/profile`:\n\n- `GET /current` returns `{ profile: string | null }` from the live selection.\n- `GET /profiles` returns the same display-only catalog as the launch endpoint, but uses the session's\n repository root and admitted `HOME`, and the session workspace's sources. It waits up to ten seconds,\n keeps partial results on timeout or source failure, and may be requested again to discover late profiles.\n- `PUT /current` accepts `{ profile: string | null }`; `null` explicitly clears the selection. A known name\n is accepted immediately. A missing name waits up to ten seconds and is checked again. The change uses\n the next tool boundary, so a busy session keeps the request pending until application completes.\n Success returns the actual applied `{ profile }`. Identity journaling follows the normal host selection\n path and is not published a second time by the API.\n\nInvalid JSON or selection bodies return 400 `Invalid profile selection`. A name still missing after\nsuccessful readiness returns 404 `Unknown profile`. Incomplete readiness returns 503\n`Profiles are not ready. Try again.` An integration admission failure returns 503\n`Profile integration is unavailable. Restore its credential or choose another profile.` These sanitized\nresponses do not echo names or source errors. Profile configuration failure returns 500\n`Profile configuration is unavailable`.\n\nNative uses this API for the in-session Profile page. Only the core dispatch-gate 503 bodies\n`Session selection is not ready.` and `Session selection changed before dispatch.` fall back to the\n`/profile` recovery dialog: those responses occur before profile code runs. An admission failure does not\ntrigger recovery or replay. A request abort prevents application only before enqueue; an already queued\nchange may still apply after the caller leaves. Never automatically retry a failed or abandoned write.\nThe next live selection status is authoritative.\n\n## Precedence\n\nPo resolves names in four passes, from lowest to highest precedence:\n\n1. Personal root discoveries\n2. Repository root discoveries\n3. Personal explicit entries\n4. Repository explicit entries\n\nA later profile replaces an earlier profile with the same name. This means any explicit entry\noverrides discovery, including a personal explicit entry replacing a repository discovery. A\nrepository explicit entry wins over a personal explicit entry. Unrelated names from all sources\nremain available, and the final list is sorted by profile name.\n\nA `profile.yaml` sidecar does not change precedence: a synced profile is still a discovery. Any\nexplicit entry with the same name, personal or repository, replaces it entirely, including its\nintegration. When moving a profile to sync, remove or rename the old explicit entry.\n\n## Environment defaults and activation\n\nEvery `env` key maps to a nonsecret string. Secret alias expressions are rejected in `env`. Applying a profile writes only variables that are not already\nexported by the caller. When switching profiles, Po removes a value contributed by the previous\nprofile only if that value has not since changed, then applies the next profile's defaults.\n\nThe `/profile` command resolves the named profile and executes the change through the session\ntransition coordinator. A profile change uses Pi reload so extensions re-read the environment.\nPo assembles the persona into a private run-directory file, and the persona Pi entry appends\nthat content to the system prompt after reload.\n\nAutonomous voice can switch profiles too. The `profile` voice capability lists the configured\npersonas and queues a switch, which arrives as `/profile --voice-switch-token=…`. The chosen name\ntravels in a TTL-bounded handoff rather than in the command text, so an edited transcript cannot be\nturned into a switch to a different persona. A spoken switch therefore takes the same reload path\nas the command, which is also what lets the new persona's voice take effect: the spoken voice is\nread when autonomous voice activates.\n\n## Verification\n\n```sh\npnpm nx test @agimon-ai/po-config\npnpm nx typecheck @agimon-ai/po-config\npnpm nx test @agimon-ai/po-profile\npnpm nx typecheck @agimon-ai/po-profile\npnpm --filter @agimon-ai/po exec po --profile writer --explain\n```\n\nUse an actual parent session to smoke-test `/profile` when changing transition, environment, or\npersona application behavior.\n",
23
23
  "/bundle/po-prompt/src/prompts/help-how-to-prompt/SKILL.md": "---\nname: help-how-to-prompt\ndescription: 'Use @agimon-ai/po-prompt: Staged recent prompts and saved prompt templates for Po'\n---\n\n# Use Prompt\n\nRead the package [README](../../../README.md) for its exact installation, command, configuration, and behavior.\n\n## Guidance\n\n- `/prompts`, or `SPC e p`, opens a filterable picker over the last three prompts of this session and every saved prompt, then stages the chosen one in the editor rather than sending it.\n- `/prompt-save <name>` saves the current draft, or the newest staged prompt when the draft is empty, as `~/.po/agent/prompts/<name>.md`. Names are lowercase letters, digits and dashes.\n- A saved prompt is an ordinary Pi prompt template, so it is also `/<name>` from the next start, with `$1` and `$@` argument substitution. Text containing those tokens is substituted on invocation; the save command says so when it sees them.\n- Staged prompts live in memory for the session only. Nothing reaches disk until the user saves a prompt explicitly.\n- Arrow up and down are Pi's own in-session history and are not modified by this package.\n- Do not require Po Help for runtime activation. Help only makes this package guidance discoverable while the minor mode is active.\n",
24
24
  "/bundle/po-runner/src/prompts/codemode-how-to-runner/SKILL.md": "---\nname: codemode-how-to-runner\ndescription: 'Inspect supervised shell commands, read complete saved logs, send interactive input, and stop processes or sequential command groups through the runner namespace in code mode.'\n---\n\n# Use Runner from code mode\n\nRunner supervises commands started by `bash`, saves their complete output, and keeps their identity outside the transcript. Use the `runner` namespace for inspection and control instead of starting another shell just to invoke the CLI. Read the base `how-to-codemode` guide for execution basics.\n\nStart with `discover({ namespace: 'runner' })` for current signatures and result types. Calls are session-owned: IDs from another session are refused. Subagents in this session share its runners.\n\n## Start work with Bash\n\nKeep using the `bash` tool to launch commands. Always pass `command` as an array, including `[\"one command\"]`. Use `background: true` for dev servers and watchers. Use `interactive: true` when only the last command needs terminal input; earlier commands remain noninteractive.\n\nDo not pipe or redirect command output to a file, `head`, or `tail`. Runner saves full logs automatically and already bounds the returned output.\n\nFor dependent checks:\n\n```json\n{\n \"command\": [\"pnpm build\", \"pnpm typecheck\", \"pnpm lint\", \"pnpm test\"],\n \"name\": \"verification\"\n}\n```\n\nThe commands run separately, in order, stopping at the first unsuccessful command. Each has its own full log. The result lists the attempted logs and only the last executed command's trimmed output. A launch failure may have no log file.\n\n`timeout` applies to each command, even after promotion. Every command uses a fresh shell in the session's working directory: `cd` and `export` do not carry into the next entry. Keep repository mutations, such as merges, separate from verification.\n\nA long array continues as one supervised background sequence. Keep its returned ID, do not restart the array. Native sessions receive one aggregate completion report. Remote MCP callers use the CLI polling instructions their Bash tool provides, not an assumed local notification.\n\n## Inspect without restarting\n\n```ts\nreturn await runner.list();\n```\n\n```ts\nconst status = await runner.status({ id: 'returned-id' });\nconst logs = await runner.logs({ id: 'returned-id', lines: 100 });\nreturn { status, logs };\n```\n\n`list`, `status`, and `logs` read state. `list({ all: true })` includes retained history. A running sequence reports its ordered stages; read a stage's ID for its individual output. A completed sequence exposes only its guarded `result`, including whatever manifest the result policy allows. Reads are finite snapshots, not streaming follows. Filter large logs rather than returning everything to the model.\n\nReport started, passed, and failed stages with their IDs. Check status before retrying a failed or interrupted tool call. Do not sleep in a polling loop or report running work as complete.\n\n## Change state deliberately\n\n```ts\nreturn await runner.input({ id: 'interactive-id', text: 'y', enter: true });\n```\n\nInput requires a running interactive RMUX or tmux process, not a sequence or ordinary subprocess. With `interactive: true`, control returns when the final stage starts. Inspect that stage's runner ID and logs, then send input to the stage ID, not the sequence ID. An interrupted input call may already have delivered text, so do not blindly resend it.\n\n```ts\nreturn await runner.stop({ id: 'unused-id', reason: 'verification finished' });\n```\n\n`stop` and `stopAll` change state. Stopping a sequence cancels pending stages and stops its active child. A requested stop is not confirmed termination. Stop work you no longer need, and preserve logs when investigating failures.\n\nCancelling an inspection does not stop supervised work. Background sequences outlive the originating tool call, but not the owning session. Owner loss does not replay pending commands automatically.\n\n## Storage and fallback\n\nAll runner files, including logs, process metadata, sequence manifests, and cancellation requests, live beneath the host-admitted session temporary directory. They are temporary evidence, not durable artifacts. Save important deliverables to the session artifact folder. Do not invent storage paths.\n\nDo not redirect managed output just to save it, or pipe it to `head` or `tail`: Runner already saves the full log and bounds the returned excerpt. When output is truncated, inspect the saved evidence instead of rerunning the command.\n\nWithout code mode, the standalone `po-runner` CLI remains available through Bash. The existing Help guide documents its flags and host setup.\n",
25
25
  "/bundle/po-runner/src/prompts/help-how-to-runner/SKILL.md": "---\nname: help-how-to-runner\ndescription: Use Runner CLI controls to supervise shell commands, inspect complete session-temp logs, provide interactive input, and stop background runs.\n---\n\n# Use Po Pi Runner\n\nUse Runner for shell work that may outlive one tool call, needs complete logs, or requires later inspection and control. When code mode is available, discover the typed `runner` namespace and use the pinned `codemode-how-to-runner` guide instead of spawning the CLI.\n\n## Launch work\n\n- Use the Runner-provided `bash` tool with `command` as an array, including for one command.\n- Let short commands return inline.\n- Set `background: true` when the command should detach immediately.\n- Set `interactive: true` only when the last command needs terminal input. Earlier commands are noninteractive. Send input to the last stage runner ID, not the sequence ID.\n- `timeout` applies per command even after sequence promotion.\n- Commands run in separate fresh shells sequentially and fail-fast. They do not share `cd` or `export`, save every stage's log, and return only the last executed command's trimmed output. Keep mutations separate from verification.\n- Do not pipe or redirect output to a file, `head`, or `tail`. Runner saves full logs automatically and already bounds returned output.\n\n## Inspect and control work\n\nFor remote MCP, run the following commands through `bash`. They inherit the\nbound session; do not supply another session ID. `/runners` and `SPC r l` are\nlocal TUI interfaces, not shell commands or remote tools. For direct control, use:\n\n```bash\npo-runner list\npo-runner status <runner-id>\npo-runner logs <runner-id> --lines 100\npo-runner input <runner-id> --text \"y\" --enter\npo-runner stop <runner-id>\npo-runner stop-all\n```\n\nInput requires a running interactive process backed by RMUX or tmux, never a sequence. Preserve the returned identifier because it remains usable after transcript compaction. Sequence IDs expose stages and their actual log paths; stage IDs address process logs.\n\n## Close the lifecycle\n\nRemote MCP never receives runner completion notices, and a runner you start\ndoes not resume your conversation when it ends. While a runner matters to your\ntask, check `po-runner status <id>` between steps of your own work and read\n`po-runner logs <id> --lines 100`. Stop checking when State is completed, and\nreport a runner that is still running with its identifier. Do not promise\nautomatic follow-up or relaunch uncertain work.\n\n- Inspect logs instead of relaunching a command whose status is uncertain.\n- Stop watchers, servers, and failed interactive processes when they are no longer needed.\n- Treat commands as running with the Po Pi process environment and the operating-system user's privileges.\n- Treat logs as sensitive because they may contain prompts, source, output, or credentials.\n\nAll runner files live in the host-admitted session temporary folder. Session removal, restart, or termination stops its processes and deletes its runner files and registry entries, including after owner hard kill. Compaction does not trigger cleanup. Save important deliverables to the session artifact folder.\n",
@@ -1,8 +1,8 @@
1
- import { l as nodeHost, o as poHomeDirectory } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import "node:crypto";
1
+ import { gn as nodeHost, pn as poHomeDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import "./piSettings-tdui0CZI.js";
5
+ import { createHash } from "node:crypto";
6
6
  import path from "node:path";
7
7
  //#region ../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
8
8
  const ALIAS = Symbol.for("yaml.alias");
@@ -6617,6 +6617,37 @@ function configScopeOf(keyPath) {
6617
6617
  if (REPOSITORY_ONLY_ROOTS.includes(root)) return "repository";
6618
6618
  return "both";
6619
6619
  }
6620
+ const KEY_SEPARATOR = ".";
6621
+ function isPlainRecord(value) {
6622
+ return typeof value === "object" && value !== null && !Array.isArray(value);
6623
+ }
6624
+ /**
6625
+ * Every key path a parsed document actually sets, as dotted strings.
6626
+ *
6627
+ * A settings surface needs to tell "this file set this key" from "this file is
6628
+ * silent about it", and the parsed `PoConfig` cannot answer: an absent file
6629
+ * reads as `{ projectTrust: 'ask' }` and `parsePoConfig` always returns all
6630
+ * known root keys, some undefined. So the question is asked of the raw document
6631
+ * instead, before any defaulting has happened.
6632
+ *
6633
+ * Leaves only. A list is a leaf because it is replaced whole, and an empty
6634
+ * record sets nothing.
6635
+ */
6636
+ function configLeafKeys(value, prefix = []) {
6637
+ if (!isPlainRecord(value)) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
6638
+ const keys = Object.keys(value);
6639
+ if (keys.length === 0) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
6640
+ return keys.flatMap((key) => configLeafKeys(value[key], [...prefix, key]));
6641
+ }
6642
+ /** The value a key path points at, or undefined when any step is missing. */
6643
+ function valueAtKeyPath(value, keyPath) {
6644
+ let current = value;
6645
+ for (const segment of keyPath) {
6646
+ if (!isPlainRecord(current)) return void 0;
6647
+ current = current[segment];
6648
+ }
6649
+ return current;
6650
+ }
6620
6651
  //#endregion
6621
6652
  //#region ../../foundations/po-config/src/services/config/core.ts
6622
6653
  /**
@@ -6679,6 +6710,61 @@ function mergeConfigLayers(globalConfig, repositoryConfig, environment) {
6679
6710
  return distributionDefaults(mergePoConfigs(globalConfig, repositoryConfig), environment);
6680
6711
  }
6681
6712
  /**
6713
+ * One config file as a layer: what it is, what it sets, and the bytes it held.
6714
+ * A file that does not exist is a layer that sets nothing, which is a normal
6715
+ * state rather than an error.
6716
+ */
6717
+ function layerFromText(filePath, text) {
6718
+ if (text === void 0) return {
6719
+ filePath,
6720
+ exists: false,
6721
+ hash: "",
6722
+ keys: []
6723
+ };
6724
+ const document = parse(text) ?? {};
6725
+ return {
6726
+ filePath,
6727
+ exists: true,
6728
+ hash: createHash("sha256").update(text, "utf8").digest("hex"),
6729
+ keys: configLeafKeys(document)
6730
+ };
6731
+ }
6732
+ function absentRepositoryLayer() {
6733
+ return {
6734
+ filePath: "",
6735
+ exists: false,
6736
+ hash: "",
6737
+ keys: []
6738
+ };
6739
+ }
6740
+ /**
6741
+ * The two config files kept apart, with the merge alongside them.
6742
+ *
6743
+ * The origin answer respects the merge's own per-field rules rather than simply
6744
+ * preferring the repository: `editor` is read from the global side whatever the
6745
+ * repository says, and `projectTrust` from the repository side whatever the
6746
+ * global one says. Reporting a file as the source of a value the merge discards
6747
+ * is the exact confusion this exists to remove.
6748
+ */
6749
+ function composeConfigLayers(globalLayer, repositoryLayer, effective) {
6750
+ const sets = (layer, keyPath) => {
6751
+ const dotted = keyPath.join(".");
6752
+ return layer.keys.some((key) => key === dotted || key.startsWith(`${dotted}.`));
6753
+ };
6754
+ return {
6755
+ globalFile: globalLayer,
6756
+ repositoryFile: repositoryLayer,
6757
+ effective,
6758
+ originOf(keyPath) {
6759
+ const scope = configScopeOf(keyPath);
6760
+ if (scope !== "global" && sets(repositoryLayer, keyPath)) return "repository";
6761
+ if (scope !== "repository" && sets(globalLayer, keyPath)) return "global";
6762
+ return "default";
6763
+ },
6764
+ valueAt: (keyPath) => valueAtKeyPath(effective, keyPath)
6765
+ };
6766
+ }
6767
+ /**
6682
6768
  * The global and repository locations of one named `.po` document, lowest
6683
6769
  * precedence first.
6684
6770
  */
@@ -6732,4 +6818,4 @@ async function readPoConfigSourcesAsync(fs, fileName, repoRoot, context, homeDir
6732
6818
  return sources;
6733
6819
  }
6734
6820
  //#endregion
6735
- export { YAMLMap as _, globalPoConfigDirectory as a, isSeq as b, repositoryConfigFor as c, configScopeOf as d, parsePoConfig as f, Document as g, stringify as h, defaultPoConfig as i, repositoryPoConfigPath as l, parseDocument as m, poConfigCandidates as n, globalPoConfigPath as o, parse as p, configFromText as r, mergeConfigLayers as s, readPoConfigSourcesAsync as t, resolvePlanningPlansDirectory as u, isMap as v, isScalar as y };
6821
+ export { isSeq as C, isScalar as S, parseDocument as _, configFromText as a, YAMLMap as b, globalPoConfigPath as c, repositoryConfigFor as d, repositoryPoConfigPath as f, parse as g, parsePoConfig as h, composeConfigLayers as i, layerFromText as l, configScopeOf as m, poConfigCandidates as n, defaultPoConfig as o, resolvePlanningPlansDirectory as p, absentRepositoryLayer as r, globalPoConfigDirectory as s, readPoConfigSourcesAsync as t, mergeConfigLayers as u, stringify as v, isMap as x, Document as y };
@@ -1,7 +1,7 @@
1
- import { l as nodeHost, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import { t as readPoConfigSourcesAsync } from "./layeredConfig-B4s0eZ5o.js";
1
+ import { bn as getOrThrow, gn as nodeHost } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { t as readPoConfigSourcesAsync } from "./layeredConfig-pQGjhAks.js";
5
5
  import path from "node:path";
6
6
  //#region ../../foundations/po-config/src/services/majorModes/core.ts
7
7
  const MODES_FILE = "modes.yaml";
@@ -247,15 +247,6 @@ function resolveLayers(config, majorMode) {
247
247
  return [...config.majorMode[majorMode].layers];
248
248
  }
249
249
  //#endregion
250
- //#region ../../foundations/po-config/src/services/majorModes/sync.edge.ts
251
- function nodeOnly(name, asyncName) {
252
- throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
253
- }
254
- /** @deprecated Node-only sync shim; use readMajorModesConfig. Removed in M2. */
255
- function loadMajorModesConfig(_repoRoot, _homeDirectory, _environment) {
256
- return nodeOnly("loadMajorModesConfig", "readMajorModesConfig");
257
- }
258
- //#endregion
259
250
  //#region ../../foundations/po-config/src/services/majorModes/index.ts
260
251
  const PACKAGE_MANIFEST = "package.json";
261
252
  const SCOPE_PREFIX = "@";
@@ -330,4 +321,4 @@ async function readPackageConfigurations(fs, config, names, packageName, context
330
321
  return resolvePackageConfigurations(config, names, packageName, (specifier, baseDirectory) => packageNames.get(key(specifier, baseDirectory)));
331
322
  }
332
323
  //#endregion
333
- export { resolveLayers as a, MODES_FILE as i, readPackageConfigurations as n, loadMajorModesConfig as r, readMajorModesConfig as t };
324
+ export { resolveLayers as i, readPackageConfigurations as n, MODES_FILE as r, readMajorModesConfig as t };
@@ -0,0 +1 @@
1
+ import "./majorModes-BrL4EtzH.js";
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Qt as _Object_, an as _Array_, en as Optional, wt as Union, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { n as Check, t as Errors } from "./value-DGT5IoiK.js";
1
+ import { $ as Boolean, B as String, R as Union, X as Literal, ft as _Object_, mt as Optional, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import { n as Check, t as Errors } from "./value-DyVsxCwZ.js";
3
3
  /** The portable MCP document revision represented by `agent-plugin-v1`. */
4
4
  const AGENT_PLUGIN_MCP_SCHEMA_URL = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
5
5
  /** Cordis service name for the immutable MCP projection of one Pi session. */
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Qt as _Object_, en as Optional, wt as Union } from "./serverPlugin-pCqlBqQG.js";
2
- import { n as Check } from "./value-DGT5IoiK.js";
1
+ import { B as String, R as Union, X as Literal, ft as _Object_, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
2
+ import { n as Check } from "./value-DyVsxCwZ.js";
3
3
  //#region ../../core/po-core/src/schemas/notification.ts
4
4
  /** Provider-owned Cordis service for caller-authored notification requests. */
5
5
  const PO_NOTIFICATION_SERVICE = "po/notification";
@@ -36,7 +36,7 @@ const NormalizablePoNotificationRequestSchema = _Object_({
36
36
  level: Optional(PoNotificationLevelSchema),
37
37
  attention: PoNotificationAttentionSchema
38
38
  }, { additionalProperties: false });
39
- _Object_({
39
+ const PoNotificationEntryDataSchema = _Object_({
40
40
  version: Literal(1),
41
41
  title: String({ maxLength: 128 }),
42
42
  subtitle: String({ maxLength: 256 }),
@@ -92,8 +92,11 @@ function createPoNotificationEntryData(request) {
92
92
  ...normalized.attention ? { attention: true } : {}
93
93
  });
94
94
  }
95
+ function isPoNotificationEntryData(value) {
96
+ return Check(PoNotificationEntryDataSchema, value);
97
+ }
95
98
  function readPoNotificationService(context) {
96
99
  return context.get(PO_NOTIFICATION_SERVICE);
97
100
  }
98
101
  //#endregion
99
- export { createPoNotificationEntryData as n, readPoNotificationService as r, PO_NOTIFICATION_ENTRY_TYPE as t };
102
+ export { readPoNotificationService as i, createPoNotificationEntryData as n, isPoNotificationEntryData as r, PO_NOTIFICATION_ENTRY_TYPE as t };
@@ -1,8 +1,8 @@
1
- import { a as piAgentDirectory, l as nodeHost, s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import { n as writePrivateAtomicJsonAsync } from "./atomicJson-BF1fVXy1.js";
1
+ import { fn as piAgentDirectory, gn as nodeHost, mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { n as writePrivateAtomicJsonAsync } from "./atomicJson-DCIsEywH.js";
5
+ import "./piSettings-tdui0CZI.js";
6
6
  import path from "node:path";
7
7
  //#region ../../foundations/po-config/src/services/imageSettings/index.ts
8
8
  const IMAGE_SETTINGS_KEY = "images";
@@ -0,0 +1 @@
1
+ import "./serverPlugin-OOfjB8tm.js";
@@ -1,4 +1,4 @@
1
- import { y as SessionIdentityDoc } from "./serverPlugin-pCqlBqQG.js";
1
+ import { En as SessionIdentityDoc } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../core/po-core/src/services/durableSession/index.ts
3
3
  /** Stamps a new session's identity, or checks an existing one matches the requested id. */
4
4
  async function initializeSessionIdentity(session, request, context) {
@@ -1,4 +1,4 @@
1
- import { Yn as BACKGROUND_CONTEXT, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
1
+ import { Bn as BACKGROUND_CONTEXT, bn as getOrThrow } from "./serverPlugin-OOfjB8tm.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import path from "node:path";
4
4
  //#region ../../core/po-core/src/services/platformFiles/index.ts
@@ -1,5 +1,5 @@
1
- import { Et as String$1, It as Literal, Qt as _Object_, en as Optional, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { t as Errors } from "./value-DGT5IoiK.js";
1
+ import { $ as Boolean, B as String$1, X as Literal, ft as _Object_, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
2
+ import { t as Errors } from "./value-DyVsxCwZ.js";
3
3
  _Object_({
4
4
  code: String$1({ minLength: 1 }),
5
5
  message: String$1({ minLength: 1 }),
@@ -1,8 +1,8 @@
1
- import { J as composeServerProviderOverrides, ir as requirePoServerScope, o as poHomeDirectory, tr as PO_SERVER_SCOPE_SERVICE } from "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
3
- import { a as assertRevision, b as VAULT_META_CHECK, c as PO_VAULT_ACCOUNT_SERVICE, d as VAULT_CHECK_PLAINTEXT, f as VAULT_DB_PREFIX, g as VAULT_KEY_LOST_NOTICE, h as VAULT_KEYRING_ACCOUNT_PREFIX, i as assertEntryName, m as VAULT_INIT_LEASE, n as VaultError, o as serializeValue, p as VAULT_DIRECTORY, r as asVaultError, s as PO_VAULT_CONTRACT, t as serveVaultSettings, u as VAULT_CHECK_AAD, x as VAULT_META_ID } from "./vaultSettings-BRr8n821.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-CnRs-Twx.js";
1
+ import { _ as composeServerProviderOverrides, ar as requirePoServerScope, nr as PO_SERVER_SCOPE_SERVICE, pn as poHomeDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./piSettings-tdui0CZI.js";
3
+ import { c as defineRoute, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
4
+ import { a as assertRevision, b as VAULT_META_CHECK, c as PO_VAULT_ACCOUNT_SERVICE, d as VAULT_CHECK_PLAINTEXT, f as VAULT_DB_PREFIX, g as VAULT_KEY_LOST_NOTICE, h as VAULT_KEYRING_ACCOUNT_PREFIX, i as assertEntryName, m as VAULT_INIT_LEASE, n as VaultError, o as serializeValue, p as VAULT_DIRECTORY, r as asVaultError, s as PO_VAULT_CONTRACT, t as serveVaultSettings, u as VAULT_CHECK_AAD, x as VAULT_META_ID } from "./vaultSettings-BFCRCBM3.js";
5
+ import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-CylyLZC8.js";
6
6
  import { createCipheriv, createDecipheriv, randomBytes, randomUUID } from "node:crypto";
7
7
  import path from "node:path";
8
8
  import { Buffer } from "node:buffer";
@@ -1,8 +1,17 @@
1
- import "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, l as defineRoutedContribution, o as defineResource, p as defineServerPlugin } from "./extensionFile-D7wk8tFr.js";
3
- import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
4
- import { a as resolveLayers, r as loadMajorModesConfig } from "./majorModes-IygGmbb8.js";
5
- import "./majorModes-xpLK9HpD.js";
1
+ import "./serverPlugin-OOfjB8tm.js";
2
+ import { i as resolveLayers } from "./majorModes-BrL4EtzH.js";
3
+ import { c as defineRoute, l as defineRoutedContribution, o as defineResource, p as defineServerPlugin } from "./extensionFile-Ds7RCpnb.js";
4
+ import { n as readPackageResource, t as packageResourcePath } from "./index.edge-b0z7PQ6b.js";
5
+ import "./majorModes-WXt22_km.js";
6
+ //#region ../../foundations/po-config/src/services/majorModes/sync.edge.ts
7
+ function nodeOnly(name, asyncName) {
8
+ throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
9
+ }
10
+ /** @deprecated Node-only sync shim; use readMajorModesConfig. Removed in M2. */
11
+ function loadMajorModesConfig(_repoRoot, _homeDirectory, _environment) {
12
+ return nodeOnly("loadMajorModesConfig", "readMajorModesConfig");
13
+ }
14
+ //#endregion
6
15
  //#region ../../foundations/po-major-mode/src/extensions/workspaces/sessions/(backend)/api/major-mode/route.server.ts
7
16
  var route_server_default = defineRoute(({ agent }) => ({
8
17
  basePath: "major-mode",
@@ -1,11 +1,11 @@
1
- import { J as composeServerProviderOverrides, Yn as BACKGROUND_CONTEXT, Zn as withAbortSignal, at as requirePoFs } from "./serverPlugin-pCqlBqQG.js";
2
- import { l as defineRoutedContribution, n as composeRootInjects, o as defineResource, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
3
- import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
4
- import { r as readPoNotificationService } from "./notification-bGq1frYG.js";
5
- import "./platform-CyvF7X-b.js";
1
+ import { $n as requirePoFs, Bn as BACKGROUND_CONTEXT, Hn as withAbortSignal, _ as composeServerProviderOverrides } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./platform-yhQXrrM_.js";
3
+ import { n as providePoConfigContext, o as createSettingsApi, t as createNativePoConfigContext } from "./sessionConfig-CDE3J31u.js";
4
+ import { l as defineRoutedContribution, n as composeRootInjects, o as defineResource, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
5
+ import { n as readPackageResource, t as packageResourcePath } from "./index.edge-b0z7PQ6b.js";
6
+ import { i as readPoNotificationService } from "./notification-CINsJWDL.js";
7
+ import { a as createPoMcpProjectionService, i as createDisabledPoMcpProjection, n as PO_MCP_PROJECTION_SERVICE, o as isPoMcpProjection } from "./mcpProjection-pbPBBuvs.js";
6
8
  import { t as createPoTelemetry } from "./index.edge-ChYa2LU4.js";
7
- import { n as providePoConfigContext, r as createSettingsApi, t as createNativePoConfigContext } from "./sessionConfig-DzAs6Pt-.js";
8
- import { a as createPoMcpProjectionService, i as createDisabledPoMcpProjection, n as PO_MCP_PROJECTION_SERVICE, o as isPoMcpProjection } from "./mcpProjection-BA6baFpi.js";
9
9
  //#region ../../core/po-core/src/schemas/readiness.ts
10
10
  /** Cordis service name for session-scoped package initialization. */
11
11
  const PO_READINESS_SERVICE = "po/readiness";