@agimon-ai/po-cloudflare 0.0.2-alpha.4 → 0.0.2-alpha.41
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 +30 -6
- 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-BPGaXWA5.js} +1 -1
- package/dist/agent-COvApaVM.js +3878 -0
- package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-BxS7qXqx.js} +291 -63
- package/dist/apiContracts-BCr_ULWJ.js +1603 -0
- package/dist/{approval-Eu7UgGL-.js → approval-Cg-PCa5M.js} +19 -3
- package/dist/{approvalPrompt-Bg1JrEEY.js → approvalPrompt-D7peArNh.js} +1 -2
- package/dist/artifactFiles-CbGIbj93.js +1 -0
- package/dist/assets/assets/{CodeEditorView-rEfljuRK.js → CodeEditorView-J2_5q1WT.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-J6Iu5p17.js → abnfDiagram-WEYOIA3C-_gWnN1r-.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-DKj_xMR1.js → architecture-WOLXFQ4H-DOEVRwUT.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53--D1MzuBo.js → architectureDiagram-ZHVYKT53-BI3jFrO0.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-CrWO0t-Q.js → blockDiagram-RJAE7QA3-B_PkpROK.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-CBMOJREz.js → c4Diagram-XDPPPE54-DhSjpw5T.js} +2 -2
- package/dist/assets/assets/channel-CVgc46nD.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-CR9NMk46.js → chunk-2E7WHVMD-BrDo2biY.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-B4D0falO.js → chunk-4EMNKR2T-CdlJ35FL.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CKrttFen.js → chunk-55XCU76K-D9eb1FTZ.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-BPNrdjSb.js → chunk-7S6XSTFO-VVyUsBaV.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-Ddx2gPU_.js → chunk-AQDTSKZB-DJmW9j7o.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-iQg3RbZ_.js → chunk-DSNLSHJZ-bQ4kpxiE.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-CGlDRwnk.js → chunk-HAGFOTED-CXTtS6oc.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-CN7VMEsn.js → chunk-HNE4Q36P-CjJ9StOJ.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-DQKmIS4j.js → chunk-NQOKRVIF-CEttWQFT.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-BKSG_d1a.js → chunk-UHW7PFBP-CJZzmAtC.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-AbFHiDOg.js → chunk-VQ5W62QI-Bp76YSjS.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-C5a4DmCb.js → chunk-WQQL4CDK-wm0yUUcN.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BkEG_5cB.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-UbKezTdY.js → chunk-YZO67HFG-BmXRKyV5.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-BShGGpRc.js → chunk-ZAUX2LTX-DJCmQeWP.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-BmV-PDP0.js → chunk-ZCHMQSOR-D3pxm97L.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DB-cfBNq.js → classDiagram-v2-4MYWR3UA-DxMxFm6d.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-Dprqh48h.js → cose-bilkent-JH36ORCC-Ck_lCjTR.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-Bz4CND4n.js → cynefin-EF2NZ3EQ-CgjU58bC.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Cv0Tq-0q.js → cynefinDiagram-WF24UDRP-CUP0NVKn.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-H4d8oeNm.js → dagre-NK4GIZVX-DkvcOoGp.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-D75OthTM.js → diagram-CBK3MWTC-CFl4wUVN.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-CB_W2jXU.js → diagram-I5XIIV2D-CldqmFr0.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DPO0lYZ-.js → diagram-ODIL2UCW-CPieOVfl.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-DJ9olXAC.js → diagram-PFBEJUXE-DgTWsRKS.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-DL3974PI.js → diagram-RJA3I4VV-DmxD5RVL.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-ZuYESp4p.js → diagram-TYUNFSNR-DC_QoE9Q.js} +2 -2
- package/dist/assets/assets/{dist-CeotBqYt.js → dist-BoXKbh_9.js} +2 -2
- package/dist/assets/assets/{dist-CdrEbsAL.js → dist-C-aQ-0ab.js} +2 -2
- package/dist/assets/assets/{dist-CXqaT1wB.js → dist-CHKWIm0j.js} +2 -2
- package/dist/assets/assets/{dist-BnkGKHOV.js → dist-CeZ4Dyeb.js} +2 -2
- package/dist/assets/assets/{dist-C8iSs-hT.js → dist-DtfkqVX-.js} +2 -2
- package/dist/assets/assets/{dist-G3vL_xw7.js → dist-JVpnlOn0.js} +2 -2
- package/dist/assets/assets/{dist-DvCNYjgK.js → dist-L_xVrjFQ.js} +2 -2
- package/dist/assets/assets/{dist-zXhaMKmO.js → dist-_Q_eXWhh.js} +2 -2
- package/dist/assets/assets/{dist-D2iSi_lg.js → dist-m3yHSyxW.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-DNfHKEsm.js → ebnfDiagram-V4P3TTPT-BdrqTmnC.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-C0FX9D60.js → elk-QONTBCTQ-BBnxKz3T.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-BI1O9lW0.js → erDiagram-KYQIGQAA-DX45_hK2.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-BmWt-aOv.js → eventmodeling-K75KTNOO-EIuQjWpD.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-Bdol35Vj.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-pM7PmQ6B.js → ganttDiagram-R7GPNTJY-CveiRngd.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-D0QXMQxv.js → gitGraph-VSP46ZUC-D4yRXN3j.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BsMltgt3.js → gitGraphDiagram-PDYL7XHY-D5DsbgCK.js} +2 -2
- package/dist/assets/assets/index-BDUEIar6.css +1 -0
- package/dist/assets/assets/index-BfW-zJ-Y.js +200 -0
- package/dist/assets/assets/{info-OHQRW6UA-Dp5Eu5PX.js → info-OHQRW6UA-C0PnFIek.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-TgXRfZiq.js → infoDiagram-MVDRKAX5-DpwE-14N.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-Qzrmih4p.js → ishikawaDiagram-HPEHV2GE-X1GxSc7S.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-BksI3QOT.js → journeyDiagram-BOSHW7O7-0cwzSgYT.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-l_IuN5_k.js → kanban-definition-FNSA4HC5-C-U-zp3B.js} +2 -2
- package/dist/assets/assets/{line-BDKssGoM.js → line-CxMWkCyB.js} +2 -2
- package/dist/assets/assets/{linear-C9vmtzBC.js → linear-BpB8rX3C.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-O1yFX7K_.js → mermaid-parser.core-CmAfQFuk.js} +4 -4
- package/dist/assets/assets/{mermaid.core-CIq57361.js → mermaid.core-BTk7Bw6z.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-BkVuZ010.js → mindmap-definition-6OY57UG3-B2sMo2jC.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-PPNcSWeV.js → packet-JDAUHWVQ-BzzVSUon.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-ClwrHXhM.js → pegDiagram-ECIUJNBX-VIiN2lIU.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-BAE4Cy9j.js → pie-XZMESJXO-B-jSi7x9.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-CvQ62Knb.js → pieDiagram-GNMPY74T-190bpqyE.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CzAyT5ZB.js → quadrantDiagram-D57K4MC3-CHsQo88q.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-CoEe8B7b.js → radar-ABXABTNO-CW2EglFo.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-BbK5J8H5.js → railroad-I3PHUGI6-C1b0ftsy.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-DlGngfop.js → railroad-abnf-LNEFI6M7-DTT_CP-y.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-BRk4ifMx.js → railroad-ebnf-DWYD2UWJ-RCPkVVI9.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-Rz-3vbj2.js → railroad-peg-JR7BVNR7-DixVu6c8.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-DQISBRHH.js → railroadDiagram-Y72NRBL7-DbdG32pF.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-DcK4FnTB.js → requirementDiagram-EQYSW5RA-U_x9QFHY.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-N2EXBOYb.js → sankeyDiagram-SY24JHO5-qfiLv1KI.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-CMJ2EqC_.js → sequenceDiagram-BLEHNHQU-DMBomC37.js} +2 -2
- package/dist/assets/assets/{src-Df9VBjd7.js → src-DaNTNLrJ.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-D6Cxm8wj.js → stateDiagram-v2-A6IESKWZ-BgAnpbx_.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-BybuzSPd.js → swimlanes-B3ENRKFQ-Dihe5c6o.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-Cgg-RsbC.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-BzjkWUdz.js → timeline-definition-JXYKGLGB-BISDYTXW.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-DIDWwDtU.js → treeView-D4JQ5SDB-DMSWtiHi.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-SWP4JszI.js → treemap-SAJKECNS-0SsdPE-3.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-ZfCxSJdE.js → usecaseDiagram-WPOLBNNX-CY0WaaL_.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-o44wkgGH.js → vennDiagram-Q3Y3IDCW-DXXcHfKI.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-0zKRsI4Z.js → wardley-7MLQ67FV-BzVdmZfO.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CyBVyB40.js → wardleyDiagram-IVAIDKWA-BiDG6ka7.js} +2 -2
- package/dist/assets/assets/{webpack-C4nkEwJD.js → webpack-CUCfmjk-.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-BMvRihYC.js → xychartDiagram-4URNHDU4-DTR1zwTC.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-LmdY6uBA.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -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-Ka6K4y6i.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.dd60ec90-D_Iw2VJn.js +2 -0
- package/dist/assets/plugins/slots/artifacts.a078f1a5-CS9a_zNA.js +1 -0
- package/dist/assets/plugins/slots/author.497633d0-BFa_H5ZE.js +93 -0
- package/dist/assets/plugins/slots/autocompact.86aeccf4-B0hGnck7.js +1 -0
- package/dist/assets/plugins/slots/browse.5fcf164c-CVRtiGzR.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.0a7f0b8e-CJTf-98P.js +7 -0
- package/dist/assets/plugins/slots/codemode.ff16ac06-BRYQKsyR.js +11 -0
- package/dist/assets/plugins/slots/domain.3ddea842-02QPrhJk.js +1 -0
- package/dist/assets/plugins/slots/edit.c5b0b072-CETRuGf0.js +7 -0
- package/dist/assets/plugins/slots/files.8ffcdcc0-DgGX5poR.js +2 -0
- package/dist/assets/plugins/slots/goal.423c7a26-D67j7FqW.js +1 -0
- package/dist/assets/plugins/slots/grep.95f470b3-CmhMD_DW.js +1 -0
- package/dist/assets/plugins/slots/help.03b9ba99-os14i52k.js +3 -0
- package/dist/assets/plugins/slots/log.19bda339-DvprmzHk.js +4 -0
- package/dist/assets/plugins/slots/mcp.ffbe405a-CcCIF5cJ.js +109 -0
- package/dist/assets/plugins/slots/plan.5eac6563-CqYx6E9R.js +3 -0
- package/dist/assets/plugins/slots/{profile.ab16dcec-Cu6ev2uW.js → profile.176710dd-BDgBh-Su.js} +1 -1
- package/dist/assets/plugins/slots/prompts.2c187969-Bls5s3m1.js +3 -0
- package/dist/assets/plugins/slots/read.1629d556-Bg9NIMAZ.js +1 -0
- package/dist/assets/plugins/slots/runner.962030e5-_04Fb699.js +8 -0
- package/dist/assets/plugins/slots/sessions.fc763f42-BaHBIWGm.js +1 -0
- package/dist/assets/plugins/slots/skill.f5396fde-MNxJbIRc.js +4 -0
- package/dist/assets/plugins/slots/subagents.d815a296-DNYKN2_3.js +7 -0
- package/dist/assets/plugins/slots/vault.57fd9047-C3YDx6j4.js +1 -0
- package/dist/assets/plugins/slots/voice.b709d05c-BT788wX1.js +1 -0
- package/dist/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +4 -4
- package/dist/{atomicJson-DwSqByUJ.js → atomicJson-CU27fWtF.js} +2 -3
- package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-DkmTos8T.js} +2 -2
- package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-sm_U3omr.js} +13 -13
- package/dist/backgroundWork-C3TYOD5X.js +49 -0
- package/dist/browser-BWf8OMfl.js +3 -0
- package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
- package/dist/childSession-Cf2-kH4O.js +22 -0
- package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-B7BdEyPa.js} +5 -5
- package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-DpnCKwVj.js} +3 -3
- package/dist/{codemode-yHAHBZO-.js → codemode-CU_gontV.js} +5 -2
- package/dist/contracts-B_eb2dl9.js +19 -0
- package/dist/contracts-mVtrvUmY.js +40 -0
- package/dist/{diagnostics-DPTP-yrt.js → diagnostics-C43OHsIc.js} +2 -2
- package/dist/{server-y9pjeHJM.js → dist-B-vqs6tA.js} +1 -546
- package/dist/{dist-Dvx5mlIR.js → dist-CLdzaXdw.js} +16 -3
- package/dist/{dist-BVBi6VMV.js → dist-CfOWb6f7.js} +1 -1
- package/dist/{dist-PDDFdqDX.js → dist-Dd6zUvjw.js} +1 -1
- package/dist/edge-accj222e.js +266 -0
- package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js} +1 -1
- package/dist/{env-api-keys-CAnjjnsR.js → env-api-keys-CSPKWgJn.js} +1 -1
- package/dist/{error-body-DQZRsyL5.js → error-body-BvLDKbXN.js} +26 -4
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/{exports-CrJqsTU6.js → exports-BlsXYnB_.js} +27 -9
- package/dist/{remoteMcp-Ci8crSU9.js → exports-CHx8bsjQ.js} +1062 -176
- package/dist/exports-CUM-AowA.js +34 -0
- package/dist/extensionFile-Bf1PbYVu.js +121 -0
- package/dist/{factory-Cs8iaUtc.js → factory-DwoANAyi.js} +1 -1
- package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-CZIImZmD.js} +1 -1
- package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-P4ubvgcU.js} +9 -9
- package/dist/{google-shared-S7bqOccz.js → google-shared-C8Kez75I.js} +6 -6
- package/dist/{google-vertex-BcMU_DMb.js → google-vertex-T1trcCEz.js} +10 -10
- package/dist/{domains-dHfk2U8X.js → harnessState-DMini_AN.js} +175 -16
- package/dist/{harnessStore-CRtlTdbI.js → harnessStore-CTomNyVl.js} +4 -5
- package/dist/{hash-B3RRpLS2.js → hash-CMLRVP3c.js} +1 -1
- package/dist/{headers-BEuxFxDI.js → headers-CX-ZuPIi.js} +1 -1
- package/dist/help-BxTDP41H.js +1 -0
- package/dist/help-C4aC-kWh.js +100 -0
- package/dist/http-4lVtjwa7.js +59 -0
- package/dist/{hubChannel-Cj1iF847.js → hubChannel-Bq4zyVgX.js} +12 -29
- package/dist/hubRevisions-BknPawK7.js +364 -0
- package/dist/{identity-BIeAyilV.js → identity-DEwhWpjw.js} +3 -3
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-CwcYQLj9.js +70 -0
- package/dist/index.edge-D2RirEwK.js +14 -0
- package/dist/index.edge-Dw11TL5F.js +56 -0
- package/dist/index.edge-DyUqSroq.js +67 -0
- package/dist/index.edge-Ts1NG9b4.js +937 -0
- package/dist/iso-BCXA5x1w.js +10 -0
- package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-D3TQ9BKb.js} +1 -1
- package/dist/{layeredConfig-BqIwPJ-I.js → layeredConfig-DVe-JMGQ.js} +217 -24
- package/dist/{majorModes-C-OD4PBc.js → majorModes-BBT0wftm.js} +4 -14
- package/dist/majorModes-BcA8pk7t.js +1 -0
- package/dist/{mcpProjection-BsP0IEnb.js → mcpProjection-BZoy_uKa.js} +1 -2
- package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-jEBsA1Xz.js} +12 -12
- package/dist/modeDefinition-C3Zbrw48.js +44 -0
- package/dist/{models-D6d73jcW.js → models-BoBYu6VI.js} +41 -46
- package/dist/narration-BtGsZwE7.js +127 -0
- package/dist/{node-UuMT2C3q.js → node-CdIUdDAa.js} +2 -2
- package/dist/{node-DytJOfYf.js → node-CjBe953N.js} +2 -2
- package/dist/notification-BHaYyLJJ.js +101 -0
- package/dist/{openai-bt3ZRBZv.js → openai-69NOv-G_.js} +187 -187
- package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-x01Vnd68.js} +21 -25
- package/dist/{openai-completions-BWsTNYyT.js → openai-completions-B81ryS-E.js} +26 -19
- package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-Kybq6lsr.js} +3 -3
- package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-BK5Zz1Ib.js} +17 -15
- package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-b4nN_ZS7.js} +7 -7
- package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-C4M4CjUF.js} +1 -1
- package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-DMMiksXo.js} +7 -7
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/{pi-messages-BHAIkYBj.js → pi-messages-D3F6NGQb.js} +6 -6
- package/dist/piConfig-BeRtzEWI.js +126 -0
- package/dist/piSettings-CDcdxob2.js +1 -0
- package/dist/platform-CAhzdBhg.js +113 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-ZOY2-HIL.js +136 -0
- package/dist/{protocol-Xpm_mCNN.js → protocol-Db1l1xpe.js} +1 -2
- package/dist/{provider-env-DgfpjgTa.js → provider-env-C6KlbHmf.js} +2 -2
- package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-C8AvzuUi.js} +1 -1
- package/dist/{puppeteer-cloudflare-B-GHrPGO.js → puppeteer-cloudflare-D4l8smMS.js} +3 -3
- package/dist/{rolldown-runtime-B-lAHAz2.js → rolldown-runtime-DbVrKiKs.js} +1 -1
- package/dist/{sanitize-unicode-Dl4ROF7y.js → sanitize-unicode-Di-31Zpn.js} +1 -1
- package/dist/{schemas-Vj8-rCR4.js → schemas-BMBR99Q5.js} +3 -2
- package/dist/server-4R5ZprW5.js +978 -0
- package/dist/server-B0PFs3Yl.js +288 -0
- package/dist/server-B4f5d7ka.js +1811 -0
- package/dist/server-BQ0I9oeZ.js +1359 -0
- package/dist/server-BZ_bk5i9.js +295 -0
- package/dist/{server-CUvohcAm.js → server-Ba7pnDkx.js} +54 -47
- package/dist/server-BayLsR7Z.js +343 -0
- package/dist/{server-BccTx_r6.js → server-BbNo0APc.js} +121 -19
- package/dist/server-Bi9VOAOP.js +833 -0
- package/dist/{server-De_PIOty.js → server-BkmcRLIT.js} +47 -27
- package/dist/{server-DwWTQg1J.js → server-BwtSRROE.js} +14 -5
- package/dist/server-BxzzL3_G.js +1883 -0
- package/dist/{server-CYQHzqaQ.js → server-By1ctEvA.js} +11 -9
- package/dist/server-CA5TuWDo.js +3125 -0
- package/dist/{server-C1ijZQp4.js → server-CBHlRlm4.js} +3 -10
- package/dist/server-CDypk2xJ.js +1296 -0
- package/dist/server-ChlBgWIn.js +1116 -0
- package/dist/server-CkMqSsYi.js +15105 -0
- package/dist/server-CnsLcuj-.js +1518 -0
- package/dist/server-CrqcdtBx.js +178 -0
- package/dist/server-CwlDZ2N-.js +491 -0
- package/dist/server-D3j7dywQ.js +576 -0
- package/dist/server-DXD7cbH0.js +679 -0
- package/dist/server-DesEguVZ.js +640 -0
- package/dist/server-Dqjcc8p0.js +2656 -0
- package/dist/{server-BPvd3Ya5.js → server-DrmY-Chg.js} +570 -127
- package/dist/{server-B2xd7WTP.js → server-DtCOCPGp.js} +9 -20
- package/dist/server-DuAckacI.js +1522 -0
- package/dist/server-EgPpwMaj.js +505 -0
- package/dist/server-h0TSZCjm.js +189 -0
- package/dist/serverPlugin-Cx6a5RT0.js +36624 -0
- package/dist/session-resources-DLg07yAP.js +10 -0
- package/dist/{sessionConfig-2a4LWInR.js → sessionConfig-6NVRcVwL.js} +615 -766
- package/dist/{simple-options-DWrW31_K.js → simple-options-DM-a_ljY.js} +13 -6
- package/dist/{streaming-json-t4rzNHEp.js → streaming-json-Bs_lERVE.js} +6 -6
- package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-B63vQ3Om.js} +3 -3
- package/dist/{notification-D76PSL7r.js → telemetry-CrTcxeA5.js} +2 -93
- package/dist/{transform-messages-CjTSwW9q.js → transform-messages-Bbr4sgbB.js} +3 -16
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-DrZBZ17y.js → type-CuAiPMD4.js} +569 -1409
- package/dist/type-yokaDI_F.js +7 -0
- package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-7g930h9C.js} +3 -3
- package/dist/{uuid-mkNGilLv.js → uuid-D5Z4Ivdo.js} +1 -1
- package/dist/{validation-D77NZBrx.js → validation-DesEfRe-.js} +8 -3
- package/dist/vaultSettings-BdkqnmJf.js +292 -0
- package/dist/voiceTools-Chad-LEE.js +246 -0
- package/dist/web-QeFwt_Vl.js +3 -0
- package/dist/worker.js +56560 -35339
- package/dist/workflow-BLBCriNp.js +113 -0
- package/package.json +44 -25
- package/wrangler.jsonc +13 -3
- package/dist/apiContracts-CHOiCbS_.js +0 -4451
- package/dist/assets/assets/channel-CNegK3Rr.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BbVKQGnw.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-DQj3H5a6.js +0 -1
- package/dist/assets/assets/index-BTHzc8EN.js +0 -155
- package/dist/assets/assets/index-DZM68mTk.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CXJkO6sc.js +0 -9
- package/dist/assets/plugins/assets/base-B5jpmLBl.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-D4qQFtJO.js +0 -1
- package/dist/assets/plugins/slots/approval.09e72f36-Cck_K9ex.js +0 -2
- package/dist/assets/plugins/slots/artifacts.50b639bb-BZM7uEbe.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.75108f21-EWWGTveL.js +0 -7
- package/dist/assets/plugins/slots/codemode.c58fb583-CgfTL6kt.js +0 -9
- package/dist/assets/plugins/slots/domain.753f9f92-BU0ilfwM.js +0 -1
- package/dist/assets/plugins/slots/mcp.82cc1ff5-BaCD2xZB.js +0 -109
- package/dist/assets/plugins/slots/skill.62a0a1b3-Bz20F1eA.js +0 -4
- package/dist/backgroundWork-bE3pc-R9.js +0 -25
- package/dist/build-2gFaVEfG.js +0 -3355
- package/dist/contextProjection-DVP2Vc5j.js +0 -188
- package/dist/extensionFile-CY4EFNHQ.js +0 -409
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-DZ4lDIq6.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-AYZvnOpU.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-CNhm9zLi.js +0 -16
- package/dist/platformFiles-3rzOh9cg.js +0 -39
- package/dist/server-Bf3_VTkt.js +0 -592
- package/dist/server-BmAziQml.js +0 -657
- package/dist/server-BvV-GqDO.js +0 -280
- package/dist/server-xiuzwJ1C.js +0 -118
- package/dist/serverPlugin-H4T49sac.js +0 -3347
- package/dist/value-Djvc2foV.js +0 -2247
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { Jt as readPoBrowserSession, Ut as PO_BROWSER_SESSION_SERVICE, t as defineServerPlugin } from "./serverPlugin-Cx6a5RT0.js";
|
|
2
|
+
import "./platform-CAhzdBhg.js";
|
|
3
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-CU_gontV.js";
|
|
4
|
+
//#region ../../../layers/browser/po-browse/src/services/edgeBrowserNamespace/index.ts
|
|
5
|
+
const MAX_URL_CHARS = 2048;
|
|
6
|
+
const MAX_SELECTOR_CHARS = 1e3;
|
|
7
|
+
const MAX_VALUE_CHARS = 1e4;
|
|
8
|
+
const MAX_KEY_CHARS = 32;
|
|
9
|
+
const MAX_INSTRUCTIONS_CHARS = 500;
|
|
10
|
+
const MAX_ID_CHARS = 200;
|
|
11
|
+
const MAX_HANDOFF_MINUTES = 30;
|
|
12
|
+
const DECLARATIONS = `/** What an action aims at: a CSS selector, visible text (substring), or an ARIA role with an optional accessible name. */
|
|
13
|
+
type Target = { selector: string } | { text: string } | { role: string; name?: string };
|
|
14
|
+
interface Tab {
|
|
15
|
+
/** Stable while the remote browser lives. Omit pageId to use the most recent tab. */
|
|
16
|
+
pageId: string;
|
|
17
|
+
url: string;
|
|
18
|
+
status?: number;
|
|
19
|
+
title: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const browser: {
|
|
23
|
+
/** Opens url in a tab (a new one with newPage). reconnected: false means the previous browser was lost: tabs and sign-ins are gone. */
|
|
24
|
+
navigate(input: { url: string; pageId?: string; newPage?: boolean }): Promise<Tab & { reconnected?: false; reason?: string }>;
|
|
25
|
+
/** Visible text, accessibility tree and links of a tab, capped. */
|
|
26
|
+
snapshot(input?: { pageId?: string }): Promise<Tab & { text: string; aria: string; links: { text: string; href: string }[]; truncated: boolean }>;
|
|
27
|
+
click(input: { target: Target; pageId?: string }): Promise<Tab>;
|
|
28
|
+
/** Types into a field. Password fields are refused: ask the person with handoff instead. */
|
|
29
|
+
fill(input: { target: Target; value: string; pageId?: string }): Promise<Tab>;
|
|
30
|
+
/** A key name such as "Enter", "Tab" or "ArrowDown". */
|
|
31
|
+
pressKey(input: { key: string; pageId?: string }): Promise<Tab>;
|
|
32
|
+
/** Shows a PNG of the tab to you in this exec result. Resolves to tab info, not image data. */
|
|
33
|
+
screenshot(input?: { pageId?: string; fullPage?: boolean }): Promise<Tab & { shown: boolean; warning?: string }>;
|
|
34
|
+
listPages(): Promise<Tab[]>;
|
|
35
|
+
closePage(input?: { pageId?: string }): Promise<void>;
|
|
36
|
+
/** Closes the browser and stops metering. Tabs and sign-ins are gone. */
|
|
37
|
+
closeOwnedPages(): Promise<void>;
|
|
38
|
+
/** Sends the person a short-lived link to watch and control a tab. You never see the link. Main agent, person present. */
|
|
39
|
+
liveView(input?: { pageId?: string }): Promise<{ sent: true; expiresAt: string }>;
|
|
40
|
+
/** Asks the person to act on a tab (sign-in, MFA, CAPTCHA) and returns at once; poll handoffStatus. Main agent, person present. */
|
|
41
|
+
handoff(input: { instructions: string; pageId?: string; timeoutMinutes?: number }): Promise<{ handoffId: string; sent: true; expiresAt: string }>;
|
|
42
|
+
handoffStatus(input: { handoffId: string }): Promise<{ state: 'pending' | 'done' | 'failed' | 'timedOut'; tab?: Tab }>;
|
|
43
|
+
};`;
|
|
44
|
+
function fields(method, input, allowed, optional = false) {
|
|
45
|
+
if (input === void 0 && optional) return {};
|
|
46
|
+
if (input === null || typeof input !== "object" || Array.isArray(input)) throw new TypeError(`browser.${method} expects an object.`);
|
|
47
|
+
const unknown = Object.keys(input).find((key) => !allowed.includes(key));
|
|
48
|
+
if (unknown !== void 0) throw new TypeError(`browser.${method} does not take "${unknown}".`);
|
|
49
|
+
return input;
|
|
50
|
+
}
|
|
51
|
+
function text(method, name, value, max, required) {
|
|
52
|
+
if (value === void 0 && !required) return void 0;
|
|
53
|
+
if (typeof value !== "string" || !value || value.length > max) throw new TypeError(`browser.${method} ${name} must be nonempty text of at most ${max} characters.`);
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function flag(method, name, value) {
|
|
57
|
+
if (value !== void 0 && typeof value !== "boolean") throw new TypeError(`browser.${method} ${name} must be a boolean.`);
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
function pageId(method, value) {
|
|
61
|
+
const id = text(method, "pageId", value, MAX_ID_CHARS, false);
|
|
62
|
+
return id === void 0 ? {} : { pageId: id };
|
|
63
|
+
}
|
|
64
|
+
/** Only the three closed shapes, so no other field reaches the host. */
|
|
65
|
+
function target(method, value) {
|
|
66
|
+
const shape = fields(method, value, [
|
|
67
|
+
"selector",
|
|
68
|
+
"text",
|
|
69
|
+
"role",
|
|
70
|
+
"name"
|
|
71
|
+
]);
|
|
72
|
+
const keys = Object.keys(shape).sort().join(",");
|
|
73
|
+
const part = (name) => text(method, `target.${name}`, shape[name], MAX_SELECTOR_CHARS, true);
|
|
74
|
+
if (keys === "selector") return { selector: part("selector") };
|
|
75
|
+
if (keys === "text") return { text: part("text") };
|
|
76
|
+
if (keys === "role") return { role: part("role") };
|
|
77
|
+
if (keys === "name,role") return {
|
|
78
|
+
role: part("role"),
|
|
79
|
+
name: part("name")
|
|
80
|
+
};
|
|
81
|
+
throw new TypeError(`browser.${method} target must be { selector }, { text } or { role, name? }.`);
|
|
82
|
+
}
|
|
83
|
+
function requirePerson(method, run) {
|
|
84
|
+
if (run.caller !== "main" || run.interaction !== "interactive") throw new Error(`browser.${method} needs the main agent with the person present.`);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The session's persistent remote browser (`po/browser-session`), for hosts without live objects.
|
|
88
|
+
* Portable: JSON in, JSON out, keyed by pageId. Live View links go to the person, never to the model.
|
|
89
|
+
*/
|
|
90
|
+
function createEdgeBrowserNamespace(options) {
|
|
91
|
+
const { browser } = options;
|
|
92
|
+
return {
|
|
93
|
+
name: "browser",
|
|
94
|
+
summary: "Drive a persistent remote browser for this session: navigate, snapshot, click, fill, pressKey, screenshot by pageId; liveView and handoff send the person a link to watch or sign in.",
|
|
95
|
+
declarations: DECLARATIONS,
|
|
96
|
+
portable: true,
|
|
97
|
+
bind(run) {
|
|
98
|
+
if (run.sessionId !== options.sessionId) throw new Error("Browser namespace belongs to another session.");
|
|
99
|
+
const disposal = new AbortController();
|
|
100
|
+
const lifetime = AbortSignal.any([run.signal, disposal.signal]);
|
|
101
|
+
run.onDispose(() => disposal.abort(/* @__PURE__ */ new Error("Browser namespace run is disposed.")));
|
|
102
|
+
const ready = () => lifetime.throwIfAborted();
|
|
103
|
+
return {
|
|
104
|
+
navigate: async (input) => {
|
|
105
|
+
ready();
|
|
106
|
+
const value = fields("navigate", input, [
|
|
107
|
+
"url",
|
|
108
|
+
"pageId",
|
|
109
|
+
"newPage"
|
|
110
|
+
]);
|
|
111
|
+
const newPage = flag("navigate", "newPage", value.newPage);
|
|
112
|
+
return browser.navigate({
|
|
113
|
+
url: text("navigate", "url", value.url, MAX_URL_CHARS, true),
|
|
114
|
+
...pageId("navigate", value.pageId),
|
|
115
|
+
...newPage === void 0 ? {} : { newPage }
|
|
116
|
+
}, lifetime);
|
|
117
|
+
},
|
|
118
|
+
snapshot: async (input) => {
|
|
119
|
+
ready();
|
|
120
|
+
return browser.snapshot(pageId("snapshot", fields("snapshot", input, ["pageId"], true).pageId), lifetime);
|
|
121
|
+
},
|
|
122
|
+
click: async (input) => {
|
|
123
|
+
ready();
|
|
124
|
+
const value = fields("click", input, ["target", "pageId"]);
|
|
125
|
+
return browser.click({
|
|
126
|
+
target: target("click", value.target),
|
|
127
|
+
...pageId("click", value.pageId)
|
|
128
|
+
}, lifetime);
|
|
129
|
+
},
|
|
130
|
+
fill: async (input) => {
|
|
131
|
+
ready();
|
|
132
|
+
const value = fields("fill", input, [
|
|
133
|
+
"target",
|
|
134
|
+
"value",
|
|
135
|
+
"pageId"
|
|
136
|
+
]);
|
|
137
|
+
if (typeof value.value !== "string" || value.value.length > MAX_VALUE_CHARS) throw new TypeError(`browser.fill value must be text of at most ${MAX_VALUE_CHARS} characters.`);
|
|
138
|
+
return browser.fill({
|
|
139
|
+
target: target("fill", value.target),
|
|
140
|
+
value: value.value,
|
|
141
|
+
...pageId("fill", value.pageId)
|
|
142
|
+
}, lifetime);
|
|
143
|
+
},
|
|
144
|
+
pressKey: async (input) => {
|
|
145
|
+
ready();
|
|
146
|
+
const value = fields("pressKey", input, ["key", "pageId"]);
|
|
147
|
+
return browser.pressKey({
|
|
148
|
+
key: text("pressKey", "key", value.key, MAX_KEY_CHARS, true),
|
|
149
|
+
...pageId("pressKey", value.pageId)
|
|
150
|
+
}, lifetime);
|
|
151
|
+
},
|
|
152
|
+
screenshot: async (input) => {
|
|
153
|
+
ready();
|
|
154
|
+
const value = fields("screenshot", input, ["pageId", "fullPage"], true);
|
|
155
|
+
const fullPage = flag("screenshot", "fullPage", value.fullPage);
|
|
156
|
+
if (!run.emitImage) throw new Error("browser.screenshot needs a host that shows images; use browser.snapshot.");
|
|
157
|
+
const { data, mimeType, ...tab } = await browser.screenshot({
|
|
158
|
+
...pageId("screenshot", value.pageId),
|
|
159
|
+
...fullPage === void 0 ? {} : { fullPage }
|
|
160
|
+
}, lifetime);
|
|
161
|
+
ready();
|
|
162
|
+
const shown = run.emitImage({
|
|
163
|
+
data,
|
|
164
|
+
mimeType
|
|
165
|
+
});
|
|
166
|
+
return shown.emitted ? {
|
|
167
|
+
...tab,
|
|
168
|
+
shown: true
|
|
169
|
+
} : {
|
|
170
|
+
...tab,
|
|
171
|
+
shown: false,
|
|
172
|
+
warning: shown.warning
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
listPages: async () => {
|
|
176
|
+
ready();
|
|
177
|
+
return browser.listPages(lifetime);
|
|
178
|
+
},
|
|
179
|
+
closePage: async (input) => {
|
|
180
|
+
ready();
|
|
181
|
+
await browser.closePage(pageId("closePage", fields("closePage", input, ["pageId"], true).pageId), lifetime);
|
|
182
|
+
},
|
|
183
|
+
closeOwnedPages: async () => {
|
|
184
|
+
ready();
|
|
185
|
+
await browser.close();
|
|
186
|
+
},
|
|
187
|
+
liveView: async (input) => {
|
|
188
|
+
ready();
|
|
189
|
+
requirePerson("liveView", run);
|
|
190
|
+
const view = await browser.liveView(pageId("liveView", fields("liveView", input, ["pageId"], true).pageId), lifetime);
|
|
191
|
+
ready();
|
|
192
|
+
await options.notify({
|
|
193
|
+
title: "Live view of the browser",
|
|
194
|
+
body: `Watch or take over: ${view.url}`,
|
|
195
|
+
level: "info"
|
|
196
|
+
});
|
|
197
|
+
return {
|
|
198
|
+
sent: true,
|
|
199
|
+
expiresAt: view.expiresAt
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
handoff: async (input) => {
|
|
203
|
+
ready();
|
|
204
|
+
requirePerson("handoff", run);
|
|
205
|
+
const value = fields("handoff", input, [
|
|
206
|
+
"instructions",
|
|
207
|
+
"pageId",
|
|
208
|
+
"timeoutMinutes"
|
|
209
|
+
]);
|
|
210
|
+
const instructions = text("handoff", "instructions", value.instructions, MAX_INSTRUCTIONS_CHARS, true);
|
|
211
|
+
const minutes = value.timeoutMinutes;
|
|
212
|
+
if (minutes !== void 0 && (typeof minutes !== "number" || !Number.isFinite(minutes) || minutes <= 0 || minutes > MAX_HANDOFF_MINUTES)) throw new TypeError(`browser.handoff timeoutMinutes must be a number above 0 and at most ${MAX_HANDOFF_MINUTES}.`);
|
|
213
|
+
const started = await browser.handoff({
|
|
214
|
+
instructions,
|
|
215
|
+
...pageId("handoff", value.pageId),
|
|
216
|
+
...minutes === void 0 ? {} : { timeoutMs: Math.round(minutes * 6e4) }
|
|
217
|
+
}, lifetime);
|
|
218
|
+
ready();
|
|
219
|
+
await options.notify({
|
|
220
|
+
title: "Po needs you in the browser",
|
|
221
|
+
body: `${instructions}\n\nOpen: ${started.liveViewUrl}`,
|
|
222
|
+
level: "info",
|
|
223
|
+
attention: true
|
|
224
|
+
});
|
|
225
|
+
return {
|
|
226
|
+
handoffId: started.handoffId,
|
|
227
|
+
sent: true,
|
|
228
|
+
expiresAt: started.expiresAt
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
handoffStatus: async (input) => {
|
|
232
|
+
ready();
|
|
233
|
+
const value = fields("handoffStatus", input, ["handoffId"]);
|
|
234
|
+
return browser.handoffStatus({ handoffId: text("handoffStatus", "handoffId", value.handoffId, MAX_ID_CHARS, true) }, lifetime);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region ../../../layers/browser/po-browse/src/services/edgeBrowsePlugin/index.ts
|
|
242
|
+
/**
|
|
243
|
+
* po-browse for hosts without browse-tool (the Cloudflare Worker): `browser` in code mode, backed by
|
|
244
|
+
* the host's `po/browser-session`. Sessions on hosts that bind no browser session get nothing.
|
|
245
|
+
* The browser outlives this plugin on purpose: the host's idle window closes it, so a restarted
|
|
246
|
+
* session object can reconnect to it.
|
|
247
|
+
*/
|
|
248
|
+
const edgeBrowsePlugin = defineServerPlugin({
|
|
249
|
+
name: "@agimon-ai/po-browse",
|
|
250
|
+
session: ({ context, agent }) => {
|
|
251
|
+
const execution = agent?.context;
|
|
252
|
+
if (!execution) return {};
|
|
253
|
+
context.inject([PO_BROWSER_SESSION_SERVICE, PO_CODEMODE_SERVICE], (scoped) => {
|
|
254
|
+
const browser = readPoBrowserSession(scoped);
|
|
255
|
+
const registration = browser ? readPoCodemode(scoped)?.register("@agimon-ai/po-browse", createEdgeBrowserNamespace({
|
|
256
|
+
sessionId: execution.sessionId,
|
|
257
|
+
browser,
|
|
258
|
+
notify: (request) => execution.client.notify(request)
|
|
259
|
+
})) : void 0;
|
|
260
|
+
return () => registration?.dispose();
|
|
261
|
+
});
|
|
262
|
+
return {};
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
//#endregion
|
|
266
|
+
export { edgeBrowsePlugin };
|
package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { t as __commonJSMin } from "./rolldown-runtime-DbVrKiKs.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@jitl+quickjs-wasmfile-release-sync@0.32.0/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs
|
|
3
3
|
var require_emscripten_module_cloudflare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
var QuickJSRaw = (() => {
|
|
@@ -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_0dceae40f01aa62256473b6c7092d65b/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js
|
|
2
2
|
var __rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
3
3
|
if (typeof path === "string" && /^\.\.?\//.test(path)) return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
4
4
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ownedSlice } from "./identity-
|
|
2
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.
|
|
1
|
+
import { c as ownedSlice } from "./identity-DEwhWpjw.js";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.1_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_0dceae40f01aa62256473b6c7092d65b/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js
|
|
3
3
|
const MAX_PROVIDER_ERROR_BODY_CHARS = 4e3;
|
|
4
4
|
function normalizeProviderError(error) {
|
|
5
5
|
if (!(error instanceof Error)) return {
|
|
@@ -13,10 +13,32 @@ function normalizeProviderError(error) {
|
|
|
13
13
|
return {
|
|
14
14
|
status,
|
|
15
15
|
body,
|
|
16
|
-
message: error.message,
|
|
16
|
+
message: status === void 0 && body === void 0 ? withCauseDetail(error) : error.message,
|
|
17
17
|
messageCarriesBody
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
+
const MAX_CAUSE_DEPTH = 5;
|
|
21
|
+
/**
|
|
22
|
+
* Connection-level failures carry no status or body, and SDKs replace the
|
|
23
|
+
* reason with a generic message (`openai`: `"Connection error."`). The real
|
|
24
|
+
* reason sits in the `cause` chain, often two levels deep (undici's
|
|
25
|
+
* `"fetch failed"` wraps `connect ECONNREFUSED ...`). Append the deepest
|
|
26
|
+
* cause so callers that surface only the message keep the reason.
|
|
27
|
+
*/
|
|
28
|
+
function withCauseDetail(error) {
|
|
29
|
+
let deepest;
|
|
30
|
+
let current = error.cause;
|
|
31
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH && current instanceof Error; depth++) {
|
|
32
|
+
deepest = current;
|
|
33
|
+
current = current.cause;
|
|
34
|
+
}
|
|
35
|
+
if (!deepest) return error.message;
|
|
36
|
+
let detail = (deepest.message || deepest.name).trim();
|
|
37
|
+
const code = deepest.code;
|
|
38
|
+
if ((typeof code === "string" || typeof code === "number") && !detail.includes(String(code))) detail = detail ? `${detail} (${code})` : String(code);
|
|
39
|
+
if (!detail || error.message.includes(detail)) return error.message;
|
|
40
|
+
return error.message ? `${error.message}: ${detail}` : detail;
|
|
41
|
+
}
|
|
20
42
|
/**
|
|
21
43
|
* Probe the HTTP status, first numeric hit wins, in SDK-field order:
|
|
22
44
|
* `statusCode` (Mistral) → `status` (`openai`, `@google/genai`) →
|
|
@@ -99,4 +121,4 @@ function safeJsonStringify(value) {
|
|
|
99
121
|
}
|
|
100
122
|
}
|
|
101
123
|
//#endregion
|
|
102
|
-
export { normalizeProviderError as n, truncateErrorText as r, formatProviderError as t };
|
|
124
|
+
export { withCauseDetail as i, normalizeProviderError as n, truncateErrorText as r, formatProviderError as t };
|