@agimon-ai/po-cloudflare 0.0.2-alpha.20 → 0.0.2-alpha.21
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-DTjnYFAN.js → agent-DZ-OKOHn.js} +1 -1
- package/dist/{apiContracts-DepyzMNr.js → apiContracts-b33nSAAI.js} +4 -80
- package/dist/{approval-Biq3NCWj.js → approval-r3NnI1VC.js} +2 -2
- package/dist/{approvalPrompt-DoHlIPkU.js → approvalPrompt-DWoXxu3S.js} +2 -2
- package/dist/artifactFiles-DLCReI0-.js +1 -0
- package/dist/assets/assets/{CodeEditorView-BU8DeV_G.js → CodeEditorView-XeNS0L9M.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-BkzARjqu.js → abnfDiagram-WEYOIA3C-B6ZW0nkR.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-B_dgnlXa.js → architecture-WOLXFQ4H-bVR64sHO.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DMGAifk0.js → architectureDiagram-ZHVYKT53-D7tZz3io.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DwTSK4lj.js → blockDiagram-RJAE7QA3-DdwScfiX.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-IRaOcC_u.js → c4Diagram-XDPPPE54-DgSxZJCV.js} +2 -2
- package/dist/assets/assets/channel-TPcVvp_3.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-BvS46crW.js → chunk-2E7WHVMD-D5TXC2SM.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T--n96Xbj0.js → chunk-4EMNKR2T-BWhOSvo1.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-D3h_hFRi.js → chunk-55XCU76K-HkkBzLtZ.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-Cj18feJl.js → chunk-7S6XSTFO-CBnjycLU.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-DXsT43bg.js → chunk-AQDTSKZB-75lIIq8T.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-Br7dX7yf.js → chunk-DSNLSHJZ-D8PpnXMk.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-BcozAtPo.js → chunk-HAGFOTED-CXRS2NIN.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-B8kgXgRq.js → chunk-HNE4Q36P-BocUqS94.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-Dn7UnsqE.js → chunk-NQOKRVIF-CHf_ogYT.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-BSJot0vi.js → chunk-UHW7PFBP-DrW1PaIv.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-Cpf1EfZK.js → chunk-VQ5W62QI-CLoA7bFm.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-Dnc36uZR.js → chunk-WQQL4CDK-BmBsrj9I.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-iFE4Tl8c.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-BV8_A7x3.js → chunk-YZO67HFG-DShE_cgv.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-C4Ne_31B.js → chunk-ZAUX2LTX-B3oLvSXy.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-Dq9ModsA.js → chunk-ZCHMQSOR-B14vKK7C.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-1BWEjXP9.js → classDiagram-v2-4MYWR3UA-Da8elIW2.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-DREkvC_x.js → cose-bilkent-JH36ORCC-Du4tGtiJ.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-CWziP8nx.js → cynefin-EF2NZ3EQ-Cyj6i_WI.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-DOoYmcvz.js → cynefinDiagram-WF24UDRP-DFWXwO7A.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-OoAtEico.js → dagre-NK4GIZVX-C1wB_cf-.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-B-pl2-iR.js → diagram-CBK3MWTC-MYCOBYl6.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-uKzNJSZ2.js → diagram-I5XIIV2D-BFYbKUFf.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-CEXY_Tzu.js → diagram-ODIL2UCW-6siqTpv_.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-MKlRQo-g.js → diagram-PFBEJUXE-CaBr9CoB.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-c2qlCEVs.js → diagram-RJA3I4VV-DAvmuDpc.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-DTdqLA6J.js → diagram-TYUNFSNR-CJnhgCpo.js} +2 -2
- package/dist/assets/assets/{dist-qZHwVT1x.js → dist-BQ4W1R18.js} +2 -2
- package/dist/assets/assets/{dist-DvZCwSZ8.js → dist-BnzFckPF.js} +2 -2
- package/dist/assets/assets/{dist-DCKskbBE.js → dist-CFtBpcYL.js} +2 -2
- package/dist/assets/assets/{dist-mQUN8X3n.js → dist-CIQX1z4W.js} +2 -2
- package/dist/assets/assets/{dist-D9lacOpq.js → dist-ChHYoe9_.js} +2 -2
- package/dist/assets/assets/{dist-BzTxJnSR.js → dist-DKxZO8d9.js} +2 -2
- package/dist/assets/assets/{dist-DCc8tQ7G.js → dist-DL6z28wl.js} +2 -2
- package/dist/assets/assets/{dist-4TUOlkyl.js → dist-DNyn1p9Z.js} +2 -2
- package/dist/assets/assets/{dist-DXlts_H5.js → dist-qYlLXIa8.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-C89wxfCd.js → ebnfDiagram-V4P3TTPT-AUcqDTM3.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-BMBgLOae.js → elk-QONTBCTQ-aA10PEHJ.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-Bb04CRa4.js → erDiagram-KYQIGQAA-hhYiqA-x.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-DSyNf2MV.js → eventmodeling-K75KTNOO-BQZqbRo5.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BuyysPYC.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-sB7-pF_t.js → ganttDiagram-R7GPNTJY-CLON1GpW.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-pWPBCmdT.js → gitGraph-VSP46ZUC-DbmvNwR2.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-DronDRed.js → gitGraphDiagram-PDYL7XHY-DJVO0WlL.js} +2 -2
- package/dist/assets/assets/index-BiTVAj5E.js +155 -0
- package/dist/assets/assets/{info-OHQRW6UA-B375mT1i.js → info-OHQRW6UA-CAt3Nt3g.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-9Hw3wWP7.js → infoDiagram-MVDRKAX5-DTuqH-Zb.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CdPAuupk.js → ishikawaDiagram-HPEHV2GE-BnWvdonT.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-hqmaHM9u.js → journeyDiagram-BOSHW7O7-Btxtcgvl.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-BdOHplX4.js → kanban-definition-FNSA4HC5-q7ek9o_H.js} +2 -2
- package/dist/assets/assets/{line-BCSC3Bu2.js → line-B7yLilmC.js} +2 -2
- package/dist/assets/assets/{linear-D5ddQU3r.js → linear-y8aSKEli.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-BaSUi_Ph.js → mermaid-parser.core-B4rH50nD.js} +4 -4
- package/dist/assets/assets/{mermaid.core-CUUsU9Ou.js → mermaid.core-DnRVHTjE.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-BtVkhvIZ.js → mindmap-definition-6OY57UG3-DT9Afs2v.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-CQ3OUDwI.js → packet-JDAUHWVQ-CnqNbu4p.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-DDnq-Kn3.js → pegDiagram-ECIUJNBX-cvxdBBFq.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-BvOFTkQB.js → pie-XZMESJXO-etXMNsaL.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-Bdwhl9jD.js → pieDiagram-GNMPY74T-CBN-R3_j.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-GHKoDEeT.js → quadrantDiagram-D57K4MC3-C5jjVPIH.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-Yk9rKkKW.js → radar-ABXABTNO-CAMd_mrV.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-Crr2QEwm.js → railroad-I3PHUGI6-DIs3auoe.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-CLrgwBog.js → railroad-abnf-LNEFI6M7-CJXr1qWy.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-zWReI6MC.js → railroad-ebnf-DWYD2UWJ-DfwtykqI.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-CnVnlaHi.js → railroad-peg-JR7BVNR7-B8beAhTs.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-MJ68mMla.js → railroadDiagram-Y72NRBL7-BDcQE-EL.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-BYb-mTCH.js → requirementDiagram-EQYSW5RA-KJ4-QjZM.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DzONJsqQ.js → sankeyDiagram-SY24JHO5-VjIB-Ybr.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-0vav9YWV.js → sequenceDiagram-BLEHNHQU-MfMuWq1M.js} +2 -2
- package/dist/assets/assets/{src-DZJUnjaM.js → src-BAxIj8GJ.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-B0M8THPh.js → stateDiagram-v2-A6IESKWZ-mHwLRRCY.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-5YJZCHIB.js → swimlanes-B3ENRKFQ-PArlYoqV.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-The09-5S.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-us1LwUHo.js → timeline-definition-JXYKGLGB-B2nKiNFU.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-BSLlcDre.js → treeView-D4JQ5SDB-gU23_RuI.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-DZ2SwLmk.js → treemap-SAJKECNS-CiqoMvZa.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-BrmvO_6k.js → usecaseDiagram-WPOLBNNX-DpeoWpMK.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-FKXSeKp5.js → vennDiagram-Q3Y3IDCW-C31iGKvM.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-DZ_vIMp2.js → wardley-7MLQ67FV-CIzHhzNw.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CfLYNckm.js → wardleyDiagram-IVAIDKWA-DIIkoezc.js} +2 -2
- package/dist/assets/assets/{webpack-CiS_BB3R.js → webpack-RFseiMZW.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-DBucwhQh.js → xychartDiagram-4URNHDU4-QiHL91kC.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-CKKRZ7-h.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs +110 -0
- package/dist/assets/plugins/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx +0 -0
- package/dist/assets/plugins/chunks/po-web-runtime-BJDT6Lbw.js +1 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.293d9a00-BXIhaPlQ.js +2 -0
- package/dist/assets/plugins/slots/artifacts.24567664-ZzR0gbvy.js +1 -0
- package/dist/assets/plugins/slots/author.0998a880-DAbA-7rb.js +93 -0
- package/dist/assets/plugins/slots/{autocompact.ec8f713f-B3KTYwW1.js → autocompact.dd97d013-IVq4Z6qm.js} +1 -1
- package/dist/assets/plugins/slots/builtin-tools.36d7400b-CpCLjRRN.js +7 -0
- package/dist/assets/plugins/slots/codemode.8eaee717-VWt9PqsU.js +10 -0
- package/dist/assets/plugins/slots/domain.5e95fc37-5PIUBqDe.js +1 -0
- package/dist/assets/plugins/slots/edit.385c9aa9-DNAjPNG5.js +7 -0
- package/dist/assets/plugins/slots/files.daf34ed8-CQaTz0i1.js +2 -0
- package/dist/assets/plugins/slots/goal.77ec9930-B8EkarBq.js +1 -0
- package/dist/assets/plugins/slots/grep.02052cdc-CIRhO2gY.js +1 -0
- package/dist/assets/plugins/slots/help.ecd4c0f9-naMF9NN1.js +3 -0
- package/dist/assets/plugins/slots/log.a86eb6d0-D5__rAZJ.js +4 -0
- package/dist/assets/plugins/slots/{mcp.ea8b6aa2-D0CkHnIw.js → mcp.974af249-DPNHn9XH.js} +10 -10
- package/dist/assets/plugins/slots/plan.bafb8f68-C5GEpybF.js +3 -0
- package/dist/assets/plugins/slots/{profile.63bc3ae6-BSY3iYfJ.js → profile.48851a1d-yX6tzV3x.js} +1 -1
- package/dist/assets/plugins/slots/prompts.723d7748-B7zpPeoF.js +3 -0
- package/dist/assets/plugins/slots/read.46bf6536-Cw5Z5z5T.js +1 -0
- package/dist/assets/plugins/slots/runner.53e9bd76-CiQR_FPX.js +8 -0
- package/dist/assets/plugins/slots/skill.086701a4-CL6h_F-x.js +4 -0
- package/dist/assets/plugins/slots/vault.ac9935c8-DKERQYg4.js +1 -0
- package/dist/assets/plugins/slots/voice.e85ca7f9-DEgb-U9m.js +1 -0
- package/dist/{atomicJson-DCIsEywH.js → atomicJson-C_7F2zD1.js} +2 -3
- package/dist/{backgroundWork-Bswjs1av.js → backgroundWork-B1mPDYlf.js} +1 -1
- package/dist/{codemode-CgVosRtU.js → codemode-DQFmrosw.js} +1 -1
- package/dist/{contracts-CylyLZC8.js → contracts-DD3f1Lpn.js} +1 -1
- package/dist/exports-B0WMEXCP.js +34 -0
- package/dist/{exports-DERO0cQf.js → exports-D09VsUk-.js} +6 -7
- package/dist/{exports-C_dclnKs.js → exports-nV43ShA7.js} +10 -9
- package/dist/{extensionFile-Ds7RCpnb.js → extensionFile-DNM4xsje.js} +16 -2
- package/dist/{domains-BqChtBLN.js → harnessState-Dwrk3lfv.js} +90 -5
- package/dist/{harnessStore-BectazJQ.js → harnessStore-Z7yDLO45.js} +4 -5
- package/dist/{help-Dpm82qDr.js → help-w6vVEZGL.js} +15 -5
- package/dist/hubChannel-Cm-sxOvU.js +21 -0
- package/dist/{index.edge-b0z7PQ6b.js → index.edge-DyYmurS7.js} +14 -2
- package/dist/{index.edge-B0D_Lgbx.js → index.edge-K0w5auwG.js} +2 -2
- package/dist/{index.edge-BLmsRNW8.js → index.edge-Xa5LLtxz.js} +13 -3
- package/dist/{layeredConfig-pQGjhAks.js → layeredConfig-CUkYUs1f.js} +74 -5
- package/dist/{majorModes-BrL4EtzH.js → majorModes-BB0PXgFn.js} +3 -4
- package/dist/majorModes-C7vtBs4D.js +1 -0
- package/dist/{mcpProjection-pbPBBuvs.js → mcpProjection-BtKzB6oK.js} +2 -2
- package/dist/modeDefinition-C3Zbrw48.js +44 -0
- package/dist/narration-CpRurWLO.js +127 -0
- package/dist/{notification-CINsJWDL.js → notification-kckG3leF.js} +2 -2
- package/dist/{hubChannel-COvmdWGO.js → packageApi-t1oCjNDU.js} +2 -22
- package/dist/{piConfig-BDUpA6w0.js → piConfig-DQzlbPY4.js} +4 -5
- package/dist/piSettings-Cf1QofNe.js +1 -0
- package/dist/platform-BIEiM4TG.js +113 -0
- package/dist/pluginProtocol-BqXXyI4z.js +80 -0
- package/dist/{protocol-B6LbEIe6.js → protocol-DDL8geoS.js} +2 -2
- package/dist/{server-DRcCuj6P.js → server-AbXyhXlY.js} +4 -4
- package/dist/{server-Re1VNk9s.js → server-B6dqQoh2.js} +7 -6
- package/dist/{server-cStfn1Yv.js → server-BIHo9TFu.js} +4 -4
- package/dist/{server-1O3JEYO0.js → server-BJ7DNzCp.js} +7 -7
- package/dist/server-BO-j_GbD.js +15106 -0
- package/dist/{server-Cgym-G0a.js → server-BQzAiMns.js} +11 -11
- package/dist/server-BR7SZtj7.js +3125 -0
- package/dist/{server-DL6UyXfJ.js → server-BT2ORK83.js} +9 -8
- package/dist/{server-CzJjYgVk.js → server-BbSHYRnY.js} +3 -3
- package/dist/{server-DFCXmDed.js → server-BqoKlEGk.js} +8 -8
- package/dist/{server-BXFDsLgm.js → server-Busl0pQI.js} +8 -9
- package/dist/server-CIHM4jqu.js +1116 -0
- package/dist/{server-DhkR6ugd.js → server-CgWSSdvd.js} +6 -7
- package/dist/{server-B8P-UkxF.js → server-Co_UWKrR.js} +5 -5
- package/dist/{server-Bt6Zsqo8.js → server-CuEPb7u-.js} +2 -2
- package/dist/{server-V8W5mcGu.js → server-D40q2Jpx.js} +47 -27
- package/dist/{server-OerXqXJT.js → server-DCyf2Asb.js} +3 -4
- package/dist/{server-CCwwnpH0.js → server-DH7PfLln.js} +5 -5
- package/dist/{server-_0288DYR.js → server-DJ8bc89M.js} +3 -4
- package/dist/{server-GIQIpf33.js → server-DYdp0W9v.js} +7 -7
- package/dist/{server-B2G-c0hg.js → server-DsdPEYGu.js} +5 -5
- package/dist/{server-Dgn4el5K.js → server-DymH4Ucq.js} +4 -5
- package/dist/{server-pY027myK.js → server-IqECnUrb.js} +13 -236
- package/dist/{server-Ci_BGVwd.js → server-KBgW77zh.js} +3 -3
- package/dist/server-RW_9R3R3.js +1522 -0
- package/dist/server-aUit8j6r.js +1028 -0
- package/dist/{server-Ci3ls6LL.js → server-gifRriZK.js} +10 -11
- package/dist/{server-BR9yl54i.js → server-nkUlqnAL.js} +10 -10
- package/dist/server-oxyEbv1a.js +1256 -0
- package/dist/{server-DPTp6GXS.js → server-ub3s16Mc.js} +4 -4
- package/dist/{serverPlugin-OOfjB8tm.js → serverPlugin-CELT6P0Q.js} +12 -3
- package/dist/{sessionConfig-DfwcUKO2.js → sessionConfig-RQGvfm6E.js} +9 -10
- package/dist/{server-CyYesT-G.js → type-ASYnCGVW.js} +9 -1031
- package/dist/{validation-DuOGOKEi.js → validation-BJxVSAwx.js} +8 -3
- package/dist/{value-DyVsxCwZ.js → value-_W31So3B.js} +1 -1
- package/dist/{vaultSettings-BFCRCBM3.js → vaultSettings-Di3n5YIg.js} +1 -1
- package/dist/voiceTools-RMn4HvWo.js +246 -0
- package/dist/web-DCP7ELJj.js +3 -0
- package/dist/worker.js +345 -244
- package/dist/{workflow-BgwWq0nq.js → workflow-B7qx0Vv9.js} +1 -1
- package/package.json +37 -32
- package/wrangler.jsonc +2 -0
- package/dist/assets/assets/channel-BXwM62E-.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-C9Ka5KSI.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-DXuTqLUd.js +0 -1
- package/dist/assets/assets/index-DdAdCxGc.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-aJTRXiIU.js +0 -9
- package/dist/assets/plugins/assets/base-C3j1WCCq.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-Czm_C4SJ.js +0 -1
- package/dist/assets/plugins/slots/approval.3e4ea6e4-CqQk6XG_.js +0 -2
- package/dist/assets/plugins/slots/artifacts.84980c32-DQlO5IFk.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.16ef5e25-CZRYQVIP.js +0 -7
- package/dist/assets/plugins/slots/codemode.5f359b9c-Bzl_K_vt.js +0 -10
- package/dist/assets/plugins/slots/domain.832848c8-CvnpuKCY.js +0 -1
- package/dist/assets/plugins/slots/edit.7c802139-kaxIknZ-.js +0 -7
- package/dist/assets/plugins/slots/files.364f16c9-wuB8gcQA.js +0 -2
- package/dist/assets/plugins/slots/grep.d8bf9f57-3FnU8p-d.js +0 -1
- package/dist/assets/plugins/slots/log.07fd59a4-C0PXQ0O1.js +0 -4
- package/dist/assets/plugins/slots/prompts.9d9b47cc-xdCkNkoA.js +0 -3
- package/dist/assets/plugins/slots/read.926c024f-qqaxVlEX.js +0 -1
- package/dist/assets/plugins/slots/runner.5393fa6c-DfO2Z9HG.js +0 -8
- package/dist/assets/plugins/slots/skill.56c1cc07-CL_n-l4h.js +0 -4
- package/dist/assets/plugins/slots/vault.587549ba-DbG3F_on.js +0 -1
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-C0Zwvny8.js +0 -1
- package/dist/majorModes-WXt22_km.js +0 -1
- package/dist/piSettings-tdui0CZI.js +0 -1
- package/dist/platform-yhQXrrM_.js +0 -16
- package/dist/platformFiles-DB3Cw1l_.js +0 -64
- package/dist/web-cN41ySs9.js +0 -3
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { V as String$1, pt as _Object_ } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import "./value-_W31So3B.js";
|
|
3
|
+
//#region ../../core/po-core/src/services/clientMetadata/_lib/codec.ts
|
|
4
|
+
const PO_CLIENT_METADATA_HEADER = "x-po-client-metadata";
|
|
5
|
+
const PO_CLIENT_METADATA_QUERY = "poClient";
|
|
6
|
+
const MAX_TEXT_LENGTH = 64;
|
|
7
|
+
function isPoClientToken(value) {
|
|
8
|
+
return typeof value === "string" && /^[A-Za-z0-9_-]{1,64}$/u.test(value);
|
|
9
|
+
}
|
|
10
|
+
function normalizeClientDeviceName(value) {
|
|
11
|
+
if (typeof value !== "string") return void 0;
|
|
12
|
+
const name = value.replaceAll(/[\p{Cc}\p{Cf}]/gu, "").trim();
|
|
13
|
+
const length = Array.from(name).length;
|
|
14
|
+
return length >= 1 && length <= MAX_TEXT_LENGTH ? name : void 0;
|
|
15
|
+
}
|
|
16
|
+
function record(value) {
|
|
17
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18
|
+
}
|
|
19
|
+
function validate(value) {
|
|
20
|
+
if (!record(value)) return { status: "invalid" };
|
|
21
|
+
if (Number.isSafeInteger(value.version) && value.version !== 1) return { status: "unsupported" };
|
|
22
|
+
const deviceName = normalizeClientDeviceName(value.deviceName);
|
|
23
|
+
if (value.version !== 1 || !isPoClientToken(value.deviceId) || value.instanceId !== void 0 && !isPoClientToken(value.instanceId) || typeof value.clientKind !== "string" || ![
|
|
24
|
+
"web",
|
|
25
|
+
"desktop",
|
|
26
|
+
"ios",
|
|
27
|
+
"android"
|
|
28
|
+
].includes(value.clientKind) || deviceName === void 0 || !Number.isSafeInteger(value.nameUpdatedAt) || typeof value.nameUpdatedAt !== "number" || value.nameUpdatedAt < 0) return { status: "invalid" };
|
|
29
|
+
for (const key of ["browser", "platform"]) if (value[key] !== void 0 && (normalizeClientDeviceName(value[key]) === void 0 || normalizeClientDeviceName(value[key]) !== value[key])) return { status: "invalid" };
|
|
30
|
+
return {
|
|
31
|
+
status: "ok",
|
|
32
|
+
metadata: {
|
|
33
|
+
version: 1,
|
|
34
|
+
deviceId: value.deviceId,
|
|
35
|
+
...value.instanceId === void 0 ? {} : { instanceId: value.instanceId },
|
|
36
|
+
clientKind: value.clientKind,
|
|
37
|
+
deviceName,
|
|
38
|
+
nameUpdatedAt: value.nameUpdatedAt,
|
|
39
|
+
...value.browser === void 0 ? {} : { browser: value.browser },
|
|
40
|
+
...value.platform === void 0 ? {} : { platform: value.platform }
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function encode(value) {
|
|
45
|
+
const bytes = new TextEncoder().encode(JSON.stringify(value));
|
|
46
|
+
return btoa(String.fromCharCode(...bytes)).replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/u, "");
|
|
47
|
+
}
|
|
48
|
+
/** Outbound misuse throws; inbound parsing always returns a verdict. */
|
|
49
|
+
function encodePoClientMetadata(metadata) {
|
|
50
|
+
const result = validate(metadata);
|
|
51
|
+
if (result.status !== "ok") throw new Error("Invalid Po client metadata");
|
|
52
|
+
const encoded = encode(result.metadata);
|
|
53
|
+
if (encoded.length > 2048) throw new Error("Po client metadata exceeds encoded limit");
|
|
54
|
+
return encoded;
|
|
55
|
+
}
|
|
56
|
+
/** Header and query contain base64url UTF-8 JSON; the decrypted preface contains an object. */
|
|
57
|
+
function poClientMetadataFrom(source) {
|
|
58
|
+
try {
|
|
59
|
+
if ("preface" in source) {
|
|
60
|
+
if (!record(source.preface) || !Object.hasOwn(source.preface, "poClient")) return { status: "absent" };
|
|
61
|
+
if (Object.keys(source.preface).length !== 1) return { status: "invalid" };
|
|
62
|
+
if (encode(source.preface.poClient).length > 2048) return { status: "invalid" };
|
|
63
|
+
return validate(source.preface.poClient);
|
|
64
|
+
}
|
|
65
|
+
let encoded;
|
|
66
|
+
if ("query" in source) {
|
|
67
|
+
const values = source.query.getAll(PO_CLIENT_METADATA_QUERY);
|
|
68
|
+
if (values.length > 1) return { status: "invalid" };
|
|
69
|
+
encoded = values[0];
|
|
70
|
+
} else encoded = source.header;
|
|
71
|
+
if (encoded === null || encoded === void 0) return { status: "absent" };
|
|
72
|
+
if (encoded.length > 2048 || !/^[A-Za-z0-9_-]+$/u.test(encoded)) return { status: "invalid" };
|
|
73
|
+
const binary = atob(encoded.replaceAll("-", "+").replaceAll("_", "/"));
|
|
74
|
+
const bytes = Uint8Array.from(binary, (character) => character.charCodeAt(0));
|
|
75
|
+
const text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
76
|
+
if (btoa(binary).replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/u, "") !== encoded) return { status: "invalid" };
|
|
77
|
+
return validate(JSON.parse(text));
|
|
78
|
+
} catch {
|
|
79
|
+
return { status: "invalid" };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region ../../minor/po-voice/src/types/manualTranscription.ts
|
|
84
|
+
const MANUAL_TRANSCRIPTION_ROUTE = "/manual/transcribe";
|
|
85
|
+
const MANUAL_TRANSCRIPTION_DURATION_HEADER = "x-po-audio-duration-ms";
|
|
86
|
+
const MANUAL_TRANSCRIPTION_MAX_AUDIO_BYTES = 4194304;
|
|
87
|
+
const MANUAL_TRANSCRIPTION_MAX_DURATION_MS = 3e5;
|
|
88
|
+
const MANUAL_TRANSCRIPTION_MAX_TRANSCRIPT_BYTES = 16384;
|
|
89
|
+
var ManualTranscriptionError = class extends Error {
|
|
90
|
+
kind;
|
|
91
|
+
constructor(kind, message) {
|
|
92
|
+
super(message);
|
|
93
|
+
this.kind = kind;
|
|
94
|
+
this.name = "ManualTranscriptionError";
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../core/po-core/src/schemas/narration.ts
|
|
99
|
+
const MAX_NARRATION_TEXT_CHARACTERS = 4096;
|
|
100
|
+
_Object_({ text: String$1({
|
|
101
|
+
minLength: 1,
|
|
102
|
+
maxLength: MAX_NARRATION_TEXT_CHARACTERS
|
|
103
|
+
}) }, { additionalProperties: false });
|
|
104
|
+
function replaceControlCharacters(text) {
|
|
105
|
+
return Array.from(text, (character) => {
|
|
106
|
+
const codePoint = character.codePointAt(0);
|
|
107
|
+
return codePoint !== void 0 && (codePoint < 32 || codePoint === 127) ? " " : character;
|
|
108
|
+
}).join("");
|
|
109
|
+
}
|
|
110
|
+
/** Normalize caller-owned speech while preserving Unicode-safe truncation. */
|
|
111
|
+
function normalizeNarrationText(text) {
|
|
112
|
+
const normalized = replaceControlCharacters(text).replace(/\s+/gu, " ").trim();
|
|
113
|
+
if (!normalized) return void 0;
|
|
114
|
+
let truncated = "";
|
|
115
|
+
for (const character of normalized) {
|
|
116
|
+
if (truncated.length + character.length > 4096) break;
|
|
117
|
+
truncated += character;
|
|
118
|
+
}
|
|
119
|
+
return truncated;
|
|
120
|
+
}
|
|
121
|
+
/** Builds the validated request value consumers pass to the injected service. */
|
|
122
|
+
function createNarrationRequest(text) {
|
|
123
|
+
const normalized = normalizeNarrationText(text);
|
|
124
|
+
return normalized === void 0 ? void 0 : Object.freeze({ text: normalized });
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
export { MANUAL_TRANSCRIPTION_MAX_AUDIO_BYTES as a, MANUAL_TRANSCRIPTION_ROUTE as c, encodePoClientMetadata as d, isPoClientToken as f, MANUAL_TRANSCRIPTION_DURATION_HEADER as i, ManualTranscriptionError as l, poClientMetadataFrom as m, createNarrationRequest as n, MANUAL_TRANSCRIPTION_MAX_DURATION_MS as o, normalizeClientDeviceName as p, normalizeNarrationText as r, MANUAL_TRANSCRIPTION_MAX_TRANSCRIPT_BYTES as s, MAX_NARRATION_TEXT_CHARACTERS as t, PO_CLIENT_METADATA_HEADER as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Check } from "./value-
|
|
1
|
+
import { V as String, Z as Literal, ht as Optional, pt as _Object_, z as Union } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { n as Check } from "./value-_W31So3B.js";
|
|
3
3
|
//#region ../../core/po-core/src/schemas/notification.ts
|
|
4
4
|
/** Provider-owned Cordis service for caller-authored notification requests. */
|
|
5
5
|
const PO_NOTIFICATION_SERVICE = "po/notification";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as defineServiceContract } from "./serverPlugin-CELT6P0Q.js";
|
|
2
2
|
//#region ../../core/po-core/src/schemas/packageApi.ts
|
|
3
3
|
/** Only canonical resource paths may select a protocol listener. */
|
|
4
4
|
function parsePoSocketPath(pathname) {
|
|
@@ -67,24 +67,4 @@ function poApiCallerFrom(headers) {
|
|
|
67
67
|
const PO_EDIT_PRESENCE_SERVICE = "po/edit-presence";
|
|
68
68
|
const PO_EDIT_PRESENCE_CONTRACT = defineServiceContract(PO_EDIT_PRESENCE_SERVICE, { scope: "workspace" });
|
|
69
69
|
//#endregion
|
|
70
|
-
|
|
71
|
-
/** Compact host-wide session attention, published over the existing direct event bus. */
|
|
72
|
-
const PO_SESSION_ATTENTION_EVENT = "po.session.attention";
|
|
73
|
-
/** Caller-authored attention entries, consumed live without replaying historical notices. */
|
|
74
|
-
const PO_SESSION_NOTIFICATION_EVENT = "po.session.notification";
|
|
75
|
-
/**
|
|
76
|
-
* Provenance of a session a workflow step opened.
|
|
77
|
-
*
|
|
78
|
-
* The step's conversation belongs to the workflow that ran it and is read in
|
|
79
|
-
* that workflow's view, so the session rail leaves such sessions out.
|
|
80
|
-
*/
|
|
81
|
-
const WORKFLOW_STEP_SESSION_PROVENANCE = "workflow";
|
|
82
|
-
/** Provenance of a conversation an external MCP client opened and drives. */
|
|
83
|
-
const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
|
|
84
|
-
/**
|
|
85
|
-
* Provenance of a coordinator: it may message every session in its workspace, and the home coordinator
|
|
86
|
-
* may also message every other coordinator. Reserved for the host; public create paths refuse it.
|
|
87
|
-
*/
|
|
88
|
-
const COORDINATOR_SESSION_PROVENANCE = "coordinator";
|
|
89
|
-
//#endregion
|
|
90
|
-
export { WORKFLOW_STEP_SESSION_PROVENANCE as a, PO_EDIT_PRESENCE_SERVICE as c, REMOTE_CONVERSATION_SESSION_PROVENANCE as i, parsePoSocketPath as l, PO_SESSION_ATTENTION_EVENT as n, PO_API_ROUTE_PREFIX as o, PO_SESSION_NOTIFICATION_EVENT as r, PO_EDIT_PRESENCE_CONTRACT as s, COORDINATOR_SESSION_PROVENANCE as t, poApiCallerFrom as u };
|
|
70
|
+
export { poApiCallerFrom as a, parsePoSocketPath as i, PO_EDIT_PRESENCE_CONTRACT as n, PO_EDIT_PRESENCE_SERVICE as r, PO_API_ROUTE_PREFIX as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import "./piSettings-tdui0CZI.js";
|
|
1
|
+
import { gn as createSerialRunner, mn as piAgentDirectory, vn as nodeHost } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { s as readTextIfExists } from "./platform-BIEiM4TG.js";
|
|
3
|
+
import { n as writePrivateAtomicJsonAsync } from "./atomicJson-C_7F2zD1.js";
|
|
4
|
+
import "./piSettings-Cf1QofNe.js";
|
|
6
5
|
import path from "node:path";
|
|
7
6
|
//#region ../../foundations/po-config/src/services/imageSettings/index.ts
|
|
8
7
|
const IMAGE_SETTINGS_KEY = "images";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./serverPlugin-CELT6P0Q.js";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Hn as BACKGROUND_CONTEXT, On as SessionIdentityDoc, Sn as getOrThrow, Wn as withAbortSignal, _n as fileMutationRunner } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
//#region ../../core/po-core/src/services/platformFiles/index.ts
|
|
5
|
+
let largestTranscriptEntryBytes = 0;
|
|
6
|
+
/** Exact JSON bytes of a browser projection, not the durable source entry size. */
|
|
7
|
+
function recordTranscriptProjection(bytes) {
|
|
8
|
+
if (Number.isSafeInteger(bytes) && bytes > 0) largestTranscriptEntryBytes = Math.max(largestTranscriptEntryBytes, bytes);
|
|
9
|
+
}
|
|
10
|
+
var FileTooLargeError = class extends Error {
|
|
11
|
+
constructor(filePath, maxBytes) {
|
|
12
|
+
super(`File exceeds ${maxBytes} byte read limit: ${filePath}`);
|
|
13
|
+
this.name = "FileTooLargeError";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
/** Bounds allocation even when a file grows between stat and read. */
|
|
17
|
+
async function readBoundedFile(fs, filePath, maxBytes, context) {
|
|
18
|
+
if (!Number.isSafeInteger(maxBytes) || maxBytes < 0) throw new RangeError("Invalid read limit.");
|
|
19
|
+
const reader = getOrThrow(await fs.openBinaryReader(filePath, {}, context));
|
|
20
|
+
try {
|
|
21
|
+
const info = getOrThrow(await reader.info(context));
|
|
22
|
+
if (info.size > maxBytes) throw new FileTooLargeError(filePath, maxBytes);
|
|
23
|
+
const data = getOrThrow(await reader.read(0, info.size, context));
|
|
24
|
+
const after = getOrThrow(await reader.info(context));
|
|
25
|
+
if (after.size > maxBytes) throw new FileTooLargeError(filePath, maxBytes);
|
|
26
|
+
if (data.length !== info.size || after.size !== info.size || after.mtimeMs !== info.mtimeMs) throw new Error(`File changed during access: ${filePath}`);
|
|
27
|
+
return data;
|
|
28
|
+
} finally {
|
|
29
|
+
await reader.close(BACKGROUND_CONTEXT);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** File text, or undefined when the file does not exist. Every other failure throws. */
|
|
33
|
+
async function readTextIfExists(fs, filePath, context) {
|
|
34
|
+
const result = await fs.readTextFile(filePath, context);
|
|
35
|
+
if (!result.ok && result.error.code === "not_found") return void 0;
|
|
36
|
+
return getOrThrow(result);
|
|
37
|
+
}
|
|
38
|
+
async function pathExists(fs, filePath, context) {
|
|
39
|
+
return getOrThrow(await fs.exists(filePath, context));
|
|
40
|
+
}
|
|
41
|
+
/** Removes a file or directory tree; a missing path is not an error. */
|
|
42
|
+
async function removePath(fs, filePath, context) {
|
|
43
|
+
getOrThrow(await fs.remove(filePath, {
|
|
44
|
+
recursive: true,
|
|
45
|
+
force: true
|
|
46
|
+
}, context));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Writes through a uniquely named temporary file beside the target, then renames it into
|
|
50
|
+
* place, so a reader never sees a torn file. A failed write removes its temporary file.
|
|
51
|
+
* Callers that read-modify-write the same target serialise through `serialRunner.forKey`.
|
|
52
|
+
*/
|
|
53
|
+
async function writeFileAtomic(fs, filePath, content, context) {
|
|
54
|
+
getOrThrow(await fs.createDir(path.dirname(filePath), { recursive: true }, context));
|
|
55
|
+
const temporaryPath = `${filePath}.${randomUUID()}.tmp`;
|
|
56
|
+
const written = await fs.writeFile(temporaryPath, content, context);
|
|
57
|
+
const renamed = written.ok ? await fs.renameFile(temporaryPath, filePath, context) : written;
|
|
58
|
+
if (!renamed.ok) {
|
|
59
|
+
await fs.remove(temporaryPath, { force: true }, context);
|
|
60
|
+
getOrThrow(renamed);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../core/po-core/src/services/platformFiles/rootBoundReplace.edge.ts
|
|
65
|
+
var RootBoundReplaceError = class extends Error {
|
|
66
|
+
status;
|
|
67
|
+
constructor(message, status) {
|
|
68
|
+
super(message);
|
|
69
|
+
this.status = status;
|
|
70
|
+
this.name = "RootBoundReplaceError";
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const digest = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
74
|
+
/** Replace an existing file in host-owned virtual storage, retaining optimistic concurrency. */
|
|
75
|
+
async function replaceRootBoundFile(options) {
|
|
76
|
+
const { root, relativePath, expectedSha256, maxBytes, signal, fileSystem } = options;
|
|
77
|
+
if (!Number.isSafeInteger(maxBytes) || maxBytes < 0) throw new RangeError("Invalid save limit.");
|
|
78
|
+
if (options.bytes.byteLength > maxBytes) throw new RootBoundReplaceError("File exceeds the save limit.", 413);
|
|
79
|
+
if (!/^[a-f0-9]{64}$/.test(expectedSha256)) throw new RootBoundReplaceError("A SHA-256 is required.", 400);
|
|
80
|
+
if (!path.isAbsolute(root) || !relativePath || relativePath.includes("\\") || relativePath.includes("\0") || path.isAbsolute(relativePath) || relativePath.split("/").some((part) => !part || part === "." || part === "..")) throw new RootBoundReplaceError("A relative file path under an admitted root is required.", 403);
|
|
81
|
+
if (fileSystem === void 0) throw new Error("Root-bound replacement requires the host filesystem.");
|
|
82
|
+
signal?.throwIfAborted();
|
|
83
|
+
const context = signal ? withAbortSignal(signal, BACKGROUND_CONTEXT) : BACKGROUND_CONTEXT;
|
|
84
|
+
const bytes = Uint8Array.from(options.bytes);
|
|
85
|
+
const target = path.join(root, relativePath);
|
|
86
|
+
return fileMutationRunner.forKey(target)(async () => {
|
|
87
|
+
signal?.throwIfAborted();
|
|
88
|
+
if (getOrThrow(await fileSystem.canonicalPath(root, context)) !== path.resolve(root) || getOrThrow(await fileSystem.canonicalPath(target, context)) !== target) throw new RootBoundReplaceError("The save path changed or contains a symlink.", 403);
|
|
89
|
+
const info = getOrThrow(await fileSystem.fileInfo(target, context));
|
|
90
|
+
if (info.kind !== "file") throw new RootBoundReplaceError("The save target is not a regular file.", 403);
|
|
91
|
+
if (info.size > maxBytes) throw new RootBoundReplaceError("File exceeds the save limit.", 413);
|
|
92
|
+
if (digest(await readBoundedFile(fileSystem, target, maxBytes, context)) !== expectedSha256) throw new RootBoundReplaceError("This file changed elsewhere. Reopen it before saving.", 409);
|
|
93
|
+
signal?.throwIfAborted();
|
|
94
|
+
await writeFileAtomic(fileSystem, target, bytes, context);
|
|
95
|
+
return digest(bytes);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../../core/po-core/src/services/durableSession/index.ts
|
|
100
|
+
/** Stamps a new session's identity, or checks an existing one matches the requested id. */
|
|
101
|
+
async function initializeSessionIdentity(session, request, context) {
|
|
102
|
+
const identity = await session.snapshot(SessionIdentityDoc, context);
|
|
103
|
+
if (request.existing && (!identity || identity.id !== request.id)) throw new Error("SQLite session id does not match the requested session");
|
|
104
|
+
if (request.existing) return;
|
|
105
|
+
await session.commit(async (tx) => {
|
|
106
|
+
const doc = await tx.doc(SessionIdentityDoc);
|
|
107
|
+
doc.id = request.id;
|
|
108
|
+
doc.createdAt = Date.now();
|
|
109
|
+
doc.parentSessionId = request.parentSessionId ?? "";
|
|
110
|
+
}, context);
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
export { pathExists as a, recordTranscriptProjection as c, FileTooLargeError as i, removePath as l, RootBoundReplaceError as n, readBoundedFile as o, replaceRootBoundFile as r, readTextIfExists as s, initializeSessionIdentity as t, writeFileAtomic as u };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { V as String, Z as Literal, dt as Unknown, pt as _Object_, z as Union } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { n as Check } from "./value-_W31So3B.js";
|
|
3
|
+
//#region ../../core/po-core/src/schemas/pluginProtocol.ts
|
|
4
|
+
/** The address is always exact. A workspace call never resolves to a global service. */
|
|
5
|
+
const PoPluginMountSchema = Union([
|
|
6
|
+
_Object_({ scope: Literal("global") }, { additionalProperties: false }),
|
|
7
|
+
_Object_({
|
|
8
|
+
scope: Literal("workspace"),
|
|
9
|
+
workspaceId: String({ minLength: 1 })
|
|
10
|
+
}, { additionalProperties: false }),
|
|
11
|
+
_Object_({
|
|
12
|
+
scope: Literal("session"),
|
|
13
|
+
sessionId: String({ minLength: 1 })
|
|
14
|
+
}, { additionalProperties: false })
|
|
15
|
+
]);
|
|
16
|
+
const PoPluginCallSchema = _Object_({
|
|
17
|
+
mount: PoPluginMountSchema,
|
|
18
|
+
service: String({ minLength: 1 }),
|
|
19
|
+
method: String({ minLength: 1 }),
|
|
20
|
+
input: Unknown()
|
|
21
|
+
}, { additionalProperties: false });
|
|
22
|
+
function definePoPluginMethod(definition) {
|
|
23
|
+
if (!definition.service || !definition.method) throw new Error("Plugin service and method must be named.");
|
|
24
|
+
return definition;
|
|
25
|
+
}
|
|
26
|
+
function poPluginMountKey(mount) {
|
|
27
|
+
if (!Check(PoPluginMountSchema, mount)) throw new Error("Invalid plugin mount.");
|
|
28
|
+
switch (mount.scope) {
|
|
29
|
+
case "global": return "global";
|
|
30
|
+
case "workspace": return `workspace:${mount.workspaceId}`;
|
|
31
|
+
case "session": return `session:${mount.sessionId}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
var PoPluginCallError = class extends Error {
|
|
35
|
+
code;
|
|
36
|
+
constructor(code, message) {
|
|
37
|
+
super(message);
|
|
38
|
+
this.code = code;
|
|
39
|
+
this.name = "PoPluginCallError";
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
/** Transport-neutral dispatch, shared by Chord server services and client capability hosts. */
|
|
43
|
+
function createPoPluginRegistry() {
|
|
44
|
+
const handlers = /* @__PURE__ */ new Map();
|
|
45
|
+
let disposed = false;
|
|
46
|
+
const keyOf = (mount, service, method, direction) => `${poPluginMountKey(mount)}\0${direction}\0${service}\0${method}`;
|
|
47
|
+
return {
|
|
48
|
+
register(mount, definition, handler) {
|
|
49
|
+
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
50
|
+
if (mount.scope !== definition.scope) throw new Error(`Method '${definition.service}.${definition.method}' requires ${definition.scope} scope.`);
|
|
51
|
+
const key = keyOf(mount, definition.service, definition.method, definition.direction);
|
|
52
|
+
if (handlers.has(key)) throw new Error(`Plugin method '${definition.service}.${definition.method}' is already mounted.`);
|
|
53
|
+
const entry = {
|
|
54
|
+
definition,
|
|
55
|
+
handler
|
|
56
|
+
};
|
|
57
|
+
handlers.set(key, entry);
|
|
58
|
+
return () => {
|
|
59
|
+
if (handlers.get(key) === entry) handlers.delete(key);
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
async invoke(value, direction, caller = {}) {
|
|
63
|
+
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
64
|
+
if (!Check(PoPluginCallSchema, value)) throw new PoPluginCallError("INVALID_CALL", "Invalid plugin call.");
|
|
65
|
+
const call = value;
|
|
66
|
+
const entry = handlers.get(keyOf(call.mount, call.service, call.method, direction));
|
|
67
|
+
if (!entry) throw new PoPluginCallError("METHOD_NOT_FOUND", `Plugin method '${call.service}.${call.method}' is not mounted at this scope.`);
|
|
68
|
+
if (!Check(entry.definition.input, call.input)) throw new PoPluginCallError("INVALID_INPUT", `Invalid input for '${call.service}.${call.method}'.`);
|
|
69
|
+
const output = await entry.handler(call.input, caller);
|
|
70
|
+
if (!Check(entry.definition.output, output)) throw new PoPluginCallError("INVALID_OUTPUT", `Invalid output from '${call.service}.${call.method}'.`);
|
|
71
|
+
return output;
|
|
72
|
+
},
|
|
73
|
+
dispose() {
|
|
74
|
+
disposed = true;
|
|
75
|
+
handlers.clear();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { createPoPluginRegistry as n, definePoPluginMethod as r, PoPluginCallSchema as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Errors } from "./value-
|
|
1
|
+
import { V as String$1, Z as Literal, et as Boolean, ht as Optional, pt as _Object_ } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { t as Errors } from "./value-_W31So3B.js";
|
|
3
3
|
_Object_({
|
|
4
4
|
code: String$1({ minLength: 1 }),
|
|
5
5
|
message: String$1({ minLength: 1 }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-
|
|
4
|
-
import { t as PO_HELP_WHEN } from "./help-
|
|
1
|
+
import { U as Number, V as String, bt as _Array_, et as Boolean, ht as Optional, pt as _Object_, v as composeServerProviderOverrides } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { a as defineHook, c as defineRoot, d as defineServerCommand, f as defineServerTool, h as defineServerPlugin, l as defineRoute, n as composeRootInjects, r as defineChannel, s as defineResource, t as composeRootHooks } from "./extensionFile-DNM4xsje.js";
|
|
3
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-DyYmurS7.js";
|
|
4
|
+
import { t as PO_HELP_WHEN } from "./help-w6vVEZGL.js";
|
|
5
5
|
//#region ../../default/po-runner/src/constants/runners.ts
|
|
6
6
|
const RUNNER_UNAVAILABLE_MESSAGE = "Subprocess supervision is unavailable on this host.";
|
|
7
7
|
//#endregion
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as DEFAULT_COMPACTION_POLICY } from "./agent-
|
|
3
|
-
import { S as loadPoConfig } from "./sessionConfig-
|
|
4
|
-
import "./exports-
|
|
5
|
-
import {
|
|
1
|
+
import { S as PO_CONFIG_SERVICE, v as composeServerProviderOverrides } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { n as DEFAULT_COMPACTION_POLICY } from "./agent-DZ-OKOHn.js";
|
|
3
|
+
import { S as loadPoConfig } from "./sessionConfig-RQGvfm6E.js";
|
|
4
|
+
import "./exports-nV43ShA7.js";
|
|
5
|
+
import { a as defineHook, c as defineRoot, h as defineServerPlugin, n as composeRootInjects, t as composeRootHooks } from "./extensionFile-DNM4xsje.js";
|
|
6
6
|
import { t as createPoTelemetry } from "./index.edge-ChYa2LU4.js";
|
|
7
|
-
import { a as readArtifactBytes, c as ArtifactAccessError,
|
|
7
|
+
import { a as readArtifactBytes, c as ArtifactAccessError, i as openArtifact, l as artifactRoot, o as removeArtifact, p as COMPACTION_ARTIFACT_DIRECTORY, r as listArtifacts, s as writeArtifactText } from "./index.edge-Xa5LLtxz.js";
|
|
8
|
+
import "./artifactFiles-DLCReI0-.js";
|
|
8
9
|
import { t as minimatch } from "./esm-BKJy3O9-.js";
|
|
9
10
|
//#region ../../core/po-core/src/schemas/contextContributions.ts
|
|
10
11
|
/** Session-scoped broker for bounded context rendered by optional Po packages. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as composeServerProviderOverrides, x as Service } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import "./platform-BIEiM4TG.js";
|
|
2
3
|
import { r as readPoFileAccess } from "./fileAccess-bFgmsyx0.js";
|
|
3
|
-
import "./
|
|
4
|
-
import { c as
|
|
5
|
-
import { a as readArtifactBytes, c as ArtifactAccessError, d as ARTIFACT_REFRESH_MS, i as openArtifact, l as artifactRoot, m as MAX_PREVIEW_BYTES, n as listArtifactSessions, p as MAX_CONTENT_BYTES, r as listArtifacts, t as ensureArtifactRoot, u as ARTIFACTS_SERVICE } from "./index.edge-BLmsRNW8.js";
|
|
4
|
+
import { a as defineHook, c as defineRoot, h as defineServerPlugin, l as defineRoute, n as composeRootInjects, r as defineChannel, t as composeRootHooks } from "./extensionFile-DNM4xsje.js";
|
|
5
|
+
import { a as readArtifactBytes, c as ArtifactAccessError, d as ARTIFACTS_SERVICE, f as ARTIFACT_REFRESH_MS, h as MAX_PREVIEW_BYTES, i as openArtifact, l as artifactRoot, m as MAX_CONTENT_BYTES, n as listArtifactSessions, r as listArtifacts, t as ensureArtifactRoot } from "./index.edge-Xa5LLtxz.js";
|
|
6
6
|
import { t as Hono } from "./dist-B-vqs6tA.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { clearTimeout, setTimeout } from "node:timers";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
3
|
-
import { n as providePoConfigContext, s as createSettingsApi, t as createNativePoConfigContext } from "./sessionConfig-
|
|
4
|
-
import {
|
|
5
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-
|
|
6
|
-
import { i as readPoNotificationService } from "./notification-
|
|
7
|
-
import { a as createPoMcpProjectionService, i as createDisabledPoMcpProjection, n as PO_MCP_PROJECTION_SERVICE, o as isPoMcpProjection } from "./mcpProjection-
|
|
1
|
+
import { Hn as BACKGROUND_CONTEXT, Wn as withAbortSignal, tr as requirePoFs, v as composeServerProviderOverrides } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import "./platform-BIEiM4TG.js";
|
|
3
|
+
import { n as providePoConfigContext, s as createSettingsApi, t as createNativePoConfigContext } from "./sessionConfig-RQGvfm6E.js";
|
|
4
|
+
import { c as defineRoot, h as defineServerPlugin, n as composeRootInjects, s as defineResource, t as composeRootHooks, u as defineRoutedContribution } from "./extensionFile-DNM4xsje.js";
|
|
5
|
+
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-DyYmurS7.js";
|
|
6
|
+
import { i as readPoNotificationService } from "./notification-kckG3leF.js";
|
|
7
|
+
import { a as createPoMcpProjectionService, i as createDisabledPoMcpProjection, n as PO_MCP_PROJECTION_SERVICE, o as isPoMcpProjection } from "./mcpProjection-BtKzB6oK.js";
|
|
8
8
|
import { t as createPoTelemetry } from "./index.edge-ChYa2LU4.js";
|
|
9
9
|
//#region ../../core/po-core/src/schemas/readiness.ts
|
|
10
10
|
/** Cordis service name for session-scoped package initialization. */
|