@wujie-shell/core 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/wujie-shell.mjs +10 -30
- 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/codex-home.mjs +1 -0
- 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 -1
- 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 -1
- 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/instance-identity.mjs +1 -0
- 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 -1
- package/dist/src/events/domain-event-journal.mjs +1 -1
- 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 -1
- 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 -1
- package/dist/src/request-id/runtime-bridge.mjs +1 -1
- package/dist/src/request-id/session-store.mjs +1 -1
- package/dist/src/request-id/title.mjs +1 -1
- package/dist/src/review/controller.mjs +1 -0
- package/dist/src/runtime/cron-missed-run-policy.mjs +1 -1
- 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-attachment-base64.mjs +1 -1
- package/dist/src/runtime/patch-chat-history-mixed-tool-content.mjs +1 -1
- package/dist/src/runtime/patch-codex-isolated-auth.mjs +1 -0
- package/dist/src/runtime/patch-provider-request-id-header.mjs +1 -1
- package/dist/src/runtime/patch-qqbot-outbound-session-route.mjs +1 -1
- package/dist/src/runtime/patch-request-id-title-runtime.mjs +1 -1
- package/dist/src/runtime/patch-session-store-sqlite.mjs +1 -1
- package/dist/src/runtime/patch-weixin-outbound-session-route.mjs +1 -1
- 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 -1
- package/dist/src/sessions/session-runtime-state.mjs +1 -1
- package/dist/src/sessions/session-sqlite-store.mjs +1 -1
- 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 +7 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x442e7b=_0x497f;(function(_0x23e837,_0x4ba461){const _0x876853=_0x497f,_0x8cab12=_0x23e837();while(!![]){try{const _0x2fee03=parseInt(_0x876853(0xb9))/0x1*(-parseInt(_0x876853(0xa1))/0x2)+parseInt(_0x876853(0x9e))/0x3*(parseInt(_0x876853(0x7f))/0x4)+parseInt(_0x876853(0xae))/0x5+parseInt(_0x876853(0x7a))/0x6+-parseInt(_0x876853(0x97))/0x7*(-parseInt(_0x876853(0xb2))/0x8)+-parseInt(_0x876853(0xab))/0x9*(parseInt(_0x876853(0xbc))/0xa)+-parseInt(_0x876853(0x96))/0xb;if(_0x2fee03===_0x4ba461)break;else _0x8cab12['push'](_0x8cab12['shift']());}catch(_0x5ea3e9){_0x8cab12['push'](_0x8cab12['shift']());}}}(_0x2acb,0x95f67));function _0x497f(_0x2f3ad5,_0x4bfc51){_0x2f3ad5=_0x2f3ad5-0x71;const _0x2acbe3=_0x2acb();let _0x497fce=_0x2acbe3[_0x2f3ad5];return _0x497fce;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{join}from'node:path';function _0x2acb(){const _0x436f10=['package.','cli','3207024rKdiOY','ut\x20after','values','cli\x20runt','packageD','16556fhXtnk','trim','close','json','\x20bin\x20was','pipe','\x20signal=','with\x20cod','npmCli','me.','all\x20','info','npm\x20inst','ime\x20depe','--no-fun','cwd','--no-sav','re\x22\x20to\x20r','nd\x20after','nodeExec','version','.\x20Run\x20\x22w','installi','7290338yPCmKu','7zNDFLu','\x20install','runtime:','null','bin','ogger','openclaw','114qtVurl','SIGTERM','join','34TBURxN','ignore','1.0.57','createRu','@larksui','penClaw\x20','ntimeEnv','--no-aud','binPath','stderr','9SkWbex','utf8','ujie-she','5406375MFLEfJ','s\x20missin','te/cli','\x20not\x20fou','3906664berxek','utable','stdout','function','WorkingD','-peer-de','te/cli\x20i','35510iflkNF','data','timeoutM','3807190wOKqZq','label','ncy','string','\x20timed\x20o','eer','toString','\x20depende','kill','runtimeL','install','lark-cli'];_0x2acb=function(){return _0x436f10;};return _0x2acb();}import{spawn}from'node:child_process';const LARK_CLI_PACKAGE=_0x442e7b(0xa5)+_0x442e7b(0xb0),LARK_CLI_VERSION=_0x442e7b(0xa3),NPM_INSTALL_TIMEOUT_MS=0xf*0x3c*0x3e8;async function runProcess(_0xa761d6,_0x418c29,_0xbb572b={}){const _0x480fd1=_0x442e7b,_0x2ea9c3=_0xbb572b[_0x480fd1(0xbd)]||[_0xa761d6,..._0x418c29][_0x480fd1(0xa0)]('\x20'),_0x2030f1=_0xbb572b[_0x480fd1(0xbb)+'s']??NPM_INSTALL_TIMEOUT_MS,_0x518046=spawn(_0xa761d6,_0x418c29,{'cwd':_0xbb572b[_0x480fd1(0x8e)],'env':_0xbb572b['env'],'stdio':[_0x480fd1(0xa2),_0x480fd1(0x84),_0x480fd1(0x84)]});return await new Promise((_0x2d9e31,_0x3ab979)=>{const _0x23e878=_0x480fd1;let _0x1ae5df='',_0x265544='',_0xcb9e3f=![];const _0x4d4c84=setTimeout(()=>{const _0xb74e57=_0x497f;if(_0xcb9e3f)return;_0xcb9e3f=!![],_0x518046[_0xb74e57(0x74)](_0xb74e57(0x9f)),_0x3ab979(new Error(_0x2ea9c3+(_0xb74e57(0xc0)+_0xb74e57(0x7b)+'\x20')+_0x2030f1+'ms'));},_0x2030f1);_0x518046[_0x23e878(0xb4)]['on'](_0x23e878(0xba),_0x2a3883=>{const _0x1690bb=_0x23e878;_0x1ae5df+=_0x2a3883[_0x1690bb(0x72)]();}),_0x518046[_0x23e878(0xaa)]['on'](_0x23e878(0xba),_0x56e26f=>{const _0x22879f=_0x23e878;_0x265544+=_0x56e26f[_0x22879f(0x72)]();}),_0x518046['on']('error',_0x12998c=>{if(_0xcb9e3f)return;_0xcb9e3f=!![],clearTimeout(_0x4d4c84),_0x3ab979(_0x12998c);}),_0x518046['on'](_0x23e878(0x81),(_0x309f7c,_0x5d266d)=>{const _0xf3a9fb=_0x23e878;if(_0xcb9e3f)return;_0xcb9e3f=!![],clearTimeout(_0x4d4c84);if(_0x309f7c===0x0){_0x2d9e31({'stdout':_0x1ae5df,'stderr':_0x265544});return;}_0x3ab979(new Error(_0x2ea9c3+('\x20failed\x20'+_0xf3a9fb(0x86)+'e=')+(_0x309f7c??'null')+_0xf3a9fb(0x85)+(_0x5d266d??_0xf3a9fb(0x9a))+'\x0a'+(''+(_0x265544||_0x1ae5df))[_0xf3a9fb(0x80)]()));});});}export function resolveRuntimeLarkCliPackageDir(_0x21cbd5){const _0x2ca40b=_0x442e7b;return join(_0x21cbd5[_0x2ca40b(0x9d)+_0x2ca40b(0xb6)+'ir'],'node_mod'+'ules',_0x2ca40b(0xa5)+'te',_0x2ca40b(0x79));}async function readRuntimeLarkCliPackage(_0xe8e27f){const _0x5387a6=_0x442e7b,_0x3d9126=resolveRuntimeLarkCliPackageDir(_0xe8e27f),_0x5ee8d0=join(_0x3d9126,_0x5387a6(0x78)+_0x5387a6(0x82));if(!existsSync(_0x5ee8d0))return{'packageDir':_0x3d9126,'packageJsonPath':_0x5ee8d0,'pkg':null};try{return{'packageDir':_0x3d9126,'packageJsonPath':_0x5ee8d0,'pkg':JSON['parse'](await readFile(_0x5ee8d0,_0x5387a6(0xac)))};}catch{return{'packageDir':_0x3d9126,'packageJsonPath':_0x5ee8d0,'pkg':null};}}export async function resolveRuntimeLarkCliBin(_0x1bdffe){const _0x3a7754=_0x442e7b,{packageDir:_0x1d191f,pkg:_0x205c75}=await readRuntimeLarkCliPackage(_0x1bdffe),_0x5a7949=typeof _0x205c75?.['bin']===_0x3a7754(0xbf)?_0x205c75[_0x3a7754(0x9b)]:_0x205c75?.[_0x3a7754(0x9b)]&&typeof _0x205c75[_0x3a7754(0x9b)]==='object'?_0x205c75[_0x3a7754(0x9b)]['lark-cli']||Object[_0x3a7754(0x7c)](_0x205c75['bin'])[0x0]:'';return{'packageDir':_0x1d191f,'binPath':_0x5a7949?join(_0x1d191f,_0x5a7949):null};}export async function installRuntimeLarkCliPackage(_0x20edc9,_0x1a6104={}){const _0x40eb03=_0x442e7b,{pkg:_0x49dfb5}=await readRuntimeLarkCliPackage(_0x20edc9),{binPath:_0x55f422,packageDir:_0x5c02dd}=await resolveRuntimeLarkCliBin(_0x20edc9);if(_0x49dfb5?.[_0x40eb03(0x93)]===LARK_CLI_VERSION&&_0x55f422&&existsSync(_0x55f422)){_0x1a6104[_0x40eb03(0x75)+_0x40eb03(0x9c)]?.[_0x40eb03(0x8a)]('lark-cli'+'\x20already'+_0x40eb03(0x98)+'ed',{'version':LARK_CLI_VERSION,'packageDir':_0x5c02dd,'binPath':_0x55f422});return;}const _0x255bcd=typeof _0x1a6104[_0x40eb03(0xa4)+_0x40eb03(0xa7)]===_0x40eb03(0xb5)?await _0x1a6104['createRu'+_0x40eb03(0xa7)](_0x20edc9):process.env,_0x38dab9=LARK_CLI_PACKAGE+'@'+LARK_CLI_VERSION;_0x1a6104[_0x40eb03(0x75)+_0x40eb03(0x9c)]?.['info'](_0x40eb03(0x95)+'ng\x20lark-'+_0x40eb03(0x7d)+_0x40eb03(0x8c)+'ndency',{'version':LARK_CLI_VERSION,'spec':_0x38dab9}),await runProcess(_0x20edc9[_0x40eb03(0x92)+_0x40eb03(0xb3)],[_0x20edc9[_0x40eb03(0x87)],_0x40eb03(0x76),_0x38dab9,'--omit=d'+'ev','--omit=p'+_0x40eb03(0x71),_0x40eb03(0xa8)+'it',_0x40eb03(0x8d)+'d','--legacy'+_0x40eb03(0xb7)+'ps',_0x40eb03(0x8f)+'e'],{'cwd':_0x20edc9[_0x40eb03(0x9d)+_0x40eb03(0xb6)+'ir'],'env':_0x255bcd,'label':_0x40eb03(0x8b)+_0x40eb03(0x89)+_0x38dab9+('\x20runtime'+_0x40eb03(0x73)+_0x40eb03(0xbe))});const _0x1b85b2=await resolveRuntimeLarkCliBin(_0x20edc9);if(!_0x1b85b2[_0x40eb03(0xa9)]||!existsSync(_0x1b85b2[_0x40eb03(0xa9)]))throw new Error(_0x40eb03(0x77)+_0x40eb03(0x83)+_0x40eb03(0xb1)+_0x40eb03(0x91)+'\x20install'+':\x20'+_0x1b85b2['packageD'+'ir']);_0x1a6104[_0x40eb03(0x75)+_0x40eb03(0x9c)]?.['info'](_0x40eb03(0x77)+_0x40eb03(0x98)+'ed',{'version':LARK_CLI_VERSION,'packageDir':_0x1b85b2[_0x40eb03(0x7e)+'ir'],'binPath':_0x1b85b2[_0x40eb03(0xa9)]});}export async function resolveRuntimeLarkCliCommand(_0x3ba697){const _0x5d014a=_0x442e7b,{packageDir:_0x4240ce,binPath:_0x536c9b}=await resolveRuntimeLarkCliBin(_0x3ba697);if(!_0x536c9b||!existsSync(_0x536c9b))throw new Error('Bundled\x20'+_0x5d014a(0xa5)+_0x5d014a(0xb8)+_0x5d014a(0xaf)+'g\x20from\x20O'+_0x5d014a(0xa6)+_0x5d014a(0x99)+'\x20'+_0x4240ce+(_0x5d014a(0x94)+_0x5d014a(0xad)+'ll\x20prepa'+_0x5d014a(0x90)+'ebuild\x20t'+'he\x20runti'+_0x5d014a(0x88)));return{'nodeExecutable':_0x3ba697[_0x5d014a(0x92)+_0x5d014a(0xb3)],'scriptPath':_0x536c9b,'packageDir':_0x4240ce};}export const __test__={'LARK_CLI_PACKAGE':LARK_CLI_PACKAGE,'LARK_CLI_VERSION':LARK_CLI_VERSION,'resolveRuntimeLarkCliBin':resolveRuntimeLarkCliBin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5c29e1,_0x160649){const _0x5f2c41=_0x4e61,_0x3db670=_0x5c29e1();while(!![]){try{const _0xea936c=-parseInt(_0x5f2c41(0x18f))/0x1+-parseInt(_0x5f2c41(0x198))/0x2*(parseInt(_0x5f2c41(0x189))/0x3)+parseInt(_0x5f2c41(0x19d))/0x4+-parseInt(_0x5f2c41(0x187))/0x5*(-parseInt(_0x5f2c41(0x1a2))/0x6)+-parseInt(_0x5f2c41(0x19b))/0x7*(parseInt(_0x5f2c41(0x191))/0x8)+-parseInt(_0x5f2c41(0x188))/0x9*(parseInt(_0x5f2c41(0x1a3))/0xa)+parseInt(_0x5f2c41(0x190))/0xb*(parseInt(_0x5f2c41(0x18c))/0xc);if(_0xea936c===_0x160649)break;else _0x3db670['push'](_0x3db670['shift']());}catch(_0x2069f7){_0x3db670['push'](_0x3db670['shift']());}}}(_0x406d,0x528d0));function _0x406d(){const _0x48af9a=['9336996NotWzJ','\x20a\x20valid','ame','497679FMAGtS','22lXyYgo','24UYEngE','ell','update','\x20Electro','pId\x20must','ce\x20id','setPath','34kCPMKu','appId','replace','1150709bCVesd','trim','233100KDiCEd','setName','productN','hex','wujie-sh','30MIqgGw','2989930lagWYJ','sha256','n\x20instan','321285XFshWG','18cIlxrb','1548Uczksl','getPath','shell\x20ap'];_0x406d=function(){return _0x48af9a;};return _0x406d();}import{join}from'node:path';import{createHash}from'node:crypto';function sanitizePathSegment(_0x134f19){const _0x28bd03=_0x4e61;return String(_0x134f19||'')['trim']()[_0x28bd03(0x19a)](/[^A-Za-z0-9._-]+/g,'-')[_0x28bd03(0x19a)](/^-+|-+$/g,'');}function _0x4e61(_0x129d47,_0xe0a2ad){_0x129d47=_0x129d47-0x187;const _0x406da6=_0x406d();let _0x4e616e=_0x406da6[_0x129d47];return _0x4e616e;}export function resolveElectronUserDataPath(_0x33c24,_0x55b2e6){const _0x2fce59=_0x4e61,_0x109260=String(_0x55b2e6||'')[_0x2fce59(0x19c)](),_0x200422=sanitizePathSegment(_0x109260);if(!_0x200422)throw new Error(_0x2fce59(0x18b)+_0x2fce59(0x195)+'\x20produce'+_0x2fce59(0x18d)+_0x2fce59(0x194)+_0x2fce59(0x1a5)+_0x2fce59(0x196));const _0x5b7f0f=createHash(_0x2fce59(0x1a4))[_0x2fce59(0x193)](_0x109260)['digest'](_0x2fce59(0x1a0))['slice'](0x0,0xc),_0x82417f=_0x200422+'-'+_0x5b7f0f;return join(_0x33c24,_0x2fce59(0x1a1)+_0x2fce59(0x192),_0x82417f);}export function configureElectronInstance(_0x59b47f,_0x112e2f){const _0x2bdd2d=_0x4e61;_0x59b47f[_0x2bdd2d(0x19e)](_0x112e2f[_0x2bdd2d(0x19f)+_0x2bdd2d(0x18e)]);const _0x371e54=resolveElectronUserDataPath(_0x59b47f[_0x2bdd2d(0x18a)]('appData'),_0x112e2f[_0x2bdd2d(0x199)]);return _0x59b47f[_0x2bdd2d(0x197)]('userData',_0x371e54),{'userDataPath':_0x371e54};}
|