@agimon-ai/po-cloudflare 0.0.2-alpha.6 → 0.0.2-alpha.61
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 +36 -226
- 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-DG56Ik_S.js} +1 -1
- package/dist/agent-ByYwQm9e.js +294 -0
- package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-2G7nc-s5.js} +291 -63
- package/dist/apiContracts-UL8OtvVE.js +561 -0
- package/dist/{approval-CQ3ZuoTy.js → approval-BOLBq1s_.js} +15 -2
- package/dist/{approvalPrompt-CylV3C84.js → approvalPrompt-BjIDtxJ_.js} +1 -2
- package/dist/artifactFiles-Dm8Az2vP.js +1 -0
- package/dist/artifactsApi-BKpsQ9L5.js +200 -0
- package/dist/assets/assets/{CodeEditorView-DmiQpRTA.js → CodeEditorView-DQaAleTc.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-D_McGjml.js → abnfDiagram-WEYOIA3C-BxeswCiO.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-gVIKzQlZ.js → architecture-WOLXFQ4H-B3Tz-12B.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-BUfXNUZl.js → architectureDiagram-ZHVYKT53-CMET2rCY.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-Cox37KWU.js → blockDiagram-RJAE7QA3-BwTzwvmE.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-BMXW1HLH.js → c4Diagram-XDPPPE54-DraAlnC2.js} +2 -2
- package/dist/assets/assets/channel-CL7Ggfyr.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-9U0n6kgf.js → chunk-2E7WHVMD-C5gTqDTG.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-NcVKO8zH.js → chunk-4EMNKR2T-3Mg2ek21.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CW1kk5qw.js → chunk-55XCU76K-WU20a-BW.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-CCz8wRIL.js → chunk-7S6XSTFO-DebuuKe9.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-DgBrqmVh.js → chunk-AQDTSKZB-DSv9tAfZ.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-CBXT2iNJ.js → chunk-DSNLSHJZ-B1bAhitW.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-C_BqBOUX.js → chunk-HAGFOTED-CIk_u8s_.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-GUt9oOhb.js → chunk-HNE4Q36P-DP01cyLC.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-BuDw0ils.js → chunk-NQOKRVIF-DEqLuZyK.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-BAKzQ6wk.js → chunk-UHW7PFBP-BRXuCoYi.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-COpOkvUH.js → chunk-VQ5W62QI-NNF0Ncqm.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-rWu_OXkX.js → chunk-WQQL4CDK-BjdH0wcA.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-DvxoKowj.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-BjYH_5H9.js → chunk-YZO67HFG-CCtWnrwN.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-GqvxL13D.js → chunk-ZAUX2LTX-Rqgny6JX.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-BgZzW7mP.js → chunk-ZCHMQSOR-Bryb00uS.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Dn_3LNo9.js → classDiagram-v2-4MYWR3UA-CsmtkrfF.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-C7iN1DKz.js → cose-bilkent-JH36ORCC-3W8mSlEq.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-BdGglps9.js → cynefin-EF2NZ3EQ-EeQQ35yj.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-CODRvolD.js → cynefinDiagram-WF24UDRP-DP17kx6c.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DICCLR_B.js → dagre-NK4GIZVX-BZlHjrN8.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-Cuu7y8kp.js → diagram-CBK3MWTC-DMwDzknh.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-Co-gEXWG.js → diagram-I5XIIV2D-C-ekuQdh.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DLzHS2dC.js → diagram-ODIL2UCW-aHGgII4d.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-VPGYLgRR.js → diagram-PFBEJUXE-O5xiN_py.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-CAFHRP65.js → diagram-RJA3I4VV-SzC2bIqj.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-DHPgFeXG.js → diagram-TYUNFSNR-B1_ii31U.js} +2 -2
- package/dist/assets/assets/{dist-CsK-OArm.js → dist-4Fny9Dk9.js} +2 -2
- package/dist/assets/assets/{dist-DBhZXCPy.js → dist-BAlUeWvZ.js} +2 -2
- package/dist/assets/assets/{dist-OlJyPZFG.js → dist-BEUXYxXC.js} +2 -2
- package/dist/assets/assets/{dist-BoybwlWs.js → dist-BcauMvL0.js} +2 -2
- package/dist/assets/assets/{dist-D1c_ojo9.js → dist-DH9nYyNr.js} +2 -2
- package/dist/assets/assets/{dist-TTI4PA9X.js → dist-DS5k7lxb.js} +2 -2
- package/dist/assets/assets/{dist-BsPA5hGx.js → dist-DY7PewA4.js} +2 -2
- package/dist/assets/assets/{dist-Bba3ttS_.js → dist-DsYtGX5c.js} +2 -2
- package/dist/assets/assets/{dist-MFLiZ52E.js → dist-ff2tx-IA.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-CcxUJCKU.js → ebnfDiagram-V4P3TTPT-CSAEVKnf.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-nCf3J83P.js → elk-QONTBCTQ-CI1V6i04.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-ts83KAct.js → erDiagram-KYQIGQAA-BlQA3f5T.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-DtQHCR2Y.js → eventmodeling-K75KTNOO-lkF9HViO.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-CwEhoifx.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-DTwpOOwd.js → ganttDiagram-R7GPNTJY-CAsN_3i0.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-BvLGlIfO.js → gitGraph-VSP46ZUC-zBlvct3Y.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B_iG68l-.js → gitGraphDiagram-PDYL7XHY-CJ7BpLw2.js} +2 -2
- package/dist/assets/assets/index-BF6bKgVF.css +1 -0
- package/dist/assets/assets/index-UI5xeAQG.js +256 -0
- package/dist/assets/assets/{info-OHQRW6UA-DU_WBabQ.js → info-OHQRW6UA-01ncSd6i.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-CaJYx3hI.js → infoDiagram-MVDRKAX5-Cs5thwcS.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-cdyVQdFj.js → ishikawaDiagram-HPEHV2GE-C4HepK7H.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CpM7rKxb.js → journeyDiagram-BOSHW7O7-D5meBKVr.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-B-yDxaDQ.js → kanban-definition-FNSA4HC5-BuqPrEUB.js} +2 -2
- package/dist/assets/assets/{line-NroP0Qi5.js → line-BllfX1OA.js} +2 -2
- package/dist/assets/assets/{linear-B1gn1cLy.js → linear-D8xLqqQv.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-CObnpkbE.js → mermaid-parser.core-BumrzI4N.js} +4 -4
- package/dist/assets/assets/{mermaid.core-Br4HhOV-.js → mermaid.core-zF-Fil9q.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-Dn3NqcZi.js → mindmap-definition-6OY57UG3-CnVfFFTS.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-aSl6d1es.js → packet-JDAUHWVQ-B_JQtBEG.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-D2dkLzz7.js → pegDiagram-ECIUJNBX-DAYRJr3E.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-pNMQe5GV.js → pie-XZMESJXO-BmREzv2H.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-BFK6d-4D.js → pieDiagram-GNMPY74T-CZjTcgpr.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-Bwo0QczR.js → quadrantDiagram-D57K4MC3-DuOxHZ2Z.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-CMx-orjJ.js → radar-ABXABTNO-B_Jw9VF-.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-B8GWKeu0.js → railroad-I3PHUGI6-Dh9FqhEA.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-BJvE9wvc.js → railroad-abnf-LNEFI6M7-DfikyNXL.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-5csaEjvi.js → railroad-ebnf-DWYD2UWJ-BWyP6IZL.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-CY_X4Nq0.js → railroad-peg-JR7BVNR7-CcnFiyWg.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BFusKdVb.js → railroadDiagram-Y72NRBL7-CSlwSR4E.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-Cfiz_wUz.js → requirementDiagram-EQYSW5RA-H_VW3WqE.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-BbrfwNoB.js → sankeyDiagram-SY24JHO5-D3mTctoF.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-CtZ3W0y7.js → sequenceDiagram-BLEHNHQU-DZ30nSyh.js} +2 -2
- package/dist/assets/assets/{src-D2wAxz8y.js → src-DdPwPRug.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-bX1wp_zg.js → stateDiagram-v2-A6IESKWZ-DC9qGH6w.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-BtcUcikR.js → swimlanes-B3ENRKFQ-Cw6GEEO2.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-Bm4wqCxQ.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-EQBXzQwr.js → timeline-definition-JXYKGLGB-DYmoFucH.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-tP1vOWJO.js → treeView-D4JQ5SDB-BOULoFHK.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-Dy8Gn3Kt.js → treemap-SAJKECNS-CkOfp7d1.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-ufbbcOVo.js → usecaseDiagram-WPOLBNNX-DOG8pgG-.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CIwvBUjw.js → vennDiagram-Q3Y3IDCW-IGLmSEik.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-579sP1gj.js → wardley-7MLQ67FV-DjqEu7vY.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-BTfgxhZW.js → wardleyDiagram-IVAIDKWA-BPL-2h_a.js} +2 -2
- package/dist/assets/assets/{webpack-CYI_e72F.js → webpack-wsPhc6sm.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-BlGFco-o.js → xychartDiagram-4URNHDU4-DSz_4JTF.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +8 -2
- package/dist/assets/plugins/assets/base-ByEdw6HI.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-Csn-dFGd.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.dd60ec90-B6YWlVLq.js +2 -0
- package/dist/assets/plugins/slots/artifacts.a078f1a5-BdDe05c3.js +1 -0
- package/dist/assets/plugins/slots/author.497633d0-BxFEF8EH.js +93 -0
- package/dist/assets/plugins/slots/autocompact.86aeccf4-CqlqLobW.js +1 -0
- package/dist/assets/plugins/slots/backdrop-bamboo.f7722a9f-DsuITD1U.js +1 -0
- package/dist/assets/plugins/slots/browse.5fcf164c-EUTcrFPG.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.0a7f0b8e-C86An7SR.js +7 -0
- package/dist/assets/plugins/slots/calendar.e7199e1d-CSI9rf82.js +2 -0
- package/dist/assets/plugins/slots/codemode.ff16ac06-CFe6i6R0.js +11 -0
- package/dist/assets/plugins/slots/domain.3ddea842-Ct0RImuP.js +1 -0
- package/dist/assets/plugins/slots/edit.c5b0b072-B2goFhrw.js +7 -0
- package/dist/assets/plugins/slots/files.8ffcdcc0-CMyOQi9X.js +2 -0
- package/dist/assets/plugins/slots/goal.423c7a26-IZp00lmO.js +1 -0
- package/dist/assets/plugins/slots/grep.95f470b3-CCyPRiHD.js +1 -0
- package/dist/assets/plugins/slots/help.03b9ba99-qTOzl6ef.js +3 -0
- package/dist/assets/plugins/slots/log.19bda339-DkPr057p.js +4 -0
- package/dist/assets/plugins/slots/mcp.ffbe405a-rSj9vE7X.js +55 -0
- package/dist/assets/plugins/slots/plan.5eac6563-B9vk7eFM.js +3 -0
- package/dist/assets/plugins/slots/profile.176710dd-2tOqy1ty.js +1 -0
- package/dist/assets/plugins/slots/prompts.2c187969-DMLqmmyi.js +38 -0
- package/dist/assets/plugins/slots/read.1629d556-BoJCeGbK.js +1 -0
- package/dist/assets/plugins/slots/runner.962030e5-Cs-hKU4x.js +9 -0
- package/dist/assets/plugins/slots/scaffold.14b5f76b-B5pwuW9_.js +1 -0
- package/dist/assets/plugins/slots/sessions.fc763f42-CAIcYjIQ.js +1 -0
- package/dist/assets/plugins/slots/skill.f5396fde-C_qIdj3U.js +4 -0
- package/dist/assets/plugins/slots/space.d7bddb51-C_0Gvms7.js +1 -0
- package/dist/assets/plugins/slots/subagents.d815a296-DIuJJwMT.js +7 -0
- package/dist/assets/plugins/slots/vault.57fd9047-wN8ubBx6.js +1 -0
- package/dist/assets/plugins/slots/voice.b709d05c-CNKtRLMw.js +1 -0
- package/dist/assets/plugins/slots/workflows.b5ffdb53-B_b-w0DZ.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-VGMNGI5u.js} +2 -3
- package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-DrJddYQ4.js} +2 -2
- package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-CcUYAmFp.js} +13 -13
- package/dist/backgroundWork-9dPcpemH.js +49 -0
- package/dist/browser-BWf8OMfl.js +3 -0
- package/dist/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
- package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
- package/dist/childProcess-DDkq6xzI.js +32 -0
- package/dist/childSession-BrDCrNtL.js +25 -0
- package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-DB0OwvlW.js} +5 -5
- package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-D5kettrv.js} +3 -3
- package/dist/{codemode-CFVDmyGm.js → codemode-BYfwPsvo.js} +1 -1
- package/dist/coerce-DtDui0m9.js +13 -0
- package/dist/contextContributions-C1bsEJef.js +13 -0
- package/dist/contract-CWUh8tPW.js +7 -0
- package/dist/contracts-HPBDn4qw.js +19 -0
- package/dist/contracts-etZKd4gv.js +40 -0
- package/dist/cordisHost-D6A6qBZs.js +25 -0
- package/dist/delegation-DMoqEC7D.js +86 -0
- package/dist/{diagnostics-DPTP-yrt.js → diagnostics-DT_N5BqI.js} +2 -2
- package/dist/{dist-PDDFdqDX.js → dist-B6bBTDba.js} +1 -1
- package/dist/{dist-BVBi6VMV.js → dist-BmHPu-RW.js} +1 -1
- package/dist/{server-Cg07O2W6.js → dist-C6IqjC-m.js} +1 -546
- package/dist/{dist-Dvx5mlIR.js → dist-CLdzaXdw.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-BV3haPEf.js} +1 -1
- package/dist/{error-body-DQZRsyL5.js → error-body-DvA_oGc5.js} +26 -4
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/exports-BMVNpfVF.js +9 -0
- package/dist/exports-CAQONbBE.js +1 -0
- package/dist/{exports-LjvSY7Y6.js → exports-CnG-r5ip.js} +29 -9
- package/dist/exports-CxFP3nL8.js +34 -0
- package/dist/{remoteMcp-DqE2xFWS.js → exports-D-rpoSS4.js} +1632 -758
- package/dist/extensionFile-BBNpTO9-.js +121 -0
- package/dist/{factory-Cs8iaUtc.js → factory-BZUWo-x_.js} +1 -1
- package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-CPfEKjCr.js} +1 -1
- package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-TmoHbRui.js} +9 -9
- package/dist/{google-shared-S7bqOccz.js → google-shared-BgJ0m819.js} +6 -6
- package/dist/{google-vertex-BcMU_DMb.js → google-vertex-DSG2Vagw.js} +10 -10
- package/dist/{domains-B6Ae4swm.js → harnessState-B-zcBgTk.js} +157 -37
- package/dist/{harnessStore-Ccbia9_u.js → harnessStore-C-wH8FmH.js} +4 -5
- package/dist/{hash-B3RRpLS2.js → hash-Zpy-D8On.js} +1 -1
- package/dist/{headers-BEuxFxDI.js → headers-FrAgcbwZ.js} +1 -1
- package/dist/help-DOYPIBov.js +1 -0
- package/dist/help-Dr1jC1_5.js +100 -0
- package/dist/home-kwZFHqOx.js +60 -0
- package/dist/http-f0rN2VPq.js +64 -0
- package/dist/hubChannel-DckivLhM.js +21 -0
- package/dist/hubRevisions-IxKkKYho.js +364 -0
- package/dist/{identity-BIeAyilV.js → identity-XFc4sLVo.js} +3 -3
- package/dist/index.edge-B_kyYaIq.js +56 -0
- package/dist/index.edge-C55j6h6c.js +238 -0
- package/dist/index.edge-Ci7WVOyg.js +185 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-D2RirEwK.js +14 -0
- package/dist/index.edge-IJhyHQGb.js +946 -0
- package/dist/iso-jKKsAIB9.js +27 -0
- package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-C8oCMhGP.js} +1 -1
- package/dist/layeredConfig-BGWvjJkz.js +1335 -0
- package/dist/liquid.browser-1BcykmIN.js +4596 -0
- package/dist/{majorModes-CCnwAjfF.js → majorModes-BtKGKtcA.js} +201 -11
- package/dist/majorModes-Dsvojez6.js +1 -0
- package/dist/manualTranscription-C82hiuBF.js +96 -0
- package/dist/{mcpProjection-BXiECnW0.js → mcpProjection-RpZTvzAi.js} +1 -2
- package/dist/meta-CVgfTHQP.js +1030 -0
- package/dist/migrations-B0potTsS.js +32 -0
- package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-B8pchf0Y.js} +12 -12
- package/dist/modeDefinition-C3Zbrw48.js +44 -0
- package/dist/{models-D6d73jcW.js → models-DGReC_qy.js} +41 -46
- package/dist/{node-DytJOfYf.js → node-CBLSc-YH.js} +1 -1
- package/dist/{node-UuMT2C3q.js → node-DnmtcrVH.js} +2 -2
- package/dist/notification-C0flTdzg.js +143 -0
- package/dist/{openai-bt3ZRBZv.js → openai-D6Q-l6hT.js} +187 -187
- package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-BT4rzzPX.js} +21 -25
- package/dist/{openai-completions-BWsTNYyT.js → openai-completions-CL59ZjJR.js} +26 -19
- package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-DH6ExlAC.js} +3 -3
- package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-Yn7OV25O.js} +17 -15
- package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-Cvsbni4_.js} +7 -7
- package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-TRj0BKPF.js} +1 -1
- package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-CQEhYdHi.js} +7 -7
- package/dist/{hubChannel-Dn5NMpvu.js → packageApi-Do9p4Oq_.js} +33 -42
- package/dist/personTimeZone-DPO5b_jG.js +23 -0
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/{pi-messages-BHAIkYBj.js → pi-messages-COe6DyoX.js} +6 -6
- package/dist/piConfig-DmW_97ZR.js +126 -0
- package/dist/piSettings-CARZPHZV.js +1 -0
- package/dist/platform-CuoTN7x4.js +138 -0
- package/dist/pluginCatalog-BayyHV8O.js +30 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-BB_0pFh3.js +135 -0
- package/dist/pluginProtocol-UAoLIr5M.js +1 -0
- package/dist/portableConfig-0tnk9anb.js +49 -0
- package/dist/{protocol-DUeE0Q8z.js → protocol-DLBzw7W0.js} +1 -2
- package/dist/{provider-env-DgfpjgTa.js → provider-env-3chZbmsY.js} +2 -2
- package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-BBTrjo8Y.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-B91An5dg.js} +1 -1
- package/dist/scaffoldRegistry-DIHoPklB.js +1240 -0
- package/dist/{schemas-Vj8-rCR4.js → schemas-BCA2y3gc.js} +1901 -53
- package/dist/server--kNz24j8.js +189 -0
- package/dist/server-2UwYT6-h.js +343 -0
- package/dist/server-5ULznWOP.js +1527 -0
- package/dist/server-6cCqiUyg.js +15108 -0
- package/dist/server-7Gw4rLwu.js +1320 -0
- package/dist/server-80OPm5xU.js +8816 -0
- package/dist/server-B08NENPW.js +24789 -0
- package/dist/server-B6EEoMec.js +295 -0
- package/dist/server-B8cZvEx3.js +1826 -0
- package/dist/server-BETnXd2c.js +1533 -0
- package/dist/{server-BhYE7Vqk.js → server-BczBXFub.js} +55 -46
- package/dist/{server-CWg0m_wq.js → server-CL7E0YGO.js} +266 -1059
- package/dist/server-CMWzpe8h.js +3125 -0
- package/dist/server-Ca6LOjeq.js +493 -0
- package/dist/server-CaWKU3vh.js +1302 -0
- package/dist/server-Cl33ZNkb.js +978 -0
- package/dist/{server-SA0dsIJ2.js → server-CpRuu9Xr.js} +3 -10
- package/dist/server-Cq9boyvs.js +1116 -0
- package/dist/server-CsulLoTm.js +581 -0
- package/dist/server-D3ctsta-.js +1477 -0
- package/dist/server-DGMogvc0.js +641 -0
- package/dist/server-DNyGuMJ3.js +1885 -0
- package/dist/server-DPMzallL.js +882 -0
- package/dist/server-DTA9U9yw.js +576 -0
- package/dist/server-DTm9et3d.js +140 -0
- package/dist/server-DToAGFRq.js +161 -0
- package/dist/server-DU4xxI9i.js +2800 -0
- package/dist/{server-yABhJa2K.js → server-DcGjGVKb.js} +47 -27
- package/dist/{server-BpPEzRes.js → server-Df_0FBLd.js} +571 -127
- package/dist/server-DjZF1RyY.js +148 -0
- package/dist/server-Dq9zB1DF.js +584 -0
- package/dist/server-DtB0_9oY.js +679 -0
- package/dist/{server-Dv0EKLwc.js → server-OJff9SUr.js} +14 -5
- package/dist/server-T07vmazG.js +743 -0
- package/dist/{server-zkcrP99W.js → server-ZI4fUazO.js} +11 -9
- package/dist/serverPlugin-PbCBhfk_.js +41311 -0
- package/dist/session-resources-Ckd8uUQs.js +10 -0
- package/dist/sessionApiContracts-DVSvMKcR.js +1150 -0
- package/dist/{sessionConfig-DgnPcGBu.js → sessionConfig-C0Rp7QZ_.js} +607 -576
- package/dist/{simple-options-DWrW31_K.js → simple-options-DvQPdbMC.js} +13 -6
- package/dist/space-wRK0a4Rf.js +92 -0
- package/dist/sse-XlzXs1es.js +151 -0
- package/dist/{streaming-json-t4rzNHEp.js → streaming-json-CF5oj8DO.js} +6 -6
- package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-Bg2woRPx.js} +3 -3
- package/dist/{notification-valMY1zH.js → telemetry-CrTcxeA5.js} +2 -93
- package/dist/{transform-messages-CjTSwW9q.js → transform-messages-COCl_pQj.js} +3 -16
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-BXjfQYeU.js → type-BGcfQZzN.js} +924 -1186
- package/dist/type-CPJTYQy2.js +3661 -0
- package/dist/type-yokaDI_F.js +7 -0
- package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-BZlYlQf5.js} +3 -3
- package/dist/{uuid-mkNGilLv.js → uuid-l3LNpywg.js} +1 -1
- package/dist/{validation-BLnxgJU_.js → validation-CL1hT5_Q.js} +8 -3
- package/dist/vaultSettings-EYLub8AE.js +292 -0
- package/dist/voiceTools-DJlHuAbN.js +246 -0
- package/dist/web-Dw4RzQ8f.js +4 -0
- package/dist/worker.js +126561 -102251
- package/dist/workflow-CyOC8D4I.js +171 -0
- package/package.json +48 -25
- package/wrangler.jsonc +16 -3
- package/dist/apiContracts-sG5b90Qa.js +0 -4451
- package/dist/assets/assets/channel-BD2pQJny.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BDondKXr.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-DxVWPOjy.js +0 -1
- package/dist/assets/assets/index-BlJDNk3X.js +0 -155
- package/dist/assets/assets/index-BlPEYpuN.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BDQGhEaU.js +0 -9
- package/dist/assets/plugins/assets/base-DyDpY0zD.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-BLAOxowc.js +0 -1
- package/dist/assets/plugins/slots/approval.84282180-BXA39WXD.js +0 -2
- package/dist/assets/plugins/slots/artifacts.532676d0-BK_GSsnF.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.da5740fd-DeOODOv3.js +0 -7
- package/dist/assets/plugins/slots/codemode.41a2cf40-CEstshZV.js +0 -9
- package/dist/assets/plugins/slots/domain.e6cfe8c1-839gOmDs.js +0 -1
- package/dist/assets/plugins/slots/mcp.721c802b-C-73hyKW.js +0 -109
- package/dist/assets/plugins/slots/profile.14314978-CQWN3l2V.js +0 -1
- package/dist/assets/plugins/slots/skill.882a5c08-DgcXpDBL.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-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-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,72 @@
|
|
|
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
|
-
# 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
|
|
16
|
-
npx wrangler secret put PO_PROVIDER_API_KEY
|
|
17
|
-
npx wrangler deploy --var PO_DEFAULT_PROVIDER:openrouter --var PO_DEFAULT_MODEL:<model> \
|
|
18
|
-
--var PO_PROVIDER_BASE_URL:https://openrouter.ai/api/v1
|
|
19
|
-
curl -fsS https://<your-worker>/healthz # ok
|
|
20
10
|
```
|
|
21
11
|
|
|
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).
|
|
29
|
-
|
|
30
|
-
### Signed offline bundle and pairing
|
|
31
|
-
|
|
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:
|
|
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.
|
|
35
13
|
|
|
36
14
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|
|
46
|
-
|
|
47
|
-
To sign your own build, make an EC P-256 key once, keep it out of git, and pass it to the build:
|
|
48
|
-
|
|
49
|
-
```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)"
|
|
15
|
+
npx wrangler secret put PO_ATTACH_TOKEN
|
|
16
|
+
npx wrangler secret put PO_PROVIDER_API_KEY
|
|
17
|
+
npx wrangler deploy --var PO_DEFAULT_PROVIDER:openrouter --var PO_DEFAULT_MODEL:"$MODEL_ID" \
|
|
18
|
+
--var PO_PROVIDER_BASE_URL:https://openrouter.ai/api/v1
|
|
19
|
+
curl -fsS "$WORKER_URL/healthz"
|
|
52
20
|
```
|
|
53
21
|
|
|
54
|
-
|
|
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
|
|
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.
|
|
74
23
|
|
|
75
|
-
|
|
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.
|
|
24
|
+
Scripts use `Authorization: Bearer <token>`; query-string tokens are refused. Session sockets use `/api/workspaces/<workspace-id>/sessions/<session-id>/ws`.
|
|
82
25
|
|
|
83
|
-
|
|
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.
|
|
26
|
+
## Signed browser delivery
|
|
89
27
|
|
|
90
|
-
|
|
28
|
+
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:
|
|
91
29
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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.
|
|
30
|
+
```bash
|
|
31
|
+
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)"
|
|
32
|
+
```
|
|
113
33
|
|
|
114
|
-
|
|
34
|
+
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.
|
|
115
35
|
|
|
116
|
-
|
|
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.
|
|
36
|
+
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.
|
|
143
37
|
|
|
144
|
-
|
|
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.
|
|
38
|
+
## Optional browser and shell capabilities
|
|
151
39
|
|
|
152
|
-
`
|
|
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.
|
|
40
|
+
`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.
|
|
165
41
|
|
|
166
|
-
`
|
|
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.
|
|
42
|
+
`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.
|
|
170
43
|
|
|
171
|
-
|
|
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.
|
|
44
|
+
`/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.
|
|
178
45
|
|
|
179
|
-
|
|
46
|
+
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.
|
|
180
47
|
|
|
181
|
-
|
|
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.
|
|
48
|
+
## Signed-in organizations
|
|
186
49
|
|
|
187
|
-
|
|
50
|
+
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.
|
|
188
51
|
|
|
189
|
-
|
|
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.
|
|
52
|
+
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.
|
|
196
53
|
|
|
197
|
-
|
|
54
|
+
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.
|
|
198
55
|
|
|
199
|
-
|
|
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.
|
|
56
|
+
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.
|
|
206
57
|
|
|
207
|
-
|
|
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.
|
|
58
|
+
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.
|
|
215
59
|
|
|
216
|
-
|
|
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.
|
|
60
|
+
## Federation and availability
|
|
225
61
|
|
|
226
|
-
|
|
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.
|
|
62
|
+
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.
|
|
234
63
|
|
|
235
|
-
|
|
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.
|
|
64
|
+
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.
|
|
242
65
|
|
|
243
|
-
|
|
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.
|
|
66
|
+
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).
|
|
246
67
|
|
|
247
|
-
|
|
68
|
+
## Development and verification
|
|
248
69
|
|
|
249
|
-
`tests
|
|
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.
|
|
70
|
+
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.
|
|
257
71
|
|
|
258
|
-
|
|
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.
|
|
72
|
+
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.1_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_67b3c0b417e1d5ed84cdab4a330ad8fd/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: () => {} };
|