@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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import "
|
|
5
|
-
import "node:crypto";
|
|
1
|
+
import { hn as poHomeDirectory, vn as nodeHost } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { s as readTextIfExists } from "./platform-BIEiM4TG.js";
|
|
3
|
+
import "./piSettings-Cf1QofNe.js";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
6
5
|
import path from "node:path";
|
|
7
6
|
//#region ../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
|
|
8
7
|
const ALIAS = Symbol.for("yaml.alias");
|
|
@@ -1245,7 +1244,7 @@ function stringifyProps(node, tagObj, { anchors, doc }) {
|
|
|
1245
1244
|
if (tag) props.push(doc.directives.tagString(tag));
|
|
1246
1245
|
return props.join(" ");
|
|
1247
1246
|
}
|
|
1248
|
-
function stringify(item, ctx, onComment, onChompKeep) {
|
|
1247
|
+
function stringify$1(item, ctx, onComment, onChompKeep) {
|
|
1249
1248
|
if (isPair(item)) return item.toString(ctx, onComment, onChompKeep);
|
|
1250
1249
|
if (isAlias(item)) {
|
|
1251
1250
|
if (ctx.doc.directives) return item.toString(ctx);
|
|
@@ -1282,7 +1281,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
|
1282
1281
|
});
|
|
1283
1282
|
let keyCommentDone = false;
|
|
1284
1283
|
let chompKeep = false;
|
|
1285
|
-
let str = stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
1284
|
+
let str = stringify$1(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
1286
1285
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
1287
1286
|
if (simpleKeys) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
1288
1287
|
explicitKey = true;
|
|
@@ -1322,7 +1321,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
|
1322
1321
|
chompKeep = false;
|
|
1323
1322
|
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && isSeq(value) && !value.flow && !value.tag && !value.anchor) ctx.indent = ctx.indent.substring(2);
|
|
1324
1323
|
let valueCommentDone = false;
|
|
1325
|
-
const valueStr = stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
1324
|
+
const valueStr = stringify$1(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
1326
1325
|
let ws = " ";
|
|
1327
1326
|
if (keyComment || vsb || vcb) {
|
|
1328
1327
|
ws = vsb ? "\n" : "";
|
|
@@ -1491,7 +1490,7 @@ function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, fl
|
|
|
1491
1490
|
}
|
|
1492
1491
|
}
|
|
1493
1492
|
chompKeep = false;
|
|
1494
|
-
let str = stringify(item, itemCtx, () => comment = null, () => chompKeep = true);
|
|
1493
|
+
let str = stringify$1(item, itemCtx, () => comment = null, () => chompKeep = true);
|
|
1495
1494
|
if (comment) str += lineComment(str, itemIndent, commentString(comment));
|
|
1496
1495
|
if (chompKeep && comment) chompKeep = false;
|
|
1497
1496
|
lines.push(blockItemPrefix + str);
|
|
@@ -1543,7 +1542,7 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
|
1543
1542
|
} else if (item.value == null && ik?.comment) comment = ik.comment;
|
|
1544
1543
|
}
|
|
1545
1544
|
if (comment) reqNewline = true;
|
|
1546
|
-
let str = stringify(item, itemCtx, () => comment = null);
|
|
1545
|
+
let str = stringify$1(item, itemCtx, () => comment = null);
|
|
1547
1546
|
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
|
|
1548
1547
|
if (i < items.length - 1) str += ",";
|
|
1549
1548
|
else if (ctx.options.trailingComma) {
|
|
@@ -2562,11 +2561,11 @@ function stringifyDocument(doc, options) {
|
|
|
2562
2561
|
contentComment = doc.contents.comment;
|
|
2563
2562
|
}
|
|
2564
2563
|
const onChompKeep = contentComment ? void 0 : () => chompKeep = true;
|
|
2565
|
-
let body = stringify(doc.contents, ctx, () => contentComment = null, onChompKeep);
|
|
2564
|
+
let body = stringify$1(doc.contents, ctx, () => contentComment = null, onChompKeep);
|
|
2566
2565
|
if (contentComment) body += lineComment(body, "", commentString(contentComment));
|
|
2567
2566
|
if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
|
|
2568
2567
|
else lines.push(body);
|
|
2569
|
-
} else lines.push(stringify(doc.contents, ctx));
|
|
2568
|
+
} else lines.push(stringify$1(doc.contents, ctx));
|
|
2570
2569
|
if (doc.directives?.docEnd) {
|
|
2571
2570
|
if (doc.comment) {
|
|
2572
2571
|
const cs = commentString(doc.comment);
|
|
@@ -5736,11 +5735,29 @@ function parse(src, reviver, options) {
|
|
|
5736
5735
|
}
|
|
5737
5736
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
5738
5737
|
}
|
|
5738
|
+
function stringify(value, replacer, options) {
|
|
5739
|
+
let _replacer = null;
|
|
5740
|
+
if (typeof replacer === "function" || Array.isArray(replacer)) _replacer = replacer;
|
|
5741
|
+
else if (options === void 0 && replacer) options = replacer;
|
|
5742
|
+
if (typeof options === "string") options = options.length;
|
|
5743
|
+
if (typeof options === "number") {
|
|
5744
|
+
const indent = Math.round(options);
|
|
5745
|
+
options = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent };
|
|
5746
|
+
}
|
|
5747
|
+
if (value === void 0) {
|
|
5748
|
+
const { keepUndefined } = options ?? replacer ?? {};
|
|
5749
|
+
if (!keepUndefined) return void 0;
|
|
5750
|
+
}
|
|
5751
|
+
if (isDocument(value) && !_replacer) return value.toString(options);
|
|
5752
|
+
return new Document(value, _replacer, options).toString(options);
|
|
5753
|
+
}
|
|
5739
5754
|
//#endregion
|
|
5740
5755
|
//#region ../../foundations/po-config/src/services/configPolicy/index.ts
|
|
5741
5756
|
const DEFAULT_PROJECT_TRUST = "ask";
|
|
5742
5757
|
const DEFAULT_VOICE_MODE = "legacy";
|
|
5743
5758
|
const DEFAULT_VOICE_ENGINE = "auto";
|
|
5759
|
+
const DEFAULT_VOICE_LANGUAGE = "auto";
|
|
5760
|
+
const DEFAULT_RECORDER_DEVICE = "none:default";
|
|
5744
5761
|
const ROOT_KEYS = [
|
|
5745
5762
|
"modes",
|
|
5746
5763
|
"computerUse",
|
|
@@ -5835,6 +5852,7 @@ const VOICE_KEYS = [
|
|
|
5835
5852
|
"autoCapture",
|
|
5836
5853
|
"live"
|
|
5837
5854
|
];
|
|
5855
|
+
/** `orchestrator` configured the removed Voice conversation; it stays accepted so older files still load, and is ignored. */
|
|
5838
5856
|
const VOICE_LIVE_KEYS = [
|
|
5839
5857
|
"voice",
|
|
5840
5858
|
"model",
|
|
@@ -5872,12 +5890,38 @@ const TTS_KEYS = [
|
|
|
5872
5890
|
"voice",
|
|
5873
5891
|
"rate"
|
|
5874
5892
|
];
|
|
5893
|
+
const DEFAULT_UTTERANCE_IDLE_MS = 3e3;
|
|
5875
5894
|
const MIN_UTTERANCE_IDLE_MS = 1500;
|
|
5876
5895
|
const MAX_UTTERANCE_IDLE_MS = 1e4;
|
|
5896
|
+
/**
|
|
5897
|
+
* The endpoint window used while a composition draft is collecting.
|
|
5898
|
+
*
|
|
5899
|
+
* Shorter than `utteranceIdleMs` on purpose. A turn produces exactly one transcript, so
|
|
5900
|
+
* with the ordinary ~3 s window a short command spoken after a brief pause arrives glued
|
|
5901
|
+
* to the end of the preceding sentence and can never be read as a command. Roughly twice
|
|
5902
|
+
* the VAD's own 600 ms trailing-silence window: long enough that ordinary speech rhythm
|
|
5903
|
+
* does not split a sentence, short enough that a deliberate pause does. Over-splitting is
|
|
5904
|
+
* harmless here and only here, because draft segments are joined back together with a
|
|
5905
|
+
* space.
|
|
5906
|
+
*/
|
|
5907
|
+
const DEFAULT_COMPOSE_UTTERANCE_IDLE_MS = 1200;
|
|
5877
5908
|
const MIN_COMPOSE_UTTERANCE_IDLE_MS = 800;
|
|
5878
5909
|
const MAX_COMPOSE_UTTERANCE_IDLE_MS = 3e3;
|
|
5910
|
+
/** Silence before Voice reminds the user a draft is still open. `0` disables it. */
|
|
5911
|
+
const DEFAULT_COMPOSE_NUDGE_MS = 1e4;
|
|
5879
5912
|
const MIN_COMPOSE_NUDGE_MS = 5e3;
|
|
5880
5913
|
const MAX_COMPOSE_NUDGE_MS = 6e4;
|
|
5914
|
+
/**
|
|
5915
|
+
* Defaults kept as lists so the phrases that shipped first keep working.
|
|
5916
|
+
*
|
|
5917
|
+
* `hey po` and `that's it` read as speech; `po prompt` and `po send` are what
|
|
5918
|
+
* existing users have in their fingers. Dropping the originals would break them for no
|
|
5919
|
+
* gain, and the cost of carrying both is two extra comparisons per command candidate.
|
|
5920
|
+
*/
|
|
5921
|
+
const DEFAULT_COMPOSE_OPEN_PHRASES = ["hey po", "po prompt"];
|
|
5922
|
+
const DEFAULT_COMPOSE_SEND_PHRASES = ["that's it", "po send"];
|
|
5923
|
+
const DEFAULT_COMPOSE_CANCEL_PHRASES = ["po cancel", "scratch that"];
|
|
5924
|
+
const DEFAULT_TRANSCRIPTION_TIMEOUT_MS = 12e4;
|
|
5881
5925
|
const MIN_TRANSCRIPTION_TIMEOUT_MS = 1e3;
|
|
5882
5926
|
const MAX_TRANSCRIPTION_TIMEOUT_MS = 12e4;
|
|
5883
5927
|
const MAX_CONTROL_PHRASES = 16;
|
|
@@ -6263,8 +6307,6 @@ function parseVoiceLive(value, filePath) {
|
|
|
6263
6307
|
if (typeof value.model !== "string" || value.model.length > MAX_LIVE_MODEL_LENGTH || !LIVE_MODEL_PATTERN.test(value.model)) throw new Error(`Po config at ${filePath} requires voice.live.model to be a model id of at most ${MAX_LIVE_MODEL_LENGTH} letters, digits, dots, colons, underscores or dashes`);
|
|
6264
6308
|
result.model = value.model;
|
|
6265
6309
|
}
|
|
6266
|
-
const orchestrator = parseAgent(value.orchestrator, "voice.live.orchestrator", filePath);
|
|
6267
|
-
if (orchestrator) result.orchestrator = orchestrator;
|
|
6268
6310
|
return result;
|
|
6269
6311
|
}
|
|
6270
6312
|
function parseSelection(value, filePath) {
|
|
@@ -6570,6 +6612,48 @@ function mergeVoice(globalValue, repositoryValue) {
|
|
|
6570
6612
|
...globalValue?.autoCapture ? { autoCapture: globalValue.autoCapture } : {}
|
|
6571
6613
|
};
|
|
6572
6614
|
}
|
|
6615
|
+
/**
|
|
6616
|
+
* Resolves voice settings, optionally shadowed by the active profile's override.
|
|
6617
|
+
*
|
|
6618
|
+
* The override is per field, so a persona that sets only `rate` keeps the voice
|
|
6619
|
+
* from config.yaml. `engine` is deliberately not overridable: it selects the
|
|
6620
|
+
* synthesiser binary, which is a machine-level fact rather than a persona's.
|
|
6621
|
+
*
|
|
6622
|
+
* The result is read once when autonomous voice activates, because
|
|
6623
|
+
* `VoiceNarrationPlayback.config` is assigned in `activate()` and has no setter.
|
|
6624
|
+
* That is sufficient today only because every profile switch reloads the
|
|
6625
|
+
* session, which deactivates and reactivates voice. A future in-place profile
|
|
6626
|
+
* switch would leave the spoken voice stale until the next activation.
|
|
6627
|
+
*/
|
|
6628
|
+
function resolveVoiceConfig(config, ttsOverride) {
|
|
6629
|
+
return {
|
|
6630
|
+
mode: config.mode ?? DEFAULT_VOICE_MODE,
|
|
6631
|
+
engine: config.engine ?? DEFAULT_VOICE_ENGINE,
|
|
6632
|
+
language: config.language ?? DEFAULT_VOICE_LANGUAGE,
|
|
6633
|
+
recorder: {
|
|
6634
|
+
...config.recorder,
|
|
6635
|
+
device: config.recorder?.device ?? DEFAULT_RECORDER_DEVICE
|
|
6636
|
+
},
|
|
6637
|
+
adapters: config.adapters ?? {},
|
|
6638
|
+
...config.autoCapture ? { autoCapture: {
|
|
6639
|
+
...config.autoCapture,
|
|
6640
|
+
startPhrases: [...config.autoCapture.startPhrases ?? []],
|
|
6641
|
+
stopPhrases: [...config.autoCapture.stopPhrases ?? []],
|
|
6642
|
+
composeOpenPhrases: [...config.autoCapture.composeOpenPhrases ?? DEFAULT_COMPOSE_OPEN_PHRASES],
|
|
6643
|
+
composeSendPhrases: [...config.autoCapture.composeSendPhrases ?? DEFAULT_COMPOSE_SEND_PHRASES],
|
|
6644
|
+
composeCancelPhrases: [...config.autoCapture.composeCancelPhrases ?? DEFAULT_COMPOSE_CANCEL_PHRASES],
|
|
6645
|
+
utteranceIdleMs: config.autoCapture.utteranceIdleMs ?? DEFAULT_UTTERANCE_IDLE_MS,
|
|
6646
|
+
composeUtteranceIdleMs: config.autoCapture.composeUtteranceIdleMs ?? DEFAULT_COMPOSE_UTTERANCE_IDLE_MS,
|
|
6647
|
+
composeNudgeMs: config.autoCapture.composeNudgeMs ?? DEFAULT_COMPOSE_NUDGE_MS,
|
|
6648
|
+
transcriptionTimeoutMs: config.autoCapture.transcriptionTimeoutMs ?? DEFAULT_TRANSCRIPTION_TIMEOUT_MS,
|
|
6649
|
+
tts: {
|
|
6650
|
+
...config.autoCapture.tts,
|
|
6651
|
+
...ttsOverride?.voice === void 0 ? {} : { voice: ttsOverride.voice },
|
|
6652
|
+
...ttsOverride?.rate === void 0 ? {} : { rate: ttsOverride.rate }
|
|
6653
|
+
}
|
|
6654
|
+
} } : {}
|
|
6655
|
+
};
|
|
6656
|
+
}
|
|
6573
6657
|
/** Root keys the merge reads from one side only. */
|
|
6574
6658
|
const GLOBAL_ONLY_ROOTS = [
|
|
6575
6659
|
"computerUse",
|
|
@@ -6602,6 +6686,37 @@ function configScopeOf(keyPath) {
|
|
|
6602
6686
|
if (REPOSITORY_ONLY_ROOTS.includes(root)) return "repository";
|
|
6603
6687
|
return "both";
|
|
6604
6688
|
}
|
|
6689
|
+
const KEY_SEPARATOR = ".";
|
|
6690
|
+
function isPlainRecord(value) {
|
|
6691
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6692
|
+
}
|
|
6693
|
+
/**
|
|
6694
|
+
* Every key path a parsed document actually sets, as dotted strings.
|
|
6695
|
+
*
|
|
6696
|
+
* A settings surface needs to tell "this file set this key" from "this file is
|
|
6697
|
+
* silent about it", and the parsed `PoConfig` cannot answer: an absent file
|
|
6698
|
+
* reads as `{ projectTrust: 'ask' }` and `parsePoConfig` always returns all
|
|
6699
|
+
* known root keys, some undefined. So the question is asked of the raw document
|
|
6700
|
+
* instead, before any defaulting has happened.
|
|
6701
|
+
*
|
|
6702
|
+
* Leaves only. A list is a leaf because it is replaced whole, and an empty
|
|
6703
|
+
* record sets nothing.
|
|
6704
|
+
*/
|
|
6705
|
+
function configLeafKeys(value, prefix = []) {
|
|
6706
|
+
if (!isPlainRecord(value)) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
|
|
6707
|
+
const keys = Object.keys(value);
|
|
6708
|
+
if (keys.length === 0) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
|
|
6709
|
+
return keys.flatMap((key) => configLeafKeys(value[key], [...prefix, key]));
|
|
6710
|
+
}
|
|
6711
|
+
/** The value a key path points at, or undefined when any step is missing. */
|
|
6712
|
+
function valueAtKeyPath(value, keyPath) {
|
|
6713
|
+
let current = value;
|
|
6714
|
+
for (const segment of keyPath) {
|
|
6715
|
+
if (!isPlainRecord(current)) return void 0;
|
|
6716
|
+
current = current[segment];
|
|
6717
|
+
}
|
|
6718
|
+
return current;
|
|
6719
|
+
}
|
|
6605
6720
|
//#endregion
|
|
6606
6721
|
//#region ../../foundations/po-config/src/services/config/core.ts
|
|
6607
6722
|
/**
|
|
@@ -6611,6 +6726,7 @@ function configScopeOf(keyPath) {
|
|
|
6611
6726
|
*/
|
|
6612
6727
|
const PO_DIR$1 = ".po";
|
|
6613
6728
|
const CONFIG_FILE = "config.yaml";
|
|
6729
|
+
const PLANS_DIR = "plans";
|
|
6614
6730
|
/** Runtime callers pass admitted environment; omission retains the legacy host lookup. */
|
|
6615
6731
|
function globalPoConfigDirectory(homeDirectory = nodeHost.homeDirectory(), environment) {
|
|
6616
6732
|
return poHomeDirectory(homeDirectory, environment);
|
|
@@ -6618,6 +6734,13 @@ function globalPoConfigDirectory(homeDirectory = nodeHost.homeDirectory(), envir
|
|
|
6618
6734
|
function globalPoConfigPath(homeDirectory = nodeHost.homeDirectory(), environment) {
|
|
6619
6735
|
return path.join(globalPoConfigDirectory(homeDirectory, environment), CONFIG_FILE);
|
|
6620
6736
|
}
|
|
6737
|
+
function resolvePlanningPlansDirectory(configured, repoRoot, homeDirectory = nodeHost.homeDirectory()) {
|
|
6738
|
+
if (!configured) return path.join(globalPoConfigDirectory(homeDirectory), PLANS_DIR);
|
|
6739
|
+
if (configured === "~") return homeDirectory;
|
|
6740
|
+
if (configured.startsWith("~/")) return path.resolve(homeDirectory, configured.slice(2));
|
|
6741
|
+
if (configured.startsWith("~")) throw new Error("Po planning plansDirectory supports only '~' or '~/' home aliases");
|
|
6742
|
+
return path.isAbsolute(configured) ? path.normalize(configured) : path.resolve(repoRoot, configured);
|
|
6743
|
+
}
|
|
6621
6744
|
function repositoryPoConfigPath(repoRoot) {
|
|
6622
6745
|
return path.join(repoRoot, PO_DIR$1, CONFIG_FILE);
|
|
6623
6746
|
}
|
|
@@ -6656,6 +6779,61 @@ function mergeConfigLayers(globalConfig, repositoryConfig, environment) {
|
|
|
6656
6779
|
return distributionDefaults(mergePoConfigs(globalConfig, repositoryConfig), environment);
|
|
6657
6780
|
}
|
|
6658
6781
|
/**
|
|
6782
|
+
* One config file as a layer: what it is, what it sets, and the bytes it held.
|
|
6783
|
+
* A file that does not exist is a layer that sets nothing, which is a normal
|
|
6784
|
+
* state rather than an error.
|
|
6785
|
+
*/
|
|
6786
|
+
function layerFromText(filePath, text) {
|
|
6787
|
+
if (text === void 0) return {
|
|
6788
|
+
filePath,
|
|
6789
|
+
exists: false,
|
|
6790
|
+
hash: "",
|
|
6791
|
+
keys: []
|
|
6792
|
+
};
|
|
6793
|
+
const document = parse(text) ?? {};
|
|
6794
|
+
return {
|
|
6795
|
+
filePath,
|
|
6796
|
+
exists: true,
|
|
6797
|
+
hash: createHash("sha256").update(text, "utf8").digest("hex"),
|
|
6798
|
+
keys: configLeafKeys(document)
|
|
6799
|
+
};
|
|
6800
|
+
}
|
|
6801
|
+
function absentRepositoryLayer() {
|
|
6802
|
+
return {
|
|
6803
|
+
filePath: "",
|
|
6804
|
+
exists: false,
|
|
6805
|
+
hash: "",
|
|
6806
|
+
keys: []
|
|
6807
|
+
};
|
|
6808
|
+
}
|
|
6809
|
+
/**
|
|
6810
|
+
* The two config files kept apart, with the merge alongside them.
|
|
6811
|
+
*
|
|
6812
|
+
* The origin answer respects the merge's own per-field rules rather than simply
|
|
6813
|
+
* preferring the repository: `editor` is read from the global side whatever the
|
|
6814
|
+
* repository says, and `projectTrust` from the repository side whatever the
|
|
6815
|
+
* global one says. Reporting a file as the source of a value the merge discards
|
|
6816
|
+
* is the exact confusion this exists to remove.
|
|
6817
|
+
*/
|
|
6818
|
+
function composeConfigLayers(globalLayer, repositoryLayer, effective) {
|
|
6819
|
+
const sets = (layer, keyPath) => {
|
|
6820
|
+
const dotted = keyPath.join(".");
|
|
6821
|
+
return layer.keys.some((key) => key === dotted || key.startsWith(`${dotted}.`));
|
|
6822
|
+
};
|
|
6823
|
+
return {
|
|
6824
|
+
globalFile: globalLayer,
|
|
6825
|
+
repositoryFile: repositoryLayer,
|
|
6826
|
+
effective,
|
|
6827
|
+
originOf(keyPath) {
|
|
6828
|
+
const scope = configScopeOf(keyPath);
|
|
6829
|
+
if (scope !== "global" && sets(repositoryLayer, keyPath)) return "repository";
|
|
6830
|
+
if (scope !== "repository" && sets(globalLayer, keyPath)) return "global";
|
|
6831
|
+
return "default";
|
|
6832
|
+
},
|
|
6833
|
+
valueAt: (keyPath) => valueAtKeyPath(effective, keyPath)
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
/**
|
|
6659
6837
|
* The global and repository locations of one named `.po` document, lowest
|
|
6660
6838
|
* precedence first.
|
|
6661
6839
|
*/
|
|
@@ -6709,4 +6887,4 @@ async function readPoConfigSourcesAsync(fs, fileName, repoRoot, context, homeDir
|
|
|
6709
6887
|
return sources;
|
|
6710
6888
|
}
|
|
6711
6889
|
//#endregion
|
|
6712
|
-
export {
|
|
6890
|
+
export { isScalar as C, isMap as S, parse as _, configFromText as a, Document as b, globalPoConfigPath as c, repositoryConfigFor as d, repositoryPoConfigPath as f, resolveVoiceConfig as g, parsePoConfig as h, composeConfigLayers as i, layerFromText as l, configScopeOf as m, poConfigCandidates as n, defaultPoConfig as o, resolvePlanningPlansDirectory as p, absentRepositoryLayer as r, globalPoConfigDirectory as s, readPoConfigSourcesAsync as t, mergeConfigLayers as u, parseDocument as v, isSeq as w, YAMLMap as x, stringify as y };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import { t as readPoConfigSourcesAsync } from "./layeredConfig-DPQAnlXD.js";
|
|
1
|
+
import { Sn as getOrThrow, vn as nodeHost } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { s as readTextIfExists } from "./platform-BIEiM4TG.js";
|
|
3
|
+
import { t as readPoConfigSourcesAsync } from "./layeredConfig-CUkYUs1f.js";
|
|
5
4
|
import path from "node:path";
|
|
6
5
|
//#region ../../foundations/po-config/src/services/majorModes/core.ts
|
|
7
6
|
const MODES_FILE = "modes.yaml";
|
|
@@ -247,15 +246,6 @@ function resolveLayers(config, majorMode) {
|
|
|
247
246
|
return [...config.majorMode[majorMode].layers];
|
|
248
247
|
}
|
|
249
248
|
//#endregion
|
|
250
|
-
//#region ../../foundations/po-config/src/services/majorModes/sync.edge.ts
|
|
251
|
-
function nodeOnly(name, asyncName) {
|
|
252
|
-
throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
|
|
253
|
-
}
|
|
254
|
-
/** @deprecated Node-only sync shim; use readMajorModesConfig. Removed in M2. */
|
|
255
|
-
function loadMajorModesConfig(_repoRoot, _homeDirectory, _environment) {
|
|
256
|
-
return nodeOnly("loadMajorModesConfig", "readMajorModesConfig");
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
249
|
//#region ../../foundations/po-config/src/services/majorModes/index.ts
|
|
260
250
|
const PACKAGE_MANIFEST = "package.json";
|
|
261
251
|
const SCOPE_PREFIX = "@";
|
|
@@ -330,4 +320,4 @@ async function readPackageConfigurations(fs, config, names, packageName, context
|
|
|
330
320
|
return resolvePackageConfigurations(config, names, packageName, (specifier, baseDirectory) => packageNames.get(key(specifier, baseDirectory)));
|
|
331
321
|
}
|
|
332
322
|
//#endregion
|
|
333
|
-
export { resolveLayers as i, readPackageConfigurations as n,
|
|
323
|
+
export { resolveLayers as i, readPackageConfigurations as n, MODES_FILE as r, readMajorModesConfig as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./majorModes-BB0PXgFn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Check, t as Errors } from "./value-
|
|
1
|
+
import { V as String, Z as Literal, bt as _Array_, et as Boolean, ht as Optional, pt as _Object_, z as Union } from "./serverPlugin-CELT6P0Q.js";
|
|
2
|
+
import { n as Check, t as Errors } from "./value-_W31So3B.js";
|
|
3
3
|
/** The portable MCP document revision represented by `agent-plugin-v1`. */
|
|
4
4
|
const AGENT_PLUGIN_MCP_SCHEMA_URL = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
|
|
5
5
|
/** Cordis service name for the immutable MCP projection of one Pi session. */
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+chord@1.5.0_esbuild@0.28.2/node_modules/@earendil-works/chord/dist/sqlite/schema.js
|
|
2
|
+
/** Validate a prefix before using it as part of a SQLite identifier. */
|
|
3
|
+
function validateSqliteSchemaPrefix(prefix) {
|
|
4
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(prefix)) throw new Error(`Invalid SQLite schema prefix ${JSON.stringify(prefix)}`);
|
|
5
|
+
if (prefix.toLowerCase().startsWith("sqlite_")) throw new Error(`SQLite schema prefix ${JSON.stringify(prefix)} is reserved`);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../../node_modules/.pnpm/@earendil-works+chord@1.5.0_esbuild@0.28.2/node_modules/@earendil-works/chord/dist/sqlite/migrations.js
|
|
9
|
+
/** Apply all pending migrations atomically, tracking their version in the named metadata table. */
|
|
10
|
+
async function applySqliteMigrations(database, migrations, options) {
|
|
11
|
+
const { table } = options;
|
|
12
|
+
validateSqliteSchemaPrefix(table);
|
|
13
|
+
for (let index = 0; index < migrations.length; index++) if (migrations[index]?.version !== index + 1) throw new Error("SQLite migrations must have contiguous versions starting at 1");
|
|
14
|
+
await database.transaction(async (transaction) => {
|
|
15
|
+
await transaction.exec(`CREATE TABLE IF NOT EXISTS ${table} (
|
|
16
|
+
singleton INTEGER PRIMARY KEY CHECK (singleton = 1),
|
|
17
|
+
version INTEGER NOT NULL CHECK (version >= 0)
|
|
18
|
+
) STRICT`);
|
|
19
|
+
await transaction.run(`INSERT OR IGNORE INTO ${table} (singleton, version) VALUES (1, 0)`);
|
|
20
|
+
const row = await transaction.get(`SELECT version FROM ${table} WHERE singleton = 1`);
|
|
21
|
+
if (row === void 0) throw new Error("SQLite schema metadata is missing");
|
|
22
|
+
const currentVersion = migrations.at(-1)?.version ?? 0;
|
|
23
|
+
if (row.version > currentVersion) throw new Error(`SQLite schema version ${row.version} is newer than supported version ${currentVersion}`);
|
|
24
|
+
for (const migration of migrations) {
|
|
25
|
+
if (migration.version <= row.version) continue;
|
|
26
|
+
for (const statement of migration.statements) await transaction.exec(statement);
|
|
27
|
+
await transaction.run(`UPDATE ${table} SET version = ? WHERE singleton = 1`, migration.version);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { validateSqliteSchemaPrefix as n, applySqliteMigrations as t };
|