openclaw-cortex 3.2.5 → 3.3.0
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/{accounts-6btx_LVr.js → accounts-B3MIBUxY.js} +14 -14
- package/dist/{accounts-Cg6z7lKw.js → accounts-Doecg-Pe.js} +1 -1
- package/dist/{accounts-BOYxuJ9C.js → accounts-X5YWm9b7.js} +1 -1
- package/dist/{active-listener-BhL5jMd9.js → active-listener-DI-5r3l7.js} +1 -1
- package/dist/{agent-scope-fNLAHxGF.js → agent-scope-Eh54NB14.js} +3 -3
- package/dist/{audio-preflight-DgmMV8p-.js → audio-preflight-BT6BcGi_.js} +4 -4
- package/dist/{audio-preflight-oJZolUYt.js → audio-preflight-TVmfRTgf.js} +30 -30
- package/dist/{bindings-DdWLXM-y.js → bindings-C6TS0yEe.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-LT3oBvO7.js → channel-activity-By7mU0Ld.js} +1 -1
- package/dist/{chrome-DxhUHYxR.js → chrome-CBhKqm1e.js} +7 -7
- package/dist/{chrome-BxjGg3Ji.js → chrome-Dvy8C6LZ.js} +13 -13
- package/dist/{chunk-TRVny4T1.js → chunk-DoTNWpve.js} +1 -1
- package/dist/{command-format-D1Crrvey.js → command-format--87BbJbN.js} +1 -1
- package/dist/{command-registry-CN383dzr.js → command-registry-DRaOk1jG.js} +4 -4
- package/dist/{commands-registry-CASS36zB.js → commands-registry-kwpFg3sO.js} +3 -3
- package/dist/{common-bBB_AQl2.js → common-D2vcaiue.js} +2 -2
- package/dist/{completion-cli-DiUpyj8K.js → completion-cli-CaMCaGeg.js} +1 -1
- package/dist/{completion-cli-DWog-ATG.js → completion-cli-Cq0-yq4r.js} +2 -2
- package/dist/{config-BXrj6C49.js → config-YM0DHrFa.js} +12 -12
- package/dist/control-ui/_app/immutable/assets/0.r_iI4_BJ.css +1 -0
- package/dist/control-ui/_app/immutable/chunks/{CTWxnwAC.js → A8Xp3VCv.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D6TmrqPb.js → B26luS__.js} +4 -4
- package/dist/control-ui/_app/immutable/chunks/{DRMrozhP.js → B2bAh5Q1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{X1MNi0qp.js → B2hZObCg.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{YH-SwxLT.js → B9jIaMGe.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{L9tM3YT2.js → BAw4ath1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{XUyUXXap.js → BGv0vpQT.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C_KVsgu8.js → BSoyQ_R5.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DFN8J1NF.js → BVUk3tWa.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BwY8sfED.js → BeZ-nXK1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/Bh70dShK.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{DA25TLUp.js → BseClIFT.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C1Eymii5.js → BuTRGpGL.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BR-s7H7s.js → C-sMwVJq.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CToOwI3J.js → CA2Fqmpq.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BpdIPI45.js → CF2DLLi1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{HSq6Z-Ri.js → CFmcBGqp.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CjRaiADz.js → CN4OLKrr.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DBlwFnJd.js → CQBY9X6E.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Dp0CT_qn.js → CT8t8-J1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CtgLaeta.js → CcGwJm6c.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CMAgoL0b.js → CgoZPVeh.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{c7C9Q4bC.js → CpgMrl7C.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/D3iU0WXt.js +5 -0
- package/dist/control-ui/_app/immutable/chunks/{CTNPOj0C.js → D5-Leoub.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{qjmh8Sgh.js → DCmPRZMl.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{FrknC80A.js → DDlWCD6s.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Mcnmm_vJ.js → DLh1OHbt.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{f2z7Vhzy.js → DP56tnrP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DvXEWbFO.js → DTaVu539.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BQKxqYwa.js → DUYD8zIj.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DeOOVYCg.js → DXEhjiCw.js} +2 -2
- package/dist/control-ui/_app/immutable/chunks/{DN-9aXEU.js → DYGYDwS0.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Dr9WtqlZ.js → DaqZ8F7d.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DcdYjMti.js → DlgMBTXO.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BhDMmVbO.js → Dox5Ke1c.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CmisPrPB.js → Dp6rzy9s.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{xY7vVkih.js → FLe1BQLx.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BFumT5Y0.js → IZSoudUT.js} +35 -35
- package/dist/control-ui/_app/immutable/chunks/{Dgn5d0KE.js → LV_KoVeT.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CRqxfK8Q.js → PNoU9iVn.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DVR5y4oH.js → UuW2ZfGw.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BwK9WVrR.js → ecD8_m48.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BLM6VoLO.js → gowA3Z9N.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DLqjuVZy.js → j5wpLmOt.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D3i-icoF.js → lwt7gw4R.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/pbkj8eYC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{DREM5LJO.js → ppjADO0n.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DkQuM6_3.js → r2Nt9SxP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{xiH5_-XQ.js → s1JCCdcW.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{XzWkBa-Y.js → sya67AFr.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CGNab0sK.js → wegGCVaW.js} +1 -1
- package/dist/control-ui/_app/immutable/entry/{app.D7kdWIZ9.js → app.Fto7AlG1.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.BisB9g6B.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.D6FVZzqA.js → 0.UVUABpvE.js} +2 -2
- package/dist/control-ui/_app/immutable/nodes/{1.C9c9_PmZ.js → 1.D-BcAijP.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{10.BDapaGMa.js → 10.DCWCeB7T.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{11.DBYtQZHB.js → 11.DhEjys02.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{12.D8XUK_lu.js → 12.DSYRsOVI.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{13.BDfcMPWD.js → 13.eYK8pE6F.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{14.CRNfMLjf.js → 14.BXh21cYH.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{15.CQ6Hk24N.js → 15.BFU0eVY_.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{16.C4l7NDBm.js → 16.DBHG2mB-.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{17.BkTX8oXe.js → 17.CyrSC_X9.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{18.B5ULV77i.js → 18.Bf01kDE6.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/2.-1WNqW3J.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{3.CAwDlZXX.js → 3.DkKyJn61.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{4.UqbCNSjq.js → 4.B2rWu0jt.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{5.fyz3FwUS.js → 5.DFem5Aji.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{6.Dico67qE.js → 6.7jHvlHW1.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{7.CTGW4yVr.js → 7.DrqcqVUQ.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{8.B4g5dpji.js → 8.Cs1y6ZIY.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{9.BzrUr7aI.js → 9.m08xA4oj.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/control-ui/sw.js +4 -78
- package/dist/{deliver-Brnl4HfK.js → deliver-6ybd_3jT.js} +1 -1
- package/dist/{deliver-Cj9AtdCD.js → deliver-CzlDovgN.js} +20 -20
- package/dist/{diagnostic-CoT2YQH4.js → diagnostic-D8zLma7p.js} +1 -1
- package/dist/{doctor-completion-C10-HEge.js → doctor-completion-DucI70Ne.js} +1 -1
- package/dist/{doctor-completion-QnooXNE2.js → doctor-completion-vGK1q4Ye.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-BT4H5SZG.js → frontmatter-D07uaEbx.js} +2 -2
- package/dist/{fs-safe-C_CYPw9r.js → fs-safe-CIZ43-83.js} +1 -1
- package/dist/{gateway-cli-BckfYcm_.js → gateway-cli-CvQSDvm3.js} +2 -2
- package/dist/{gateway-cli-EerfyXJc.js → gateway-cli-DXjkd0k0.js} +2 -2
- package/dist/{gemini-auth-DumDbrQC.js → gemini-auth-Bj7vQfrk.js} +1 -1
- package/dist/{github-copilot-token-BQ98eazZ.js → github-copilot-token-Bu5FPDAY.js} +7 -7
- package/dist/{image-4JNpzCjn.js → image-BccL3ngs.js} +1 -1
- package/dist/{image-BWAaAO2H.js → image-D7-aybgX.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{ir-ibDQZVBL.js → ir-rhivtCTu.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-BgXHvzfc.js → local-roots-Bt7xv1V2.js} +5 -5
- package/dist/{login-DlnaqDqy.js → login-BPfI6TLW.js} +7 -7
- package/dist/{login-qr-CAaBBzm5.js → login-qr-C9i5PuWG.js} +12 -12
- package/dist/{manager-DfEENlRy.js → manager-CuDUtoEb.js} +13 -13
- package/dist/{manifest-registry-Dovhiqzt.js → manifest-registry-CpMEl7vN.js} +19 -19
- package/dist/{markdown-tables-DO9qAEKa.js → markdown-tables-1wSxjPR8.js} +1 -1
- package/dist/{message-channel-BDlvrUZF.js → message-channel-CW_Jr8qx.js} +1 -1
- package/dist/{model-auth-BZOnizY6.js → model-auth-D56n6qom.js} +9 -9
- package/dist/{normalize-C3cb7hCc.js → normalize-O7CagPR-.js} +9 -9
- package/dist/{onboard-B-Y124zt.js → onboard-CNYoHyW0.js} +1 -1
- package/dist/{onboard-C_8S5h5L.js → onboard-m7GmQI89.js} +1 -1
- package/dist/{onboarding-fEEZIbzq.js → onboarding-CjjXl4IO.js} +1 -1
- package/dist/{onboarding-DGH1xg-b.js → onboarding-DB_nNcp7.js} +1 -1
- package/dist/{onboarding.finalize-BDkEi13n.js → onboarding.finalize-C0TCYGuN.js} +3 -3
- package/dist/{onboarding.finalize-DG5b4KjH.js → onboarding.finalize-ChIElmdD.js} +4 -4
- package/dist/{outbound-DlR1v-S7.js → outbound-Y1aXeGg2.js} +7 -7
- package/dist/{outbound-attachment-CjHKg7c1.js → outbound-attachment-Qu3GEH7P.js} +2 -2
- package/dist/{paths-gnW-md4M.js → paths-B4zRLe0K.js} +1 -1
- package/dist/{paths-CyR9Pa1R.js → paths-CkkDESQ2.js} +5 -5
- package/dist/{pi-auth-json-DpaHuKnz.js → pi-auth-json-CDC723lK.js} +8 -8
- package/dist/{pi-embedded-DiF5uNsJ.js → pi-embedded-BSutTOmE.js} +154 -154
- package/dist/{pi-embedded-DCp1o-Q-.js → pi-embedded-BgUNEKQv.js} +16 -16
- package/dist/{pi-embedded-helpers-6DRwyFRK.js → pi-embedded-helpers-BWG1sdJc.js} +52 -52
- package/dist/{pi-embedded-helpers-OUBsvbo7.js → pi-embedded-helpers-Dh6fWzG0.js} +4 -4
- package/dist/{plugins-CJYXNO4s.js → plugins-CLJ0iOl0.js} +1 -1
- package/dist/{program-DadI_6OM.js → program-CVLtKnfR.js} +2 -2
- package/dist/{program-context-Cj0DZ4-w.js → program-context-tjPv_pMM.js} +6 -6
- package/dist/{prompt-select-styled-SU9h5tPd.js → prompt-select-styled-4UgZMl1u.js} +2 -2
- package/dist/{prompt-select-styled-_rVIdUqN.js → prompt-select-styled-lWJwdNOt.js} +2 -2
- package/dist/{pw-ai-ByDR1q8k.js → pw-ai-Bp7tQXP7.js} +1 -1
- package/dist/{pw-ai-BrMJUJAV.js → pw-ai-DvWHo51A.js} +11 -11
- package/dist/{qmd-manager-DTtrEBXO.js → qmd-manager-DLZCCfAl.js} +7 -7
- package/dist/{register.maintenance-lcYGhRfn.js → register.maintenance-Be6mgKHS.js} +5 -5
- package/dist/{register.maintenance-CKkRbcT9.js → register.maintenance-CXdFRu0F.js} +6 -6
- package/dist/{register.onboard-7yDtMX-p.js → register.onboard-DBC7puPE.js} +2 -2
- package/dist/{register.onboard-DWWcPpQm.js → register.onboard-o3lH_CIx.js} +2 -2
- package/dist/{register.setup-DQ2pAYjq.js → register.setup-4Bh1tPhz.js} +2 -2
- package/dist/{register.setup-pmtj5F29.js → register.setup-CdGVt-tp.js} +2 -2
- package/dist/{register.subclis-BjYBzftC.js → register.subclis-Db-mOleG.js} +3 -3
- package/dist/{registry-BmY4gNy6.js → registry-CXBAJGac.js} +17 -17
- package/dist/{replies-CpfV6teD.js → replies-Dst9shzA.js} +3 -3
- package/dist/{reply-prefix-ImxHFIBV.js → reply-prefix-Bi0kA6w2.js} +1 -1
- package/dist/{resolve-route-B6jAofkW.js → resolve-route-BUh-vL4u.js} +4 -4
- package/dist/{retry-BxB_D6Pn.js → retry-BwVcNQB0.js} +1 -1
- package/dist/{run-main-C9QTrYeQ.js → run-main-BNrhYed3.js} +3 -3
- package/dist/{runner-xrbh4KIj.js → runner-C3yJ8DJi.js} +9 -9
- package/dist/{runner-BYhtaPKn.js → runner-j4Bfr_LY.js} +1 -1
- package/dist/{send-e_SdAJeq.js → send-Br3A9kpZ.js} +19 -19
- package/dist/{send-C-XCIJuC.js → send-BzIvr4Z_.js} +6 -6
- package/dist/{send-CiDdpmzA.js → send-CDciUPAf.js} +6 -6
- package/dist/{send-sBat2Hk3.js → send-CJ2zw6gd.js} +7 -7
- package/dist/{send-oQqEPZFE.js → send-CtOVbiqN.js} +10 -10
- package/dist/{session-Br88pwYq.js → session-DaH2NktH.js} +8 -8
- package/dist/{session-dirs-DV_qZ5wI.js → session-dirs-BtvMQvd2.js} +1 -1
- package/dist/{session-dirs-DGhcLUEt.js → session-dirs-Dp66oMuK.js} +1 -1
- package/dist/{skill-commands-L55X--Ff.js → skill-commands-CQlQjOjc.js} +9 -9
- package/dist/{skills-0iSdpmyU.js → skills-CEwsiFJU.js} +21 -21
- package/dist/{sqlite-DJh2xLr6.js → sqlite-BY19hYgD.js} +4 -4
- package/dist/{store-DHkrtQed.js → store-DXYMQMY7.js} +2 -2
- package/dist/{subsystem-B5g771Td.js → subsystem-BFaeHXzD.js} +1 -1
- package/dist/{tables-D5EnkI03.js → tables-CuY2NO6I.js} +1 -1
- package/dist/{thinking-cSNbxycr.js → thinking-BM9OL9gE.js} +5 -5
- package/dist/{tokens-BRx7o_ZS.js → tokens-CC-Nd7t2.js} +1 -1
- package/dist/{tool-loop-detection-BjQsVGUc.js → tool-loop-detection-DDnbw1kC.js} +3 -3
- package/dist/{update-cli-BJkEpOzH.js → update-cli-1QGSqP3Y.js} +7 -7
- package/dist/{update-cli-CijRWAjm.js → update-cli-CmLe-3UM.js} +6 -6
- package/dist/{web-CVGYB15Z.js → web-DN0Lf8sf.js} +57 -57
- package/dist/{web-ZW9Geotk.js → web-y3J71ECd.js} +6 -6
- package/dist/{whatsapp-actions-n2AzHm58.js → whatsapp-actions-Bhzconsy.js} +23 -23
- package/dist/{workspace-B32hQFzW.js → workspace-DRkjyTds.js} +6 -6
- package/package.json +1 -1
- package/dist/control-ui/_app/immutable/assets/0.CIIOt0aD.css +0 -1
- package/dist/control-ui/_app/immutable/chunks/2UnHt_9K.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/B4GbTqhO.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/DM2PI6Ub.js +0 -5
- package/dist/control-ui/_app/immutable/entry/start.BYvWRDfG.js +0 -1
- package/dist/control-ui/_app/immutable/nodes/2.BbOfUph1.js +0 -1
|
@@ -15,7 +15,7 @@ import { t as normalizeChatType } from "./chat-type-DFDuk3FY.js";
|
|
|
15
15
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DvsUXpdt.js";
|
|
16
16
|
import { n as listChannelPlugins, r as normalizeChannelId$1, t as getChannelPlugin } from "./plugins-C2vFjSxX.js";
|
|
17
17
|
import { $ as hasAnyGuildPermissionDiscord, A as addRoleDiscord, B as removeRoleDiscord, C as fetchMessageDiscord, Ct as applyChannelMatchMeta, D as readMessagesDiscord, E as pinMessageDiscord, Et as resolveChannelEntryMatchWithFallback, F as fetchRoleInfoDiscord, G as createChannelDiscord, H as listGuildEmojisDiscord, I as fetchVoiceStatusDiscord, J as moveChannelDiscord, K as deleteChannelDiscord, L as kickMemberDiscord, M as createScheduledEventDiscord, N as fetchChannelInfoDiscord, O as searchMessagesDiscord, P as fetchMemberInfoDiscord, Q as fetchChannelPermissionsDiscord, R as listGuildChannelsDiscord, S as editMessageDiscord, St as fetchDiscord, T as listThreadsDiscord, Tt as normalizeChannelSlug, U as uploadEmojiDiscord, V as timeoutMemberDiscord, W as uploadStickerDiscord, X as setChannelPermissionDiscord, Y as removeChannelPermissionDiscord, Z as stripUndefinedFields, _ as sendPollDiscord, _t as shouldEmitDiscordReactionNotification, a as removeReactionDiscord, at as listDiscordDirectoryPeersLive, b as createThreadDiscord, bt as resolveDiscordSystemLocation, c as formatDiscordComponentEventText, ct as normalizeDiscordAllowList, d as parseDiscordModalCustomId, dt as resolveDiscordChannelConfigWithFallback, et as createDiscordClient, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordGuildEntry, g as sendMessageDiscord, gt as resolveGroupDmAllow, h as resolveDiscordModalEntry, ht as resolveDiscordShouldRequireMention, i as removeOwnReactionsDiscord, it as listDiscordDirectoryGroupsLive, j as banMemberDiscord, k as unpinMessageDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordSlug, m as resolveDiscordComponentEntry, mt as resolveDiscordOwnerAllowFrom, n as fetchReactionsDiscord, nt as parseDiscordTarget, o as sendDiscordComponentMessage, ot as allowListMatches$1, p as readDiscordComponentSpec, pt as resolveDiscordMemberAccessState, q as editChannelDiscord, r as reactMessageDiscord, rt as resolveDiscordChannelId, s as createDiscordFormModal, st as isDiscordGroupAllowedByPolicy, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as resolveDiscordAllowListMatch, v as sendStickerDiscord, vt as formatDiscordReactionEmoji, w as listPinsDiscord, wt as buildChannelKeyCandidates, x as deleteMessageDiscord, xt as resolveTimestampMs, y as sendVoiceMessageDiscord, yt as formatDiscordUserTag, z as listScheduledEventsDiscord } from "./send-Upj0eHCP.js";
|
|
18
|
-
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-
|
|
18
|
+
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-6ybd_3jT.js";
|
|
19
19
|
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-BPqN_C5K.js";
|
|
20
20
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bu3E4Enn.js";
|
|
21
21
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-4VxR4Yrw.js";
|
|
@@ -23,11 +23,11 @@ import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normali
|
|
|
23
23
|
import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, m as imageMimeFromFormat, s as getImageMetadata, u as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./fs-safe-BNEy-_bK.js";
|
|
24
24
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DaNAekda.js";
|
|
25
25
|
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-BxsLQyfw.js";
|
|
26
|
-
import { $ as normalizeSessionDeliveryFields, A as isTransientHttpError, At as getBridgeAuthForPort, B as loadSessionStore, Bt as normalizeToolName, C as isContextOverflowError, Ct as resolveSessionLockMaxHoldFromTimeout, D as isRateLimitAssistantError, Dt as resolveProfile, E as isLikelyContextOverflowError, Et as resolveBrowserConfig, F as resolveSandboxContext, Ft as buildPluginToolGroups, G as updateSessionStore, Gt as buildBootstrapContextFiles, H as recordSessionMetaFromInbound, Ht as stripPluginOnlyAllowlist, I as resolveSandboxRuntimeStatus, It as collectExplicitAllowlist, J as resolveCacheTtlMs$1, Jt as resolveBootstrapTotalMaxChars, K as updateSessionStoreEntry, Kt as ensureSessionHeader, L as extractDeliveryInfo, Lt as expandPolicyWithPluginGroups, M as parseImageSizeError, Mt as resolveBrowserControlAuth, N as sanitizeUserFacingText, Nt as resolveSandboxConfigForAgent, O as isRawApiErrorPayload, Ot as DEFAULT_UPLOAD_DIR, P as ensureSandboxWorkspaceForSession, Pt as applyOwnerOnlyToolPolicy, Q as normalizeDeliveryContext, R as appendAssistantMessageToSessionTranscript, Rt as expandToolGroups, S as isCompactionFailureError, St as acquireSessionWriteLock, T as isFailoverErrorMessage, Tt as registerBrowserRoutes, Ut as compileGlobPatterns, V as readSessionUpdatedAt, Vt as resolveToolProfilePolicy, W as updateLastRoute, Wt as matchesAnyGlobPattern, X as deliveryContextKey, Y as deliveryContextFromSession, Yt as sanitizeGoogleTurnOrdering, Z as mergeDeliveryContext, _ as formatRawAssistantErrorForUi, _t as canonicalizeMainSessionAlias, a as isMessagingToolDuplicateNormalized, at as INPUT_PROVENANCE_KIND_VALUES, b as isBillingAssistantError, bt as deriveSessionMetaPatch, c as extractToolCallsFromAssistant, ct as normalizeInputProvenance, d as isAntigravityClaude, dt as resolveChannelResetConfig, et as normalizeAccountId$4, f as isGoogleModelApi, ft as resolveSessionResetPolicy, g as formatBillingErrorMessage, gt as resolveFreshSessionTotalTokens, h as formatAssistantErrorText, ht as DEFAULT_RESET_TRIGGERS, it as extractToolCallNames, j as parseImageDimensionError, jt as ensureBrowserControlAuth, k as isTimeoutErrorMessage, kt as resolveExistingPathsWithinRoot, l as extractToolResultId, lt as resolveSessionKey, m as classifyFailoverReason, mt as resolveThreadFlag, n as validateGeminiTurns, nt as capArrayByJsonBytes, o as normalizeTextForComparison, ot as applyInputProvenanceToUserMessage, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetType, q as isCacheEnabled, qt as resolveBootstrapMaxChars, r as pickFallbackThinkingLevel, rt as countToolResults, s as sanitizeSessionMessagesImages, st as hasInterSessionUserProvenance, t as validateAnthropicTurns, tt as archiveSessionTranscripts, u as downgradeOpenAIReasoningBlocks, ut as evaluateSessionFreshness, v as getApiErrorPayloadFingerprint, vt as resolveExplicitAgentSessionKey, w as isFailoverAssistantError, wt as createBrowserRouteContext, x as isCloudCodeAssistFormatError, xt as resolveGroupSessionKey, y as isAuthAssistantError, yt as resolveMainSessionKey, zt as mergeAlsoAllowPolicy } from "./pi-embedded-helpers-
|
|
26
|
+
import { $ as normalizeSessionDeliveryFields, A as isTransientHttpError, At as getBridgeAuthForPort, B as loadSessionStore, Bt as normalizeToolName, C as isContextOverflowError, Ct as resolveSessionLockMaxHoldFromTimeout, D as isRateLimitAssistantError, Dt as resolveProfile, E as isLikelyContextOverflowError, Et as resolveBrowserConfig, F as resolveSandboxContext, Ft as buildPluginToolGroups, G as updateSessionStore, Gt as buildBootstrapContextFiles, H as recordSessionMetaFromInbound, Ht as stripPluginOnlyAllowlist, I as resolveSandboxRuntimeStatus, It as collectExplicitAllowlist, J as resolveCacheTtlMs$1, Jt as resolveBootstrapTotalMaxChars, K as updateSessionStoreEntry, Kt as ensureSessionHeader, L as extractDeliveryInfo, Lt as expandPolicyWithPluginGroups, M as parseImageSizeError, Mt as resolveBrowserControlAuth, N as sanitizeUserFacingText, Nt as resolveSandboxConfigForAgent, O as isRawApiErrorPayload, Ot as DEFAULT_UPLOAD_DIR, P as ensureSandboxWorkspaceForSession, Pt as applyOwnerOnlyToolPolicy, Q as normalizeDeliveryContext, R as appendAssistantMessageToSessionTranscript, Rt as expandToolGroups, S as isCompactionFailureError, St as acquireSessionWriteLock, T as isFailoverErrorMessage, Tt as registerBrowserRoutes, Ut as compileGlobPatterns, V as readSessionUpdatedAt, Vt as resolveToolProfilePolicy, W as updateLastRoute, Wt as matchesAnyGlobPattern, X as deliveryContextKey, Y as deliveryContextFromSession, Yt as sanitizeGoogleTurnOrdering, Z as mergeDeliveryContext, _ as formatRawAssistantErrorForUi, _t as canonicalizeMainSessionAlias, a as isMessagingToolDuplicateNormalized, at as INPUT_PROVENANCE_KIND_VALUES, b as isBillingAssistantError, bt as deriveSessionMetaPatch, c as extractToolCallsFromAssistant, ct as normalizeInputProvenance, d as isAntigravityClaude, dt as resolveChannelResetConfig, et as normalizeAccountId$4, f as isGoogleModelApi, ft as resolveSessionResetPolicy, g as formatBillingErrorMessage, gt as resolveFreshSessionTotalTokens, h as formatAssistantErrorText, ht as DEFAULT_RESET_TRIGGERS, it as extractToolCallNames, j as parseImageDimensionError, jt as ensureBrowserControlAuth, k as isTimeoutErrorMessage, kt as resolveExistingPathsWithinRoot, l as extractToolResultId, lt as resolveSessionKey, m as classifyFailoverReason, mt as resolveThreadFlag, n as validateGeminiTurns, nt as capArrayByJsonBytes, o as normalizeTextForComparison, ot as applyInputProvenanceToUserMessage, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetType, q as isCacheEnabled, qt as resolveBootstrapMaxChars, r as pickFallbackThinkingLevel, rt as countToolResults, s as sanitizeSessionMessagesImages, st as hasInterSessionUserProvenance, t as validateAnthropicTurns, tt as archiveSessionTranscripts, u as downgradeOpenAIReasoningBlocks, ut as evaluateSessionFreshness, v as getApiErrorPayloadFingerprint, vt as resolveExplicitAgentSessionKey, w as isFailoverAssistantError, wt as createBrowserRouteContext, x as isCloudCodeAssistFormatError, xt as resolveGroupSessionKey, y as isAuthAssistantError, yt as resolveMainSessionKey, zt as mergeAlsoAllowPolicy } from "./pi-embedded-helpers-Dh6fWzG0.js";
|
|
27
27
|
import { C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as resolveAgentMaxConcurrent, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as VERSION, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-DZybbpxs.js";
|
|
28
28
|
import { c as normalizePluginsConfig, f as isPathInsideWithRealpath, i as safeStatSync, l as resolveEnableState, n as discoverOpenClawPlugins, r as isPathInside, s as applyTestPluginDefaults, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-DmjapxrQ.js";
|
|
29
29
|
import { a as parseAvailableTags, c as readStringArrayParam, h as resolveImageSanitizationLimits, i as jsonResult, l as readStringOrNumberParam, m as sanitizeToolResultImages, n as imageResult, o as readNumberParam, p as sanitizeImageBlocks, r as imageResultFromFile, s as readReactionParams, t as createActionGate, u as readStringParam } from "./common-DqP79TiS.js";
|
|
30
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
30
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-CBhKqm1e.js";
|
|
31
31
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-BJhU2buL.js";
|
|
32
32
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-BxR4oB-s.js";
|
|
33
33
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DH-Ltk62.js";
|
|
@@ -37,7 +37,7 @@ import { n as resolveConversationLabel } from "./conversation-label-BqCuLhlF.js"
|
|
|
37
37
|
import { t as resolveIMessageAccount } from "./accounts-Dh62JQhz.js";
|
|
38
38
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-COn9vdws.js";
|
|
39
39
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-Cj85Mq0h.js";
|
|
40
|
-
import { S as ensureOpenClawModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-
|
|
40
|
+
import { S as ensureOpenClawModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-BccL3ngs.js";
|
|
41
41
|
import { n as resolveMemorySearchConfig } from "./manager-BKOqLHFc.js";
|
|
42
42
|
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-CNpRo6JS.js";
|
|
43
43
|
import { n as retryAsync } from "./retry-CZWUKIdy.js";
|
|
@@ -49,7 +49,7 @@ import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-DGItgw6U.js";
|
|
|
49
49
|
import { a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, i as listChatCommands, l as parseCommandArgs, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices } from "./commands-registry-C4h5lzUe.js";
|
|
50
50
|
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-BI5yKCkL.js";
|
|
51
51
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-C5ohLdkB.js";
|
|
52
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
52
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-j4Bfr_LY.js";
|
|
53
53
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BMa0enEg.js";
|
|
54
54
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-DtXYsHEc.js";
|
|
55
55
|
import { n as normalizePollInput } from "./polls-BloyMqd2.js";
|
|
@@ -79,7 +79,7 @@ import { EdgeTTS } from "node-edge-tts";
|
|
|
79
79
|
import AjvPkg from "ajv";
|
|
80
80
|
import { createServer } from "node:http";
|
|
81
81
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
82
|
-
import WebSocket
|
|
82
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
83
83
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
84
84
|
import { createJiti } from "jiti";
|
|
85
85
|
import { Type } from "@sinclair/typebox";
|
|
@@ -5712,7 +5712,7 @@ var GatewayClient = class {
|
|
|
5712
5712
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
5715
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
5715
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
5716
5716
|
this.ws.on("open", () => {
|
|
5717
5717
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
5718
5718
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -5931,7 +5931,7 @@ var GatewayClient = class {
|
|
|
5931
5931
|
return null;
|
|
5932
5932
|
}
|
|
5933
5933
|
async request(method, params, opts) {
|
|
5934
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
5934
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
5935
5935
|
const id = randomUUID();
|
|
5936
5936
|
const frame = {
|
|
5937
5937
|
type: "req",
|
|
@@ -7195,7 +7195,7 @@ async function routeReply(params) {
|
|
|
7195
7195
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7196
7196
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7197
7197
|
try {
|
|
7198
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7198
|
+
const { deliverOutboundPayloads } = await import("./deliver-6ybd_3jT.js").then((n) => n.n);
|
|
7199
7199
|
return {
|
|
7200
7200
|
ok: true,
|
|
7201
7201
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -39751,7 +39751,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
39751
39751
|
return;
|
|
39752
39752
|
}
|
|
39753
39753
|
try {
|
|
39754
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
39754
|
+
const { deliverOutboundPayloads } = await import("./deliver-6ybd_3jT.js").then((n) => n.n);
|
|
39755
39755
|
await deliverOutboundPayloads({
|
|
39756
39756
|
cfg: params.cfg,
|
|
39757
39757
|
channel,
|
|
@@ -43183,7 +43183,7 @@ async function describeStickerImage(params) {
|
|
|
43183
43183
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
43184
43184
|
try {
|
|
43185
43185
|
const buffer = await fs$1.readFile(imagePath);
|
|
43186
|
-
const { describeImageWithModel } = await import("./image-
|
|
43186
|
+
const { describeImageWithModel } = await import("./image-BccL3ngs.js").then((n) => n.n);
|
|
43187
43187
|
return (await describeImageWithModel({
|
|
43188
43188
|
buffer,
|
|
43189
43189
|
fileName: "sticker.webp",
|
|
@@ -45603,7 +45603,7 @@ async function preflightDiscordMessage(params) {
|
|
|
45603
45603
|
let preflightTranscript;
|
|
45604
45604
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
45605
45605
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
45606
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
45606
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BT6BcGi_.js");
|
|
45607
45607
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
45608
45608
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
45609
45609
|
ctx: {
|
|
@@ -49734,7 +49734,7 @@ function isVoiceChannelType(type) {
|
|
|
49734
49734
|
function createDefaultDeps() {
|
|
49735
49735
|
return {
|
|
49736
49736
|
sendMessageWhatsApp: async (...args) => {
|
|
49737
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
49737
|
+
const { sendMessageWhatsApp } = await import("./web-y3J71ECd.js");
|
|
49738
49738
|
return await sendMessageWhatsApp(...args);
|
|
49739
49739
|
},
|
|
49740
49740
|
sendMessageTelegram: async (...args) => {
|
|
@@ -52630,7 +52630,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
52630
52630
|
super(options);
|
|
52631
52631
|
}
|
|
52632
52632
|
createWebSocket(url) {
|
|
52633
|
-
return new WebSocket
|
|
52633
|
+
return new WebSocket(url, { agent });
|
|
52634
52634
|
}
|
|
52635
52635
|
}
|
|
52636
52636
|
return new ProxyGatewayPlugin();
|
|
@@ -62378,7 +62378,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
62378
62378
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
62379
62379
|
let preflightTranscript;
|
|
62380
62380
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
62381
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
62381
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BT6BcGi_.js");
|
|
62382
62382
|
preflightTranscript = await transcribeFirstAudio({
|
|
62383
62383
|
ctx: {
|
|
62384
62384
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -64556,7 +64556,7 @@ function loadWebLoginQr() {
|
|
|
64556
64556
|
return webLoginQrPromise;
|
|
64557
64557
|
}
|
|
64558
64558
|
function loadWebChannel() {
|
|
64559
|
-
webChannelPromise ??= import("./web-
|
|
64559
|
+
webChannelPromise ??= import("./web-y3J71ECd.js");
|
|
64560
64560
|
return webChannelPromise;
|
|
64561
64561
|
}
|
|
64562
64562
|
function loadWhatsAppActions() {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CkkDESQ2.js";
|
|
2
2
|
import { d as resolveAgentIdFromSessionKey, i as buildAgentMainSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, u as normalizeMainKey } from "./session-key-CgcjHuX_.js";
|
|
3
|
-
import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredOpenClawTmpDir, t as CHANNEL_IDS } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-
|
|
5
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-
|
|
3
|
+
import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredOpenClawTmpDir, t as CHANNEL_IDS } from "./registry-CXBAJGac.js";
|
|
4
|
+
import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-Eh54NB14.js";
|
|
5
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BFaeHXzD.js";
|
|
6
|
+
import { _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-DRkjyTds.js";
|
|
7
7
|
import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
|
|
8
8
|
import { t as parseBooleanValue } from "./boolean-B8-BqKGQ.js";
|
|
9
|
-
import { t as formatCliCommand } from "./command-format
|
|
10
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
11
|
-
import { a as buildImageResizeSideGrid, i as IMAGE_REDUCE_QUALITY_STEPS, n as openFileWithinRoot, s as getImageMetadata, t as SafeOpenError, u as resizeToJpeg } from "./fs-safe-
|
|
12
|
-
import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-
|
|
13
|
-
import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-
|
|
14
|
-
import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-
|
|
15
|
-
import { d as wrapOwnerOnlyToolExecution, f as sanitizeContentBlocksImages } from "./common-
|
|
16
|
-
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
17
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
9
|
+
import { t as formatCliCommand } from "./command-format--87BbJbN.js";
|
|
10
|
+
import { r as normalizeChannelId } from "./plugins-CLJ0iOl0.js";
|
|
11
|
+
import { a as buildImageResizeSideGrid, i as IMAGE_REDUCE_QUALITY_STEPS, n as openFileWithinRoot, s as getImageMetadata, t as SafeOpenError, u as resizeToJpeg } from "./fs-safe-CIZ43-83.js";
|
|
12
|
+
import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-D56n6qom.js";
|
|
13
|
+
import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-CW_Jr8qx.js";
|
|
14
|
+
import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-YM0DHrFa.js";
|
|
15
|
+
import { d as wrapOwnerOnlyToolExecution, f as sanitizeContentBlocksImages } from "./common-D2vcaiue.js";
|
|
16
|
+
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-Dvy8C6LZ.js";
|
|
17
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-CEwsiFJU.js";
|
|
18
18
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-3KjSwJLH.js";
|
|
19
19
|
import { t as SsrFBlockedError } from "./ssrf-B8OrDkCk.js";
|
|
20
|
-
import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-
|
|
21
|
-
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-
|
|
20
|
+
import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-DXYMQMY7.js";
|
|
21
|
+
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-BM9OL9gE.js";
|
|
22
22
|
import { n as resolveConversationLabel } from "./conversation-label-BeLJTciU.js";
|
|
23
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
23
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-B4zRLe0K.js";
|
|
24
24
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-CZ8CG4ht.js";
|
|
25
25
|
import fs from "node:fs/promises";
|
|
26
26
|
import os from "node:os";
|
|
27
27
|
import path, { posix } from "node:path";
|
|
28
|
-
import
|
|
28
|
+
import fsSync, { existsSync, realpathSync } from "node:fs";
|
|
29
29
|
import { spawn } from "node:child_process";
|
|
30
30
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
31
31
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
@@ -919,7 +919,7 @@ function isModuleNotFoundError(err) {
|
|
|
919
919
|
}
|
|
920
920
|
async function loadPwAiModule(mode) {
|
|
921
921
|
try {
|
|
922
|
-
return await import("./pw-ai-
|
|
922
|
+
return await import("./pw-ai-DvWHo51A.js");
|
|
923
923
|
} catch (err) {
|
|
924
924
|
if (mode === "soft") return null;
|
|
925
925
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -2675,11 +2675,11 @@ async function movePathToTrash(targetPath) {
|
|
|
2675
2675
|
return targetPath;
|
|
2676
2676
|
} catch {
|
|
2677
2677
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
2678
|
-
|
|
2678
|
+
fsSync.mkdirSync(trashDir, { recursive: true });
|
|
2679
2679
|
const base = path.basename(targetPath);
|
|
2680
2680
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
2681
|
-
if (
|
|
2682
|
-
|
|
2681
|
+
if (fsSync.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
|
|
2682
|
+
fsSync.renameSync(targetPath, dest);
|
|
2683
2683
|
return dest;
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
@@ -2757,7 +2757,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
2757
2757
|
} catch {}
|
|
2758
2758
|
const userDataDir = resolveOpenClawUserDataDir(name);
|
|
2759
2759
|
const profileDir = path.dirname(userDataDir);
|
|
2760
|
-
if (
|
|
2760
|
+
if (fsSync.existsSync(profileDir)) {
|
|
2761
2761
|
await movePathToTrash(profileDir);
|
|
2762
2762
|
deleted = true;
|
|
2763
2763
|
}
|
|
@@ -3461,13 +3461,13 @@ function createProfileContext(opts, profile) {
|
|
|
3461
3461
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
3462
3462
|
const profileState = getProfileState();
|
|
3463
3463
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3464
|
-
await (await import("./pw-ai-
|
|
3464
|
+
await (await import("./pw-ai-DvWHo51A.js")).closePlaywrightBrowserConnection();
|
|
3465
3465
|
} catch {}
|
|
3466
3466
|
if (profileState.running) await stopRunningBrowser();
|
|
3467
3467
|
try {
|
|
3468
|
-
await (await import("./pw-ai-
|
|
3468
|
+
await (await import("./pw-ai-DvWHo51A.js")).closePlaywrightBrowserConnection();
|
|
3469
3469
|
} catch {}
|
|
3470
|
-
if (!
|
|
3470
|
+
if (!fsSync.existsSync(userDataDir)) return {
|
|
3471
3471
|
moved: false,
|
|
3472
3472
|
from: userDataDir
|
|
3473
3473
|
};
|
|
@@ -3872,7 +3872,7 @@ function releaseAllLocksSync() {
|
|
|
3872
3872
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
3873
3873
|
} catch {}
|
|
3874
3874
|
try {
|
|
3875
|
-
|
|
3875
|
+
fsSync.rmSync(held.lockPath, { force: true });
|
|
3876
3876
|
} catch {}
|
|
3877
3877
|
HELD_LOCKS.delete(sessionFile);
|
|
3878
3878
|
}
|
|
@@ -5579,7 +5579,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
5579
5579
|
}
|
|
5580
5580
|
function archiveFileOnDisk(filePath, reason) {
|
|
5581
5581
|
const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
|
|
5582
|
-
|
|
5582
|
+
fsSync.renameSync(filePath, archived);
|
|
5583
5583
|
return archived;
|
|
5584
5584
|
}
|
|
5585
5585
|
/**
|
|
@@ -5589,7 +5589,7 @@ function archiveFileOnDisk(filePath, reason) {
|
|
|
5589
5589
|
function archiveSessionTranscripts(opts) {
|
|
5590
5590
|
const archived = [];
|
|
5591
5591
|
for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
|
|
5592
|
-
if (!
|
|
5592
|
+
if (!fsSync.existsSync(candidate)) continue;
|
|
5593
5593
|
try {
|
|
5594
5594
|
archived.push(archiveFileOnDisk(candidate, opts.reason));
|
|
5595
5595
|
} catch {}
|
|
@@ -5621,15 +5621,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
5621
5621
|
let removed = 0;
|
|
5622
5622
|
let scanned = 0;
|
|
5623
5623
|
for (const dir of directories) {
|
|
5624
|
-
const entries = await
|
|
5624
|
+
const entries = await fsSync.promises.readdir(dir).catch(() => []);
|
|
5625
5625
|
for (const entry of entries) {
|
|
5626
5626
|
const timestamp = parseArchivedTimestamp(entry, reason);
|
|
5627
5627
|
if (timestamp == null) continue;
|
|
5628
5628
|
scanned += 1;
|
|
5629
5629
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
5630
5630
|
const fullPath = path.join(dir, entry);
|
|
5631
|
-
if (!(await
|
|
5632
|
-
await
|
|
5631
|
+
if (!(await fsSync.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
5632
|
+
await fsSync.promises.rm(fullPath).catch(() => void 0);
|
|
5633
5633
|
removed += 1;
|
|
5634
5634
|
}
|
|
5635
5635
|
}
|
|
@@ -5766,7 +5766,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
function getFileMtimeMs(filePath) {
|
|
5768
5768
|
try {
|
|
5769
|
-
return
|
|
5769
|
+
return fsSync.statSync(filePath).mtimeMs;
|
|
5770
5770
|
} catch {
|
|
5771
5771
|
return;
|
|
5772
5772
|
}
|
|
@@ -5845,7 +5845,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
5845
5845
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
5846
5846
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
5847
5847
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
5848
|
-
const raw =
|
|
5848
|
+
const raw = fsSync.readFileSync(storePath, "utf-8");
|
|
5849
5849
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
5850
5850
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
5851
5851
|
continue;
|
|
@@ -5997,7 +5997,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
5997
5997
|
}
|
|
5998
5998
|
async function getSessionFileSize(storePath) {
|
|
5999
5999
|
try {
|
|
6000
|
-
return (await
|
|
6000
|
+
return (await fsSync.promises.stat(storePath)).size;
|
|
6001
6001
|
} catch {
|
|
6002
6002
|
return null;
|
|
6003
6003
|
}
|
|
@@ -6014,7 +6014,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
6014
6014
|
if (fileSize <= maxBytes) return false;
|
|
6015
6015
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
6016
6016
|
try {
|
|
6017
|
-
await
|
|
6017
|
+
await fsSync.promises.rename(storePath, backupPath);
|
|
6018
6018
|
log.info("rotated session store file", {
|
|
6019
6019
|
backupPath: path.basename(backupPath),
|
|
6020
6020
|
sizeBytes: fileSize
|
|
@@ -6025,11 +6025,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
6025
6025
|
try {
|
|
6026
6026
|
const dir = path.dirname(storePath);
|
|
6027
6027
|
const baseName = path.basename(storePath);
|
|
6028
|
-
const backups = (await
|
|
6028
|
+
const backups = (await fsSync.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
6029
6029
|
const maxBackups = 3;
|
|
6030
6030
|
if (backups.length > maxBackups) {
|
|
6031
6031
|
const toDelete = backups.slice(maxBackups);
|
|
6032
|
-
for (const old of toDelete) await
|
|
6032
|
+
for (const old of toDelete) await fsSync.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
6033
6033
|
log.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
6034
6034
|
}
|
|
6035
6035
|
} catch {}
|
|
@@ -6084,14 +6084,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
6084
6084
|
await rotateSessionFile(storePath, maintenance.rotateBytes);
|
|
6085
6085
|
}
|
|
6086
6086
|
}
|
|
6087
|
-
await
|
|
6087
|
+
await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
6088
6088
|
const json = JSON.stringify(store, null, 2);
|
|
6089
6089
|
if (process.platform === "win32") {
|
|
6090
6090
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
6091
6091
|
try {
|
|
6092
|
-
await
|
|
6092
|
+
await fsSync.promises.writeFile(tmp, json, "utf-8");
|
|
6093
6093
|
for (let i = 0; i < 5; i++) try {
|
|
6094
|
-
await
|
|
6094
|
+
await fsSync.promises.rename(tmp, storePath);
|
|
6095
6095
|
break;
|
|
6096
6096
|
} catch {
|
|
6097
6097
|
if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
|
|
@@ -6101,27 +6101,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
6101
6101
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
|
|
6102
6102
|
throw err;
|
|
6103
6103
|
} finally {
|
|
6104
|
-
await
|
|
6104
|
+
await fsSync.promises.rm(tmp, { force: true }).catch(() => void 0);
|
|
6105
6105
|
}
|
|
6106
6106
|
return;
|
|
6107
6107
|
}
|
|
6108
6108
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
6109
6109
|
try {
|
|
6110
|
-
await
|
|
6110
|
+
await fsSync.promises.writeFile(tmp, json, {
|
|
6111
6111
|
mode: 384,
|
|
6112
6112
|
encoding: "utf-8"
|
|
6113
6113
|
});
|
|
6114
|
-
await
|
|
6115
|
-
await
|
|
6114
|
+
await fsSync.promises.rename(tmp, storePath);
|
|
6115
|
+
await fsSync.promises.chmod(storePath, 384);
|
|
6116
6116
|
} catch (err) {
|
|
6117
6117
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
|
|
6118
6118
|
try {
|
|
6119
|
-
await
|
|
6120
|
-
await
|
|
6119
|
+
await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
6120
|
+
await fsSync.promises.writeFile(storePath, json, {
|
|
6121
6121
|
mode: 384,
|
|
6122
6122
|
encoding: "utf-8"
|
|
6123
6123
|
});
|
|
6124
|
-
await
|
|
6124
|
+
await fsSync.promises.chmod(storePath, 384);
|
|
6125
6125
|
} catch (err2) {
|
|
6126
6126
|
if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
|
|
6127
6127
|
throw err2;
|
|
@@ -6130,7 +6130,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
6130
6130
|
}
|
|
6131
6131
|
throw err;
|
|
6132
6132
|
} finally {
|
|
6133
|
-
await
|
|
6133
|
+
await fsSync.promises.rm(tmp, { force: true });
|
|
6134
6134
|
}
|
|
6135
6135
|
}
|
|
6136
6136
|
async function updateSessionStore(storePath, mutator, opts) {
|
|
@@ -6333,8 +6333,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
6333
6333
|
return trimmed ? trimmed : null;
|
|
6334
6334
|
}
|
|
6335
6335
|
async function ensureSessionHeader(params) {
|
|
6336
|
-
if (
|
|
6337
|
-
await
|
|
6336
|
+
if (fsSync.existsSync(params.sessionFile)) return;
|
|
6337
|
+
await fsSync.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
6338
6338
|
const header = {
|
|
6339
6339
|
type: "session",
|
|
6340
6340
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -6342,7 +6342,7 @@ async function ensureSessionHeader(params) {
|
|
|
6342
6342
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6343
6343
|
cwd: process.cwd()
|
|
6344
6344
|
};
|
|
6345
|
-
await
|
|
6345
|
+
await fsSync.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
6346
6346
|
encoding: "utf-8",
|
|
6347
6347
|
mode: 384
|
|
6348
6348
|
});
|
|
@@ -11,7 +11,7 @@ import { a as buildImageResizeSideGrid, i as IMAGE_REDUCE_QUALITY_STEPS, n as op
|
|
|
11
11
|
import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-BxsLQyfw.js";
|
|
12
12
|
import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-DZybbpxs.js";
|
|
13
13
|
import { d as wrapOwnerOnlyToolExecution, f as sanitizeContentBlocksImages } from "./common-DqP79TiS.js";
|
|
14
|
-
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
14
|
+
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-CBhKqm1e.js";
|
|
15
15
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BJhU2buL.js";
|
|
16
16
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-BxR4oB-s.js";
|
|
17
17
|
import { t as SsrFBlockedError } from "./ssrf-DH-Ltk62.js";
|
|
@@ -917,7 +917,7 @@ function isModuleNotFoundError(err) {
|
|
|
917
917
|
}
|
|
918
918
|
async function loadPwAiModule(mode) {
|
|
919
919
|
try {
|
|
920
|
-
return await import("./pw-ai-
|
|
920
|
+
return await import("./pw-ai-Bp7tQXP7.js");
|
|
921
921
|
} catch (err) {
|
|
922
922
|
if (mode === "soft") return null;
|
|
923
923
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3459,11 +3459,11 @@ function createProfileContext(opts, profile) {
|
|
|
3459
3459
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
3460
3460
|
const profileState = getProfileState();
|
|
3461
3461
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3462
|
-
await (await import("./pw-ai-
|
|
3462
|
+
await (await import("./pw-ai-Bp7tQXP7.js")).closePlaywrightBrowserConnection();
|
|
3463
3463
|
} catch {}
|
|
3464
3464
|
if (profileState.running) await stopRunningBrowser();
|
|
3465
3465
|
try {
|
|
3466
|
-
await (await import("./pw-ai-
|
|
3466
|
+
await (await import("./pw-ai-Bp7tQXP7.js")).closePlaywrightBrowserConnection();
|
|
3467
3467
|
} catch {}
|
|
3468
3468
|
if (!fs.existsSync(userDataDir)) return {
|
|
3469
3469
|
moved: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-
|
|
1
|
+
import { a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-CXBAJGac.js";
|
|
2
2
|
|
|
3
3
|
//#region src/channels/plugins/index.ts
|
|
4
4
|
function listPluginChannels() {
|
|
@@ -100,8 +100,8 @@ import "./pairing-labels-Bb8shgzQ.js";
|
|
|
100
100
|
import "./catalog-2EmOju0o.js";
|
|
101
101
|
import "./plugin-registry-CxazSjNJ.js";
|
|
102
102
|
import { n as resolveCliChannelOptions } from "./channel-options-qFRAScGo.js";
|
|
103
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
104
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
103
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-Db-mOleG.js";
|
|
104
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-DRaOk1jG.js";
|
|
105
105
|
import { r as setProgramContext } from "./program-context-Ds_91dTq.js";
|
|
106
106
|
import { t as forceFreePort } from "./ports-DCcAHTa_.js";
|
|
107
107
|
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-ia2Whe_T.js";
|
|
@@ -51,7 +51,7 @@ const entries = [
|
|
|
51
51
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
52
52
|
hasSubcommands: true,
|
|
53
53
|
register: async (program) => {
|
|
54
|
-
(await import("./gateway-cli-
|
|
54
|
+
(await import("./gateway-cli-DXjkd0k0.js")).registerGatewayCli(program);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
@@ -247,7 +247,7 @@ const entries = [
|
|
|
247
247
|
description: "Update OpenClaw and inspect update channel status",
|
|
248
248
|
hasSubcommands: true,
|
|
249
249
|
register: async (program) => {
|
|
250
|
-
(await import("./update-cli-
|
|
250
|
+
(await import("./update-cli-CmLe-3UM.js")).registerUpdateCli(program);
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
{
|
|
@@ -255,7 +255,7 @@ const entries = [
|
|
|
255
255
|
description: "Generate shell completion script",
|
|
256
256
|
hasSubcommands: false,
|
|
257
257
|
register: async (program) => {
|
|
258
|
-
(await import("./completion-cli-
|
|
258
|
+
(await import("./completion-cli-CaMCaGeg.js").then((n) => n.n)).registerCompletionCli(program);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
];
|
|
@@ -328,7 +328,7 @@ const coreEntries = [
|
|
|
328
328
|
hasSubcommands: false
|
|
329
329
|
}],
|
|
330
330
|
register: async ({ program }) => {
|
|
331
|
-
(await import("./register.setup-
|
|
331
|
+
(await import("./register.setup-4Bh1tPhz.js")).registerSetupCommand(program);
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
{
|
|
@@ -338,7 +338,7 @@ const coreEntries = [
|
|
|
338
338
|
hasSubcommands: false
|
|
339
339
|
}],
|
|
340
340
|
register: async ({ program }) => {
|
|
341
|
-
(await import("./register.onboard-
|
|
341
|
+
(await import("./register.onboard-DBC7puPE.js")).registerOnboardCommand(program);
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
{
|
|
@@ -385,7 +385,7 @@ const coreEntries = [
|
|
|
385
385
|
}
|
|
386
386
|
],
|
|
387
387
|
register: async ({ program }) => {
|
|
388
|
-
(await import("./register.maintenance-
|
|
388
|
+
(await import("./register.maintenance-Be6mgKHS.js")).registerMaintenanceCommands(program);
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
391
|
{
|
|
@@ -37,12 +37,12 @@ import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices }
|
|
|
37
37
|
import { r as healthCommand } from "./health-DYXVGzaD.js";
|
|
38
38
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-Cb0_dn9o.js";
|
|
39
39
|
import { t as resolveDmAllowState } from "./dm-policy-shared-CyddT2Ux.js";
|
|
40
|
-
import { n as runGatewayUpdate, t as resolveAgentSessionDirs } from "./session-dirs-
|
|
40
|
+
import { n as runGatewayUpdate, t as resolveAgentSessionDirs } from "./session-dirs-Dp66oMuK.js";
|
|
41
41
|
import { n as logConfigUpdated } from "./logging-C8-t269D.js";
|
|
42
42
|
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-F5HoXjzU.js";
|
|
43
43
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-CS2529_b.js";
|
|
44
44
|
import { t as formatHealthCheckFailure } from "./health-format-S-b7sQsV.js";
|
|
45
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
45
|
+
import { n as doctorShellCompletion } from "./doctor-completion-vGK1q4Ye.js";
|
|
46
46
|
import fs from "node:fs";
|
|
47
47
|
import os from "node:os";
|
|
48
48
|
import path from "node:path";
|
|
@@ -34,12 +34,12 @@ import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices }
|
|
|
34
34
|
import { r as healthCommand } from "./health-XlshA6p-.js";
|
|
35
35
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-BQTGlfha.js";
|
|
36
36
|
import { t as resolveDmAllowState } from "./dm-policy-shared-C-uhGCo-.js";
|
|
37
|
-
import { n as runGatewayUpdate, t as resolveAgentSessionDirs } from "./session-dirs-
|
|
37
|
+
import { n as runGatewayUpdate, t as resolveAgentSessionDirs } from "./session-dirs-BtvMQvd2.js";
|
|
38
38
|
import { n as logConfigUpdated } from "./logging-D59-dc0L.js";
|
|
39
39
|
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-CD2kzlEi.js";
|
|
40
40
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-Doc2XbHm.js";
|
|
41
41
|
import { t as formatHealthCheckFailure } from "./health-format-azWJfp5e.js";
|
|
42
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
42
|
+
import { n as doctorShellCompletion } from "./doctor-completion-DucI70Ne.js";
|
|
43
43
|
import { execFile } from "node:child_process";
|
|
44
44
|
import os from "node:os";
|
|
45
45
|
import path from "node:path";
|
|
@@ -7,7 +7,7 @@ import "./github-copilot-token-ttqQRqMA.js";
|
|
|
7
7
|
import { r as formatCliCommand } from "./env-DgmT4mUn.js";
|
|
8
8
|
import "./config-DZybbpxs.js";
|
|
9
9
|
import "./manifest-registry-DmjapxrQ.js";
|
|
10
|
-
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-
|
|
10
|
+
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-CBhKqm1e.js";
|
|
11
11
|
import "./redact-DAKoy-tb.js";
|
|
12
12
|
import { n as formatErrorMessage } from "./errors-BxR4oB-s.js";
|
|
13
13
|
import "./ssrf-DH-Ltk62.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { dt as resolvePreferredOpenClawTmpDir } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
1
|
+
import "./paths-CkkDESQ2.js";
|
|
2
|
+
import { dt as resolvePreferredOpenClawTmpDir } from "./registry-CXBAJGac.js";
|
|
3
|
+
import "./agent-scope-Eh54NB14.js";
|
|
4
|
+
import "./subsystem-BFaeHXzD.js";
|
|
5
|
+
import "./workspace-DRkjyTds.js";
|
|
6
6
|
import "./boolean-B8-BqKGQ.js";
|
|
7
|
-
import { t as formatCliCommand } from "./command-format
|
|
8
|
-
import "./model-auth-
|
|
9
|
-
import "./github-copilot-token-
|
|
10
|
-
import "./config-
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-
|
|
7
|
+
import { t as formatCliCommand } from "./command-format--87BbJbN.js";
|
|
8
|
+
import "./model-auth-D56n6qom.js";
|
|
9
|
+
import "./github-copilot-token-Bu5FPDAY.js";
|
|
10
|
+
import "./config-YM0DHrFa.js";
|
|
11
|
+
import "./manifest-registry-CpMEl7vN.js";
|
|
12
|
+
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-Dvy8C6LZ.js";
|
|
13
13
|
import "./redact-BBbIZgau.js";
|
|
14
14
|
import { n as formatErrorMessage } from "./errors-3KjSwJLH.js";
|
|
15
15
|
import "./ssrf-B8OrDkCk.js";
|