@picoflow/core 1.0.10 → 1.0.11
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/clients/http-client.js +1 -1
- package/clients/self-client.js +1 -1
- package/configs/core-config.js +1 -1
- package/decorators/stop-tool.js +1 -1
- package/flow/content-type.js +1 -1
- package/flow/end-step.js +1 -1
- package/flow/flow-creator.js +1 -1
- package/flow/flow-types.js +1 -1
- package/flow/flow.js +1 -1
- package/flow/llm-runner.js +1 -1
- package/flow/logic-runner.js +1 -1
- package/flow/logic-step.js +1 -1
- package/flow/memory.js +1 -1
- package/flow/step.js +1 -1
- package/package.json +1 -1
- package/prompt/flow-prompt.js +1 -1
- package/prompt/prompt-util.js +1 -1
- package/services/flow-engine.js +1 -1
- package/session/cosmo-session.js +1 -1
- package/session/file-session.js +1 -1
- package/session/flow-session.js +1 -1
- package/session/mongo-session.js +1 -1
- package/session/session-adaptor.js +1 -1
- package/session/session-logger.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/environ.js +1 -1
- package/utils/errors.js +1 -1
- package/utils/license-util.js +1 -1
- package/utils/llm-file.js +1 -1
- package/utils/logic.js +1 -1
- package/utils/message-util.d.ts +3 -0
- package/utils/message-util.js +1 -1
- package/utils/retry.js +1 -1
- package/utils/string-util.js +1 -1
- package/utils/tool-util.js +1 -1
- package/utils/verify-license.js +1 -1
package/utils/message-util.d.ts
CHANGED
package/utils/message-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x2fbfe=a29_0x4d72;(function(_0xa365d3,_0x85d8a4){const _0x1b6344=a29_0x4d72,_0x58ed6b=_0xa365d3();while(!![]){try{const _0x120d5f=-parseInt(_0x1b6344(0x94))/0x1*(-parseInt(_0x1b6344(0x7d))/0x2)+-parseInt(_0x1b6344(0x9f))/0x3*(-parseInt(_0x1b6344(0x86))/0x4)+-parseInt(_0x1b6344(0x64))/0x5*(-parseInt(_0x1b6344(0x8d))/0x6)+-parseInt(_0x1b6344(0x6f))/0x7*(parseInt(_0x1b6344(0x7e))/0x8)+parseInt(_0x1b6344(0x6a))/0x9*(-parseInt(_0x1b6344(0x96))/0xa)+-parseInt(_0x1b6344(0xa5))/0xb+parseInt(_0x1b6344(0x6e))/0xc*(-parseInt(_0x1b6344(0x92))/0xd);if(_0x120d5f===_0x85d8a4)break;else _0x58ed6b['push'](_0x58ed6b['shift']());}catch(_0x4d17c9){_0x58ed6b['push'](_0x58ed6b['shift']());}}}(a29_0x31c9,0x4cdd2));const a29_0x3ca3fb=(function(){let _0x2ca5dc=!![];return function(_0x44cba6,_0x531e9b){const _0x35d369=_0x2ca5dc?function(){const _0xde603a=a29_0x4d72;if(_0x531e9b){const _0x5a2a44=_0x531e9b[_0xde603a(0x8e)](_0x44cba6,arguments);return _0x531e9b=null,_0x5a2a44;}}:function(){};return _0x2ca5dc=![],_0x35d369;};}()),a29_0x518b79=a29_0x3ca3fb(this,function(){const _0x48eb8a=a29_0x4d72,_0x18ae46={'hluXL':_0x48eb8a(0x79)};return a29_0x518b79[_0x48eb8a(0x9e)]()[_0x48eb8a(0x72)](_0x18ae46[_0x48eb8a(0x89)])[_0x48eb8a(0x9e)]()[_0x48eb8a(0xa6)](a29_0x518b79)[_0x48eb8a(0x72)](_0x48eb8a(0x79));});a29_0x518b79();'use strict';Object[a29_0x2fbfe(0xa3)](exports,a29_0x2fbfe(0x7f),{'value':!![]}),exports['DirectMessage']=exports[a29_0x2fbfe(0x73)]=exports[a29_0x2fbfe(0x8b)]=exports[a29_0x2fbfe(0x88)]=exports[a29_0x2fbfe(0x82)]=exports[a29_0x2fbfe(0x70)]=exports['ToolMessageEx']=exports[a29_0x2fbfe(0x7a)]=exports[a29_0x2fbfe(0x65)]=exports[a29_0x2fbfe(0x80)]=void 0x0;const messages_1=require(a29_0x2fbfe(0x91)),flow_types_1=require(a29_0x2fbfe(0x6c)),constants_1=require(a29_0x2fbfe(0x83));class MessageUtil{static[a29_0x2fbfe(0x97)](_0x132b5d,_0x31a651){const _0x34ef29=a29_0x2fbfe,_0x2ec648={'MGqex':function(_0x256d82,_0x54d958){return _0x256d82===_0x54d958;}};return _0x2ec648['MGqex'](_0x132b5d['id'],_0x31a651['id'])&&_0x132b5d[_0x34ef29(0x77)]===_0x31a651[_0x34ef29(0x77)];}static[a29_0x2fbfe(0x8c)](_0x32042b){const _0x491cc4=a29_0x2fbfe,_0xb902e9={'alokL':function(_0x4ac3b3,_0x37debd){return _0x4ac3b3===_0x37debd;}};return _0xb902e9[_0x491cc4(0x7b)](Object[_0x491cc4(0xa0)](_0x32042b)['length'],0x0);}static['messageStep'](_0x1d1875){const _0x59fd4f=a29_0x2fbfe,_0x378392={'LwWyD':function(_0x57e3f9,_0xff4cb2){return _0x57e3f9>_0xff4cb2;},'kOyQG':function(_0x288da5,_0x52eac8){return _0x288da5===_0x52eac8;}},_0x19130e=_0x1d1875[_0x59fd4f(0x84)]('|');return _0x378392[_0x59fd4f(0xaa)](_0x19130e?.['length'],0x0)?_0x19130e[0x0]:_0x378392[_0x59fd4f(0xa1)](_0x59fd4f(0x9b),'sISZb')?_0x5d2ede:_0x1d1875;}static[a29_0x2fbfe(0xa8)](_0x2320e1){const _0x54d328=a29_0x2fbfe,_0x21738c={'qYkBG':function(_0x32f38c,_0xb14a7c){return _0x32f38c>_0xb14a7c;}},_0x29184e=_0x2320e1[_0x54d328(0x84)]('|');return _0x21738c[_0x54d328(0x9c)](_0x29184e?.[_0x54d328(0x99)],0x1)?_0x29184e[0x1]:_0x2320e1;}static[a29_0x2fbfe(0x9d)](_0x11f489,_0x4b4999){const _0x509a24=a29_0x2fbfe,_0x460df9=_0x11f489['id'][_0x509a24(0x84)]('|');_0x11f489['id']=_0x4b4999['getName']()+'|'+_0x460df9[0x1]+'|'+_0x460df9[0x2];}static[a29_0x2fbfe(0x76)](_0x1ace9a){const _0x1b353=a29_0x2fbfe,_0x56c479={'xFWna':function(_0x4141e4,_0xd8b6ae){return _0x4141e4!==_0xd8b6ae;},'PXlLN':_0x1b353(0xa2)},_0x28e7e3=_0x1ace9a[_0x1b353(0x95)]();if(_0x28e7e3){if(_0x56c479[_0x1b353(0x67)](_0x1b353(0x8a),_0x56c479['PXlLN']))_0x1ace9a[_0x1b353(0x68)](_0x28e7e3);else return _0x450112[0x1];}return _0x28e7e3;}static['makeToolStruct'](_0x418e96){const _0x155165=a29_0x2fbfe,_0x43abfa=[];for(const _0x34a784 of _0x418e96){_0x43abfa['push']({'name':_0x34a784['name'],'args':_0x34a784[_0x155165(0xab)],'id':_0x34a784['id']});}return _0x43abfa;}}exports[a29_0x2fbfe(0x80)]=MessageUtil;class AiMessageEx extends messages_1[a29_0x2fbfe(0x81)]{constructor(_0x379b14,_0xc276b4,_0x1f2fa4){const _0x19bc41=a29_0x2fbfe,_0x1fc575={'yeGNN':function(_0x540c81,_0x4dc52e){return _0x540c81??_0x4dc52e;}};super({'content':_0xc276b4,'id':_0x379b14[_0x19bc41(0x78)](),'additional_kwargs':_0x1fc575[_0x19bc41(0x69)](_0x1f2fa4,{'direct':![]})});}}exports['AiMessageEx']=AiMessageEx;class HumanMessageEx extends messages_1[a29_0x2fbfe(0xa9)]{constructor(_0x551e0c,_0x1cf002,_0x4b7269){const _0x2c5ca3=a29_0x2fbfe;super({'content':_0x1cf002,'id':_0x551e0c[_0x2c5ca3(0x78)](),'additional_kwargs':_0x4b7269??{'direct':![]}});}}exports[a29_0x2fbfe(0x7a)]=HumanMessageEx;function a29_0x31c9(){const _0x3bb4c1=['isSame','ToolStatus','length','ToolValidated','YIqON','qYkBG','replaceStep','toString','12TEyIKo','keys','kOyQG','aShTu','defineProperty','OFlad','4206147njtFOg','constructor','makeToolStruct','messageTime','HumanMessage','LwWyD','args','320XkKSUl','AiMessageEx','step','xFWna','push','yeGNN','361683yrjMQd','stringify','../flow/flow-types','ToolMessageEx','206988jiVkQY','7gRzbto','ToolCallMessage','error','search','ToolCallEx','CvdNT','fVJlt','peek','type','genMessageId','(((.+)+)+)+$','HumanMessageEx','alokL','success','786qNeBaP','173560iyygyO','__esModule','MessageUtil','AIMessage','ToolMessageOK','./constants','split','TKezj','594052YhLbNJ','name','ToolMessageBad','hluXL','SUuDK','ToolMessageInfo','isEmptyObject','23334LeoXkH','apply','nATfP','ToolMessage','@langchain/core/messages','78IUfKmw','DirectMessage','459AsOyLo','pop','50OJzJqO'];a29_0x31c9=function(){return _0x3bb4c1;};return a29_0x31c9();}function a29_0x4d72(_0x165a72,_0xe060bc){const _0x32a466=a29_0x31c9();return a29_0x4d72=function(_0x518b79,_0x3ca3fb){_0x518b79=_0x518b79-0x64;let _0x31c908=_0x32a466[_0x518b79];return _0x31c908;},a29_0x4d72(_0x165a72,_0xe060bc);}class ToolMessageEx extends messages_1[a29_0x2fbfe(0x90)]{constructor(_0x5a6e74,_0x658abf,_0x50a87f,_0x17cd98=flow_types_1[a29_0x2fbfe(0x98)][a29_0x2fbfe(0x7c)],_0x5224d9){const _0x35fcb9=a29_0x2fbfe,_0x392c71={'bYESF':function(_0x5adb47,_0x3d0307){return _0x5adb47??_0x3d0307;}};super({'name':_0x658abf[_0x35fcb9(0x87)],'tool_call_id':_0x658abf['id'],'content':_0x50a87f,'status':_0x17cd98,'id':_0x5a6e74['genMessageId'](),'additional_kwargs':_0x392c71['bYESF'](_0x5224d9,{'stopTool':!![]})});}}exports[a29_0x2fbfe(0x6d)]=ToolMessageEx;class ToolCallMessage extends messages_1[a29_0x2fbfe(0x81)]{constructor(_0x7817cd,_0x5a33b5){const _0x4dbc5d=a29_0x2fbfe;super({'content':'','id':_0x7817cd[_0x4dbc5d(0x78)](),'tool_calls':MessageUtil[_0x4dbc5d(0xa7)](_0x5a33b5)});}}exports[a29_0x2fbfe(0x70)]=ToolCallMessage;class ToolMessageOK extends ToolMessageEx{constructor(_0x20ce52,_0x1cbf39){const _0x5d5cba=a29_0x2fbfe;super(_0x20ce52,_0x1cbf39,constants_1['K'][_0x5d5cba(0x9a)]);}}exports[a29_0x2fbfe(0x82)]=ToolMessageOK;class ToolMessageBad extends ToolMessageEx{constructor(_0x4fd833,_0xd435e9,_0x5945e7){const _0x376228=a29_0x2fbfe;super(_0x4fd833,_0xd435e9,_0x5945e7,flow_types_1[_0x376228(0x98)][_0x376228(0x71)]);}}exports[a29_0x2fbfe(0x88)]=ToolMessageBad;class ToolMessageInfo extends ToolMessageEx{constructor(_0x2b7576,_0x1099e8,_0xfe3d9c){super(_0x2b7576,_0x1099e8,_0xfe3d9c);}}exports[a29_0x2fbfe(0x8b)]=ToolMessageInfo;class ToolCallEx{constructor(_0x3daa9d,_0xe2fa76,_0x85299f){const _0xcd56c1=a29_0x2fbfe;this[_0xcd56c1(0x87)]=_0x3daa9d,this['args']=_0xe2fa76,this[_0xcd56c1(0x66)]=_0x85299f[_0xcd56c1(0x78)]();}}exports[a29_0x2fbfe(0x73)]=ToolCallEx;class DirectMessage extends AiMessageEx{constructor(_0x541e8a,_0x280864){const _0x470879=a29_0x2fbfe,_0x4cc820={'UYmmz':function(_0x1520df,_0x2e3048){return _0x1520df===_0x2e3048;},'CvdNT':'object','fVJlt':function(_0x3e71ed,_0x19b6de){return _0x3e71ed!==_0x19b6de;},'TKezj':_0x470879(0xa4)};_0x4cc820['UYmmz'](typeof _0x280864,_0x4cc820[_0x470879(0x74)])?super(_0x541e8a,JSON[_0x470879(0x6b)](_0x280864),{'direct':!![]}):_0x4cc820[_0x470879(0x75)](_0x470879(0x8f),_0x4cc820[_0x470879(0x85)])?super(_0x541e8a,_0x280864,{'direct':!![]}):_0x15cbe6['push']({'name':_0x5209be['name'],'args':_0x4e32dc[_0x470879(0xab)],'id':_0x4d8460['id']});}}exports[a29_0x2fbfe(0x93)]=DirectMessage;
|
package/utils/retry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x55258a=a30_0x32c2;(function(_0x24c5e2,_0x123d9c){const _0x8d5d67=a30_0x32c2,_0x2ee443=_0x24c5e2();while(!![]){try{const _0x3d4cd5=parseInt(_0x8d5d67(0x1ba))/0x1*(parseInt(_0x8d5d67(0x197))/0x2)+parseInt(_0x8d5d67(0x1ad))/0x3*(parseInt(_0x8d5d67(0x1a5))/0x4)+parseInt(_0x8d5d67(0x1a1))/0x5*(-parseInt(_0x8d5d67(0x1a4))/0x6)+-parseInt(_0x8d5d67(0x1bc))/0x7*(-parseInt(_0x8d5d67(0x1a9))/0x8)+parseInt(_0x8d5d67(0x1b7))/0x9*(-parseInt(_0x8d5d67(0x194))/0xa)+-parseInt(_0x8d5d67(0x1a6))/0xb*(-parseInt(_0x8d5d67(0x190))/0xc)+-parseInt(_0x8d5d67(0x195))/0xd;if(_0x3d4cd5===_0x123d9c)break;else _0x2ee443['push'](_0x2ee443['shift']());}catch(_0x3c4b71){_0x2ee443['push'](_0x2ee443['shift']());}}}(a30_0x965f,0x4b79c));const a30_0xda1a39=(function(){const _0x1cf877=a30_0x32c2,_0x39211c={'CzibV':_0x1cf877(0x19b)};let _0x4bb4af=!![];return function(_0x5735ef,_0x5e0793){const _0x307fd6=_0x1cf877,_0x57457a={'KHBYD':function(_0x3ee12d,_0x1ac925){return _0x3ee12d-_0x1ac925;},'VZEmG':function(_0x3c7131,_0x27616d){return _0x3c7131===_0x27616d;},'yozQn':_0x39211c[_0x307fd6(0x198)]},_0x26d89e=_0x4bb4af?function(){const _0x510feb=_0x307fd6,_0x439747={'JTemA':function(_0x41387c,_0x30e2e0){const _0x4dc4e3=a30_0x32c2;return _0x57457a[_0x4dc4e3(0x1b5)](_0x41387c,_0x30e2e0);}};if(_0x57457a[_0x510feb(0x1a0)](_0x57457a[_0x510feb(0x1b0)],_0x57457a[_0x510feb(0x1b0)])){if(_0x5e0793){const _0x82d538=_0x5e0793[_0x510feb(0x1b2)](_0x5735ef,arguments);return _0x5e0793=null,_0x82d538;}}else{const _0x54c8f2=_0x2862ab?_0x9ec81f*_0x2fa48b[_0x510feb(0x1a8)](0x2,_0x439747[_0x510feb(0x19f)](_0x4989b0,0x1)):_0x422701;return new _0x5a7501(_0x5b223f=>_0x373adb(_0x5b223f,_0x54c8f2));}}:function(){};return _0x4bb4af=![],_0x26d89e;};}()),a30_0x57d18c=a30_0xda1a39(this,function(){const _0x552206=a30_0x32c2,_0x17bb65={'TKBqa':_0x552206(0x1ac)};return a30_0x57d18c['toString']()['search'](_0x552206(0x1ac))['toString']()['constructor'](a30_0x57d18c)[_0x552206(0x199)](_0x17bb65[_0x552206(0x1b8)]);});function a30_0x32c2(_0x5ddbfc,_0x38ca20){const _0x53d0d9=a30_0x965f();return a30_0x32c2=function(_0x57d18c,_0xda1a39){_0x57d18c=_0x57d18c-0x190;let _0x965f4f=_0x53d0d9[_0x57d18c];return _0x965f4f;},a30_0x32c2(_0x5ddbfc,_0x38ca20);}a30_0x57d18c();'use strict';function a30_0x965f(){const _0x3669dc=['yDuqg','Zesyg','yozQn','FDblx','apply','goTry','Retry','KHBYD','delay','171AZrYHD','TKBqa','MwCts','187847HidcIj','eEgNS','2807yBxqVu','36EpbWzX','SeBqM','__esModule','mQhhz','20890hxDXfD','13256633QvirVL','constructor','6sdWvGe','CzibV','search','toString','niZCz','asvqC','pFSPB','SNADZ','JTemA','VZEmG','137465hafKgg','PqMMa','tEFNG','66uBfxzC','73644zPoTem','28094NBpaKq','ZSxbz','pow','12024JgllZc','FXxav','NVUUK','(((.+)+)+)+$','81XhPODS'];a30_0x965f=function(){return _0x3669dc;};return a30_0x965f();}Object['defineProperty'](exports,a30_0x55258a(0x192),{'value':!![]}),exports[a30_0x55258a(0x1b4)]=void 0x0;class Retry{static async[a30_0x55258a(0x1b3)]({maxRetries:_0x128430,delayMs:_0xd571dd,exponentialBackoff:_0x1b68b6,onMain:_0x4cae1f,onWarn:_0xd707cc,shouldRetry:_0x1f9429,onError:_0x1eac79,onFinalError:_0x55b6ec}){const _0x5c5b8d=a30_0x55258a,_0x46c1b0={'EApcr':_0x5c5b8d(0x1ac),'ZSxbz':function(_0x367f01,_0x2da86d){return _0x367f01<=_0x2da86d;},'MwCts':function(_0x2961e3,_0x32a6b9){return _0x2961e3!==_0x32a6b9;},'PzgAc':function(_0x797510,_0x541007){return _0x797510>=_0x541007;},'STqSo':function(_0x5b5b59,_0x1c48e9,_0x43a626,_0x4a9c6c){return _0x5b5b59(_0x1c48e9,_0x43a626,_0x4a9c6c);},'OEqaM':function(_0x2b33bc){return _0x2b33bc();},'tEFNG':function(_0x748cfc,_0x18ab3b,_0x3eb22d){return _0x748cfc(_0x18ab3b,_0x3eb22d);},'SNADZ':function(_0x596b95,_0x11ff25){return _0x596b95===_0x11ff25;},'pFSPB':_0x5c5b8d(0x1a2),'FXxav':_0x5c5b8d(0x19c),'yDuqg':'GdEkk','eEgNS':function(_0x2c3fe6,_0x59eee2){return _0x2c3fe6(_0x59eee2);},'SeBqM':function(_0x14cccf,_0x5c3a60){return _0x14cccf(_0x5c3a60);}};let _0x43bb69=0x1,_0x4fed4a;while(_0x46c1b0[_0x5c5b8d(0x1a7)](_0x43bb69,_0x128430)){try{if(_0x46c1b0[_0x5c5b8d(0x1b9)](_0x5c5b8d(0x1ab),_0x5c5b8d(0x1af))){_0x46c1b0['PzgAc'](_0x43bb69,0x2)&&_0x46c1b0['STqSo'](_0xd707cc,_0x43bb69,_0x128430,_0x4fed4a);const _0x2f7145=await _0x46c1b0['OEqaM'](_0x4cae1f);if(_0x46c1b0[_0x5c5b8d(0x1a3)](_0x1f9429,_0x2f7145,_0x43bb69)){if(_0x46c1b0[_0x5c5b8d(0x19e)](_0x46c1b0[_0x5c5b8d(0x19d)],_0x46c1b0[_0x5c5b8d(0x1aa)])){const _0x3c5d4f=_0x538182[_0x5c5b8d(0x1b2)](_0x3470f8,arguments);return _0x52b33d=null,_0x3c5d4f;}else{_0x43bb69++,await this[_0x5c5b8d(0x1b6)](_0xd571dd,_0x43bb69,_0x1b68b6);continue;}}return _0x2f7145;}else{const _0x348b26=_0x3c7664?function(){if(_0x458316){const _0x3dc50f=_0x10ecc3['apply'](_0x4e3e91,arguments);return _0x30f4f8=null,_0x3dc50f;}}:function(){};return _0x11d2a2=![],_0x348b26;}}catch(_0xf3bc91){_0x4fed4a=_0xf3bc91;if(_0x1eac79){if(_0x46c1b0[_0x5c5b8d(0x1ae)]!==_0x46c1b0[_0x5c5b8d(0x1ae)])return _0x2c3dca[_0x5c5b8d(0x19a)]()[_0x5c5b8d(0x199)](CUnGxR['EApcr'])[_0x5c5b8d(0x19a)]()[_0x5c5b8d(0x196)](_0x9d6913)[_0x5c5b8d(0x199)](CUnGxR['EApcr']);else _0x46c1b0[_0x5c5b8d(0x1bb)](_0x1eac79,_0xf3bc91);}_0x43bb69++,await this['delay'](_0xd571dd,_0x43bb69,_0x1b68b6);}}_0x46c1b0[_0x5c5b8d(0x191)](_0x55b6ec,_0x4fed4a);}static async[a30_0x55258a(0x1b6)](_0x1f306a,_0x407eea,_0xc63e7d){const _0x38b0f2=a30_0x55258a,_0x4a5fab={'FDblx':function(_0x452852,_0x59d9cb){return _0x452852*_0x59d9cb;},'mQhhz':function(_0x2f0aae,_0x2903ba){return _0x2f0aae-_0x2903ba;}},_0x35789e=_0xc63e7d?_0x4a5fab[_0x38b0f2(0x1b1)](_0x1f306a,Math['pow'](0x2,_0x4a5fab[_0x38b0f2(0x193)](_0x407eea,0x1))):_0x1f306a;return new Promise(_0x5e3bbd=>setTimeout(_0x5e3bbd,_0x35789e));}}exports[a30_0x55258a(0x1b4)]=Retry;
|
package/utils/string-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x4da5e0=a31_0x5489;(function(_0x547522,_0x23d1bb){const _0xd58444=a31_0x5489,_0x544458=_0x547522();while(!![]){try{const _0x1feb3c=-parseInt(_0xd58444(0x1db))/0x1*(-parseInt(_0xd58444(0x1be))/0x2)+parseInt(_0xd58444(0x1d1))/0x3+-parseInt(_0xd58444(0x1cc))/0x4*(-parseInt(_0xd58444(0x1bc))/0x5)+parseInt(_0xd58444(0x1c8))/0x6+parseInt(_0xd58444(0x1d4))/0x7*(parseInt(_0xd58444(0x1c1))/0x8)+-parseInt(_0xd58444(0x1d6))/0x9*(-parseInt(_0xd58444(0x1cf))/0xa)+parseInt(_0xd58444(0x1dd))/0xb*(-parseInt(_0xd58444(0x1bd))/0xc);if(_0x1feb3c===_0x23d1bb)break;else _0x544458['push'](_0x544458['shift']());}catch(_0x1f2d2b){_0x544458['push'](_0x544458['shift']());}}}(a31_0x28da,0xca115));function a31_0x28da(){const _0x514b44=['toString','defineProperty','1540eIDZYE','wUwHe','982788qGzZGM','jnStC','constructor','14wLMdcs','trim','6921cMefOv','VcMZe','apply','parseJson','Eqdmt','113479AOyltH','replace','11ZtygmG','parse','PYINe','10iFjDpQ','28690788oiryMS','18EVwYvh','stripQuote','EshBM','3404504cspAvY','(((.+)+)+)+$','BCXeM','AXWNB','EdrtH','WOgVD','search','3588006bRXdnl','stripJson','StringUtil','__esModule','604216sNJoRM'];a31_0x28da=function(){return _0x514b44;};return a31_0x28da();}const a31_0x5b6775=(function(){const _0x393536={'AXWNB':function(_0x174ab0,_0x50d4e0){return _0x174ab0===_0x50d4e0;}};let _0x1a618b=!![];return function(_0x47749f,_0x321b68){const _0x134ad0=_0x1a618b?function(){const _0x18b38e=a31_0x5489;if(_0x321b68){if(_0x393536[_0x18b38e(0x1c4)](_0x18b38e(0x1d0),_0x18b38e(0x1d0))){const _0x57510b=_0x321b68[_0x18b38e(0x1d8)](_0x47749f,arguments);return _0x321b68=null,_0x57510b;}else return _0x58d7d5[_0x18b38e(0x1de)](_0x267f14);}}:function(){};return _0x1a618b=![],_0x134ad0;};}()),a31_0x27e198=a31_0x5b6775(this,function(){const _0x3852e2=a31_0x5489,_0x3325eb={'EshBM':_0x3852e2(0x1c2)};return a31_0x27e198[_0x3852e2(0x1cd)]()[_0x3852e2(0x1c7)](_0x3325eb[_0x3852e2(0x1c0)])[_0x3852e2(0x1cd)]()[_0x3852e2(0x1d3)](a31_0x27e198)[_0x3852e2(0x1c7)](_0x3325eb[_0x3852e2(0x1c0)]);});a31_0x27e198();function a31_0x5489(_0x2b0090,_0x2c91a1){const _0xa2e07b=a31_0x28da();return a31_0x5489=function(_0x27e198,_0x5b6775){_0x27e198=_0x27e198-0x1bc;let _0x28da5d=_0xa2e07b[_0x27e198];return _0x28da5d;},a31_0x5489(_0x2b0090,_0x2c91a1);}'use strict';Object[a31_0x4da5e0(0x1ce)](exports,a31_0x4da5e0(0x1cb),{'value':!![]}),exports[a31_0x4da5e0(0x1ca)]=void 0x0;class StringUtil{static['stripNewlines'](_0x1ba33){const _0x5972e0=a31_0x4da5e0;return _0x1ba33[_0x5972e0(0x1dc)](/\n/g,'');}static[a31_0x4da5e0(0x1c9)](_0x391640){const _0x108dae=a31_0x4da5e0,_0x490d60=/```json([\s\S]*?)```/,_0x3af47c=_0x391640['match'](_0x490d60);return _0x3af47c?_0x3af47c[0x1][_0x108dae(0x1d5)]():null;}static[a31_0x4da5e0(0x1bf)](_0x8d8c96){const _0x4ba19b=a31_0x4da5e0;return _0x8d8c96[_0x4ba19b(0x1dc)](/^`|`$/g,'');}static[a31_0x4da5e0(0x1d9)](_0x5367de){const _0x5d66c8=a31_0x4da5e0,_0x3f9456={'VcMZe':'(((.+)+)+)+$','EdrtH':function(_0x12ae83,_0x21aedd){return _0x12ae83!==_0x21aedd;},'Eqdmt':'BCXeM','jnStC':function(_0x4407a3,_0x40d26a){return _0x4407a3===_0x40d26a;},'KeAGc':_0x5d66c8(0x1df)},_0x393135=_0x5367de[_0x5d66c8(0x1d5)]()[_0x5d66c8(0x1dc)](/^```json\s*/i,'')[_0x5d66c8(0x1dc)](/^```\s*/i,'')['replace'](/\s*```$/,'');try{return _0x3f9456[_0x5d66c8(0x1c5)](_0x3f9456[_0x5d66c8(0x1da)],_0x5d66c8(0x1c3))?_0x5f011f[_0x5d66c8(0x1dc)](/\n/g,''):JSON[_0x5d66c8(0x1de)](_0x393135);}catch(_0x5158e6){return _0x3f9456[_0x5d66c8(0x1d2)](_0x5d66c8(0x1c6),_0x3f9456['KeAGc'])?_0x202a0b[_0x5d66c8(0x1cd)]()[_0x5d66c8(0x1c7)](uGKumC[_0x5d66c8(0x1d7)])['toString']()[_0x5d66c8(0x1d3)](_0x326c49)[_0x5d66c8(0x1c7)](_0x5d66c8(0x1c2)):null;}}}exports[a31_0x4da5e0(0x1ca)]=StringUtil;
|
package/utils/tool-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a32_0x9018b7=a32_0x1f20;(function(_0x17c89d,_0x4048e5){var _0x21e4f7=a32_0x1f20,_0x52db3d=_0x17c89d();while(!![]){try{var _0x3b0193=-parseInt(_0x21e4f7(0x12b))/0x1+parseInt(_0x21e4f7(0x128))/0x2+parseInt(_0x21e4f7(0x11f))/0x3*(-parseInt(_0x21e4f7(0x134))/0x4)+-parseInt(_0x21e4f7(0x126))/0x5+-parseInt(_0x21e4f7(0x133))/0x6*(parseInt(_0x21e4f7(0x12d))/0x7)+parseInt(_0x21e4f7(0x11c))/0x8*(parseInt(_0x21e4f7(0x11d))/0x9)+parseInt(_0x21e4f7(0x121))/0xa*(parseInt(_0x21e4f7(0x132))/0xb);if(_0x3b0193===_0x4048e5)break;else _0x52db3d['push'](_0x52db3d['shift']());}catch(_0x51801d){_0x52db3d['push'](_0x52db3d['shift']());}}}(a32_0x1514,0xb2d74));var a32_0x56774c=(function(){var _0x1290a3=a32_0x1f20,_0x56f1c0={'dzMyK':function(_0x5e99e7,_0x5d3e5a){return _0x5e99e7!==_0x5d3e5a;},'nVjYN':_0x1290a3(0x123),'nlDSo':_0x1290a3(0x129),'BCTPe':function(_0x31f4c3,_0x139988){return _0x31f4c3===_0x139988;},'lCyxb':_0x1290a3(0x12f),'XCkiG':'GWLjJ'},_0x27eac1=!![];return function(_0x39590c,_0x49e343){var _0x559fe9=_0x1290a3,_0x275c8d={'nepPn':function(_0x2aee6f,_0x2fd28a){var _0x1a9ebd=a32_0x1f20;return _0x56f1c0[_0x1a9ebd(0x122)](_0x2aee6f,_0x2fd28a);}};if(_0x56f1c0[_0x559fe9(0x131)]===_0x56f1c0['XCkiG']){var _0x175c9e=_0x15128c?function(){var _0x529ec6=_0x559fe9;if(_0x37c9b5){var _0x575a49=_0x376db0[_0x529ec6(0x125)](_0x2a8262,arguments);return _0x4cf0af=null,_0x575a49;}}:function(){};return _0x2b4e85=![],_0x175c9e;}else{var _0x21d8ee=_0x27eac1?function(){var _0x5381b5=_0x559fe9;if(_0x56f1c0[_0x5381b5(0x12e)](_0x56f1c0[_0x5381b5(0x11b)],_0x56f1c0['nlDSo'])){if(_0x49e343){var _0x5f1f30=_0x49e343[_0x5381b5(0x125)](_0x39590c,arguments);return _0x49e343=null,_0x5f1f30;}}else return _0x275c8d['nepPn'](_0x58ac72?.[_0x5381b5(0x130)]?.[_0x5381b5(0x12a)],0x0);}:function(){};return _0x27eac1=![],_0x21d8ee;}};}()),a32_0x4df6e9=a32_0x56774c(this,function(){var _0x59da58=a32_0x1f20,_0x3dd973={'gAftq':'(((.+)+)+)+$'};return a32_0x4df6e9[_0x59da58(0x11a)]()['search'](_0x3dd973[_0x59da58(0x12c)])[_0x59da58(0x11a)]()['constructor'](a32_0x4df6e9)['search'](_0x59da58(0x127));});a32_0x4df6e9();function a32_0x1514(){var _0x2230ab=['BCTPe','CdCem','__esModule','apply','912240KyxfyU','(((.+)+)+)+$','1117828OTkYPR','icQSk','length','610511shNtea','gAftq','21OFJHjz','dzMyK','gIOnN','tool_calls','lCyxb','22myVtko','667356GIBKhf','1097604TJDUSF','ToolUtil','hasTool','defineProperty','toString','nVjYN','24RVTSuM','3365802tNzjKB','hasNoTool','3GdMwsQ','QrsHN','2263610kbVCYV'];a32_0x1514=function(){return _0x2230ab;};return a32_0x1514();}'use strict';Object[a32_0x9018b7(0x119)](exports,a32_0x9018b7(0x124),{'value':!![]}),exports[a32_0x9018b7(0x117)]=void 0x0;class ToolUtil{static[a32_0x9018b7(0x118)](_0x218683){var _0x305a9a=a32_0x9018b7,_0x19fcce={'QrsHN':function(_0x2eb7a2,_0x257a84){return _0x2eb7a2>_0x257a84;}};return _0x19fcce[_0x305a9a(0x120)](_0x218683?.[_0x305a9a(0x130)]?.[_0x305a9a(0x12a)],0x0);}static[a32_0x9018b7(0x11e)](_0x392383){var _0x3cccbd=a32_0x9018b7;return _0x392383?.['tool_calls']?.[_0x3cccbd(0x12a)]===0x0;}}function a32_0x1f20(_0x4a387a,_0x402f0b){var _0x407e2=a32_0x1514();return a32_0x1f20=function(_0x4df6e9,_0x56774c){_0x4df6e9=_0x4df6e9-0x117;var _0x1514d6=_0x407e2[_0x4df6e9];return _0x1514d6;},a32_0x1f20(_0x4a387a,_0x402f0b);}exports[a32_0x9018b7(0x117)]=ToolUtil;
|
package/utils/verify-license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x2e7ad2=a33_0x4980;(function(_0x1b9fd9,_0x45641e){const _0x45148b=a33_0x4980,_0x49fdf3=_0x1b9fd9();while(!![]){try{const _0x489e89=parseInt(_0x45148b(0x1b8))/0x1+-parseInt(_0x45148b(0x1a7))/0x2+-parseInt(_0x45148b(0x1c3))/0x3*(parseInt(_0x45148b(0x199))/0x4)+parseInt(_0x45148b(0x1c1))/0x5+parseInt(_0x45148b(0x1b0))/0x6*(-parseInt(_0x45148b(0x1b2))/0x7)+parseInt(_0x45148b(0x1b6))/0x8+parseInt(_0x45148b(0x1bb))/0x9*(parseInt(_0x45148b(0x1a8))/0xa);if(_0x489e89===_0x45641e)break;else _0x49fdf3['push'](_0x49fdf3['shift']());}catch(_0x20ddfc){_0x49fdf3['push'](_0x49fdf3['shift']());}}}(a33_0x59b2,0xb6af5));const a33_0xf45f5a=(function(){const _0x2ad722=a33_0x4980,_0xff8163={'LWTjd':_0x2ad722(0x1a4)};let _0x58137d=!![];return function(_0x10e5ce,_0x7e5b7){const _0x2b330b=_0x2ad722,_0x531b7c={'fwtPf':_0x2b330b(0x1c4),'kuDMO':_0xff8163['LWTjd']},_0x423fd6=_0x58137d?function(){const _0x144d4e=_0x2b330b;if(_0x7e5b7){if(_0x531b7c[_0x144d4e(0x1b4)]===_0x531b7c[_0x144d4e(0x1bf)])throw new _0x443f23(_0x144d4e(0x1a6));else{const _0xa9a31c=_0x7e5b7[_0x144d4e(0x19d)](_0x10e5ce,arguments);return _0x7e5b7=null,_0xa9a31c;}}}:function(){};return _0x58137d=![],_0x423fd6;};}()),a33_0x4d3a1e=a33_0xf45f5a(this,function(){const _0x2010df=a33_0x4980,_0x131875={'PvrJt':_0x2010df(0x1a5)};return a33_0x4d3a1e['toString']()['search'](_0x131875[_0x2010df(0x1a1)])[_0x2010df(0x19e)]()['constructor'](a33_0x4d3a1e)[_0x2010df(0x1ba)](_0x131875[_0x2010df(0x1a1)]);});a33_0x4d3a1e();'use strict';function a33_0x4980(_0x3b133e,_0x5a81b7){const _0xf715c3=a33_0x59b2();return a33_0x4980=function(_0x4d3a1e,_0xf45f5a){_0x4d3a1e=_0x4d3a1e-0x199;let _0x59b2fc=_0xf715c3[_0x4d3a1e];return _0x59b2fc;},a33_0x4980(_0x3b133e,_0x5a81b7);}var __importDefault=this&&this[a33_0x2e7ad2(0x19b)]||function(_0x42538a){const _0x3004c2=a33_0x2e7ad2;return _0x42538a&&_0x42538a[_0x3004c2(0x1be)]?_0x42538a:{'default':_0x42538a};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['verifyLicense']=verifyLicense;function a33_0x59b2(){const _0x339bc6=['1350waBEUW','fKhmH','DywAO','__esModule','kuDMO','now','4815375jIFPMr','part3','730581fadyEK','yDGVq','base64UrlDecode','subarray','24CaIxZs','qUDDn','__importDefault','JfjiK','apply','toString','default','./license-util','PvrJt','fgvWm','LssBF','hNYAq','(((.+)+)+)+$','License\x20expired','2564872tFNpYL','95230RCyhOj','Invalid\x20license\x20signature','readUInt16BE','verify','from','readUInt8','length','ZLGwb','1842MLxeGm','Invalid\x20license\x20length','12509iSsTNT','floor','fwtPf','LICENSE_VERSION','1818224lHCEWp','Unsupported\x20license\x20version','1421681TCaRNQ','string','search'];a33_0x59b2=function(){return _0x339bc6;};return a33_0x59b2();}const tweetnacl_1=__importDefault(require('tweetnacl')),license_util_1=require(a33_0x2e7ad2(0x1a0)),PUBLIC_KEY=Buffer[a33_0x2e7ad2(0x1ac)]((0x0,license_util_1['part1'])()+(0x0,license_util_1['part2'])()+(0x0,license_util_1[a33_0x2e7ad2(0x1c2)])(),'base64');let cached=null;function verifyLicense(_0x4c4f2f){const _0x5ceb3e=a33_0x2e7ad2,_0x31f417={'fgvWm':function(_0x584f7e,_0x2d8908){return _0x584f7e!==_0x2d8908;},'JfjiK':_0x5ceb3e(0x1b9),'GkVPQ':function(_0x51a822,_0x17a961){return _0x51a822===_0x17a961;},'qUDDn':_0x5ceb3e(0x1af),'osovC':'ORJTZ','LssBF':'License\x20token\x20missing','fKhmH':_0x5ceb3e(0x1b1),'DywAO':_0x5ceb3e(0x1a9),'QMIVR':_0x5ceb3e(0x1b7),'CgjHL':function(_0x3728d9,_0x20f4a9){return _0x3728d9>_0x20f4a9;}};if(cached)return cached;if(_0x31f417[_0x5ceb3e(0x1a2)](typeof _0x4c4f2f,_0x31f417[_0x5ceb3e(0x19c)])){if(_0x31f417['GkVPQ'](_0x31f417[_0x5ceb3e(0x19a)],_0x31f417['osovC']))return _0xcbb2cc&&_0x5356d0[_0x5ceb3e(0x1be)]?_0xeef03d:{'default':_0x482246};else throw new Error(_0x31f417[_0x5ceb3e(0x1a3)]);}const _0x44debf=(0x0,license_util_1[_0x5ceb3e(0x1c5)])(_0x4c4f2f);if(_0x31f417['fgvWm'](_0x44debf[_0x5ceb3e(0x1ae)],0x54))throw new Error(_0x31f417[_0x5ceb3e(0x1bc)]);const _0xa17168=_0x44debf[_0x5ceb3e(0x1c6)](0x0,0x14),_0x466173=_0x44debf['subarray'](0x14),_0x5b2f04=tweetnacl_1[_0x5ceb3e(0x19f)]['sign']['detached'][_0x5ceb3e(0x1ab)](_0xa17168,_0x466173,PUBLIC_KEY);if(!_0x5b2f04)throw new Error(_0x31f417[_0x5ceb3e(0x1bd)]);const _0x5aa1da=_0xa17168[_0x5ceb3e(0x1ad)](0x0);if(_0x31f417[_0x5ceb3e(0x1a2)](_0x5aa1da,license_util_1[_0x5ceb3e(0x1b5)]))throw new Error(_0x31f417['QMIVR']);const _0x54f305=_0xa17168['readUInt8'](0x1),_0x1d3504=_0xa17168['readUInt32BE'](0x2),_0x1770d8=_0xa17168['readUInt32BE'](0x6),_0x1cacfe=_0xa17168[_0x5ceb3e(0x1aa)](0xa),_0x4d8919=Math[_0x5ceb3e(0x1b3)](Date[_0x5ceb3e(0x1c0)]()/0x3e8);if(_0x31f417['CgjHL'](_0x4d8919,_0x1770d8))throw new Error('License\x20expired');return cached={'licenseType':_0x54f305,'issuedAt':_0x1d3504,'expiresAt':_0x1770d8,'features':_0x1cacfe},cached;}
|