wednesdayai 0.5.1-dev.40 → 0.5.1-dev.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-scope-BudmZlc1.js → agent-scope-CoIdVzmg.js} +3 -3
- package/dist/{agent-turn-runner-y0WL6xuI.js → agent-turn-runner-BkWusthz.js} +3 -3
- package/dist/{agent-turn-runner-C5FiRTJg.js → agent-turn-runner-FwkD42Me.js} +6 -6
- package/dist/{api-key-rotation-DAI1NT_a.js → api-key-rotation-1GnreUfv.js} +1 -1
- package/dist/{api-key-rotation-DzXkIU1m.js → api-key-rotation-1bTDnvBU.js} +2 -2
- package/dist/{audio-preflight-E-nHdi7I.js → audio-preflight-CCjuApbs.js} +27 -27
- package/dist/{audio-preflight-Bdn8EyXv.js → audio-preflight-cWE_jPq7.js} +14 -14
- package/dist/{audio-transcription-runner-MJ65xlDX.js → audio-transcription-runner-Bk1wu6OC.js} +8 -8
- package/dist/{audio-transcription-runner-Cc-hAbE1.js → audio-transcription-runner-DgFYIaIw.js} +26 -26
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +58 -58
- package/dist/bundled/session-memory/handler.js +58 -58
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chat-content-DtaSiJ_7.js → chat-content-B7yKTLAY.js} +9 -9
- package/dist/{chat-content-CL44f6Ub.js → chat-content-BdADRLL0.js} +36 -36
- package/dist/{plugin-sdk/chrome-DML7V0HT.js → chrome-DQ2kyZpc.js} +34 -34
- package/dist/{chrome-BRVJGvQa.js → chrome-W4kkryVf.js} +5 -5
- package/dist/{chunk-BHQuzJtJ.js → chunk-BAxcOCcV.js} +3 -3
- package/dist/{chunk-CGvXEMAJ.js → chunk-BBj2TedD.js} +1 -1
- package/dist/{command-queue-CyJUnsMn.js → command-queue-CRm1AADE.js} +1 -1
- package/dist/{command-registry-xYf1aBOy.js → command-registry-Ip0F63vx.js} +4 -4
- package/dist/{commands-registry-CNVoO37I.js → commands-registry-CtR9mXss.js} +2 -2
- package/dist/{commands-registry-BO2o7Un9.js → commands-registry-b4F_78R4.js} +1 -1
- package/dist/{completion-cli-od6mAB_x.js → completion-cli-BFHL_SSq.js} +2 -2
- package/dist/{completion-cli-BIuMSnSA.js → completion-cli-EqOcxJpx.js} +1 -1
- package/dist/{credentials-DnIj4HtR.js → credentials-BhiiI_Nr.js} +1 -1
- package/dist/{credentials-GPboJeMC.js → credentials-U5jLZxJ-.js} +1 -1
- package/dist/{deliver-x1MM90HA.js → deliver-BQSIZZRd.js} +11 -11
- package/dist/{deliver-DUUEMT-w.js → deliver-BufoibUD.js} +29 -29
- package/dist/{diagnostic-YRGuisNG.js → diagnostic-BSnQ1U_E.js} +3 -3
- package/dist/{doctor-completion-xR-LI2Kc.js → doctor-completion-CNBGQIUD.js} +1 -1
- package/dist/{doctor-completion-B3oIZ4R2.js → doctor-completion-W6Xmw25w.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-DnS9ngr1.js → errors-BzL6hu4G.js} +1 -1
- package/dist/extensionAPI.js +40 -40
- package/dist/{fetch-Cpgrvssj.js → fetch-DQjTi7nc.js} +1 -1
- package/dist/{fetch-ChtdmCYU.js → fetch-DUVm-Rj1.js} +8 -8
- package/dist/{plugin-sdk/fetch-BqFNIJpI.js → fetch-DmpLwwor.js} +1 -1
- package/dist/{fetch-BzeUsif1.js → fetch-JiVpsY-F.js} +2 -2
- package/dist/{fetch-guard-BnKTeFyb.js → fetch-guard-BySb6coS.js} +2 -2
- package/dist/{fetch-guard-D49piGJ5.js → fetch-guard-Dn6Z6n6a.js} +1 -1
- package/dist/{frontmatter-CqznVm7P.js → frontmatter-NYeLKFIP.js} +3 -3
- package/dist/{fs-safe-D96d8swI.js → fs-safe-DOdeIkaS.js} +26 -26
- package/dist/{gateway-cli-B0WWrjnY.js → gateway-cli-D17zAbrY.js} +20 -10
- package/dist/{gateway-cli-BRUhDHZW.js → gateway-cli-DktZhN9y.js} +20 -10
- package/dist/{image-ops-BiBI-uAf.js → image-ops-DEUr_rAC.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{ir-Drj2D5Gr.js → ir-B0rUqFWs.js} +5 -5
- package/dist/{ir-vVwcX8JG.js → ir-Bra81NIe.js} +2 -2
- package/dist/{legacy-names-Bx5L8LWT.js → legacy-names-D7ywm6_7.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{manager-C9H5Oflk.js → manager-3Exjl08V.js} +18 -18
- package/dist/{manager-DRfrqzWR.js → manager-DIIInXxQ.js} +4 -4
- package/dist/{markdown-tables-CzhZ9VCB.js → markdown-tables-7TebvIj0.js} +1 -1
- package/dist/{markdown-tables-BvoP0b-H.js → markdown-tables-lzV8Hoxc.js} +2 -2
- package/dist/{model-selection-DkRYDpst.js → model-selection-DFW5CGMj.js} +1 -1
- package/dist/{model-selection-2-pBJbaC.js → model-selection-_StPBPAp.js} +80 -80
- package/dist/{models-config-7yfOGOZY.js → models-config-D3M9er_C.js} +2 -2
- package/dist/{models-config-BaSANr-E.js → models-config-tNRAxYqz.js} +1 -1
- package/dist/{nudge-CcGwhSSL.js → nudge-B06CLLon.js} +35 -35
- package/dist/{nudge-Chvj0Rw2.js → nudge-DklIe0bB.js} +10 -10
- package/dist/{onboard-CRHyyv-F.js → onboard-D2AmYbm8.js} +1 -1
- package/dist/{onboard-CYQVIEKp.js → onboard-PJee12bv.js} +1 -1
- package/dist/{onboarding-CDHMZKiy.js → onboarding-C1f94rh1.js} +1 -1
- package/dist/{onboarding-vLVDuEr7.js → onboarding-DXRhSAcO.js} +1 -1
- package/dist/{onboarding.finalize-D3hX9K5R.js → onboarding.finalize-C0RUJoiz.js} +4 -4
- package/dist/{onboarding.finalize-BDJnDt6t.js → onboarding.finalize-Calv0MIe.js} +3 -3
- package/dist/{outbound-attachment-DegoJUYB.js → outbound-attachment-BeSAM8qU.js} +1 -1
- package/dist/{outbound-attachment-CxvBVgcJ.js → outbound-attachment-CCQDMmDH.js} +2 -2
- package/dist/{outbound-message-hooks-DfRORyCc.js → outbound-message-hooks-Bn5_bObR.js} +5 -5
- package/dist/{outbound-message-hooks-bMw-LLuz.js → outbound-message-hooks-CrrbzX7U.js} +2 -2
- package/dist/{pairing-files-ByediFgs.js → pairing-files-B1ukutA_.js} +1 -1
- package/dist/{path-alias-guards-BXXI1YTn.js → path-alias-guards-aXY57qPv.js} +1 -1
- package/dist/{pi-embedded-BSVP6xD2.js → pi-embedded-CL5jkXds.js} +64 -64
- package/dist/{pi-embedded-Dp5uUcq6.js → pi-embedded-DGpkqagr.js} +251 -251
- package/dist/{pi-embedded-utils-BF4B99Db.js → pi-embedded-utils-D9zLeiKy.js} +1 -1
- package/dist/{pi-embedded-utils-Dc-LEWCI.js → pi-embedded-utils-DD7HmeWR.js} +3 -3
- package/dist/{pi-model-discovery-B44lshxv.js → pi-model-discovery-BTuzuVh1.js} +7 -7
- package/dist/{pi-model-discovery-B5oKc4R3.js → pi-model-discovery-DiGB5xAq.js} +1 -1
- package/dist/plugin-sdk/agent-turn-execute-D0szeKs8.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-D3tAlzpP.js → agent-turn-runner-fV3h6ELM.js} +6 -6
- package/dist/plugin-sdk/{api-key-rotation-Dmd_whf1.js → api-key-rotation-DbJkvwYN.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-2XKqIXAx.js → audio-preflight-DhIYyWh0.js} +14 -14
- package/dist/plugin-sdk/{audio-transcription-runner-2ziIuais.js → audio-transcription-runner-DbjdWQRu.js} +8 -8
- package/dist/plugin-sdk/{auth-profiles-BxDhfCHT.js → auth-profiles-DPd1Ol-P.js} +1 -1
- package/dist/plugin-sdk/{chat-content-DWJ_WMLQ.js → chat-content-CEMoDe5q.js} +9 -9
- package/dist/{chrome-D1006Mu2.js → plugin-sdk/chrome-CobI3ImG.js} +8 -8
- package/dist/plugin-sdk/{chunk-SR4Ydfza.js → chunk-C3M1IW7W.js} +2 -2
- package/dist/plugin-sdk/{command-queue-DUO9-NRr.js → command-queue-DUuIiwvi.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-DnePgYTq.js → commands-registry-DPCcTIwi.js} +2 -2
- package/dist/plugin-sdk/{credentials-DJMyq23O.js → credentials-BgX_xjTe.js} +1 -1
- package/dist/plugin-sdk/deliver-DTstMBfw.js +34 -0
- package/dist/plugin-sdk/{deliver-D3LWZpv1.js → deliver-lkeqXp0v.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-BXgGsRnq.js → diagnostic-TucKQ5Fk.js} +2 -2
- package/dist/plugin-sdk/{diagnostic-session-state-Y-_mHHE2.js → diagnostic-session-state-C74O1QW2.js} +1 -1
- package/dist/{fetch-CrTLz8wd.js → plugin-sdk/fetch-BEOHdT2e.js} +1 -1
- package/dist/plugin-sdk/{fetch-CpY6mDmQ.js → fetch-D7rvWjfk.js} +2 -2
- package/dist/plugin-sdk/{fetch-guard-BEue3kvx.js → fetch-guard-CQIsGUgZ.js} +1 -1
- package/dist/plugin-sdk/{inbound-context-CKtZsNVT.js → inbound-context-BdGImnhD.js} +1 -1
- package/dist/plugin-sdk/{ir-Ep5lw12h.js → ir-D-nyt7yZ.js} +2 -2
- package/dist/plugin-sdk/{manager-DyYd10T2.js → manager-3Bw8zhA3.js} +4 -4
- package/dist/plugin-sdk/manager-BexdJt3o.js +14 -0
- package/dist/plugin-sdk/{markdown-tables-B4G-uOPz.js → markdown-tables-DczIA0hC.js} +2 -2
- package/dist/plugin-sdk/{models-config-DsHaLeW3.js → models-config-DPG3UP6h.js} +1 -1
- package/dist/plugin-sdk/{monitor-CbKokdL4.js → monitor-BQWiYAwC.js} +77 -77
- package/dist/plugin-sdk/{nudge-z8ozyWd6.js → nudge-Cp00v46W.js} +11 -11
- package/dist/plugin-sdk/{outbound-attachment-BrHUWeqB.js → outbound-attachment-JHREBMfy.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-utils-6FFFlkbd.js → pi-embedded-utils-JXHsJfhx.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-BnsoI-E6.js → pi-model-discovery-CKGA60jT.js} +2 -2
- package/dist/plugin-sdk/provider-dispatcher-Cq6Acy3h.js +61 -0
- package/dist/plugin-sdk/{proxy-env-jBCtIiJH.js → proxy-env-D9QKz5Mq.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-IAdR6aX7.js → pw-ai-B_6I8TGZ.js} +4 -4
- package/dist/plugin-sdk/{qmd-manager-DERrmogO.js → qmd-manager-CIgxgs0D.js} +2 -2
- package/dist/plugin-sdk/{query-expansion-CWCvbGoy.js → query-expansion-CECAX0Pe.js} +1 -1
- package/dist/plugin-sdk/{recorder-xWMrt--U.js → recorder-C6OpZN3o.js} +1 -1
- package/dist/plugin-sdk/{registry-B-9fRLtl.js → registry-D9-EsIYH.js} +1 -1
- package/dist/plugin-sdk/{replies-BNtRlug2.js → replies-BhuMuYfa.js} +11 -11
- package/dist/plugin-sdk/{replies-CbnkLeUl.js → replies-ClN-Aak4.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-CKNwlk_8.js → reply-directives-C69Fd8zO.js} +1 -1
- package/dist/plugin-sdk/{reply-prefix-DCeyas-6.js → reply-prefix-BQ-rDIAU.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-t2HJkuDx.js → resolve-route-N9oe4tGM.js} +2 -2
- package/dist/plugin-sdk/{runs-B0mmuxPP.js → runs-0OTO0OVX.js} +12 -12
- package/dist/plugin-sdk/{runs-CSaP-UMd.js → runs-DK85oFoq.js} +7 -7
- package/dist/plugin-sdk/{send-BToCKtul.js → send-C8OYq5CD.js} +10 -10
- package/dist/plugin-sdk/send-CMAU8Lg8.js +23 -0
- package/dist/plugin-sdk/{send-CbbM7dcD.js → send-CVYVctJr.js} +6 -6
- package/dist/plugin-sdk/{send-hdgQBd4P.js → send-CciBIiE2.js} +4 -4
- package/dist/plugin-sdk/{send-rQhDBwIJ.js → send-CilPGWoe.js} +8 -8
- package/dist/plugin-sdk/{send-CTefF3Iw.js → send-CyKQnkbd.js} +6 -6
- package/dist/plugin-sdk/{send-CY2iq9C4.js → send-DFpY65tA.js} +10 -10
- package/dist/plugin-sdk/{send-BQYyBicH.js → send-dNeIyZEN.js} +5 -5
- package/dist/plugin-sdk/{session-context-E8Vv0lBU.js → session-context-4IeKkzGJ.js} +2 -2
- package/dist/plugin-sdk/{session-meta-_XFpsAgw.js → session-meta-BlMS0pts.js} +2 -2
- package/dist/plugin-sdk/{sessions-DGyoDRbg.js → sessions-BUjbH5K1.js} +1 -1
- package/dist/plugin-sdk/{skill-commands-DJ9gv-vK.js → skill-commands-J-ZcPvqF.js} +3 -3
- package/dist/plugin-sdk/{skills-mfK8NK3f.js → skills-W6RHTFue.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-DyI22dHA.js → subagent-registry-Bek3q0nu.js} +44 -44
- package/dist/plugin-sdk/{tables-Dt2IrV1k.js → tables-ohryoECJ.js} +1 -1
- package/dist/plugin-sdk/testing.js +44 -44
- package/dist/plugin-sdk/{user-run-recording-C05KbS-o.js → user-run-recording-CAAdiBWD.js} +2 -2
- package/dist/plugin-sdk/{ws-BzjQAveZ.js → ws-zaFiZiYP.js} +1 -1
- package/dist/{program-CcLb8Psv.js → program-DYZ4XAFZ.js} +2 -2
- package/dist/{program-context-X8qIC1Px.js → program-context-BM_flY1J.js} +6 -6
- package/dist/{prompt-select-styled-NrfLylYh.js → prompt-select-styled-BFW0tf77.js} +1 -1
- package/dist/{prompt-select-styled-DUTH4ST5.js → prompt-select-styled-Eb9ltCzM.js} +1 -1
- package/dist/{proxy-env-C0UK-5dm.js → proxy-env-RzbogHFe.js} +1 -1
- package/dist/{proxy-env-DdoaBr4H.js → proxy-env-dFmQfhFb.js} +1 -1
- package/dist/{pw-ai-CV5A9Kt_.js → pw-ai-B2n3DHPt.js} +14 -14
- package/dist/{pw-ai-8QlHyDLL.js → pw-ai-D55f0Pr9.js} +4 -4
- package/dist/{qmd-manager-B_ED_NmL.js → qmd-manager-C4rOtrQS.js} +2 -2
- package/dist/{qmd-manager-Bw5dnMTy.js → qmd-manager-jLSZ3VID.js} +12 -12
- package/dist/{qmd-scope-0dG63o_w.js → qmd-scope-BN4oVeLu.js} +1 -1
- package/dist/{query-expansion-BVj0lCGG.js → query-expansion-Dm_RIg6M.js} +1 -1
- package/dist/{query-expansion-gzgHhq68.js → query-expansion-UPsVmvEm.js} +13 -13
- package/dist/{recorder-BowlGHGe.js → recorder-DRV1SIKe.js} +1 -1
- package/dist/{recorder-ciGDu2oO.js → recorder-DvYXNusz.js} +2 -2
- package/dist/{redact-Cp-v7ZNA.js → redact-CysJDryP.js} +1 -1
- package/dist/{register.maintenance-CFd160fT.js → register.maintenance-CNiAi_Bg.js} +5 -5
- package/dist/{register.maintenance-Dc0j0tvi.js → register.maintenance-Dq3k6jFc.js} +4 -4
- package/dist/{register.onboard-u0pMgMv4.js → register.onboard-DGBJtyFX.js} +2 -2
- package/dist/{register.onboard-C-lkIY7d.js → register.onboard-DqGIfQsO.js} +2 -2
- package/dist/{register.setup-BAiTfEey.js → register.setup-BdAQ_7gM.js} +2 -2
- package/dist/{register.setup-D6hviI6L.js → register.setup-Ckb9Hpks.js} +2 -2
- package/dist/{register.subclis-3YVvoBSB.js → register.subclis-Cn5DS2Th.js} +3 -3
- package/dist/{replies-7qxW8HcU.js → replies-BL7cHT2h.js} +4 -4
- package/dist/{replies-EZyamg1p.js → replies-DfoUf3N4.js} +5 -5
- package/dist/{reply-directives-DarQZxqY.js → reply-directives-D4Hftiqp.js} +1 -1
- package/dist/{reply-directives-DMPiBIx3.js → reply-directives-DsGD4aw1.js} +2 -2
- package/dist/{reply-prefix-DLf0nmds.js → reply-prefix-gWrzAQtZ.js} +1 -1
- package/dist/{resolve-route-B15qdahX.js → resolve-route-D96zWGGF.js} +1 -1
- package/dist/{resolve-route-GBqD8iPk.js → resolve-route-RQpYXVl1.js} +4 -4
- package/dist/{run-main-BBLzm5df.js → run-main-BYnz7Ou5.js} +3 -3
- package/dist/{runs-5zWtWfx5.js → runs-CAO_rrxJ.js} +5 -5
- package/dist/{runs-EvR8ugp4.js → runs-DGr28sFu.js} +9 -9
- package/dist/{send-BVfxa93K.js → send-C-m_74Nc.js} +8 -8
- package/dist/{send-Dy4zxtn3.js → send-CS1yI0B4.js} +6 -6
- package/dist/{send-B5XVAKWg.js → send-DFsyNWFI.js} +7 -7
- package/dist/{send-BCEsHNBh.js → send-DYRbKT7y.js} +6 -6
- package/dist/{send-12uxFQQR.js → send-DkJqx60r.js} +8 -8
- package/dist/{send-Cl-ugSMv.js → send-Dv__vEQx.js} +5 -5
- package/dist/{send-DJypuRge.js → send-FQrlCKRx.js} +6 -6
- package/dist/{send-DdyIJ_uy.js → send-T9aTnSyS.js} +4 -4
- package/dist/{session-meta-DgpwY0ah.js → session-meta-CyokAxEY.js} +1 -1
- package/dist/{session-meta-C_fW_AWG.js → session-meta-DVKEsZNl.js} +1 -1
- package/dist/{sessions-B-dL4q0P.js → sessions-A1wDmvXO.js} +1 -1
- package/dist/{sessions-DODCZ4JK.js → sessions-CzjW7wiR.js} +5 -5
- package/dist/{skill-commands-5VtV6o_q.js → skill-commands-BfK22Jmi.js} +7 -7
- package/dist/{skill-commands-1Axnvvz6.js → skill-commands-CZ8IAEbM.js} +2 -2
- package/dist/{skills-B3DYwqF5.js → skills-D6riKXOf.js} +21 -21
- package/dist/{skills-CMwL1GBr.js → skills-D7jLGkoP.js} +1 -1
- package/dist/{store-DnvoAjAE.js → store-Bt16sey6.js} +7 -7
- package/dist/{tables-rCzAF-en.js → tables-BFlTcF5k.js} +1 -1
- package/dist/{tables-CuZTAY1e.js → tables-tChtQWdX.js} +1 -1
- package/dist/{tokens-C8E7C2l5.js → tokens-C2ll8wSq.js} +1 -1
- package/dist/{tool-loop-detection-4AIUOil2.js → tool-loop-detection-D0CRFNOH.js} +2 -2
- package/dist/{update-cli-D4CRTu-Y.js → update-cli-BFg_CRum.js} +5 -5
- package/dist/{update-cli-q45uqAKK.js → update-cli-BfwXa0Uk.js} +4 -4
- package/dist/{user-run-recording-Bax2KSZY.js → user-run-recording-CTOXtrSm.js} +1 -1
- package/dist/{user-run-recording-4Dhev2ED.js → user-run-recording-DJedyUge.js} +2 -2
- package/dist/{workspace-DOy2M7yN.js → workspace-xnzx7wEV.js} +26 -26
- package/dist/{ws-CWxX8WDm.js → ws-CQigqc-W.js} +1 -1
- package/dist/{ws-D916JacH.js → ws-DLbfGWAn.js} +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/github-copilot-token-DrVydgnY.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/plugin-sdk/agent-turn-execute-Co_96UFp.js +0 -61
- package/dist/plugin-sdk/deliver-5MyFMK8o.js +0 -34
- package/dist/plugin-sdk/manager-B9WMktLu.js +0 -14
- package/dist/plugin-sdk/provider-dispatcher-uLJ5yzx1.js +0 -61
- package/dist/plugin-sdk/send-vp7qbuoy.js +0 -23
- package/dist/subsystem-DoQFckDJ.js +0 -2777
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wednesdayai/openrouter",
|
|
3
|
-
"version": "0.5.1-dev.
|
|
3
|
+
"version": "0.5.1-dev.42+4842598d0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "OpenRouter media understanding: audio transcription via the OpenRouter OpenAI-compatible API.",
|
|
6
6
|
"type": "module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wednesdayai",
|
|
3
|
-
"version": "0.5.1-dev.
|
|
3
|
+
"version": "0.5.1-dev.42+4842598d0",
|
|
4
4
|
"description": "Multi-channel AI gateway with extensible messaging integrations",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/ExpansionX/WednesdayAI-core#readme",
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveStateDir } from "./paths-BIDPYPVC.js";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import fs from "node:fs";
|
|
5
|
-
|
|
6
|
-
//#region src/infra/json-file.ts
|
|
7
|
-
function loadJsonFile(pathname) {
|
|
8
|
-
try {
|
|
9
|
-
if (!fs.existsSync(pathname)) return;
|
|
10
|
-
const raw = fs.readFileSync(pathname, "utf8");
|
|
11
|
-
return JSON.parse(raw);
|
|
12
|
-
} catch {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function saveJsonFile(pathname, data) {
|
|
17
|
-
const dir = path.dirname(pathname);
|
|
18
|
-
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
|
|
19
|
-
recursive: true,
|
|
20
|
-
mode: 448
|
|
21
|
-
});
|
|
22
|
-
fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
-
fs.chmodSync(pathname, 384);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/providers/github-copilot-token.ts
|
|
28
|
-
var github_copilot_token_exports = /* @__PURE__ */ __exportAll({
|
|
29
|
-
DEFAULT_COPILOT_API_BASE_URL: () => DEFAULT_COPILOT_API_BASE_URL,
|
|
30
|
-
deriveCopilotApiBaseUrlFromToken: () => deriveCopilotApiBaseUrlFromToken,
|
|
31
|
-
resolveCopilotApiToken: () => resolveCopilotApiToken
|
|
32
|
-
});
|
|
33
|
-
const COPILOT_TOKEN_URL = "https://api.github.com/copilot_internal/v2/token";
|
|
34
|
-
function resolveCopilotTokenCachePath(env = process.env) {
|
|
35
|
-
return path.join(resolveStateDir(env), "credentials", "github-copilot.token.json");
|
|
36
|
-
}
|
|
37
|
-
function isTokenUsable(cache, now = Date.now()) {
|
|
38
|
-
return cache.expiresAt - now > 300 * 1e3;
|
|
39
|
-
}
|
|
40
|
-
function parseCopilotTokenResponse(value) {
|
|
41
|
-
if (!value || typeof value !== "object") throw new Error("Unexpected response from GitHub Copilot token endpoint");
|
|
42
|
-
const asRecord = value;
|
|
43
|
-
const token = asRecord.token;
|
|
44
|
-
const expiresAt = asRecord.expires_at;
|
|
45
|
-
if (typeof token !== "string" || token.trim().length === 0) throw new Error("Copilot token response missing token");
|
|
46
|
-
let expiresAtMs;
|
|
47
|
-
if (typeof expiresAt === "number" && Number.isFinite(expiresAt)) expiresAtMs = expiresAt > 1e10 ? expiresAt : expiresAt * 1e3;
|
|
48
|
-
else if (typeof expiresAt === "string" && expiresAt.trim().length > 0) {
|
|
49
|
-
const parsed = Number.parseInt(expiresAt, 10);
|
|
50
|
-
if (!Number.isFinite(parsed)) throw new Error("Copilot token response has invalid expires_at");
|
|
51
|
-
expiresAtMs = parsed > 1e10 ? parsed : parsed * 1e3;
|
|
52
|
-
} else throw new Error("Copilot token response missing expires_at");
|
|
53
|
-
return {
|
|
54
|
-
token,
|
|
55
|
-
expiresAt: expiresAtMs
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
const DEFAULT_COPILOT_API_BASE_URL = "https://api.individual.githubcopilot.com";
|
|
59
|
-
function deriveCopilotApiBaseUrlFromToken(token) {
|
|
60
|
-
const trimmed = token.trim();
|
|
61
|
-
if (!trimmed) return null;
|
|
62
|
-
const proxyEp = trimmed.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();
|
|
63
|
-
if (!proxyEp) return null;
|
|
64
|
-
const host = proxyEp.replace(/^https?:\/\//, "").replace(/^proxy\./i, "api.");
|
|
65
|
-
if (!host) return null;
|
|
66
|
-
return `https://${host}`;
|
|
67
|
-
}
|
|
68
|
-
async function resolveCopilotApiToken(params) {
|
|
69
|
-
const env = params.env ?? process.env;
|
|
70
|
-
const cachePath = params.cachePath?.trim() || resolveCopilotTokenCachePath(env);
|
|
71
|
-
const loadJsonFileFn = params.loadJsonFileImpl ?? loadJsonFile;
|
|
72
|
-
const saveJsonFileFn = params.saveJsonFileImpl ?? saveJsonFile;
|
|
73
|
-
const cached = loadJsonFileFn(cachePath);
|
|
74
|
-
if (cached && typeof cached.token === "string" && typeof cached.expiresAt === "number") {
|
|
75
|
-
if (isTokenUsable(cached)) return {
|
|
76
|
-
token: cached.token,
|
|
77
|
-
expiresAt: cached.expiresAt,
|
|
78
|
-
source: `cache:${cachePath}`,
|
|
79
|
-
baseUrl: deriveCopilotApiBaseUrlFromToken(cached.token) ?? DEFAULT_COPILOT_API_BASE_URL
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
const res = await (params.fetchImpl ?? fetch)(COPILOT_TOKEN_URL, {
|
|
83
|
-
method: "GET",
|
|
84
|
-
headers: {
|
|
85
|
-
Accept: "application/json",
|
|
86
|
-
Authorization: `Bearer ${params.githubToken}`
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
if (!res.ok) throw new Error(`Copilot token exchange failed: HTTP ${res.status}`);
|
|
90
|
-
const json = parseCopilotTokenResponse(await res.json());
|
|
91
|
-
const payload = {
|
|
92
|
-
token: json.token,
|
|
93
|
-
expiresAt: json.expiresAt,
|
|
94
|
-
updatedAt: Date.now()
|
|
95
|
-
};
|
|
96
|
-
saveJsonFileFn(cachePath, payload);
|
|
97
|
-
return {
|
|
98
|
-
token: payload.token,
|
|
99
|
-
expiresAt: payload.expiresAt,
|
|
100
|
-
source: `fetched:${COPILOT_TOKEN_URL}`,
|
|
101
|
-
baseUrl: deriveCopilotApiBaseUrlFromToken(payload.token) ?? DEFAULT_COPILOT_API_BASE_URL
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
//#endregion
|
|
106
|
-
export { saveJsonFile as a, loadJsonFile as i, github_copilot_token_exports as n, resolveCopilotApiToken as r, DEFAULT_COPILOT_API_BASE_URL as t };
|
package/dist/paths-BIDPYPVC.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import os from "node:os";
|
|
4
|
-
|
|
5
|
-
//#region src/infra/home-dir.ts
|
|
6
|
-
function normalize(value) {
|
|
7
|
-
const trimmed = value?.trim();
|
|
8
|
-
return trimmed ? trimmed : void 0;
|
|
9
|
-
}
|
|
10
|
-
function resolveEffectiveHomeDir(env = process.env, homedir = os.homedir) {
|
|
11
|
-
const raw = resolveRawHomeDir(env, homedir);
|
|
12
|
-
return raw ? path.resolve(raw) : void 0;
|
|
13
|
-
}
|
|
14
|
-
function resolveRawHomeDir(env, homedir) {
|
|
15
|
-
const explicitHome = normalize(env.OPENCLAW_HOME);
|
|
16
|
-
if (explicitHome) {
|
|
17
|
-
if (explicitHome === "~" || explicitHome.startsWith("~/") || explicitHome.startsWith("~\\")) {
|
|
18
|
-
const fallbackHome = normalize(env.HOME) ?? normalize(env.USERPROFILE) ?? normalizeSafe(homedir);
|
|
19
|
-
if (fallbackHome) return explicitHome.replace(/^~(?=$|[\\/])/, fallbackHome);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
return explicitHome;
|
|
23
|
-
}
|
|
24
|
-
const envHome = normalize(env.HOME);
|
|
25
|
-
if (envHome) return envHome;
|
|
26
|
-
const userProfile = normalize(env.USERPROFILE);
|
|
27
|
-
if (userProfile) return userProfile;
|
|
28
|
-
return normalizeSafe(homedir);
|
|
29
|
-
}
|
|
30
|
-
function normalizeSafe(homedir) {
|
|
31
|
-
try {
|
|
32
|
-
return normalize(homedir());
|
|
33
|
-
} catch {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function resolveRequiredHomeDir(env = process.env, homedir = os.homedir) {
|
|
38
|
-
return resolveEffectiveHomeDir(env, homedir) ?? path.resolve(process.cwd());
|
|
39
|
-
}
|
|
40
|
-
function expandHomePrefix(input, opts) {
|
|
41
|
-
if (!input.startsWith("~")) return input;
|
|
42
|
-
const home = normalize(opts?.home) ?? resolveEffectiveHomeDir(opts?.env ?? process.env, opts?.homedir ?? os.homedir);
|
|
43
|
-
if (!home) return input;
|
|
44
|
-
return input.replace(/^~(?=$|[\\/])/, home);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/config/paths.ts
|
|
49
|
-
/**
|
|
50
|
-
* Nix mode detection: When OPENCLAW_NIX_MODE=1, the gateway is running under Nix.
|
|
51
|
-
* In this mode:
|
|
52
|
-
* - No auto-install flows should be attempted
|
|
53
|
-
* - Missing dependencies should produce actionable Nix-specific error messages
|
|
54
|
-
* - Config is managed externally (read-only from Nix perspective)
|
|
55
|
-
*/
|
|
56
|
-
function resolveIsNixMode(env = process.env) {
|
|
57
|
-
return env.OPENCLAW_NIX_MODE === "1";
|
|
58
|
-
}
|
|
59
|
-
const isNixMode = resolveIsNixMode();
|
|
60
|
-
const LEGACY_STATE_DIRNAMES = [
|
|
61
|
-
".clawdbot",
|
|
62
|
-
".moldbot",
|
|
63
|
-
".moltbot"
|
|
64
|
-
];
|
|
65
|
-
const NEW_STATE_DIRNAME = ".openclaw";
|
|
66
|
-
const CONFIG_FILENAME = "openclaw.json";
|
|
67
|
-
const LEGACY_CONFIG_FILENAMES = [
|
|
68
|
-
"clawdbot.json",
|
|
69
|
-
"moldbot.json",
|
|
70
|
-
"moltbot.json"
|
|
71
|
-
];
|
|
72
|
-
function resolveDefaultHomeDir() {
|
|
73
|
-
return resolveRequiredHomeDir(process.env, os.homedir);
|
|
74
|
-
}
|
|
75
|
-
/** Build a homedir thunk that respects OPENCLAW_HOME for the given env. */
|
|
76
|
-
function envHomedir(env) {
|
|
77
|
-
return () => resolveRequiredHomeDir(env, os.homedir);
|
|
78
|
-
}
|
|
79
|
-
function legacyStateDirs(homedir = resolveDefaultHomeDir) {
|
|
80
|
-
return LEGACY_STATE_DIRNAMES.map((dir) => path.join(homedir(), dir));
|
|
81
|
-
}
|
|
82
|
-
function newStateDir(homedir = resolveDefaultHomeDir) {
|
|
83
|
-
return path.join(homedir(), NEW_STATE_DIRNAME);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* State directory for mutable data (sessions, logs, caches).
|
|
87
|
-
* Can be overridden via OPENCLAW_STATE_DIR.
|
|
88
|
-
* Default: ~/.openclaw
|
|
89
|
-
*/
|
|
90
|
-
function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
|
|
91
|
-
const effectiveHomedir = () => resolveRequiredHomeDir(env, homedir);
|
|
92
|
-
const override = env.OPENCLAW_STATE_DIR?.trim() || env.CLAWDBOT_STATE_DIR?.trim();
|
|
93
|
-
if (override) return resolveUserPath(override, env, effectiveHomedir);
|
|
94
|
-
const newDir = newStateDir(effectiveHomedir);
|
|
95
|
-
if (env.OPENCLAW_TEST_FAST === "1") return newDir;
|
|
96
|
-
const legacyDirs = legacyStateDirs(effectiveHomedir);
|
|
97
|
-
if (fs.existsSync(newDir)) return newDir;
|
|
98
|
-
const existingLegacy = legacyDirs.find((dir) => {
|
|
99
|
-
try {
|
|
100
|
-
return fs.existsSync(dir);
|
|
101
|
-
} catch {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
if (existingLegacy) return existingLegacy;
|
|
106
|
-
return newDir;
|
|
107
|
-
}
|
|
108
|
-
function resolveUserPath(input, env = process.env, homedir = envHomedir(env)) {
|
|
109
|
-
const trimmed = input.trim();
|
|
110
|
-
if (!trimmed) return trimmed;
|
|
111
|
-
if (trimmed.startsWith("~")) {
|
|
112
|
-
const expanded = expandHomePrefix(trimmed, {
|
|
113
|
-
home: resolveRequiredHomeDir(env, homedir),
|
|
114
|
-
env,
|
|
115
|
-
homedir
|
|
116
|
-
});
|
|
117
|
-
return path.resolve(expanded);
|
|
118
|
-
}
|
|
119
|
-
return path.resolve(trimmed);
|
|
120
|
-
}
|
|
121
|
-
const STATE_DIR = resolveStateDir();
|
|
122
|
-
/**
|
|
123
|
-
* Config file path (JSON5).
|
|
124
|
-
* Can be overridden via OPENCLAW_CONFIG_PATH.
|
|
125
|
-
* Default: ~/.openclaw/openclaw.json (or $OPENCLAW_STATE_DIR/openclaw.json)
|
|
126
|
-
*/
|
|
127
|
-
function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDir(env, envHomedir(env))) {
|
|
128
|
-
const override = env.OPENCLAW_CONFIG_PATH?.trim() || env.CLAWDBOT_CONFIG_PATH?.trim();
|
|
129
|
-
if (override) return resolveUserPath(override, env, envHomedir(env));
|
|
130
|
-
return path.join(stateDir, CONFIG_FILENAME);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Resolve the active config path by preferring existing config candidates
|
|
134
|
-
* before falling back to the canonical path.
|
|
135
|
-
*/
|
|
136
|
-
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
137
|
-
if (env.OPENCLAW_TEST_FAST === "1") return resolveCanonicalConfigPath(env, resolveStateDir(env, homedir));
|
|
138
|
-
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
139
|
-
try {
|
|
140
|
-
return fs.existsSync(candidate);
|
|
141
|
-
} catch {
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
if (existing) return existing;
|
|
146
|
-
return resolveCanonicalConfigPath(env, resolveStateDir(env, homedir));
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Active config path (prefers existing config files).
|
|
150
|
-
*/
|
|
151
|
-
function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, envHomedir(env)), homedir = envHomedir(env)) {
|
|
152
|
-
const override = env.OPENCLAW_CONFIG_PATH?.trim();
|
|
153
|
-
if (override) return resolveUserPath(override, env, homedir);
|
|
154
|
-
if (env.OPENCLAW_TEST_FAST === "1") return path.join(stateDir, CONFIG_FILENAME);
|
|
155
|
-
const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
|
|
156
|
-
const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
|
|
157
|
-
try {
|
|
158
|
-
return fs.existsSync(candidate);
|
|
159
|
-
} catch {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
if (existing) return existing;
|
|
164
|
-
if (stateOverride) return path.join(stateDir, CONFIG_FILENAME);
|
|
165
|
-
const defaultStateDir = resolveStateDir(env, homedir);
|
|
166
|
-
if (path.resolve(stateDir) === path.resolve(defaultStateDir)) return resolveConfigPathCandidate(env, homedir);
|
|
167
|
-
return path.join(stateDir, CONFIG_FILENAME);
|
|
168
|
-
}
|
|
169
|
-
const CONFIG_PATH = resolveConfigPathCandidate();
|
|
170
|
-
/**
|
|
171
|
-
* Resolve default config path candidates across default locations.
|
|
172
|
-
* Order: explicit config path → state-dir-derived paths → new default.
|
|
173
|
-
*/
|
|
174
|
-
function resolveDefaultConfigCandidates(env = process.env, homedir = envHomedir(env)) {
|
|
175
|
-
const effectiveHomedir = () => resolveRequiredHomeDir(env, homedir);
|
|
176
|
-
const explicit = env.OPENCLAW_CONFIG_PATH?.trim() || env.CLAWDBOT_CONFIG_PATH?.trim();
|
|
177
|
-
if (explicit) return [resolveUserPath(explicit, env, effectiveHomedir)];
|
|
178
|
-
const candidates = [];
|
|
179
|
-
const openclawStateDir = env.OPENCLAW_STATE_DIR?.trim() || env.CLAWDBOT_STATE_DIR?.trim();
|
|
180
|
-
if (openclawStateDir) {
|
|
181
|
-
const resolved = resolveUserPath(openclawStateDir, env, effectiveHomedir);
|
|
182
|
-
candidates.push(path.join(resolved, CONFIG_FILENAME));
|
|
183
|
-
candidates.push(...LEGACY_CONFIG_FILENAMES.map((name) => path.join(resolved, name)));
|
|
184
|
-
}
|
|
185
|
-
const defaultDirs = [newStateDir(effectiveHomedir), ...legacyStateDirs(effectiveHomedir)];
|
|
186
|
-
for (const dir of defaultDirs) {
|
|
187
|
-
candidates.push(path.join(dir, CONFIG_FILENAME));
|
|
188
|
-
candidates.push(...LEGACY_CONFIG_FILENAMES.map((name) => path.join(dir, name)));
|
|
189
|
-
}
|
|
190
|
-
return candidates;
|
|
191
|
-
}
|
|
192
|
-
const DEFAULT_GATEWAY_PORT = 18789;
|
|
193
|
-
/**
|
|
194
|
-
* Gateway lock directory (ephemeral).
|
|
195
|
-
* Default: os.tmpdir()/openclaw-<uid> (uid suffix when available).
|
|
196
|
-
*/
|
|
197
|
-
function resolveGatewayLockDir(tmpdir = os.tmpdir) {
|
|
198
|
-
const base = tmpdir();
|
|
199
|
-
const uid = typeof process.getuid === "function" ? process.getuid() : void 0;
|
|
200
|
-
const suffix = uid != null ? `openclaw-${uid}` : "openclaw";
|
|
201
|
-
return path.join(base, suffix);
|
|
202
|
-
}
|
|
203
|
-
const OAUTH_FILENAME = "oauth.json";
|
|
204
|
-
/**
|
|
205
|
-
* OAuth credentials storage directory.
|
|
206
|
-
*
|
|
207
|
-
* Precedence:
|
|
208
|
-
* - `OPENCLAW_OAUTH_DIR` (explicit override)
|
|
209
|
-
* - `$*_STATE_DIR/credentials` (canonical server/default)
|
|
210
|
-
*/
|
|
211
|
-
function resolveOAuthDir(env = process.env, stateDir = resolveStateDir(env, envHomedir(env))) {
|
|
212
|
-
const override = env.OPENCLAW_OAUTH_DIR?.trim();
|
|
213
|
-
if (override) return resolveUserPath(override, env, envHomedir(env));
|
|
214
|
-
return path.join(stateDir, "credentials");
|
|
215
|
-
}
|
|
216
|
-
function resolveOAuthPath(env = process.env, stateDir = resolveStateDir(env, envHomedir(env))) {
|
|
217
|
-
return path.join(resolveOAuthDir(env, stateDir), OAUTH_FILENAME);
|
|
218
|
-
}
|
|
219
|
-
function resolveGatewayPort(cfg, env = process.env) {
|
|
220
|
-
const envRaw = env.OPENCLAW_GATEWAY_PORT?.trim() || env.CLAWDBOT_GATEWAY_PORT?.trim();
|
|
221
|
-
if (envRaw) {
|
|
222
|
-
const parsed = Number.parseInt(envRaw, 10);
|
|
223
|
-
if (Number.isFinite(parsed) && parsed > 0) return parsed;
|
|
224
|
-
}
|
|
225
|
-
const configPort = cfg?.gateway?.port;
|
|
226
|
-
if (typeof configPort === "number" && Number.isFinite(configPort)) {
|
|
227
|
-
if (configPort > 0) return configPort;
|
|
228
|
-
}
|
|
229
|
-
return DEFAULT_GATEWAY_PORT;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
//#endregion
|
|
233
|
-
export { resolveGatewayLockDir as a, resolveOAuthPath as c, resolveEffectiveHomeDir as d, resolveRequiredHomeDir as f, resolveDefaultConfigCandidates as i, resolveStateDir as l, STATE_DIR as n, resolveGatewayPort as o, resolveConfigPath as r, resolveOAuthDir as s, DEFAULT_GATEWAY_PORT as t, expandHomePrefix as u };
|