@wujie-shell/core 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/bin/wujie-shell.mjs +1 -1
- package/dist/src/agents/bundled-agent-skills.mjs +1 -1
- package/dist/src/agents/bundled-agents.mjs +1 -1
- package/dist/src/agents/runtime-config.mjs +1 -1
- package/dist/src/chat/media-archive.mjs +1 -1
- package/dist/src/chat/queue.mjs +1 -1
- package/dist/src/common/cron-session-key.mjs +1 -0
- package/dist/src/common/diagnostics.mjs +1 -1
- package/dist/src/common/logging.mjs +1 -1
- package/dist/src/common/runtime-logger.mjs +1 -1
- package/dist/src/common/sqlite-paths.mjs +1 -0
- package/dist/src/common/user-events.mjs +1 -1
- package/dist/src/common/utils.mjs +1 -1
- package/dist/src/config/controller.mjs +1 -1
- package/dist/src/connectors/config-utils.mjs +1 -1
- package/dist/src/connectors/constants.mjs +1 -1
- package/dist/src/connectors/controller.mjs +1 -1
- package/dist/src/connectors/kdocs-cli.mjs +1 -1
- package/dist/src/connectors/lark-cli.mjs +1 -1
- package/dist/src/electron/main.mjs +1 -1
- package/dist/src/electron/preload.mjs +1 -1
- package/dist/src/electron/protocol-url-state.mjs +1 -0
- package/dist/src/events/domain-event-journal.mjs +1 -0
- package/dist/src/files/generated-files-store.mjs +1 -1
- package/dist/src/files/handlers.mjs +1 -1
- package/dist/src/gateway/chat-delta.mjs +1 -1
- package/dist/src/gateway/controller.mjs +1 -1
- package/dist/src/gateway/request-id-title-events.mjs +1 -0
- package/dist/src/gateway/ws-client.mjs +1 -1
- package/dist/src/index.mjs +1 -1
- package/dist/src/log-reporting/handlers.mjs +1 -1
- package/dist/src/log-reporting/report-logs.mjs +1 -1
- package/dist/src/models/handlers.mjs +1 -1
- package/dist/src/preferences/store.mjs +1 -1
- package/dist/src/request-id/handlers.mjs +1 -0
- package/dist/src/request-id/runtime-bridge.mjs +1 -0
- package/dist/src/request-id/session-store.mjs +1 -0
- package/dist/src/request-id/title.mjs +1 -0
- package/dist/src/runtime/cron-missed-run-policy.mjs +1 -0
- package/dist/src/runtime/index.mjs +1 -1
- package/dist/src/runtime/patch-channel-plugin-runtime.mjs +1 -1
- package/dist/src/runtime/patch-chat-history-mixed-tool-content.mjs +1 -1
- package/dist/src/runtime/patch-provider-request-id-header.mjs +1 -1
- package/dist/src/runtime/patch-qqbot-outbound-session-route.mjs +1 -0
- package/dist/src/runtime/patch-request-id-title-runtime.mjs +1 -0
- package/dist/src/runtime/patch-session-store-sqlite.mjs +1 -1
- package/dist/src/runtime/patch-weixin-outbound-session-route.mjs +1 -0
- package/dist/src/runtime/plugin-sync.mjs +1 -1
- package/dist/src/sessions/agent-sessions-map-store.mjs +1 -1
- package/dist/src/sessions/runtime-bridge.mjs +1 -1
- package/dist/src/sessions/session-data-service.mjs +1 -1
- package/dist/src/sessions/session-runtime-state-service.mjs +1 -0
- package/dist/src/sessions/session-runtime-state.mjs +1 -0
- package/dist/src/sessions/session-sqlite-store.mjs +1 -1
- package/dist/src/sessions/sql/001_init.sql +2 -1
- package/dist/src/sessions/sql/004_request_id_titles.sql +15 -0
- package/dist/src/sessions/sql/005_session_subagents.sql +31 -0
- package/dist/src/sessions/sql/006_session_process_snapshot.sql +24 -0
- package/dist/src/sessions/sql/schema.md +53 -3
- package/dist/src/skills/import.mjs +1 -1
- package/dist/src/skills/market.mjs +1 -1
- package/dist/src/terminal/manager.mjs +1 -1
- package/dist/src/updates/controller.mjs +1 -1
- package/dist/src/updates/loader.mjs +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x338c95=_0x5fdc;function _0x5fdc(_0x3ece64,_0x1c48e0){_0x3ece64=_0x3ece64-0x1cb;const _0x28b528=_0x28b5();let _0x5fdc8e=_0x28b528[_0x3ece64];return _0x5fdc8e;}function _0x28b5(){const _0x10aada=['equest-i','trim','ToRecord','model?.i','console.','sponse\x20}','.complet','12680hhgYlz','=\x20respon','(model,\x20','168rjULuE','questId\x20','ll,','chat.com','d\x20??\x20nul','.signal)','estId)\x20o','rovider-','ions(mod','106494nzUEHi','wait\x20cli','nRespons','await\x20op','},\x20model','buildOpe','questId;','if\x20(requ','length','\x20client.','rs.get(\x22','});','d\x22]\x20=\x20re','thRespon','1540700zXEHxP','ons?.sig','52315YUUJZL','3135027CjrsVf','split','id]\x20resp','27uazvcc','push','el,\x20opti','includes','headers:','sponseSt','request-','params,\x20','patched','r:\x20model','join','e.header','\x09provide','not-foun','\x09status:','utput[\x22r','nAISdkRe','se();','\x20=\x20await','already-','dkReques','const\x20re','oolean(r','tions?.o','(respons','estId:\x20B','ms,\x20buil','se.heade','ate(para','data:\x20re','der\x22,\x20{','nal)).wi','id\x22);','\x09hasRequ','ream\x20=\x20a','481666ZEpetM','8yZSMMg','3025508veWZMe','test','match'];_0x28b5=function(){return _0x10aada;};return _0x28b5();}(function(_0xa52502,_0x2f7f30){const _0x2f2bd5=_0x5fdc,_0x1bb56b=_0xa52502();while(!![]){try{const _0x4a37fa=parseInt(_0x2f2bd5(0x1e3))/0x1+-parseInt(_0x2f2bd5(0x1e4))/0x2*(-parseInt(_0x2f2bd5(0x1fb))/0x3)+-parseInt(_0x2f2bd5(0x1e5))/0x4+-parseInt(_0x2f2bd5(0x20b))/0x5*(-parseInt(_0x2f2bd5(0x1f2))/0x6)+parseInt(_0x2f2bd5(0x20c))/0x7+parseInt(_0x2f2bd5(0x1ef))/0x8*(-parseInt(_0x2f2bd5(0x20f))/0x9)+-parseInt(_0x2f2bd5(0x209))/0xa;if(_0x4a37fa===_0x2f7f30)break;else _0x1bb56b['push'](_0x1bb56b['shift']());}catch(_0x4ab36d){_0x1bb56b['push'](_0x1bb56b['shift']());}}}(_0x28b5,0x6db01));const REQUEST_ID_HEADER_PATCH_MARKER=_0x338c95(0x1d5)+'questId\x20'+_0x338c95(0x1f0)+_0x338c95(0x1db)+_0x338c95(0x205)+_0x338c95(0x215)+_0x338c95(0x1e0),OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE=_0x338c95(0x1d5)+_0x338c95(0x214)+_0x338c95(0x1e2)+_0x338c95(0x1fc)+'ent.chat'+_0x338c95(0x1ee)+'ions.cre'+_0x338c95(0x1dc)+_0x338c95(0x1da)+'dOpenAIS'+_0x338c95(0x1d4)+'tOptions'+_0x338c95(0x1f1)+'options?'+_0x338c95(0x1f7)+');',OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER='const\x20{\x20'+_0x338c95(0x1dd)+_0x338c95(0x214)+'ream,\x20re'+_0x338c95(0x1ed)+_0x338c95(0x1d2)+_0x338c95(0x204)+_0x338c95(0x1f5)+'pletions'+'.create('+_0x338c95(0x216)+_0x338c95(0x200)+_0x338c95(0x1d0)+'questOpt'+_0x338c95(0x1fa)+_0x338c95(0x211)+_0x338c95(0x20a)+_0x338c95(0x1df)+_0x338c95(0x208)+_0x338c95(0x1d1);export function patchProviderRequestIdHeaderFromSource(_0x237acc){const _0x5a4f8e=_0x338c95,_0x1dacd6=_0x237acc[_0x5a4f8e(0x20d)]('\x0a'),_0xaf77d5=[];let _0x83d586=![],_0x5a6c79=_0x237acc['includes'](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER),_0x18a089=/if \(requestId\) output\["request-id"\] = requestId;\s*await options\?\.onResponse\?\.\(\{/[_0x5a4f8e(0x1e6)](_0x237acc);for(let _0xe0081e=0x0;_0xe0081e<_0x1dacd6[_0x5a4f8e(0x203)];_0xe0081e+=0x1){const _0x4c72cf=_0x1dacd6[_0xe0081e];if(!_0x5a6c79&&_0x4c72cf[_0x5a4f8e(0x212)](OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE)){const _0xd09559=_0x4c72cf[_0x5a4f8e(0x1e7)](/^\s*/)?.[0x0]??'';_0xaf77d5['push'](''+_0xd09559+OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER,_0xd09559+('const\x20re'+_0x5a4f8e(0x1f3)+'=\x20respon'+_0x5a4f8e(0x1db)+_0x5a4f8e(0x205)+_0x5a4f8e(0x215)+_0x5a4f8e(0x1e0)),_0xd09559+(_0x5a4f8e(0x1ec)+'info(\x22[p'+_0x5a4f8e(0x1f9)+_0x5a4f8e(0x215)+_0x5a4f8e(0x20e)+'onse\x20hea'+_0x5a4f8e(0x1de)),_0xd09559+(_0x5a4f8e(0x1cc)+_0x5a4f8e(0x218)+'?.provid'+'er\x20??\x20nu'+_0x5a4f8e(0x1f4)),_0xd09559+('\x09model:\x20'+_0x5a4f8e(0x1eb)+_0x5a4f8e(0x1f6)+'l,'),_0xd09559+(_0x5a4f8e(0x1ce)+'\x20respons'+'e.status'+','),_0xd09559+(_0x5a4f8e(0x1e1)+_0x5a4f8e(0x1d9)+_0x5a4f8e(0x1d6)+'equestId'+'),'),_0xd09559+_0x5a4f8e(0x206),_0xd09559+(_0x5a4f8e(0x202)+_0x5a4f8e(0x1f8)+_0x5a4f8e(0x1cf)+'equest-i'+_0x5a4f8e(0x207)+_0x5a4f8e(0x201))),_0x83d586=!![],_0x5a6c79=!![];continue;}if(_0x18a089||!_0x4c72cf[_0x5a4f8e(0x212)](_0x5a4f8e(0x1fe)+_0x5a4f8e(0x1d7)+_0x5a4f8e(0x1fd)+'e?.({')){_0xaf77d5[_0x5a4f8e(0x210)](_0x4c72cf);continue;}let _0x389ac4=_0xe0081e;while(_0x389ac4<_0x1dacd6[_0x5a4f8e(0x203)]&&_0x389ac4-_0xe0081e<0x8&&_0x1dacd6[_0x389ac4][_0x5a4f8e(0x1e9)]()!==_0x5a4f8e(0x1ff)+');'){_0x389ac4+=0x1;}const _0x432069=_0x1dacd6['slice'](_0xe0081e,_0x389ac4+0x1)[_0x5a4f8e(0x219)]('\x0a');if(!_0x432069[_0x5a4f8e(0x212)](_0x5a4f8e(0x213)+'\x20headers'+_0x5a4f8e(0x1ea)+_0x5a4f8e(0x1d8)+_0x5a4f8e(0x1cb)+'s)')){_0xaf77d5[_0x5a4f8e(0x210)](_0x4c72cf);continue;}const _0x3e1aea=_0x4c72cf[_0x5a4f8e(0x1e7)](/^\s*/)?.[0x0]??'';_0xaf77d5[_0x5a4f8e(0x210)](_0x3e1aea+(_0x5a4f8e(0x1d5)+'questId\x20'+'=\x20respon'+_0x5a4f8e(0x1db)+_0x5a4f8e(0x205)+'request-'+_0x5a4f8e(0x1e0)),_0x3e1aea+(_0x5a4f8e(0x202)+'estId)\x20o'+_0x5a4f8e(0x1cf)+_0x5a4f8e(0x1e8)+_0x5a4f8e(0x207)+_0x5a4f8e(0x201))),_0x83d586=!![],_0x18a089=!![],_0xaf77d5[_0x5a4f8e(0x210)](_0x4c72cf);}if(!_0x83d586)return{'patched':![],'reason':_0x237acc[_0x5a4f8e(0x212)](REQUEST_ID_HEADER_PATCH_MARKER)||_0x237acc[_0x5a4f8e(0x212)](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER)?_0x5a4f8e(0x1d3)+_0x5a4f8e(0x217):_0x5a4f8e(0x1cd)+'d'};return{'patched':!![],'source':_0xaf77d5[_0x5a4f8e(0x219)]('\x0a')};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3fb248,_0x270d9a){const _0x1a604c=_0x109b,_0x4fb7a5=_0x3fb248();while(!![]){try{const _0x2ba5e6=-parseInt(_0x1a604c(0x165))/0x1+-parseInt(_0x1a604c(0x135))/0x2+parseInt(_0x1a604c(0x18c))/0x3+parseInt(_0x1a604c(0x2cc))/0x4*(-parseInt(_0x1a604c(0x294))/0x5)+-parseInt(_0x1a604c(0x24a))/0x6*(parseInt(_0x1a604c(0x1c6))/0x7)+-parseInt(_0x1a604c(0x27d))/0x8+-parseInt(_0x1a604c(0x289))/0x9*(-parseInt(_0x1a604c(0x1bc))/0xa);if(_0x2ba5e6===_0x270d9a)break;else _0x4fb7a5['push'](_0x4fb7a5['shift']());}catch(_0xf27f11){_0x4fb7a5['push'](_0x4fb7a5['shift']());}}}(_0x5614,0x5d1b0));function _0x109b(_0x1931e0,_0x3702b5){_0x1931e0=_0x1931e0-0x134;const _0x561473=_0x5614();let _0x109bce=_0x561473[_0x1931e0];return _0x109bce;}export function patchQQBotOutboundSessionRouteFromSource(_0x5e9f7c){const _0x2b3d5b=_0x109b;if(_0x5e9f7c[_0x2b3d5b(0x259)](_0x2b3d5b(0x16e)+_0x2b3d5b(0x2d8)+_0x2b3d5b(0x242)+_0x2b3d5b(0x137)+'Route'))return{'patched':![],'reason':_0x2b3d5b(0x232)+_0x2b3d5b(0x20a)};const _0x568e06=_0x2b3d5b(0x1ee)+_0x2b3d5b(0x247)+'n\x20=\x20{';if(!_0x5e9f7c['includes'](_0x568e06))return{'patched':![],'reason':_0x2b3d5b(0x17c)+'nchor-no'+'t-found'};const _0x1018e9=_0x2b3d5b(0x1cc)+'ng:\x20{\x0a\x09\x09'+_0x2b3d5b(0x1c4)+_0x2b3d5b(0x263)+'[\x22qqbot\x22'+_0x2b3d5b(0x15a)+_0x2b3d5b(0x1e8)+'ze\x20commo'+_0x2b3d5b(0x214)+_0x2b3d5b(0x206)+_0x2b3d5b(0x228)+'into\x20the'+_0x2b3d5b(0x1ca)+_0x2b3d5b(0x2aa)+_0x2b3d5b(0x23c)+_0x2b3d5b(0x19f)+_0x2b3d5b(0x260)+_0x2b3d5b(0x2c7)+'\x0a\x09\x09targe'+'tResolve'+'r:\x20{\x0a\x09\x09\x09'+_0x2b3d5b(0x164)+'rn\x20true\x20'+_0x2b3d5b(0x2e6)+_0x2b3d5b(0x2d4)+'s\x20like\x20a'+_0x2b3d5b(0x158)+_0x2b3d5b(0x211)+_0x2b3d5b(0x296)+_0x2b3d5b(0x2c3)+_0x2b3d5b(0x25f)+_0x2b3d5b(0x278)+_0x2b3d5b(0x288)+_0x2b3d5b(0x267)+':\x20\x22QQ\x20Bo'+_0x2b3d5b(0x1c5)+_0x2b3d5b(0x207)+'\x20qqbot:c'+_0x2b3d5b(0x197)+_0x2b3d5b(0x193)+_0x2b3d5b(0x1fb)+_0x2b3d5b(0x2b4)+'p:groupi'+_0x2b3d5b(0x1af)+')\x22\x0a\x09\x09}\x0a\x09'+'},';if(!_0x5e9f7c[_0x2b3d5b(0x259)](_0x1018e9))return{'patched':![],'reason':_0x2b3d5b(0x17e)+'g-shape-'+_0x2b3d5b(0x257)+'d'};const _0x1b5894=qqBotPluginRouteHelperSource()+'\x0a'+_0x568e06,_0x1aa690=_0x2b3d5b(0x1cc)+'ng:\x20{\x0a\x09\x09'+_0x2b3d5b(0x1c4)+_0x2b3d5b(0x263)+_0x2b3d5b(0x24d)+_0x2b3d5b(0x15a)+_0x2b3d5b(0x1e8)+'ze\x20commo'+_0x2b3d5b(0x214)+_0x2b3d5b(0x206)+_0x2b3d5b(0x228)+_0x2b3d5b(0x16c)+_0x2b3d5b(0x1ca)+_0x2b3d5b(0x2aa)+_0x2b3d5b(0x23c)+_0x2b3d5b(0x19f)+_0x2b3d5b(0x260)+_0x2b3d5b(0x2c7)+_0x2b3d5b(0x2d5)+'TargetCh'+_0x2b3d5b(0x2ba)+_0x2b3d5b(0x1f5)+'\x20=>\x20wuji'+_0x2b3d5b(0x255)+_0x2b3d5b(0x142)+'teTarget'+_0x2b3d5b(0x2b3)+_0x2b3d5b(0x150)+_0x2b3d5b(0x15d)+_0x2b3d5b(0x2d0)+_0x2b3d5b(0x137)+'Route:\x20w'+_0x2b3d5b(0x22a)+_0x2b3d5b(0x270)+_0x2b3d5b(0x18a)+_0x2b3d5b(0x21e)+_0x2b3d5b(0x275)+_0x2b3d5b(0x2f4)+_0x2b3d5b(0x13e)+_0x2b3d5b(0x2a3)+_0x2b3d5b(0x190)+_0x2b3d5b(0x23f)+_0x2b3d5b(0x1ff)+'\x20looks\x20l'+_0x2b3d5b(0x22e)+_0x2b3d5b(0x28b)+_0x2b3d5b(0x1d9)+'\x09\x09\x09looks'+_0x2b3d5b(0x24b)+_0x2b3d5b(0x1cd)+'eQQBotTa'+_0x2b3d5b(0x266)+_0x2b3d5b(0x1e6)+_0x2b3d5b(0x1cf)+_0x2b3d5b(0x179)+_0x2b3d5b(0x2cf)+_0x2b3d5b(0x22c)+_0x2b3d5b(0x229)+'direct)\x20'+_0x2b3d5b(0x291)+_0x2b3d5b(0x184)+'roupid\x20('+'group)\x22\x0a'+_0x2b3d5b(0x226);return{'patched':!![],'source':_0x5e9f7c['replace'](_0x568e06,_0x1b5894)[_0x2b3d5b(0x194)](_0x1018e9,_0x1aa690)};}export function patchQQBotOutboundFallbackFromSource(_0x439908){const _0xa39c4e=_0x109b;if(_0x439908[_0xa39c4e(0x259)](_0xa39c4e(0x16e)+_0xa39c4e(0x2d8)+_0xa39c4e(0x1a1)+'allbackS'+_0xa39c4e(0x18f))){if(!_0x439908['includes'](_0xa39c4e(0x2e2)+_0xa39c4e(0x202)+'direct|d'+'m|c2c):/'+'i'))return upgradeExistingQQBotOutboundFallbackPatch(_0x439908);return{'patched':![],'reason':_0xa39c4e(0x232)+_0xa39c4e(0x20a)};}const _0x2283b9='function'+_0xa39c4e(0x290)+_0xa39c4e(0x15c)+'Session('+_0xa39c4e(0x2e4)+'{';if(!_0x439908[_0xa39c4e(0x259)](_0x2283b9))return{'patched':![],'reason':_0xa39c4e(0x1bd)+'-functio'+_0xa39c4e(0x17f)+_0xa39c4e(0x279)};const _0x4ab7f4=_0xa39c4e(0x19e)+_0xa39c4e(0x1c2)+_0xa39c4e(0x146)+_0xa39c4e(0x285)+'efix(par'+_0xa39c4e(0x2dd)+_0xa39c4e(0x156)+'ms.chann'+_0xa39c4e(0x136)+_0xa39c4e(0x1a4)+'(!trimme'+_0xa39c4e(0x2b7)+_0xa39c4e(0x1b3);if(!_0x439908[_0xa39c4e(0x259)](_0x4ab7f4))return{'patched':![],'reason':_0xa39c4e(0x1bd)+_0xa39c4e(0x157)+_0xa39c4e(0x281)};const _0x42b798=qqBotCoreFallbackHelperSource()+'\x0a'+_0x2283b9,_0x34bc0f=_0x4ab7f4+(_0xa39c4e(0x1a2)+_0xa39c4e(0x166)+_0xa39c4e(0x2ad)+_0xa39c4e(0x1fd)+_0xa39c4e(0x1d6)+_0xa39c4e(0x233)+_0xa39c4e(0x1fe)+_0xa39c4e(0x256)+_0xa39c4e(0x1db)+'(params)'+_0xa39c4e(0x2af)+_0xa39c4e(0x2d9)+_0xa39c4e(0x1d2)+'ession)\x20'+_0xa39c4e(0x252)+_0xa39c4e(0x2d9)+'tDirectS'+'ession;');return{'patched':!![],'source':_0x439908[_0xa39c4e(0x194)](_0x2283b9,_0x42b798)[_0xa39c4e(0x194)](_0x4ab7f4,_0x34bc0f)};}function qqBotPluginRouteHelperSource(){const _0x211cf3=_0x109b;return'function'+_0x211cf3(0x2f3)+'rmalizeQ'+_0x211cf3(0x1c9)+_0x211cf3(0x170)+_0x211cf3(0x2ec)+_0x211cf3(0x2db)+_0x211cf3(0x180)+_0x211cf3(0x274)+_0x211cf3(0x153)+'m();\x0a\x09co'+_0x211cf3(0x21d)+'outProvi'+'der\x20=\x20ra'+_0x211cf3(0x17d)+'rCase().'+_0x211cf3(0x240)+'th(\x22qqbo'+_0x211cf3(0x1e5)+_0x211cf3(0x1ad)+'(\x22qqbot:'+_0x211cf3(0x178)+_0x211cf3(0x2df)+_0x211cf3(0x1d1)+_0x211cf3(0x1aa)+_0x211cf3(0x1e0)+_0x211cf3(0x19d)+_0x211cf3(0x2e2)+_0x211cf3(0x2a6)+'\x22\x22).trim'+_0x211cf3(0x254)+'nction\x20w'+_0x211cf3(0x22a)+_0x211cf3(0x270)+_0x211cf3(0x14d)+_0x211cf3(0x27e)+_0x211cf3(0x1fa)+_0x211cf3(0x29f)+_0x211cf3(0x2bf)+_0x211cf3(0x2f3)+_0x211cf3(0x2eb)+_0x211cf3(0x1c9)+_0x211cf3(0x170)+');\x0a\x09if\x20('+_0x211cf3(0x25c)+_0x211cf3(0x177)+_0x211cf3(0x24e)+_0x211cf3(0x1a6)+_0x211cf3(0x224)+_0x211cf3(0x2b9)+_0x211cf3(0x24f)+_0x211cf3(0x2a0)+');\x0a\x09if\x20('+_0x211cf3(0x1df)+_0x211cf3(0x191)+_0x211cf3(0x15b)+_0x211cf3(0x216)+_0x211cf3(0x27a)+'tsWith(\x22'+'room:\x22))'+'\x20{\x0a\x09\x09con'+_0x211cf3(0x143)+_0x211cf3(0x260)+_0x211cf3(0x265)+_0x211cf3(0x26b)+_0x211cf3(0x2d1)+_0x211cf3(0x1c3)+_0x211cf3(0x2df)+';\x0a\x09\x09retu'+_0x211cf3(0x253)+_0x211cf3(0x174)+_0x211cf3(0x26a)+_0x211cf3(0x287)+_0x211cf3(0x192)+_0x211cf3(0x21f)+_0x211cf3(0x169)+_0x211cf3(0x2ed)+'ull;\x0a\x09}\x0a'+_0x211cf3(0x13f)+_0x211cf3(0x2b0)+_0x211cf3(0x147)+'hannel:\x22'+_0x211cf3(0x1f0)+'er.start'+'sWith(\x22c'+_0x211cf3(0x21a)+_0x211cf3(0x210)+_0x211cf3(0x2da)+'startsWi'+_0x211cf3(0x246)+'ad:\x22))\x20{'+_0x211cf3(0x1b8)+_0x211cf3(0x1b6)+_0x211cf3(0x14b)+_0x211cf3(0x1f2)+_0x211cf3(0x2a5)+_0x211cf3(0x2e7)+_0x211cf3(0x1bb)+'|thread)'+_0x211cf3(0x276)+'.trim();'+_0x211cf3(0x26c)+'n\x20id\x20?\x20{'+_0x211cf3(0x1de)+_0x211cf3(0x1e9)+_0x211cf3(0x27b)+_0x211cf3(0x28e)+'\x22channel'+_0x211cf3(0x185)+_0x211cf3(0x1ed)+':\x20null;\x0a'+_0x211cf3(0x251)+_0x211cf3(0x231)+_0x211cf3(0x2c6)+_0x211cf3(0x212)+_0x211cf3(0x2ce)+'r|direct'+_0x211cf3(0x15e)+':/i,\x20\x22\x22)'+_0x211cf3(0x172)+'\x0a\x09return'+_0x211cf3(0x17a)+'chatType'+':\x20\x22direc'+_0x211cf3(0x163)+(_0x211cf3(0x138)+_0x211cf3(0x2d7)+_0x211cf3(0x169)+_0x211cf3(0x2ed)+_0x211cf3(0x1bf)+_0x211cf3(0x264)+_0x211cf3(0x13c)+_0x211cf3(0x1c7)+_0x211cf3(0x145)+'y(cfg,\x20a'+_0x211cf3(0x2be)+_0x211cf3(0x19a)+_0x211cf3(0x23e)+_0x211cf3(0x2ec)+'st\x20chann'+'el\x20=\x20\x22qq'+_0x211cf3(0x1a8)+_0x211cf3(0x160)+'malizedA'+_0x211cf3(0x2f2)+_0x211cf3(0x180)+'agentId\x20'+_0x211cf3(0x16b)+_0x211cf3(0x188)+').toLowe'+_0x211cf3(0x221)+_0x211cf3(0x16b)+'\x22;\x0a\x09cons'+_0x211cf3(0x204)+_0x211cf3(0x230)+_0x211cf3(0x14e)+_0x211cf3(0x280)+_0x211cf3(0x20f)+_0x211cf3(0x286)+_0x211cf3(0x1a5)+'\x22)\x20retur'+_0x211cf3(0x2d3)+':${norma'+'lizedAge'+_0x211cf3(0x1b2)+_0x211cf3(0x168)+':${route'+_0x211cf3(0x29b)+_0x211cf3(0x271)+_0x211cf3(0x2b8)+_0x211cf3(0x15f)+_0x211cf3(0x16a)+_0x211cf3(0x21b)+_0x211cf3(0x182)+_0x211cf3(0x2b2)+'\x20\x22main\x22;'+_0x211cf3(0x1d3)+_0x211cf3(0x2dc)+_0x211cf3(0x201)+'ccount-c'+_0x211cf3(0x218)+_0x211cf3(0x23b)+_0x211cf3(0x28d)+'{\x0a\x09\x09cons'+_0x211cf3(0x26f)+'izedAcco'+'untId\x20=\x20'+_0x211cf3(0x245)+_0x211cf3(0x23e)+_0x211cf3(0x2a9)+_0x211cf3(0x2ef)+'rim().to'+'LowerCas'+_0x211cf3(0x1b5)+_0x211cf3(0x2c8)+_0x211cf3(0x2e1)+_0x211cf3(0x27f)+_0x211cf3(0x2ca)+_0x211cf3(0x2a1)+_0x211cf3(0x29e)+_0x211cf3(0x18d)+_0x211cf3(0x277)+_0x211cf3(0x1b4)+'countId}'+_0x211cf3(0x2d2)+'${peerId'+'}`;\x0a\x09}\x0a\x09'+_0x211cf3(0x205)+_0x211cf3(0x235)+_0x211cf3(0x282)+_0x211cf3(0x25d)+_0x211cf3(0x25a)+'erId)\x20re'+_0x211cf3(0x144)+'ent:${no'+_0x211cf3(0x14b)+_0x211cf3(0x2e9)+_0x211cf3(0x250)+_0x211cf3(0x217)+'ct:${pee'+_0x211cf3(0x2b8)+_0x211cf3(0x205)+'ope\x20===\x20'+_0x211cf3(0x1e3)+_0x211cf3(0x25a)+_0x211cf3(0x293)+_0x211cf3(0x144)+_0x211cf3(0x292)+_0x211cf3(0x14b)+'AgentId}'+_0x211cf3(0x2d2)+_0x211cf3(0x234)+_0x211cf3(0x1a3)+'urn\x20`age'+_0x211cf3(0x2c2)+'malizedA'+_0x211cf3(0x141)+'main`;\x0a}'+'\x0afunctio'+_0x211cf3(0x22d)+_0x211cf3(0x233)+_0x211cf3(0x268)+_0x211cf3(0x238)+_0x211cf3(0x236)+_0x211cf3(0x2e4)+'{\x0a\x09const'+'\x20routeTa'+_0x211cf3(0x244)+'ujieReso'+_0x211cf3(0x270))+(_0x211cf3(0x14d)+'get(para'+_0x211cf3(0x186)+_0x211cf3(0x167)+_0x211cf3(0x16d)+_0x211cf3(0x18b)+_0x211cf3(0x272)+_0x211cf3(0x1b9)+'outeTarg'+'et)\x20retu'+'rn\x20null;'+_0x211cf3(0x1a2)+_0x211cf3(0x1e4)+_0x211cf3(0x1ba)+_0x211cf3(0x2cb)+_0x211cf3(0x295)+_0x211cf3(0x1f8)+_0x211cf3(0x14a)+_0x211cf3(0x26e)+_0x211cf3(0x154)+'d,\x20route'+_0x211cf3(0x16f)+_0x211cf3(0x2de)+_0x211cf3(0x23e)+_0x211cf3(0x2bc)+'t\x20toPref'+_0x211cf3(0x2c0)+'teTarget'+'.chatTyp'+_0x211cf3(0x1dd)+_0x211cf3(0x159)+_0x211cf3(0x23a)+':\x20\x22chann'+_0x211cf3(0x1f9)+_0x211cf3(0x1a0)+_0x211cf3(0x225)+_0x211cf3(0x140)+_0x211cf3(0x1f3)+_0x211cf3(0x1c1)+'=\x20\x22direc'+_0x211cf3(0x2b1)+_0x211cf3(0x1b7)+_0x211cf3(0x297)+_0x211cf3(0x13a)+_0x211cf3(0x248)+_0x211cf3(0x151)+'\x09return\x20'+'{\x0a\x09\x09sess'+_0x211cf3(0x189)+_0x211cf3(0x1d8)+_0x211cf3(0x1fc)+_0x211cf3(0x29d)+_0x211cf3(0x284)+_0x211cf3(0x29a)+_0x211cf3(0x152)+'uteTarge'+_0x211cf3(0x1eb)+_0x211cf3(0x1ce)+_0x211cf3(0x13a)+_0x211cf3(0x2f0)+'Id\x20},\x0a\x09\x09'+_0x211cf3(0x219)+_0x211cf3(0x173)+_0x211cf3(0x23d)+_0x211cf3(0x150)+_0x211cf3(0x1b1)+_0x211cf3(0x2b6)+_0x211cf3(0x162)+'{routeTa'+_0x211cf3(0x2ab)+'rId}`,\x0a\x09'+'\x09to:\x20`${'+'toPrefix'+_0x211cf3(0x20e)+'eTarget.'+_0x211cf3(0x262)+_0x211cf3(0x237));}function qqBotCoreFallbackHelperSource(){return qqBotNormalizePeerTargetFunctionSource()+'\x0a'+qqBotDirectFallbackFunctionSource();}function _0x5614(){const _0x33f1ba=['ce(/^(gr','\x0a\x09\x09retur','/i,\x20\x22\x22).','g,\x20param','t\x20normal','lveQQBot','d}:${pee','\x20??\x20\x22\x22);','-normali','value\x20??','oute,\x0a\x09\x09',':/i,\x20\x22\x22)','}:${norm','LikeQQBo','und','wer.star','nel\x22,\x20pe','erId\x0a\x09};','5307536riNBMI','get(valu','rn\x20`agen','\x0a\x09if\x20(ro','ot-found','\x22per-cha','ams.agen','nKey,\x0a\x09\x09','oviderPr','Kind\x20!==','up\x22,\x20pee','tTarget,','45txjRso','tId:\x20par','\x20Bot\x20tar','kind:\x20\x22d','peerId)\x20','erKind:\x20','existing','\x20resolve','or\x20qqbot','ent:${no','erId)\x20re','315TUxSDQ','QBotSess','*/\x0a\x09\x09\x09lo','qqbot:${','nnel}:${','eStringO','peer:\x20{\x20','.peerKin','st\x20witho',':\x20sessio','entId}:$','nst\x20norm','werCase(','alizedAg','ring(par','{\x0a\x09\x09\x09/**','||\x20lower','(/^(chan','/^g-/i,\x20','.channel','slice','\x20||\x20\x22def','al\x20qqbot','rget.pee','sWith(\x22g','otDirect','y,\x0a\x09\x09bas',';\x0a\x09if\x20(w','er.start','t\x22\x20?\x20\x22qq','Scope\x20??','(to)?.ch','bot:grou','aw,\x20para','`${fromP','d)\x20retur','rId}`;\x0a\x09','\x20normali','atType:\x20','m:\x22)\x20||\x20',');\x0a\x09cons','\x20buildOu','gentId,\x20','alized\x20=','ix\x20=\x20rou','sWith(\x22t','nt:${nor','oksLikeI','ce(/^(us','alizeQQB','ormalize','eTarget,','default\x22','length','t:${norm','ieBuildQ','8004IEigix','allbackS','e(/^(use','rmat:\x20qq','eOutboun','oup|room',':direct:','n\x20`agent','\x20id\x20look','\x0a\x09\x09infer','Prefix(r','irect\x22,\x20','olveQQBo','ujieQQBo','|\x20lower.','st\x20raw\x20=','Scope\x20==','ams.targ','params.a',').trim()','m:\x20`${pa',';\x0a\x09\x09retu','replace(',');\x0a\x09if\x20(','params)\x20','et\x20??\x20\x22\x22','when\x20the','nel|conv','tboundBa','AgentId}','roup:\x22)\x20','rmalizeQ',')\x20{\x0a\x09con','id\x20}\x20:\x20n','Session(','ault\x22).t','get.peer','hatType:','gentId\x20=','\x20wujieNo','targetRe','indexOf','857956AthUUu','el).trim','dSession','Kind:\x20\x22d','arget','routeTar','stripPro','wujieBui','rams.cfg','solver:\x20','\x09if\x20(low','\x20routeTa','gentId}:','QQBotRou','st\x20id\x20=\x20','turn\x20`ag','essionKe','\x20stripPr','sWith(\x22c','\x22\x22).trim','ingOrEmp','arams.cf','rmalized','baseSess','RouteTar','.peerId;','ng(raw\x20?','atType,\x0a','Type}`;\x0a','kind:\x20ro','\x20\x22\x22).tri','s.agentI',',\x20params','et,\x20para','-shape-n','\x20QQ\x20Bot\x20','irect\x22\x20?','],\x0a\x09\x09/**','(\x22group:','Fallback','\x09\x09resolv','|dm|c2c)','const\x20dm','onst\x20nor','const\x20pe','refix}:$','t\x22,\x20peer','/**\x20Retu','730641HrqHiN','wujieQQB','et?.to\x20?','channel}','peerId:\x20','Scope\x20=\x20','||\x20\x22main','into\x20the','?\x20params','wujieRes','Target,\x20','et(value','`user:${','.trim();',':\x20routeT','{\x20chatTy','ms.chann','t|dm|c2c','zed)\x20ret','\x22.length','arget\x20fo','\x20id\x20?\x20{\x20','untId,\x0a\x09','plugin-a','w.toLowe','messagin','n-not-fo','\x20String(','raw\x20=\x20St','sion?.dm','.startsW',':group:g','\x22,\x20peerI','ms?.targ','hannel,\x0a','\x22).trim(','ionKey,\x0a','Outbound','?.target','115476UeLgzn','{channel','oupMirro','ession','\x20Return\x20','artsWith','rKind:\x20\x22','d\x20(direc','replace','found','sation:\x22','2c:openi','trim();\x0a','roupMirr','route,\x20a','(\x22channe','l:\x22)\x20||\x20','rovider.','\x09const\x20t','m.\x20*/\x0a\x09\x09','nst\x20from','tDirectF','\x0a\x09const\x20','}`;\x0a\x09ret','();\x0a\x09if\x20','\x20\x22direct',';\x0a\x09const','withoutG','bot\x22;\x0a\x09c','viderPre','\x09return\x20','\x09peer\x0a\x09}','Provider','aw.slice','{\x0a\x09if\x20(n','d\x20(group','eer,\x0a\x09\x09c','\x09\x09from:\x20','ntId}:${','n\x20null;','alizedAc','e()\x20||\x20\x22','\x20id\x20=\x20no','bot\x22\x20:\x20`','\x0a\x09\x09const','\x0a\x09if\x20(!r','ey\x20=\x20wuj','ersation','5413140CzUmXr','fallback','der.repl','ull;\x0a}\x0af','t\x22)\x20retu','tType\x20==','rimmed\x20=','):/i,\x20\x22\x22','targetPr','t\x20target','29918AFOKLs','ldQQBotS','\x20without','QBotTarg','\x20canonic','\x20=\x20norma','\x09messagi','looksLik','nd,\x20id:\x20','QQ\x20Bot\x20t','\x09const\x20w','\x20:\x20raw;\x0a','tDirectS','\x0a\x09if\x20(dm','zer-not-','tId,\x0a\x09\x09c','=\x20wujieR','\x20=\x20strip','\x09\x09baseSe','get.\x20*/\x0a','r-not-fo','kSession','function','e\x20===\x20\x22d','\x20chatTyp','lower.st','withoutP','rcaseStr','rams.cha','\x22per-pee','sessionK','t:\x22)\x20?\x20r','\x09hint:\x20\x22','eSession','\x20Normali','e:\x20\x22chan','or.repla','t.peerKi','st\x20lower','d:\x20id\x20}\x20','const\x20qq','ace(/^g-',')\x20||\x20low','();\x0a\x09con','.replace','rget.cha','-resolve','({\x20to\x20})','y:\x20baseS','\x0a\x09};\x0a}','ionKey(p','el\x22;\x0a\x09co','e)\x20{\x0a\x09co','t)\x20or\x20qq','ssionKey','Session\x20','BotDirec','n\x20the\x20id','fix(Stri','=\x20\x22per-a','/^(user|','annel)\x20!','t\x20peerId','if\x20(dmSc','\x20target\x20','\x20format:',')\x20return','ithoutGr','patched','nKey({\x0a\x09','QBotPeer','irror);\x0a','}:${rout','ute.peer','ion:\x22)\x20|','target.\x20','d.replac','\x20wujieRe','n\x20QQ\x20Bot','thoutPro','\x22)\x20||\x20lo','el}:dire','hannel-p','chatType','onversat','cfg?.ses','lizeLowe','nst\x20with','SessionR','group\x22,\x20','Lowercas','rCase()\x20','nel)\x20{\x0a\x09','\x20null;\x0a\x09','\x20lower\x20=','Prefix\x20=','\x09\x09}\x0a\x09},','onst\x20pee','formats\x20','openid\x20(','ujieReso','ty(witho','bot:c2c:','n\x20wujieR','ike\x20a\x20QQ','aw,\x20chan','\x20=\x20route','t\x20id\x20=\x20n','already-','esolveQQ','${peerId','ope\x20===\x20','onRoute(',',\x0a\x09};\x0a}','undSessi','irect\x22,\x0a','\x20\x22user\x22\x20','eer\x22\x20&&\x20',':...\x20for','arget.ch','ccountId','true\x20whe','startsWi','ith(\x22roo','tOutboun','utGroupM','rget\x20=\x20w','String(a','th(\x22thre','botPlugi','get.chat','==\x20\x22qqbo','582cWyMOR','LikeId:\x20','wujieNor','[\x22qqbot\x22','urn\x20null','zed.toLo',':${chann','\x09}\x0a\x09cons','return\x20w','rn\x20id\x20?\x20','();\x0a}\x0afu','eResolve','tFallbac','not-foun','ujieNorm','includes','r\x22\x20&&\x20pe','seSessio','!normali','nnel-pee','otPeerTa','d:\x20looks','normaliz',',\x0a\x09\x09to:\x20','peerId}`','efixes:\x20','unction\x20','ed.repla','rget,\x0a\x09\x09','\x0a\x09\x09\x09hint','BotOutbo','Target(r','pe:\x20\x22gro'];_0x5614=function(){return _0x33f1ba;};return _0x5614();}function qqBotNormalizePeerTargetFunctionSource(){const _0x70164e=_0x109b;return _0x70164e(0x1dc)+_0x70164e(0x2f3)+_0x70164e(0x2eb)+_0x70164e(0x20c)+_0x70164e(0x269)+_0x70164e(0x22f)+_0x70164e(0x222)+'const\x20wi'+_0x70164e(0x215)+'vider\x20=\x20'+_0x70164e(0x13b)+_0x70164e(0x1a9)+_0x70164e(0x200)+_0x70164e(0x14f)+'?\x20\x22\x22),\x20c'+'hannel).'+_0x70164e(0x198)+_0x70164e(0x1d0)+_0x70164e(0x209)+_0x70164e(0x18e)+'r\x20=\x20with'+'outProvi'+_0x70164e(0x1be)+_0x70164e(0x1ef)+_0x70164e(0x26d)+_0x70164e(0x198)+_0x70164e(0x1aa)+_0x70164e(0x1a7)+_0x70164e(0x199)+_0x70164e(0x1ea)+_0x70164e(0x2c4)+'er|direc'+_0x70164e(0x176)+_0x70164e(0x1c3)+').trim()'+';\x0a}';}function qqBotDirectFallbackFunctionSource(){const _0xace243=_0x109b;return _0xace243(0x1dc)+_0xace243(0x213)+'solveQQB'+_0xace243(0x2ad)+_0xace243(0x15c)+_0xace243(0x2ee)+'params)\x20'+_0xace243(0x1ae)+'ormalize'+_0xace243(0x220)+_0xace243(0x299)+'rEmpty(p'+'arams.ch'+_0xace243(0x203)+_0xace243(0x249)+_0xace243(0x1c0)+'rn\x20null;'+_0xace243(0x1a2)+_0xace243(0x181)+_0xace243(0x2a2)+_0xace243(0x2dd)+_0xace243(0x2e5)+_0xace243(0x2df)+_0xace243(0x1a6)+_0xace243(0x1c8)+_0xace243(0x1ac)+_0xace243(0x1d7)+_0xace243(0x1ac)+_0xace243(0x2d6)+_0xace243(0x2b5)+_0xace243(0x175)+_0xace243(0x136)+_0xace243(0x1f1)+_0xace243(0x29c)+_0xace243(0x243)+'irror\x20=\x20'+_0xace243(0x1e0)+'rovider.'+_0xace243(0x2e2)+_0xace243(0x2a6)+_0xace243(0x148)+_0xace243(0x1f1)+_0xace243(0x1ec)+_0xace243(0x1cb)+_0xace243(0x21c)+_0xace243(0x1e1)+_0xace243(0x149)+_0xace243(0x22b)+_0xace243(0x243)+_0xace243(0x20d)+_0xace243(0x13f)+_0xace243(0x2b0)+_0xace243(0x2ac)+_0xace243(0x2ea)+_0xace243(0x2a4)+_0xace243(0x183)+_0xace243(0x241)+_0xace243(0x2bb)+_0xace243(0x1df)+_0xace243(0x191)+_0xace243(0x19b)+_0xace243(0x19c)+_0xace243(0x1df)+_0xace243(0x191)+'(\x22conver'+_0xace243(0x196)+_0xace243(0x1f0)+_0xace243(0x2b0)+_0xace243(0x2c1)+'hread:\x22)'+_0xace243(0x208)+_0xace243(0x223)+_0xace243(0x161)+'erId\x20=\x20w'+_0xace243(0x258)+_0xace243(0x2c5)+_0xace243(0x25e)+'rget(raw'+_0xace243(0x155)+_0xace243(0x2a7)+_0xace243(0x2e3)+'!peerId)'+'\x20return\x20'+'null;\x0a\x09c'+_0xace243(0x227)+'r\x20=\x20{\x0a\x09\x09'+_0xace243(0x28c)+_0xace243(0x239)+'\x09\x09id:\x20pe'+_0xace243(0x27c)+'\x0a\x09const\x20'+_0xace243(0x14c)+'ionKey\x20='+_0xace243(0x2bd)+_0xace243(0x2e8)+_0xace243(0x25b)+_0xace243(0x20b)+'\x09cfg:\x20pa'+_0xace243(0x13d)+',\x0a\x09\x09agen'+'tId:\x20par'+_0xace243(0x283)+_0xace243(0x1d5)+'hannel:\x20'+'params.c'+_0xace243(0x187)+'\x09\x09accoun'+_0xace243(0x28a)+'ams.acco'+_0xace243(0x17b)+_0xace243(0x1ab)+');\x0a\x09retu'+'rn\x20{\x0a\x09\x09s'+_0xace243(0x145)+_0xace243(0x1f6)+_0xace243(0x145)+_0xace243(0x2ae)+_0xace243(0x1e7)+'Key,\x0a\x09\x09p'+_0xace243(0x1b0)+_0xace243(0x2f1)+_0xace243(0x1a5)+'\x22,\x0a\x09\x09fro'+_0xace243(0x2e0)+_0xace243(0x1e2)+(_0xace243(0x298)+_0xace243(0x262)+_0xace243(0x261)+_0xace243(0x171)+_0xace243(0x262)+_0xace243(0x1f7));}function replaceFunction(_0x4b051a,_0x2a4021,_0x2f6f58){const _0x4d1e93=_0x109b,_0x45feff=_0x4b051a[_0x4d1e93(0x134)](_0x4d1e93(0x1dc)+'\x20'+_0x2a4021);if(_0x45feff===-0x1)return null;const _0x3e35e2=_0x4b051a['indexOf']('{',_0x45feff);if(_0x3e35e2===-0x1)return null;let _0x447e9c=0x0,_0x10c984=null,_0x246f5c=![];for(let _0x3354bd=_0x3e35e2;_0x3354bd<_0x4b051a[_0x4d1e93(0x2c9)];_0x3354bd+=0x1){const _0x106d51=_0x4b051a[_0x3354bd];if(_0x10c984){if(_0x246f5c){_0x246f5c=![];continue;}if(_0x106d51==='\x5c'){_0x246f5c=!![];continue;}if(_0x106d51===_0x10c984)_0x10c984=null;continue;}if(_0x106d51==='\x22'||_0x106d51==='\x27'||_0x106d51==='`'){_0x10c984=_0x106d51;continue;}if(_0x106d51==='{')_0x447e9c+=0x1;if(_0x106d51==='}')_0x447e9c-=0x1;if(_0x447e9c===0x0)return _0x4b051a[_0x4d1e93(0x2a8)](0x0,_0x45feff)+_0x2f6f58+_0x4b051a[_0x4d1e93(0x2a8)](_0x3354bd+0x1);}return null;}function upgradeExistingQQBotOutboundFallbackPatch(_0x44e0c4){const _0x42f198=_0x109b;let _0x56a105=replaceFunction(_0x44e0c4,_0x42f198(0x24c)+'malizeQQ'+'BotPeerT'+_0x42f198(0x139),qqBotNormalizePeerTargetFunctionSource());if(!_0x56a105)return{'patched':![],'reason':_0x42f198(0x28f)+_0x42f198(0x273)+_0x42f198(0x1d4)+_0x42f198(0x195)};_0x56a105=replaceFunction(_0x56a105,_0x42f198(0x16e)+_0x42f198(0x2d8)+_0x42f198(0x1a1)+_0x42f198(0x2cd)+_0x42f198(0x18f),qqBotDirectFallbackFunctionSource());if(!_0x56a105)return{'patched':![],'reason':_0x42f198(0x28f)+_0x42f198(0x1f4)+_0x42f198(0x1da)+_0x42f198(0x279)};return{'patched':!![],'source':_0x56a105};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x283643,_0xc6e8a0){const _0xb4dcdd=_0x555d,_0x2c7687=_0x283643();while(!![]){try{const _0x425706=-parseInt(_0xb4dcdd(0x179))/0x1+parseInt(_0xb4dcdd(0x156))/0x2*(parseInt(_0xb4dcdd(0x185))/0x3)+parseInt(_0xb4dcdd(0x163))/0x4*(-parseInt(_0xb4dcdd(0x17c))/0x5)+-parseInt(_0xb4dcdd(0x173))/0x6*(-parseInt(_0xb4dcdd(0x166))/0x7)+parseInt(_0xb4dcdd(0x14d))/0x8*(parseInt(_0xb4dcdd(0x180))/0x9)+-parseInt(_0xb4dcdd(0x176))/0xa*(parseInt(_0xb4dcdd(0x174))/0xb)+parseInt(_0xb4dcdd(0x16a))/0xc;if(_0x425706===_0xc6e8a0)break;else _0x2c7687['push'](_0x2c7687['shift']());}catch(_0x55e303){_0x2c7687['push'](_0x2c7687['shift']());}}}(_0x45f4,0xd794d));function createBridgeImport(_0x4bbdef){const _0x37f897=_0x555d;return _0x37f897(0x159)+_0x37f897(0x171)+'eRequest'+_0x37f897(0x14e)+_0x37f897(0x17f)+_0x37f897(0x16d)+_0x4bbdef+'\x22;';}function ensureBridgeImport(_0x86abd9,_0x2eae37){const _0x3a2b3e=_0x555d,_0x219572=createBridgeImport(_0x2eae37);if(_0x86abd9[_0x3a2b3e(0x17e)](_0x219572))return _0x86abd9;const _0x5eb9a2=_0x86abd9['match'](/^import .*;$/m);if(!_0x5eb9a2)return _0x219572+'\x0a'+_0x86abd9;return _0x86abd9[_0x3a2b3e(0x181)](_0x5eb9a2[0x0],_0x5eb9a2[0x0]+'\x0a'+_0x219572);}function _0x555d(_0x2f49c2,_0x39f180){_0x2f49c2=_0x2f49c2-0x14c;const _0x45f490=_0x45f4();let _0x555d96=_0x45f490[_0x2f49c2];return _0x555d96;}function _0x45f4(){const _0x262cd3=['portPath','slice','bridge-i','(entry)\x20','bject\x22)\x20','Titles(p','(payload','RuntimeH','tIdTitle','1724908bNeNaz','const\x20en','elpers\x20=','7edwbmt','atchGetR','e(entry)','RequestI','31392024OVvpAl','questIdT','&&\x20typeo','om\x20\x22','itles\x20??','patched','equestId','\x20as\x20wuji','runtime\x20','6325806EQtwhm','15143051VlFKYz',',\x0a\x09\x09\x09\x09ba','10sUpQLM','\x09\x09}','indexOf','1396207bkoqEz','ieReques','not-foun','10kAbisy','length','includes','ridge\x20fr','333RPMYKi','replace','stIdTitl','ayload)\x0a','dTitleBr','40383PMyMIk','\x20(runtim','\x09\x09\x09\x09};\x0a\x09','Bridge.b','dTitle','e\x20===\x20\x22o','5816xajLug','IdTitleB','mport-no','already-','f\x20runtim','eChannel','body-not','sureWuji',')\x20=>\x20wuj','122pRFxAK','ntime.re','=>\x20wujie','import\x20*'];_0x45f4=function(){return _0x262cd3;};return _0x45f4();}function findFunctionBodyStart(_0x23a613,_0x93de98){const _0x5a72fd=_0x555d,_0x53c565=_0x23a613[_0x5a72fd(0x178)]('(',_0x93de98);if(_0x53c565===-0x1)return-0x1;let _0x17d053=0x0,_0x2f85b4=null,_0x1db3cc=![];for(let _0x408477=_0x53c565;_0x408477<_0x23a613[_0x5a72fd(0x17d)];_0x408477+=0x1){const _0x34e6de=_0x23a613[_0x408477];if(_0x2f85b4){if(_0x1db3cc){_0x1db3cc=![];continue;}if(_0x34e6de==='\x5c'){_0x1db3cc=!![];continue;}if(_0x34e6de===_0x2f85b4)_0x2f85b4=null;continue;}if(_0x34e6de==='\x22'||_0x34e6de==='\x27'||_0x34e6de==='`'){_0x2f85b4=_0x34e6de;continue;}if(_0x34e6de==='('){_0x17d053+=0x1;continue;}if(_0x34e6de===')'){_0x17d053-=0x1;continue;}if(_0x34e6de==='{'&&_0x17d053===0x0)return _0x408477;}return-0x1;}function insertAfterFunctionOpen(_0x231940,_0x4eee63,_0x5c976c){const _0x46fcf5=_0x555d,_0x313174=_0x231940[_0x46fcf5(0x178)](_0x4eee63);if(_0x313174===-0x1)return{'patched':![],'reason':_0x46fcf5(0x17b)+'d'};const _0x502fcb=findFunctionBodyStart(_0x231940,_0x313174);if(_0x502fcb===-0x1)return{'patched':![],'reason':_0x46fcf5(0x153)+'-found'};return{'patched':!![],'source':''+_0x231940['slice'](0x0,_0x502fcb+0x1)+_0x5c976c+_0x231940[_0x46fcf5(0x15b)](_0x502fcb+0x1)};}export function patchRequestIdTitleRuntimeFromSource(_0x255dbc,_0x2a4b50={}){const _0x10cf38=_0x555d,_0x41c5bd=_0x2a4b50['bridgeIm'+_0x10cf38(0x15a)];if(!_0x41c5bd)return{'patched':![],'reason':_0x10cf38(0x15c)+_0x10cf38(0x14f)+'t-provid'+'ed'};if(_0x255dbc[_0x10cf38(0x17e)]('wujieReq'+'uestIdTi'+'tleBridg'+'e.upsert'+_0x10cf38(0x169)+_0x10cf38(0x189)))return{'patched':![],'reason':_0x10cf38(0x150)+_0x10cf38(0x16f)};const _0x19e8e9=_0x10cf38(0x164)+_0x10cf38(0x154)+_0x10cf38(0x152)+_0x10cf38(0x161)+_0x10cf38(0x165)+_0x10cf38(0x186)+'e)\x20=>',_0x51e091='\x0a\x09\x09\x09if\x20('+_0x10cf38(0x172)+_0x10cf38(0x16c)+_0x10cf38(0x151)+_0x10cf38(0x14c)+_0x10cf38(0x15e)+'{\x0a\x09\x09\x09\x09ru'+_0x10cf38(0x157)+_0x10cf38(0x16b)+_0x10cf38(0x16e)+'=\x20{\x0a\x09\x09\x09\x09'+'upsert:\x20'+_0x10cf38(0x15d)+_0x10cf38(0x158)+_0x10cf38(0x169)+_0x10cf38(0x184)+'idge.ups'+'ertReque'+_0x10cf38(0x182)+_0x10cf38(0x168)+_0x10cf38(0x175)+'tchGet:\x20'+_0x10cf38(0x160)+_0x10cf38(0x155)+_0x10cf38(0x17a)+_0x10cf38(0x162)+_0x10cf38(0x188)+_0x10cf38(0x167)+_0x10cf38(0x170)+_0x10cf38(0x15f)+_0x10cf38(0x183)+_0x10cf38(0x187)+_0x10cf38(0x177),_0x503668=insertAfterFunctionOpen(ensureBridgeImport(_0x255dbc,_0x41c5bd),_0x19e8e9,_0x51e091);return _0x503668;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x244c0c,_0x7025c5){const _0x24104a=_0x4eff,_0x3a0edc=_0x244c0c();while(!![]){try{const _0x49a78d=parseInt(_0x24104a(0x1cd))/0x1+parseInt(_0x24104a(0x1d6))/0x2+parseInt(_0x24104a(0x1bd))/0x3*(-parseInt(_0x24104a(0x1cf))/0x4)+-parseInt(_0x24104a(0x1be))/0x5*(-parseInt(_0x24104a(0x1d3))/0x6)+parseInt(_0x24104a(0x1e1))/0x7+parseInt(_0x24104a(0x1e8))/0x8+-parseInt(_0x24104a(0x1ec))/0x9*(parseInt(_0x24104a(0x1e0))/0xa);if(_0x49a78d===_0x7025c5)break;else _0x3a0edc['push'](_0x3a0edc['shift']());}catch(_0x37cfad){_0x3a0edc['push'](_0x3a0edc['shift']());}}}(_0xa43f,0x8bf42));function createBridgeImport(_0x3d7473){const _0x5b6e92=_0x4eff;return'import\x20*'+'\x20as\x20wuji'+'eSession'+_0x5b6e92(0x1de)+_0x5b6e92(0x1d5)+_0x3d7473+'\x22;';}function ensureBridgeImport(_0x31739d,_0x2da3e2){const _0x50bc94=_0x4eff,_0x3862c6=createBridgeImport(_0x2da3e2);if(_0x31739d[_0x50bc94(0x1ce)](_0x3862c6))return _0x31739d;const _0x4ad876=_0x31739d[_0x50bc94(0x1c3)](/^import .*;$/m);if(!_0x4ad876)return _0x3862c6+'\x0a'+_0x31739d;return _0x31739d[_0x50bc94(0x1c1)](_0x4ad876[0x0],_0x4ad876[0x0]+'\x0a'+_0x3862c6);}function _0x4eff(_0x341863,_0x3a4a16){_0x341863=_0x341863-0x1bc;const _0xa43f00=_0xa43f();let _0x4eff06=_0xa43f00[_0x341863];return _0x4eff06;}function findFunctionBodyStart(_0x1722a3,_0x493daa){const _0x58f71c=_0x4eff,_0x7becc6=_0x1722a3[_0x58f71c(0x1dc)]('(',_0x493daa);if(_0x7becc6===-0x1)return-0x1;let _0x3f5393=0x0,_0x1ad8d2=null,_0x2c8ec7=![];for(let _0x34f609=_0x7becc6;_0x34f609<_0x1722a3[_0x58f71c(0x1dd)];_0x34f609+=0x1){const _0xd3601e=_0x1722a3[_0x34f609];if(_0x1ad8d2){if(_0x2c8ec7){_0x2c8ec7=![];continue;}if(_0xd3601e==='\x5c'){_0x2c8ec7=!![];continue;}if(_0xd3601e===_0x1ad8d2)_0x1ad8d2=null;continue;}if(_0xd3601e==='\x22'||_0xd3601e==='\x27'||_0xd3601e==='`'){_0x1ad8d2=_0xd3601e;continue;}if(_0xd3601e==='('){_0x3f5393+=0x1;continue;}if(_0xd3601e===')'){_0x3f5393-=0x1;continue;}if(_0xd3601e==='{'&&_0x3f5393===0x0)return _0x34f609;}return-0x1;}function _0xa43f(){const _0x516292=['27OEixVj','t-provid','portPath','body-end','not-foun','e(storeP','orePath,','3AfutOS','3970645eIpkXX','\x20opts);\x0a','nction\x20w','replace','s);\x0a}','match','{\x0a\x09retur','essionBr','already-','toreAtom','riteSess','bridgeIm','mport-no','n\x20wujieS','idge.loa','1133608mrQiaV','includes','1344044KMqfhF','essionSt','function','-found','6ZivfbZ','body-not','rom\x20\x22','544744wKJpfZ','sionBrid','async\x20fu','patched','s\x20=\x20{})','slice','indexOf','length','Bridge\x20f','ic(param','7394200QyumwP','6322806cFlEoJ','ath,\x20opt','wujieSes','ionStore','ge.loadS','-not-fou','\x20loadSes','193232CvDdvb','ge.write','Atomic(p','sionStor'];_0xa43f=function(){return _0x516292;};return _0xa43f();}function findMatchingBlockEnd(_0x535fc0,_0x5e08f0){let _0x4d7988=0x0,_0x42b904=null,_0x3a5655=![];for(let _0xcc3e37=_0x5e08f0;_0xcc3e37<_0x535fc0['length'];_0xcc3e37+=0x1){const _0x1ffb94=_0x535fc0[_0xcc3e37];if(_0x42b904){if(_0x3a5655){_0x3a5655=![];continue;}if(_0x1ffb94==='\x5c'){_0x3a5655=!![];continue;}if(_0x1ffb94===_0x42b904)_0x42b904=null;continue;}if(_0x1ffb94==='\x22'||_0x1ffb94==='\x27'||_0x1ffb94==='`'){_0x42b904=_0x1ffb94;continue;}if(_0x1ffb94==='{')_0x4d7988+=0x1;if(_0x1ffb94==='}')_0x4d7988-=0x1;if(_0x4d7988===0x0)return _0xcc3e37+0x1;}return-0x1;}function findNextNonWhitespace(_0x5f3cc7,_0x51dc14){for(let _0x15870e=_0x51dc14;_0x15870e<_0x5f3cc7['length'];_0x15870e+=0x1){if(!/\s/['test'](_0x5f3cc7[_0x15870e]))return _0x15870e;}return-0x1;}function repairMalformedAlreadyPatchedFunction(_0xa2dac,_0x48982e){const _0x335efe=_0x4eff,_0x25ec1c=_0xa2dac[_0x335efe(0x1dc)](_0x48982e);if(_0x25ec1c===-0x1)return{'patched':![],'reason':_0x335efe(0x1f0)+'d'};const _0x45025f=findFunctionBodyStart(_0xa2dac,_0x25ec1c);if(_0x45025f===-0x1)return{'patched':![],'reason':_0x335efe(0x1d4)+_0x335efe(0x1d2)};const _0xcffb50=findMatchingBlockEnd(_0xa2dac,_0x45025f);if(_0xcffb50===-0x1)return{'patched':![],'reason':_0x335efe(0x1ef)+'-not-fou'+'nd'};const _0x467e75=findNextNonWhitespace(_0xa2dac,_0xcffb50);if(_0xa2dac[_0x467e75]!==')')return{'patched':![],'reason':'already-'+_0x335efe(0x1d9)};const _0x212f83=findNextNonWhitespace(_0xa2dac,_0x467e75+0x1);if(_0xa2dac[_0x212f83]!=='{')return{'patched':![],'reason':_0x335efe(0x1c6)+'patched'};const _0x4699e9=findMatchingBlockEnd(_0xa2dac,_0x212f83);if(_0x4699e9===-0x1)return{'patched':![],'reason':_0x335efe(0x1ef)+_0x335efe(0x1e6)+'nd'};return{'patched':!![],'source':_0xa2dac[_0x335efe(0x1db)](0x0,_0xcffb50)+_0xa2dac['slice'](_0x4699e9)};}function replaceFunctionBody(_0x34ac4a,_0x459169,_0x5db959){const _0x16fa42=_0x4eff,_0x1236ec=_0x34ac4a[_0x16fa42(0x1dc)](_0x459169);if(_0x1236ec===-0x1)return{'patched':![],'reason':_0x16fa42(0x1f0)+'d'};const _0x3dc296=findFunctionBodyStart(_0x34ac4a,_0x1236ec);if(_0x3dc296===-0x1)return{'patched':![],'reason':_0x16fa42(0x1d4)+_0x16fa42(0x1d2)};const _0x329148=findMatchingBlockEnd(_0x34ac4a,_0x3dc296);if(_0x329148===-0x1)return{'patched':![],'reason':'body-end'+_0x16fa42(0x1e6)+'nd'};const _0x3560a9=_0x459169+'\x20'+_0x5db959;return{'patched':!![],'source':_0x34ac4a[_0x16fa42(0x1db)](0x0,_0x1236ec)+_0x3560a9+_0x34ac4a[_0x16fa42(0x1db)](_0x329148)};}export function patchSessionStoreLoadFromSource(_0x2ca8a8,_0x1d9b0d={}){const _0x5735aa=_0x4eff,_0x3e3c45=_0x1d9b0d[_0x5735aa(0x1c9)+_0x5735aa(0x1ee)];if(!_0x3e3c45)return{'patched':![],'reason':'bridge-i'+_0x5735aa(0x1ca)+_0x5735aa(0x1ed)+'ed'};if(_0x2ca8a8[_0x5735aa(0x1ce)](_0x5735aa(0x1e3)+_0x5735aa(0x1d7)+_0x5735aa(0x1e5)+_0x5735aa(0x1d0)+'ore'))return repairMalformedAlreadyPatchedFunction(_0x2ca8a8,_0x5735aa(0x1d1)+_0x5735aa(0x1e7)+_0x5735aa(0x1eb)+_0x5735aa(0x1f1)+'ath,\x20opt'+_0x5735aa(0x1da));const _0x452664=replaceFunctionBody(ensureBridgeImport(_0x2ca8a8,_0x3e3c45),'function'+'\x20loadSes'+'sionStor'+_0x5735aa(0x1f1)+_0x5735aa(0x1e2)+'s\x20=\x20{})',_0x5735aa(0x1c4)+_0x5735aa(0x1cb)+_0x5735aa(0x1c5)+_0x5735aa(0x1cc)+'dSession'+'Store(st'+_0x5735aa(0x1bc)+_0x5735aa(0x1bf)+'}');return _0x452664;}export function patchSessionStoreWriteFromSource(_0x53d3d8,_0x157f6d={}){const _0x572817=_0x4eff,_0x545139=_0x157f6d[_0x572817(0x1c9)+_0x572817(0x1ee)];if(!_0x545139)return{'patched':![],'reason':'bridge-i'+_0x572817(0x1ca)+_0x572817(0x1ed)+'ed'};const _0x2f3506=replaceFunctionBody(ensureBridgeImport(_0x53d3d8,_0x545139),_0x572817(0x1d8)+_0x572817(0x1c0)+_0x572817(0x1c8)+_0x572817(0x1e4)+_0x572817(0x1ea)+'arams)',_0x572817(0x1c4)+'n\x20await\x20'+'wujieSes'+_0x572817(0x1d7)+_0x572817(0x1e9)+'SessionS'+_0x572817(0x1c7)+_0x572817(0x1df)+_0x572817(0x1c2));if(!_0x2f3506[_0x572817(0x1d9)])return _0x2f3506;return _0x2f3506;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1d8cd9,_0x1f6d3b){const _0x417c65=_0x54c8,_0x1eea0d=_0x1d8cd9();while(!![]){try{const _0x3c0693=-parseInt(_0x417c65(0x370))/0x1*(parseInt(_0x417c65(0x272))/0x2)+-parseInt(_0x417c65(0x2f4))/0x3+parseInt(_0x417c65(0x38f))/0x4+parseInt(_0x417c65(0x31f))/0x5+-parseInt(_0x417c65(0x22d))/0x6+-parseInt(_0x417c65(0x245))/0x7*(parseInt(_0x417c65(0x2b8))/0x8)+parseInt(_0x417c65(0x324))/0x9*(parseInt(_0x417c65(0x201))/0xa);if(_0x3c0693===_0x1f6d3b)break;else _0x1eea0d['push'](_0x1eea0d['shift']());}catch(_0x19423b){_0x1eea0d['push'](_0x1eea0d['shift']());}}}(_0x44b4,0xa88dd));function _0x44b4(){const _0x19204d=['Target(p','(without','\x20\x20\x20\x20retu','t\x22\x20:\x20und','teTarget','\x20\x20to:\x20`u','aseStrin','gentId}:','\x20{\x0a\x09if\x20(','dmScope\x20','direct\x22,','params)\x20',',\x20\x22\x22).tr','\x20baseSes','rectSess',':\x20wujieR','4446352yTsgjv','n`;\x0a}\x0afu','d,\x20to,\x20p','undSessi','f\x20(wujie','eturn\x20wi','n\x20user\x20I','eNormali','hannel);','(value\x20?','peerId)\x20','y\x20lookup','(\x22@im.we','\x20\x22\x22),\x20ch','nRoute','houtProv','patched','ct\x22,\x0a\x20\x20\x20','??\x20\x22main','ixinRout','replace(','th(\x22@im.','lveWeixi','=\x20String','10430GIVrDd','\x09\x09agentI','nnel:\x20pa','=\x20{\x0a\x09\x09ki','nd-temp\x22','zeLowerc','found','direct\x22\x20',')\x20return','Id\x20||\x20\x22m','?\x20\x22direc','ession?.','to\x20??\x20\x22\x22','oundBase','\x20peerId\x20','turn\x20{\x0a\x20','\x0a\x09\x09baseS','helper-a','ider\x20=\x20s','s\x20always','sionKey(','(params)','esolveWe','\x20\x22\x22);\x0a\x20\x20','wujieNor','ser:${pe','eerId.en','tripProv','eer:\x20{\x20k','d}`;\x0a\x20\x20\x20','\x20to\x20})\x20=','gOrEmpty','im().toL','\x20\x20\x20\x20\x20\x20lo','\x22\x22;\x0a}\x0afu','rgetChat','eixinImP','pe\x20===\x20\x22',').trim()','n\x20null;','eerId)\x20r','to}`,\x0a\x20\x20','aging:\x20{','xinRoute','1757280aMHnBC','ain\x22).tr','echat\x22),','eturn\x20`a','rovider\x20','rmalizeW','Key\x20=\x20wu','\x20\x20};\x0a}','d:\x20(raw)','\x20\x20\x20\x20cons','unt-chan','const\x20wi','e().star',');\x0a\x20\x20\x20\x20r','ams.targ','channel|','\x20}\x0a\x20\x20\x20\x20i','chat;\x20tr','ixinPeer','inImDire','ormalize','${normal','eer\x22\x20&&\x20','a/outbou','7RxEHcM','OrEmpty(','malizedA','jieBuild','\x20`${para','tId\x20||\x20\x22','h(\x22@im.w','ct\x22,\x20id:','erId}`,\x0a','irect\x22\x20:','ll;\x0a\x09con','l}:${nor','endsWith','izedAgen','hatType:','ype:\x20({\x20','ser:${to','-resolve','=\x20cfg?.s','ujieBuil','g(accoun','outProvi','nversati','et,\x20para','\x20\x20\x20\x20\x20\x20\x20l','direct\x20I','accountI','.trim();','inferTar','|\x20\x22defau','\x20\x20if\x20(!t','\x20\x20\x20const','rId)\x20{\x0a\x20','agentId,','ion)\x20ret','/\x20Weixin','\x22,\x0a\x20\x20\x20\x20\x20','irectFal','\x20`opencl','h\x20@im.we','\x20\x20\x20\x20\x20pee','}:${chan','malizeWe','sionKey:','P_DIR\x20=\x20','24HfGFLx','ms.cfg,\x0a','xin\x22;\x0a\x20\x20','\x20\x20\x20\x20\x20\x20\x20c','ain\x22;\x0a\x20\x20','\x20wujieRe','\x20=\x20wujie','(!trimme','\x22\x20&&\x20pee','tType:\x20\x22','d\x20=\x20stri','d)\x20retur','ry\x20looku','d):/i,\x20\x22','\x20targetR','Ds,\x20skip','lbackSes','at\x22)\x20?\x20\x22','\x20=\x20Strin','ujieReso','`user:${','group|co','onst\x20nor','d:\x20\x22dire','d.replac','urn\x20`age','rovider.','irectSes','\x20\x20\x20\x20\x20ret','ey({\x0a\x09\x09c','\x22).trim(','eWeixinD','nchor-no','\x22;\x0a\x20\x20\x20\x20i','nel}:dir','ect\x22,\x0a\x09\x09','\x20\x20\x20\x20\x20ses','el)\x20{\x0a\x09c','eturn\x20nu','der).rep','inOutbou','th\x20@im.w','Id\x0a\x09};\x0a\x09','};\x0a}','ndSessio','(value)\x20',':\x20{\x0a\x20\x20\x20\x20','dAgentId','path.joi','s,\x20skip\x20','alizeWei','n(resolv','getChatT','-shape-n','rams.cha','iderPref','Kind);\x0a\x09','rn\x20{\x0a\x20\x20\x20','eBuildWe','indexOf','wujieRes','erId}`;\x0a',',\x0a\x20\x20\x20\x20\x20\x20','Resolver','replace','=\x20wujieN','${channe','olveWeix','f\x20(dmSco','\x20end\x20wit','3923544zbMZZb','sWith(\x22@','xinOutbo','},\x0a\x20\x20\x20\x20}','openclaw','\x20\x20\x20\x20\x20\x20\x20p','\x22.length','ams.acco','fallback','fix(with','ionRoute','tSession','}:direct','d\x20=\x20wuji','includes','tId,\x0a\x09\x09p','();\x0a}\x0afu','const\x20ME','nd:\x20\x22dir','nnel,\x0a\x09\x09','chat\x22))\x20','zeWeixin','o.endsWi','t\x20to\x20=\x20w','\x20\x20\x20\x20\x20fro','\x20\x20\x20\x20}\x0a\x20\x20','.toLower','el).trim','kSession','y:\x20sessi','.\x0a\x20\x20\x20\x20\x20\x20','sion(par','eixinRou','\x20=>\x20raw.','//\x20Weixi','\x20undefin','\x20:\x20raw;\x0a','on|room|','edAgentI','already-','\x20\x20\x20\x20\x20\x20\x20/','ccountId','thoutKin','r:\x20{\x20kin','=\x20raw.to','\x20\x20target','ect:${pe','return\x20n','.slice(\x22','efined,','efix(par','t\x22)\x20?\x20\x22d','ixinOutb','nction\x20w','eerId(ra','r-not-fo','und','\x09\x09to:\x20`u','\x20String(','\x20channel','2243736oITySA','\x20\x20\x20\x20\x20\x20\x20s','\x0a\x09if\x20(!p','olveOutb','cfg,\x20age','tsWith(\x22','dWeixinD','.to\x20??\x20p','peerId\x20=','\x20null;\x0a\x20','\x20session','Fallback','\x20normali','LowerCas','\x20=\x20\x22open','get\x20??\x20\x22','?\x20\x22\x22).tr','essionKe','ResolveW','{\x0a\x20\x20\x20\x20co','\x09const\x20t','xin:${to','\x20\x20\x20\x20\x20\x20\x20r','uteTarge','\x20params.','\x0a\x09\x09from:','const\x20ba','ooksLike','nel-peer','messagin','rect\x22,\x20i','irect\x20ID','default\x22','ePreferr','}`,\x0a\x20\x20\x20\x20','owerCase','im();\x0a\x20\x20','ixinDire','tId}:dir','Case()\x20|','function','urn\x20wuji','/^(user|','1137650oSGJxK','>\x20wujieN','to\x20})\x20=>','ams.cfg,','\x20},\x0a\x20\x20\x20\x20','14814ZnWfHn','\x20directo','oundSess','ams);\x0a\x09i','seSessio','\x20{\x0a\x09\x09ses','d:\x20param','.endsWit','DIA_OUTB','oksLikeI','tKind\x20=\x20','ckSessio','countId)','claw-wei','fg:\x20para','ed,','onRoute(','nOutboun','to)','-weixin:','pKindPre','{\x0a\x20\x20\x20\x20\x20\x20','onst\x20wit','nst\x20raw\x20','\x20chatTyp','Session(',')\x20=>\x20raw','ionKey(p','!==\x20\x22ope',':${peerI','\x22)\x20?\x20raw','ix(Strin','d,\x0a\x09\x09cha','WeixinRo','\x20\x20\x20\x20mess','ams?.tar','ot-found','(),\x20\x22wei','sion;','\x20\x20const\x20','existing','@im.wech','ms.chann','length','dm|threa','w,\x20chann','tId}:mai','s.accoun','n:${to}`','\x20user\x20ID','\x20wujieNo','\x20\x20\x20\x20to:\x20','arams.cf','\x20\x20\x20\x20\x20\x20\x20\x20','dSession','\x20{\x0a\x20\x20\x20\x20\x20','arget\x20??','rimmed\x20=','im.wecha','t\x20withou','nclaw-we','ull;\x0a\x20\x20\x20','Id:\x20(raw','WeixinDi','\x20\x20\x20baseS','xin/medi','arams?.t','p.\x0a\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20res','(params?','params.c','g-shape-','director','ctFallba','onKey,\x0a\x20','69522RcLfDV','\x20\x20return','st\x20peer\x20','Key,\x0a\x20\x20\x20','t(to).en','el}:${pe','awTmpDir','eTarget','eLowerca','withoutP','eer\x0a\x09});','untId);\x0a','return\x20p','e(/^g-/i','\x0a\x09return'];_0x44b4=function(){return _0x19204d;};return _0x44b4();}export function patchWeixinOutboundSessionRouteFromSource(_0x1cbadc){const _0x552e28=_0x54c8;if(_0x1cbadc['includes'](_0x552e28(0x2ae)+'olveWeix'+_0x552e28(0x29a)+_0x552e28(0x29e)+_0x552e28(0x1f7))){if(!_0x1cbadc[_0x552e28(0x2c6)]('wujieNor'+_0x552e28(0x26f)+_0x552e28(0x1fc)+_0x552e28(0x377)))return upgradeExistingWeixinOutboundSessionRoutePatch(_0x1cbadc);return{'patched':![],'reason':'already-'+'patched'};}const _0x50b94e=_0x552e28(0x2c9)+_0x552e28(0x32c)+'OUND_TEM'+_0x552e28(0x271)+_0x552e28(0x2a2)+_0x552e28(0x2a5)+_0x552e28(0x315)+'edOpenCl'+_0x552e28(0x376)+_0x552e28(0x349)+_0x552e28(0x365)+_0x552e28(0x244)+_0x552e28(0x205)+');';if(!_0x1cbadc[_0x552e28(0x2c6)](_0x50b94e))return{'patched':![],'reason':_0x552e28(0x212)+_0x552e28(0x292)+'t-found'};const _0x53aa68=_0x552e28(0x346)+_0x552e28(0x22b)+_0x552e28(0x368)+_0x552e28(0x280)+'esolver:'+_0x552e28(0x35b)+_0x552e28(0x2e0)+_0x552e28(0x268)+_0x552e28(0x355)+_0x552e28(0x214)+_0x552e28(0x2b7)+_0x552e28(0x26c)+_0x552e28(0x23e)+'eat\x20as\x20d'+_0x552e28(0x313)+_0x552e28(0x2a3)+_0x552e28(0x36d)+_0x552e28(0x1f4)+_0x552e28(0x2d6)+_0x552e28(0x222)+_0x552e28(0x32d)+_0x552e28(0x235)+_0x552e28(0x2d9)+'endsWith'+'(\x22@im.we'+'chat\x22),\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20'+_0x552e28(0x2bb)+',';if(!_0x1cbadc[_0x552e28(0x2c6)](_0x53aa68))return{'patched':![],'reason':_0x552e28(0x311)+_0x552e28(0x36c)+'not-foun'+'d'};const _0x97b60b=_0x50b94e+'\x0a'+weixinPluginRouteHelperSource(),_0x35d7d5=_0x552e28(0x346)+_0x552e28(0x22b)+'\x0a\x20\x20\x20\x20\x20\x20\x20'+'\x20inferTa'+_0x552e28(0x224)+'Type:\x20({'+_0x552e28(0x21f)+_0x552e28(0x320)+_0x552e28(0x241)+'WeixinRo'+_0x552e28(0x30b)+_0x552e28(0x374)+'dsWith(\x22'+'@im.wech'+_0x552e28(0x283)+_0x552e28(0x208)+':\x20undefi'+'ned,\x0a\x20\x20\x20'+_0x552e28(0x369)+_0x552e28(0x2f7)+_0x552e28(0x326)+'ionRoute'+_0x552e28(0x38e)+_0x552e28(0x217)+_0x552e28(0x2ec)+'oundSess'+_0x552e28(0x2c2)+',\x0a\x20\x20\x20\x20\x20\x20'+_0x552e28(0x2e5)+_0x552e28(0x2b1)+_0x552e28(0x2a0)+_0x552e28(0x359)+_0x552e28(0x2da)+_0x552e28(0x1ef)+'Ds\x20alway'+'s\x20end\x20wi'+_0x552e28(0x29b)+'echat;\x20t'+'reat\x20as\x20'+_0x552e28(0x25e)+_0x552e28(0x281)+_0x552e28(0x325)+_0x552e28(0x27e)+_0x552e28(0x367)+_0x552e28(0x25d)+_0x552e28(0x30f)+_0x552e28(0x362)+_0x552e28(0x33e)+_0x552e28(0x32b)+'h(\x22@im.w'+_0x552e28(0x22f)+_0x552e28(0x368)+_0x552e28(0x323)+'},';return{'patched':!![],'source':_0x1cbadc[_0x552e28(0x2b2)](_0x50b94e,_0x97b60b)[_0x552e28(0x2b2)](_0x53aa68,_0x35d7d5)};}function _0x54c8(_0x35366b,_0x5e885f){_0x35366b=_0x35366b-0x1ec;const _0x44b4d0=_0x44b4();let _0x54c898=_0x44b4d0[_0x35366b];return _0x54c898;}export function patchWeixinOutboundFallbackFromSource(_0x368a4b){const _0x5e3fa8=_0x54c8;if(_0x368a4b[_0x5e3fa8(0x2c6)](_0x5e3fa8(0x2ae)+'olveWeix'+_0x5e3fa8(0x240)+_0x5e3fa8(0x36e)+_0x5e3fa8(0x32f)+'n'))return{'patched':![],'reason':_0x5e3fa8(0x2df)+_0x5e3fa8(0x1f9)};const _0x54e248=_0x5e3fa8(0x31c)+'\x20resolve'+_0x5e3fa8(0x2ff)+_0x5e3fa8(0x33d)+_0x5e3fa8(0x38a)+'{';if(!_0x368a4b[_0x5e3fa8(0x2c6)](_0x54e248))return{'patched':![],'reason':_0x5e3fa8(0x2c0)+'-functio'+'n-not-fo'+_0x5e3fa8(0x2f0)};const _0x527ff1=_0x5e3fa8(0x308)+_0x5e3fa8(0x35d)+'\x20stripPr'+'oviderPr'+_0x5e3fa8(0x2ea)+_0x5e3fa8(0x23b)+_0x5e3fa8(0x25c)+_0x5e3fa8(0x34e)+_0x5e3fa8(0x2d3)+'();\x0a\x09if\x20'+_0x5e3fa8(0x279)+_0x5e3fa8(0x27d)+_0x5e3fa8(0x228);if(!_0x368a4b[_0x5e3fa8(0x2c6)](_0x527ff1))return{'patched':![],'reason':'fallback'+_0x5e3fa8(0x2a7)+_0x5e3fa8(0x348)};const _0x20be96=weixinCoreFallbackHelperSource()+'\x0a'+_0x54e248,_0x1e2e65=_0x527ff1+('\x0a\x09const\x20'+'wujieWei'+'xinDirec'+_0x5e3fa8(0x2c3)+_0x5e3fa8(0x278)+_0x5e3fa8(0x306)+'eixinImD'+_0x5e3fa8(0x26a)+_0x5e3fa8(0x282)+_0x5e3fa8(0x2d7)+_0x5e3fa8(0x327)+_0x5e3fa8(0x1ed)+_0x5e3fa8(0x363)+_0x5e3fa8(0x38d)+_0x5e3fa8(0x267)+_0x5e3fa8(0x31d)+_0x5e3fa8(0x291)+'irectSes'+_0x5e3fa8(0x34a));return{'patched':!![],'source':_0x368a4b[_0x5e3fa8(0x2b2)](_0x54e248,_0x20be96)[_0x5e3fa8(0x2b2)](_0x527ff1,_0x1e2e65)};}function weixinPluginRouteHelperSource(){const _0x5986d8=_0x54c8;return _0x5986d8(0x31c)+_0x5986d8(0x356)+_0x5986d8(0x232)+_0x5986d8(0x2d8)+_0x5986d8(0x383)+'(value)\x20'+'{\x0a\x20\x20\x20\x20co'+_0x5986d8(0x33b)+_0x5986d8(0x200)+_0x5986d8(0x1f2)+_0x5986d8(0x304)+_0x5986d8(0x318)+_0x5986d8(0x34b)+_0x5986d8(0x379)+_0x5986d8(0x231)+_0x5986d8(0x2e4)+_0x5986d8(0x301)+_0x5986d8(0x239)+_0x5986d8(0x2f9)+'openclaw'+'-weixin:'+_0x5986d8(0x342)+_0x5986d8(0x2e8)+'openclaw'+_0x5986d8(0x337)+_0x5986d8(0x2be)+_0x5986d8(0x227)+_0x5986d8(0x2dc)+_0x5986d8(0x236)+_0x5986d8(0x35f)+'tKind\x20=\x20'+'withoutP'+_0x5986d8(0x28c)+_0x5986d8(0x1fd)+_0x5986d8(0x31e)+_0x5986d8(0x23c)+'group|co'+_0x5986d8(0x25b)+_0x5986d8(0x2dd)+_0x5986d8(0x350)+_0x5986d8(0x27f)+_0x5986d8(0x290)+_0x5986d8(0x23a)+_0x5986d8(0x1ee)+_0x5986d8(0x2e2)+_0x5986d8(0x28a)+_0x5986d8(0x37d)+_0x5986d8(0x38b)+_0x5986d8(0x221)+'owerCase'+_0x5986d8(0x2c8)+_0x5986d8(0x2ed)+_0x5986d8(0x258)+_0x5986d8(0x2fa)+_0x5986d8(0x28d)+_0x5986d8(0x215)+_0x5986d8(0x2f8)+'ntId,\x20to'+',\x20accoun'+'tId)\x20{\x0a\x20'+_0x5986d8(0x264)+_0x5986d8(0x20f)+_0x5986d8(0x2b3)+_0x5986d8(0x241)+_0x5986d8(0x345)+_0x5986d8(0x30b)+'t(to);\x0a\x20'+_0x5986d8(0x264)+_0x5986d8(0x2f3)+_0x5986d8(0x302)+_0x5986d8(0x331)+_0x5986d8(0x274)+_0x5986d8(0x34b)+'normaliz'+_0x5986d8(0x2de)+'d\x20=\x20Stri'+'ng(agent'+_0x5986d8(0x20a)+_0x5986d8(0x22e)+_0x5986d8(0x221)+_0x5986d8(0x317)+'()\x20||\x20\x22m'+_0x5986d8(0x276)+_0x5986d8(0x34b)+_0x5986d8(0x388)+_0x5986d8(0x257)+_0x5986d8(0x20c)+_0x5986d8(0x388)+_0x5986d8(0x1fb)+_0x5986d8(0x293)+_0x5986d8(0x2b6)+_0x5986d8(0x226)+'per-acco'+_0x5986d8(0x237)+_0x5986d8(0x310)+_0x5986d8(0x27a)+_0x5986d8(0x265)+'\x20\x20\x20\x20\x20\x20\x20c'+_0x5986d8(0x288)+'malizedA'+_0x5986d8(0x2e1)+_0x5986d8(0x284)+_0x5986d8(0x259)+_0x5986d8(0x24a)+_0x5986d8(0x314)+_0x5986d8(0x227)+_0x5986d8(0x2d2)+_0x5986d8(0x31b)+_0x5986d8(0x262)+'lt\x22;\x0a\x20\x20\x20'+_0x5986d8(0x28e)+_0x5986d8(0x28b)+'nt:${nor'+_0x5986d8(0x247)+_0x5986d8(0x386)+_0x5986d8(0x2b4)+_0x5986d8(0x250)+_0x5986d8(0x247)+_0x5986d8(0x2e1)+_0x5986d8(0x2c4)+_0x5986d8(0x341)+_0x5986d8(0x21e)+_0x5986d8(0x23d)+_0x5986d8(0x2b6)+_0x5986d8(0x226)+('per-chan'+_0x5986d8(0x310)+_0x5986d8(0x27a)+'rId)\x20{\x0a\x20'+_0x5986d8(0x30a)+_0x5986d8(0x230)+'gent:${n'+_0x5986d8(0x241)+_0x5986d8(0x2a1)+_0x5986d8(0x26e)+_0x5986d8(0x294)+_0x5986d8(0x2e6)+'erId}`;\x0a'+_0x5986d8(0x2d1)+'\x20\x20if\x20(dm'+'Scope\x20=='+'=\x20\x22per-p'+_0x5986d8(0x243)+_0x5986d8(0x1f3)+_0x5986d8(0x339)+_0x5986d8(0x371)+'\x20`agent:'+_0x5986d8(0x242)+_0x5986d8(0x252)+_0x5986d8(0x31a)+_0x5986d8(0x2e6)+_0x5986d8(0x2af)+_0x5986d8(0x2d1)+_0x5986d8(0x371)+'\x20`agent:'+_0x5986d8(0x242)+_0x5986d8(0x252)+_0x5986d8(0x352)+_0x5986d8(0x390)+_0x5986d8(0x2ed)+_0x5986d8(0x285)+_0x5986d8(0x1ff)+_0x5986d8(0x335)+_0x5986d8(0x35a)+'Route(pa'+'rams)\x20{\x0a'+'\x20\x20\x20\x20cons'+_0x5986d8(0x2cf)+'ujieNorm'+_0x5986d8(0x2a4)+_0x5986d8(0x22c)+_0x5986d8(0x37f)+_0x5986d8(0x366)+'arget?.t'+'o\x20??\x20par'+_0x5986d8(0x347)+_0x5986d8(0x303)+'\x22);\x0a\x20\x20\x20\x20'+'if\x20(!to.'+_0x5986d8(0x251)+_0x5986d8(0x1f5)+_0x5986d8(0x2cc)+_0x5986d8(0x2e7)+_0x5986d8(0x361)+'\x20const\x20s'+'essionKe'+'y\x20=\x20wuji'+_0x5986d8(0x2ac)+_0x5986d8(0x319)+'ctSessio'+'nKey(par'+_0x5986d8(0x322)+_0x5986d8(0x30c)+_0x5986d8(0x266)+'\x20to,\x20par'+_0x5986d8(0x2bf)+_0x5986d8(0x37b)+_0x5986d8(0x381)+_0x5986d8(0x2ab)+_0x5986d8(0x296)+'sionKey,'+_0x5986d8(0x368)+_0x5986d8(0x38c)+_0x5986d8(0x270)+'\x20session'+_0x5986d8(0x373)+_0x5986d8(0x26d)+_0x5986d8(0x2e3)+_0x5986d8(0x289)+_0x5986d8(0x24c)+'\x20to\x20},\x0a\x20'+_0x5986d8(0x275)+_0x5986d8(0x253)+'\x20\x22direct'+_0x5986d8(0x269)+'\x20\x20\x20from:'+_0x5986d8(0x26b)+'aw-weixi'+_0x5986d8(0x354)+_0x5986d8(0x2b0)+_0x5986d8(0x384)+_0x5986d8(0x255)+_0x5986d8(0x316)+_0x5986d8(0x29d));}function weixinCoreFallbackHelperSource(){const _0x5f0ab3=_0x54c8;return _0x5f0ab3(0x31c)+_0x5f0ab3(0x356)+_0x5f0ab3(0x232)+_0x5f0ab3(0x225)+_0x5f0ab3(0x2ee)+_0x5f0ab3(0x351)+_0x5f0ab3(0x297)+_0x5f0ab3(0x33a)+_0x5f0ab3(0x1f8)+_0x5f0ab3(0x213)+_0x5f0ab3(0x21c)+_0x5f0ab3(0x2a9)+_0x5f0ab3(0x343)+'g(raw\x20??'+_0x5f0ab3(0x1f6)+'annel).t'+'rim();\x0a\x09'+_0x5f0ab3(0x238)+_0x5f0ab3(0x2e2)+_0x5f0ab3(0x27c)+_0x5f0ab3(0x338)+_0x5f0ab3(0x2c1)+_0x5f0ab3(0x25a)+_0x5f0ab3(0x299)+'lace(/^g'+'-/i,\x20\x22\x22)'+_0x5f0ab3(0x260)+'\x0a\x09const\x20'+_0x5f0ab3(0x2fc)+_0x5f0ab3(0x300)+_0x5f0ab3(0x206)+_0x5f0ab3(0x385)+_0x5f0ab3(0x220)+_0x5f0ab3(0x380)+_0x5f0ab3(0x2aa)+_0x5f0ab3(0x37c)+_0x5f0ab3(0x21b)+'dsWith(\x22'+_0x5f0ab3(0x34d)+'at\x22)\x20?\x20p'+'eerId\x20:\x20'+_0x5f0ab3(0x223)+_0x5f0ab3(0x2ed)+_0x5f0ab3(0x285)+_0x5f0ab3(0x1ff)+'nImDirec'+'tFallbac'+_0x5f0ab3(0x2d4)+_0x5f0ab3(0x216)+_0x5f0ab3(0x387)+'normaliz'+_0x5f0ab3(0x378)+'seString'+_0x5f0ab3(0x246)+_0x5f0ab3(0x36b)+'hannel)\x20'+_0x5f0ab3(0x340)+_0x5f0ab3(0x360)+'ixin\x22)\x20r'+'eturn\x20nu'+'ll;\x0a\x09con'+'st\x20peerI'+_0x5f0ab3(0x2c5)+_0x5f0ab3(0x1f0)+_0x5f0ab3(0x2cd)+'ImPeerId'+'(params.'+'target,\x20'+_0x5f0ab3(0x36b)+_0x5f0ab3(0x1f1)+_0x5f0ab3(0x2f6)+_0x5f0ab3(0x229)+_0x5f0ab3(0x298)+_0x5f0ab3(0x24f)+_0x5f0ab3(0x372)+_0x5f0ab3(0x204)+_0x5f0ab3(0x2ca)+_0x5f0ab3(0x295)+'id:\x20peer'+_0x5f0ab3(0x29c)+_0x5f0ab3(0x30e)+_0x5f0ab3(0x328)+'nKey\x20=\x20b'+'uildOutb'+_0x5f0ab3(0x20e)+'SessionK'+_0x5f0ab3(0x28f)+_0x5f0ab3(0x332)+_0x5f0ab3(0x273)+_0x5f0ab3(0x202)+_0x5f0ab3(0x32a)+'s.agentI'+_0x5f0ab3(0x344)+_0x5f0ab3(0x203)+_0x5f0ab3(0x2a8)+_0x5f0ab3(0x2cb)+_0x5f0ab3(0x25f)+'d:\x20param'+_0x5f0ab3(0x353)+_0x5f0ab3(0x2c7)+_0x5f0ab3(0x37a)+_0x5f0ab3(0x37e)+_0x5f0ab3(0x329)+_0x5f0ab3(0x270)+'\x20baseSes'+'sionKey,'+_0x5f0ab3(0x211)+_0x5f0ab3(0x305)+'y,\x0a\x09\x09pee'+'r,\x0a\x09\x09cha'+_0x5f0ab3(0x27b)+_0x5f0ab3(0x389)+_0x5f0ab3(0x30d)+_0x5f0ab3(0x249)+_0x5f0ab3(0x34e)+_0x5f0ab3(0x375)+_0x5f0ab3(0x24d)+_0x5f0ab3(0x2f1)+_0x5f0ab3(0x21a)+'erId}`\x0a\x09'+_0x5f0ab3(0x29d);}function replaceFunction(_0x56ffc5,_0x35ac01,_0x15a5e9){const _0x512940=_0x54c8,_0x51ed01=_0x56ffc5[_0x512940(0x2ad)](_0x512940(0x31c)+'\x20'+_0x35ac01);if(_0x51ed01===-0x1)return null;const _0x5bcad0=_0x56ffc5[_0x512940(0x2ad)]('{',_0x51ed01);if(_0x5bcad0===-0x1)return null;let _0x12258f=0x0,_0x30e3f4=null,_0x3c081b=![];for(let _0x166d62=_0x5bcad0;_0x166d62<_0x56ffc5[_0x512940(0x34f)];_0x166d62+=0x1){const _0x368a49=_0x56ffc5[_0x166d62];if(_0x30e3f4){if(_0x3c081b){_0x3c081b=![];continue;}if(_0x368a49==='\x5c'){_0x3c081b=!![];continue;}if(_0x368a49===_0x30e3f4)_0x30e3f4=null;continue;}if(_0x368a49==='\x22'||_0x368a49==='\x27'||_0x368a49==='`'){_0x30e3f4=_0x368a49;continue;}if(_0x368a49==='{')_0x12258f+=0x1;if(_0x368a49==='}')_0x12258f-=0x1;if(_0x12258f===0x0)return _0x56ffc5['slice'](0x0,_0x51ed01)+_0x15a5e9+_0x56ffc5['slice'](_0x166d62+0x1);}return null;}function upgradeExistingWeixinOutboundSessionRoutePatch(_0x8d1683){const _0xe7674d=_0x54c8;let _0x220aac=replaceFunction(_0x8d1683,_0xe7674d(0x219)+'malizeWe'+_0xe7674d(0x23f)+'Id','function'+_0xe7674d(0x356)+'rmalizeW'+_0xe7674d(0x2d8)+'teTarget'+_0xe7674d(0x29f)+_0xe7674d(0x307)+_0xe7674d(0x33b)+_0xe7674d(0x200)+'(value\x20?'+'?\x20\x22\x22).tr'+_0xe7674d(0x318)+_0xe7674d(0x34b)+'withoutP'+_0xe7674d(0x231)+_0xe7674d(0x2e4)+_0xe7674d(0x301)+_0xe7674d(0x239)+_0xe7674d(0x2f9)+_0xe7674d(0x2bc)+_0xe7674d(0x337)+_0xe7674d(0x342)+_0xe7674d(0x2e8)+_0xe7674d(0x2bc)+_0xe7674d(0x337)+_0xe7674d(0x2be)+_0xe7674d(0x227)+_0xe7674d(0x2dc)+_0xe7674d(0x236)+_0xe7674d(0x35f)+_0xe7674d(0x32e)+'withoutP'+_0xe7674d(0x28c)+'replace('+_0xe7674d(0x31e)+_0xe7674d(0x23c)+_0xe7674d(0x287)+_0xe7674d(0x25b)+_0xe7674d(0x2dd)+_0xe7674d(0x350)+'d):/i,\x20\x22'+_0xe7674d(0x290)+');\x0a\x20\x20\x20\x20r'+_0xe7674d(0x1ee)+'thoutKin'+_0xe7674d(0x28a)+_0xe7674d(0x37d)+',\x20\x22\x22).tr'+_0xe7674d(0x221)+'owerCase'+'();\x0a}');if(!_0x220aac)return{'patched':![],'reason':_0xe7674d(0x34c)+'-normali'+'zer-not-'+_0xe7674d(0x207)};_0x220aac=replaceFunction(_0x220aac,_0xe7674d(0x2ae)+_0xe7674d(0x2b5)+'inOutbou'+_0xe7674d(0x29e)+_0xe7674d(0x1f7),_0xe7674d(0x31c)+_0xe7674d(0x277)+'solveWei'+_0xe7674d(0x2ba)+_0xe7674d(0x1ec)+_0xe7674d(0x334)+_0xe7674d(0x38a)+_0xe7674d(0x307)+'nst\x20to\x20='+_0xe7674d(0x356)+_0xe7674d(0x232)+'eixinRou'+'teTarget'+_0xe7674d(0x36a)+'.target?'+_0xe7674d(0x2fb)+_0xe7674d(0x366)+_0xe7674d(0x35c)+_0xe7674d(0x218)+_0xe7674d(0x263)+_0xe7674d(0x2ce)+_0xe7674d(0x1fe)+'wechat\x22)'+_0xe7674d(0x209)+_0xe7674d(0x2fd)+_0xe7674d(0x264)+_0xe7674d(0x2fe)+_0xe7674d(0x233)+_0xe7674d(0x248)+_0xe7674d(0x363)+_0xe7674d(0x38d)+_0xe7674d(0x33f)+_0xe7674d(0x358)+'g,\x20param'+'s.agentI'+_0xe7674d(0x391)+'arams.ac'+_0xe7674d(0x330)+';\x0a\x20\x20\x20\x20re'+_0xe7674d(0x210)+_0xe7674d(0x2f5)+'essionKe'+'y,\x0a\x20\x20\x20\x20\x20'+_0xe7674d(0x364)+_0xe7674d(0x305)+_0xe7674d(0x2d5)+_0xe7674d(0x36f)+_0xe7674d(0x2bd)+_0xe7674d(0x21d)+'ind:\x20\x22di'+_0xe7674d(0x312)+'d:\x20to\x20},'+_0xe7674d(0x368)+_0xe7674d(0x33c)+'e:\x20\x22dire'+_0xe7674d(0x1fa)+_0xe7674d(0x2d0)+'m:\x20`open'+_0xe7674d(0x331)+_0xe7674d(0x309)+_0xe7674d(0x316)+_0xe7674d(0x357)+_0xe7674d(0x286)+_0xe7674d(0x22a)+_0xe7674d(0x234));if(!_0x220aac)return{'patched':![],'reason':_0xe7674d(0x34c)+_0xe7674d(0x256)+_0xe7674d(0x2ef)+'und'};return _0x220aac=_0x220aac['replaceA'+'ll'](_0xe7674d(0x219)+_0xe7674d(0x26f)+_0xe7674d(0x23f)+'Id(to)','wujieNor'+'malizeWe'+_0xe7674d(0x1fc)+'eTarget('+_0xe7674d(0x336))['replace'](_0xe7674d(0x261)+'getChatT'+_0xe7674d(0x254)+'to\x20})\x20=>'+_0xe7674d(0x2f2)+_0xe7674d(0x20d)+_0xe7674d(0x227)+_0xe7674d(0x32b)+_0xe7674d(0x24b)+'echat\x22)\x20'+_0xe7674d(0x20b)+_0xe7674d(0x382)+_0xe7674d(0x2e9),_0xe7674d(0x261)+_0xe7674d(0x2a6)+'ype:\x20({\x20'+_0xe7674d(0x321)+_0xe7674d(0x356)+_0xe7674d(0x232)+_0xe7674d(0x2d8)+'teTarget'+'(to).end'+_0xe7674d(0x2b9)+_0xe7674d(0x35e)+_0xe7674d(0x2eb)+_0xe7674d(0x24e)+_0xe7674d(0x2db)+_0xe7674d(0x333)),{'patched':!![],'source':_0x220aac};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x318a(_0xd5d800,_0x14b436){_0xd5d800=_0xd5d800-0xc9;const _0x1350a8=_0x1350();let _0x318ac9=_0x1350a8[_0xd5d800];return _0x318ac9;}(function(_0x36f830,_0x12bc92){const _0x19a5fa=_0x318a,_0x3bf625=_0x36f830();while(!![]){try{const _0x39a404=-parseInt(_0x19a5fa(0xcf))/0x1*(parseInt(_0x19a5fa(0xce))/0x2)+parseInt(_0x19a5fa(0xe2))/0x3*(parseInt(_0x19a5fa(0xdb))/0x4)+-parseInt(_0x19a5fa(0xe3))/0x5+parseInt(_0x19a5fa(0xd8))/0x6*(parseInt(_0x19a5fa(0xe1))/0x7)+-parseInt(_0x19a5fa(0xd0))/0x8*(-parseInt(_0x19a5fa(0xc9))/0x9)+parseInt(_0x19a5fa(0xd1))/0xa+parseInt(_0x19a5fa(0xd5))/0xb*(parseInt(_0x19a5fa(0xdc))/0xc);if(_0x39a404===_0x12bc92)break;else _0x3bf625['push'](_0x3bf625['shift']());}catch(_0x58e5a6){_0x3bf625['push'](_0x3bf625['shift']());}}}(_0x1350,0xad7e4));import{asRecord,asStringArray,dedupeStrings,getTrimmedString}from'../common/utils.mjs';function _0x1350(){const _0x411993=['enabled','allow','8116WiZptl','281yiAHHO','8048DHBKDB','13956580Mhpswl','legacyPl','length','local','196493fZGZFA','installs','keys','287628cmrAho','has','disabled','52ElXqoI','12xxBwWK','preserve','entries','filter','ginIds','112luEuiH','171804xpgNMe','5662175FhOwLy','522VTxYiu','tPluginI','includes'];_0x1350=function(){return _0x411993;};return _0x1350();}export function syncRuntimeManifestPlugins(_0x5a258e,_0x5a2225,_0x1faced={}){const _0x4c95cc=_0x318a,_0x9bfff4=new Set(_0x1faced[_0x4c95cc(0xda)+'ByDefaul'+_0x4c95cc(0xca)+'ds']??[]),_0x38eb0f=asRecord(_0x1faced[_0x4c95cc(0xd2)+'uginIdsB'+'yPluginI'+'d']),_0x5641b1=new Set(_0x1faced[_0x4c95cc(0xdd)+'AllowPlu'+_0x4c95cc(0xe0)]??[]),_0x5a4f91={...asRecord(_0x5a258e)},_0x592a8d={...asRecord(_0x5a4f91[_0x4c95cc(0xde)])},_0x1438c6={...asRecord(_0x5a4f91[_0x4c95cc(0xd6)])};let _0x5ac9e6=asStringArray(_0x5a4f91[_0x4c95cc(0xcd)]),_0x199a5b=![];for(const _0x182df6 of _0x5a2225??[]){const _0x543be2=getTrimmedString(_0x182df6['pluginId']);if(!_0x543be2)continue;const _0x4731c3=asStringArray(_0x38eb0f[_0x543be2]);for(const _0x35e149 of _0x4731c3){_0x35e149 in _0x592a8d&&(_0x592a8d[_0x543be2]={...asRecord(_0x592a8d[_0x543be2]),...asRecord(_0x592a8d[_0x35e149])},delete _0x592a8d[_0x35e149],_0x199a5b=!![]);}if(_0x4731c3[_0x4c95cc(0xd3)]>0x0){const _0x5d8c47=_0x5ac9e6[_0x4c95cc(0xdf)](_0xb83e73=>!_0x4731c3[_0x4c95cc(0xcb)](_0xb83e73));_0x5d8c47['length']!==_0x5ac9e6['length']&&(_0x5ac9e6=_0x5d8c47,_0x199a5b=!![]);}!(_0x543be2 in _0x592a8d)&&(_0x592a8d[_0x543be2]={'enabled':!_0x9bfff4[_0x4c95cc(0xd9)](_0x543be2)},_0x199a5b=!![]);if(asRecord(_0x592a8d[_0x543be2])[_0x4c95cc(0xcc)]!==![]){const _0x4d5137=dedupeStrings([..._0x5ac9e6,_0x543be2]);_0x4d5137[_0x4c95cc(0xd3)]!==_0x5ac9e6[_0x4c95cc(0xd3)]&&(_0x5ac9e6=_0x4d5137,_0x199a5b=!![]);}getTrimmedString(_0x182df6['source'])===_0x4c95cc(0xd4)&&_0x543be2 in _0x1438c6&&(delete _0x1438c6[_0x543be2],_0x199a5b=!![]);}_0x5a4f91[_0x4c95cc(0xde)]=_0x592a8d,_0x5a4f91[_0x4c95cc(0xcd)]=dedupeStrings([..._0x5ac9e6,...[..._0x5641b1][_0x4c95cc(0xdf)](_0x38baa1=>{const _0x16b61c=_0x4c95cc,_0x374c96=asRecord(_0x592a8d[_0x38baa1]);return _0x374c96[_0x16b61c(0xcc)]!==![];})]);if(Object[_0x4c95cc(0xd7)](_0x1438c6)[_0x4c95cc(0xd3)]>0x0)_0x5a4f91[_0x4c95cc(0xd6)]=_0x1438c6;else delete _0x5a4f91[_0x4c95cc(0xd6)];return{'plugins':_0x5a4f91,'changed':_0x199a5b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4376ae=_0x5c94;function _0x1dc5(){const _0x4dd2f4=['string','has','sessionF','text','50924uuKwaN','42mfWAGA','13350816atNNRQ','sessionK','sessions','449472YYLyAA','content','316589xlFsch','quired','keepUnti','parse','pop','message','65dVuxtF','sessionI','sourceSe','main','session','role','filter','ionEntry','isFinite','split','push','cutoffRo','39262OjpRXj','join','d\x20is\x20req','agent','number','getSessi','user','ssionKey','upsertSe','keys','assistan','entries','4741CcFQhj','2230DpxrcL','utf8','map','1551744pYzgXX','ile','18XuEhTo','readSess','agents','9gahYJI','POSITIVE','agentId','type','isArray','cutoffTe','trim','length','slice','lTs'];_0x1dc5=function(){return _0x4dd2f4;};return _0x1dc5();}(function(_0x4861f9,_0x3fd4ec){const _0x44e680=_0x5c94,_0x30685d=_0x4861f9();while(!![]){try{const _0x584403=-parseInt(_0x44e680(0x1b3))/0x1*(parseInt(_0x44e680(0x1c5))/0x2)+-parseInt(_0x44e680(0x19f))/0x3+-parseInt(_0x44e680(0x19a))/0x4*(parseInt(_0x44e680(0x1a7))/0x5)+-parseInt(_0x44e680(0x19b))/0x6*(parseInt(_0x44e680(0x1a1))/0x7)+parseInt(_0x44e680(0x1c3))/0x8*(parseInt(_0x44e680(0x18c))/0x9)+parseInt(_0x44e680(0x1c0))/0xa*(-parseInt(_0x44e680(0x1bf))/0xb)+parseInt(_0x44e680(0x19c))/0xc;if(_0x584403===_0x3fd4ec)break;else _0x30685d['push'](_0x30685d['shift']());}catch(_0x190c61){_0x30685d['push'](_0x30685d['shift']());}}}(_0x1dc5,0x36f7d));import{existsSync}from'node:fs';import{copyFile,mkdir,readFile,writeFile}from'node:fs/promises';import{dirname,extname,join}from'node:path';import{asRecord}from'../common/utils.mjs';function _0x5c94(_0x5861da,_0x2901c7){_0x5861da=_0x5861da-0x18c;const _0x1dc50f=_0x1dc5();let _0x5c9450=_0x1dc50f[_0x5861da];return _0x5c9450;}import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const CLONED_AGENT_SESSION_EXCLUDED_FIELDS=new Set([_0x4376ae(0x19d)+'ey','sessionI'+'d','label',_0x4376ae(0x198)+_0x4376ae(0x1c4)]);function extractAgentIdFromSessionKey(_0x5b7c12){const _0x5627b9=_0x4376ae,_0x36f57f=String(_0x5b7c12||'')[_0x5627b9(0x1b0)](':'),_0x188c7d=_0x36f57f[0x1]?.[_0x5627b9(0x192)]();return _0x188c7d||_0x5627b9(0x1aa);}function resolveNewSessionFilePath(_0x2c3e56,_0x462a29,_0x3895d5,_0x28936e,_0x2204b9){const _0x2d2a25=_0x4376ae,_0x3455b7=typeof _0x462a29[_0x2d2a25(0x198)+_0x2d2a25(0x1c4)]===_0x2d2a25(0x196)?_0x462a29['sessionF'+_0x2d2a25(0x1c4)][_0x2d2a25(0x192)]():'';if(_0x3455b7)return _0x3455b7;const _0x55e4d5=_0x3895d5&&typeof _0x3895d5[_0x2d2a25(0x198)+_0x2d2a25(0x1c4)]===_0x2d2a25(0x196)?extname(_0x3895d5[_0x2d2a25(0x198)+_0x2d2a25(0x1c4)]['trim']()):'';return join(_0x2c3e56,_0x2d2a25(0x1c7),_0x2204b9,_0x2d2a25(0x19e),''+_0x28936e+(_0x55e4d5||'.jsonl'));}function cloneForkedSessionExtraFields(_0x46d5ea){const _0x11da13=_0x4376ae;if(!_0x46d5ea)return{};const _0x48a3d8={};for(const [_0x27fa7c,_0x595c57]of Object[_0x11da13(0x1be)](_0x46d5ea)){if(CLONED_AGENT_SESSION_EXCLUDED_FIELDS[_0x11da13(0x197)](_0x27fa7c))continue;_0x48a3d8[_0x27fa7c]=_0x595c57;}return _0x48a3d8;}async function copySessionFileIfNeeded(_0x102c19,_0x535388){const _0x131f9d=_0x4376ae;if(!_0x102c19||!_0x535388)return;const _0x25bc2d=typeof _0x102c19['sessionF'+_0x131f9d(0x1c4)]===_0x131f9d(0x196)?_0x102c19['sessionF'+_0x131f9d(0x1c4)][_0x131f9d(0x192)]():'',_0x2ec1df=String(_0x535388||'')[_0x131f9d(0x192)]();if(!_0x25bc2d||!_0x2ec1df||_0x25bc2d===_0x2ec1df)return;if(!existsSync(_0x25bc2d))return;await mkdir(dirname(_0x2ec1df),{'recursive':!![]}),await copyFile(_0x25bc2d,_0x2ec1df);}function extractMessageEntryText(_0x5dc595){const _0x33703c=_0x4376ae,_0x1d8273=asRecord(_0x5dc595['message']),_0x14b9aa=_0x1d8273[_0x33703c(0x1a0)];if(typeof _0x14b9aa==='string')return _0x14b9aa;if(!Array[_0x33703c(0x190)](_0x14b9aa))return'';return _0x14b9aa[_0x33703c(0x1c2)](_0x52ba42=>{const _0x2096c4=_0x33703c,_0x5db256=asRecord(_0x52ba42);return _0x5db256['type']===_0x2096c4(0x199)&&typeof _0x5db256[_0x2096c4(0x199)]==='string'?_0x5db256[_0x2096c4(0x199)]:'';})[_0x33703c(0x1ad)](Boolean)[_0x33703c(0x1b4)]('\x0a');}function extractMessageEntryRole(_0xce83b2){const _0x25abbc=_0x4376ae,_0x3217f6=asRecord(_0xce83b2[_0x25abbc(0x1a6)]);if(typeof _0x3217f6[_0x25abbc(0x1ac)]===_0x25abbc(0x196))return _0x3217f6[_0x25abbc(0x1ac)];if(typeof _0xce83b2[_0x25abbc(0x1ac)]===_0x25abbc(0x196))return _0xce83b2[_0x25abbc(0x1ac)];return'';}function parseJsonLine(_0xb5a408){const _0x3d48f4=_0x4376ae;try{const _0x52b00a=JSON[_0x3d48f4(0x1a4)](_0xb5a408);return asRecord(_0x52b00a);}catch{return null;}}function entryTimestampMs(_0x1b572c){const _0x5c7a2b=_0x4376ae,_0x22dfb9=_0x1b572c['timestam'+'p'];if(typeof _0x22dfb9===_0x5c7a2b(0x196)){const _0xd15e01=Date[_0x5c7a2b(0x1a4)](_0x22dfb9);return Number[_0x5c7a2b(0x1af)](_0xd15e01)?_0xd15e01:null;}if(typeof _0x22dfb9===_0x5c7a2b(0x1b7)&&Number[_0x5c7a2b(0x1af)](_0x22dfb9))return _0x22dfb9;return null;}async function trimSessionFileForFork(_0x1d25a6,_0x5b94a6){const _0xe03f20=_0x4376ae;if(!_0x1d25a6||!existsSync(_0x1d25a6))return;const {keepUntilTs:_0x293505,cutoffRole:_0xd146aa,cutoffText:_0x836cc6}=_0x5b94a6,_0xda12e2=typeof _0x293505===_0xe03f20(0x1b7)&&Number['isFinite'](_0x293505),_0x3cdf34=typeof _0x836cc6===_0xe03f20(0x196)?_0x836cc6[_0xe03f20(0x192)]():'',_0x51604b=_0xd146aa===_0xe03f20(0x1b6)?_0xe03f20(0x1bd)+'t':_0xd146aa===_0xe03f20(0x1b9)?_0xe03f20(0x1b9):'',_0x545199=Boolean(_0x51604b&&_0x3cdf34);if(!_0xda12e2&&!_0x545199)return;let _0x1fa81d='';try{_0x1fa81d=await readFile(_0x1d25a6,_0xe03f20(0x1c1));}catch{return;}const _0x57ffef=_0x1fa81d['split']('\x0a');let _0x28416c=-0x1;const _0x51fafd=_0xda12e2?_0x293505+0xa*0x3c*0x3e8:Number[_0xe03f20(0x18d)+'_INFINIT'+'Y'];if(_0x545199)for(let _0x53ac1e=0x0;_0x53ac1e<_0x57ffef[_0xe03f20(0x193)];_0x53ac1e+=0x1){const _0x5a90ec=_0x57ffef[_0x53ac1e][_0xe03f20(0x192)]();if(!_0x5a90ec)continue;const _0x4e66f1=parseJsonLine(_0x5a90ec);if(!_0x4e66f1||_0x4e66f1[_0xe03f20(0x18f)]!=='message')continue;if(extractMessageEntryRole(_0x4e66f1)!==_0x51604b)continue;const _0x417651=extractMessageEntryText(_0x4e66f1)['trim']();if(!_0x417651||!_0x417651['includes'](_0x3cdf34))continue;const _0x284dcf=entryTimestampMs(_0x4e66f1);if(_0x284dcf!==null&&_0x284dcf>_0x51fafd)continue;_0x28416c=_0x53ac1e;}let _0x339ea0=[];if(_0x28416c>=0x0)_0x339ea0=_0x57ffef[_0xe03f20(0x194)](0x0,_0x28416c+0x1);else{if(_0xda12e2)for(const _0x4c60fc of _0x57ffef){const _0x966ff7=_0x4c60fc[_0xe03f20(0x192)]();if(!_0x966ff7)continue;const _0x2a1837=parseJsonLine(_0x966ff7);if(!_0x2a1837){_0x339ea0['push'](_0x4c60fc);continue;}if(_0x2a1837['type']===_0xe03f20(0x1ab)){_0x339ea0[_0xe03f20(0x1b1)](_0x4c60fc);continue;}const _0x216c54=entryTimestampMs(_0x2a1837);if(_0x216c54===null||_0x216c54<=_0x293505)_0x339ea0[_0xe03f20(0x1b1)](_0x4c60fc);}}while(_0x339ea0[_0xe03f20(0x193)]>0x0&&_0x339ea0[_0x339ea0[_0xe03f20(0x193)]-0x1][_0xe03f20(0x192)]()==='')_0x339ea0[_0xe03f20(0x1a5)]();await writeFile(_0x1d25a6,_0x339ea0[_0xe03f20(0x1b4)]('\x0a')+'\x0a',_0xe03f20(0x1c1));}export function createAgentSessionsMapStore({stateDir:_0x112899}){const _0x5bb453=createSessionSqliteStore({'stateDir':_0x112899});async function _0x4ddaed(_0x5e0487={}){const _0x591004=_0x5c94,_0x1f2a93=String(_0x5e0487[_0x591004(0x18e)]||_0x591004(0x1aa));return await _0x5bb453['getSessi'+'onsMap'](_0x1f2a93);}async function _0x65f354(_0x3c406c={}){const _0x5b58ad=_0x5c94,_0x16ae7a=String(_0x3c406c[_0x5b58ad(0x19d)+'ey']||'')[_0x5b58ad(0x192)](),_0x35335d=String(_0x3c406c[_0x5b58ad(0x1a8)+'d']||'')['trim']();if(!_0x16ae7a)throw new Error('sessionK'+'ey\x20is\x20re'+_0x5b58ad(0x1a2));if(!_0x35335d)throw new Error(_0x5b58ad(0x1a8)+_0x5b58ad(0x1b5)+'uired');const _0x58dba1=extractAgentIdFromSessionKey(_0x16ae7a),_0x32404f=asRecord(await _0x5bb453[_0x5b58ad(0x1c6)+_0x5b58ad(0x1ae)](_0x16ae7a)),_0x5becf8=String(_0x3c406c[_0x5b58ad(0x1a9)+_0x5b58ad(0x1ba)]||'')[_0x5b58ad(0x192)](),_0x3ed0cf=_0x5becf8?extractAgentIdFromSessionKey(_0x5becf8):_0x58dba1,_0x1c0f98=_0x5becf8?asRecord(await _0x5bb453[_0x5b58ad(0x1c6)+_0x5b58ad(0x1ae)](_0x5becf8)):null,_0x5836a5=_0x1c0f98&&Object[_0x5b58ad(0x1bc)](_0x1c0f98)[_0x5b58ad(0x193)]>0x0,_0xf3b2c9=resolveNewSessionFilePath(_0x112899,_0x32404f,_0x5836a5?_0x1c0f98:null,_0x35335d,_0x58dba1),_0x3b78be=typeof _0x3c406c[_0x5b58ad(0x1a3)+_0x5b58ad(0x195)]===_0x5b58ad(0x1b7)&&Number[_0x5b58ad(0x1af)](_0x3c406c[_0x5b58ad(0x1a3)+_0x5b58ad(0x195)])?_0x3c406c['keepUnti'+_0x5b58ad(0x195)]:null,_0x3dbd65=typeof _0x3c406c[_0x5b58ad(0x1b2)+'le']==='string'?_0x3c406c[_0x5b58ad(0x1b2)+'le']:null,_0x1fb846=typeof _0x3c406c['cutoffTe'+'xt']===_0x5b58ad(0x196)?_0x3c406c[_0x5b58ad(0x191)+'xt']:null,_0x54e8df={..._0x32404f,...cloneForkedSessionExtraFields(_0x5836a5?_0x1c0f98:null),'agentId':_0x58dba1,'sessionKey':_0x16ae7a,'sessionId':_0x35335d,'sessionFile':_0xf3b2c9,..._0x5836a5?{'forkedFromParent':!![]}:{}};return await copySessionFileIfNeeded(_0x5836a5?_0x1c0f98:null,_0xf3b2c9),_0x5836a5&&(_0x3b78be!==null||_0x3dbd65&&_0x1fb846)&&await trimSessionFileForFork(_0xf3b2c9,{'keepUntilTs':_0x3b78be,'cutoffRole':_0x3dbd65,'cutoffText':_0x1fb846}),await _0x5bb453[_0x5b58ad(0x1bb)+'ssionEnt'+'ry']({'agentId':_0x58dba1,'sessionKey':_0x16ae7a,'entry':_0x54e8df}),await _0x5bb453[_0x5b58ad(0x1b8)+'onsMap'](_0x58dba1);}return{'get':_0x4ddaed,'upsert':_0x65f354};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x503c33,_0x320255){const _0x3859b1=_0x5e56,_0x475baa=_0x503c33();while(!![]){try{const _0x2972e1=parseInt(_0x3859b1(0x1d5))/0x1+parseInt(_0x3859b1(0x1c7))/0x2*(-parseInt(_0x3859b1(0x1d3))/0x3)+parseInt(_0x3859b1(0x1b7))/0x4*(-parseInt(_0x3859b1(0x1d7))/0x5)+-parseInt(_0x3859b1(0x1c4))/0x6+parseInt(_0x3859b1(0x1b6))/0x7*(-parseInt(_0x3859b1(0x1b4))/0x8)+parseInt(_0x3859b1(0x1b9))/0x9*(parseInt(_0x3859b1(0x1cd))/0xa)+parseInt(_0x3859b1(0x1c9))/0xb;if(_0x2972e1===_0x320255)break;else _0x475baa['push'](_0x475baa['shift']());}catch(_0x3d3724){_0x475baa['push'](_0x475baa['shift']());}}}(_0x4dcd,0x47cc7));function _0x5e56(_0x1a9b1c,_0x3416ff){_0x1a9b1c=_0x1a9b1c-0x1b2;const _0x4dcdaf=_0x4dcd();let _0x5e565a=_0x4dcdaf[_0x1a9b1c];return _0x5e565a;}import{join}from'node:path';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const BRIDGE_STORE_CACHE=new Map();function resolveStateDirFromStorePath(_0x1c0ceb){const _0x488ad7=_0x5e56,_0x31dea6=String(_0x1c0ceb||'')[_0x488ad7(0x1be)+'ll']('\x5c','/'),_0x22b9ff=_0x488ad7(0x1c8),_0x32bc97=_0x31dea6[_0x488ad7(0x1ba)](_0x22b9ff);if(_0x32bc97<0x0){const _0x58a58c=_0x31dea6[_0x488ad7(0x1b5)](_0x488ad7(0x1bb)+'s/')[0x0];return _0x58a58c||_0x31dea6;}return _0x31dea6[_0x488ad7(0x1cc)](0x0,_0x32bc97);}function createBridgeStore(_0x3a1d28){const _0x3df2d8=_0x5e56,_0x34f44c=resolveStateDirFromStorePath(_0x3a1d28),_0x5d0841=join(_0x34f44c,_0x3df2d8(0x1d8),_0x3df2d8(0x1ce)+'lite'),_0x47cc20=_0x34f44c+'::'+_0x5d0841,_0x2a8967=BRIDGE_STORE_CACHE[_0x3df2d8(0x1d6)](_0x47cc20);if(_0x2a8967)return _0x2a8967;const _0x594555=createSessionSqliteStore({'stateDir':_0x34f44c,'dbPath':_0x5d0841});return BRIDGE_STORE_CACHE[_0x3df2d8(0x1cf)](_0x47cc20,_0x594555),_0x594555;}function cloneStoreObject(_0x40899b){const _0x8bb3e=_0x5e56;return JSON[_0x8bb3e(0x1d4)](JSON[_0x8bb3e(0x1bd)+'y'](_0x40899b||{}));}export function loadSessionStore(_0xe64838,_0x59d57a={}){const _0xf35ebb=_0x5e56,_0x2bdab2=createBridgeStore(_0xe64838),_0x4395f1=_0x2bdab2[_0xf35ebb(0x1ca)+_0xf35ebb(0x1d0)+_0xf35ebb(0x1bc)](_0xe64838);return _0x59d57a[_0xf35ebb(0x1b2)]===![]?_0x4395f1:cloneStoreObject(_0x4395f1);}export async function saveSessionStore(_0x3db5da,_0x499ca6){const _0x268fd6=_0x5e56,_0xc531a0=createBridgeStore(_0x3db5da);return await _0xc531a0[_0x268fd6(0x1c6)+_0x268fd6(0x1d1)](_0x3db5da,_0x499ca6);}export async function updateSessionStore(_0x28890b,_0x55840b,_0x2a1f0e){const _0x1b8961=_0x5e56,_0x3ba1ec=createBridgeStore(_0x28890b);return await _0x3ba1ec[_0x1b8961(0x1c0)+_0x1b8961(0x1c5)+'re'](_0x28890b,_0x55840b,_0x2a1f0e);}export async function updateSessionStoreEntry(_0x45d2fb){const _0x41bf40=_0x5e56,_0x5e10c9=createBridgeStore(_0x45d2fb[_0x41bf40(0x1b3)+'h']);return await _0x5e10c9['updateSe'+_0x41bf40(0x1c5)+'reEntry'](_0x45d2fb);}export async function applySessionStoreEntryPatch(_0x30664f){const _0x522e12=_0x5e56,_0x231084=createBridgeStore(_0x30664f['storePat'+'h']);return await _0x231084['applySes'+_0x522e12(0x1c1)+_0x522e12(0x1d2)+_0x522e12(0x1c2)](_0x30664f);}export async function writeSessionStoreAtomic(_0x40bc07){const _0x993dab=_0x5e56,_0x20541f=createBridgeStore(_0x40bc07[_0x993dab(0x1b3)+'h']);return await _0x20541f['writeSes'+_0x993dab(0x1c1)+_0x993dab(0x1c3)](_0x40bc07);}function _0x4dcd(){const _0x34195a=['ssionSto','saveSess','2672rRmQVT','/agents/','6542679QFLomD','readStor','all','slice','10lOjatq','index.sq','set','eByPathS','ionStore','eEntryPa','3szWPyv','parse','298657YzrNHY','get','10FhbFRF','sessions','clone','storePat','1761944ThAdAy','split','7Flrbsb','815916bMizID','map','4886631AFDdsy','indexOf','/session','ync','stringif','replaceA','values','updateSe','sionStor','tch','eAtomic','3076686kkZmqg'];_0x4dcd=function(){return _0x34195a;};return _0x4dcd();}export async function closeBridgeStores(){const _0x2f4dcc=_0x5e56,_0x123c37=[...BRIDGE_STORE_CACHE[_0x2f4dcc(0x1bf)]()];BRIDGE_STORE_CACHE['clear'](),await Promise[_0x2f4dcc(0x1cb)](_0x123c37[_0x2f4dcc(0x1b8)](_0x19d61e=>_0x19d61e['close']()));}
|