@agimon-ai/po-cloudflare 0.0.2-alpha.52 → 0.0.2-alpha.53
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/dist/agent-DPZPdhAM.js +294 -0
- package/dist/{apiContracts-ztWPx8ew.js → apiContracts-DPkF6nO1.js} +9 -2
- package/dist/{approval-B3rZD3vi.js → approval-DSCtQJI5.js} +2 -2
- package/dist/{approvalPrompt-T51v0aYQ.js → approvalPrompt-VF1qKoHo.js} +1 -1
- package/dist/assets/assets/{CodeEditorView-DxA3ZH1A.js → CodeEditorView-CfrDdlJD.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C_lkrQLm.js → abnfDiagram-WEYOIA3C-B4t-TJa8.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-BEvKFw8z.js → architecture-WOLXFQ4H-Dt5575c3.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DFgUW6Ie.js → architectureDiagram-ZHVYKT53-3VA1TWCs.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-BSDWAfq8.js → blockDiagram-RJAE7QA3-DddJCTcm.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-B8x-BlQZ.js → c4Diagram-XDPPPE54-C3TfqIdx.js} +2 -2
- package/dist/assets/assets/channel-7CCQMskZ.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-u3oezgQg.js → chunk-2E7WHVMD-DFdehhC1.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-pWp1Y8_x.js → chunk-4EMNKR2T-fYAmSG7l.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CmbyhvA1.js → chunk-55XCU76K-BQzjIQF_.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-BkTaY1mp.js → chunk-7S6XSTFO-Kq9L8f1l.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-BhS9B8ur.js → chunk-AQDTSKZB-B6fd5E80.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-CVABW-f7.js → chunk-DSNLSHJZ-CvZRtdu4.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-C5bNnpY1.js → chunk-HAGFOTED-D2IEIHmz.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-BUwXai9v.js → chunk-HNE4Q36P-BwcSxUiQ.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-ClQnsR1n.js → chunk-NQOKRVIF-C-DG5CQE.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-CC0C5LTC.js → chunk-UHW7PFBP-B5xvJR32.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-DFeKhNG0.js → chunk-VQ5W62QI-pU16C9Cw.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-K_zCkbM8.js → chunk-WQQL4CDK-CqOpx5a5.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-svs99OoQ.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-69DVaaOl.js → chunk-YZO67HFG-iHi4qa0T.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-BTDNvXTA.js → chunk-ZAUX2LTX-XSCT0wzk.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-C16Z41zx.js → chunk-ZCHMQSOR-B-QRl1td.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-BNxTCpi8.js → classDiagram-v2-4MYWR3UA-BYiCZ7EK.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-Dy0HUXom.js → cose-bilkent-JH36ORCC-B1-tmCBN.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-DkGh066L.js → cynefin-EF2NZ3EQ-BphcEjHT.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-D_HLG9gI.js → cynefinDiagram-WF24UDRP-CgL5bDOF.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DLEcFGoO.js → dagre-NK4GIZVX-S979rKpQ.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-2bBLzVus.js → diagram-CBK3MWTC-Br8nsqMP.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-CD-BlaIA.js → diagram-I5XIIV2D-D7K3D2Hd.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-D9hi6o7x.js → diagram-ODIL2UCW-D4wlC0LC.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-jH_pMyai.js → diagram-PFBEJUXE-B3K05RhM.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-DgT3Io-y.js → diagram-RJA3I4VV-hl_LxHDH.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CY6KWTPX.js → diagram-TYUNFSNR-C7Ms2t6b.js} +2 -2
- package/dist/assets/assets/{dist-C92ip3Av.js → dist-2YZoWXI-.js} +2 -2
- package/dist/assets/assets/{dist-BlSfn0LX.js → dist-B5OUOjcs.js} +2 -2
- package/dist/assets/assets/{dist-DgzAXTEu.js → dist-BkYLWj4-.js} +2 -2
- package/dist/assets/assets/{dist-DRx2wyM7.js → dist-Bo-Bnzej.js} +2 -2
- package/dist/assets/assets/{dist-DUCp5R3Y.js → dist-C0Mr4l2g.js} +2 -2
- package/dist/assets/assets/{dist-CwR-24Yr.js → dist-CaQ_1hXR.js} +2 -2
- package/dist/assets/assets/{dist-Dgo5gjTQ.js → dist-DFMbd1d2.js} +2 -2
- package/dist/assets/assets/{dist-9CmwtCd8.js → dist-DG5shZud.js} +2 -2
- package/dist/assets/assets/{dist-CI-DBA93.js → dist-IHpkldJY.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-396OCyhV.js → ebnfDiagram-V4P3TTPT-C52HY_Io.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-8m8ZCGfe.js → elk-QONTBCTQ-FAn-wvGV.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-DJtSnQxe.js → erDiagram-KYQIGQAA-B2FB288w.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-CS3e1AEV.js → eventmodeling-K75KTNOO-Dbdpyi3v.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-Bqm_qYwe.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-BB7U8Uso.js → ganttDiagram-R7GPNTJY-Cx-1Ua4Q.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-DyrcieOY.js → gitGraph-VSP46ZUC-B6hNdptT.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-DIiKZO1w.js → gitGraphDiagram-PDYL7XHY-TrOCB2kz.js} +2 -2
- package/dist/assets/assets/index-BKAdoz7y.css +1 -0
- package/dist/assets/assets/{index-Cg2af-IB.js → index-CzLi4EAh.js} +87 -87
- package/dist/assets/assets/{info-OHQRW6UA-Bhw1NHhQ.js → info-OHQRW6UA-NPQ3LIoo.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-ChvvnLLl.js → infoDiagram-MVDRKAX5-D5edtzWg.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-oTY_c_In.js → ishikawaDiagram-HPEHV2GE-DnaExx4H.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-il4CSJWC.js → journeyDiagram-BOSHW7O7-Csrn2b7D.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-BV2l4441.js → kanban-definition-FNSA4HC5-leAOGE3c.js} +2 -2
- package/dist/assets/assets/{line-BmcaeeHJ.js → line-BeTXyN8l.js} +2 -2
- package/dist/assets/assets/{linear-EcXvODAs.js → linear-MXYex3sA.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-DCyBrDFT.js → mermaid-parser.core-DiFcW_Nn.js} +4 -4
- package/dist/assets/assets/{mermaid.core-Cgtopfep.js → mermaid.core-CAdgvMGs.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-CIE23M4r.js → mindmap-definition-6OY57UG3-Dl2HlKUW.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-nJWrYWP4.js → packet-JDAUHWVQ-BpnqX6zH.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-DAPa2Q2F.js → pegDiagram-ECIUJNBX-VPRL3PEj.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-geBXaO_P.js → pie-XZMESJXO-BATV8UFk.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-DdT7EkqE.js → pieDiagram-GNMPY74T-Cixnq9Ps.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-BswBw66V.js → quadrantDiagram-D57K4MC3-llZ4b1e_.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-CHuo54-W.js → radar-ABXABTNO-Dc71EBhl.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-BUEoeV0z.js → railroad-I3PHUGI6-B5ySSJ2S.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-DcICh0ZX.js → railroad-abnf-LNEFI6M7-BlMfUdSE.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-D6Hj1svc.js → railroad-ebnf-DWYD2UWJ-DR3nbetX.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-srTGkJvC.js → railroad-peg-JR7BVNR7-Dm2h-h90.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-etbhdZgK.js → railroadDiagram-Y72NRBL7-B6Zc5SNQ.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-BKBJ9pOa.js → requirementDiagram-EQYSW5RA-D2jjs06k.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-XmPYxu2M.js → sankeyDiagram-SY24JHO5-CSrI8L0f.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-CLEbYOiN.js → sequenceDiagram-BLEHNHQU-CqDLfzml.js} +2 -2
- package/dist/assets/assets/{src-Bgetewag.js → src-D-__up9C.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-Z23CIn-N.js → stateDiagram-v2-A6IESKWZ-C3jVGNib.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-6v3lw9fE.js → swimlanes-B3ENRKFQ-uwWvxsIe.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-DhBnspZ0.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-DtE4hOQb.js → timeline-definition-JXYKGLGB-GmMPnb0z.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-But_OmXs.js → treeView-D4JQ5SDB-BSzFk4nb.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-BOd0rHl4.js → treemap-SAJKECNS-CsMF5mqr.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-LprjI036.js → usecaseDiagram-WPOLBNNX-CLbZGzvC.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-BWLOoaO8.js → vennDiagram-Q3Y3IDCW-Dl_bACDH.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-3tvGrCqH.js → wardley-7MLQ67FV-Ex3MIw_7.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-2EeL1Dqo.js → wardleyDiagram-IVAIDKWA-hh_9T1Ri.js} +2 -2
- package/dist/assets/assets/{webpack-ECELyunN.js → webpack-0QL_27FF.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-DpqY89t8.js → xychartDiagram-4URNHDU4-ELxbPoq4.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +2 -2
- package/dist/assets/plugins/assets/base-DO6M3Yai.css +2 -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/chunks/po-web-runtime-CNbWqU90.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.3e4ea6e4--zEv5Ehw.js +2 -0
- package/dist/assets/plugins/slots/artifacts.84980c32-tWzUAGWB.js +1 -0
- package/dist/assets/plugins/slots/author.6acaa90f-BY5qusO-.js +93 -0
- package/dist/assets/plugins/slots/{autocompact.6f428144-v-SIi9_v.js → autocompact.ec8f713f-BF2OoKQP.js} +1 -1
- package/dist/assets/plugins/slots/backdrop-bamboo.56456e79-DNvIwvme.js +1 -0
- package/dist/assets/plugins/slots/browse.21de7bba-BU_un8e7.js +1 -0
- package/dist/assets/plugins/slots/{builtin-tools.75108f21-BqvZxc5f.js → builtin-tools.16ef5e25-DABW_Fnf.js} +3 -3
- package/dist/assets/plugins/slots/calendar.d1ccd3de-CD_N_NAT.js +2 -0
- package/dist/assets/plugins/slots/{codemode.c58fb583-Bv94kko-.js → codemode.5f359b9c-DeUtGkFj.js} +5 -5
- package/dist/assets/plugins/slots/domain.832848c8-DlYIlx4G.js +1 -0
- package/dist/assets/plugins/slots/{edit.804fec90-ByvyQOsU.js → edit.7c802139-B--hU2iy.js} +3 -3
- package/dist/assets/plugins/slots/files.364f16c9-D84Bfo1V.js +2 -0
- package/dist/assets/plugins/slots/goal.4c392100-Do7ZMZmu.js +1 -0
- package/dist/assets/plugins/slots/grep.d8bf9f57-DctHTUEx.js +1 -0
- package/dist/assets/plugins/slots/help.2ace5e43-D6BEXCPA.js +3 -0
- package/dist/assets/plugins/slots/log.07fd59a4-_60bYs68.js +4 -0
- package/dist/assets/plugins/slots/mcp.ea8b6aa2-DmiDLzNX.js +109 -0
- package/dist/assets/plugins/slots/plan.b526667a-CarCdjxf.js +3 -0
- package/dist/assets/plugins/slots/profile.63bc3ae6-jVjnoM_T.js +1 -0
- package/dist/assets/plugins/slots/{prompts.ae48c07a-CF72-FDH.js → prompts.9d9b47cc-BRaswOPJ.js} +5 -5
- package/dist/assets/plugins/slots/{read.4560591a-B0nLJcnu.js → read.926c024f-Vr7qE4yO.js} +1 -1
- package/dist/assets/plugins/slots/runner.5393fa6c-DVe7LRKa.js +9 -0
- package/dist/assets/plugins/slots/sessions.8e378a3b-BwYRSGXt.js +1 -0
- package/dist/assets/plugins/slots/skill.56c1cc07-Bofn2307.js +4 -0
- package/dist/assets/plugins/slots/subagents.dd77306a-u6LcPxy8.js +7 -0
- package/dist/assets/plugins/slots/vault.587549ba-C1vhgytz.js +1 -0
- package/dist/assets/plugins/slots/voice.920972c8-GcNrHVwm.js +1 -0
- package/dist/assets/plugins/slots/workflows.af96051d-DEqBrcqW.js +16 -0
- package/dist/assets/pwa/sw.js +1 -1
- package/dist/{atomicJson-BEwCGOHa.js → atomicJson-D34HcPdl.js} +2 -2
- package/dist/{backgroundWork-BwTUtLj_.js → backgroundWork-nGIEmwLA.js} +1 -1
- package/dist/childProcess-DtKCgLN_.js +32 -0
- package/dist/{codemode-BC69sRMW.js → codemode-BtvLJWp0.js} +1 -1
- package/dist/coerce-B9lZnT-O.js +13 -0
- package/dist/contract-BYhki4kv.js +4 -0
- package/dist/{contracts-Cq4n5vLR.js → contracts-CTL-n9JN.js} +1 -1
- package/dist/{contracts-DcwtBPdo.js → contracts-UhD6LX8P.js} +1 -1
- package/dist/cordisHost-B0Lqguq1.js +25 -0
- package/dist/delegation-C5t5mcF8.js +86 -0
- package/dist/exports-B0EYvzP6.js +1 -0
- package/dist/exports-B6mRsPuu.js +1 -0
- package/dist/{exports-BLyY5z_l.js → exports-CfOsHI1g.js} +652 -662
- package/dist/{exports-Dq5jEkdm.js → exports-ciHD2qnf.js} +9 -9
- package/dist/{exports-DBB15F3r.js → exports-q_T_5f-j.js} +2 -2
- package/dist/{extensionFile-DJfGtEm7.js → extensionFile-QPQewzW3.js} +1 -1
- package/dist/{harnessState-DVQuUGEJ.js → harnessState-DcdDfZNJ.js} +3 -3
- package/dist/{harnessStore-TpUmvc_t.js → harnessStore-DRH-GGmK.js} +4 -4
- package/dist/help-BW6pEjp1.js +1 -0
- package/dist/{help-BppjPyQI.js → help-DrH2zhEH.js} +1 -1
- package/dist/{cordisHost-DqWZKUop.js → home-kwZFHqOx.js} +1 -25
- package/dist/{http-Y7RgksEk.js → http-DPirSv9k.js} +1 -1
- package/dist/{hubRevisions-CPq0Lw8l.js → hubRevisions-CUmh0WS6.js} +1 -1
- package/dist/{index.edge-BeOSOpbm.js → index.edge-CZHhk1-b.js} +3 -3
- package/dist/{index.edge-CT1-41gV.js → index.edge-Dgy7XkQT.js} +1 -1
- package/dist/{index.edge-Bwlovw2c.js → index.edge-f90wdVxB.js} +6 -2
- package/dist/{layeredConfig-CfQAMbyp.js → layeredConfig-M2ym56Jc.js} +6 -136
- package/dist/{majorModes-awdEU9ON.js → majorModes-BQREZ9oL.js} +3 -3
- package/dist/majorModes-C3x0Iqce.js +1 -0
- package/dist/{narration-B4spVaUo.js → manualTranscription-C82hiuBF.js} +0 -1
- package/dist/{mcpProjection-Dy6Keyoz.js → mcpProjection-vjSocXj4.js} +1 -1
- package/dist/meta-CVgfTHQP.js +1030 -0
- package/dist/notification-Ldh-i9z1.js +143 -0
- package/dist/{packageApi-Bc5Kcla4.js → packageApi-DKTs9pKT.js} +2 -2
- package/dist/personTimeZone-B8t74tOS.js +23 -0
- package/dist/{piConfig-Dhp5UqUp.js → piConfig-BT1GsrRZ.js} +4 -4
- package/dist/piSettings-Dqm993Aw.js +1 -0
- package/dist/{platform-B5tkndf7.js → platform-DzFwfdEE.js} +1 -1
- package/dist/pluginProtocol-BkOh_QBH.js +1 -0
- package/dist/{pluginProtocol-H8vuILsi.js → pluginProtocol-DyYUrpkh.js} +1 -1
- package/dist/{protocol-BjZE-9pm.js → protocol-8wCqvSnD.js} +1 -1
- package/dist/{server-B-wXrQah.js → readiness-Ydw5zrKy.js} +4 -159
- package/dist/{server-B02_qESd.js → server--1FmOxrV.js} +4 -4
- package/dist/{server-B4I13cjT.js → server-BM0owGkR.js} +36 -36
- package/dist/{server-C2MrXBJb.js → server-BRgi-qlw.js} +7 -7
- package/dist/server-BWIK1A3M.js +29337 -0
- package/dist/{server-8Kf3AB9L.js → server-BZTP0JB8.js} +10 -10
- package/dist/{server-Ai3UoH9v.js → server-BfwgVf9q.js} +5 -5
- package/dist/{server-zP7O6Eix.js → server-BgII80cu.js} +6 -6
- package/dist/server-Bi76f0HG.js +161 -0
- package/dist/{server-Bh6qNviY.js → server-BsqRk1OH.js} +3 -3
- package/dist/{server-Bq4Jlbdd.js → server-C1zuc0Bq.js} +2 -2
- package/dist/{server-C47bjXaH.js → server-CDL6YssD.js} +15 -13
- package/dist/{server-C8CXdYUR.js → server-CE94DPkn.js} +4 -4
- package/dist/{server-LnRG2YS0.js → server-COOvlKYy.js} +3 -3
- package/dist/{server-C_vha2_5.js → server-CkFlBobZ.js} +11 -11
- package/dist/{server-BJZmvcA9.js → server-CmuY1eFW.js} +42 -21
- package/dist/{server-ay4PZuRC.js → server-CrBrgJ4p.js} +6 -6
- package/dist/{server-CuHPlJkx.js → server-CuN0cRH1.js} +16 -98
- package/dist/{server-zOS5LEFY.js → server-D13f2Snt.js} +9 -157
- package/dist/{server-B1rart8N.js → server-D3j6o6la.js} +13 -13
- package/dist/{server-CXvVeIJE.js → server-DAzlVhrk.js} +3 -3
- package/dist/{server-CkweZ1PF.js → server-DKgjvVZv.js} +9 -9
- package/dist/{server-CTIIJbTv.js → server-DQTp6-UN.js} +7 -6
- package/dist/{server-BqfzQk98.js → server-DctYcqcD.js} +9 -9
- package/dist/{server-D9-EbgdR.js → server-Dmy_sc3O.js} +16 -16
- package/dist/{server-DHobmwhy.js → server-Dz8W04DN.js} +22 -1046
- package/dist/{server-fgfuio9M.js → server-HCkTF3Ma.js} +12 -12
- package/dist/{server-VQY8sbQ4.js → server-TZtmWJFY.js} +6 -6
- package/dist/server-VW1x89Dx.js +1320 -0
- package/dist/{server-uWB0xyln.js → server-Yz0lFVlB.js} +9 -9
- package/dist/{server-CcTYnLE9.js → server-ZnSy1zEi.js} +5 -5
- package/dist/{server-DrcXHTvZ.js → server-bRyza3w6.js} +11 -10
- package/dist/{server-BJMBotJ0.js → server-imvDOkLc.js} +12 -12
- package/dist/{server-BtydnIhg.js → server-nQeTHJU9.js} +3 -3
- package/dist/{serverPlugin-CNbUxIzn.js → serverPlugin-DqGe5w4M.js} +24351 -19708
- package/dist/{sessionConfig-DgD3Re0N.js → sessionConfig-CkkROiMQ.js} +29 -49
- package/dist/sse-XlzXs1es.js +151 -0
- package/dist/{type-DfAOYs92.js → type-DXdkpYBE.js} +6 -6
- package/dist/type-W8aKnLPG.js +3661 -0
- package/dist/{validation-Bsg_2ZRM.js → validation-BxBfeWCM.js} +2 -2
- package/dist/{vaultSettings-Cp8r77ss.js → vaultSettings-BLndgNqa.js} +1 -1
- package/dist/{voiceTools-GxJVjGeJ.js → voiceTools-3EqrNqrX.js} +1 -1
- package/dist/web-BUmM1idY.js +4 -0
- package/dist/worker.js +13199 -13106
- package/dist/{workflow-C-tL1njy.js → workflow-C1TEru8x.js} +62 -4
- package/package.json +41 -39
- package/dist/agent-DeeAnjjz.js +0 -3878
- package/dist/assets/assets/channel-D2jCcfh4.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-ydocHMPn.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-Cdl-FgHO.js +0 -1
- package/dist/assets/assets/index-Dv8yd_7T.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-KDUG9rjf.js +0 -9
- package/dist/assets/plugins/assets/base-B0t0AVu8.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-CCFd5vM_.js +0 -1
- package/dist/assets/plugins/slots/approval.09e72f36-D7ewMO4R.js +0 -2
- package/dist/assets/plugins/slots/artifacts.50b639bb-dFYsSEU_.js +0 -1
- package/dist/assets/plugins/slots/author.7eb49c21-DM9iD8JG.js +0 -93
- package/dist/assets/plugins/slots/browse.28bf5167-Dw8Y2vfC.js +0 -1
- package/dist/assets/plugins/slots/domain.753f9f92-BW6_khAR.js +0 -1
- package/dist/assets/plugins/slots/files.66ffc636-zAJMcgYY.js +0 -2
- package/dist/assets/plugins/slots/goal.eb0b7cc4-C-j7sCmS.js +0 -1
- package/dist/assets/plugins/slots/grep.98262cff-DV3FuXgl.js +0 -1
- package/dist/assets/plugins/slots/help.a9c62f11-CL-NGdVz.js +0 -3
- package/dist/assets/plugins/slots/log.cb964209-CrZl-8Fl.js +0 -4
- package/dist/assets/plugins/slots/mcp.82cc1ff5-CSU-AZ60.js +0 -109
- package/dist/assets/plugins/slots/plan.4d282d5b-sfUXjAtM.js +0 -3
- package/dist/assets/plugins/slots/profile.ab16dcec-CeHEVkLd.js +0 -1
- package/dist/assets/plugins/slots/runner.6e494d59-CiLmVTiQ.js +0 -9
- package/dist/assets/plugins/slots/sessions.6f47cb4c-iHhuktVl.js +0 -1
- package/dist/assets/plugins/slots/skill.62a0a1b3-BZAbrhaf.js +0 -4
- package/dist/assets/plugins/slots/subagents.66369ef5-BP789mzj.js +0 -7
- package/dist/assets/plugins/slots/vault.3cbfcdc3-ZkQ2Upff.js +0 -1
- package/dist/assets/plugins/slots/voice.bbb514bc-B7b0x8jg.js +0 -1
- package/dist/childProcess-OAg6F7cb.js +0 -19
- package/dist/exports-JAI2BYXJ.js +0 -1
- package/dist/help-D7HCuxQ9.js +0 -1
- package/dist/majorModes-Cj_jSHgt.js +0 -1
- package/dist/piSettings-Ciixnc7H.js +0 -1
- package/dist/pluginProtocol-sAj386iQ.js +0 -1
- package/dist/web-DuR90K88.js +0 -4
|
@@ -1,109 +1,27 @@
|
|
|
1
|
-
import { $t as
|
|
2
|
-
import { M as provideBackgroundWorkService, j as startCoordinatedSession, o as readSessionGroupBridge, r as PO_SESSION_GROUP_BRIDGE_SERVICE } from "./type-
|
|
3
|
-
import { s as readTextIfExists, u as writeFileAtomic } from "./platform-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
1
|
+
import { $t as PO_CONFIG_SERVICE, Dt as BACKGROUND_CONTEXT, Et as toPoHeadlessToolResult, It as composeServerProviderOverrides, Xt as requirePoFs, bn as Optional, c as piAgentDirectory, f as nodeHost, g as getOrThrow, hn as Boolean$1, ln as Union, mn as Integer, n as runCleanups, pn as Literal, t as defineServerPlugin, tn as Check, u as createSerialRunner, un as String$1, xn as _Array_, yn as _Object_ } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import { M as provideBackgroundWorkService, j as startCoordinatedSession, o as readSessionGroupBridge, r as PO_SESSION_GROUP_BRIDGE_SERVICE } from "./type-DXdkpYBE.js";
|
|
3
|
+
import { s as readTextIfExists, u as writeFileAtomic } from "./platform-DzFwfdEE.js";
|
|
4
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-f90wdVxB.js";
|
|
5
|
+
import "./piSettings-Dqm993Aw.js";
|
|
6
|
+
import { t as HOME_ENTITY_LIMIT } from "./home-kwZFHqOx.js";
|
|
7
|
+
import { n as readPackageConfigurations, t as readMajorModesConfig } from "./majorModes-BQREZ9oL.js";
|
|
8
|
+
import "./exports-ciHD2qnf.js";
|
|
8
9
|
import { t as COORDINATOR_SESSION_PROVENANCE } from "./hubChannel-DckivLhM.js";
|
|
9
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-Bwlovw2c.js";
|
|
10
10
|
import { i as PO_CHILD_SESSION_LABELS_SERVICE, l as readPoChildSessionService } from "./childSession-BrDCrNtL.js";
|
|
11
|
-
import { l as readPoBackgroundWorkService } from "./backgroundWork-
|
|
11
|
+
import { l as readPoBackgroundWorkService } from "./backgroundWork-nGIEmwLA.js";
|
|
12
12
|
import { n as requirePoContextContributions, t as PO_CONTEXT_CONTRIBUTIONS_SERVICE } from "./contextContributions-DRo8z3cF.js";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
13
|
+
import "./cordisHost-B0Lqguq1.js";
|
|
14
|
+
import { a as defineHook, c as defineRoot, f as defineServerTool, l as defineRoute, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-QPQewzW3.js";
|
|
15
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-BtvLJWp0.js";
|
|
15
16
|
import { n as readPoSessionDelivery } from "./type-DHl8NZZ_.js";
|
|
16
|
-
import "./exports-
|
|
17
|
-
import {
|
|
17
|
+
import "./exports-B6mRsPuu.js";
|
|
18
|
+
import { i as resolveRootSessionId } from "./childProcess-DtKCgLN_.js";
|
|
19
|
+
import { a as PO_DELEGATION_CANCELLED_EVENT, c as PO_DELEGATION_SERVICE, d as PO_TEAM_INLINE_RUN_EVENT, i as PO_DELEGATION_ACCEPTED_EVENT, l as PO_DELEGATION_STARTED_EVENT, n as DelegationRequestSchema, o as PO_DELEGATION_FINISHED_EVENT, r as InlineAgentSchema, s as PO_DELEGATION_REQUESTED_EVENT, t as DelegationCancelSchema, u as PO_DELEGATION_UPDATED_EVENT } from "./delegation-C5t5mcF8.js";
|
|
18
20
|
import { t as createPoTelemetry } from "./index.edge-D2RirEwK.js";
|
|
19
|
-
import "./majorModes-
|
|
21
|
+
import "./majorModes-C3x0Iqce.js";
|
|
20
22
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
21
23
|
import * as path$1 from "node:path";
|
|
22
24
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
23
|
-
//#region ../../core/po-core/src/schemas/delegation.ts
|
|
24
|
-
const InlineAgentSchema = _Object_({ systemPrompt: String$1({ minLength: 1 }) }, { additionalProperties: false });
|
|
25
|
-
/** Shared Cordis contract for an optional delegated-run provider. */
|
|
26
|
-
const PO_DELEGATION_SERVICE = "po/delegation";
|
|
27
|
-
/** Live lifecycle of a session-owned, awaited inline Team run. */
|
|
28
|
-
const PO_TEAM_INLINE_RUN_EVENT = "po/team/inline-run";
|
|
29
|
-
_Object_({
|
|
30
|
-
sessionId: String$1({ minLength: 1 }),
|
|
31
|
-
runId: String$1({ minLength: 1 }),
|
|
32
|
-
status: Union([
|
|
33
|
-
Literal("running"),
|
|
34
|
-
Literal("completed"),
|
|
35
|
-
Literal("failed"),
|
|
36
|
-
Literal("stopped")
|
|
37
|
-
])
|
|
38
|
-
}, { additionalProperties: false });
|
|
39
|
-
const PO_DELEGATION_REQUESTED_EVENT = "po/delegation/requested";
|
|
40
|
-
const PO_DELEGATION_ACCEPTED_EVENT = "po/delegation/accepted";
|
|
41
|
-
const PO_DELEGATION_STARTED_EVENT = "po/delegation/started";
|
|
42
|
-
const PO_DELEGATION_UPDATED_EVENT = "po/delegation/updated";
|
|
43
|
-
const PO_DELEGATION_FINISHED_EVENT = "po/delegation/finished";
|
|
44
|
-
const PO_DELEGATION_CANCELLED_EVENT = "po/delegation/cancelled";
|
|
45
|
-
const DelegationRequestSchema = _Object_({
|
|
46
|
-
requestId: String$1({ minLength: 1 }),
|
|
47
|
-
taskId: Union([String$1(), Number$1()]),
|
|
48
|
-
agent: String$1({ minLength: 1 }),
|
|
49
|
-
inlineAgent: Optional(InlineAgentSchema),
|
|
50
|
-
prompt: String$1({ minLength: 1 }),
|
|
51
|
-
cwd: String$1({ minLength: 1 }),
|
|
52
|
-
model: Optional(String$1({ minLength: 1 })),
|
|
53
|
-
context: Optional(Union([Literal("fresh"), Literal("fork")])),
|
|
54
|
-
timeoutMs: Optional(Integer({ minimum: 1 })),
|
|
55
|
-
artifacts: Optional(Boolean$1()),
|
|
56
|
-
runMode: Optional(Union([Literal("foreground"), Literal("detached")])),
|
|
57
|
-
teamTask: Optional(_Object_({
|
|
58
|
-
id: String$1({ minLength: 1 }),
|
|
59
|
-
subject: String$1({ minLength: 1 })
|
|
60
|
-
}, { additionalProperties: false })),
|
|
61
|
-
/** The requester consumes the result itself; the run is never announced to the main agent. */
|
|
62
|
-
internal: Optional(Boolean$1())
|
|
63
|
-
}, { additionalProperties: false });
|
|
64
|
-
_Object_({ requestId: String$1({ minLength: 1 }) }, { additionalProperties: false });
|
|
65
|
-
_Object_({
|
|
66
|
-
requestId: String$1({ minLength: 1 }),
|
|
67
|
-
runId: String$1({ minLength: 1 }),
|
|
68
|
-
identity: Optional(String$1({ minLength: 1 }))
|
|
69
|
-
}, { additionalProperties: false });
|
|
70
|
-
_Object_({
|
|
71
|
-
requestId: String$1({ minLength: 1 }),
|
|
72
|
-
runId: String$1({ minLength: 1 }),
|
|
73
|
-
status: Optional(String$1({ minLength: 1 })),
|
|
74
|
-
currentTool: Optional(String$1({ minLength: 1 })),
|
|
75
|
-
toolCount: Optional(Integer({ minimum: 0 })),
|
|
76
|
-
durationMs: Optional(Integer({ minimum: 0 })),
|
|
77
|
-
tokens: Optional(Integer({ minimum: 0 }))
|
|
78
|
-
}, { additionalProperties: false });
|
|
79
|
-
const DelegationStatusSchema = Union([
|
|
80
|
-
Literal("completed"),
|
|
81
|
-
Literal("failed"),
|
|
82
|
-
Literal("timed_out"),
|
|
83
|
-
Literal("cancelled"),
|
|
84
|
-
Literal("interrupted"),
|
|
85
|
-
Literal("turn_budget_exhausted"),
|
|
86
|
-
Literal("tool_budget_exhausted"),
|
|
87
|
-
Literal("acceptance_failed"),
|
|
88
|
-
Literal("invalid_request"),
|
|
89
|
-
Literal("unavailable_context")
|
|
90
|
-
]);
|
|
91
|
-
_Object_({
|
|
92
|
-
requestId: String$1({ minLength: 1 }),
|
|
93
|
-
runId: String$1({ minLength: 1 }),
|
|
94
|
-
status: DelegationStatusSchema,
|
|
95
|
-
output: Optional(String$1()),
|
|
96
|
-
error: Optional(String$1()),
|
|
97
|
-
outputPath: Optional(String$1({ minLength: 1 })),
|
|
98
|
-
sessionFile: Optional(String$1({ minLength: 1 })),
|
|
99
|
-
durationMs: Optional(Integer({ minimum: 0 })),
|
|
100
|
-
toolCount: Optional(Integer({ minimum: 0 }))
|
|
101
|
-
}, { additionalProperties: false });
|
|
102
|
-
const DelegationCancelSchema = _Object_({
|
|
103
|
-
requestId: String$1({ minLength: 1 }),
|
|
104
|
-
reason: Optional(String$1({ minLength: 1 }))
|
|
105
|
-
}, { additionalProperties: false });
|
|
106
|
-
//#endregion
|
|
107
25
|
//#region ../../core/po-core/src/schemas/mcpToolResolver.ts
|
|
108
26
|
/** Session-scoped resolver for MCP selectors confirmed by the loaded MCP provider. */
|
|
109
27
|
const PO_MCP_TOOL_RESOLVER_SERVICE = "po/mcp-tool-resolver";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import { t as PO_HELP_WHEN } from "./help-
|
|
6
|
-
import { a as defineHook, c as defineRoot, d as defineServerCommand, f as defineServerTool, l as defineRoute, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
1
|
+
import { Dt as BACKGROUND_CONTEXT, It as composeServerProviderOverrides, Ut as PO_SHELL_SERVICE, Vt as PO_FS_SERVICE, bn as Optional, c as piAgentDirectory, dn as Number$1, hn as Boolean$1, kt as withAbortSignal, t as defineServerPlugin, un as String$1, xn as _Array_, yn as _Object_ } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import "./platform-DzFwfdEE.js";
|
|
3
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-f90wdVxB.js";
|
|
4
|
+
import "./piSettings-Dqm993Aw.js";
|
|
5
|
+
import { t as PO_HELP_WHEN } from "./help-DrH2zhEH.js";
|
|
6
|
+
import { a as defineHook, c as defineRoot, d as defineServerCommand, f as defineServerTool, l as defineRoute, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-QPQewzW3.js";
|
|
7
|
+
import "./help-BW6pEjp1.js";
|
|
8
|
+
import { t as Hono } from "./dist-C6IqjC-m.js";
|
|
9
|
+
import { t as streamSSE } from "./sse-XlzXs1es.js";
|
|
9
10
|
import path from "node:path";
|
|
10
11
|
//#region ../../default/po-runner/src/constants/runners.ts
|
|
11
12
|
const RUNNER_UNAVAILABLE_MESSAGE = "Subprocess supervision is unavailable on this host.";
|
|
@@ -425,155 +426,6 @@ var runnerRuns_server_default = defineChannel(function runnerRunsChannel() {
|
|
|
425
426
|
return createRunnersChannel();
|
|
426
427
|
});
|
|
427
428
|
//#endregion
|
|
428
|
-
//#region ../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/utils/stream.js
|
|
429
|
-
/**
|
|
430
|
-
* @module
|
|
431
|
-
* Stream utility.
|
|
432
|
-
*/
|
|
433
|
-
var StreamingApi = class {
|
|
434
|
-
writer;
|
|
435
|
-
encoder;
|
|
436
|
-
writable;
|
|
437
|
-
abortSubscribers = [];
|
|
438
|
-
responseReadable;
|
|
439
|
-
/**
|
|
440
|
-
* Whether the stream has been aborted.
|
|
441
|
-
*/
|
|
442
|
-
aborted = false;
|
|
443
|
-
/**
|
|
444
|
-
* Whether the stream has been closed normally.
|
|
445
|
-
*/
|
|
446
|
-
closed = false;
|
|
447
|
-
constructor(writable, _readable) {
|
|
448
|
-
this.writable = writable;
|
|
449
|
-
this.writer = writable.getWriter();
|
|
450
|
-
this.encoder = new TextEncoder();
|
|
451
|
-
const reader = _readable.getReader();
|
|
452
|
-
this.abortSubscribers.push(async () => {
|
|
453
|
-
await reader.cancel();
|
|
454
|
-
});
|
|
455
|
-
this.responseReadable = new ReadableStream({
|
|
456
|
-
async pull(controller) {
|
|
457
|
-
const { done, value } = await reader.read();
|
|
458
|
-
done ? controller.close() : controller.enqueue(value);
|
|
459
|
-
},
|
|
460
|
-
cancel: () => {
|
|
461
|
-
if (!this.closed) this.abort();
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
async write(input) {
|
|
466
|
-
try {
|
|
467
|
-
if (typeof input === "string") input = this.encoder.encode(input);
|
|
468
|
-
await this.writer.write(input);
|
|
469
|
-
} catch {}
|
|
470
|
-
return this;
|
|
471
|
-
}
|
|
472
|
-
async writeln(input) {
|
|
473
|
-
await this.write(input + "\n");
|
|
474
|
-
return this;
|
|
475
|
-
}
|
|
476
|
-
sleep(ms) {
|
|
477
|
-
return new Promise((res) => setTimeout(res, ms));
|
|
478
|
-
}
|
|
479
|
-
async close() {
|
|
480
|
-
this.closed = true;
|
|
481
|
-
try {
|
|
482
|
-
await this.writer.close();
|
|
483
|
-
} catch {}
|
|
484
|
-
}
|
|
485
|
-
async pipe(body) {
|
|
486
|
-
this.writer.releaseLock();
|
|
487
|
-
try {
|
|
488
|
-
await body.pipeTo(this.writable, {
|
|
489
|
-
preventClose: true,
|
|
490
|
-
preventAbort: true
|
|
491
|
-
});
|
|
492
|
-
} finally {
|
|
493
|
-
this.writer = this.writable.getWriter();
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
onAbort(listener) {
|
|
497
|
-
this.abortSubscribers.push(listener);
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Abort the stream.
|
|
501
|
-
* You can call this method when stream is aborted by external event.
|
|
502
|
-
*/
|
|
503
|
-
abort() {
|
|
504
|
-
if (!this.aborted) {
|
|
505
|
-
this.aborted = true;
|
|
506
|
-
this.abortSubscribers.forEach((subscriber) => {
|
|
507
|
-
try {
|
|
508
|
-
Promise.resolve(subscriber()).catch(() => {});
|
|
509
|
-
} catch {}
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
//#endregion
|
|
515
|
-
//#region ../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/helper/streaming/utils.js
|
|
516
|
-
let isOldBunVersion = () => {
|
|
517
|
-
const version = typeof Bun !== "undefined" ? Bun.version : void 0;
|
|
518
|
-
if (version === void 0) return false;
|
|
519
|
-
const result = version.startsWith("1.1") || version.startsWith("1.0") || version.startsWith("0.");
|
|
520
|
-
isOldBunVersion = () => result;
|
|
521
|
-
return result;
|
|
522
|
-
};
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region ../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/helper/streaming/sse.js
|
|
525
|
-
var SSEStreamingApi = class extends StreamingApi {
|
|
526
|
-
constructor(writable, readable) {
|
|
527
|
-
super(writable, readable);
|
|
528
|
-
}
|
|
529
|
-
async writeSSE(message) {
|
|
530
|
-
const dataLines = (await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {})).split(/\r\n|\r|\n/).map((line) => {
|
|
531
|
-
return `data: ${line}`;
|
|
532
|
-
}).join("\n");
|
|
533
|
-
for (const key of ["event", "id"]) {
|
|
534
|
-
const value = message[key];
|
|
535
|
-
if (value && /[\r\n]/.test(value)) throw new Error(`${key} must not contain "\\r" or "\\n"`);
|
|
536
|
-
}
|
|
537
|
-
const sseData = [
|
|
538
|
-
message.event && `event: ${message.event}`,
|
|
539
|
-
dataLines,
|
|
540
|
-
message.id !== void 0 && `id: ${message.id}`,
|
|
541
|
-
message.retry !== void 0 && `retry: ${message.retry}`
|
|
542
|
-
].filter(Boolean).join("\n") + "\n\n";
|
|
543
|
-
await this.write(sseData);
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
const run = async (stream, cb, onError) => {
|
|
547
|
-
try {
|
|
548
|
-
await cb(stream);
|
|
549
|
-
} catch (e) {
|
|
550
|
-
if (e instanceof Error && onError) {
|
|
551
|
-
await onError(e, stream);
|
|
552
|
-
await stream.writeSSE({
|
|
553
|
-
event: "error",
|
|
554
|
-
data: e.message
|
|
555
|
-
});
|
|
556
|
-
} else console.error(e);
|
|
557
|
-
} finally {
|
|
558
|
-
stream.close();
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
const contextStash = /* @__PURE__ */ new WeakMap();
|
|
562
|
-
const streamSSE = (c, cb, onError) => {
|
|
563
|
-
const { readable, writable } = new TransformStream();
|
|
564
|
-
const stream = new SSEStreamingApi(writable, readable);
|
|
565
|
-
if (isOldBunVersion()) c.req.raw.signal.addEventListener("abort", () => {
|
|
566
|
-
if (!stream.closed) stream.abort();
|
|
567
|
-
});
|
|
568
|
-
contextStash.set(stream.responseReadable, c);
|
|
569
|
-
c.header("Transfer-Encoding", "chunked");
|
|
570
|
-
c.header("Content-Type", "text/event-stream");
|
|
571
|
-
c.header("Cache-Control", "no-cache");
|
|
572
|
-
c.header("Connection", "keep-alive");
|
|
573
|
-
run(stream, cb, onError);
|
|
574
|
-
return c.newResponse(stream.responseReadable);
|
|
575
|
-
};
|
|
576
|
-
//#endregion
|
|
577
429
|
//#region ../../default/po-runner/src/constants/runnerLogApi.ts
|
|
578
430
|
const STATE_POLL_MS = 1e3;
|
|
579
431
|
const MAX_LINES = 5e3;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
1
|
+
import { Dt as BACKGROUND_CONTEXT, Xt as requirePoFs, c as piAgentDirectory, f as nodeHost, g as getOrThrow, t as defineServerPlugin } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import "./platform-DzFwfdEE.js";
|
|
3
|
+
import { n as readPackageResource } from "./index.edge-f90wdVxB.js";
|
|
3
4
|
import "./portableConfig-DgqvRK_1.js";
|
|
4
|
-
import "./piSettings-
|
|
5
|
-
import "./approvalPrompt-
|
|
6
|
-
import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-
|
|
5
|
+
import "./piSettings-Dqm993Aw.js";
|
|
6
|
+
import "./approvalPrompt-VF1qKoHo.js";
|
|
7
|
+
import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-CUmh0WS6.js";
|
|
7
8
|
import "./pluginCatalog-Buo6FquN.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { d as defineServerCommand, l as defineRoute, s as defineResource } from "./extensionFile-DJfGtEm7.js";
|
|
9
|
+
import { t as PO_HELP_WHEN } from "./help-DrH2zhEH.js";
|
|
10
|
+
import { d as defineServerCommand, l as defineRoute, s as defineResource } from "./extensionFile-QPQewzW3.js";
|
|
11
11
|
import "./browser-BWf8OMfl.js";
|
|
12
|
+
import "./help-BW6pEjp1.js";
|
|
12
13
|
import { t as Hono } from "./dist-C6IqjC-m.js";
|
|
13
|
-
import "./help-D7HCuxQ9.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
//#region ../../default/po-prompt/src/constants/promptStore.ts
|
|
16
16
|
const PROMPTS_DIR = "prompts";
|
|
@@ -293,7 +293,7 @@ const NATIVE_UNISTYLES_COMPONENTS = [
|
|
|
293
293
|
* `:name` is Hono's own parameter syntax, because the app registers `path`
|
|
294
294
|
* verbatim, and the client fills it from `params` on the call.
|
|
295
295
|
*/
|
|
296
|
-
|
|
296
|
+
const routes = defineApiRoutes({
|
|
297
297
|
list: {
|
|
298
298
|
method: "GET",
|
|
299
299
|
path: PROMPTS_PATH,
|
|
@@ -337,7 +337,7 @@ async function readText(request) {
|
|
|
337
337
|
}
|
|
338
338
|
function createPromptHubApi({ store }) {
|
|
339
339
|
const app = new Hono();
|
|
340
|
-
app.get(
|
|
340
|
+
app.get(routes.list.path, async (context) => {
|
|
341
341
|
try {
|
|
342
342
|
const prompts = await store.list();
|
|
343
343
|
return context.json({ prompts: prompts.map(toView) });
|
|
@@ -345,7 +345,7 @@ function createPromptHubApi({ store }) {
|
|
|
345
345
|
return context.json({ error: failureMessage(error) }, STATUS.failed);
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
app.put(
|
|
348
|
+
app.put(routes.save.path, async (context) => {
|
|
349
349
|
const name = context.req.param(NAME_PARAM);
|
|
350
350
|
if (!isValidPromptName(name)) return context.json({ error: `"${name}" is not a usable prompt name. Use ${PROMPT_NAME_RULE}.` }, STATUS.badRequest);
|
|
351
351
|
const body = await readText(context.req.raw);
|
|
@@ -369,7 +369,7 @@ function createPromptHubApi({ store }) {
|
|
|
369
369
|
return context.json({ error: failureMessage(error) }, STATUS.failed);
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
app.delete(
|
|
372
|
+
app.delete(routes.remove.path, async (context) => {
|
|
373
373
|
const name = context.req.param(NAME_PARAM);
|
|
374
374
|
if (!isValidPromptName(name)) return context.json({ error: `"${name}" is not a usable prompt name.` }, STATUS.badRequest);
|
|
375
375
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
3
|
-
import { d as defineServerCommand, f as defineServerTool } from "./extensionFile-
|
|
1
|
+
import { Dt as BACKGROUND_CONTEXT, Vt as PO_FS_SERVICE, Xt as requirePoFs, bn as Optional, d as fileMutationRunner, dn as Number, g as getOrThrow, kt as withAbortSignal, t as defineServerPlugin, un as String, yn as _Object_ } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import "./platform-DzFwfdEE.js";
|
|
3
|
+
import { d as defineServerCommand, f as defineServerTool } from "./extensionFile-QPQewzW3.js";
|
|
4
4
|
import { t as minimatch } from "./esm-BKJy3O9-.js";
|
|
5
5
|
import { dirname, relative, resolve, sep } from "node:path";
|
|
6
6
|
//#region ../../foundations/po-ui/src/constants/ui.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as pathExists, i as FileTooLargeError, l as removePath, o as readBoundedFile, u as writeFileAtomic } from "./platform-
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import { c as defineRoot, l as defineRoute, m as defineToolRestriction, n as composeRootInjects, t as composeRootHooks, u as defineRoutedContribution } from "./extensionFile-
|
|
1
|
+
import { $t as PO_CONFIG_SERVICE, Dt as BACKGROUND_CONTEXT, It as composeServerProviderOverrides, bn as Optional, d as fileMutationRunner, g as getOrThrow, qt as readPoFs, t as defineServerPlugin, un as String$1, yn as _Object_ } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import { a as pathExists, i as FileTooLargeError, l as removePath, o as readBoundedFile, u as writeFileAtomic } from "./platform-DzFwfdEE.js";
|
|
3
|
+
import { n as readPackageResource } from "./index.edge-f90wdVxB.js";
|
|
4
|
+
import { c as resolvePlanningPlansDirectory } from "./layeredConfig-M2ym56Jc.js";
|
|
5
|
+
import "./sessionConfig-CkkROiMQ.js";
|
|
6
|
+
import "./exports-ciHD2qnf.js";
|
|
7
|
+
import { c as defineRoot, l as defineRoute, m as defineToolRestriction, n as composeRootInjects, t as composeRootHooks, u as defineRoutedContribution } from "./extensionFile-QPQewzW3.js";
|
|
8
8
|
import { t as Hono } from "./dist-C6IqjC-m.js";
|
|
9
9
|
import { t as defineMinorMode } from "./modeDefinition-C3Zbrw48.js";
|
|
10
|
-
import { t as serverMinorModes } from "./exports-
|
|
11
|
-
import { a as PO_VOICE_AUTO_MODE_ID } from "./voiceTools-
|
|
10
|
+
import { t as serverMinorModes } from "./exports-q_T_5f-j.js";
|
|
11
|
+
import { a as PO_VOICE_AUTO_MODE_ID } from "./voiceTools-3EqrNqrX.js";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./piSettings-
|
|
3
|
-
import { a as VAULT_CHECK_PLAINTEXT, c as VAULT_INIT_LEASE, h as VAULT_META_ID, i as VAULT_CHECK_AAD, l as VAULT_KEYRING_ACCOUNT_PREFIX, m as VAULT_META_CHECK, n as PO_VAULT_ACCOUNT_SERVICE, o as VAULT_DB_PREFIX, s as VAULT_DIRECTORY, t as PO_VAULT_CONTRACT, u as VAULT_KEY_LOST_NOTICE } from "./contracts-
|
|
4
|
-
import { c as defineRoot, l as defineRoute, n as composeRootInjects, t as composeRootHooks } from "./extensionFile-
|
|
5
|
-
import { a as assertRevision, i as assertEntryName, n as VaultError, o as serializeValue, r as asVaultError, t as serveVaultSettings } from "./vaultSettings-
|
|
6
|
-
import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-
|
|
1
|
+
import { It as composeServerProviderOverrides, Sn as PO_SERVER_SCOPE_SERVICE, Tn as requirePoServerScope, l as poHomeDirectory, t as defineServerPlugin } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import "./piSettings-Dqm993Aw.js";
|
|
3
|
+
import { a as VAULT_CHECK_PLAINTEXT, c as VAULT_INIT_LEASE, h as VAULT_META_ID, i as VAULT_CHECK_AAD, l as VAULT_KEYRING_ACCOUNT_PREFIX, m as VAULT_META_CHECK, n as PO_VAULT_ACCOUNT_SERVICE, o as VAULT_DB_PREFIX, s as VAULT_DIRECTORY, t as PO_VAULT_CONTRACT, u as VAULT_KEY_LOST_NOTICE } from "./contracts-CTL-n9JN.js";
|
|
4
|
+
import { c as defineRoot, l as defineRoute, n as composeRootInjects, t as composeRootHooks } from "./extensionFile-QPQewzW3.js";
|
|
5
|
+
import { a as assertRevision, i as assertEntryName, n as VaultError, o as serializeValue, r as asVaultError, t as serveVaultSettings } from "./vaultSettings-BLndgNqa.js";
|
|
6
|
+
import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-UhD6LX8P.js";
|
|
7
|
+
import "./exports-B0EYvzP6.js";
|
|
7
8
|
import { createCipheriv, createDecipheriv, randomBytes, randomUUID } from "node:crypto";
|
|
8
9
|
import path from "node:path";
|
|
9
10
|
import { Buffer } from "node:buffer";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-DbVrKiKs.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as FileTooLargeError, o as readBoundedFile, s as readTextIfExists } from "./platform-
|
|
5
|
-
import { c as resolvePlanningPlansDirectory, r as readPoConfig } from "./layeredConfig-
|
|
6
|
-
import "./piSettings-
|
|
7
|
-
import "./exports-
|
|
2
|
+
import { Dt as BACKGROUND_CONTEXT, It as composeServerProviderOverrides, Xt as requirePoFs, c as piAgentDirectory, d as fileMutationRunner, g as getOrThrow, n as runCleanups, qt as readPoFs, t as defineServerPlugin } from "./serverPlugin-DqGe5w4M.js";
|
|
3
|
+
import { i as PO_EDIT_PRESENCE_SERVICE } from "./packageApi-DKTs9pKT.js";
|
|
4
|
+
import { i as FileTooLargeError, o as readBoundedFile, s as readTextIfExists } from "./platform-DzFwfdEE.js";
|
|
5
|
+
import { c as resolvePlanningPlansDirectory, r as readPoConfig } from "./layeredConfig-M2ym56Jc.js";
|
|
6
|
+
import "./piSettings-Dqm993Aw.js";
|
|
7
|
+
import "./exports-ciHD2qnf.js";
|
|
8
8
|
import { a as WORKFLOW_STEP_SESSION_PROVENANCE } from "./hubChannel-DckivLhM.js";
|
|
9
9
|
import { c as readPoChildSessionLabels, r as PO_CHILD_SESSION_HOOK_REGISTRY_SERVICE } from "./childSession-BrDCrNtL.js";
|
|
10
|
-
import { a as defineHook, c as defineRoot, l as defineRoute, n as composeRootInjects, r as defineChannel, t as composeRootHooks } from "./extensionFile-
|
|
11
|
-
import { n as SUBAGENT_PARENT_SESSION_ENV } from "./childProcess-
|
|
10
|
+
import { a as defineHook, c as defineRoot, l as defineRoute, n as composeRootInjects, r as defineChannel, t as composeRootHooks } from "./extensionFile-QPQewzW3.js";
|
|
11
|
+
import { n as SUBAGENT_PARENT_SESSION_ENV } from "./childProcess-DtKCgLN_.js";
|
|
12
12
|
import { t as createPoTelemetry } from "./index.edge-D2RirEwK.js";
|
|
13
|
-
import { f as parseFileHeader, i as computeFileTag, n as resolveInputPath, o as displayPath, r as resolveReadInputPath } from "./index.edge-ClLTmPFz.js";
|
|
14
13
|
import { t as Hono } from "./dist-C6IqjC-m.js";
|
|
14
|
+
import { f as parseFileHeader, i as computeFileTag, n as resolveInputPath, o as displayPath, r as resolveReadInputPath } from "./index.edge-ClLTmPFz.js";
|
|
15
15
|
import { createHash } from "node:crypto";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
//#region ../../default/po-file-edit/src/constants/editPresence.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { It as composeServerProviderOverrides, _n as Unsafe, bn as Optional, dn as Number$1, ln as Union, mn as Integer, pn as Literal, sn as Record, t as defineServerPlugin, tn as Check, un as String$1, wn as readPoServerScope, xn as _Array_, yn as _Object_ } from "./serverPlugin-DqGe5w4M.js";
|
|
2
|
+
import { p as readPoWorkflowContextService } from "./workflow-C1TEru8x.js";
|
|
3
|
+
import { n as defineTool } from "./pluginContributions-Be9EnCAW.js";
|
|
4
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-f90wdVxB.js";
|
|
5
|
+
import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-CUmh0WS6.js";
|
|
3
6
|
import { A as string, I as toJSONSchema, S as literal, T as object, c as _enum, f as array, j as union, w as number } from "./schemas-BMBR99Q5.js";
|
|
4
7
|
import { n as datetime } from "./iso-BCXA5x1w.js";
|
|
5
|
-
import "./web-
|
|
6
|
-
import { n as defineTool } from "./pluginContributions-Be9EnCAW.js";
|
|
7
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-Bwlovw2c.js";
|
|
8
|
+
import "./web-BUmM1idY.js";
|
|
8
9
|
import { s as readPoChildSessionHookRegistry } from "./childSession-BrDCrNtL.js";
|
|
9
10
|
import { r as sanitizeTelemetryAttributes } from "./telemetry-CrTcxeA5.js";
|
|
10
|
-
import { t as PO_HELP_WHEN } from "./help-
|
|
11
|
-
import { a as
|
|
12
|
-
import { a as
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
11
|
+
import { t as PO_HELP_WHEN } from "./help-DrH2zhEH.js";
|
|
12
|
+
import { a as PO_LOG_METRICS_CONTRACT, i as PO_LOG_HOST_USAGE_CONTRACT, n as METRICS_ATTRIBUTE, t as queryHttp } from "./http-DPirSv9k.js";
|
|
13
|
+
import { a as defineHook, c as defineRoot, d as defineServerCommand, l as defineRoute, n as composeRootInjects, p as defineTool$1, s as defineResource, t as composeRootHooks } from "./extensionFile-QPQewzW3.js";
|
|
14
|
+
import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-BtvLJWp0.js";
|
|
15
|
+
import "./help-BW6pEjp1.js";
|
|
15
16
|
import { t as createPoTelemetry } from "./index.edge-D2RirEwK.js";
|
|
16
17
|
import { t as Hono } from "./dist-C6IqjC-m.js";
|
|
17
|
-
import "./help-D7HCuxQ9.js";
|
|
18
18
|
//#region ../../core/po-core/src/services/json/core.ts
|
|
19
19
|
function isRecord$1(value) {
|
|
20
20
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -1166,7 +1166,7 @@ function isMetricsPeriod(value) {
|
|
|
1166
1166
|
* This is the one file the routes, the Hono app and the browser all read, so a
|
|
1167
1167
|
* path cannot move on one side alone.
|
|
1168
1168
|
*/
|
|
1169
|
-
|
|
1169
|
+
const routes = defineApiRoutes({
|
|
1170
1170
|
metrics: {
|
|
1171
1171
|
method: "GET",
|
|
1172
1172
|
path: "/metrics",
|
|
@@ -1360,7 +1360,7 @@ function createLogHubApi(options = {}) {
|
|
|
1360
1360
|
const issues = options.issues ?? createIssuesSource(identity);
|
|
1361
1361
|
const fetchImpl = options.fetchImpl ?? globalThis.fetch;
|
|
1362
1362
|
const sinkEndpoint = options.sinkEndpoint ?? (() => resolveMetricsEndpoint(identity));
|
|
1363
|
-
app.get(
|
|
1363
|
+
app.get(routes.metrics.path, async (context) => {
|
|
1364
1364
|
const requestedDimension = context.req.query(METRICS_QUERY_PARAMS.dimension) ?? DEFAULT_DIMENSION;
|
|
1365
1365
|
const requestedPeriod = context.req.query(METRICS_QUERY_PARAMS.period) ?? DEFAULT_PERIOD;
|
|
1366
1366
|
if (!isMetricsDimension(requestedDimension)) return context.json({ error: `Unknown dimension '${requestedDimension}'.` }, 400);
|
|
@@ -1396,7 +1396,7 @@ function createLogHubApi(options = {}) {
|
|
|
1396
1396
|
* folding it into every report would make the whole page as slow as its
|
|
1397
1397
|
* slowest transport.
|
|
1398
1398
|
*/
|
|
1399
|
-
app.get(
|
|
1399
|
+
app.get(routes.issues.path, async (context) => {
|
|
1400
1400
|
const focus = context.req.query(METRICS_QUERY_PARAMS.focus);
|
|
1401
1401
|
const startTime = context.req.query("startTime");
|
|
1402
1402
|
const endTime = context.req.query("endTime");
|
|
@@ -1418,7 +1418,7 @@ function createLogHubApi(options = {}) {
|
|
|
1418
1418
|
return context.json(unavailable);
|
|
1419
1419
|
}
|
|
1420
1420
|
});
|
|
1421
|
-
app.get(
|
|
1421
|
+
app.get(routes.usage.path, async (context) => {
|
|
1422
1422
|
try {
|
|
1423
1423
|
const rows = await options.usage?.()?.read() ?? [];
|
|
1424
1424
|
return context.json({ rows });
|
|
@@ -1431,7 +1431,7 @@ function createLogHubApi(options = {}) {
|
|
|
1431
1431
|
* redacts and rate-limits OTLP itself, so this only bounds the size and
|
|
1432
1432
|
* forwards; it never parses or rewrites records.
|
|
1433
1433
|
*/
|
|
1434
|
-
app.post(
|
|
1434
|
+
app.post(routes.ingestLogs.path, async (context) => {
|
|
1435
1435
|
if (Number(context.req.header("content-length") ?? 0) > MAX_INGEST_BYTES) return context.json({ error: "Log batch is too large." }, 413);
|
|
1436
1436
|
const body = await context.req.text();
|
|
1437
1437
|
if (new TextEncoder().encode(body).byteLength > MAX_INGEST_BYTES) return context.json({ error: "Log batch is too large." }, 413);
|