@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.
- package/README.md +64 -241
- package/container/Dockerfile +27 -0
- package/dist/{BrowserWebSocketTransport-C2SC2VeJ.js → BrowserWebSocketTransport-B4heNdrp.js} +1 -1
- package/dist/{NodeWebSocketTransport-CKilJesa.js → NodeWebSocketTransport-BCiOXUEz.js} +2 -2
- package/dist/{abort-signals-Bkmp_euQ.js → abort-signals-C8CttjsR.js} +1 -1
- package/dist/agent-CEqvgRl6.js +3878 -0
- package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-DCLLLNuM.js} +292 -64
- package/dist/apiContracts-DaOpUHnu.js +1719 -0
- package/dist/{approval-CQ3ZuoTy.js → approval-DXPV7Vm5.js} +15 -2
- package/dist/{approvalPrompt-CylV3C84.js → approvalPrompt-CBaxjb_g.js} +1 -2
- package/dist/approvalSession-C9bg7tPo.js +132 -0
- package/dist/artifactFiles-5KwXIxYf.js +1 -0
- package/dist/artifactsApi-bg2wMYWg.js +200 -0
- package/dist/assets/assets/{CodeEditorView-D4q94XH-.js → CodeEditorView-CfrVwzvL.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C85p4OYZ.js → abnfDiagram-WEYOIA3C-B80H4Cm4.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-Bt_NOdwE.js → architecture-WOLXFQ4H-Dr4hXaql.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DzH1GKMm.js → architectureDiagram-ZHVYKT53-DWyt7oXu.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-BmWU34j3.js → blockDiagram-RJAE7QA3-OxNTLdmi.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-BpGOdOuo.js → c4Diagram-XDPPPE54-B4YtcH0s.js} +2 -2
- package/dist/assets/assets/channel-bXj00dGj.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-AycP1cXU.js → chunk-2E7WHVMD-CD6FFMOX.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-DX-DrZzc.js → chunk-4EMNKR2T-CEIoX5oo.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-BdwnLWzI.js → chunk-55XCU76K-CD3t0IJi.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-D-RBAwAn.js → chunk-7S6XSTFO-Cyt75UCF.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-CCxNNhKs.js → chunk-AQDTSKZB-DRtqYBj9.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-D2hGwWm1.js → chunk-DSNLSHJZ-C8Fx2F8s.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-BPi-cqGh.js → chunk-HAGFOTED-wOLWRRnd.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D-r1ChHT.js → chunk-HNE4Q36P-CurJg4Hf.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-RgmZCAdn.js → chunk-NQOKRVIF-Dzcc5nOG.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-B-Hul-rZ.js → chunk-UHW7PFBP-B_ULFf2h.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-D1zlXCt8.js → chunk-VQ5W62QI-DH0VY4_p.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-CtjIbVJn.js → chunk-WQQL4CDK-DNxfLyXM.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-B2bMWgN9.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-BQOgXG99.js → chunk-YZO67HFG-COuMUh9U.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-CsDDxmqv.js → chunk-ZAUX2LTX-BJrCnubF.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-deyEYMjx.js → chunk-ZCHMQSOR-D1lFKPtk.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DVJHeFlq.js → classDiagram-v2-4MYWR3UA-DfZIbyVL.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-ipcN28Fw.js → cose-bilkent-JH36ORCC-CpGhv9_S.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-s9ZkPF55.js → cynefin-EF2NZ3EQ-Cxdc6nQl.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Ksr2qjsS.js → cynefinDiagram-WF24UDRP-qoj0w3lp.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-2_Wl-XEW.js → dagre-NK4GIZVX-DL6QbNDS.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-C7PeyT7l.js → diagram-CBK3MWTC-CJB3jq1_.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-DPYzeKdj.js → diagram-I5XIIV2D-4cPOxCxF.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DHw1cAmn.js → diagram-ODIL2UCW-BG3-jAxE.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-C2wA8i-1.js → diagram-PFBEJUXE-Bx8dFaXj.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-tM3moCIs.js → diagram-RJA3I4VV-CUUHND91.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CInyJxF7.js → diagram-TYUNFSNR-BDMoN-kr.js} +2 -2
- package/dist/assets/assets/{dist-BDqjNLTC.js → dist-5AxNm-uy.js} +2 -2
- package/dist/assets/assets/{dist-hpZIQBl4.js → dist-9_Rmyj2I.js} +2 -2
- package/dist/assets/assets/{dist-DSLprmec.js → dist-BE3CLKv4.js} +2 -2
- package/dist/assets/assets/{dist-BASEd5LC.js → dist-BfNCu-7x.js} +2 -2
- package/dist/assets/assets/{dist-BuYBvf4F.js → dist-BjI0b36Z.js} +2 -2
- package/dist/assets/assets/{dist-DUS0U_ge.js → dist-CM7b5P9a.js} +2 -2
- package/dist/assets/assets/{dist-CeOy6PjJ.js → dist-Ccxb9U1G.js} +2 -2
- package/dist/assets/assets/{dist-ChXoRSS6.js → dist-CjCWP21A.js} +2 -2
- package/dist/assets/assets/{dist-07dRlnp1.js → dist-DSTAktnR.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-4nZgqaSt.js → ebnfDiagram-V4P3TTPT-BivOMXZb.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-nFh54c1Q.js → elk-QONTBCTQ-CrJ1Qpy_.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-CIQ0_IgZ.js → erDiagram-KYQIGQAA-w9Bqp4sV.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-Cw4BlbYP.js → eventmodeling-K75KTNOO-CBjFM3kV.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-C6Fnfgm0.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-C97qoUpX.js → ganttDiagram-R7GPNTJY-CsWtGaqD.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-B8HWVkEX.js → gitGraph-VSP46ZUC-DsBSV9_h.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B4Js56_8.js → gitGraphDiagram-PDYL7XHY-D5GxuYHW.js} +2 -2
- package/dist/assets/assets/index-CNDyKUDF.css +1 -0
- package/dist/assets/assets/index-DWDYnZsq.js +256 -0
- package/dist/assets/assets/{info-OHQRW6UA-A4qythhA.js → info-OHQRW6UA-C7x5dSJu.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-BSNwG9yI.js → infoDiagram-MVDRKAX5-CwpI-uAa.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-D4gU-3RA.js → ishikawaDiagram-HPEHV2GE-DAa7J5G6.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CxxDrw7o.js → journeyDiagram-BOSHW7O7-BmiZnxE_.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DUxQv3v0.js → kanban-definition-FNSA4HC5-DUR_mA3L.js} +2 -2
- package/dist/assets/assets/{line-BKODXUmk.js → line-DHY49wSg.js} +2 -2
- package/dist/assets/assets/{linear-Cm5uyUun.js → linear-pTo-a9xT.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-CYst2kCg.js → mermaid-parser.core-DMg3hN3T.js} +4 -4
- package/dist/assets/assets/{mermaid.core-B4Qq8SMa.js → mermaid.core-DKtPCltA.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZFvUTIM.js → mindmap-definition-6OY57UG3-DwTkFbnV.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DZMlaiuy.js → packet-JDAUHWVQ-Tu9TrQ1x.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-BjM668dT.js → pegDiagram-ECIUJNBX-B7My4tsz.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-CmpJ6vb8.js → pie-XZMESJXO-QPQm5Gdx.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-BCA9DCDe.js → pieDiagram-GNMPY74T-Bv-zAD_z.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CUnpC-Rl.js → quadrantDiagram-D57K4MC3-HTjoGQPd.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-C9x42-KP.js → radar-ABXABTNO-LDBlEoFo.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-CLvHKrsC.js → railroad-I3PHUGI6-Dy3_ymgZ.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-B0LGF3gx.js → railroad-abnf-LNEFI6M7-QLVvYs6e.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-SKnYapAj.js → railroad-ebnf-DWYD2UWJ-CFRlv9a8.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-wsUpPloN.js → railroad-peg-JR7BVNR7-BOlq3d9c.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BYJtosKO.js → railroadDiagram-Y72NRBL7-Chg32HoU.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-YYdoWMnl.js → requirementDiagram-EQYSW5RA-VenIs_eg.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DtZyCTdM.js → sankeyDiagram-SY24JHO5-BdByqMKF.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BPE8f413.js → sequenceDiagram-BLEHNHQU-D3Do4GJE.js} +2 -2
- package/dist/assets/assets/{src-BNTOLq2G.js → src-DmfN-DA-.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-9f8Ow4Fl.js → stateDiagram-v2-A6IESKWZ-CZkRbPlf.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-DdAEbxGp.js → swimlanes-B3ENRKFQ-DRTdF9AF.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BYr_4JUb.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-DJNGd2mU.js → timeline-definition-JXYKGLGB-BVcuws_M.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-BHONoCCw.js → treeView-D4JQ5SDB-BLtOJGqO.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-pOaYkxq7.js → treemap-SAJKECNS-Dn3BWJ4v.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C3eDYL9v.js → usecaseDiagram-WPOLBNNX-CBExIKDY.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CJi1xfsR.js → vennDiagram-Q3Y3IDCW-C6FIx2L4.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-CEy4w7Ir.js → wardley-7MLQ67FV-Cjj2xSBp.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DfdLMMpN.js → wardleyDiagram-IVAIDKWA-sQPCBCFK.js} +2 -2
- package/dist/assets/assets/{webpack-v8XGbQTa.js → webpack-DDCA0aDL.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-Aw-Ix4uC.js → xychartDiagram-4URNHDU4-bZ4rifSw.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +8 -2
- package/dist/assets/mascot/cta-provider.png +0 -0
- package/dist/assets/mascot/cta-sign-in.png +0 -0
- package/dist/assets/plugins/assets/base-GzIOAd-t.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/day-bottom-left-5um-x02r-5um-x02r.webp +0 -0
- package/dist/assets/plugins/assets/day-grain-CvEuNhlI-CvEuNhlI.webp +0 -0
- package/dist/assets/plugins/assets/day-right-C9W-XtjV-C9W-XtjV.webp +0 -0
- package/dist/assets/plugins/assets/day-top-left-B544Eq9J-B544Eq9J.webp +0 -0
- package/dist/assets/plugins/assets/night-bottom-left-N03ST5Uz-N03ST5Uz.webp +0 -0
- package/dist/assets/plugins/assets/night-grain-BY9q-tNN-BY9q-tNN.webp +0 -0
- package/dist/assets/plugins/assets/night-right-C6Denrqj-C6Denrqj.webp +0 -0
- package/dist/assets/plugins/assets/night-top-left-KOou6UxY-KOou6UxY.webp +0 -0
- package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
- package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
- package/dist/assets/plugins/chunks/po-web-runtime-D8FIos2q.js +1 -0
- package/dist/assets/plugins/chunks/schemas-DVQ8BvvP.js +55 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DxS_uibk.js +2 -0
- package/dist/assets/plugins/slots/artifacts.50b639bb-Cp37TAkd.js +1 -0
- package/dist/assets/plugins/slots/author.ea449ace-Ds9Y-tjN.js +93 -0
- package/dist/assets/plugins/slots/autocompact.6f428144-CDZpN7I7.js +1 -0
- package/dist/assets/plugins/slots/backdrop-bamboo.6e4c928d-qbifuMc6.js +1 -0
- package/dist/assets/plugins/slots/browse.fa1f1a50-CVYvo1M5.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.75108f21-Cq1ljoL-.js +7 -0
- package/dist/assets/plugins/slots/calendar.d8b70190-BBjpOs1v.js +2 -0
- package/dist/assets/plugins/slots/codemode.c58fb583-DOR6OR7R.js +11 -0
- package/dist/assets/plugins/slots/domain.753f9f92-CJrXxig9.js +1 -0
- package/dist/assets/plugins/slots/edit.804fec90-BFF7_xN9.js +7 -0
- package/dist/assets/plugins/slots/files.66ffc636-CzOlZrRm.js +2 -0
- package/dist/assets/plugins/slots/goal.45dffa01-BtQBp3sw.js +1 -0
- package/dist/assets/plugins/slots/grep.98262cff-9bUDfjyT.js +1 -0
- package/dist/assets/plugins/slots/help.5fbd20f7-B4-y6gYK.js +3 -0
- package/dist/assets/plugins/slots/log.cb964209-BRPa3cVs.js +4 -0
- package/dist/assets/plugins/slots/mcp.82cc1ff5-CFtzPkPC.js +55 -0
- package/dist/assets/plugins/slots/plan.3852ba52-CH59Ff49.js +3 -0
- package/dist/assets/plugins/slots/profile.ab16dcec-0e9fWWyE.js +1 -0
- package/dist/assets/plugins/slots/prompts.ae48c07a-BTqYnBX5.js +38 -0
- package/dist/assets/plugins/slots/read.4560591a-C7fMXDEH.js +1 -0
- package/dist/assets/plugins/slots/runner.6e494d59-CqrpqhW9.js +9 -0
- package/dist/assets/plugins/slots/scaffold.d87a6ee0-9qY5gkYW.js +1 -0
- package/dist/assets/plugins/slots/session-mcp.2be84084-Cf0cqopp.js +2 -0
- package/dist/assets/plugins/slots/sessions.6f47cb4c-B1_eqPJQ.js +1 -0
- package/dist/assets/plugins/slots/skill.62a0a1b3-D-SKX8iw.js +4 -0
- package/dist/assets/plugins/slots/space.65a27e5a-fbLHc-DX.js +1 -0
- package/dist/assets/plugins/slots/subagents.8bb9992c-Cm_YMEnn.js +7 -0
- package/dist/assets/plugins/slots/template-advanced.59f3f98a-L0WOM4JT.js +1 -0
- package/dist/assets/plugins/slots/template-desktop.0f0b8491-By9BZlaL.js +7 -0
- package/dist/assets/plugins/slots/template-elegant.0e3b0acf-El05x7HK.js +1 -0
- package/dist/assets/plugins/slots/vault.3cbfcdc3-DpU_65Wy.js +1 -0
- package/dist/assets/plugins/slots/voice.a952113d-CvcuL__m.js +1 -0
- package/dist/assets/plugins/slots/web-search.65013836-NVh9fdvE.js +1 -0
- package/dist/assets/plugins/slots/workflows.cbc5c5c0-OLKSY9PE.js +16 -0
- package/dist/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +58 -4
- package/dist/{atomicJson-wczZBXQP.js → atomicJson-XYtxz032.js} +2 -3
- package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-S-quxzTC.js} +2 -2
- package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-DdpV5zh7.js} +13 -13
- package/dist/backgroundWork-Bv0ib_lY.js +49 -0
- package/dist/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
- package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
- package/dist/browser-ks_k-6KA.js +36 -0
- package/dist/calendarSetup-CI3AACVo.js +3892 -0
- package/dist/childProcess-Cv8rJuUf.js +32 -0
- package/dist/childSession-BrDCrNtL.js +25 -0
- package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-DFprgrML.js} +5 -5
- package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-B0MD19yZ.js} +3 -3
- package/dist/{codemode-CFVDmyGm.js → codemode-LpcMFMYM.js} +1 -1
- package/dist/coerce-DM9YrILC.js +13 -0
- package/dist/config-DeWkdjj7.js +1372 -0
- package/dist/contextContributions-C1bsEJef.js +13 -0
- package/dist/contracts-CW8o6Xyi.js +19 -0
- package/dist/contracts-WRa9e98H.js +40 -0
- package/dist/cordisHost-_-jtkneB.js +25 -0
- package/dist/delegation-B2rBgv8A.js +100 -0
- package/dist/{diagnostics-DPTP-yrt.js → diagnostics-BY5LXbHJ.js} +2 -2
- package/dist/{dist-BVBi6VMV.js → dist-B2ArMqge.js} +1 -1
- package/dist/{server-Cg07O2W6.js → dist-C6IqjC-m.js} +1 -546
- package/dist/{dist-PDDFdqDX.js → dist-CDz5dYMj.js} +1 -1
- package/dist/{dist-Dvx5mlIR.js → dist-kgi2Ix1y.js} +16 -3
- package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js} +1 -1
- package/dist/{env-api-keys-CAnjjnsR.js → env-api-keys-BgCPpU9t.js} +1 -1
- package/dist/{error-body-DQZRsyL5.js → error-body-CeumezyR.js} +26 -4
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/{remoteMcp-DqE2xFWS.js → exports-BEEgtkya.js} +1588 -714
- package/dist/{exports-LjvSY7Y6.js → exports-CBp_9dVk.js} +47 -28
- package/dist/exports-CRjRvvX0.js +34 -0
- package/dist/exports-Cg0wxflf.js +1 -0
- package/dist/exports-Ct56PRB9.js +46 -0
- package/dist/extensionFile-B940JOEn.js +121 -0
- package/dist/{factory-Cs8iaUtc.js → factory-BU0cZY0I.js} +1 -1
- package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-Cq9pnpl2.js} +1 -1
- package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-DmbUlCGv.js} +9 -9
- package/dist/{google-shared-S7bqOccz.js → google-shared-Diz2uk39.js} +6 -6
- package/dist/{google-vertex-BcMU_DMb.js → google-vertex-CGCpI9Po.js} +10 -10
- package/dist/{domains-B6Ae4swm.js → harnessState-Df--jB5z.js} +162 -42
- package/dist/{harnessStore-Ccbia9_u.js → harnessStore-DInwiLYb.js} +4 -5
- package/dist/{hash-B3RRpLS2.js → hash-IQBoLxOB.js} +1 -1
- package/dist/{headers-BEuxFxDI.js → headers-Dkgiqogr.js} +1 -1
- package/dist/help-C9UGKetC.js +100 -0
- package/dist/home-kwZFHqOx.js +60 -0
- package/dist/http-BekstF5S.js +64 -0
- package/dist/hubChannel-Dldv3EEb.js +32 -0
- package/dist/hubRevisions-BPoC6quI.js +364 -0
- package/dist/{identity-BIeAyilV.js → identity-BzB1N-Sn.js} +3 -3
- package/dist/index.edge-BiVQ9LoZ.js +198 -0
- package/dist/index.edge-CSGx6QOL.js +56 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-CzoLWbyl.js +238 -0
- package/dist/index.edge-D1biKw71.js +946 -0
- package/dist/index.edge-D2RirEwK.js +14 -0
- package/dist/iso-BGFmgtky.js +27 -0
- package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-D8KUrWxm.js} +1 -1
- package/dist/liquid.browser-1BcykmIN.js +4596 -0
- package/dist/manualTranscription-DN56fzgj.js +96 -0
- package/dist/{mcpProjection-BXiECnW0.js → mcpProjection-D2U50Pel.js} +1 -2
- package/dist/meta-CVgfTHQP.js +1030 -0
- package/dist/migrations-DJBPDwSR.js +32 -0
- package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-Bv_m1MRF.js} +12 -12
- package/dist/modeDefinition-Di95_IiU.js +44 -0
- package/dist/{models-D6d73jcW.js → models-D50yN8Ag.js} +41 -46
- package/dist/{node-UuMT2C3q.js → node-B4kSjHeD.js} +2 -2
- package/dist/{node-DytJOfYf.js → node-CBLSc-YH.js} +1 -1
- package/dist/notification-DjxbNoMR.js +143 -0
- package/dist/{openai-bt3ZRBZv.js → openai-D6Q-l6hT.js} +187 -187
- package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-BnoiTqYV.js} +21 -25
- package/dist/{openai-completions-BWsTNYyT.js → openai-completions-C68qs5rI.js} +26 -19
- package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-BSxU_aoV.js} +3 -3
- package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-D6hXen-k.js} +17 -15
- package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-BD8K7FAC.js} +7 -7
- package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-BPam8wyW.js} +1 -1
- package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-DylXiHy7.js} +7 -7
- package/dist/{hubChannel-Dn5NMpvu.js → packageApi-DYkaxP59.js} +33 -42
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/{pi-messages-BHAIkYBj.js → pi-messages-DaIlYYlO.js} +6 -6
- package/dist/piConfig-5tRPD0ov.js +126 -0
- package/dist/piSettings-ekBG5OeF.js +1 -0
- package/dist/platform-CQahdzpG.js +138 -0
- package/dist/pluginCatalog-BAALyedS.js +30 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-7_gVUeM9.js +1 -0
- package/dist/pluginProtocol-DVIfJnav.js +135 -0
- package/dist/portableConfig-0tnk9anb.js +49 -0
- package/dist/presetConfig-n-oiNd3h.js +541 -0
- package/dist/profileSources-D1rymC97.js +537 -0
- package/dist/{protocol-DUeE0Q8z.js → protocol-Cri0GpZR.js} +1 -2
- package/dist/{provider-env-DgfpjgTa.js → provider-env-DJb40UF7.js} +2 -2
- package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-jpvs7ixx.js} +1 -1
- package/dist/{puppeteer-cloudflare-B-GHrPGO.js → puppeteer-cloudflare-D4l8smMS.js} +3 -3
- package/dist/{server-BWJmxCrm.js → readiness-Ydw5zrKy.js} +4 -169
- package/dist/{rolldown-runtime-B-lAHAz2.js → rolldown-runtime-DbVrKiKs.js} +1 -1
- package/dist/{sanitize-unicode-Dl4ROF7y.js → sanitize-unicode-B1ZFaEtf.js} +1 -1
- package/dist/scaffoldRegistry-CeFe3Pf0.js +1240 -0
- package/dist/{schemas-Vj8-rCR4.js → schemas-D2dRon18.js} +1901 -53
- package/dist/server-AKM07WcM.js +466 -0
- package/dist/server-B0tM5Ygf.js +1300 -0
- package/dist/server-B8-vStCx.js +1116 -0
- package/dist/server-BAbdiL38.js +15108 -0
- package/dist/server-BCZ_R3kX.js +3326 -0
- package/dist/server-BGKAeB3M.js +492 -0
- package/dist/server-BIQhg1jS.js +26985 -0
- package/dist/server-BcPD_6a2.js +1533 -0
- package/dist/server-BeoA0QB-.js +580 -0
- package/dist/server-BsgvOpBF.js +24 -0
- package/dist/server-BtnOqSB5.js +156 -0
- package/dist/server-C-HBjWRo.js +2800 -0
- package/dist/{server-CWg0m_wq.js → server-C0Lt6nTt.js} +269 -1062
- package/dist/server-C8NPfG1H.js +148 -0
- package/dist/server-CKkaxOc0.js +978 -0
- package/dist/server-CMaWF5UA.js +1379 -0
- package/dist/server-CQPI6jIa.js +295 -0
- package/dist/{server-BhYE7Vqk.js → server-CQmb0lYL.js} +114 -176
- package/dist/server-CWR34Vx6.js +1884 -0
- package/dist/server-CZiAy2v5.js +641 -0
- package/dist/server-Cjtr0oVJ.js +584 -0
- package/dist/server-CkJQJ3Oo.js +571 -0
- package/dist/server-ClQQGtsI.js +679 -0
- package/dist/server-Cy2FhGBm.js +1744 -0
- package/dist/server-D8yEblCB.js +24 -0
- package/dist/server-DF0YIUeI.js +9603 -0
- package/dist/server-DRFESCq1.js +1527 -0
- package/dist/{server-zkcrP99W.js → server-Df1defzp.js} +89 -87
- package/dist/server-DgZd_TuT.js +189 -0
- package/dist/server-Dkc9Kth2.js +1830 -0
- package/dist/server-DlRePYOB.js +343 -0
- package/dist/{server-BpPEzRes.js → server-_HZm8wEC.js} +654 -745
- package/dist/{server-yABhJa2K.js → server-_jWkMESg.js} +60 -39
- package/dist/server-lgV6liTt.js +140 -0
- package/dist/server-nHPXbRDA.js +742 -0
- package/dist/server-p7qANgrf.js +877 -0
- package/dist/server-vhmQi3co.js +112 -0
- package/dist/{server-SA0dsIJ2.js → server-w1aKMZOs.js} +3 -10
- package/dist/serverPlugin-4nI5J6Zt.js +39622 -0
- package/dist/session-resources-BvR3cwiH.js +10 -0
- package/dist/{sessionConfig-DgnPcGBu.js → sessionConfig-UMlgu98q.js} +926 -844
- package/dist/{simple-options-DWrW31_K.js → simple-options-Cp5p46f9.js} +13 -6
- package/dist/space-C3Wnli1l.js +92 -0
- package/dist/sse-XlzXs1es.js +151 -0
- package/dist/{streaming-json-t4rzNHEp.js → streaming-json-CZyrX_Ux.js} +6 -6
- package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-Du6bka0h.js} +3 -3
- package/dist/{notification-valMY1zH.js → telemetry-CrTcxeA5.js} +2 -93
- package/dist/{transform-messages-CjTSwW9q.js → transform-messages-CBj9g2mx.js} +3 -16
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-BXjfQYeU.js → type-DppaYz6F.js} +955 -1187
- package/dist/type-yokaDI_F.js +7 -0
- package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-C7YFgvrX.js} +3 -3
- package/dist/{uuid-mkNGilLv.js → uuid-BVI0BZsx.js} +1 -1
- package/dist/{validation-BLnxgJU_.js → validation-QWuk6kwJ.js} +79 -74
- package/dist/vaultSettings-Bq8wkbDv.js +292 -0
- package/dist/voiceTools-BdJyfzwB.js +246 -0
- package/dist/web-B2sdV-F2.js +4 -0
- package/dist/worker.js +97821 -72579
- package/dist/workflow-DTCt4n6k.js +171 -0
- package/dist/workflowServices-RlswfHWp.js +300 -0
- package/package.json +55 -25
- package/wrangler.jsonc +16 -3
- package/dist/apiContracts-sG5b90Qa.js +0 -4451
- package/dist/assets/assets/channel-BOT7In0s.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-Dp9-QbR6.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-B9D9uWwn.js +0 -1
- package/dist/assets/assets/index-BlPEYpuN.css +0 -1
- package/dist/assets/assets/index-DS9w_Q1B.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CyUKtW7v.js +0 -9
- package/dist/assets/plugins/assets/base-DyDpY0zD.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-4JiBsb_c.js +0 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DwFz-UMh.js +0 -2
- package/dist/assets/plugins/slots/artifacts.50b639bb-CUtFC806.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.75108f21-B69GLfY_.js +0 -7
- package/dist/assets/plugins/slots/codemode.c58fb583-C0Gmb7_s.js +0 -9
- package/dist/assets/plugins/slots/domain.753f9f92-BTBYRLkE.js +0 -1
- package/dist/assets/plugins/slots/mcp.82cc1ff5-Ecacjn0a.js +0 -109
- package/dist/assets/plugins/slots/profile.ab16dcec-DIVXNHmh.js +0 -1
- package/dist/assets/plugins/slots/skill.62a0a1b3-BNr7DmPH.js +0 -4
- package/dist/backgroundWork-CSpsJ-Rg.js +0 -25
- package/dist/contextProjection-DDIQRgN4.js +0 -188
- package/dist/extensionFile-CacKVegY.js +0 -409
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-Ch6hdYYe.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-CCnwAjfF.js +0 -333
- package/dist/majorModes-DNQbxkpt.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-Bs2_X_dK.js +0 -16
- package/dist/platformFiles-CCGujP9o.js +0 -39
- package/dist/server-5hLs7M43.js +0 -656
- package/dist/server-B3iqBHOP.js +0 -118
- package/dist/server-Dv0EKLwc.js +0 -108
- package/dist/server-Y5A21sJf.js +0 -591
- package/dist/server-a1K226XK.js +0 -279
- package/dist/serverPlugin-DUc4gGep.js +0 -7279
- package/dist/value-Bd477RDX.js +0 -2247
package/README.md
CHANGED
|
@@ -1,262 +1,85 @@
|
|
|
1
1
|
# @agimon-ai/po-cloudflare
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
5
|
+
## Deploy a bearer-mode host
|
|
8
6
|
|
|
9
7
|
```bash
|
|
10
|
-
npm
|
|
8
|
+
npm install @agimon-ai/po-cloudflare wrangler
|
|
11
9
|
cp node_modules/@agimon-ai/po-cloudflare/wrangler.jsonc .
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
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
|
|
19
|
+
curl -fsS "$WORKER_URL/healthz"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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"]
|
package/dist/{BrowserWebSocketTransport-C2SC2VeJ.js → BrowserWebSocketTransport-B4heNdrp.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BrowserWebSocketTransport } from "./puppeteer-cloudflare-
|
|
1
|
+
export { BrowserWebSocketTransport } from "./puppeteer-cloudflare-D4l8smMS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-
|
|
2
|
-
import { t as packageVersion } from "./puppeteer-cloudflare-
|
|
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.
|
|
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: () => {} };
|