opclawtm 1.5.0 → 1.5.2
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.
Potentially problematic release.
This version of opclawtm might be problematic. Click here for more details.
- package/dist/bin/team-manager.js +35 -1
- package/dist/bin/team-setup.js +65 -1
- package/dist/bin/team-uninstall.js +103 -1
- package/dist/cli/commands/agent.command.d.ts.map +1 -1
- package/dist/cli/commands/agent.command.js +261 -1
- package/dist/cli/commands/agent.command.js.map +1 -1
- package/dist/cli/commands/checklist.command.js +77 -1
- package/dist/cli/commands/dept.command.js +119 -1
- package/dist/cli/commands/document.command.js +146 -1
- package/dist/cli/commands/domain.command.js +97 -1
- package/dist/cli/commands/feishu.command.d.ts +13 -0
- package/dist/cli/commands/feishu.command.d.ts.map +1 -1
- package/dist/cli/commands/feishu.command.js +558 -1
- package/dist/cli/commands/feishu.command.js.map +1 -1
- package/dist/cli/commands/job.command.js +168 -1
- package/dist/cli/commands/license.command.js +68 -1
- package/dist/cli/commands/message-failure.command.js +137 -1
- package/dist/cli/commands/message.command.js +129 -1
- package/dist/cli/commands/node.command.js +251 -1
- package/dist/cli/commands/role-flow.command.js +54 -1
- package/dist/cli/commands/skill-pack.command.js +137 -1
- package/dist/cli/commands/status.command.js +61 -1
- package/dist/cli/commands/task.command.js +402 -1
- package/dist/cli/commands/user.command.js +134 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +881 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tui/index.js +492 -1
- package/dist/cli/tui/menus/agent-manage.menu.js +614 -1
- package/dist/cli/tui/menus/dept-manage.menu.js +299 -1
- package/dist/cli/tui/menus/domain-manage.menu.js +208 -1
- package/dist/cli/tui/menus/feishu.menu.js +1808 -1
- package/dist/cli/tui/menus/feishu.menu.js.map +1 -1
- package/dist/cli/tui/menus/job-manage.menu.js +734 -1
- package/dist/cli/tui/menus/license.menu.js +164 -1
- package/dist/cli/tui/menus/main.menu.js +94 -1
- package/dist/cli/tui/menus/reset.menu.js +832 -1
- package/dist/cli/tui/menus/status.menu.js +123 -1
- package/dist/cli/tui/menus/task-manage.menu.js +129 -1
- package/dist/cli/tui/menus/team-create.menu.js +353 -1
- package/dist/config.js +74 -1
- package/dist/core/auth/index.js +22 -1
- package/dist/core/auth/middleware.js +456 -1
- package/dist/core/auth/storage.js +280 -1
- package/dist/core/models/types.js +9 -1
- package/dist/core/services/agent-template.service.js +88 -1
- package/dist/core/services/agent.service.d.ts +1 -1
- package/dist/core/services/agent.service.d.ts.map +1 -1
- package/dist/core/services/agent.service.js +381 -1
- package/dist/core/services/agent.service.js.map +1 -1
- package/dist/core/services/auth-profiles.service.js +220 -1
- package/dist/core/services/checklist.service.js +240 -1
- package/dist/core/services/config-tracker.service.js +1148 -1
- package/dist/core/services/crypto.service.js +400 -1
- package/dist/core/services/dept.service.js +260 -1
- package/dist/core/services/document.service.js +368 -1
- package/dist/core/services/domain.service.js +98 -1
- package/dist/core/services/feishu.service.js +165 -1
- package/dist/core/services/index.js +89 -1
- package/dist/core/services/job.service.js +190 -1
- package/dist/core/services/log.service.js +237 -1
- package/dist/core/services/message-failure.service.js +112 -1
- package/dist/core/services/message.service.js +374 -1
- package/dist/core/services/node.service.js +257 -1
- package/dist/core/services/openclaw-config.service.js +268 -1
- package/dist/core/services/preset-loader.service.js +379 -1
- package/dist/core/services/role-flow.service.js +47 -1
- package/dist/core/services/setup.service.js +337 -1
- package/dist/core/services/skill-pack.service.js +113 -1
- package/dist/core/services/task.service.js +397 -1
- package/dist/core/services/template.service.js +88 -1
- package/dist/core/services/user.service.js +111 -1
- package/dist/core/utils/agent-guide-generator.js +187 -1
- package/dist/core/utils/credentials-cleanup.js +256 -1
- package/dist/core/utils/index.js +462 -1
- package/dist/core/utils/openclaw-helper.js +1670 -1
- package/dist/core/utils/template-generator.js +170 -1
- package/dist/db/index.js +405 -1
- package/dist/db/repositories/agent-template.repo.js +108 -1
- package/dist/db/repositories/agent.repo.d.ts +1 -1
- package/dist/db/repositories/agent.repo.d.ts.map +1 -1
- package/dist/db/repositories/agent.repo.js +103 -1
- package/dist/db/repositories/agent.repo.js.map +1 -1
- package/dist/db/repositories/base.repository.js +107 -1
- package/dist/db/repositories/company.repo.js +33 -1
- package/dist/db/repositories/config-change.repo.js +119 -1
- package/dist/db/repositories/dept.repo.js +66 -1
- package/dist/db/repositories/document.repo.js +51 -1
- package/dist/db/repositories/domain.repo.js +79 -1
- package/dist/db/repositories/index.js +81 -1
- package/dist/db/repositories/init-session.repo.js +112 -1
- package/dist/db/repositories/job.repo.js +119 -1
- package/dist/db/repositories/message-failure.repo.js +141 -1
- package/dist/db/repositories/message-log.repo.js +64 -1
- package/dist/db/repositories/node.repo.js +276 -1
- package/dist/db/repositories/role-flow.repo.js +83 -1
- package/dist/db/repositories/skill-pack.repo.js +149 -1
- package/dist/db/repositories/task.repo.js +381 -1
- package/dist/db/repositories/template.repo.js +66 -1
- package/dist/db/repositories/user.repo.js +75 -1
- package/package.json +2 -2
- package/resources/preset-data-hash.enc +1 -1
- package/resources/preset-data.enc +1 -1
|
@@ -1 +1,47 @@
|
|
|
1
|
-
'use strict';function _0x5d03(_0x4dcfe7,_0x530c87){_0x4dcfe7=_0x4dcfe7-(0x76+-0x41f*-0x2+0x15c*-0x6);const _0x40fa65=_0x2c79();let _0x3a62e8=_0x40fa65[_0x4dcfe7];if(_0x5d03['OvzixZ']===undefined){var _0xa1b174=function(_0x53cb4f){const _0x2b55d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x552d42='',_0x5ae959='';for(let _0x435504=-0x25da+0xf31*-0x1+0x350b,_0x19f825,_0x288605,_0xa71d95=-0xbc6+-0x1979*-0x1+-0xdb3;_0x288605=_0x53cb4f['charAt'](_0xa71d95++);~_0x288605&&(_0x19f825=_0x435504%(-0xc59*-0x3+-0xb17+-0x19f0)?_0x19f825*(0x1df4+-0x6b9*-0x4+-0x3898)+_0x288605:_0x288605,_0x435504++%(-0x11f5+-0x106f+0x8*0x44d))?_0x552d42+=String['fromCharCode'](-0x16fd*0x1+-0x23ef+0x3beb&_0x19f825>>(-(-0x21a9+-0x265f+0x480a)*_0x435504&0x1e1d*-0x1+0xb*-0x8e+0x243d)):-0x71b*-0x1+-0x6f0+-0x2b){_0x288605=_0x2b55d2['indexOf'](_0x288605);}for(let _0x19a87a=-0x164*0x2+-0x3f1*-0x5+0x7*-0x26b,_0x560063=_0x552d42['length'];_0x19a87a<_0x560063;_0x19a87a++){_0x5ae959+='%'+('00'+_0x552d42['charCodeAt'](_0x19a87a)['toString'](0x134a*-0x1+-0xcd6+0x2030))['slice'](-(-0x4*-0x417+-0x18de+0x884));}return decodeURIComponent(_0x5ae959);};const _0xb6825c=function(_0x7c9353,_0x5c3cfd){let _0x5e451c=[],_0x5b2330=0x1a19+-0x7a*-0xd+-0x204b*0x1,_0x1a78ee,_0xde54b4='';_0x7c9353=_0xa1b174(_0x7c9353);let _0x4e34a3;for(_0x4e34a3=-0x5ae+0x1*-0x1eaf+0x245d;_0x4e34a3<0x1400+-0x541+-0xdbf;_0x4e34a3++){_0x5e451c[_0x4e34a3]=_0x4e34a3;}for(_0x4e34a3=0x166e+0x90c+-0x1f7a;_0x4e34a3<0x341+-0xe16+-0xe9*-0xd;_0x4e34a3++){_0x5b2330=(_0x5b2330+_0x5e451c[_0x4e34a3]+_0x5c3cfd['charCodeAt'](_0x4e34a3%_0x5c3cfd['length']))%(-0x6d*-0x40+-0x562+0x1*-0x14de),_0x1a78ee=_0x5e451c[_0x4e34a3],_0x5e451c[_0x4e34a3]=_0x5e451c[_0x5b2330],_0x5e451c[_0x5b2330]=_0x1a78ee;}_0x4e34a3=0x452*0x5+-0xc98+-0x902*0x1,_0x5b2330=-0x2b3*0x6+0x306+0xd2c;for(let _0x157878=-0x26*0xd3+-0x1*0x377+0x2ad*0xd;_0x157878<_0x7c9353['length'];_0x157878++){_0x4e34a3=(_0x4e34a3+(-0x1762+-0xdd1+0x2534))%(-0x576+0x125f*0x1+-0x1*0xbe9),_0x5b2330=(_0x5b2330+_0x5e451c[_0x4e34a3])%(-0x49*0x14+0x1aa4+-0x13f0),_0x1a78ee=_0x5e451c[_0x4e34a3],_0x5e451c[_0x4e34a3]=_0x5e451c[_0x5b2330],_0x5e451c[_0x5b2330]=_0x1a78ee,_0xde54b4+=String['fromCharCode'](_0x7c9353['charCodeAt'](_0x157878)^_0x5e451c[(_0x5e451c[_0x4e34a3]+_0x5e451c[_0x5b2330])%(0x697*-0x4+0x1e07*-0x1+-0x1*-0x3963)]);}return _0xde54b4;};_0x5d03['lRRlvz']=_0xb6825c,_0x5d03['lDhSGk']={},_0x5d03['OvzixZ']=!![];}const _0x2c576f=_0x40fa65[-0x19f3+-0xa03+-0x23f6*-0x1],_0x2763c2=_0x4dcfe7+_0x2c576f,_0x58690f=_0x5d03['lDhSGk'][_0x2763c2];return!_0x58690f?(_0x5d03['BeIGdz']===undefined&&(_0x5d03['BeIGdz']=!![]),_0x3a62e8=_0x5d03['lRRlvz'](_0x3a62e8,_0x530c87),_0x5d03['lDhSGk'][_0x2763c2]=_0x3a62e8):_0x3a62e8=_0x58690f,_0x3a62e8;}(function(_0x12f54a,_0x5a6d44){const _0xc1052d={_0x460831:'fPcD',_0x1bbc77:0x10a,_0x138862:0xf8,_0x26a954:0xe2,_0x2efc39:'u@O9',_0x29e669:0xee,_0x9c5871:0xb4,_0x3037ea:'14V!',_0x52731e:0xd0,_0x56af51:0x115,_0x371aa7:0x11c,_0x4e5262:'qkNE',_0x1c44ee:0x151,_0x26f60b:0x12f,_0x53de5b:'2Ea6',_0x1a4abd:0x163,_0x40f452:0x148,_0x319c5e:0x142,_0x3f1908:0xdf,_0x4da3f0:0xe0,_0x16ba52:'&hz6',_0x36409f:'*qsx'};function _0x2b6874(_0x4f4817,_0x262aff,_0x58e18a,_0x426156){return _0x5d03(_0x426156- -0x1e9,_0x4f4817);}function _0x477e17(_0x199ec2,_0x250756,_0x9edfc1,_0xcf4b9e){return _0x5d03(_0xcf4b9e-0x2e,_0x250756);}const _0x3f2238=_0x12f54a();while(!![]){try{const _0x1061d8=-parseInt(_0x477e17(0x125,_0xc1052d._0x460831,_0xc1052d._0x1bbc77,_0xc1052d._0x138862))/(-0xffc+-0xf2b+0x2*0xf94)+-parseInt(_0x477e17(_0xc1052d._0x26a954,_0xc1052d._0x2efc39,0xeb,_0xc1052d._0x29e669))/(0x2b*-0xd9+0x1eba+0x5bb)+-parseInt(_0x477e17(_0xc1052d._0x9c5871,_0xc1052d._0x3037ea,0xcd,_0xc1052d._0x52731e))/(0x1*-0x641+-0x3*0x18b+0xae5)+parseInt(_0x2b6874(_0xc1052d._0x3037ea,-0x104,-_0xc1052d._0x56af51,-_0xc1052d._0x371aa7))/(0x11b*-0x1+0xfed+-0xece)+parseInt(_0x2b6874(_0xc1052d._0x4e5262,-0x134,-_0xc1052d._0x1c44ee,-_0xc1052d._0x26f60b))/(-0x305+0x1b2*-0xc+0x1762)+parseInt(_0x2b6874(_0xc1052d._0x53de5b,-_0xc1052d._0x1a4abd,-_0xc1052d._0x40f452,-_0xc1052d._0x319c5e))/(0x1ef8+0x2128+-0x401a)*(-parseInt(_0x477e17(_0xc1052d._0x3f1908,'LsMY',_0xc1052d._0x4da3f0,0x10f))/(-0xb98+-0xbc*0x4+0xe8f))+parseInt(_0x2b6874(_0xc1052d._0x16ba52,-0x11e,-0x12c,-0x12b))/(-0xe44+-0x24*0xf2+0x3054)*(parseInt(_0x477e17(0xf3,_0xc1052d._0x36409f,0x11a,0x10d))/(-0x1*-0x12c8+0xe*-0xd3+-0x735));if(_0x1061d8===_0x5a6d44)break;else _0x3f2238['push'](_0x3f2238['shift']());}catch(_0x2b84f9){_0x3f2238['push'](_0x3f2238['shift']());}}}(_0x2c79,0x8*-0x4841+0x3468a+-0x2e662*-0x1));const _0x3c17f1={};_0x3c17f1[_0x1d709d(0x256,0x25c,'u@O9',0x23a)]=!![];function _0x1d709d(_0x3f8ea0,_0x1ccd68,_0x18cd01,_0x13b4ae){return _0x5d03(_0x1ccd68-0x18a,_0x18cd01);}Object[_0x3d65f6('%ybO',0x105,0x10c,0x125)+_0x1d709d(0x272,0x251,'!WC4',0x252)](exports,'__esModule',_0x3c17f1),exports[_0x1d709d(0x22a,0x22a,'J)YF',0x218)+_0x3d65f6('LsMY',0x134,0x126,0x13a)]=exports[_0x1d709d(0x245,0x228,'HCun',0x221)+_0x3d65f6('p06&',0x122,0xe5,0x106)]=void(-0x1*0x16a1+-0xe3f*-0x1+0x862);function _0x3d65f6(_0xe02159,_0x28e0fa,_0x4adcb3,_0x129d02){return _0x5d03(_0x129d02-0x54,_0xe02159);}const role_flow_repo_1=require(_0x3d65f6('HCun',0xcc,0xc2,0xe5)+_0x1d709d(0x251,0x255,'J)YF',0x236)+_0x1d709d(0x242,0x236,'GGnm',0x206)+_0x1d709d(0x264,0x241,'KD%E',0x218)),crypto_service_1=require(_0x1d709d(0x25b,0x268,'oGPM',0x290)+_0x1d709d(0x26d,0x243,'2Ea6',0x253));function _0x2c79(){const _0x44d934=['hsDVAf4','W7L9BdjHCmoyW5/dTJZdUt0','WP3dTSkdegVdT8oUrW','nSkMFYldICk7wSoNC8k3','WRtcR8kRW5ldV109','WRhcOxdcKCkRWPf4WPu1aG','W4VcLSoeWP/cVq','WPldMmkWiSokqhi','vSkOWOxdJCkDkxSBW5rfjCoP','kCoLWQqpmq','WReLqr/cQ8kuWRhcIZy','A2qtgmkmna1fW6jDySkV','WPPHWPbqWOq','c8ogdKFcKG','W4/cMmoeWO/cNLpcJ8k0W58h','W4uVEIVdQW','W4v9FeFcVCk8gq','W5D3f8kRW6yUAq','WQiVW4FdVfBdLxRdOdyv','WRj9W7tdVmkRW4BdMSksqa','W4pcGXFdVIldKse','WOuScmkPW6uytSkJ','W7BdSSo9','lSooAX/cHa','wCk+W7WCWQRdOCorWQFcM8kyW65F','ms3dJ3RcNCkKWPRcHSkNWPq','W4zUemk8W6y','WQSVW7NcVWFcT8kmhG','vGFcNe/dMW','W6KLsYRdGCo6y8oNx8k/','W7JdVmoJjrZdMsm','nIDtB2JdMSkH','WRhcOxxcISk8WOrCWRqJha','WP5ZWP5uWRyaWOJdT8oCdq','kaiWWQ3dJSomFmox','W5lcGXxdRWhdKZOXWOldUW','WQmNkxyujmoM','BtFcI2VdMW','iCoXW5/cKuTFcCoLWRun','WRXWggNcJmk9l8ocD8kHW7yweW','WRpcPCkMW5tdO0m9wCoLwG','sSoWW77dMKZdS33cRfjO','W5raoGJcPW','bbJcJeJdL8ktWRrL','W57cLSogWQFcT1VcICkLW7q','DGtcSMhcP8kUWQVcIgb0','vmktcv7dO8kiW445kYRdKrK','WQWHnhyWjSo+','WPVdSd9WD8k3BW','W5GqW5FcMviFW7BcQdeP','amkSCdxdTSkNqCodwCk8','xCkWWPZdMImCaSoWW4KA','aSo/WRuijCkiDK3cIa','bHJcK0tdPCkqWQLRicS','WQtcMCkPWQJdKW','W718AJbHCmozW53dPZJdOdy','WPrVWRvoWRaCWOu','c8oFc0hcSCoefmo7q0O','cColWOqbeW','WOqEhCk1oCkjW49S','d8oZb8osetzPtb8IW7uS','jsDoCNNdM8kNW4C','W7TOW7hdPgu','W5n9dCknW6WSEmkNW7KQ','WRSthSk7lW','cSkFfuVcM8onvSoQFea','WRpcP8kUsSk0WRD3W6lcHfa','W69VW4RdUKRdI3O','WQSVW7BcVrdcOCkAdXy','WPCEamkOkmkiW4K','mmomW7tcJmob','WQxcTSkSW4xdVW','pXPivmoX','WRf4W7xcPSo2WRdcPCk3CNTYW7hdMq','W4nqW5FdUx0','ttxcPfddKa','hmkIWPGDj8kc','W4P9gIpcIW','xmk4rmkos2S','z3GplJxcJmoGW4RdGCkzxdJdSG','nc55xCohAqPuW6y','txlcVmoFW54','WQFcQ3RcNCkdWPHhWPaifW','W57cRmocsYVcOmoOAeldN8oBba','W68hrIhdVa','WOZdH8kyW5VdRaJdMmk1W5Wsq8krqW','emkQuIFdLG','W4b7FfFcMCk+aq','W6vZW7VdVL3dGh3dQMW','fJJdUvNcTa','iSkSBZNdHmkKxmon','umksd1ZdO8kiW487oI7dIbi','n8kXAcK','W6uVW4JcI0y','wSkLxmkttwbP','z3ZcLthdKCoHWQ/cNmkeWO9uWOa','eqFcKfldISkiWQLUgIS'];_0x2c79=function(){return _0x44d934;};return _0x2c79();}class RoleFlowService{[_0x3d65f6('LsMY',0x108,0x110,0xfe)+'w'](_0x250d09){const _0x34c41b={_0xe14b5b:0x406,_0x413938:'&#%3',_0x7de276:0x3ca,_0xb30179:0x3cd,_0x105169:0x3ef,_0x3c10a1:0x39e,_0x46f7e8:'1AzI',_0x2abf99:0x16e,_0x333631:0x196,_0x2b4c3a:0x170,_0x42a395:0x1cd,_0x2c5835:0x1a1,_0x409bff:0x39d,_0x39bdf0:'uC$I',_0x576c20:0x17e,_0x448bbe:0x175,_0x4a89ba:'FJYL',_0x58a490:0x3ab,_0x274cce:0x3b4,_0x2dc177:0x3ba,_0x42ebe1:0x196,_0x315851:0x186,_0x244a62:'VOrx',_0x2c3a88:0x167,_0x30b544:'Zi27',_0x41523d:0x15c,_0x11351c:'Zu2K',_0x1bd467:'xtSl',_0x325079:0x1a6,_0x25c871:0x422,_0x51d25f:0x3eb,_0x56a8a1:'p06&',_0x3cd762:0x169,_0x10c887:0x157,_0x4fa426:0x404,_0x25bedb:0x3ef,_0x26199f:0x415,_0x4c18f5:'u@O9',_0x50cdc4:0x178,_0x625f80:0x19e,_0x46e28c:0x14e,_0x38637e:0x3e8},_0x52d7cb={_0x49ed08:0x437},_0x30ce1d={_0x5a53cd:0x18b,_0x573cd5:0xb9},_0x47da57={_0x2b8caa:0x18c,_0x5e1c8c:0x29a},_0x4c7912={};_0x4c7912[_0x46f388(_0x34c41b._0xe14b5b,0x3f0,0x3fd,_0x34c41b._0x413938)]=function(_0x4d4ffd,_0x575756){return _0x4d4ffd===_0x575756;},_0x4c7912[_0x46f388(0x39e,_0x34c41b._0x7de276,_0x34c41b._0xb30179,'oGPM')]=function(_0x1e3a89,_0x48a450){return _0x1e3a89===_0x48a450;};function _0x419674(_0x287e4e,_0x50864e,_0x36cdbe,_0x27954c){return _0x3d65f6(_0x36cdbe,_0x50864e-0x120,_0x36cdbe-_0x47da57._0x2b8caa,_0x287e4e- -_0x47da57._0x5e1c8c);}_0x4c7912[_0x46f388(_0x34c41b._0x105169,0x3c6,_0x34c41b._0x3c10a1,_0x34c41b._0x46f7e8)]=_0x419674(-_0x34c41b._0x2abf99,-_0x34c41b._0x333631,'R87X',-_0x34c41b._0x2b4c3a);const _0xfaf8bc=_0x4c7912,_0x718237=role_flow_repo_1[_0x419674(-0x1aa,-0x183,'FJYL',-0x1ab)+_0x419674(-0x19e,-_0x34c41b._0x42a395,'qkNE',-_0x34c41b._0x2c5835)][_0x46f388(0x3a5,0x3c2,_0x34c41b._0x409bff,_0x34c41b._0x39bdf0)](_0x250d09);if(!_0x718237)return null;function _0x46f388(_0x1e9880,_0x2bbce4,_0x4134f4,_0x45ecd4){return _0x1d709d(_0x1e9880-0x1ed,_0x2bbce4-_0x30ce1d._0x5a53cd,_0x45ecd4,_0x45ecd4-_0x30ce1d._0x573cd5);}if(_0xfaf8bc[_0x419674(-_0x34c41b._0x576c20,-_0x34c41b._0x448bbe,_0x34c41b._0x4a89ba,-0x169)](_0x718237[_0x46f388(_0x34c41b._0x58a490,_0x34c41b._0x274cce,_0x34c41b._0x2dc177,'KD%E')],-0x1*0x3f9+-0x1bad+0x25*0xdb)&&(0x17*-0x199+-0x1*-0x164c+0xe73*0x1,crypto_service_1['isEncrypte'+'d'])(_0x718237[_0x419674(-_0x34c41b._0x42ebe1,-_0x34c41b._0x315851,_0x34c41b._0x244a62,-0x1c6)])){if(_0xfaf8bc[_0x419674(-0x163,-_0x34c41b._0x2c3a88,_0x34c41b._0x30b544,-_0x34c41b._0x41523d)](_0xfaf8bc[_0x46f388(0x3be,0x3aa,0x3a2,_0x34c41b._0x11351c)],_0xfaf8bc[_0x419674(-0x190,-0x1af,_0x34c41b._0x1bd467,-_0x34c41b._0x325079)])){const _0x4eb312=(0x236+-0x24a8+0x2272,crypto_service_1[_0x46f388(0x3d2,0x401,_0x34c41b._0x25c871,'%ybO')+'c'])(_0x718237[_0x46f388(_0x34c41b._0x51d25f,0x3e5,0x416,_0x34c41b._0x56a8a1)]),_0x5a16e9={..._0x718237};return _0x5a16e9[_0x419674(-0x184,-_0x34c41b._0x3cd762,'y14j',-_0x34c41b._0x10c887)]=_0x4eb312,_0x5a16e9;}else{const _0x392859={_0x22e1c4:0x2de,_0x65a4d8:0x2da,_0x5f1b86:0x175,_0x206708:0x16a,_0x3f6ea4:0x157,_0x12d3e2:0x15d,_0x4cac13:'R87X',_0x15eeee:0x2a3,_0x5d8dc2:0x318,_0x2d30b1:0x31a,_0x53c3a0:0x329},_0x46d9f2={_0x250bcb:0x58e,_0x2e4ac0:0x79},_0x23929d={'JmhSE':function(_0x46d9d6,_0x1e445b){function _0x185364(_0x5ab4d2,_0x4017b7,_0x3c36a4,_0x17011f){return _0x419674(_0x4017b7-_0x46d9f2._0x250bcb,_0x4017b7-0xbc,_0x5ab4d2,_0x17011f-_0x46d9f2._0x2e4ac0);}return _0xfaf8bc[_0x185364('qkNE',0x414,0x3e6,_0x52d7cb._0x49ed08)](_0x46d9d6,_0x1e445b);}},_0x3af3a5=_0x19c5b6[_0x46f388(_0x34c41b._0x4fa426,_0x34c41b._0x25bedb,_0x34c41b._0x26199f,_0x34c41b._0x4c18f5)+_0x419674(-_0x34c41b._0x50cdc4,-_0x34c41b._0x625f80,'&hz6',-_0x34c41b._0x46e28c)][_0x46f388(0x3c7,_0x34c41b._0x38637e,0x3c1,'sSq$')]();return _0x3af3a5['map'](_0x31e81b=>{const _0x5e6f05={_0xee0afc:0xdc,_0xb1988:0x2b},_0x23b26b={_0x520c30:0x21,_0x3e0a2b:0xf2};function _0x6c69f3(_0x3f8737,_0x831ed3,_0x59adf7,_0x57fc23){return _0x419674(_0x57fc23-_0x23b26b._0x520c30,_0x831ed3-0xf0,_0x59adf7,_0x57fc23-_0x23b26b._0x3e0a2b);}if(_0x23929d[_0x36215f(_0x392859._0x22e1c4,_0x392859._0x65a4d8,0x2f1,'Zu2K')](_0x31e81b[_0x6c69f3(-0x14c,-_0x392859._0x5f1b86,'BMH2',-_0x392859._0x206708)],0xbe*0x18+-0xa76+-0xab*0xb)&&(0x3*0x2e7+-0x10*-0x7e+0xf*-0x11b,_0x23ff82['isEncrypte'+'d'])(_0x31e81b[_0x6c69f3(-_0x392859._0x3f6ea4,-_0x392859._0x12d3e2,_0x392859._0x4cac13,-0x182)])){const _0x2640c8=(0x139a+-0x1*0x3ce+-0xfcc,_0x40a65d[_0x36215f(_0x392859._0x15eeee,0x2ed,0x2cc,'p06&')+'c'])(_0x31e81b[_0x36215f(_0x392859._0x5d8dc2,_0x392859._0x2d30b1,0x302,'2Ea6')]),_0x243a24={..._0x31e81b};return _0x243a24[_0x36215f(0x342,_0x392859._0x53c3a0,0x323,'8I5M')]=_0x2640c8,_0x243a24;}function _0x36215f(_0x54fb15,_0x52874e,_0x534129,_0x8bb68b){return _0x46f388(_0x54fb15-0xd7,_0x534129- -_0x5e6f05._0xee0afc,_0x534129-_0x5e6f05._0xb1988,_0x8bb68b);}return _0x31e81b;});}}return _0x718237;}[_0x3d65f6('14V!',0xb9,0xe0,0xe3)](){const _0x9a60a2={_0x5760a3:'oGPM',_0x1abf10:0x363,_0x29154a:0x378,_0x4bc64c:'fPcD',_0x4e9314:0x24,_0x4c9bd9:0x1b,_0x2b5d43:0x36,_0x95a27a:'!WC4',_0x624589:0x3b5,_0x360d6a:0x3b9,_0x13e535:0x390,_0x15c248:0x37b,_0x325ebe:0x3b1,_0x51a3f9:0x12,_0x3f6953:0x379,_0x5f5301:0x33b,_0x23e6cd:0x363,_0x2d578f:'!WC4',_0x46f482:0x373,_0x22bc51:'y14j',_0x399c47:0x383,_0x1e7806:0x3a3,_0x4128a7:0x3ab,_0x34ccdb:0x46,_0x25ad3c:0x2c},_0x521476={_0x387175:0x457,_0x9151af:0x1a0,_0x332a65:0x162,_0x2a44a8:0x143,_0x693f6d:'VOrx',_0x3dd146:0x16c,_0x15c69c:0x153,_0x349f7f:'oGPM',_0x1288a5:0x189,_0x374489:0x1a8,_0x59f38d:0x1c6,_0x434a61:0x1bd,_0x30fd56:0x1aa,_0x48f8f7:0x1a2,_0x54a39d:'qkNE',_0x3b9ed5:0x428,_0x4a258b:'14V!',_0x6a123:0x183,_0x2183d3:0x161,_0x2717ff:0x45d,_0x147293:0x453,_0x363f00:0x1df,_0x514799:0x194,_0x18c9ca:0x1b0,_0x486874:0x193,_0x12cc5f:'KD%E',_0x3af7cf:0x1e2,_0x2a72e1:0x1a6,_0x218157:'oGPM',_0x3b5628:0x44c,_0x3c64a5:0x432,_0x1668ab:0x436,_0x7dd711:0x429,_0x1b3d64:0x416,_0x4eee24:0x1e3,_0x1ba8b0:0x1b2},_0x415f0a={_0x44950f:0x145},_0x8432b8={_0x3af764:0x233},_0x17087f={};function _0x322878(_0x15b848,_0x341e11,_0x337093,_0x1a884a){return _0x1d709d(_0x15b848-0x146,_0x337093- -_0x8432b8._0x3af764,_0x15b848,_0x1a884a-0x5f);}_0x17087f[_0x3789b0(_0x9a60a2._0x5760a3,0x36e,_0x9a60a2._0x1abf10,_0x9a60a2._0x29154a)]=function(_0x2f777e,_0x1f4aae){return _0x2f777e!==_0x1f4aae;},_0x17087f[_0x322878(_0x9a60a2._0x4bc64c,_0x9a60a2._0x4e9314,_0x9a60a2._0x4c9bd9,_0x9a60a2._0x2b5d43)]=_0x3789b0(_0x9a60a2._0x95a27a,_0x9a60a2._0x624589,_0x9a60a2._0x360d6a,_0x9a60a2._0x13e535),_0x17087f[_0x3789b0('VOrx',_0x9a60a2._0x15c248,0x372,0x37a)]=function(_0x1126be,_0x38a592){return _0x1126be===_0x38a592;},_0x17087f[_0x3789b0('&#%3',0x39b,_0x9a60a2._0x325ebe,0x38e)]=_0x322878('xtSl',-_0x9a60a2._0x51a3f9,-0x19,0xb);const _0x16d810=_0x17087f;function _0x3789b0(_0x352278,_0x527831,_0x53e636,_0x3b937e){return _0x1d709d(_0x352278-0x12e,_0x3b937e-_0x415f0a._0x44950f,_0x352278,_0x3b937e-0x17c);}const _0xddc002=role_flow_repo_1[_0x3789b0('ACf5',_0x9a60a2._0x3f6953,_0x9a60a2._0x5f5301,_0x9a60a2._0x23e6cd)+_0x3789b0(_0x9a60a2._0x2d578f,_0x9a60a2._0x46f482,0x3ab,0x394)][_0x3789b0(_0x9a60a2._0x22bc51,_0x9a60a2._0x399c47,_0x9a60a2._0x1e7806,_0x9a60a2._0x4128a7)]();return _0xddc002[_0x322878('8I5M',_0x9a60a2._0x34ccdb,0x39,_0x9a60a2._0x25ad3c)](_0x29e5d2=>{const _0x55f237={_0x18ec0f:0x1c,_0x5b9de1:0xe2};function _0xf5fedf(_0x529bbe,_0x5acf13,_0x51f13d,_0x39acc4){return _0x3789b0(_0x5acf13,_0x5acf13-0x12a,_0x51f13d-0x161,_0x529bbe-0xbf);}function _0x2ccd29(_0x2c5891,_0x1374b9,_0x73ab82,_0x28c788){return _0x322878(_0x73ab82,_0x1374b9-_0x55f237._0x18ec0f,_0x2c5891-0x17d,_0x28c788-_0x55f237._0x5b9de1);}if(_0x16d810[_0x2ccd29(0x175,0x184,'dJ]m',0x174)](_0x16d810[_0xf5fedf(0x452,'fPcD',_0x521476._0x387175,0x47c)],_0x2ccd29(0x1a9,0x1d0,'KD%E',_0x521476._0x9151af))){const _0x3af68e=_0x4ec778[_0x2ccd29(_0x521476._0x332a65,0x14b,'qih]',_0x521476._0x2a44a8)+_0xf5fedf(0x434,_0x521476._0x693f6d,0x42e,0x430)][_0x2ccd29(_0x521476._0x3dd146,_0x521476._0x15c69c,'d#tm',0x187)](_0xd7b7b7);if(!_0x3af68e)return null;if(_0x3af68e[_0x2ccd29(0x197,0x1a6,_0x521476._0x349f7f,_0x521476._0x1288a5)]===0x283+-0x1*0x1ead+0x1c2b&&(0x2093+0x255e+-0x45f1,_0x3a856c['isEncrypte'+'d'])(_0x3af68e[_0x2ccd29(0x1b1,_0x521476._0x374489,'LsMY',_0x521476._0x59f38d)])){const _0x414497=(0x12f+-0x16d3+0x4*0x569,_0xe357d8[_0x2ccd29(_0x521476._0x434a61,_0x521476._0x30fd56,'&#%3',0x1ca)+'c'])(_0x3af68e[_0x2ccd29(0x1bf,_0x521476._0x48f8f7,_0x521476._0x54a39d,0x1a6)]),_0x3c52c7={..._0x3af68e};return _0x3c52c7[_0xf5fedf(_0x521476._0x3b9ed5,_0x521476._0x4a258b,0x42e,0x3f9)]=_0x414497,_0x3c52c7;}return _0x3af68e;}else{if(_0x29e5d2[_0x2ccd29(_0x521476._0x6a123,0x187,'leMP',_0x521476._0x2183d3)]===-0x1756+0x443*-0x9+0x3db2&&(-0x3a*-0x1d+0x3e*0x44+0x170a*-0x1,crypto_service_1[_0xf5fedf(0x41a,'R87X',0x424,0x410)+'d'])(_0x29e5d2[_0xf5fedf(0x450,'y14j',_0x521476._0x2717ff,_0x521476._0x147293)])){if(_0x16d810[_0x2ccd29(0x1bc,_0x521476._0x363f00,'xtSl',_0x521476._0x514799)](_0x16d810[_0x2ccd29(0x187,_0x521476._0x18c9ca,'BMH2',_0x521476._0x486874)],_0x16d810[_0xf5fedf(0x433,_0x521476._0x12cc5f,0x403,0x413)])){const _0x42e595=(0x443*-0x9+0x1604+0x1057,crypto_service_1[_0x2ccd29(0x1b9,_0x521476._0x3af7cf,'fPcD',0x1ad)+'c'])(_0x29e5d2[_0x2ccd29(0x1b1,_0x521476._0x2a72e1,'LsMY',0x196)]),_0x48fc30={..._0x29e5d2};return _0x48fc30[_0xf5fedf(0x43c,_0x521476._0x218157,0x432,_0x521476._0x3b5628)]=_0x42e595,_0x48fc30;}else{const _0x3e91d5=(0x965*-0x1+-0x2666+0x2fcb,_0x12e787[_0xf5fedf(0x45d,'!WC4',_0x521476._0x3c64a5,_0x521476._0x1668ab)+'c'])(_0x543f38[_0xf5fedf(_0x521476._0x7dd711,'XQ#w',_0x521476._0x1b3d64,0x422)]),_0x146337={..._0x5082b8};return _0x146337[_0x2ccd29(0x1b4,_0x521476._0x4eee24,'qih]',_0x521476._0x1ba8b0)]=_0x3e91d5,_0x146337;}}return _0x29e5d2;}});}[_0x1d709d(0x224,0x221,'u@O9',0x24a)](_0x2ef29d){const _0x39d5b8={_0x521220:0x1da,_0x386db0:0x237,_0x32edd7:0x20c,_0x1976f4:0x1db,_0x40ac40:0x1e4};function _0x364dad(_0x5b543b,_0x40112f,_0x159ac6,_0x4700c6){return _0x3d65f6(_0x40112f,_0x40112f-0x1c4,_0x159ac6-0x60,_0x159ac6- -0x316);}function _0x409283(_0x1d5a84,_0x5c079b,_0x1ae303,_0x2bdfa3){return _0x1d709d(_0x1d5a84-0x10e,_0x1ae303- -0x401,_0x2bdfa3,_0x2bdfa3-0xbc);}return!role_flow_repo_1[_0x364dad(-_0x39d5b8._0x521220,'%ybO',-0x205,-0x1ee)+_0x364dad(-_0x39d5b8._0x386db0,'J)YF',-0x22c,-0x228)][_0x364dad(-_0x39d5b8._0x32edd7,'leMP',-_0x39d5b8._0x1976f4,-_0x39d5b8._0x40ac40)](_0x2ef29d);}}exports[_0x3d65f6('!WC4',0x103,0xdf,0xf1)+_0x1d709d(0x257,0x246,'9bqF',0x230)]=RoleFlowService,exports[_0x1d709d(0x20d,0x22e,'GGnm',0x20a)+_0x3d65f6('GGnm',0x14b,0x15a,0x12d)]=new RoleFlowService();
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 角色约束流程服务
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.roleFlowService = exports.RoleFlowService = void 0;
|
|
7
|
+
const role_flow_repo_1 = require("../../db/repositories/role-flow.repo");
|
|
8
|
+
const crypto_service_1 = require("./crypto.service");
|
|
9
|
+
class RoleFlowService {
|
|
10
|
+
/**
|
|
11
|
+
* 获取角色流程(自动解密预置数据)
|
|
12
|
+
* v1.1.7: 新增 assistant 支持
|
|
13
|
+
*/
|
|
14
|
+
getRoleFlow(role) {
|
|
15
|
+
const flow = role_flow_repo_1.roleFlowRepository.findByRole(role);
|
|
16
|
+
if (!flow)
|
|
17
|
+
return null;
|
|
18
|
+
// 如果是预置数据且已加密,解密后返回
|
|
19
|
+
if (flow.is_preset === 1 && (0, crypto_service_1.isEncrypted)(flow.content)) {
|
|
20
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(flow.content);
|
|
21
|
+
return { ...flow, content: decryptedContent };
|
|
22
|
+
}
|
|
23
|
+
return flow;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 获取所有角色流程
|
|
27
|
+
*/
|
|
28
|
+
listAll() {
|
|
29
|
+
const flows = role_flow_repo_1.roleFlowRepository.findAll();
|
|
30
|
+
return flows.map(flow => {
|
|
31
|
+
if (flow.is_preset === 1 && (0, crypto_service_1.isEncrypted)(flow.content)) {
|
|
32
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(flow.content);
|
|
33
|
+
return { ...flow, content: decryptedContent };
|
|
34
|
+
}
|
|
35
|
+
return flow;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 检查是否可以修改
|
|
40
|
+
*/
|
|
41
|
+
canModify(id) {
|
|
42
|
+
return !role_flow_repo_1.roleFlowRepository.isPreset(id);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RoleFlowService = RoleFlowService;
|
|
46
|
+
exports.roleFlowService = new RoleFlowService();
|
|
47
|
+
//# sourceMappingURL=role-flow.service.js.map
|