openclaw-multi-auto 1.7.5 → 1.7.6
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/{acp-cli-D2FsuxI4.js → acp-cli-DMujSgSt.js} +11 -11
- package/dist/{agent-B8D73rdQ.js → agent-CaQagdQ7.js} +8 -8
- package/dist/{agent-BomWJjOy.js → agent-QkWi9ww5.js} +7 -7
- package/dist/{agent-scope-DmTcOjk4.js → agent-scope-sd1-3XH0.js} +16 -16
- package/dist/{agents.config-Crwrvv0Y.js → agents.config-DpC62EoF.js} +3 -3
- package/dist/{audio-preflight-CZHCr2-5.js → audio-preflight-CKN-13f6.js} +1 -1
- package/dist/{audio-preflight-DUZyiet9.js → audio-preflight-CxMkqmsz.js} +10 -10
- package/dist/{audit-CX3KlHoS.js → audit-COOnp_TQ.js} +18 -18
- package/dist/{audit-membership-runtime-DOqwbA7L.js → audit-membership-runtime-o16tAd90.js} +1 -1
- package/dist/{auth-choice-DZC8_SXk.js → auth-choice-B7hFRxC4.js} +19 -19
- package/dist/{auth-choice-CuOI0DLZ.js → auth-choice-CgIbQGAr.js} +8 -8
- package/dist/{auth-choice-options-C_poWj2I.js → auth-choice-options-CaiEtgdy.js} +1 -1
- package/dist/{auth-choice-prompt-Bjt463U7.js → auth-choice-prompt-CyE2_iHL.js} +1 -1
- package/dist/{auth-choice.apply-helpers-BFZ8hPRq.js → auth-choice.apply-helpers-BwI7_FDv.js} +2 -2
- package/dist/{auth-choice.preferred-provider-CzDq9Lvp.js → auth-choice.preferred-provider-BJFK05is.js} +5 -5
- package/dist/{auth-profiles.runtime-DNqCx0L5.js → auth-profiles.runtime-DHFZjArZ.js} +1 -1
- package/dist/{auth-profiles.runtime-BWD0iDWZ.js → auth-profiles.runtime-firEabaJ.js} +10 -10
- package/dist/{auth-token-CnWG4-cB.js → auth-token-Ca2ISBq6.js} +1 -1
- package/dist/{bonjour-discovery-Cnl-PHZ4.js → bonjour-discovery-CgQeXj94.js} +1 -1
- package/dist/{browser-cli-DLSYDvK2.js → browser-cli-DfrP5czU.js} +11 -11
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-DMK0G0sK.js → channel-account-context-F18H2wEh.js} +7 -7
- package/dist/{channel-options-CsQMEhUD.js → channel-options-DR0IjcQw.js} +3 -3
- package/dist/{channel-web-D7txUcfH.js → channel-web-B3yCvpab.js} +4 -4
- package/dist/{channels-cli-DK-EFHka.js → channels-cli-C9jvVDlM.js} +33 -33
- package/dist/{channels-status-issues-B-PoQaOZ.js → channels-status-issues-C6mRI9nP.js} +1 -1
- package/dist/{clack-prompter-COY2Efgu.js → clack-prompter-CakorHf3.js} +1 -1
- package/dist/{clawbot-cli-CYVkuLnO.js → clawbot-cli-De1V5wKt.js} +12 -12
- package/dist/{cleanup-utils-DksMdp7C.js → cleanup-utils-DZ-HVi66.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BXEJJp6e.js → cli-5Ap2oull.js} +10 -10
- package/dist/{cmd-argv-BdNFwuhe.js → cmd-argv-Dz5qUtqp.js} +1 -1
- package/dist/{compact.runtime-Do9SwMzP.js → compact.runtime-Bi0KAZxx.js} +10 -10
- package/dist/{compact.runtime-pgjSlzSY.js → compact.runtime-DoEYdXjJ.js} +1 -1
- package/dist/{completion-cli-BnHZnvaD.js → completion-cli-DetW6vGx.js} +12 -12
- package/dist/{config-cli-BTyfFTwL.js → config-cli-JmabBPbR.js} +13 -13
- package/dist/{config-guard-DXvConn_.js → config-guard-D0ly1tu3.js} +12 -12
- package/dist/{config-validation-ZC7mw4HJ.js → config-validation-DtOoaTl7.js} +3 -3
- package/dist/{configure--3s3LTcF.js → configure-DNZVKth2.js} +52 -52
- package/dist/{control-ui-assets-D5CuaZfV.js → control-ui-assets-B9I2TpME.js} +1 -1
- package/dist/{cron-cli-BTeTdxk8.js → cron-cli-hA-3anvP.js} +11 -11
- package/dist/{daemon-cli-TvT5eeIP.js → daemon-cli-CgEObThe.js} +13 -13
- package/dist/{daemon-install-CUvnebOQ.js → daemon-install-e324s4no.js} +16 -16
- package/dist/{daemon-install-plan.shared-BfFSRwqA.js → daemon-install-plan.shared-g5FPfccc.js} +12 -12
- package/dist/{deliver-runtime-CRO5x8jL.js → deliver-runtime-CI-THBhi.js} +10 -10
- package/dist/{deliver-runtime-D4aWAXZ9.js → deliver-runtime-CqyJiuFQ.js} +1 -1
- package/dist/{deps-Cgw7M-k3.js → deps-B6HgPp5e.js} +6 -6
- package/dist/{device-bootstrap-DSXbseT6.js → device-bootstrap-oW1bwgs7.js} +1 -1
- package/dist/{device-pairing-RZV6Mnep.js → device-pairing-CMxl0D-M.js} +1 -1
- package/dist/{devices-cli-DnvmJ-Sg.js → devices-cli-BPpKKc7g.js} +11 -11
- package/dist/{diagnostics-1AwcyuKi.js → diagnostics-iZHasrpQ.js} +5 -5
- package/dist/{directory-cli-CO5of3mT.js → directory-cli-BP8WHXBG.js} +10 -10
- package/dist/{dns-cli-s2wuP3H0.js → dns-cli-CQl7AkL3.js} +10 -10
- package/dist/{docs-cli-CZA-gAQf.js → docs-cli-BWb05s-1.js} +3 -3
- package/dist/{doctor-completion-DvnTlsPK.js → doctor-completion-CA3Zcz0O.js} +2 -2
- package/dist/{doctor-config-flow-DOEjAAYV.js → doctor-config-flow-C53lW8fK.js} +10 -10
- package/dist/{enable-BSbXEyXD.js → enable-CmddFDJP.js} +1 -1
- package/dist/{exec-approvals-cli-CsNqvj8p.js → exec-approvals-cli-Cyhhh2cy.js} +18 -18
- package/dist/{fetch-CGW2R_wh.js → fetch-ggeyBJ4j.js} +2 -2
- package/dist/{gateway-cli-Bq7xXLEB.js → gateway-cli-vQfsLSPv.js} +101 -101
- package/dist/{gateway-install-token-C40ge2lh.js → gateway-install-token-CQHd6wSt.js} +3 -3
- package/dist/{gateway-rpc-DUJcLoxb.js → gateway-rpc-DrDqntyT.js} +1 -1
- package/dist/{health-D_dD9-ET.js → health-CTOG7Tdy.js} +7 -7
- package/dist/{hooks-cli-YvIgaujr.js → hooks-cli-CvrIbP3A.js} +18 -18
- package/dist/{hooks-status-C3wWva3H.js → hooks-status-BiuMKGQP.js} +1 -1
- package/dist/{image-runtime-Cx4HaqrI.js → image-runtime-Cen4jnt5.js} +10 -10
- package/dist/{image-runtime-Brryt_BU.js → image-runtime-DuwNoMsX.js} +1 -1
- package/dist/index.js +21 -21
- package/dist/{inspect-D3lV5ful.js → inspect-C0iPD7zZ.js} +4 -4
- package/dist/{install-safe-path-BvwKN_9n.js → install-safe-path-CnIWvuEU.js} +33 -33
- package/dist/{installs-BC5ieRDB.js → installs-BcQMkw3V.js} +8 -8
- package/dist/{ipv4-CwqOzc5W.js → ipv4-DHZnIX-K.js} +1 -1
- package/dist/{issue-format-34LidjQQ.js → issue-format-CtBob7pd.js} +1 -1
- package/dist/{launchd-BLFV2ME0.js → launchd-D7vxtTg7.js} +13 -13
- package/dist/{lifecycle-core-C07n1IOr.js → lifecycle-core-CKec6MyM.js} +6 -6
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{logging-DPEdtuNl.js → logging-B7i4YBpx.js} +1 -1
- package/dist/{login-BLC4Op_m.js → login-CQ5pGFeF.js} +3 -3
- package/dist/{login-CKmmxErc.js → login-DC00cCmn.js} +2 -2
- package/dist/{login-qr-DpxxtTBd.js → login-qr-C8iDYxXx.js} +11 -11
- package/dist/{login-qr-KVA4wuh0.js → login-qr-DB7lXNdD.js} +2 -2
- package/dist/{logs-cli-BKhTgUSN.js → logs-cli-B8u30MKC.js} +11 -11
- package/dist/{manager-runtime-D9AEoM1M.js → manager-runtime-C04JB-55.js} +1 -1
- package/dist/{manager-runtime-B4ZbE6hq.js → manager-runtime-DDc_xR6t.js} +10 -10
- package/dist/{manager.runtime-lHLhN5ro.js → manager.runtime-sDKQexj4.js} +16 -16
- package/dist/{manager.runtime-BV-CBNb2.js → manager.runtime-y1RqEqxK.js} +2 -2
- package/dist/{model-picker-C5sQCeTo.js → model-picker-iMZicrZb.js} +5 -5
- package/dist/{model-selection-CNRMBWfR.js → model-selection-Coo7zMJO.js} +43 -43
- package/dist/{models-cli-B7OdTj93.js → models-cli-CHWqnmnX.js} +21 -21
- package/dist/{node-cli-ArOhWB3h.js → node-cli-D2EGwHd2.js} +22 -22
- package/dist/{node-command-policy-BVIbeciX.js → node-command-policy-C9YoIlNR.js} +1 -1
- package/dist/{node-service-ESc5ToCS.js → node-service-D7xRD6Op.js} +1 -1
- package/dist/{nodes-cli-BLneGv8c.js → nodes-cli-BaWA_a27.js} +13 -13
- package/dist/{npm-pack-install-DI_0G-Ju.js → npm-pack-install-C7ntuYO8.js} +23 -23
- package/dist/{npm-resolution-DowD_x7i.js → npm-resolution-BL-LzQ8q.js} +3 -3
- package/dist/{onboard-Da0Gqg8E.js → onboard-1Vbkq-0q.js} +10 -10
- package/dist/{onboard-channels-Dub92d1X.js → onboard-channels-C_RZQliP.js} +16 -16
- package/dist/{onboard-custom-iC39HaRY.js → onboard-custom-CyUm7NIR.js} +5 -5
- package/dist/{onboard-hooks-DUll1iq8.js → onboard-hooks-Bx20a5uy.js} +4 -4
- package/dist/{onboard-remote-Cyc407f2.js → onboard-remote-Dtm07eUX.js} +3 -3
- package/dist/{onboard-skills-BqnqjDI3.js → onboard-skills-BOBtFqTc.js} +3 -3
- package/dist/{onboarding-BgeTWLi_.js → onboarding-CAQDdLGu.js} +17 -17
- package/dist/{onboarding.finalize-C4jEsWtC.js → onboarding.finalize-BAUMJZlu.js} +25 -25
- package/dist/{onboarding.gateway-config-C2XdEUF3.js → onboarding.gateway-config-BRSWuajr.js} +14 -14
- package/dist/{onboarding.secret-input-OwIXA7An.js → onboarding.secret-input-D75Xjj5j.js} +1 -1
- package/dist/{openai-codex-oauth-BUnBFHjs.js → openai-codex-oauth-BjOz2DJZ.js} +3 -3
- package/dist/{openclaw-root-B5jXk2td.js → openclaw-root-dlCz9toZ.js} +8 -8
- package/dist/{outbound-send-deps-dRaNZNE7.js → outbound-send-deps-Bid3Xegx.js} +1 -1
- package/dist/{pairing-cli-pEJPQw6E.js → pairing-cli-Dm_fH3zm.js} +10 -10
- package/dist/{path-alias-guards-BEqdGdn9.js → path-alias-guards-B6owPyQX.js} +3 -3
- package/dist/{path-safety-TRhr8lhQ.js → path-safety-DN7L46Yk.js} +1 -1
- package/dist/{pi-model-discovery-runtime-BkRq7f9h.js → pi-model-discovery-runtime-BRs3OnbK.js} +10 -10
- package/dist/{pi-model-discovery-runtime-CDKkuBYh.js → pi-model-discovery-runtime-DsZRIFOj.js} +1 -1
- package/dist/{pi-tools.before-tool-call.runtime-Dt7ZWya_.js → pi-tools.before-tool-call.runtime-Cz99nK1_.js} +10 -10
- package/dist/{pi-tools.before-tool-call.runtime-DgAiY2la.js → pi-tools.before-tool-call.runtime-l0nSxXys.js} +1 -1
- package/dist/{plugin-install-plan-q0pKUAmp.js → plugin-install-plan-tegfcs_j.js} +1 -1
- package/dist/{plugin-registry-DrrKSvdi.js → plugin-registry-D1UVdXNl.js} +2 -2
- package/dist/{plugins-om7vnHk0.js → plugins-BVbKGpQJ.js} +9 -9
- package/dist/{plugins-cli-BWuwmlNA.js → plugins-cli-DMTK-3PI.js} +21 -21
- package/dist/{ports-CVD9jTxH.js → ports-CrZzXxTl.js} +2 -2
- package/dist/{probe-auth-CRm2yob0.js → probe-auth-H1_HjX3c.js} +1 -1
- package/dist/{program-context-BnNrq2_o.js → program-context--XQiK-Vv.js} +42 -42
- package/dist/{prompt-select-styled-FpCuoi_9.js → prompt-select-styled-BzWw9bIh.js} +32 -32
- package/dist/{provider-auth-helpers-Dzq3SbTh.js → provider-auth-helpers-B5U-h2Ob.js} +4 -4
- package/dist/{provider-wizard-CRYUkbUG.js → provider-wizard-BgHYhBzK.js} +1 -1
- package/dist/{push-apns-6Yefl4vF.js → push-apns-DQdHdrq8.js} +3 -3
- package/dist/{pw-ai-Brk_ehKR.js → pw-ai-8OpaEmr4.js} +15 -15
- package/dist/{pw-ai-3ual6adI.js → pw-ai-R41XeePP.js} +1 -1
- package/dist/{qmd-manager-Clny9vcj.js → qmd-manager-BMkECKpc.js} +19 -19
- package/dist/{qr-cli-TsbdBlkh.js → qr-cli-CZy0bldy.js} +11 -11
- package/dist/{query-expansion-BNb6Vys6.js → query-expansion-AnOnkIqf.js} +48 -48
- package/dist/{redact-snapshot-sudZsVoX.js → redact-snapshot-lCMXNHo3.js} +1 -1
- package/dist/{register.agent-BcYbZ3eF.js → register.agent-2yZ4uAHT.js} +43 -43
- package/dist/{register.backup-DbtBtW_J.js → register.backup-Byyque4N.js} +26 -26
- package/dist/register.configure-CrATD0tr.js +87 -0
- package/dist/{register.maintenance-Cdn2TwrI.js → register.maintenance-BZ_V3Ubt.js} +33 -33
- package/dist/{register.message-cHCXxeA6.js → register.message-CJwTd37H.js} +13 -13
- package/dist/{register.onboard-Dbig7G2G.js → register.onboard-BY0T1WHb.js} +17 -17
- package/dist/{register.setup-DjHUcAcm.js → register.setup-CA3ZUrN-.js} +18 -18
- package/dist/{register.status-health-sessions-BMxJK45p.js → register.status-health-sessions-PN0jxAPA.js} +26 -26
- package/dist/{reply-Cf5Mm7vB.js → reply-gX1XTS9Y.js} +226 -226
- package/dist/{restart-stale-pids-ZfbSMILU.js → restart-stale-pids-B6E7QavX.js} +2 -2
- package/dist/{rpc-8YrBMBoD.js → rpc-B2PO3N0W.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-Br3SxDXL.js → runtime-whatsapp-login.runtime-C_E260pb.js} +3 -3
- package/dist/{runtime-whatsapp-login.runtime-Bo1HalYB.js → runtime-whatsapp-login.runtime-DKMtq6l9.js} +12 -12
- package/dist/{runtime-whatsapp-outbound.runtime-L3Qkst0n.js → runtime-whatsapp-outbound.runtime-BdHcgl-R.js} +2 -2
- package/dist/{runtime-whatsapp-outbound.runtime-Ch2o56Ey.js → runtime-whatsapp-outbound.runtime-Dv1HN4ha.js} +11 -11
- package/dist/{sandbox-cli-CoRe21Si.js → sandbox-cli-SCYkP_qN.js} +10 -10
- package/dist/{secret-file-7smmAVRV.js → secret-file-CuiwToxK.js} +1 -1
- package/dist/{secrets-cli-CHT1AjCX.js → secrets-cli-C5O6Jw_4.js} +11 -11
- package/dist/{security-cli-DRqdmCtr.js → security-cli-CL4qtb9H.js} +20 -20
- package/dist/{send-CXnKWzde.js → send-BvAlpSvh.js} +1 -1
- package/dist/{send-CHZ7WuOb.js → send-hZxe8sP9.js} +2 -2
- package/dist/{server-DiTziwvC.js → server-Cnc4lO11.js} +10 -10
- package/dist/{server-node-events-p5ykMQz-.js → server-node-events-aTSoNGTe.js} +14 -14
- package/dist/{service-RXVSlLiU.js → service-LNrViUVb.js} +13 -13
- package/dist/{session-CXOhppV3.js → session-CndmPe2D.js} +2 -2
- package/dist/{session-kt-bqE_z.js → session-D7nweu0t.js} +1 -1
- package/dist/{shared-CoL161wD.js → shared-c6JUv5At.js} +1 -1
- package/dist/{skill-scanner-BzjuMMKN.js → skill-scanner-DaUNX-tW.js} +6 -6
- package/dist/{skills-cli-YajvWbjO.js → skills-cli-YqsScIM5.js} +11 -11
- package/dist/{skills-install-DFkV3GsC.js → skills-install-BnRu7wO4.js} +6 -6
- package/dist/{skills-status-PMeXzDbC.js → skills-status-DHMQ6A2H.js} +1 -1
- package/dist/{skills-Jz-BSwRd.js → skills-vhlUaliH.js} +2 -2
- package/dist/{slash-commands.runtime-BYfxn_xu.js → slash-commands.runtime-AZCJXo7S.js} +1 -1
- package/dist/{slash-commands.runtime-_LrsMaI1.js → slash-commands.runtime-D9GHahMO.js} +10 -10
- package/dist/{slash-dispatch.runtime-neG4499W.js → slash-dispatch.runtime-DcISuJb0.js} +10 -10
- package/dist/{slash-dispatch.runtime-Cu8ghe1h.js → slash-dispatch.runtime-DyUU1AG5.js} +1 -1
- package/dist/{slash-skill-commands.runtime-8dS5PTaH.js → slash-skill-commands.runtime-Cv1NPjj6.js} +1 -1
- package/dist/{slash-skill-commands.runtime-D0ohJN-V.js → slash-skill-commands.runtime-Dt6QQJcX.js} +10 -10
- package/dist/{status-1patzIRq.js → status-D9mVTxuB.js} +1 -1
- package/dist/{status-BaLZ1uQV.js → status-QQiIsfFq.js} +21 -21
- package/dist/{status.update-DrzJ1YWu.js → status.update-DY13od-q.js} +3 -3
- package/dist/{subagent-registry-runtime-BTW1zlrG.js → subagent-registry-runtime-CoeW8s2P.js} +10 -10
- package/dist/{subagent-registry-runtime-Z0fdsGSq.js → subagent-registry-runtime-N50VG-ay.js} +1 -1
- package/dist/{system-cli-CndWL3sF.js → system-cli-DMu6SZhn.js} +11 -11
- package/dist/{systemd-D47rkLi7.js → systemd-DSK6B3bg.js} +11 -11
- package/dist/{systemd-hints-DHfXVo8k.js → systemd-hints-DsQTPBGt.js} +6 -6
- package/dist/{systemd-linger-DwmFZpci.js → systemd-linger-BPISBIWJ.js} +1 -1
- package/dist/{tui-CzYnfJxE.js → tui-DzNNH2rc.js} +2 -2
- package/dist/{tui-cli-D47N0Kfm.js → tui-cli-D5JgcWb9.js} +11 -11
- package/dist/{update-BiUnc38r.js → update-DL_359AR.js} +2 -2
- package/dist/{update-cli-CeqH2oQ-.js → update-cli-BfjWjK3A.js} +45 -45
- package/dist/{update-runner-oqYBjs5t.js → update-runner-CfkBU1BA.js} +16 -16
- package/dist/{web-CXyjF_si.js → web-B4n02Xhe.js} +4 -4
- package/dist/{web-BRvkjVpk.js → web-BHO-XtPY.js} +14 -14
- package/dist/{webhooks-cli-CnTKcfvh.js → webhooks-cli-C0kgprJJ.js} +10 -10
- package/dist/{whatsapp-actions-BXO9Bi7a.js → whatsapp-actions-BC06Ug_d.js} +11 -11
- package/dist/{whatsapp-actions-BUvGEDSk.js → whatsapp-actions-JJEG8eF3.js} +2 -2
- package/dist/{workspace-CWne7yqK.js → workspace-BTsqd19h.js} +1 -1
- package/package.json +8 -8
- package/scripts/create-instance.sh +29 -46
- package/dist/register.configure-CPWCrXrC.js +0 -87
|
@@ -40,7 +40,7 @@ import { EventEmitter } from "node:events";
|
|
|
40
40
|
import "node:stream/promises";
|
|
41
41
|
import http, { createServer } from "node:http";
|
|
42
42
|
import https from "node:https";
|
|
43
|
-
import WebSocket
|
|
43
|
+
import WebSocket, { WebSocket as WebSocket$1, WebSocketServer } from "ws";
|
|
44
44
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
45
45
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
46
46
|
import { complete, completeSimple, createAssistantMessageEventStream, getApiProvider, getEnvApiKey, registerApiProvider, streamSimple } from "@mariozechner/pi-ai";
|
|
@@ -19108,7 +19108,7 @@ function isModuleNotFoundError(err) {
|
|
|
19108
19108
|
}
|
|
19109
19109
|
async function loadPwAiModule(mode) {
|
|
19110
19110
|
try {
|
|
19111
|
-
return await import("./pw-ai-
|
|
19111
|
+
return await import("./pw-ai-R41XeePP.js");
|
|
19112
19112
|
} catch (err) {
|
|
19113
19113
|
if (mode === "soft") return null;
|
|
19114
19114
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -22282,7 +22282,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22282
22282
|
let extensionWs = null;
|
|
22283
22283
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
22284
22284
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
22285
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
22285
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
22286
22286
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
22287
22287
|
let extensionDisconnectCleanupTimer = null;
|
|
22288
22288
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -22334,7 +22334,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22334
22334
|
let nextExtensionId = 1;
|
|
22335
22335
|
const sendToExtension = async (payload) => {
|
|
22336
22336
|
const ws = extensionWs;
|
|
22337
|
-
if (!ws || ws.readyState !== WebSocket
|
|
22337
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
22338
22338
|
ws.send(JSON.stringify(payload));
|
|
22339
22339
|
return await new Promise((resolve, reject) => {
|
|
22340
22340
|
const timer = setTimeout(() => {
|
|
@@ -22351,12 +22351,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22351
22351
|
const broadcastToCdpClients = (evt) => {
|
|
22352
22352
|
const msg = JSON.stringify(evt);
|
|
22353
22353
|
for (const ws of cdpClients) {
|
|
22354
|
-
if (ws.readyState !== WebSocket
|
|
22354
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
22355
22355
|
ws.send(msg);
|
|
22356
22356
|
}
|
|
22357
22357
|
};
|
|
22358
22358
|
const sendResponseToCdp = (ws, res) => {
|
|
22359
|
-
if (ws.readyState !== WebSocket
|
|
22359
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
22360
22360
|
ws.send(JSON.stringify(res));
|
|
22361
22361
|
};
|
|
22362
22362
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -22610,7 +22610,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22610
22610
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
22611
22611
|
return;
|
|
22612
22612
|
}
|
|
22613
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
22613
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
22614
22614
|
try {
|
|
22615
22615
|
extensionWs.terminate();
|
|
22616
22616
|
} catch {}
|
|
@@ -22643,7 +22643,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
22643
22643
|
clearExtensionDisconnectCleanupTimer();
|
|
22644
22644
|
flushExtensionReconnectWaiters(true);
|
|
22645
22645
|
const ping = setInterval(() => {
|
|
22646
|
-
if (ws.readyState !== WebSocket
|
|
22646
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
22647
22647
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
22648
22648
|
}, 5e3);
|
|
22649
22649
|
ws.on("message", (data) => {
|
|
@@ -22996,7 +22996,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
22996
22996
|
};
|
|
22997
22997
|
const closePlaywrightBrowserConnectionForProfile = async (cdpUrl) => {
|
|
22998
22998
|
try {
|
|
22999
|
-
await (await import("./pw-ai-
|
|
22999
|
+
await (await import("./pw-ai-R41XeePP.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23000
23000
|
} catch {}
|
|
23001
23001
|
};
|
|
23002
23002
|
const reconcileProfileRuntime = async () => {
|
|
@@ -23123,7 +23123,7 @@ async function movePathToTrash(targetPath) {
|
|
|
23123
23123
|
//#region src/browser/server-context.reset.ts
|
|
23124
23124
|
async function closePlaywrightBrowserConnectionForProfile(cdpUrl) {
|
|
23125
23125
|
try {
|
|
23126
|
-
await (await import("./pw-ai-
|
|
23126
|
+
await (await import("./pw-ai-R41XeePP.js")).closePlaywrightBrowserConnection(cdpUrl ? { cdpUrl } : void 0);
|
|
23127
23127
|
} catch {}
|
|
23128
23128
|
}
|
|
23129
23129
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -24087,7 +24087,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
24087
24087
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
24088
24088
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
24089
24089
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
24090
|
-
return new WebSocket
|
|
24090
|
+
return new WebSocket(wsUrl, {
|
|
24091
24091
|
handshakeTimeout: handshakeTimeoutMs,
|
|
24092
24092
|
...Object.keys(headers).length ? { headers } : {},
|
|
24093
24093
|
...agent ? { agent } : {}
|
|
@@ -40076,7 +40076,7 @@ async function ensureOpenClawModelsJson(config, agentDirOverride) {
|
|
|
40076
40076
|
const log$31 = createSubsystemLogger("model-catalog");
|
|
40077
40077
|
let modelCatalogPromise = null;
|
|
40078
40078
|
let hasLoggedModelCatalogError = false;
|
|
40079
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-runtime-
|
|
40079
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-runtime-DsZRIFOj.js");
|
|
40080
40080
|
let importPiSdk = defaultImportPiSdk;
|
|
40081
40081
|
const CODEX_PROVIDER = "openai-codex";
|
|
40082
40082
|
const OPENAI_PROVIDER = "openai";
|
|
@@ -43248,7 +43248,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
43248
43248
|
//#region src/media-understanding/providers/image.ts
|
|
43249
43249
|
let piModelDiscoveryRuntimePromise = null;
|
|
43250
43250
|
function loadPiModelDiscoveryRuntime() {
|
|
43251
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-
|
|
43251
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-DsZRIFOj.js");
|
|
43252
43252
|
return piModelDiscoveryRuntimePromise;
|
|
43253
43253
|
}
|
|
43254
43254
|
async function describeImageWithModel(params) {
|
|
@@ -58788,7 +58788,7 @@ var LegacyContextEngine = class {
|
|
|
58788
58788
|
}
|
|
58789
58789
|
async afterTurn(_params) {}
|
|
58790
58790
|
async compact(params) {
|
|
58791
|
-
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-
|
|
58791
|
+
const { compactEmbeddedPiSessionDirect } = await import("./compact.runtime-DoEYdXjJ.js");
|
|
58792
58792
|
const runtimeContext = params.runtimeContext ?? {};
|
|
58793
58793
|
const currentTokenCount = params.currentTokenCount ?? (typeof runtimeContext.currentTokenCount === "number" && Number.isFinite(runtimeContext.currentTokenCount) && runtimeContext.currentTokenCount > 0 ? Math.floor(runtimeContext.currentTokenCount) : void 0);
|
|
58794
58794
|
const result = await compactEmbeddedPiSessionDirect({
|
|
@@ -63227,7 +63227,7 @@ const log$24 = createSubsystemLogger("memory");
|
|
|
63227
63227
|
const QMD_MANAGER_CACHE = /* @__PURE__ */ new Map();
|
|
63228
63228
|
let managerRuntimePromise = null;
|
|
63229
63229
|
function loadManagerRuntime() {
|
|
63230
|
-
managerRuntimePromise ??= import("./manager-runtime-
|
|
63230
|
+
managerRuntimePromise ??= import("./manager-runtime-C04JB-55.js");
|
|
63231
63231
|
return managerRuntimePromise;
|
|
63232
63232
|
}
|
|
63233
63233
|
async function getMemorySearchManager(params) {
|
|
@@ -69593,7 +69593,7 @@ var GatewayClient = class {
|
|
|
69593
69593
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
69594
69594
|
});
|
|
69595
69595
|
}
|
|
69596
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
69596
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
69597
69597
|
this.ws.on("open", () => {
|
|
69598
69598
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
69599
69599
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -69869,7 +69869,7 @@ var GatewayClient = class {
|
|
|
69869
69869
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
69870
69870
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
69871
69871
|
this.connectTimer = setTimeout(() => {
|
|
69872
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
69872
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
69873
69873
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
69874
69874
|
this.ws?.close(1008, "connect challenge timeout");
|
|
69875
69875
|
}, connectChallengeTimeoutMs);
|
|
@@ -69914,7 +69914,7 @@ var GatewayClient = class {
|
|
|
69914
69914
|
return null;
|
|
69915
69915
|
}
|
|
69916
69916
|
async request(method, params, opts) {
|
|
69917
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
69917
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
69918
69918
|
const id = randomUUID();
|
|
69919
69919
|
const frame = {
|
|
69920
69920
|
type: "req",
|
|
@@ -89192,7 +89192,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
89192
89192
|
*/
|
|
89193
89193
|
let deliverRuntimePromise$2 = null;
|
|
89194
89194
|
function loadDeliverRuntime$2() {
|
|
89195
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
89195
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-CqyJiuFQ.js");
|
|
89196
89196
|
return deliverRuntimePromise$2;
|
|
89197
89197
|
}
|
|
89198
89198
|
/**
|
|
@@ -89742,7 +89742,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
89742
89742
|
await ensureOpenClawModelsJson(cfg);
|
|
89743
89743
|
} catch {}
|
|
89744
89744
|
try {
|
|
89745
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
89745
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-DsZRIFOj.js");
|
|
89746
89746
|
const agentDir = resolveOpenClawAgentDir();
|
|
89747
89747
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
89748
89748
|
applyDiscoveredContextWindows({
|
|
@@ -94742,7 +94742,7 @@ const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
|
94742
94742
|
const GATEWAY_TIMEOUT_PATTERN = /gateway timeout/i;
|
|
94743
94743
|
let subagentRegistryRuntimePromise = null;
|
|
94744
94744
|
function loadSubagentRegistryRuntime() {
|
|
94745
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
94745
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-N50VG-ay.js");
|
|
94746
94746
|
return subagentRegistryRuntimePromise;
|
|
94747
94747
|
}
|
|
94748
94748
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -100767,7 +100767,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
|
|
|
100767
100767
|
const MAX_LOOP_WARNING_KEYS = 256;
|
|
100768
100768
|
let beforeToolCallRuntimePromise = null;
|
|
100769
100769
|
function loadBeforeToolCallRuntime() {
|
|
100770
|
-
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-
|
|
100770
|
+
beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-l0nSxXys.js");
|
|
100771
100771
|
return beforeToolCallRuntimePromise;
|
|
100772
100772
|
}
|
|
100773
100773
|
function buildAdjustedParamsKey(params) {
|
|
@@ -108720,7 +108720,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
108720
108720
|
* Throws if the connection is not open.
|
|
108721
108721
|
*/
|
|
108722
108722
|
send(event) {
|
|
108723
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
108723
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
108724
108724
|
this.ws.send(JSON.stringify(event));
|
|
108725
108725
|
}
|
|
108726
108726
|
/**
|
|
@@ -108737,7 +108737,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
108737
108737
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
108738
108738
|
*/
|
|
108739
108739
|
isConnected() {
|
|
108740
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
108740
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
108741
108741
|
}
|
|
108742
108742
|
/**
|
|
108743
108743
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -108747,7 +108747,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
108747
108747
|
this._cancelRetryTimer();
|
|
108748
108748
|
if (this.ws) {
|
|
108749
108749
|
this.ws.removeAllListeners();
|
|
108750
|
-
if (this.ws.readyState === WebSocket
|
|
108750
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
108751
108751
|
this.ws = null;
|
|
108752
108752
|
}
|
|
108753
108753
|
}
|
|
@@ -108757,7 +108757,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
108757
108757
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
108758
108758
|
return;
|
|
108759
108759
|
}
|
|
108760
|
-
const socket = new WebSocket
|
|
108760
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
108761
108761
|
Authorization: `Bearer ${this.apiKey}`,
|
|
108762
108762
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
108763
108763
|
} });
|
|
@@ -117006,7 +117006,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
117006
117006
|
//#region src/media-understanding/echo-transcript.ts
|
|
117007
117007
|
let deliverRuntimePromise$1 = null;
|
|
117008
117008
|
function loadDeliverRuntime$1() {
|
|
117009
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
117009
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-CqyJiuFQ.js");
|
|
117010
117010
|
return deliverRuntimePromise$1;
|
|
117011
117011
|
}
|
|
117012
117012
|
function formatEchoTranscript(transcript, format) {
|
|
@@ -126839,7 +126839,7 @@ async function createModelSelectionState(params) {
|
|
|
126839
126839
|
}
|
|
126840
126840
|
}
|
|
126841
126841
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
126842
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-
|
|
126842
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-DHFZjArZ.js");
|
|
126843
126843
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
126844
126844
|
const providerKey = normalizeProviderId(provider);
|
|
126845
126845
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -133199,7 +133199,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
133199
133199
|
const log$5 = createSubsystemLogger("session-maintenance-warning");
|
|
133200
133200
|
let deliverRuntimePromise = null;
|
|
133201
133201
|
function loadDeliverRuntime() {
|
|
133202
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
133202
|
+
deliverRuntimePromise ??= import("./deliver-runtime-CqyJiuFQ.js");
|
|
133203
133203
|
return deliverRuntimePromise;
|
|
133204
133204
|
}
|
|
133205
133205
|
function shouldSendWarning() {
|
|
@@ -138363,7 +138363,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
138363
138363
|
hasTypedText
|
|
138364
138364
|
};
|
|
138365
138365
|
try {
|
|
138366
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
138366
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CKN-13f6.js");
|
|
138367
138367
|
if (params.abortSignal?.aborted) return {
|
|
138368
138368
|
hasAudioAttachment,
|
|
138369
138369
|
hasTypedText
|
|
@@ -143706,7 +143706,7 @@ function createGatewayPlugin(params) {
|
|
|
143706
143706
|
}
|
|
143707
143707
|
createWebSocket(url) {
|
|
143708
143708
|
if (!params.wsAgent) return super.createWebSocket(url);
|
|
143709
|
-
return new WebSocket
|
|
143709
|
+
return new WebSocket(url, { agent: params.wsAgent });
|
|
143710
143710
|
}
|
|
143711
143711
|
}
|
|
143712
143712
|
return new SafeGatewayPlugin();
|
|
@@ -144699,7 +144699,7 @@ function resolveDiscordRestFetch(proxyUrl, runtime) {
|
|
|
144699
144699
|
//#region extensions/discord/src/monitor/provider.ts
|
|
144700
144700
|
let discordVoiceRuntimePromise;
|
|
144701
144701
|
async function loadDiscordVoiceRuntime() {
|
|
144702
|
-
discordVoiceRuntimePromise ??= import("./manager.runtime-
|
|
144702
|
+
discordVoiceRuntimePromise ??= import("./manager.runtime-y1RqEqxK.js");
|
|
144703
144703
|
return await discordVoiceRuntimePromise;
|
|
144704
144704
|
}
|
|
144705
144705
|
function formatThreadBindingDurationForConfigLabel(durationMs) {
|
|
@@ -152679,15 +152679,15 @@ let slashCommandsRuntimePromise = null;
|
|
|
152679
152679
|
let slashDispatchRuntimePromise = null;
|
|
152680
152680
|
let slashSkillCommandsRuntimePromise = null;
|
|
152681
152681
|
function loadSlashCommandsRuntime() {
|
|
152682
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
152682
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-AZCJXo7S.js");
|
|
152683
152683
|
return slashCommandsRuntimePromise;
|
|
152684
152684
|
}
|
|
152685
152685
|
function loadSlashDispatchRuntime() {
|
|
152686
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
152686
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-DyUU1AG5.js");
|
|
152687
152687
|
return slashDispatchRuntimePromise;
|
|
152688
152688
|
}
|
|
152689
152689
|
function loadSlashSkillCommandsRuntime() {
|
|
152690
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
152690
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-Cv1NPjj6.js");
|
|
152691
152691
|
return slashSkillCommandsRuntimePromise;
|
|
152692
152692
|
}
|
|
152693
152693
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
@@ -156307,7 +156307,7 @@ function getCacheStats() {
|
|
|
156307
156307
|
const STICKER_DESCRIPTION_PROMPT = "Describe this sticker image in 1-2 sentences. Focus on what the sticker depicts (character, object, action, emotion). Be concise and objective.";
|
|
156308
156308
|
let imageRuntimePromise = null;
|
|
156309
156309
|
function loadImageRuntime() {
|
|
156310
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
156310
|
+
imageRuntimePromise ??= import("./image-runtime-DuwNoMsX.js");
|
|
156311
156311
|
return imageRuntimePromise;
|
|
156312
156312
|
}
|
|
156313
156313
|
/**
|
|
@@ -158039,7 +158039,7 @@ async function resolveTelegramInboundBody(params) {
|
|
|
158039
158039
|
const disableAudioPreflight = (topicConfig?.disableAudioPreflight ?? groupConfig?.disableAudioPreflight) === true;
|
|
158040
158040
|
let preflightTranscript;
|
|
158041
158041
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
158042
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
158042
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CKN-13f6.js");
|
|
158043
158043
|
preflightTranscript = await transcribeFirstAudio({
|
|
158044
158044
|
ctx: {
|
|
158045
158045
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -166161,7 +166161,7 @@ function createWhatsAppLoginTool() {
|
|
|
166161
166161
|
force: Type.Optional(Type.Boolean())
|
|
166162
166162
|
}),
|
|
166163
166163
|
execute: async (_toolCallId, args) => {
|
|
166164
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
166164
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-DB7lXNdD.js");
|
|
166165
166165
|
if ((args?.action ?? "start") === "wait") {
|
|
166166
166166
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
166167
166167
|
return {
|
|
@@ -166235,23 +166235,23 @@ let webOutboundPromise = null;
|
|
|
166235
166235
|
let webLoginPromise = null;
|
|
166236
166236
|
let whatsappActionsPromise = null;
|
|
166237
166237
|
function loadWebOutbound() {
|
|
166238
|
-
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-
|
|
166238
|
+
webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-BdHcgl-R.js");
|
|
166239
166239
|
return webOutboundPromise;
|
|
166240
166240
|
}
|
|
166241
166241
|
function loadWebLogin() {
|
|
166242
|
-
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-
|
|
166242
|
+
webLoginPromise ??= import("./runtime-whatsapp-login.runtime-C_E260pb.js");
|
|
166243
166243
|
return webLoginPromise;
|
|
166244
166244
|
}
|
|
166245
166245
|
function loadWebLoginQr() {
|
|
166246
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
166246
|
+
webLoginQrPromise ??= import("./login-qr-DB7lXNdD.js");
|
|
166247
166247
|
return webLoginQrPromise;
|
|
166248
166248
|
}
|
|
166249
166249
|
function loadWebChannel() {
|
|
166250
|
-
webChannelPromise ??= import("./web-
|
|
166250
|
+
webChannelPromise ??= import("./web-B4n02Xhe.js");
|
|
166251
166251
|
return webChannelPromise;
|
|
166252
166252
|
}
|
|
166253
166253
|
function loadWhatsAppActions() {
|
|
166254
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
166254
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-JJEG8eF3.js");
|
|
166255
166255
|
return whatsappActionsPromise;
|
|
166256
166256
|
}
|
|
166257
166257
|
function createRuntimeWhatsApp() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./paths-tuenh9TL.js";
|
|
2
2
|
import { A as theme, O as colorize, k as isRich$1, p as defaultRuntime } from "./subsystem-G54saDcg.js";
|
|
3
3
|
import { S as shortenHomePath } from "./utils-B8zCe27d.js";
|
|
4
|
-
import { $ as resolveCommandSecretRefsViaGateway, A as normalizeProviderId, Av as resolveAuthProfileDisplayLabel, B as resolvePluginProviders, C as findNormalizedProviderValue, Cv as loadAuthProfileStoreForRuntime, D as modelKey, Dv as resolveAuthStorePathForDisplay, F as resolveDefaultModelForAgent, Gd as resolveModelWithRegistry, Iv as DEFAULT_MODEL, Jd as discoverAuthStorage, K as withProgressTotals, L as resolveModelRefFromString, Lv as DEFAULT_PROVIDER, Nt as openUrl, Ov as resolveOpenClawAgentDir, P as resolveConfiguredModelRef, S as buildModelAliasIndex, T_ as parseDurationMs, Wg as resolveSecretRefString, X as getModelsCommandSecretTargetIds, Yd as discoverModels, __ as setRuntimeConfigSnapshot, _f as resolveApiKeyForProvider, ba as describeFailoverError, bf as resolveUsableCustomProviderApiKey, bv as upsertAuthProfile, c as buildAuthHealthSummary, d_ as loadConfig, ep as resolveAuthProfileEligibility, ff as loadModelCatalog, gf as hasUsableCustomProviderApiKey, h_ as readConfigFileSnapshotForWrite, hf as getCustomProviderApiKey, hv as shouldEnableShellEnvFallback, j as parseModelRef, l as formatRemainingShort, li as formatUsageWindowSummary, mf as shouldSuppressBuiltInModel, mv as getShellEnvAppliedKeys, np as clearAuthProfileCooldown, o as maskApiKey, qf as isNonSecretApiKeyMarker, rp as resolveProfileUnusableUntilForDisplay, s as DEFAULT_OAUTH_WARN_MS, si as loadProviderUsageSummary, sr as runEmbeddedPiAgent, tp as resolveAuthProfileOrder, u_ as createConfigIO, ui as resolveUsageProviderId, vf as resolveAwsSdkEnvVarName, vv as listProfilesForProvider, xv as ensureAuthProfileStore, yf as resolveEnvApiKey, yv as setAuthProfileOrder } from "./reply-
|
|
5
|
-
import { F as toAgentModelListLike, N as resolveAgentModelFallbackValues, P as resolveAgentModelPrimaryValue, a as resolveAgentDir, d as resolveAgentWorkspaceDir, f as resolveDefaultAgentId, j as resolveDefaultAgentWorkspaceDir, l as resolveAgentModelFallbacksOverride, s as resolveAgentExplicitModelPrimary } from "./agent-scope-
|
|
4
|
+
import { $ as resolveCommandSecretRefsViaGateway, A as normalizeProviderId, Av as resolveAuthProfileDisplayLabel, B as resolvePluginProviders, C as findNormalizedProviderValue, Cv as loadAuthProfileStoreForRuntime, D as modelKey, Dv as resolveAuthStorePathForDisplay, F as resolveDefaultModelForAgent, Gd as resolveModelWithRegistry, Iv as DEFAULT_MODEL, Jd as discoverAuthStorage, K as withProgressTotals, L as resolveModelRefFromString, Lv as DEFAULT_PROVIDER, Nt as openUrl, Ov as resolveOpenClawAgentDir, P as resolveConfiguredModelRef, S as buildModelAliasIndex, T_ as parseDurationMs, Wg as resolveSecretRefString, X as getModelsCommandSecretTargetIds, Yd as discoverModels, __ as setRuntimeConfigSnapshot, _f as resolveApiKeyForProvider, ba as describeFailoverError, bf as resolveUsableCustomProviderApiKey, bv as upsertAuthProfile, c as buildAuthHealthSummary, d_ as loadConfig, ep as resolveAuthProfileEligibility, ff as loadModelCatalog, gf as hasUsableCustomProviderApiKey, h_ as readConfigFileSnapshotForWrite, hf as getCustomProviderApiKey, hv as shouldEnableShellEnvFallback, j as parseModelRef, l as formatRemainingShort, li as formatUsageWindowSummary, mf as shouldSuppressBuiltInModel, mv as getShellEnvAppliedKeys, np as clearAuthProfileCooldown, o as maskApiKey, qf as isNonSecretApiKeyMarker, rp as resolveProfileUnusableUntilForDisplay, s as DEFAULT_OAUTH_WARN_MS, si as loadProviderUsageSummary, sr as runEmbeddedPiAgent, tp as resolveAuthProfileOrder, u_ as createConfigIO, ui as resolveUsageProviderId, vf as resolveAwsSdkEnvVarName, vv as listProfilesForProvider, xv as ensureAuthProfileStore, yf as resolveEnvApiKey, yv as setAuthProfileOrder } from "./reply-gX1XTS9Y.js";
|
|
5
|
+
import { F as toAgentModelListLike, N as resolveAgentModelFallbackValues, P as resolveAgentModelPrimaryValue, a as resolveAgentDir, d as resolveAgentWorkspaceDir, f as resolveDefaultAgentId, j as resolveDefaultAgentWorkspaceDir, l as resolveAgentModelFallbacksOverride, s as resolveAgentExplicitModelPrimary } from "./agent-scope-sd1-3XH0.js";
|
|
6
6
|
import { r as normalizeStringEntries } from "./string-normalization-BxfC_3SE.js";
|
|
7
|
-
import "./openclaw-root-
|
|
7
|
+
import "./openclaw-root-dlCz9toZ.js";
|
|
8
8
|
import "./logger-BohkHL0S.js";
|
|
9
9
|
import "./exec-CNtAq7Md.js";
|
|
10
10
|
import { i as coerceSecretRef, l as normalizeSecretInputString } from "./types.secrets-d7ZFrG7U.js";
|
|
@@ -14,16 +14,16 @@ import "./boolean-B938tROv.js";
|
|
|
14
14
|
import "./env-CQxWwTMn.js";
|
|
15
15
|
import "./env-overrides-BYyMsIvB.js";
|
|
16
16
|
import "./registry-aHEgjCIQ.js";
|
|
17
|
-
import "./skills-
|
|
17
|
+
import "./skills-vhlUaliH.js";
|
|
18
18
|
import "./frontmatter-BngyYhS0.js";
|
|
19
|
-
import "./plugins-
|
|
20
|
-
import "./query-expansion-
|
|
19
|
+
import "./plugins-BVbKGpQJ.js";
|
|
20
|
+
import "./query-expansion-AnOnkIqf.js";
|
|
21
21
|
import "./redact-owRpqMhM.js";
|
|
22
|
-
import "./path-alias-guards-
|
|
23
|
-
import "./fetch-
|
|
22
|
+
import "./path-alias-guards-B6owPyQX.js";
|
|
23
|
+
import "./fetch-ggeyBJ4j.js";
|
|
24
24
|
import "./errors-DNKaAVHN.js";
|
|
25
|
-
import "./cmd-argv-
|
|
26
|
-
import "./restart-stale-pids-
|
|
25
|
+
import "./cmd-argv-Dz5qUtqp.js";
|
|
26
|
+
import "./restart-stale-pids-B6E7QavX.js";
|
|
27
27
|
import "./delivery-queue-B7zSt4zY.js";
|
|
28
28
|
import { a as resolveSessionTranscriptPath, c as resolveSessionTranscriptsDirForAgent } from "./paths-CfmKJcO5.js";
|
|
29
29
|
import "./session-cost-usage-C2jrTKxW.js";
|
|
@@ -32,18 +32,18 @@ import { t as formatDocsLink } from "./links-BpKafJs4.js";
|
|
|
32
32
|
import { n as runCommandWithRuntime, t as resolveOptionFromCommand } from "./cli-utils-BSURvrmb.js";
|
|
33
33
|
import "./provider-env-vars-UMPrp98I.js";
|
|
34
34
|
import "./note-DOFTT6QH.js";
|
|
35
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
36
|
-
import "./issue-format-
|
|
35
|
+
import { t as createClackPrompter } from "./clack-prompter-CakorHf3.js";
|
|
36
|
+
import "./issue-format-CtBob7pd.js";
|
|
37
37
|
import { n as renderTable, t as getTerminalTableWidth } from "./table-DpnYa9iY.js";
|
|
38
38
|
import { t as inferParamBFromIdOrName } from "./model-param-b-D0oPQe6u.js";
|
|
39
39
|
import { n as redactSecrets } from "./format-BPo-2-uv.js";
|
|
40
|
-
import { $t as loadValidConfigOrThrow, Jt as applyDefaultModelPrimaryUpdate, Lt as writeOAuthCredentials, Qt as isLocalBaseUrl, Xt as formatMs, Yt as ensureFlagCompatibility, Zt as formatTokenK, a as OPENAI_CODEX_DEFAULT_MODEL, an as updateConfig, c as isRemoteEnvironment, en as mergePrimaryFallbackConfig, i as resolveProviderMatch, in as resolveModelTarget, n as mergeConfigPatch, nn as resolveKnownAgentId, o as applyOpenAICodexModelDefault, on as upsertCanonicalModelConfigEntry, r as pickAuthMethod, rn as resolveModelKeysFromEntries, s as createVpsAwareOAuthHandlers, t as applyDefaultModel, tn as normalizeAlias, y as applyAuthProfileConfig } from "./provider-auth-helpers-
|
|
41
|
-
import { n as logConfigUpdated } from "./logging-
|
|
42
|
-
import { n as githubCopilotLoginCommand, t as loginOpenAICodexOAuth } from "./openai-codex-oauth-
|
|
43
|
-
import { n as validateAnthropicSetupToken } from "./auth-token-
|
|
40
|
+
import { $t as loadValidConfigOrThrow, Jt as applyDefaultModelPrimaryUpdate, Lt as writeOAuthCredentials, Qt as isLocalBaseUrl, Xt as formatMs, Yt as ensureFlagCompatibility, Zt as formatTokenK, a as OPENAI_CODEX_DEFAULT_MODEL, an as updateConfig, c as isRemoteEnvironment, en as mergePrimaryFallbackConfig, i as resolveProviderMatch, in as resolveModelTarget, n as mergeConfigPatch, nn as resolveKnownAgentId, o as applyOpenAICodexModelDefault, on as upsertCanonicalModelConfigEntry, r as pickAuthMethod, rn as resolveModelKeysFromEntries, s as createVpsAwareOAuthHandlers, t as applyDefaultModel, tn as normalizeAlias, y as applyAuthProfileConfig } from "./provider-auth-helpers-B5U-h2Ob.js";
|
|
41
|
+
import { n as logConfigUpdated } from "./logging-B7i4YBpx.js";
|
|
42
|
+
import { n as githubCopilotLoginCommand, t as loginOpenAICodexOAuth } from "./openai-codex-oauth-BjOz2DJZ.js";
|
|
43
|
+
import { n as validateAnthropicSetupToken } from "./auth-token-Ca2ISBq6.js";
|
|
44
44
|
import "./oauth-tls-preflight-cdkLewAv.js";
|
|
45
45
|
import path from "node:path";
|
|
46
|
-
import
|
|
46
|
+
import fsPromises from "node:fs/promises";
|
|
47
47
|
import crypto from "node:crypto";
|
|
48
48
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
49
49
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1027,8 +1027,8 @@ function printModelTable(rows, runtime, opts = {}) {
|
|
|
1027
1027
|
//#region src/commands/models/list.list-command.ts
|
|
1028
1028
|
async function modelsListCommand(opts, runtime) {
|
|
1029
1029
|
ensureFlagCompatibility(opts);
|
|
1030
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-
|
|
1031
|
-
const { ensureOpenClawModelsJson } = await import("./reply-
|
|
1030
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles.runtime-firEabaJ.js");
|
|
1031
|
+
const { ensureOpenClawModelsJson } = await import("./reply-gX1XTS9Y.js").then((n) => n.pf);
|
|
1032
1032
|
const { sourceConfig, resolvedConfig: cfg } = await loadModelsConfigWithSource({
|
|
1033
1033
|
commandName: "models list",
|
|
1034
1034
|
runtime
|
|
@@ -1444,7 +1444,7 @@ async function probeTarget(params) {
|
|
|
1444
1444
|
const model = target.model;
|
|
1445
1445
|
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1446
1446
|
const sessionFile = resolveSessionTranscriptPath(sessionId, agentId);
|
|
1447
|
-
await
|
|
1447
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
1448
1448
|
const start = Date.now();
|
|
1449
1449
|
const buildResult = (status, error) => ({
|
|
1450
1450
|
provider: target.provider,
|
|
@@ -1491,7 +1491,7 @@ async function runTargetsWithConcurrency(params) {
|
|
|
1491
1491
|
const agentDir = resolveOpenClawAgentDir();
|
|
1492
1492
|
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1493
1493
|
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1494
|
-
await
|
|
1494
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
1495
1495
|
let completed = 0;
|
|
1496
1496
|
const results = Array.from({ length: targets.length });
|
|
1497
1497
|
let cursor = 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-tuenh9TL.js";
|
|
2
2
|
import { A as theme, O as colorize, p as defaultRuntime } from "./subsystem-G54saDcg.js";
|
|
3
3
|
import "./utils-B8zCe27d.js";
|
|
4
|
-
import { B_ as resolvePlannedSegmentArgv, Cl as ensureExecApprovals, El as mergeExecApprovalsSocketDefaults, G_ as unwrapKnownDispatchWrapperInvocation, Gl as evaluateExecAllowlist, H_ as resolveExecutableFromPathEnv, Ho as resolveSystemRunCommandRequest, Il as saveExecApprovals, J_ as resolveInlineCommandMatch, Jm as createBrowserRouteDispatcher, K_ as unwrapKnownShellMultiplexerInvocation, Kl as evaluateShellAllowlist, Ko as normalizeSystemRunApprovalPlan, Ll as requestJsonlSocket, Ml as recordAllowlistUse, Nl as requiresExecApproval, Nm as writeJsonAtomic, Ol as normalizeExecApprovals, Pl as resolveExecApprovals, Sl as addAllowlistEntry, Tm as GATEWAY_CLIENT_NAMES, U_ as POSIX_SHELL_WRAPPERS, Ul as resolveExecSafeBinRuntimePolicy, V_ as resolveCommandResolutionFromArgv, Vl as isInterpreterLikeSafeBin, Vo as formatExecCommand, W_ as normalizeExecutableToken, Xm as startBrowserControlServiceFromConfig, Xt as resolveGatewayConnectionAuth, Y_ as splitShellArgs, Ym as createBrowserControlContext, br as withTimeout, bu as getMachineDisplayName, d_ as loadConfig, dv as VERSION, hs as GatewayClient, jl as readExecApprovalsSnapshot, q as formatHelpExamples, q_ as POSIX_INLINE_COMMAND_FLAGS, ql as resolveAllowAlwaysPatterns, rh as resolveBrowserConfig, ul as loadOrCreateDeviceIdentity, wm as GATEWAY_CLIENT_MODES, z_ as analyzeArgvCommand } from "./reply-
|
|
5
|
-
import { i as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { s as sameFileIdentity } from "./openclaw-root-
|
|
4
|
+
import { B_ as resolvePlannedSegmentArgv, Cl as ensureExecApprovals, El as mergeExecApprovalsSocketDefaults, G_ as unwrapKnownDispatchWrapperInvocation, Gl as evaluateExecAllowlist, H_ as resolveExecutableFromPathEnv, Ho as resolveSystemRunCommandRequest, Il as saveExecApprovals, J_ as resolveInlineCommandMatch, Jm as createBrowserRouteDispatcher, K_ as unwrapKnownShellMultiplexerInvocation, Kl as evaluateShellAllowlist, Ko as normalizeSystemRunApprovalPlan, Ll as requestJsonlSocket, Ml as recordAllowlistUse, Nl as requiresExecApproval, Nm as writeJsonAtomic, Ol as normalizeExecApprovals, Pl as resolveExecApprovals, Sl as addAllowlistEntry, Tm as GATEWAY_CLIENT_NAMES, U_ as POSIX_SHELL_WRAPPERS, Ul as resolveExecSafeBinRuntimePolicy, V_ as resolveCommandResolutionFromArgv, Vl as isInterpreterLikeSafeBin, Vo as formatExecCommand, W_ as normalizeExecutableToken, Xm as startBrowserControlServiceFromConfig, Xt as resolveGatewayConnectionAuth, Y_ as splitShellArgs, Ym as createBrowserControlContext, br as withTimeout, bu as getMachineDisplayName, d_ as loadConfig, dv as VERSION, hs as GatewayClient, jl as readExecApprovalsSnapshot, q as formatHelpExamples, q_ as POSIX_INLINE_COMMAND_FLAGS, ql as resolveAllowAlwaysPatterns, rh as resolveBrowserConfig, ul as loadOrCreateDeviceIdentity, wm as GATEWAY_CLIENT_MODES, z_ as analyzeArgvCommand } from "./reply-gX1XTS9Y.js";
|
|
5
|
+
import { i as resolveAgentConfig } from "./agent-scope-sd1-3XH0.js";
|
|
6
|
+
import { s as sameFileIdentity } from "./openclaw-root-dlCz9toZ.js";
|
|
7
7
|
import { i as logWarn } from "./logger-BohkHL0S.js";
|
|
8
8
|
import "./exec-CNtAq7Md.js";
|
|
9
9
|
import "./github-copilot-token-Ff890Vmh.js";
|
|
@@ -12,16 +12,16 @@ import "./boolean-B938tROv.js";
|
|
|
12
12
|
import "./env-CQxWwTMn.js";
|
|
13
13
|
import { S as sanitizeSystemRunEnvOverrides, x as sanitizeHostExecEnv } from "./env-overrides-BYyMsIvB.js";
|
|
14
14
|
import "./registry-aHEgjCIQ.js";
|
|
15
|
-
import "./skills-
|
|
15
|
+
import "./skills-vhlUaliH.js";
|
|
16
16
|
import "./frontmatter-BngyYhS0.js";
|
|
17
|
-
import "./plugins-
|
|
18
|
-
import { N as detectMime } from "./query-expansion-
|
|
17
|
+
import "./plugins-BVbKGpQJ.js";
|
|
18
|
+
import { N as detectMime } from "./query-expansion-AnOnkIqf.js";
|
|
19
19
|
import "./redact-owRpqMhM.js";
|
|
20
|
-
import "./path-alias-guards-
|
|
21
|
-
import "./fetch-
|
|
20
|
+
import "./path-alias-guards-B6owPyQX.js";
|
|
21
|
+
import "./fetch-ggeyBJ4j.js";
|
|
22
22
|
import "./errors-DNKaAVHN.js";
|
|
23
|
-
import "./cmd-argv-
|
|
24
|
-
import "./restart-stale-pids-
|
|
23
|
+
import "./cmd-argv-Dz5qUtqp.js";
|
|
24
|
+
import "./restart-stale-pids-B6E7QavX.js";
|
|
25
25
|
import "./delivery-queue-B7zSt4zY.js";
|
|
26
26
|
import "./paths-CfmKJcO5.js";
|
|
27
27
|
import "./session-cost-usage-C2jrTKxW.js";
|
|
@@ -31,21 +31,21 @@ import { t as formatDocsLink } from "./links-BpKafJs4.js";
|
|
|
31
31
|
import "./cli-utils-BSURvrmb.js";
|
|
32
32
|
import { t as ensureOpenClawCliOnPath } from "./path-env-_M4X1ggC.js";
|
|
33
33
|
import "./runtime-guard-C4h47dl7.js";
|
|
34
|
-
import "./issue-format-
|
|
35
|
-
import { l as buildNodeServiceEnvironment, n as resolveDaemonInstallRuntimeInputs, p as resolveNodeProgramArguments, t as emitDaemonInstallRuntimeWarning } from "./daemon-install-plan.shared-
|
|
34
|
+
import "./issue-format-CtBob7pd.js";
|
|
35
|
+
import { l as buildNodeServiceEnvironment, n as resolveDaemonInstallRuntimeInputs, p as resolveNodeProgramArguments, t as emitDaemonInstallRuntimeWarning } from "./daemon-install-plan.shared-g5FPfccc.js";
|
|
36
36
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CYx-YMxc.js";
|
|
37
37
|
import "./runtime-parse-l56zRsXX.js";
|
|
38
|
-
import "./launchd-
|
|
39
|
-
import "./service-
|
|
40
|
-
import "./systemd-
|
|
41
|
-
import { _ as installDaemonServiceAndEmit, a as createCliStatusTextStyles, g as buildDaemonServiceSnapshot, i as runServiceUninstall, m as resolveRuntimeStatusColor, o as createDaemonInstallActionContext, r as runServiceStop, s as failIfNixDaemonInstallMode, t as runServiceRestart } from "./lifecycle-core-
|
|
42
|
-
import { c as buildPlatformRuntimeLogHints, l as buildPlatformServiceStartHints, u as formatRuntimeStatus } from "./systemd-hints-
|
|
38
|
+
import "./launchd-D7vxtTg7.js";
|
|
39
|
+
import "./service-LNrViUVb.js";
|
|
40
|
+
import "./systemd-DSK6B3bg.js";
|
|
41
|
+
import { _ as installDaemonServiceAndEmit, a as createCliStatusTextStyles, g as buildDaemonServiceSnapshot, i as runServiceUninstall, m as resolveRuntimeStatusColor, o as createDaemonInstallActionContext, r as runServiceStop, s as failIfNixDaemonInstallMode, t as runServiceRestart } from "./lifecycle-core-CKec6MyM.js";
|
|
42
|
+
import { c as buildPlatformRuntimeLogHints, l as buildPlatformServiceStartHints, u as formatRuntimeStatus } from "./systemd-hints-DsQTPBGt.js";
|
|
43
43
|
import { t as parsePort } from "./parse-port-C_3w9_cU.js";
|
|
44
44
|
import { i as NODE_SYSTEM_RUN_COMMANDS, n as NODE_EXEC_APPROVALS_COMMANDS, t as NODE_BROWSER_PROXY_COMMAND } from "./node-commands-B9YaH_OP.js";
|
|
45
|
-
import { t as resolveNodeService } from "./node-service-
|
|
45
|
+
import { t as resolveNodeService } from "./node-service-D7xRD6Op.js";
|
|
46
46
|
import fs from "node:fs";
|
|
47
47
|
import path from "node:path";
|
|
48
|
-
import
|
|
48
|
+
import fsPromises from "node:fs/promises";
|
|
49
49
|
import { spawn, spawnSync } from "node:child_process";
|
|
50
50
|
import crypto from "node:crypto";
|
|
51
51
|
//#region src/node-host/config.ts
|
|
@@ -68,7 +68,7 @@ function normalizeConfig(config) {
|
|
|
68
68
|
async function loadNodeHostConfig() {
|
|
69
69
|
const filePath = resolveNodeHostConfigPath();
|
|
70
70
|
try {
|
|
71
|
-
const raw = await
|
|
71
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
72
72
|
return normalizeConfig(JSON.parse(raw));
|
|
73
73
|
} catch {
|
|
74
74
|
return null;
|
|
@@ -164,10 +164,10 @@ function collectBrowserProxyPaths(payload) {
|
|
|
164
164
|
return [...paths];
|
|
165
165
|
}
|
|
166
166
|
async function readBrowserProxyFile(filePath) {
|
|
167
|
-
const stat = await
|
|
167
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
168
168
|
if (!stat || !stat.isFile()) return null;
|
|
169
169
|
if (stat.size > BROWSER_PROXY_MAX_FILE_BYTES) throw new Error(`browser proxy file exceeds ${Math.round(BROWSER_PROXY_MAX_FILE_BYTES / (1024 * 1024))}MB`);
|
|
170
|
-
const buffer = await
|
|
170
|
+
const buffer = await fsPromises.readFile(filePath);
|
|
171
171
|
const mimeType = await detectMime({
|
|
172
172
|
buffer,
|
|
173
173
|
filePath
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ol as normalizeDeviceMetadataForPolicy } from "./reply-
|
|
1
|
+
import { ol as normalizeDeviceMetadataForPolicy } from "./reply-gX1XTS9Y.js";
|
|
2
2
|
import { i as NODE_SYSTEM_RUN_COMMANDS, r as NODE_SYSTEM_NOTIFY_COMMAND, t as NODE_BROWSER_PROXY_COMMAND } from "./node-commands-B9YaH_OP.js";
|
|
3
3
|
//#region src/gateway/node-command-policy.ts
|
|
4
4
|
const CANVAS_COMMANDS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as resolveNodeWindowsTaskName, a as NODE_SERVICE_KIND, g as resolveNodeSystemdServiceName, h as resolveNodeLaunchAgentLabel, o as NODE_SERVICE_MARKER, s as NODE_WINDOWS_TASK_SCRIPT_NAME } from "./constants-D-pfuSKJ.js";
|
|
2
|
-
import { n as resolveGatewayService } from "./service-
|
|
2
|
+
import { n as resolveGatewayService } from "./service-LNrViUVb.js";
|
|
3
3
|
//#region src/daemon/node-service.ts
|
|
4
4
|
function withNodeServiceEnv(env) {
|
|
5
5
|
return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./paths-tuenh9TL.js";
|
|
2
2
|
import { A as theme, k as isRich, p as defaultRuntime } from "./subsystem-G54saDcg.js";
|
|
3
3
|
import { S as shortenHomePath, x as shortenHomeInString } from "./utils-B8zCe27d.js";
|
|
4
|
-
import { $a as canvasSnapshotTempPath, Al as normalizeExecSecurity, Bi as parseTimeoutMs, Dl as minSecurity, Fl as resolveExecApprovalsFromFile, Ii as parseScreenRecordPayload, Io as parseNodeList, Jo as buildNodeShellCommand, Li as screenRecordTempPath, Lo as parsePairingList, Ri as writeScreenRecordToFile, Ro as parsePreparedSystemRunPayload, Si as formatTimeAgo, T_ as parseDurationMs, Tl as maxAsk, ao as writeCameraClipPayloadToFile, as as randomIdempotencyKey, d_ as loadConfig, eo as parseCanvasSnapshotPayload, hl as applyPathPrepend, io as writeBase64ToFile, kl as normalizeExecAsk, no as parseCameraClipPayload, oo as writeCameraPayloadToFile, q as formatHelpExamples, ro as parseCameraSnapPayload, to as cameraTempPath, wl as loadExecApprovals, xl as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS, zi as parseEnvPairs } from "./reply-
|
|
5
|
-
import { f as resolveDefaultAgentId, i as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import "./openclaw-root-
|
|
4
|
+
import { $a as canvasSnapshotTempPath, Al as normalizeExecSecurity, Bi as parseTimeoutMs, Dl as minSecurity, Fl as resolveExecApprovalsFromFile, Ii as parseScreenRecordPayload, Io as parseNodeList, Jo as buildNodeShellCommand, Li as screenRecordTempPath, Lo as parsePairingList, Ri as writeScreenRecordToFile, Ro as parsePreparedSystemRunPayload, Si as formatTimeAgo, T_ as parseDurationMs, Tl as maxAsk, ao as writeCameraClipPayloadToFile, as as randomIdempotencyKey, d_ as loadConfig, eo as parseCanvasSnapshotPayload, hl as applyPathPrepend, io as writeBase64ToFile, kl as normalizeExecAsk, no as parseCameraClipPayload, oo as writeCameraPayloadToFile, q as formatHelpExamples, ro as parseCameraSnapPayload, to as cameraTempPath, wl as loadExecApprovals, xl as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS, zi as parseEnvPairs } from "./reply-gX1XTS9Y.js";
|
|
5
|
+
import { f as resolveDefaultAgentId, i as resolveAgentConfig } from "./agent-scope-sd1-3XH0.js";
|
|
6
|
+
import "./openclaw-root-dlCz9toZ.js";
|
|
7
7
|
import "./logger-BohkHL0S.js";
|
|
8
8
|
import "./exec-CNtAq7Md.js";
|
|
9
9
|
import "./github-copilot-token-Ff890Vmh.js";
|
|
@@ -11,16 +11,16 @@ import "./boolean-B938tROv.js";
|
|
|
11
11
|
import "./env-CQxWwTMn.js";
|
|
12
12
|
import "./env-overrides-BYyMsIvB.js";
|
|
13
13
|
import "./registry-aHEgjCIQ.js";
|
|
14
|
-
import "./skills-
|
|
14
|
+
import "./skills-vhlUaliH.js";
|
|
15
15
|
import "./frontmatter-BngyYhS0.js";
|
|
16
|
-
import "./plugins-
|
|
17
|
-
import "./query-expansion-
|
|
16
|
+
import "./plugins-BVbKGpQJ.js";
|
|
17
|
+
import "./query-expansion-AnOnkIqf.js";
|
|
18
18
|
import "./redact-owRpqMhM.js";
|
|
19
|
-
import "./path-alias-guards-
|
|
20
|
-
import "./fetch-
|
|
19
|
+
import "./path-alias-guards-B6owPyQX.js";
|
|
20
|
+
import "./fetch-ggeyBJ4j.js";
|
|
21
21
|
import "./errors-DNKaAVHN.js";
|
|
22
|
-
import "./cmd-argv-
|
|
23
|
-
import "./restart-stale-pids-
|
|
22
|
+
import "./cmd-argv-Dz5qUtqp.js";
|
|
23
|
+
import "./restart-stale-pids-B6E7QavX.js";
|
|
24
24
|
import "./delivery-queue-B7zSt4zY.js";
|
|
25
25
|
import "./paths-CfmKJcO5.js";
|
|
26
26
|
import "./session-cost-usage-C2jrTKxW.js";
|
|
@@ -28,8 +28,8 @@ import "./prompt-style-DlcWUCNR.js";
|
|
|
28
28
|
import { t as formatDocsLink } from "./links-BpKafJs4.js";
|
|
29
29
|
import { n as runCommandWithRuntime } from "./cli-utils-BSURvrmb.js";
|
|
30
30
|
import { n as renderTable, t as getTerminalTableWidth } from "./table-DpnYa9iY.js";
|
|
31
|
-
import { a as resolveNodeId, i as resolveNode, n as callGatewayCli, o as unauthorizedHintForMessage, r as nodesCallOpts, s as formatPermissions, t as buildNodeInvokeParams } from "./rpc-
|
|
32
|
-
import
|
|
31
|
+
import { a as resolveNodeId, i as resolveNode, n as callGatewayCli, o as unauthorizedHintForMessage, r as nodesCallOpts, s as formatPermissions, t as buildNodeInvokeParams } from "./rpc-B2PO3N0W.js";
|
|
32
|
+
import fsPromises from "node:fs/promises";
|
|
33
33
|
//#region src/cli/nodes-cli/cli-utils.ts
|
|
34
34
|
function getNodesTheme() {
|
|
35
35
|
const rich = isRich();
|
|
@@ -376,7 +376,7 @@ function registerNodesCanvasCommands(nodes) {
|
|
|
376
376
|
const hasJsonl = Boolean(opts.jsonl);
|
|
377
377
|
const hasText = typeof opts.text === "string";
|
|
378
378
|
if (hasJsonl === hasText) throw new Error("provide exactly one of --jsonl or --text");
|
|
379
|
-
const jsonl = hasText ? buildA2UITextJsonl(String(opts.text ?? "")) : await
|
|
379
|
+
const jsonl = hasText ? buildA2UITextJsonl(String(opts.text ?? "")) : await fsPromises.readFile(String(opts.jsonl), "utf8");
|
|
380
380
|
const { version, messageCount } = validateA2UIJsonl(jsonl);
|
|
381
381
|
if (version === "v0.9") throw new Error("Detected A2UI v0.9 JSONL (createSurface). OpenClaw currently supports v0.8 only.");
|
|
382
382
|
await invokeCanvas(opts, "canvas.a2ui.pushJSONL", { jsonl });
|