@picoflow/core 1.0.18 → 1.0.19
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/index.js +5 -2
- package/models/default-models.js +1 -1
- package/models/model-registry.js +1 -1
- package/package.json +7 -5
- 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/session/sqlite-session.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/clients/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x54c961=a0_0x2304;(function(_0x3d9a21,_0xdeabf){const _0x5da26c=a0_0x2304,_0x27e21d=_0x3d9a21();while(!![]){try{const _0x2f20ba=-parseInt(_0x5da26c(0xb2))/0x1+-parseInt(_0x5da26c(0xe3))/0x2*(-parseInt(_0x5da26c(0xc9))/0x3)+-parseInt(_0x5da26c(0xd4))/0x4*(-parseInt(_0x5da26c(0xdb))/0x5)+parseInt(_0x5da26c(0xd6))/0x6*(parseInt(_0x5da26c(0xcf))/0x7)+parseInt(_0x5da26c(0xc3))/0x8*(parseInt(_0x5da26c(0xb9))/0x9)+-parseInt(_0x5da26c(0xb0))/0xa+-parseInt(_0x5da26c(0xda))/0xb;if(_0x2f20ba===_0xdeabf)break;else _0x27e21d['push'](_0x27e21d['shift']());}catch(_0x219033){_0x27e21d['push'](_0x27e21d['shift']());}}}(a0_0x1611,0x293d2));const a0_0x3ec636=(function(){const _0x5aead0=a0_0x2304,_0x542a57={'PsKkh':_0x5aead0(0xb1)};let _0x5b11ac=!![];return function(_0x3f7f1b,_0x1e7674){const _0x16cb80=_0x5b11ac?function(){const _0x3b10dc=a0_0x2304;if(_0x542a57[_0x3b10dc(0xd3)]!==_0x3b10dc(0xb1))this['client']=_0x5eddfd[_0x3b10dc(0xdf)][_0x3b10dc(0xb4)]({'baseURL':_0x39f1c4,'timeout':_0x4afa53,'headers':_0x204093}),this[_0x3b10dc(0xb5)][_0x3b10dc(0xb6)]['request'][_0x3b10dc(0xe6)](_0x411ac7=>{return _0x411ac7;},_0x8c6bbd=>_0x23233b[_0x3b10dc(0xb7)](_0x8c6bbd)),this[_0x3b10dc(0xb5)][_0x3b10dc(0xb6)][_0x3b10dc(0xc5)][_0x3b10dc(0xe6)](_0x48c04a=>_0x48c04a[_0x3b10dc(0xc2)],_0x527419=>{const _0x3cdcae=_0x3b10dc,_0x4fc397=_0x527419['response']?.['data']?.[_0x3cdcae(0xc0)]||_0x527419['message'];return _0x45dac8[_0x3cdcae(0xb7)](new _0x187450(_0x4fc397));});else{if(_0x1e7674){const _0x2b7c0f=_0x1e7674['apply'](_0x3f7f1b,arguments);return _0x1e7674=null,_0x2b7c0f;}}}:function(){};return _0x5b11ac=![],_0x16cb80;};}()),a0_0x41aa6e=a0_0x3ec636(this,function(){const _0x390e46=a0_0x2304,_0x1beabe={'KYuWU':_0x390e46(0xdd)};return a0_0x41aa6e[_0x390e46(0xe5)]()[_0x390e46(0xe0)](_0x1beabe[_0x390e46(0xb8)])['toString']()[_0x390e46(0xbc)](a0_0x41aa6e)[_0x390e46(0xe0)](_0x1beabe[_0x390e46(0xb8)]);});a0_0x41aa6e();function a0_0x2304(_0x2a47da,_0x2c343a){const _0xc48533=a0_0x1611();return a0_0x2304=function(_0x41aa6e,_0x3ec636){_0x41aa6e=_0x41aa6e-0xad;let _0x161151=_0xc48533[_0x41aa6e];return _0x161151;},a0_0x2304(_0x2a47da,_0x2c343a);}'use strict';var __importDefault=this&&this[a0_0x54c961(0xba)]||function(_0x242f49){const _0x142996=a0_0x54c961;return _0x242f49&&_0x242f49[_0x142996(0xd5)]?_0x242f49:{'default':_0x242f49};};Object[a0_0x54c961(0xcd)](exports,a0_0x54c961(0xd5),{'value':!![]}),exports[a0_0x54c961(0xad)]=void 0x0;const common_1=require('@nestjs/common'),axios_1=__importDefault(require(a0_0x54c961(0xbe)));class HttpClient{constructor(_0x222149,_0x16b946={},_0x24a02a){const _0x59013b=a0_0x54c961,_0x2d652a={'JxuYq':_0x59013b(0xe1),'urDFz':function(_0x53a6b7,_0x2f5c0c){return _0x53a6b7!==_0x2f5c0c;},'WNcOq':'gYaHv'};this[_0x59013b(0xb5)]=axios_1['default'][_0x59013b(0xb4)]({'baseURL':_0x222149,'timeout':_0x24a02a,'headers':_0x16b946}),this[_0x59013b(0xb5)][_0x59013b(0xb6)][_0x59013b(0xd0)][_0x59013b(0xe6)](_0x3b9829=>{const _0xccaad5=_0x59013b;if(_0x2d652a[_0xccaad5(0xcb)]===_0xccaad5(0xd1)){const _0x567e36=_0x1197c7?function(){if(_0x2bcbd4){const _0x5aaed7=_0x57c25f['apply'](_0x2e6bc2,arguments);return _0x55322e=null,_0x5aaed7;}}:function(){};return _0x4019e1=![],_0x567e36;}else return _0x3b9829;},_0x201737=>Promise[_0x59013b(0xb7)](_0x201737)),this[_0x59013b(0xb5)]['interceptors'][_0x59013b(0xc5)][_0x59013b(0xe6)](_0x96141f=>_0x96141f['data'],_0x35d2d3=>{const _0x4b3971=_0x59013b;if(_0x2d652a[_0x4b3971(0xc4)]('gYaHv',_0x2d652a[_0x4b3971(0xcc)])){_0x4e4dbe[_0x4b3971(0xc7)]=_0x332128;throw _0x39c19e;}else{const _0x4f879b=_0x35d2d3[_0x4b3971(0xc5)]?.[_0x4b3971(0xc2)]?.[_0x4b3971(0xc0)]||_0x35d2d3['message'];return Promise['reject'](new Error(_0x4f879b));}});}async[a0_0x54c961(0xce)](_0x28484c,_0x2a311a={},_0xaba722){const _0xbdf4b6=a0_0x54c961,_0xe53695={'kFkrX':function(_0x3b7296,_0x4e0e58){return _0x3b7296??_0x4e0e58;}};let _0x14330c=common_1[_0xbdf4b6(0xc1)]['OK'];const _0x2567d3=_0xe53695[_0xbdf4b6(0xbf)](_0xaba722,{});_0x2567d3['validateStatus']=_0x3623cf=>{const _0x561962=_0xbdf4b6;return _0x14330c=_0x3623cf,_0x3623cf>=common_1[_0x561962(0xc1)]['OK']&&_0x3623cf<0x12c;};try{const _0x5bfc66=await this['client']['get'](_0x28484c,{'params':_0x2a311a,..._0x2567d3});return _0x5bfc66;}catch(_0x3600df){_0x3600df[_0xbdf4b6(0xc7)]=_0x14330c;throw _0x3600df;}}async[a0_0x54c961(0xe7)](_0x28b208,_0x4ac944={},_0x6d17a4){const _0x25a0ab=a0_0x54c961;return this[_0x25a0ab(0xae)](this[_0x25a0ab(0xb5)]['post'],_0x28b208,_0x4ac944,_0x6d17a4);}async[a0_0x54c961(0xe2)](_0x45c849,_0x271e49={},_0x1f5798){const _0x292ba3=a0_0x54c961;return this['setup'](this['client'][_0x292ba3(0xe2)],_0x45c849,_0x271e49,_0x1f5798);}async[a0_0x54c961(0xd9)](_0x539832,_0x17de5c){const _0x3387bf=a0_0x54c961,_0x274224={'xcnYl':function(_0x571faf,_0x1549b3){return _0x571faf>=_0x1549b3;}};let _0x440c77=common_1[_0x3387bf(0xc1)]['OK'];const _0x51f10c=_0x17de5c??{};_0x51f10c[_0x3387bf(0xe4)]=_0x62bf88=>{const _0x4add57=_0x3387bf;return _0x440c77=_0x62bf88,_0x274224[_0x4add57(0xdc)](_0x62bf88,common_1[_0x4add57(0xc1)]['OK'])&&_0x62bf88<0x12c;};try{const _0x43db73=await this[_0x3387bf(0xb5)][_0x3387bf(0xd9)](_0x539832,{..._0x17de5c});return _0x43db73;}catch(_0x24ab33){_0x24ab33['statusCode']=_0x440c77;throw _0x24ab33;}}async[a0_0x54c961(0xb3)](_0x8c559f,_0x10efbe={},_0x5376bf){const _0xc87f1f=a0_0x54c961;return this[_0xc87f1f(0xae)](this[_0xc87f1f(0xb5)]['patch'],_0x8c559f,_0x10efbe,_0x5376bf);}['setHeader'](_0x44dde7,_0x2d4b31){const _0x15b70c=a0_0x54c961;this[_0x15b70c(0xb5)][_0x15b70c(0xbd)][_0x15b70c(0xaf)]['common'][_0x44dde7]=_0x2d4b31;}[a0_0x54c961(0xc8)](_0x664b10){const _0x1f91bd=a0_0x54c961;delete this[_0x1f91bd(0xb5)][_0x1f91bd(0xbd)][_0x1f91bd(0xaf)]['common'][_0x664b10];}async['setup'](_0x5893e5,_0x5dea01,_0x3c2482={},_0x5b8a67){const _0x59b434=a0_0x54c961,_0x19b7d0={'lGaqU':function(_0x4462b1,_0x263151){return _0x4462b1>=_0x263151;},'ngyrV':function(_0x4f5bdb,_0x1d2e02){return _0x4f5bdb<_0x1d2e02;},'ZIWIb':function(_0x5cc9c6,_0x2e714e){return _0x5cc9c6??_0x2e714e;},'wNXTd':_0x59b434(0xc6),'THrrk':function(_0x7a4ddf,_0x24adec,_0x267688,_0x2ba7b7){return _0x7a4ddf(_0x24adec,_0x267688,_0x2ba7b7);}};let _0x246cec=common_1[_0x59b434(0xc1)]['OK'];const _0x3283e9=_0x19b7d0[_0x59b434(0xd8)](_0x5b8a67,{});_0x3283e9['validateStatus']=_0x2c3e54=>{const _0x3807ef=_0x59b434;return _0x246cec=_0x2c3e54,_0x19b7d0[_0x3807ef(0xbb)](_0x2c3e54,common_1[_0x3807ef(0xc1)]['OK'])&&_0x19b7d0[_0x3807ef(0xca)](_0x2c3e54,0x12c);};try{if(_0x19b7d0[_0x59b434(0xd7)]===_0x19b7d0['wNXTd']){const _0x4254c7=await _0x19b7d0[_0x59b434(0xde)](_0x5893e5,_0x5dea01,_0x3c2482,{..._0x3283e9});return _0x4254c7;}else{if(_0x43e5aa){const _0x32a92a=_0x3c2535[_0x59b434(0xd2)](_0x241645,arguments);return _0x682c34=null,_0x32a92a;}}}catch(_0x4fc802){_0x4fc802[_0x59b434(0xc7)]=_0x246cec;throw _0x4fc802;}}}exports['HttpClient']=HttpClient;function a0_0x1611(){const _0x51d96b=['958600YNxIBZ','AvTuE','108941cXfkti','patch','create','client','interceptors','reject','KYuWU','1862613vXyYMD','__importDefault','lGaqU','constructor','defaults','axios','kFkrX','message','HttpStatus','data','8cJhcWz','urDFz','response','qHPiP','statusCode','removeHeader','15vaaNwi','ngyrV','JxuYq','WNcOq','defineProperty','get','49406TMwGQR','request','nLMfv','apply','PsKkh','3236sFBfuh','__esModule','282jmSjSA','wNXTd','ZIWIb','delete','7184771dOYiCU','2060RgdyUn','xcnYl','(((.+)+)+)+$','THrrk','default','search','QcQlE','put','61954inNMfq','validateStatus','toString','use','post','HttpClient','setup','headers'];a0_0x1611=function(){return _0x51d96b;};return a0_0x1611();}
|
package/clients/self-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x1b359c=a1_0x1b4c;(function(_0x304059,_0x35d748){const _0x582ef6=a1_0x1b4c,_0x280995=_0x304059();while(!![]){try{const _0x4c8015=parseInt(_0x582ef6(0x160))/0x1*(-parseInt(_0x582ef6(0x16e))/0x2)+parseInt(_0x582ef6(0x167))/0x3*(parseInt(_0x582ef6(0x169))/0x4)+-parseInt(_0x582ef6(0x173))/0x5+-parseInt(_0x582ef6(0x164))/0x6+parseInt(_0x582ef6(0x165))/0x7+parseInt(_0x582ef6(0x162))/0x8*(-parseInt(_0x582ef6(0x16c))/0x9)+parseInt(_0x582ef6(0x170))/0xa*(parseInt(_0x582ef6(0x166))/0xb);if(_0x4c8015===_0x35d748)break;else _0x280995['push'](_0x280995['shift']());}catch(_0x1442f6){_0x280995['push'](_0x280995['shift']());}}}(a1_0x5c47,0x68ae0));function a1_0x1b4c(_0x4d12bc,_0x2d952c){const _0x540186=a1_0x5c47();return a1_0x1b4c=function(_0x597b9e,_0x3b569e){_0x597b9e=_0x597b9e-0x160;let _0x5c4775=_0x540186[_0x597b9e];return _0x5c4775;},a1_0x1b4c(_0x4d12bc,_0x2d952c);}const a1_0x3b569e=(function(){let _0x855c98=!![];return function(_0x385e16,_0x240bae){const _0xfc0c58=_0x855c98?function(){if(_0x240bae){const _0x2e7b2e=_0x240bae['apply'](_0x385e16,arguments);return _0x240bae=null,_0x2e7b2e;}}:function(){};return _0x855c98=![],_0xfc0c58;};}()),a1_0x597b9e=a1_0x3b569e(this,function(){const _0xe8d2d6=a1_0x1b4c,_0x462bc4={'BCwZn':_0xe8d2d6(0x168)};return a1_0x597b9e[_0xe8d2d6(0x16d)]()['search'](_0x462bc4[_0xe8d2d6(0x16a)])[_0xe8d2d6(0x16d)]()[_0xe8d2d6(0x172)](a1_0x597b9e)[_0xe8d2d6(0x161)](_0x462bc4['BCwZn']);});a1_0x597b9e();'use strict';Object['defineProperty'](exports,a1_0x1b359c(0x16b),{'value':!![]}),exports[a1_0x1b359c(0x163)]=void 0x0;const core_config_1=require('../configs/core-config'),http_client_1=require(a1_0x1b359c(0x171));class SelfClient extends http_client_1[a1_0x1b359c(0x16f)]{constructor(_0x98a61f={},_0x5ee490){super(core_config_1['CoreConfig']['selfURL'],_0x98a61f,_0x5ee490);}}exports[a1_0x1b359c(0x163)]=SelfClient;function a1_0x5c47(){const _0x54bdb0=['__esModule','6853446HrkRku','toString','240462jXmxHD','HttpClient','110gLbHPZ','./http-client','constructor','1712480FTYazc','2YRuPwg','search','8IrzvZa','SelfClient','5010696bJGYid','4843216FRHugb','1667589BpAKQy','81XdIZfy','(((.+)+)+)+$','36868ezljih','BCwZn'];a1_0x5c47=function(){return _0x54bdb0;};return a1_0x5c47();}
|
package/configs/core-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x425d66=a2_0x5ae0;(function(_0x192a8a,_0x37a90e){const _0x2ea332=a2_0x5ae0,_0xc3eddc=_0x192a8a();while(!![]){try{const _0x47a6a7=-parseInt(_0x2ea332(0xf9))/0x1*(-parseInt(_0x2ea332(0xd4))/0x2)+parseInt(_0x2ea332(0xf8))/0x3*(parseInt(_0x2ea332(0x10a))/0x4)+-parseInt(_0x2ea332(0xe3))/0x5+-parseInt(_0x2ea332(0xdd))/0x6+parseInt(_0x2ea332(0x101))/0x7*(-parseInt(_0x2ea332(0xd6))/0x8)+-parseInt(_0x2ea332(0xea))/0x9*(-parseInt(_0x2ea332(0xfa))/0xa)+parseInt(_0x2ea332(0xf2))/0xb;if(_0x47a6a7===_0x37a90e)break;else _0xc3eddc['push'](_0xc3eddc['shift']());}catch(_0x4689ba){_0xc3eddc['push'](_0xc3eddc['shift']());}}}(a2_0x49e6,0xf407a));const a2_0x21f2e8=(function(){const _0x15ffaf=a2_0x5ae0,_0x18be62={'SevDM':_0x15ffaf(0xe2),'sKoLr':_0x15ffaf(0xcc)};let _0x44be7a=!![];return function(_0x14c525,_0x1da7ed){const _0x170bd0=_0x15ffaf,_0xa37948={'LYITo':_0x18be62[_0x170bd0(0xf4)],'LEUus':'WytTj','oXZBY':function(_0x2cb620,_0x483ff2){return _0x2cb620!==_0x483ff2;},'YGBWi':_0x18be62[_0x170bd0(0x10e)]},_0x1a263f=_0x44be7a?function(){const _0x1542a6=_0x170bd0,_0x2f752a={'tvwus':_0xa37948['LYITo']};if(_0xa37948[_0x1542a6(0x105)]!==_0xa37948[_0x1542a6(0x105)])return _0x3d0ae9[_0x1542a6(0x108)]()[_0x1542a6(0xf3)](_0x2f752a['tvwus'])[_0x1542a6(0x108)]()[_0x1542a6(0xfc)](_0x57ac5e)['search'](_0x2f752a[_0x1542a6(0xf7)]);else{if(_0x1da7ed){if(_0xa37948['oXZBY'](_0x1542a6(0xd9),_0xa37948[_0x1542a6(0x10b)])){const _0x5db266=_0x1da7ed[_0x1542a6(0x104)](_0x14c525,arguments);return _0x1da7ed=null,_0x5db266;}else return!this[_0x1542a6(0xde)]&&(this['instance']=new _0x1469dc(_0x15aeda)),this[_0x1542a6(0xde)];}}}:function(){};return _0x44be7a=![],_0x1a263f;};}()),a2_0x2048ff=a2_0x21f2e8(this,function(){const _0x18d13c=a2_0x5ae0,_0xc7f80e={'RansH':'(((.+)+)+)+$'};return a2_0x2048ff['toString']()[_0x18d13c(0xf3)](_0xc7f80e[_0x18d13c(0xfe)])[_0x18d13c(0x108)]()[_0x18d13c(0xfc)](a2_0x2048ff)[_0x18d13c(0xf3)](_0xc7f80e[_0x18d13c(0xfe)]);});a2_0x2048ff();'use strict';function a2_0x5ae0(_0x392913,_0x39671d){const _0x2709bd=a2_0x49e6();return a2_0x5ae0=function(_0x2048ff,_0x21f2e8){_0x2048ff=_0x2048ff-0xca;let _0x49e64c=_0x2709bd[_0x2048ff];return _0x49e64c;},a2_0x5ae0(_0x392913,_0x39671d);}Object[a2_0x425d66(0xcd)](exports,a2_0x425d66(0xe0),{'value':!![]}),exports[a2_0x425d66(0xdc)]=void 0x0;const environ_1=require('../utils/environ');class CoreConfig{constructor(_0x3abdec){const _0x1272ed=a2_0x425d66,_0x1272c8={'NyHzK':'PICOFLOW_KEY','UKXPm':_0x1272ed(0xf5),'WOhQm':_0x1272ed(0xf1),'satIZ':_0x1272ed(0x102),'FNnkn':_0x1272ed(0xe5),'zRkHk':'NVIDIA_API_KEY','ydvZC':_0x1272ed(0xd0),'egHlU':_0x1272ed(0x10c),'eJEmx':_0x1272ed(0xec),'UMfmH':'COSMODB_SESSION_ID','euixe':_0x1272ed(0xe9),'rvKyy':_0x1272ed(0xcb),'ynwWz':'MONGODB_URL','zKRPR':_0x1272ed(0x10f),'WfQfo':_0x1272ed(0xe1)};CoreConfig[_0x1272ed(0xeb)]=(0x0,environ_1[_0x1272ed(0xd1)])(_0x3abdec[_0x1272ed(0xd2)]('LLM_RETRY',0x3)),CoreConfig['llmTemperature']=(0x0,environ_1[_0x1272ed(0xd1)])(_0x3abdec['get'](_0x1272ed(0xf0),0x0)),CoreConfig[_0x1272ed(0xe4)]=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xd3)])['trim'](),CoreConfig[_0x1272ed(0xed)]=_0x3abdec[_0x1272ed(0xd2)](_0x1272c8[_0x1272ed(0x100)]),CoreConfig[_0x1272ed(0xfd)]=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xca)])[_0x1272ed(0x107)](),CoreConfig['OpenAIKey']=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xff)])[_0x1272ed(0x107)](),CoreConfig['AnthropicKey']=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xe7)])[_0x1272ed(0x107)](),CoreConfig['NvidiaKey']=_0x3abdec[_0x1272ed(0xd2)](_0x1272c8['zRkHk'])?.[_0x1272ed(0x107)](),CoreConfig['documentDB']=_0x3abdec[_0x1272ed(0xd2)](_0x1272c8['ydvZC'],_0x1272c8[_0x1272ed(0x110)]),CoreConfig[_0x1272ed(0xd5)]=_0x3abdec[_0x1272ed(0xd2)](_0x1272c8[_0x1272ed(0xdf)]),CoreConfig[_0x1272ed(0xe8)]=_0x3abdec[_0x1272ed(0xd2)]('COSMODB_URL'),CoreConfig[_0x1272ed(0xda)]=_0x3abdec[_0x1272ed(0xd2)](_0x1272ed(0xdb)),CoreConfig[_0x1272ed(0xd7)]=_0x3abdec[_0x1272ed(0xd2)](_0x1272c8[_0x1272ed(0x106)]),CoreConfig['mongoDB']=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xcf)]),CoreConfig[_0x1272ed(0xf6)]=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xce)]),CoreConfig[_0x1272ed(0xef)]=_0x3abdec[_0x1272ed(0x10d)](_0x1272c8[_0x1272ed(0xee)]),CoreConfig[_0x1272ed(0x109)]=_0x3abdec['get'](_0x1272c8['zKRPR'])??_0x1272ed(0xd8),CoreConfig[_0x1272ed(0xfb)]=(0x0,environ_1[_0x1272ed(0xd1)])(_0x3abdec[_0x1272ed(0xd2)](_0x1272c8['WfQfo'],0x258));}static['setup'](_0x28e0e6){const _0x5a492e=a2_0x425d66,_0x3702ab={'Cbgbw':function(_0x2ab2c0,_0x4a4c27){return _0x2ab2c0===_0x4a4c27;},'DahEI':_0x5a492e(0x103)};if(!this['instance']){if(_0x3702ab['Cbgbw'](_0x3702ab[_0x5a492e(0xe6)],_0x3702ab[_0x5a492e(0xe6)]))this[_0x5a492e(0xde)]=new CoreConfig(_0x28e0e6);else{if(_0x4bb347){const _0x27a374=_0x1fdb67[_0x5a492e(0x104)](_0x56025e,arguments);return _0x590828=null,_0x27a374;}}}return this['instance'];}}exports[a2_0x425d66(0xdc)]=CoreConfig;function a2_0x49e6(){const _0x4fb6e6=['ignore/session/session.sqlite','hHjYw','cosmoDbId','COSMODB_ID','CoreConfig','6832128wPqACo','instance','eJEmx','__esModule','SESSION_EXPIRATION','(((.+)+)+)+$','8743625OVDUkj','picoKey','ANTHROPIC_KEY','DahEI','FNnkn','cosmoDbUrl','MONGODB_NAME','5759028priZaD','llmRetry','COSMODB_KEY','selfURL','ynwWz','mongoURL','LLM_TEMPERATURE','GEMINI_KEY','21319782AJUKbl','search','SevDM','SELF_URL','mongoCollection','tvwus','21EtTACl','1MOHTyZ','10gaPCqI','sessionExpiration','constructor','GeminiKey','RansH','satIZ','UKXPm','56yggimN','OPENAI_KEY','YjzoH','apply','LEUus','UMfmH','trim','toString','sqlitePath','730648vKAxZt','YGBWi','MONGO','getOrThrow','sKoLr','SQLITE_PATH','egHlU','WOhQm','MONGODB_COLLECTION','BwdUb','defineProperty','rvKyy','euixe','DOCUMENT_DB','GetAs','get','NyHzK','2209614XivKUV','cosmoDbKey','1074536bzKvLp','cosmoDbSessionId'];a2_0x49e6=function(){return _0x4fb6e6;};return a2_0x49e6();}
|
package/decorators/stop-tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x254db1=a3_0x3b33;(function(_0x6ff3d7,_0x5bb1e2){const _0xf0e24=a3_0x3b33,_0x37e7dc=_0x6ff3d7();while(!![]){try{const _0x5aa287=parseInt(_0xf0e24(0x14f))/0x1+parseInt(_0xf0e24(0x14e))/0x2*(-parseInt(_0xf0e24(0x157))/0x3)+-parseInt(_0xf0e24(0x156))/0x4*(parseInt(_0xf0e24(0x150))/0x5)+-parseInt(_0xf0e24(0x155))/0x6*(parseInt(_0xf0e24(0x14c))/0x7)+parseInt(_0xf0e24(0x15e))/0x8+parseInt(_0xf0e24(0x149))/0x9+-parseInt(_0xf0e24(0x152))/0xa;if(_0x5aa287===_0x5bb1e2)break;else _0x37e7dc['push'](_0x37e7dc['shift']());}catch(_0xe6e1a7){_0x37e7dc['push'](_0x37e7dc['shift']());}}}(a3_0x3aa1,0x2adf6));const a3_0x449b1b=(function(){let _0x5d3637=!![];return function(_0x19909e,_0xe3d369){const _0x2ce3d3=_0x5d3637?function(){if(_0xe3d369){const _0x128730=_0xe3d369['apply'](_0x19909e,arguments);return _0xe3d369=null,_0x128730;}}:function(){};return _0x5d3637=![],_0x2ce3d3;};}()),a3_0x39ff5c=a3_0x449b1b(this,function(){const _0x5c2891=a3_0x3b33,_0x16ec8e={'FVSMc':_0x5c2891(0x15c)};return a3_0x39ff5c[_0x5c2891(0x153)]()[_0x5c2891(0x14d)](_0x16ec8e[_0x5c2891(0x151)])[_0x5c2891(0x153)]()[_0x5c2891(0x158)](a3_0x39ff5c)['search'](_0x16ec8e[_0x5c2891(0x151)]);});a3_0x39ff5c();function a3_0x3b33(_0x33336c,_0x5ccd79){const _0x39de66=a3_0x3aa1();return a3_0x3b33=function(_0x39ff5c,_0x449b1b){_0x39ff5c=_0x39ff5c-0x149;let _0x3aa100=_0x39de66[_0x39ff5c];return _0x3aa100;},a3_0x3b33(_0x33336c,_0x5ccd79);}'use strict';Object[a3_0x254db1(0x15f)](exports,a3_0x254db1(0x14b),{'value':!![]}),exports[a3_0x254db1(0x15b)]=exports[a3_0x254db1(0x159)]=void 0x0;const StopToolPrompt=()=>{return(_0x5869d9,_0x50e783,_0x4e62e6)=>{const _0x355063=a3_0x3b33,_0x55e6d6=_0x4e62e6[_0x355063(0x15d)];return _0x4e62e6[_0x355063(0x15d)]=async function(..._0x1362ce){const _0x1dfbcc=_0x355063;let _0x35da7b=await _0x55e6d6[_0x1dfbcc(0x160)](this);return _0x35da7b=await this[_0x1dfbcc(0x15a)](_0x35da7b),_0x35da7b;},_0x4e62e6;};};function a3_0x3aa1(){const _0x1f09b4=['value','2674616BwaDXL','defineProperty','apply','1486017WZfDfz','setStopTool','__esModule','14WuqAzN','search','4AmjIwC','38009DMUUBb','165hjncQc','FVSMc','2255880RXgIIK','toString','name','154542WlUvuS','9692vmxkFy','7173YCspIh','constructor','StopToolPrompt','amendTool','StopToolMessage','(((.+)+)+)+$'];a3_0x3aa1=function(){return _0x1f09b4;};return a3_0x3aa1();}exports[a3_0x254db1(0x159)]=StopToolPrompt;const StopToolMessage=()=>{return(_0x5d7205,_0x23ad5c,_0x5d8035)=>{const _0x54c43a=a3_0x3b33,_0x488499=_0x5d8035[_0x54c43a(0x15d)];return _0x5d8035['value']=async function(..._0x4fe8dd){const _0x403d55=_0x54c43a,_0x4ab746=_0x4fe8dd[0x0],_0x2a9423=await _0x488499[_0x403d55(0x160)](this,_0x4fe8dd);return this[_0x403d55(0x14a)](_0x2a9423,_0x4ab746[_0x403d55(0x154)]);},_0x5d8035;};};exports['StopToolMessage']=StopToolMessage;
|
package/flow/content-type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x15160d=a4_0x364e;(function(_0x3f001d,_0x23e2d3){var _0x217f75=a4_0x364e,_0x55a500=_0x3f001d();while(!![]){try{var _0x2c1776=-parseInt(_0x217f75(0x148))/0x1*(-parseInt(_0x217f75(0x14c))/0x2)+parseInt(_0x217f75(0x150))/0x3+parseInt(_0x217f75(0x105))/0x4+-parseInt(_0x217f75(0x109))/0x5*(parseInt(_0x217f75(0x149))/0x6)+-parseInt(_0x217f75(0x124))/0x7*(parseInt(_0x217f75(0x117))/0x8)+-parseInt(_0x217f75(0x16d))/0x9*(-parseInt(_0x217f75(0x167))/0xa)+parseInt(_0x217f75(0x15e))/0xb*(-parseInt(_0x217f75(0x108))/0xc);if(_0x2c1776===_0x23e2d3)break;else _0x55a500['push'](_0x55a500['shift']());}catch(_0x486816){_0x55a500['push'](_0x55a500['shift']());}}}(a4_0x7eb2,0x20ad9));Object[a4_0x15160d(0x101)](exports,a4_0x15160d(0xfa),{'value':!![]}),exports[a4_0x15160d(0x113)]=void 0x0;function a4_0x364e(_0x3eea09,_0x3e3ebe){var _0x52b725=a4_0x7eb2();return a4_0x364e=function(_0x194d78,_0x326fca){_0x194d78=_0x194d78-0xf7;var _0x7eb219=_0x52b725[_0x194d78];return _0x7eb219;},a4_0x364e(_0x3eea09,_0x3e3ebe);}var HttpContentType;function a4_0x7eb2(){var _0x4f6839=['Xls','xPJTN','EqsPF','2391818RRSQBH','Webp','image/svg+xml','TextXml','Gzip','video/mp4','XUbwy','jTnOP','wYwms','10gPNhEV','ADTQG','Svg','IdDOi','application/msword','CBWgX','2269638TumEjg','FiqTK','application/x-yaml','Ogg','__esModule','QTHEB','OoklF','NmHoR','Json','cuGEp','Yaml','defineProperty','toString','Tar','EdlGQ','90736tlBcij','WIQGx','QMKFs','12tzoNNj','621545XtfeVt','text/xml','qAcdJ','AtomXml','iFCRk','OYIPj','IcTJB','application/xml','search','FVuAX','HttpContentType','application/vnd.oasis.opendocument.spreadsheet','WCxPh','ymyYP','2864dPUArW','dqYey','Html','Mp3','image/webp','wYxdQ','wFfCV','Ods','text/rtf','text/html','application/vnd.api+json','Zip','application/vnd.oasis.opendocument.text','133lPphRx','OLYkX','Xlsx','application/vnd.openxmlformats-officedocument.wordprocessingml.document','eiuIy','apply','Mp4','CYpmj','constructor','dTGBl','VXWZl','bsXsZ','application/zip','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','Docx','hrQQZ','ehaLY','Rtf','Jpeg','CMxcI','DrCIp','audio/ogg','oJKik','rcBqK','application/json','application/x-tar','application/octet-stream','INZbU','image/jpeg','Png','FormUrlEncoded','OctetStream','cPPha','Odt','application/pdf','HoYVk','1607lSyhDG','6eNmbiL','Markdown','video/webm','36AskPRJ','HSQqh','Gif','cvzRt','535818JrPyOf','MultipartFormData','RssXml','application/vnd.ms-excel','auQHc','image/png','TkFfQ','RyEFu','PghGQ','QXddi','application/gzip'];a4_0x7eb2=function(){return _0x4f6839;};return a4_0x7eb2();}(function(_0x20ec19){var _0x5e0fd7=a4_0x15160d,_0x156d29={'QMKFs':'(((.+)+)+)+$','jTnOP':function(_0x452420){return _0x452420();},'FiqTK':_0x5e0fd7(0xfe),'wYxdQ':_0x5e0fd7(0x13c),'IkOmI':'Xml','RyEFu':_0x5e0fd7(0x161),'EqsPF':_0x5e0fd7(0x152),'vuudW':'application/rss+xml','PghGQ':_0x5e0fd7(0x10c),'UqbYa':'application/atom+xml','qAcdJ':_0x5e0fd7(0x100),'eiuIy':_0x5e0fd7(0xf8),'EdlGQ':'TextYaml','cuGEp':'JsonLd','WCxPh':'application/ld+json','INZbU':_0x5e0fd7(0x142),'FVuAX':'application/x-www-form-urlencoded','cPPha':'multipart/form-data','hrQQZ':'JsonApi','xPJTN':_0x5e0fd7(0x120),'oJKik':'Plain','KdYqx':'Pdf','dTGBl':_0x5e0fd7(0x146),'cvzRt':'MsWord','ehaLY':_0x5e0fd7(0x16b),'WIQGx':_0x5e0fd7(0x132),'wFfCV':_0x5e0fd7(0x127),'pUJdo':_0x5e0fd7(0x145),'bsXsZ':_0x5e0fd7(0x135),'OLYkX':_0x5e0fd7(0x11f),'HSQqh':_0x5e0fd7(0x14a),'OYIPj':'text/markdown','bLJwn':'text/csv','DrCIp':_0x5e0fd7(0x15b),'AbGPY':_0x5e0fd7(0x153),'QTHEB':_0x5e0fd7(0x126),'XUbwy':_0x5e0fd7(0x11e),'rcBqK':_0x5e0fd7(0x114),'ymyYP':_0x5e0fd7(0x141),'auQHc':_0x5e0fd7(0x155),'ADTQG':_0x5e0fd7(0x136),'HoYVk':_0x5e0fd7(0x140),'CMxcI':_0x5e0fd7(0x14e),'TkFfQ':'image/gif','dqYey':_0x5e0fd7(0x15f),'wYwms':_0x5e0fd7(0x11b),'CYpmj':_0x5e0fd7(0x169),'IdDOi':_0x5e0fd7(0x11a),'VXWZl':'audio/mpeg','IcTJB':_0x5e0fd7(0x12a),'NmHoR':_0x5e0fd7(0x163),'QXddi':'Webm','iFCRk':_0x5e0fd7(0x143),'dVojS':_0x5e0fd7(0x13e),'CBWgX':_0x5e0fd7(0x122),'OoklF':_0x5e0fd7(0x130),'MLlcz':_0x5e0fd7(0x162),'RFshy':_0x5e0fd7(0x15a),'xVxmu':_0x5e0fd7(0x103)},_0x4d0b95=(function(){var _0x59659a=!![];return function(_0x588b05,_0x5a9e0d){var _0x107efe=_0x59659a?function(){var _0x3dc5f4=a4_0x364e;if(_0x5a9e0d){var _0x23ae03=_0x5a9e0d[_0x3dc5f4(0x129)](_0x588b05,arguments);return _0x5a9e0d=null,_0x23ae03;}}:function(){};return _0x59659a=![],_0x107efe;};}()),_0x42a5c0=_0x4d0b95(this,function(){var _0x291bad=_0x5e0fd7;return _0x42a5c0[_0x291bad(0x102)]()[_0x291bad(0x111)](_0x156d29[_0x291bad(0x107)])[_0x291bad(0x102)]()[_0x291bad(0x12c)](_0x42a5c0)[_0x291bad(0x111)](_0x156d29['QMKFs']);});_0x156d29[_0x5e0fd7(0x165)](_0x42a5c0),_0x20ec19[_0x156d29[_0x5e0fd7(0xf7)]]=_0x156d29[_0x5e0fd7(0x11c)],_0x20ec19[_0x156d29['IkOmI']]=_0x5e0fd7(0x110),_0x20ec19[_0x156d29[_0x5e0fd7(0x157)]]=_0x5e0fd7(0x10a),_0x20ec19[_0x156d29[_0x5e0fd7(0x15d)]]=_0x156d29['vuudW'],_0x20ec19[_0x156d29[_0x5e0fd7(0x158)]]=_0x156d29['UqbYa'],_0x20ec19[_0x156d29[_0x5e0fd7(0x10b)]]=_0x156d29[_0x5e0fd7(0x128)],_0x20ec19[_0x156d29[_0x5e0fd7(0x104)]]='text/yaml',_0x20ec19[_0x156d29[_0x5e0fd7(0xff)]]=_0x156d29[_0x5e0fd7(0x115)],_0x20ec19[_0x156d29[_0x5e0fd7(0x13f)]]=_0x156d29[_0x5e0fd7(0x112)],_0x20ec19[_0x5e0fd7(0x151)]=_0x156d29[_0x5e0fd7(0x144)],_0x20ec19[_0x156d29[_0x5e0fd7(0x133)]]=_0x5e0fd7(0x121),_0x20ec19[_0x5e0fd7(0x119)]=_0x156d29[_0x5e0fd7(0x15c)],_0x20ec19[_0x156d29[_0x5e0fd7(0x13a)]]='text/plain',_0x20ec19[_0x156d29['KdYqx']]=_0x156d29[_0x5e0fd7(0x12d)],_0x20ec19[_0x156d29[_0x5e0fd7(0x14f)]]=_0x156d29[_0x5e0fd7(0x134)],_0x20ec19[_0x156d29[_0x5e0fd7(0x106)]]=_0x156d29[_0x5e0fd7(0x11d)],_0x20ec19[_0x156d29['pUJdo']]=_0x5e0fd7(0x123),_0x20ec19[_0x156d29[_0x5e0fd7(0x12f)]]=_0x156d29[_0x5e0fd7(0x125)],_0x20ec19[_0x156d29[_0x5e0fd7(0x14d)]]=_0x156d29[_0x5e0fd7(0x10e)],_0x20ec19['Csv']=_0x156d29['bLJwn'],_0x20ec19[_0x156d29[_0x5e0fd7(0x138)]]=_0x156d29['AbGPY'],_0x20ec19[_0x156d29[_0x5e0fd7(0xfb)]]=_0x5e0fd7(0x131),_0x20ec19[_0x156d29[_0x5e0fd7(0x164)]]=_0x156d29[_0x5e0fd7(0x13b)],_0x20ec19[_0x156d29[_0x5e0fd7(0x116)]]=_0x156d29[_0x5e0fd7(0x154)],_0x20ec19[_0x156d29[_0x5e0fd7(0x168)]]=_0x156d29[_0x5e0fd7(0x147)],_0x20ec19[_0x156d29[_0x5e0fd7(0x137)]]=_0x156d29[_0x5e0fd7(0x156)],_0x20ec19[_0x156d29[_0x5e0fd7(0x118)]]=_0x156d29[_0x5e0fd7(0x166)],_0x20ec19[_0x156d29[_0x5e0fd7(0x12b)]]=_0x5e0fd7(0x160),_0x20ec19[_0x156d29[_0x5e0fd7(0x16a)]]=_0x156d29[_0x5e0fd7(0x12e)],_0x20ec19[_0x5e0fd7(0xf9)]=_0x5e0fd7(0x139),_0x20ec19[_0x156d29[_0x5e0fd7(0x10f)]]=_0x156d29[_0x5e0fd7(0xfd)],_0x20ec19[_0x156d29[_0x5e0fd7(0x159)]]=_0x5e0fd7(0x14b),_0x20ec19[_0x156d29[_0x5e0fd7(0x10d)]]=_0x156d29['dVojS'],_0x20ec19[_0x156d29[_0x5e0fd7(0x16c)]]=_0x156d29[_0x5e0fd7(0xfc)],_0x20ec19[_0x156d29['MLlcz']]=_0x156d29['RFshy'],_0x20ec19[_0x156d29['xVxmu']]=_0x5e0fd7(0x13d);}(HttpContentType||(exports[a4_0x15160d(0x113)]=HttpContentType={})));
|
package/flow/end-step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x3f76f0=a5_0x3621;(function(_0x137dfa,_0x342b69){const _0x1f1ea2=a5_0x3621,_0x27e255=_0x137dfa();while(!![]){try{const _0x26e68e=-parseInt(_0x1f1ea2(0x1c8))/0x1+parseInt(_0x1f1ea2(0x1c6))/0x2+-parseInt(_0x1f1ea2(0x1e7))/0x3+-parseInt(_0x1f1ea2(0x1de))/0x4*(-parseInt(_0x1f1ea2(0x1cc))/0x5)+parseInt(_0x1f1ea2(0x1d9))/0x6*(-parseInt(_0x1f1ea2(0x1dd))/0x7)+parseInt(_0x1f1ea2(0x1d7))/0x8*(-parseInt(_0x1f1ea2(0x1dc))/0x9)+parseInt(_0x1f1ea2(0x1d5))/0xa;if(_0x26e68e===_0x342b69)break;else _0x27e255['push'](_0x27e255['shift']());}catch(_0x1127f1){_0x27e255['push'](_0x27e255['shift']());}}}(a5_0x48b3,0xc9a30));const a5_0x262963=(function(){const _0xd8774e={'VcTgZ':'JHNdj','qpGLT':'gFjIh'};let _0x400e06=!![];return function(_0x1a6a23,_0x457993){const _0x45a978=a5_0x3621,_0xb8da60={'fBKEI':_0x45a978(0x1e9)},_0x174323=_0x400e06?function(){const _0xad2761=_0x45a978;if(_0x457993){if(_0xd8774e['VcTgZ']!==_0xd8774e[_0xad2761(0x1cf)]){const _0x4e6b3c=_0x457993['apply'](_0x1a6a23,arguments);return _0x457993=null,_0x4e6b3c;}else return new _0x27f87f['HumanMessageEx'](this,_0xb8da60[_0xad2761(0x1e4)]);}}:function(){};return _0x400e06=![],_0x174323;};}()),a5_0x412b27=a5_0x262963(this,function(){const _0x51916d=a5_0x3621,_0x4919e2={'LuNBj':_0x51916d(0x1d6)};return a5_0x412b27[_0x51916d(0x1df)]()[_0x51916d(0x1c3)](_0x4919e2[_0x51916d(0x1c9)])[_0x51916d(0x1df)]()[_0x51916d(0x1ec)](a5_0x412b27)[_0x51916d(0x1c3)](_0x4919e2['LuNBj']);});a5_0x412b27();function a5_0x3621(_0x1cca9e,_0x105cd2){const _0x49f3d9=a5_0x48b3();return a5_0x3621=function(_0x412b27,_0x262963){_0x412b27=_0x412b27-0x1c1;let _0x48b31d=_0x49f3d9[_0x412b27];return _0x48b31d;},a5_0x3621(_0x1cca9e,_0x105cd2);}'use strict';var __importDefault=this&&this['__importDefault']||function(_0x241e98){const _0x144943=a5_0x3621;return _0x241e98&&_0x241e98[_0x144943(0x1cb)]?_0x241e98:{'default':_0x241e98};};Object[a5_0x3f76f0(0x1eb)](exports,a5_0x3f76f0(0x1cb),{'value':!![]}),exports[a5_0x3f76f0(0x1e1)]=void 0x0;const zod_1=__importDefault(require(a5_0x3f76f0(0x1c1))),message_util_1=require(a5_0x3f76f0(0x1e3)),step_1=require(a5_0x3f76f0(0x1e8)),AbruptEndPrompt=a5_0x3f76f0(0x1c4);class EndStep extends step_1['Step']{constructor(_0x3552b8,_0x5bab37){super(EndStep,_0x3552b8,_0x5bab37);}[a5_0x3f76f0(0x1c5)](_0x218e88,_0xda52f){const _0x29a6b9=a5_0x3f76f0;return new message_util_1[(_0x29a6b9(0x1e2))](this,_0x29a6b9(0x1e9));}['isEnd'](){return!![];}async[a5_0x3f76f0(0x1cd)](){const _0x2f0e82=a5_0x3f76f0,_0x42f260=this[_0x2f0e82(0x1ce)][_0x2f0e82(0x1e6)]();_0x42f260[_0x2f0e82(0x1d1)]=_0x2f0e82(0x1e0);}[a5_0x3f76f0(0x1c7)](){const _0x182e1e=a5_0x3f76f0,_0x63097c={'FjLCk':function(_0x47231e,_0x5beeb2){return _0x47231e===_0x5beeb2;},'ohESw':_0x182e1e(0x1d0),'CxBOu':'aHykn'},_0x11ac5f=super[_0x182e1e(0x1c7)]();return _0x11ac5f?_0x11ac5f:_0x63097c[_0x182e1e(0x1d3)](_0x63097c[_0x182e1e(0x1db)],_0x63097c['CxBOu'])?_0x36f95e:AbruptEndPrompt;}[a5_0x3f76f0(0x1d2)](){const _0x104da7=a5_0x3f76f0,_0x296727={'TaNEh':_0x104da7(0x1d4),'FUyzd':_0x104da7(0x1da),'iweKC':'the\x20prompt\x20to\x20be\x20displayed\x20later'};return[{'name':_0x296727['TaNEh'],'description':_0x296727[_0x104da7(0x1ca)],'schema':zod_1[_0x104da7(0x1e5)][_0x104da7(0x1ea)]({'prompt':zod_1[_0x104da7(0x1e5)][_0x104da7(0x1c2)]()[_0x104da7(0x1ed)](_0x296727[_0x104da7(0x1d8)])})}];}async[a5_0x3f76f0(0x1d4)](_0x1e05d6){return{'step':EndStep};}}function a5_0x48b3(){const _0x25d9ab=['3392459jQzZIW','188BzoTbP','toString','completed','EndStep','HumanMessageEx','../utils/message-util','fBKEI','default','getSessionDoc','1486452FwWIWp','./step','I\x27m\x20done\x20with\x20chat','object','defineProperty','constructor','describe','zod','string','search','\x0aNicely\x20tell\x20the\x20user\x20this\x20is\x20the\x20end\x20of\x20conversation\x20as\x20they\x20requested,\x20you\x20MUST\x20NOT\x20talk\x20other\x20things!\x0a','onCrossing','2360694ZAmVkm','getPrompt','846073GEaqff','LuNBj','FUyzd','__esModule','162385ioebjW','onEnter','flow','qpGLT','cFvZx','runStatus','defineTool','FjLCk','end_chat','10510490LHYkju','(((.+)+)+)+$','4968640ybyPqA','iweKC','12ToYkDm','end\x20the\x20chat\x20conversation','ohESw','9zoxftp'];a5_0x48b3=function(){return _0x25d9ab;};return a5_0x48b3();}exports[a5_0x3f76f0(0x1e1)]=EndStep;
|
package/flow/flow-creator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a6_0x1b55(_0x1dcd0a,_0x3d45e8){const _0x14ca27=a6_0x577a();return a6_0x1b55=function(_0x387f10,_0x5df197){_0x387f10=_0x387f10-0x14e;let _0x577a92=_0x14ca27[_0x387f10];return _0x577a92;},a6_0x1b55(_0x1dcd0a,_0x3d45e8);}const a6_0x4e1e89=a6_0x1b55;(function(_0x1bf2c8,_0x2f3caf){const _0x2e2165=a6_0x1b55,_0x10467d=_0x1bf2c8();while(!![]){try{const _0xd2c6f1=parseInt(_0x2e2165(0x16b))/0x1+parseInt(_0x2e2165(0x14e))/0x2+parseInt(_0x2e2165(0x166))/0x3*(-parseInt(_0x2e2165(0x16e))/0x4)+-parseInt(_0x2e2165(0x164))/0x5*(parseInt(_0x2e2165(0x157))/0x6)+-parseInt(_0x2e2165(0x169))/0x7*(-parseInt(_0x2e2165(0x170))/0x8)+parseInt(_0x2e2165(0x150))/0x9*(-parseInt(_0x2e2165(0x15e))/0xa)+parseInt(_0x2e2165(0x17a))/0xb;if(_0xd2c6f1===_0x2f3caf)break;else _0x10467d['push'](_0x10467d['shift']());}catch(_0x2fa855){_0x10467d['push'](_0x10467d['shift']());}}}(a6_0x577a,0x89862));const a6_0x5df197=(function(){const _0x192510=a6_0x1b55,_0x34cec2={'MHJqT':function(_0x50d658,_0x5b9878){return _0x50d658===_0x5b9878;},'aqnhG':_0x192510(0x176)};let _0x4a45b3=!![];return function(_0x1bddc3,_0x1bb676){const _0x1ecebe={'kqCnv':function(_0x1d154e,_0x4f8fbc){const _0xce8cd1=a6_0x1b55;return _0x34cec2[_0xce8cd1(0x152)](_0x1d154e,_0x4f8fbc);},'qifjB':_0x34cec2['aqnhG']},_0x39904c=_0x4a45b3?function(){const _0x718cb1=a6_0x1b55;if(_0x1ecebe[_0x718cb1(0x161)](_0x1ecebe[_0x718cb1(0x16f)],_0x1ecebe['qifjB'])){if(_0x1bb676){const _0x3b387f=_0x1bb676['apply'](_0x1bddc3,arguments);return _0x1bb676=null,_0x3b387f;}}else throw new _0x3e6e1a('FlowClass\x20\x20\x27'+_0x510631+_0x718cb1(0x178));}:function(){};return _0x4a45b3=![],_0x39904c;};}()),a6_0x387f10=a6_0x5df197(this,function(){const _0x492389=a6_0x1b55,_0xe05877={'eKkXs':_0x492389(0x154)};return a6_0x387f10[_0x492389(0x14f)]()[_0x492389(0x151)](_0xe05877[_0x492389(0x179)])['toString']()[_0x492389(0x156)](a6_0x387f10)[_0x492389(0x151)](_0xe05877['eKkXs']);});a6_0x387f10();'use strict';var __importDefault=this&&this[a6_0x4e1e89(0x172)]||function(_0x34b7d3){const _0x36817f=a6_0x4e1e89;return _0x34b7d3&&_0x34b7d3[_0x36817f(0x177)]?_0x34b7d3:{'default':_0x34b7d3};};Object[a6_0x4e1e89(0x162)](exports,a6_0x4e1e89(0x177),{'value':!![]}),exports[a6_0x4e1e89(0x174)]=void 0x0;const moment_1=__importDefault(require('moment')),flow_types_1=require(a6_0x4e1e89(0x15b)),uuid_1=require('uuid'),core_config_1=require('../configs/core-config'),memory_1=require(a6_0x4e1e89(0x16a)),constants_1=require(a6_0x4e1e89(0x165));class FlowCreator{static async['create'](_0x12e182,_0x4b25f7,_0x1ff7ac,_0x570b1e){const _0x1b168b=a6_0x4e1e89,_0x105b48={'OiXrl':_0x1b168b(0x173)},_0x250ac1=_0x1ff7ac[_0x1b168b(0x167)](_0x12e182);if(_0x250ac1){const _0x127ef3=new _0x250ac1();return _0x127ef3['addContext'](_0x570b1e),_0x127ef3[_0x1b168b(0x15d)](new memory_1[(_0x1b168b(0x158))]()),await _0x127ef3[_0x1b168b(0x168)](),_0x127ef3[_0x1b168b(0x155)](),await _0x127ef3[_0x1b168b(0x163)](_0x4b25f7,_0x1ff7ac),_0x127ef3;}else{if(_0x105b48[_0x1b168b(0x15a)]===_0x1b168b(0x173))throw new Error(_0x1b168b(0x153)+_0x12e182+_0x1b168b(0x178));else{const _0x246c8c=(0x0,_0x4ac7fd['v4'])();return{'id':_0x246c8c,'version':_0xd31c87['K'][_0x1b168b(0x175)],'runStatus':_0x18a73b['RunStatusSchema'][_0x1b168b(0x160)][_0x1b168b(0x16d)],'createdOn':(0x0,_0x8bb664[_0x1b168b(0x17b)])()[_0x1b168b(0x171)](),'saveOn':(0x0,_0x4612f9[_0x1b168b(0x17b)])()[_0x1b168b(0x171)](),'expireAfter':_0x23ab70['CoreConfig'][_0x1b168b(0x16c)],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}}static async[a6_0x4e1e89(0x159)](){const _0xb31acf=a6_0x4e1e89,_0x5486b9=(0x0,uuid_1['v4'])();return{'id':_0x5486b9,'version':constants_1['K'][_0xb31acf(0x175)],'runStatus':flow_types_1[_0xb31acf(0x15c)][_0xb31acf(0x160)]['running'],'createdOn':(0x0,moment_1[_0xb31acf(0x17b)])()[_0xb31acf(0x171)](),'saveOn':(0x0,moment_1[_0xb31acf(0x17b)])()[_0xb31acf(0x171)](),'expireAfter':core_config_1[_0xb31acf(0x15f)][_0xb31acf(0x16c)],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}exports[a6_0x4e1e89(0x174)]=FlowCreator;function a6_0x577a(){const _0x46087b=['toDate','__importDefault','PyNAO','FlowCreator','version','NgAuU','__esModule','\x27\x20not\x20registered.','eKkXs','13570678CMWOBc','default','611164VEZfXO','toString','9uruxdv','search','MHJqT','FlowClass\x20\x20\x27','(((.+)+)+)+$','collectSteps','constructor','55842crXdIK','Memory','createDoc','OiXrl','./flow-types','RunStatusSchema','setMemory','5820090ZELUcI','CoreConfig','enum','kqCnv','defineProperty','bootstrap','65PyWkSs','../utils/constants','369501AliNIz','getFlow','init','1796081FsWdne','./memory','86270AQtHBs','sessionExpiration','running','20SzVdru','qifjB','8GhGRyx'];a6_0x577a=function(){return _0x46087b;};return a6_0x577a();}
|
package/flow/flow-types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x5d6769=a7_0x208a;(function(_0x2bacb3,_0x86d490){const _0x5d7916=a7_0x208a,_0x5642f4=_0x2bacb3();while(!![]){try{const _0x1146fb=-parseInt(_0x5d7916(0x182))/0x1*(-parseInt(_0x5d7916(0x186))/0x2)+parseInt(_0x5d7916(0x180))/0x3*(parseInt(_0x5d7916(0x148))/0x4)+-parseInt(_0x5d7916(0x149))/0x5*(parseInt(_0x5d7916(0x170))/0x6)+parseInt(_0x5d7916(0x146))/0x7+parseInt(_0x5d7916(0x161))/0x8*(-parseInt(_0x5d7916(0x16b))/0x9)+-parseInt(_0x5d7916(0x15b))/0xa+-parseInt(_0x5d7916(0x14e))/0xb;if(_0x1146fb===_0x86d490)break;else _0x5642f4['push'](_0x5642f4['shift']());}catch(_0x535c33){_0x5642f4['push'](_0x5642f4['shift']());}}}(a7_0x59e2,0x315f3));function a7_0x208a(_0x2e5ac4,_0x46ef21){const _0x5d9620=a7_0x59e2();return a7_0x208a=function(_0x1c995c,_0x2534c6){_0x1c995c=_0x1c995c-0x144;let _0x59e24e=_0x5d9620[_0x1c995c];return _0x59e24e;},a7_0x208a(_0x2e5ac4,_0x46ef21);}Object[a7_0x5d6769(0x173)](exports,'__esModule',{'value':!![]}),exports[a7_0x5d6769(0x159)]=exports[a7_0x5d6769(0x15a)]=exports[a7_0x5d6769(0x171)]=exports['SaveStateType']=void 0x0;const zod_1=require(a7_0x5d6769(0x178)),zod_nestjs_1=require(a7_0x5d6769(0x14f)),content_type_1=require('./content-type');function a7_0x59e2(){const _0x36dcda=['running','36ZTcbAZ','KNisa','boolean','ypfKK','search','234WyCeYQ','RunStatusSchema','oSigy','defineProperty','int','array','jYOxm','human','zod','AhDRh','HvmfU','apply','NvinA','DLQCO','any','dEARs','1133178RpdLfH','constructor','991bOdjey','PWZgd','IvSaB','toString','526WYDPMh','enum','nativeEnum','adKcQ','2665572VYFuPb','record','4HInvYX','5905VtdMKy','completed','min','persistent','BaYhC','5469090uMPInS','@anatine/zod-nestjs','RehiU','SaveStateType','optional','ncfWi','(((.+)+)+)+$','aQXZk','error','system','string','RunResponseDto','ToolStatus','2305390pVJAEY','object','date','success','tool','number','86280NWHbvs','Xtvwi','FkFzq','uAmCE','frJSv','nullable','transient','AQzBH','EmLOy'];a7_0x59e2=function(){return _0x36dcda;};return a7_0x59e2();}var SaveStateType;(function(_0x5b30b6){const _0x5c0314=a7_0x5d6769,_0x59fab0={'jYOxm':_0x5c0314(0x167),'IvSaB':_0x5c0314(0x14c)};_0x5b30b6[_0x5b30b6[_0x59fab0['jYOxm']]=0x0]=_0x59fab0[_0x5c0314(0x176)],_0x5b30b6[_0x5b30b6[_0x59fab0[_0x5c0314(0x184)]]=0x1]=_0x59fab0['IvSaB'];}(SaveStateType||(exports[a7_0x5d6769(0x151)]=SaveStateType={})));const RoleEnum=zod_1['z'][a7_0x5d6769(0x187)]([a7_0x5d6769(0x157),a7_0x5d6769(0x177),'ai',a7_0x5d6769(0x15f)]),ToolStatusEnum=zod_1['z'][a7_0x5d6769(0x187)]([a7_0x5d6769(0x15e),a7_0x5d6769(0x156)]),AIToolMessageSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'name':zod_1['z'][a7_0x5d6769(0x158)](),'args':zod_1['z'][a7_0x5d6769(0x15c)]({}),'id':zod_1['z'][a7_0x5d6769(0x158)]()}),ChatMessageSchema=zod_1['z']['object']({'id':zod_1['z'][a7_0x5d6769(0x158)](),'type':RoleEnum,'content':zod_1['z']['string'](),'timestamp':zod_1['z'][a7_0x5d6769(0x15d)](),'tool_call_id':zod_1['z'][a7_0x5d6769(0x158)]()[a7_0x5d6769(0x152)](),'name':zod_1['z'][a7_0x5d6769(0x158)](),'status':ToolStatusEnum[a7_0x5d6769(0x152)](),'tool_calls':zod_1['z'][a7_0x5d6769(0x175)](AIToolMessageSchema)[a7_0x5d6769(0x152)](),'additional_kwargs':zod_1['z'][a7_0x5d6769(0x147)](zod_1['z'][a7_0x5d6769(0x17e)]())['optional']()}),StepSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'name':zod_1['z'][a7_0x5d6769(0x158)](),'isActive':zod_1['z'][a7_0x5d6769(0x16d)](),'state':zod_1['z']['object']({}),'modelName':zod_1['z'][a7_0x5d6769(0x158)]()[a7_0x5d6769(0x152)](),'modelParamsName':zod_1['z']['string']()[a7_0x5d6769(0x152)](),'modelParams':zod_1['z'][a7_0x5d6769(0x147)](zod_1['z'][a7_0x5d6769(0x17e)]())[a7_0x5d6769(0x152)]()}),MemorySchema=zod_1['z'][a7_0x5d6769(0x15c)]({'nameSpace':zod_1['z'][a7_0x5d6769(0x158)](),'history':zod_1['z'][a7_0x5d6769(0x175)](ChatMessageSchema)}),FlowSequenceItemSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'level':zod_1['z'][a7_0x5d6769(0x160)]()[a7_0x5d6769(0x174)]()[a7_0x5d6769(0x14b)](0x1),'stepName':zod_1['z']['string']()}),FlowSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'name':zod_1['z'][a7_0x5d6769(0x158)](),'memory':zod_1['z'][a7_0x5d6769(0x175)](MemorySchema),'start':zod_1['z'][a7_0x5d6769(0x158)]()[a7_0x5d6769(0x166)](),'steps':zod_1['z'][a7_0x5d6769(0x175)](StepSchema),'context':zod_1['z']['object']({}),'sequence':zod_1['z'][a7_0x5d6769(0x175)](FlowSequenceItemSchema)});exports[a7_0x5d6769(0x171)]=zod_1['z'][a7_0x5d6769(0x187)]([a7_0x5d6769(0x14a),'aborted',a7_0x5d6769(0x16a)]);const _SessionSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'id':zod_1['z'][a7_0x5d6769(0x158)]()['nonempty'](),'createdOn':zod_1['z']['date'](),'saveOn':zod_1['z'][a7_0x5d6769(0x15d)](),'runStatus':exports['RunStatusSchema'],'version':zod_1['z'][a7_0x5d6769(0x160)](),'expireAfter':zod_1['z'][a7_0x5d6769(0x160)](),'flows':zod_1['z'][a7_0x5d6769(0x175)](FlowSchema),'log':zod_1['z'][a7_0x5d6769(0x175)](zod_1['z'][a7_0x5d6769(0x15c)]({})),'error':zod_1['z'][a7_0x5d6769(0x175)](zod_1['z']['object']({})),'warn':zod_1['z'][a7_0x5d6769(0x175)](zod_1['z'][a7_0x5d6769(0x15c)]({})),'debug':zod_1['z']['array'](zod_1['z']['object']({})),'verbose':zod_1['z']['array'](zod_1['z'][a7_0x5d6769(0x15c)]({})),'tokens':zod_1['z'][a7_0x5d6769(0x15c)]({'inputTokens':zod_1['z'][a7_0x5d6769(0x160)](),'outputTokens':zod_1['z'][a7_0x5d6769(0x160)](),'totalTokens':zod_1['z'][a7_0x5d6769(0x160)]()})});var ToolStatus;(function(_0x3e2086){const _0x78a65a=a7_0x5d6769,_0x2d00f6={'EmLOy':_0x78a65a(0x167),'DLQCO':_0x78a65a(0x17a),'AQzBH':_0x78a65a(0x165),'ypfKK':_0x78a65a(0x154),'AhDRh':function(_0x3b10bc,_0x31b2ba){return _0x3b10bc===_0x31b2ba;},'RehiU':_0x78a65a(0x164),'adKcQ':function(_0x16fd8c,_0x25429b){return _0x16fd8c!==_0x25429b;},'PWZgd':'ncfWi','bVscW':function(_0x1b14a2,_0x4a54c1,_0x45c3cd){return _0x1b14a2(_0x4a54c1,_0x45c3cd);},'oSigy':function(_0x217842){return _0x217842();},'dEARs':'success','BaYhC':_0x78a65a(0x156)},_0xabafeb=(function(){let _0x1e100d=!![];return function(_0x5c9dc9,_0x3f783b){const _0x308303=a7_0x208a,_0x5970f1={'GFlOY':_0x2d00f6[_0x308303(0x169)],'yKyWu':_0x308303(0x14c),'NvinA':_0x2d00f6[_0x308303(0x17d)],'Xtvwi':_0x2d00f6[_0x308303(0x168)],'KNisa':_0x2d00f6['ypfKK']};if(_0x2d00f6[_0x308303(0x179)](_0x2d00f6[_0x308303(0x150)],_0x2d00f6[_0x308303(0x150)])){const _0x3b4468=_0x1e100d?function(){const _0x49ac09=_0x308303,_0x294a43={'aQXZk':_0x5970f1['GFlOY'],'FkFzq':_0x5970f1['yKyWu']};if(_0x5970f1[_0x49ac09(0x17c)]!==_0x5970f1[_0x49ac09(0x162)]){if(_0x3f783b){const _0x3ded04=_0x3f783b[_0x49ac09(0x17b)](_0x5c9dc9,arguments);return _0x3f783b=null,_0x3ded04;}}else _0x5dee57[_0x216a59[_0x294a43[_0x49ac09(0x155)]]=0x0]=_0x294a43[_0x49ac09(0x155)],_0x41c607[_0x428c6f[_0x294a43[_0x49ac09(0x163)]]=0x1]=_0x294a43[_0x49ac09(0x163)];}:function(){};return _0x1e100d=![],_0x3b4468;}else return _0x264322[_0x308303(0x185)]()['search'](VVfEMb[_0x308303(0x16c)])[_0x308303(0x185)]()[_0x308303(0x181)](_0x1ab5ad)['search'](VVfEMb[_0x308303(0x16c)]);};}()),_0x29369b=_0x2d00f6['bVscW'](_0xabafeb,this,function(){const _0x3ca31c=_0x78a65a;if(_0x2d00f6[_0x3ca31c(0x145)](_0x3ca31c(0x153),_0x2d00f6[_0x3ca31c(0x183)])){if(_0x1c2f34){const _0x588fa9=_0x2420cd['apply'](_0x1fe914,arguments);return _0x38a2fe=null,_0x588fa9;}}else return _0x29369b[_0x3ca31c(0x185)]()[_0x3ca31c(0x16f)](_0x2d00f6[_0x3ca31c(0x16e)])[_0x3ca31c(0x185)]()[_0x3ca31c(0x181)](_0x29369b)['search'](_0x2d00f6[_0x3ca31c(0x16e)]);});_0x2d00f6[_0x78a65a(0x172)](_0x29369b),_0x3e2086[_0x2d00f6[_0x78a65a(0x17f)]]=_0x2d00f6[_0x78a65a(0x17f)],_0x3e2086[_0x78a65a(0x156)]=_0x2d00f6[_0x78a65a(0x14d)];}(ToolStatus||(exports[a7_0x5d6769(0x15a)]=ToolStatus={})));const _ToolSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'name':zod_1['z'][a7_0x5d6769(0x158)](),'description':zod_1['z'][a7_0x5d6769(0x158)](),'schema':zod_1['z'][a7_0x5d6769(0x15c)]({})}),RunResponseSchema=zod_1['z'][a7_0x5d6769(0x15c)]({'success':zod_1['z'][a7_0x5d6769(0x16d)](),'completed':zod_1['z'][a7_0x5d6769(0x16d)](),'message':zod_1['z']['string'](),'session':zod_1['z'][a7_0x5d6769(0x158)](),'contentType':zod_1['z'][a7_0x5d6769(0x144)](content_type_1['HttpContentType'])});class RunResponseDto extends(0x0,zod_nestjs_1['createZodDto'])(RunResponseSchema){}exports[a7_0x5d6769(0x159)]=RunResponseDto;
|
package/flow/flow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x4f40bc=a8_0x9ce0;(function(_0x286d27,_0x19dc42){const _0x22b770=a8_0x9ce0,_0x2ec44a=_0x286d27();while(!![]){try{const _0x3e74e2=parseInt(_0x22b770(0x26a))/0x1+-parseInt(_0x22b770(0x21a))/0x2*(-parseInt(_0x22b770(0x26d))/0x3)+parseInt(_0x22b770(0x231))/0x4*(-parseInt(_0x22b770(0x1d1))/0x5)+-parseInt(_0x22b770(0x232))/0x6+parseInt(_0x22b770(0x202))/0x7*(parseInt(_0x22b770(0x1eb))/0x8)+-parseInt(_0x22b770(0x256))/0x9+parseInt(_0x22b770(0x1ed))/0xa;if(_0x3e74e2===_0x19dc42)break;else _0x2ec44a['push'](_0x2ec44a['shift']());}catch(_0x56699d){_0x2ec44a['push'](_0x2ec44a['shift']());}}}(a8_0xdff1,0xa86e0));const a8_0x3ac839=(function(){let _0x238fd0=!![];return function(_0x8e694c,_0x25bb58){const _0x5b324d=_0x238fd0?function(){const _0x35433d=a8_0x9ce0;if(_0x25bb58){const _0x2e5208=_0x25bb58[_0x35433d(0x215)](_0x8e694c,arguments);return _0x25bb58=null,_0x2e5208;}}:function(){};return _0x238fd0=![],_0x5b324d;};}()),a8_0x2ad811=a8_0x3ac839(this,function(){const _0x107157=a8_0x9ce0,_0x4b6c21={'yrEDp':'(((.+)+)+)+$'};return a8_0x2ad811[_0x107157(0x273)]()[_0x107157(0x24c)](_0x4b6c21[_0x107157(0x1c6)])[_0x107157(0x273)]()[_0x107157(0x1f6)](a8_0x2ad811)['search'](_0x4b6c21['yrEDp']);});a8_0x2ad811();'use strict';Object[a8_0x4f40bc(0x1cd)](exports,'__esModule',{'value':!![]}),exports[a8_0x4f40bc(0x1e7)]=void 0x0;const tools_1=require(a8_0x4f40bc(0x1f9)),lodash_1=require(a8_0x4f40bc(0x1b4)),node_async_hooks_1=require('node:async_hooks'),end_step_1=require(a8_0x4f40bc(0x1dd)),flow_types_1=require(a8_0x4f40bc(0x23d)),step_1=require(a8_0x4f40bc(0x21e)),self_client_1=require(a8_0x4f40bc(0x210)),session_logger_1=require('../session/session-logger');function a8_0xdff1(){const _0x5d3c6e=['./flow-types','defineTool','saveState','Gbzet','getStore','sRixg','writeDoc','NKYqg','fEKeJ','PJTwQ','slice','Step\x20\x27','AsyncLocalStorage','getActiveStep','kHRQk','search','string','initStartStep','zVuxb','tools','ceil','message','GfiJX','outputTokens','QrCDi','4453038Geayms','post','activateNested','MbuHB','vnkxU','kpKOd','ttsRk','tokens','getFlowSession','YNlTl','oVhyD','stepMap','readDoc','PaVTh','PykBn','DMxlQ','flows','context',',\x20error:','mZdRk','264317eSyMld','temp','saveStepState','21sKRYwQ','vMSVY','createOoc','length','map','total_tokens','toString','flowDoc','getMemory','KqUqU','save','\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.','vmFLZ','sequenceLevelScope','getSequenceLevel','YQsci','lodash','PVTyY','bootstrap','\x27\x20is\x20not\x20defined\x20in\x20flow\x20\x27','collectSteps','pXoiG','all','getStepState','push','sessionDoc','assignFlowDoc','activateByName','set','getScopedActiveStep','getStep','run','split','getContext','yrEDp','MQcrI','zlGKQ','UdKJH','sequence','floor','useModel','defineProperty','saveTransientStepState','filter','EndStep','3175MhEbBz','Flow\x20\x27','concurrentSteps','vOImt','defineSteps','useModelParams','lYrNd','MJPPt','error','get','NTLzR','saveSession','./end-step','nlPdZ','fetch','setActive','HrNvw','SaveStateType','ebFud','steps','YyzHv','Processing\x20batch\x20','Flow','isEnd','modelParamsName','getSessionDoc','8eaIIvh','FzZaj','9398810fGwZWB','FPHLc','uyqrD','\x20(batch\x20size:','spawnSteps','contentType','kJuuA','composeTool','config._concurrent','constructor','DSBke','DynamicStructuredTool','@langchain/core/tools','2|0|1|4|3','setContext','YvVou','getMessages','DQwiJ','SessionLogger','AoscG','AXZKh','4764907TodgDL','JURvu','init','flowEngine','VRIjA','UiUfH','getSessionId','modelParams','getModel','normalizeSequence','BAfsJ','persistent','createDoc','SelfClient','../clients/self-client','pushScopedActiveStep','getState','tallyToken','some','apply','name','XPzCj','memory','vxQCv','81914YleLdy','YkImY','fivci','ZejRi','./step','xghlO','qwThr','onSessionDoc','level','QBtLF','xmXcA','gjeBq','getModelParams','ThLXT','setMemory','modelName','Error\x20batch\x20process\x20flow:\x20','inputTokens','kSPoJ','log','YHqOx','getName','zOcBn','3884kykBJU','2222058WHWvmQ','Step','merge','withNestedSequence','addSequence','CLGRD','totalTokens','activateNestedByName','rrqmL','TYrAA','active'];a8_0xdff1=function(){return _0x5d3c6e;};return a8_0xdff1();}class Flow{constructor(_0x440bec){const _0x3921e2=a8_0x4f40bc,_0x17af67={'UdKJH':_0x3921e2(0x1fa)},_0x2d2fbc=_0x17af67[_0x3921e2(0x1c9)][_0x3921e2(0x1c4)]('|');let _0x42e589=0x0;while(!![]){switch(_0x2d2fbc[_0x42e589++]){case'0':this['tools']=new Map();continue;case'1':this[_0x3921e2(0x209)]={};continue;case'2':this['stepMap']=new Map();continue;case'3':this[_0x3921e2(0x267)]={};continue;case'4':this[_0x3921e2(0x216)]=_0x440bec[_0x3921e2(0x216)];continue;}break;}}async[a8_0x4f40bc(0x204)](){}['getFlowEngine'](){const _0x438358=a8_0x4f40bc;return this[_0x438358(0x205)];}[a8_0x4f40bc(0x1cc)](_0x5ee884,_0x5de581){const _0x102b3e=a8_0x4f40bc;return this[_0x102b3e(0x229)]=_0x5ee884,this[_0x102b3e(0x1e9)]=_0x5ee884,_0x5de581&&this[_0x102b3e(0x1d6)](_0x5de581),this;}[a8_0x4f40bc(0x20a)](){const _0x280605=a8_0x4f40bc;return this[_0x280605(0x229)];}['useModelParams'](_0xe01130,_0x52abea){const _0x1c1320=a8_0x4f40bc,_0x117f61={'FPHLc':function(_0x5c056b,_0x27bae4){return _0x5c056b===_0x27bae4;},'gnwfq':_0x1c1320(0x24d),'oVhyD':function(_0x4a17db,_0x11a316){return _0x4a17db??_0x11a316;}};if(_0x117f61[_0x1c1320(0x1ee)](typeof _0xe01130,_0x117f61['gnwfq']))return this[_0x1c1320(0x1e9)]=_0xe01130,this['modelParams']=(0x0,lodash_1[_0x1c1320(0x234)])({},this[_0x1c1320(0x209)],_0x117f61[_0x1c1320(0x260)](_0x52abea,{})),this;return this[_0x1c1320(0x1e9)]=this['modelName'],this[_0x1c1320(0x209)]=(0x0,lodash_1[_0x1c1320(0x234)])({},this['modelParams'],_0xe01130),this;}[a8_0x4f40bc(0x226)](){return this['modelParams'];}['getModelParamsModelName'](){const _0x590b04=a8_0x4f40bc;return this[_0x590b04(0x1e9)];}async[a8_0x4f40bc(0x1b6)](_0x4512d4,_0x3e1076){const _0x84ffc1=a8_0x4f40bc,_0x3187c1={'YvVou':function(_0x56b6ac,_0x41b842){return _0x56b6ac!==_0x41b842;},'PzspO':_0x84ffc1(0x1e5),'kpKOd':_0x84ffc1(0x263),'oWutC':function(_0x551f45,_0x5286b5){return _0x551f45!==_0x5286b5;},'Gbzet':_0x84ffc1(0x1e1),'DQwiJ':function(_0x30c6fb,_0x3a74ee){return _0x30c6fb===_0x3a74ee;},'QrCDi':_0x84ffc1(0x246),'sRixg':_0x84ffc1(0x219),'NKYqg':'GCUei','SvGTg':_0x84ffc1(0x230)};this['flowEngine']=_0x3e1076;const _0x395c2e=this[_0x84ffc1(0x20a)]();if(!_0x395c2e)throw new Error(_0x84ffc1(0x1d2)+this['name']+_0x84ffc1(0x1af));for(const [,_0x3c135b]of this[_0x84ffc1(0x261)]){const _0x5657a1=_0x3c135b[_0x84ffc1(0x20a)]();if(!_0x5657a1){if(_0x3187c1[_0x84ffc1(0x1fc)](_0x3187c1['PzspO'],_0x3187c1[_0x84ffc1(0x25b)]))_0x3c135b['useModel'](_0x395c2e);else return this[_0x84ffc1(0x218)][_0x84ffc1(0x1fd)](_0x444076);}}const _0x4e99f0=_0x3e1076['getFlowSession'](),[_0x1fedbf,_0xc091e2]=await _0x4e99f0[_0x84ffc1(0x1df)](_0x4512d4),_0x592b32=await this[_0x84ffc1(0x221)](_0xc091e2,_0x1fedbf);if(_0x592b32){if(_0x3187c1['oWutC'](_0x3187c1[_0x84ffc1(0x240)],_0x3187c1[_0x84ffc1(0x240)]))return this['tools'][_0x84ffc1(0x1da)](_0x5c8995);else this[_0x84ffc1(0x1bd)]=this['createDoc'](_0xc091e2),this['assignFlowDoc'](),await this[_0x84ffc1(0x24e)](),await this[_0x84ffc1(0x1dc)]();}else this[_0x84ffc1(0x1bd)]=_0xc091e2,this[_0x84ffc1(0x1be)](),this[_0x84ffc1(0x262)](),await this['initRestoredStep']();if(_0x3187c1[_0x84ffc1(0x1fe)](this[_0x84ffc1(0x274)][_0x84ffc1(0x1ca)][_0x84ffc1(0x270)],0x0)){if(_0x3187c1[_0x84ffc1(0x255)]===_0x3187c1[_0x84ffc1(0x242)])return this[_0x84ffc1(0x229)]=_0x27afee,this[_0x84ffc1(0x1e9)]=_0x1772f6,_0x447137&&this[_0x84ffc1(0x1d6)](_0x3ba246),this;else{const _0x322a7b=this[_0x84ffc1(0x24a)]();_0x322a7b&&(_0x3187c1['DQwiJ'](_0x3187c1[_0x84ffc1(0x244)],_0x3187c1['SvGTg'])?_0x59c01e=_0x229a51[_0x84ffc1(0x22f)]():this[_0x84ffc1(0x236)](_0x322a7b[_0x84ffc1(0x22f)]()));}}this[_0x84ffc1(0x1f4)]();}[a8_0x4f40bc(0x1be)](){const _0x4a8eb3=a8_0x4f40bc,_0x1b6431=this[_0x4a8eb3(0x1bd)][_0x4a8eb3(0x266)][_0x4a8eb3(0x1cf)](_0x1b87e3=>{const _0xe15f4=_0x4a8eb3;if(_0x1b87e3[_0xe15f4(0x216)]===this[_0xe15f4(0x216)])return!![];return![];});this[_0x4a8eb3(0x274)]=_0x1b6431[0x0],this['flowDoc'][_0x4a8eb3(0x1ca)]=this[_0x4a8eb3(0x20b)](this['flowDoc']['sequence']);}[a8_0x4f40bc(0x20b)](_0x34b909=[]){const _0x169b68=a8_0x4f40bc,_0x3f9e47={'uTEjT':_0x169b68(0x24d),'AoscG':function(_0x4010fc,_0x45c507){return _0x4010fc!==_0x45c507;},'zVuxb':_0x169b68(0x1ef)};return _0x34b909[_0x169b68(0x271)](_0x400e1f=>{const _0x126304=_0x169b68;if(typeof _0x400e1f===_0x3f9e47['uTEjT'])return _0x3f9e47[_0x126304(0x200)](_0x3f9e47[_0x126304(0x24f)],_0x3f9e47[_0x126304(0x24f)])?_0x932698[_0x126304(0x1b1)][_0x126304(0x241)]()?.[_0x126304(0x222)]??0x1:{'level':0x1,'stepName':_0x400e1f};return _0x400e1f;});}['addSequence'](_0x118a9e){const _0xa4cfb6=a8_0x4f40bc;this[_0xa4cfb6(0x274)]['sequence'][_0xa4cfb6(0x1bc)]({'level':this[_0xa4cfb6(0x1b2)](),'stepName':_0x118a9e});}[a8_0x4f40bc(0x1b2)](){const _0x4105fd=a8_0x4f40bc;return Flow['sequenceLevelScope'][_0x4105fd(0x241)]()?.['level']??0x1;}async[a8_0x4f40bc(0x235)](_0x392ab9){const _0x324d9e=a8_0x4f40bc,_0x5ddb7d={'kHRQk':function(_0x1677aa,_0x1f36fd){return _0x1677aa+_0x1f36fd;}},_0x35d835=_0x5ddb7d[_0x324d9e(0x24b)](this[_0x324d9e(0x1b2)](),0x1);return await Flow['sequenceLevelScope'][_0x324d9e(0x1c3)]({'level':_0x35d835},_0x392ab9);}[a8_0x4f40bc(0x213)](_0x51af59){const _0x20f672=a8_0x4f40bc,_0x2bca17={'nlPdZ':'output_tokens','MbuHB':'sgpsW'};if(_0x51af59){const _0x1b8cc6=_0x51af59['input_tokens'],_0x4abbb2=_0x51af59[_0x2bca17[_0x20f672(0x1de)]],_0x391faf=_0x51af59[_0x20f672(0x272)];_0x1b8cc6&&(this[_0x20f672(0x1bd)][_0x20f672(0x25d)][_0x20f672(0x22b)]+=_0x1b8cc6);if(_0x4abbb2){if(_0x2bca17[_0x20f672(0x259)]!==_0x2bca17['MbuHB']){const _0x31c19b=this[_0x20f672(0x1d5)]();for(const _0x815d99 of _0x31c19b){this[_0x20f672(0x261)][_0x20f672(0x1c0)](_0x815d99[_0x20f672(0x22f)](),_0x815d99);}}else this[_0x20f672(0x1bd)][_0x20f672(0x25d)][_0x20f672(0x254)]+=_0x4abbb2;}_0x391faf&&(this[_0x20f672(0x1bd)][_0x20f672(0x25d)][_0x20f672(0x238)]+=_0x391faf);}}[a8_0x4f40bc(0x1b8)](){const _0x40c51f=a8_0x4f40bc,_0x140bf1={'ThLXT':_0x40c51f(0x1ec)},_0x24e3c5=this[_0x40c51f(0x1d5)]();for(const _0x5134a0 of _0x24e3c5){if(_0x140bf1[_0x40c51f(0x227)]!==_0x140bf1[_0x40c51f(0x227)]){const _0x12286a=this[_0x40c51f(0x261)][_0x40c51f(0x1da)](_0x4bdecb[_0x40c51f(0x216)]);if(_0x12286a)return _0x12286a[_0x40c51f(0x23f)](_0x2fd7f5,_0x4e0648);}else this['stepMap'][_0x40c51f(0x1c0)](_0x5134a0[_0x40c51f(0x22f)](),_0x5134a0);}}['defineSteps'](){const _0xea41bf=a8_0x4f40bc;return[new end_step_1[(_0xea41bf(0x1d0))](this)['useMemory'](_0xea41bf(0x26b))];}[a8_0x4f40bc(0x20e)](_0x13e948){const _0x28b4b3=a8_0x4f40bc,_0x81f78b={'UsaOX':'YjPvl','YNlTl':_0x28b4b3(0x225)};let _0x5b11c7=null;const _0x242512=[];for(const [,_0x24ad2d]of this[_0x28b4b3(0x261)]){_0x81f78b['UsaOX']===_0x81f78b[_0x28b4b3(0x25f)]?_0x131fb6['push'](_0x478ff0):(_0x24ad2d[_0x28b4b3(0x23c)]&&(_0x5b11c7=_0x24ad2d[_0x28b4b3(0x22f)]()),_0x242512[_0x28b4b3(0x1bc)](_0x24ad2d[_0x28b4b3(0x20e)]()));}const _0xde5bba={'name':this[_0x28b4b3(0x216)],'memory':this['memory'][_0x28b4b3(0x26f)](),'steps':_0x242512,'context':this[_0x28b4b3(0x267)],'sequence':[],'start':_0x5b11c7};return _0x13e948[_0x28b4b3(0x266)][_0x28b4b3(0x1bc)](_0xde5bba),_0x13e948;}['readDoc'](){const _0x230f58=a8_0x4f40bc,_0x176cdf={'zlGKQ':function(_0x1b2825,_0x94cfe5){return _0x1b2825===_0x94cfe5;},'lYrNd':'hpOHS'};this[_0x230f58(0x218)][_0x230f58(0x262)](this['flowDoc'][_0x230f58(0x218)]);for(const [,_0x4561a3]of this['stepMap']){if(_0x176cdf[_0x230f58(0x1c8)](_0x176cdf[_0x230f58(0x1d7)],_0x176cdf[_0x230f58(0x1d7)]))_0x4561a3[_0x230f58(0x262)](this[_0x230f58(0x274)][_0x230f58(0x1e4)]);else return _0x4c6710;}this[_0x230f58(0x267)]=this[_0x230f58(0x274)][_0x230f58(0x267)];}async['initRestoredStep'](){const _0x266989=a8_0x4f40bc,_0x2ddb12={'qwThr':function(_0xf4f09b,_0x2c12d0){return _0xf4f09b===_0x2c12d0;},'vzlVu':_0x266989(0x21b)},_0x2610e3=this[_0x266989(0x24a)]();if(_0x2610e3){if(_0x2ddb12[_0x266989(0x220)]('YkImY',_0x2ddb12['vzlVu']))await _0x2610e3['onRestore']();else{const _0x525bb9=_0x476d1b?function(){const _0x12abaf=_0x266989;if(_0x58032f){const _0x272984=_0x3fbf69[_0x12abaf(0x215)](_0x3acb7e,arguments);return _0x446684=null,_0x272984;}}:function(){};return _0x461971=![],_0x525bb9;}}}async[a8_0x4f40bc(0x24e)](){const _0x4b24d8=a8_0x4f40bc,_0x5e514c=this[_0x4b24d8(0x274)]['start'];if(!_0x5e514c)return;const _0x23d76d=this[_0x4b24d8(0x1c2)](_0x5e514c);if(!_0x23d76d)return;const _0x3a171d=await _0x23d76d['onStart']();if(!_0x3a171d)return;const _0x140266=_0x23d76d[_0x4b24d8(0x1ac)](),_0x4b475a=_0x140266[_0x4b24d8(0x214)](_0x4aa66e=>_0x4aa66e['id']===_0x3a171d['id']);!_0x4b475a&&_0x140266[_0x4b24d8(0x1bc)](_0x3a171d);}[a8_0x4f40bc(0x208)](){const _0x4f63d4=a8_0x4f40bc;return this[_0x4f63d4(0x1bd)]['id'];}async[a8_0x4f40bc(0x1dc)](){const _0x592c89=a8_0x4f40bc;this['memory']['writeDoc'](this[_0x592c89(0x274)][_0x592c89(0x218)]);for(const [,_0x351911]of this[_0x592c89(0x261)]){_0x351911[_0x592c89(0x243)](this[_0x592c89(0x274)]['steps']);}this[_0x592c89(0x274)]['context']=this[_0x592c89(0x267)],await this[_0x592c89(0x205)][_0x592c89(0x25e)]()[_0x592c89(0x1ae)](this[_0x592c89(0x1bd)]);}[a8_0x4f40bc(0x24a)](){const _0x845f53=a8_0x4f40bc,_0x21c81b={'kJuuA':_0x845f53(0x252),'ZejRi':function(_0x37dfb0,_0x16ad40){return _0x37dfb0===_0x16ad40;},'DMxlQ':_0x845f53(0x203),'NTLzR':_0x845f53(0x22c)},_0x3a91cc=step_1[_0x845f53(0x233)][_0x845f53(0x1c1)]();if(_0x3a91cc!==undefined){if(_0x21c81b[_0x845f53(0x21d)](_0x21c81b[_0x845f53(0x265)],_0x21c81b[_0x845f53(0x1db)])){const _0x1f7db2=_0x845f53(0x22a)+this[_0x845f53(0x216)]+',\x20error:'+_0x2d17dd[_0x21c81b[_0x845f53(0x1f3)]];new _0x187b13[(_0x845f53(0x1ff))](this[_0x845f53(0x1ea)]())['error'](_0x1f7db2),_0x4f9683['error'](_0x1f7db2);}else return _0x3a91cc;}for(const [_0xd29d58,_0x4c6b4c]of this[_0x845f53(0x261)]){if(_0x4c6b4c[_0x845f53(0x23c)])return _0x4c6b4c;}return null;}[a8_0x4f40bc(0x1c2)](_0x25adee){const _0x52d7f2=a8_0x4f40bc;return this[_0x52d7f2(0x261)][_0x52d7f2(0x1da)](_0x25adee);}[a8_0x4f40bc(0x23e)](){return null;}async['run'](_0x50795e){const _0x86bb5=a8_0x4f40bc,_0x462098={'YfDfZ':_0x86bb5(0x1f5),'KqUqU':function(_0x25881f,_0x4a9130){return _0x25881f===_0x4a9130;},'CLGRD':_0x86bb5(0x25a),'xghlO':'mtHrU'},_0x5eaf45=this[_0x86bb5(0x1c5)](_0x462098['YfDfZ']);let _0x1e5200,_0xd47868;return _0x5eaf45?_0x462098[_0x86bb5(0x1ad)](_0x462098[_0x86bb5(0x237)],_0x462098[_0x86bb5(0x21f)])?_0x5aacce[_0x86bb5(0x1cc)](_0x388933):_0x1e5200=await this[_0x86bb5(0x1f1)]():(_0xd47868=this[_0x86bb5(0x24a)](),_0x1e5200=await _0xd47868[_0x86bb5(0x1c3)](_0x50795e)),_0xd47868=this[_0x86bb5(0x24a)](),{'success':!![],'completed':_0xd47868[_0x86bb5(0x1e8)](),'message':_0x1e5200,'session':this[_0x86bb5(0x1bd)]['id'],'contentType':_0xd47868[_0x86bb5(0x1f2)]};}async['spawnSteps'](){return'';}async[a8_0x4f40bc(0x1d3)]({items:_0x31006b,batchSize:_0x184860,onConfig:_0x3e0b5d,onBotResponse:_0x47e7fa}){const _0x388d41=a8_0x4f40bc,_0x647281={'BAfsJ':function(_0x543176,_0x20fd2e){return _0x543176(_0x20fd2e);},'MQcrI':function(_0x20aea1,_0x3190db){return _0x20aea1!==_0x3190db;},'PVTyY':_0x388d41(0x264),'vMSVY':_0x388d41(0x23a),'mZdRk':function(_0x4bc651,_0x3827ca,_0x34de3a){return _0x4bc651(_0x3827ca,_0x34de3a);},'fivci':function(_0x99e5d,_0x42bf38){return _0x99e5d<_0x42bf38;},'YQsci':function(_0x1fdc29,_0xed3244){return _0x1fdc29+_0xed3244;},'LcQWp':function(_0x3c4de8,_0x40d44e){return _0x3c4de8+_0x40d44e;},'vOImt':function(_0x532355,_0x278ff4){return _0x532355/_0x278ff4;},'ebFud':function(_0x559e04,_0x338e90){return _0x559e04+_0x338e90;}},_0x20d21c=new self_client_1[(_0x388d41(0x20f))]();for(let _0x1ae1c1=0x0;_0x647281[_0x388d41(0x21c)](_0x1ae1c1,_0x31006b[_0x388d41(0x270)]);_0x1ae1c1+=_0x184860){const _0x4a14be=_0x31006b[_0x388d41(0x247)](_0x1ae1c1,_0x647281[_0x388d41(0x1b3)](_0x1ae1c1,_0x184860)),_0x1ac8dd=_0x388d41(0x1e6)+_0x647281['LcQWp'](Math[_0x388d41(0x1cb)](_0x647281[_0x388d41(0x1d4)](_0x1ae1c1,_0x184860)),0x1)+'/'+Math[_0x388d41(0x251)](_0x647281[_0x388d41(0x1d4)](_0x31006b[_0x388d41(0x270)],_0x184860))+_0x388d41(0x1f0)+_0x4a14be[_0x388d41(0x270)]+')';new session_logger_1[(_0x388d41(0x1ff))](this[_0x388d41(0x1ea)]())[_0x388d41(0x22d)](_0x1ac8dd);const _0x29ae1f=_0x4a14be[_0x388d41(0x271)](async _0x27477b=>{const _0x3d7e2e=_0x388d41,_0x456472={'flowName':this[_0x3d7e2e(0x216)],'config':{..._0x647281[_0x3d7e2e(0x20c)](_0x3e0b5d,_0x27477b)}};try{if(_0x647281[_0x3d7e2e(0x1c7)](_0x647281[_0x3d7e2e(0x1b5)],_0x647281[_0x3d7e2e(0x26e)])){const _0x4bc935=await _0x20d21c[_0x3d7e2e(0x257)]('',_0x456472);_0x647281[_0x3d7e2e(0x269)](_0x47e7fa,_0x27477b,_0x4bc935);}else _0x1bcc06[_0x3d7e2e(0x243)](this['flowDoc'][_0x3d7e2e(0x1e4)]);}catch(_0x20ebd5){const _0x15a370=_0x3d7e2e(0x22a)+this[_0x3d7e2e(0x216)]+_0x3d7e2e(0x268)+_0x20ebd5['message'];new session_logger_1['SessionLogger'](this[_0x3d7e2e(0x1ea)]())[_0x3d7e2e(0x1d9)](_0x15a370),console['error'](_0x15a370);}});await Promise[_0x388d41(0x1ba)](_0x29ae1f);const _0x5a8101='Batch\x20'+_0x647281[_0x388d41(0x1e3)](Math[_0x388d41(0x1cb)](_0x1ae1c1/_0x184860),0x1)+'\x20completed.';new session_logger_1['SessionLogger'](this[_0x388d41(0x1ea)]())[_0x388d41(0x22d)](_0x5a8101);}}[a8_0x4f40bc(0x228)](_0x3a920e){const _0x4155d0=a8_0x4f40bc;this[_0x4155d0(0x218)]=_0x3a920e;}['getMemory'](_0x48805c){const _0x37ddc9=a8_0x4f40bc;return this['memory'][_0x37ddc9(0x1fd)](_0x48805c);}[a8_0x4f40bc(0x1fb)](_0x34d333){const _0x12671e=a8_0x4f40bc;this[_0x12671e(0x267)]=_0x34d333;}['addContext'](_0x3ca50c){const _0x472224=a8_0x4f40bc;(0x0,lodash_1[_0x472224(0x234)])(this['context'],_0x3ca50c);}['getContext'](_0xf53c78){const _0x343a96=a8_0x4f40bc;return(0x0,lodash_1['get'])(this[_0x343a96(0x267)],_0xf53c78);}async['activate'](_0x4e7ee1){const _0x493346=a8_0x4f40bc;return await this[_0x493346(0x1bf)](_0x4e7ee1[_0x493346(0x216)]);}async[a8_0x4f40bc(0x258)](_0x19ecc2){const _0x2c270a=a8_0x4f40bc;return await this[_0x2c270a(0x239)](_0x19ecc2['name']);}async[a8_0x4f40bc(0x239)](_0x1f142e){const _0x4d1fda=a8_0x4f40bc,_0x2f7cde={'yqsLH':function(_0x163162,_0x2bd929){return _0x163162===_0x2bd929;},'TYrAA':_0x4d1fda(0x253),'pXoiG':_0x4d1fda(0x206)};if(!step_1[_0x4d1fda(0x233)]['hasActiveStepScope']())return await this[_0x4d1fda(0x1bf)](_0x1f142e);const _0x2a4b70=this[_0x4d1fda(0x261)][_0x4d1fda(0x1da)](_0x1f142e);if(!_0x2a4b70){if(_0x2f7cde['yqsLH'](_0x2f7cde[_0x4d1fda(0x23b)],_0x2f7cde[_0x4d1fda(0x1b9)])){const _0x4d0642=_0x5876fe['defineTool']();_0x4d0642&&_0x402975['push'](..._0x4d0642);}else throw new Error(_0x4d1fda(0x248)+_0x1f142e+_0x4d1fda(0x1b7)+this[_0x4d1fda(0x216)]+'\x27.');}if(_0x2a4b70[_0x4d1fda(0x23c)])return _0x2a4b70;return this[_0x4d1fda(0x236)](_0x1f142e),await _0x2a4b70[_0x4d1fda(0x211)](),_0x2a4b70;}async[a8_0x4f40bc(0x1bf)](_0x240a90){const _0x84210d=a8_0x4f40bc,_0x317fc0={'MJPPt':function(_0x3add34,_0x7a6de3){return _0x3add34??_0x7a6de3;},'DSBke':function(_0x3a9ac8,_0x569977){return _0x3a9ac8!==_0x569977;},'XnEXw':function(_0x1faf2c,_0x396d90){return _0x1faf2c!==_0x396d90;},'FRxNw':_0x84210d(0x224),'XsIaS':function(_0x5590f1,_0xf31248){return _0x5590f1===_0xf31248;}},_0x11fd51=this[_0x84210d(0x261)][_0x84210d(0x1da)](_0x240a90);if(!_0x11fd51)throw new Error(_0x84210d(0x248)+_0x240a90+_0x84210d(0x1b7)+this[_0x84210d(0x216)]+'\x27.');const _0x482c01=step_1[_0x84210d(0x233)][_0x84210d(0x1c1)]();if(_0x317fc0[_0x84210d(0x1f7)](_0x482c01,undefined)){if(_0x317fc0['XnEXw'](_0x317fc0['FRxNw'],_0x317fc0['FRxNw']))return this['modelParamsName']=_0x1eae37,this['modelParams']=(0x0,_0xc9f0cc['merge'])({},this[_0x84210d(0x209)],_0x317fc0[_0x84210d(0x1d8)](_0x8bc7a6,{})),this;else{if(_0x482c01?.[_0x84210d(0x22f)]()===_0x240a90)return _0x11fd51;return this[_0x84210d(0x236)](_0x240a90),await _0x11fd51[_0x84210d(0x1e0)](!![]),_0x11fd51;}}if(_0x317fc0['XsIaS'](_0x11fd51[_0x84210d(0x22f)](),_0x240a90)&&_0x11fd51['active'])return _0x11fd51;else{for(const [_0x1b219c,_0x369dce]of this[_0x84210d(0x261)]){if(_0x369dce[_0x84210d(0x23c)]){await _0x369dce[_0x84210d(0x1e0)](![]);break;}}return this['addSequence'](_0x240a90),await _0x11fd51[_0x84210d(0x1e0)](!![]),_0x11fd51;}}['getTool'](_0x2424c8){const _0x1769a3=a8_0x4f40bc;return this['tools'][_0x1769a3(0x1da)](_0x2424c8);}[a8_0x4f40bc(0x1f4)](){const _0xd18d86=a8_0x4f40bc,_0x56ea6e={'UiUfH':function(_0x38c829,_0x394a0c){return _0x38c829!==_0x394a0c;},'zCmGM':_0xd18d86(0x201),'QBtLF':function(_0xbc28e5,_0x257bb1){return _0xbc28e5!==_0x257bb1;},'vmFLZ':_0xd18d86(0x245)},_0x5223df=[];for(const [_0x405a15,_0x849ff8]of this[_0xd18d86(0x261)]){if(_0x56ea6e[_0xd18d86(0x207)](_0x56ea6e['zCmGM'],'CpKZg')){const _0x37decc=_0x849ff8[_0xd18d86(0x23e)]();if(_0x37decc){if(_0x56ea6e[_0xd18d86(0x223)](_0x56ea6e[_0xd18d86(0x1b0)],_0x56ea6e[_0xd18d86(0x1b0)])){const _0xf06ea0=this[_0xd18d86(0x1bd)][_0xd18d86(0x266)]['filter'](_0xd37a1f=>{const _0x5bb8ca=_0xd18d86;if(_0xd37a1f[_0x5bb8ca(0x216)]===this[_0x5bb8ca(0x216)])return!![];return![];});this['flowDoc']=_0xf06ea0[0x0],this[_0xd18d86(0x274)][_0xd18d86(0x1ca)]=this[_0xd18d86(0x20b)](this['flowDoc']['sequence']);}else _0x5223df[_0xd18d86(0x1bc)](..._0x37decc);}}else(0x0,_0x5f4d0c['merge'])(this[_0xd18d86(0x267)],_0x5c660d);}const _0x333406=this[_0xd18d86(0x23e)]();_0x333406&&_0x5223df[_0xd18d86(0x1bc)](..._0x333406);for(const _0x373c3a of _0x5223df){const _0x1a323f=(0x0,lodash_1['merge'])({},_0x373c3a,{'func':null});this[_0xd18d86(0x250)][_0xd18d86(0x1c0)](_0x373c3a[_0xd18d86(0x216)],new tools_1[(_0xd18d86(0x1f8))](_0x1a323f));}}[a8_0x4f40bc(0x1ea)](){const _0x497d33=a8_0x4f40bc;return this[_0x497d33(0x1bd)];}[a8_0x4f40bc(0x1bb)](_0xe979cc,_0x2b510a){const _0x3ca44c=a8_0x4f40bc,_0x488fb5=this[_0x3ca44c(0x261)][_0x3ca44c(0x1da)](_0xe979cc[_0x3ca44c(0x216)]);return _0x488fb5[_0x3ca44c(0x212)](_0x2b510a);}[a8_0x4f40bc(0x26c)](_0x217de5,_0x2f9771,_0x1b2439=flow_types_1[a8_0x4f40bc(0x1e2)][a8_0x4f40bc(0x20d)]){const _0x4232d7=a8_0x4f40bc,_0x1f4db8={'YHqOx':function(_0x5c5ef8,_0x442b58){return _0x5c5ef8!==_0x442b58;},'XPzCj':_0x4232d7(0x25c)},_0x2906e4=this[_0x4232d7(0x261)][_0x4232d7(0x1da)](_0x217de5[_0x4232d7(0x216)]);if(_0x2906e4){if(_0x1f4db8[_0x4232d7(0x22e)](_0x1f4db8[_0x4232d7(0x217)],_0x1f4db8['XPzCj']))this[_0x4232d7(0x218)]=_0xcf8640;else return _0x2906e4[_0x4232d7(0x23f)](_0x2f9771,_0x1b2439);}}[a8_0x4f40bc(0x1ce)](_0x481e18,_0x5bc949){const _0x48d8d8=a8_0x4f40bc;return this[_0x48d8d8(0x26c)](_0x481e18,_0x5bc949,flow_types_1[_0x48d8d8(0x1e2)]['transient']);}async[a8_0x4f40bc(0x221)](_0x3a9285,_0x4ad46b){return _0x4ad46b;}}function a8_0x9ce0(_0x2bd8fb,_0x2a3197){const _0x4a206c=a8_0xdff1();return a8_0x9ce0=function(_0x2ad811,_0x3ac839){_0x2ad811=_0x2ad811-0x1ac;let _0xdff151=_0x4a206c[_0x2ad811];return _0xdff151;},a8_0x9ce0(_0x2bd8fb,_0x2a3197);}exports[a8_0x4f40bc(0x1e7)]=Flow,Flow[a8_0x4f40bc(0x1b1)]=new node_async_hooks_1[(a8_0x4f40bc(0x249))]();
|
|
1
|
+
const a8_0x262351=a8_0x2e61;(function(_0x132449,_0x22b185){const _0x254491=a8_0x2e61,_0x3907bf=_0x132449();while(!![]){try{const _0x36cbad=-parseInt(_0x254491(0x1f7))/0x1*(parseInt(_0x254491(0x296))/0x2)+-parseInt(_0x254491(0x289))/0x3+parseInt(_0x254491(0x28d))/0x4+parseInt(_0x254491(0x222))/0x5+parseInt(_0x254491(0x271))/0x6*(-parseInt(_0x254491(0x26b))/0x7)+parseInt(_0x254491(0x1e8))/0x8+-parseInt(_0x254491(0x223))/0x9*(-parseInt(_0x254491(0x29d))/0xa);if(_0x36cbad===_0x22b185)break;else _0x3907bf['push'](_0x3907bf['shift']());}catch(_0x29bd25){_0x3907bf['push'](_0x3907bf['shift']());}}}(a8_0x5ad1,0x4ab08));const a8_0x14bf21=(function(){let _0x2e43cc=!![];return function(_0xb52989,_0x1b30fb){const _0x94ab1e=_0x2e43cc?function(){const _0x1331f9=a8_0x2e61;if(_0x1b30fb){const _0x2eeeed=_0x1b30fb[_0x1331f9(0x1ef)](_0xb52989,arguments);return _0x1b30fb=null,_0x2eeeed;}}:function(){};return _0x2e43cc=![],_0x94ab1e;};}()),a8_0x2972b1=a8_0x14bf21(this,function(){const _0x213759=a8_0x2e61,_0x1a1835={'lLPDP':_0x213759(0x206)};return a8_0x2972b1[_0x213759(0x2a0)]()[_0x213759(0x269)](_0x1a1835['lLPDP'])['toString']()[_0x213759(0x275)](a8_0x2972b1)[_0x213759(0x269)](_0x213759(0x206));});a8_0x2972b1();'use strict';function a8_0x2e61(_0x456baf,_0x36813c){const _0x294aff=a8_0x5ad1();return a8_0x2e61=function(_0x2972b1,_0x14bf21){_0x2972b1=_0x2972b1-0x1e2;let _0x5ad10f=_0x294aff[_0x2972b1];return _0x5ad10f;},a8_0x2e61(_0x456baf,_0x36813c);}Object[a8_0x262351(0x28c)](exports,a8_0x262351(0x22e),{'value':!![]}),exports[a8_0x262351(0x22c)]=void 0x0;function a8_0x5ad1(){const _0x427b7d=['peIAk','output_tokens','setActive','NrPWb','getFlowSession','bfsiX','getState','activate','nBWSX','name','fXrbS','useModel','modelParamsName','iMvXu','IaXpv','nlTTG','collectSteps','ueGwm','\x27\x20is\x20not\x20defined\x20in\x20flow\x20\x27','context','saveState','getSequenceLevel','get','vYljR','totalTokens','qYHnM','cxBxc','initStartStep','YrQpp','\x20completed.','ZQbqA','ogtOd','onStart','filter','getMemory','steps','tools','iKXwX','kKsyn','getStore','\x20(batch\x20size:','aGpfO','Error\x20batch\x20process\x20flow:\x20','Batch\x20','getSessionDoc','save','SelfClient','SaveStateType','search','xVImM','1758596YNGxUm','fetch','AsyncLocalStorage','stepMap','SessionLogger','./flow-types','12oIAUBO','lEzTT','getActiveStep','FUDnP','constructor','VBexi','set','VpCGU','ceil','sequence','tallyToken','useMemory','setContext','saveStepState','getTool','flowDoc','neEFz','error','getName','nTfUW','Processing\x20batch\x20','yYXOL','defineTool','uujIn','1037451XADEGl','UITGo','eKQgi','defineProperty','1160628kuNcvx','activateNestedByName','rSxcV','inputTokens','modelParams','run','NswUG','CyDfb','rQqPF','148322HjLpBK','transient','tokens','push','all','useModelParams','activateNested','10590sRJuGw','floor','getStep','toString','ruBbt','@langchain/core/tools','total_tokens','eiwGz','sequenceLevelScope','flowEngine','EmHlw','2597328oWSTuP','MFZct','sdRWq','NwGfB','level','addSequence','hnuZg','apply','fQyfO','bootstrap','concurrentSteps','EndStep','./end-step','node:async_hooks','config._concurrent','1YhrHnA','flows','zDPik','active','Tissj','createDoc','outputTokens','persistent','XGvpg',',\x20error:','modelName','addContext','initRestoredStep','yTAJj','string','(((.+)+)+)+$','normalizeSequence','Epltu','map','saveSession','RJwgQ','VQDmz','JJmoa','getModel','composeTool','vCJjU','memory','lodash','../session/session-logger','merge','qJPKp','zYqOh','wzFvm','defineSteps','init','fOMwF','sessionDoc','spawnSteps','log','some','pEXko','gDhiI','xvdIs','1060890EWEbSi','3411KomASL','Wdqhb','setMemory','Pequy','Step','oXzTm','readDoc','DynamicStructuredTool','getModelParamsModelName','Flow','srdOS','__esModule','length','activateByName','slice','wwwuM','onSessionDoc','Flow\x20\x27','Step\x20\x27','./step','\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.','iYhOe'];a8_0x5ad1=function(){return _0x427b7d;};return a8_0x5ad1();}const tools_1=require(a8_0x262351(0x1e2)),lodash_1=require(a8_0x262351(0x212)),node_async_hooks_1=require(a8_0x262351(0x1f5)),end_step_1=require(a8_0x262351(0x1f4)),flow_types_1=require(a8_0x262351(0x270)),step_1=require(a8_0x262351(0x236)),self_client_1=require('../clients/self-client'),session_logger_1=require(a8_0x262351(0x213));class Flow{constructor(_0x534b24){const _0x311316=a8_0x262351;this[_0x311316(0x26e)]=new Map(),this[_0x311316(0x25d)]=new Map(),this[_0x311316(0x291)]={},this[_0x311316(0x242)]=_0x534b24[_0x311316(0x242)],this[_0x311316(0x24c)]={};}async[a8_0x262351(0x219)](){}['getFlowEngine'](){const _0x3f1050=a8_0x262351;return this[_0x3f1050(0x1e6)];}[a8_0x262351(0x244)](_0x589a9b,_0x4dd8fc){const _0x5df393=a8_0x262351;return this[_0x5df393(0x201)]=_0x589a9b,this[_0x5df393(0x245)]=_0x589a9b,_0x4dd8fc&&this[_0x5df393(0x29b)](_0x4dd8fc),this;}[a8_0x262351(0x20e)](){const _0x18bac3=a8_0x262351;return this[_0x18bac3(0x201)];}[a8_0x262351(0x29b)](_0x1bdede,_0x470ed2){const _0x3e8163=a8_0x262351,_0x116ede={'rQqPF':function(_0x4dc7c0,_0x2def0c){return _0x4dc7c0===_0x2def0c;},'hGIvg':'string','gDhiI':function(_0x3248a6,_0xb4c947){return _0x3248a6??_0xb4c947;}};if(_0x116ede[_0x3e8163(0x295)](typeof _0x1bdede,_0x116ede['hGIvg']))return this[_0x3e8163(0x245)]=_0x1bdede,this[_0x3e8163(0x291)]=(0x0,lodash_1[_0x3e8163(0x214)])({},this['modelParams'],_0x116ede[_0x3e8163(0x220)](_0x470ed2,{})),this;return this[_0x3e8163(0x245)]=this[_0x3e8163(0x201)],this[_0x3e8163(0x291)]=(0x0,lodash_1[_0x3e8163(0x214)])({},this[_0x3e8163(0x291)],_0x1bdede),this;}['getModelParams'](){const _0x25350a=a8_0x262351;return this[_0x25350a(0x291)];}[a8_0x262351(0x22b)](){return this['modelParamsName'];}async[a8_0x262351(0x1f1)](_0x775090,_0x1d3e19){const _0x72cda4=a8_0x262351,_0x43b5a0={'wwwuM':_0x72cda4(0x1f0),'Pequy':_0x72cda4(0x23e)};this[_0x72cda4(0x1e6)]=_0x1d3e19;const _0x3f41fb=this[_0x72cda4(0x20e)]();if(!_0x3f41fb)throw new Error(_0x72cda4(0x234)+this['name']+_0x72cda4(0x237));for(const [,_0x79e919]of this[_0x72cda4(0x26e)]){const _0x9e2a1d=_0x79e919['getModel']();!_0x9e2a1d&&_0x79e919['useModel'](_0x3f41fb);}const _0x1cf750=_0x1d3e19[_0x72cda4(0x23d)](),[_0x2f4985,_0x2c9c92]=await _0x1cf750[_0x72cda4(0x26c)](_0x775090),_0x487662=await this[_0x72cda4(0x233)](_0x2c9c92,_0x2f4985);if(_0x487662)this[_0x72cda4(0x21b)]=this[_0x72cda4(0x1fc)](_0x2c9c92),this['assignFlowDoc'](),await this[_0x72cda4(0x254)](),await this[_0x72cda4(0x20a)]();else{if(_0x43b5a0[_0x72cda4(0x232)]!==_0x43b5a0[_0x72cda4(0x226)])this[_0x72cda4(0x21b)]=_0x2c9c92,this['assignFlowDoc'](),this[_0x72cda4(0x229)](),await this[_0x72cda4(0x203)]();else return this['modelName']=_0x2ce9a5,this[_0x72cda4(0x245)]=_0x4242d5,_0x451216&&this[_0x72cda4(0x29b)](_0xe37280),this;}if(this['flowDoc'][_0x72cda4(0x27a)]['length']===0x0){const _0x51e46c=this['getActiveStep']();_0x51e46c&&this[_0x72cda4(0x1ed)](_0x51e46c[_0x72cda4(0x283)]());}this[_0x72cda4(0x20f)]();}['assignFlowDoc'](){const _0x48daff=a8_0x262351,_0x5501aa={'iYhOe':'lqYDc','RJwgQ':'QahQr','YrQpp':function(_0x539b0b,_0x165080){return _0x539b0b===_0x165080;}},_0x4a6bdf=this[_0x48daff(0x21b)]['flows'][_0x48daff(0x25a)](_0xd60ac=>{const _0x211d7d=_0x48daff;if(_0x5501aa[_0x211d7d(0x238)]===_0x5501aa[_0x211d7d(0x20b)])_0x9d012d[_0x211d7d(0x1fa)]&&(_0x296b22=_0x2e0e80[_0x211d7d(0x283)]()),_0x47d2ed['push'](_0x309734[_0x211d7d(0x1fc)]());else{if(_0x5501aa[_0x211d7d(0x255)](_0xd60ac[_0x211d7d(0x242)],this[_0x211d7d(0x242)]))return!![];return![];}});this[_0x48daff(0x280)]=_0x4a6bdf[0x0],this['flowDoc'][_0x48daff(0x27a)]=this[_0x48daff(0x207)](this['flowDoc']['sequence']);}[a8_0x262351(0x207)](_0x1ac501=[]){const _0x551720=a8_0x262351,_0xee08f4={'kKsyn':_0x551720(0x272),'ZQbqA':_0x551720(0x205),'zDPik':function(_0x236a4d,_0x5fd4a4){return _0x236a4d===_0x5fd4a4;},'nTfUW':_0x551720(0x20d)};return _0x1ac501[_0x551720(0x209)](_0x1ac8b1=>{const _0x1f1aa9=_0x551720;if(_0xee08f4[_0x1f1aa9(0x25f)]===_0xee08f4[_0x1f1aa9(0x25f)]){if(typeof _0x1ac8b1===_0xee08f4[_0x1f1aa9(0x257)])return _0xee08f4[_0x1f1aa9(0x1f9)]('ogyHd',_0xee08f4[_0x1f1aa9(0x284)])?this[_0x1f1aa9(0x21b)]['id']:{'level':0x1,'stepName':_0x1ac8b1};return _0x1ac8b1;}else return _0x53a8f5[_0x1f1aa9(0x24d)](_0x32ceb7,_0x1e858c);});}['addSequence'](_0x174ff6){const _0x548d18=a8_0x262351;this[_0x548d18(0x280)][_0x548d18(0x27a)]['push']({'level':this['getSequenceLevel'](),'stepName':_0x174ff6});}[a8_0x262351(0x24e)](){const _0x1a9449=a8_0x262351;return Flow[_0x1a9449(0x1e5)][_0x1a9449(0x260)]()?.[_0x1a9449(0x1ec)]??0x1;}async['withNestedSequence'](_0x449906){const _0x185413=a8_0x262351,_0x19a035={'FfQwR':function(_0x1dde7a,_0x23981c){return _0x1dde7a+_0x23981c;}},_0x2ecc72=_0x19a035['FfQwR'](this[_0x185413(0x24e)](),0x1);return await Flow[_0x185413(0x1e5)][_0x185413(0x292)]({'level':_0x2ecc72},_0x449906);}[a8_0x262351(0x27b)](_0x5b4bfd){const _0x2fc237=a8_0x262351,_0x20a39c={'eiwGz':function(_0x284494,_0x55ea55){return _0x284494===_0x55ea55;},'nlTTG':_0x2fc237(0x278),'neEFz':'input_tokens','NwGfB':_0x2fc237(0x1e3)};if(_0x5b4bfd){if(_0x20a39c[_0x2fc237(0x1e4)](_0x20a39c[_0x2fc237(0x248)],_0x20a39c[_0x2fc237(0x248)])){const _0x354d1e=_0x5b4bfd[_0x20a39c[_0x2fc237(0x281)]],_0x3f3b52=_0x5b4bfd[_0x2fc237(0x23a)],_0x299ea4=_0x5b4bfd[_0x20a39c[_0x2fc237(0x1eb)]];_0x354d1e&&(this['sessionDoc'][_0x2fc237(0x298)][_0x2fc237(0x290)]+=_0x354d1e),_0x3f3b52&&(this['sessionDoc'][_0x2fc237(0x298)]['outputTokens']+=_0x3f3b52),_0x299ea4&&(this[_0x2fc237(0x21b)][_0x2fc237(0x298)][_0x2fc237(0x251)]+=_0x299ea4);}else return _0x589074;}}[a8_0x262351(0x249)](){const _0x2fb6ee=a8_0x262351,_0x5b5c14=this[_0x2fb6ee(0x218)]();for(const _0x39771a of _0x5b5c14){this['stepMap'][_0x2fb6ee(0x277)](_0x39771a[_0x2fb6ee(0x283)](),_0x39771a);}}['defineSteps'](){const _0x2c92f7=a8_0x262351,_0x3a31b1={'CyDfb':'temp'};return[new end_step_1[(_0x2c92f7(0x1f3))](this)[_0x2c92f7(0x27c)](_0x3a31b1[_0x2c92f7(0x294)])];}[a8_0x262351(0x1fc)](_0x51f188){const _0x313dc4=a8_0x262351,_0x2aa9f4={'xvdIs':function(_0x2d3809,_0xf7f8a3){return _0x2d3809!==_0xf7f8a3;},'fXrbS':_0x313dc4(0x239)};let _0x292a14=null;const _0x56289d=[];for(const [,_0x58bf2a]of this[_0x313dc4(0x26e)]){if(_0x2aa9f4[_0x313dc4(0x221)](_0x2aa9f4[_0x313dc4(0x243)],_0x2aa9f4[_0x313dc4(0x243)])){this[_0x313dc4(0x211)][_0x313dc4(0x229)](this[_0x313dc4(0x280)][_0x313dc4(0x211)]);for(const [,_0x139cc2]of this['stepMap']){_0x139cc2[_0x313dc4(0x229)](this[_0x313dc4(0x280)][_0x313dc4(0x25c)]);}this[_0x313dc4(0x24c)]=this[_0x313dc4(0x280)][_0x313dc4(0x24c)];}else _0x58bf2a[_0x313dc4(0x1fa)]&&(_0x292a14=_0x58bf2a[_0x313dc4(0x283)]()),_0x56289d['push'](_0x58bf2a[_0x313dc4(0x1fc)]());}const _0x9d6558={'name':this[_0x313dc4(0x242)],'memory':this[_0x313dc4(0x211)]['createOoc'](),'steps':_0x56289d,'context':this['context'],'sequence':[],'start':_0x292a14};return _0x51f188[_0x313dc4(0x1f8)]['push'](_0x9d6558),_0x51f188;}[a8_0x262351(0x229)](){const _0x19ef28=a8_0x262351;this[_0x19ef28(0x211)][_0x19ef28(0x229)](this[_0x19ef28(0x280)][_0x19ef28(0x211)]);for(const [,_0x5488b3]of this[_0x19ef28(0x26e)]){_0x5488b3['readDoc'](this[_0x19ef28(0x280)]['steps']);}this[_0x19ef28(0x24c)]=this[_0x19ef28(0x280)]['context'];}async[a8_0x262351(0x203)](){const _0x30d5c1=a8_0x262351,_0x25bc0d=this[_0x30d5c1(0x273)]();_0x25bc0d&&await _0x25bc0d['onRestore']();}async[a8_0x262351(0x254)](){const _0x22abde=a8_0x262351,_0x445eb4={'yTAJj':_0x22abde(0x20c),'EmHlw':function(_0x523e2b,_0x1a0694){return _0x523e2b===_0x1a0694;},'jGMKL':_0x22abde(0x23c),'aGpfO':_0x22abde(0x274)},_0x467826=this[_0x22abde(0x280)]['start'];if(!_0x467826){if(_0x445eb4[_0x22abde(0x204)]===_0x445eb4[_0x22abde(0x204)])return;else this['sessionDoc'][_0x22abde(0x298)][_0x22abde(0x1fd)]+=_0x57c2cd;}const _0x4503a4=this[_0x22abde(0x29f)](_0x467826);if(!_0x4503a4){if(_0x445eb4[_0x22abde(0x1e7)](_0x445eb4['jGMKL'],_0x445eb4[_0x22abde(0x262)]))return'';else return;}const _0x354f01=await _0x4503a4[_0x22abde(0x259)]();if(!_0x354f01)return;const _0x475fe6=_0x4503a4[_0x22abde(0x25b)](),_0x1a1700=_0x475fe6[_0x22abde(0x21e)](_0x1e68b3=>_0x1e68b3['id']===_0x354f01['id']);!_0x1a1700&&_0x475fe6[_0x22abde(0x299)](_0x354f01);}['getSessionId'](){const _0x5df767=a8_0x262351;return this[_0x5df767(0x21b)]['id'];}async['saveSession'](){const _0x5e83a4=a8_0x262351,_0x378b6a={'NswUG':_0x5e83a4(0x26a)};this[_0x5e83a4(0x211)]['writeDoc'](this['flowDoc'][_0x5e83a4(0x211)]);for(const [,_0x401399]of this['stepMap']){if('mTaSK'!==_0x378b6a[_0x5e83a4(0x293)])_0x401399['writeDoc'](this['flowDoc'][_0x5e83a4(0x25c)]);else throw new _0x39470e('Step\x20\x27'+_0x2a0f94+_0x5e83a4(0x24b)+this[_0x5e83a4(0x242)]+'\x27.');}this['flowDoc'][_0x5e83a4(0x24c)]=this[_0x5e83a4(0x24c)],await this['flowEngine'][_0x5e83a4(0x23d)]()[_0x5e83a4(0x266)](this['sessionDoc']);}[a8_0x262351(0x273)](){const _0x367825=a8_0x262351,_0xa26d04=step_1[_0x367825(0x227)]['getScopedActiveStep']();if(_0xa26d04!==undefined)return _0xa26d04;for(const [_0x1f6828,_0x2d3057]of this[_0x367825(0x26e)]){if(_0x2d3057[_0x367825(0x1fa)])return _0x2d3057;}return null;}[a8_0x262351(0x29f)](_0x21ecec){const _0x1ba169=a8_0x262351;return this[_0x1ba169(0x26e)][_0x1ba169(0x24f)](_0x21ecec);}[a8_0x262351(0x287)](){return null;}async['run'](_0x382c00){const _0xec8e12=a8_0x262351,_0x3dfc80={'qYHnM':_0xec8e12(0x1f6),'uujIn':function(_0x573486,_0x54adcf){return _0x573486!==_0x54adcf;},'MFZct':_0xec8e12(0x215)},_0x4d957a=this['getContext'](_0x3dfc80[_0xec8e12(0x252)]);let _0x500ab8,_0x1975e5;if(_0x4d957a)_0x500ab8=await this['spawnSteps']();else{if(_0x3dfc80[_0xec8e12(0x288)](_0xec8e12(0x1ff),_0x3dfc80[_0xec8e12(0x1e9)]))_0x1975e5=this['getActiveStep'](),_0x500ab8=await _0x1975e5[_0xec8e12(0x292)](_0x382c00);else return this[_0xec8e12(0x27e)](_0x7655c6,_0x539193,_0x2939b8['SaveStateType'][_0xec8e12(0x297)]);}return _0x1975e5=this[_0xec8e12(0x273)](),{'success':!![],'completed':_0x1975e5['isEnd'](),'message':_0x500ab8,'session':this[_0xec8e12(0x21b)]['id'],'contentType':_0x1975e5['contentType']};}async[a8_0x262351(0x21c)](){return'';}async[a8_0x262351(0x1f2)]({items:_0x203644,batchSize:_0x20f01b,onConfig:_0x481018,onBotResponse:_0x16a026}){const _0x1abe9f=a8_0x262351,_0x5eb988={'pEXko':function(_0x30b26f,_0x20580c){return _0x30b26f(_0x20580c);},'ogtOd':function(_0x569361,_0x4167f9,_0x4a0de1){return _0x569361(_0x4167f9,_0x4a0de1);},'Epltu':'message','vYljR':function(_0x5d88b4,_0x1f349e){return _0x5d88b4<_0x1f349e;},'srdOS':function(_0x3846b5,_0xe64162){return _0x3846b5+_0xe64162;},'fOMwF':function(_0x5271fc,_0x3e8b38){return _0x5271fc/_0x3e8b38;},'ruBbt':function(_0x4930a1,_0x4a7177){return _0x4930a1+_0x4a7177;},'gfmjj':function(_0x329c8d,_0x5cf765){return _0x329c8d/_0x5cf765;}},_0x39e513=new self_client_1[(_0x1abe9f(0x267))]();for(let _0x59153f=0x0;_0x5eb988[_0x1abe9f(0x250)](_0x59153f,_0x203644[_0x1abe9f(0x22f)]);_0x59153f+=_0x20f01b){const _0x32774d=_0x203644[_0x1abe9f(0x231)](_0x59153f,_0x5eb988[_0x1abe9f(0x22d)](_0x59153f,_0x20f01b)),_0x4c4b7a=_0x1abe9f(0x285)+_0x5eb988['srdOS'](Math[_0x1abe9f(0x29e)](_0x59153f/_0x20f01b),0x1)+'/'+Math[_0x1abe9f(0x279)](_0x5eb988[_0x1abe9f(0x21a)](_0x203644[_0x1abe9f(0x22f)],_0x20f01b))+_0x1abe9f(0x261)+_0x32774d[_0x1abe9f(0x22f)]+')';new session_logger_1['SessionLogger'](this['getSessionDoc']())['log'](_0x4c4b7a);const _0x2d2a80=_0x32774d['map'](async _0x1a6f73=>{const _0x14e5fc=_0x1abe9f,_0x27ec9c={'flowName':this[_0x14e5fc(0x242)],'config':{..._0x5eb988[_0x14e5fc(0x21f)](_0x481018,_0x1a6f73)}};try{const _0x4fb2d5=await _0x39e513['post']('',_0x27ec9c);_0x5eb988[_0x14e5fc(0x258)](_0x16a026,_0x1a6f73,_0x4fb2d5);}catch(_0x550494){const _0x556923=_0x14e5fc(0x263)+this[_0x14e5fc(0x242)]+_0x14e5fc(0x200)+_0x550494[_0x5eb988[_0x14e5fc(0x208)]];new session_logger_1[(_0x14e5fc(0x26f))](this[_0x14e5fc(0x265)]())[_0x14e5fc(0x282)](_0x556923),console[_0x14e5fc(0x282)](_0x556923);}});await Promise[_0x1abe9f(0x29a)](_0x2d2a80);const _0xa8b039=_0x1abe9f(0x264)+_0x5eb988[_0x1abe9f(0x2a1)](Math[_0x1abe9f(0x29e)](_0x5eb988['gfmjj'](_0x59153f,_0x20f01b)),0x1)+_0x1abe9f(0x256);new session_logger_1[(_0x1abe9f(0x26f))](this['getSessionDoc']())[_0x1abe9f(0x21d)](_0xa8b039);}}[a8_0x262351(0x225)](_0x3fb025){const _0x3b0349=a8_0x262351;this[_0x3b0349(0x211)]=_0x3fb025;}[a8_0x262351(0x25b)](_0xbf076c){return this['memory']['getMessages'](_0xbf076c);}[a8_0x262351(0x27d)](_0x4fe672){const _0x3e6d3e=a8_0x262351;this[_0x3e6d3e(0x24c)]=_0x4fe672;}[a8_0x262351(0x202)](_0x3540c1){const _0x9e460=a8_0x262351;(0x0,lodash_1['merge'])(this[_0x9e460(0x24c)],_0x3540c1);}['getContext'](_0x5803a7){const _0x130af8=a8_0x262351;return(0x0,lodash_1[_0x130af8(0x24f)])(this[_0x130af8(0x24c)],_0x5803a7);}async[a8_0x262351(0x240)](_0x47fd5c){const _0x20ceb5=a8_0x262351;return await this[_0x20ceb5(0x230)](_0x47fd5c[_0x20ceb5(0x242)]);}async[a8_0x262351(0x29c)](_0x400c4a){const _0x1025ed=a8_0x262351;return await this['activateNestedByName'](_0x400c4a[_0x1025ed(0x242)]);}async[a8_0x262351(0x28e)](_0x5aca83){const _0x1a963d=a8_0x262351;if(!step_1['Step']['hasActiveStepScope']())return await this[_0x1a963d(0x230)](_0x5aca83);const _0x248951=this['stepMap'][_0x1a963d(0x24f)](_0x5aca83);if(!_0x248951)throw new Error(_0x1a963d(0x235)+_0x5aca83+_0x1a963d(0x24b)+this[_0x1a963d(0x242)]+'\x27.');if(_0x248951[_0x1a963d(0x1fa)])return _0x248951;return this[_0x1a963d(0x1ed)](_0x5aca83),await _0x248951['pushScopedActiveStep'](),_0x248951;}async[a8_0x262351(0x230)](_0x31c459){const _0x2ef1d7=a8_0x262351,_0x1ee741={'iKXwX':function(_0x3ec64a,_0x21fc3f){return _0x3ec64a===_0x21fc3f;},'AgHAf':function(_0x4c28f7,_0xf4465e){return _0x4c28f7!==_0xf4465e;},'BdlkY':'oZOGQ','VBexi':function(_0x5b6f65,_0xe51df5){return _0x5b6f65!==_0xe51df5;},'FFvkk':_0x2ef1d7(0x1fb),'IaXpv':_0x2ef1d7(0x1ea),'nBWSX':_0x2ef1d7(0x286),'Wdqhb':_0x2ef1d7(0x210),'wzFvm':_0x2ef1d7(0x228),'UITGo':_0x2ef1d7(0x253),'iMvXu':_0x2ef1d7(0x216)},_0x3c33c6=this[_0x2ef1d7(0x26e)][_0x2ef1d7(0x24f)](_0x31c459);if(!_0x3c33c6)throw new Error(_0x2ef1d7(0x235)+_0x31c459+_0x2ef1d7(0x24b)+this['name']+'\x27.');const _0x5ebf5f=step_1[_0x2ef1d7(0x227)]['getScopedActiveStep']();if(_0x1ee741['AgHAf'](_0x5ebf5f,undefined)){if(_0x2ef1d7(0x1ee)!==_0x1ee741['BdlkY']){if(_0x1ee741['iKXwX'](_0x5ebf5f?.['getName'](),_0x31c459)){if(_0x1ee741['VBexi'](_0x1ee741['FFvkk'],_0x1ee741[_0x2ef1d7(0x247)]))return _0x3c33c6;else this[_0x2ef1d7(0x29b)](_0x5a9d31);}return this[_0x2ef1d7(0x1ed)](_0x31c459),await _0x3c33c6['setActive'](!![]),_0x3c33c6;}else return _0x19524b[_0x2ef1d7(0x2a0)]()[_0x2ef1d7(0x269)](_0x2ef1d7(0x206))[_0x2ef1d7(0x2a0)]()[_0x2ef1d7(0x275)](_0x38b39b)['search']('(((.+)+)+)+$');}if(_0x3c33c6[_0x2ef1d7(0x283)]()===_0x31c459&&_0x3c33c6['active'])return _0x1ee741[_0x2ef1d7(0x25e)](_0x1ee741[_0x2ef1d7(0x241)],_0x1ee741[_0x2ef1d7(0x224)])?{'level':0x1,'stepName':_0x269132}:_0x3c33c6;else{for(const [_0x310464,_0x411f18]of this[_0x2ef1d7(0x26e)]){if(_0x1ee741[_0x2ef1d7(0x276)](_0x1ee741[_0x2ef1d7(0x217)],_0x1ee741[_0x2ef1d7(0x28a)])){if(_0x411f18[_0x2ef1d7(0x1fa)]){if(_0x1ee741[_0x2ef1d7(0x276)](_0x1ee741[_0x2ef1d7(0x246)],_0x1ee741['iMvXu']))this[_0x2ef1d7(0x21b)][_0x2ef1d7(0x298)][_0x2ef1d7(0x290)]+=_0x4c7713;else{await _0x411f18[_0x2ef1d7(0x23b)](![]);break;}}}else{if(_0x1ee741[_0x2ef1d7(0x25e)](typeof _0x309a07,_0x2ef1d7(0x205)))return{'level':0x1,'stepName':_0x2851a9};return _0x3749b1;}}return this[_0x2ef1d7(0x1ed)](_0x31c459),await _0x3c33c6[_0x2ef1d7(0x23b)](!![]),_0x3c33c6;}}[a8_0x262351(0x27f)](_0x30e224){const _0x35048c=a8_0x262351;return this[_0x35048c(0x25d)][_0x35048c(0x24f)](_0x30e224);}[a8_0x262351(0x20f)](){const _0x11685c=a8_0x262351,_0x176451={'eKQgi':function(_0x13a365,_0x57871c){return _0x13a365===_0x57871c;},'ueGwm':_0x11685c(0x28f)},_0x1fdde3=[];for(const [_0x4c7948,_0x2d8992]of this['stepMap']){if(_0x176451[_0x11685c(0x28b)](_0x176451[_0x11685c(0x24a)],_0x176451[_0x11685c(0x24a)])){const _0x4a2bf8=_0x2d8992[_0x11685c(0x287)]();_0x4a2bf8&&_0x1fdde3[_0x11685c(0x299)](..._0x4a2bf8);}else{if(_0x15b90c){const _0xce1b74=_0x4ec67f['apply'](_0x92b48c,arguments);return _0x12c041=null,_0xce1b74;}}}const _0x2aa652=this[_0x11685c(0x287)]();_0x2aa652&&_0x1fdde3['push'](..._0x2aa652);for(const _0x45e0fd of _0x1fdde3){const _0x3c8b2f=(0x0,lodash_1['merge'])({},_0x45e0fd,{'func':null});this[_0x11685c(0x25d)][_0x11685c(0x277)](_0x45e0fd[_0x11685c(0x242)],new tools_1[(_0x11685c(0x22a))](_0x3c8b2f));}}[a8_0x262351(0x265)](){const _0x3f1892=a8_0x262351;return this[_0x3f1892(0x21b)];}['getStepState'](_0x40d409,_0x32b06b){const _0x4e4959=a8_0x262351,_0x2aa906=this[_0x4e4959(0x26e)][_0x4e4959(0x24f)](_0x40d409[_0x4e4959(0x242)]);return _0x2aa906[_0x4e4959(0x23f)](_0x32b06b);}[a8_0x262351(0x27e)](_0x319edf,_0x3fb20a,_0x2c1a5b=flow_types_1[a8_0x262351(0x268)][a8_0x262351(0x1fe)]){const _0x31ad21=a8_0x262351,_0x40b1ae=this[_0x31ad21(0x26e)]['get'](_0x319edf[_0x31ad21(0x242)]);if(_0x40b1ae)return _0x40b1ae[_0x31ad21(0x24d)](_0x3fb20a,_0x2c1a5b);}['saveTransientStepState'](_0x56da99,_0x320292){const _0x2bbdcb=a8_0x262351;return this['saveStepState'](_0x56da99,_0x320292,flow_types_1[_0x2bbdcb(0x268)]['transient']);}async['onSessionDoc'](_0x2f5472,_0x104375){return _0x104375;}}exports[a8_0x262351(0x22c)]=Flow,Flow[a8_0x262351(0x1e5)]=new node_async_hooks_1[(a8_0x262351(0x26d))]();
|