@agimon-ai/po-cloudflare 0.0.2-alpha.2 → 0.0.2-alpha.4
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 +4 -3
- package/dist/abort-signals-Bkmp_euQ.js +34 -0
- package/dist/anthropic-messages-CkYm8M3V.js +14317 -0
- package/dist/{approval-BMXqnTYd.js → approval-Eu7UgGL-.js} +1 -1
- package/dist/assets/assets/{CodeEditorView-BnyZHaYM.js → CodeEditorView-rEfljuRK.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-muME0eCj.js → abnfDiagram-WEYOIA3C-J6Iu5p17.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-DMnhK1WH.js → architecture-WOLXFQ4H-DKj_xMR1.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DKn7XGP7.js → architectureDiagram-ZHVYKT53--D1MzuBo.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DtDctXZg.js → blockDiagram-RJAE7QA3-CrWO0t-Q.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-23pGLJeP.js → c4Diagram-XDPPPE54-CBMOJREz.js} +2 -2
- package/dist/assets/assets/channel-CNegK3Rr.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-BZ2nGNPa.js → chunk-2E7WHVMD-CR9NMk46.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-Dui1SYFi.js → chunk-4EMNKR2T-B4D0falO.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CUB92Evl.js → chunk-55XCU76K-CKrttFen.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-CVayPHfE.js → chunk-7S6XSTFO-BPNrdjSb.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB---wakYqY.js → chunk-AQDTSKZB-Ddx2gPU_.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-DfbdohUR.js → chunk-DSNLSHJZ-iQg3RbZ_.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-Dr4KRh-b.js → chunk-HAGFOTED-CGlDRwnk.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D06cR91Z.js → chunk-HNE4Q36P-CN7VMEsn.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-Ca4gLeDb.js → chunk-NQOKRVIF-DQKmIS4j.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-DmL638jN.js → chunk-UHW7PFBP-BKSG_d1a.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-pkxSW5Zj.js → chunk-VQ5W62QI-AbFHiDOg.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-Dcc8hV4U.js → chunk-WQQL4CDK-C5a4DmCb.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-BbVKQGnw.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-B_HKcFrw.js → chunk-YZO67HFG-UbKezTdY.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-DAzZUysS.js → chunk-ZAUX2LTX-BShGGpRc.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-DAVgjymL.js → chunk-ZCHMQSOR-BmV-PDP0.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Fsw8TGPu.js → classDiagram-v2-4MYWR3UA-DB-cfBNq.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-CgUbISYV.js → cose-bilkent-JH36ORCC-Dprqh48h.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-D1LxAU2x.js → cynefin-EF2NZ3EQ-Bz4CND4n.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-D54I1jil.js → cynefinDiagram-WF24UDRP-Cv0Tq-0q.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DC7zL16U.js → dagre-NK4GIZVX-H4d8oeNm.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-DB0ptUdz.js → diagram-CBK3MWTC-D75OthTM.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-CozSftPJ.js → diagram-I5XIIV2D-CB_W2jXU.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-g3WOEWDS.js → diagram-ODIL2UCW-DPO0lYZ-.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-CFxGeOYi.js → diagram-PFBEJUXE-DJ9olXAC.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-BQBsLche.js → diagram-RJA3I4VV-DL3974PI.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-DrjpW2yq.js → diagram-TYUNFSNR-ZuYESp4p.js} +2 -2
- package/dist/assets/assets/{dist-B3JXhDWV.js → dist-BnkGKHOV.js} +2 -2
- package/dist/assets/assets/{dist-1-mhYUBH.js → dist-C8iSs-hT.js} +2 -2
- package/dist/assets/assets/{dist-XIZum9n5.js → dist-CXqaT1wB.js} +2 -2
- package/dist/assets/assets/{dist-gfbb4ygy.js → dist-CdrEbsAL.js} +2 -2
- package/dist/assets/assets/{dist-h6SOnP8-.js → dist-CeotBqYt.js} +2 -2
- package/dist/assets/assets/{dist-DvgCCshF.js → dist-D2iSi_lg.js} +2 -2
- package/dist/assets/assets/{dist-DjL8d1jZ.js → dist-DvCNYjgK.js} +2 -2
- package/dist/assets/assets/{dist-BabjcJ3j.js → dist-G3vL_xw7.js} +2 -2
- package/dist/assets/assets/{dist-Izr2SB3q.js → dist-zXhaMKmO.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-BZS_aAve.js → ebnfDiagram-V4P3TTPT-DNfHKEsm.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-B2ksVmMA.js → elk-QONTBCTQ-C0FX9D60.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-7P6zF-Z-.js → erDiagram-KYQIGQAA-BI1O9lW0.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-RoGQoRq-.js → eventmodeling-K75KTNOO-BmWt-aOv.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-DQj3H5a6.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-CTOlRy7M.js → ganttDiagram-R7GPNTJY-pM7PmQ6B.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-CPqytIt0.js → gitGraph-VSP46ZUC-D0QXMQxv.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BffLxuxg.js → gitGraphDiagram-PDYL7XHY-BsMltgt3.js} +2 -2
- package/dist/assets/assets/index-BTHzc8EN.js +155 -0
- package/dist/assets/assets/{info-OHQRW6UA-BI8RK0Ow.js → info-OHQRW6UA-Dp5Eu5PX.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-DUIst1FB.js → infoDiagram-MVDRKAX5-TgXRfZiq.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CA17Eho5.js → ishikawaDiagram-HPEHV2GE-Qzrmih4p.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CNri5Ap9.js → journeyDiagram-BOSHW7O7-BksI3QOT.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DnXna7jO.js → kanban-definition-FNSA4HC5-l_IuN5_k.js} +2 -2
- package/dist/assets/assets/{line-BsXJZn93.js → line-BDKssGoM.js} +2 -2
- package/dist/assets/assets/{linear-BHYaD5T0.js → linear-C9vmtzBC.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-B64Eo-8a.js → mermaid-parser.core-O1yFX7K_.js} +4 -4
- package/dist/assets/assets/{mermaid.core-Zw9qmTzg.js → mermaid.core-CIq57361.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-E5qz4KNc.js → mindmap-definition-6OY57UG3-BkVuZ010.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DgfizTr3.js → packet-JDAUHWVQ-PPNcSWeV.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-D0WK_agM.js → pegDiagram-ECIUJNBX-ClwrHXhM.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-PJR1sXD4.js → pie-XZMESJXO-BAE4Cy9j.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-CPuU-NTs.js → pieDiagram-GNMPY74T-CvQ62Knb.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-5C9yjM1b.js → quadrantDiagram-D57K4MC3-CzAyT5ZB.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-BspdXgl0.js → radar-ABXABTNO-CoEe8B7b.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-Ct0a6hLD.js → railroad-I3PHUGI6-BbK5J8H5.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-fduYB4SA.js → railroad-abnf-LNEFI6M7-DlGngfop.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-CTQa8Sww.js → railroad-ebnf-DWYD2UWJ-BRk4ifMx.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-DatoH3GJ.js → railroad-peg-JR7BVNR7-Rz-3vbj2.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-C8sWN8l2.js → railroadDiagram-Y72NRBL7-DQISBRHH.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-CqRz4RcT.js → requirementDiagram-EQYSW5RA-DcK4FnTB.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-bdiuKKlX.js → sankeyDiagram-SY24JHO5-N2EXBOYb.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-Zy-8I0Hy.js → sequenceDiagram-BLEHNHQU-CMJ2EqC_.js} +2 -2
- package/dist/assets/assets/{src-gihY33R9.js → src-Df9VBjd7.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-DXQERPvz.js → stateDiagram-v2-A6IESKWZ-D6Cxm8wj.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-1gjZQElg.js → swimlanes-B3ENRKFQ-BybuzSPd.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CXJkO6sc.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-CTeYEw-9.js → timeline-definition-JXYKGLGB-BzjkWUdz.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-DD-EsLLT.js → treeView-D4JQ5SDB-DIDWwDtU.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-BLdFeS5J.js → treemap-SAJKECNS-SWP4JszI.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C1GikSSP.js → usecaseDiagram-WPOLBNNX-ZfCxSJdE.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-B1FoA3g8.js → vennDiagram-Q3Y3IDCW-o44wkgGH.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-BrHb5Bjf.js → wardley-7MLQ67FV-0zKRsI4Z.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CmPLD1X4.js → wardleyDiagram-IVAIDKWA-CyBVyB40.js} +2 -2
- package/dist/assets/assets/{webpack-BYWDFj_R.js → webpack-C4nkEwJD.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-DR5pfEjl.js → xychartDiagram-4URNHDU4-BMvRihYC.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +1 -1
- package/dist/assets/plugins/assets/base-B5jpmLBl.css +2 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/assets/plugins/chunks/po-web-runtime-D4qQFtJO.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -0
- package/dist/assets/plugins/slots/approval.09e72f36-Cck_K9ex.js +2 -0
- package/dist/assets/plugins/slots/artifacts.50b639bb-BZM7uEbe.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.75108f21-EWWGTveL.js +7 -0
- package/dist/assets/plugins/slots/codemode.c58fb583-CgfTL6kt.js +9 -0
- package/dist/assets/plugins/slots/domain.753f9f92-BU0ilfwM.js +1 -0
- package/dist/assets/plugins/slots/mcp.82cc1ff5-BaCD2xZB.js +109 -0
- package/dist/assets/plugins/slots/profile.ab16dcec-Cu6ev2uW.js +1 -0
- package/dist/assets/plugins/slots/skill.62a0a1b3-Bz20F1eA.js +4 -0
- package/dist/{atomicJson-BJfPFSYF.js → atomicJson-DwSqByUJ.js} +3 -3
- package/dist/azure-openai-config-DHMgdIa-.js +55 -0
- package/dist/azure-openai-responses-CTgRdQ4m.js +183 -0
- package/dist/backgroundWork-bE3pc-R9.js +25 -0
- package/dist/classifier-shared-jXm-plIK.js +106 -0
- package/dist/cloudflare-workers-ai-system-one-B0wH6HU5.js +52 -0
- package/dist/{codemode-DbPu0yJN.js → codemode-yHAHBZO-.js} +1 -1
- package/dist/diagnostics-DPTP-yrt.js +131 -0
- package/dist/dist-Dvx5mlIR.js +50 -0
- package/dist/{domains-BNjGTOPj.js → domains-dHfk2U8X.js} +4 -4
- package/dist/env-api-keys-CAnjjnsR.js +32 -0
- package/dist/error-body-DQZRsyL5.js +102 -0
- package/dist/{exports-BNZz2DNU.js → exports-CrJqsTU6.js} +8 -8
- package/dist/{extensionFile-CXOa5G4C.js → extensionFile-CY4EFNHQ.js} +1 -1
- package/dist/github-copilot-headers-DpQQAh-s.js +22 -0
- package/dist/google-generative-ai-BTTOo5RQ.js +328 -0
- package/dist/google-shared-S7bqOccz.js +19588 -0
- package/dist/google-vertex-BcMU_DMb.js +374 -0
- package/dist/{harnessStore-BT706Ly6.js → harnessStore-CRtlTdbI.js} +4 -4
- package/dist/harnessStore-DZ4lDIq6.js +1 -0
- package/dist/hash-B3RRpLS2.js +16 -0
- package/dist/headers-BEuxFxDI.js +17 -0
- package/dist/{hubChannel-BHQyzcOo.js → hubChannel-Cj1iF847.js} +1 -1
- package/dist/identity-BIeAyilV.js +165 -0
- package/dist/{layeredConfig-DPQAnlXD.js → layeredConfig-BqIwPJ-I.js} +3 -3
- package/dist/majorModes-AYZvnOpU.js +1 -0
- package/dist/{majorModes-DbCfLZH3.js → majorModes-C-OD4PBc.js} +4 -4
- package/dist/mistral-conversations-DN8VSERk.js +689 -0
- package/dist/models-D6d73jcW.js +1511 -0
- package/dist/node-DytJOfYf.js +23 -0
- package/dist/node-UuMT2C3q.js +2479 -0
- package/dist/openai-bt3ZRBZv.js +17357 -0
- package/dist/openai-codex-responses-cL36x0ml.js +1210 -0
- package/dist/openai-completions-BWsTNYyT.js +984 -0
- package/dist/openai-decisions-Dfn_KgQd.js +142 -0
- package/dist/openai-prompt-cache-Bc6qNWt0.js +8 -0
- package/dist/openai-responses-aa0LoyCJ.js +281 -0
- package/dist/openai-responses-shared-H-jH5SlM.js +661 -0
- package/dist/openrouter-cost-D99Qqcs6.js +30 -0
- package/dist/openrouter-images-BpwVpALC.js +124 -0
- package/dist/pi-messages-BHAIkYBj.js +312 -0
- package/dist/{platform-B4AAgwJ0.js → platform-CNhm9zLi.js} +1 -1
- package/dist/{platformFiles-C_bXo4Ig.js → platformFiles-3rzOh9cg.js} +1 -1
- package/dist/provider-env-DgfpjgTa.js +38 -0
- package/dist/provider-retry-ChD-K2Gv.js +79 -0
- package/dist/{remoteMcp-CMqZldeA.js → remoteMcp-Ci8crSU9.js} +1 -1
- package/dist/sanitize-unicode-Dl4ROF7y.js +26 -0
- package/dist/{server-BZh1ZXz_.js → server-B2xd7WTP.js} +4 -4
- package/dist/{server-DJAanjoI.js → server-BPvd3Ya5.js} +6 -6
- package/dist/{server-D4W7EdJY.js → server-BccTx_r6.js} +11 -10
- package/dist/{server-BZaPPoQp.js → server-Bf3_VTkt.js} +9 -9
- package/dist/{server-tvgQ99rv.js → server-BmAziQml.js} +4 -4
- package/dist/{server-r358hzQg.js → server-BvV-GqDO.js} +3 -3
- package/dist/{server-BAAL9-NA.js → server-C1ijZQp4.js} +2 -2
- package/dist/{server-BE6VqEiA.js → server-CUvohcAm.js} +4 -4
- package/dist/{server-D8ndq0wL.js → server-CYQHzqaQ.js} +2 -2
- package/dist/{server-Dt4y1rZD.js → server-De_PIOty.js} +5 -5
- package/dist/{server-A-_GFpPr.js → server-DrZBZ17y.js} +7 -7
- package/dist/{server-Dpgh8PDh.js → server-DwWTQg1J.js} +4 -4
- package/dist/{server-D75MWDhB.js → server-xiuzwJ1C.js} +2 -2
- package/dist/{server-D3PQk1Gt.js → server-y9pjeHJM.js} +3 -3
- package/dist/{serverPlugin-BOI6c6s5.js → serverPlugin-H4T49sac.js} +4 -50
- package/dist/{sessionConfig-rBQgzXlT.js → sessionConfig-2a4LWInR.js} +8 -8
- package/dist/simple-options-DWrW31_K.js +156 -0
- package/dist/streaming-json-t4rzNHEp.js +858 -0
- package/dist/system-one-shared-DLVLdzYL.js +132 -0
- package/dist/transform-messages-CjTSwW9q.js +356 -0
- package/dist/typesafe-system-one-DBVcjcUQ.js +37 -0
- package/dist/uuid-mkNGilLv.js +31 -0
- package/dist/worker.js +56113 -21793
- package/package.json +22 -22
- package/dist/assets/assets/channel-CMrEzemr.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-CFf0S6bN.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BhGbWVf0.js +0 -1
- package/dist/assets/assets/index-Bx_K4Joy.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-q91tR8ri.js +0 -9
- package/dist/backgroundWork-CeFrbRnj.js +0 -43
- package/dist/harnessStore-BiH9vSuD.js +0 -1
- package/dist/majorModes-BvWNqoHt.js +0 -1
- package/dist/server-36iuA3MI.js +0 -343
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { I as readPoBrowser, L as readPoFs, M as PO_BROWSER_SERVICE, P as PO_SHELL_SERVICE, Q as readPoHeadlessHost, R as readPoIsolate, Y as invalidImageReason,
|
|
1
|
+
import { I as readPoBrowser, L as readPoFs, M as PO_BROWSER_SERVICE, P as PO_SHELL_SERVICE, Q as readPoHeadlessHost, R as readPoIsolate, Y as invalidImageReason, ct as withAbortSignal, f as getOrThrow, ft as PO_SERVER_SCOPE_SERVICE, mt as requirePoServerScope, n as PO_SESSION_FILES_SERVICE, ot as BACKGROUND_CONTEXT, pt as defineServiceContract, rt as composeServerProviderOverrides, z as readPoNpm } from "./serverPlugin-H4T49sac.js";
|
|
2
2
|
import { A as Integer, G as _Object_, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
3
|
import { i as Errors, n as Check, r as Check$1 } from "./value-Djvc2foV.js";
|
|
4
|
-
import { d as defineServerTool, f as defineServerPlugin, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
4
|
+
import { d as defineServerTool, f as defineServerPlugin, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
5
5
|
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
6
|
-
import { i as isUnattended, n as gateApproval, o as PO_APPROVAL_SERVICE, s as readPoApproval, t as ApprovalPendingError } from "./approval-
|
|
7
|
-
import {
|
|
8
|
-
import "./platform-
|
|
9
|
-
import { r as PO_CONFIG_SERVICE } from "./sessionConfig-
|
|
10
|
-
import { n as readPackageConfigurations, t as readMajorModesConfig } from "./majorModes-
|
|
11
|
-
import "./exports-
|
|
12
|
-
import { n as PO_CODEMODE_SERVICE, r as assertCodemodeNamespaceName, t as PO_CODEMODE_CONTRACT } from "./codemode-
|
|
13
|
-
import "./majorModes-
|
|
6
|
+
import { i as isUnattended, n as gateApproval, o as PO_APPROVAL_SERVICE, s as readPoApproval, t as ApprovalPendingError } from "./approval-Eu7UgGL-.js";
|
|
7
|
+
import { i as readPoBackgroundWorkService, r as PO_BACKGROUND_WORK_SERVICE } from "./backgroundWork-bE3pc-R9.js";
|
|
8
|
+
import "./platform-CNhm9zLi.js";
|
|
9
|
+
import { r as PO_CONFIG_SERVICE } from "./sessionConfig-2a4LWInR.js";
|
|
10
|
+
import { n as readPackageConfigurations, t as readMajorModesConfig } from "./majorModes-C-OD4PBc.js";
|
|
11
|
+
import "./exports-CrJqsTU6.js";
|
|
12
|
+
import { n as PO_CODEMODE_SERVICE, r as assertCodemodeNamespaceName, t as PO_CODEMODE_CONTRACT } from "./codemode-yHAHBZO-.js";
|
|
13
|
+
import "./majorModes-AYZvnOpU.js";
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region ../../../node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/meta/meta.mjs
|
|
16
16
|
/** A collection of all meta schemas. */
|
|
@@ -1454,6 +1454,7 @@ function toResult(result, output, saved, calls, approvals = []) {
|
|
|
1454
1454
|
mimeType: image.mimeType
|
|
1455
1455
|
});
|
|
1456
1456
|
const details = {
|
|
1457
|
+
...!result.ok && !pending ? { failure: { kind: result.error.kind === "compile" ? "validation" : result.error.kind === "error" ? "unknown" : result.error.kind } } : {},
|
|
1457
1458
|
...calls.length > 0 ? { calls } : {},
|
|
1458
1459
|
...approvals.length > 0 ? { approvals } : {}
|
|
1459
1460
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { B as requirePoFs, c as nodeHost, ct as withAbortSignal, f as getOrThrow, o as poHomeDirectory, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides } from "./serverPlugin-
|
|
1
|
+
import { B as requirePoFs, c as nodeHost, ct as withAbortSignal, f as getOrThrow, o as poHomeDirectory, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
2
|
import { A as Integer, G as _Object_, M as Boolean$1, Q as _Array_, U as Unknown, _ as Union, k as Literal, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
3
|
import "./value-Djvc2foV.js";
|
|
4
|
-
import { r as removePath } from "./platformFiles-
|
|
5
|
-
import { c as defineRoute, f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
4
|
+
import { r as removePath } from "./platformFiles-3rzOh9cg.js";
|
|
5
|
+
import { c as defineRoute, f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
6
6
|
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
7
|
-
import "./platform-
|
|
8
|
-
import "./layeredConfig-
|
|
7
|
+
import "./platform-CNhm9zLi.js";
|
|
8
|
+
import "./layeredConfig-BqIwPJ-I.js";
|
|
9
9
|
import "./piSettings-B6fsgIBA.js";
|
|
10
|
-
import { a as expandDomainNames, n as loadDomainsAsync, o as isRemotePluginSource, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-
|
|
11
|
-
import { t as loadHarnessStateAsync } from "./harnessStore-
|
|
12
|
-
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-
|
|
13
|
-
import "./harnessStore-
|
|
10
|
+
import { a as expandDomainNames, n as loadDomainsAsync, o as isRemotePluginSource, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-dHfk2U8X.js";
|
|
11
|
+
import { t as loadHarnessStateAsync } from "./harnessStore-CRtlTdbI.js";
|
|
12
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-yHAHBZO-.js";
|
|
13
|
+
import "./harnessStore-DZ4lDIq6.js";
|
|
14
14
|
import { r as PO_USER_MCP_CONFIG_FILE, t as PO_MCP_PROJECTION_RESOLVER_SERVICE } from "./mcpProjection-BsP0IEnb.js";
|
|
15
15
|
//#region ../../foundations/po-domain/src/services/mcpFilter/core.ts
|
|
16
16
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as PO_HEADLESS_HOST_SERVICE,
|
|
2
|
-
import { a as modelInputSchema, i as readPoMcpRemoteServers, n as PO_MCP_REMOTE_SERVERS_SERVICE, o as isModelVisibleMcpTool, r as connectRemoteMcpServers, s as normalizeMcpAppMetadata } from "./remoteMcp-
|
|
1
|
+
import { H as PO_HEADLESS_HOST_SERVICE, pt as defineServiceContract, rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { a as modelInputSchema, i as readPoMcpRemoteServers, n as PO_MCP_REMOTE_SERVERS_SERVICE, o as isModelVisibleMcpTool, r as connectRemoteMcpServers, s as normalizeMcpAppMetadata } from "./remoteMcp-Ci8crSU9.js";
|
|
3
3
|
import { A as Integer, G as _Object_, Q as _Array_, _ as Union, d as Record, k as Literal, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
4
4
|
import "./value-Djvc2foV.js";
|
|
5
|
-
import { c as defineRoute, d as defineServerTool, f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-
|
|
5
|
+
import { c as defineRoute, d as defineServerTool, f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-CY4EFNHQ.js";
|
|
6
6
|
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
7
|
-
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-
|
|
7
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-yHAHBZO-.js";
|
|
8
8
|
//#region ../../default/po-mcp/src/extensions/(backend)/_lib/root.server.edge.ts
|
|
9
9
|
async function createMcpGlobalRoot(_plugin) {
|
|
10
10
|
return { value: { hubApi: void 0 } };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as requirePoFs, c as nodeHost, ct as withAbortSignal, f as getOrThrow, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides } from "./serverPlugin-
|
|
1
|
+
import { B as requirePoFs, c as nodeHost, ct as withAbortSignal, f as getOrThrow, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
2
|
import { G as _Object_, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
|
-
import { f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
3
|
+
import { f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
4
4
|
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
5
|
-
import "./platform-
|
|
5
|
+
import "./platform-CNhm9zLi.js";
|
|
6
6
|
import { t as readHarnessState } from "./harnessState-gmzJcPGt.js";
|
|
7
7
|
//#region ../../foundations/po-skill/src/constants/skillInventory.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./serverPlugin-
|
|
2
|
-
import { f as defineServerPlugin, u as defineServerCommand } from "./extensionFile-
|
|
1
|
+
import "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { f as defineServerPlugin, u as defineServerCommand } from "./extensionFile-CY4EFNHQ.js";
|
|
3
3
|
//#region ../../core/po-core/src/schemas/pluginContributions.ts
|
|
4
4
|
function defineCommand(command) {
|
|
5
5
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as requirePoFs, F as PO_SQLITE_SERVICE, N as PO_FS_SERVICE, V as requirePoSqlite,
|
|
1
|
+
import { B as requirePoFs, F as PO_SQLITE_SERVICE, N as PO_FS_SERVICE, V as requirePoSqlite, ft as PO_SERVER_SCOPE_SERVICE, it as defineServerMethod, mt as requirePoServerScope, o as poHomeDirectory, ot as BACKGROUND_CONTEXT, pt as defineServiceContract, rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
2
|
import { A as Integer, C as Null, G as _Object_, M as Boolean$1, Q as _Array_, R as Intersect, _ as Union, k as Literal, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
3
|
import { n as Check } from "./value-Djvc2foV.js";
|
|
4
4
|
import { at as definePoPluginMethod, m as jsonApiResponses, t as defineApiContract } from "./apiContracts-CHOiCbS_.js";
|
|
5
|
-
import { a as defineMethod, c as defineRoute, d as defineServerTool, f as defineServerPlugin, n as composeRootInjects, r as defineChannel, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
5
|
+
import { a as defineMethod, c as defineRoute, d as defineServerTool, f as defineServerPlugin, n as composeRootInjects, r as defineChannel, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
6
6
|
import { n as PO_APPROVAL_VOICE_EVENT, r as PoApprovalPromptSchema } from "./approvalPrompt-Bg1JrEEY.js";
|
|
7
|
-
import { a as PO_APPROVAL_CONTRACT, o as PO_APPROVAL_SERVICE } from "./approval-
|
|
8
|
-
import "./platform-
|
|
7
|
+
import { a as PO_APPROVAL_CONTRACT, o as PO_APPROVAL_SERVICE } from "./approval-Eu7UgGL-.js";
|
|
8
|
+
import "./platform-CNhm9zLi.js";
|
|
9
9
|
import "./worker.js";
|
|
10
10
|
import "./piSettings-B6fsgIBA.js";
|
|
11
11
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rt as composeServerProviderOverrides } from "./serverPlugin-
|
|
2
|
-
import { c as defineRoute, f as defineServerPlugin, i as defineHook, n as composeRootInjects, p as runCleanups, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-
|
|
1
|
+
import { rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { c as defineRoute, f as defineServerPlugin, i as defineHook, n as composeRootInjects, p as runCleanups, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-CY4EFNHQ.js";
|
|
3
3
|
import { t as PoProtocolError } from "./protocol-Xpm_mCNN.js";
|
|
4
4
|
import { a as MINOR_MODE_CATALOG_SOURCE, c as PO_MINOR_MODE_ENTRY_TYPE, n as validateMinorModeActionArguments, o as MINOR_MODE_ERROR_CODE, r as validateMinorModeDefinition, s as PO_MINOR_MODE_CATALOG_SERVICE, t as minorModeKey } from "./validation-D77NZBrx.js";
|
|
5
5
|
//#region ../../foundations/po-minor-mode/src/constants/command.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as requirePoFs, c as nodeHost, et as Service, f as getOrThrow, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides, s as createSerialRunner } from "./serverPlugin-
|
|
2
|
-
import { i as writeFileAtomic, t as readTextIfExists } from "./platformFiles-
|
|
3
|
-
import { f as defineServerPlugin, i as defineHook, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
4
|
-
import "./platform-
|
|
5
|
-
import "./harnessStore-
|
|
1
|
+
import { B as requirePoFs, c as nodeHost, et as Service, f as getOrThrow, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides, s as createSerialRunner } from "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { i as writeFileAtomic, t as readTextIfExists } from "./platformFiles-3rzOh9cg.js";
|
|
3
|
+
import { f as defineServerPlugin, i as defineHook, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
4
|
+
import "./platform-CNhm9zLi.js";
|
|
5
|
+
import "./harnessStore-DZ4lDIq6.js";
|
|
6
6
|
import { l as readMinorModeCatalog, s as PO_MINOR_MODE_CATALOG_SERVICE } from "./validation-D77NZBrx.js";
|
|
7
7
|
import { createHash, randomUUID } from "node:crypto";
|
|
8
8
|
import { join } from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as requirePoFs, F as PO_SQLITE_SERVICE, N as PO_FS_SERVICE, V as requirePoSqlite,
|
|
2
|
-
import { a as infoFor, i as MAX_MESSAGES_PER_KEY, o as isSealedEnvelope, t as PO_SESSION_ATTENTION_EVENT, u as poApiCallerFrom } from "./hubChannel-
|
|
1
|
+
import { B as requirePoFs, F as PO_SQLITE_SERVICE, N as PO_FS_SERVICE, V as requirePoSqlite, c as nodeHost, f as getOrThrow, ft as PO_SERVER_SCOPE_SERVICE, mt as requirePoServerScope, o as poHomeDirectory, ot as BACKGROUND_CONTEXT, pt as defineServiceContract, rt as composeServerProviderOverrides, s as createSerialRunner } from "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { a as infoFor, i as MAX_MESSAGES_PER_KEY, o as isSealedEnvelope, t as PO_SESSION_ATTENTION_EVENT, u as poApiCallerFrom } from "./hubChannel-Cj1iF847.js";
|
|
3
3
|
import { n as Check } from "./value-Djvc2foV.js";
|
|
4
|
-
import { t as readTextIfExists } from "./platformFiles-
|
|
5
|
-
import { c as defineRoute, f as defineServerPlugin, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
6
|
-
import {
|
|
7
|
-
import "./platform-
|
|
8
|
-
import { n as writePrivateAtomicJsonAsync } from "./atomicJson-
|
|
4
|
+
import { t as readTextIfExists } from "./platformFiles-3rzOh9cg.js";
|
|
5
|
+
import { c as defineRoute, f as defineServerPlugin, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
6
|
+
import { n as PO_BACKGROUND_WORK_CHANGED_EVENT, r as PO_BACKGROUND_WORK_SERVICE, t as BackgroundProviderWorkItemSchema } from "./backgroundWork-bE3pc-R9.js";
|
|
7
|
+
import "./platform-CNhm9zLi.js";
|
|
8
|
+
import { n as writePrivateAtomicJsonAsync } from "./atomicJson-DwSqByUJ.js";
|
|
9
9
|
import "./piSettings-B6fsgIBA.js";
|
|
10
10
|
import { ECDH, createCipheriv, createDecipheriv, createECDH, createHash, createHmac, hkdfSync, randomBytes, timingSafeEqual } from "node:crypto";
|
|
11
11
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./serverPlugin-
|
|
2
|
-
import { c as defineRoute, f as defineServerPlugin, l as defineRoutedContribution, o as defineResource } from "./extensionFile-
|
|
1
|
+
import "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { c as defineRoute, f as defineServerPlugin, l as defineRoutedContribution, o as defineResource } from "./extensionFile-CY4EFNHQ.js";
|
|
3
3
|
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
4
|
-
import { i as resolveLayers, r as loadMajorModesConfig } from "./majorModes-
|
|
5
|
-
import "./majorModes-
|
|
4
|
+
import { i as resolveLayers, r as loadMajorModesConfig } from "./majorModes-C-OD4PBc.js";
|
|
5
|
+
import "./majorModes-AYZvnOpU.js";
|
|
6
6
|
//#region ../../foundations/po-major-mode/src/extensions/workspaces/sessions/(backend)/api/major-mode/route.server.ts
|
|
7
7
|
var route_server_default = defineRoute(({ agent }) => ({
|
|
8
8
|
basePath: "major-mode",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./serverPlugin-
|
|
2
|
-
import { d as defineServerTool, f as defineServerPlugin, u as defineServerCommand } from "./extensionFile-
|
|
1
|
+
import "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { d as defineServerTool, f as defineServerPlugin, u as defineServerCommand } from "./extensionFile-CY4EFNHQ.js";
|
|
3
3
|
//#region ../../foundations/po-ui/src/constants/ui.ts
|
|
4
4
|
const TOOLS_COMMAND = "tools";
|
|
5
5
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as piAgentDirectory, et as Service, rt as composeServerProviderOverrides } from "./serverPlugin-
|
|
2
|
-
import { c as defineRoute, f as defineServerPlugin, i as defineHook, n as composeRootInjects, r as defineChannel, s as defineRoot, t as composeRootHooks } from "./extensionFile-
|
|
1
|
+
import { a as piAgentDirectory, et as Service, rt as composeServerProviderOverrides } from "./serverPlugin-H4T49sac.js";
|
|
2
|
+
import { c as defineRoute, f as defineServerPlugin, i as defineHook, n as composeRootInjects, r as defineChannel, s as defineRoot, t as composeRootHooks } from "./extensionFile-CY4EFNHQ.js";
|
|
3
3
|
import { r as readPoFileAccess } from "./fileAccess-bFgmsyx0.js";
|
|
4
|
-
import "./platform-
|
|
4
|
+
import "./platform-CNhm9zLi.js";
|
|
5
5
|
import "./piSettings-B6fsgIBA.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { clearTimeout, setTimeout } from "node:timers";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as NOOP_TELEMETRY_CONTEXT } from "./dist-Dvx5mlIR.js";
|
|
1
2
|
import { createHash } from "node:crypto";
|
|
2
3
|
import path from "node:path";
|
|
3
4
|
//#region ../../core/po-core/src/schemas/serverScope.ts
|
|
@@ -30,55 +31,6 @@ function requirePoServerScope(context) {
|
|
|
30
31
|
return service;
|
|
31
32
|
}
|
|
32
33
|
//#endregion
|
|
33
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/noop.js
|
|
34
|
-
async function startNoopSpan(_options, callback) {
|
|
35
|
-
return callback(noopTelemetrySpan);
|
|
36
|
-
}
|
|
37
|
-
const noopCounter = Object.freeze({ add: () => {} });
|
|
38
|
-
const noopUpDownCounter = Object.freeze({ add: () => {} });
|
|
39
|
-
const noopHistogram = Object.freeze({ record: () => {} });
|
|
40
|
-
/** Shared instruments that never inspect or retain metadata, measurements, or contexts. */
|
|
41
|
-
const NOOP_TELEMETRY_METRICS = Object.freeze({
|
|
42
|
-
counter: () => noopCounter,
|
|
43
|
-
upDownCounter: () => noopUpDownCounter,
|
|
44
|
-
histogram: () => noopHistogram
|
|
45
|
-
});
|
|
46
|
-
const noopTelemetrySpan = {
|
|
47
|
-
metrics: NOOP_TELEMETRY_METRICS,
|
|
48
|
-
propagation: Object.freeze({
|
|
49
|
-
inject: () => void 0,
|
|
50
|
-
extract: () => NOOP_TELEMETRY_CONTEXT
|
|
51
|
-
}),
|
|
52
|
-
startSpan: startNoopSpan,
|
|
53
|
-
addLink: () => {},
|
|
54
|
-
addEvent: () => {},
|
|
55
|
-
setAttributes: () => {},
|
|
56
|
-
setStatus: () => {}
|
|
57
|
-
};
|
|
58
|
-
Object.freeze(noopTelemetrySpan);
|
|
59
|
-
/** Shared telemetry context used when an application does not provide one. */
|
|
60
|
-
const NOOP_TELEMETRY_CONTEXT = noopTelemetrySpan;
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.js
|
|
63
|
-
/** Typed identity helper for serializable telemetry schema data. */
|
|
64
|
-
function defineTelemetrySchema(schema) {
|
|
65
|
-
return schema;
|
|
66
|
-
}
|
|
67
|
-
function bindTypedSpanStarter(telemetryContext) {
|
|
68
|
-
const startSpan = (name, attributes, callback) => telemetryContext.startSpan({
|
|
69
|
-
name,
|
|
70
|
-
attributes
|
|
71
|
-
}, (span) => callback(span, bindTypedSpanStarter(span)));
|
|
72
|
-
return startSpan;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Bind an explicit parent context to the combined span vocabulary of one or more schemas.
|
|
76
|
-
* Schema values are used only for type inference; no runtime schema validation is performed.
|
|
77
|
-
*/
|
|
78
|
-
function createTypedSpanStarter(telemetryContext, _schemas) {
|
|
79
|
-
return bindTypedSpanStarter(telemetryContext);
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
34
|
//#region ../../../node_modules/.pnpm/@earendil-works+chord@1.5.0_esbuild@0.28.2/node_modules/@earendil-works/chord/dist/context/index.js
|
|
83
35
|
const ABORT_SIGNAL_CONTEXT_KEY = Object.freeze({ token: Symbol("chord.abortSignal") });
|
|
84
36
|
const TELEMETRY_CONTEXT_KEY = Object.freeze({ token: Symbol("chord.telemetry") });
|
|
@@ -2346,6 +2298,7 @@ const PO_ISOLATE_SERVICE = "po/isolate";
|
|
|
2346
2298
|
const PO_NPM_SERVICE = "po/npm";
|
|
2347
2299
|
const PO_ELECTRON_SERVICE = "po/electron";
|
|
2348
2300
|
const PO_BROWSER_SERVICE = "po/browser";
|
|
2301
|
+
const PO_PROVIDER_AUTH_SERVICE = "po/provider-auth";
|
|
2349
2302
|
function readPoFs(context) {
|
|
2350
2303
|
return context.get(PO_FS_SERVICE);
|
|
2351
2304
|
}
|
|
@@ -2903,6 +2856,7 @@ function platformProvider(context, input) {
|
|
|
2903
2856
|
if (input.platform.npm !== void 0) context.provide(PO_NPM_SERVICE, input.platform.npm);
|
|
2904
2857
|
if (input.platform.electron !== void 0) context.provide(PO_ELECTRON_SERVICE, input.platform.electron);
|
|
2905
2858
|
if (input.platform.browser !== void 0) context.provide(PO_BROWSER_SERVICE, input.platform.browser);
|
|
2859
|
+
if (input.platform.providerAuth !== void 0) context.provide(PO_PROVIDER_AUTH_SERVICE, input.platform.providerAuth);
|
|
2906
2860
|
if (input.temporaryDirectory !== void 0) context.provide(PO_SESSION_FILES_SERVICE, { temporaryDirectory: input.temporaryDirectory });
|
|
2907
2861
|
context.effect(() => () => env.cleanup(BACKGROUND_CONTEXT), "platform execution env");
|
|
2908
2862
|
}
|
|
@@ -3390,4 +3344,4 @@ function deliver(scopes, name, args) {
|
|
|
3390
3344
|
if (errors.length > 0) throw new AggregateError(errors, `${errors.length} scope listener(s) of '${name}' failed.`);
|
|
3391
3345
|
}
|
|
3392
3346
|
//#endregion
|
|
3393
|
-
export { readPoHeadlessOwner as $, seqFromNumber as A, requirePoFs as B, defineDoc as C, materializeDocumentValue as D, materializeDocument as E, PO_SQLITE_SERVICE as F, PoHeadlessPromptAdmissionError as G, PO_HEADLESS_HOST_SERVICE as H, readPoBrowser as I, dropInvalidImages as J, PoHeadlessToolBusyError as K, readPoFs as L, PO_BROWSER_SERVICE as M, PO_FS_SERVICE as N, resolveAddress as O, PO_SHELL_SERVICE as P, readPoHeadlessHost as Q, readPoIsolate as R, checkRecordVersion as S, documentCreate as T, PO_LOAD_SKILL_TOOL as U, requirePoSqlite as V, PO_SEARCH_SKILLS_TOOL as W, isPoHeadlessPromptAdmissionError as X, invalidImageReason as Y, isPoHeadlessToolModelVisible as Z, LabelsDoc as _,
|
|
3347
|
+
export { readPoHeadlessOwner as $, seqFromNumber as A, requirePoFs as B, defineDoc as C, materializeDocumentValue as D, materializeDocument as E, PO_SQLITE_SERVICE as F, PoHeadlessPromptAdmissionError as G, PO_HEADLESS_HOST_SERVICE as H, readPoBrowser as I, dropInvalidImages as J, PoHeadlessToolBusyError as K, readPoFs as L, PO_BROWSER_SERVICE as M, PO_FS_SERVICE as N, resolveAddress as O, PO_SHELL_SERVICE as P, readPoHeadlessHost as Q, readPoIsolate as R, checkRecordVersion as S, documentCreate as T, PO_LOAD_SKILL_TOOL as U, requirePoSqlite as V, PO_SEARCH_SKILLS_TOOL as W, isPoHeadlessPromptAdmissionError as X, invalidImageReason as Y, isPoHeadlessToolModelVisible as Z, LabelsDoc as _, piAgentDirectory as a, requirePoServerHost as at, addressId as b, nodeHost as c, withAbortSignal as ct, err as d, PO_SERVER_SCOPE_LEVELS as dt, Service as et, getOrThrow as f, PO_SERVER_SCOPE_SERVICE as ft, IdentityHistoryDoc as g, FastModeDoc as h, prepareSessionEnvironment as i, defineServerMethod as it, copyJson as j, idFromNumber as k, ExecutionError as l, withTelemetry as lt, AgentLockDoc as m, requirePoServerScope as mt, PO_SESSION_FILES_SERVICE as n, PO_SERVER_HOST_SERVICE as nt, poHomeDirectory as o, BACKGROUND_CONTEXT as ot, ok as p, defineServiceContract as pt, PoSessionSetupError as q, PO_SESSION_TEMP_DIR as r, composeServerProviderOverrides as rt, createSerialRunner as s, awaitWithContext as st, PoServerScope as t, guardedImport as tt, FileError as u, withoutAbortSignal as ut, SessionIdentityDoc as v, defineDocFamily as w, checkRecordScope as x, SessionMetadataDoc as y, readPoNpm as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as piAgentDirectory, c as nodeHost, et as Service, f as getOrThrow, ot as BACKGROUND_CONTEXT, s as createSerialRunner } from "./serverPlugin-
|
|
1
|
+
import { a as piAgentDirectory, c as nodeHost, et as Service, f as getOrThrow, ot as BACKGROUND_CONTEXT, s as createSerialRunner } from "./serverPlugin-H4T49sac.js";
|
|
2
2
|
import { A as Integer, G as _Object_, M as Boolean, Q as _Array_, _ as Union, k as Literal, q as Optional, x as Number$1, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
|
-
import { i as writeFileAtomic, t as readTextIfExists } from "./platformFiles-
|
|
3
|
+
import { i as writeFileAtomic, t as readTextIfExists } from "./platformFiles-3rzOh9cg.js";
|
|
4
4
|
import "./approvalPrompt-Bg1JrEEY.js";
|
|
5
5
|
import { c as PROFILE_ICON_MIME_TYPES, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, t as PO_CONFIG_ENTRY_TYPE } from "./contextProjection-DVP2Vc5j.js";
|
|
6
|
-
import "./platform-
|
|
7
|
-
import { n as writePrivateAtomicJsonAsync, t as createDirectoryWithMode } from "./atomicJson-
|
|
8
|
-
import { a as globalPoConfigPath, c as repositoryPoConfigPath, d as parse, f as parseDocument, l as configScopeOf, t as readPoConfigSourcesAsync, u as parsePoConfig } from "./layeredConfig-
|
|
6
|
+
import "./platform-CNhm9zLi.js";
|
|
7
|
+
import { n as writePrivateAtomicJsonAsync, t as createDirectoryWithMode } from "./atomicJson-DwSqByUJ.js";
|
|
8
|
+
import { a as globalPoConfigPath, c as repositoryPoConfigPath, d as parse, f as parseDocument, l as configScopeOf, t as readPoConfigSourcesAsync, u as parsePoConfig } from "./layeredConfig-BqIwPJ-I.js";
|
|
9
9
|
import "./piSettings-B6fsgIBA.js";
|
|
10
|
-
import { i as defaultDomainsForMajorMode, s as readPoConfig } from "./domains-
|
|
11
|
-
import { r as loadMajorModesConfig } from "./majorModes-
|
|
12
|
-
import { t as loadHarnessStateAsync } from "./harnessStore-
|
|
10
|
+
import { i as defaultDomainsForMajorMode, s as readPoConfig } from "./domains-dHfk2U8X.js";
|
|
11
|
+
import { r as loadMajorModesConfig } from "./majorModes-C-OD4PBc.js";
|
|
12
|
+
import { t as loadHarnessStateAsync } from "./harnessStore-CRtlTdbI.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
15
15
|
//#region ../../foundations/po-config/src/services/config/sync.edge.ts
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { n as clampThinkingLevel } from "./models-D6d73jcW.js";
|
|
2
|
+
import { s as getSystemMessageText } from "./identity-BIeAyilV.js";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.0_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js
|
|
4
|
+
const CHARS_PER_TOKEN = 3.5;
|
|
5
|
+
const ESTIMATED_IMAGE_CHARS = 4800;
|
|
6
|
+
function calculateContextTokens(usage) {
|
|
7
|
+
return usage.totalTokens || usage.input + usage.output + usage.cacheRead + usage.cacheWrite;
|
|
8
|
+
}
|
|
9
|
+
function safeJsonStringify(value) {
|
|
10
|
+
try {
|
|
11
|
+
return JSON.stringify(value) ?? "undefined";
|
|
12
|
+
} catch {
|
|
13
|
+
return "[unserializable]";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function estimateTextAndImageContentChars(content) {
|
|
17
|
+
if (typeof content === "string") return content.length;
|
|
18
|
+
let chars = 0;
|
|
19
|
+
for (const block of content) chars += block.type === "text" ? block.text.length : ESTIMATED_IMAGE_CHARS;
|
|
20
|
+
return chars;
|
|
21
|
+
}
|
|
22
|
+
function estimateTextTokens(text) {
|
|
23
|
+
return Math.ceil(text.length / CHARS_PER_TOKEN);
|
|
24
|
+
}
|
|
25
|
+
function estimateTextAndImageContentTokens(content) {
|
|
26
|
+
return Math.ceil(estimateTextAndImageContentChars(content) / CHARS_PER_TOKEN);
|
|
27
|
+
}
|
|
28
|
+
function estimateMessageTokens(message) {
|
|
29
|
+
let chars = 0;
|
|
30
|
+
if (message.role === "system") return estimateTextTokens(getSystemMessageText(message)) + estimateToolsTokens(message.toolsAdded) + estimateToolsTokens(message.toolsRemoved);
|
|
31
|
+
if (message.role === "user") return estimateTextAndImageContentTokens(message.content);
|
|
32
|
+
if (message.role === "toolResult") return estimateTextAndImageContentTokens(message.content);
|
|
33
|
+
for (const block of message.content) if (block.type === "text") chars += block.text.length;
|
|
34
|
+
else if (block.type === "thinking") chars += block.thinking.length;
|
|
35
|
+
else chars += block.name.length + safeJsonStringify(block.arguments).length;
|
|
36
|
+
return Math.ceil(chars / CHARS_PER_TOKEN);
|
|
37
|
+
}
|
|
38
|
+
function getLastAssistantUsageInfo(messages) {
|
|
39
|
+
let latestPrefixTimestamp = Number.NEGATIVE_INFINITY;
|
|
40
|
+
let usageInfo;
|
|
41
|
+
for (let i = 0; i < messages.length; i++) {
|
|
42
|
+
const message = messages[i];
|
|
43
|
+
if (message.role === "assistant") {
|
|
44
|
+
const assistant = message;
|
|
45
|
+
if (assistant.timestamp >= latestPrefixTimestamp && assistant.stopReason !== "aborted" && assistant.stopReason !== "error" && calculateContextTokens(assistant.usage) > 0) usageInfo = {
|
|
46
|
+
usage: assistant.usage,
|
|
47
|
+
index: i
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
latestPrefixTimestamp = Math.max(latestPrefixTimestamp, message.timestamp);
|
|
51
|
+
}
|
|
52
|
+
return usageInfo;
|
|
53
|
+
}
|
|
54
|
+
function estimateContextTokens(context) {
|
|
55
|
+
const messages = "messages" in context ? context.messages : context;
|
|
56
|
+
const usageInfo = getLastAssistantUsageInfo(messages);
|
|
57
|
+
if (usageInfo) {
|
|
58
|
+
const usageTokens = calculateContextTokens(usageInfo.usage);
|
|
59
|
+
let trailingTokens = 0;
|
|
60
|
+
for (let i = usageInfo.index + 1; i < messages.length; i++) trailingTokens += estimateMessageTokens(messages[i]);
|
|
61
|
+
return {
|
|
62
|
+
tokens: usageTokens + trailingTokens,
|
|
63
|
+
usageTokens,
|
|
64
|
+
trailingTokens,
|
|
65
|
+
lastUsageIndex: usageInfo.index
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
let tokens = 0;
|
|
69
|
+
for (const message of messages) tokens += estimateMessageTokens(message);
|
|
70
|
+
return {
|
|
71
|
+
tokens,
|
|
72
|
+
usageTokens: 0,
|
|
73
|
+
trailingTokens: tokens,
|
|
74
|
+
lastUsageIndex: null
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function estimateToolsTokens(tools) {
|
|
78
|
+
if (!tools || tools.length === 0) return 0;
|
|
79
|
+
return estimateTextTokens(safeJsonStringify(tools));
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.0_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js
|
|
83
|
+
const CONTEXT_SAFETY_TOKENS = 4096;
|
|
84
|
+
const MIN_MAX_TOKENS = 1;
|
|
85
|
+
function clampMaxTokensToContext(model, context, maxTokens) {
|
|
86
|
+
if (model.contextWindow <= 0) return Math.max(MIN_MAX_TOKENS, maxTokens);
|
|
87
|
+
const available = model.contextWindow - estimateContextTokens(context).tokens - CONTEXT_SAFETY_TOKENS;
|
|
88
|
+
return Math.min(maxTokens, Math.max(MIN_MAX_TOKENS, available));
|
|
89
|
+
}
|
|
90
|
+
function resolveSamplingParams(model, thinkingLevel, requestParams) {
|
|
91
|
+
const effectiveThinkingLevel = clampThinkingLevel(model, thinkingLevel);
|
|
92
|
+
const thinkingLevelParams = model.samplingParamsByThinkingLevel?.[effectiveThinkingLevel];
|
|
93
|
+
return model.samplingParams || thinkingLevelParams || requestParams ? {
|
|
94
|
+
...model.samplingParams,
|
|
95
|
+
...thinkingLevelParams,
|
|
96
|
+
...requestParams
|
|
97
|
+
} : void 0;
|
|
98
|
+
}
|
|
99
|
+
function buildBaseOptions(model, context, options, apiKey) {
|
|
100
|
+
const samplingParams = resolveSamplingParams(model, options?.reasoning ?? "off", options?.samplingParams);
|
|
101
|
+
return {
|
|
102
|
+
temperature: options?.temperature,
|
|
103
|
+
samplingParams,
|
|
104
|
+
maxTokens: clampMaxTokensToContext(model, context, options?.maxTokens ?? model.maxTokens),
|
|
105
|
+
signal: options?.signal,
|
|
106
|
+
telemetry: options?.telemetry,
|
|
107
|
+
apiKey: apiKey || options?.apiKey,
|
|
108
|
+
fetch: options?.fetch,
|
|
109
|
+
transport: options?.transport,
|
|
110
|
+
cacheRetention: options?.cacheRetention,
|
|
111
|
+
sessionId: options?.sessionId,
|
|
112
|
+
headers: options?.headers,
|
|
113
|
+
identity: options?.identity,
|
|
114
|
+
onPayload: options?.onPayload,
|
|
115
|
+
onResponse: options?.onResponse,
|
|
116
|
+
onProviderStreamEvent: options?.onProviderStreamEvent,
|
|
117
|
+
timeoutMs: options?.timeoutMs,
|
|
118
|
+
websocketConnectTimeoutMs: options?.websocketConnectTimeoutMs,
|
|
119
|
+
maxRetries: options?.maxRetries,
|
|
120
|
+
maxRetryDelayMs: options?.maxRetryDelayMs,
|
|
121
|
+
metadata: options?.metadata,
|
|
122
|
+
env: options?.env
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/** Tokens always left for the answer when a thinking budget shares the response ceiling. */
|
|
126
|
+
const MIN_ANSWER_TOKENS = 1024;
|
|
127
|
+
const DEFAULT_THINKING_BUDGETS = {
|
|
128
|
+
minimal: 1024,
|
|
129
|
+
low: 2048,
|
|
130
|
+
medium: 8192,
|
|
131
|
+
high: 16384
|
|
132
|
+
};
|
|
133
|
+
function clampReasoning(effort) {
|
|
134
|
+
return effort === "xhigh" || effort === "max" ? "high" : effort;
|
|
135
|
+
}
|
|
136
|
+
function thinkingBudgetForLevel(reasoningLevel, customBudgets) {
|
|
137
|
+
return {
|
|
138
|
+
...DEFAULT_THINKING_BUDGETS,
|
|
139
|
+
...customBudgets
|
|
140
|
+
}[clampReasoning(reasoningLevel)];
|
|
141
|
+
}
|
|
142
|
+
/** Cap a thinking budget so at least MIN_ANSWER_TOKENS remain under a shared response ceiling. */
|
|
143
|
+
function clampThinkingBudgetToAnswerRoom(thinkingBudget, ceiling) {
|
|
144
|
+
return Math.min(thinkingBudget, Math.max(0, ceiling - MIN_ANSWER_TOKENS));
|
|
145
|
+
}
|
|
146
|
+
function adjustMaxTokensForThinking(baseMaxTokens, modelMaxTokens, reasoningLevel, customBudgets) {
|
|
147
|
+
let thinkingBudget = thinkingBudgetForLevel(reasoningLevel, customBudgets);
|
|
148
|
+
const maxTokens = baseMaxTokens === void 0 ? modelMaxTokens : Math.min(baseMaxTokens + thinkingBudget, modelMaxTokens);
|
|
149
|
+
if (maxTokens <= thinkingBudget) thinkingBudget = clampThinkingBudgetToAnswerRoom(thinkingBudget, maxTokens);
|
|
150
|
+
return {
|
|
151
|
+
maxTokens,
|
|
152
|
+
thinkingBudget
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
export { resolveSamplingParams as a, estimateMessageTokens as c, clampThinkingBudgetToAnswerRoom as i, buildBaseOptions as n, thinkingBudgetForLevel as o, clampMaxTokensToContext as r, calculateContextTokens as s, adjustMaxTokensForThinking as t };
|