@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
package/dist/worker.js
CHANGED
|
@@ -6,41 +6,43 @@ import path from "node:path";
|
|
|
6
6
|
import * as __poBuiltin5 from "node:stream";
|
|
7
7
|
import * as __poBuiltin6 from "node:url";
|
|
8
8
|
import { i as __toESM$1, n as __exportAll$1, t as __commonJSMin$1 } from "./rolldown-runtime-B-lAHAz2.js";
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
9
|
+
import { Bn as seqFromNumber, Cn as ok$1, Dn as LabelsDoc, En as IdentityHistoryDoc, G as Null$1, Gn as withTelemetry, Hn as BACKGROUND_CONTEXT, Kn as withoutAbortSignal, N as Record, Nn as defineDoc, O as Omit, On as SessionIdentityDoc, Pn as defineDocFamily, Q as Integer$1, S as PO_CONFIG_SERVICE, Sn as getOrThrow, Tn as FastModeDoc, U as Number$1, Un as awaitWithContext, V as String$1, Vn as copyJson, Wn as withAbortSignal, Z as Literal, a as PoHeadlessPromptAdmissionError, ar as defineServiceContract, bn as FileError, bt as _Array_, c as dropInvalidImages, d as isPoHeadlessToolBusyError, dt as Unknown, et as Boolean$2, f as isPoHeadlessToolModelVisible, fn as PO_SESSION_TEMP_DIR, g as guardedImport, gn as createSerialRunner, ht as Optional, i as PO_SEARCH_SKILLS_TOOL, kn as SessionMetadataDoc, m as readPoHeadlessOwner, mn as piAgentDirectory, n as PO_HEADLESS_HOST_SERVICE, o as PoHeadlessToolBusyError, pn as prepareSessionEnvironment, pt as _Object_, r as PO_LOAD_SKILL_TOOL, s as PoSessionSetupError, t as PoServerScope, u as isPoHeadlessPromptAdmissionError, vn as nodeHost, wn as AgentLockDoc, x as Service, xn as err, yn as ExecutionError, z as Union, zn as idFromNumber } from "./serverPlugin-CELT6P0Q.js";
|
|
10
|
+
import { i as parsePoSocketPath, n as PO_EDIT_PRESENCE_CONTRACT, t as PO_API_ROUTE_PREFIX } from "./packageApi-t1oCjNDU.js";
|
|
11
11
|
import { r as isSealedEnvelope } from "./sealedChannel-BeWNTWys.js";
|
|
12
|
-
import { $ as ClientRequestSchema, $n as RequestMetaSchema, $r as ToolListChangedNotificationSchema, $t as LegacyTitledEnumSchemaSchema, An as OAuthTokensSchema, Ar as SubscribeRequestParamsSchema, At as GetTaskPayloadResultSchema, B as BlobResourceContentsSchema, Bn as ProgressNotificationSchema, Br as TaskCreationParamsSchema, Bt as InitializeResultSchema, C as PO_MCP_REMOTE_SERVERS_CONTRACT, Cn as OAuthClientInformationSchema, Cr as ServerRequestSchema, Ct as EmbeddedResourceSchema, Dn as OAuthMetadataSchema, Dr as SetLevelRequestSchema, Dt as GetPromptRequestSchema, En as OAuthErrorResponseSchema, Er as SetLevelRequestParamsSchema, Et as GetPromptRequestParamsSchema, Fn as PaginatedRequestSchema, Fr as SubscriptionsListenRequestParamsSchema, Ft as IdJagTokenExchangeResponseSchema, G as CallToolRequestSchema, Gn as PromptMessageSchema, Gr as TaskStatusSchema, Gt as JSONRPCMessageSchema, H as CLIENT_CAPABILITIES_META_KEY, Hn as ProgressTokenSchema, Hr as TaskSchema, Ht as JSONArraySchema, I as AnnotationsSchema, In as PaginatedResultSchema, Ir as SubscriptionsListenRequestSchema, It as ImageContentSchema, J as CancelTaskResultSchema, Jn as ReadResourceRequestParamsSchema, Jr as TitledMultiSelectEnumSchemaSchema, Jt as JSONRPCResponseSchema, K as CallToolResultSchema, Kn as PromptReferenceSchema, Kr as TextContentSchema, Kt as JSONRPCNotificationSchema, L as AudioContentSchema, Ln as PingRequestSchema, Lr as SubscriptionsListenResultMetaSchema, Lt as ImplementationSchema, Mn as OpenIdProviderMetadataSchema, Mr as SubscriptionFilterSchema, Mt as GetTaskResultSchema, Nn as PROTOCOL_VERSION_META_KEY, Nr as SubscriptionsAcknowledgedNotificationParamsSchema, Nt as IconSchema, On as OAuthProtectedResourceMetadataSchema, Or as SingleSelectEnumSchemaSchema, Ot as GetPromptResultSchema, Pn as PaginatedRequestParamsSchema, Pr as SubscriptionsAcknowledgedNotificationSchema, Pt as IconsSchema, Q as ClientNotificationSchema, Qn as RequestIdSchema, Qr as ToolExecutionSchema, Qt as LOG_LEVEL_META_KEY, R as BaseMetadataSchema, Rn as PrimitiveSchemaDefinitionSchema, Rr as SubscriptionsListenResultSchema, Rt as InitializeRequestParamsSchema, S as createMcpGlobalSettings, Sn as OAuthClientInformationFullSchema, Sr as ServerNotificationSchema, St as ElicitationCompleteNotificationSchema, Tn as OAuthClientRegistrationErrorSchema, Tr as ServerTasksCapabilitySchema, Tt as EnumSchemaSchema, U as CLIENT_INFO_META_KEY, Un as PromptArgumentSchema, Ur as TaskStatusNotificationParamsSchema, Ut as JSONObjectSchema, V as BooleanSchemaSchema, Vn as ProgressSchema, Vr as TaskMetadataSchema, Vt as InitializedNotificationSchema, W as CallToolRequestParamsSchema, Wn as PromptListChangedNotificationSchema, Wr as TaskStatusNotificationSchema, Wt as JSONRPCErrorResponseSchema, X as CancelledNotificationSchema, Xn as ReadResourceResultSchema, Xr as ToolAnnotationsSchema, Xt as JSONValueSchema, Y as CancelledNotificationParamsSchema, Yn as ReadResourceRequestSchema, Yr as TitledSingleSelectEnumSchemaSchema, Yt as JSONRPCResultResponseSchema, Z as ClientCapabilitiesSchema, Zn as RelatedTaskMetadataSchema, Zr as ToolChoiceSchema, _ as userMcpFilePaths, _n as ModelPreferencesSchema, _r as SUPPORTED_PROTOCOL_VERSIONS, _t as ElicitRequestParamsSchema, ai as UntitledMultiSelectEnumSchemaSchema, an as ListResourcesRequestSchema, ar as ResourceSchema, at as CompleteResultSchema, bn as NotificationsParamsSchema, br as SamplingMessageSchema, bt as ElicitResultSchema, c as parseMcpServerAddition, ci as string, cn as ListRootsResultSchema, cr as ResourceUpdatedNotificationParamsSchema, ct as CreateMessageRequestSchema, di as ownZone, dn as ListToolsRequestSchema, dr as ResultSchema, dt as CreateTaskResultSchema, ei as ToolResultContentSchema, en as ListChangedOptionsBaseSchema, er as RequestSchema, et as ClientResultSchema, fn as ListToolsResultSchema, fr as RoleSchema, ft as CursorSchema, gn as ModelHintSchema, gr as SUBSCRIPTION_ID_META_KEY, gt as ElicitRequestFormParamsSchema, hn as LoggingMessageNotificationSchema, hr as SERVER_INFO_META_KEY, ht as DiscoverResultSchema, ii as UnsubscribeRequestSchema, in as ListResourceTemplatesResultSchema, ir as ResourceRequestParamsSchema, it as CompleteRequestSchema, jn as OpenIdProviderDiscoveryMetadataSchema, jr as SubscribeRequestSchema, jt as GetTaskRequestSchema, kn as OAuthTokenRevocationRequestSchema, kr as StringSchemaSchema, kt as GetTaskPayloadRequestSchema, l as isProxyWrapper, li as OutboundRefusedError, ln as ListTasksRequestSchema, lr as ResourceUpdatedNotificationSchema, lt as CreateMessageResultSchema, mn as LoggingMessageNotificationParamsSchema, mr as RootsListChangedNotificationSchema, mt as DiscoverRequestSchema, n as isVaultAccountOperation, ni as ToolUseContentSchema, nn as ListPromptsResultSchema, nr as ResourceLinkSchema, nt as CompatibilityCallToolResultSchema, o as mcpServerRevision, oi as UntitledSingleSelectEnumSchemaSchema, on as ListResourcesResultSchema, or as ResourceTemplateReferenceSchema, ot as ContentBlockSchema, pn as LoggingLevelSchema, pr as RootSchema, q as CancelTaskRequestSchema, qn as PromptSchema, qr as TextResourceContentsSchema, qt as JSONRPCRequestSchema, r as createLocalLock, ri as UnsubscribeRequestParamsSchema, rn as ListResourceTemplatesRequestSchema, rr as ResourceListChangedNotificationSchema, rt as CompleteRequestParamsSchema, si as boolean, sn as ListRootsRequestSchema, sr as ResourceTemplateSchema, st as CreateMessageRequestParamsSchema, t as createAccountVault, ti as ToolSchema, tn as ListPromptsRequestSchema, tr as ResourceContentsSchema, tt as ClientTasksCapabilitySchema, ui as outboundHostRefusal, un as ListTasksResultSchema, ur as ResultMetaObjectSchema, ut as CreateMessageResultWithToolsSchema, vn as MultiSelectEnumSchemaSchema, vr as SamplingContentSchema, vt as ElicitRequestSchema, wn as OAuthClientMetadataSchema, wr as ServerResultSchema, wt as EmptyResultSchema, xn as NumberSchemaSchema, xr as ServerCapabilitiesSchema, xt as ElicitationCompleteNotificationParamsSchema, yn as NotificationSchema, yr as SamplingMessageContentBlockSchema, yt as ElicitRequestURLParamsSchema, z as BaseRequestParamsSchema, zn as ProgressNotificationParamsSchema, zr as TaskAugmentedRequestParamsSchema, zt as InitializeRequestSchema } from "./exports-
|
|
12
|
+
import { $ as ClientRequestSchema, $n as RequestMetaSchema, $r as ToolListChangedNotificationSchema, $t as LegacyTitledEnumSchemaSchema, An as OAuthTokensSchema, Ar as SubscribeRequestParamsSchema, At as GetTaskPayloadResultSchema, B as BlobResourceContentsSchema, Bn as ProgressNotificationSchema, Br as TaskCreationParamsSchema, Bt as InitializeResultSchema, C as PO_MCP_REMOTE_SERVERS_CONTRACT, Cn as OAuthClientInformationSchema, Cr as ServerRequestSchema, Ct as EmbeddedResourceSchema, Dn as OAuthMetadataSchema, Dr as SetLevelRequestSchema, Dt as GetPromptRequestSchema, En as OAuthErrorResponseSchema, Er as SetLevelRequestParamsSchema, Et as GetPromptRequestParamsSchema, Fn as PaginatedRequestSchema, Fr as SubscriptionsListenRequestParamsSchema, Ft as IdJagTokenExchangeResponseSchema, G as CallToolRequestSchema, Gn as PromptMessageSchema, Gr as TaskStatusSchema, Gt as JSONRPCMessageSchema, H as CLIENT_CAPABILITIES_META_KEY, Hn as ProgressTokenSchema, Hr as TaskSchema, Ht as JSONArraySchema, I as AnnotationsSchema, In as PaginatedResultSchema, Ir as SubscriptionsListenRequestSchema, It as ImageContentSchema, J as CancelTaskResultSchema, Jn as ReadResourceRequestParamsSchema, Jr as TitledMultiSelectEnumSchemaSchema, Jt as JSONRPCResponseSchema, K as CallToolResultSchema, Kn as PromptReferenceSchema, Kr as TextContentSchema, Kt as JSONRPCNotificationSchema, L as AudioContentSchema, Ln as PingRequestSchema, Lr as SubscriptionsListenResultMetaSchema, Lt as ImplementationSchema, Mn as OpenIdProviderMetadataSchema, Mr as SubscriptionFilterSchema, Mt as GetTaskResultSchema, Nn as PROTOCOL_VERSION_META_KEY, Nr as SubscriptionsAcknowledgedNotificationParamsSchema, Nt as IconSchema, On as OAuthProtectedResourceMetadataSchema, Or as SingleSelectEnumSchemaSchema, Ot as GetPromptResultSchema, Pn as PaginatedRequestParamsSchema, Pr as SubscriptionsAcknowledgedNotificationSchema, Pt as IconsSchema, Q as ClientNotificationSchema, Qn as RequestIdSchema, Qr as ToolExecutionSchema, Qt as LOG_LEVEL_META_KEY, R as BaseMetadataSchema, Rn as PrimitiveSchemaDefinitionSchema, Rr as SubscriptionsListenResultSchema, Rt as InitializeRequestParamsSchema, S as createMcpGlobalSettings, Sn as OAuthClientInformationFullSchema, Sr as ServerNotificationSchema, St as ElicitationCompleteNotificationSchema, Tn as OAuthClientRegistrationErrorSchema, Tr as ServerTasksCapabilitySchema, Tt as EnumSchemaSchema, U as CLIENT_INFO_META_KEY, Un as PromptArgumentSchema, Ur as TaskStatusNotificationParamsSchema, Ut as JSONObjectSchema, V as BooleanSchemaSchema, Vn as ProgressSchema, Vr as TaskMetadataSchema, Vt as InitializedNotificationSchema, W as CallToolRequestParamsSchema, Wn as PromptListChangedNotificationSchema, Wr as TaskStatusNotificationSchema, Wt as JSONRPCErrorResponseSchema, X as CancelledNotificationSchema, Xn as ReadResourceResultSchema, Xr as ToolAnnotationsSchema, Xt as JSONValueSchema, Y as CancelledNotificationParamsSchema, Yn as ReadResourceRequestSchema, Yr as TitledSingleSelectEnumSchemaSchema, Yt as JSONRPCResultResponseSchema, Z as ClientCapabilitiesSchema, Zn as RelatedTaskMetadataSchema, Zr as ToolChoiceSchema, _ as userMcpFilePaths, _n as ModelPreferencesSchema, _r as SUPPORTED_PROTOCOL_VERSIONS, _t as ElicitRequestParamsSchema, ai as UntitledMultiSelectEnumSchemaSchema, an as ListResourcesRequestSchema, ar as ResourceSchema, at as CompleteResultSchema, bn as NotificationsParamsSchema, br as SamplingMessageSchema, bt as ElicitResultSchema, c as parseMcpServerAddition, ci as string, cn as ListRootsResultSchema, cr as ResourceUpdatedNotificationParamsSchema, ct as CreateMessageRequestSchema, di as ownZone, dn as ListToolsRequestSchema, dr as ResultSchema, dt as CreateTaskResultSchema, ei as ToolResultContentSchema, en as ListChangedOptionsBaseSchema, er as RequestSchema, et as ClientResultSchema, fn as ListToolsResultSchema, fr as RoleSchema, ft as CursorSchema, gn as ModelHintSchema, gr as SUBSCRIPTION_ID_META_KEY, gt as ElicitRequestFormParamsSchema, hn as LoggingMessageNotificationSchema, hr as SERVER_INFO_META_KEY, ht as DiscoverResultSchema, ii as UnsubscribeRequestSchema, in as ListResourceTemplatesResultSchema, ir as ResourceRequestParamsSchema, it as CompleteRequestSchema, jn as OpenIdProviderDiscoveryMetadataSchema, jr as SubscribeRequestSchema, jt as GetTaskRequestSchema, kn as OAuthTokenRevocationRequestSchema, kr as StringSchemaSchema, kt as GetTaskPayloadRequestSchema, l as isProxyWrapper, li as OutboundRefusedError, ln as ListTasksRequestSchema, lr as ResourceUpdatedNotificationSchema, lt as CreateMessageResultSchema, mn as LoggingMessageNotificationParamsSchema, mr as RootsListChangedNotificationSchema, mt as DiscoverRequestSchema, n as isVaultAccountOperation, ni as ToolUseContentSchema, nn as ListPromptsResultSchema, nr as ResourceLinkSchema, nt as CompatibilityCallToolResultSchema, o as mcpServerRevision, oi as UntitledSingleSelectEnumSchemaSchema, on as ListResourcesResultSchema, or as ResourceTemplateReferenceSchema, ot as ContentBlockSchema, pn as LoggingLevelSchema, pr as RootSchema, q as CancelTaskRequestSchema, qn as PromptSchema, qr as TextResourceContentsSchema, qt as JSONRPCRequestSchema, r as createLocalLock, ri as UnsubscribeRequestParamsSchema, rn as ListResourceTemplatesRequestSchema, rr as ResourceListChangedNotificationSchema, rt as CompleteRequestParamsSchema, si as boolean, sn as ListRootsRequestSchema, sr as ResourceTemplateSchema, st as CreateMessageRequestParamsSchema, t as createAccountVault, ti as ToolSchema, tn as ListPromptsRequestSchema, tr as ResourceContentsSchema, tt as ClientTasksCapabilitySchema, ui as outboundHostRefusal, un as ListTasksResultSchema, ur as ResultMetaObjectSchema, ut as CreateMessageResultWithToolsSchema, vn as MultiSelectEnumSchemaSchema, vr as SamplingContentSchema, vt as ElicitRequestSchema, wn as OAuthClientMetadataSchema, wr as ServerResultSchema, wt as EmptyResultSchema, xn as NumberSchemaSchema, xr as ServerCapabilitiesSchema, xt as ElicitationCompleteNotificationParamsSchema, yn as NotificationSchema, yr as SamplingMessageContentBlockSchema, yt as ElicitRequestURLParamsSchema, z as BaseRequestParamsSchema, zn as ProgressNotificationParamsSchema, zr as TaskAugmentedRequestParamsSchema, zt as InitializeRequestSchema } from "./exports-D09VsUk-.js";
|
|
13
13
|
import { S as createTypedMetrics, a as getSupportedThinkingLevels, b as toToolDeclaration, c as ModelsError, f as declarationsEqual, i as createProvider, l as lazyApi, m as getCurrentTools, o as getModelType, p as getCurrentSystemPrompt, r as createModels, s as isModelType, u as lazyStream } from "./models-Chzm15vC.js";
|
|
14
14
|
import { i as NOOP_TELEMETRY_METRICS, n as defineTelemetrySchema, r as NOOP_TELEMETRY_CONTEXT, t as createTypedSpanStarter } from "./dist-Dvx5mlIR.js";
|
|
15
|
-
import { $ as
|
|
16
|
-
import { A as StorageRequestError, B as appendText, C as taskKey, D as ReadAfterWrite, E as ConversationIdle, F as applyImmutable, I as decoder$5, L as encoder$9, M as Watch, N as RESERVED_SEGMENTS, O as ReadOnlySession, P as apply, R as overlap, S as ownedKey, T as ConversationBusy, V as track, _ as guardObserver, a as agentHooks, b as ROOTS_KEY, c as resolveAgent, d as toolExtension, f as SessionImpl, g as createSession, h as contained, i as addTools, j as errorMessage$1, k as SessionFailed, l as resolveSettings, m as closeEnds, n as DEFAULT_COMPACTION_POLICY, o as configure, p as closeEndOf, s as createAgent, t as AgentDoc, u as sectionExtension, v as observation, w as hostTimers, x as conversationKey, y as INTENT_KEY, z as ownedSlice } from "./agent-
|
|
15
|
+
import { $ as oneOf, A as resolveHost, B as asChordError, C as coverage$2, D as placedOn, E as opaque$1, F as cleaned, G as compile, H as invalid$2, I as deepEqual, J as int, K as arr, L as normalize$4, M as assertValid, N as canonicalIdentity, O as placementText, P as canonicalJson$1, Q as obj, R as CHORD_ERROR_CODES, S as contractFromDescription, T as local, U as isChordError, V as forbidden, W as runAll, X as map$1, Y as lit, Z as num, _ as PO_SERVER_HOST, a as PoThreadContract, b as DescriptionSchema, c as HubNoticeSchema, d as PoHubContract, et as opt, f as PoHubRevisionsContract, g as PoChannelsStateSchema, h as PoChannelsContract, i as SessionServiceStateSchema, j as takesNoArgs, k as remote$1, l as HubRevisionsSchema, n as SessionMethodSchemas, nt as union, o as PoThreadFrameSchema, p as SessionSummarySchema, q as bool, r as SessionMethods, rt as unknown, s as HubCompositionsSchema, t as defineApiContract, tt as str, u as HubWorkspaceSchema, v as chordSchema, w as hostNamed, x as bind$3, y as chordStates, z as ChordError } from "./apiContracts-b33nSAAI.js";
|
|
16
|
+
import { A as StorageRequestError, B as appendText, C as taskKey, D as ReadAfterWrite, E as ConversationIdle, F as applyImmutable, I as decoder$5, L as encoder$9, M as Watch, N as RESERVED_SEGMENTS, O as ReadOnlySession, P as apply, R as overlap, S as ownedKey, T as ConversationBusy, V as track, _ as guardObserver, a as agentHooks, b as ROOTS_KEY, c as resolveAgent, d as toolExtension, f as SessionImpl, g as createSession, h as contained, i as addTools, j as errorMessage$1, k as SessionFailed, l as resolveSettings, m as closeEnds, n as DEFAULT_COMPACTION_POLICY, o as configure, p as closeEndOf, s as createAgent, t as AgentDoc, u as sectionExtension, v as observation, w as hostTimers, x as conversationKey, y as INTENT_KEY, z as ownedSlice } from "./agent-DZ-OKOHn.js";
|
|
17
17
|
import { a as withClientIdentity, c as ownedSlice$1, i as mergeClientIdentity, t as PI_ATTRIBUTION } from "./identity-BgfHobJH.js";
|
|
18
18
|
import { c as estimateMessageTokens, r as clampMaxTokensToContext, s as calculateContextTokens } from "./simple-options-CFzI5Pd_.js";
|
|
19
19
|
import { t as StreamingJsonParser } from "./streaming-json-BWTHTwz-.js";
|
|
20
20
|
import { t as uuidv7 } from "./uuid-B0QJx6Kr.js";
|
|
21
|
-
import {
|
|
21
|
+
import { c as recordTranscriptProjection, s as readTextIfExists, t as initializeSessionIdentity } from "./platform-BIEiM4TG.js";
|
|
22
22
|
import { n as createFileAccess, t as PO_FILE_ACCESS_SERVICE } from "./fileAccess-bFgmsyx0.js";
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import "./
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import "./
|
|
31
|
-
import {
|
|
32
|
-
import { n as
|
|
23
|
+
import { c as globalPoConfigPath } from "./layeredConfig-CUkYUs1f.js";
|
|
24
|
+
import "./piSettings-Cf1QofNe.js";
|
|
25
|
+
import { _ as personTimeZoneLine, a as readProjectedSelection, g as isTimeZone, h as PO_PERSON_TIME_ZONE_SERVICE, i as projectContext, o as tokensForTool, r as PO_CONTEXT_ENTRY_TYPE, x as PROFILE_ICON_MIME_TYPES } from "./sessionConfig-RQGvfm6E.js";
|
|
26
|
+
import { u as readPoConfig } from "./harnessState-Dwrk3lfv.js";
|
|
27
|
+
import { n as Check } from "./value-_W31So3B.js";
|
|
28
|
+
import { i as parsePoApprovalPrompt } from "./approvalPrompt-DWoXxu3S.js";
|
|
29
|
+
import "./exports-nV43ShA7.js";
|
|
30
|
+
import { a as MANUAL_TRANSCRIPTION_MAX_AUDIO_BYTES, f as isPoClientToken, l as ManualTranscriptionError, m as poClientMetadataFrom, o as MANUAL_TRANSCRIPTION_MAX_DURATION_MS, p as normalizeClientDeviceName, u as PO_CLIENT_METADATA_HEADER } from "./narration-CpRurWLO.js";
|
|
31
|
+
import { i as REMOTE_CONVERSATION_SESSION_PROVENANCE, n as PO_SESSION_ATTENTION_EVENT, r as PO_SESSION_NOTIFICATION_EVENT, t as COORDINATOR_SESSION_PROVENANCE } from "./hubChannel-Cm-sxOvU.js";
|
|
32
|
+
import { n as createPoPluginRegistry } from "./pluginProtocol-BqXXyI4z.js";
|
|
33
|
+
import { n as gateApproval, o as PO_APPROVAL_SERVICE, r as isApprovalUnavailable, s as readPoApproval } from "./approval-r3NnI1VC.js";
|
|
34
|
+
import { n as createPoNotificationEntryData, r as isPoNotificationEntryData, t as PO_NOTIFICATION_ENTRY_TYPE } from "./notification-kckG3leF.js";
|
|
33
35
|
import { t as OperationCancelledError } from "./telemetry-Csv1ZxAn.js";
|
|
34
36
|
import { a as createAssistantMessageEventStream } from "./diagnostics-1lYFeSJe.js";
|
|
35
|
-
import { a as PO_BACKGROUND_WORK_SERVICE, c as readPoBackgroundWorkService, i as PO_BACKGROUND_WORK_CHANGED_EVENT } from "./backgroundWork-
|
|
37
|
+
import { a as PO_BACKGROUND_WORK_SERVICE, c as readPoBackgroundWorkService, i as PO_BACKGROUND_WORK_CHANGED_EVENT } from "./backgroundWork-B1mPDYlf.js";
|
|
36
38
|
import { a as PO_CHILD_SESSION_SERVICE, i as PO_CHILD_SESSION_MCP_TOOL_SERVICE, n as PO_CHILD_SESSION_HOOKS_SERVICE, r as PO_CHILD_SESSION_HOOK_REGISTRY_SERVICE, t as PO_CHILD_INPUT_CUSTOM_TYPE } from "./childSession-Cf2-kH4O.js";
|
|
37
|
-
import { n as validationDetails } from "./protocol-
|
|
38
|
-
import { a as PO_WORKFLOW_CONTEXT_SERVICE, i as PO_LOG_METRICS_CONTRACT, n as METRICS_ATTRIBUTE, o as PoWorkflowDefinitionRefSchema, s as PoWorkflowRunRefSchema } from "./workflow-
|
|
39
|
+
import { n as validationDetails } from "./protocol-DDL8geoS.js";
|
|
40
|
+
import { a as PO_WORKFLOW_CONTEXT_SERVICE, i as PO_LOG_METRICS_CONTRACT, n as METRICS_ATTRIBUTE, o as PoWorkflowDefinitionRefSchema, s as PoWorkflowRunRefSchema } from "./workflow-B7qx0Vv9.js";
|
|
39
41
|
import { t as createProviderImageFitter } from "./index.edge-COJJ_Dv2.js";
|
|
40
|
-
import { A as string$1, C as looseObject, D as preprocess, E as optional, F as safeParse, H as validate$
|
|
42
|
+
import { A as string$1, C as looseObject, D as preprocess, E as optional, F as safeParse, H as validate$3, I as toJSONSchema, M as unknown$1, N as url$1, O as record$7, P as xor, S as literal, T as object, _ as intersection, a as ZodObject, b as json$2, c as _enum, d as any, f as array, g as email, h as discriminatedUnion, j as union$1, k as strictObject, l as _null, m as date$1, o as ZodOptional, p as boolean$1, u as _undefined, v as ipv4, w as number, x as lazy, y as ipv6 } from "./schemas-Vj8-rCR4.js";
|
|
41
43
|
import { n as datetime, t as date$2 } from "./iso-BPQViXM8.js";
|
|
42
|
-
import { r as PO_USER_MCP_CONFIG_FILE } from "./mcpProjection-
|
|
43
|
-
import { a as assertRevision, i as assertEntryName, n as VaultError, o as serializeValue, s as PO_VAULT_CONTRACT, t as serveVaultSettings } from "./vaultSettings-
|
|
44
|
+
import { r as PO_USER_MCP_CONFIG_FILE } from "./mcpProjection-BtKzB6oK.js";
|
|
45
|
+
import { a as assertRevision, i as assertEntryName, n as VaultError, o as serializeValue, s as PO_VAULT_CONTRACT, t as serveVaultSettings } from "./vaultSettings-Di3n5YIg.js";
|
|
44
46
|
import { t as getProviderEnvValue } from "./provider-env-CxhHUFiF.js";
|
|
45
47
|
import { a as ANTHROPIC_OAUTH_TOKEN_ENV, c as ANTHROPIC_WORKSPACE_ID_ENV, i as ANTHROPIC_IDENTITY_TOKEN_FILE_ENV, n as ANTHROPIC_AUTH_TOKEN_ENV, o as ANTHROPIC_ORGANIZATION_ID_ENV, r as ANTHROPIC_FEDERATION_RULE_ID_ENV, s as ANTHROPIC_SERVICE_ACCOUNT_ID_ENV, t as ANTHROPIC_API_KEY_ENV } from "./env-api-keys-Bow6MJe2.js";
|
|
46
48
|
import { r as resolveDeploymentName, t as resolveAzureBaseUrl } from "./azure-openai-config-COZUaRzM.js";
|
|
@@ -12968,7 +12970,7 @@ const ToolTask = defineTask({
|
|
|
12968
12970
|
return reject(runtime, task.input, call, void 0, error, context);
|
|
12969
12971
|
}
|
|
12970
12972
|
const prepared = prepare(tool, call.arguments);
|
|
12971
|
-
const checked = "error" in prepared ? prepared : validate$
|
|
12973
|
+
const checked = "error" in prepared ? prepared : validate$2(tool, call, prepared.args);
|
|
12972
12974
|
if ("error" in checked) return reject(runtime, task.input, call, tool, invalid$1(checked.error), context);
|
|
12973
12975
|
let args = checked.args;
|
|
12974
12976
|
let block;
|
|
@@ -12990,7 +12992,7 @@ const ToolTask = defineTask({
|
|
|
12990
12992
|
const blocked = harnessError("blocked", `Tool call blocked: ${block}`);
|
|
12991
12993
|
return reject(runtime, task.input, call, tool, blocked, context);
|
|
12992
12994
|
}
|
|
12993
|
-
const validated = validate$
|
|
12995
|
+
const validated = validate$2(tool, call, args);
|
|
12994
12996
|
if ("error" in validated) return reject(runtime, task.input, call, tool, invalid$1(validated.error), context);
|
|
12995
12997
|
const final = copyJson(validated.args, { omitUndefinedProperties: true });
|
|
12996
12998
|
await runtime.commit(async (tx) => {
|
|
@@ -13137,7 +13139,7 @@ function prepare(tool, args) {
|
|
|
13137
13139
|
}
|
|
13138
13140
|
}
|
|
13139
13141
|
/** Arguments validated and coerced against the implementation's schema. */
|
|
13140
|
-
function validate$
|
|
13142
|
+
function validate$2(tool, call, args) {
|
|
13141
13143
|
try {
|
|
13142
13144
|
return { args: validateToolArguments(tool, {
|
|
13143
13145
|
...call,
|
|
@@ -17197,7 +17199,7 @@ const HOME_KINDS = [
|
|
|
17197
17199
|
"paused",
|
|
17198
17200
|
"completed"
|
|
17199
17201
|
];
|
|
17200
|
-
function record$
|
|
17202
|
+
function record$6(input) {
|
|
17201
17203
|
return input !== null && typeof input === "object" && !Array.isArray(input);
|
|
17202
17204
|
}
|
|
17203
17205
|
function text$3(input, limit = 256) {
|
|
@@ -17210,7 +17212,7 @@ function coverage$1(input) {
|
|
|
17210
17212
|
return input === "ready" || input === "partial" || input === "unavailable";
|
|
17211
17213
|
}
|
|
17212
17214
|
function parseHomeEntity(input) {
|
|
17213
|
-
if (!record$
|
|
17215
|
+
if (!record$6(input) || !text$3(input.id, 512) || !text$3(input.sessionId) || !text$3(input.title, 160)) return null;
|
|
17214
17216
|
if (!HOME_KINDS.includes(input.kind) || !timestamp(input.updatedAt)) return null;
|
|
17215
17217
|
if (input.detail !== void 0 && !text$3(input.detail, 320)) return null;
|
|
17216
17218
|
if (input.relatedSessionIds !== void 0 && (!Array.isArray(input.relatedSessionIds) || input.relatedSessionIds.length > 64 || !input.relatedSessionIds.every((id) => text$3(id)))) return null;
|
|
@@ -17226,7 +17228,7 @@ function parseHomeEntity(input) {
|
|
|
17226
17228
|
}
|
|
17227
17229
|
/** Reject a malformed source, rather than turning invalid records into a healthy count. */
|
|
17228
17230
|
function parseHomeProjection(input) {
|
|
17229
|
-
if (!record$
|
|
17231
|
+
if (!record$6(input) || !coverage$1(input.coverage) || !Array.isArray(input.entities) || input.entities.length > 1e3) return null;
|
|
17230
17232
|
const entities = [];
|
|
17231
17233
|
for (const value of input.entities) {
|
|
17232
17234
|
const entity = parseHomeEntity(value);
|
|
@@ -17240,78 +17242,6 @@ function parseHomeProjection(input) {
|
|
|
17240
17242
|
};
|
|
17241
17243
|
}
|
|
17242
17244
|
//#endregion
|
|
17243
|
-
//#region ../../core/po-core/src/services/clientMetadata/_lib/codec.ts
|
|
17244
|
-
const PO_CLIENT_METADATA_HEADER = "x-po-client-metadata";
|
|
17245
|
-
const PO_CLIENT_METADATA_QUERY = "poClient";
|
|
17246
|
-
const MAX_TEXT_LENGTH$1 = 64;
|
|
17247
|
-
function isPoClientToken(value) {
|
|
17248
|
-
return typeof value === "string" && /^[A-Za-z0-9_-]{1,64}$/u.test(value);
|
|
17249
|
-
}
|
|
17250
|
-
function normalizeClientDeviceName(value) {
|
|
17251
|
-
if (typeof value !== "string") return void 0;
|
|
17252
|
-
const name = value.replaceAll(/[\p{Cc}\p{Cf}]/gu, "").trim();
|
|
17253
|
-
const length = Array.from(name).length;
|
|
17254
|
-
return length >= 1 && length <= MAX_TEXT_LENGTH$1 ? name : void 0;
|
|
17255
|
-
}
|
|
17256
|
-
function record$6(value) {
|
|
17257
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17258
|
-
}
|
|
17259
|
-
function validate$2(value) {
|
|
17260
|
-
if (!record$6(value)) return { status: "invalid" };
|
|
17261
|
-
if (Number.isSafeInteger(value.version) && value.version !== 1) return { status: "unsupported" };
|
|
17262
|
-
const deviceName = normalizeClientDeviceName(value.deviceName);
|
|
17263
|
-
if (value.version !== 1 || !isPoClientToken(value.deviceId) || value.instanceId !== void 0 && !isPoClientToken(value.instanceId) || typeof value.clientKind !== "string" || ![
|
|
17264
|
-
"web",
|
|
17265
|
-
"desktop",
|
|
17266
|
-
"ios",
|
|
17267
|
-
"android"
|
|
17268
|
-
].includes(value.clientKind) || deviceName === void 0 || !Number.isSafeInteger(value.nameUpdatedAt) || typeof value.nameUpdatedAt !== "number" || value.nameUpdatedAt < 0) return { status: "invalid" };
|
|
17269
|
-
for (const key of ["browser", "platform"]) if (value[key] !== void 0 && (normalizeClientDeviceName(value[key]) === void 0 || normalizeClientDeviceName(value[key]) !== value[key])) return { status: "invalid" };
|
|
17270
|
-
return {
|
|
17271
|
-
status: "ok",
|
|
17272
|
-
metadata: {
|
|
17273
|
-
version: 1,
|
|
17274
|
-
deviceId: value.deviceId,
|
|
17275
|
-
...value.instanceId === void 0 ? {} : { instanceId: value.instanceId },
|
|
17276
|
-
clientKind: value.clientKind,
|
|
17277
|
-
deviceName,
|
|
17278
|
-
nameUpdatedAt: value.nameUpdatedAt,
|
|
17279
|
-
...value.browser === void 0 ? {} : { browser: value.browser },
|
|
17280
|
-
...value.platform === void 0 ? {} : { platform: value.platform }
|
|
17281
|
-
}
|
|
17282
|
-
};
|
|
17283
|
-
}
|
|
17284
|
-
function encode$13(value) {
|
|
17285
|
-
const bytes = new TextEncoder().encode(JSON.stringify(value));
|
|
17286
|
-
return btoa(String.fromCharCode(...bytes)).replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/u, "");
|
|
17287
|
-
}
|
|
17288
|
-
/** Header and query contain base64url UTF-8 JSON; the decrypted preface contains an object. */
|
|
17289
|
-
function poClientMetadataFrom(source) {
|
|
17290
|
-
try {
|
|
17291
|
-
if ("preface" in source) {
|
|
17292
|
-
if (!record$6(source.preface) || !Object.hasOwn(source.preface, "poClient")) return { status: "absent" };
|
|
17293
|
-
if (Object.keys(source.preface).length !== 1) return { status: "invalid" };
|
|
17294
|
-
if (encode$13(source.preface.poClient).length > 2048) return { status: "invalid" };
|
|
17295
|
-
return validate$2(source.preface.poClient);
|
|
17296
|
-
}
|
|
17297
|
-
let encoded;
|
|
17298
|
-
if ("query" in source) {
|
|
17299
|
-
const values = source.query.getAll(PO_CLIENT_METADATA_QUERY);
|
|
17300
|
-
if (values.length > 1) return { status: "invalid" };
|
|
17301
|
-
encoded = values[0];
|
|
17302
|
-
} else encoded = source.header;
|
|
17303
|
-
if (encoded === null || encoded === void 0) return { status: "absent" };
|
|
17304
|
-
if (encoded.length > 2048 || !/^[A-Za-z0-9_-]+$/u.test(encoded)) return { status: "invalid" };
|
|
17305
|
-
const binary = atob(encoded.replaceAll("-", "+").replaceAll("_", "/"));
|
|
17306
|
-
const bytes = Uint8Array.from(binary, (character) => character.charCodeAt(0));
|
|
17307
|
-
const text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
17308
|
-
if (btoa(binary).replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/u, "") !== encoded) return { status: "invalid" };
|
|
17309
|
-
return validate$2(JSON.parse(text));
|
|
17310
|
-
} catch {
|
|
17311
|
-
return { status: "invalid" };
|
|
17312
|
-
}
|
|
17313
|
-
}
|
|
17314
|
-
//#endregion
|
|
17315
17245
|
//#region ../../core/po-core/src/constants/agentSettled.ts
|
|
17316
17246
|
/** Journal entry the direct harness appends when an agent run settles; the hub reads it back. */
|
|
17317
17247
|
const AGENT_SETTLED_ENTRY_TYPE = "po.agent-settled";
|
|
@@ -28134,6 +28064,11 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
28134
28064
|
if (modelRuntime.getRegisteredNativeProvider(override.name)) continue;
|
|
28135
28065
|
modelRuntime.registerProvider(override.name, { baseUrl: override.baseUrl });
|
|
28136
28066
|
}
|
|
28067
|
+
try {
|
|
28068
|
+
await options.registerModelProviders?.(modelRuntime);
|
|
28069
|
+
} catch (error) {
|
|
28070
|
+
options.onNotice?.(`Consumer model providers failed to register: ${harnessErrorMessage(error)}`);
|
|
28071
|
+
}
|
|
28137
28072
|
const resolved = await models.resolveModel(parsed);
|
|
28138
28073
|
if (parsed.apiKey !== void 0) await modelRuntime.setRuntimeApiKey(resolved.model.provider, parsed.apiKey);
|
|
28139
28074
|
const reportedToolErrors = /* @__PURE__ */ new Set();
|
|
@@ -31026,10 +30961,10 @@ function build$1() {
|
|
|
31026
30961
|
number(),
|
|
31027
30962
|
boolean$1(),
|
|
31028
30963
|
_null(),
|
|
31029
|
-
record$
|
|
30964
|
+
record$7(string$1(), JSONValueSchema$1),
|
|
31030
30965
|
array(JSONValueSchema$1)
|
|
31031
30966
|
]));
|
|
31032
|
-
const JSONObjectSchema$1 = record$
|
|
30967
|
+
const JSONObjectSchema$1 = record$7(string$1(), JSONValueSchema$1);
|
|
31033
30968
|
/**
|
|
31034
30969
|
* A progress token, used to associate progress notifications with the original request.
|
|
31035
30970
|
*/
|
|
@@ -31162,7 +31097,7 @@ function build$1() {
|
|
|
31162
31097
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
31163
31098
|
*/
|
|
31164
31099
|
const ClientCapabilitiesSchema$1 = object({
|
|
31165
|
-
experimental: record$
|
|
31100
|
+
experimental: record$7(string$1(), JSONObjectSchema$1).optional(),
|
|
31166
31101
|
sampling: object({
|
|
31167
31102
|
context: JSONObjectSchema$1.optional(),
|
|
31168
31103
|
tools: JSONObjectSchema$1.optional()
|
|
@@ -31170,7 +31105,7 @@ function build$1() {
|
|
|
31170
31105
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
31171
31106
|
roots: object({ listChanged: boolean$1().optional() }).optional(),
|
|
31172
31107
|
tasks: ClientTasksCapabilitySchema$1.optional(),
|
|
31173
|
-
extensions: record$
|
|
31108
|
+
extensions: record$7(string$1(), JSONObjectSchema$1).optional()
|
|
31174
31109
|
});
|
|
31175
31110
|
const InitializeRequestParamsSchema$1 = BaseRequestParamsSchema$1.extend({
|
|
31176
31111
|
protocolVersion: string$1(),
|
|
@@ -31188,7 +31123,7 @@ function build$1() {
|
|
|
31188
31123
|
* Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
|
|
31189
31124
|
*/
|
|
31190
31125
|
const ServerCapabilitiesSchema$1 = object({
|
|
31191
|
-
experimental: record$
|
|
31126
|
+
experimental: record$7(string$1(), JSONObjectSchema$1).optional(),
|
|
31192
31127
|
logging: JSONObjectSchema$1.optional(),
|
|
31193
31128
|
completions: JSONObjectSchema$1.optional(),
|
|
31194
31129
|
prompts: object({ listChanged: boolean$1().optional() }).optional(),
|
|
@@ -31198,7 +31133,7 @@ function build$1() {
|
|
|
31198
31133
|
}).optional(),
|
|
31199
31134
|
tools: object({ listChanged: boolean$1().optional() }).optional(),
|
|
31200
31135
|
tasks: ServerTasksCapabilitySchema$1.optional(),
|
|
31201
|
-
extensions: record$
|
|
31136
|
+
extensions: record$7(string$1(), JSONObjectSchema$1).optional()
|
|
31202
31137
|
});
|
|
31203
31138
|
/**
|
|
31204
31139
|
* After receiving an initialize request from the client, the server sends this response.
|
|
@@ -31251,7 +31186,7 @@ function build$1() {
|
|
|
31251
31186
|
const ResourceContentsSchema$1 = object({
|
|
31252
31187
|
uri: string$1(),
|
|
31253
31188
|
mimeType: optional(string$1()),
|
|
31254
|
-
_meta: record$
|
|
31189
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31255
31190
|
});
|
|
31256
31191
|
const TextResourceContentsSchema$1 = ResourceContentsSchema$1.extend({ text: string$1() });
|
|
31257
31192
|
/**
|
|
@@ -31402,7 +31337,7 @@ function build$1() {
|
|
|
31402
31337
|
*/
|
|
31403
31338
|
const GetPromptRequestParamsSchema$1 = BaseRequestParamsSchema$1.extend({
|
|
31404
31339
|
name: string$1(),
|
|
31405
|
-
arguments: record$
|
|
31340
|
+
arguments: record$7(string$1(), string$1()).optional()
|
|
31406
31341
|
});
|
|
31407
31342
|
/**
|
|
31408
31343
|
* Used by the client to get a prompt provided by the server.
|
|
@@ -31418,7 +31353,7 @@ function build$1() {
|
|
|
31418
31353
|
type: literal("text"),
|
|
31419
31354
|
text: string$1(),
|
|
31420
31355
|
annotations: AnnotationsSchema$1.optional(),
|
|
31421
|
-
_meta: record$
|
|
31356
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31422
31357
|
});
|
|
31423
31358
|
/**
|
|
31424
31359
|
* An image provided to or from an LLM.
|
|
@@ -31428,7 +31363,7 @@ function build$1() {
|
|
|
31428
31363
|
data: Base64Schema,
|
|
31429
31364
|
mimeType: string$1(),
|
|
31430
31365
|
annotations: AnnotationsSchema$1.optional(),
|
|
31431
|
-
_meta: record$
|
|
31366
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31432
31367
|
});
|
|
31433
31368
|
/**
|
|
31434
31369
|
* Audio content provided to or from an LLM.
|
|
@@ -31438,7 +31373,7 @@ function build$1() {
|
|
|
31438
31373
|
data: Base64Schema,
|
|
31439
31374
|
mimeType: string$1(),
|
|
31440
31375
|
annotations: AnnotationsSchema$1.optional(),
|
|
31441
|
-
_meta: record$
|
|
31376
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31442
31377
|
});
|
|
31443
31378
|
/**
|
|
31444
31379
|
* A tool call request from an assistant (LLM).
|
|
@@ -31452,8 +31387,8 @@ function build$1() {
|
|
|
31452
31387
|
type: literal("tool_use"),
|
|
31453
31388
|
name: string$1(),
|
|
31454
31389
|
id: string$1(),
|
|
31455
|
-
input: record$
|
|
31456
|
-
_meta: record$
|
|
31390
|
+
input: record$7(string$1(), unknown$1()),
|
|
31391
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31457
31392
|
});
|
|
31458
31393
|
/**
|
|
31459
31394
|
* The contents of a resource, embedded into a prompt or tool call result.
|
|
@@ -31462,7 +31397,7 @@ function build$1() {
|
|
|
31462
31397
|
type: literal("resource"),
|
|
31463
31398
|
resource: union$1([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
|
|
31464
31399
|
annotations: AnnotationsSchema$1.optional(),
|
|
31465
|
-
_meta: record$
|
|
31400
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31466
31401
|
});
|
|
31467
31402
|
/**
|
|
31468
31403
|
* A resource that the server is capable of reading, included in a prompt or tool call result.
|
|
@@ -31535,17 +31470,17 @@ function build$1() {
|
|
|
31535
31470
|
description: string$1().optional(),
|
|
31536
31471
|
inputSchema: object({
|
|
31537
31472
|
type: literal("object"),
|
|
31538
|
-
properties: record$
|
|
31473
|
+
properties: record$7(string$1(), JSONValueSchema$1).optional(),
|
|
31539
31474
|
required: array(string$1()).optional()
|
|
31540
31475
|
}).catchall(unknown$1()),
|
|
31541
31476
|
outputSchema: object({
|
|
31542
31477
|
type: literal("object"),
|
|
31543
|
-
properties: record$
|
|
31478
|
+
properties: record$7(string$1(), JSONValueSchema$1).optional(),
|
|
31544
31479
|
required: array(string$1()).optional()
|
|
31545
31480
|
}).catchall(unknown$1()).optional(),
|
|
31546
31481
|
annotations: ToolAnnotationsSchema$1.optional(),
|
|
31547
31482
|
execution: ToolExecutionSchema$1.optional(),
|
|
31548
|
-
_meta: record$
|
|
31483
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31549
31484
|
});
|
|
31550
31485
|
/**
|
|
31551
31486
|
* Sent from the client to request a list of tools the server has.
|
|
@@ -31560,7 +31495,7 @@ function build$1() {
|
|
|
31560
31495
|
*/
|
|
31561
31496
|
const CallToolResultSchema$1 = ResultSchema$1.extend({
|
|
31562
31497
|
content: array(ContentBlockSchema$1),
|
|
31563
|
-
structuredContent: record$
|
|
31498
|
+
structuredContent: record$7(string$1(), unknown$1()).optional(),
|
|
31564
31499
|
isError: boolean$1().optional()
|
|
31565
31500
|
});
|
|
31566
31501
|
/**
|
|
@@ -31568,7 +31503,7 @@ function build$1() {
|
|
|
31568
31503
|
*/
|
|
31569
31504
|
const CallToolRequestParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
|
|
31570
31505
|
name: string$1(),
|
|
31571
|
-
arguments: record$
|
|
31506
|
+
arguments: record$7(string$1(), unknown$1()).optional()
|
|
31572
31507
|
});
|
|
31573
31508
|
/**
|
|
31574
31509
|
* Used by the client to invoke a tool provided by the server.
|
|
@@ -31690,7 +31625,7 @@ function build$1() {
|
|
|
31690
31625
|
content: array(ContentBlockSchema$1),
|
|
31691
31626
|
structuredContent: object({}).loose().optional(),
|
|
31692
31627
|
isError: boolean$1().optional(),
|
|
31693
|
-
_meta: record$
|
|
31628
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31694
31629
|
});
|
|
31695
31630
|
/**
|
|
31696
31631
|
* Basic content types for sampling responses (without tool use).
|
|
@@ -31730,7 +31665,7 @@ function build$1() {
|
|
|
31730
31665
|
const SamplingMessageSchema$1 = object({
|
|
31731
31666
|
role: RoleSchema$1,
|
|
31732
31667
|
content: union$1([SamplingMessageContentBlockSchema$1, array(SamplingMessageContentBlockSchema$1)]),
|
|
31733
|
-
_meta: record$
|
|
31668
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
31734
31669
|
});
|
|
31735
31670
|
/**
|
|
31736
31671
|
* Parameters for a `sampling/createMessage` request.
|
|
@@ -31936,7 +31871,7 @@ function build$1() {
|
|
|
31936
31871
|
message: string$1(),
|
|
31937
31872
|
requestedSchema: object({
|
|
31938
31873
|
type: literal("object"),
|
|
31939
|
-
properties: record$
|
|
31874
|
+
properties: record$7(string$1(), PrimitiveSchemaDefinitionSchema$1),
|
|
31940
31875
|
required: array(string$1()).optional()
|
|
31941
31876
|
}).catchall(unknown$1())
|
|
31942
31877
|
});
|
|
@@ -31986,7 +31921,7 @@ function build$1() {
|
|
|
31986
31921
|
"decline",
|
|
31987
31922
|
"cancel"
|
|
31988
31923
|
]),
|
|
31989
|
-
content: preprocess((val) => val === null ? void 0 : val, record$
|
|
31924
|
+
content: preprocess((val) => val === null ? void 0 : val, record$7(string$1(), union$1([
|
|
31990
31925
|
string$1(),
|
|
31991
31926
|
number(),
|
|
31992
31927
|
boolean$1(),
|
|
@@ -32016,7 +31951,7 @@ function build$1() {
|
|
|
32016
31951
|
name: string$1(),
|
|
32017
31952
|
value: string$1()
|
|
32018
31953
|
}),
|
|
32019
|
-
context: object({ arguments: record$
|
|
31954
|
+
context: object({ arguments: record$7(string$1(), string$1()).optional() }).optional()
|
|
32020
31955
|
});
|
|
32021
31956
|
/**
|
|
32022
31957
|
* A request from the client to the server, to ask for completion options.
|
|
@@ -32043,7 +31978,7 @@ function build$1() {
|
|
|
32043
31978
|
const RootSchema$1 = object({
|
|
32044
31979
|
uri: string$1().startsWith("file://"),
|
|
32045
31980
|
name: string$1().optional(),
|
|
32046
|
-
_meta: record$
|
|
31981
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
32047
31982
|
});
|
|
32048
31983
|
/**
|
|
32049
31984
|
* Sent from the server to request a list of root URIs from the client.
|
|
@@ -32807,10 +32742,10 @@ function build() {
|
|
|
32807
32742
|
number(),
|
|
32808
32743
|
boolean$1(),
|
|
32809
32744
|
_null(),
|
|
32810
|
-
record$
|
|
32745
|
+
record$7(string$1(), JSONValueSchema$1),
|
|
32811
32746
|
array(JSONValueSchema$1)
|
|
32812
32747
|
]));
|
|
32813
|
-
const JSONObjectSchema$1 = record$
|
|
32748
|
+
const JSONObjectSchema$1 = record$7(string$1(), JSONValueSchema$1);
|
|
32814
32749
|
/**
|
|
32815
32750
|
* A progress token, used to associate progress notifications with the original request.
|
|
32816
32751
|
*/
|
|
@@ -32911,7 +32846,7 @@ function build() {
|
|
|
32911
32846
|
requests: looseObject({ tools: looseObject({ call: JSONObjectSchema$1.optional() }).optional() }).optional()
|
|
32912
32847
|
});
|
|
32913
32848
|
const ClientCapabilitiesSchema$1 = object({
|
|
32914
|
-
experimental: record$
|
|
32849
|
+
experimental: record$7(string$1(), JSONObjectSchema$1).optional(),
|
|
32915
32850
|
sampling: object({
|
|
32916
32851
|
context: JSONObjectSchema$1.optional(),
|
|
32917
32852
|
tools: JSONObjectSchema$1.optional()
|
|
@@ -32919,10 +32854,10 @@ function build() {
|
|
|
32919
32854
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
32920
32855
|
roots: object({ listChanged: boolean$1().optional() }).optional(),
|
|
32921
32856
|
tasks: ClientTasksCapabilitySchema$1.optional(),
|
|
32922
|
-
extensions: record$
|
|
32857
|
+
extensions: record$7(string$1(), JSONObjectSchema$1).optional()
|
|
32923
32858
|
});
|
|
32924
32859
|
const ServerCapabilitiesSchema$1 = object({
|
|
32925
|
-
experimental: record$
|
|
32860
|
+
experimental: record$7(string$1(), JSONObjectSchema$1).optional(),
|
|
32926
32861
|
logging: JSONObjectSchema$1.optional(),
|
|
32927
32862
|
completions: JSONObjectSchema$1.optional(),
|
|
32928
32863
|
prompts: object({ listChanged: boolean$1().optional() }).optional(),
|
|
@@ -32932,7 +32867,7 @@ function build() {
|
|
|
32932
32867
|
}).optional(),
|
|
32933
32868
|
tools: object({ listChanged: boolean$1().optional() }).optional(),
|
|
32934
32869
|
tasks: ServerTasksCapabilitySchema$1.optional(),
|
|
32935
|
-
extensions: record$
|
|
32870
|
+
extensions: record$7(string$1(), JSONObjectSchema$1).optional()
|
|
32936
32871
|
});
|
|
32937
32872
|
const ProgressSchema$1 = object({
|
|
32938
32873
|
progress: number(),
|
|
@@ -32960,7 +32895,7 @@ function build() {
|
|
|
32960
32895
|
const ResourceContentsSchema$1 = object({
|
|
32961
32896
|
uri: string$1(),
|
|
32962
32897
|
mimeType: optional(string$1()),
|
|
32963
|
-
_meta: record$
|
|
32898
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
32964
32899
|
});
|
|
32965
32900
|
const TextResourceContentsSchema$1 = ResourceContentsSchema$1.extend({ text: string$1() });
|
|
32966
32901
|
const BlobResourceContentsSchema$1 = ResourceContentsSchema$1.extend({ blob: Base64Schema });
|
|
@@ -33017,34 +32952,34 @@ function build() {
|
|
|
33017
32952
|
type: literal("text"),
|
|
33018
32953
|
text: string$1(),
|
|
33019
32954
|
annotations: AnnotationsSchema$1.optional(),
|
|
33020
|
-
_meta: record$
|
|
32955
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33021
32956
|
});
|
|
33022
32957
|
const ImageContentSchema$1 = object({
|
|
33023
32958
|
type: literal("image"),
|
|
33024
32959
|
data: Base64Schema,
|
|
33025
32960
|
mimeType: string$1(),
|
|
33026
32961
|
annotations: AnnotationsSchema$1.optional(),
|
|
33027
|
-
_meta: record$
|
|
32962
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33028
32963
|
});
|
|
33029
32964
|
const AudioContentSchema$1 = object({
|
|
33030
32965
|
type: literal("audio"),
|
|
33031
32966
|
data: Base64Schema,
|
|
33032
32967
|
mimeType: string$1(),
|
|
33033
32968
|
annotations: AnnotationsSchema$1.optional(),
|
|
33034
|
-
_meta: record$
|
|
32969
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33035
32970
|
});
|
|
33036
32971
|
const ToolUseContentSchema$1 = object({
|
|
33037
32972
|
type: literal("tool_use"),
|
|
33038
32973
|
name: string$1(),
|
|
33039
32974
|
id: string$1(),
|
|
33040
|
-
input: record$
|
|
33041
|
-
_meta: record$
|
|
32975
|
+
input: record$7(string$1(), unknown$1()),
|
|
32976
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33042
32977
|
});
|
|
33043
32978
|
const EmbeddedResourceSchema$1 = object({
|
|
33044
32979
|
type: literal("resource"),
|
|
33045
32980
|
resource: union$1([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
|
|
33046
32981
|
annotations: AnnotationsSchema$1.optional(),
|
|
33047
|
-
_meta: record$
|
|
32982
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33048
32983
|
});
|
|
33049
32984
|
const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal("resource_link") });
|
|
33050
32985
|
const ContentBlockSchema$1 = union$1([
|
|
@@ -33176,7 +33111,7 @@ function build() {
|
|
|
33176
33111
|
message: string$1(),
|
|
33177
33112
|
requestedSchema: object({
|
|
33178
33113
|
type: literal("object"),
|
|
33179
|
-
properties: record$
|
|
33114
|
+
properties: record$7(string$1(), PrimitiveSchemaDefinitionSchema$1),
|
|
33180
33115
|
required: array(string$1()).optional()
|
|
33181
33116
|
}).catchall(unknown$1())
|
|
33182
33117
|
});
|
|
@@ -33191,7 +33126,7 @@ function build() {
|
|
|
33191
33126
|
const RootSchema$1 = object({
|
|
33192
33127
|
uri: string$1().startsWith("file://"),
|
|
33193
33128
|
name: string$1().optional(),
|
|
33194
|
-
_meta: record$
|
|
33129
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33195
33130
|
});
|
|
33196
33131
|
const sharedClientCapabilityShape = ClientCapabilitiesSchema$1.shape;
|
|
33197
33132
|
const ClientCapabilities2026Schema = object({
|
|
@@ -33240,7 +33175,7 @@ function build() {
|
|
|
33240
33175
|
}),
|
|
33241
33176
|
outputSchema: looseObject({ $schema: string$1().optional() }).optional(),
|
|
33242
33177
|
annotations: ToolAnnotationsSchema$1.optional(),
|
|
33243
|
-
_meta: record$
|
|
33178
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33244
33179
|
});
|
|
33245
33180
|
/** 2026-era ToolResultContent (anchor-exact: `structuredContent?: unknown`). */
|
|
33246
33181
|
const ToolResultContentSchema$1 = object({
|
|
@@ -33249,7 +33184,7 @@ function build() {
|
|
|
33249
33184
|
content: array(ContentBlockSchema$1),
|
|
33250
33185
|
structuredContent: unknown$1().optional(),
|
|
33251
33186
|
isError: boolean$1().optional(),
|
|
33252
|
-
_meta: record$
|
|
33187
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33253
33188
|
});
|
|
33254
33189
|
/** 2026-era sampling content union (composes the forked tool-result shape). */
|
|
33255
33190
|
const SamplingMessageContentBlockSchema$1 = union$1([
|
|
@@ -33263,7 +33198,7 @@ function build() {
|
|
|
33263
33198
|
const SamplingMessageSchema$1 = object({
|
|
33264
33199
|
role: RoleSchema$1,
|
|
33265
33200
|
content: union$1([SamplingMessageContentBlockSchema$1, array(SamplingMessageContentBlockSchema$1)]),
|
|
33266
|
-
_meta: record$
|
|
33201
|
+
_meta: record$7(string$1(), unknown$1()).optional()
|
|
33267
33202
|
});
|
|
33268
33203
|
/** Open union per the anchor: 'complete' | 'input_required' | string. */
|
|
33269
33204
|
const ResultTypeSchema = string$1();
|
|
@@ -33367,7 +33302,7 @@ function build() {
|
|
|
33367
33302
|
*/
|
|
33368
33303
|
const ListRootsRequestSchema$1 = object({
|
|
33369
33304
|
method: literal("roots/list"),
|
|
33370
|
-
params: object({ _meta: record$
|
|
33305
|
+
params: object({ _meta: record$7(string$1(), unknown$1()).optional() }).optional()
|
|
33371
33306
|
});
|
|
33372
33307
|
/** 2026-era embedded sampling response (anchor-exact: extends the forked SamplingMessage). */
|
|
33373
33308
|
const CreateMessageResultSchema$1 = object({
|
|
@@ -33384,7 +33319,7 @@ function build() {
|
|
|
33384
33319
|
"decline",
|
|
33385
33320
|
"cancel"
|
|
33386
33321
|
]),
|
|
33387
|
-
content: record$
|
|
33322
|
+
content: record$7(string$1(), union$1([
|
|
33388
33323
|
string$1(),
|
|
33389
33324
|
number(),
|
|
33390
33325
|
boolean$1(),
|
|
@@ -33422,9 +33357,9 @@ function build() {
|
|
|
33422
33357
|
ElicitResultSchema$1
|
|
33423
33358
|
]);
|
|
33424
33359
|
/** Map of embedded input requests, keyed by server-assigned identifiers. */
|
|
33425
|
-
const InputRequestsSchema = record$
|
|
33360
|
+
const InputRequestsSchema = record$7(string$1(), InputRequestSchema);
|
|
33426
33361
|
/** Map of embedded input responses, keyed by the corresponding request identifiers. */
|
|
33427
|
-
const InputResponsesSchema = record$
|
|
33362
|
+
const InputResponsesSchema = record$7(string$1(), InputResponseSchema);
|
|
33428
33363
|
/**
|
|
33429
33364
|
* The wire InputRequiredResult: `resultType: 'input_required'` plus at least
|
|
33430
33365
|
* one of `inputRequests` / `requestState` (the at-least-one rule is enforced
|
|
@@ -33466,7 +33401,7 @@ function build() {
|
|
|
33466
33401
|
}
|
|
33467
33402
|
const callToolParamsShape = {
|
|
33468
33403
|
name: string$1(),
|
|
33469
|
-
arguments: record$
|
|
33404
|
+
arguments: record$7(string$1(), unknown$1()).optional(),
|
|
33470
33405
|
...retryParamsShape
|
|
33471
33406
|
};
|
|
33472
33407
|
const paginatedParamsShape = { cursor: CursorSchema$1.optional() };
|
|
@@ -33475,7 +33410,7 @@ function build() {
|
|
|
33475
33410
|
const ListPromptsRequestSchema$1 = wireRequest("prompts/list", paginatedParamsShape);
|
|
33476
33411
|
const GetPromptRequestSchema$1 = wireRequest("prompts/get", {
|
|
33477
33412
|
name: string$1(),
|
|
33478
|
-
arguments: record$
|
|
33413
|
+
arguments: record$7(string$1(), string$1()).optional(),
|
|
33479
33414
|
...retryParamsShape
|
|
33480
33415
|
});
|
|
33481
33416
|
const ListResourcesRequestSchema$1 = wireRequest("resources/list", paginatedParamsShape);
|
|
@@ -33490,7 +33425,7 @@ function build() {
|
|
|
33490
33425
|
name: string$1(),
|
|
33491
33426
|
value: string$1()
|
|
33492
33427
|
}),
|
|
33493
|
-
context: object({ arguments: record$
|
|
33428
|
+
context: object({ arguments: record$7(string$1(), string$1()).optional() }).optional()
|
|
33494
33429
|
};
|
|
33495
33430
|
const CompleteRequestSchema$1 = wireRequest("completion/complete", completeParamsShape);
|
|
33496
33431
|
const DiscoverRequestSchema$1 = wireRequest("server/discover", {});
|
|
@@ -33525,7 +33460,7 @@ function build() {
|
|
|
33525
33460
|
"tools/list": dispatchRequest("tools/list", paginatedParamsShape),
|
|
33526
33461
|
"prompts/get": dispatchRequest("prompts/get", {
|
|
33527
33462
|
name: string$1(),
|
|
33528
|
-
arguments: record$
|
|
33463
|
+
arguments: record$7(string$1(), string$1()).optional()
|
|
33529
33464
|
}),
|
|
33530
33465
|
"prompts/list": dispatchRequest("prompts/list", paginatedParamsShape),
|
|
33531
33466
|
"resources/list": dispatchRequest("resources/list", paginatedParamsShape),
|
|
@@ -43864,6 +43799,13 @@ async function readSavedMcpState(fs, location) {
|
|
|
43864
43799
|
})
|
|
43865
43800
|
};
|
|
43866
43801
|
}
|
|
43802
|
+
//#endregion
|
|
43803
|
+
//#region ../../minor/po-voice/src/schemas/contracts.ts
|
|
43804
|
+
const VOICE_SPEECH_CONTRACT = defineServiceContract("po/voice-speech", {
|
|
43805
|
+
scope: "session",
|
|
43806
|
+
description: "Transcribe bounded audio and synthesize mono 16 kHz PCM narration for this session."
|
|
43807
|
+
});
|
|
43808
|
+
defineServiceContract("po/voice-live", { scope: "global" });
|
|
43867
43809
|
/** Largest screenshot returned, in decoded bytes. */
|
|
43868
43810
|
const MAX_SCREENSHOT_BYTES = 2097152;
|
|
43869
43811
|
/** Idle seconds before Cloudflare closes the session's browser. */
|
|
@@ -101790,37 +101732,47 @@ const COMPOSED_PACKAGES = [
|
|
|
101790
101732
|
"@agimon-ai/po-session",
|
|
101791
101733
|
"@agimon-ai/po-skill",
|
|
101792
101734
|
"@agimon-ai/po-ui",
|
|
101793
|
-
"@agimon-ai/po-vault"
|
|
101735
|
+
"@agimon-ai/po-vault",
|
|
101736
|
+
"@agimon-ai/po-help",
|
|
101737
|
+
"@agimon-ai/po-goal",
|
|
101738
|
+
"@agimon-ai/po-plan",
|
|
101739
|
+
"@agimon-ai/po-author",
|
|
101740
|
+
"@agimon-ai/po-voice"
|
|
101794
101741
|
];
|
|
101795
101742
|
//#endregion
|
|
101796
101743
|
//#region src/composition/serverPackages.ts
|
|
101797
101744
|
/** Static imports, so the Worker build bundles each package's source. */
|
|
101798
101745
|
const SERVER_PACKAGES = {
|
|
101799
|
-
"@agimon-ai/po-approval": () => import("./server-
|
|
101800
|
-
"@agimon-ai/po-artifact": () => import("./server-
|
|
101801
|
-
"@agimon-ai/po-autocompact": () => import("./server-
|
|
101802
|
-
"@agimon-ai/po-autostop": () => import("./server-
|
|
101803
|
-
"@agimon-ai/po-cache": () => import("./server-
|
|
101804
|
-
"@agimon-ai/po-codemode": () => import("./server-
|
|
101805
|
-
"@agimon-ai/po-config": () => import("./server-
|
|
101806
|
-
"@agimon-ai/po-db": () => import("./server-
|
|
101807
|
-
"@agimon-ai/po-domain": () => import("./server-
|
|
101808
|
-
"@agimon-ai/po-edit": () => import("./server-
|
|
101809
|
-
"@agimon-ai/po-file-edit": () => import("./server-
|
|
101810
|
-
"@agimon-ai/po-grep": () => import("./server-
|
|
101811
|
-
"@agimon-ai/po-log": () => import("./server-
|
|
101812
|
-
"@agimon-ai/po-major-mode": () => import("./server-
|
|
101813
|
-
"@agimon-ai/po-mcp": () => import("./server-
|
|
101814
|
-
"@agimon-ai/po-minor-mode": () => import("./server-
|
|
101815
|
-
"@agimon-ai/po-notification": () => import("./server-
|
|
101816
|
-
"@agimon-ai/po-profile": () => import("./server-
|
|
101817
|
-
"@agimon-ai/po-prompt": () => import("./server-
|
|
101818
|
-
"@agimon-ai/po-read": () => import("./server-
|
|
101819
|
-
"@agimon-ai/po-runner": () => import("./server-
|
|
101820
|
-
"@agimon-ai/po-session": () => import("./server-
|
|
101821
|
-
"@agimon-ai/po-skill": () => import("./server-
|
|
101822
|
-
"@agimon-ai/po-ui": () => import("./server-
|
|
101823
|
-
"@agimon-ai/po-vault": () => import("./server-
|
|
101746
|
+
"@agimon-ai/po-approval": () => import("./server-BT2ORK83.js"),
|
|
101747
|
+
"@agimon-ai/po-artifact": () => import("./server-BIHo9TFu.js"),
|
|
101748
|
+
"@agimon-ai/po-autocompact": () => import("./server-B6dqQoh2.js"),
|
|
101749
|
+
"@agimon-ai/po-autostop": () => import("./server-KBgW77zh.js"),
|
|
101750
|
+
"@agimon-ai/po-cache": () => import("./server-D40q2Jpx.js"),
|
|
101751
|
+
"@agimon-ai/po-codemode": () => import("./server-BQzAiMns.js"),
|
|
101752
|
+
"@agimon-ai/po-config": () => import("./server-BJ7DNzCp.js"),
|
|
101753
|
+
"@agimon-ai/po-db": () => import("./server-DH7PfLln.js"),
|
|
101754
|
+
"@agimon-ai/po-domain": () => import("./server-IqECnUrb.js"),
|
|
101755
|
+
"@agimon-ai/po-edit": () => import("./server-DJ8bc89M.js"),
|
|
101756
|
+
"@agimon-ai/po-file-edit": () => import("./server-nkUlqnAL.js"),
|
|
101757
|
+
"@agimon-ai/po-grep": () => import("./server-DCyf2Asb.js"),
|
|
101758
|
+
"@agimon-ai/po-log": () => import("./server-BqoKlEGk.js"),
|
|
101759
|
+
"@agimon-ai/po-major-mode": () => import("./server-Co_UWKrR.js"),
|
|
101760
|
+
"@agimon-ai/po-mcp": () => import("./server-Busl0pQI.js"),
|
|
101761
|
+
"@agimon-ai/po-minor-mode": () => import("./server-ub3s16Mc.js"),
|
|
101762
|
+
"@agimon-ai/po-notification": () => import("./server-CuEPb7u-.js"),
|
|
101763
|
+
"@agimon-ai/po-profile": () => import("./server-gifRriZK.js"),
|
|
101764
|
+
"@agimon-ai/po-prompt": () => import("./server-DYdp0W9v.js"),
|
|
101765
|
+
"@agimon-ai/po-read": () => import("./server-DymH4Ucq.js"),
|
|
101766
|
+
"@agimon-ai/po-runner": () => import("./server-AbXyhXlY.js"),
|
|
101767
|
+
"@agimon-ai/po-session": () => import("./server-aUit8j6r.js"),
|
|
101768
|
+
"@agimon-ai/po-skill": () => import("./server-CgWSSdvd.js"),
|
|
101769
|
+
"@agimon-ai/po-ui": () => import("./server-BbSHYRnY.js"),
|
|
101770
|
+
"@agimon-ai/po-vault": () => import("./server-DsdPEYGu.js"),
|
|
101771
|
+
"@agimon-ai/po-help": () => import("./server-oxyEbv1a.js"),
|
|
101772
|
+
"@agimon-ai/po-goal": () => import("./server-RW_9R3R3.js"),
|
|
101773
|
+
"@agimon-ai/po-plan": () => import("./server-CIHM4jqu.js"),
|
|
101774
|
+
"@agimon-ai/po-author": () => import("./server-BR7SZtj7.js"),
|
|
101775
|
+
"@agimon-ai/po-voice": () => import("./server-BO-j_GbD.js")
|
|
101824
101776
|
};
|
|
101825
101777
|
const SESSION = ["session"];
|
|
101826
101778
|
const GLOBAL_AND_SESSION = ["global", "session"];
|
|
@@ -101831,7 +101783,9 @@ const GLOBAL_PACKAGES = /* @__PURE__ */ new Set([
|
|
|
101831
101783
|
"@agimon-ai/po-file-edit",
|
|
101832
101784
|
"@agimon-ai/po-log",
|
|
101833
101785
|
"@agimon-ai/po-prompt",
|
|
101834
|
-
"@agimon-ai/po-runner"
|
|
101786
|
+
"@agimon-ai/po-runner",
|
|
101787
|
+
"@agimon-ai/po-help",
|
|
101788
|
+
"@agimon-ai/po-voice"
|
|
101835
101789
|
]);
|
|
101836
101790
|
/**
|
|
101837
101791
|
* The composed packages as bundle entries. The session host also takes them as its selection
|
|
@@ -101849,11 +101803,15 @@ const EDGE_PACKAGE_ENTRIES = COMPOSED_PACKAGES.map((packageName) => ({
|
|
|
101849
101803
|
}],
|
|
101850
101804
|
required: true
|
|
101851
101805
|
}));
|
|
101806
|
+
/** The same admitted entries drive loading and session selection, including child sessions. */
|
|
101807
|
+
function edgePackageEntries(voiceEnabled = false) {
|
|
101808
|
+
return EDGE_PACKAGE_ENTRIES.filter((entry) => voiceEnabled || entry.packageName !== "@agimon-ai/po-voice");
|
|
101809
|
+
}
|
|
101852
101810
|
/**
|
|
101853
101811
|
* Loads the packages declared for this host level. Each is `required`, so a package that fails
|
|
101854
101812
|
* to load fails the boot instead of becoming a notice: on the edge a missing package is a build bug.
|
|
101855
101813
|
*/
|
|
101856
|
-
async function loadEdgePackages(scope, onNotice) {
|
|
101814
|
+
async function loadEdgePackages(scope, onNotice, entries = edgePackageEntries()) {
|
|
101857
101815
|
const ownerPackages = /* @__PURE__ */ new Set([
|
|
101858
101816
|
"@agimon-ai/po-config",
|
|
101859
101817
|
"@agimon-ai/po-domain",
|
|
@@ -101861,12 +101819,12 @@ async function loadEdgePackages(scope, onNotice) {
|
|
|
101861
101819
|
"@agimon-ai/po-log",
|
|
101862
101820
|
"@agimon-ai/po-db"
|
|
101863
101821
|
]);
|
|
101864
|
-
const
|
|
101822
|
+
const scopedEntries = scope === "owner" ? entries.filter((entry) => ownerPackages.has(entry.packageName)).map((entry) => ({
|
|
101865
101823
|
...entry,
|
|
101866
101824
|
scopes: ["global"]
|
|
101867
|
-
})) :
|
|
101825
|
+
})) : entries;
|
|
101868
101826
|
const { packages } = await loadServerPackages(scope === "owner" ? "global" : scope, {
|
|
101869
|
-
entries,
|
|
101827
|
+
entries: scopedEntries,
|
|
101870
101828
|
majorMode: "default",
|
|
101871
101829
|
activeLayers: [],
|
|
101872
101830
|
onNotice,
|
|
@@ -101928,6 +101886,114 @@ function cloudVault(env, tenant, sessionId) {
|
|
|
101928
101886
|
}
|
|
101929
101887
|
};
|
|
101930
101888
|
}
|
|
101889
|
+
//#endregion
|
|
101890
|
+
//#region src/composition/voiceSpeech.ts
|
|
101891
|
+
const TRANSCRIBER = "@cf/openai/whisper-large-v3-turbo";
|
|
101892
|
+
const NARRATOR = "@cf/deepgram/aura-2-en";
|
|
101893
|
+
const SAMPLE_RATE = 16e3;
|
|
101894
|
+
const MAX_WAV_BYTES = MANUAL_TRANSCRIPTION_MAX_DURATION_MS / 1e3 * SAMPLE_RATE * 2 + 44;
|
|
101895
|
+
const MAX_TRANSCRIPTION_RESPONSE_BYTES = 1048576;
|
|
101896
|
+
const MAX_NARRATION_BYTES = SAMPLE_RATE * 2 * 300;
|
|
101897
|
+
const INFERENCE_TIMEOUT_MS = 12e4;
|
|
101898
|
+
function cloudVoiceEnabled(env) {
|
|
101899
|
+
return env.AI !== void 0 && env.PO_CLOUD_VOICE === "on";
|
|
101900
|
+
}
|
|
101901
|
+
async function readBounded(response, limit, signal) {
|
|
101902
|
+
if (!response.ok || !response.body) throw new Error("Workers AI returned no successful audio response.");
|
|
101903
|
+
const reader = response.body.getReader();
|
|
101904
|
+
const chunks = [];
|
|
101905
|
+
let size = 0;
|
|
101906
|
+
try {
|
|
101907
|
+
for (;;) {
|
|
101908
|
+
signal.throwIfAborted();
|
|
101909
|
+
const { done, value } = await reader.read();
|
|
101910
|
+
signal.throwIfAborted();
|
|
101911
|
+
if (done) return Buffer.concat(chunks, size);
|
|
101912
|
+
size += value.byteLength;
|
|
101913
|
+
if (size > limit) throw new ManualTranscriptionError("output_too_large", "Workers AI output exceeds the limit.");
|
|
101914
|
+
chunks.push(Buffer.from(value));
|
|
101915
|
+
}
|
|
101916
|
+
} finally {
|
|
101917
|
+
await reader.cancel();
|
|
101918
|
+
reader.releaseLock();
|
|
101919
|
+
}
|
|
101920
|
+
}
|
|
101921
|
+
/** Fixed models, bounded output, and no retries. A cancelled upstream request still occupies its lane. */
|
|
101922
|
+
function createCloudVoiceSpeech(ai, language, lifetime) {
|
|
101923
|
+
const inFlight = /* @__PURE__ */ new Set();
|
|
101924
|
+
const infer = async (kind, signal, run) => {
|
|
101925
|
+
if (lifetime) signal = signal ? AbortSignal.any([signal, lifetime]) : lifetime;
|
|
101926
|
+
signal?.throwIfAborted();
|
|
101927
|
+
if (inFlight.has(kind)) throw new ManualTranscriptionError("unavailable", "Speech inference is still in progress.");
|
|
101928
|
+
const controller = new AbortController();
|
|
101929
|
+
const abort = () => controller.abort(signal?.reason);
|
|
101930
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
101931
|
+
const timeout = setTimeout(() => controller.abort(new ManualTranscriptionError("timeout", "Speech inference timed out.")), INFERENCE_TIMEOUT_MS);
|
|
101932
|
+
inFlight.add(kind);
|
|
101933
|
+
const upstream = Promise.resolve().then(() => {
|
|
101934
|
+
controller.signal.throwIfAborted();
|
|
101935
|
+
return run(controller.signal);
|
|
101936
|
+
}).finally(() => inFlight.delete(kind));
|
|
101937
|
+
let rejectAbort;
|
|
101938
|
+
try {
|
|
101939
|
+
return await Promise.race([upstream, new Promise((_resolve, reject) => {
|
|
101940
|
+
rejectAbort = () => reject(controller.signal.reason);
|
|
101941
|
+
controller.signal.addEventListener("abort", rejectAbort, { once: true });
|
|
101942
|
+
if (controller.signal.aborted) rejectAbort();
|
|
101943
|
+
})]);
|
|
101944
|
+
} finally {
|
|
101945
|
+
clearTimeout(timeout);
|
|
101946
|
+
signal?.removeEventListener("abort", abort);
|
|
101947
|
+
if (rejectAbort) controller.signal.removeEventListener("abort", rejectAbort);
|
|
101948
|
+
}
|
|
101949
|
+
};
|
|
101950
|
+
return {
|
|
101951
|
+
transcription: { async transcribe(audio, mediaType, signal) {
|
|
101952
|
+
const limit = mediaType === "audio/wav" ? MAX_WAV_BYTES : MANUAL_TRANSCRIPTION_MAX_AUDIO_BYTES;
|
|
101953
|
+
if (![
|
|
101954
|
+
"audio/webm",
|
|
101955
|
+
"audio/mp4",
|
|
101956
|
+
"audio/wav"
|
|
101957
|
+
].includes(mediaType) || audio.length === 0 || audio.length > limit) throw new ManualTranscriptionError("invalid_audio", "Audio is empty, unsupported or exceeds the limit.");
|
|
101958
|
+
try {
|
|
101959
|
+
return await infer("transcription", signal, async (active) => {
|
|
101960
|
+
const currentLanguage = language();
|
|
101961
|
+
const bytes = await readBounded(await ai.run(TRANSCRIBER, {
|
|
101962
|
+
audio: audio.toString("base64"),
|
|
101963
|
+
...currentLanguage ? { language: currentLanguage } : {}
|
|
101964
|
+
}, { returnRawResponse: true }), MAX_TRANSCRIPTION_RESPONSE_BYTES, active);
|
|
101965
|
+
const output = JSON.parse(bytes.toString("utf8"));
|
|
101966
|
+
if (!output || typeof output !== "object" || !("text" in output) || typeof output.text !== "string") throw new ManualTranscriptionError("unavailable", "Workers AI returned an invalid transcript.");
|
|
101967
|
+
const transcript = output.text.trim();
|
|
101968
|
+
if (Buffer.byteLength(transcript) > 16384) throw new ManualTranscriptionError("output_too_large", "Transcript exceeds the limit.");
|
|
101969
|
+
if (!transcript) throw new ManualTranscriptionError("empty_transcript", "No speech was transcribed.");
|
|
101970
|
+
active.throwIfAborted();
|
|
101971
|
+
return { transcript };
|
|
101972
|
+
});
|
|
101973
|
+
} catch (error) {
|
|
101974
|
+
signal?.throwIfAborted();
|
|
101975
|
+
lifetime?.throwIfAborted();
|
|
101976
|
+
if (error instanceof ManualTranscriptionError) throw error;
|
|
101977
|
+
throw new ManualTranscriptionError("unavailable", "Workers AI transcription failed.");
|
|
101978
|
+
}
|
|
101979
|
+
} },
|
|
101980
|
+
narration: { async synthesize(request, signal) {
|
|
101981
|
+
const text = request.text.trim();
|
|
101982
|
+
if (!text || text.length > 4096) throw new Error("Narration text is empty or exceeds the limit.");
|
|
101983
|
+
return infer("narration", signal, async (active) => {
|
|
101984
|
+
const response = await ai.run(NARRATOR, {
|
|
101985
|
+
text,
|
|
101986
|
+
encoding: "linear16",
|
|
101987
|
+
container: "none",
|
|
101988
|
+
sample_rate: SAMPLE_RATE
|
|
101989
|
+
}, { returnRawResponse: true });
|
|
101990
|
+
const audio = await readBounded(response, MAX_NARRATION_BYTES, active);
|
|
101991
|
+
if (audio.length === 0 || audio.length % 2 !== 0 || /mpeg|mp3|aac|opus|ogg|wav|flac|json|text/i.test(response.headers.get("content-type") ?? "")) throw new Error("Workers AI returned invalid PCM audio.");
|
|
101992
|
+
return audio;
|
|
101993
|
+
});
|
|
101994
|
+
} }
|
|
101995
|
+
};
|
|
101996
|
+
}
|
|
101931
101997
|
const PO_WORKSPACE_REGISTRY_CONTRACT = defineServiceContract("po/workspace-registry", { scope: "global" });
|
|
101932
101998
|
//#endregion
|
|
101933
101999
|
//#region ../../core/po-core/src/services/workspaceLookup/index.ts
|
|
@@ -102130,6 +102196,9 @@ var PoSessionObject = class extends DurableObject {
|
|
|
102130
102196
|
browser: cloudBrowser(this.env, tenant, sessionId)
|
|
102131
102197
|
});
|
|
102132
102198
|
const onNotice = (message) => console.warn(`[po-session ${sessionId}] ${message}`);
|
|
102199
|
+
const voiceEnabled = cloudVoiceEnabled(this.env);
|
|
102200
|
+
const entries = edgePackageEntries(voiceEnabled);
|
|
102201
|
+
const voiceAi = voiceEnabled ? this.env.AI : void 0;
|
|
102133
102202
|
const base = createHeadlessSessionManager();
|
|
102134
102203
|
const apis = /* @__PURE__ */ new Map();
|
|
102135
102204
|
const hub = createHeadlessHub({
|
|
@@ -102169,7 +102238,7 @@ var PoSessionObject = class extends DurableObject {
|
|
|
102169
102238
|
sessionService: hub.sessionService,
|
|
102170
102239
|
pluginRegistry: hub.pluginRegistry,
|
|
102171
102240
|
apis: [],
|
|
102172
|
-
packages: await loadEdgePackages("session", onNotice),
|
|
102241
|
+
packages: await loadEdgePackages("session", onNotice, entries),
|
|
102173
102242
|
mountChannel: (channel) => ({
|
|
102174
102243
|
mounted: true,
|
|
102175
102244
|
dispose: hub.registerChannel(channel, {
|
|
@@ -102179,6 +102248,12 @@ var PoSessionObject = class extends DurableObject {
|
|
|
102179
102248
|
}),
|
|
102180
102249
|
preparePackages: (root) => {
|
|
102181
102250
|
host.preparePackages(root);
|
|
102251
|
+
if (voiceAi) root.inject([PO_CONFIG_SERVICE], (context) => {
|
|
102252
|
+
const config = context.get(PO_CONFIG_SERVICE);
|
|
102253
|
+
const lifetime = new AbortController();
|
|
102254
|
+
context.provide(VOICE_SPEECH_CONTRACT.name, createCloudVoiceSpeech(voiceAi, () => config.getSnapshot().settings.voice?.language, lifetime.signal));
|
|
102255
|
+
context.effect(() => () => lifetime.abort(/* @__PURE__ */ new Error("Voice session closed.")));
|
|
102256
|
+
});
|
|
102182
102257
|
if (sharedSettings) root.inject([PO_CONFIG_SERVICE], (context) => {
|
|
102183
102258
|
const service = context.get(PO_CONFIG_SERVICE);
|
|
102184
102259
|
const publish = () => service.replaceSnapshot({
|
|
@@ -102299,7 +102374,7 @@ var PoSessionObject = class extends DurableObject {
|
|
|
102299
102374
|
environment: {},
|
|
102300
102375
|
homeDirectory: platform.homeDirectory,
|
|
102301
102376
|
onNotice
|
|
102302
|
-
}, await loadEdgePackages("global", onNotice));
|
|
102377
|
+
}, await loadEdgePackages("global", onNotice, entries));
|
|
102303
102378
|
await hub.create({
|
|
102304
102379
|
cwd: WORKSPACE,
|
|
102305
102380
|
repoRoot: WORKSPACE,
|
|
@@ -102314,7 +102389,7 @@ var PoSessionObject = class extends DurableObject {
|
|
|
102314
102389
|
activeLayers: [],
|
|
102315
102390
|
domains: []
|
|
102316
102391
|
},
|
|
102317
|
-
candidates:
|
|
102392
|
+
candidates: entries,
|
|
102318
102393
|
piExtensions: false,
|
|
102319
102394
|
requestShutdown: () => {
|
|
102320
102395
|
this.#release(hub, sessionId).catch((error) => onNotice(`Idle release failed: ${error instanceof Error ? error.message : String(error)}`));
|
|
@@ -109016,10 +109091,6 @@ _Object_({ questions: _Array_(AskUserPromptQuestionSchema, {
|
|
|
109016
109091
|
maxItems: MAX_QUESTIONS
|
|
109017
109092
|
}) }, { additionalProperties: false });
|
|
109018
109093
|
_Object_({ active: Boolean$2() }, { additionalProperties: false });
|
|
109019
|
-
_Object_({ text: String$1({
|
|
109020
|
-
minLength: 1,
|
|
109021
|
-
maxLength: 4096
|
|
109022
|
-
}) }, { additionalProperties: false });
|
|
109023
109094
|
//#endregion
|
|
109024
109095
|
//#region ../../core/po-core/src/schemas/federation.ts
|
|
109025
109096
|
/** Missing generations are the original enrollment. Invalid values never acquire authority. */
|
|
@@ -109839,153 +109910,183 @@ var virtual_po_capabilities_default = {
|
|
|
109839
109910
|
"packages": [
|
|
109840
109911
|
{
|
|
109841
109912
|
"name": "@agimon-ai/po-approval",
|
|
109842
|
-
"version": "0.0.0-alpha.
|
|
109913
|
+
"version": "0.0.0-alpha.121",
|
|
109843
109914
|
"contractFingerprint": "2fe2af06dfdf1ea281408f3a86b7599e2409044cac334bcd4060f55dac3d6953",
|
|
109844
109915
|
"operations": []
|
|
109845
109916
|
},
|
|
109846
109917
|
{
|
|
109847
109918
|
"name": "@agimon-ai/po-artifact",
|
|
109848
|
-
"version": "0.0.0-alpha.
|
|
109919
|
+
"version": "0.0.0-alpha.120",
|
|
109849
109920
|
"contractFingerprint": "594fd017f549087206fa296d5b98fe89cccf0942a71674bfbb8dadac4d13cb38",
|
|
109850
109921
|
"operations": []
|
|
109851
109922
|
},
|
|
109852
109923
|
{
|
|
109853
109924
|
"name": "@agimon-ai/po-autocompact",
|
|
109854
|
-
"version": "0.0.0-alpha.
|
|
109925
|
+
"version": "0.0.0-alpha.121",
|
|
109855
109926
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109856
109927
|
"operations": []
|
|
109857
109928
|
},
|
|
109858
109929
|
{
|
|
109859
109930
|
"name": "@agimon-ai/po-autostop",
|
|
109860
|
-
"version": "0.0.0-alpha.
|
|
109931
|
+
"version": "0.0.0-alpha.121",
|
|
109861
109932
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109862
109933
|
"operations": []
|
|
109863
109934
|
},
|
|
109864
109935
|
{
|
|
109865
109936
|
"name": "@agimon-ai/po-cache",
|
|
109866
|
-
"version": "0.0.0-alpha.
|
|
109937
|
+
"version": "0.0.0-alpha.121",
|
|
109867
109938
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109868
109939
|
"operations": []
|
|
109869
109940
|
},
|
|
109870
109941
|
{
|
|
109871
109942
|
"name": "@agimon-ai/po-codemode",
|
|
109872
|
-
"version": "0.0.1-alpha.
|
|
109943
|
+
"version": "0.0.1-alpha.94",
|
|
109873
109944
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109874
109945
|
"operations": []
|
|
109875
109946
|
},
|
|
109876
109947
|
{
|
|
109877
109948
|
"name": "@agimon-ai/po-config",
|
|
109878
|
-
"version": "0.0.0-alpha.
|
|
109949
|
+
"version": "0.0.0-alpha.121",
|
|
109879
109950
|
"contractFingerprint": "305bb8372fccda962a3c7bb747e009f767af4a5b9ae904cfd827e9c402caad42",
|
|
109880
109951
|
"operations": []
|
|
109881
109952
|
},
|
|
109882
109953
|
{
|
|
109883
109954
|
"name": "@agimon-ai/po-db",
|
|
109884
|
-
"version": "0.0.0-alpha.
|
|
109955
|
+
"version": "0.0.0-alpha.121",
|
|
109885
109956
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109886
109957
|
"operations": []
|
|
109887
109958
|
},
|
|
109888
109959
|
{
|
|
109889
109960
|
"name": "@agimon-ai/po-domain",
|
|
109890
|
-
"version": "0.0.0-alpha.
|
|
109961
|
+
"version": "0.0.0-alpha.121",
|
|
109891
109962
|
"contractFingerprint": "c220aecf68c3758ff1f202c702a7e14e93318b2be7c918e49211dd9fce29be0c",
|
|
109892
109963
|
"operations": []
|
|
109893
109964
|
},
|
|
109894
109965
|
{
|
|
109895
109966
|
"name": "@agimon-ai/po-edit",
|
|
109896
|
-
"version": "0.0.0-alpha.
|
|
109967
|
+
"version": "0.0.0-alpha.121",
|
|
109897
109968
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109898
109969
|
"operations": []
|
|
109899
109970
|
},
|
|
109900
109971
|
{
|
|
109901
109972
|
"name": "@agimon-ai/po-file-edit",
|
|
109902
|
-
"version": "0.0.0-alpha.
|
|
109973
|
+
"version": "0.0.0-alpha.121",
|
|
109903
109974
|
"contractFingerprint": "07e1c97e8188721bceb5b6858acf08a3b4dd9c237d17070e92d38a5ee9a5a904",
|
|
109904
109975
|
"operations": []
|
|
109905
109976
|
},
|
|
109906
109977
|
{
|
|
109907
109978
|
"name": "@agimon-ai/po-grep",
|
|
109908
|
-
"version": "0.0.0-alpha.
|
|
109979
|
+
"version": "0.0.0-alpha.121",
|
|
109909
109980
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109910
109981
|
"operations": []
|
|
109911
109982
|
},
|
|
109912
109983
|
{
|
|
109913
109984
|
"name": "@agimon-ai/po-log",
|
|
109914
|
-
"version": "0.0.0-alpha.
|
|
109985
|
+
"version": "0.0.0-alpha.121",
|
|
109915
109986
|
"contractFingerprint": "1187b405bf6fe09e5d7079edbe2c993f22ec6d1ec8bfadd5ad297733dc4457eb",
|
|
109916
109987
|
"operations": []
|
|
109917
109988
|
},
|
|
109918
109989
|
{
|
|
109919
109990
|
"name": "@agimon-ai/po-major-mode",
|
|
109920
|
-
"version": "0.0.0-alpha.
|
|
109991
|
+
"version": "0.0.0-alpha.121",
|
|
109921
109992
|
"contractFingerprint": "d7c10b6c5f808271f9cd1a3ec6803cb0f0f282f1a3ec390643c2b2fee1a081cd",
|
|
109922
109993
|
"operations": []
|
|
109923
109994
|
},
|
|
109924
109995
|
{
|
|
109925
109996
|
"name": "@agimon-ai/po-mcp",
|
|
109926
|
-
"version": "0.0.0-alpha.
|
|
109997
|
+
"version": "0.0.0-alpha.121",
|
|
109927
109998
|
"contractFingerprint": "f1fb4803383ca7ba30b1394794a135662de7316c06c3b46637e167f02d9fba02",
|
|
109928
109999
|
"operations": []
|
|
109929
110000
|
},
|
|
109930
110001
|
{
|
|
109931
110002
|
"name": "@agimon-ai/po-minor-mode",
|
|
109932
|
-
"version": "0.0.0-alpha.
|
|
110003
|
+
"version": "0.0.0-alpha.121",
|
|
109933
110004
|
"contractFingerprint": "9d4d7a4b9c338333a720b9f7fc083970d95b6d4f8be11b5f2920b40b7198c002",
|
|
109934
110005
|
"operations": []
|
|
109935
110006
|
},
|
|
109936
110007
|
{
|
|
109937
110008
|
"name": "@agimon-ai/po-notification",
|
|
109938
|
-
"version": "0.0.0-alpha.
|
|
110009
|
+
"version": "0.0.0-alpha.121",
|
|
109939
110010
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109940
110011
|
"operations": []
|
|
109941
110012
|
},
|
|
109942
110013
|
{
|
|
109943
110014
|
"name": "@agimon-ai/po-profile",
|
|
109944
|
-
"version": "0.0.0-alpha.
|
|
110015
|
+
"version": "0.0.0-alpha.121",
|
|
109945
110016
|
"contractFingerprint": "8684a340a22cccbb87b2455fee65de6c8045e61ee68288511140f03097aeac01",
|
|
109946
110017
|
"operations": []
|
|
109947
110018
|
},
|
|
109948
110019
|
{
|
|
109949
110020
|
"name": "@agimon-ai/po-prompt",
|
|
109950
|
-
"version": "0.0.0-alpha.
|
|
110021
|
+
"version": "0.0.0-alpha.121",
|
|
109951
110022
|
"contractFingerprint": "37a470cef4017ee8ee1bf55ae9567b20ee04cb3ee2baaaed5b409d90d8277e51",
|
|
109952
110023
|
"operations": []
|
|
109953
110024
|
},
|
|
109954
110025
|
{
|
|
109955
110026
|
"name": "@agimon-ai/po-read",
|
|
109956
|
-
"version": "0.0.0-alpha.
|
|
110027
|
+
"version": "0.0.0-alpha.121",
|
|
109957
110028
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109958
110029
|
"operations": []
|
|
109959
110030
|
},
|
|
109960
110031
|
{
|
|
109961
110032
|
"name": "@agimon-ai/po-runner",
|
|
109962
|
-
"version": "0.0.0-alpha.
|
|
110033
|
+
"version": "0.0.0-alpha.121",
|
|
109963
110034
|
"contractFingerprint": "90bdb18b26c2e820b9c55db2c4c563a1b9df2d528844c9e7bb3e86027c57ec18",
|
|
109964
110035
|
"operations": []
|
|
109965
110036
|
},
|
|
109966
110037
|
{
|
|
109967
110038
|
"name": "@agimon-ai/po-session",
|
|
109968
|
-
"version": "0.0.0-alpha.
|
|
110039
|
+
"version": "0.0.0-alpha.121",
|
|
109969
110040
|
"contractFingerprint": "23e1825133c5d10030161590d858cdd4636159973d94ea747500bbf3cd3e60c0",
|
|
109970
110041
|
"operations": []
|
|
109971
110042
|
},
|
|
109972
110043
|
{
|
|
109973
110044
|
"name": "@agimon-ai/po-skill",
|
|
109974
|
-
"version": "0.0.0-alpha.
|
|
110045
|
+
"version": "0.0.0-alpha.121",
|
|
109975
110046
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109976
110047
|
"operations": []
|
|
109977
110048
|
},
|
|
109978
110049
|
{
|
|
109979
110050
|
"name": "@agimon-ai/po-ui",
|
|
109980
|
-
"version": "0.0.0-alpha.
|
|
110051
|
+
"version": "0.0.0-alpha.121",
|
|
109981
110052
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109982
110053
|
"operations": []
|
|
109983
110054
|
},
|
|
109984
110055
|
{
|
|
109985
110056
|
"name": "@agimon-ai/po-vault",
|
|
109986
|
-
"version": "0.0.0-alpha.
|
|
110057
|
+
"version": "0.0.0-alpha.121",
|
|
110058
|
+
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
110059
|
+
"operations": []
|
|
110060
|
+
},
|
|
110061
|
+
{
|
|
110062
|
+
"name": "@agimon-ai/po-help",
|
|
110063
|
+
"version": "0.0.0-alpha.121",
|
|
110064
|
+
"contractFingerprint": "0788be317bef7f4e69401495571cdde21b2d2c531b1c6519959e5c43ff81647f",
|
|
110065
|
+
"operations": []
|
|
110066
|
+
},
|
|
110067
|
+
{
|
|
110068
|
+
"name": "@agimon-ai/po-goal",
|
|
110069
|
+
"version": "0.0.0-alpha.121",
|
|
109987
110070
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
109988
110071
|
"operations": []
|
|
110072
|
+
},
|
|
110073
|
+
{
|
|
110074
|
+
"name": "@agimon-ai/po-plan",
|
|
110075
|
+
"version": "0.0.0-alpha.121",
|
|
110076
|
+
"contractFingerprint": "95cba01f8c05bc8464f08bdf21e49c9844251e9c8db9fbd2df388863d86fb97a",
|
|
110077
|
+
"operations": []
|
|
110078
|
+
},
|
|
110079
|
+
{
|
|
110080
|
+
"name": "@agimon-ai/po-author",
|
|
110081
|
+
"version": "0.0.0-alpha.121",
|
|
110082
|
+
"contractFingerprint": "2eee02e93d2bc9a5af9c36eca9a3a003fbdfa8d048de98da3bc7e8c3a8fa8bc3",
|
|
110083
|
+
"operations": []
|
|
110084
|
+
},
|
|
110085
|
+
{
|
|
110086
|
+
"name": "@agimon-ai/po-voice",
|
|
110087
|
+
"version": "0.0.0-alpha.121",
|
|
110088
|
+
"contractFingerprint": "d270da7bcde444e2c943e1018cd28a1ca97bdbf69efdf5b8dc0884d10d51bd3b",
|
|
110089
|
+
"operations": []
|
|
109989
110090
|
}
|
|
109990
110091
|
],
|
|
109991
110092
|
"templates": []
|
|
@@ -114647,14 +114748,14 @@ const scalar = union$1([
|
|
|
114647
114748
|
boolean$1(),
|
|
114648
114749
|
date$1()
|
|
114649
114750
|
]).nullable();
|
|
114650
|
-
const readSchema = record$
|
|
114651
|
-
const setSchema = record$
|
|
114751
|
+
const readSchema = record$7(string$1(), unknown$1()).nullish();
|
|
114752
|
+
const setSchema = record$7(string$1(), unknown$1()).transform((values) => {
|
|
114652
114753
|
const assignments = {};
|
|
114653
114754
|
for (const [field, value] of Object.entries(values)) if (value !== void 0) assignments[field] = value;
|
|
114654
114755
|
return assignments;
|
|
114655
114756
|
});
|
|
114656
114757
|
const mutationSchema = object({
|
|
114657
|
-
increment: record$
|
|
114758
|
+
increment: record$7(string$1(), number()),
|
|
114658
114759
|
set: setSchema.optional()
|
|
114659
114760
|
});
|
|
114660
114761
|
const counterSchema = number().nullish();
|
|
@@ -116712,10 +116813,10 @@ function isValidIP$1(ip) {
|
|
|
116712
116813
|
return isIPv4$1(ip) || isIPv6$1(ip);
|
|
116713
116814
|
}
|
|
116714
116815
|
function isIPv4$1(ip) {
|
|
116715
|
-
return validate$
|
|
116816
|
+
return validate$3(ipv4Schema$1, ip);
|
|
116716
116817
|
}
|
|
116717
116818
|
function isIPv6$1(ip) {
|
|
116718
|
-
return validate$
|
|
116819
|
+
return validate$3(ipv6Schema$1, ip);
|
|
116719
116820
|
}
|
|
116720
116821
|
/**
|
|
116721
116822
|
* Converts IPv4-mapped IPv6 address to IPv4
|
|
@@ -124805,7 +124906,7 @@ const cookieCachePayloadSchema = looseObject({
|
|
|
124805
124906
|
version: string$1().optional()
|
|
124806
124907
|
});
|
|
124807
124908
|
const compactCookieCacheSchema = object({
|
|
124808
|
-
session: record$
|
|
124909
|
+
session: record$7(string$1(), unknown$1()),
|
|
124809
124910
|
expiresAt: number(),
|
|
124810
124911
|
signature: string$1()
|
|
124811
124912
|
});
|
|
@@ -125443,7 +125544,7 @@ const stateDataSchema = looseObject({
|
|
|
125443
125544
|
* Populated only by `generateState` from `addOAuthServerContext`, never from
|
|
125444
125545
|
* the request body, so it is safe to trust on the callback.
|
|
125445
125546
|
*/
|
|
125446
|
-
serverContext: record$
|
|
125547
|
+
serverContext: record$7(string$1(), unknown$1()).optional()
|
|
125447
125548
|
});
|
|
125448
125549
|
/** Verification key for database-backed OAuth and SAML relay state. */
|
|
125449
125550
|
const getAuthStateVerificationIdentifier = (state) => `auth-state:${state}`;
|
|
@@ -127910,7 +128011,7 @@ async function createAuthorizationURL({ id, options, authorizationEndpoint, stat
|
|
|
127910
128011
|
* authorization-URL builder (see `RESERVED_AUTHORIZATION_PARAMS`), so
|
|
127911
128012
|
* a caller cannot overwrite `state`, PKCE, `redirect_uri`, etc.
|
|
127912
128013
|
*/
|
|
127913
|
-
const additionalAuthorizationParamsSchema = record$
|
|
128014
|
+
const additionalAuthorizationParamsSchema = record$7(string$1(), string$1()).refine((value) => !Object.keys(value).some((key) => RESERVED_AUTHORIZATION_PARAMS_SET.has(key)), { message: `additionalParams cannot include reserved OAuth parameters: ${RESERVED_AUTHORIZATION_PARAMS.join(", ")}` }).meta({ description: "Extra query parameters to append to the provider authorization URL (e.g. Cognito identity_provider, Google hd)." }).optional();
|
|
127914
128015
|
//#endregion
|
|
127915
128016
|
//#region ../../../node_modules/.pnpm/@better-auth+core@1.7.12_@better-auth+utils@0.5.0_@better-fetch+fetch@1.3.2_@openteleme_ea9505522ecf88b80b3c861dd51758be/node_modules/@better-auth/core/dist/oauth2/basic-credentials.mjs
|
|
127916
128017
|
/**
|
|
@@ -132338,7 +132439,7 @@ const linkSocialAccount = createAuthEndpoint("/link-social", {
|
|
|
132338
132439
|
/**
|
|
132339
132440
|
* Any additional data to pass through the oauth flow.
|
|
132340
132441
|
*/
|
|
132341
|
-
additionalData: record$
|
|
132442
|
+
additionalData: record$7(string$1(), any()).optional()
|
|
132342
132443
|
}),
|
|
132343
132444
|
use: [sessionMiddleware],
|
|
132344
132445
|
metadata: { openapi: {
|
|
@@ -133811,7 +133912,7 @@ const socialSignInBodySchema = object({
|
|
|
133811
133912
|
/**
|
|
133812
133913
|
* Additional data to be passed through the OAuth flow
|
|
133813
133914
|
*/
|
|
133814
|
-
additionalData: record$
|
|
133915
|
+
additionalData: record$7(string$1(), any()).optional().meta({ description: "Additional data to be passed through the OAuth flow" })
|
|
133815
133916
|
});
|
|
133816
133917
|
const signInSocial = () => createAuthEndpoint("/sign-in/social", {
|
|
133817
133918
|
method: "POST",
|
|
@@ -134166,7 +134267,7 @@ const signUpEmailBodySchema = object({
|
|
|
134166
134267
|
image: string$1().optional(),
|
|
134167
134268
|
callbackURL: string$1().optional(),
|
|
134168
134269
|
rememberMe: boolean$1().optional()
|
|
134169
|
-
}).and(record$
|
|
134270
|
+
}).and(record$7(string$1(), any()));
|
|
134170
134271
|
const signUpEmail = () => createAuthEndpoint("/sign-up/email", {
|
|
134171
134272
|
method: "POST",
|
|
134172
134273
|
operationId: "signUpWithEmailAndPassword",
|
|
@@ -134413,7 +134514,7 @@ const signUpEmail = () => createAuthEndpoint("/sign-up/email", {
|
|
|
134413
134514
|
});
|
|
134414
134515
|
//#endregion
|
|
134415
134516
|
//#region ../../../node_modules/.pnpm/better-auth@1.7.12_@opentelemetry+api@1.9.1_drizzle-orm@0.45.4_@cloudflare+workers-type_e5a32620e03b1f1eddfe97806668c9ed/node_modules/better-auth/dist/api/routes/update-session.mjs
|
|
134416
|
-
const updateSessionBodySchema = record$
|
|
134517
|
+
const updateSessionBodySchema = record$7(string$1().meta({ description: "Field name must be a string" }), any());
|
|
134417
134518
|
const updateSession = () => createAuthEndpoint("/update-session", {
|
|
134418
134519
|
method: "POST",
|
|
134419
134520
|
operationId: "updateSession",
|
|
@@ -134463,7 +134564,7 @@ const updateSession = () => createAuthEndpoint("/update-session", {
|
|
|
134463
134564
|
});
|
|
134464
134565
|
//#endregion
|
|
134465
134566
|
//#region ../../../node_modules/.pnpm/better-auth@1.7.12_@opentelemetry+api@1.9.1_drizzle-orm@0.45.4_@cloudflare+workers-type_e5a32620e03b1f1eddfe97806668c9ed/node_modules/better-auth/dist/api/routes/update-user.mjs
|
|
134466
|
-
const updateUserBodySchema = record$
|
|
134567
|
+
const updateUserBodySchema = record$7(string$1().meta({ description: "Field name must be a string" }), any());
|
|
134467
134568
|
const updateUser = () => createAuthEndpoint("/update-user", {
|
|
134468
134569
|
method: "POST",
|
|
134469
134570
|
operationId: "updateUser",
|
|
@@ -152811,7 +152912,7 @@ const verifyPasskeyRegistration = (options) => {
|
|
|
152811
152912
|
}
|
|
152812
152913
|
});
|
|
152813
152914
|
};
|
|
152814
|
-
const verifyPasskeyAuthenticationBodySchema = object({ response: record$
|
|
152915
|
+
const verifyPasskeyAuthenticationBodySchema = object({ response: record$7(any(), any()) });
|
|
152815
152916
|
const verifyPasskeyAuthentication = (options) => createAuthEndpoint$1("/passkey/verify-authentication", {
|
|
152816
152917
|
method: "POST",
|
|
152817
152918
|
body: verifyPasskeyAuthenticationBodySchema,
|
|
@@ -179737,10 +179838,10 @@ function isValidIP(ip) {
|
|
|
179737
179838
|
return isIPv4(ip) || isIPv6(ip);
|
|
179738
179839
|
}
|
|
179739
179840
|
function isIPv4(ip) {
|
|
179740
|
-
return validate$
|
|
179841
|
+
return validate$3(ipv4Schema, ip);
|
|
179741
179842
|
}
|
|
179742
179843
|
function isIPv6(ip) {
|
|
179743
|
-
return validate$
|
|
179844
|
+
return validate$3(ipv6Schema, ip);
|
|
179744
179845
|
}
|
|
179745
179846
|
/**
|
|
179746
179847
|
* Converts IPv4-mapped IPv6 address to IPv4
|
|
@@ -210368,7 +210469,7 @@ const oidcMappingSchema = strictObject({
|
|
|
210368
210469
|
emailVerified: string$1().meta({ description: "Field mapping for email verification (defaults to 'email_verified')" }).optional(),
|
|
210369
210470
|
name: string$1().meta({ description: "Field mapping for name (defaults to 'name')" }).optional(),
|
|
210370
210471
|
image: string$1().meta({ description: "Field mapping for image (defaults to 'picture')" }).optional(),
|
|
210371
|
-
extraFields: record$
|
|
210472
|
+
extraFields: record$7(string$1(), any()).optional()
|
|
210372
210473
|
}).optional();
|
|
210373
210474
|
const samlMappingSchema = strictObject({
|
|
210374
210475
|
email: string$1().meta({ description: "Field mapping for email (defaults to 'email')" }).optional(),
|
|
@@ -210376,7 +210477,7 @@ const samlMappingSchema = strictObject({
|
|
|
210376
210477
|
name: string$1().meta({ description: "Field mapping for name (defaults to 'displayName')" }).optional(),
|
|
210377
210478
|
firstName: string$1().meta({ description: "Field mapping for first name (defaults to 'givenName')" }).optional(),
|
|
210378
210479
|
lastName: string$1().meta({ description: "Field mapping for last name (defaults to 'surname')" }).optional(),
|
|
210379
|
-
extraFields: record$
|
|
210480
|
+
extraFields: record$7(string$1(), any()).optional()
|
|
210380
210481
|
}).optional();
|
|
210381
210482
|
const signingCertSchema = union$1([string$1(), array(string$1()).nonempty()]).meta({ description: "IdP signing certificate(s). Pass a single PEM string or an array for rolling rotation." });
|
|
210382
210483
|
const oidcConfigSchema = object({
|
|
@@ -213630,7 +213731,7 @@ const signInEmailOTPBodySchema = object({
|
|
|
213630
213731
|
}),
|
|
213631
213732
|
name: string$1().meta({ description: "User display name. Only used if the user is registering for the first time. Eg: \"my-name\"" }).optional(),
|
|
213632
213733
|
image: string$1().meta({ description: "User profile image URL. Only used if the user is registering for the first time." }).optional()
|
|
213633
|
-
}).and(record$
|
|
213734
|
+
}).and(record$7(string$1(), any()));
|
|
213634
213735
|
/**
|
|
213635
213736
|
* ### Endpoint
|
|
213636
213737
|
*
|
|
@@ -214586,8 +214687,8 @@ const schema = { jwks: { fields: {
|
|
|
214586
214687
|
//#endregion
|
|
214587
214688
|
//#region ../../../node_modules/.pnpm/better-auth@1.7.12_@opentelemetry+api@1.9.1_drizzle-orm@0.45.4_@cloudflare+workers-type_e5a32620e03b1f1eddfe97806668c9ed/node_modules/better-auth/dist/plugins/jwt/index.mjs
|
|
214588
214689
|
const signJWTBodySchema = object({
|
|
214589
|
-
payload: record$
|
|
214590
|
-
overrideOptions: record$
|
|
214690
|
+
payload: record$7(string$1(), any()),
|
|
214691
|
+
overrideOptions: record$7(string$1(), any()).optional()
|
|
214591
214692
|
});
|
|
214592
214693
|
const verifyJWTBodySchema = object({
|
|
214593
214694
|
token: string$1(),
|
|
@@ -214797,7 +214898,7 @@ const signInMagicLinkBodySchema = object({
|
|
|
214797
214898
|
callbackURL: string$1().meta({ description: "URL to redirect after magic link verification" }).optional(),
|
|
214798
214899
|
newUserCallbackURL: string$1().meta({ description: "URL to redirect after new user signup. Only used if the user is registering for the first time." }).optional(),
|
|
214799
214900
|
errorCallbackURL: string$1().meta({ description: "URL to redirect after error." }).optional(),
|
|
214800
|
-
metadata: record$
|
|
214901
|
+
metadata: record$7(string$1(), any()).meta({ description: "Additional metadata to pass to sendMagicLink." }).optional()
|
|
214801
214902
|
});
|
|
214802
214903
|
const magicLinkVerifyQuerySchema = object({
|
|
214803
214904
|
token: string$1().meta({ description: "Verification token" }),
|
|
@@ -215963,7 +216064,7 @@ const hasPermissionFn = (input, acRoles) => {
|
|
|
215963
216064
|
const cacheAllRoles = /* @__PURE__ */ new Map();
|
|
215964
216065
|
//#endregion
|
|
215965
216066
|
//#region ../../../node_modules/.pnpm/better-auth@1.7.12_@opentelemetry+api@1.9.1_drizzle-orm@0.45.4_@cloudflare+workers-type_e5a32620e03b1f1eddfe97806668c9ed/node_modules/better-auth/dist/plugins/organization/has-permission.mjs
|
|
215966
|
-
const rolePermissionsSchema = record$
|
|
216067
|
+
const rolePermissionsSchema = record$7(string$1(), array(string$1()));
|
|
215967
216068
|
const hasPermission = async (input, ctx) => {
|
|
215968
216069
|
let acRoles = { ...input.options.roles || defaultRoles$1 };
|
|
215969
216070
|
if (ctx && input.organizationId && input.options.dynamicAccessControl?.enabled && input.options.ac && !input.useMemoryCache) {
|
|
@@ -216105,7 +216206,7 @@ const getAdditionalFields = (options, shouldBePartial = false) => {
|
|
|
216105
216206
|
const baseCreateOrgRoleSchema = object({
|
|
216106
216207
|
organizationId: string$1().optional().meta({ description: "The id of the organization to create the role in. If not provided, the user's active organization will be used." }),
|
|
216107
216208
|
role: string$1().meta({ description: "The name of the role to create" }),
|
|
216108
|
-
permission: record$
|
|
216209
|
+
permission: record$7(string$1(), array(string$1())).meta({ description: "The permission to assign to the role" })
|
|
216109
216210
|
});
|
|
216110
216211
|
const createOrgRole = (options) => {
|
|
216111
216212
|
const { additionalFieldsSchema, $AdditionalFields, $ReturnAdditionalFields } = getAdditionalFields(options, false);
|
|
@@ -216522,7 +216623,7 @@ const updateOrgRole = (options) => {
|
|
|
216522
216623
|
body: object({
|
|
216523
216624
|
organizationId: string$1().optional().meta({ description: "The id of the organization to update the role in. If not provided, the user's active organization will be used." }),
|
|
216524
216625
|
data: object({
|
|
216525
|
-
permission: record$
|
|
216626
|
+
permission: record$7(string$1(), array(string$1())).optional().meta({ description: "The permission to update the role with" }),
|
|
216526
216627
|
roleName: string$1().optional().meta({ description: "The name of the role to update" }),
|
|
216527
216628
|
...additionalFieldsSchema.shape
|
|
216528
216629
|
})
|
|
@@ -217851,7 +217952,7 @@ const baseOrganizationSchema = object({
|
|
|
217851
217952
|
slug: string$1().min(1).meta({ description: "The slug of the organization" }),
|
|
217852
217953
|
userId: string().meta({ description: "The user id of the organization creator. If not provided, the current user will be used. Should only be used by admins or when called by the server. server-only. Eg: \"user-id\"" }).optional(),
|
|
217853
217954
|
logo: string$1().meta({ description: "The logo of the organization" }).nullish(),
|
|
217854
|
-
metadata: record$
|
|
217955
|
+
metadata: record$7(string$1(), any()).meta({ description: "The metadata of the organization" }).optional(),
|
|
217855
217956
|
keepCurrentActiveOrganization: boolean$1().meta({ description: "Whether to keep the current active organization active after creating a new one. Eg: true" }).optional()
|
|
217856
217957
|
});
|
|
217857
217958
|
const createOrganization = (options) => {
|
|
@@ -217998,7 +218099,7 @@ const baseUpdateOrganizationSchema = object({
|
|
|
217998
218099
|
name: string$1().min(1).meta({ description: "The name of the organization" }).optional(),
|
|
217999
218100
|
slug: string$1().min(1).meta({ description: "The slug of the organization" }).optional(),
|
|
218000
218101
|
logo: string$1().meta({ description: "The logo of the organization" }).nullish(),
|
|
218001
|
-
metadata: record$
|
|
218102
|
+
metadata: record$7(string$1(), any()).meta({ description: "The metadata of the organization" }).optional()
|
|
218002
218103
|
});
|
|
218003
218104
|
const updateOrganization = (options) => {
|
|
218004
218105
|
const additionalFieldsSchema = toZodSchema({
|
|
@@ -218302,7 +218403,7 @@ object({
|
|
|
218302
218403
|
name: string$1(),
|
|
218303
218404
|
slug: string$1(),
|
|
218304
218405
|
logo: string$1().nullish().optional(),
|
|
218305
|
-
metadata: record$
|
|
218406
|
+
metadata: record$7(string$1(), unknown$1()).or(string$1().transform((v) => JSON.parse(v))).optional(),
|
|
218306
218407
|
createdAt: date$1()
|
|
218307
218408
|
});
|
|
218308
218409
|
object({
|
|
@@ -218340,7 +218441,7 @@ object({
|
|
|
218340
218441
|
id: string$1().default(generateId$1),
|
|
218341
218442
|
organizationId: string$1(),
|
|
218342
218443
|
role: string$1(),
|
|
218343
|
-
permission: record$
|
|
218444
|
+
permission: record$7(string$1(), array(string$1())),
|
|
218344
218445
|
createdAt: date$1().default(() => /* @__PURE__ */ new Date()),
|
|
218345
218446
|
updatedAt: date$1().optional()
|
|
218346
218447
|
});
|
|
@@ -219108,7 +219209,7 @@ const removeTeamMember = (options) => createAuthEndpoint("/organization/remove-t
|
|
|
219108
219209
|
function parseRoles(roles) {
|
|
219109
219210
|
return Array.isArray(roles) ? roles.join(",") : roles;
|
|
219110
219211
|
}
|
|
219111
|
-
const createHasPermissionBodySchema = object({ organizationId: string$1().optional() }).and(xor([object({ permission: record$
|
|
219212
|
+
const createHasPermissionBodySchema = object({ organizationId: string$1().optional() }).and(xor([object({ permission: record$7(string$1(), array(string$1())) }), object({ permissions: record$7(string$1(), array(string$1())) })]));
|
|
219112
219213
|
const createHasPermission = (options) => {
|
|
219113
219214
|
return createAuthEndpoint("/organization/has-permission", {
|
|
219114
219215
|
method: "POST",
|