@agimon-ai/po-cloudflare 0.0.2-alpha.7 → 0.0.2-alpha.70

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 (355) hide show
  1. package/README.md +64 -241
  2. package/container/Dockerfile +27 -0
  3. package/dist/{BrowserWebSocketTransport-C2SC2VeJ.js → BrowserWebSocketTransport-B4heNdrp.js} +1 -1
  4. package/dist/{NodeWebSocketTransport-CKilJesa.js → NodeWebSocketTransport-BCiOXUEz.js} +2 -2
  5. package/dist/{abort-signals-Bkmp_euQ.js → abort-signals-C8CttjsR.js} +1 -1
  6. package/dist/agent-CEqvgRl6.js +3878 -0
  7. package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-DCLLLNuM.js} +292 -64
  8. package/dist/apiContracts-DaOpUHnu.js +1719 -0
  9. package/dist/{approval-CQ3ZuoTy.js → approval-DXPV7Vm5.js} +15 -2
  10. package/dist/{approvalPrompt-CylV3C84.js → approvalPrompt-CBaxjb_g.js} +1 -2
  11. package/dist/approvalSession-C9bg7tPo.js +132 -0
  12. package/dist/artifactFiles-5KwXIxYf.js +1 -0
  13. package/dist/artifactsApi-bg2wMYWg.js +200 -0
  14. package/dist/assets/assets/{CodeEditorView-D4q94XH-.js → CodeEditorView-i4Ppo-Ez.js} +2 -2
  15. package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C85p4OYZ.js → abnfDiagram-WEYOIA3C-DyhZRVQg.js} +2 -2
  16. package/dist/assets/assets/{architecture-WOLXFQ4H-Bt_NOdwE.js → architecture-WOLXFQ4H-BBs2Sd0N.js} +1 -1
  17. package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DzH1GKMm.js → architectureDiagram-ZHVYKT53-DsCX6klV.js} +2 -2
  18. package/dist/assets/assets/{blockDiagram-RJAE7QA3-BmWU34j3.js → blockDiagram-RJAE7QA3-BI3vEkHp.js} +2 -2
  19. package/dist/assets/assets/{c4Diagram-XDPPPE54-BpGOdOuo.js → c4Diagram-XDPPPE54-BPQ3l3Wo.js} +2 -2
  20. package/dist/assets/assets/channel-1ehKCuz-.js +2 -0
  21. package/dist/assets/assets/{chunk-2E7WHVMD-AycP1cXU.js → chunk-2E7WHVMD-w1BaZW2E.js} +2 -2
  22. package/dist/assets/assets/{chunk-4EMNKR2T-DX-DrZzc.js → chunk-4EMNKR2T-CUW8s7jF.js} +2 -2
  23. package/dist/assets/assets/{chunk-55XCU76K-BdwnLWzI.js → chunk-55XCU76K-By6CWPPC.js} +2 -2
  24. package/dist/assets/assets/{chunk-7S6XSTFO-D-RBAwAn.js → chunk-7S6XSTFO-BBrnzWpC.js} +2 -2
  25. package/dist/assets/assets/{chunk-AQDTSKZB-CCxNNhKs.js → chunk-AQDTSKZB-DPdxwHEp.js} +2 -2
  26. package/dist/assets/assets/{chunk-DSNLSHJZ-D2hGwWm1.js → chunk-DSNLSHJZ-DYgD5g3I.js} +2 -2
  27. package/dist/assets/assets/{chunk-HAGFOTED-BPi-cqGh.js → chunk-HAGFOTED-DQK-CQol.js} +2 -2
  28. package/dist/assets/assets/{chunk-HNE4Q36P-D-r1ChHT.js → chunk-HNE4Q36P-B7wgFR7D.js} +2 -2
  29. package/dist/assets/assets/{chunk-NQOKRVIF-RgmZCAdn.js → chunk-NQOKRVIF-CCLgsSmY.js} +2 -2
  30. package/dist/assets/assets/{chunk-UHW7PFBP-B-Hul-rZ.js → chunk-UHW7PFBP-ynXsycud.js} +2 -2
  31. package/dist/assets/assets/{chunk-VQ5W62QI-D1zlXCt8.js → chunk-VQ5W62QI-g-S-R-1r.js} +2 -2
  32. package/dist/assets/assets/{chunk-WQQL4CDK-CtjIbVJn.js → chunk-WQQL4CDK-BacAjFnN.js} +2 -2
  33. package/dist/assets/assets/chunk-XXDRQBXY-CpS2hTCb.js +2 -0
  34. package/dist/assets/assets/{chunk-YZO67HFG-BQOgXG99.js → chunk-YZO67HFG-BpftQis1.js} +2 -2
  35. package/dist/assets/assets/{chunk-ZAUX2LTX-CsDDxmqv.js → chunk-ZAUX2LTX-DJdy-AMG.js} +2 -2
  36. package/dist/assets/assets/{chunk-ZCHMQSOR-deyEYMjx.js → chunk-ZCHMQSOR-87ga4cjt.js} +2 -2
  37. package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DVJHeFlq.js → classDiagram-v2-4MYWR3UA-CpsLBpS_.js} +2 -2
  38. package/dist/assets/assets/{cose-bilkent-JH36ORCC-ipcN28Fw.js → cose-bilkent-JH36ORCC-DJaIzCvD.js} +2 -2
  39. package/dist/assets/assets/{cynefin-EF2NZ3EQ-s9ZkPF55.js → cynefin-EF2NZ3EQ-CI6zLM35.js} +1 -1
  40. package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Ksr2qjsS.js → cynefinDiagram-WF24UDRP-DfzAHZ0M.js} +2 -2
  41. package/dist/assets/assets/{dagre-NK4GIZVX-2_Wl-XEW.js → dagre-NK4GIZVX-B8tLPoML.js} +2 -2
  42. package/dist/assets/assets/{diagram-CBK3MWTC-C7PeyT7l.js → diagram-CBK3MWTC-Dr80S-jH.js} +2 -2
  43. package/dist/assets/assets/{diagram-I5XIIV2D-DPYzeKdj.js → diagram-I5XIIV2D-B8UFhfTz.js} +2 -2
  44. package/dist/assets/assets/{diagram-ODIL2UCW-DHw1cAmn.js → diagram-ODIL2UCW-CcuwPetk.js} +2 -2
  45. package/dist/assets/assets/{diagram-PFBEJUXE-C2wA8i-1.js → diagram-PFBEJUXE-RcrmwqS-.js} +2 -2
  46. package/dist/assets/assets/{diagram-RJA3I4VV-tM3moCIs.js → diagram-RJA3I4VV-L0etfW8v.js} +2 -2
  47. package/dist/assets/assets/{diagram-TYUNFSNR-CInyJxF7.js → diagram-TYUNFSNR-qAWwJAuP.js} +2 -2
  48. package/dist/assets/assets/{dist-DSLprmec.js → dist-8Be2UxDt.js} +2 -2
  49. package/dist/assets/assets/{dist-DUS0U_ge.js → dist-BEo-JIto.js} +2 -2
  50. package/dist/assets/assets/{dist-BASEd5LC.js → dist-BH9U8iUV.js} +2 -2
  51. package/dist/assets/assets/{dist-07dRlnp1.js → dist-CgWFM0mc.js} +2 -2
  52. package/dist/assets/assets/{dist-ChXoRSS6.js → dist-CpVa1sRY.js} +2 -2
  53. package/dist/assets/assets/{dist-hpZIQBl4.js → dist-CzUZg8tE.js} +2 -2
  54. package/dist/assets/assets/{dist-BDqjNLTC.js → dist-DGxK4Eqg.js} +2 -2
  55. package/dist/assets/assets/{dist-CeOy6PjJ.js → dist-GAOFeWFO.js} +2 -2
  56. package/dist/assets/assets/{dist-BuYBvf4F.js → dist-engyz38V.js} +2 -2
  57. package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-4nZgqaSt.js → ebnfDiagram-V4P3TTPT-BprXAPMU.js} +2 -2
  58. package/dist/assets/assets/{elk-QONTBCTQ-nFh54c1Q.js → elk-QONTBCTQ-D523_9vu.js} +2 -2
  59. package/dist/assets/assets/{erDiagram-KYQIGQAA-CIQ0_IgZ.js → erDiagram-KYQIGQAA-QpR6wQYW.js} +2 -2
  60. package/dist/assets/assets/{eventmodeling-K75KTNOO-Cw4BlbYP.js → eventmodeling-K75KTNOO-BaGn1fXz.js} +1 -1
  61. package/dist/assets/assets/flowDiagram-IUGLLWBU-BLGi2Tcw.js +1 -0
  62. package/dist/assets/assets/{ganttDiagram-R7GPNTJY-C97qoUpX.js → ganttDiagram-R7GPNTJY-CdOyCuYE.js} +2 -2
  63. package/dist/assets/assets/{gitGraph-VSP46ZUC-B8HWVkEX.js → gitGraph-VSP46ZUC-EsAHczV6.js} +1 -1
  64. package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B4Js56_8.js → gitGraphDiagram-PDYL7XHY-BIujo2Py.js} +2 -2
  65. package/dist/assets/assets/index-BpJxd2yX.js +256 -0
  66. package/dist/assets/assets/index-CNDyKUDF.css +1 -0
  67. package/dist/assets/assets/{info-OHQRW6UA-A4qythhA.js → info-OHQRW6UA-LjorJFXn.js} +1 -1
  68. package/dist/assets/assets/{infoDiagram-MVDRKAX5-BSNwG9yI.js → infoDiagram-MVDRKAX5-DH9gnzLg.js} +2 -2
  69. package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-D4gU-3RA.js → ishikawaDiagram-HPEHV2GE-hX3Vi2D5.js} +2 -2
  70. package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CxxDrw7o.js → journeyDiagram-BOSHW7O7-D_DP_Ais.js} +2 -2
  71. package/dist/assets/assets/{kanban-definition-FNSA4HC5-DUxQv3v0.js → kanban-definition-FNSA4HC5-xjXWPA_c.js} +2 -2
  72. package/dist/assets/assets/{line-BKODXUmk.js → line-DmYSe7_a.js} +2 -2
  73. package/dist/assets/assets/{linear-Cm5uyUun.js → linear-bTjWiO8g.js} +2 -2
  74. package/dist/assets/assets/{mermaid-parser.core-CYst2kCg.js → mermaid-parser.core-Canr1bD7.js} +4 -4
  75. package/dist/assets/assets/{mermaid.core-B4Qq8SMa.js → mermaid.core-CzdNzF6I.js} +5 -5
  76. package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZFvUTIM.js → mindmap-definition-6OY57UG3-DADwSr-4.js} +2 -2
  77. package/dist/assets/assets/{packet-JDAUHWVQ-DZMlaiuy.js → packet-JDAUHWVQ-Bbicx2nv.js} +1 -1
  78. package/dist/assets/assets/{pegDiagram-ECIUJNBX-BjM668dT.js → pegDiagram-ECIUJNBX-CsayWcP2.js} +2 -2
  79. package/dist/assets/assets/{pie-XZMESJXO-CmpJ6vb8.js → pie-XZMESJXO-Blegt3hx.js} +1 -1
  80. package/dist/assets/assets/{pieDiagram-GNMPY74T-BCA9DCDe.js → pieDiagram-GNMPY74T-CVDQwYsb.js} +2 -2
  81. package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CUnpC-Rl.js → quadrantDiagram-D57K4MC3-B_3o8LPt.js} +2 -2
  82. package/dist/assets/assets/{radar-ABXABTNO-C9x42-KP.js → radar-ABXABTNO-RkOj7KMI.js} +1 -1
  83. package/dist/assets/assets/{railroad-I3PHUGI6-CLvHKrsC.js → railroad-I3PHUGI6-BJRK-sej.js} +1 -1
  84. package/dist/assets/assets/{railroad-abnf-LNEFI6M7-B0LGF3gx.js → railroad-abnf-LNEFI6M7-zDVbNx_e.js} +1 -1
  85. package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-SKnYapAj.js → railroad-ebnf-DWYD2UWJ-DR--F1w_.js} +1 -1
  86. package/dist/assets/assets/{railroad-peg-JR7BVNR7-wsUpPloN.js → railroad-peg-JR7BVNR7-DUU7CG0O.js} +1 -1
  87. package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BYJtosKO.js → railroadDiagram-Y72NRBL7-BTI5d3Dh.js} +2 -2
  88. package/dist/assets/assets/{requirementDiagram-EQYSW5RA-YYdoWMnl.js → requirementDiagram-EQYSW5RA-ryj3WI8d.js} +2 -2
  89. package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DtZyCTdM.js → sankeyDiagram-SY24JHO5-CpxzEis6.js} +2 -2
  90. package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BPE8f413.js → sequenceDiagram-BLEHNHQU-Ck0eH0AG.js} +2 -2
  91. package/dist/assets/assets/{src-BNTOLq2G.js → src-CVheRzH-.js} +2 -2
  92. package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-9f8Ow4Fl.js → stateDiagram-v2-A6IESKWZ-BUP0MEeM.js} +2 -2
  93. package/dist/assets/assets/{swimlanes-B3ENRKFQ-DdAEbxGp.js → swimlanes-B3ENRKFQ-Bv0gbKOG.js} +2 -2
  94. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BMOkq2v_.js +9 -0
  95. package/dist/assets/assets/{timeline-definition-JXYKGLGB-DJNGd2mU.js → timeline-definition-JXYKGLGB-Bvln6k4A.js} +2 -2
  96. package/dist/assets/assets/{treeView-D4JQ5SDB-BHONoCCw.js → treeView-D4JQ5SDB-DTTZJ9g6.js} +1 -1
  97. package/dist/assets/assets/{treemap-SAJKECNS-pOaYkxq7.js → treemap-SAJKECNS-DvSBR2VN.js} +1 -1
  98. package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C3eDYL9v.js → usecaseDiagram-WPOLBNNX-DDmtJ3Uv.js} +2 -2
  99. package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CJi1xfsR.js → vennDiagram-Q3Y3IDCW-CgTKk1M4.js} +2 -2
  100. package/dist/assets/assets/{wardley-7MLQ67FV-CEy4w7Ir.js → wardley-7MLQ67FV-Dc3Gbgal.js} +1 -1
  101. package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DfdLMMpN.js → wardleyDiagram-IVAIDKWA-Bt6AAQZb.js} +2 -2
  102. package/dist/assets/assets/{webpack-v8XGbQTa.js → webpack-Vcj694ip.js} +2 -2
  103. package/dist/assets/assets/{xychartDiagram-4URNHDU4-Aw-Ix4uC.js → xychartDiagram-4URNHDU4-4WaL7qQg.js} +2 -2
  104. package/dist/assets/bundle-asset-policy.json +1 -1
  105. package/dist/assets/index.html +8 -2
  106. package/dist/assets/mascot/cta-provider.png +0 -0
  107. package/dist/assets/mascot/cta-sign-in.png +0 -0
  108. package/dist/assets/plugins/assets/base-GzIOAd-t.css +2 -0
  109. package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
  110. package/dist/assets/plugins/assets/day-bottom-left-5um-x02r-5um-x02r.webp +0 -0
  111. package/dist/assets/plugins/assets/day-grain-CvEuNhlI-CvEuNhlI.webp +0 -0
  112. package/dist/assets/plugins/assets/day-right-C9W-XtjV-C9W-XtjV.webp +0 -0
  113. package/dist/assets/plugins/assets/day-top-left-B544Eq9J-B544Eq9J.webp +0 -0
  114. package/dist/assets/plugins/assets/night-bottom-left-N03ST5Uz-N03ST5Uz.webp +0 -0
  115. package/dist/assets/plugins/assets/night-grain-BY9q-tNN-BY9q-tNN.webp +0 -0
  116. package/dist/assets/plugins/assets/night-right-C6Denrqj-C6Denrqj.webp +0 -0
  117. package/dist/assets/plugins/assets/night-top-left-KOou6UxY-KOou6UxY.webp +0 -0
  118. package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
  119. package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
  120. package/dist/assets/plugins/chunks/po-web-runtime-Yjk5kSCS.js +1 -0
  121. package/dist/assets/plugins/chunks/schemas-DVQ8BvvP.js +55 -0
  122. package/dist/assets/plugins/compositions.json +1 -1
  123. package/dist/assets/plugins/slots/approval.3e4ea6e4-CFdw9ob_.js +2 -0
  124. package/dist/assets/plugins/slots/artifacts.84980c32-ocCs81ac.js +1 -0
  125. package/dist/assets/plugins/slots/author.8eca1a3d-Dht6Emzx.js +93 -0
  126. package/dist/assets/plugins/slots/autocompact.ec8f713f-Dn7Bt8Bf.js +1 -0
  127. package/dist/assets/plugins/slots/backdrop-bamboo.1a4d85e9-B7xkLXXQ.js +1 -0
  128. package/dist/assets/plugins/slots/browse.61a8907a-B8xsrCRp.js +1 -0
  129. package/dist/assets/plugins/slots/builtin-tools.16ef5e25-HORNeYBw.js +7 -0
  130. package/dist/assets/plugins/slots/calendar.d337fc49-ZApjFb8a.js +2 -0
  131. package/dist/assets/plugins/slots/codemode.5f359b9c-B60BP7uB.js +11 -0
  132. package/dist/assets/plugins/slots/domain.832848c8-Cwu_vvzo.js +1 -0
  133. package/dist/assets/plugins/slots/edit.7c802139-DyVlM6he.js +7 -0
  134. package/dist/assets/plugins/slots/files.364f16c9-BZpLJy01.js +2 -0
  135. package/dist/assets/plugins/slots/goal.a97b169d-Bi5YKBZC.js +1 -0
  136. package/dist/assets/plugins/slots/grep.d8bf9f57-hqVwtdze.js +1 -0
  137. package/dist/assets/plugins/slots/help.5c78c071-Drhx02TI.js +3 -0
  138. package/dist/assets/plugins/slots/log.07fd59a4-CoJHv8w_.js +4 -0
  139. package/dist/assets/plugins/slots/mcp.ea8b6aa2-C8Fnd-JT.js +55 -0
  140. package/dist/assets/plugins/slots/plan.7b30f8d8-CZYr2pT-.js +3 -0
  141. package/dist/assets/plugins/slots/profile.63bc3ae6-DKIhEgIG.js +1 -0
  142. package/dist/assets/plugins/slots/prompts.9d9b47cc-B1gwBWg8.js +38 -0
  143. package/dist/assets/plugins/slots/read.926c024f-ClmLDj9R.js +1 -0
  144. package/dist/assets/plugins/slots/runner.5393fa6c-ttJbdJZ2.js +9 -0
  145. package/dist/assets/plugins/slots/scaffold.686222eb-3wV6oBNu.js +1 -0
  146. package/dist/assets/plugins/slots/session-mcp.8eb68fc9-B-Xa5onX.js +2 -0
  147. package/dist/assets/plugins/slots/sessions.8e378a3b-BfIRgip7.js +1 -0
  148. package/dist/assets/plugins/slots/skill.56c1cc07-BqmMUx5M.js +4 -0
  149. package/dist/assets/plugins/slots/space.056e8bbc-DIA3v5sn.js +1 -0
  150. package/dist/assets/plugins/slots/subagents.31fc045b-BZXTwTSN.js +7 -0
  151. package/dist/assets/plugins/slots/template-advanced.9e8350fe-jSxtKth9.js +1 -0
  152. package/dist/assets/plugins/slots/template-desktop.69a46f62-IV-rW8Gz.js +7 -0
  153. package/dist/assets/plugins/slots/template-elegant.381f6acb-Dr2lz9D3.js +1 -0
  154. package/dist/assets/plugins/slots/vault.587549ba-CLv0qsTB.js +1 -0
  155. package/dist/assets/plugins/slots/voice.9c687181-d6cHs1CH.js +1 -0
  156. package/dist/assets/plugins/slots/web-search.f6292793-uk9YiOK-.js +1 -0
  157. package/dist/assets/plugins/slots/workflows.8a13baad-B4cnDzRF.js +16 -0
  158. package/dist/assets/pwa/pwa.js +12 -12
  159. package/dist/assets/pwa/sw.js +58 -4
  160. package/dist/{atomicJson-wczZBXQP.js → atomicJson-XYtxz032.js} +2 -3
  161. package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-S-quxzTC.js} +2 -2
  162. package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-DdpV5zh7.js} +13 -13
  163. package/dist/backgroundWork-Bv0ib_lY.js +49 -0
  164. package/dist/browser-Cw6DqE4e.js +34 -0
  165. package/dist/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
  166. package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
  167. package/dist/calendarSetup-CI3AACVo.js +3892 -0
  168. package/dist/childProcess-Cv8rJuUf.js +32 -0
  169. package/dist/childSession-BrDCrNtL.js +25 -0
  170. package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-DFprgrML.js} +5 -5
  171. package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-B0MD19yZ.js} +3 -3
  172. package/dist/{codemode-CFVDmyGm.js → codemode-LpcMFMYM.js} +1 -1
  173. package/dist/coerce-DM9YrILC.js +13 -0
  174. package/dist/config-DeWkdjj7.js +1372 -0
  175. package/dist/contextContributions-C1bsEJef.js +13 -0
  176. package/dist/contracts-CW8o6Xyi.js +19 -0
  177. package/dist/contracts-WRa9e98H.js +40 -0
  178. package/dist/cordisHost-_-jtkneB.js +25 -0
  179. package/dist/delegation-B2rBgv8A.js +100 -0
  180. package/dist/{diagnostics-DPTP-yrt.js → diagnostics-BY5LXbHJ.js} +2 -2
  181. package/dist/{dist-BVBi6VMV.js → dist-B2ArMqge.js} +1 -1
  182. package/dist/{server-Cg07O2W6.js → dist-C6IqjC-m.js} +1 -546
  183. package/dist/{dist-PDDFdqDX.js → dist-CDz5dYMj.js} +1 -1
  184. package/dist/{dist-Dvx5mlIR.js → dist-kgi2Ix1y.js} +16 -3
  185. package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js} +1 -1
  186. package/dist/{env-api-keys-CAnjjnsR.js → env-api-keys-BgCPpU9t.js} +1 -1
  187. package/dist/{error-body-DQZRsyL5.js → error-body-CeumezyR.js} +26 -4
  188. package/dist/esm-BKJy3O9-.js +1553 -0
  189. package/dist/{remoteMcp-DqE2xFWS.js → exports-BEEgtkya.js} +1588 -714
  190. package/dist/{exports-LjvSY7Y6.js → exports-CBp_9dVk.js} +47 -28
  191. package/dist/exports-CRjRvvX0.js +34 -0
  192. package/dist/exports-Cg0wxflf.js +1 -0
  193. package/dist/exports-Ct56PRB9.js +46 -0
  194. package/dist/extensionFile-B940JOEn.js +121 -0
  195. package/dist/{factory-Cs8iaUtc.js → factory-BU0cZY0I.js} +1 -1
  196. package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-Cq9pnpl2.js} +1 -1
  197. package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-DmbUlCGv.js} +9 -9
  198. package/dist/{google-shared-S7bqOccz.js → google-shared-Diz2uk39.js} +6 -6
  199. package/dist/{google-vertex-BcMU_DMb.js → google-vertex-CGCpI9Po.js} +10 -10
  200. package/dist/{domains-B6Ae4swm.js → harnessState-Df--jB5z.js} +162 -42
  201. package/dist/{harnessStore-Ccbia9_u.js → harnessStore-DInwiLYb.js} +4 -5
  202. package/dist/{hash-B3RRpLS2.js → hash-IQBoLxOB.js} +1 -1
  203. package/dist/{headers-BEuxFxDI.js → headers-Dkgiqogr.js} +1 -1
  204. package/dist/help-C9UGKetC.js +100 -0
  205. package/dist/home-kwZFHqOx.js +60 -0
  206. package/dist/http-BekstF5S.js +64 -0
  207. package/dist/hubChannel-Dldv3EEb.js +32 -0
  208. package/dist/hubRevisions-BPoC6quI.js +364 -0
  209. package/dist/{identity-BIeAyilV.js → identity-BzB1N-Sn.js} +3 -3
  210. package/dist/index.edge-CSGx6QOL.js +56 -0
  211. package/dist/index.edge-CfP4Hcva.js +198 -0
  212. package/dist/index.edge-ClLTmPFz.js +191 -0
  213. package/dist/index.edge-CzoLWbyl.js +238 -0
  214. package/dist/index.edge-D1biKw71.js +946 -0
  215. package/dist/index.edge-D2RirEwK.js +14 -0
  216. package/dist/iso-BGFmgtky.js +27 -0
  217. package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-D8KUrWxm.js} +1 -1
  218. package/dist/liquid.browser-1BcykmIN.js +4596 -0
  219. package/dist/manualTranscription-DN56fzgj.js +96 -0
  220. package/dist/{mcpProjection-BXiECnW0.js → mcpProjection-D2U50Pel.js} +1 -2
  221. package/dist/meta-CVgfTHQP.js +1030 -0
  222. package/dist/migrations-DJBPDwSR.js +32 -0
  223. package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-Bv_m1MRF.js} +12 -12
  224. package/dist/modeDefinition-Di95_IiU.js +44 -0
  225. package/dist/{models-D6d73jcW.js → models-D50yN8Ag.js} +41 -46
  226. package/dist/{node-UuMT2C3q.js → node-B4kSjHeD.js} +2 -2
  227. package/dist/{node-DytJOfYf.js → node-CBLSc-YH.js} +1 -1
  228. package/dist/notification-DjxbNoMR.js +143 -0
  229. package/dist/{openai-bt3ZRBZv.js → openai-D6Q-l6hT.js} +187 -187
  230. package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-BnoiTqYV.js} +21 -25
  231. package/dist/{openai-completions-BWsTNYyT.js → openai-completions-C68qs5rI.js} +26 -19
  232. package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-BSxU_aoV.js} +3 -3
  233. package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-D6hXen-k.js} +17 -15
  234. package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-BD8K7FAC.js} +7 -7
  235. package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-BPam8wyW.js} +1 -1
  236. package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-DylXiHy7.js} +7 -7
  237. package/dist/{hubChannel-Dn5NMpvu.js → packageApi-DYkaxP59.js} +33 -42
  238. package/dist/photon_rs_bg.wasm +0 -0
  239. package/dist/{pi-messages-BHAIkYBj.js → pi-messages-DaIlYYlO.js} +6 -6
  240. package/dist/piConfig-5tRPD0ov.js +126 -0
  241. package/dist/piSettings-ekBG5OeF.js +1 -0
  242. package/dist/platform-CQahdzpG.js +138 -0
  243. package/dist/pluginCatalog-BAALyedS.js +30 -0
  244. package/dist/pluginContributions-Be9EnCAW.js +16 -0
  245. package/dist/pluginProtocol-7_gVUeM9.js +1 -0
  246. package/dist/pluginProtocol-DVIfJnav.js +135 -0
  247. package/dist/portableConfig-0tnk9anb.js +49 -0
  248. package/dist/presetConfig-n-oiNd3h.js +541 -0
  249. package/dist/profileSources-D1rymC97.js +537 -0
  250. package/dist/{protocol-DUeE0Q8z.js → protocol-Cri0GpZR.js} +1 -2
  251. package/dist/{provider-env-DgfpjgTa.js → provider-env-DJb40UF7.js} +2 -2
  252. package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-jpvs7ixx.js} +1 -1
  253. package/dist/{puppeteer-cloudflare-B-GHrPGO.js → puppeteer-cloudflare-D4l8smMS.js} +3 -3
  254. package/dist/{server-BWJmxCrm.js → readiness-Ydw5zrKy.js} +4 -169
  255. package/dist/{rolldown-runtime-B-lAHAz2.js → rolldown-runtime-DbVrKiKs.js} +1 -1
  256. package/dist/{sanitize-unicode-Dl4ROF7y.js → sanitize-unicode-B1ZFaEtf.js} +1 -1
  257. package/dist/scaffoldRegistry-CeFe3Pf0.js +1240 -0
  258. package/dist/{schemas-Vj8-rCR4.js → schemas-D2dRon18.js} +1901 -53
  259. package/dist/server-B3hOw2hW.js +3326 -0
  260. package/dist/server-B9tL6m4q.js +571 -0
  261. package/dist/server-BHjAYOdl.js +1527 -0
  262. package/dist/server-BPV1OpOD.js +15108 -0
  263. package/dist/server-BRWPQZ3b.js +1116 -0
  264. package/dist/server-BW1v1CXw.js +1825 -0
  265. package/dist/server-BWZTwInM.js +1744 -0
  266. package/dist/server-BXCRqk1Y.js +742 -0
  267. package/dist/server-BZE1vhGE.js +492 -0
  268. package/dist/server-BbHDXrj8.js +156 -0
  269. package/dist/server-BcPD_6a2.js +1533 -0
  270. package/dist/server-BmUYK0Ig.js +27187 -0
  271. package/dist/server-BtBc4Sdj.js +584 -0
  272. package/dist/server-C-HBjWRo.js +2800 -0
  273. package/dist/server-C3H2x8Rn.js +9603 -0
  274. package/dist/server-C5LjIK29.js +580 -0
  275. package/dist/server-C8NPfG1H.js +148 -0
  276. package/dist/server-CKkaxOc0.js +978 -0
  277. package/dist/server-CQPI6jIa.js +295 -0
  278. package/dist/{server-BhYE7Vqk.js → server-CQmb0lYL.js} +114 -176
  279. package/dist/server-CZiAy2v5.js +641 -0
  280. package/dist/server-ClQQGtsI.js +679 -0
  281. package/dist/{server-BpPEzRes.js → server-D39LRN9f.js} +654 -745
  282. package/dist/server-D4VFb4Uf.js +24 -0
  283. package/dist/server-D50y-w6B.js +1379 -0
  284. package/dist/{server-CWg0m_wq.js → server-D70beQ8N.js} +269 -1062
  285. package/dist/server-D8lpe7s-.js +1300 -0
  286. package/dist/server-DIArHmjQ.js +877 -0
  287. package/dist/{server-zkcrP99W.js → server-Df1defzp.js} +89 -87
  288. package/dist/server-DgZd_TuT.js +189 -0
  289. package/dist/server-DlRePYOB.js +343 -0
  290. package/dist/{server-yABhJa2K.js → server-G7w-rLJ4.js} +57 -37
  291. package/dist/server-HOmc-Wq6.js +1884 -0
  292. package/dist/server-W6fE1shC.js +112 -0
  293. package/dist/server-i_olh10z.js +24 -0
  294. package/dist/server-lgV6liTt.js +140 -0
  295. package/dist/server-rYmfX6Hw.js +466 -0
  296. package/dist/{server-SA0dsIJ2.js → server-w1aKMZOs.js} +3 -10
  297. package/dist/serverPlugin-4nI5J6Zt.js +39622 -0
  298. package/dist/session-resources-BvR3cwiH.js +10 -0
  299. package/dist/{sessionConfig-DgnPcGBu.js → sessionConfig-UMlgu98q.js} +926 -844
  300. package/dist/{simple-options-DWrW31_K.js → simple-options-Cp5p46f9.js} +13 -6
  301. package/dist/space-C3Wnli1l.js +92 -0
  302. package/dist/sse-XlzXs1es.js +151 -0
  303. package/dist/{streaming-json-t4rzNHEp.js → streaming-json-CZyrX_Ux.js} +6 -6
  304. package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-Du6bka0h.js} +3 -3
  305. package/dist/{notification-valMY1zH.js → telemetry-CrTcxeA5.js} +2 -93
  306. package/dist/{transform-messages-CjTSwW9q.js → transform-messages-CBj9g2mx.js} +3 -16
  307. package/dist/truncate-M3KbFyVj.js +89 -0
  308. package/dist/{server-BXjfQYeU.js → type-DppaYz6F.js} +955 -1187
  309. package/dist/type-yokaDI_F.js +7 -0
  310. package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-C7YFgvrX.js} +3 -3
  311. package/dist/{uuid-mkNGilLv.js → uuid-BVI0BZsx.js} +1 -1
  312. package/dist/{validation-BLnxgJU_.js → validation-QWuk6kwJ.js} +79 -74
  313. package/dist/vaultSettings-Bq8wkbDv.js +292 -0
  314. package/dist/voiceTools-BdJyfzwB.js +246 -0
  315. package/dist/web-B2sdV-F2.js +4 -0
  316. package/dist/worker.js +126658 -102442
  317. package/dist/workflow-DTCt4n6k.js +171 -0
  318. package/dist/workflowLibrary-DGa6qbh_.js +59 -0
  319. package/package.json +55 -25
  320. package/wrangler.jsonc +16 -3
  321. package/dist/apiContracts-sG5b90Qa.js +0 -4451
  322. package/dist/assets/assets/channel-BOT7In0s.js +0 -2
  323. package/dist/assets/assets/chunk-XXDRQBXY-Dp9-QbR6.js +0 -2
  324. package/dist/assets/assets/flowDiagram-IUGLLWBU-B9D9uWwn.js +0 -1
  325. package/dist/assets/assets/index-BlPEYpuN.css +0 -1
  326. package/dist/assets/assets/index-DS9w_Q1B.js +0 -155
  327. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CyUKtW7v.js +0 -9
  328. package/dist/assets/plugins/assets/base-DyDpY0zD.css +0 -2
  329. package/dist/assets/plugins/chunks/po-web-runtime-4JiBsb_c.js +0 -1
  330. package/dist/assets/plugins/slots/approval.09e72f36-DwFz-UMh.js +0 -2
  331. package/dist/assets/plugins/slots/artifacts.50b639bb-CUtFC806.js +0 -1
  332. package/dist/assets/plugins/slots/builtin-tools.75108f21-B69GLfY_.js +0 -7
  333. package/dist/assets/plugins/slots/codemode.c58fb583-C0Gmb7_s.js +0 -9
  334. package/dist/assets/plugins/slots/domain.753f9f92-BTBYRLkE.js +0 -1
  335. package/dist/assets/plugins/slots/mcp.82cc1ff5-Ecacjn0a.js +0 -109
  336. package/dist/assets/plugins/slots/profile.ab16dcec-DIVXNHmh.js +0 -1
  337. package/dist/assets/plugins/slots/skill.62a0a1b3-BNr7DmPH.js +0 -4
  338. package/dist/backgroundWork-CSpsJ-Rg.js +0 -25
  339. package/dist/contextProjection-DDIQRgN4.js +0 -188
  340. package/dist/extensionFile-CacKVegY.js +0 -409
  341. package/dist/harnessState-gmzJcPGt.js +0 -88
  342. package/dist/harnessStore-Ch6hdYYe.js +0 -1
  343. package/dist/index.edge-BgSx_gRO.js +0 -45
  344. package/dist/majorModes-CCnwAjfF.js +0 -333
  345. package/dist/majorModes-DNQbxkpt.js +0 -1
  346. package/dist/piSettings-B6fsgIBA.js +0 -1
  347. package/dist/platform-Bs2_X_dK.js +0 -16
  348. package/dist/platformFiles-CCGujP9o.js +0 -39
  349. package/dist/server-5hLs7M43.js +0 -656
  350. package/dist/server-B3iqBHOP.js +0 -118
  351. package/dist/server-Dv0EKLwc.js +0 -108
  352. package/dist/server-Y5A21sJf.js +0 -591
  353. package/dist/server-a1K226XK.js +0 -279
  354. package/dist/serverPlugin-DUc4gGep.js +0 -7279
  355. package/dist/value-Bd477RDX.js +0 -2247
