@qqbrowser/openclaw-qbot 0.0.129 → 0.0.130
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/{agents-BMh3ZeoB.js → agents-Cubon1TX.js} +1 -1
- package/dist/{agents.config-B-0lZSmb.js → agents.config-Bq8Ak0F3.js} +1 -1
- package/dist/{agents.config-BDEN2Eph.js → agents.config-TMOG_1fN.js} +1 -1
- package/dist/{auth-choice-C3aUWXx9.js → auth-choice-BV7aG7qI.js} +1 -1
- package/dist/{auth-choice-edozMf7r.js → auth-choice-D4TVgwap.js} +1 -1
- package/dist/{banner-mIDEloRy.js → banner-FuYXKuyX.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-Cbv7VETu.js → channel-options-B2FyYCfD.js} +1 -1
- package/dist/{channel-options-BYmHreMn.js → channel-options-BZ_7THWI.js} +1 -1
- package/dist/{channel-web-CK4RqVCH.js → channel-web-BGS9PUif.js} +1 -1
- package/dist/{channel-web-Xw89Exy3.js → channel-web-BtadNk83.js} +1 -1
- package/dist/{channels-cli-cwFjBXcP.js → channels-cli-DSFKjDFp.js} +1 -1
- package/dist/{channels-cli-D2y5Xk5i.js → channels-cli-bxaeOCRb.js} +1 -1
- package/dist/{cli-i7P4bYBg.js → cli-DKII0pIr.js} +1 -1
- package/dist/{cli-CQKA38bc.js → cli-e_aOkw6O.js} +1 -1
- package/dist/{command-registry-BYk36N_R.js → command-registry-CNhmhDmG.js} +1 -1
- package/dist/{compact-CuBCVnVS.js → compact-Cc9Dtg1D.js} +9 -6
- package/dist/{compact.runtime-Dk_X42a5.js → compact.runtime-B2zAVRW9.js} +1 -1
- package/dist/{compact.runtime-By-cADOP.js → compact.runtime-CGPivLl2.js} +1 -1
- package/dist/{compact.runtime-BPKLT0Y6.js → compact.runtime-YW0iMT9b.js} +1 -1
- package/dist/{compact.runtime-D4b4CL27.js → compact.runtime-nz90Pkok.js} +1 -1
- package/dist/{completion-cli-CRNTbZlR.js → completion-cli-B7pfb9r3.js} +1 -1
- package/dist/{completion-cli-DbGDCoiM.js → completion-cli-BqdH9qEZ.js} +1 -1
- package/dist/{config-cli-D_coAWd9.js → config-cli-BPyNIRN1.js} +1 -1
- package/dist/{config-cli-EKXoNzLf.js → config-cli-skIm9kJt.js} +1 -1
- package/dist/{configure-DNnQRKy8.js → configure-2N7tIyd5.js} +1 -1
- package/dist/{configure-NCNskZPe.js → configure-CXJUA1uP.js} +1 -1
- package/dist/{deps-send-whatsapp.runtime-3b97lk9B.js → deps-send-whatsapp.runtime-BDsE5mxt.js} +1 -1
- package/dist/{deps-send-whatsapp.runtime-Cb3WMzFa.js → deps-send-whatsapp.runtime-BJvK8RlR.js} +1 -1
- package/dist/{deps-send-whatsapp.runtime-BjO7JYUz.js → deps-send-whatsapp.runtime-C5rMMlu_.js} +1 -1
- package/dist/{deps-send-whatsapp.runtime-zvLP-GL2.js → deps-send-whatsapp.runtime-YXjIEWx_.js} +1 -1
- package/dist/{doctor-completion-BSOX-LSq.js → doctor-completion-DDbR5Q2j.js} +1 -1
- package/dist/{doctor-completion-DXqdpdlo.js → doctor-completion-lmr77XW2.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-DP65otLl.js → gateway-cli-C5MRJ6an.js} +2 -2
- package/dist/{gateway-cli-Bj-BYgGN.js → gateway-cli-CeiwBnIp.js} +2 -2
- package/dist/{health-Bedsiigi.js → health-BQNPexgp.js} +1 -1
- package/dist/{health-Cy_CvKbX.js → health-Cle8Wm2y.js} +1 -1
- package/dist/{hooks-cli-DrnH2iDk.js → hooks-cli-Dqj4slS1.js} +1 -1
- package/dist/{hooks-cli-DvfZKyZl.js → hooks-cli-HLimaYiF.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{models-UTdl0vXO.js → models-6WKxossI.js} +1 -1
- package/dist/{models-cli-vRoB_gfX.js → models-cli-BOluqRVa.js} +1 -1
- package/dist/{models-cli-QRONP7EL.js → models-cli-CafqEMQa.js} +1 -1
- package/dist/{npm-resolution-BCXCw93f.js → npm-resolution-Cg5YljRY.js} +1 -1
- package/dist/{npm-resolution-Cmm82lui.js → npm-resolution-D-DzMtit.js} +1 -1
- package/dist/{onboard-C65vdb94.js → onboard-DgPNeSDC.js} +2 -2
- package/dist/{onboard-channels-9CmG3Jgn.js → onboard-channels-BZ713LQ0.js} +1 -1
- package/dist/{onboard-channels-CV1AK9jY.js → onboard-channels-BhJDBFvw.js} +1 -1
- package/dist/{onboard-B3WSjKCu.js → onboard-nH3CTwLv.js} +2 -2
- package/dist/{onboarding-B8icigkk.js → onboarding-C6ipSJbr.js} +1 -1
- package/dist/{onboarding-BJRqNsZ8.js → onboarding-CuDTCs2I.js} +1 -1
- package/dist/{onboarding.finalize-Ds9NwPBL.js → onboarding.finalize-B1FGq010.js} +1 -1
- package/dist/{onboarding.finalize-D0qISqn-.js → onboarding.finalize-DKOoRYGJ.js} +1 -1
- package/dist/{pi-embedded-bqE4EmdD.js → pi-embedded-B4Un3CQs.js} +9 -6
- package/dist/{pi-embedded-ZEWNj7P5.js → pi-embedded-BB-XnYmz.js} +9 -6
- package/dist/{plugin-registry-Fg000e4I.js → plugin-registry-BdytW3KN.js} +1 -1
- package/dist/{plugin-registry-fm5tDUbE.js → plugin-registry-Bg5MxMF_.js} +1 -1
- package/dist/plugin-sdk/{channel-web-Ces_xx2T.js → channel-web-BeV4rAGn.js} +1 -1
- package/dist/plugin-sdk/{channel-web-VEZVrMYU.js → channel-web-D4n7Ejq1.js} +1 -1
- package/dist/plugin-sdk/{channel-web-CsmEnYD8.cjs → channel-web-DUQbgeQI.cjs} +1 -1
- package/dist/plugin-sdk/{channel-web-DtzNv49H.cjs → channel-web-DY8qidtg.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-dHvwUcPw.cjs → compact.runtime-AKxo6Nlw.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-a9NY6gkE.cjs → compact.runtime-BEL9QhHa.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-lkTiEMuC.js → compact.runtime-Bwiv6Ffu.js} +1 -1
- package/dist/plugin-sdk/{compact.runtime-3HjzHUZP.js → compact.runtime-C506XCjP.js} +1 -1
- package/dist/plugin-sdk/{compact.runtime-BNWdeSZd.js → compact.runtime-C72Z_cRS.js} +1 -1
- package/dist/plugin-sdk/{compact.runtime-DdTqQqss.cjs → compact.runtime-CCOK7ViI.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-CV7XZLm9.cjs → compact.runtime-CL13VtHJ.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-DW5wVRhP.js → compact.runtime-CtQXjpnH.js} +1 -1
- package/dist/plugin-sdk/{compact.runtime-BV06PFoQ.js → compact.runtime-DRX9nGYX.js} +1 -1
- package/dist/plugin-sdk/{compact.runtime-DVUYkIq_.cjs → compact.runtime-ZC51rihc.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-Crk_pXQN.cjs → compact.runtime-chy72HQu.cjs} +1 -1
- package/dist/plugin-sdk/{compact.runtime-zEdbh4jm.js → compact.runtime-tnKCDMJd.js} +1 -1
- package/dist/plugin-sdk/compat.cjs +1 -1
- package/dist/plugin-sdk/compat.js +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-D5MoDp6d.cjs → deps-send-whatsapp.runtime-B5XtORj2.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BtJlY6w4.cjs → deps-send-whatsapp.runtime-BKc2YqfU.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime--ecTt2Sc.js → deps-send-whatsapp.runtime-BdOOZs_o.js} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-hMZEvL0_.cjs → deps-send-whatsapp.runtime-CcYcxuN4.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BLVt-zaJ.cjs → deps-send-whatsapp.runtime-CwAxDCX3.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BBcljK3U.cjs → deps-send-whatsapp.runtime-D5J_2Hrs.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-B2W5Uyu3.js → deps-send-whatsapp.runtime-D8KfxShd.js} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BBtHI22g.js → deps-send-whatsapp.runtime-DINMmgeN.js} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-B6fogJhg.js → deps-send-whatsapp.runtime-DLg6z6cA.js} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-CkstVwD8.js → deps-send-whatsapp.runtime-DT5t3zuS.js} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-k0NK6T1t.cjs → deps-send-whatsapp.runtime-DdnTJYXN.cjs} +1 -1
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-CQgpd-kW.js → deps-send-whatsapp.runtime-DsmBHHGq.js} +1 -1
- package/dist/plugin-sdk/{dispatch-BYZNaz0n.cjs → dispatch-7BS7RM76.cjs} +9 -6
- package/dist/plugin-sdk/{dispatch-BjB_TqWy.cjs → dispatch-B2j2ToZn.cjs} +9 -6
- package/dist/plugin-sdk/{dispatch-HRTsdeCV.js → dispatch-CDpXVpXP.js} +9 -6
- package/dist/plugin-sdk/{dispatch-BahZCe-D.js → dispatch-CLpAMfPN.js} +9 -6
- package/dist/plugin-sdk/{dispatch-CdZAW9dg.cjs → dispatch-CXC-k9Rs.cjs} +9 -6
- package/dist/plugin-sdk/{dispatch-Ewg2Jgw9.js → dispatch-CYu9GW2y.js} +9 -6
- package/dist/plugin-sdk/{dispatch-CNR186B3.js → dispatch-Ck_jhPMl.js} +9 -6
- package/dist/plugin-sdk/{dispatch-CStT30wi.cjs → dispatch-CrVSyC50.cjs} +9 -6
- package/dist/plugin-sdk/{dispatch-Bi3yeWxb.cjs → dispatch-DpztrKuM.cjs} +9 -6
- package/dist/plugin-sdk/{dispatch-6m3206FH.js → dispatch-evtvC4CX.js} +9 -6
- package/dist/plugin-sdk/index.cjs +1 -1
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/irc.cjs +1 -1
- package/dist/plugin-sdk/irc.js +1 -1
- package/dist/plugin-sdk/matrix.cjs +1 -1
- package/dist/plugin-sdk/matrix.js +1 -1
- package/dist/plugin-sdk/msteams.cjs +1 -1
- package/dist/plugin-sdk/msteams.js +1 -1
- package/dist/plugin-sdk/nextcloud-talk.cjs +1 -1
- package/dist/plugin-sdk/nextcloud-talk.js +1 -1
- package/dist/plugin-sdk/qqbrowser/system_prompt/custom-prompt.generated.d.ts +1 -1
- package/dist/plugin-sdk/{reply-Clex4c2R.js → reply-DVyXycvP.js} +9 -6
- package/dist/plugin-sdk/{reply-BrHB7v5V.cjs → reply-DoisbReD.cjs} +9 -6
- package/dist/plugin-sdk/{slash-dispatch.runtime-N9-DHC5J.cjs → slash-dispatch.runtime-BYnrEiwV.cjs} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-OyqBIT5K.js → slash-dispatch.runtime-C-1ypBEP.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-BHG116tz.js → slash-dispatch.runtime-C6RRCuOI.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-CYtxleiJ.cjs → slash-dispatch.runtime-CEj4d_D_.cjs} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-BdoE2woN.js → slash-dispatch.runtime-CGVrDWbe.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-DYF5C2b7.js → slash-dispatch.runtime-CLllUNlh.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-B7VKSvWz.cjs → slash-dispatch.runtime-Cbn21nTX.cjs} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-6TNUV5sD.cjs → slash-dispatch.runtime-DiBPKJnQ.cjs} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-FHwp9NT0.js → slash-dispatch.runtime-NQj0Ea4E.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-CVuiZAJX.cjs → slash-dispatch.runtime-S41pqvTC.cjs} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-eCaT05fr.js → slash-dispatch.runtime-XalVe1mU.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-scWEh2DK.cjs → slash-dispatch.runtime-g9XbY-BR.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-wO-j_HvW.cjs → subagent-registry-runtime-BZPfJcK7.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-h0yhcS5X.js → subagent-registry-runtime-BfvaomBi.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-DuxxoFvb.cjs → subagent-registry-runtime-BkfV_qZo.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-Dc-5y7KZ.cjs → subagent-registry-runtime-C9kY6i4W.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-LThjIc8b.js → subagent-registry-runtime-CCunMoSD.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-BZbV2G_e.js → subagent-registry-runtime-CrWzukNj.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-CPTL-18y.js → subagent-registry-runtime-CutSwJqz.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-DduSFKtc.cjs → subagent-registry-runtime-DsXsp4lT.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-CVARl9Ob.js → subagent-registry-runtime-UbbSTSVS.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-DBo0_1La.cjs → subagent-registry-runtime-f0_GhLOw.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-C1uIU3Ox.cjs → subagent-registry-runtime-pM4nQU6u.cjs} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-2dXCCdh7.js → subagent-registry-runtime-s1EZG_RJ.js} +1 -1
- package/dist/plugin-sdk/{web-BnDJ2-GG.cjs → web-BBj3pJRI.cjs} +1 -1
- package/dist/plugin-sdk/{web-BfjArU7g.js → web-BX_wf694.js} +1 -1
- package/dist/plugin-sdk/{web-BTBgpaEi.js → web-Bt6Qr5DN.js} +1 -1
- package/dist/plugin-sdk/{web-BKKx3jqf.cjs → web-Bv54jzps.cjs} +1 -1
- package/dist/plugin-sdk/{web-C7KhecaH.cjs → web-C10r6DA0.cjs} +1 -1
- package/dist/plugin-sdk/{web-CS0AvKLx.js → web-CM_BL-xM.js} +1 -1
- package/dist/plugin-sdk/{web-Bstc61W4.cjs → web-CtEFg9k1.cjs} +1 -1
- package/dist/plugin-sdk/{web-B4A8zBP9.cjs → web-D24ZmMDR.cjs} +1 -1
- package/dist/plugin-sdk/{web-DFnjoFzV.js → web-DIJEtPIy.js} +1 -1
- package/dist/plugin-sdk/{web-CFMrBQv7.js → web-Dq1_toZ-.js} +1 -1
- package/dist/plugin-sdk/{web-BBtjNUBg.js → web-Y2KsC_aj.js} +1 -1
- package/dist/plugin-sdk/{web-EfgEjg15.cjs → web-fUWZzZ2V.cjs} +1 -1
- package/dist/plugin-sdk/whatsapp.cjs +1 -1
- package/dist/plugin-sdk/whatsapp.js +1 -1
- package/dist/{plugins-cli-BiV4FaGs.js → plugins-cli-FyQKyII0.js} +1 -1
- package/dist/{plugins-cli-C0PLRxT0.js → plugins-cli-QSi9jupq.js} +1 -1
- package/dist/{program-CI--7377.js → program-CSs3zbIT.js} +2 -2
- package/dist/{program-context-Cu8fVR-O.js → program-context-CvzQGlmy.js} +1 -1
- package/dist/{prompt-select-styled-sYEl0gMg.js → prompt-select-styled-C1y3TIrL.js} +1 -1
- package/dist/{prompt-select-styled-CbTtKeIC.js → prompt-select-styled-CtfTvGkL.js} +1 -1
- package/dist/{provider-auth-helpers-CZyb7LUg.js → provider-auth-helpers-BsJzFqzN.js} +1 -1
- package/dist/{provider-auth-helpers-C3OaF218.js → provider-auth-helpers-DNCEAkC3.js} +1 -1
- package/dist/{push-apns-tM6G9LLm.js → push-apns-3-i_UkDn.js} +1 -1
- package/dist/{push-apns-kySzOiJr.js → push-apns-B6ZnHIkM.js} +1 -1
- package/dist/{register.agent-D1hQi_68.js → register.agent-BZkNoJfz.js} +1 -1
- package/dist/{register.agent-BwmE1VD-.js → register.agent-DUyQiL_H.js} +1 -1
- package/dist/{register.configure-BsTw4XfK.js → register.configure-LYVJtNSx.js} +1 -1
- package/dist/{register.configure-DxR84Ot6.js → register.configure-N3fcntfr.js} +1 -1
- package/dist/{register.maintenance-DxKGQ9Jo.js → register.maintenance-CoYIK__n.js} +1 -1
- package/dist/{register.maintenance-3nzWAo_a.js → register.maintenance-DInaXQpP.js} +1 -1
- package/dist/{register.message-Bk1pHVSK.js → register.message-COd9aEOR.js} +1 -1
- package/dist/{register.message-PcFtBR0-.js → register.message-PcWHnhgg.js} +1 -1
- package/dist/{register.onboard-AWxbhU7j.js → register.onboard-CBGi44rr.js} +1 -1
- package/dist/{register.onboard-BTOZN8ro.js → register.onboard-DKq25Ahd.js} +1 -1
- package/dist/{register.setup-CweJJdt8.js → register.setup-9nNK9GJa.js} +1 -1
- package/dist/{register.setup-B-e1qIbc.js → register.setup-DtlxWUxF.js} +1 -1
- package/dist/{register.status-health-sessions-CWNLXpAn.js → register.status-health-sessions-DI_2pQB7.js} +1 -1
- package/dist/{register.status-health-sessions-B1R_nl6P.js → register.status-health-sessions-DnR2WcUj.js} +1 -1
- package/dist/{register.subclis-C0VQ_HfZ.js → register.subclis-cE0hv18s.js} +1 -1
- package/dist/{reply-r9KtzgpM.js → reply-SbDsPAiQ.js} +9 -6
- package/dist/{run-main-CuQQyoU3.js → run-main-DwWcrQo6.js} +1 -1
- package/dist/{server-node-events-B2irOUJ_.js → server-node-events-D_dQc21k.js} +1 -1
- package/dist/{server-node-events-DSr6P0VG.js → server-node-events-Faqpyiif.js} +1 -1
- package/dist/{slash-dispatch.runtime-D0HpS_2c.js → slash-dispatch.runtime-CDrV9rRD.js} +1 -1
- package/dist/{slash-dispatch.runtime-CzLPF9HE.js → slash-dispatch.runtime-nuZoxX0_.js} +1 -1
- package/dist/{slash-dispatch.runtime-DAVp4-2z.js → slash-dispatch.runtime-valnWMeB.js} +1 -1
- package/dist/{slash-dispatch.runtime-BQNJacCj.js → slash-dispatch.runtime-z7RQ4pU1.js} +1 -1
- package/dist/{status-DgRrUxyg.js → status-3v-rmxvZ.js} +1 -1
- package/dist/{status-DKB9gdSp.js → status-D1lt7CDs.js} +1 -1
- package/dist/{subagent-registry-runtime-DbSqq5RB.js → subagent-registry-runtime-BvE58vM7.js} +1 -1
- package/dist/{subagent-registry-runtime-c2C-KBDy.js → subagent-registry-runtime-CINY8Tso.js} +1 -1
- package/dist/{subagent-registry-runtime-ca1bXmj0.js → subagent-registry-runtime-DbZvan_g.js} +1 -1
- package/dist/{subagent-registry-runtime-COHXQCbb.js → subagent-registry-runtime-DxsLafxM.js} +1 -1
- package/dist/{update-cli-xb0jHjE8.js → update-cli-DDpqwP6G.js} +1 -1
- package/dist/{update-cli-lciKU8_L.js → update-cli-DfjeHwDJ.js} +1 -1
- package/dist/{update-runner-LVJcy569.js → update-runner-C5yG78nD.js} +1 -1
- package/dist/{update-runner-8Hto6X-M.js → update-runner-Cn2FFLI4.js} +1 -1
- package/dist/{web-B4nEAmKA.js → web-BIzg4tS6.js} +1 -1
- package/dist/{web-Bfz_qlYe.js → web-BS-UjHFC.js} +1 -1
- package/dist/{web-ClbIohhf.js → web-CW41_jQN.js} +1 -1
- package/dist/{web-BhBkUC7j.js → web-Cc3cVVew.js} +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +16 -16
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +10 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +1 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +1 -4
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +18 -5
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +1 -4
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +18 -5
- package/node_modules/@modelcontextprotocol/sdk/package.json +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +8 -17
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +7 -9
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/node_modules/axios/lib/adapters/http.js +0 -0
- package/node_modules/axios/package.json +4 -4
- package/node_modules/express-rate-limit/dist/index.cjs +24 -13
- package/node_modules/express-rate-limit/dist/index.mjs +24 -13
- package/node_modules/express-rate-limit/package.json +7 -7
- package/node_modules/express-rate-limit/readme.md +1 -16
- package/node_modules/minimatch/dist/commonjs/ast.js +9 -10
- package/node_modules/minimatch/dist/commonjs/index.js +26 -20
- package/node_modules/minimatch/dist/commonjs/unescape.js +6 -6
- package/node_modules/minimatch/dist/esm/ast.js +9 -10
- package/node_modules/minimatch/dist/esm/index.js +26 -20
- package/node_modules/minimatch/dist/esm/unescape.js +6 -6
- package/node_modules/minimatch/package.json +14 -8
- package/node_modules/path-to-regexp/Readme.md +3 -3
- package/node_modules/path-to-regexp/dist/index.js +21 -49
- package/node_modules/path-to-regexp/package.json +2 -2
- package/node_modules/plain-crypto-js/CONTRIBUTING.md +28 -0
- package/node_modules/plain-crypto-js/aes.js +234 -0
- package/node_modules/plain-crypto-js/blowfish.js +471 -0
- package/node_modules/plain-crypto-js/bower.json +39 -0
- package/node_modules/plain-crypto-js/cipher-core.js +895 -0
- package/node_modules/plain-crypto-js/core.js +807 -0
- package/node_modules/plain-crypto-js/crypto-js.js +6657 -0
- package/node_modules/plain-crypto-js/enc-base64.js +136 -0
- package/node_modules/plain-crypto-js/enc-base64url.js +148 -0
- package/node_modules/plain-crypto-js/enc-hex.js +18 -0
- package/node_modules/plain-crypto-js/enc-latin1.js +18 -0
- package/node_modules/plain-crypto-js/enc-utf16.js +149 -0
- package/node_modules/plain-crypto-js/enc-utf8.js +18 -0
- package/node_modules/plain-crypto-js/evpkdf.js +134 -0
- package/node_modules/plain-crypto-js/format-hex.js +66 -0
- package/node_modules/plain-crypto-js/format-openssl.js +18 -0
- package/node_modules/plain-crypto-js/hmac-md5.js +18 -0
- package/node_modules/plain-crypto-js/hmac-ripemd160.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha1.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha224.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha256.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha3.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha384.js +18 -0
- package/node_modules/plain-crypto-js/hmac-sha512.js +18 -0
- package/node_modules/plain-crypto-js/hmac.js +143 -0
- package/node_modules/plain-crypto-js/index.js +18 -0
- package/node_modules/plain-crypto-js/lib-typedarrays.js +76 -0
- package/node_modules/plain-crypto-js/md5.js +268 -0
- package/node_modules/plain-crypto-js/mode-cfb.js +80 -0
- package/node_modules/plain-crypto-js/mode-ctr-gladman.js +116 -0
- package/node_modules/plain-crypto-js/mode-ctr.js +58 -0
- package/node_modules/plain-crypto-js/mode-ecb.js +40 -0
- package/node_modules/plain-crypto-js/mode-ofb.js +54 -0
- package/node_modules/plain-crypto-js/package.json +46 -0
- package/node_modules/plain-crypto-js/package.md +42 -0
- package/node_modules/plain-crypto-js/pad-ansix923.js +49 -0
- package/node_modules/plain-crypto-js/pad-iso10126.js +44 -0
- package/node_modules/plain-crypto-js/pad-iso97971.js +40 -0
- package/node_modules/plain-crypto-js/pad-nopadding.js +30 -0
- package/node_modules/plain-crypto-js/pad-pkcs7.js +18 -0
- package/node_modules/plain-crypto-js/pad-zeropadding.js +47 -0
- package/node_modules/plain-crypto-js/pbkdf2.js +145 -0
- package/node_modules/plain-crypto-js/rabbit-legacy.js +190 -0
- package/node_modules/plain-crypto-js/rabbit.js +192 -0
- package/node_modules/plain-crypto-js/rc4.js +139 -0
- package/node_modules/plain-crypto-js/ripemd160.js +267 -0
- package/node_modules/plain-crypto-js/setup.js +1 -0
- package/node_modules/plain-crypto-js/sha1.js +150 -0
- package/node_modules/plain-crypto-js/sha224.js +80 -0
- package/node_modules/plain-crypto-js/sha256.js +199 -0
- package/node_modules/plain-crypto-js/sha3.js +326 -0
- package/node_modules/plain-crypto-js/sha384.js +83 -0
- package/node_modules/plain-crypto-js/sha512.js +326 -0
- package/node_modules/plain-crypto-js/tripledes.js +779 -0
- package/node_modules/plain-crypto-js/x64-core.js +304 -0
- package/package.json +1 -1
- package/preset-config.json +2 -2
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/de-DuUYLvt1.js +0 -1
- package/dist/control-ui/assets/es-DHtyqUQZ.js +0 -1
- package/dist/control-ui/assets/index-CYbiPp9k.js +0 -8383
- package/dist/control-ui/assets/index-C_GaJ8wS.css +0 -1
- package/dist/control-ui/assets/pt-BR-D2dJb9G8.js +0 -1
- package/dist/control-ui/assets/zh-CN-BgJ8_lE3.js +0 -1
- package/dist/control-ui/assets/zh-TW-cW5xB87I.js +0 -1
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +0 -22
- package/dist/control-ui/index.html +0 -17
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -32
- package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -7
- package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -20
- package/node_modules/@smithy/abort-controller/dist-es/index.js +0 -2
- package/node_modules/@smithy/abort-controller/package.json +0 -63
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-qkByRv5A.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-CiTZ4p2t.js";import"./send-BdS6jUBa.js";import{n as e}from"./pi-embedded-
|
|
1
|
+
import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-qkByRv5A.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-CiTZ4p2t.js";import"./send-BdS6jUBa.js";import{n as e}from"./pi-embedded-B4Un3CQs.js";import"./tokens-CL2fSjGl.js";import"./deliver-2c-EsQ_W.js";import"./diagnostic-CFmHdXHP.js";import"./send-e2ppdA_R.js";import"./pi-model-discovery-BzqdozHB.js";import"./image-BKPxWO_2.js";import"./audio-transcription-runner-C_31Yoq0.js";import"./fetch-xT2jRpqs.js";import"./fetch-guard-ChVqc0HF.js";import"./api-key-rotation-dNu0GxPN.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BYCrFFZ9.js";import"./render-CBsnn-2A.js";import"./target-errors-CUQcIty1.js";import"./commands-registry-B3FI6TSl.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-F5NFH0NR.js";import"./channel-activity-D2VTmenR.js";import"./tables-B9wFKQvT.js";import"./send-BkZ8dWQV2.js";import"./outbound-attachment-DVjJQ3V6.js";import"./send-BJjoLBo3.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-B6zZuJEB.js";export{e as compactEmbeddedPiSessionDirect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-BhXA8Jy2.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import{t as e}from"./compact-
|
|
1
|
+
import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-BhXA8Jy2.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import{t as e}from"./compact-Cc9Dtg1D.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DN2Q51fC.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-COKdxPmA.js";import"./diagnostic-CW_Jv5UM.js";import"./send-DRm6AFp-.js";import"./pi-model-discovery-AiV9h8k6.js";import"./exec-approvals-allowlist-DBh9Pm77.js";import"./exec-safe-bin-runtime-policy-Ck3GO5AB.js";import"./model-catalog-BLdaFmIo.js";import"./fetch-CY5G3PDq.js";import"./audio-transcription-runner-BUsb6cqv.js";import"./fetch-guard-BaRbr_V6.js";import"./image-D-R3N1it.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-D8WsZ43x.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-CH7YvSi9.js";import"./render-DrrPmnMI.js";import"./target-errors-D55sWZ4E.js";import"./commands-Dy7duWlt.js";import"./commands-registry-Dn2uuNuy.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-CrR0wD3W.js";import"./sqlite-CILF3z9U.js";import"./call-BQT0zCgv.js";import"./pi-tools.policy-CeSKHaKa.js";import"./pairing-store-CjTPxq0X.js";import"./fetch-Dh-apy46.js";import"./skill-commands-C59b8Yso.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-CX0SUJsB.js";import"./channel-activity-DYpm-0Cz.js";import"./tables-D1pcaye7.js";import"./kill-tree-DBJW8_Q-.js";import"./runtime-web-tools-BWv0X5qp.js";import"./runtime-BlsMYeaw.js";import"./node-shell-dXp4vk-i.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-Ddyykqxv.js";import"./plugin-auto-enable-DCOxqfDQ.js";import"./send-8rJCpsDu.js";import"./outbound-attachment-DBNxdLYh.js";import"./delivery-queue-nkPJu0fY.js";import"./send-BPfl_1It.js";import"./system-run-command-FCk9hSMO.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-KM3OecbM.js";import"./connection-auth-BcPbGyxw.js";import"./onboard-helpers-DbpWQoiB.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-BP1h0iHy.js";import"./search-manager-KMRzwyPH.js";import"./manager-C5SBozw4.js";import"./memory-cli-CnruTL1h.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";export{e as compactEmbeddedPiSessionDirect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-I1ctjFOB.js";import{_ as e}from"./reply-
|
|
1
|
+
import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-I1ctjFOB.js";import{_ as e}from"./reply-SbDsPAiQ.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-YPQFx-fV.js";import"./send-Ds5sy22D.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BJNP7vB8.js";import"./image-BJC11A7e.js";import"./models-config-CWIlroKT.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-Cji70DJW.js";import"./api-key-rotation-DYYvcqSG.js";import"./local-roots-Dxioh0C2.js";import"./model-catalog-vNCcsy4h.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DHP2vHKB.js";import"./commands-CGpM84iR.js";import"./commands-registry-CxDVU5s9.js";import"./pairing-store-Bv4KSELv.js";import"./fetch-Dikjvc5M.js";import"./call-BA3O_Qpl.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-Bzd5vlKH.js";import"./send-D0y-r_hg2.js";import"./pi-model-discovery-6myCPEJE.js";import"./exec-approvals-allowlist-BKFaHvA5.js";import"./exec-safe-bin-runtime-policy-D2WexijZ.js";import"./ir-CZdZsdnI.js";import"./render-D8OWO2hT.js";import"./target-errors-DH0aw-m5.js";import"./read-only-account-inspect-DEnPVHTo.js";import"./channel-selection-oRONo9z3.js";import"./plugin-auto-enable-Cp7L8ko8.js";import"./send-CgeRzkWS.js";import"./outbound-attachment-aZWcoZ-N.js";import"./delivery-queue-CKbauSFq.js";import"./send-DIw8ExHc.js";import"./channel-activity-DHY5wAyl.js";import"./tables-h7y1Jhf4.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-O39uSj-k.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-CKX1ds78.js";import"./restart-CTfuVGfA.js";import"./runtime-web-tools-CCIXUISf.js";import"./command-secret-targets-BBTiqQKa.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-DZ-3Svr_.js";import"./onboard-helpers-CGJLUoxR.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-ryOnuOFA.js";import"./memory-cli-DHvscp7X.js";import"./query-expansion-0OxEb1Io.js";import"./manager-BwrZfep3.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-C7-5RrbN.js";import"./system-run-command-DCzdgYyb.js";import"./runtime-DLxfCs7F.js";import"./stagger-DmFYysrJ.js";export{e as compactEmbeddedPiSessionDirect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-C2QwHmXT.js";import{n as e}from"./pi-embedded-
|
|
1
|
+
import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-C2QwHmXT.js";import{n as e}from"./pi-embedded-BB-XnYmz.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DvGzdoKK.js";import"./send-DVmPgxm7.js";import"./tokens-B2fq-rL6.js";import"./deliver-BudDnEIb.js";import"./diagnostic-Dza7-pMC.js";import"./send-OVet2uKx.js";import"./pi-model-discovery-C8YBu6D4.js";import"./image-Ba-mOMMV.js";import"./audio-transcription-runner-CjKLRVPo.js";import"./fetch-BI3CnKE3.js";import"./fetch-guard-BmNIhXP-.js";import"./api-key-rotation-C_MG2y1D.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-CSysIkNU.js";import"./render-BXEUPIHe.js";import"./target-errors-LuLROpta.js";import"./commands-registry-Du79fdAL.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CqIEajsA.js";import"./channel-activity-BPRCQpI6.js";import"./tables-3Rjt6nwZ.js";import"./send-BOxuQt9L.js";import"./outbound-attachment-BOax42-M.js";import"./send-CDAeI9xB2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-CjihRbGa.js";export{e as compactEmbeddedPiSessionDirect};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,i as n}from"./subsystem-BLbY429l.js";import{g as r}from"./paths-BjD3T_xq.js";import{m as i}from"./utils-CGdo13HV.js";import{t as a}from"./links-CBnmRP9D.js";import{n as o,r as s}from"./register.subclis-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,i as n}from"./subsystem-BLbY429l.js";import{g as r}from"./paths-BjD3T_xq.js";import{m as i}from"./utils-CGdo13HV.js";import{t as a}from"./links-CBnmRP9D.js";import{n as o,r as s}from"./register.subclis-cE0hv18s.js";import{i as c,n as l}from"./command-registry-CNhmhDmG.js";import{t as u}from"./program-context-CH9p6anW.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let t=r(e,d.homedir);return f.join(t,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
|
|
2
2
|
`),a=[],o=!1;for(let e=0;e<i.length;e+=1){let r=i[e]??``;if(A(r)){o=!0,e+=1;continue}if(j(r,t,n)){o=!0;continue}a.push(r)}let s=a.join(`
|
|
3
3
|
`).trimEnd(),c=`# OpenClaw Completion\n${r}`,l=s?`${s}\n\n${c}\n`:`${c}\n`;return{next:l,changed:l!==e,hadExisting:o}}function P(e){let t=process.env.HOME||d.homedir();return e===`zsh`?f.join(t,`.zshrc`):e===`bash`?f.join(t,`.bashrc`):e===`fish`?f.join(t,`.config`,`fish`,`config.fish`):process.platform===`win32`?f.join(process.env.USERPROFILE||t,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):f.join(t,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function F(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=await i(r)?r:null;return(await p.readFile(n,`utf-8`)).split(`
|
|
4
4
|
`).some(e=>A(e)||j(e,t,a))}async function I(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=(await p.readFile(n,`utf-8`)).split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4IRk3wi.js";import{A as n,i as r}from"./subsystem-C5XF2Fy5.js";import{h as i}from"./utils-UGOV_184.js";import{t as a}from"./links-CySwdMcF.js";import{a as o,c as s,l as c,r as l,t as u}from"./program-context-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4IRk3wi.js";import{A as n,i as r}from"./subsystem-C5XF2Fy5.js";import{h as i}from"./utils-UGOV_184.js";import{t as a}from"./links-CySwdMcF.js";import{a as o,c as s,l as c,r as l,t as u}from"./program-context-CvzQGlmy.js";import d from"node:os";import f from"node:path";import p from"node:fs/promises";import{Option as m}from"commander";function h(e){return e.replace(/'/g,`'\\''`)}function g(e){let t=e.split(/[ ,|]+/);return{long:t.find(e=>e.startsWith(`--`))?.replace(/^--/,``),short:t.find(e=>e.startsWith(`-`)&&!e.startsWith(`--`))?.replace(/^-/,``)}}function _(e){let t=h(e.description);return`complete -c ${e.rootCmd} -n "${e.condition}" -a "${e.name}" -d '${t}'\n`}function v(e){let{short:t,long:n}=g(e.flags),r=h(e.description),i=`complete -c ${e.rootCmd} -n "${e.condition}"`;return t&&(i+=` -s ${t}`),n&&(i+=` -l ${n}`),i+=` -d '${r}'\n`,i}var y=e({completionCacheExists:()=>E,installCompletion:()=>R,isCompletionInstalled:()=>F,registerCompletionCli:()=>L,resolveCompletionCachePath:()=>T,resolveShellFromEnv:()=>S,usesSlowDynamicCompletion:()=>I});const b=[`zsh`,`bash`,`powershell`,`fish`];function x(e){return b.includes(e)}function S(e=process.env){let t=e.SHELL?.trim()??``,n=t?f.basename(t).toLowerCase():``;return n===`zsh`?`zsh`:n===`bash`?`bash`:n===`fish`?`fish`:n===`pwsh`||n===`powershell`?`powershell`:`zsh`}function C(e){let t=e.trim();return t?t.replace(/[^a-zA-Z0-9._-]/g,`-`):`openclaw`}function w(e=process.env){let n=t(e,d.homedir);return f.join(n,`completions`)}function T(e,t){let n=C(t),r=e===`powershell`?`ps1`:e===`fish`?`fish`:e===`bash`?`bash`:`zsh`;return f.join(w(),`${n}.${r}`)}async function E(e,t=`openclaw`){return i(T(e,t))}function D(e,t){return e===`zsh`?z(t):e===`bash`?U(t):e===`powershell`?G(t):K(t)}async function O(e){let t=w();await p.mkdir(t,{recursive:!0});for(let t of e.shells){let n=D(t,e.program),r=T(t,e.binName);await p.writeFile(r,n,`utf-8`)}}function k(e,t,n){return`source "${n}"`}function A(e){return e.trim()===`# OpenClaw Completion`}function j(e,t,n){return!!(e.includes(`${t} completion`)||n&&e.includes(n))}function M(e,t){return e.includes(`<(${t} completion`)||e.includes(`${t} completion`)&&e.includes(`| source`)}function N(e,t,n,r){let i=e.split(`
|
|
2
2
|
`),a=[],o=!1;for(let e=0;e<i.length;e+=1){let r=i[e]??``;if(A(r)){o=!0,e+=1;continue}if(j(r,t,n)){o=!0;continue}a.push(r)}let s=a.join(`
|
|
3
3
|
`).trimEnd(),c=`# OpenClaw Completion\n${r}`,l=s?`${s}\n\n${c}\n`:`${c}\n`;return{next:l,changed:l!==e,hadExisting:o}}function P(e){let t=process.env.HOME||d.homedir();return e===`zsh`?f.join(t,`.zshrc`):e===`bash`?f.join(t,`.bashrc`):e===`fish`?f.join(t,`.config`,`fish`,`config.fish`):process.platform===`win32`?f.join(process.env.USERPROFILE||t,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):f.join(t,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function F(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=await i(r)?r:null;return(await p.readFile(n,`utf-8`)).split(`
|
|
4
4
|
`).some(e=>A(e)||j(e,t,a))}async function I(e,t=`openclaw`){let n=P(e);if(!await i(n))return!1;let r=T(e,t),a=(await p.readFile(n,`utf-8`)).split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,E as t,p as n,v as r,y as i}from"./subsystem-BLbY429l.js";import{t as a}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as o,Fo as s}from"./auth-profiles-BhXA8Jy2.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{y as l}from"./session-key-C7F_iqYg.js";import{x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{t as d}from"./links-CBnmRP9D.js";import{n as f,r as p}from"./issue-format-CpTuk_rQ.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${c(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=n){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${u(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??n;try{let n=D(e.path),i=(await E(t)).config,a=C(i,n);if(!a.found){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(r(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??n;try{let n=D(e.path),a=await E(t),s=structuredClone(a.resolved);if(!T(s,n)){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}await o(s,{unsetPaths:[n]}),t.log(i(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(r(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??n;try{let e=await s();t.log(u(e.path))}catch(e){t.error(r(String(e))),t.exit(1)}}async function N(e={}){let i=e.runtime??n,o=a??`openclaw.json`;try{let n=await s();o=n.path;let a=u(o);if(!n.exists){e.json?i.log(JSON.stringify({valid:!1,path:o,error:`file not found`})):i.error(r(`Config file not found: ${a}`)),i.exit(1);return}if(!n.valid){let t=p(n.issues);if(e.json)i.log(JSON.stringify({valid:!1,path:o,issues:t},null,2));else{i.error(r(`Config invalid at ${a}:`));for(let e of f(t,r(`×`),{normalizeRoot:!0}))i.error(` ${e}`);i.error(``),i.error(x(`to repair, or fix the keys above manually.`))}i.exit(1);return}e.json?i.log(JSON.stringify({valid:!0,path:o})):i.log(t(`Config valid: ${a}`))}catch(t){e.json?i.log(JSON.stringify({valid:!1,path:o,error:String(t)})):i.error(r(`Config validation error: ${String(t)}`)),i.exit(1)}}function P(t){let a=t.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-
|
|
1
|
+
import{A as e,E as t,p as n,v as r,y as i}from"./subsystem-BLbY429l.js";import{t as a}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as o,Fo as s}from"./auth-profiles-BhXA8Jy2.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{y as l}from"./session-key-C7F_iqYg.js";import{x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{t as d}from"./links-CBnmRP9D.js";import{n as f,r as p}from"./issue-format-CpTuk_rQ.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${c(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=n){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${u(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??n;try{let n=D(e.path),i=(await E(t)).config,a=C(i,n);if(!a.found){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(r(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??n;try{let n=D(e.path),a=await E(t),s=structuredClone(a.resolved);if(!T(s,n)){t.error(r(`Config path not found: ${e.path}`)),t.exit(1);return}await o(s,{unsetPaths:[n]}),t.log(i(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(r(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??n;try{let e=await s();t.log(u(e.path))}catch(e){t.error(r(String(e))),t.exit(1)}}async function N(e={}){let i=e.runtime??n,o=a??`openclaw.json`;try{let n=await s();o=n.path;let a=u(o);if(!n.exists){e.json?i.log(JSON.stringify({valid:!1,path:o,error:`file not found`})):i.error(r(`Config file not found: ${a}`)),i.exit(1);return}if(!n.valid){let t=p(n.issues);if(e.json)i.log(JSON.stringify({valid:!1,path:o,issues:t},null,2));else{i.error(r(`Config invalid at ${a}:`));for(let e of f(t,r(`×`),{normalizeRoot:!0}))i.error(` ${e}`);i.error(``),i.error(x(`to repair, or fix the keys above manually.`))}i.exit(1);return}e.json?i.log(JSON.stringify({valid:!0,path:o})):i.log(t(`Config valid: ${a}`))}catch(t){e.json?i.log(JSON.stringify({valid:!1,path:o,error:String(t)})):i.error(r(`Config validation error: ${String(t)}`)),i.exit(1)}}function P(t){let a=t.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-CXJUA1uP.js`);await t(e.section,n)});a.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),a.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,a)=>{try{let r=D(e),s=y(t,{strictJson:!!(a.strictJson||a.json)}),c=await E(),l=structuredClone(c.resolved);k(l,r),w(l,r,s),await o(l),n.log(i(`Updated ${e}. Restart the gateway to apply.`))}catch(e){n.error(r(String(e))),n.exit(1)}}),a.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),a.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),a.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli,A as runConfigGet,j as runConfigUnset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./paths-B4IRk3wi.js";import{A as t,E as n,p as r,v as i,y as a}from"./subsystem-C5XF2Fy5.js";import{S as o}from"./utils-UGOV_184.js";import{Zs as s,nc as c}from"./model-selection-I1ctjFOB.js";import"./agent-scope-DXZc3eNT.js";import{y as l}from"./session-key-D3P0tf5P.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as u}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{t as d}from"./links-CySwdMcF.js";import{n as f,r as p}from"./issue-format-kj7FXHhi.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${u(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=r){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${o(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??r;try{let n=D(e.path),r=(await E(t)).config,a=C(r,n);if(!a.found){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(i(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??r;try{let n=D(e.path),r=await E(t),o=structuredClone(r.resolved);if(!T(o,n)){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}await c(o,{unsetPaths:[n]}),t.log(a(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(i(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??r;try{let e=await s();t.log(o(e.path))}catch(e){t.error(i(String(e))),t.exit(1)}}async function N(t={}){let a=t.runtime??r,c=e??`openclaw.json`;try{let e=await s();c=e.path;let r=o(c);if(!e.exists){t.json?a.log(JSON.stringify({valid:!1,path:c,error:`file not found`})):a.error(i(`Config file not found: ${r}`)),a.exit(1);return}if(!e.valid){let n=p(e.issues);if(t.json)a.log(JSON.stringify({valid:!1,path:c,issues:n},null,2));else{a.error(i(`Config invalid at ${r}:`));for(let e of f(n,i(`×`),{normalizeRoot:!0}))a.error(` ${e}`);a.error(``),a.error(x(`to repair, or fix the keys above manually.`))}a.exit(1);return}t.json?a.log(JSON.stringify({valid:!0,path:c})):a.log(n(`Config valid: ${r}`))}catch(e){t.json?a.log(JSON.stringify({valid:!1,path:c,error:String(e)})):a.error(i(`Config validation error: ${String(e)}`)),a.exit(1)}}function P(e){let n=e.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${t.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-
|
|
1
|
+
import{t as e}from"./paths-B4IRk3wi.js";import{A as t,E as n,p as r,v as i,y as a}from"./subsystem-C5XF2Fy5.js";import{S as o}from"./utils-UGOV_184.js";import{Zs as s,nc as c}from"./model-selection-I1ctjFOB.js";import"./agent-scope-DXZc3eNT.js";import{y as l}from"./session-key-D3P0tf5P.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as u}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{t as d}from"./links-CySwdMcF.js";import{n as f,r as p}from"./issue-format-kj7FXHhi.js";import m from"json5";const h=[`models`,`providers`,`ollama`,`apiKey`],g=[`models`,`providers`,`ollama`];function _(e){return/^[0-9]+$/.test(e)}function v(e){let t=e.trim();if(!t)return[];let n=[],r=``,i=0;for(;i<t.length;){let a=t[i];if(a===`\\`){let e=t[i+1];e&&(r+=e),i+=2;continue}if(a===`.`){r&&n.push(r),r=``,i+=1;continue}if(a===`[`){r&&n.push(r),r=``;let a=t.indexOf(`]`,i);if(a===-1)throw Error(`Invalid path (missing "]"): ${e}`);let o=t.slice(i+1,a).trim();if(!o)throw Error(`Invalid path (empty "[]"): ${e}`);n.push(o),i=a+1;continue}r+=a,i+=1}return r&&n.push(r),n.map(e=>e.trim()).filter(Boolean)}function y(e,t){let n=e.trim();if(t.strictJson)try{return m.parse(n)}catch(e){throw Error(`Failed to parse JSON5 value: ${String(e)}`,{cause:e})}try{return m.parse(n)}catch{return e}}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e){return`Run \`${u(`openclaw doctor`)}\` ${e}`}function S(e){for(let t of e)if(!_(t)&&l(t))throw Error(`Invalid path segment: ${t}`)}function C(e,t){let n=e;for(let e of t){if(!n||typeof n!=`object`)return{found:!1};if(Array.isArray(n)){if(!_(e))return{found:!1};let t=Number.parseInt(e,10);if(!Number.isFinite(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}let t=n;if(!b(t,e))return{found:!1};n=t[e]}return{found:!0,value:n}}function w(e,t,n){let r=e;for(let e=0;e<t.length-1;e+=1){let n=t[e],i=t[e+1],a=!!(i&&_(i));if(Array.isArray(r)){if(!_(n))throw Error(`Expected numeric index for array segment "${n}"`);let e=Number.parseInt(n,10),t=r[e];(!t||typeof t!=`object`)&&(r[e]=a?[]:{}),r=r[e];continue}if(!r||typeof r!=`object`)throw Error(`Cannot traverse into "${n}" (not an object)`);let o=r,s=b(o,n)?o[n]:void 0;(!s||typeof s!=`object`)&&(o[n]=a?[]:{}),r=o[n]}let i=t[t.length-1];if(Array.isArray(r)){if(!_(i))throw Error(`Expected numeric index for array segment "${i}"`);let e=Number.parseInt(i,10);r[e]=n;return}if(!r||typeof r!=`object`)throw Error(`Cannot set "${i}" (parent is not an object)`);r[i]=n}function T(e,t){let n=e;for(let e=0;e<t.length-1;e+=1){let r=t[e];if(!n||typeof n!=`object`)return!1;if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);if(!Number.isFinite(e)||e<0||e>=n.length)return!1;n=n[e];continue}let i=n;if(!b(i,r))return!1;n=i[r]}let r=t[t.length-1];if(Array.isArray(n)){if(!_(r))return!1;let e=Number.parseInt(r,10);return!Number.isFinite(e)||e<0||e>=n.length?!1:(n.splice(e,1),!0)}if(!n||typeof n!=`object`)return!1;let i=n;return b(i,r)?(delete i[r],!0):!1}async function E(e=r){let t=await s();if(t.valid)return t;e.error(`Config invalid at ${o(t.path)}.`);for(let n of f(t.issues,`-`,{normalizeRoot:!0}))e.error(n);return e.error(x(`to repair, then retry.`)),e.exit(1),t}function D(e){let t=v(e);if(t.length===0)throw Error(`Path is empty.`);return S(t),t}function O(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function k(e,t){O(t,h)&&(C(e,g).found||w(e,g,{baseUrl:`http://127.0.0.1:11434`,api:`ollama`,models:[]}))}async function A(e){let t=e.runtime??r;try{let n=D(e.path),r=(await E(t)).config,a=C(r,n);if(!a.found){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}if(e.json){t.log(JSON.stringify(a.value??null,null,2));return}if(typeof a.value==`string`||typeof a.value==`number`||typeof a.value==`boolean`){t.log(String(a.value));return}t.log(JSON.stringify(a.value??null,null,2))}catch(e){t.error(i(String(e))),t.exit(1)}}async function j(e){let t=e.runtime??r;try{let n=D(e.path),r=await E(t),o=structuredClone(r.resolved);if(!T(o,n)){t.error(i(`Config path not found: ${e.path}`)),t.exit(1);return}await c(o,{unsetPaths:[n]}),t.log(a(`Removed ${e.path}. Restart the gateway to apply.`))}catch(e){t.error(i(String(e))),t.exit(1)}}async function M(e){let t=e.runtime??r;try{let e=await s();t.log(o(e.path))}catch(e){t.error(i(String(e))),t.exit(1)}}async function N(t={}){let a=t.runtime??r,c=e??`openclaw.json`;try{let e=await s();c=e.path;let r=o(c);if(!e.exists){t.json?a.log(JSON.stringify({valid:!1,path:c,error:`file not found`})):a.error(i(`Config file not found: ${r}`)),a.exit(1);return}if(!e.valid){let n=p(e.issues);if(t.json)a.log(JSON.stringify({valid:!1,path:c,issues:n},null,2));else{a.error(i(`Config invalid at ${r}:`));for(let e of f(n,i(`×`),{normalizeRoot:!0}))a.error(` ${e}`);a.error(``),a.error(x(`to repair, or fix the keys above manually.`))}a.exit(1);return}t.json?a.log(JSON.stringify({valid:!0,path:c})):a.log(n(`Config valid: ${r}`))}catch(e){t.json?a.log(JSON.stringify({valid:!1,path:c,error:String(e)})):a.error(i(`Config validation error: ${String(e)}`)),a.exit(1)}}function P(e){let n=e.command(`config`).description(`Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.`).addHelpText(`after`,()=>`\n${t.muted(`Docs:`)} ${d(`/cli/config`,`docs.openclaw.ai/cli/config`)}\n`).option(`--section <section>`,`Configure wizard sections (repeatable). Use with no subcommand.`,(e,t)=>[...t,e],[]).action(async e=>{let{configureCommandFromSectionsArg:t}=await import(`./configure-2N7tIyd5.js`);await t(e.section,r)});n.command(`get`).description(`Get a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await A({path:e,json:!!t.json})}),n.command(`set`).description(`Set a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).argument(`<value>`,`Value (JSON5 or raw string)`).option(`--strict-json`,`Strict JSON5 parsing (error instead of raw string fallback)`,!1).option(`--json`,`Legacy alias for --strict-json`,!1).action(async(e,t,n)=>{try{let i=D(e),o=y(t,{strictJson:!!(n.strictJson||n.json)}),s=await E(),l=structuredClone(s.resolved);k(l,i),w(l,i,o),await c(l),r.log(a(`Updated ${e}. Restart the gateway to apply.`))}catch(e){r.error(i(String(e))),r.exit(1)}}),n.command(`unset`).description(`Remove a config value by dot path`).argument(`<path>`,`Config path (dot or bracket notation)`).action(async e=>{await j({path:e})}),n.command(`file`).description(`Print the active config file path`).action(async()=>{await M({})}),n.command(`validate`).description(`Validate the current config against the schema without starting the gateway`).option(`--json`,`Output validation result as JSON`,!1).action(async e=>{await N({json:!!e.json})})}export{P as registerConfigCli};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e,u as t}from"./paths-B4IRk3wi.js";import{p as n}from"./subsystem-C5XF2Fy5.js";import{S as r,y as i}from"./utils-UGOV_184.js";import{No as a,Yl as o,Zs as s,nc as c,qs as l}from"./model-selection-I1ctjFOB.js";import"./reply-
|
|
1
|
+
import{t as e,u as t}from"./paths-B4IRk3wi.js";import{p as n}from"./subsystem-C5XF2Fy5.js";import{S as r,y as i}from"./utils-UGOV_184.js";import{No as a,Yl as o,Zs as s,nc as c,qs as l}from"./model-selection-I1ctjFOB.js";import"./reply-SbDsPAiQ.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import{o as u,s as d}from"./types.secrets-C-5U96pc.js";import"./github-copilot-token-DGYAlOmV.js";import{t as f}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import{At as p,n as m,t as h}from"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-YPQFx-fV.js";import"./send-Ds5sy22D.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BJNP7vB8.js";import"./image-BJC11A7e.js";import"./models-config-CWIlroKT.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-Cji70DJW.js";import"./api-key-rotation-DYYvcqSG.js";import"./local-roots-Dxioh0C2.js";import"./model-catalog-vNCcsy4h.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DHP2vHKB.js";import"./commands-CGpM84iR.js";import"./commands-registry-CxDVU5s9.js";import"./pairing-store-Bv4KSELv.js";import"./fetch-Dikjvc5M.js";import"./call-BA3O_Qpl.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-Bzd5vlKH.js";import"./send-D0y-r_hg2.js";import"./pi-model-discovery-6myCPEJE.js";import"./exec-approvals-allowlist-BKFaHvA5.js";import"./exec-safe-bin-runtime-policy-D2WexijZ.js";import"./ir-CZdZsdnI.js";import"./render-D8OWO2hT.js";import"./target-errors-DH0aw-m5.js";import"./read-only-account-inspect-DEnPVHTo.js";import"./channel-selection-oRONo9z3.js";import"./plugin-auto-enable-Cp7L8ko8.js";import"./send-CgeRzkWS.js";import"./outbound-attachment-aZWcoZ-N.js";import"./delivery-queue-CKbauSFq.js";import"./send-DIw8ExHc.js";import"./channel-activity-DHY5wAyl.js";import"./tables-h7y1Jhf4.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-O39uSj-k.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-CKX1ds78.js";import"./restart-CTfuVGfA.js";import"./runtime-web-tools-CCIXUISf.js";import"./command-secret-targets-BBTiqQKa.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-DZ-3Svr_.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-CGJLUoxR.js";import{n as E,r as D,t as O}from"./prompt-style-CXKekIBY.js";import"./pairing-labels-ryOnuOFA.js";import"./memory-cli-DHvscp7X.js";import"./query-expansion-0OxEb1Io.js";import"./manager-BwrZfep3.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import{n as k}from"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-C7-5RrbN.js";import"./system-run-command-DCzdgYyb.js";import"./runtime-DLxfCs7F.js";import"./stagger-DmFYysrJ.js";import"./channel-web-BtadNk83.js";import"./outbound-DKMI_4xm.js";import"./session-Be0RV2V1.js";import"./login-Cb1A6qwM.js";import"./runtime-guard-DFYBaYZS.js";import"./skills-status-BWIugRCz.js";import"./provider-env-vars-D8p6Ohpj.js";import{t as A}from"./note-D4GAwgha.js";import{t as j}from"./prompts-wv-lfVrJ.js";import{t as ne}from"./clack-prompter-Dq0aY6iM.js";import"./enable-DWaSH1HY.js";import"./install-safe-path-iesxijn2.js";import"./npm-pack-install-B23L-AtF.js";import"./skill-scanner-CUUF3Fvo.js";import"./installs-BNeI_oML.js";import"./plugin-install-plan-BobX0y9S.js";import{r as re,t as ie}from"./onboard-channels-BZ713LQ0.js";import"./auth-choice.apply-helpers-CNLYnRxx.js";import"./issue-format-kj7FXHhi.js";import"./daemon-install-plan.shared-BSDdwWjB.js";import{n as M,r as N,t as P}from"./gateway-install-token-BIqlEgy0.js";import{n as F,t as I}from"./daemon-runtime-DHiDbRuC.js";import{n as L}from"./systemd-D7odsu4K.js";import{n as R,t as z}from"./service-BtB9epJk.js";import"./widearea-dns-BFjqKXu_.js";import"./bonjour-discovery-wsh3Si1Q.js";import{r as ae}from"./health-Cle8Wm2y.js";import{t as oe}from"./control-ui-assets-BIa0GGDg.js";import{t as se}from"./onboarding.secret-input-B6fzeucQ.js";import"./skills-install-XHpqMBWl.js";import"./openai-codex-model-default-DtIeKJm0.js";import"./auth-token-CzgZf-ta.js";import{n as B}from"./logging-KiJmOmw4.js";import"./provider-auth-helpers-BsJzFqzN.js";import"./oauth-tls-preflight-ByNjbUR5.js";import"./auth-choice-options-Dw14noox.js";import{n as ce}from"./auth-choice-prompt-xYj13czb.js";import{i as le,n as ue}from"./auth-choice-BV7aG7qI.js";import"./openai-model-default-sqvWk4kB.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-BaeW3tiV.js";import"./ollama-setup-CKt3tF-S.js";import{t as ge}from"./systemd-linger-C2MJD6KG.js";import{a as _e}from"./onboard-custom-uwufXtQf.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-BXZDlz5C.js";import{t as Ce}from"./health-format-VBr6LEpt.js";import{n as we}from"./onboard-remote-BeDZ_gbH.js";import{n as V}from"./onboard-skills-C4omGWoD.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(t,n){let i={...t},a=()=>m().map(e=>e.meta).filter(e=>i.channels?.[e.id]!==void 0);for(;;){let t=a();if(t.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${f(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
|
|
2
2
|
`),`Remove channel`),i;let o=S(await q({message:`Remove which channel config?`,options:[...t.map(e=>({value:e.id,label:e.label,hint:`Deletes tokens + settings from config (credentials stay on disk)`})),{value:`done`,label:`Done`}]}),n);if(o===`done`)return i;let s=h(o)?.meta.label??o;if(!S(await K({message:`Delete ${s} configuration from ${r(e)}?`,initialValue:!1}),n))continue;let c={...i.channels};delete c[o],i={...i,channels:Object.keys(c).length?c:void 0},A([`${s} removed from config.`,`Note: credentials/sessions on disk are unchanged.`].join(`
|
|
3
3
|
`),`Channel removed`)}}async function J(e){let t=R(),n=!1;try{n=await t.isLoaded({env:process.env})}catch(e){if(!L(e))throw e;n=!1}let r=!1,i=!0,a=e.daemonRuntime??`node`;if(n){let n=S(await q({message:`Gateway service already installed`,options:[{value:`restart`,label:`Restart`},{value:`reinstall`,label:`Reinstall`},{value:`skip`,label:`Skip`}]}),e.runtime);if(n===`restart`&&(await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Restarting Gateway service…`);let n=await t.restart({env:process.env,stdout:process.stdout});e.setLabel(z(`Gateway`,n).progressMessage)}),r=!0,i=!1),n===`skip`)return;n===`reinstall`&&await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Uninstalling Gateway service…`),await t.uninstall({env:process.env,stdout:process.stdout}),e.setLabel(`Gateway service uninstalled.`)})}if(i){let n=null;if(e.daemonRuntime||(a=F.length===1?F[0]?.value??`node`:S(await q({message:`Gateway service runtime`,options:F,initialValue:I}),e.runtime)),await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async r=>{r.setLabel(`Preparing Gateway service…`);let i=l(),o=await P({config:i,env:process.env});for(let e of o.warnings)A(e,`Gateway`);if(o.unavailableReason){n=[`Gateway install blocked:`,o.unavailableReason,`Fix gateway auth config/token input and rerun configure.`].join(` `),r.setLabel(`Gateway service install blocked.`);return}let{programArguments:s,workingDirectory:c,environment:u}=await M({env:process.env,port:e.port,runtime:a,warn:(e,t)=>A(e,t),config:i});r.setLabel(`Installing Gateway service…`);try{await t.install({env:process.env,stdout:process.stdout,programArguments:s,workingDirectory:c,environment:u}),r.setLabel(`Gateway service installed.`)}catch(e){n=e instanceof Error?e.message:String(e),r.setLabel(`Gateway service install failed.`)}}),n){A(`Gateway service install failed: `+n,`Gateway`),A(N(),`Gateway`);return}r=!0}r&&await ge({runtime:e.runtime,prompter:{confirm:async t=>S(await K(t),e.runtime),note:A},reason:`Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}function Fe(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t===`undefined`||t===`null`))return t}const Ie=[`anthropic/claude-sonnet-4-6`,`anthropic/claude-opus-4-6`,`anthropic/claude-opus-4-5`,`anthropic/claude-sonnet-4-5`,`anthropic/claude-haiku-4-5`];function Le(e){let t=e.existing?.allowTailscale,n={};if(typeof t==`boolean`&&(n.allowTailscale=t),e.mode===`token`){if(u(e.token))return{...n,mode:`token`,token:e.token};let t=Fe(e.token)??y();return{...n,mode:`token`,token:t}}if(e.mode===`password`){let t=e.password?.trim();return{...n,mode:`password`,...t&&{password:t}}}if(e.mode===`trusted-proxy`){if(!e.trustedProxy)throw Error(`trustedProxy config is required when mode is trusted-proxy`);return{...n,mode:`trusted-proxy`,trustedProxy:e.trustedProxy}}return n}async function Y(e,t,n){let r=await ce({prompter:n,store:o(void 0,{allowKeychainPrompt:!1}),includeSkip:!0}),i=e;if(r===`custom-api-key`)i=(await _e({prompter:n,runtime:t,config:i})).config;else if(r!==`skip`)i=(await le({authChoice:r,config:i,prompter:n,runtime:t,setDefaultModel:!0})).config;else{let e=await de({config:i,prompter:n,allowKeep:!0,ignoreAllowlist:!0,preferredProvider:ue(r)});e.config&&(i=e.config),e.model&&(i=me(i,e.model))}let a=r===`setup-token`||r===`token`||r===`oauth`;if(r!==`custom-api-key`){let e=await pe({config:i,prompter:n,allowedKeys:a?Ie:void 0,initialSelections:a?[`anthropic/claude-sonnet-4-6`]:void 0,message:a?`Anthropic OAuth models`:void 0});e.models&&(i=he(i,e.models),i=fe(i,e.models))}return i}async function X(e,n){let r=S(await G({message:`Gateway port`,initialValue:String(t(e)),validate:e=>Number.isFinite(Number(e))?void 0:`Invalid port`}),n),i=Number.parseInt(String(r),10),o=S(await q({message:`Gateway bind mode`,options:[{value:`loopback`,label:`Loopback (Local only)`,hint:`Bind to 127.0.0.1 - secure, local-only access`},{value:`tailnet`,label:`Tailnet (Tailscale IP)`,hint:`Bind to your Tailscale IP only (100.x.x.x)`},{value:`auto`,label:`Auto (Loopback → LAN)`,hint:`Prefer loopback; fall back to all interfaces if unavailable`},{value:`lan`,label:`LAN (All interfaces)`,hint:`Bind to 0.0.0.0 - accessible from anywhere on your network`},{value:`custom`,label:`Custom IP`,hint:`Specify a specific IP address, with 0.0.0.0 fallback if unavailable`}]}),n),s;if(o===`custom`){let e=S(await G({message:`Custom IP address`,placeholder:`192.168.1.100`,validate:Se}),n);s=typeof e==`string`?e:void 0}let c=S(await q({message:`Gateway auth`,options:[{value:`token`,label:`Token`,hint:`Recommended default`},{value:`password`,label:`Password`},{value:`trusted-proxy`,label:`Trusted Proxy`,hint:`Behind reverse proxy (Pomerium, Caddy, Traefik, etc.)`}],initialValue:`token`}),n),l=S(await q({message:`Tailscale exposure`,options:[...xe]}),n),u=null;l!==`off`&&(u=await a(),u||A(ye.join(`
|
|
4
4
|
`),`Tailscale Warning`));let f=!1;l!==`off`&&(A(be.join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as e}from"./subsystem-BLbY429l.js";import{t,u as n}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as r,Fo as i,Tc as a,jo as o,va as s}from"./auth-profiles-BhXA8Jy2.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{v as l,x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import{o as d,s as f}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import{At as p,n as m,t as h}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import"./compact-
|
|
1
|
+
import{p as e}from"./subsystem-BLbY429l.js";import{t,u as n}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{Bo as r,Fo as i,Tc as a,jo as o,va as s}from"./auth-profiles-BhXA8Jy2.js";import{t as c}from"./command-format-CLxIPuLR.js";import"./agent-scope-DAWJwFfl.js";import{v as l,x as u}from"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import{o as d,s as f}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import{At as p,n as m,t as h}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import"./compact-Cc9Dtg1D.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DN2Q51fC.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-COKdxPmA.js";import"./diagnostic-CW_Jv5UM.js";import"./send-DRm6AFp-.js";import"./pi-model-discovery-AiV9h8k6.js";import"./exec-approvals-allowlist-DBh9Pm77.js";import"./exec-safe-bin-runtime-policy-Ck3GO5AB.js";import"./model-catalog-BLdaFmIo.js";import"./fetch-CY5G3PDq.js";import"./audio-transcription-runner-BUsb6cqv.js";import"./fetch-guard-BaRbr_V6.js";import"./image-D-R3N1it.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-D8WsZ43x.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-CH7YvSi9.js";import"./render-DrrPmnMI.js";import"./target-errors-D55sWZ4E.js";import"./commands-Dy7duWlt.js";import"./commands-registry-Dn2uuNuy.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-CrR0wD3W.js";import"./sqlite-CILF3z9U.js";import"./call-BQT0zCgv.js";import"./pi-tools.policy-CeSKHaKa.js";import"./pairing-store-CjTPxq0X.js";import"./fetch-Dh-apy46.js";import"./skill-commands-C59b8Yso.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-CX0SUJsB.js";import"./channel-activity-DYpm-0Cz.js";import"./tables-D1pcaye7.js";import"./kill-tree-DBJW8_Q-.js";import"./runtime-web-tools-BWv0X5qp.js";import"./runtime-BlsMYeaw.js";import"./node-shell-dXp4vk-i.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-Ddyykqxv.js";import"./plugin-auto-enable-DCOxqfDQ.js";import"./send-8rJCpsDu.js";import"./outbound-attachment-DBNxdLYh.js";import"./delivery-queue-nkPJu0fY.js";import"./send-BPfl_1It.js";import"./system-run-command-FCk9hSMO.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-KM3OecbM.js";import"./connection-auth-BcPbGyxw.js";import{a as g,b as _,g as v,h as y,m as b,n as x,p as ee,s as S,t as C,u as w,v as te,y as T}from"./onboard-helpers-DbpWQoiB.js";import{n as E,r as D,t as O}from"./prompt-style-BThRSQJR.js";import"./pairing-labels-BP1h0iHy.js";import"./search-manager-KMRzwyPH.js";import"./manager-C5SBozw4.js";import"./memory-cli-CnruTL1h.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import{n as k}from"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import"./skills-status-DswSl5aD.js";import"./outbound-B88MLJN3.js";import"./channel-web-BGS9PUif.js";import"./session-bk3gFwO4.js";import"./login-BdzP8F8J.js";import"./provider-env-vars-Dt0Q29Su.js";import{t as A}from"./note-Dp-d_utk.js";import{t as j}from"./prompts-CMzglboN.js";import{t as ne}from"./clack-prompter-DBPdGdqp.js";import"./enable-DVuqWT2a.js";import"./install-safe-path-C6kc_8NW.js";import"./npm-pack-install-C0te3Oap.js";import"./skill-scanner-CkxXNioD.js";import"./installs-C1xQLuby.js";import"./plugin-install-plan-NvDGp0d8.js";import{r as re,t as ie}from"./onboard-channels-BhJDBFvw.js";import"./auth-choice.apply-helpers-DCe5nTyP.js";import"./issue-format-CpTuk_rQ.js";import"./daemon-install-plan.shared-Dx3DBXCG.js";import"./runtime-guard-DX2Ie4ri.js";import{n as M,r as N,t as P}from"./gateway-install-token-CtUJl3A3.js";import{n as F,t as I}from"./daemon-runtime-VcpeBRJV.js";import{n as L}from"./systemd-DbevZh65.js";import{n as R,t as z}from"./service-DZ9EbS15.js";import"./widearea-dns-BDx7vkV2.js";import"./bonjour-discovery-CpvzLjyB.js";import{r as ae}from"./health-BQNPexgp.js";import{t as oe}from"./control-ui-assets-CTHGGgaX.js";import{t as se}from"./onboarding.secret-input-CBuD3c32.js";import"./skills-install-D0I6c17J.js";import"./openai-codex-model-default-Df2T3foI.js";import"./auth-token-C75IOb_K.js";import{n as B}from"./logging-Dz4Qg6th.js";import"./provider-auth-helpers-DNCEAkC3.js";import"./oauth-tls-preflight-BSBRDIfC.js";import"./auth-choice-options-B3WQyS7I.js";import{n as ce}from"./auth-choice-prompt-uegl56cf.js";import{i as le,n as ue}from"./auth-choice-D4TVgwap.js";import"./openai-model-default-DIE55yBt.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./model-picker-DN0czUYS.js";import"./ollama-setup-I8lghdX1.js";import{t as ge}from"./systemd-linger-cWKbFNpu.js";import{a as _e}from"./onboard-custom-CwHYUB0T.js";import{a as ve,i as ye,n as be,r as xe,t as Se}from"./ipv4-BnPLbv6y.js";import{t as Ce}from"./health-format-B1nj3Wfn.js";import{n as we}from"./onboard-remote-KTUx-3G1.js";import{n as V}from"./onboard-skills-BoS_oVdm.js";import Te from"node:path";import Ee from"node:fs/promises";import{confirm as De,intro as Oe,outro as ke,select as Ae,text as je}from"@clack/prompts";const H=[`workspace`,`model`,`web`,`gateway`,`daemon`,`channels`,`skills`,`health`];function Me(e){let t=Array.isArray(e)?e.map(e=>typeof e==`string`?e.trim():``).filter(Boolean):[];if(t.length===0)return{sections:[],invalid:[]};let n=t.filter(e=>!H.includes(e));return{sections:t.filter(e=>H.includes(e)),invalid:n}}const U=[{value:`workspace`,label:`Workspace`,hint:`Set workspace + sessions`},{value:`model`,label:`Model`,hint:`Pick provider + credentials`},{value:`web`,label:`Web tools`,hint:`Configure web search (Perplexity/Brave) + fetch`},{value:`gateway`,label:`Gateway`,hint:`Port, bind, auth, tailscale`},{value:`daemon`,label:`Daemon`,hint:`Install/manage the background service`},{value:`channels`,label:`Channels`,hint:`Link WhatsApp/Telegram/etc and defaults`},{value:`skills`,label:`Skills`,hint:`Install/enable workspace skills`},{value:`health`,label:`Health check`,hint:`Run gateway + channel checks`}],Ne=e=>Oe(D(e)??e),W=e=>ke(D(e)??e),G=e=>je({...e,message:E(e.message)}),K=e=>De({...e,message:E(e.message)}),q=e=>Ae({...e,message:E(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:O(e.hint)})});async function Pe(e,n){let r={...e},i=()=>m().map(e=>e.meta).filter(e=>r.channels?.[e.id]!==void 0);for(;;){let e=i();if(e.length===0)return A([`No channel config found in openclaw.json.`,`Tip: \`${c(`openclaw channels status`)}\` shows what is configured and enabled.`].join(`
|
|
2
2
|
`),`Remove channel`),r;let a=S(await q({message:`Remove which channel config?`,options:[...e.map(e=>({value:e.id,label:e.label,hint:`Deletes tokens + settings from config (credentials stay on disk)`})),{value:`done`,label:`Done`}]}),n);if(a===`done`)return r;let o=h(a)?.meta.label??a;if(!S(await K({message:`Delete ${o} configuration from ${u(t)}?`,initialValue:!1}),n))continue;let s={...r.channels};delete s[a],r={...r,channels:Object.keys(s).length?s:void 0},A([`${o} removed from config.`,`Note: credentials/sessions on disk are unchanged.`].join(`
|
|
3
3
|
`),`Channel removed`)}}async function J(e){let t=R(),n=!1;try{n=await t.isLoaded({env:process.env})}catch(e){if(!L(e))throw e;n=!1}let r=!1,i=!0,a=e.daemonRuntime??`node`;if(n){let n=S(await q({message:`Gateway service already installed`,options:[{value:`restart`,label:`Restart`},{value:`reinstall`,label:`Reinstall`},{value:`skip`,label:`Skip`}]}),e.runtime);if(n===`restart`&&(await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Restarting Gateway service…`);let n=await t.restart({env:process.env,stdout:process.stdout});e.setLabel(z(`Gateway`,n).progressMessage)}),r=!0,i=!1),n===`skip`)return;n===`reinstall`&&await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async e=>{e.setLabel(`Uninstalling Gateway service…`),await t.uninstall({env:process.env,stdout:process.stdout}),e.setLabel(`Gateway service uninstalled.`)})}if(i){let n=null;if(e.daemonRuntime||(a=F.length===1?F[0]?.value??`node`:S(await q({message:`Gateway service runtime`,options:F,initialValue:I}),e.runtime)),await k({label:`Gateway service`,indeterminate:!0,delayMs:0},async r=>{r.setLabel(`Preparing Gateway service…`);let i=o(),s=await P({config:i,env:process.env});for(let e of s.warnings)A(e,`Gateway`);if(s.unavailableReason){n=[`Gateway install blocked:`,s.unavailableReason,`Fix gateway auth config/token input and rerun configure.`].join(` `),r.setLabel(`Gateway service install blocked.`);return}let{programArguments:c,workingDirectory:l,environment:u}=await M({env:process.env,port:e.port,runtime:a,warn:(e,t)=>A(e,t),config:i});r.setLabel(`Installing Gateway service…`);try{await t.install({env:process.env,stdout:process.stdout,programArguments:c,workingDirectory:l,environment:u}),r.setLabel(`Gateway service installed.`)}catch(e){n=e instanceof Error?e.message:String(e),r.setLabel(`Gateway service install failed.`)}}),n){A(`Gateway service install failed: `+n,`Gateway`),A(N(),`Gateway`);return}r=!0}r&&await ge({runtime:e.runtime,prompter:{confirm:async t=>S(await K(t),e.runtime),note:A},reason:`Linux installs use a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}function Fe(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t===`undefined`||t===`null`))return t}const Ie=[`anthropic/claude-sonnet-4-6`,`anthropic/claude-opus-4-6`,`anthropic/claude-opus-4-5`,`anthropic/claude-sonnet-4-5`,`anthropic/claude-haiku-4-5`];function Le(e){let t=e.existing?.allowTailscale,n={};if(typeof t==`boolean`&&(n.allowTailscale=t),e.mode===`token`){if(d(e.token))return{...n,mode:`token`,token:e.token};let t=Fe(e.token)??y();return{...n,mode:`token`,token:t}}if(e.mode===`password`){let t=e.password?.trim();return{...n,mode:`password`,...t&&{password:t}}}if(e.mode===`trusted-proxy`){if(!e.trustedProxy)throw Error(`trustedProxy config is required when mode is trusted-proxy`);return{...n,mode:`trusted-proxy`,trustedProxy:e.trustedProxy}}return n}async function Y(e,t,n){let r=await ce({prompter:n,store:a(void 0,{allowKeychainPrompt:!1}),includeSkip:!0}),i=e;if(r===`custom-api-key`)i=(await _e({prompter:n,runtime:t,config:i})).config;else if(r!==`skip`)i=(await le({authChoice:r,config:i,prompter:n,runtime:t,setDefaultModel:!0})).config;else{let e=await de({config:i,prompter:n,allowKeep:!0,ignoreAllowlist:!0,preferredProvider:ue(r)});e.config&&(i=e.config),e.model&&(i=me(i,e.model))}let o=r===`setup-token`||r===`token`||r===`oauth`;if(r!==`custom-api-key`){let e=await pe({config:i,prompter:n,allowedKeys:o?Ie:void 0,initialSelections:o?[`anthropic/claude-sonnet-4-6`]:void 0,message:o?`Anthropic OAuth models`:void 0});e.models&&(i=he(i,e.models),i=fe(i,e.models))}return i}async function X(e,t){let r=S(await G({message:`Gateway port`,initialValue:String(n(e)),validate:e=>Number.isFinite(Number(e))?void 0:`Invalid port`}),t),i=Number.parseInt(String(r),10),a=S(await q({message:`Gateway bind mode`,options:[{value:`loopback`,label:`Loopback (Local only)`,hint:`Bind to 127.0.0.1 - secure, local-only access`},{value:`tailnet`,label:`Tailnet (Tailscale IP)`,hint:`Bind to your Tailscale IP only (100.x.x.x)`},{value:`auto`,label:`Auto (Loopback → LAN)`,hint:`Prefer loopback; fall back to all interfaces if unavailable`},{value:`lan`,label:`LAN (All interfaces)`,hint:`Bind to 0.0.0.0 - accessible from anywhere on your network`},{value:`custom`,label:`Custom IP`,hint:`Specify a specific IP address, with 0.0.0.0 fallback if unavailable`}]}),t),o;if(a===`custom`){let e=S(await G({message:`Custom IP address`,placeholder:`192.168.1.100`,validate:Se}),t);o=typeof e==`string`?e:void 0}let c=S(await q({message:`Gateway auth`,options:[{value:`token`,label:`Token`,hint:`Recommended default`},{value:`password`,label:`Password`},{value:`trusted-proxy`,label:`Trusted Proxy`,hint:`Behind reverse proxy (Pomerium, Caddy, Traefik, etc.)`}],initialValue:`token`}),t),l=S(await q({message:`Tailscale exposure`,options:[...xe]}),t),u=null;l!==`off`&&(u=await s(),u||A(ye.join(`
|
|
4
4
|
`),`Tailscale Warning`));let d=!1;l!==`off`&&(A(be.join(`
|
package/dist/{deps-send-whatsapp.runtime-3b97lk9B.js → deps-send-whatsapp.runtime-BDsE5mxt.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-I1ctjFOB.js";import"./reply-
|
|
1
|
+
import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-I1ctjFOB.js";import"./reply-SbDsPAiQ.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./send-YPQFx-fV.js";import"./send-Ds5sy22D.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./audio-transcription-runner-BJNP7vB8.js";import"./image-BJC11A7e.js";import"./models-config-CWIlroKT.js";import"./tool-display-DjuSUUbH.js";import"./fetch-guard-Cji70DJW.js";import"./api-key-rotation-DYYvcqSG.js";import"./local-roots-Dxioh0C2.js";import"./model-catalog-vNCcsy4h.js";import"./proxy-fetch-BADsUK4d.js";import"./tokens-XGbQGn67.js";import"./deliver-DHP2vHKB.js";import"./commands-CGpM84iR.js";import"./commands-registry-CxDVU5s9.js";import"./pairing-store-Bv4KSELv.js";import"./fetch-Dikjvc5M.js";import"./call-BA3O_Qpl.js";import"./with-timeout-WveKxvFV.js";import"./diagnostic-Bzd5vlKH.js";import"./send-D0y-r_hg2.js";import"./pi-model-discovery-6myCPEJE.js";import"./exec-approvals-allowlist-BKFaHvA5.js";import"./exec-safe-bin-runtime-policy-D2WexijZ.js";import"./ir-CZdZsdnI.js";import"./render-D8OWO2hT.js";import"./target-errors-DH0aw-m5.js";import"./read-only-account-inspect-DEnPVHTo.js";import"./channel-selection-oRONo9z3.js";import"./plugin-auto-enable-Cp7L8ko8.js";import"./send-CgeRzkWS.js";import"./outbound-attachment-aZWcoZ-N.js";import"./delivery-queue-CKbauSFq.js";import"./send-DIw8ExHc.js";import"./channel-activity-DHY5wAyl.js";import"./tables-h7y1Jhf4.js";import"./fetch-Bn0mWg6a.js";import"./skill-commands-O39uSj-k.js";import"./workspace-dirs-BhF1Dzxt.js";import"./pairing-token-CKX1ds78.js";import"./restart-CTfuVGfA.js";import"./runtime-web-tools-CCIXUISf.js";import"./command-secret-targets-BBTiqQKa.js";import"./session-cost-usage-BgqKixv0.js";import"./connection-auth-DZ-3Svr_.js";import"./onboard-helpers-CGJLUoxR.js";import"./prompt-style-CXKekIBY.js";import"./pairing-labels-ryOnuOFA.js";import"./memory-cli-DHvscp7X.js";import"./query-expansion-0OxEb1Io.js";import"./manager-BwrZfep3.js";import"./links-CySwdMcF.js";import"./cli-utils-BY7dLMFy.js";import"./help-format-BRbF_INg.js";import"./progress-LNttnI-y.js";import"./exec-approvals-BpBNEy6i.js";import"./nodes-screen-C7-5RrbN.js";import"./system-run-command-DCzdgYyb.js";import"./runtime-DLxfCs7F.js";import"./stagger-DmFYysrJ.js";import"./channel-web-BtadNk83.js";import{t as e}from"./outbound-DKMI_4xm.js";import"./session-Be0RV2V1.js";import"./login-Cb1A6qwM.js";import"./web-Cc3cVVew.js";export{e as sendMessageWhatsApp};
|
package/dist/{deps-send-whatsapp.runtime-Cb3WMzFa.js → deps-send-whatsapp.runtime-BJvK8RlR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-C2QwHmXT.js";import"./pi-embedded-
|
|
1
|
+
import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-selection-C2QwHmXT.js";import"./pi-embedded-BB-XnYmz.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DvGzdoKK.js";import"./send-DVmPgxm7.js";import"./tokens-B2fq-rL6.js";import"./deliver-BudDnEIb.js";import"./diagnostic-Dza7-pMC.js";import"./send-OVet2uKx.js";import"./pi-model-discovery-C8YBu6D4.js";import"./image-Ba-mOMMV.js";import"./audio-transcription-runner-CjKLRVPo.js";import"./fetch-BI3CnKE3.js";import"./fetch-guard-BmNIhXP-.js";import"./api-key-rotation-C_MG2y1D.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-CSysIkNU.js";import"./render-BXEUPIHe.js";import"./target-errors-LuLROpta.js";import"./commands-registry-Du79fdAL.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CqIEajsA.js";import"./channel-activity-BPRCQpI6.js";import"./tables-3Rjt6nwZ.js";import"./send-BOxuQt9L.js";import"./outbound-attachment-BOax42-M.js";import"./send-CDAeI9xB2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-CjihRbGa.js";import{t as e}from"./outbound-CSk4oF0g.js";import"./session-B_qrXLsR.js";import"./login-BzU0cMck.js";import"./web-BS-UjHFC.js";export{e as sendMessageWhatsApp};
|
package/dist/{deps-send-whatsapp.runtime-BjO7JYUz.js → deps-send-whatsapp.runtime-C5rMMlu_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-qkByRv5A.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-CiTZ4p2t.js";import"./send-BdS6jUBa.js";import"./pi-embedded-
|
|
1
|
+
import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import"./model-selection-qkByRv5A.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import"./logger-5W0OocJW.js";import"./send-CiTZ4p2t.js";import"./send-BdS6jUBa.js";import"./pi-embedded-B4Un3CQs.js";import"./tokens-CL2fSjGl.js";import"./deliver-2c-EsQ_W.js";import"./diagnostic-CFmHdXHP.js";import"./send-e2ppdA_R.js";import"./pi-model-discovery-BzqdozHB.js";import"./image-BKPxWO_2.js";import"./audio-transcription-runner-C_31Yoq0.js";import"./fetch-xT2jRpqs.js";import"./fetch-guard-ChVqc0HF.js";import"./api-key-rotation-dNu0GxPN.js";import"./proxy-fetch-BZ9O8Dvj.js";import"./ir-BYCrFFZ9.js";import"./render-CBsnn-2A.js";import"./target-errors-CUQcIty1.js";import"./commands-registry-B3FI6TSl.js";import"./fetch-_g8lZ8K8.js";import"./skill-commands-F5NFH0NR.js";import"./channel-activity-D2VTmenR.js";import"./tables-B9wFKQvT.js";import"./send-BkZ8dWQV2.js";import"./outbound-attachment-DVjJQ3V6.js";import"./send-BJjoLBo3.js";import"./fetch-BJT3BrkJ.js";import"./query-expansion-BUUx_oWg.js";import"./manager-B6zZuJEB.js";import{t as e}from"./outbound-C-4qToKv.js";import"./session-BYYOduc1.js";import"./login-BMZxDYaU.js";import"./web-CW41_jQN.js";export{e as sendMessageWhatsApp};
|
package/dist/{deps-send-whatsapp.runtime-zvLP-GL2.js → deps-send-whatsapp.runtime-YXjIEWx_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-BhXA8Jy2.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import"./compact-
|
|
1
|
+
import"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-BhXA8Jy2.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./send-DS5Quwb7.js";import"./send-BeZJ1zbp.js";import"./compact-Cc9Dtg1D.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DN2Q51fC.js";import"./tokens-DRM8vzJx.js";import"./with-timeout-c1CzdShT.js";import"./deliver-COKdxPmA.js";import"./diagnostic-CW_Jv5UM.js";import"./send-DRm6AFp-.js";import"./pi-model-discovery-AiV9h8k6.js";import"./exec-approvals-allowlist-DBh9Pm77.js";import"./exec-safe-bin-runtime-policy-Ck3GO5AB.js";import"./model-catalog-BLdaFmIo.js";import"./fetch-CY5G3PDq.js";import"./audio-transcription-runner-BUsb6cqv.js";import"./fetch-guard-BaRbr_V6.js";import"./image-D-R3N1it.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-D8WsZ43x.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-CH7YvSi9.js";import"./render-DrrPmnMI.js";import"./target-errors-D55sWZ4E.js";import"./commands-Dy7duWlt.js";import"./commands-registry-Dn2uuNuy.js";import"./session-cost-usage-CHtVgnE8.js";import"./session-utils-CrR0wD3W.js";import"./sqlite-CILF3z9U.js";import"./call-BQT0zCgv.js";import"./pi-tools.policy-CeSKHaKa.js";import"./pairing-store-CjTPxq0X.js";import"./fetch-Dh-apy46.js";import"./skill-commands-C59b8Yso.js";import"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-CX0SUJsB.js";import"./channel-activity-DYpm-0Cz.js";import"./tables-D1pcaye7.js";import"./kill-tree-DBJW8_Q-.js";import"./runtime-web-tools-BWv0X5qp.js";import"./runtime-BlsMYeaw.js";import"./node-shell-dXp4vk-i.js";import"./stagger-DxzgG2jd.js";import"./channel-selection-Ddyykqxv.js";import"./plugin-auto-enable-DCOxqfDQ.js";import"./send-8rJCpsDu.js";import"./outbound-attachment-DBNxdLYh.js";import"./delivery-queue-nkPJu0fY.js";import"./send-BPfl_1It.js";import"./system-run-command-FCk9hSMO.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-KM3OecbM.js";import"./connection-auth-BcPbGyxw.js";import"./onboard-helpers-DbpWQoiB.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-BP1h0iHy.js";import"./search-manager-KMRzwyPH.js";import"./manager-C5SBozw4.js";import"./memory-cli-CnruTL1h.js";import"./links-CBnmRP9D.js";import"./cli-utils-BleB1eys.js";import"./help-format-B4aEI7V9.js";import"./progress-d1m2sqR1.js";import"./exec-approvals-BXO9Cezj.js";import{t as e}from"./outbound-B88MLJN3.js";import"./channel-web-BGS9PUif.js";import"./session-bk3gFwO4.js";import"./login-BdzP8F8J.js";import"./web-BIzg4tS6.js";export{e as sendMessageWhatsApp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./note-Dp-d_utk.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-
|
|
1
|
+
import{r as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./note-Dp-d_utk.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-B7pfb9r3.js";import{spawnSync as l}from"node:child_process";import u from"node:path";async function d(){let e=await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!e)return!1;let n=u.join(e,`openclaw.mjs`);return l(process.execPath,[n,`completion`,`--write-state`],{cwd:e,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(t,r,i={}){let a=e(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./openclaw-root-D_0Q6--h.js";import{r as t}from"./command-format-BbDT1tlm.js";import{t as n}from"./note-D4GAwgha.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-
|
|
1
|
+
import{t as e}from"./openclaw-root-D_0Q6--h.js";import{r as t}from"./command-format-BbDT1tlm.js";import{t as n}from"./note-D4GAwgha.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-BqdH9qEZ.js";import l from"node:path";import{spawnSync as u}from"node:child_process";async function d(){let t=await e({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!t)return!1;let n=l.join(t,`openclaw.mjs`);return u(process.execPath,[n,`completion`,`--write-state`],{cwd:t,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(e,r,i={}){let a=t(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
|
package/dist/entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{$ as e,Z as t,et as n,t as r}from"./subsystem-BLbY429l.js";import{y as i}from"./paths-BjD3T_xq.js";import{t as a}from"./profile-utils-CWmra1aY.js";import{t as o}from"./boolean-D15s2V33.js";import{enableCompileCache as s}from"node:module";import{spawn as c}from"node:child_process";import l from"node:process";import{fileURLToPath as u}from"node:url";import d from"node:os";import f from"node:path";import p from"node:fs";function m(e,t){if(e.includes(`=`)){let[,t]=e.split(`=`,2);return{value:(t??``).trim()||null,consumedNext:!1}}return{value:(t??``).trim()||null,consumedNext:!!t}}function h(e){if(e.length<2)return{ok:!0,profile:null,argv:e};let t=e.slice(0,2),n=null,r=!1,i=!1,o=e.slice(2);for(let e=0;e<o.length;e+=1){let s=o[e];if(s!==void 0){if(i){t.push(s);continue}if(s===`--dev`){if(n&&n!==`dev`)return{ok:!1,error:`Cannot combine --dev with --profile`};r=!0,n=`dev`;continue}if(s===`--profile`||s.startsWith(`--profile=`)){if(r)return{ok:!1,error:`Cannot combine --dev with --profile`};let t=o[e+1],{value:i,consumedNext:c}=m(s,t);if(c&&(e+=1),!i)return{ok:!1,error:`--profile requires a value`};if(!a(i))return{ok:!1,error:`Invalid --profile (use letters, numbers, "_", "-" only)`};n=i;continue}if(!s.startsWith(`-`)){i=!0,t.push(s);continue}t.push(s)}}return{ok:!0,profile:n,argv:t}}function g(e,t,n){let r=e.toLowerCase()===`default`?``:`-${e}`;return f.join(i(t,n),`.qbotclaw${r}`)}function _(e){let t=e.env??process.env,n=e.homedir??d.homedir,r=e.profile.trim();if(!r)return;t.OPENCLAW_PROFILE=r;let i=t.OPENCLAW_STATE_DIR?.trim()||g(r,t,n);t.OPENCLAW_STATE_DIR?.trim()||(t.OPENCLAW_STATE_DIR=i),t.OPENCLAW_CONFIG_PATH?.trim()||(t.OPENCLAW_CONFIG_PATH=f.join(i,`openclaw.json`)),r===`dev`&&!t.OPENCLAW_GATEWAY_PORT?.trim()&&(t.OPENCLAW_GATEWAY_PORT=`19001`)}function v(e){return t(e)}function y(e){if(process.platform!==`win32`||e.length<2)return e;let t=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r>=32&&r!==127&&(t+=e[n])}return t},n=e=>t(e).replace(/^['"]+|['"]+$/g,``).trim(),r=e=>n(e).replace(/^\\\\\\?\\/,``),i=r(process.execPath),a=i.toLowerCase(),o=f.basename(i).toLowerCase(),s=e=>{if(!e)return!1;let t=r(e);if(!t)return!1;let n=t.toLowerCase();return n===a||f.basename(n)===o||n.endsWith(`\\node.exe`)||n.endsWith(`/node.exe`)||n.includes(`node.exe`)||f.basename(n)===`node.exe`&&p.existsSync(t)},c=[...e];for(let e=1;e<=3&&e<c.length;){if(s(c[e])){c.splice(e,1);continue}e+=1}let l=c.filter((e,t)=>t===0||!s(e));if(l.length<3)return l;let u=[...l];for(let e=2;e<u.length;){let t=u[e];if(!t||t.startsWith(`-`)){e+=1;continue}if(s(t)){u.splice(e,1);continue}break}return u}const b=r(`env`),x=new Set;function S(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function C(e){if(process.env.VITEST||x.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(x.add(e.key),b.info(`env: ${e.key}=${S(t,e.redact)} (${e.description})`))}function w(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function T(e){return o(e)===!0}function E(){w()}function D(e,t){if(!e)return;let n=f.resolve(t,e);try{return p.realpathSync.native(n)}catch{return n}}function O({currentFile:e,argv:t=process.argv,env:n=process.env,cwd:r=process.cwd(),wrapperEntryPairs:i=[]}){let a=D(e,r),o=D(t[1],r);if(a&&o&&a===o)return!0;let s=D(n.pm_exec_path,r);if(a&&s&&a===s)return!0;if(a&&o&&i.length>0){let e=f.basename(a),t=f.basename(o);if(i.some(({wrapperBasename:n,entryBasename:r})=>e===r&&t===n))return!0}return!!(a&&o&&f.basename(a)===f.basename(o))}const k=`OPENCLAW_CLI`;function A(e){return{...e,[k]:`1`}}function j(e=process.env){return e[k]=`1`,e}const M=Symbol.for(`openclaw.warning-filter`);function N(e){return!!(e.code===`DEP0040`&&e.message?.includes(`punycode`)||e.code===`DEP0060`&&e.message?.includes(`util._extend`)||e.name===`ExperimentalWarning`&&e.message?.includes(`SQLite is an experimental feature`))}function P(e){let t=e[0],n=e[1],r=e[2],i,a,o;if(t instanceof Error?(i=t.name,o=t.message,a=t.code):typeof t==`string`&&(o=t),n&&typeof n==`object`&&!Array.isArray(n)){let e=n;typeof e.type==`string`&&(i=e.type),typeof e.code==`string`&&(a=e.code)}else typeof n==`string`&&(i=n),typeof r==`string`&&(a=r);return{name:i,code:a,message:o}}function F(){let e=globalThis;if(e[M]?.installed)return;let t=process.emitWarning.bind(process),n=((...e)=>{if(!N(P(e)))return Reflect.apply(t,process,e)});process.emitWarning=n,e[M]={installed:!0}}const I=l.platform===`win32`?[`SIGTERM`,`SIGINT`,`SIGBREAK`]:[`SIGTERM`,`SIGINT`,`SIGHUP`,`SIGQUIT`];function L(e,{signals:t=I,onSignal:n}={}){let r=new Map;for(let i of t){let t=()=>{n?.(i);try{e.kill(i)}catch{}};try{l.on(i,t),r.set(i,t)}catch{}}let i=()=>{for(let[e,t]of r)l.off(e,t);r.clear()};return e.once(`exit`,i),e.once(`error`,i),{detach:i}}const R=[{wrapperBasename:`openclaw.mjs`,entryBasename:`entry.js`},{wrapperBasename:`openclaw.js`,entryBasename:`entry.js`}];function z(e){let t=e.slice(2).filter(e=>e.length>0&&!e.startsWith(`-`));for(let e=0;e<t.length-1;e+=1)if(t[e]===`secrets`&&t[e+1]===`audit`)return!0;return!1}if(O({currentFile:u(import.meta.url),wrapperEntryPairs:[...R]})){if(l.title=`openclaw`,j(),F(),E(),!T(l.env.NODE_DISABLE_COMPILE_CACHE))try{s()}catch{}z(l.argv)&&(l.env.OPENCLAW_AUTH_STORE_READONLY=`1`),l.argv.includes(`--no-color`)&&(l.env.NO_COLOR=`1`,l.env.FORCE_COLOR=`0`);let t=`--disable-warning=ExperimentalWarning`;function r(){let e=l.env.NODE_OPTIONS??``;if(e.includes(t)||e.includes(`--no-warnings`))return!0;for(let e of l.execArgv)if(e===t||e===`--no-warnings`)return!0;return!1}function i(){if(v(l.argv)||T(l.env.OPENCLAW_NO_RESPAWN)||T(l.env.OPENCLAW_NODE_OPTIONS_READY)||r())return!1;l.env.OPENCLAW_NODE_OPTIONS_READY=`1`;let e=c(l.execPath,[t,...l.execArgv,...l.argv.slice(1)],{stdio:`inherit`,env:l.env});return L(e),e.once(`exit`,(e,t)=>{if(t){l.exitCode=1;return}l.exit(e??1)}),e.once(`error`,e=>{console.error(`[openclaw] Failed to respawn CLI:`,e instanceof Error?e.stack??e.message:e),l.exit(1)}),!0}function a(e){return n(e)?(import(`./version-q3SkUw2K.js`).then(e=>e.r).then(({VERSION:e})=>{console.log(e),l.exit(0)}).catch(e=>{console.error(`[openclaw] Failed to resolve version:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}function o(t){return e(t)?(import(`./program-
|
|
2
|
+
import{$ as e,Z as t,et as n,t as r}from"./subsystem-BLbY429l.js";import{y as i}from"./paths-BjD3T_xq.js";import{t as a}from"./profile-utils-CWmra1aY.js";import{t as o}from"./boolean-D15s2V33.js";import{enableCompileCache as s}from"node:module";import{spawn as c}from"node:child_process";import l from"node:process";import{fileURLToPath as u}from"node:url";import d from"node:os";import f from"node:path";import p from"node:fs";function m(e,t){if(e.includes(`=`)){let[,t]=e.split(`=`,2);return{value:(t??``).trim()||null,consumedNext:!1}}return{value:(t??``).trim()||null,consumedNext:!!t}}function h(e){if(e.length<2)return{ok:!0,profile:null,argv:e};let t=e.slice(0,2),n=null,r=!1,i=!1,o=e.slice(2);for(let e=0;e<o.length;e+=1){let s=o[e];if(s!==void 0){if(i){t.push(s);continue}if(s===`--dev`){if(n&&n!==`dev`)return{ok:!1,error:`Cannot combine --dev with --profile`};r=!0,n=`dev`;continue}if(s===`--profile`||s.startsWith(`--profile=`)){if(r)return{ok:!1,error:`Cannot combine --dev with --profile`};let t=o[e+1],{value:i,consumedNext:c}=m(s,t);if(c&&(e+=1),!i)return{ok:!1,error:`--profile requires a value`};if(!a(i))return{ok:!1,error:`Invalid --profile (use letters, numbers, "_", "-" only)`};n=i;continue}if(!s.startsWith(`-`)){i=!0,t.push(s);continue}t.push(s)}}return{ok:!0,profile:n,argv:t}}function g(e,t,n){let r=e.toLowerCase()===`default`?``:`-${e}`;return f.join(i(t,n),`.qbotclaw${r}`)}function _(e){let t=e.env??process.env,n=e.homedir??d.homedir,r=e.profile.trim();if(!r)return;t.OPENCLAW_PROFILE=r;let i=t.OPENCLAW_STATE_DIR?.trim()||g(r,t,n);t.OPENCLAW_STATE_DIR?.trim()||(t.OPENCLAW_STATE_DIR=i),t.OPENCLAW_CONFIG_PATH?.trim()||(t.OPENCLAW_CONFIG_PATH=f.join(i,`openclaw.json`)),r===`dev`&&!t.OPENCLAW_GATEWAY_PORT?.trim()&&(t.OPENCLAW_GATEWAY_PORT=`19001`)}function v(e){return t(e)}function y(e){if(process.platform!==`win32`||e.length<2)return e;let t=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r>=32&&r!==127&&(t+=e[n])}return t},n=e=>t(e).replace(/^['"]+|['"]+$/g,``).trim(),r=e=>n(e).replace(/^\\\\\\?\\/,``),i=r(process.execPath),a=i.toLowerCase(),o=f.basename(i).toLowerCase(),s=e=>{if(!e)return!1;let t=r(e);if(!t)return!1;let n=t.toLowerCase();return n===a||f.basename(n)===o||n.endsWith(`\\node.exe`)||n.endsWith(`/node.exe`)||n.includes(`node.exe`)||f.basename(n)===`node.exe`&&p.existsSync(t)},c=[...e];for(let e=1;e<=3&&e<c.length;){if(s(c[e])){c.splice(e,1);continue}e+=1}let l=c.filter((e,t)=>t===0||!s(e));if(l.length<3)return l;let u=[...l];for(let e=2;e<u.length;){let t=u[e];if(!t||t.startsWith(`-`)){e+=1;continue}if(s(t)){u.splice(e,1);continue}break}return u}const b=r(`env`),x=new Set;function S(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function C(e){if(process.env.VITEST||x.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(x.add(e.key),b.info(`env: ${e.key}=${S(t,e.redact)} (${e.description})`))}function w(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function T(e){return o(e)===!0}function E(){w()}function D(e,t){if(!e)return;let n=f.resolve(t,e);try{return p.realpathSync.native(n)}catch{return n}}function O({currentFile:e,argv:t=process.argv,env:n=process.env,cwd:r=process.cwd(),wrapperEntryPairs:i=[]}){let a=D(e,r),o=D(t[1],r);if(a&&o&&a===o)return!0;let s=D(n.pm_exec_path,r);if(a&&s&&a===s)return!0;if(a&&o&&i.length>0){let e=f.basename(a),t=f.basename(o);if(i.some(({wrapperBasename:n,entryBasename:r})=>e===r&&t===n))return!0}return!!(a&&o&&f.basename(a)===f.basename(o))}const k=`OPENCLAW_CLI`;function A(e){return{...e,[k]:`1`}}function j(e=process.env){return e[k]=`1`,e}const M=Symbol.for(`openclaw.warning-filter`);function N(e){return!!(e.code===`DEP0040`&&e.message?.includes(`punycode`)||e.code===`DEP0060`&&e.message?.includes(`util._extend`)||e.name===`ExperimentalWarning`&&e.message?.includes(`SQLite is an experimental feature`))}function P(e){let t=e[0],n=e[1],r=e[2],i,a,o;if(t instanceof Error?(i=t.name,o=t.message,a=t.code):typeof t==`string`&&(o=t),n&&typeof n==`object`&&!Array.isArray(n)){let e=n;typeof e.type==`string`&&(i=e.type),typeof e.code==`string`&&(a=e.code)}else typeof n==`string`&&(i=n),typeof r==`string`&&(a=r);return{name:i,code:a,message:o}}function F(){let e=globalThis;if(e[M]?.installed)return;let t=process.emitWarning.bind(process),n=((...e)=>{if(!N(P(e)))return Reflect.apply(t,process,e)});process.emitWarning=n,e[M]={installed:!0}}const I=l.platform===`win32`?[`SIGTERM`,`SIGINT`,`SIGBREAK`]:[`SIGTERM`,`SIGINT`,`SIGHUP`,`SIGQUIT`];function L(e,{signals:t=I,onSignal:n}={}){let r=new Map;for(let i of t){let t=()=>{n?.(i);try{e.kill(i)}catch{}};try{l.on(i,t),r.set(i,t)}catch{}}let i=()=>{for(let[e,t]of r)l.off(e,t);r.clear()};return e.once(`exit`,i),e.once(`error`,i),{detach:i}}const R=[{wrapperBasename:`openclaw.mjs`,entryBasename:`entry.js`},{wrapperBasename:`openclaw.js`,entryBasename:`entry.js`}];function z(e){let t=e.slice(2).filter(e=>e.length>0&&!e.startsWith(`-`));for(let e=0;e<t.length-1;e+=1)if(t[e]===`secrets`&&t[e+1]===`audit`)return!0;return!1}if(O({currentFile:u(import.meta.url),wrapperEntryPairs:[...R]})){if(l.title=`openclaw`,j(),F(),E(),!T(l.env.NODE_DISABLE_COMPILE_CACHE))try{s()}catch{}z(l.argv)&&(l.env.OPENCLAW_AUTH_STORE_READONLY=`1`),l.argv.includes(`--no-color`)&&(l.env.NO_COLOR=`1`,l.env.FORCE_COLOR=`0`);let t=`--disable-warning=ExperimentalWarning`;function r(){let e=l.env.NODE_OPTIONS??``;if(e.includes(t)||e.includes(`--no-warnings`))return!0;for(let e of l.execArgv)if(e===t||e===`--no-warnings`)return!0;return!1}function i(){if(v(l.argv)||T(l.env.OPENCLAW_NO_RESPAWN)||T(l.env.OPENCLAW_NODE_OPTIONS_READY)||r())return!1;l.env.OPENCLAW_NODE_OPTIONS_READY=`1`;let e=c(l.execPath,[t,...l.execArgv,...l.argv.slice(1)],{stdio:`inherit`,env:l.env});return L(e),e.once(`exit`,(e,t)=>{if(t){l.exitCode=1;return}l.exit(e??1)}),e.once(`error`,e=>{console.error(`[openclaw] Failed to respawn CLI:`,e instanceof Error?e.stack??e.message:e),l.exit(1)}),!0}function a(e){return n(e)?(import(`./version-q3SkUw2K.js`).then(e=>e.r).then(({VERSION:e})=>{console.log(e),l.exit(0)}).catch(e=>{console.error(`[openclaw] Failed to resolve version:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}function o(t){return e(t)?(import(`./program-CSs3zbIT.js`).then(({buildProgram:e})=>{e().outputHelp()}).catch(e=>{console.error(`[openclaw] Failed to display help:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}if(l.argv=y(l.argv),!i()){let e=h(l.argv);e.ok||(console.error(`[openclaw] ${e.error}`),l.exit(2)),e.profile&&(_({profile:e.profile}),l.argv=e.argv),!a(l.argv)&&!o(l.argv)&&import(`./run-main-DwWcrQo6.js`).then(({runCli:e})=>e(l.argv)).catch(e=>{console.error(`[openclaw] Failed to start CLI:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1})}}export{C as a,_ as c,T as i,h as l,A as n,E as o,O as r,y as s,F as t};
|
package/dist/extensionAPI.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as e,W as t,it as n,n as r,s as i}from"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{ac as a,an as o,m as s,oc as c,tn as l}from"./model-selection-C2QwHmXT.js";import{J as u,K as d,t as f}from"./pi-embedded-
|
|
1
|
+
import{V as e,W as t,it as n,n as r,s as i}from"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{ac as a,an as o,m as s,oc as c,tn as l}from"./model-selection-C2QwHmXT.js";import{J as u,K as d,t as f}from"./pi-embedded-BB-XnYmz.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import"./send-DvGzdoKK.js";import"./send-DVmPgxm7.js";import"./tokens-B2fq-rL6.js";import"./deliver-BudDnEIb.js";import"./diagnostic-Dza7-pMC.js";import"./send-OVet2uKx.js";import"./pi-model-discovery-C8YBu6D4.js";import"./image-Ba-mOMMV.js";import"./audio-transcription-runner-CjKLRVPo.js";import"./fetch-BI3CnKE3.js";import"./fetch-guard-BmNIhXP-.js";import"./api-key-rotation-C_MG2y1D.js";import"./proxy-fetch-DnjU1fEB.js";import"./ir-CSysIkNU.js";import"./render-BXEUPIHe.js";import"./target-errors-LuLROpta.js";import"./commands-registry-Du79fdAL.js";import"./fetch-DHo17YmK.js";import"./skill-commands-CqIEajsA.js";import"./channel-activity-BPRCQpI6.js";import"./tables-3Rjt6nwZ.js";import"./send-BOxuQt9L.js";import"./outbound-attachment-BOax42-M.js";import"./send-CDAeI9xB2.js";import"./fetch-hy0JKSsm.js";import"./query-expansion-r_iXkNzt.js";import"./manager-CjihRbGa.js";export{a as DEFAULT_MODEL,c as DEFAULT_PROVIDER,n as ensureAgentWorkspace,l as loadSessionStore,e as resolveAgentDir,u as resolveAgentIdentity,d as resolveAgentTimeoutMs,t as resolveAgentWorkspaceDir,r as resolveSessionFilePath,i as resolveStorePath,s as resolveThinkingDefault,f as runEmbeddedPiAgent,o as saveSessionStore};
|