@agimon-ai/po-cloudflare 0.0.2-alpha.7 → 0.0.2-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -241
- package/container/Dockerfile +27 -0
- package/dist/{BrowserWebSocketTransport-C2SC2VeJ.js → BrowserWebSocketTransport-B4heNdrp.js} +1 -1
- package/dist/{NodeWebSocketTransport-CKilJesa.js → NodeWebSocketTransport-BCiOXUEz.js} +2 -2
- package/dist/{abort-signals-Bkmp_euQ.js → abort-signals-C8CttjsR.js} +1 -1
- package/dist/agent-CEqvgRl6.js +3878 -0
- package/dist/{anthropic-messages-CkYm8M3V.js → anthropic-messages-DCLLLNuM.js} +292 -64
- package/dist/apiContracts-DaOpUHnu.js +1719 -0
- package/dist/{approval-CQ3ZuoTy.js → approval-DXPV7Vm5.js} +15 -2
- package/dist/{approvalPrompt-CylV3C84.js → approvalPrompt-CBaxjb_g.js} +1 -2
- package/dist/approvalSession-C9bg7tPo.js +132 -0
- package/dist/artifactFiles-5KwXIxYf.js +1 -0
- package/dist/artifactsApi-bg2wMYWg.js +200 -0
- package/dist/assets/assets/{CodeEditorView-D4q94XH-.js → CodeEditorView-CfrVwzvL.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-C85p4OYZ.js → abnfDiagram-WEYOIA3C-B80H4Cm4.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-Bt_NOdwE.js → architecture-WOLXFQ4H-Dr4hXaql.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DzH1GKMm.js → architectureDiagram-ZHVYKT53-DWyt7oXu.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-BmWU34j3.js → blockDiagram-RJAE7QA3-OxNTLdmi.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-BpGOdOuo.js → c4Diagram-XDPPPE54-B4YtcH0s.js} +2 -2
- package/dist/assets/assets/channel-bXj00dGj.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-AycP1cXU.js → chunk-2E7WHVMD-CD6FFMOX.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-DX-DrZzc.js → chunk-4EMNKR2T-CEIoX5oo.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-BdwnLWzI.js → chunk-55XCU76K-CD3t0IJi.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-D-RBAwAn.js → chunk-7S6XSTFO-Cyt75UCF.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB-CCxNNhKs.js → chunk-AQDTSKZB-DRtqYBj9.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-D2hGwWm1.js → chunk-DSNLSHJZ-C8Fx2F8s.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-BPi-cqGh.js → chunk-HAGFOTED-wOLWRRnd.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D-r1ChHT.js → chunk-HNE4Q36P-CurJg4Hf.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-RgmZCAdn.js → chunk-NQOKRVIF-Dzcc5nOG.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-B-Hul-rZ.js → chunk-UHW7PFBP-B_ULFf2h.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-D1zlXCt8.js → chunk-VQ5W62QI-DH0VY4_p.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-CtjIbVJn.js → chunk-WQQL4CDK-DNxfLyXM.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-B2bMWgN9.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-BQOgXG99.js → chunk-YZO67HFG-COuMUh9U.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-CsDDxmqv.js → chunk-ZAUX2LTX-BJrCnubF.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-deyEYMjx.js → chunk-ZCHMQSOR-D1lFKPtk.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-DVJHeFlq.js → classDiagram-v2-4MYWR3UA-DfZIbyVL.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-ipcN28Fw.js → cose-bilkent-JH36ORCC-CpGhv9_S.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-s9ZkPF55.js → cynefin-EF2NZ3EQ-Cxdc6nQl.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-Ksr2qjsS.js → cynefinDiagram-WF24UDRP-qoj0w3lp.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-2_Wl-XEW.js → dagre-NK4GIZVX-DL6QbNDS.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-C7PeyT7l.js → diagram-CBK3MWTC-CJB3jq1_.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-DPYzeKdj.js → diagram-I5XIIV2D-4cPOxCxF.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-DHw1cAmn.js → diagram-ODIL2UCW-BG3-jAxE.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-C2wA8i-1.js → diagram-PFBEJUXE-Bx8dFaXj.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-tM3moCIs.js → diagram-RJA3I4VV-CUUHND91.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-CInyJxF7.js → diagram-TYUNFSNR-BDMoN-kr.js} +2 -2
- package/dist/assets/assets/{dist-BDqjNLTC.js → dist-5AxNm-uy.js} +2 -2
- package/dist/assets/assets/{dist-hpZIQBl4.js → dist-9_Rmyj2I.js} +2 -2
- package/dist/assets/assets/{dist-DSLprmec.js → dist-BE3CLKv4.js} +2 -2
- package/dist/assets/assets/{dist-BASEd5LC.js → dist-BfNCu-7x.js} +2 -2
- package/dist/assets/assets/{dist-BuYBvf4F.js → dist-BjI0b36Z.js} +2 -2
- package/dist/assets/assets/{dist-DUS0U_ge.js → dist-CM7b5P9a.js} +2 -2
- package/dist/assets/assets/{dist-CeOy6PjJ.js → dist-Ccxb9U1G.js} +2 -2
- package/dist/assets/assets/{dist-ChXoRSS6.js → dist-CjCWP21A.js} +2 -2
- package/dist/assets/assets/{dist-07dRlnp1.js → dist-DSTAktnR.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-4nZgqaSt.js → ebnfDiagram-V4P3TTPT-BivOMXZb.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-nFh54c1Q.js → elk-QONTBCTQ-CrJ1Qpy_.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-CIQ0_IgZ.js → erDiagram-KYQIGQAA-w9Bqp4sV.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-Cw4BlbYP.js → eventmodeling-K75KTNOO-CBjFM3kV.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-C6Fnfgm0.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-C97qoUpX.js → ganttDiagram-R7GPNTJY-CsWtGaqD.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-B8HWVkEX.js → gitGraph-VSP46ZUC-DsBSV9_h.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-B4Js56_8.js → gitGraphDiagram-PDYL7XHY-D5GxuYHW.js} +2 -2
- package/dist/assets/assets/index-CNDyKUDF.css +1 -0
- package/dist/assets/assets/index-DWDYnZsq.js +256 -0
- package/dist/assets/assets/{info-OHQRW6UA-A4qythhA.js → info-OHQRW6UA-C7x5dSJu.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-BSNwG9yI.js → infoDiagram-MVDRKAX5-CwpI-uAa.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-D4gU-3RA.js → ishikawaDiagram-HPEHV2GE-DAa7J5G6.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CxxDrw7o.js → journeyDiagram-BOSHW7O7-BmiZnxE_.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DUxQv3v0.js → kanban-definition-FNSA4HC5-DUR_mA3L.js} +2 -2
- package/dist/assets/assets/{line-BKODXUmk.js → line-DHY49wSg.js} +2 -2
- package/dist/assets/assets/{linear-Cm5uyUun.js → linear-pTo-a9xT.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-CYst2kCg.js → mermaid-parser.core-DMg3hN3T.js} +4 -4
- package/dist/assets/assets/{mermaid.core-B4Qq8SMa.js → mermaid.core-DKtPCltA.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-CZFvUTIM.js → mindmap-definition-6OY57UG3-DwTkFbnV.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DZMlaiuy.js → packet-JDAUHWVQ-Tu9TrQ1x.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-BjM668dT.js → pegDiagram-ECIUJNBX-B7My4tsz.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-CmpJ6vb8.js → pie-XZMESJXO-QPQm5Gdx.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-BCA9DCDe.js → pieDiagram-GNMPY74T-Bv-zAD_z.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-CUnpC-Rl.js → quadrantDiagram-D57K4MC3-HTjoGQPd.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-C9x42-KP.js → radar-ABXABTNO-LDBlEoFo.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-CLvHKrsC.js → railroad-I3PHUGI6-Dy3_ymgZ.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-B0LGF3gx.js → railroad-abnf-LNEFI6M7-QLVvYs6e.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-SKnYapAj.js → railroad-ebnf-DWYD2UWJ-CFRlv9a8.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-wsUpPloN.js → railroad-peg-JR7BVNR7-BOlq3d9c.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-BYJtosKO.js → railroadDiagram-Y72NRBL7-Chg32HoU.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-YYdoWMnl.js → requirementDiagram-EQYSW5RA-VenIs_eg.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-DtZyCTdM.js → sankeyDiagram-SY24JHO5-BdByqMKF.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-BPE8f413.js → sequenceDiagram-BLEHNHQU-D3Do4GJE.js} +2 -2
- package/dist/assets/assets/{src-BNTOLq2G.js → src-DmfN-DA-.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-9f8Ow4Fl.js → stateDiagram-v2-A6IESKWZ-CZkRbPlf.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-DdAEbxGp.js → swimlanes-B3ENRKFQ-DRTdF9AF.js} +2 -2
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-BYr_4JUb.js +9 -0
- package/dist/assets/assets/{timeline-definition-JXYKGLGB-DJNGd2mU.js → timeline-definition-JXYKGLGB-BVcuws_M.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-BHONoCCw.js → treeView-D4JQ5SDB-BLtOJGqO.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-pOaYkxq7.js → treemap-SAJKECNS-Dn3BWJ4v.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C3eDYL9v.js → usecaseDiagram-WPOLBNNX-CBExIKDY.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-CJi1xfsR.js → vennDiagram-Q3Y3IDCW-C6FIx2L4.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-CEy4w7Ir.js → wardley-7MLQ67FV-Cjj2xSBp.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-DfdLMMpN.js → wardleyDiagram-IVAIDKWA-sQPCBCFK.js} +2 -2
- package/dist/assets/assets/{webpack-v8XGbQTa.js → webpack-DDCA0aDL.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-Aw-Ix4uC.js → xychartDiagram-4URNHDU4-bZ4rifSw.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +8 -2
- package/dist/assets/mascot/cta-provider.png +0 -0
- package/dist/assets/mascot/cta-sign-in.png +0 -0
- package/dist/assets/plugins/assets/base-GzIOAd-t.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/day-bottom-left-5um-x02r-5um-x02r.webp +0 -0
- package/dist/assets/plugins/assets/day-grain-CvEuNhlI-CvEuNhlI.webp +0 -0
- package/dist/assets/plugins/assets/day-right-C9W-XtjV-C9W-XtjV.webp +0 -0
- package/dist/assets/plugins/assets/day-top-left-B544Eq9J-B544Eq9J.webp +0 -0
- package/dist/assets/plugins/assets/night-bottom-left-N03ST5Uz-N03ST5Uz.webp +0 -0
- package/dist/assets/plugins/assets/night-grain-BY9q-tNN-BY9q-tNN.webp +0 -0
- package/dist/assets/plugins/assets/night-right-C6Denrqj-C6Denrqj.webp +0 -0
- package/dist/assets/plugins/assets/night-top-left-KOou6UxY-KOou6UxY.webp +0 -0
- package/dist/assets/plugins/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-D8FIos2q.js +1 -0
- package/dist/assets/plugins/chunks/schemas-DVQ8BvvP.js +55 -0
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DxS_uibk.js +2 -0
- package/dist/assets/plugins/slots/artifacts.50b639bb-Cp37TAkd.js +1 -0
- package/dist/assets/plugins/slots/author.ea449ace-Ds9Y-tjN.js +93 -0
- package/dist/assets/plugins/slots/autocompact.6f428144-CDZpN7I7.js +1 -0
- package/dist/assets/plugins/slots/backdrop-bamboo.6e4c928d-qbifuMc6.js +1 -0
- package/dist/assets/plugins/slots/browse.fa1f1a50-CVYvo1M5.js +1 -0
- package/dist/assets/plugins/slots/builtin-tools.75108f21-Cq1ljoL-.js +7 -0
- package/dist/assets/plugins/slots/calendar.d8b70190-BBjpOs1v.js +2 -0
- package/dist/assets/plugins/slots/codemode.c58fb583-DOR6OR7R.js +11 -0
- package/dist/assets/plugins/slots/domain.753f9f92-CJrXxig9.js +1 -0
- package/dist/assets/plugins/slots/edit.804fec90-BFF7_xN9.js +7 -0
- package/dist/assets/plugins/slots/files.66ffc636-CzOlZrRm.js +2 -0
- package/dist/assets/plugins/slots/goal.45dffa01-BtQBp3sw.js +1 -0
- package/dist/assets/plugins/slots/grep.98262cff-9bUDfjyT.js +1 -0
- package/dist/assets/plugins/slots/help.5fbd20f7-B4-y6gYK.js +3 -0
- package/dist/assets/plugins/slots/log.cb964209-BRPa3cVs.js +4 -0
- package/dist/assets/plugins/slots/mcp.82cc1ff5-CFtzPkPC.js +55 -0
- package/dist/assets/plugins/slots/plan.3852ba52-CH59Ff49.js +3 -0
- package/dist/assets/plugins/slots/profile.ab16dcec-0e9fWWyE.js +1 -0
- package/dist/assets/plugins/slots/prompts.ae48c07a-BTqYnBX5.js +38 -0
- package/dist/assets/plugins/slots/read.4560591a-C7fMXDEH.js +1 -0
- package/dist/assets/plugins/slots/runner.6e494d59-CqrpqhW9.js +9 -0
- package/dist/assets/plugins/slots/scaffold.d87a6ee0-9qY5gkYW.js +1 -0
- package/dist/assets/plugins/slots/session-mcp.2be84084-Cf0cqopp.js +2 -0
- package/dist/assets/plugins/slots/sessions.6f47cb4c-B1_eqPJQ.js +1 -0
- package/dist/assets/plugins/slots/skill.62a0a1b3-D-SKX8iw.js +4 -0
- package/dist/assets/plugins/slots/space.65a27e5a-fbLHc-DX.js +1 -0
- package/dist/assets/plugins/slots/subagents.8bb9992c-Cm_YMEnn.js +7 -0
- package/dist/assets/plugins/slots/template-advanced.59f3f98a-L0WOM4JT.js +1 -0
- package/dist/assets/plugins/slots/template-desktop.0f0b8491-By9BZlaL.js +7 -0
- package/dist/assets/plugins/slots/template-elegant.0e3b0acf-El05x7HK.js +1 -0
- package/dist/assets/plugins/slots/vault.3cbfcdc3-DpU_65Wy.js +1 -0
- package/dist/assets/plugins/slots/voice.a952113d-CvcuL__m.js +1 -0
- package/dist/assets/plugins/slots/web-search.65013836-NVh9fdvE.js +1 -0
- package/dist/assets/plugins/slots/workflows.cbc5c5c0-OLKSY9PE.js +16 -0
- package/dist/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +58 -4
- package/dist/{atomicJson-wczZBXQP.js → atomicJson-XYtxz032.js} +2 -3
- package/dist/{azure-openai-config-DHMgdIa-.js → azure-openai-config-S-quxzTC.js} +2 -2
- package/dist/{azure-openai-responses-CTgRdQ4m.js → azure-openai-responses-DdpV5zh7.js} +13 -13
- package/dist/backgroundWork-Bv0ib_lY.js +49 -0
- package/dist/{layeredConfig-xmTHGrw8.js → browser-DwY5dXHX.js} +21 -983
- package/dist/{browser-EJ5_ffnN.js → browser-IsHIcvFg.js} +1 -1
- package/dist/browser-ks_k-6KA.js +36 -0
- package/dist/calendarSetup-CI3AACVo.js +3892 -0
- package/dist/childProcess-Cv8rJuUf.js +32 -0
- package/dist/childSession-BrDCrNtL.js +25 -0
- package/dist/{classifier-shared-jXm-plIK.js → classifier-shared-DFprgrML.js} +5 -5
- package/dist/{cloudflare-workers-ai-system-one-B0wH6HU5.js → cloudflare-workers-ai-system-one-B0MD19yZ.js} +3 -3
- package/dist/{codemode-CFVDmyGm.js → codemode-LpcMFMYM.js} +1 -1
- package/dist/coerce-DM9YrILC.js +13 -0
- package/dist/config-DeWkdjj7.js +1372 -0
- package/dist/contextContributions-C1bsEJef.js +13 -0
- package/dist/contracts-CW8o6Xyi.js +19 -0
- package/dist/contracts-WRa9e98H.js +40 -0
- package/dist/cordisHost-_-jtkneB.js +25 -0
- package/dist/delegation-B2rBgv8A.js +100 -0
- package/dist/{diagnostics-DPTP-yrt.js → diagnostics-BY5LXbHJ.js} +2 -2
- package/dist/{dist-BVBi6VMV.js → dist-B2ArMqge.js} +1 -1
- package/dist/{server-Cg07O2W6.js → dist-C6IqjC-m.js} +1 -546
- package/dist/{dist-PDDFdqDX.js → dist-CDz5dYMj.js} +1 -1
- package/dist/{dist-Dvx5mlIR.js → dist-kgi2Ix1y.js} +16 -3
- package/dist/{emscripten-module.cloudflare-D4Bc9Ykz.js → emscripten-module.cloudflare-B4fhfquU.js} +1 -1
- package/dist/{env-api-keys-CAnjjnsR.js → env-api-keys-BgCPpU9t.js} +1 -1
- package/dist/{error-body-DQZRsyL5.js → error-body-CeumezyR.js} +26 -4
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/{remoteMcp-DqE2xFWS.js → exports-BEEgtkya.js} +1588 -714
- package/dist/{exports-LjvSY7Y6.js → exports-CBp_9dVk.js} +47 -28
- package/dist/exports-CRjRvvX0.js +34 -0
- package/dist/exports-Cg0wxflf.js +1 -0
- package/dist/exports-Ct56PRB9.js +46 -0
- package/dist/extensionFile-B940JOEn.js +121 -0
- package/dist/{factory-Cs8iaUtc.js → factory-BU0cZY0I.js} +1 -1
- package/dist/{github-copilot-headers-DpQQAh-s.js → github-copilot-headers-Cq9pnpl2.js} +1 -1
- package/dist/{google-generative-ai-BTTOo5RQ.js → google-generative-ai-DmbUlCGv.js} +9 -9
- package/dist/{google-shared-S7bqOccz.js → google-shared-Diz2uk39.js} +6 -6
- package/dist/{google-vertex-BcMU_DMb.js → google-vertex-CGCpI9Po.js} +10 -10
- package/dist/{domains-B6Ae4swm.js → harnessState-Df--jB5z.js} +162 -42
- package/dist/{harnessStore-Ccbia9_u.js → harnessStore-DInwiLYb.js} +4 -5
- package/dist/{hash-B3RRpLS2.js → hash-IQBoLxOB.js} +1 -1
- package/dist/{headers-BEuxFxDI.js → headers-Dkgiqogr.js} +1 -1
- package/dist/help-C9UGKetC.js +100 -0
- package/dist/home-kwZFHqOx.js +60 -0
- package/dist/http-BekstF5S.js +64 -0
- package/dist/hubChannel-Dldv3EEb.js +32 -0
- package/dist/hubRevisions-BPoC6quI.js +364 -0
- package/dist/{identity-BIeAyilV.js → identity-BzB1N-Sn.js} +3 -3
- package/dist/index.edge-BiVQ9LoZ.js +198 -0
- package/dist/index.edge-CSGx6QOL.js +56 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-CzoLWbyl.js +238 -0
- package/dist/index.edge-D1biKw71.js +946 -0
- package/dist/index.edge-D2RirEwK.js +14 -0
- package/dist/iso-BGFmgtky.js +27 -0
- package/dist/{kysely-adapter-D51abb3q.js → kysely-adapter-D8KUrWxm.js} +1 -1
- package/dist/liquid.browser-1BcykmIN.js +4596 -0
- package/dist/manualTranscription-DN56fzgj.js +96 -0
- package/dist/{mcpProjection-BXiECnW0.js → mcpProjection-D2U50Pel.js} +1 -2
- package/dist/meta-CVgfTHQP.js +1030 -0
- package/dist/migrations-DJBPDwSR.js +32 -0
- package/dist/{mistral-conversations-DN8VSERk.js → mistral-conversations-Bv_m1MRF.js} +12 -12
- package/dist/modeDefinition-Di95_IiU.js +44 -0
- package/dist/{models-D6d73jcW.js → models-D50yN8Ag.js} +41 -46
- package/dist/{node-UuMT2C3q.js → node-B4kSjHeD.js} +2 -2
- package/dist/{node-DytJOfYf.js → node-CBLSc-YH.js} +1 -1
- package/dist/notification-DjxbNoMR.js +143 -0
- package/dist/{openai-bt3ZRBZv.js → openai-D6Q-l6hT.js} +187 -187
- package/dist/{openai-codex-responses-cL36x0ml.js → openai-codex-responses-BnoiTqYV.js} +21 -25
- package/dist/{openai-completions-BWsTNYyT.js → openai-completions-C68qs5rI.js} +26 -19
- package/dist/{openai-decisions-Dfn_KgQd.js → openai-decisions-BSxU_aoV.js} +3 -3
- package/dist/{openai-responses-aa0LoyCJ.js → openai-responses-D6hXen-k.js} +17 -15
- package/dist/{openai-responses-shared-H-jH5SlM.js → openai-responses-shared-BD8K7FAC.js} +7 -7
- package/dist/{openrouter-cost-D99Qqcs6.js → openrouter-cost-BPam8wyW.js} +1 -1
- package/dist/{openrouter-images-BpwVpALC.js → openrouter-images-DylXiHy7.js} +7 -7
- package/dist/{hubChannel-Dn5NMpvu.js → packageApi-DYkaxP59.js} +33 -42
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/{pi-messages-BHAIkYBj.js → pi-messages-DaIlYYlO.js} +6 -6
- package/dist/piConfig-5tRPD0ov.js +126 -0
- package/dist/piSettings-ekBG5OeF.js +1 -0
- package/dist/platform-CQahdzpG.js +138 -0
- package/dist/pluginCatalog-BAALyedS.js +30 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-7_gVUeM9.js +1 -0
- package/dist/pluginProtocol-DVIfJnav.js +135 -0
- package/dist/portableConfig-0tnk9anb.js +49 -0
- package/dist/presetConfig-n-oiNd3h.js +541 -0
- package/dist/profileSources-D1rymC97.js +537 -0
- package/dist/{protocol-DUeE0Q8z.js → protocol-Cri0GpZR.js} +1 -2
- package/dist/{provider-env-DgfpjgTa.js → provider-env-DJb40UF7.js} +2 -2
- package/dist/{provider-retry-ChD-K2Gv.js → provider-retry-jpvs7ixx.js} +1 -1
- package/dist/{puppeteer-cloudflare-B-GHrPGO.js → puppeteer-cloudflare-D4l8smMS.js} +3 -3
- package/dist/{server-BWJmxCrm.js → readiness-Ydw5zrKy.js} +4 -169
- package/dist/{rolldown-runtime-B-lAHAz2.js → rolldown-runtime-DbVrKiKs.js} +1 -1
- package/dist/{sanitize-unicode-Dl4ROF7y.js → sanitize-unicode-B1ZFaEtf.js} +1 -1
- package/dist/scaffoldRegistry-CeFe3Pf0.js +1240 -0
- package/dist/{schemas-Vj8-rCR4.js → schemas-D2dRon18.js} +1901 -53
- package/dist/server-AKM07WcM.js +466 -0
- package/dist/server-B0tM5Ygf.js +1300 -0
- package/dist/server-B8-vStCx.js +1116 -0
- package/dist/server-BAbdiL38.js +15108 -0
- package/dist/server-BCZ_R3kX.js +3326 -0
- package/dist/server-BGKAeB3M.js +492 -0
- package/dist/server-BIQhg1jS.js +26985 -0
- package/dist/server-BcPD_6a2.js +1533 -0
- package/dist/server-BeoA0QB-.js +580 -0
- package/dist/server-BsgvOpBF.js +24 -0
- package/dist/server-BtnOqSB5.js +156 -0
- package/dist/server-C-HBjWRo.js +2800 -0
- package/dist/{server-CWg0m_wq.js → server-C0Lt6nTt.js} +269 -1062
- package/dist/server-C8NPfG1H.js +148 -0
- package/dist/server-CKkaxOc0.js +978 -0
- package/dist/server-CMaWF5UA.js +1379 -0
- package/dist/server-CQPI6jIa.js +295 -0
- package/dist/{server-BhYE7Vqk.js → server-CQmb0lYL.js} +114 -176
- package/dist/server-CWR34Vx6.js +1884 -0
- package/dist/server-CZiAy2v5.js +641 -0
- package/dist/server-Cjtr0oVJ.js +584 -0
- package/dist/server-CkJQJ3Oo.js +571 -0
- package/dist/server-ClQQGtsI.js +679 -0
- package/dist/server-Cy2FhGBm.js +1744 -0
- package/dist/server-D8yEblCB.js +24 -0
- package/dist/server-DF0YIUeI.js +9603 -0
- package/dist/server-DRFESCq1.js +1527 -0
- package/dist/{server-zkcrP99W.js → server-Df1defzp.js} +89 -87
- package/dist/server-DgZd_TuT.js +189 -0
- package/dist/server-Dkc9Kth2.js +1830 -0
- package/dist/server-DlRePYOB.js +343 -0
- package/dist/{server-BpPEzRes.js → server-_HZm8wEC.js} +654 -745
- package/dist/{server-yABhJa2K.js → server-_jWkMESg.js} +60 -39
- package/dist/server-lgV6liTt.js +140 -0
- package/dist/server-nHPXbRDA.js +742 -0
- package/dist/server-p7qANgrf.js +877 -0
- package/dist/server-vhmQi3co.js +112 -0
- package/dist/{server-SA0dsIJ2.js → server-w1aKMZOs.js} +3 -10
- package/dist/serverPlugin-4nI5J6Zt.js +39622 -0
- package/dist/session-resources-BvR3cwiH.js +10 -0
- package/dist/{sessionConfig-DgnPcGBu.js → sessionConfig-UMlgu98q.js} +926 -844
- package/dist/{simple-options-DWrW31_K.js → simple-options-Cp5p46f9.js} +13 -6
- package/dist/space-C3Wnli1l.js +92 -0
- package/dist/sse-XlzXs1es.js +151 -0
- package/dist/{streaming-json-t4rzNHEp.js → streaming-json-CZyrX_Ux.js} +6 -6
- package/dist/{system-one-shared-DLVLdzYL.js → system-one-shared-Du6bka0h.js} +3 -3
- package/dist/{notification-valMY1zH.js → telemetry-CrTcxeA5.js} +2 -93
- package/dist/{transform-messages-CjTSwW9q.js → transform-messages-CBj9g2mx.js} +3 -16
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-BXjfQYeU.js → type-DppaYz6F.js} +955 -1187
- package/dist/type-yokaDI_F.js +7 -0
- package/dist/{typesafe-system-one-DBVcjcUQ.js → typesafe-system-one-C7YFgvrX.js} +3 -3
- package/dist/{uuid-mkNGilLv.js → uuid-BVI0BZsx.js} +1 -1
- package/dist/{validation-BLnxgJU_.js → validation-QWuk6kwJ.js} +79 -74
- package/dist/vaultSettings-Bq8wkbDv.js +292 -0
- package/dist/voiceTools-BdJyfzwB.js +246 -0
- package/dist/web-B2sdV-F2.js +4 -0
- package/dist/worker.js +97821 -72579
- package/dist/workflow-DTCt4n6k.js +171 -0
- package/dist/workflowServices-RlswfHWp.js +300 -0
- package/package.json +55 -25
- package/wrangler.jsonc +16 -3
- package/dist/apiContracts-sG5b90Qa.js +0 -4451
- package/dist/assets/assets/channel-BOT7In0s.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-Dp9-QbR6.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-B9D9uWwn.js +0 -1
- package/dist/assets/assets/index-BlPEYpuN.css +0 -1
- package/dist/assets/assets/index-DS9w_Q1B.js +0 -155
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-CyUKtW7v.js +0 -9
- package/dist/assets/plugins/assets/base-DyDpY0zD.css +0 -2
- package/dist/assets/plugins/chunks/po-web-runtime-4JiBsb_c.js +0 -1
- package/dist/assets/plugins/slots/approval.09e72f36-DwFz-UMh.js +0 -2
- package/dist/assets/plugins/slots/artifacts.50b639bb-CUtFC806.js +0 -1
- package/dist/assets/plugins/slots/builtin-tools.75108f21-B69GLfY_.js +0 -7
- package/dist/assets/plugins/slots/codemode.c58fb583-C0Gmb7_s.js +0 -9
- package/dist/assets/plugins/slots/domain.753f9f92-BTBYRLkE.js +0 -1
- package/dist/assets/plugins/slots/mcp.82cc1ff5-Ecacjn0a.js +0 -109
- package/dist/assets/plugins/slots/profile.ab16dcec-DIVXNHmh.js +0 -1
- package/dist/assets/plugins/slots/skill.62a0a1b3-BNr7DmPH.js +0 -4
- package/dist/backgroundWork-CSpsJ-Rg.js +0 -25
- package/dist/contextProjection-DDIQRgN4.js +0 -188
- package/dist/extensionFile-CacKVegY.js +0 -409
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-Ch6hdYYe.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-CCnwAjfF.js +0 -333
- package/dist/majorModes-DNQbxkpt.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-Bs2_X_dK.js +0 -16
- package/dist/platformFiles-CCGujP9o.js +0 -39
- package/dist/server-5hLs7M43.js +0 -656
- package/dist/server-B3iqBHOP.js +0 -118
- package/dist/server-Dv0EKLwc.js +0 -108
- package/dist/server-Y5A21sJf.js +0 -591
- package/dist/server-a1K226XK.js +0 -279
- package/dist/serverPlugin-DUc4gGep.js +0 -7279
- package/dist/value-Bd477RDX.js +0 -2247
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./platform-
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
1
|
+
import { l as createSerialRunner } from "./serverPlugin-4nI5J6Zt.js";
|
|
2
|
+
import "./platform-CQahdzpG.js";
|
|
3
|
+
import "./sessionConfig-UMlgu98q.js";
|
|
4
|
+
import "./config-DeWkdjj7.js";
|
|
5
|
+
import "./atomicJson-XYtxz032.js";
|
|
6
|
+
import "./harnessState-Df--jB5z.js";
|
|
7
|
+
import "./piConfig-5tRPD0ov.js";
|
|
8
|
+
import "./presetConfig-n-oiNd3h.js";
|
|
9
|
+
import "./harnessStore-DInwiLYb.js";
|
|
9
10
|
import "node:path";
|
|
11
|
+
//#region ../../foundations/po-config/src/services/init/templates.ts
|
|
12
|
+
/** Personal-only: a repository pin would override the layout the person picks during onboarding. */
|
|
13
|
+
const WEB_TEMPLATE_SEED = `# Default web layout, resolved against the installed web template packages.
|
|
14
|
+
web:
|
|
15
|
+
template: po-template-elegant
|
|
16
|
+
|
|
17
|
+
`;
|
|
10
18
|
({
|
|
11
19
|
"config.yaml": `projectTrust: ask
|
|
12
20
|
|
|
21
|
+
${WEB_TEMPLATE_SEED}
|
|
13
22
|
# Workspace declarations belong in the repository's .po/workspaces.yaml, not this personal file.
|
|
14
23
|
# Entries accept name, path (default .), alias, instructions and free-form metadata.
|
|
15
24
|
# Autonomous voice is opt-in and uses an explicitly configured Pi model.
|
|
@@ -38,11 +47,11 @@ import "node:path";
|
|
|
38
47
|
# voice: Samantha
|
|
39
48
|
# rate: 190
|
|
40
49
|
`,
|
|
41
|
-
"
|
|
42
|
-
# and hook groups.
|
|
50
|
+
"presets.yaml": `# A layer is a reusable named bundle of packages, built-in or local extensions,
|
|
51
|
+
# and hook groups. Presets below choose which layers load together for a session.
|
|
43
52
|
#
|
|
44
|
-
# Layers and
|
|
45
|
-
# .po/
|
|
53
|
+
# Layers and presets defined here apply to every repository. A repository's own
|
|
54
|
+
# .po/presets.yaml is read after this file and replaces any layer or preset of the
|
|
46
55
|
# same name, so a repository can override one entry without restating the rest.
|
|
47
56
|
#
|
|
48
57
|
# Add a layer by giving it a unique name under layers. Local Pi scripts belong
|
|
@@ -56,11 +65,11 @@ import "node:path";
|
|
|
56
65
|
# ../ loads a custom script or extension directory. A bare package loads its
|
|
57
66
|
# ordered package.json pi.extensions entries, while an exported subpath selects
|
|
58
67
|
# one adapter. Relative paths resolve beside this file here (~/.po), or
|
|
59
|
-
# from the repository root in .po/
|
|
68
|
+
# from the repository root in .po/presets.yaml.
|
|
60
69
|
#
|
|
61
70
|
# Use a package mapping when that package accepts configuration. Configuration
|
|
62
71
|
# belongs under the package entry that consumes it, not beside packages.
|
|
63
|
-
# The top-level default bundle loads before every
|
|
72
|
+
# The top-level default bundle loads before every preset. Replace this whole
|
|
64
73
|
# packages list to customize the distribution defaults. Po core packages
|
|
65
74
|
# remain active independently of this list.
|
|
66
75
|
default:
|
|
@@ -74,29 +83,32 @@ default:
|
|
|
74
83
|
- '@agimon-ai/po-grep'
|
|
75
84
|
- '@agimon-ai/po-edit'
|
|
76
85
|
- '@agimon-ai/po-file-edit'
|
|
86
|
+
- '@agimon-ai/po-scaffold'
|
|
77
87
|
- '@agimon-ai/po-autocompact'
|
|
88
|
+
- '@agimon-ai/po-space'
|
|
78
89
|
- '@agimon-ai/po-plan'
|
|
79
|
-
- '@agimon-ai/po-author'
|
|
80
90
|
- '@agimon-ai/po-computer-use'
|
|
81
91
|
- '@agimon-ai/po-log'
|
|
82
92
|
- '@agimon-ai/po-mcp'
|
|
83
93
|
- '@agimon-ai/po-prompt'
|
|
84
94
|
- '@agimon-ai/po-template-advanced'
|
|
85
95
|
- '@agimon-ai/po-template-elegant'
|
|
96
|
+
- '@agimon-ai/po-template-desktop'
|
|
97
|
+
- '@agimon-ai/po-backdrop-bamboo'
|
|
86
98
|
layers:
|
|
87
|
-
# Durable scheduling. Keep this in the home default
|
|
99
|
+
# Durable scheduling. Keep this in the home default preset.
|
|
88
100
|
calendar:
|
|
89
101
|
packages:
|
|
90
102
|
- '@agimon-ai/po-calendar'
|
|
91
103
|
# Workflow graphs, launch, recovery and the
|
|
92
104
|
# workflow/dynamicWorkflow code-mode namespaces.
|
|
93
|
-
# Remove 'workflow' from a
|
|
105
|
+
# Remove 'workflow' from a preset to turn it off there.
|
|
94
106
|
workflow:
|
|
95
107
|
packages:
|
|
96
108
|
- '@agimon-ai/po-workflow'
|
|
97
109
|
coding:
|
|
98
110
|
packages:
|
|
99
|
-
- '@agimon-ai/po-
|
|
111
|
+
- '@agimon-ai/po-lint'
|
|
100
112
|
team:
|
|
101
113
|
packages:
|
|
102
114
|
- name: '@agimon-ai/po-team'
|
|
@@ -123,6 +135,7 @@ layers:
|
|
|
123
135
|
llm:
|
|
124
136
|
packages:
|
|
125
137
|
- '@agimon-ai/po-model-guidance'
|
|
138
|
+
- '@agimon-ai/po-gateway'
|
|
126
139
|
source-control:
|
|
127
140
|
packages:
|
|
128
141
|
- '@agimon-ai/po-git'
|
|
@@ -135,22 +148,28 @@ layers:
|
|
|
135
148
|
browser:
|
|
136
149
|
packages:
|
|
137
150
|
- '@agimon-ai/po-browse'
|
|
138
|
-
# A
|
|
139
|
-
# Add another entry under
|
|
140
|
-
# po --
|
|
141
|
-
|
|
142
|
-
|
|
151
|
+
# A preset explains when it should be used and names its ordered layers.
|
|
152
|
+
# Add another entry under preset, then select it with
|
|
153
|
+
# po --preset <name>. Change defaultPreset to make it the default.
|
|
154
|
+
defaultPreset: copilot
|
|
155
|
+
preset:
|
|
143
156
|
minimal:
|
|
144
|
-
description: Lean
|
|
157
|
+
description: Lean preset with Team delegation and persistent tasks.
|
|
145
158
|
layers: [team, task, llm, workflow, calendar]
|
|
146
159
|
copilot:
|
|
147
|
-
description: General-purpose coding
|
|
160
|
+
description: General-purpose coding preset with delegation, persistent tasks, supervised commands, and structured user feedback.
|
|
148
161
|
layers: [team, ask-user, task, sandbox, llm, source-control, design, image-gen, web-search, browser, coding, workflow, calendar]
|
|
162
|
+
assistant:
|
|
163
|
+
description: Everyday assistant with delegation, tasks, web research, browsing and calendar.
|
|
164
|
+
layers: [team, ask-user, task, llm, web-search, browser, calendar, workflow]
|
|
165
|
+
marketing:
|
|
166
|
+
description: Marketing work with research, browsing and image generation.
|
|
167
|
+
layers: [team, ask-user, task, llm, web-search, browser, image-gen, calendar, workflow]
|
|
149
168
|
examples:
|
|
150
|
-
description: Base
|
|
169
|
+
description: Base preset for the repository's plugin and workflow examples.
|
|
151
170
|
layers: [workflow]
|
|
152
171
|
# review:
|
|
153
|
-
# description: Focused review
|
|
172
|
+
# description: Focused review preset for inspecting changes and reporting risks.
|
|
154
173
|
# layers: [team, task, ask-user]
|
|
155
174
|
`,
|
|
156
175
|
"domains.yaml": `# Plugins are named once in this catalog, then selected by one or more domains.
|
|
@@ -231,6 +250,6 @@ profiles:
|
|
|
231
250
|
# Po Pi concatenates profile.md, SOUL.md, then AGENTS.md for the persona.
|
|
232
251
|
# Select one with: po --profile writer
|
|
233
252
|
`
|
|
234
|
-
})["config.yaml"];
|
|
253
|
+
})["config.yaml"].replace(WEB_TEMPLATE_SEED, "");
|
|
235
254
|
createSerialRunner();
|
|
236
255
|
//#endregion
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ht as requirePoHeadlessHost, mt as readPoHeadlessOwner, tt as PO_HEADLESS_HOST_SERVICE } from "./serverPlugin-4nI5J6Zt.js";
|
|
2
|
+
import { s as PO_MODE_CATALOG_SERVICE, u as requireModeCatalog } from "./validation-QWuk6kwJ.js";
|
|
3
|
+
//#region ../../foundations/po-mode/src/services/serverRegistration/index.ts
|
|
4
|
+
function serverModes(modes) {
|
|
5
|
+
return (context) => {
|
|
6
|
+
context.inject([PO_HEADLESS_HOST_SERVICE, PO_MODE_CATALOG_SERVICE], (child) => {
|
|
7
|
+
const agent = requirePoHeadlessHost(child);
|
|
8
|
+
const owner = readPoHeadlessOwner(child);
|
|
9
|
+
if (!owner) throw new Error("A mode must have descriptor-owned package identity");
|
|
10
|
+
const catalog = requireModeCatalog(child);
|
|
11
|
+
for (const mode of modes) {
|
|
12
|
+
const definition = "definition" in mode ? mode.definition : mode;
|
|
13
|
+
const handle = catalog.registerOwner({
|
|
14
|
+
...definition,
|
|
15
|
+
handleAction(id, args, execution) {
|
|
16
|
+
agent.assertActive(owner.packageName);
|
|
17
|
+
return definition.handleAction(id, args, {
|
|
18
|
+
...execution,
|
|
19
|
+
context: agent.context
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
child.effect(() => () => handle.dispose());
|
|
24
|
+
if ("definition" in mode) {
|
|
25
|
+
child.effect(() => () => mode.detach());
|
|
26
|
+
mode.attach(handle);
|
|
27
|
+
child.effect(() => agent.subscribeSelection(() => mode.publish()));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { serverModes as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./contracts-CW8o6Xyi.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { o as REMOTE_CONVERSATION_SESSION_PROVENANCE, r as COORDINATOR_SESSION_PROVENANCE } from "./hubChannel-Dldv3EEb.js";
|
|
2
|
+
import "./type-DppaYz6F.js";
|
|
3
|
+
const COORDINATOR_START_WINDOW_MS = 36e5;
|
|
4
|
+
function assertCoordinatorStartBudget(count) {
|
|
5
|
+
if (count >= 5) throw new Error(`A coordinator can start at most 5 sessions an hour.`);
|
|
6
|
+
}
|
|
7
|
+
function assertCoordinatorStartScope(callerWorkspaceId, homeWorkspaceId, workspace, hasCoordinator) {
|
|
8
|
+
if (workspace === void 0 || workspace.available === false || workspace.sandbox !== void 0) throw new Error("The target workspace is unavailable.");
|
|
9
|
+
if (workspace.id === callerWorkspaceId) return;
|
|
10
|
+
if (callerWorkspaceId === void 0 || callerWorkspaceId !== homeWorkspaceId || workspace.kind === "session") throw new Error("Only the home coordinator can target another workspace.");
|
|
11
|
+
if (hasCoordinator) throw new Error("This workspace has a coordinator. Ask it to start the session.");
|
|
12
|
+
}
|
|
13
|
+
const coordinates = (session) => session.sessionProvenance === COORDINATOR_SESSION_PROVENANCE;
|
|
14
|
+
const remote = (session) => session.sessionProvenance === REMOTE_CONVERSATION_SESSION_PROVENANCE;
|
|
15
|
+
/** The coordinator of the internal Home workspace. */
|
|
16
|
+
const home = (input, session) => coordinates(session) && session.workspaceId !== void 0 && input.workspaces.some((workspace) => workspace.id === session.workspaceId && workspace.kind === "session");
|
|
17
|
+
/** Home stands in for a workspace that has no live or dormant coordinator of its own. */
|
|
18
|
+
const homeFallback = (input, coordinator, peer) => {
|
|
19
|
+
if (!home(input, coordinator) || peer.workspaceId === void 0) return false;
|
|
20
|
+
const workspace = input.workspaces.find((entry) => entry.id === peer.workspaceId);
|
|
21
|
+
if (!workspace || workspace.kind === "session" || workspace.sandbox !== void 0 || workspace.available === false) return false;
|
|
22
|
+
return !input.sessions.some((session) => session.workspaceId === workspace.id && coordinates(session)) && !input.dormantSessions.some((record) => record.workspaceId === workspace.id && record.sessionProvenance === "coordinator" && !input.sessions.some((session) => session.id === record.sessionId));
|
|
23
|
+
};
|
|
24
|
+
/** Communication is symmetric. A message grant never grants lifecycle authority. */
|
|
25
|
+
const canSessionsCommunicate = (input) => {
|
|
26
|
+
const { source, target } = input;
|
|
27
|
+
if (source.id === target.id) return false;
|
|
28
|
+
if (source.parentSessionId === target.id || target.parentSessionId === source.id) return true;
|
|
29
|
+
if (remote(source) || remote(target)) return false;
|
|
30
|
+
if (input.mentioned === true) return true;
|
|
31
|
+
if (input.launched === true) return true;
|
|
32
|
+
if ((coordinates(source) || coordinates(target)) && source.workspaceId !== void 0 && source.workspaceId === target.workspaceId) return true;
|
|
33
|
+
if (coordinates(source) && coordinates(target) && (home(input, source) || home(input, target))) return true;
|
|
34
|
+
if (homeFallback(input, source, target) || homeFallback(input, target, source)) return true;
|
|
35
|
+
if (source.workspaceId !== void 0 && source.workspaceId === target.workspaceId && input.filesOverlap) return true;
|
|
36
|
+
return (source.groups ?? []).some((group) => target.groups?.includes(group) === true);
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../../foundations/po-session/src/services/sessionCoordination/index.ts
|
|
40
|
+
const FALLBACK_SLUG = "workspace";
|
|
41
|
+
/** Kebab-case from the workspace name, else its folder name. */
|
|
42
|
+
function workspaceSlug(workspace) {
|
|
43
|
+
return (workspace.name?.trim() || workspace.root.split(/[\\/]/u).filter(Boolean).pop() || "").toLowerCase().replace(/[^a-z0-9]+/gu, "-").replace(/^-+|-+$/gu, "") || FALLBACK_SLUG;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { canSessionsCommunicate as a, assertCoordinatorStartScope as i, COORDINATOR_START_WINDOW_MS as n, assertCoordinatorStartBudget as r, workspaceSlug as t };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { n as runCleanups } from "./serverPlugin-4nI5J6Zt.js";
|
|
2
|
+
//#region ../../core/po-core/src/extensions/extensionFile.ts
|
|
3
|
+
/**
|
|
4
|
+
* Identity helpers for folder-routed backend files, one per surface.
|
|
5
|
+
*
|
|
6
|
+
* A routed file's default export is its whole contract with the host, and
|
|
7
|
+
* nothing else validates it: the generated entry merges the path's identity in
|
|
8
|
+
* and hands the result to a contribution array, where an excess or misspelled
|
|
9
|
+
* key is invisible. These make the shape checkable at the point it is written,
|
|
10
|
+
* and give the factory form a typed context instead of an implicit any.
|
|
11
|
+
*
|
|
12
|
+
* Most return their argument unchanged, so the value is entirely in the
|
|
13
|
+
* position they check and the inference they supply. The two that do not,
|
|
14
|
+
* `defineTool` and `defineCommand`, add the discriminant the host reads to
|
|
15
|
+
* tell a portable contribution from a raw host declaration.
|
|
16
|
+
*/
|
|
17
|
+
/** Declares non-default route cardinality while preserving the routed surface's inferred host type. */
|
|
18
|
+
function defineRoutedContribution(file, _options) {
|
|
19
|
+
return file;
|
|
20
|
+
}
|
|
21
|
+
/** `resource/<name>.ts`. Declares one package resource. */
|
|
22
|
+
function defineResource(file) {
|
|
23
|
+
return file;
|
|
24
|
+
}
|
|
25
|
+
/** `tool-restriction/<name>.ts`. Declares one tool restriction. */
|
|
26
|
+
function defineToolRestriction(file) {
|
|
27
|
+
return file;
|
|
28
|
+
}
|
|
29
|
+
/** `tool/<name>.ts`. Adds the discriminant the contribution array expects. */
|
|
30
|
+
function defineTool(file) {
|
|
31
|
+
return typeof file === "function" ? (context) => ({
|
|
32
|
+
kind: "tool",
|
|
33
|
+
...file(context)
|
|
34
|
+
}) : {
|
|
35
|
+
kind: "tool",
|
|
36
|
+
...file
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/** `tool/<name>.server.ts`. A native headless tool, handed to the host untouched. */
|
|
40
|
+
function defineServerTool(file) {
|
|
41
|
+
return file;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* `root.ts`. Constructs one scope and names what its subtree shares.
|
|
45
|
+
*
|
|
46
|
+
* The answer to a package whose surfaces all read one per-mount object graph.
|
|
47
|
+
* The root builds that graph once, and every routed file beneath it receives
|
|
48
|
+
* it as `context.root`, so the package decomposes into a file per surface
|
|
49
|
+
* without either rebuilding the graph per file or reaching for a module-level
|
|
50
|
+
* singleton.
|
|
51
|
+
*
|
|
52
|
+
* `inject` names the contracts, from this package or another, that the level
|
|
53
|
+
* waits for before it builds this root and restarts with when they change.
|
|
54
|
+
*/
|
|
55
|
+
function defineRoot(file, options) {
|
|
56
|
+
return options?.inject === void 0 ? file : Object.assign(file, { inject: options.inject });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The contracts each level waits for: every contract injected by the roots that level builds or
|
|
60
|
+
* reuses, once each. A level none of whose roots inject anything is left out.
|
|
61
|
+
*/
|
|
62
|
+
function composeRootInjects(levels) {
|
|
63
|
+
const injects = {};
|
|
64
|
+
for (const [level, roots] of Object.entries(levels)) {
|
|
65
|
+
const contracts = new Map(roots.flatMap((root) => root.inject ?? []).map((contract) => [contract.name, contract]));
|
|
66
|
+
if (contracts.size > 0) injects[level] = [...contracts.values()];
|
|
67
|
+
}
|
|
68
|
+
return injects;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Folds every root in a scope chain into one set of lifecycle hooks.
|
|
72
|
+
*
|
|
73
|
+
* Start outermost first and tear down innermost first, which is the order the
|
|
74
|
+
* roots were constructed in and the only order in which an inner scope can
|
|
75
|
+
* still rely on its outer one while stopping.
|
|
76
|
+
*/
|
|
77
|
+
function composeRootHooks(...roots) {
|
|
78
|
+
const reversed = [...roots].reverse();
|
|
79
|
+
return {
|
|
80
|
+
async onStart(context) {
|
|
81
|
+
for (const root of roots) await root.onStart?.(context);
|
|
82
|
+
},
|
|
83
|
+
async onStop(context) {
|
|
84
|
+
await runCleanups(reversed.map((root) => () => root.onStop?.(context)), "Root stop failed.");
|
|
85
|
+
},
|
|
86
|
+
async onDispose(context) {
|
|
87
|
+
await runCleanups(reversed.map((root) => () => root.onDispose?.(context)), "Root cleanup failed.");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** `command/<name>.server.ts`. A native headless or portable Po command. */
|
|
92
|
+
function defineServerCommand(file) {
|
|
93
|
+
return file;
|
|
94
|
+
}
|
|
95
|
+
/** `command/<name>.ts`. Adds the discriminant the contribution array expects. */
|
|
96
|
+
function defineCommand(file) {
|
|
97
|
+
return typeof file === "function" ? (context) => ({
|
|
98
|
+
kind: "command",
|
|
99
|
+
...file(context)
|
|
100
|
+
}) : {
|
|
101
|
+
kind: "command",
|
|
102
|
+
...file
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/** `hook/<event>.ts`. Name the event here too when the handler needs a precise payload. */
|
|
106
|
+
function defineHook(file) {
|
|
107
|
+
return file;
|
|
108
|
+
}
|
|
109
|
+
function defineChannel(file, options) {
|
|
110
|
+
return options?.context === true ? file : () => file();
|
|
111
|
+
}
|
|
112
|
+
/** `api/<segments>/route.ts`. The folder path is the route. */
|
|
113
|
+
function defineRoute(file) {
|
|
114
|
+
return file;
|
|
115
|
+
}
|
|
116
|
+
/** `method/<member>.ts`. Build the value with `defineServerMethod` to keep schema inference. */
|
|
117
|
+
function defineMethod(file) {
|
|
118
|
+
return file;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { defineHook as a, defineRoot as c, defineServerCommand as d, defineServerTool as f, defineCommand as i, defineRoute as l, defineToolRestriction as m, composeRootInjects as n, defineMethod as o, defineTool as p, defineChannel as r, defineResource as s, composeRootHooks as t, defineRoutedContribution as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as string, I as union, L as unknown, M as record, O as number, _ as date, h as boolean, k as object } from "./schemas-D2dRon18.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/better-call@1.4.4_zod@4.6.7/node_modules/better-call/dist/error.mjs
|
|
3
3
|
function isErrorStackTraceLimitWritable() {
|
|
4
4
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.
|
|
1
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_2cda1eab05bf8d95071bf4a1067b9ed2/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js
|
|
2
2
|
function inferCopilotInitiator(messages) {
|
|
3
3
|
const last = messages[messages.length - 1];
|
|
4
4
|
return last && last.role !== "user" ? "agent" : "user";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as
|
|
4
|
-
import { i as AssistantMessageEventStream } from "./diagnostics-
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { a as mapStopReason, c as retainThoughtSignature, d as toGoogleSdkThinkingLevel, f as toGoogleThinkingLevel, i as isThinkingPart, l as retryGoogleRequest, m as GoogleGenAI, n as convertTools, o as resolveGoogleFunctionCallingMode, p as usesGoogleThinkingLevel, r as getDisabledGoogleThinkingConfig, s as resolveGoogleThinkingLevel, t as convertMessages, u as supportsGoogleStrictToolSampling } from "./google-shared-
|
|
9
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.
|
|
1
|
+
import { n as getIdentityHeaders, s as getSystemMessageText } from "./identity-BzB1N-Sn.js";
|
|
2
|
+
import { n as buildBaseOptions } from "./simple-options-Cp5p46f9.js";
|
|
3
|
+
import { d as collapseSystemMessages, g as getInitialSystemMessage, m as getCurrentTools, n as clampThinkingLevel, t as calculateCost } from "./models-D50yN8Ag.js";
|
|
4
|
+
import { i as AssistantMessageEventStream } from "./diagnostics-BY5LXbHJ.js";
|
|
5
|
+
import { n as normalizeProviderError, t as formatProviderError } from "./error-body-CeumezyR.js";
|
|
6
|
+
import { n as providerHeadersToRecord } from "./headers-Dkgiqogr.js";
|
|
7
|
+
import { t as sanitizeSurrogates } from "./sanitize-unicode-B1ZFaEtf.js";
|
|
8
|
+
import { a as mapStopReason, c as retainThoughtSignature, d as toGoogleSdkThinkingLevel, f as toGoogleThinkingLevel, i as isThinkingPart, l as retryGoogleRequest, m as GoogleGenAI, n as convertTools, o as resolveGoogleFunctionCallingMode, p as usesGoogleThinkingLevel, r as getDisabledGoogleThinkingConfig, s as resolveGoogleThinkingLevel, t as convertMessages, u as supportsGoogleStrictToolSampling } from "./google-shared-Diz2uk39.js";
|
|
9
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_2cda1eab05bf8d95071bf4a1067b9ed2/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js
|
|
10
10
|
let toolCallCounter = 0;
|
|
11
11
|
const stream = (model, context, options) => {
|
|
12
12
|
const stream = new AssistantMessageEventStream();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-
|
|
2
|
-
import { d as collapseSystemMessages, n as clampThinkingLevel, x as withoutInitialSystemMessage } from "./models-
|
|
3
|
-
import { t as retryProviderRequest } from "./provider-retry-
|
|
4
|
-
import { t as sanitizeSurrogates } from "./sanitize-unicode-
|
|
5
|
-
import {
|
|
1
|
+
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime-DbVrKiKs.js";
|
|
2
|
+
import { d as collapseSystemMessages, n as clampThinkingLevel, x as withoutInitialSystemMessage } from "./models-D50yN8Ag.js";
|
|
3
|
+
import { t as retryProviderRequest } from "./provider-retry-jpvs7ixx.js";
|
|
4
|
+
import { t as sanitizeSurrogates } from "./sanitize-unicode-B1ZFaEtf.js";
|
|
5
|
+
import { n as transformMessages, s as getJsonSchemaToolParameters, u as resolveJsonSchemaStrictSampling } from "./transform-messages-CBj9g2mx.js";
|
|
6
6
|
//#region ../../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
|
|
7
7
|
var require_retry_operation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
8
|
function RetryOperation(timeouts, options) {
|
|
@@ -19213,7 +19213,7 @@ var GoogleGenAI = class {
|
|
|
19213
19213
|
}
|
|
19214
19214
|
};
|
|
19215
19215
|
//#endregion
|
|
19216
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.
|
|
19216
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_2cda1eab05bf8d95071bf4a1067b9ed2/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js
|
|
19217
19217
|
/**
|
|
19218
19218
|
* Shared utilities for Google Generative AI and Google Vertex providers.
|
|
19219
19219
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as
|
|
4
|
-
import { i as AssistantMessageEventStream } from "./diagnostics-
|
|
5
|
-
import { t as getProviderEnvValue } from "./provider-env-
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as mapStopReason, c as retainThoughtSignature, d as toGoogleSdkThinkingLevel, f as toGoogleThinkingLevel, h as ResourceScope, i as isThinkingPart, l as retryGoogleRequest, m as GoogleGenAI, n as convertTools, o as resolveGoogleFunctionCallingMode, p as usesGoogleThinkingLevel, r as getDisabledGoogleThinkingConfig, s as resolveGoogleThinkingLevel, t as convertMessages, u as supportsGoogleStrictToolSampling } from "./google-shared-
|
|
10
|
-
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.
|
|
1
|
+
import { n as getIdentityHeaders, s as getSystemMessageText } from "./identity-BzB1N-Sn.js";
|
|
2
|
+
import { n as buildBaseOptions } from "./simple-options-Cp5p46f9.js";
|
|
3
|
+
import { d as collapseSystemMessages, g as getInitialSystemMessage, m as getCurrentTools, n as clampThinkingLevel, t as calculateCost } from "./models-D50yN8Ag.js";
|
|
4
|
+
import { i as AssistantMessageEventStream } from "./diagnostics-BY5LXbHJ.js";
|
|
5
|
+
import { t as getProviderEnvValue } from "./provider-env-DJb40UF7.js";
|
|
6
|
+
import { n as normalizeProviderError, t as formatProviderError } from "./error-body-CeumezyR.js";
|
|
7
|
+
import { n as providerHeadersToRecord } from "./headers-Dkgiqogr.js";
|
|
8
|
+
import { t as sanitizeSurrogates } from "./sanitize-unicode-B1ZFaEtf.js";
|
|
9
|
+
import { a as mapStopReason, c as retainThoughtSignature, d as toGoogleSdkThinkingLevel, f as toGoogleThinkingLevel, h as ResourceScope, i as isThinkingPart, l as retryGoogleRequest, m as GoogleGenAI, n as convertTools, o as resolveGoogleFunctionCallingMode, p as usesGoogleThinkingLevel, r as getDisabledGoogleThinkingConfig, s as resolveGoogleThinkingLevel, t as convertMessages, u as supportsGoogleStrictToolSampling } from "./google-shared-Diz2uk39.js";
|
|
10
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.86_@modelcontextpro_2cda1eab05bf8d95071bf4a1067b9ed2/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js
|
|
11
11
|
const API_VERSION = "v1";
|
|
12
12
|
const GCP_VERTEX_CREDENTIALS_MARKER = "gcp-vertex-credentials";
|
|
13
13
|
let toolCallCounter = 0;
|