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

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-CfrVwzvL.js} +2 -2
  15. package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C85p4OYZ.js → abnfDiagram-WEYOIA3C-B80H4Cm4.js} +2 -2
  16. package/dist/assets/assets/{architecture-WOLXFQ4H-Bt_NOdwE.js → architecture-WOLXFQ4H-Dr4hXaql.js} +1 -1
  17. package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DzH1GKMm.js → architectureDiagram-ZHVYKT53-DWyt7oXu.js} +2 -2
  18. package/dist/assets/assets/{blockDiagram-RJAE7QA3-BmWU34j3.js → blockDiagram-RJAE7QA3-OxNTLdmi.js} +2 -2
  19. package/dist/assets/assets/{c4Diagram-XDPPPE54-BpGOdOuo.js → c4Diagram-XDPPPE54-B4YtcH0s.js} +2 -2
  20. package/dist/assets/assets/channel-bXj00dGj.js +2 -0
  21. package/dist/assets/assets/{chunk-2E7WHVMD-AycP1cXU.js → chunk-2E7WHVMD-CD6FFMOX.js} +2 -2
  22. package/dist/assets/assets/{chunk-4EMNKR2T-DX-DrZzc.js → chunk-4EMNKR2T-CEIoX5oo.js} +2 -2
  23. package/dist/assets/assets/{chunk-55XCU76K-BdwnLWzI.js → chunk-55XCU76K-CD3t0IJi.js} +2 -2
  24. package/dist/assets/assets/{chunk-7S6XSTFO-D-RBAwAn.js → chunk-7S6XSTFO-Cyt75UCF.js} +2 -2
  25. package/dist/assets/assets/{chunk-AQDTSKZB-CCxNNhKs.js → chunk-AQDTSKZB-DRtqYBj9.js} +2 -2
  26. package/dist/assets/assets/{chunk-DSNLSHJZ-D2hGwWm1.js → chunk-DSNLSHJZ-C8Fx2F8s.js} +2 -2
  27. package/dist/assets/assets/{chunk-HAGFOTED-BPi-cqGh.js → chunk-HAGFOTED-wOLWRRnd.js} +2 -2
  28. package/dist/assets/assets/{chunk-HNE4Q36P-D-r1ChHT.js → chunk-HNE4Q36P-CurJg4Hf.js} +2 -2
  29. package/dist/assets/assets/{chunk-NQOKRVIF-RgmZCAdn.js → chunk-NQOKRVIF-Dzcc5nOG.js} +2 -2
  30. package/dist/assets/assets/{chunk-UHW7PFBP-B-Hul-rZ.js → chunk-UHW7PFBP-B_ULFf2h.js} +2 -2
  31. package/dist/assets/assets/{chunk-VQ5W62QI-D1zlXCt8.js → chunk-VQ5W62QI-DH0VY4_p.js} +2 -2
  32. package/dist/assets/assets/{chunk-WQQL4CDK-CtjIbVJn.js → chunk-WQQL4CDK-DNxfLyXM.js} +2 -2
  33. package/dist/assets/assets/chunk-XXDRQBXY-B2bMWgN9.js +2 -0
  34. package/dist/assets/assets/{chunk-YZO67HFG-BQOgXG99.js → chunk-YZO67HFG-COuMUh9U.js} +2 -2
  35. package/dist/assets/assets/{chunk-ZAUX2LTX-CsDDxmqv.js → chunk-ZAUX2LTX-BJrCnubF.js} +2 -2
  36. package/dist/assets/assets/{chunk-ZCHMQSOR-deyEYMjx.js → chunk-ZCHMQSOR-D1lFKPtk.js} +2 -2
  37. package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DVJHeFlq.js → classDiagram-v2-4MYWR3UA-DfZIbyVL.js} +2 -2
  38. package/dist/assets/assets/{cose-bilkent-JH36ORCC-ipcN28Fw.js → cose-bilkent-JH36ORCC-CpGhv9_S.js} +2 -2
  39. package/dist/assets/assets/{cynefin-EF2NZ3EQ-s9ZkPF55.js → cynefin-EF2NZ3EQ-Cxdc6nQl.js} +1 -1
  40. package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Ksr2qjsS.js → cynefinDiagram-WF24UDRP-qoj0w3lp.js} +2 -2
  41. package/dist/assets/assets/{dagre-NK4GIZVX-2_Wl-XEW.js → dagre-NK4GIZVX-DL6QbNDS.js} +2 -2
  42. package/dist/assets/assets/{diagram-CBK3MWTC-C7PeyT7l.js → diagram-CBK3MWTC-CJB3jq1_.js} +2 -2
  43. package/dist/assets/assets/{diagram-I5XIIV2D-DPYzeKdj.js → diagram-I5XIIV2D-4cPOxCxF.js} +2 -2
  44. package/dist/assets/assets/{diagram-ODIL2UCW-DHw1cAmn.js → diagram-ODIL2UCW-BG3-jAxE.js} +2 -2
  45. package/dist/assets/assets/{diagram-PFBEJUXE-C2wA8i-1.js → diagram-PFBEJUXE-Bx8dFaXj.js} +2 -2
  46. package/dist/assets/assets/{diagram-RJA3I4VV-tM3moCIs.js → diagram-RJA3I4VV-CUUHND91.js} +2 -2
  47. package/dist/assets/assets/{diagram-TYUNFSNR-CInyJxF7.js → diagram-TYUNFSNR-BDMoN-kr.js} +2 -2
  48. package/dist/assets/assets/{dist-BDqjNLTC.js → dist-5AxNm-uy.js} +2 -2
  49. package/dist/assets/assets/{dist-hpZIQBl4.js → dist-9_Rmyj2I.js} +2 -2
  50. package/dist/assets/assets/{dist-DSLprmec.js → dist-BE3CLKv4.js} +2 -2
  51. package/dist/assets/assets/{dist-BASEd5LC.js → dist-BfNCu-7x.js} +2 -2
  52. package/dist/assets/assets/{dist-BuYBvf4F.js → dist-BjI0b36Z.js} +2 -2
  53. package/dist/assets/assets/{dist-DUS0U_ge.js → dist-CM7b5P9a.js} +2 -2
  54. package/dist/assets/assets/{dist-CeOy6PjJ.js → dist-Ccxb9U1G.js} +2 -2
  55. package/dist/assets/assets/{dist-ChXoRSS6.js → dist-CjCWP21A.js} +2 -2
  56. package/dist/assets/assets/{dist-07dRlnp1.js → dist-DSTAktnR.js} +2 -2
  57. package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-4nZgqaSt.js → ebnfDiagram-V4P3TTPT-BivOMXZb.js} +2 -2
  58. package/dist/assets/assets/{elk-QONTBCTQ-nFh54c1Q.js → elk-QONTBCTQ-CrJ1Qpy_.js} +2 -2
  59. package/dist/assets/assets/{erDiagram-KYQIGQAA-CIQ0_IgZ.js → erDiagram-KYQIGQAA-w9Bqp4sV.js} +2 -2
  60. package/dist/assets/assets/{eventmodeling-K75KTNOO-Cw4BlbYP.js → eventmodeling-K75KTNOO-CBjFM3kV.js} +1 -1
  61. package/dist/assets/assets/flowDiagram-IUGLLWBU-C6Fnfgm0.js +1 -0
  62. package/dist/assets/assets/{ganttDiagram-R7GPNTJY-C97qoUpX.js → ganttDiagram-R7GPNTJY-CsWtGaqD.js} +2 -2
  63. package/dist/assets/assets/{gitGraph-VSP46ZUC-B8HWVkEX.js → gitGraph-VSP46ZUC-DsBSV9_h.js} +1 -1
  64. package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B4Js56_8.js → gitGraphDiagram-PDYL7XHY-D5GxuYHW.js} +2 -2
  65. package/dist/assets/assets/index-CNDyKUDF.css +1 -0
  66. package/dist/assets/assets/index-DWDYnZsq.js +256 -0
  67. package/dist/assets/assets/{info-OHQRW6UA-A4qythhA.js → info-OHQRW6UA-C7x5dSJu.js} +1 -1
  68. package/dist/assets/assets/{infoDiagram-MVDRKAX5-BSNwG9yI.js → infoDiagram-MVDRKAX5-CwpI-uAa.js} +2 -2
  69. package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-D4gU-3RA.js → ishikawaDiagram-HPEHV2GE-DAa7J5G6.js} +2 -2
  70. package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CxxDrw7o.js → journeyDiagram-BOSHW7O7-BmiZnxE_.js} +2 -2
  71. package/dist/assets/assets/{kanban-definition-FNSA4HC5-DUxQv3v0.js → kanban-definition-FNSA4HC5-DUR_mA3L.js} +2 -2
  72. package/dist/assets/assets/{line-BKODXUmk.js → line-DHY49wSg.js} +2 -2
  73. package/dist/assets/assets/{linear-Cm5uyUun.js → linear-pTo-a9xT.js} +2 -2
  74. package/dist/assets/assets/{mermaid-parser.core-CYst2kCg.js → mermaid-parser.core-DMg3hN3T.js} +4 -4
  75. package/dist/assets/assets/{mermaid.core-B4Qq8SMa.js → mermaid.core-DKtPCltA.js} +5 -5
  76. package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZFvUTIM.js → mindmap-definition-6OY57UG3-DwTkFbnV.js} +2 -2
  77. package/dist/assets/assets/{packet-JDAUHWVQ-DZMlaiuy.js → packet-JDAUHWVQ-Tu9TrQ1x.js} +1 -1
  78. package/dist/assets/assets/{pegDiagram-ECIUJNBX-BjM668dT.js → pegDiagram-ECIUJNBX-B7My4tsz.js} +2 -2
  79. package/dist/assets/assets/{pie-XZMESJXO-CmpJ6vb8.js → pie-XZMESJXO-QPQm5Gdx.js} +1 -1
  80. package/dist/assets/assets/{pieDiagram-GNMPY74T-BCA9DCDe.js → pieDiagram-GNMPY74T-Bv-zAD_z.js} +2 -2
  81. package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CUnpC-Rl.js → quadrantDiagram-D57K4MC3-HTjoGQPd.js} +2 -2
  82. package/dist/assets/assets/{radar-ABXABTNO-C9x42-KP.js → radar-ABXABTNO-LDBlEoFo.js} +1 -1
  83. package/dist/assets/assets/{railroad-I3PHUGI6-CLvHKrsC.js → railroad-I3PHUGI6-Dy3_ymgZ.js} +1 -1
  84. package/dist/assets/assets/{railroad-abnf-LNEFI6M7-B0LGF3gx.js → railroad-abnf-LNEFI6M7-QLVvYs6e.js} +1 -1
  85. package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-SKnYapAj.js → railroad-ebnf-DWYD2UWJ-CFRlv9a8.js} +1 -1
  86. package/dist/assets/assets/{railroad-peg-JR7BVNR7-wsUpPloN.js → railroad-peg-JR7BVNR7-BOlq3d9c.js} +1 -1
  87. package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BYJtosKO.js → railroadDiagram-Y72NRBL7-Chg32HoU.js} +2 -2
  88. package/dist/assets/assets/{requirementDiagram-EQYSW5RA-YYdoWMnl.js → requirementDiagram-EQYSW5RA-VenIs_eg.js} +2 -2
  89. package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DtZyCTdM.js → sankeyDiagram-SY24JHO5-BdByqMKF.js} +2 -2
  90. package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BPE8f413.js → sequenceDiagram-BLEHNHQU-D3Do4GJE.js} +2 -2
  91. package/dist/assets/assets/{src-BNTOLq2G.js → src-DmfN-DA-.js} +2 -2
  92. package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-9f8Ow4Fl.js → stateDiagram-v2-A6IESKWZ-CZkRbPlf.js} +2 -2
  93. package/dist/assets/assets/{swimlanes-B3ENRKFQ-DdAEbxGp.js → swimlanes-B3ENRKFQ-DRTdF9AF.js} +2 -2
  94. package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BYr_4JUb.js +9 -0
  95. package/dist/assets/assets/{timeline-definition-JXYKGLGB-DJNGd2mU.js → timeline-definition-JXYKGLGB-BVcuws_M.js} +2 -2
  96. package/dist/assets/assets/{treeView-D4JQ5SDB-BHONoCCw.js → treeView-D4JQ5SDB-BLtOJGqO.js} +1 -1
  97. package/dist/assets/assets/{treemap-SAJKECNS-pOaYkxq7.js → treemap-SAJKECNS-Dn3BWJ4v.js} +1 -1
  98. package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C3eDYL9v.js → usecaseDiagram-WPOLBNNX-CBExIKDY.js} +2 -2
  99. package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CJi1xfsR.js → vennDiagram-Q3Y3IDCW-C6FIx2L4.js} +2 -2
  100. package/dist/assets/assets/{wardley-7MLQ67FV-CEy4w7Ir.js → wardley-7MLQ67FV-Cjj2xSBp.js} +1 -1
  101. package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DfdLMMpN.js → wardleyDiagram-IVAIDKWA-sQPCBCFK.js} +2 -2
  102. package/dist/assets/assets/{webpack-v8XGbQTa.js → webpack-DDCA0aDL.js} +2 -2
  103. package/dist/assets/assets/{xychartDiagram-4URNHDU4-Aw-Ix4uC.js → xychartDiagram-4URNHDU4-bZ4rifSw.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-D8FIos2q.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.09e72f36-DxS_uibk.js +2 -0
  124. package/dist/assets/plugins/slots/artifacts.50b639bb-Cp37TAkd.js +1 -0
  125. package/dist/assets/plugins/slots/author.ea449ace-Ds9Y-tjN.js +93 -0
  126. package/dist/assets/plugins/slots/autocompact.6f428144-CDZpN7I7.js +1 -0
  127. package/dist/assets/plugins/slots/backdrop-bamboo.6e4c928d-qbifuMc6.js +1 -0
  128. package/dist/assets/plugins/slots/browse.fa1f1a50-CVYvo1M5.js +1 -0
  129. package/dist/assets/plugins/slots/builtin-tools.75108f21-Cq1ljoL-.js +7 -0
  130. package/dist/assets/plugins/slots/calendar.d8b70190-BBjpOs1v.js +2 -0
  131. package/dist/assets/plugins/slots/codemode.c58fb583-DOR6OR7R.js +11 -0
  132. package/dist/assets/plugins/slots/domain.753f9f92-CJrXxig9.js +1 -0
  133. package/dist/assets/plugins/slots/edit.804fec90-BFF7_xN9.js +7 -0
  134. package/dist/assets/plugins/slots/files.66ffc636-CzOlZrRm.js +2 -0
  135. package/dist/assets/plugins/slots/goal.45dffa01-BtQBp3sw.js +1 -0
  136. package/dist/assets/plugins/slots/grep.98262cff-9bUDfjyT.js +1 -0
  137. package/dist/assets/plugins/slots/help.5fbd20f7-B4-y6gYK.js +3 -0
  138. package/dist/assets/plugins/slots/log.cb964209-BRPa3cVs.js +4 -0
  139. package/dist/assets/plugins/slots/mcp.82cc1ff5-CFtzPkPC.js +55 -0
  140. package/dist/assets/plugins/slots/plan.3852ba52-CH59Ff49.js +3 -0
  141. package/dist/assets/plugins/slots/profile.ab16dcec-0e9fWWyE.js +1 -0
  142. package/dist/assets/plugins/slots/prompts.ae48c07a-BTqYnBX5.js +38 -0
  143. package/dist/assets/plugins/slots/read.4560591a-C7fMXDEH.js +1 -0
  144. package/dist/assets/plugins/slots/runner.6e494d59-CqrpqhW9.js +9 -0
  145. package/dist/assets/plugins/slots/scaffold.d87a6ee0-9qY5gkYW.js +1 -0
  146. package/dist/assets/plugins/slots/session-mcp.2be84084-Cf0cqopp.js +2 -0
  147. package/dist/assets/plugins/slots/sessions.6f47cb4c-B1_eqPJQ.js +1 -0
  148. package/dist/assets/plugins/slots/skill.62a0a1b3-D-SKX8iw.js +4 -0
  149. package/dist/assets/plugins/slots/space.65a27e5a-fbLHc-DX.js +1 -0
  150. package/dist/assets/plugins/slots/subagents.8bb9992c-Cm_YMEnn.js +7 -0
  151. package/dist/assets/plugins/slots/template-advanced.59f3f98a-L0WOM4JT.js +1 -0
  152. package/dist/assets/plugins/slots/template-desktop.0f0b8491-By9BZlaL.js +7 -0
  153. package/dist/assets/plugins/slots/template-elegant.0e3b0acf-El05x7HK.js +1 -0
  154. package/dist/assets/plugins/slots/vault.3cbfcdc3-DpU_65Wy.js +1 -0
  155. package/dist/assets/plugins/slots/voice.a952113d-CvcuL__m.js +1 -0
  156. package/dist/assets/plugins/slots/web-search.65013836-NVh9fdvE.js +1 -0
  157. package/dist/assets/plugins/slots/workflows.cbc5c5c0-OLKSY9PE.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/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
  165. package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
  166. package/dist/browser-ks_k-6KA.js +36 -0
  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-BiVQ9LoZ.js +198 -0
  211. package/dist/index.edge-CSGx6QOL.js +56 -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-AKM07WcM.js +466 -0
  260. package/dist/server-B0tM5Ygf.js +1300 -0
  261. package/dist/server-B8-vStCx.js +1116 -0
  262. package/dist/server-BAbdiL38.js +15108 -0
  263. package/dist/server-BCZ_R3kX.js +3326 -0
  264. package/dist/server-BGKAeB3M.js +492 -0
  265. package/dist/server-BIQhg1jS.js +26985 -0
  266. package/dist/server-BcPD_6a2.js +1533 -0
  267. package/dist/server-BeoA0QB-.js +580 -0
  268. package/dist/server-BsgvOpBF.js +24 -0
  269. package/dist/server-BtnOqSB5.js +156 -0
  270. package/dist/server-C-HBjWRo.js +2800 -0
  271. package/dist/{server-CWg0m_wq.js → server-C0Lt6nTt.js} +269 -1062
  272. package/dist/server-C8NPfG1H.js +148 -0
  273. package/dist/server-CKkaxOc0.js +978 -0
  274. package/dist/server-CMaWF5UA.js +1379 -0
  275. package/dist/server-CQPI6jIa.js +295 -0
  276. package/dist/{server-BhYE7Vqk.js → server-CQmb0lYL.js} +114 -176
  277. package/dist/server-CWR34Vx6.js +1884 -0
  278. package/dist/server-CZiAy2v5.js +641 -0
  279. package/dist/server-Cjtr0oVJ.js +584 -0
  280. package/dist/server-CkJQJ3Oo.js +571 -0
  281. package/dist/server-ClQQGtsI.js +679 -0
  282. package/dist/server-Cy2FhGBm.js +1744 -0
  283. package/dist/server-D8yEblCB.js +24 -0
  284. package/dist/server-DF0YIUeI.js +9603 -0
  285. package/dist/server-DRFESCq1.js +1527 -0
  286. package/dist/{server-zkcrP99W.js → server-Df1defzp.js} +89 -87
  287. package/dist/server-DgZd_TuT.js +189 -0
  288. package/dist/server-Dkc9Kth2.js +1830 -0
  289. package/dist/server-DlRePYOB.js +343 -0
  290. package/dist/{server-BpPEzRes.js → server-_HZm8wEC.js} +654 -745
  291. package/dist/{server-yABhJa2K.js → server-_jWkMESg.js} +60 -39
  292. package/dist/server-lgV6liTt.js +140 -0
  293. package/dist/server-nHPXbRDA.js +742 -0
  294. package/dist/server-p7qANgrf.js +877 -0
  295. package/dist/server-vhmQi3co.js +112 -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 +97821 -72579
  317. package/dist/workflow-DTCt4n6k.js +171 -0
  318. package/dist/workflowServices-RlswfHWp.js +300 -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
package/README.md CHANGED
@@ -1,262 +1,85 @@
1
1
  # @agimon-ai/po-cloudflare
2
2
 
3
- Po headless sessions on Cloudflare Workers, one Durable Object per session. The package ships the
4
- built Worker (`dist/`) and its `wrangler.jsonc`. A Workers Paid plan is required: the gzip bundle
5
- is about 3.4 MiB, over the Free plan's 3 MiB limit.
3
+ Cloudflare Workers host for Po, with one Durable Object per session. The package ships the built Worker, browser assets, container files, and `wrangler.jsonc`. An earlier dry run was recorded above the 3 MiB compressed Free-plan limit. Check the current build against your account's limit before deployment; `/healthz` alone does not verify an agent session.
6
4
 
7
- ## Deploy your own
5
+ ## Deploy a bearer-mode host
8
6
 
9
7
  ```bash
10
- npm i @agimon-ai/po-cloudflare wrangler
8
+ npm install @agimon-ai/po-cloudflare wrangler
11
9
  cp node_modules/@agimon-ai/po-cloudflare/wrangler.jsonc .
12
- # In wrangler.jsonc: set "name", "main" to "node_modules/@agimon-ai/po-cloudflare/dist/worker.js" and
13
- # "assets.directory" to "node_modules/@agimon-ai/po-cloudflare/dist/assets" (the Po web app).
14
- # Keep the durable_objects bindings and migrations exactly as shipped; migrations are irreversible.
15
- npx wrangler secret put PO_ATTACH_TOKEN # at least 32 random characters
10
+ ```
11
+
12
+ Set `name`, `main` to `node_modules/@agimon-ai/po-cloudflare/dist/worker.js`, and `assets.directory` to `node_modules/@agimon-ai/po-cloudflare/dist/assets`. Preserve the shipped Durable Object bindings and migration history. Migrations are irreversible; do not recreate or rename storage classes to fix an upgrade.
13
+
14
+ ```bash
15
+ npx wrangler secret put PO_ATTACH_TOKEN
16
16
  npx wrangler secret put PO_PROVIDER_API_KEY
17
- npx wrangler deploy --var PO_DEFAULT_PROVIDER:openrouter --var PO_DEFAULT_MODEL:<model> \
17
+ npx wrangler deploy --var PO_DEFAULT_PROVIDER:openrouter --var PO_DEFAULT_MODEL:"$MODEL_ID" \
18
18
  --var PO_PROVIDER_BASE_URL:https://openrouter.ai/api/v1
19
- curl -fsS https://<your-worker>/healthz # ok
19
+ curl -fsS "$WORKER_URL/healthz"
20
20
  ```
21
21
 
22
- Open `https://<your-worker>/` in a browser and sign in once with the attach token: the Worker serves the Po web
23
- app behind an `__Host-po_owner` cookie (HttpOnly, Secure, SameSite=Strict, 7 days). Ten failed sign-ins lock
24
- sign-in for 15 minutes. For a custom domain set `--var PO_SELF_HOST_ORIGIN:https://po.example.com`. The
25
- self-hosted web app lists, creates, chats in and deletes sessions. The web plugins of the composed packages
26
- (approval, artifacts, built-in tools, codemode, domain, MCP, profile, skill) are built into `/plugins/` with a
27
- static `compositions.json` and load from the Worker's own origin; settings that need a local hub are not available.
28
- Signed-out browsers are sent to the sign-in page at `/api/owner/sign-in` (`/sign-in` serves the same page).
22
+ Set `MODEL_ID` and `WORKER_URL` to your selected model and deployed HTTPS origin. Use at least 32 random characters for the attach token. Store secrets through Wrangler, never in committed vars. Open the Worker origin and sign in with that token. The owner cookie is HttpOnly, Secure, SameSite=Strict, with a seven-day ceiling. Failed sign-ins are rate limited. Set `PO_SELF_HOST_ORIGIN` for a custom public origin.
29
23
 
30
- ### Signed offline bundle and pairing
24
+ Scripts use `Authorization: Bearer <token>`; query-string tokens are refused. Session sockets use `/api/workspaces/<workspace-id>/sessions/<session-id>/ws`.
31
25
 
32
- Release builds of this package sign the web app at build time with the Agimon release key, so a browser can pin
33
- that key and its service worker serves only bytes that verify against it, the same trust the local hub's `/pair`
34
- flow gives. Print this browser's pairing link from the package you deploy:
26
+ ## Plugins and checkout builds
27
+
28
+ The Plugins page activates curated layers already compiled into this Worker. Activation is owner-wide in bearer mode and org-wide on Po Cloud, using the host default preset. Workspace activation and downloading npm packages at runtime are not supported. Existing owners keep Team, Browser, Schedule and Workflow on the first upgrade. Changes affect new session boots; browser plugins update on the next page load.
29
+
30
+ For a smaller build from this repository, create a JSON array of admitted layer ids, for example `plugins.json` containing `["team", "calendar", "web-search"]`. An empty array keeps foundations, defaults and modes only. Unknown or unsupported layer ids fail the build. With no selection file, the stock build includes every admitted layer.
35
31
 
36
32
  ```bash
37
- node -e "const m=require('@agimon-ai/po-cloudflare/dist/assets/bundle-manifest.json');console.log('https://<your-worker>/pair#s='+m.publicKey+'&r='+m.manifest.revision)"
33
+ PO_PLUGIN_SELECTION=/absolute/path/plugins.json pnpm --filter @agimon-ai/po-cloudflare build
34
+ pnpm --dir packages/cli/po-cloudflare exec wrangler deploy
38
35
  ```
39
36
 
40
- Compare the `s=` key with the one in the release notes, sign in, then open the link in the same browser. The
41
- page verifies every file against the key before the cockpit runs; later deploys signed by the same key update
42
- the browser on its next visit, and a different key asks you to confirm its fingerprint. The key travels only in
43
- the URL fragment, which the browser never sends to the Worker. A build without a key still works as before,
44
- but `/pair`, `/sw.js`, `/bundle-manifest.json` and `/bundle-assets/*` answer 404. Once a browser has paired,
45
- keep deploying signed builds: an unsigned one cannot update it.
37
+ Build workspace dependencies and the web shell first, as for the stock build. The same selection controls executable extension imports, catalog, prompts and browser plugin assets. Fixed Worker integration bridges remain compiled. Browser/shell bindings and credentials are still required where applicable. Supply the signing key and revision below for paired offline delivery. Deployment is a separate operator action.
46
38
 
47
- To sign your own build, make an EC P-256 key once, keep it out of git, and pass it to the build:
39
+ ## Signed browser delivery
40
+
41
+ A signed build provides `/pair`, `/sw.js`, and revision-specific verified assets. Pair from a key obtained through a trusted channel, not one inferred from the same untrusted page:
48
42
 
49
43
  ```bash
50
- openssl ecparam -name prime256v1 -genkey -noout | openssl pkcs8 -topk8 -nocrypt -out po-bundle-key.pem
51
- PO_BUNDLE_SIGNING_KEY_FILE=po-bundle-key.pem pnpm build # or PO_BUNDLE_SIGNING_KEY="$(cat po-bundle-key.pem)"
44
+ node -e "const m=require('@agimon-ai/po-cloudflare/dist/assets/bundle-manifest.json');console.log('https://<your-worker>/pair#s='+m.publicKey+'&r='+m.manifest.revision)"
52
45
  ```
53
46
 
54
- The build prints the public key and the `/pair#s=<key>&r=<revision>` link. The revision is the build time in
55
- seconds unless `PO_BUNDLE_REVISION` sets it; each release needs a higher one than the browser holds.
56
-
57
- Scripts and other clients use `Authorization: Bearer <PO_ATTACH_TOKEN>`: session sockets at
58
- `/api/workspaces/<ws>/sessions/<id>/ws` and the workspace and session list. Signed-in mode (below) adds Po
59
- identity, orgs and the REST directory; OAuth groups are all-or-nothing, so a partially configured provider
60
- makes boot fail.
61
-
62
- Try it locally on Miniflare, no Cloudflare account needed: `pnpm build`, then `pnpm local:cloud` (signed-in
63
- mode) or `pnpm local:self-host` (this mode). Each runs `wrangler dev --local` with stub email and model
64
- servers, signs in, creates a session, chats over the session socket and deletes it. `--keep` leaves it
65
- running; `PO_LOCAL_PORT` moves it off 8788. With the signing key that built `dist/assets` in the environment,
66
- `pnpm local:self-host` also verifies the signed manifest and every shell asset, `/sw.js` and `/pair`.
67
-
68
- Check a deployed signed-in Worker with `PO_SMOKE_EMAIL=you@example.com PO_SMOKE_PROVIDER_KEY=<key> node
69
- scripts/smoke.mjs https://<worker>`: health, providers, a refused unauthenticated socket, then email-code sign-in
70
- (type the code from your inbox), workspace, session, one prompt with a reply, and delete. Leave out
71
- `PO_SMOKE_PROVIDER_KEY` to use the account's stored key.
72
-
73
- ## Phase 3 federation admission seam
74
-
75
- `src/composition/federation.ts` exports `verifyCloudFederationRequest` for the destination DO.
76
- It requires TLS, derives the method, target and body from the actual request, calls the shared
77
- verifier and returns either a refusal Response or verified principal, org, device and optional
78
- via stamps. Dispatch must use those stamps, never caller-supplied headers. The route must supply
79
- its own workspace/network/org/operation scope and pinned authority ports. The replay port uses
80
- DO SQL insert-if-absent and an indexed on-write TTL purge, so live nonces survive object eviction.
81
- It does not take the session scheduler's alarm slot.
82
-
83
- Public REST/plugin dispatch mounting is pending phase 4. This phase does not add a public route,
84
- claim a configured identity feed, or admit federation via the attach-token WebSocket path.
85
- The workerd acceptance fixture calls the adapter through a test-only DO route. Destination
86
- composition must bind current device revocation authority and pinned issuers, use the verified
87
- identity token's organization authority, fail closed when
88
- unavailable, and refuse redirects when fetching the pinned origin's JWKS.
89
-
90
- ## Phase 4 signed-in Po Cloud
91
-
92
- Po Cloud is NOT operator-blind. The Agimon operator controls the Worker and its wrapping
93
- secret and can access org-shared cloud data and provider keys. Encryption at rest does not
94
- protect against a compromised operator or running Worker.
95
-
96
- Set `PO_CLOUD_MODE=signed-in`, configure the identity issuer and its existing secrets, and
97
- set a separate high-entropy `PO_ORG_KEY_WRAP` secret (at least 32 characters). Keep it stable:
98
- changing it without rewrapping existing data keys makes stored provider keys unreadable.
99
- `PO_CLOUD_HOST_ID` defaults to `po-cloud`. Network ID and token audience are the org ID.
100
- Without signed-in mode, the attach bearer gate and `workspaceId/sessionId` session DO names
101
- stay unchanged, even if this Worker also serves identity endpoints.
102
-
103
- Bootstrap with authenticated `POST /api/auth/personal-org` and `{ "trigger": "cloud-workspace" }`.
104
- The identity transaction creates the personal org, owner membership and first workspace allocation
105
- idempotently. Enroll the device and mint its org-bound identity token through the existing identity
106
- API. Every subsequent workspace/provider REST/socket request needs `Authorization: Bearer <identity-token>` and
107
- `x-po-envelope`, a JSON C3 signed envelope over the actual method, path/query and body. Root
108
- workspace-list/create and org-key routes use an empty signed workspace ID. Session routes include
109
- both workspace and session IDs when present. TLS, configured issuer binding, current membership,
110
- device key and revocation epoch, audience, destination and durable nonce admission are checked
111
- before dispatch. Caller-supplied identity stamps are never trusted. Delegated workspace/plugin
112
- calls remain refused here; roster host proofs provide separate control-plane authority.
113
-
114
- Routes mirror the native hostActions reply shapes:
115
-
116
- - `POST /api/workspaces` with an optional `name` returns `{ workspace }` (201).
117
- Cloud workspaces are virtual folders, not local repository admissions; `root` is refused.
118
- - `GET /api/workspaces` returns `{ workspaces }` for the current org's identity allocations.
119
- - `POST /api/workspaces/:id/sessions` with an optional `name` returns `{ sessionId }` (201).
120
- - `GET /api/workspaces/:id/sessions` and `GET /api/workspaces/:id/sessions/:sessionId` list/read
121
- directory summaries. Session runtime state is served over the existing session socket.
122
- - `GET /api/workspaces/:id/sessions/:sessionId/ws` attaches only an allocated session.
123
- - `POST /api/orgs/:orgId/provider-key` with `{ "apiKey": "..." }` requires a current owner/admin.
124
- There is no public key-read route. The configured OpenAI-compatible provider/model/base URL
125
- still come from Worker configuration. `DELETE` on the same route removes the stored key (204).
126
- - `DELETE /api/workspaces/:id/sessions/:sessionId` purges the session object, then its directory row (204).
127
- - `GET /api/orgs/:orgId/mcp-servers` lists the org's URL MCP servers as `{ servers: [{ name, url, headerNames }] }`,
128
- never header values. `POST` with `{ "name", "url", "headers" }` adds or replaces one (201), and
129
- `DELETE /api/orgs/:orgId/mcp-servers/:name` removes it (204). All three require a current owner/admin.
130
- URLs must be https and may not name an IP address, localhost or private suffix, `*.workers.dev`, a cloud
131
- metadata host, or the issuer's own zone. At most 10 servers per org (429 beyond). Header values are sealed
132
- like the provider key. Sessions see these servers only when the Worker var `PO_CLOUD_MCP` is `on` (off by
133
- default); requests then run under the same host policy with redirects refused, a 4 MiB response cap and a
134
- 30 second timeout.
135
- - Rendered web pages: with the Worker var `PO_CLOUD_WEB` set to `on` (off by default) and the `BROWSER`
136
- Browser Rendering binding from `wrangler.jsonc`, signed-in sessions get the code-mode `page` namespace
137
- (`fetchPage`, `snapshot`, `screenshot`). One browser per session, one page at a time. Every request a page
138
- makes, redirects included, passes the same host policy (http or https). Pages end after 20 seconds,
139
- screenshots are capped at 2 MiB, and each org may use 600 browser-seconds per UTC day, counted in the org
140
- object; past that, calls fail with a message saying the allowance is used up.
141
- - Abuse ceilings: at most 100 new sessions per org per hour and 100 workspaces per org (429 beyond).
142
- Signed-in session sockets close with code 4401 after 15 minutes so reconnecting re-runs admission.
143
-
144
- Cookie admission (native and desktop apps): instead of a token and envelope, a client may send the
145
- Po identity session cookie plus `x-po-org: <orgId>` for workspace list/create, session
146
- create/list/read/socket/delete and provider-key set/delete only. Calendar, consents, config,
147
- compositions, relay and network routes stay device-signed. The org DO resolves the cookie through
148
- identity `get-session` (cached 30 seconds per cookie hash), then checks membership or workspace
149
- allocation on every request. TLS is required, `x-po-org` is mandatory, and any `Origin` other than
150
- none, the issuer or `po://` is refused, so proxies must strip a browser Origin.
151
-
152
- `PoNetworkObject` uses `orgId`; session objects use `orgId/workspaceId/sessionId`. Identity
153
- allocations are authoritative, so invented workspace IDs never create an accessible object.
154
- The identity durable outbox materializes workspace directory rows with insert-if-absent.
155
- Cloud requests drain it, and the identity alarm retries pending jobs every 60 seconds alongside
156
- recovery deadlines. Account-deletion purge jobs tombstone the org first, remove the encrypted
157
- provider key and wrapped data key, close live tenant sessions and delete their DO storage, then
158
- clear the directory. The identity job is acknowledged only after all session deletions succeed.
159
- The retained tombstone rejects stale materialization deliveries and all future cloud writes.
160
- Directory writes recheck the fence after asynchronous work, so sessions committed before the
161
- fence are enumerated and later session writes are refused. Legacy bearer DOs are never enumerated.
162
- A retry repeats deletion safely; failed shutdown/deletion retains the directory for retry.
163
- Boot restores the persisted work deadline. A failed delivery stays pending;
164
- a crash after materialization but before acknowledgement retries the same row.
165
-
166
- `ponytail:` Workspace config/directory currently lives in the org's network DO, not a separate
167
- workspace DO. Ceiling: one org DO serialises all workspace directory writes. Upgrade: split to
168
- `PoWorkspaceObject` per section 4.4 when load or phase 6 workspace-scope negotiation requires it.
169
- Phase 5 adds roster, voting and relay behavior as described below.
170
-
171
- Provider keys are AES-GCM ciphertext in network SQL, under a fresh random per-org data key on each
172
- replacement. That data key is itself AES-GCM wrapped by a SHA-256-derived key from the Worker
173
- secret. Both layers have independent random 96-bit IVs and authenticate the org ID as associated
174
- data. Only ciphertext, IVs and the wrapped key are persisted. Session composition decrypts into
175
- memory via a trusted binding RPC; signed-in sessions never fall back to the operator provider key.
176
- New keys apply to newly composed sessions, not already booted sessions. Neither request bodies,
177
- plaintext keys nor exception messages from cloud dispatch are logged.
178
-
179
- ## Session Approval and Code mode
180
-
181
- Stock session composition includes Approval and Code mode through the existing DO SQLite and
182
- QuickJS ports. Each one-session DO mounts Approval's generated global root before creating its
183
- session. The queue is host-global within that tenant-isolated DO, not an org-wide or cross-DO
184
- aggregate. Other packages contribute portable namespaces with gated members; the verification
185
- contributor exists only in the test build, not the stock Worker artifact.
186
-
187
- ## Phase 5 network and ciphertext relay
188
-
189
- In signed-in mode, `GET /api/networks/:id/roster` verifies the existing identity token and
190
- C3 device proof (`workspaceId: ''`), fetches the issuer snapshot and enrolled-device pins,
191
- and serially applies C6 before publishing its persisted snapshot. Equal epochs may refresh
192
- only the issuer signature lifetime, never roster content. Removed hosts retain tombstones.
193
- Cloud generates its own per-network P-256 host key in DO storage and registers its host
194
- entry through the issuer-signed cloud-host helper. Cloud trust stops at issuer device
195
- enrollment, not independent physical pins. Cloud remains operator-readable.
196
-
197
- `POST /api/networks/:id/network/:operation` uses the shared typed allowlist:
198
-
199
- - `roster.read`: `{networkId}` returns the cached signed snapshot.
200
- - `roster.apply`: a signed snapshot, verified against configured issuer and enrolled pins.
201
- Equal/older epochs, forged snapshots and invalid host signatures are refused.
202
- - `coordinator.vote`: a C9 proposal returns the cloud's signed vote only after durable commit.
203
- - `coordinator.lease`: a quorum certificate atomically persists its fence and gateway lease.
204
- - `coordinator.mutate`: `{lease,operation:'directory.put',input:{hostId,manifest}}` atomically
205
- checks the receiver fence and stores the directory effect in the same SQL transaction.
206
-
207
- Person requests keep C3 and current membership checks. Hosts may call only `roster.read`,
208
- `coordinator.vote` and `coordinator.lease`, using `x-po-host-proof`: a signed
209
- `po/host-request/v1` envelope with `{networkId,hostId,destination,method,path,bodyHash,nonce,
210
- issuedAt,expiresAt}`. Destination is `PO_CLOUD_HOST_ID`, method is `POST`, path is the actual
211
- pathname and bodyHash is base64url SHA-256 of the exact JSON body. Nonces are durable and
212
- single-use. Vote/lease callers must be current roster voters. This proof cannot authorize
213
- workspace or plugin operations. The Worker also forwards issuer `own-hub-link`, `hosts`,
214
- `changes` routes and host-proof roster reads (`x-po-roster-proof`) to the identity DO.
215
-
216
- `GET /api/networks/:id/relay?hostId=<hint>` upgrades only for a current roster host and
217
- while a valid persisted quorum lease elects Po Cloud. No person token grants socket authority.
218
- The upgraded socket is initially unadmitted and receives `{challenge,expiresAt}` with a
219
- 32-byte random challenge and 30-second TTL. Reply with a host-key-signed
220
- `po/host-request/v1` envelope `{networkId,hostId,destination,method:'RELAY',path,nonce,
221
- issuedAt,expiresAt}`. The nonce must equal this socket's challenge. The envelope lifetime
222
- is at most 60 seconds and uses the 30 second envelope skew independently of the challenge TTL. The first proof
223
- attempt consumes the challenge; a bad or late proof closes the socket. Success returns
224
- `{admitted:true,hostId}`. There is no device C3 requirement for this host-only handshake.
225
-
226
- Hibernating socket tags are immutable, so the hint tag is only an index. Every source and
227
- destination must also have an admitted attachment with the current roster epoch and host
228
- key. At most four unadmitted sockets may use one hint. Admission replaces older admitted
229
- sockets; the DO alarm closes expired challenges. Roster changes close old links. Every
230
- forward refreshes issuer state and rechecks the cloud lease. Frames contain only
231
- `{destinationHostId,sealed}` and go only to that admitted host. The relay has no channel
232
- keys and never opens ciphertext. Destinations must use authenticated fresh channels and
233
- normal C3/C4 freshness, current authority and durable replay admission after decryption.
234
-
235
- One-voter networks self-elect during roster synchronization. Lease duration is at most
236
- 30 seconds with a two-second C9 clock bound. C6 snapshots bootstrap the C9 voter set once;
237
- they never silently replace a committed voter configuration. Multi-voter campaigning and
238
- quorum configuration transitions are not automated here. Without a valid cloud lease the
239
- relay pauses; direct authenticated links do not depend on a coordinator. Two voters need
240
- both votes, so one down means no coordinator. Safety is crash-fault tolerant under bounded
241
- clocks, not Byzantine-safe. No live Cloudflare deployment or real-device test is claimed.
242
-
243
- Replay TTL purge runs **on every admission write in the deployed network DO**, using the phase 3
244
- indexed SQL expiry delete before insert-if-absent. No in-memory-only replay cache and no replay
245
- alarm slot are used. Idle expired rows remain until the next admission, but cannot be replayed.
246
-
247
- ### Verification boundary
248
-
249
- `tests/cloud.test.ts` runs the real Worker/DO composition in workerd via the same Wrangler harness
250
- as existing tests. Its test-only TLS terminator also protects signed header bytes from the local
251
- harness's origin rewriting. There is no production TLS bypass. Tests cover tenant refusals,
252
- unallocated IDs, REST reply shapes, role changes, SQL ciphertext inspection, captured Node and
253
- workerd console output, persisted post-commit outbox recovery, lost acknowledgement retries,
254
- actual production alarm delivery, deployed on-write nonce purge, in-memory provider decryption
255
- through modelDependencies, and account purge with a stale materialization delivery/repeated purge.
256
- The purge test seeds tenant session SQL; purging an actively running model turn is not exercised.
257
-
258
- The crash test seeds the durable post-commit shape rather than killing a Worker process. Forced
259
- identity DO eviction in this local harness produced an initial `ECONNRESET`; a subsequent request
260
- succeeded. Cold identity alarm delivery after eviction is not verified here. No production retry
261
- or security bypass was added to conceal this limitation. Real cloud deployment and native-device
262
- transport integration remain unverified; this phase does not change native hostActions.
47
+ Compare the public signer with the expected release key before opening the link. The fragment is not sent in normal HTTP requests, but the initial executable bootstrap still depends on trusted delivery. A signed manifest does not make that first page self-authenticating.
48
+
49
+ For your own build, supply an EC P-256 private key through `PO_BUNDLE_SIGNING_KEY_FILE` or `PO_BUNDLE_SIGNING_KEY`, keeping it outside Git. Revisions must increase; `PO_BUNDLE_REVISION` can set one explicitly. Retain the signer across updates. An unsigned build cannot update an already-paired verified cache, and a different signer needs explicit trust confirmation.
50
+
51
+ ## Optional browser and shell capabilities
52
+
53
+ `PO_CLOUD_WEB=on` and the `BROWSER` binding enable public-page reads and a persistent browser. Sign-in handoff/Live View links go to the person, not the agent. Browser time is billed to your account and capped at 3,600 browser-seconds per UTC day and two persistent browsers per owner/org. Requests, redirects, and popups remain subject to outbound-host policy.
54
+
55
+ `PO_CLOUD_COMPUTER=on` enables experimental per-session Linux containers when the shipped `containers` block is enabled and its Dockerfile is available. Deploying builds that image with Docker. Containers start on demand, stop after five idle minutes or two hours, and are capped at 7,200 container-seconds per UTC day and two concurrent containers per owner/org. Container time is billable.
56
+
57
+ `/workspace` files persist in the session's storage; processes do not. The first Computer-backed start migrates and verifies existing files. `PO_FS_STORE=legacy` selects the retained old copy while that compatibility path exists; it is not synchronization between stores. Without the container binding, the flag can migrate files while Bash remains unavailable.
58
+
59
+ Container outbound HTTP(S) passes through the Worker. Private/IP/metadata destinations and the configured issuer zone are refused, redirects remain constrained, and authorization headers are removed. This is an execution boundary, not protection from the Cloudflare account or Worker operator.
60
+
61
+ ## Signed-in organizations
62
+
63
+ Signed-in mode is explicit: set `PO_CLOUD_MODE=signed-in`, configure `PO_IDENTITY_ISSUER` and its required identity secrets, and provide a separate high-entropy `PO_ORG_KEY_WRAP` secret. Keep the wrapping secret stable. Changing it without rewrapping stored data can make credentials unreadable. Partially configured OAuth providers fail startup rather than silently weakening authentication.
64
+
65
+ Po Cloud is **not operator-blind**. The operator controls the Worker and wrapping secret and can access cloud data and provider credentials. Encryption at rest does not protect against a compromised operator or running Worker.
66
+
67
+ Identity allocations determine accessible organizations, workspaces, and sessions; invented IDs are not admission. Device-signed calls require the identity token and a C3 envelope bound to the actual request, current membership/device epoch, audience, destination, and durable nonce. Pinned issuer authority must be available; caller-supplied identity headers are not trusted. Supported cookie calls additionally require the selected `x-po-org` and current membership. Do not broaden that route allowlist to make a client work.
68
+
69
+ Provider and MCP credentials are sealed under independently generated data keys wrapped by the Worker secret. Signed-in sessions do not fall back to the operator's provider key. Never log plaintext keys, request bodies, or credential-bearing exception details.
70
+
71
+ The network object owns org coordination and directory state; workspace objects own workspace config and provider consent; session objects own session execution and storage. Account purge fences the org first and acknowledges its durable job only after owned session deletions complete. Preserve tombstones and retry state so stale materialization cannot recreate deleted data.
72
+
73
+ ## Federation and availability
74
+
75
+ C6 roster signatures require trusted issuer/device authority. C9 coordinator mutations require durable quorum fencing and atomic effects; owner authorization alone cannot replace a committed voter set. Relay frames carry destination metadata and ciphertext, not relay-held channel keys. Destinations still verify C3/C4 request proofs, C5 grants where required, current authority, and durable replay admission after decryption.
76
+
77
+ Two voters require both votes. Losing quorum pauses coordinated service; it does not authorize a minority to elect itself. The model is crash-fault tolerant under bounded clocks, not Byzantine-safe. Persist nonce, fence, roster epoch, and tombstone state across eviction. Replay expiry is purged on admission writes rather than stealing the session scheduler's alarm.
78
+
79
+ For exact route and admission contracts, read the [cloud routing source](https://github.com/AgiFlow/po/blob/main/packages/cli/po-cloudflare/src/composition/cloudRouting.ts), [destination verifier](https://github.com/AgiFlow/po/blob/main/packages/cli/po-cloudflare/src/composition/federation.ts), and [network contract](https://github.com/AgiFlow/po/blob/main/packages/core/po-network/README.md).
80
+
81
+ ## Development and verification
82
+
83
+ From this package, run `pnpm build`, `pnpm typecheck`, `pnpm lint`, and `pnpm test`. The tests use workerd through Wrangler. `pnpm local:self-host` and `pnpm local:cloud` run local harnesses with stub providers; `--keep` retains the harness and `PO_LOCAL_PORT` changes its port.
84
+
85
+ Local tests and source inspection do not establish a successful Cloudflare deployment, real-device integration, or interruption recovery during an actively running model turn. Verify those separately before relying on them operationally.
@@ -0,0 +1,27 @@
1
+ # The Po session container: computerd serving /workspace from the session's Durable Object, with Node and git.
2
+ # computerd mounts /workspace with FUSE on Cloudflare Containers and falls back to its userspace shim under wrangler dev.
3
+ # Outbound HTTPS is re-signed by Po's gateway; each command is pointed at the platform's CA (see computer.ts), so the
4
+ # image bakes in no certificate. computerd runs as root because it mounts FUSE.
5
+ # Pinned by digest to match @cloudflare/computer 0.10.0; bump both together.
6
+ FROM ghcr.io/cloudflare/computer-computerd-linux-x64:0.10.0@sha256:6ec793fa80f109acf8b3cd4e295284cfed97f61c03030b780a612ec22c49b294 AS computerd
7
+
8
+ FROM debian:stable-slim
9
+
10
+ RUN apt-get update \
11
+ && apt-get install -y --no-install-recommends fuse3 ca-certificates curl gnupg git \
12
+ && mkdir -p /etc/apt/keyrings \
13
+ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
14
+ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" \
15
+ > /etc/apt/sources.list.d/nodesource.list \
16
+ && apt-get update \
17
+ && apt-get install -y --no-install-recommends nodejs \
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ COPY --from=computerd /usr/local/bin/computerd /usr/local/bin/computerd
21
+
22
+ ENV PORT=8080
23
+ ENV MOUNT_POINT=/workspace
24
+ ENV FUSE_MOUNT=auto
25
+ EXPOSE 8080
26
+
27
+ ENTRYPOINT ["/usr/local/bin/computerd"]
@@ -1 +1 @@
1
- export { BrowserWebSocketTransport } from "./puppeteer-cloudflare-B-GHrPGO.js";
1
+ export { BrowserWebSocketTransport } from "./puppeteer-cloudflare-D4l8smMS.js";
@@ -1,5 +1,5 @@
1
- import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-B-lAHAz2.js";
2
- import { t as packageVersion } from "./puppeteer-cloudflare-B-GHrPGO.js";
1
+ import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-DbVrKiKs.js";
2
+ import { t as packageVersion } from "./puppeteer-cloudflare-D4l8smMS.js";
3
3
  //#endregion
4
4
  //#region ../../../node_modules/.pnpm/@cloudflare+puppeteer@1.4.0_supports-color@8.1.1/node_modules/@cloudflare/puppeteer/lib/esm/puppeteer/node/NodeWebSocketTransport.js
5
5
  var import_browser = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1,4 +1,4 @@
1
- //#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.0_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js
1
+ //#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_2cda1eab05bf8d95071bf4a1067b9ed2/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js
2
2
  function combineAbortSignals(signals) {
3
3
  const activeSignals = signals.filter((signal) => signal !== void 0);
4
4
  if (activeSignals.length === 0) return { cleanup: () => {} };