@@ -1,591 +0,0 @@
1
- import { $t as Optional, Ct as Union, Ft as Literal, It as Integer, Jn as BACKGROUND_CONTEXT, Rt as Boolean$1, Tt as String$1, Xn as withAbortSignal, Yt as Unknown, Zt as _Object_, c as nodeHost, f as getOrThrow, in as _Array_, it as requirePoFs, o as poHomeDirectory, q as composeServerProviderOverrides } from "./serverPlugin-DUc4gGep.js";
2
- import "./value-Bd477RDX.js";
3
- import { r as removePath } from "./platformFiles-CCGujP9o.js";
4
- import { c as defineRoute, f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks } from "./extensionFile-CacKVegY.js";
5
- import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
6
- import "./platform-Bs2_X_dK.js";
7
- import "./layeredConfig-xmTHGrw8.js";
8
- import "./piSettings-B6fsgIBA.js";
9
- import { a as expandDomainNames, n as loadDomainsAsync, o as isRemotePluginSource, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-B6Ae4swm.js";
10
- import { t as loadHarnessStateAsync } from "./harnessStore-Ccbia9_u.js";
11
- import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-CFVDmyGm.js";
12
- import "./harnessStore-Ch6hdYYe.js";
13
- import { r as PO_USER_MCP_CONFIG_FILE, t as PO_MCP_PROJECTION_RESOLVER_SERVICE } from "./mcpProjection-BXiECnW0.js";
14
- //#region ../../foundations/po-domain/src/services/mcpFilter/core.ts
15
- /**
16
- * Unions the mcp allowlists of the selected domains in a loaded manifest.
17
- *
18
- * Returns undefined when any selected domain omits `mcp`, which means "give me
19
- * everything". Filtering only kicks in once every selected domain has opted in,
20
- * so a domain that has not been migrated yet cannot silently lose its tools.
21
- */
22
- function mcpAllowlistOf(manifest, domainNames) {
23
- const expanded = expandDomainNames(manifest, domainNames);
24
- if (expanded.length === 0) return void 0;
25
- const servers = /* @__PURE__ */ new Set();
26
- const proxy = /* @__PURE__ */ new Set();
27
- for (const name of expanded) {
28
- const allowlist = manifest.domains[name]?.mcp;
29
- if (!allowlist) return void 0;
30
- for (const server of allowlist.servers ?? []) servers.add(server);
31
- for (const upstream of allowlist.proxy ?? []) proxy.add(upstream);
32
- }
33
- return {
34
- servers: [...servers],
35
- proxy: [...proxy]
36
- };
37
- }
38
- /** `resolveMcpAllowlist` over an injected FileSystem. */
39
- async function resolveMcpAllowlistAsync(fs, repoRoot, domainNames, context, homeDirectory) {
40
- return mcpAllowlistOf(await loadDomainsAsync(fs, repoRoot, context, homeDirectory), domainNames);
41
- }
42
- //#endregion
43
- //#region ../../foundations/po-domain/src/services/pluginMaterializer/index.edge.ts
44
- /**
45
- * Local plugin entries pass through unchanged. Remote entries need git or upm
46
- * on the host plus an exclusive-create install marker, so they fail clearly.
47
- */
48
- async function materializePluginEntries(entries, _options = {}) {
49
- return entries.map((entry) => {
50
- if (entry.source && isRemotePluginSource(entry.source)) throw new Error(`Remote plugin ${entry.name ?? entry.directory} cannot be installed on the edge: installing git or npm plugins needs the Node host.`);
51
- return entry;
52
- });
53
- }
54
- //#endregion
55
- //#region ../../foundations/po-domain/src/services/resourceCollector/index.edge.ts
56
- /** Resource staging copies plugin trees under POSIX modes and a home-scoped manifest cache; M1 keeps it on Node. */
57
- function nodeOnly(name) {
58
- throw new Error(`${name} is not available on the edge: plugin resource staging needs the Node host.`);
59
- }
60
- async function stageMcpResources(_repoRoot, _plugins, _options) {
61
- return nodeOnly("stageMcpResources");
62
- }
63
- //#endregion
64
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/_lib/domainServerResources.ts
65
- /** The optional plugin folder of reusable code-mode scripts. */
66
- const CODEMODE_FOLDER = "codemode";
67
- /**
68
- * Retain valid domains behind selection conditions; a broken neighbor must not prevent startup.
69
- * Also finds each plugin's `codemode/` folder; code mode shows only the session's active domains.
70
- */
71
- async function domainServerResources(context, fs, io) {
72
- const scripts = [];
73
- const home = context.environment.HOME ?? nodeHost.homeDirectory();
74
- for (const domain of await listDomainNamesAsync(fs, context.repoRoot, io, home)) try {
75
- const plugins = await materializePluginEntries(await resolvePluginEntriesAsync(fs, context.repoRoot, [domain], [], io, home));
76
- for (const plugin of plugins) {
77
- const directory = `${plugin.directory}/${CODEMODE_FOLDER}`;
78
- if ((await fs.listDir(directory, io)).ok) scripts.push({
79
- domain,
80
- directory
81
- });
82
- }
83
- } catch (error) {
84
- await context.client.notify({
85
- title: `Po domain ${domain} unavailable`,
86
- body: error instanceof Error ? error.message : String(error),
87
- level: "warning"
88
- });
89
- }
90
- return { scripts };
91
- }
92
- //#endregion
93
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/root.server.ts
94
- var root_server_default = defineRoot(async ({ agent, context: root, signal }) => {
95
- const services = [];
96
- if (!agent) return {
97
- value: { resources: [] },
98
- services
99
- };
100
- const fs = requirePoFs(root);
101
- const io = withAbortSignal(signal, BACKGROUND_CONTEXT);
102
- const execution = agent.context;
103
- const home = execution.environment.HOME ?? nodeHost.homeDirectory();
104
- const resolver = { async resolve(domains) {
105
- const { state } = await loadHarnessStateAsync(fs, { ...execution.environment }, io);
106
- const directory = getOrThrow(await fs.createTempDir("po-domain-mcp-", io));
107
- try {
108
- const plugins = await materializePluginEntries(await resolvePluginEntriesAsync(fs, execution.repoRoot, [...domains], [...state.pluginDirectories], io, home));
109
- return {
110
- projection: (await stageMcpResources(execution.repoRoot, plugins, {
111
- enabled: true,
112
- temporaryDirectory: directory,
113
- mcpAllowlist: await resolveMcpAllowlistAsync(fs, execution.repoRoot, [...domains], io),
114
- userMcpConfigPath: `${poHomeDirectory(home, execution.environment)}/${PO_USER_MCP_CONFIG_FILE}`
115
- })).mcpProjection,
116
- cleanup: () => removePath(fs, directory, BACKGROUND_CONTEXT)
117
- };
118
- } catch (error) {
119
- await removePath(fs, directory, BACKGROUND_CONTEXT);
120
- throw error;
121
- }
122
- } };
123
- services.push((cordis) => {
124
- cordis.plugin((provider) => {
125
- provider.provide(PO_MCP_PROJECTION_RESOLVER_SERVICE, resolver);
126
- });
127
- });
128
- const { scripts } = await domainServerResources(agent.context, fs, io);
129
- if (scripts.length > 0) root.inject([PO_CODEMODE_SERVICE], (scoped) => {
130
- const codemode = readPoCodemode(scoped);
131
- const registrations = scripts.map((entry) => codemode?.registerScripts("@agimon-ai/po-domain", entry));
132
- return () => {
133
- for (const registration of registrations) registration?.dispose();
134
- };
135
- });
136
- return {
137
- value: { resources: [] },
138
- services
139
- };
140
- });
141
- //#endregion
142
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/api/domains/route.server.ts
143
- var route_server_default = defineRoute(({ agent }) => ({
144
- basePath: "domains",
145
- start: () => ({
146
- fetch(request) {
147
- if (new URL(request.url).pathname !== "/current") return Response.json({ error: "Not found" }, { status: 404 });
148
- if (request.method !== "GET") return Response.json({ error: "Method not allowed" }, {
149
- status: 405,
150
- headers: { Allow: "GET" }
151
- });
152
- if (!agent) return Response.json({ error: "Session agent unavailable" }, { status: 404 });
153
- const selection = agent.context.selection;
154
- return Response.json({ domains: selection.domains });
155
- },
156
- close() {}
157
- })
158
- }));
159
- //#endregion
160
- //#region ../../core/po-core/src/schemas/skills.ts
161
- /**
162
- * The custom session entry journaled once Pi has rebuilt its resource catalog
163
- * for a reload.
164
- *
165
- * A reload is the only thing that changes which skills exist, and Pi publishes
166
- * nothing for it: the whole wire record of a `/domains` switch is the single
167
- * `response:prompt` for the command that triggered it. An RPC client therefore
168
- * has no way to learn that the `get_commands` answer it cached, which is what
169
- * the web cockpit completes `$` from, now describes the previous domains.
170
- *
171
- * This entry is that missing signal. It rides Pi's `entry_appended` frames the
172
- * way the minor-mode catalog projection does, so it needs no new protocol, and
173
- * a custom entry with no registered renderer is invisible in the TUI.
174
- */
175
- const PO_RESOURCE_CATALOG_ENTRY_TYPE = "po-resource-catalog";
176
- const SkillSourceNameSchema = String$1({
177
- minLength: 1,
178
- maxLength: 128,
179
- pattern: "^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$"
180
- });
181
- _Object_({
182
- source: SkillSourceNameSchema,
183
- /** Absolute directories, the same ones the source hands `resources_discover`. */
184
- directories: _Array_(String$1({ minLength: 1 }))
185
- }, { additionalProperties: false });
186
- const VOICE_TOOL_MAX_TIMEOUT_MS = 3e4;
187
- const SAFE_IDENTIFIER = /^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$/u;
188
- const SAFE_NAME = /^[a-z][a-z0-9_:-]*$/u;
189
- const MAX_ORDER = 1e3;
190
- const VOICE_TOOL_ERROR_CODE = {
191
- hostUnavailable: "VOICE_TOOL_HOST_UNAVAILABLE",
192
- inactive: "VOICE_TOOL_INACTIVE",
193
- staleSession: "VOICE_TOOL_STALE_SESSION",
194
- staleCatalog: "VOICE_TOOL_STALE_CATALOG",
195
- notFound: "VOICE_TOOL_NOT_FOUND",
196
- nameConflict: "VOICE_TOOL_NAME_CONFLICT",
197
- invalidInput: "VOICE_TOOL_INVALID_INPUT",
198
- invalidResult: "VOICE_TOOL_INVALID_RESULT",
199
- executionFailed: "VOICE_TOOL_EXECUTION_FAILED",
200
- timeout: "VOICE_TOOL_TIMEOUT",
201
- aborted: "VOICE_TOOL_ABORTED",
202
- cancelled: "VOICE_TOOL_CANCELLED",
203
- registrationDisposed: "VOICE_TOOL_REGISTRATION_DISPOSED",
204
- sessionShutdown: "VOICE_TOOL_SESSION_SHUTDOWN",
205
- batchStopped: "VOICE_TOOL_BATCH_STOPPED",
206
- reloadQueued: "VOICE_TOOL_RELOAD_QUEUED",
207
- invalidRequest: "VOICE_TOOL_INVALID_REQUEST"
208
- };
209
- VOICE_TOOL_ERROR_CODE.hostUnavailable;
210
- VOICE_TOOL_ERROR_CODE.inactive;
211
- VOICE_TOOL_ERROR_CODE.staleSession;
212
- VOICE_TOOL_ERROR_CODE.staleCatalog;
213
- VOICE_TOOL_ERROR_CODE.notFound;
214
- VOICE_TOOL_ERROR_CODE.nameConflict;
215
- VOICE_TOOL_ERROR_CODE.invalidInput;
216
- VOICE_TOOL_ERROR_CODE.invalidResult;
217
- VOICE_TOOL_ERROR_CODE.timeout;
218
- VOICE_TOOL_ERROR_CODE.aborted;
219
- VOICE_TOOL_ERROR_CODE.executionFailed;
220
- VOICE_TOOL_ERROR_CODE.batchStopped;
221
- _Object_({
222
- source: String$1({
223
- minLength: 1,
224
- maxLength: 128,
225
- pattern: SAFE_IDENTIFIER.source
226
- }),
227
- id: String$1({
228
- minLength: 1,
229
- maxLength: 128,
230
- pattern: SAFE_IDENTIFIER.source
231
- }),
232
- name: String$1({
233
- minLength: 1,
234
- maxLength: 128,
235
- pattern: SAFE_NAME.source
236
- }),
237
- label: String$1({
238
- minLength: 1,
239
- maxLength: 96
240
- }),
241
- description: String$1({
242
- minLength: 1,
243
- maxLength: 240
244
- }),
245
- order: Integer({
246
- minimum: 0,
247
- maximum: MAX_ORDER
248
- }),
249
- inputSchema: Unknown(),
250
- resultSchema: Unknown(),
251
- timeoutMs: Optional(Integer({
252
- minimum: 1,
253
- maximum: VOICE_TOOL_MAX_TIMEOUT_MS
254
- }))
255
- }, { additionalProperties: false });
256
- const VoiceToolBatchCallSchema = _Object_({
257
- name: String$1({
258
- minLength: 1,
259
- maxLength: 128,
260
- pattern: SAFE_NAME.source,
261
- description: "Capability name exactly as describe_voice_tools reported it."
262
- }),
263
- input: Unknown({ description: "Arguments for this capability, shaped by the input_schema that describe_voice_tools returns when called with names. Pass an empty object for a capability that takes none." })
264
- }, { additionalProperties: false });
265
- _Object_({ names: Optional(_Array_(String$1({
266
- minLength: 1,
267
- maxLength: 128,
268
- pattern: SAFE_NAME.source
269
- }), {
270
- maxItems: 16,
271
- description: "Capabilities to describe in full, including their input schemas. Omit to list every registered capability by name and description only."
272
- })) }, { additionalProperties: false });
273
- const VoiceToolCatalogTokenSchema = String$1({
274
- minLength: 1,
275
- maxLength: 512,
276
- description: "Opaque catalog token from the most recent describe_voice_tools result, copied verbatim. It is invalidated whenever a capability registers or deregisters and whenever autonomous voice is activated or deactivated."
277
- });
278
- _Object_({
279
- catalogToken: VoiceToolCatalogTokenSchema,
280
- calls: _Array_(VoiceToolBatchCallSchema, {
281
- minItems: 1,
282
- maxItems: 16,
283
- description: "Capability calls to run in this order. All of them are validated before any of them run, so a single invalid call rejects the whole batch."
284
- })
285
- }, { additionalProperties: false });
286
- const VoiceToolErrorCodeSchema = Union([
287
- Literal("VOICE_TOOL_HOST_UNAVAILABLE"),
288
- Literal("VOICE_TOOL_INACTIVE"),
289
- Literal("VOICE_TOOL_STALE_SESSION"),
290
- Literal("VOICE_TOOL_STALE_CATALOG"),
291
- Literal("VOICE_TOOL_NOT_FOUND"),
292
- Literal("VOICE_TOOL_NAME_CONFLICT"),
293
- Literal("VOICE_TOOL_INVALID_INPUT"),
294
- Literal("VOICE_TOOL_INVALID_RESULT"),
295
- Literal("VOICE_TOOL_EXECUTION_FAILED"),
296
- Literal("VOICE_TOOL_TIMEOUT"),
297
- Literal("VOICE_TOOL_ABORTED"),
298
- Literal("VOICE_TOOL_CANCELLED"),
299
- Literal("VOICE_TOOL_REGISTRATION_DISPOSED"),
300
- Literal("VOICE_TOOL_SESSION_SHUTDOWN"),
301
- Literal("VOICE_TOOL_BATCH_STOPPED"),
302
- Literal("VOICE_TOOL_RELOAD_QUEUED"),
303
- Literal("VOICE_TOOL_INVALID_REQUEST")
304
- ]);
305
- const VoiceToolErrorSchema = _Object_({
306
- code: VoiceToolErrorCodeSchema,
307
- message: String$1({
308
- minLength: 1,
309
- maxLength: 240
310
- }),
311
- retryable: Optional(Boolean$1())
312
- }, { additionalProperties: false });
313
- const VoiceToolConflictDiagnosticSchema = _Object_({
314
- name: String$1({
315
- minLength: 1,
316
- maxLength: 128
317
- }),
318
- message: String$1({
319
- minLength: 1,
320
- maxLength: 240
321
- }),
322
- claims: _Array_(_Object_({
323
- source: String$1({
324
- minLength: 1,
325
- maxLength: 128
326
- }),
327
- id: String$1({
328
- minLength: 1,
329
- maxLength: 128
330
- })
331
- }, { additionalProperties: false }), {
332
- minItems: 2,
333
- maxItems: 16
334
- })
335
- }, { additionalProperties: false });
336
- const VoiceToolCatalogEntrySchema = _Object_({
337
- source: String$1({
338
- minLength: 1,
339
- maxLength: 128
340
- }),
341
- id: String$1({
342
- minLength: 1,
343
- maxLength: 128
344
- }),
345
- name: String$1({
346
- minLength: 1,
347
- maxLength: 128
348
- }),
349
- label: String$1({
350
- minLength: 1,
351
- maxLength: 96
352
- }),
353
- description: String$1({
354
- minLength: 1,
355
- maxLength: 240
356
- }),
357
- order: Integer({
358
- minimum: 0,
359
- maximum: MAX_ORDER
360
- }),
361
- inputSchema: Unknown(),
362
- enabled: Boolean$1()
363
- }, { additionalProperties: false });
364
- _Object_({
365
- hostGeneration: String$1({
366
- minLength: 1,
367
- maxLength: 256
368
- }),
369
- catalogRevision: Integer({ minimum: 0 }),
370
- catalogToken: VoiceToolCatalogTokenSchema,
371
- tools: _Array_(VoiceToolCatalogEntrySchema, { maxItems: 128 }),
372
- conflicts: _Array_(VoiceToolConflictDiagnosticSchema, { maxItems: 128 }),
373
- unknownNames: _Array_(String$1({
374
- minLength: 1,
375
- maxLength: 128
376
- }), { maxItems: 16 })
377
- }, { additionalProperties: false });
378
- const VoiceToolBatchItemResultSchema = _Object_({
379
- index: Integer({
380
- minimum: 0,
381
- maximum: 16
382
- }),
383
- name: String$1({
384
- minLength: 1,
385
- maxLength: 128
386
- }),
387
- status: Union([
388
- Literal("completed"),
389
- Literal("failed"),
390
- Literal("cancelled"),
391
- Literal("not_executed"),
392
- Literal("preflight_failed")
393
- ]),
394
- result: Optional(Unknown()),
395
- error: Optional(VoiceToolErrorSchema)
396
- }, { additionalProperties: false });
397
- _Object_({
398
- status: Union([
399
- Literal("completed"),
400
- Literal("rejected"),
401
- Literal("cancelled"),
402
- Literal("stopped")
403
- ]),
404
- catalogToken: VoiceToolCatalogTokenSchema,
405
- results: _Array_(VoiceToolBatchItemResultSchema, { maxItems: 16 }),
406
- errors: Optional(_Array_(VoiceToolErrorSchema, { maxItems: 16 }))
407
- }, { additionalProperties: false });
408
- //#endregion
409
- //#region ../../foundations/po-domain/src/types/domains.ts
410
- /**
411
- * The only names a domain, an operation or a handoff token may carry.
412
- *
413
- * Selections arrive from the model and from the command line, and every one of
414
- * them ends up in a filesystem path or a process environment variable, so the
415
- * shape is constrained once here and reused by the schema and the validator.
416
- */
417
- const SAFE_DOMAIN_NAME = /^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$/u;
418
- //#endregion
419
- //#region ../../foundations/po-domain/src/services/domainText/index.ts
420
- const DOMAIN_SEPARATOR = ",";
421
- const DOMAIN_COMMAND = "domains";
422
- /** Splits the comma-separated argument the command and the autocomplete share. */
423
- function splitDomains(value) {
424
- return value.split(DOMAIN_SEPARATOR).map((item) => item.trim()).filter(Boolean);
425
- }
426
- function pickerTitle(listing) {
427
- return `Domains (active: ${listing.effective.join(", ") || "(none)"})`;
428
- }
429
- const MARK_ON = "[x]";
430
- const MARK_OFF = "[ ]";
431
- const OPTION_PREFIX = /^\[[ x]\] /;
432
- /**
433
- * Rows for a single-pick select where domains compose: each row shows the
434
- * membership it would flip, so a client without a multi-select still reaches
435
- * every set one toggle at a time.
436
- */
437
- function domainToggleOptions(listing) {
438
- const active = new Set(listing.effective);
439
- return listing.available.map((name) => `${active.has(name) ? MARK_ON : MARK_OFF} ${name}`);
440
- }
441
- /** The domain a toggle row names. */
442
- function toggleOptionDomain(option) {
443
- return option.replace(OPTION_PREFIX, "").trim();
444
- }
445
- /** The effective set with one domain flipped, order preserved for the rest. */
446
- function toggledDomains(effective, name) {
447
- return effective.includes(name) ? effective.filter((domain) => domain !== name) : [...effective, name];
448
- }
449
- /**
450
- * Deduplicates a requested selection and rejects anything unsafe.
451
- *
452
- * Bounded before the manifest is read, because a selection large enough to
453
- * matter comes from the model rather than from a person typing the command.
454
- */
455
- function normalizeDomainNames(values) {
456
- if (values.length > 32) throw new Error(`A maximum of 32 domains may be selected.`);
457
- const result = [];
458
- const seen = /* @__PURE__ */ new Set();
459
- for (const value of values) {
460
- const name = value.trim();
461
- if (!name || name.length > 128 || !SAFE_DOMAIN_NAME.test(name)) throw new Error(`Invalid domain name: ${value}`);
462
- if (seen.has(name)) continue;
463
- seen.add(name);
464
- result.push(name);
465
- }
466
- return result;
467
- }
468
- //#endregion
469
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/_lib/domainServerCommand.ts
470
- const DOMAIN_SELECTION_KIND = "po-domains-selection";
471
- const DOMAIN_SELECTION_VERSION = 1;
472
- /** Full-set web replies share the string transport with legacy single-toggle labels. */
473
- function domainSelectionReply(answer) {
474
- if (!answer.trimStart().startsWith("{")) return null;
475
- const reply = JSON.parse(answer);
476
- if (typeof reply !== "object" || reply === null || !("kind" in reply) || reply.kind !== DOMAIN_SELECTION_KIND || !("version" in reply) || reply.version !== DOMAIN_SELECTION_VERSION || !("domains" in reply) || !Array.isArray(reply.domains) || !reply.domains.every((name) => typeof name === "string")) throw new Error("Invalid domains selection reply");
477
- return reply.domains;
478
- }
479
- function createDomainServerCommand(host, fs) {
480
- return {
481
- name: DOMAIN_COMMAND,
482
- description: "Show or change the active Po domains.",
483
- async execute(args, execution) {
484
- const available = await listDomainNamesAsync(fs, execution.repoRoot, BACKGROUND_CONTEXT);
485
- let requested = splitDomains(args);
486
- let fullSet = false;
487
- if (requested.length === 0) {
488
- const listing = {
489
- active: [...execution.selection.domains],
490
- effective: [...execution.selection.domains],
491
- available
492
- };
493
- const selected = await execution.client.request({
494
- kind: "select",
495
- title: pickerTitle(listing),
496
- options: domainToggleOptions(listing).map((label) => ({
497
- label,
498
- value: label
499
- }))
500
- });
501
- if (typeof selected !== "string" || !selected) return;
502
- const domains = domainSelectionReply(selected);
503
- fullSet = domains !== null;
504
- requested = domains ?? toggledDomains(listing.effective, toggleOptionDomain(selected));
505
- }
506
- requested = normalizeDomainNames(requested);
507
- const unknown = requested.filter((name) => !available.includes(name));
508
- if (unknown.length > 0) throw new Error(`Unknown domain: ${unknown.join(", ")}`);
509
- if (fullSet) {
510
- const wanted = new Set(requested);
511
- const current = new Set(execution.selection.domains);
512
- requested = [...execution.selection.domains.filter((name) => wanted.has(name)), ...available.filter((name) => wanted.has(name) && !current.has(name))];
513
- }
514
- if (requested.length === execution.selection.domains.length && requested.every((name, index) => name === execution.selection.domains[index])) return;
515
- await host.changeSelection({
516
- axis: "domains",
517
- domains: requested
518
- });
519
- const projection = {
520
- version: 1,
521
- revision: Date.now()
522
- };
523
- await execution.session.appendCustomEntry(PO_RESOURCE_CATALOG_ENTRY_TYPE, projection);
524
- }
525
- };
526
- }
527
- //#endregion
528
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/command/domains.server.ts
529
- var domains_server_default$1 = defineRoutedContribution(({ agent, context }) => agent ? createDomainServerCommand(agent, requirePoFs(context)) : void 0, { cardinality: "optional" });
530
- //#endregion
531
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/resource/domains.server.ts
532
- var domains_server_default = defineRoutedContribution((context) => context.root.resources, { cardinality: "many" });
533
- //#endregion
534
- //#region ../../foundations/po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts
535
- var help_how_to_domain_server_default = defineResource({
536
- name: "help-how-to-domain",
537
- description: "Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.",
538
- when: {
539
- state: { "minor-mode": "help" },
540
- attribution: {
541
- kind: "minor",
542
- mode: "help"
543
- }
544
- },
545
- kind: "skill",
546
- path: packageResourcePath("bundle:///po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts", "src/prompts/help-how-to-domain/SKILL.md"),
547
- read: () => readPackageResource("bundle:///po-domain/src/extensions/workspaces/sessions/(backend)/resource/help-how-to-domain.server.ts", "src/prompts/help-how-to-domain/SKILL.md")
548
- });
549
- //#endregion
550
- //#region ../../foundations/po-domain/generated/server.ts
551
- const at = (value, context) => typeof value === "function" ? value(context) : value;
552
- const many = (value, context) => {
553
- const resolved = typeof value === "function" ? value(context) : value;
554
- return Array.isArray(resolved) ? resolved : [resolved];
555
- };
556
- /* v8 ignore next -- generated normalization branch */
557
- const defined = (values) => values.filter((value) => value !== void 0);
558
- const via = (identity, value) => value === void 0 ? void 0 : {
559
- ...identity,
560
- ...value
561
- };
562
- const serverPlugin = defineServerPlugin({
563
- name: "@agimon-ai/po-domain",
564
- providerOverrides: composeServerProviderOverrides(root_server_default),
565
- injects: composeRootInjects({ session: [root_server_default] }),
566
- session: async (context) => {
567
- const scopeSession = await context.scopeRoot("session", root_server_default, context);
568
- const contextSession = {
569
- ...context,
570
- root: scopeSession.value
571
- };
572
- return {
573
- ...composeRootHooks(scopeSession),
574
- get api() {
575
- return [at(route_server_default, contextSession)];
576
- },
577
- get commands() {
578
- return defined([via({ name: "domains" }, at(domains_server_default$1, contextSession))]);
579
- },
580
- get resources() {
581
- return [...many(domains_server_default, contextSession), at(help_how_to_domain_server_default, contextSession)];
582
- },
583
- services: [...scopeSession.services ?? []],
584
- get activities() {
585
- return [...scopeSession.activities ?? []];
586
- }
587
- };
588
- }
589
- });
590
- //#endregion
591
- export { serverPlugin as default, serverPlugin };