@picoflow/core 1.0.0 → 1.0.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.
- 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 +14 -3
- 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.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/string-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x4921f9=a31_0xe6d7;(function(_0x3d5800,_0x58d2da){const _0x1796d7=a31_0xe6d7,_0x3c0f29=_0x3d5800();while(!![]){try{const _0x16695a=-parseInt(_0x1796d7(0x195))/0x1*(parseInt(_0x1796d7(0x1a0))/0x2)+-parseInt(_0x1796d7(0x1a3))/0x3+parseInt(_0x1796d7(0x1aa))/0x4+parseInt(_0x1796d7(0x1a7))/0x5+-parseInt(_0x1796d7(0x19d))/0x6*(parseInt(_0x1796d7(0x1ad))/0x7)+parseInt(_0x1796d7(0x193))/0x8+parseInt(_0x1796d7(0x19b))/0x9;if(_0x16695a===_0x58d2da)break;else _0x3c0f29['push'](_0x3c0f29['shift']());}catch(_0x9a480c){_0x3c0f29['push'](_0x3c0f29['shift']());}}}(a31_0x396d,0xe220b));function a31_0xe6d7(_0x2d32d3,_0x54a976){const _0x1498c9=a31_0x396d();return a31_0xe6d7=function(_0x5da350,_0xce1616){_0x5da350=_0x5da350-0x18e;let _0x396dd1=_0x1498c9[_0x5da350];return _0x396dd1;},a31_0xe6d7(_0x2d32d3,_0x54a976);}const a31_0xce1616=(function(){const _0x1faeed=a31_0xe6d7,_0x2e8920={'FENOO':function(_0x48273f,_0x1d57aa){return _0x48273f!==_0x1d57aa;},'Pevle':_0x1faeed(0x191),'esDJe':_0x1faeed(0x194),'xmlsT':'bQFgJ'};let _0x42d57e=!![];return function(_0x403d53,_0x356ac5){const _0x1aec0f=_0x1faeed;if(_0x1aec0f(0x18e)===_0x2e8920['xmlsT']){const _0x58a655=_0x20986e[_0x1aec0f(0x197)]()[_0x1aec0f(0x1a8)](/^```json\s*/i,'')[_0x1aec0f(0x1a8)](/^```\s*/i,'')['replace'](/\s*```$/,'');try{return _0x4e7dd9[_0x1aec0f(0x1a6)](_0x58a655);}catch(_0x16f6d9){return null;}}else{const _0x29cbc0=_0x42d57e?function(){const _0x4c257e=_0x1aec0f;if(_0x2e8920[_0x4c257e(0x1ab)](_0x2e8920[_0x4c257e(0x19f)],_0x2e8920[_0x4c257e(0x199)])){if(_0x356ac5){const _0x574b07=_0x356ac5[_0x4c257e(0x190)](_0x403d53,arguments);return _0x356ac5=null,_0x574b07;}}else return _0x3fb5fa['replace'](/\n/g,'');}:function(){};return _0x42d57e=![],_0x29cbc0;}};}()),a31_0x5da350=a31_0xce1616(this,function(){const _0x3c8f95=a31_0xe6d7,_0x17baf2={'DVpJP':_0x3c8f95(0x19a)};return a31_0x5da350[_0x3c8f95(0x1ae)]()[_0x3c8f95(0x1ac)](_0x17baf2[_0x3c8f95(0x1a4)])['toString']()[_0x3c8f95(0x198)](a31_0x5da350)[_0x3c8f95(0x1ac)]('(((.+)+)+)+$');});a31_0x5da350();'use strict';Object[a31_0x4921f9(0x1a5)](exports,a31_0x4921f9(0x1af),{'value':!![]}),exports[a31_0x4921f9(0x196)]=void 0x0;class StringUtil{static[a31_0x4921f9(0x19c)](_0x560eae){return _0x560eae['replace'](/\n/g,'');}static[a31_0x4921f9(0x18f)](_0x1190c1){const _0x347bdc=a31_0x4921f9,_0xb10e7e=/```json([\s\S]*?)```/,_0x5f4bc5=_0x1190c1['match'](_0xb10e7e);return _0x5f4bc5?_0x5f4bc5[0x1][_0x347bdc(0x197)]():null;}static['stripQuote'](_0x426b30){const _0x2e7b8d=a31_0x4921f9;return _0x426b30[_0x2e7b8d(0x1a8)](/^`|`$/g,'');}static[a31_0x4921f9(0x19e)](_0x106711){const _0x307140=a31_0x4921f9,_0x366701={'PNrMy':_0x307140(0x1a1),'pSMpZ':function(_0xfff9f5,_0x232dc7){return _0xfff9f5===_0x232dc7;},'wpzmI':'gXdqt'},_0x397896=_0x106711[_0x307140(0x197)]()[_0x307140(0x1a8)](/^```json\s*/i,'')[_0x307140(0x1a8)](/^```\s*/i,'')['replace'](/\s*```$/,'');try{return _0x366701[_0x307140(0x192)]===_0x307140(0x1a2)?null:JSON[_0x307140(0x1a6)](_0x397896);}catch(_0x1f57bb){if(_0x366701['pSMpZ'](_0x366701[_0x307140(0x1a9)],_0x366701['wpzmI']))return null;else{const _0x4af2d5=_0x4ab08f?function(){if(_0x3dbf4b){const _0x587d11=_0x58f9e6['apply'](_0x4df51f,arguments);return _0x1a93fb=null,_0x587d11;}}:function(){};return _0x3091a3=![],_0x4af2d5;}}}}function a31_0x396d(){const _0x3f7800=['wpzmI','2785028yKoLUq','FENOO','search','343PFjDJY','toString','__esModule','qyWUq','stripJson','apply','nDGaZ','PNrMy','444016gMkBMa','JsjKO','10631ElxLCI','StringUtil','trim','constructor','esDJe','(((.+)+)+)+$','23675724XHBGor','stripNewlines','71826EAARea','parseJson','Pevle','298rLoSiZ','dLDUK','aoUav','874524mrtNoI','DVpJP','defineProperty','parse','29650kerDKV','replace'];a31_0x396d=function(){return _0x3f7800;};return a31_0x396d();}exports['StringUtil']=StringUtil;
|
package/utils/tool-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a32_0x4bfe94=a32_0x19c1;function a32_0x19c1(_0x4d2aa7,_0x3c4fb9){var _0x3b9acb=a32_0x10fb();return a32_0x19c1=function(_0x3f0900,_0x186a06){_0x3f0900=_0x3f0900-0xb0;var _0x10fb86=_0x3b9acb[_0x3f0900];return _0x10fb86;},a32_0x19c1(_0x4d2aa7,_0x3c4fb9);}function a32_0x10fb(){var _0x271a2e=['24552fLzCTO','__esModule','(((.+)+)+)+$','170unVNHh','ToolUtil','1550576WQTtXe','396552PGJLhA','1227yKllRn','toString','12EmHjlf','constructor','hasNoTool','141533PFlNmC','hasTool','118290hWlFjI','yyAJM','JhOJN','171lNhRTE','5payoIf','3096FwwJYy','search','617492imsjZE','length'];a32_0x10fb=function(){return _0x271a2e;};return a32_0x10fb();}(function(_0x429999,_0x2215b3){var _0x5b20f8=a32_0x19c1,_0x254dc1=_0x429999();while(!![]){try{var _0xf2fc0a=parseInt(_0x5b20f8(0xc2))/0x1*(-parseInt(_0x5b20f8(0xbe))/0x2)+-parseInt(_0x5b20f8(0xc1))/0x3+parseInt(_0x5b20f8(0xb9))/0x4*(parseInt(_0x5b20f8(0xb6))/0x5)+-parseInt(_0x5b20f8(0xc4))/0x6*(-parseInt(_0x5b20f8(0xb0))/0x7)+-parseInt(_0x5b20f8(0xc0))/0x8+parseInt(_0x5b20f8(0xb5))/0x9*(-parseInt(_0x5b20f8(0xb2))/0xa)+parseInt(_0x5b20f8(0xbb))/0xb*(parseInt(_0x5b20f8(0xb7))/0xc);if(_0xf2fc0a===_0x2215b3)break;else _0x254dc1['push'](_0x254dc1['shift']());}catch(_0x22c317){_0x254dc1['push'](_0x254dc1['shift']());}}}(a32_0x10fb,0x1c39f));var a32_0x186a06=(function(){var _0x17098b=!![];return function(_0x1cf11d,_0x5c42ac){var _0x30d5d2=_0x17098b?function(){if(_0x5c42ac){var _0x3cc7e9=_0x5c42ac['apply'](_0x1cf11d,arguments);return _0x5c42ac=null,_0x3cc7e9;}}:function(){};return _0x17098b=![],_0x30d5d2;};}()),a32_0x3f0900=a32_0x186a06(this,function(){var _0x22e723=a32_0x19c1,_0x7335a5={'yyAJM':_0x22e723(0xbd)};return a32_0x3f0900[_0x22e723(0xc3)]()[_0x22e723(0xb8)](_0x7335a5[_0x22e723(0xb3)])[_0x22e723(0xc3)]()[_0x22e723(0xc5)](a32_0x3f0900)['search'](_0x7335a5[_0x22e723(0xb3)]);});a32_0x3f0900();'use strict';Object['defineProperty'](exports,a32_0x4bfe94(0xbc),{'value':!![]}),exports[a32_0x4bfe94(0xbf)]=void 0x0;class ToolUtil{static[a32_0x4bfe94(0xb1)](_0x20aa76){var _0x513039=a32_0x4bfe94,_0x41488d={'JhOJN':function(_0x1d51ed,_0x1cf83){return _0x1d51ed>_0x1cf83;}};return _0x41488d[_0x513039(0xb4)](_0x20aa76?.['tool_calls']?.[_0x513039(0xba)],0x0);}static[a32_0x4bfe94(0xc6)](_0x454bae){var _0xe9b542=a32_0x4bfe94,_0x3fcefb={'AGPUE':function(_0x46558f,_0x4f17d8){return _0x46558f===_0x4f17d8;}};return _0x3fcefb['AGPUE'](_0x454bae?.['tool_calls']?.[_0xe9b542(0xba)],0x0);}}exports['ToolUtil']=ToolUtil;
|
package/utils/verify-license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x26c313=a33_0x425c;(function(_0x695b91,_0x27aa93){const _0x43f673=a33_0x425c,_0x2d485e=_0x695b91();while(!![]){try{const _0x1dc6e0=parseInt(_0x43f673(0x185))/0x1+parseInt(_0x43f673(0x191))/0x2*(parseInt(_0x43f673(0x1ab))/0x3)+parseInt(_0x43f673(0x19d))/0x4*(-parseInt(_0x43f673(0x181))/0x5)+parseInt(_0x43f673(0x17b))/0x6*(-parseInt(_0x43f673(0x18b))/0x7)+parseInt(_0x43f673(0x1ac))/0x8+-parseInt(_0x43f673(0x19f))/0x9*(parseInt(_0x43f673(0x195))/0xa)+-parseInt(_0x43f673(0x17f))/0xb*(-parseInt(_0x43f673(0x18c))/0xc);if(_0x1dc6e0===_0x27aa93)break;else _0x2d485e['push'](_0x2d485e['shift']());}catch(_0x51c47a){_0x2d485e['push'](_0x2d485e['shift']());}}}(a33_0x3e08,0x8ffbc));const a33_0x41c5fb=(function(){const _0xc1fabd=a33_0x425c,_0x5910a0={'KcJKl':_0xc1fabd(0x18d),'PoJna':_0xc1fabd(0x1a8)};let _0x1d1e76=!![];return function(_0x359ca2,_0x599768){const _0x30556c=_0xc1fabd,_0xa9ca59={'YRHEQ':_0x5910a0[_0x30556c(0x178)],'htkJj':function(_0x59ef7e,_0x2c061e){return _0x59ef7e!==_0x2c061e;},'DXDfe':_0x5910a0[_0x30556c(0x1a0)]},_0x2515c8=_0x1d1e76?function(){const _0x1f2352=_0x30556c;if(_0xa9ca59[_0x1f2352(0x194)](_0xa9ca59[_0x1f2352(0x183)],_0xa9ca59['DXDfe']))throw new _0x473828(_0xa9ca59[_0x1f2352(0x19a)]);else{if(_0x599768){const _0x406e54=_0x599768[_0x1f2352(0x189)](_0x359ca2,arguments);return _0x599768=null,_0x406e54;}}}:function(){};return _0x1d1e76=![],_0x2515c8;};}()),a33_0x221fbf=a33_0x41c5fb(this,function(){const _0x85f67a=a33_0x425c;return a33_0x221fbf['toString']()['search'](_0x85f67a(0x1ad))[_0x85f67a(0x199)]()[_0x85f67a(0x17e)](a33_0x221fbf)['search'](_0x85f67a(0x1ad));});function a33_0x425c(_0x4dd6e8,_0x215444){const _0x10400d=a33_0x3e08();return a33_0x425c=function(_0x221fbf,_0x41c5fb){_0x221fbf=_0x221fbf-0x177;let _0x3e08c=_0x10400d[_0x221fbf];return _0x3e08c;},a33_0x425c(_0x4dd6e8,_0x215444);}a33_0x221fbf();'use strict';var __importDefault=this&&this[a33_0x26c313(0x19c)]||function(_0x86eb78){return _0x86eb78&&_0x86eb78['__esModule']?_0x86eb78:{'default':_0x86eb78};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a33_0x26c313(0x182)]=verifyLicense;const tweetnacl_1=__importDefault(require(a33_0x26c313(0x17d))),license_util_1=require(a33_0x26c313(0x197)),PUBLIC_KEY=Buffer[a33_0x26c313(0x19e)]((0x0,license_util_1['part1'])()+(0x0,license_util_1[a33_0x26c313(0x1a4)])()+(0x0,license_util_1[a33_0x26c313(0x19b)])(),a33_0x26c313(0x1a3));let cached=null;function verifyLicense(_0x497356){const _0x2349d1=a33_0x26c313,_0x24c4ec={'CloQm':'License\x20token\x20missing','bXWiF':function(_0x40f195,_0xb71d5){return _0x40f195!==_0xb71d5;},'pQrEu':_0x2349d1(0x1a5),'KGNaj':_0x2349d1(0x180),'MWkdd':_0x2349d1(0x190),'djleJ':_0x2349d1(0x18f),'wCjIh':function(_0x48a44e,_0x33f62d){return _0x48a44e!==_0x33f62d;},'atrjp':'Unsupported\x20license\x20version','WwXLH':function(_0x493ec6,_0x59f126){return _0x493ec6/_0x59f126;},'NLLnQ':function(_0x987212,_0x151591){return _0x987212>_0x151591;},'tLFPw':'License\x20expired'};if(cached)return cached;if(typeof _0x497356!==_0x2349d1(0x1a7))throw new Error(_0x24c4ec[_0x2349d1(0x193)]);const _0x5cfdc7=(0x0,license_util_1[_0x2349d1(0x186)])(_0x497356);if(_0x24c4ec[_0x2349d1(0x184)](_0x5cfdc7[_0x2349d1(0x179)],0x54)){if(_0x24c4ec[_0x2349d1(0x184)](_0x24c4ec[_0x2349d1(0x18a)],_0x24c4ec[_0x2349d1(0x18a)]))throw new _0xc6fa71(_0x24c4ec['CloQm']);else throw new Error(_0x24c4ec[_0x2349d1(0x17c)]);}const _0x1592eb=_0x5cfdc7[_0x2349d1(0x1a6)](0x0,0x14),_0x2a88e4=_0x5cfdc7[_0x2349d1(0x1a6)](0x14),_0x70083b=tweetnacl_1[_0x2349d1(0x177)][_0x2349d1(0x198)]['detached']['verify'](_0x1592eb,_0x2a88e4,PUBLIC_KEY);if(!_0x70083b){if(_0x24c4ec[_0x2349d1(0x1a2)]!==_0x24c4ec[_0x2349d1(0x1a1)])throw new Error('Invalid\x20license\x20signature');else{const _0xead5aa=_0x2e43c4?function(){if(_0x2e2bdc){const _0x3feb05=_0x338c95['apply'](_0x58561c,arguments);return _0x193fa0=null,_0x3feb05;}}:function(){};return _0x3de104=![],_0xead5aa;}}const _0x385b9e=_0x1592eb[_0x2349d1(0x187)](0x0);if(_0x24c4ec[_0x2349d1(0x18e)](_0x385b9e,license_util_1[_0x2349d1(0x192)]))throw new Error(_0x24c4ec[_0x2349d1(0x1aa)]);const _0x24009f=_0x1592eb[_0x2349d1(0x187)](0x1),_0x5e7c40=_0x1592eb[_0x2349d1(0x196)](0x2),_0x209bad=_0x1592eb[_0x2349d1(0x196)](0x6),_0x33f6b8=_0x1592eb['readUInt16BE'](0xa),_0x472668=Math[_0x2349d1(0x188)](_0x24c4ec[_0x2349d1(0x17a)](Date['now'](),0x3e8));if(_0x24c4ec[_0x2349d1(0x1a9)](_0x472668,_0x209bad))throw new Error(_0x24c4ec['tLFPw']);return cached={'licenseType':_0x24009f,'issuedAt':_0x5e7c40,'expiresAt':_0x209bad,'features':_0x33f6b8},cached;}function a33_0x3e08(){const _0x394312=['YRHEQ','part3','__importDefault','66212opUzIl','from','9BnGrnY','PoJna','djleJ','MWkdd','base64','part2','hcbma','subarray','string','OpRrS','NLLnQ','atrjp','3099297oSddGj','6965264HeByIU','(((.+)+)+)+$','default','KcJKl','length','WwXLH','6jfTCjB','KGNaj','tweetnacl','constructor','11847ZtdNGX','Invalid\x20license\x20length','295AnRqFR','verifyLicense','DXDfe','bXWiF','119338ChLTTs','base64UrlDecode','readUInt8','floor','apply','pQrEu','1112027iKAHVE','6504vsApFu','Unsupported\x20license\x20version','wCjIh','rMXki','mFoGo','2lRVucj','LICENSE_VERSION','CloQm','htkJj','8815850bHOMBs','readUInt32BE','./license-util','sign','toString'];a33_0x3e08=function(){return _0x394312;};return a33_0x3e08();}
|