@agimon-ai/po-cloudflare 0.0.2-alpha.2 → 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/README.md +4 -3
- package/dist/abort-signals-2GUraIGq.js +34 -0
- package/dist/agent-DZ-OKOHn.js +6850 -0
- package/dist/anthropic-messages-5ODquUB-.js +14317 -0
- package/dist/{apiContracts-CHOiCbS_.js → apiContracts-b33nSAAI.js} +18 -81
- package/dist/{approval-BMXqnTYd.js → approval-r3NnI1VC.js} +19 -3
- package/dist/{approvalPrompt-Bg1JrEEY.js → approvalPrompt-DWoXxu3S.js} +2 -2
- package/dist/artifactFiles-DLCReI0-.js +1 -0
- package/dist/assets/assets/{CodeEditorView-BnyZHaYM.js → CodeEditorView-XeNS0L9M.js} +2 -2
- package/dist/assets/assets/{abnfDiagram-WEYOIA3C-muME0eCj.js → abnfDiagram-WEYOIA3C-B6ZW0nkR.js} +2 -2
- package/dist/assets/assets/{architecture-WOLXFQ4H-DMnhK1WH.js → architecture-WOLXFQ4H-bVR64sHO.js} +1 -1
- package/dist/assets/assets/{architectureDiagram-ZHVYKT53-DKn7XGP7.js → architectureDiagram-ZHVYKT53-D7tZz3io.js} +2 -2
- package/dist/assets/assets/{blockDiagram-RJAE7QA3-DtDctXZg.js → blockDiagram-RJAE7QA3-DdwScfiX.js} +2 -2
- package/dist/assets/assets/{c4Diagram-XDPPPE54-23pGLJeP.js → c4Diagram-XDPPPE54-DgSxZJCV.js} +2 -2
- package/dist/assets/assets/channel-TPcVvp_3.js +2 -0
- package/dist/assets/assets/{chunk-2E7WHVMD-BZ2nGNPa.js → chunk-2E7WHVMD-D5TXC2SM.js} +2 -2
- package/dist/assets/assets/{chunk-4EMNKR2T-Dui1SYFi.js → chunk-4EMNKR2T-BWhOSvo1.js} +2 -2
- package/dist/assets/assets/{chunk-55XCU76K-CUB92Evl.js → chunk-55XCU76K-HkkBzLtZ.js} +2 -2
- package/dist/assets/assets/{chunk-7S6XSTFO-CVayPHfE.js → chunk-7S6XSTFO-CBnjycLU.js} +2 -2
- package/dist/assets/assets/{chunk-AQDTSKZB---wakYqY.js → chunk-AQDTSKZB-75lIIq8T.js} +2 -2
- package/dist/assets/assets/{chunk-DSNLSHJZ-DfbdohUR.js → chunk-DSNLSHJZ-D8PpnXMk.js} +2 -2
- package/dist/assets/assets/{chunk-HAGFOTED-Dr4KRh-b.js → chunk-HAGFOTED-CXRS2NIN.js} +2 -2
- package/dist/assets/assets/{chunk-HNE4Q36P-D06cR91Z.js → chunk-HNE4Q36P-BocUqS94.js} +2 -2
- package/dist/assets/assets/{chunk-NQOKRVIF-Ca4gLeDb.js → chunk-NQOKRVIF-CHf_ogYT.js} +2 -2
- package/dist/assets/assets/{chunk-UHW7PFBP-DmL638jN.js → chunk-UHW7PFBP-DrW1PaIv.js} +2 -2
- package/dist/assets/assets/{chunk-VQ5W62QI-pkxSW5Zj.js → chunk-VQ5W62QI-CLoA7bFm.js} +2 -2
- package/dist/assets/assets/{chunk-WQQL4CDK-Dcc8hV4U.js → chunk-WQQL4CDK-BmBsrj9I.js} +2 -2
- package/dist/assets/assets/chunk-XXDRQBXY-iFE4Tl8c.js +2 -0
- package/dist/assets/assets/{chunk-YZO67HFG-B_HKcFrw.js → chunk-YZO67HFG-DShE_cgv.js} +2 -2
- package/dist/assets/assets/{chunk-ZAUX2LTX-DAzZUysS.js → chunk-ZAUX2LTX-B3oLvSXy.js} +2 -2
- package/dist/assets/assets/{chunk-ZCHMQSOR-DAVgjymL.js → chunk-ZCHMQSOR-B14vKK7C.js} +2 -2
- package/dist/assets/assets/{classDiagram-v2-4MYWR3UA-Fsw8TGPu.js → classDiagram-v2-4MYWR3UA-Da8elIW2.js} +2 -2
- package/dist/assets/assets/{cose-bilkent-JH36ORCC-CgUbISYV.js → cose-bilkent-JH36ORCC-Du4tGtiJ.js} +2 -2
- package/dist/assets/assets/{cynefin-EF2NZ3EQ-D1LxAU2x.js → cynefin-EF2NZ3EQ-Cyj6i_WI.js} +1 -1
- package/dist/assets/assets/{cynefinDiagram-WF24UDRP-D54I1jil.js → cynefinDiagram-WF24UDRP-DFWXwO7A.js} +2 -2
- package/dist/assets/assets/{dagre-NK4GIZVX-DC7zL16U.js → dagre-NK4GIZVX-C1wB_cf-.js} +2 -2
- package/dist/assets/assets/{diagram-CBK3MWTC-DB0ptUdz.js → diagram-CBK3MWTC-MYCOBYl6.js} +2 -2
- package/dist/assets/assets/{diagram-I5XIIV2D-CozSftPJ.js → diagram-I5XIIV2D-BFYbKUFf.js} +2 -2
- package/dist/assets/assets/{diagram-ODIL2UCW-g3WOEWDS.js → diagram-ODIL2UCW-6siqTpv_.js} +2 -2
- package/dist/assets/assets/{diagram-PFBEJUXE-CFxGeOYi.js → diagram-PFBEJUXE-CaBr9CoB.js} +2 -2
- package/dist/assets/assets/{diagram-RJA3I4VV-BQBsLche.js → diagram-RJA3I4VV-DAvmuDpc.js} +2 -2
- package/dist/assets/assets/{diagram-TYUNFSNR-DrjpW2yq.js → diagram-TYUNFSNR-CJnhgCpo.js} +2 -2
- package/dist/assets/assets/{dist-DjL8d1jZ.js → dist-BQ4W1R18.js} +2 -2
- package/dist/assets/assets/{dist-DvgCCshF.js → dist-BnzFckPF.js} +2 -2
- package/dist/assets/assets/{dist-gfbb4ygy.js → dist-CFtBpcYL.js} +2 -2
- package/dist/assets/assets/{dist-BabjcJ3j.js → dist-CIQX1z4W.js} +2 -2
- package/dist/assets/assets/{dist-XIZum9n5.js → dist-ChHYoe9_.js} +2 -2
- package/dist/assets/assets/{dist-1-mhYUBH.js → dist-DKxZO8d9.js} +2 -2
- package/dist/assets/assets/{dist-h6SOnP8-.js → dist-DL6z28wl.js} +2 -2
- package/dist/assets/assets/{dist-B3JXhDWV.js → dist-DNyn1p9Z.js} +2 -2
- package/dist/assets/assets/{dist-Izr2SB3q.js → dist-qYlLXIa8.js} +2 -2
- package/dist/assets/assets/{ebnfDiagram-V4P3TTPT-BZS_aAve.js → ebnfDiagram-V4P3TTPT-AUcqDTM3.js} +2 -2
- package/dist/assets/assets/{elk-QONTBCTQ-B2ksVmMA.js → elk-QONTBCTQ-aA10PEHJ.js} +2 -2
- package/dist/assets/assets/{erDiagram-KYQIGQAA-7P6zF-Z-.js → erDiagram-KYQIGQAA-hhYiqA-x.js} +2 -2
- package/dist/assets/assets/{eventmodeling-K75KTNOO-RoGQoRq-.js → eventmodeling-K75KTNOO-BQZqbRo5.js} +1 -1
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BuyysPYC.js +1 -0
- package/dist/assets/assets/{ganttDiagram-R7GPNTJY-CTOlRy7M.js → ganttDiagram-R7GPNTJY-CLON1GpW.js} +2 -2
- package/dist/assets/assets/{gitGraph-VSP46ZUC-CPqytIt0.js → gitGraph-VSP46ZUC-DbmvNwR2.js} +1 -1
- package/dist/assets/assets/{gitGraphDiagram-PDYL7XHY-BffLxuxg.js → gitGraphDiagram-PDYL7XHY-DJVO0WlL.js} +2 -2
- package/dist/assets/assets/index-BiTVAj5E.js +155 -0
- package/dist/assets/assets/index-CBNQEGK3.css +1 -0
- package/dist/assets/assets/{info-OHQRW6UA-BI8RK0Ow.js → info-OHQRW6UA-CAt3Nt3g.js} +1 -1
- package/dist/assets/assets/{infoDiagram-MVDRKAX5-DUIst1FB.js → infoDiagram-MVDRKAX5-DTuqH-Zb.js} +2 -2
- package/dist/assets/assets/{ishikawaDiagram-HPEHV2GE-CA17Eho5.js → ishikawaDiagram-HPEHV2GE-BnWvdonT.js} +2 -2
- package/dist/assets/assets/{journeyDiagram-BOSHW7O7-CNri5Ap9.js → journeyDiagram-BOSHW7O7-Btxtcgvl.js} +2 -2
- package/dist/assets/assets/{kanban-definition-FNSA4HC5-DnXna7jO.js → kanban-definition-FNSA4HC5-q7ek9o_H.js} +2 -2
- package/dist/assets/assets/{line-BsXJZn93.js → line-B7yLilmC.js} +2 -2
- package/dist/assets/assets/{linear-BHYaD5T0.js → linear-y8aSKEli.js} +2 -2
- package/dist/assets/assets/{mermaid-parser.core-B64Eo-8a.js → mermaid-parser.core-B4rH50nD.js} +4 -4
- package/dist/assets/assets/{mermaid.core-Zw9qmTzg.js → mermaid.core-DnRVHTjE.js} +5 -5
- package/dist/assets/assets/{mindmap-definition-6OY57UG3-E5qz4KNc.js → mindmap-definition-6OY57UG3-DT9Afs2v.js} +2 -2
- package/dist/assets/assets/{packet-JDAUHWVQ-DgfizTr3.js → packet-JDAUHWVQ-CnqNbu4p.js} +1 -1
- package/dist/assets/assets/{pegDiagram-ECIUJNBX-D0WK_agM.js → pegDiagram-ECIUJNBX-cvxdBBFq.js} +2 -2
- package/dist/assets/assets/{pie-XZMESJXO-PJR1sXD4.js → pie-XZMESJXO-etXMNsaL.js} +1 -1
- package/dist/assets/assets/{pieDiagram-GNMPY74T-CPuU-NTs.js → pieDiagram-GNMPY74T-CBN-R3_j.js} +2 -2
- package/dist/assets/assets/{quadrantDiagram-D57K4MC3-5C9yjM1b.js → quadrantDiagram-D57K4MC3-C5jjVPIH.js} +2 -2
- package/dist/assets/assets/{radar-ABXABTNO-BspdXgl0.js → radar-ABXABTNO-CAMd_mrV.js} +1 -1
- package/dist/assets/assets/{railroad-I3PHUGI6-Ct0a6hLD.js → railroad-I3PHUGI6-DIs3auoe.js} +1 -1
- package/dist/assets/assets/{railroad-abnf-LNEFI6M7-fduYB4SA.js → railroad-abnf-LNEFI6M7-CJXr1qWy.js} +1 -1
- package/dist/assets/assets/{railroad-ebnf-DWYD2UWJ-CTQa8Sww.js → railroad-ebnf-DWYD2UWJ-DfwtykqI.js} +1 -1
- package/dist/assets/assets/{railroad-peg-JR7BVNR7-DatoH3GJ.js → railroad-peg-JR7BVNR7-B8beAhTs.js} +1 -1
- package/dist/assets/assets/{railroadDiagram-Y72NRBL7-C8sWN8l2.js → railroadDiagram-Y72NRBL7-BDcQE-EL.js} +2 -2
- package/dist/assets/assets/{requirementDiagram-EQYSW5RA-CqRz4RcT.js → requirementDiagram-EQYSW5RA-KJ4-QjZM.js} +2 -2
- package/dist/assets/assets/{sankeyDiagram-SY24JHO5-bdiuKKlX.js → sankeyDiagram-SY24JHO5-VjIB-Ybr.js} +2 -2
- package/dist/assets/assets/{sequenceDiagram-BLEHNHQU-Zy-8I0Hy.js → sequenceDiagram-BLEHNHQU-MfMuWq1M.js} +2 -2
- package/dist/assets/assets/{src-gihY33R9.js → src-BAxIj8GJ.js} +2 -2
- package/dist/assets/assets/{stateDiagram-v2-A6IESKWZ-DXQERPvz.js → stateDiagram-v2-A6IESKWZ-mHwLRRCY.js} +2 -2
- package/dist/assets/assets/{swimlanes-B3ENRKFQ-1gjZQElg.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-CTeYEw-9.js → timeline-definition-JXYKGLGB-B2nKiNFU.js} +2 -2
- package/dist/assets/assets/{treeView-D4JQ5SDB-DD-EsLLT.js → treeView-D4JQ5SDB-gU23_RuI.js} +1 -1
- package/dist/assets/assets/{treemap-SAJKECNS-BLdFeS5J.js → treemap-SAJKECNS-CiqoMvZa.js} +1 -1
- package/dist/assets/assets/{usecaseDiagram-WPOLBNNX-C1GikSSP.js → usecaseDiagram-WPOLBNNX-DpeoWpMK.js} +2 -2
- package/dist/assets/assets/{vennDiagram-Q3Y3IDCW-B1FoA3g8.js → vennDiagram-Q3Y3IDCW-C31iGKvM.js} +2 -2
- package/dist/assets/assets/{wardley-7MLQ67FV-BrHb5Bjf.js → wardley-7MLQ67FV-CIzHhzNw.js} +1 -1
- package/dist/assets/assets/{wardleyDiagram-IVAIDKWA-CmPLD1X4.js → wardleyDiagram-IVAIDKWA-DIIkoezc.js} +2 -2
- package/dist/assets/assets/{webpack-BYWDFj_R.js → webpack-RFseiMZW.js} +2 -2
- package/dist/assets/assets/{xychartDiagram-4URNHDU4-DR5pfEjl.js → xychartDiagram-4URNHDU4-QiHL91kC.js} +2 -2
- package/dist/assets/bundle-asset-policy.json +1 -1
- package/dist/assets/index.html +2 -2
- package/dist/assets/plugins/assets/base-CKKRZ7-h.css +2 -0
- package/dist/assets/plugins/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js +13 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/dist/assets/plugins/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/assets/plugins/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/assets/plugins/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 -0
- 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.dd97d013-IVq4Z6qm.js +1 -0
- 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.974af249-DPNHn9XH.js +109 -0
- package/dist/assets/plugins/slots/plan.bafb8f68-C5GEpybF.js +3 -0
- package/dist/assets/plugins/slots/profile.48851a1d-yX6tzV3x.js +1 -0
- 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/assets/pwa/pwa.js +12 -12
- package/dist/assets/pwa/sw.js +4 -4
- package/dist/{atomicJson-BJfPFSYF.js → atomicJson-C_7F2zD1.js} +2 -3
- package/dist/azure-openai-config-COZUaRzM.js +55 -0
- package/dist/azure-openai-responses-Cs4k2HOd.js +183 -0
- package/dist/{backgroundWork-CeFrbRnj.js → backgroundWork-B1mPDYlf.js} +1 -1
- package/dist/browser-BWf8OMfl.js +3 -0
- package/dist/childSession-Cf2-kH4O.js +22 -0
- package/dist/classifier-shared-IhSH9hhh.js +106 -0
- package/dist/cloudflare-workers-ai-system-one-BNnc8MuH.js +52 -0
- package/dist/{codemode-DbPu0yJN.js → codemode-DQFmrosw.js} +5 -2
- package/dist/contracts-DD3f1Lpn.js +19 -0
- package/dist/diagnostics-1lYFeSJe.js +131 -0
- package/dist/{server-D3PQk1Gt.js → dist-B-vqs6tA.js} +1 -546
- package/dist/dist-Dvx5mlIR.js +50 -0
- package/dist/env-api-keys-Bow6MJe2.js +32 -0
- package/dist/error-body-CJk7jMUh.js +102 -0
- package/dist/esm-BKJy3O9-.js +1553 -0
- package/dist/exports-B0WMEXCP.js +34 -0
- package/dist/{remoteMcp-CMqZldeA.js → exports-D09VsUk-.js} +1153 -175
- package/dist/{exports-BNZz2DNU.js → exports-nV43ShA7.js} +25 -9
- package/dist/{extensionFile-CXOa5G4C.js → extensionFile-DNM4xsje.js} +26 -2
- package/dist/github-copilot-headers-D1RedfLn.js +22 -0
- package/dist/google-generative-ai-DXTILNT0.js +328 -0
- package/dist/google-shared-e4JDCTVP.js +19588 -0
- package/dist/google-vertex-a1lzvJfq.js +374 -0
- package/dist/{domains-BNjGTOPj.js → harnessState-Dwrk3lfv.js} +175 -16
- package/dist/{harnessStore-BT706Ly6.js → harnessStore-Z7yDLO45.js} +4 -5
- package/dist/hash-Dt6RIbkn.js +16 -0
- package/dist/headers-CwtEVQvr.js +17 -0
- package/dist/help-w6vVEZGL.js +101 -0
- package/dist/hubChannel-Cm-sxOvU.js +21 -0
- package/dist/hubRevisions-58pU2dW5.js +363 -0
- package/dist/identity-BgfHobJH.js +165 -0
- package/dist/index.edge-COJJ_Dv2.js +937 -0
- package/dist/index.edge-ChYa2LU4.js +14 -0
- package/dist/index.edge-ClLTmPFz.js +191 -0
- package/dist/index.edge-DyYmurS7.js +62 -0
- package/dist/index.edge-K0w5auwG.js +56 -0
- package/dist/index.edge-Xa5LLtxz.js +67 -0
- package/dist/iso-BPQViXM8.js +10 -0
- package/dist/{layeredConfig-DPQAnlXD.js → layeredConfig-CUkYUs1f.js} +193 -15
- package/dist/{majorModes-DbCfLZH3.js → majorModes-BB0PXgFn.js} +4 -14
- package/dist/majorModes-C7vtBs4D.js +1 -0
- package/dist/{mcpProjection-BsP0IEnb.js → mcpProjection-BtKzB6oK.js} +2 -2
- package/dist/migrations-5gbLIQIc.js +32 -0
- package/dist/mistral-conversations-CLwhVDjA.js +689 -0
- package/dist/modeDefinition-C3Zbrw48.js +44 -0
- package/dist/models-Chzm15vC.js +1511 -0
- package/dist/narration-CpRurWLO.js +127 -0
- package/dist/node-BT4GsJQp.js +2479 -0
- package/dist/node-DytJOfYf.js +23 -0
- package/dist/notification-kckG3leF.js +102 -0
- package/dist/openai-codex-responses-DRMONxDE.js +1210 -0
- package/dist/openai-completions-CcNhAv8l.js +984 -0
- package/dist/openai-decisions-BsFjaAGw.js +142 -0
- package/dist/openai-kPrtlgjl.js +17357 -0
- package/dist/openai-prompt-cache-Bc6qNWt0.js +8 -0
- package/dist/openai-responses-C5Gp2UOV.js +281 -0
- package/dist/openai-responses-shared-BbSi-wBR.js +661 -0
- package/dist/openrouter-cost-CvC52g3b.js +30 -0
- package/dist/openrouter-images-BoHl8g8p.js +124 -0
- package/dist/{hubChannel-BHQyzcOo.js → packageApi-t1oCjNDU.js} +4 -41
- package/dist/photon_rs_bg.wasm +0 -0
- package/dist/pi-messages-BXfrZLC7.js +312 -0
- package/dist/piConfig-DQzlbPY4.js +126 -0
- package/dist/piSettings-Cf1QofNe.js +1 -0
- package/dist/platform-BIEiM4TG.js +113 -0
- package/dist/pluginContributions-Be9EnCAW.js +16 -0
- package/dist/pluginProtocol-BqXXyI4z.js +80 -0
- package/dist/{protocol-Xpm_mCNN.js → protocol-DDL8geoS.js} +2 -2
- package/dist/provider-env-CxhHUFiF.js +38 -0
- package/dist/provider-retry-BUoezuw8.js +79 -0
- package/dist/sanitize-unicode-C3Ec8oL6.js +26 -0
- package/dist/sealedChannel-BeWNTWys.js +27 -0
- package/dist/server-AbXyhXlY.js +217 -0
- package/dist/server-B6dqQoh2.js +1518 -0
- package/dist/server-BIHo9TFu.js +505 -0
- package/dist/{server-BZh1ZXz_.js → server-BJ7DNzCp.js} +8 -19
- package/dist/server-BO-j_GbD.js +15106 -0
- package/dist/{server-D4W7EdJY.js → server-BQzAiMns.js} +16 -16
- package/dist/server-BR7SZtj7.js +3125 -0
- package/dist/{server-BE6VqEiA.js → server-BT2ORK83.js} +20 -12
- package/dist/server-BbSHYRnY.js +295 -0
- package/dist/server-BqoKlEGk.js +1806 -0
- package/dist/{server-tvgQ99rv.js → server-Busl0pQI.js} +370 -120
- package/dist/server-CIHM4jqu.js +1116 -0
- package/dist/server-CgWSSdvd.js +576 -0
- package/dist/{server-Dpgh8PDh.js → server-Co_UWKrR.js} +14 -5
- package/dist/{server-BAAL9-NA.js → server-CuEPb7u-.js} +3 -10
- package/dist/{server-Dt4y1rZD.js → server-D40q2Jpx.js} +47 -27
- package/dist/server-DCyf2Asb.js +679 -0
- package/dist/server-DH7PfLln.js +148 -0
- package/dist/server-DJ8bc89M.js +934 -0
- package/dist/server-DYdp0W9v.js +489 -0
- package/dist/server-DsdPEYGu.js +639 -0
- package/dist/server-DymH4Ucq.js +189 -0
- package/dist/server-IqECnUrb.js +834 -0
- package/dist/{server-36iuA3MI.js → server-KBgW77zh.js} +3 -3
- package/dist/server-RW_9R3R3.js +1522 -0
- package/dist/server-aUit8j6r.js +1028 -0
- package/dist/{server-DJAanjoI.js → server-gifRriZK.js} +491 -103
- package/dist/server-nkUlqnAL.js +2658 -0
- package/dist/server-oxyEbv1a.js +1256 -0
- package/dist/{server-D8ndq0wL.js → server-ub3s16Mc.js} +11 -9
- package/dist/{build-2gFaVEfG.js → serverPlugin-CELT6P0Q.js} +3946 -3
- package/dist/{sessionConfig-rBQgzXlT.js → sessionConfig-RQGvfm6E.js} +550 -760
- package/dist/simple-options-CFzI5Pd_.js +156 -0
- package/dist/streaming-json-BWTHTwz-.js +858 -0
- package/dist/system-one-shared-CiIrx29d.js +132 -0
- package/dist/{notification-D76PSL7r.js → telemetry-Csv1ZxAn.js} +1 -92
- package/dist/transform-messages-D77af7Bx.js +356 -0
- package/dist/truncate-M3KbFyVj.js +89 -0
- package/dist/{server-A-_GFpPr.js → type-ASYnCGVW.js} +10 -1031
- package/dist/typesafe-system-one-DGxeggJh.js +37 -0
- package/dist/uuid-B0QJx6Kr.js +31 -0
- package/dist/{validation-D77NZBrx.js → validation-BJxVSAwx.js} +8 -3
- package/dist/{value-Djvc2foV.js → value-_W31So3B.js} +1 -1
- package/dist/vaultSettings-Di3n5YIg.js +328 -0
- package/dist/voiceTools-RMn4HvWo.js +246 -0
- package/dist/web-DCP7ELJj.js +3 -0
- package/dist/worker.js +95288 -49863
- package/dist/workflow-B7qx0Vv9.js +79 -0
- package/package.json +37 -22
- package/wrangler.jsonc +4 -2
- package/dist/assets/assets/channel-CMrEzemr.js +0 -2
- package/dist/assets/assets/chunk-XXDRQBXY-CFf0S6bN.js +0 -2
- package/dist/assets/assets/flowDiagram-IUGLLWBU-BhGbWVf0.js +0 -1
- package/dist/assets/assets/index-Bx_K4Joy.js +0 -155
- package/dist/assets/assets/index-DZM68mTk.css +0 -1
- package/dist/assets/assets/swimlanesDiagram-AYQRV4AK-q91tR8ri.js +0 -9
- package/dist/contextProjection-DVP2Vc5j.js +0 -188
- package/dist/harnessState-gmzJcPGt.js +0 -88
- package/dist/harnessStore-BiH9vSuD.js +0 -1
- package/dist/index.edge-BgSx_gRO.js +0 -45
- package/dist/majorModes-BvWNqoHt.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/platform-B4AAgwJ0.js +0 -16
- package/dist/platformFiles-C_bXo4Ig.js +0 -39
- package/dist/server-BZaPPoQp.js +0 -592
- package/dist/server-D75MWDhB.js +0 -118
- package/dist/server-r358hzQg.js +0 -280
- package/dist/serverPlugin-BOI6c6s5.js +0 -3393
package/dist/server-D75MWDhB.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import "./serverPlugin-BOI6c6s5.js";
|
|
2
|
-
import { d as defineServerTool, f as defineServerPlugin, u as defineServerCommand } from "./extensionFile-CXOa5G4C.js";
|
|
3
|
-
//#region ../../foundations/po-ui/src/constants/ui.ts
|
|
4
|
-
const TOOLS_COMMAND = "tools";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region ../../foundations/po-ui/src/services/sessionToolInventory/index.ts
|
|
7
|
-
function toolNames(entries) {
|
|
8
|
-
const names = /* @__PURE__ */ new Set();
|
|
9
|
-
for (const entry of entries) {
|
|
10
|
-
const message = entry.message;
|
|
11
|
-
if (!message || typeof message !== "object" || Array.isArray(message)) continue;
|
|
12
|
-
const content = message.content;
|
|
13
|
-
if (!Array.isArray(content)) continue;
|
|
14
|
-
for (const block of content) {
|
|
15
|
-
if (!block || typeof block !== "object" || Array.isArray(block)) continue;
|
|
16
|
-
const name = block.name;
|
|
17
|
-
if (typeof name === "string" && name) names.add(name);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return [...names].sort();
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/_lib/sessionInventory.ts
|
|
24
|
-
/**
|
|
25
|
-
* The TUI shell itself stays Pi-only. Inventory is the shared part and is exposed
|
|
26
|
-
* from session data rather than silently installing a fake editor/widget host.
|
|
27
|
-
*
|
|
28
|
-
* Inventory is a command, never a context resource. It reports the tools observed
|
|
29
|
-
* in the transcript, which is not the tool surface the current selection exposes:
|
|
30
|
-
* as a prompt section it listed tools the session had since gated out, directly
|
|
31
|
-
* contradicting the `Available tools:` block, and it grew for the whole session.
|
|
32
|
-
*/
|
|
33
|
-
function createUiServerContributions() {
|
|
34
|
-
return { commands: [{
|
|
35
|
-
name: TOOLS_COMMAND,
|
|
36
|
-
description: "Show tools observed in this headless session. TUI rendering remains unavailable.",
|
|
37
|
-
async execute(_args, execution) {
|
|
38
|
-
const names = /* @__PURE__ */ new Set();
|
|
39
|
-
for await (const entry of execution.session.entriesNewestFirst({ type: "message" })) for (const name of toolNames([entry])) names.add(name);
|
|
40
|
-
await execution.client.notify({
|
|
41
|
-
title: "Po tools",
|
|
42
|
-
body: [...names].sort().join("\n") || "(no tool calls recorded in this session)",
|
|
43
|
-
level: "info"
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}] };
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/command/tools.server.ts
|
|
50
|
-
var tools_server_default = defineServerCommand(createUiServerContributions().commands[0]);
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/_lib/serverFileTools.edge.ts
|
|
53
|
-
const noParameters = {
|
|
54
|
-
type: "object",
|
|
55
|
-
properties: {}
|
|
56
|
-
};
|
|
57
|
-
function unavailable(toolName) {
|
|
58
|
-
const message = `The ${toolName} tool is not available on the edge.`;
|
|
59
|
-
return {
|
|
60
|
-
label: toolName,
|
|
61
|
-
description: message,
|
|
62
|
-
parameters: noParameters,
|
|
63
|
-
async execute() {
|
|
64
|
-
throw new Error(message);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function createServerWriteTool() {
|
|
69
|
-
return {
|
|
70
|
-
name: "write",
|
|
71
|
-
...unavailable("write")
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function createServerFindTool() {
|
|
75
|
-
return {
|
|
76
|
-
name: "find",
|
|
77
|
-
...unavailable("find")
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function createServerLsTool() {
|
|
81
|
-
return {
|
|
82
|
-
name: "ls",
|
|
83
|
-
...unavailable("ls")
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/tool/find.server.ts
|
|
88
|
-
var find_server_default = defineServerTool(createServerFindTool);
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/tool/ls.server.ts
|
|
91
|
-
var ls_server_default = defineServerTool(createServerLsTool);
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region ../../foundations/po-ui/src/extensions/workspaces/sessions/(backend)/tool/write.server.ts
|
|
94
|
-
var write_server_default = defineServerTool(createServerWriteTool);
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region ../../foundations/po-ui/generated/server.ts
|
|
97
|
-
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
98
|
-
const via = (identity, value) => value === void 0 ? void 0 : {
|
|
99
|
-
...identity,
|
|
100
|
-
...value
|
|
101
|
-
};
|
|
102
|
-
const serverPlugin = defineServerPlugin({
|
|
103
|
-
name: "@agimon-ai/po-ui",
|
|
104
|
-
session: (context) => ({
|
|
105
|
-
get commands() {
|
|
106
|
-
return [via({ name: "tools" }, at(tools_server_default, context))];
|
|
107
|
-
},
|
|
108
|
-
get tools() {
|
|
109
|
-
return [
|
|
110
|
-
via({ name: "find" }, at(find_server_default, context)),
|
|
111
|
-
via({ name: "ls" }, at(ls_server_default, context)),
|
|
112
|
-
via({ name: "write" }, at(write_server_default, context))
|
|
113
|
-
];
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
118
|
-
export { serverPlugin as default, serverPlugin };
|
package/dist/server-r358hzQg.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { B as requirePoFs, c as nodeHost, ct as withAbortSignal, f as getOrThrow, ot as BACKGROUND_CONTEXT, rt as composeServerProviderOverrides } from "./serverPlugin-BOI6c6s5.js";
|
|
2
|
-
import { G as _Object_, q as Optional, y as String$1 } from "./build-2gFaVEfG.js";
|
|
3
|
-
import { f as defineServerPlugin, l as defineRoutedContribution, n as composeRootInjects, s as defineRoot, t as composeRootHooks } from "./extensionFile-CXOa5G4C.js";
|
|
4
|
-
import { n as readPackageResource, t as packageResourcePath } from "./index.edge-BgSx_gRO.js";
|
|
5
|
-
import "./platform-B4AAgwJ0.js";
|
|
6
|
-
import { t as readHarnessState } from "./harnessState-gmzJcPGt.js";
|
|
7
|
-
//#region ../../foundations/po-skill/src/constants/skillInventory.ts
|
|
8
|
-
/**
|
|
9
|
-
* How long sessions with the same inputs share one skill inventory instead of each reading the disk.
|
|
10
|
-
* ponytail: a skill added on disk reaches new sessions within this window, not at once; watch the
|
|
11
|
-
* skill roots if that lag matters.
|
|
12
|
-
*/
|
|
13
|
-
const SKILL_INVENTORY_FRESH_MS = 6e4;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region ../../foundations/po-skill/src/services/mcpSkills/index.ts
|
|
16
|
-
const MCP_SKILLS_SERVICE = "po/discovered-mcp-skills";
|
|
17
|
-
/** Explicit remote provider, never a projection of the local resource registry. */
|
|
18
|
-
function mountMcpSkills(groups, fs, signal) {
|
|
19
|
-
return (context) => {
|
|
20
|
-
context.provide(MCP_SKILLS_SERVICE, { list(remote) {
|
|
21
|
-
signal.throwIfAborted();
|
|
22
|
-
remote.signal.throwIfAborted();
|
|
23
|
-
const domains = remote.selection.read().domains;
|
|
24
|
-
const skills = /* @__PURE__ */ new Map();
|
|
25
|
-
for (const group of groups) {
|
|
26
|
-
if (group.domains !== void 0 && !group.domains.some((domain) => domains.includes(domain))) continue;
|
|
27
|
-
for (const skill of group.skills) {
|
|
28
|
-
if (skills.has(skill.name)) continue;
|
|
29
|
-
skills.set(skill.name, {
|
|
30
|
-
name: skill.name,
|
|
31
|
-
description: skill.description,
|
|
32
|
-
async read() {
|
|
33
|
-
const readSignal = AbortSignal.any([signal, remote.signal]);
|
|
34
|
-
readSignal.throwIfAborted();
|
|
35
|
-
const text = getOrThrow(await fs.readTextFile(skill.filePath, withAbortSignal(readSignal, BACKGROUND_CONTEXT)));
|
|
36
|
-
readSignal.throwIfAborted();
|
|
37
|
-
return text;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return [...skills.values()];
|
|
43
|
-
} });
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region ../../foundations/po-skill/src/schemas/mcpSkillTools.ts
|
|
48
|
-
const searchSkillsParameters = _Object_({ query: Optional(String$1()) });
|
|
49
|
-
const loadSkillParameters = _Object_({ name: String$1() });
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region ../../foundations/po-skill/src/services/mcpSkillTools/index.ts
|
|
52
|
-
function text(text) {
|
|
53
|
-
return { content: [{
|
|
54
|
-
type: "text",
|
|
55
|
-
text
|
|
56
|
-
}] };
|
|
57
|
-
}
|
|
58
|
-
function createSessionSearchSkillsTool(host) {
|
|
59
|
-
return {
|
|
60
|
-
name: "search_skills",
|
|
61
|
-
label: "Search skills",
|
|
62
|
-
description: "Search available session skills by name or description.",
|
|
63
|
-
parameters: searchSkillsParameters,
|
|
64
|
-
annotations: {
|
|
65
|
-
readOnlyHint: true,
|
|
66
|
-
destructiveHint: false,
|
|
67
|
-
openWorldHint: false
|
|
68
|
-
},
|
|
69
|
-
executionMode: "parallel",
|
|
70
|
-
async execute(_toolCallId, { query }) {
|
|
71
|
-
const needle = query?.trim().toLocaleLowerCase();
|
|
72
|
-
const available = host.listSkills().map(({ name, description }) => ({
|
|
73
|
-
name,
|
|
74
|
-
description
|
|
75
|
-
}));
|
|
76
|
-
const matches = needle === void 0 || needle === "" ? available : available.filter(({ name, description }) => `${name}\n${description}`.toLocaleLowerCase().includes(needle));
|
|
77
|
-
return {
|
|
78
|
-
...text(JSON.stringify(matches)),
|
|
79
|
-
structuredContent: { skills: matches }
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function createSessionLoadSkillTool(host) {
|
|
85
|
-
return {
|
|
86
|
-
name: "load_skill",
|
|
87
|
-
label: "Load skill",
|
|
88
|
-
description: "Load the full instructions of an available session skill by exact name.",
|
|
89
|
-
parameters: loadSkillParameters,
|
|
90
|
-
executionMode: "parallel",
|
|
91
|
-
async execute(_toolCallId, { name }) {
|
|
92
|
-
const body = host.readSkill(name);
|
|
93
|
-
if (body === void 0) return {
|
|
94
|
-
...text(`No skill named ${name} is available in this session.`),
|
|
95
|
-
isError: true
|
|
96
|
-
};
|
|
97
|
-
return text(body);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region ../../foundations/po-skill/src/services/serverInventory/index.edge.ts
|
|
103
|
-
/**
|
|
104
|
-
* The edge build of skill discovery. Pi's skill loader and plugin materialization need a Node
|
|
105
|
-
* host, so the edge session has no discovered skills in M1 and reports that once.
|
|
106
|
-
*/
|
|
107
|
-
async function discoverServerSkills(execution, _fs, signal) {
|
|
108
|
-
signal.throwIfAborted();
|
|
109
|
-
return {
|
|
110
|
-
inventory: {
|
|
111
|
-
skills: [],
|
|
112
|
-
diagnostics: [`${execution.cwd}: Skill discovery is not available on the edge: it needs a Node host.`]
|
|
113
|
-
},
|
|
114
|
-
groups: [],
|
|
115
|
-
mcpGroups: [],
|
|
116
|
-
catalog: "(no discovered skills)"
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../../foundations/po-skill/src/services/deferredSkills/index.edge.ts
|
|
121
|
-
/** The edge keeps Pi's literal-text fallback without reading skill bodies. */
|
|
122
|
-
async function expandDeferredSkillCommand(text, _skills) {
|
|
123
|
-
return text;
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region ../../foundations/po-skill/src/types/skills.ts
|
|
127
|
-
const SKILLS_COMMAND = "skills";
|
|
128
|
-
const SKILL_INVOCATION_PREFIX = "/skill:";
|
|
129
|
-
const SKILL_COMMAND_PREFIX = "skill:";
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/_lib/skillCommands.ts
|
|
132
|
-
/**
|
|
133
|
-
* One command per skill, gated by whatever activates that skill.
|
|
134
|
-
*
|
|
135
|
-
* Expansion always reads the full inventory, not the group: a command is only
|
|
136
|
-
* dispatchable while its condition holds, so by the time one runs its skill is
|
|
137
|
-
* active, and looking it up in the union keeps one lookup table instead of one
|
|
138
|
-
* per domain.
|
|
139
|
-
*/
|
|
140
|
-
function skillCommand(skill, domains, inventory) {
|
|
141
|
-
return {
|
|
142
|
-
...domains === void 0 ? {} : { when: { domains } },
|
|
143
|
-
name: `${SKILL_COMMAND_PREFIX}${skill.name}`,
|
|
144
|
-
description: skill.description,
|
|
145
|
-
execute: async (args, execution) => {
|
|
146
|
-
const text = `${SKILL_INVOCATION_PREFIX}${skill.name}${args ? ` ${args}` : ""}`;
|
|
147
|
-
const expanded = await expandDeferredSkillCommand(text, inventory.skills);
|
|
148
|
-
if (expanded === text) throw new Error(`Skill '${skill.name}' is no longer readable.`);
|
|
149
|
-
await admit(execution.session, expanded);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* The dispatching prompt acks when this command returns, so awaiting the whole
|
|
155
|
-
* turn (session.prompt) kept the composer draft until the run ended.
|
|
156
|
-
*/
|
|
157
|
-
function admit(session, text) {
|
|
158
|
-
return session.admitPrompt ? session.admitPrompt(text, "prompt", "operator") : session.prompt(text);
|
|
159
|
-
}
|
|
160
|
-
function createSkillCommands(inventory, catalog, groups) {
|
|
161
|
-
return [{
|
|
162
|
-
name: SKILLS_COMMAND,
|
|
163
|
-
description: "List discovered skills or invoke one by name.",
|
|
164
|
-
async execute(args, execution) {
|
|
165
|
-
const requested = args.trim();
|
|
166
|
-
if (requested) {
|
|
167
|
-
await admit(execution.session, await expandDeferredSkillCommand(`${SKILL_INVOCATION_PREFIX}${requested}`, inventory.skills));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
await execution.client.notify({
|
|
171
|
-
title: "Po skills",
|
|
172
|
-
body: catalog,
|
|
173
|
-
level: "info"
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}, ...groups.flatMap((group) => group.skills.map((skill) => skillCommand(skill, group.domains, inventory)))];
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/_lib/skillServer.ts
|
|
180
|
-
async function createSkillServer(agent, fs, signal, resources) {
|
|
181
|
-
const execution = agent.context;
|
|
182
|
-
const key = [
|
|
183
|
-
"inventory",
|
|
184
|
-
execution.repoRoot,
|
|
185
|
-
execution.cwd,
|
|
186
|
-
execution.environment.HOME ?? nodeHost.homeDirectory(),
|
|
187
|
-
...readHarnessState(execution.environment).skillDirectories ?? [],
|
|
188
|
-
Math.floor(Date.now() / SKILL_INVENTORY_FRESH_MS)
|
|
189
|
-
];
|
|
190
|
-
const { inventory, catalog, groups, mcpGroups } = await resources.acquire(key, () => discoverServerSkills(execution, fs, new AbortController().signal));
|
|
191
|
-
return {
|
|
192
|
-
commands: createSkillCommands(inventory, catalog, groups),
|
|
193
|
-
tools: [createSessionLoadSkillTool(agent), createSessionSearchSkillsTool(agent)],
|
|
194
|
-
services: [mountMcpSkills(mcpGroups, fs, signal)],
|
|
195
|
-
resources: [...groups.flatMap((group) => group.skills.map((skill) => ({
|
|
196
|
-
name: skill.name,
|
|
197
|
-
description: skill.description,
|
|
198
|
-
path: skill.filePath,
|
|
199
|
-
kind: "skill",
|
|
200
|
-
...group.domains === void 0 ? {} : { when: { domains: group.domains } },
|
|
201
|
-
read: async () => getOrThrow(await fs.readTextFile(skill.filePath, BACKGROUND_CONTEXT))
|
|
202
|
-
}))), ...[{
|
|
203
|
-
name: "help-how-to-author-skill",
|
|
204
|
-
description: "Author and distribute Po agent skills. Use when creating a SKILL.md, contributing a runtime skill directory, or publishing activation-gated Help prompts and diagnostic tools."
|
|
205
|
-
}, {
|
|
206
|
-
name: "help-how-to-skill",
|
|
207
|
-
description: "Use Po's skill catalog and deferred discovery. Diagnose missing or shadowed skills and invoke the narrowest available guidance."
|
|
208
|
-
}].map((skill) => ({
|
|
209
|
-
...skill,
|
|
210
|
-
when: {
|
|
211
|
-
state: { "minor-mode": "help" },
|
|
212
|
-
attribution: {
|
|
213
|
-
kind: "minor",
|
|
214
|
-
mode: "help"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
kind: "skill",
|
|
218
|
-
path: packageResourcePath("bundle:///po-skill/src/extensions/workspaces/sessions/(backend)/_lib/skillServer.ts", `src/prompts/${skill.name}/SKILL.md`),
|
|
219
|
-
read: () => readPackageResource("bundle:///po-skill/src/extensions/workspaces/sessions/(backend)/_lib/skillServer.ts", `src/prompts/${skill.name}/SKILL.md`)
|
|
220
|
-
}))]
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/root.server.ts
|
|
225
|
-
var root_server_default = defineRoot(async ({ agent, context: root, signal, resources }) => {
|
|
226
|
-
const runtime = agent ? await createSkillServer(agent, requirePoFs(root), signal, resources) : {
|
|
227
|
-
commands: [],
|
|
228
|
-
resources: []
|
|
229
|
-
};
|
|
230
|
-
return {
|
|
231
|
-
value: runtime,
|
|
232
|
-
services: runtime.services
|
|
233
|
-
};
|
|
234
|
-
});
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/command/skills.server.ts
|
|
237
|
-
var skills_server_default$1 = defineRoutedContribution((context) => context.root.commands, { cardinality: "many" });
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/resource/skills.server.ts
|
|
240
|
-
var skills_server_default = defineRoutedContribution((context) => context.root.resources, { cardinality: "many" });
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region ../../foundations/po-skill/src/extensions/workspaces/sessions/(backend)/tool/load_skill.server.ts
|
|
243
|
-
/** The session agent's skill tools; the Pi CLI keeps Pi's own skill handling. */
|
|
244
|
-
var load_skill_server_default = defineRoutedContribution((context) => context.root.tools ?? [], { cardinality: "many" });
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region ../../foundations/po-skill/generated/server.ts
|
|
247
|
-
const many = (value, context) => {
|
|
248
|
-
const resolved = typeof value === "function" ? value(context) : value;
|
|
249
|
-
return Array.isArray(resolved) ? resolved : [resolved];
|
|
250
|
-
};
|
|
251
|
-
const serverPlugin = defineServerPlugin({
|
|
252
|
-
name: "@agimon-ai/po-skill",
|
|
253
|
-
providerOverrides: composeServerProviderOverrides(root_server_default),
|
|
254
|
-
injects: composeRootInjects({ session: [root_server_default] }),
|
|
255
|
-
session: async (context) => {
|
|
256
|
-
const scopeSession = await context.scopeRoot("session", root_server_default, context);
|
|
257
|
-
const contextSession = {
|
|
258
|
-
...context,
|
|
259
|
-
root: scopeSession.value
|
|
260
|
-
};
|
|
261
|
-
return {
|
|
262
|
-
...composeRootHooks(scopeSession),
|
|
263
|
-
get commands() {
|
|
264
|
-
return [...many(skills_server_default$1, contextSession)];
|
|
265
|
-
},
|
|
266
|
-
get resources() {
|
|
267
|
-
return [...many(skills_server_default, contextSession)];
|
|
268
|
-
},
|
|
269
|
-
get tools() {
|
|
270
|
-
return [...many(load_skill_server_default, contextSession)];
|
|
271
|
-
},
|
|
272
|
-
services: [...scopeSession.services ?? []],
|
|
273
|
-
get activities() {
|
|
274
|
-
return [...scopeSession.activities ?? []];
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
//#endregion
|
|
280
|
-
export { serverPlugin as default, serverPlugin };
|