@picoflow/core 1.0.12 → 1.0.13
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/README.md +4 -3
- 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/models/default-models.js +1 -1
- package/models/model-registry.js +1 -1
- package/package.json +1 -1
- package/prompt/flow-prompt.js +1 -1
- package/prompt/prompt-util.js +1 -1
- package/services/flow-engine.d.ts +1 -0
- 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/README.md
CHANGED
|
@@ -11,8 +11,8 @@ yarn add @picoflow/core
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## License Key
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
You need a license key that you need to include in your .env file
|
|
15
|
+
A free key for personal use can be found at www.picoflow.io , the Q/A section.
|
|
16
16
|
|
|
17
17
|
## Features
|
|
18
18
|
- **Agentic Flows**: Define complex conversational flows using flows/steps
|
|
@@ -31,4 +31,5 @@ For more detailed documentation, please refer to the [doc](./doc) folder.
|
|
|
31
31
|
|
|
32
32
|
## License
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
License info: [https://www.picoflow.io/picoflow-license]
|
|
35
|
+
Copyright (c) 2026 picoflow.io
|
package/clients/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5e201d=a0_0xe2dc;function a0_0x3629(){const _0x1e18a7=['client','create','936258Uzjxjc','__esModule','apply','defineProperty','MSnGr','constructor','request','ObJsu','vaUVS','zhBxm','reject','UMelA','hOXZw','HttpClient','toString','data','xCjmv','removeHeader','1590374JJcPjD','4395860SGiJFD','wkwyc','DqWTw','get','diBlL','defaults','search','patch','4pLGjVf','default','678461PMpwDo','10kQzSYl','@nestjs/common','NxrgK','(((.+)+)+)+$','HttpStatus','validateStatus','interceptors','HFWby','qpcXP','delete','message','4024464rpMZej','rjHMZ','4213890qzThse','1801578vXdyax','common','upZjf','hHORE','lRFKV','yTdqn','use','post','response','statusCode','ULzpK','Mwiht','axios','BPpcX','dfrzm','setup','headers','put'];a0_0x3629=function(){return _0x1e18a7;};return a0_0x3629();}(function(_0x167898,_0xcc94f8){const _0x357955=a0_0xe2dc,_0x2c74a0=_0x167898();while(!![]){try{const _0x26ae7c=-parseInt(_0x357955(0x1eb))/0x1+parseInt(_0x357955(0x1e0))/0x2+parseInt(_0x357955(0x1ce))/0x3*(parseInt(_0x357955(0x1e9))/0x4)+-parseInt(_0x357955(0x1ec))/0x5*(parseInt(_0x357955(0x1fa))/0x6)+parseInt(_0x357955(0x1e1))/0x7+parseInt(_0x357955(0x1f7))/0x8+-parseInt(_0x357955(0x1f9))/0x9;if(_0x26ae7c===_0xcc94f8)break;else _0x2c74a0['push'](_0x2c74a0['shift']());}catch(_0xcaf031){_0x2c74a0['push'](_0x2c74a0['shift']());}}}(a0_0x3629,0x77e6a));const a0_0x9d6111=(function(){const _0x3fbb93=a0_0xe2dc,_0x5cdd57={'dfrzm':function(_0x460ea9,_0x48cf3d){return _0x460ea9<_0x48cf3d;},'kHcTd':function(_0x191998,_0x37ce44){return _0x191998===_0x37ce44;},'xCjmv':_0x3fbb93(0x1c5),'BPpcX':_0x3fbb93(0x1d6)};let _0x308ee5=!![];return function(_0x31f7cd,_0x5659cc){const _0x2eeabe=_0x3fbb93,_0x893fb={'xsTzs':function(_0x2e3e7e,_0x48c34e){return _0x5cdd57['kHcTd'](_0x2e3e7e,_0x48c34e);},'xBCUw':'vaYQb'};if(_0x5cdd57[_0x2eeabe(0x1de)]===_0x5cdd57[_0x2eeabe(0x1c7)])return _0x43f236=_0x3dc88f,_0x169a78>=_0x351cf3[_0x2eeabe(0x1f0)]['OK']&&_0x5cdd57[_0x2eeabe(0x1c8)](_0xd5f24a,0x12c);else{const _0x2ed600=_0x308ee5?function(){const _0x2a5e9e=_0x2eeabe;if(_0x5659cc){if(_0x893fb['xsTzs'](_0x2a5e9e(0x1f4),_0x893fb['xBCUw']))return this[_0x2a5e9e(0x1c9)](this[_0x2a5e9e(0x1cc)]['patch'],_0x2455b3,_0x47660d,_0x39c9e7);else{const _0x1feb1a=_0x5659cc['apply'](_0x31f7cd,arguments);return _0x5659cc=null,_0x1feb1a;}}}:function(){};return _0x308ee5=![],_0x2ed600;}};}()),a0_0x2931fe=a0_0x9d6111(this,function(){const _0x49b9a5=a0_0xe2dc,_0x356d7c={'rjHMZ':_0x49b9a5(0x1ef)};return a0_0x2931fe[_0x49b9a5(0x1dc)]()[_0x49b9a5(0x1e7)](_0x356d7c[_0x49b9a5(0x1f8)])[_0x49b9a5(0x1dc)]()[_0x49b9a5(0x1d3)](a0_0x2931fe)[_0x49b9a5(0x1e7)](_0x49b9a5(0x1ef));});a0_0x2931fe();function a0_0xe2dc(_0x3b77c4,_0x312e1e){const _0x339f6a=a0_0x3629();return a0_0xe2dc=function(_0x2931fe,_0x9d6111){_0x2931fe=_0x2931fe-0x1c2;let _0x3629af=_0x339f6a[_0x2931fe];return _0x3629af;},a0_0xe2dc(_0x3b77c4,_0x312e1e);}'use strict';var __importDefault=this&&this['__importDefault']||function(_0xc21c81){return _0xc21c81&&_0xc21c81['__esModule']?_0xc21c81:{'default':_0xc21c81};};Object[a0_0x5e201d(0x1d1)](exports,a0_0x5e201d(0x1cf),{'value':!![]}),exports['HttpClient']=void 0x0;const common_1=require(a0_0x5e201d(0x1ed)),axios_1=__importDefault(require(a0_0x5e201d(0x1c6)));class HttpClient{constructor(_0x2c1146,_0x3e62e1={},_0x474944){const _0x188456=a0_0x5e201d;this[_0x188456(0x1cc)]=axios_1[_0x188456(0x1ea)][_0x188456(0x1cd)]({'baseURL':_0x2c1146,'timeout':_0x474944,'headers':_0x3e62e1}),this[_0x188456(0x1cc)][_0x188456(0x1f2)][_0x188456(0x1d4)]['use'](_0x95c8a4=>{return _0x95c8a4;},_0xbf2c06=>Promise['reject'](_0xbf2c06)),this[_0x188456(0x1cc)][_0x188456(0x1f2)][_0x188456(0x1c2)][_0x188456(0x200)](_0x4879bf=>_0x4879bf['data'],_0x299058=>{const _0x1b8eae=_0x188456,_0x33a3f5=_0x299058[_0x1b8eae(0x1c2)]?.[_0x1b8eae(0x1dd)]?.['message']||_0x299058[_0x1b8eae(0x1f6)];return Promise[_0x1b8eae(0x1d8)](new Error(_0x33a3f5));});}async[a0_0x5e201d(0x1e4)](_0x498bcd,_0x3c71fe={},_0x2f6f52){const _0x5c0fcc=a0_0x5e201d,_0x182702={'LuLbH':function(_0x4255a3,_0x7114a7){return _0x4255a3===_0x7114a7;},'upZjf':'XJLLV','YruKN':function(_0x59ad9d,_0x309324){return _0x59ad9d>=_0x309324;},'koTgd':function(_0x2aa7f1,_0xc8e1d1){return _0x2aa7f1<_0xc8e1d1;},'bjaWA':function(_0xa4c30b,_0x42b64e){return _0xa4c30b??_0x42b64e;},'diBlL':function(_0x447a82,_0x35d2d9){return _0x447a82===_0x35d2d9;},'VIBAM':'vcOou'};let _0xefb930=common_1[_0x5c0fcc(0x1f0)]['OK'];const _0xbc75db=_0x182702['bjaWA'](_0x2f6f52,{});_0xbc75db[_0x5c0fcc(0x1f1)]=_0x3b5e00=>{const _0x508e06=_0x5c0fcc;return _0x182702['LuLbH'](_0x182702[_0x508e06(0x1fc)],_0x182702['upZjf'])?(_0xefb930=_0x3b5e00,_0x182702['YruKN'](_0x3b5e00,common_1[_0x508e06(0x1f0)]['OK'])&&_0x182702['koTgd'](_0x3b5e00,0x12c)):_0x3b5792&&_0x32f88b[_0x508e06(0x1cf)]?_0x59031e:{'default':_0x11aec2};};try{if(_0x182702[_0x5c0fcc(0x1e5)](_0x182702['VIBAM'],_0x182702['VIBAM'])){const _0x13f0ec=await this[_0x5c0fcc(0x1cc)][_0x5c0fcc(0x1e4)](_0x498bcd,{'params':_0x3c71fe,..._0xbc75db});return _0x13f0ec;}else this[_0x5c0fcc(0x1cc)][_0x5c0fcc(0x1e6)]['headers']['common'][_0x2dcc4f]=_0x4cccf6;}catch(_0x3848ca){_0x3848ca[_0x5c0fcc(0x1c3)]=_0xefb930;throw _0x3848ca;}}async[a0_0x5e201d(0x201)](_0x4591d4,_0x50a6be={},_0x1d14ee){const _0x4445ed=a0_0x5e201d;return this[_0x4445ed(0x1c9)](this[_0x4445ed(0x1cc)]['post'],_0x4591d4,_0x50a6be,_0x1d14ee);}async[a0_0x5e201d(0x1cb)](_0x29e53d,_0x24b680={},_0x371019){const _0x1c16b1=a0_0x5e201d;return this[_0x1c16b1(0x1c9)](this['client'][_0x1c16b1(0x1cb)],_0x29e53d,_0x24b680,_0x371019);}async[a0_0x5e201d(0x1f5)](_0x5852a6,_0x41803a){const _0x16efd9=a0_0x5e201d,_0x3833c9={'UMelA':function(_0x1f1b70,_0x2cf979){return _0x1f1b70<_0x2cf979;},'hOXZw':function(_0x30d219,_0x253b8b){return _0x30d219??_0x253b8b;},'lRFKV':function(_0x80c022,_0x2fa8ad){return _0x80c022!==_0x2fa8ad;},'hHORE':_0x16efd9(0x1e3)};let _0x385786=common_1[_0x16efd9(0x1f0)]['OK'];const _0x14c773=_0x3833c9[_0x16efd9(0x1da)](_0x41803a,{});_0x14c773[_0x16efd9(0x1f1)]=_0x2c8b1a=>{const _0x44f98f=_0x16efd9;return _0x385786=_0x2c8b1a,_0x2c8b1a>=common_1[_0x44f98f(0x1f0)]['OK']&&_0x3833c9[_0x44f98f(0x1d9)](_0x2c8b1a,0x12c);};try{const _0x2a150f=await this[_0x16efd9(0x1cc)]['delete'](_0x5852a6,{..._0x41803a});return _0x2a150f;}catch(_0x1bec56){if(_0x3833c9[_0x16efd9(0x1fe)](_0x16efd9(0x1e3),_0x3833c9[_0x16efd9(0x1fd)]))return _0x5d7b7c;else{_0x1bec56[_0x16efd9(0x1c3)]=_0x385786;throw _0x1bec56;}}}async['patch'](_0x23af5a,_0x3412f5={},_0x4fe868){const _0x199306=a0_0x5e201d;return this[_0x199306(0x1c9)](this['client'][_0x199306(0x1e8)],_0x23af5a,_0x3412f5,_0x4fe868);}['setHeader'](_0x1d3e67,_0x185bb9){const _0xf273e8=a0_0x5e201d;this[_0xf273e8(0x1cc)][_0xf273e8(0x1e6)]['headers'][_0xf273e8(0x1fb)][_0x1d3e67]=_0x185bb9;}[a0_0x5e201d(0x1df)](_0x2bead9){const _0x1f998c=a0_0x5e201d;delete this[_0x1f998c(0x1cc)][_0x1f998c(0x1e6)][_0x1f998c(0x1ca)][_0x1f998c(0x1fb)][_0x2bead9];}async['setup'](_0x2149fe,_0xa6c6e,_0x3fa5c7={},_0x1d3738){const _0x51f21e=a0_0x5e201d,_0x95a6b3={'NxrgK':function(_0x51ea02,_0x2b6071){return _0x51ea02!==_0x2b6071;},'ObJsu':_0x51f21e(0x1e2),'Kiexr':function(_0x4c8055,_0x198684){return _0x4c8055>=_0x198684;},'yTdqn':function(_0x36890b,_0x155329){return _0x36890b<_0x155329;},'ULzpK':function(_0x4a936e,_0x6d954d){return _0x4a936e??_0x6d954d;},'HFWby':function(_0x10fd14,_0x46e994,_0x87646b,_0xf44e60){return _0x10fd14(_0x46e994,_0x87646b,_0xf44e60);},'zhBxm':_0x51f21e(0x1d2)};let _0x4f5047=common_1[_0x51f21e(0x1f0)]['OK'];const _0x3bfb56=_0x95a6b3[_0x51f21e(0x1c4)](_0x1d3738,{});_0x3bfb56[_0x51f21e(0x1f1)]=_0x1bcb75=>{const _0x4ed8b8=_0x51f21e;if(_0x95a6b3[_0x4ed8b8(0x1ee)](_0x95a6b3['ObJsu'],_0x95a6b3[_0x4ed8b8(0x1d5)])){const _0xa6bb8c=_0x2aee4d?function(){const _0x34a47e=_0x4ed8b8;if(_0x290f35){const _0x2a5b8a=_0x564c8d[_0x34a47e(0x1d0)](_0x18f945,arguments);return _0x48bac1=null,_0x2a5b8a;}}:function(){};return _0x569ec1=![],_0xa6bb8c;}else return _0x4f5047=_0x1bcb75,_0x95a6b3['Kiexr'](_0x1bcb75,common_1[_0x4ed8b8(0x1f0)]['OK'])&&_0x1bcb75<0x12c;};try{const _0x5a875f=await _0x95a6b3[_0x51f21e(0x1f3)](_0x2149fe,_0xa6c6e,_0x3fa5c7,{..._0x3bfb56});return _0x5a875f;}catch(_0x532a7b){if(_0x95a6b3[_0x51f21e(0x1d7)]===_0x95a6b3[_0x51f21e(0x1d7)]){_0x532a7b[_0x51f21e(0x1c3)]=_0x4f5047;throw _0x532a7b;}else return _0x4faeff=_0x40cde0,_0x5ee1e6>=_0x4b809d['HttpStatus']['OK']&&_0x95a6b3[_0x51f21e(0x1ff)](_0x48c896,0x12c);}}}exports[a0_0x5e201d(0x1db)]=HttpClient;
|
package/clients/self-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x2cf354=a1_0x5a0b;(function(_0x28c3ee,_0xb92fe9){const _0x438725=a1_0x5a0b,_0x2f869e=_0x28c3ee();while(!![]){try{const _0x32208d=-parseInt(_0x438725(0x1dd))/0x1+parseInt(_0x438725(0x1df))/0x2+-parseInt(_0x438725(0x1da))/0x3*(parseInt(_0x438725(0x1e4))/0x4)+-parseInt(_0x438725(0x1d9))/0x5*(-parseInt(_0x438725(0x1dc))/0x6)+-parseInt(_0x438725(0x1ea))/0x7*(parseInt(_0x438725(0x1db))/0x8)+-parseInt(_0x438725(0x1e3))/0x9+-parseInt(_0x438725(0x1e1))/0xa*(-parseInt(_0x438725(0x1e0))/0xb);if(_0x32208d===_0xb92fe9)break;else _0x2f869e['push'](_0x2f869e['shift']());}catch(_0x659997){_0x2f869e['push'](_0x2f869e['shift']());}}}(a1_0x12c8,0x80ee9));const a1_0x3b3cea=(function(){let _0x2c9f28=!![];return function(_0x39b32a,_0x15f2aa){const _0x21ec10=_0x2c9f28?function(){if(_0x15f2aa){const _0x492e62=_0x15f2aa['apply'](_0x39b32a,arguments);return _0x15f2aa=null,_0x492e62;}}:function(){};return _0x2c9f28=![],_0x21ec10;};}()),a1_0x2ba7bf=a1_0x3b3cea(this,function(){const _0x4c6596=a1_0x5a0b,_0x4190a5={'lSnUO':'(((.+)+)+)+$'};return a1_0x2ba7bf[_0x4c6596(0x1e8)]()[_0x4c6596(0x1e2)](_0x4190a5[_0x4c6596(0x1e6)])['toString']()[_0x4c6596(0x1e7)](a1_0x2ba7bf)['search'](_0x4190a5[_0x4c6596(0x1e6)]);});a1_0x2ba7bf();function a1_0x12c8(){const _0x22e33b=['665076RdxSwh','selfURL','432666viFRKq','11fEBvvR','22470300hZqlSl','search','3900564IFCigZ','9764qroasE','SelfClient','lSnUO','constructor','toString','./http-client','289765erkcJm','../configs/core-config','5WcbFEw','753zGgicQ','136seDRNG','2877720Zqpllb'];a1_0x12c8=function(){return _0x22e33b;};return a1_0x12c8();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['SelfClient']=void 0x0;function a1_0x5a0b(_0x5c259c,_0x3b6e6f){const _0x4e6d77=a1_0x12c8();return a1_0x5a0b=function(_0x2ba7bf,_0x3b3cea){_0x2ba7bf=_0x2ba7bf-0x1d8;let _0x12c80a=_0x4e6d77[_0x2ba7bf];return _0x12c80a;},a1_0x5a0b(_0x5c259c,_0x3b6e6f);}const core_config_1=require(a1_0x2cf354(0x1d8)),http_client_1=require(a1_0x2cf354(0x1e9));class SelfClient extends http_client_1['HttpClient']{constructor(_0x336b7a={},_0x1a9b9f){const _0x3b2582=a1_0x2cf354;super(core_config_1['CoreConfig'][_0x3b2582(0x1de)],_0x336b7a,_0x1a9b9f);}}exports[a1_0x2cf354(0x1e5)]=SelfClient;
|
package/configs/core-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x4674df=a2_0x5381;(function(_0xb3688c,_0x5cf319){const _0x4cfa42=a2_0x5381,_0x44c6a5=_0xb3688c();while(!![]){try{const _0x41903e=parseInt(_0x4cfa42(0xae))/0x1*(-parseInt(_0x4cfa42(0xb2))/0x2)+parseInt(_0x4cfa42(0x9b))/0x3*(-parseInt(_0x4cfa42(0x96))/0x4)+-parseInt(_0x4cfa42(0xb8))/0x5+parseInt(_0x4cfa42(0xbb))/0x6*(-parseInt(_0x4cfa42(0xad))/0x7)+parseInt(_0x4cfa42(0xa4))/0x8+-parseInt(_0x4cfa42(0xb3))/0x9+parseInt(_0x4cfa42(0x9a))/0xa;if(_0x41903e===_0x5cf319)break;else _0x44c6a5['push'](_0x44c6a5['shift']());}catch(_0x1a1807){_0x44c6a5['push'](_0x44c6a5['shift']());}}}(a2_0x59c4,0xb24e9));function a2_0x5381(_0x377f2f,_0x2f1200){const _0x237598=a2_0x59c4();return a2_0x5381=function(_0x519757,_0x219a19){_0x519757=_0x519757-0x8a;let _0x59c423=_0x237598[_0x519757];return _0x59c423;},a2_0x5381(_0x377f2f,_0x2f1200);}const a2_0x219a19=(function(){let _0x32b570=!![];return function(_0x35d10e,_0x21392a){const _0x5b9f3a=_0x32b570?function(){const _0x4056f7=a2_0x5381;if(_0x21392a){const _0x38a0c0=_0x21392a[_0x4056f7(0x8f)](_0x35d10e,arguments);return _0x21392a=null,_0x38a0c0;}}:function(){};return _0x32b570=![],_0x5b9f3a;};}()),a2_0x519757=a2_0x219a19(this,function(){const _0x363e64=a2_0x5381,_0x2341ce={'OYtLz':_0x363e64(0xa7)};return a2_0x519757[_0x363e64(0xa8)]()[_0x363e64(0x9e)](_0x2341ce[_0x363e64(0xba)])[_0x363e64(0xa8)]()[_0x363e64(0xa0)](a2_0x519757)[_0x363e64(0x9e)](_0x363e64(0xa7));});a2_0x519757();'use strict';Object[a2_0x4674df(0xb1)](exports,'__esModule',{'value':!![]}),exports['CoreConfig']=void 0x0;const environ_1=require('../utils/environ');function a2_0x59c4(){const _0x11609b=['24bzGIFR','GeminiKey','fdbHf','MONGODB_COLLECTION','COSMODB_SESSION_ID','SELF_URL','PICOFLOW_KEY','CoreConfig','MONGO','MQXTA','getOrThrow','instance','apply','trim','MONGODB_URL','LLM_TEMPERATURE','cddJC','VKHTa','mongoDB','17452PdtXWi','mongoURL','COSMODB_ID','mongoCollection','42124480NUcivN','321QlxJxK','GEMINI_KEY','get','search','OPENAI_KEY','constructor','XtghY','GetAs','sessionExpiration','9107816irduGZ','llmTemperature','FSlqF','(((.+)+)+)+$','toString','JglOG','SESSION_EXPIRATION','DOCUMENT_DB','EHeXM','2020907QWHIqN','29ygxisq','selfURL','documentDB','defineProperty','66206HvSVXY','11162763uzqJGw','TaOwG','ANTHROPIC_KEY','cosmoDbId','cosmoDbKey','3993205FouDvN','cosmoDbUrl','OYtLz'];a2_0x59c4=function(){return _0x11609b;};return a2_0x59c4();}class CoreConfig{constructor(_0x1c88ea){const _0x28e762=a2_0x4674df,_0x24e237={'fdbHf':_0x28e762(0x91),'XtghY':_0x28e762(0x92),'TaOwG':_0x28e762(0xc0),'VKHTa':'COSMODB_URL','EHeXM':'COSMODB_KEY','cddJC':_0x28e762(0x9c),'JQaXC':_0x28e762(0xbf),'FSlqF':'LLM_RETRY','JglOG':_0x28e762(0xb5),'wcNwn':'MONGODB_NAME','JSWBt':_0x28e762(0x9f),'MQXTA':_0x28e762(0xbe),'HQiWD':_0x28e762(0xab),'oLsBd':_0x28e762(0x8b)},_0xb2e13d='10|1|4|2|6|13|11|15|5|3|8|7|12|14|0|9'['split']('|');let _0x116b57=0x0;while(!![]){switch(_0xb2e13d[_0x116b57++]){case'0':CoreConfig[_0x28e762(0x97)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0xbd)]);continue;case'1':CoreConfig[_0x28e762(0xa5)]=(0x0,environ_1['GetAs'])(_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xa1)],0x0));continue;case'2':CoreConfig[_0x28e762(0xaf)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xb4)]);continue;case'3':CoreConfig[_0x28e762(0xb9)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0x94)]);continue;case'4':CoreConfig['picoKey']=_0x1c88ea[_0x28e762(0x8d)](_0x28e762(0xc1))[_0x28e762(0x90)]();continue;case'5':CoreConfig[_0x28e762(0xb7)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xac)]);continue;case'6':CoreConfig[_0x28e762(0xbc)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0x93)])[_0x28e762(0x90)]();continue;case'7':CoreConfig['cosmoDbSessionId']=_0x1c88ea[_0x28e762(0x9d)](_0x24e237['JQaXC']);continue;case'8':CoreConfig[_0x28e762(0xb6)]=_0x1c88ea[_0x28e762(0x9d)](_0x28e762(0x98));continue;case'9':CoreConfig[_0x28e762(0xa3)]=(0x0,environ_1['GetAs'])(_0x1c88ea['get'](_0x28e762(0xaa),0x258));continue;case'10':CoreConfig['llmRetry']=(0x0,environ_1[_0x28e762(0xa2)])(_0x1c88ea[_0x28e762(0x9d)](_0x24e237[_0x28e762(0xa6)],0x3));continue;case'11':CoreConfig['AnthropicKey']=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0xa9)])[_0x28e762(0x90)]();continue;case'12':CoreConfig[_0x28e762(0x95)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237['wcNwn']);continue;case'13':CoreConfig['OpenAIKey']=_0x1c88ea[_0x28e762(0x8d)](_0x24e237['JSWBt'])[_0x28e762(0x90)]();continue;case'14':CoreConfig[_0x28e762(0x99)]=_0x1c88ea[_0x28e762(0x8d)](_0x24e237[_0x28e762(0x8c)]);continue;case'15':CoreConfig[_0x28e762(0xb0)]=_0x1c88ea[_0x28e762(0x9d)](_0x24e237['HQiWD'],_0x24e237['oLsBd']);continue;}break;}}static['setup'](_0x33a64c){const _0x868b9e=a2_0x4674df;return!this[_0x868b9e(0x8e)]&&(this[_0x868b9e(0x8e)]=new CoreConfig(_0x33a64c)),this['instance'];}}exports[a2_0x4674df(0x8a)]=CoreConfig;
|
package/decorators/stop-tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x54426e=a3_0x4e43;(function(_0x1d10c1,_0x21b582){const _0x46865b=a3_0x4e43,_0xe05d50=_0x1d10c1();while(!![]){try{const _0x1ca099=parseInt(_0x46865b(0x19e))/0x1+parseInt(_0x46865b(0x19f))/0x2*(-parseInt(_0x46865b(0x18f))/0x3)+parseInt(_0x46865b(0x198))/0x4*(-parseInt(_0x46865b(0x18d))/0x5)+parseInt(_0x46865b(0x19a))/0x6+-parseInt(_0x46865b(0x18e))/0x7+-parseInt(_0x46865b(0x199))/0x8*(-parseInt(_0x46865b(0x194))/0x9)+parseInt(_0x46865b(0x193))/0xa;if(_0x1ca099===_0x21b582)break;else _0xe05d50['push'](_0xe05d50['shift']());}catch(_0x20ad46){_0xe05d50['push'](_0xe05d50['shift']());}}}(a3_0x3d75,0xc21b5));const a3_0x44cb4d=(function(){let _0x3599af=!![];return function(_0x49996e,_0x5c4854){const _0x3219bb=_0x3599af?function(){const _0x475252=a3_0x4e43;if(_0x5c4854){const _0x519854=_0x5c4854[_0x475252(0x19d)](_0x49996e,arguments);return _0x5c4854=null,_0x519854;}}:function(){};return _0x3599af=![],_0x3219bb;};}()),a3_0xaf07cd=a3_0x44cb4d(this,function(){const _0xafc298=a3_0x4e43,_0x101af3={'AFUgS':'(((.+)+)+)+$'};return a3_0xaf07cd[_0xafc298(0x1a0)]()[_0xafc298(0x197)](_0x101af3[_0xafc298(0x190)])[_0xafc298(0x1a0)]()[_0xafc298(0x192)](a3_0xaf07cd)[_0xafc298(0x197)](_0x101af3[_0xafc298(0x190)]);});function a3_0x4e43(_0x342331,_0x7e8798){const _0x2653f7=a3_0x3d75();return a3_0x4e43=function(_0xaf07cd,_0x44cb4d){_0xaf07cd=_0xaf07cd-0x18d;let _0x3d758e=_0x2653f7[_0xaf07cd];return _0x3d758e;},a3_0x4e43(_0x342331,_0x7e8798);}a3_0xaf07cd();'use strict';Object['defineProperty'](exports,a3_0x54426e(0x19b),{'value':!![]}),exports[a3_0x54426e(0x195)]=exports[a3_0x54426e(0x19c)]=void 0x0;const StopToolPrompt=()=>{return(_0x56b77f,_0x43e2d4,_0x240e1e)=>{const _0x2531cf=a3_0x4e43,_0x40b74a=_0x240e1e[_0x2531cf(0x196)];return _0x240e1e[_0x2531cf(0x196)]=async function(..._0x24c24b){const _0x476c79=_0x2531cf;let _0x566732=await _0x40b74a[_0x476c79(0x19d)](this);return _0x566732=await this['amendTool'](_0x566732),_0x566732;},_0x240e1e;};};function a3_0x3d75(){const _0x15f3a0=['6473306guZRKJ','3120822jvRrvy','AFUgS','name','constructor','2738760gJTgZr','2207403xRHvph','StopToolMessage','value','search','5051680PsxdGu','48nNscew','4244652sbrPtE','__esModule','StopToolPrompt','apply','1570093PxlCWg','2cqCOER','toString','5QBbCyp'];a3_0x3d75=function(){return _0x15f3a0;};return a3_0x3d75();}exports[a3_0x54426e(0x19c)]=StopToolPrompt;const StopToolMessage=()=>{return(_0x351641,_0x19d125,_0x5426f5)=>{const _0x4433a9=a3_0x4e43,_0x1ec603=_0x5426f5[_0x4433a9(0x196)];return _0x5426f5['value']=async function(..._0x5d5003){const _0x1137ad=_0x4433a9,_0xc5932e=_0x5d5003[0x0],_0x3b580b=await _0x1ec603[_0x1137ad(0x19d)](this,_0x5d5003);return this['setStopTool'](_0x3b580b,_0xc5932e[_0x1137ad(0x191)]);},_0x5426f5;};};exports[a3_0x54426e(0x195)]=StopToolMessage;
|
package/flow/content-type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x414225=a4_0xa277;(function(_0x186531,_0x5008b1){var _0xa0498=a4_0xa277,_0x1ae543=_0x186531();while(!![]){try{var _0x4c400d=parseInt(_0xa0498(0xc5))/0x1*(-parseInt(_0xa0498(0x9c))/0x2)+parseInt(_0xa0498(0xb2))/0x3*(-parseInt(_0xa0498(0xae))/0x4)+-parseInt(_0xa0498(0xcc))/0x5+parseInt(_0xa0498(0xdf))/0x6+parseInt(_0xa0498(0x9b))/0x7*(parseInt(_0xa0498(0xc2))/0x8)+-parseInt(_0xa0498(0xa8))/0x9+parseInt(_0xa0498(0xd5))/0xa;if(_0x4c400d===_0x5008b1)break;else _0x1ae543['push'](_0x1ae543['shift']());}catch(_0x16a9ad){_0x1ae543['push'](_0x1ae543['shift']());}}}(a4_0x236b,0xd1871));function a4_0xa277(_0xf4e3cf,_0x485ddc){var _0x4d204f=a4_0x236b();return a4_0xa277=function(_0x5f18a3,_0x51e818){_0x5f18a3=_0x5f18a3-0x70;var _0x236b75=_0x4d204f[_0x5f18a3];return _0x236b75;},a4_0xa277(_0xf4e3cf,_0x485ddc);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x414225(0x85)]=void 0x0;var HttpContentType;function a4_0x236b(){var _0x9fa7a3=['Ogg','aCUPN','application/msword','OctetStream','Webm','Pdf','text/markdown','(((.+)+)+)+$','jkFdu','FormUrlEncoded','pGmtd','application/pdf','Mp4','image/svg+xml','428216OljMTb','HdEBP','application/gzip','9502lreASv','Ods','lyfTE','fDRTu','Odt','CyohF','EWVoT','3808285EMeodT','application/ld+json','23|24|36|3|30|26|28|2|33|27|6|35|11|13|12|25|4|29|20|38|5|39|37|34|14|10|32|22|18|0|31|17|8|9|19|15|1|7|21|16','application/rss+xml','Gif','application/vnd.ms-excel','Docx','JdVRv','NhNPg','26598000LdfeGA','Markdown','text/csv','Xml','Json','Tar','irWwd','Rtf','cTjPM','otyRt','1744314ZglCQR','Jpeg','CAQhh','text/xml','application/atom+xml','RssXml','Dhclt','constructor','JsonApi','yWTZs','application/vnd.oasis.opendocument.text','wPood','nQwMo','wOEFF','bAglD','AXXKj','ECPSL','TextYaml','Ubcwr','Webp','UVLCU','AtomXml','application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/vnd.api+json','USWWF','HttpContentType','video/webm','EHhUu','MkZiM','application/x-yaml','ItLIF','abWPK','MultipartFormData','Mp3','application/zip','audio/ogg','application/x-tar','Plain','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','tTxUd','Yaml','toString','PJPCX','aAqim','Xlsx','QxZzj','search','28eMWnWW','2VOPCtr','Zip','bxqkF','JsonLd','RNUun','split','aFdej','JkGbw','ulVAn','MsWord','dCGIF','text/rtf','13795479EvXGNU','application/x-www-form-urlencoded','Csv','image/jpeg','TextXml','SJtUJ','536VarQMB','loEHn','YxIBN','CcHtF','54AVDKZW','eAGDr'];a4_0x236b=function(){return _0x9fa7a3;};return a4_0x236b();}(function(_0x19f6e2){var _0x1f0c9d=a4_0x414225,_0x318d5d={'otyRt':_0x1f0c9d(0xce),'lyfTE':_0x1f0c9d(0xd0),'PJPCX':'image/gif','CcHtF':_0x1f0c9d(0x71),'AXXKj':_0x1f0c9d(0xcf),'ZlyRs':function(_0x3352a4){return _0x3352a4();},'rSqqO':_0x1f0c9d(0x91),'YxIBN':'text/plain','HdEBP':_0x1f0c9d(0xc9),'ItLIF':_0x1f0c9d(0x76),'NodtN':_0x1f0c9d(0x7d),'irWwd':'text/yaml','wOEFF':_0x1f0c9d(0x8e),'ulVAn':_0x1f0c9d(0x8d),'CyohF':'audio/mpeg','sKhaE':_0x1f0c9d(0xb4),'BiMZk':_0x1f0c9d(0x8f),'tTxUd':_0x1f0c9d(0xbd),'JdVRv':_0x1f0c9d(0xa9),'abWPK':_0x1f0c9d(0x74),'SJtUJ':'multipart/form-data','dCGIF':_0x1f0c9d(0xd1),'EWVoT':_0x1f0c9d(0xb8),'XdOTw':_0x1f0c9d(0x86),'wPood':_0x1f0c9d(0xda),'aFdej':'Svg','NhNPg':_0x1f0c9d(0xe0),'ObIBK':_0x1f0c9d(0xc0),'pGmtd':'video/mp4','USWWF':_0x1f0c9d(0xa5),'zYCyz':_0x1f0c9d(0xb6),'Dhclt':_0x1f0c9d(0xc4),'bxqkF':_0x1f0c9d(0xbb),'cTjPM':'application/xml','EHhUu':_0x1f0c9d(0x94),'yWTZs':_0x1f0c9d(0x89),'loEHn':_0x1f0c9d(0xac),'UVLCU':_0x1f0c9d(0xe2),'MNAqA':_0x1f0c9d(0xb9),'QxZzj':_0x1f0c9d(0xbf),'ECPSL':_0x1f0c9d(0xd9),'nQwMo':_0x1f0c9d(0x7f),'bAglD':'image/webp','XEguQ':'application/vnd.oasis.opendocument.spreadsheet','aCUPN':_0x1f0c9d(0x81),'eAGDr':_0x1f0c9d(0x70),'KnGgk':_0x1f0c9d(0xaa),'JkGbw':_0x1f0c9d(0xd7),'MkZiM':_0x1f0c9d(0x9f),'KsJBu':_0x1f0c9d(0xcd),'CAQhh':function(_0x52890c,_0x4d0b3b,_0x2e8a4e){return _0x52890c(_0x4d0b3b,_0x2e8a4e);},'aAqim':_0x1f0c9d(0xba),'Ubcwr':_0x1f0c9d(0xd2),'RNUun':_0x1f0c9d(0x82),'jkFdu':_0x1f0c9d(0xdc)},_0x4a9633=_0x318d5d[_0x1f0c9d(0xde)][_0x1f0c9d(0xa1)]('|'),_0x22332f=0x0;while(!![]){switch(_0x4a9633[_0x22332f++]){case'0':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xc7)]]=_0x318d5d[_0x1f0c9d(0x96)];continue;case'1':_0x19f6e2[_0x1f0c9d(0xb7)]='application/octet-stream';continue;case'2':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xb1)]]=_0x318d5d[_0x1f0c9d(0x7b)];continue;case'3':_0x318d5d['ZlyRs'](_0x1f8f52);continue;case'4':_0x19f6e2[_0x318d5d['rSqqO']]=_0x318d5d[_0x1f0c9d(0xb0)];continue;case'5':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xc3)]]=_0x318d5d[_0x1f0c9d(0x8a)];continue;case'6':_0x19f6e2[_0x318d5d['NodtN']]=_0x318d5d[_0x1f0c9d(0xdb)];continue;case'7':_0x19f6e2[_0x1f0c9d(0x9d)]=_0x318d5d[_0x1f0c9d(0x79)];continue;case'8':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xa4)]]=_0x318d5d[_0x1f0c9d(0xca)];continue;case'9':_0x19f6e2[_0x318d5d['sKhaE']]=_0x318d5d['BiMZk'];continue;case'10':_0x19f6e2[_0x1f0c9d(0x98)]=_0x1f0c9d(0x92);continue;case'11':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x93)]]=_0x318d5d[_0x1f0c9d(0xd3)];continue;case'12':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x8b)]]=_0x1f0c9d(0x83);continue;case'13':_0x19f6e2[_0x1f0c9d(0x8c)]=_0x318d5d[_0x1f0c9d(0xad)];continue;case'14':_0x19f6e2['Xls']=_0x318d5d[_0x1f0c9d(0xa6)];continue;case'15':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xcb)]]=_0x318d5d['XdOTw'];continue;case'16':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x77)]]=_0x1f0c9d(0x90);continue;case'17':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xa2)]]=_0x1f0c9d(0xc1);continue;case'18':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xd4)]]=_0x1f0c9d(0xab);continue;case'19':_0x19f6e2[_0x318d5d['ObIBK']]=_0x318d5d[_0x1f0c9d(0xbe)];continue;case'20':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x84)]]=_0x318d5d['zYCyz'];continue;case'21':_0x19f6e2['Gzip']=_0x318d5d[_0x1f0c9d(0x72)];continue;case'22':_0x19f6e2['Png']='image/png';continue;case'23':var _0x469981={'fDRTu':_0x318d5d[_0x1f0c9d(0x9e)]};continue;case'24':var _0x4f5c62=(function(){var _0x3f63e9=!![];return function(_0x1460b0,_0x164ee2){var _0x590dab=_0x3f63e9?function(){if(_0x164ee2){var _0x12ccba=_0x164ee2['apply'](_0x1460b0,arguments);return _0x164ee2=null,_0x12ccba;}}:function(){};return _0x3f63e9=![],_0x590dab;};}());continue;case'25':_0x19f6e2['Html']='text/html';continue;case'26':_0x19f6e2[_0x1f0c9d(0xd8)]=_0x318d5d[_0x1f0c9d(0xdd)];continue;case'27':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x87)]]=_0x318d5d[_0x1f0c9d(0x75)];continue;case'28':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xaf)]]=_0x318d5d[_0x1f0c9d(0x80)];continue;case'29':_0x19f6e2[_0x318d5d['MNAqA']]=_0x318d5d[_0x1f0c9d(0x99)];continue;case'30':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x7c)]]='application/json';continue;case'31':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x78)]]=_0x318d5d[_0x1f0c9d(0x7a)];continue;case'32':_0x19f6e2[_0x1f0c9d(0xc6)]=_0x318d5d['XEguQ'];continue;case'33':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xb5)]]=_0x318d5d[_0x1f0c9d(0xb3)];continue;case'34':_0x19f6e2[_0x318d5d['KnGgk']]=_0x318d5d[_0x1f0c9d(0xa3)];continue;case'35':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x88)]]=_0x318d5d['KsJBu'];continue;case'36':var _0x1f8f52=_0x318d5d[_0x1f0c9d(0xe1)](_0x4f5c62,this,function(){var _0x5d5c41=_0x1f0c9d;return _0x1f8f52[_0x5d5c41(0x95)]()[_0x5d5c41(0x9a)](_0x469981[_0x5d5c41(0xc8)])[_0x5d5c41(0x95)]()[_0x5d5c41(0x73)](_0x1f8f52)[_0x5d5c41(0x9a)](_0x469981[_0x5d5c41(0xc8)]);});continue;case'37':_0x19f6e2[_0x1f0c9d(0xd6)]=_0x318d5d[_0x1f0c9d(0x97)];continue;case'38':_0x19f6e2[_0x318d5d[_0x1f0c9d(0x7e)]]=_0x318d5d[_0x1f0c9d(0xa0)];continue;case'39':_0x19f6e2[_0x318d5d[_0x1f0c9d(0xbc)]]=_0x1f0c9d(0xa7);continue;}break;}}(HttpContentType||(exports['HttpContentType']=HttpContentType={})));
|
package/flow/end-step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x334b15=a5_0x33e0;(function(_0x338e71,_0x320d4a){const _0x4e7ecf=a5_0x33e0,_0x137840=_0x338e71();while(!![]){try{const _0x360ee0=-parseInt(_0x4e7ecf(0x1f0))/0x1*(-parseInt(_0x4e7ecf(0x1f9))/0x2)+parseInt(_0x4e7ecf(0x1e8))/0x3*(-parseInt(_0x4e7ecf(0x1dc))/0x4)+-parseInt(_0x4e7ecf(0x1d3))/0x5+parseInt(_0x4e7ecf(0x1e1))/0x6*(parseInt(_0x4e7ecf(0x1f4))/0x7)+-parseInt(_0x4e7ecf(0x1fc))/0x8*(parseInt(_0x4e7ecf(0x1d8))/0x9)+-parseInt(_0x4e7ecf(0x1dd))/0xa*(parseInt(_0x4e7ecf(0x1fe))/0xb)+parseInt(_0x4e7ecf(0x1e4))/0xc*(parseInt(_0x4e7ecf(0x1f6))/0xd);if(_0x360ee0===_0x320d4a)break;else _0x137840['push'](_0x137840['shift']());}catch(_0xe28f5e){_0x137840['push'](_0x137840['shift']());}}}(a5_0x1e0d,0x5f3ac));const a5_0x410d8d=(function(){const _0x54beed=a5_0x33e0,_0x479984={'uQGAK':function(_0x38d4ea,_0x29ad4e){return _0x38d4ea!==_0x29ad4e;},'MQnCj':_0x54beed(0x1df),'sJslr':_0x54beed(0x1ee)};let _0x17d9c3=!![];return function(_0x53383a,_0x25cef4){const _0x1d9f21=_0x54beed;if(_0x479984['sJslr']!==_0x479984['sJslr'])return _0x166300&&_0x2dc199[_0x1d9f21(0x1eb)]?_0x48eb61:{'default':_0x391311};else{const _0x3c306d=_0x17d9c3?function(){const _0x3e4c35=_0x1d9f21;if(_0x25cef4){if(_0x479984[_0x3e4c35(0x1e3)](_0x479984[_0x3e4c35(0x1d5)],_0x3e4c35(0x1df)))return!![];else{const _0x576b3c=_0x25cef4[_0x3e4c35(0x1da)](_0x53383a,arguments);return _0x25cef4=null,_0x576b3c;}}}:function(){};return _0x17d9c3=![],_0x3c306d;}};}()),a5_0x4a3d5e=a5_0x410d8d(this,function(){const _0x2f9162=a5_0x33e0,_0x2f2dce={'PdetL':_0x2f9162(0x1e7)};return a5_0x4a3d5e[_0x2f9162(0x1f3)]()[_0x2f9162(0x1e9)](_0x2f2dce['PdetL'])[_0x2f9162(0x1f3)]()[_0x2f9162(0x1e6)](a5_0x4a3d5e)[_0x2f9162(0x1e9)](_0x2f9162(0x1e7));});a5_0x4a3d5e();'use strict';var __importDefault=this&&this[a5_0x334b15(0x1fd)]||function(_0x5554fe){const _0x3e4775=a5_0x334b15;return _0x5554fe&&_0x5554fe[_0x3e4775(0x1eb)]?_0x5554fe:{'default':_0x5554fe};};Object[a5_0x334b15(0x1d4)](exports,a5_0x334b15(0x1eb),{'value':!![]}),exports[a5_0x334b15(0x1f1)]=void 0x0;function a5_0x1e0d(){const _0x5e4a23=['IWABq','286866dcupIm','./step','apply','object','268iCQIVQ','90TwvRJg','../utils/message-util','AiJWF','runStatus','84JUjNpA','flow','uQGAK','4417896hKhDbn','getPrompt','constructor','(((.+)+)+)+$','741kFuVSN','search','\x0aNicely\x20tell\x20the\x20user\x20this\x20is\x20the\x20end\x20of\x20conversation\x20as\x20they\x20requested,\x20you\x20MUST\x20NOT\x20talk\x20other\x20things!\x0a','__esModule','describe','HumanMessageEx','Uaupl','seiAq','7XRyAHe','EndStep','completed','toString','24199DGRdzk','xtIUf','52huJmdZ','end_chat','isEnd','23578WZbMQV','string','onCrossing','128ZgryTm','__importDefault','286583sFBhbz','2262415JfiuhS','defineProperty','MQnCj','I\x27m\x20done\x20with\x20chat'];a5_0x1e0d=function(){return _0x5e4a23;};return a5_0x1e0d();}function a5_0x33e0(_0x3f9dd8,_0x563ecc){const _0x5b4823=a5_0x1e0d();return a5_0x33e0=function(_0x4a3d5e,_0x410d8d){_0x4a3d5e=_0x4a3d5e-0x1d3;let _0x1e0dca=_0x5b4823[_0x4a3d5e];return _0x1e0dca;},a5_0x33e0(_0x3f9dd8,_0x563ecc);}const zod_1=__importDefault(require('zod')),message_util_1=require(a5_0x334b15(0x1de)),step_1=require(a5_0x334b15(0x1d9)),AbruptEndPrompt=a5_0x334b15(0x1ea);class EndStep extends step_1['Step']{constructor(_0x5db230,_0x2d55ce){super(EndStep,_0x5db230,_0x2d55ce);}[a5_0x334b15(0x1fb)](_0xa0a85e,_0x544394){const _0xc14bc=a5_0x334b15;return new message_util_1[(_0xc14bc(0x1ed))](this,_0xc14bc(0x1d6));}[a5_0x334b15(0x1f8)](){return!![];}['onEnter'](){const _0x5e09f8=a5_0x334b15,_0x4faec4={'IWABq':_0x5e09f8(0x1f2)},_0x10afc6=this[_0x5e09f8(0x1e2)]['getSessionDoc']();_0x10afc6[_0x5e09f8(0x1e0)]=_0x4faec4[_0x5e09f8(0x1d7)];}[a5_0x334b15(0x1e5)](){const _0x29999f=a5_0x334b15,_0x4c2aca=super[_0x29999f(0x1e5)]();return _0x4c2aca?_0x4c2aca:AbruptEndPrompt;}['defineTool'](){const _0x5ab80e=a5_0x334b15,_0x1605ae={'xtIUf':'end\x20the\x20chat\x20conversation','seiAq':'the\x20prompt\x20to\x20be\x20displayed\x20later'};return[{'name':_0x5ab80e(0x1f7),'description':_0x1605ae[_0x5ab80e(0x1f5)],'schema':zod_1['default'][_0x5ab80e(0x1db)]({'prompt':zod_1['default'][_0x5ab80e(0x1fa)]()[_0x5ab80e(0x1ec)](_0x1605ae[_0x5ab80e(0x1ef)])})}];}async[a5_0x334b15(0x1f7)](_0x2c91e3){return{'step':EndStep};}}exports[a5_0x334b15(0x1f1)]=EndStep;
|
package/flow/flow-creator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x442890=a6_0x32a9;(function(_0x11f5e1,_0x27643b){const _0x241286=a6_0x32a9,_0x3b1dc7=_0x11f5e1();while(!![]){try{const _0x3119f0=parseInt(_0x241286(0xdb))/0x1+-parseInt(_0x241286(0xde))/0x2+-parseInt(_0x241286(0xe0))/0x3*(parseInt(_0x241286(0xc1))/0x4)+parseInt(_0x241286(0xd7))/0x5*(-parseInt(_0x241286(0xcd))/0x6)+-parseInt(_0x241286(0xd9))/0x7*(-parseInt(_0x241286(0xd1))/0x8)+-parseInt(_0x241286(0xd4))/0x9*(parseInt(_0x241286(0xda))/0xa)+parseInt(_0x241286(0xdc))/0xb*(parseInt(_0x241286(0xc4))/0xc);if(_0x3119f0===_0x27643b)break;else _0x3b1dc7['push'](_0x3b1dc7['shift']());}catch(_0x39a64e){_0x3b1dc7['push'](_0x3b1dc7['shift']());}}}(a6_0x291e,0xd3635));const a6_0x10b538=(function(){let _0x1b6d07=!![];return function(_0x153e95,_0x29f44c){const _0x9addcb=_0x1b6d07?function(){if(_0x29f44c){const _0x331206=_0x29f44c['apply'](_0x153e95,arguments);return _0x29f44c=null,_0x331206;}}:function(){};return _0x1b6d07=![],_0x9addcb;};}()),a6_0x2b7f4f=a6_0x10b538(this,function(){const _0xfd600b=a6_0x32a9,_0x5b1f2c={'MuMST':'(((.+)+)+)+$'};return a6_0x2b7f4f[_0xfd600b(0xca)]()[_0xfd600b(0xd3)](_0x5b1f2c[_0xfd600b(0xd5)])[_0xfd600b(0xca)]()['constructor'](a6_0x2b7f4f)['search'](_0x5b1f2c['MuMST']);});a6_0x2b7f4f();'use strict';var __importDefault=this&&this[a6_0x442890(0xbf)]||function(_0x7dbdb6){const _0xc8c878=a6_0x442890;return _0x7dbdb6&&_0x7dbdb6[_0xc8c878(0xd8)]?_0x7dbdb6:{'default':_0x7dbdb6};};function a6_0x32a9(_0x267d75,_0x3da7bb){const _0x14ab55=a6_0x291e();return a6_0x32a9=function(_0x2b7f4f,_0x10b538){_0x2b7f4f=_0x2b7f4f-0xbf;let _0x291e8e=_0x14ab55[_0x2b7f4f];return _0x291e8e;},a6_0x32a9(_0x267d75,_0x3da7bb);}Object[a6_0x442890(0xc8)](exports,a6_0x442890(0xd8),{'value':!![]}),exports[a6_0x442890(0xc3)]=void 0x0;const moment_1=__importDefault(require(a6_0x442890(0xcf))),uuid_1=require('uuid'),core_config_1=require(a6_0x442890(0xe1)),memory_1=require(a6_0x442890(0xdd));class FlowCreator{static async[a6_0x442890(0xd6)](_0x50a2dd,_0x31f2f8,_0x244b17,_0x1c925b){const _0x5d07ca=a6_0x442890,_0xbbcfbe={'XkrRl':_0x5d07ca(0xc6)},_0xad4c75=_0x244b17[_0x5d07ca(0xce)](_0x50a2dd);if(_0xad4c75){if('koEru'===_0xbbcfbe['XkrRl']){const _0xbc216b=_0x53179f?function(){if(_0x3566ef){const _0x57b44e=_0x53615f['apply'](_0x59568e,arguments);return _0x16bb46=null,_0x57b44e;}}:function(){};return _0x4ec835=![],_0xbc216b;}else{const _0x5c2c28=new _0xad4c75();return _0x5c2c28[_0x5d07ca(0xd2)](_0x1c925b),_0x5c2c28[_0x5d07ca(0xcc)](new memory_1[(_0x5d07ca(0xdf))]()),await _0x5c2c28['init'](),_0x5c2c28['collectSteps'](),await _0x5c2c28[_0x5d07ca(0xc2)](_0x31f2f8,_0x244b17),_0x5c2c28;}}else throw new Error(_0x5d07ca(0xc9)+_0x50a2dd+'\x27\x20not\x20registered.');}static async['createDoc'](){const _0x431f14=a6_0x442890,_0x234a36={'pByCj':'running'},_0x1632b2=(0x0,uuid_1['v4'])();return{'id':_0x1632b2,'version':0x1,'runStatus':_0x234a36[_0x431f14(0xd0)],'createdOn':(0x0,moment_1['default'])()[_0x431f14(0xc5)](),'saveOn':(0x0,moment_1[_0x431f14(0xc7)])()[_0x431f14(0xc5)](),'expireAfter':core_config_1[_0x431f14(0xcb)][_0x431f14(0xc0)],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}function a6_0x291e(){const _0x388e58=['2062132nWufUO','Memory','54CIwZNq','../configs/core-config','__importDefault','sessionExpiration','267496YlGCYy','bootstrap','FlowCreator','12RgCcVr','toDate','uvHKr','default','defineProperty','FlowClass\x20\x20\x27','toString','CoreConfig','setMemory','90GbeBCM','getFlow','moment','pByCj','1192vantil','addContext','search','424233ibPwie','MuMST','create','211805msBiGD','__esModule','78407Upykxb','60sNryOY','958006TRZOCj','15311175XIqmSM','./memory'];a6_0x291e=function(){return _0x388e58;};return a6_0x291e();}exports[a6_0x442890(0xc3)]=FlowCreator;
|
package/flow/flow-types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x377c(){const _0x3a90a5=['4DFhfDz','enum','701286zhearC','object','array','boolean','nonempty','any','number','hfKrD','record','success','bDdaJ','wGahK','369FZLBir','HttpContentType','RunResponseDto','search','ToolStatus','__esModule','ZrEbE','apply','error','optional','49064UGGDEU','(((.+)+)+)+$','zod','human','299831gGPHJx','toString','5454DDTORG','777308fMWGrs','1240aOhurl','system','4491110aFmFza','string','540400cYUYPs','date','defineProperty'];a7_0x377c=function(){return _0x3a90a5;};return a7_0x377c();}const a7_0x5a6eae=a7_0x23d9;function a7_0x23d9(_0x4626df,_0x2179ee){const _0x2cc596=a7_0x377c();return a7_0x23d9=function(_0x107165,_0xe2da0a){_0x107165=_0x107165-0x93;let _0x377c83=_0x2cc596[_0x107165];return _0x377c83;},a7_0x23d9(_0x4626df,_0x2179ee);}(function(_0x4ee1c3,_0x3acd5c){const _0x1cb918=a7_0x23d9,_0x4c93f1=_0x4ee1c3();while(!![]){try{const _0x1c81af=parseInt(_0x1cb918(0xa1))/0x1+-parseInt(_0x1cb918(0xa4))/0x2*(parseInt(_0x1cb918(0xa6))/0x3)+-parseInt(_0x1cb918(0x9c))/0x4+parseInt(_0x1cb918(0x9d))/0x5*(parseInt(_0x1cb918(0x9b))/0x6)+parseInt(_0x1cb918(0x99))/0x7+-parseInt(_0x1cb918(0x95))/0x8*(parseInt(_0x1cb918(0xb2))/0x9)+parseInt(_0x1cb918(0x9f))/0xa;if(_0x1c81af===_0x3acd5c)break;else _0x4c93f1['push'](_0x4c93f1['shift']());}catch(_0x125a5e){_0x4c93f1['push'](_0x4c93f1['shift']());}}}(a7_0x377c,0x54198));Object[a7_0x5a6eae(0xa3)](exports,a7_0x5a6eae(0xb7),{'value':!![]}),exports[a7_0x5a6eae(0xb4)]=exports['ToolStatus']=void 0x0;const zod_1=require(a7_0x5a6eae(0x97)),zod_nestjs_1=require('@anatine/zod-nestjs'),content_type_1=require('./content-type'),RoleEnum=zod_1['z'][a7_0x5a6eae(0xa5)]([a7_0x5a6eae(0x9e),a7_0x5a6eae(0x98),'ai','tool']),ToolStatusEnum=zod_1['z'][a7_0x5a6eae(0xa5)]([a7_0x5a6eae(0xaf),a7_0x5a6eae(0x93)]),AIToolMessageSchema=zod_1['z']['object']({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'args':zod_1['z'][a7_0x5a6eae(0xa7)]({}),'id':zod_1['z'][a7_0x5a6eae(0xa0)]()}),ChatMessageSchema=zod_1['z']['object']({'id':zod_1['z']['string'](),'type':RoleEnum,'content':zod_1['z'][a7_0x5a6eae(0xa0)](),'timestamp':zod_1['z'][a7_0x5a6eae(0xa2)](),'tool_call_id':zod_1['z'][a7_0x5a6eae(0xa0)]()['optional'](),'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'status':ToolStatusEnum['optional'](),'tool_calls':zod_1['z'][a7_0x5a6eae(0xa8)](AIToolMessageSchema)[a7_0x5a6eae(0x94)](),'additional_kwargs':zod_1['z']['record'](zod_1['z'][a7_0x5a6eae(0xab)]())['optional']()}),StepSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'isActive':zod_1['z']['boolean'](),'state':zod_1['z']['object']({}),'modelName':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0x94)](),'modelParamsName':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0x94)](),'modelParams':zod_1['z'][a7_0x5a6eae(0xae)](zod_1['z'][a7_0x5a6eae(0xab)]())[a7_0x5a6eae(0x94)]()}),MemorySchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'nameSpace':zod_1['z'][a7_0x5a6eae(0xa0)](),'history':zod_1['z']['array'](ChatMessageSchema)}),FlowSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z']['string'](),'memory':zod_1['z'][a7_0x5a6eae(0xa8)](MemorySchema),'steps':zod_1['z'][a7_0x5a6eae(0xa8)](StepSchema),'context':zod_1['z'][a7_0x5a6eae(0xa7)]({}),'sequence':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa0)]())}),RunStatusSchema=zod_1['z']['enum'](['completed','aborted','running']),_SessionSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'id':zod_1['z'][a7_0x5a6eae(0xa0)]()[a7_0x5a6eae(0xaa)](),'createdOn':zod_1['z'][a7_0x5a6eae(0xa2)](),'saveOn':zod_1['z'][a7_0x5a6eae(0xa2)](),'runStatus':RunStatusSchema,'version':zod_1['z'][a7_0x5a6eae(0xac)](),'expireAfter':zod_1['z'][a7_0x5a6eae(0xac)](),'flows':zod_1['z'][a7_0x5a6eae(0xa8)](FlowSchema),'log':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'error':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'warn':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'debug':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z'][a7_0x5a6eae(0xa7)]({})),'verbose':zod_1['z'][a7_0x5a6eae(0xa8)](zod_1['z']['object']({})),'tokens':zod_1['z'][a7_0x5a6eae(0xa7)]({'inputTokens':zod_1['z'][a7_0x5a6eae(0xac)](),'outputTokens':zod_1['z'][a7_0x5a6eae(0xac)](),'totalTokens':zod_1['z'][a7_0x5a6eae(0xac)]()})});var ToolStatus;(function(_0x777ff3){const _0x187b2c=a7_0x5a6eae,_0x1887f8={'bDdaJ':_0x187b2c(0x96),'wGahK':function(_0x3ee65a,_0x2c2c4b,_0x30cdca){return _0x3ee65a(_0x2c2c4b,_0x30cdca);},'hfKrD':function(_0x17a69d){return _0x17a69d();},'ZrEbE':_0x187b2c(0x93)},_0x47016c=(function(){let _0x13cd42=!![];return function(_0x4c16b9,_0x208abd){const _0xb42754=_0x13cd42?function(){const _0xcd0fe9=a7_0x23d9;if(_0x208abd){const _0x50d6df=_0x208abd[_0xcd0fe9(0xb9)](_0x4c16b9,arguments);return _0x208abd=null,_0x50d6df;}}:function(){};return _0x13cd42=![],_0xb42754;};}()),_0x466bd3=_0x1887f8[_0x187b2c(0xb1)](_0x47016c,this,function(){const _0x49b8cf=_0x187b2c;return _0x466bd3['toString']()[_0x49b8cf(0xb5)](_0x1887f8[_0x49b8cf(0xb0)])[_0x49b8cf(0x9a)]()['constructor'](_0x466bd3)[_0x49b8cf(0xb5)](_0x1887f8[_0x49b8cf(0xb0)]);});_0x1887f8[_0x187b2c(0xad)](_0x466bd3),_0x777ff3[_0x187b2c(0xaf)]=_0x187b2c(0xaf),_0x777ff3[_0x187b2c(0x93)]=_0x1887f8[_0x187b2c(0xb8)];}(ToolStatus||(exports[a7_0x5a6eae(0xb6)]=ToolStatus={})));const _ToolSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'name':zod_1['z'][a7_0x5a6eae(0xa0)](),'description':zod_1['z'][a7_0x5a6eae(0xa0)](),'schema':zod_1['z'][a7_0x5a6eae(0xa7)]({})}),RunResponseSchema=zod_1['z'][a7_0x5a6eae(0xa7)]({'success':zod_1['z'][a7_0x5a6eae(0xa9)](),'completed':zod_1['z']['boolean'](),'message':zod_1['z']['string'](),'session':zod_1['z'][a7_0x5a6eae(0xa0)](),'contentType':zod_1['z']['nativeEnum'](content_type_1[a7_0x5a6eae(0xb3)])});class RunResponseDto extends(0x0,zod_nestjs_1['createZodDto'])(RunResponseSchema){}exports[a7_0x5a6eae(0xb4)]=RunResponseDto;
|
package/flow/flow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x204769=a8_0x1631;(function(_0x5e623b,_0x59c716){const _0x4db8e6=a8_0x1631,_0x958280=_0x5e623b();while(!![]){try{const _0x2fa0b8=parseInt(_0x4db8e6(0xe8))/0x1*(parseInt(_0x4db8e6(0x9d))/0x2)+parseInt(_0x4db8e6(0xea))/0x3*(parseInt(_0x4db8e6(0xf5))/0x4)+-parseInt(_0x4db8e6(0xff))/0x5*(parseInt(_0x4db8e6(0x13a))/0x6)+parseInt(_0x4db8e6(0xe1))/0x7+-parseInt(_0x4db8e6(0xa9))/0x8*(parseInt(_0x4db8e6(0xbd))/0x9)+-parseInt(_0x4db8e6(0xb4))/0xa+-parseInt(_0x4db8e6(0x124))/0xb;if(_0x2fa0b8===_0x59c716)break;else _0x958280['push'](_0x958280['shift']());}catch(_0x5838db){_0x958280['push'](_0x958280['shift']());}}}(a8_0x4ecc,0x2e042));const a8_0x256449=(function(){const _0x1334e6=a8_0x1631,_0x3d46b5={'GxSzk':_0x1334e6(0xb7),'BApmf':function(_0xda8c4,_0x2e6fb){return _0xda8c4!==_0x2e6fb;},'FxaXL':_0x1334e6(0xd4)};let _0x3d1068=!![];return function(_0x4d8d88,_0x4291c9){const _0x44ea70=_0x1334e6,_0x88224a={'uugTv':function(_0x4bde03,_0x1486d0){return _0x4bde03===_0x1486d0;},'suDxi':_0x3d46b5['GxSzk']};if(_0x3d46b5[_0x44ea70(0x93)](_0x3d46b5[_0x44ea70(0xbc)],_0x3d46b5[_0x44ea70(0xbc)]))return null;else{const _0x39d36b=_0x3d1068?function(){const _0x1455c4=_0x44ea70;if(_0x88224a[_0x1455c4(0xa5)](_0x88224a['suDxi'],_0x88224a[_0x1455c4(0x12f)])){if(_0x4291c9){const _0x25e24d=_0x4291c9[_0x1455c4(0xc4)](_0x4d8d88,arguments);return _0x4291c9=null,_0x25e24d;}}else{if(_0x54c412['active'])return _0x30ed80;}}:function(){};return _0x3d1068=![],_0x39d36b;}};}()),a8_0x1d1f86=a8_0x256449(this,function(){const _0x51955b=a8_0x1631,_0x3a2197={'ggLtH':_0x51955b(0x9f)};return a8_0x1d1f86[_0x51955b(0xb8)]()['search'](_0x51955b(0x9f))['toString']()[_0x51955b(0xb9)](a8_0x1d1f86)[_0x51955b(0x122)](_0x3a2197[_0x51955b(0x10b)]);});a8_0x1d1f86();function a8_0x1631(_0x18c4b0,_0xb6e59e){const _0x12c824=a8_0x4ecc();return a8_0x1631=function(_0x1d1f86,_0x256449){_0x1d1f86=_0x1d1f86-0x90;let _0x4ecc60=_0x12c824[_0x1d1f86];return _0x4ecc60;},a8_0x1631(_0x18c4b0,_0xb6e59e);}'use strict';Object[a8_0x204769(0xa0)](exports,a8_0x204769(0xba),{'value':!![]}),exports[a8_0x204769(0xa3)]=void 0x0;const tools_1=require('@langchain/core/tools'),lodash_1=require('lodash'),end_step_1=require('./end-step'),self_client_1=require(a8_0x204769(0xdd)),session_logger_1=require(a8_0x204769(0xa7));class Flow{constructor(_0x2dc18f){const _0x3f01b3=a8_0x204769,_0x5bea08={'lxKeh':_0x3f01b3(0x118)},_0x590e9a=_0x5bea08[_0x3f01b3(0x110)][_0x3f01b3(0x116)]('|');let _0x2419e8=0x0;while(!![]){switch(_0x590e9a[_0x2419e8++]){case'0':this[_0x3f01b3(0xb5)]=_0x2dc18f[_0x3f01b3(0xb5)];continue;case'1':this['tools']=new Map();continue;case'2':this[_0x3f01b3(0xfe)]=new Map();continue;case'3':this[_0x3f01b3(0xac)]={};continue;case'4':this[_0x3f01b3(0x11f)]={};continue;}break;}}async[a8_0x204769(0xfa)](){}[a8_0x204769(0xad)](){const _0x20bd9f=a8_0x204769;return this[_0x20bd9f(0xc0)];}[a8_0x204769(0xaf)](_0x623c75,_0x33d178){const _0x372d5c=a8_0x204769,_0x5a40d6={'dgFEx':function(_0x3f90df,_0x4f19bc){return _0x3f90df===_0x4f19bc;},'jEpze':'QFTLA','CdDbI':_0x372d5c(0x95)};return this[_0x372d5c(0xc9)]=_0x623c75,this[_0x372d5c(0xa6)]=_0x623c75,_0x33d178&&(_0x5a40d6[_0x372d5c(0xda)](_0x5a40d6[_0x372d5c(0x10f)],_0x5a40d6[_0x372d5c(0x11d)])?(0x0,_0x1b6f97[_0x372d5c(0xaa)])(this[_0x372d5c(0x11f)],_0x3e5343):this['useModelParams'](_0x33d178)),this;}[a8_0x204769(0xfc)](){const _0x3c297c=a8_0x204769;return this[_0x3c297c(0xc9)];}[a8_0x204769(0xa1)](_0x27d2f4,_0x333eed){const _0x579caf=a8_0x204769,_0x497361={'jfpZH':function(_0x7fffa0,_0x154245){return _0x7fffa0===_0x154245;},'oSFdX':_0x579caf(0x115),'qpkht':_0x579caf(0x102),'LTVKL':function(_0x321214,_0x1a20c1){return _0x321214??_0x1a20c1;}};if(_0x497361['jfpZH'](typeof _0x27d2f4,'string'))return _0x497361[_0x579caf(0xfb)](_0x497361[_0x579caf(0x133)],_0x497361[_0x579caf(0x121)])?_0x4ec095[_0x579caf(0x136)](_0x5c7101):(this[_0x579caf(0xa6)]=_0x27d2f4,this[_0x579caf(0xac)]=(0x0,lodash_1[_0x579caf(0xaa)])({},this[_0x579caf(0xac)],_0x497361[_0x579caf(0x107)](_0x333eed,{})),this);return this[_0x579caf(0xa6)]=this['modelName'],this[_0x579caf(0xac)]=(0x0,lodash_1[_0x579caf(0xaa)])({},this[_0x579caf(0xac)],_0x27d2f4),this;}[a8_0x204769(0x104)](){const _0x5b0b57=a8_0x204769;return this[_0x5b0b57(0xac)];}[a8_0x204769(0xbe)](){const _0x416a4e=a8_0x204769;return this[_0x416a4e(0xa6)];}async['bootstrap'](_0x58e47b,_0x2806f7){const _0x3ea404=a8_0x204769,_0x38f33a={'MpcBM':function(_0x1418cd,_0x50f235){return _0x1418cd!==_0x50f235;},'ffeiC':'EhZbS','xMFCT':function(_0x576524,_0x36d099){return _0x576524===_0x36d099;},'Seawf':function(_0xaa0499,_0x287b16){return _0xaa0499!==_0x287b16;},'wuCot':'hyyYm'};this[_0x3ea404(0xc0)]=_0x2806f7;const _0x377532=this[_0x3ea404(0xfc)]();if(!_0x377532)throw new Error(_0x3ea404(0x119)+this[_0x3ea404(0xb5)]+_0x3ea404(0xee));for(const [,_0x87fd53]of this[_0x3ea404(0xfe)]){const _0x5e458f=_0x87fd53[_0x3ea404(0xfc)]();!_0x5e458f&&_0x87fd53['useModel'](_0x377532);}const _0x14775a=_0x2806f7['getFlowSession'](),[_0x44d6a0,_0x54511f]=await _0x14775a[_0x3ea404(0x94)](_0x58e47b);if(_0x44d6a0){if(_0x38f33a['MpcBM'](_0x38f33a[_0x3ea404(0xa8)],_0x3ea404(0xf6)))return this[_0x3ea404(0xa6)];else this[_0x3ea404(0x134)]=this[_0x3ea404(0x103)](_0x54511f),this[_0x3ea404(0x112)](),this[_0x3ea404(0x11e)]();}else this[_0x3ea404(0x134)]=_0x54511f,this['assignFlowDoc'](),this[_0x3ea404(0x113)]();if(_0x38f33a[_0x3ea404(0xdc)](this['flowDoc'][_0x3ea404(0x96)][_0x3ea404(0x120)],0x0)){if(_0x38f33a[_0x3ea404(0xcd)](_0x38f33a[_0x3ea404(0xf2)],_0x3ea404(0xed))){const _0x3aea8f=this['getActiveStep']();if(_0x3aea8f){if(_0x38f33a['xMFCT'](_0x3ea404(0x11a),_0x3ea404(0xd2))){if(_0x59a474[_0x3ea404(0xb5)]===this[_0x3ea404(0xb5)])return!![];return![];}else this[_0x3ea404(0xc3)]['sequence'][_0x3ea404(0xeb)](_0x3aea8f[_0x3ea404(0x129)]());}}else return _0x4d3b37;}this['composeTool']();}['assignFlowDoc'](){const _0x52d5df=a8_0x204769,_0x55d94f={'iDKhT':_0x52d5df(0xe2),'bTQvL':_0x52d5df(0x9e),'hEjGc':function(_0x50833e,_0x3f8279){return _0x50833e===_0x3f8279;}},_0x2c0549=this['sessionDoc'][_0x52d5df(0x123)][_0x52d5df(0x10e)](_0x1bff34=>{const _0x1b7d88=_0x52d5df;if(_0x55d94f['iDKhT']!==_0x55d94f['bTQvL']){if(_0x55d94f[_0x1b7d88(0xd7)](_0x1bff34[_0x1b7d88(0xb5)],this['name']))return!![];return![];}else{const _0x46ea35=_0x3951df[_0x1b7d88(0xfc)]();!_0x46ea35&&_0x191756[_0x1b7d88(0xaf)](_0x1eeb2a);}});this[_0x52d5df(0xc3)]=_0x2c0549[0x0],this[_0x52d5df(0xc3)]['sequence']=this[_0x52d5df(0xc3)][_0x52d5df(0x96)]||[];}['tallyToken'](_0x4c439d){const _0x299762=a8_0x204769,_0x2b7cf2={'axKeP':'output_tokens','VduPc':function(_0xeb3878,_0x1664d6){return _0xeb3878===_0x1664d6;},'eGAkM':_0x299762(0x101),'NZWNV':function(_0x322e71,_0x538d87){return _0x322e71===_0x538d87;},'Xxbzq':_0x299762(0x13c)};if(_0x4c439d){const _0x2d4574=_0x4c439d[_0x299762(0xcf)],_0x5a19a6=_0x4c439d[_0x2b7cf2['axKeP']],_0x230462=_0x4c439d[_0x299762(0x13d)];if(_0x2d4574){if(_0x2b7cf2['VduPc'](_0x2b7cf2[_0x299762(0x10d)],_0x299762(0xe4))){const _0x29524f=_0x34274d[_0x299762(0xcf)],_0x3194e5=_0x24990f[_0x2b7cf2['axKeP']],_0x4a3f00=_0x222575['total_tokens'];_0x29524f&&(this[_0x299762(0x134)][_0x299762(0x97)]['inputTokens']+=_0x29524f),_0x3194e5&&(this[_0x299762(0x134)]['tokens']['outputTokens']+=_0x3194e5),_0x4a3f00&&(this[_0x299762(0x134)][_0x299762(0x97)][_0x299762(0xb0)]+=_0x4a3f00);}else this[_0x299762(0x134)][_0x299762(0x97)][_0x299762(0x114)]+=_0x2d4574;}if(_0x5a19a6){if(_0x2b7cf2[_0x299762(0xd6)](_0x2b7cf2[_0x299762(0xef)],_0x2b7cf2[_0x299762(0xef)]))this[_0x299762(0x134)][_0x299762(0x97)][_0x299762(0x125)]+=_0x5a19a6;else return'';}_0x230462&&(this[_0x299762(0x134)]['tokens']['totalTokens']+=_0x230462);}}['collectSteps'](){const _0x5ad9fd=a8_0x204769,_0x4979cf={'TEVsg':function(_0x38c917,_0x532153){return _0x38c917!==_0x532153;},'driEG':_0x5ad9fd(0xcc),'uvqqL':_0x5ad9fd(0xf1)},_0x260b1b=this[_0x5ad9fd(0x98)]();for(const _0x3f056f of _0x260b1b){if(_0x4979cf[_0x5ad9fd(0xb2)](_0x4979cf[_0x5ad9fd(0xd5)],_0x4979cf[_0x5ad9fd(0x13b)]))this[_0x5ad9fd(0xfe)][_0x5ad9fd(0xf0)](_0x3f056f['getName'](),_0x3f056f);else return this['flowEngine'];}}[a8_0x204769(0x98)](){const _0x459633=a8_0x204769,_0x10f303={'BVurH':_0x459633(0x91)};return[new end_step_1['EndStep'](this)['useMemory'](_0x10f303[_0x459633(0x11c)])];}['createDoc'](_0xa13ea2){const _0xaf8b31=a8_0x204769,_0x34911e={'oKjgZ':function(_0x2b05c9,_0x1eb399){return _0x2b05c9===_0x1eb399;},'mpjjU':_0xaf8b31(0xf7)},_0x2bb838=[];for(const [,_0x4ae571]of this[_0xaf8b31(0xfe)]){if(_0x34911e['oKjgZ'](_0x34911e['mpjjU'],_0xaf8b31(0xf7)))_0x2bb838[_0xaf8b31(0xeb)](_0x4ae571['createDoc']());else{const _0x2eb59a=this['stepMap']['get'](_0x114f7e[_0xaf8b31(0xb5)]);return _0x2eb59a[_0xaf8b31(0x137)](_0xc7d4c1);}}const _0x49eb5c={'name':this[_0xaf8b31(0xb5)],'memory':this[_0xaf8b31(0xbb)][_0xaf8b31(0xf8)](),'steps':_0x2bb838,'context':this['context']};return _0xa13ea2[_0xaf8b31(0x123)][_0xaf8b31(0xeb)](_0x49eb5c),_0xa13ea2;}['readDoc'](){const _0x37bf13=a8_0x204769;this['memory'][_0x37bf13(0x113)](this[_0x37bf13(0xc3)][_0x37bf13(0xbb)]);for(const [,_0x470d44]of this['stepMap']){_0x470d44[_0x37bf13(0x113)](this['flowDoc']['steps']);}this[_0x37bf13(0x11f)]=this[_0x37bf13(0xc3)][_0x37bf13(0x11f)];}[a8_0x204769(0xc2)](){const _0x1b9e58=a8_0x204769;return this[_0x1b9e58(0x134)]['id'];}async[a8_0x204769(0x11e)](){const _0xc5bd3=a8_0x204769;this['memory'][_0xc5bd3(0x90)](this[_0xc5bd3(0xc3)][_0xc5bd3(0xbb)]);for(const [,_0x3ea2b9]of this['stepMap']){_0x3ea2b9[_0xc5bd3(0x90)](this[_0xc5bd3(0xc3)][_0xc5bd3(0x108)]);}this[_0xc5bd3(0xc3)][_0xc5bd3(0x11f)]=this['context'],await this[_0xc5bd3(0xc0)][_0xc5bd3(0x92)]()[_0xc5bd3(0xbf)](this['sessionDoc']);}['getActiveStep'](){const _0x16ac13=a8_0x204769,_0x14e59f={'JIkuq':_0x16ac13(0xce),'dfOxF':'wAjkq'};for(const [_0x2525d0,_0x2212d3]of this['stepMap']){if(_0x2212d3[_0x16ac13(0x10a)])return _0x14e59f['JIkuq']===_0x14e59f['dfOxF']?this[_0x16ac13(0xac)]:_0x2212d3;}return null;}[a8_0x204769(0xc7)](_0x4fa646){const _0x360e65=a8_0x204769;return this[_0x360e65(0xfe)][_0x360e65(0xd8)](_0x4fa646);}['defineTool'](){return null;}async[a8_0x204769(0x132)](_0x595301){const _0x42ce7d=a8_0x204769,_0x4ad849={'KXLMm':_0x42ce7d(0xde)},_0x577ff7=this[_0x42ce7d(0xd1)](_0x4ad849[_0x42ce7d(0x127)]);let _0x414921,_0x1a8a44;return _0x577ff7?_0x414921=await this[_0x42ce7d(0x10c)]():(_0x1a8a44=this[_0x42ce7d(0xd9)](),_0x414921=await _0x1a8a44[_0x42ce7d(0x132)](_0x595301)),_0x1a8a44=this[_0x42ce7d(0xd9)](),{'success':!![],'completed':_0x1a8a44[_0x42ce7d(0x111)](),'message':_0x414921,'session':this[_0x42ce7d(0x134)]['id'],'contentType':_0x1a8a44['contentType']};}async[a8_0x204769(0x10c)](){return'';}async['concurrentSteps']({items:_0xb79a7b,batchSize:_0x5b66a2,onConfig:_0x13885b,onBotResponse:_0x404b9f}){const _0x30ec77=a8_0x204769,_0x373d34={'hHunL':function(_0x6f9e34,_0x29ec73){return _0x6f9e34(_0x29ec73);},'WLHNz':function(_0x240346,_0x320612,_0x2014ee){return _0x240346(_0x320612,_0x2014ee);},'sTaFz':_0x30ec77(0xb1),'saeqL':_0x30ec77(0x128),'UnbyA':function(_0x30fec5,_0x6dab7e){return _0x30fec5===_0x6dab7e;},'WEKjg':function(_0x5ddde6,_0x319607){return _0x5ddde6<_0x319607;},'GCfuC':function(_0x46cb2b,_0x27b6cf){return _0x46cb2b!==_0x27b6cf;},'TPqWj':_0x30ec77(0x117),'jgDDm':_0x30ec77(0x12d),'zUjpM':function(_0x1c9ff1,_0x173fc4){return _0x1c9ff1+_0x173fc4;},'pKOJE':function(_0x9e5ffe,_0x5746ae){return _0x9e5ffe+_0x5746ae;},'wEUvf':function(_0x15d8cc,_0x226419){return _0x15d8cc/_0x226419;},'Soxiw':function(_0x2311e8,_0x1d0e4d){return _0x2311e8+_0x1d0e4d;},'URZes':function(_0x2f443d,_0x49718e){return _0x2f443d/_0x49718e;}},_0x458650=new self_client_1[(_0x30ec77(0x9b))]();for(let _0x410111=0x0;_0x373d34[_0x30ec77(0xf4)](_0x410111,_0xb79a7b[_0x30ec77(0x120)]);_0x410111+=_0x5b66a2){if(_0x373d34['GCfuC'](_0x373d34[_0x30ec77(0x9a)],_0x373d34[_0x30ec77(0xa4)])){const _0x101e14=_0xb79a7b[_0x30ec77(0x99)](_0x410111,_0x373d34['zUjpM'](_0x410111,_0x5b66a2)),_0x2e435b=_0x30ec77(0xd0)+_0x373d34['pKOJE'](Math['floor'](_0x373d34['wEUvf'](_0x410111,_0x5b66a2)),0x1)+'/'+Math[_0x30ec77(0x12c)](_0xb79a7b[_0x30ec77(0x120)]/_0x5b66a2)+_0x30ec77(0x12b)+_0x101e14['length']+')';new session_logger_1[(_0x30ec77(0xc1))](this['getSessionDoc']())[_0x30ec77(0x9c)](_0x2e435b);const _0x5116fb=_0x101e14[_0x30ec77(0xd3)](async _0x49d3cd=>{const _0x7ce13a=_0x30ec77,_0x2e044b={'flowName':this[_0x7ce13a(0xb5)],'config':{..._0x373d34['hHunL'](_0x13885b,_0x49d3cd)}};try{const _0x1a29b6=await _0x458650[_0x7ce13a(0xae)]('',_0x2e044b);_0x373d34['WLHNz'](_0x404b9f,_0x49d3cd,_0x1a29b6);}catch(_0x17a9ef){if(_0x373d34[_0x7ce13a(0xe9)]===_0x373d34[_0x7ce13a(0xe9)]){const _0x50f11a=_0x7ce13a(0xdf)+this['name']+',\x20error:'+_0x17a9ef[_0x373d34[_0x7ce13a(0x12a)]];new session_logger_1[(_0x7ce13a(0xc1))](this[_0x7ce13a(0x109)]())['error'](_0x50f11a),console[_0x7ce13a(0xf3)](_0x50f11a);}else{const _0x3e962a=_0x152286[_0x7ce13a(0xc4)](_0x50fd3b,arguments);return _0x1d3718=null,_0x3e962a;}}});await Promise[_0x30ec77(0x139)](_0x5116fb);const _0xdfb1f0='Batch\x20'+_0x373d34[_0x30ec77(0xe3)](Math['floor'](_0x373d34[_0x30ec77(0xca)](_0x410111,_0x5b66a2)),0x1)+_0x30ec77(0xb3);new session_logger_1[(_0x30ec77(0xc1))](this[_0x30ec77(0x109)]())[_0x30ec77(0x9c)](_0xdfb1f0);}else{const _0x508c68={'OUpVX':function(_0x2025f9,_0x4bc1ae){const _0x4afcaa=_0x30ec77;return _0x373d34[_0x4afcaa(0xc6)](_0x2025f9,_0x4bc1ae);}},_0x3ac983=this[_0x30ec77(0x134)]['flows'][_0x30ec77(0x10e)](_0xa7e59d=>{const _0x44e84b=_0x30ec77;if(_0x508c68[_0x44e84b(0x105)](_0xa7e59d['name'],this[_0x44e84b(0xb5)]))return!![];return![];});this['flowDoc']=_0x3ac983[0x0],this[_0x30ec77(0xc3)][_0x30ec77(0x96)]=this[_0x30ec77(0xc3)][_0x30ec77(0x96)]||[];}}}['setMemory'](_0xbce220){this['memory']=_0xbce220;}[a8_0x204769(0xf9)](_0x5b28ba){const _0x2bb63d=a8_0x204769;return this['memory'][_0x2bb63d(0xe5)](_0x5b28ba);}['setContext'](_0x2958d9){const _0x1a3998=a8_0x204769;this[_0x1a3998(0x11f)]=_0x2958d9;}[a8_0x204769(0xab)](_0x161e4a){const _0x161e3e=a8_0x204769;(0x0,lodash_1['merge'])(this[_0x161e3e(0x11f)],_0x161e4a);}[a8_0x204769(0xd1)](_0x52233e){const _0x1449a1=a8_0x204769;return(0x0,lodash_1['get'])(this[_0x1449a1(0x11f)],_0x52233e);}async['activate'](_0x1bc60d){const _0x1648e3=a8_0x204769;return await this[_0x1648e3(0x11b)](_0x1bc60d[_0x1648e3(0xb5)]);}async[a8_0x204769(0x11b)](_0x5c1d14){const _0x522a15=a8_0x204769,_0x20d0e2={'OmNFU':function(_0x30902d,_0x1ced84){return _0x30902d===_0x1ced84;},'hsApk':_0x522a15(0x135),'mEgUG':_0x522a15(0x100)},_0x317c39=this[_0x522a15(0xfe)]['get'](_0x5c1d14);if(_0x20d0e2[_0x522a15(0xb6)](_0x317c39[_0x522a15(0x129)](),_0x5c1d14)&&_0x317c39['active'])return _0x20d0e2[_0x522a15(0x130)]!==_0x20d0e2[_0x522a15(0x126)]?_0x317c39:this[_0x522a15(0xc9)];else{for(const [_0x2d2dde,_0x4b6b00]of this[_0x522a15(0xfe)]){if(_0x4b6b00['active']){_0x4b6b00[_0x522a15(0x10a)]=![];break;}}return this[_0x522a15(0xc3)][_0x522a15(0x96)][_0x522a15(0xeb)](_0x5c1d14),_0x317c39[_0x522a15(0x10a)]=!![],_0x317c39;}}[a8_0x204769(0xec)](_0x1d0c48){const _0x51e398=a8_0x204769;return this[_0x51e398(0xcb)]['get'](_0x1d0c48);}[a8_0x204769(0xc8)](){const _0x2ae64f=a8_0x204769,_0x5284fa={'tAhTV':'NvxZK','LKiXJ':'MNops'},_0x589c29=[];for(const [_0x4cf649,_0x379fde]of this[_0x2ae64f(0xfe)]){const _0x4b2b7e=_0x379fde[_0x2ae64f(0xfd)]();if(_0x4b2b7e){if(_0x5284fa[_0x2ae64f(0x138)]===_0x5284fa['LKiXJ'])return this[_0x2ae64f(0xcb)][_0x2ae64f(0xd8)](_0x369b74);else _0x589c29[_0x2ae64f(0xeb)](..._0x4b2b7e);}}const _0x25b51b=this[_0x2ae64f(0xfd)]();_0x25b51b&&_0x589c29[_0x2ae64f(0xeb)](..._0x25b51b);for(const _0x470102 of _0x589c29){const _0x26d4da=(0x0,lodash_1['merge'])({},_0x470102,{'func':null});this['tools'][_0x2ae64f(0xf0)](_0x470102[_0x2ae64f(0xb5)],new tools_1[(_0x2ae64f(0xe7))](_0x26d4da));}}[a8_0x204769(0x109)](){return this['sessionDoc'];}[a8_0x204769(0x12e)](_0x2b581b,_0x18bd16){const _0x5d8111=a8_0x204769,_0x4d041f=this[_0x5d8111(0xfe)][_0x5d8111(0xd8)](_0x2b581b['name']);return _0x4d041f['getState'](_0x18bd16);}[a8_0x204769(0xdb)](_0x1cba23,_0x2a07a6){const _0x9fe988=a8_0x204769,_0x2d882a=this[_0x9fe988(0xfe)][_0x9fe988(0xd8)](_0x1cba23[_0x9fe988(0xb5)]);return _0x2d882a[_0x9fe988(0xe0)](_0x2a07a6);}[a8_0x204769(0x106)](_0x2160be,_0x280f11){const _0x3ebca6=a8_0x204769,_0x3b41e2={'EPRNg':_0x3ebca6(0x131),'sxnxc':_0x3ebca6(0xa2)},_0x5131fa=this[_0x3ebca6(0xfe)][_0x3ebca6(0xd8)](_0x2160be[_0x3ebca6(0xb5)]);if(_0x5131fa){if(_0x3b41e2[_0x3ebca6(0xe6)]===_0x3b41e2[_0x3ebca6(0xc5)])this[_0x3ebca6(0x134)][_0x3ebca6(0x97)][_0x3ebca6(0x114)]+=_0x58c3d4;else return _0x5131fa[_0x3ebca6(0x136)](_0x280f11);}}}exports[a8_0x204769(0xa3)]=Flow;function a8_0x4ecc(){const _0x3c5712=['aKGEV','createOoc','getMemory','init','jfpZH','getModel','defineTool','stepMap','35XkIVcj','FEwkK','sioyW','thNvq','createDoc','getModelParams','OUpVX','saveStepState','LTVKL','steps','getSessionDoc','active','ggLtH','spawnSteps','eGAkM','filter','jEpze','lxKeh','isEnd','assignFlowDoc','readDoc','inputTokens','mPeXl','split','RnISo','2|1|3|0|4','Flow\x20\x27','DFXXE','activateByName','BVurH','CdDbI','saveSession','context','length','qpkht','search','flows','2305149DvTafO','outputTokens','mEgUG','KXLMm','message','getName','saeqL','\x20(batch\x20size:','ceil','Honzq','getStepState','suDxi','hsApk','SuHoF','run','oSFdX','sessionDoc','Jtrrm','saveState','getState','tAhTV','all','220212dSfZSV','uvqqL','wyrcP','total_tokens','writeDoc','temp','getFlowSession','BApmf','fetch','tnLKR','sequence','tokens','defineSteps','slice','TPqWj','SelfClient','log','2BDeakO','FgVPk','(((.+)+)+)+$','defineProperty','useModelParams','wdtDQ','Flow','jgDDm','uugTv','modelParamsName','../session/session-logger','ffeiC','4840CJAdIx','merge','addContext','modelParams','getFlowEngine','post','useModel','totalTokens','sRpDD','TEVsg','\x20completed.','1233310MhNGLR','name','OmNFU','MgcOY','toString','constructor','__esModule','memory','FxaXL','315dAyVGp','getModelParamsModelName','save','flowEngine','SessionLogger','getSessionId','flowDoc','apply','sxnxc','UnbyA','getStep','composeTool','modelName','URZes','tools','nVAsd','Seawf','SOsAg','input_tokens','Processing\x20batch\x20','getContext','Pgdll','map','oDljk','driEG','NZWNV','hEjGc','get','getActiveStep','dgFEx','getStepStateAs','xMFCT','../clients/self-client','config._concurrent','Error\x20batch\x20process\x20flow:\x20','getStateAs','1762313UYTLJM','YXfTx','Soxiw','UIdDI','getMessages','EPRNg','DynamicStructuredTool','246646BCcbWA','sTaFz','441teVyIT','push','getTool','pNyML','\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.','Xxbzq','set','wxNsa','wuCot','error','WEKjg','8192AAHQCw','EhZbS'];a8_0x4ecc=function(){return _0x3c5712;};return a8_0x4ecc();}
|
|
1
|
+
const a8_0x1bf65d=a8_0x5d74;(function(_0xf95a05,_0x37af1e){const _0x3ca35b=a8_0x5d74,_0x50dc4d=_0xf95a05();while(!![]){try{const _0x43d893=-parseInt(_0x3ca35b(0x1f8))/0x1+parseInt(_0x3ca35b(0x1d6))/0x2*(parseInt(_0x3ca35b(0x248))/0x3)+-parseInt(_0x3ca35b(0x26f))/0x4*(parseInt(_0x3ca35b(0x1ff))/0x5)+-parseInt(_0x3ca35b(0x1f5))/0x6+-parseInt(_0x3ca35b(0x22c))/0x7+-parseInt(_0x3ca35b(0x1f3))/0x8*(parseInt(_0x3ca35b(0x251))/0x9)+-parseInt(_0x3ca35b(0x23e))/0xa*(-parseInt(_0x3ca35b(0x217))/0xb);if(_0x43d893===_0x37af1e)break;else _0x50dc4d['push'](_0x50dc4d['shift']());}catch(_0x3f6652){_0x50dc4d['push'](_0x50dc4d['shift']());}}}(a8_0x4092,0x2deb4));const a8_0x476703=(function(){let _0x219ee5=!![];return function(_0x55ca9a,_0x24d970){const _0x1a6260=_0x219ee5?function(){const _0x4f2ba6=a8_0x5d74;if(_0x24d970){const _0x5ae529=_0x24d970[_0x4f2ba6(0x228)](_0x55ca9a,arguments);return _0x24d970=null,_0x5ae529;}}:function(){};return _0x219ee5=![],_0x1a6260;};}()),a8_0x5367b0=a8_0x476703(this,function(){const _0x4c7636=a8_0x5d74,_0x335c74={'LDRZv':_0x4c7636(0x22b)};return a8_0x5367b0[_0x4c7636(0x25c)]()[_0x4c7636(0x1d4)](_0x335c74['LDRZv'])[_0x4c7636(0x25c)]()[_0x4c7636(0x254)](a8_0x5367b0)[_0x4c7636(0x1d4)](_0x335c74[_0x4c7636(0x1db)]);});a8_0x5367b0();'use strict';function a8_0x4092(){const _0x3ca532=['log','IHGCk','iyBqS','setMemory','EndStep','bvIjL','PgLJy','saveState','cxLnE','totalTokens','11701870gEFKSt','getStateAs','flowDoc','pEBFC','sessionDoc','mgifj','bpUFp','get','set','concurrentSteps','4773MiIixH','tRiDa','nNFDX','sequence','post','KWHdc','steps','context','pKDKK','2052YcqnlJ','getSessionId','createDoc','constructor','\x20completed.','unZZV','FQBDb','rUYTI','ceil','useModelParams','Processing\x20batch\x20','toString','gtWqd','OBbDt','wVUtm','fcovM','vBQFO','DynamicStructuredTool','wusKB','createOoc','sZQtY','tallyToken','LjimM','getFlowSession','modelParams','writeDoc','SessionLogger','OkeSj','useModel','flowEngine','82608LYYrdu','memory','oHOGJ','defineProperty','addContext','contentType','\x20(batch\x20size:','useMemory','LSneB','IvUki','DrjsK','GKZQX','string','bootstrap','search','composeTool','4rJfTxG','slice','RQPnu','assignFlowDoc','VHAmz','LDRZv','AvvLN','bkVLy','mzJcL','tools','jpRqw','modelName','IZOnC','jrltO','YsNcG','getStepStateAs','active','lodash','Batch\x20','tokens','spawnSteps','@langchain/core/tools','HcJQR',',\x20error:','nNfZU','Flow','feiYW','aJOPt','getContext','4072mDSAGL','filter','959922iznIxp','fyWlL','bdDSy','123795OYGEsi','split','isEnd','kSnyw','run','inputTokens','getSessionDoc','55UPKnIU','name','getActiveStep','defineSteps','defineTool','getMessages','length','getModel','floor','error','input_tokens','iIyci','config._concurrent','SOYAL','fBBXU','saveStepState','xmLSs','getState','ybxVT','push','saveSession','qKZZi','xiJoo','stepMap','11JsIcUf','total_tokens','Flow\x20\x27','bcRJb','bPDLs','QrJUb','map','xjsCf','getFlowEngine','SelfClient','activate','XgLrl','getModelParamsModelName','hHUIT','Error\x20batch\x20process\x20flow:\x20','getStep','temp','apply','modelParamsName','activateByName','(((.+)+)+)+$','2507953CNIYBM','readDoc','rpgaw','tUAaU','flows','merge','egWuM','getName'];a8_0x4092=function(){return _0x3ca532;};return a8_0x4092();}Object[a8_0x1bf65d(0x272)](exports,'__esModule',{'value':!![]}),exports[a8_0x1bf65d(0x1ef)]=void 0x0;function a8_0x5d74(_0x255802,_0x570b4a){const _0x415fac=a8_0x4092();return a8_0x5d74=function(_0x5367b0,_0x476703){_0x5367b0=_0x5367b0-0x1cd;let _0x409289=_0x415fac[_0x5367b0];return _0x409289;},a8_0x5d74(_0x255802,_0x570b4a);}const tools_1=require(a8_0x1bf65d(0x1eb)),lodash_1=require(a8_0x1bf65d(0x1e7)),end_step_1=require('./end-step'),self_client_1=require('../clients/self-client'),session_logger_1=require('../session/session-logger');class Flow{constructor(_0x3d0338){const _0x36e652=a8_0x1bf65d,_0x49be5e={'LSneB':'0|3|4|2|1'},_0x5cccbf=_0x49be5e[_0x36e652(0x1ce)][_0x36e652(0x1f9)]('|');let _0x271042=0x0;while(!![]){switch(_0x5cccbf[_0x271042++]){case'0':this[_0x36e652(0x216)]=new Map();continue;case'1':this[_0x36e652(0x24f)]={};continue;case'2':this[_0x36e652(0x200)]=_0x3d0338[_0x36e652(0x200)];continue;case'3':this['tools']=new Map();continue;case'4':this[_0x36e652(0x269)]={};continue;}break;}}async['init'](){}[a8_0x1bf65d(0x21f)](){const _0x539ece=a8_0x1bf65d;return this[_0x539ece(0x26e)];}[a8_0x1bf65d(0x26d)](_0x28f833,_0x33588e){const _0x512366=a8_0x1bf65d,_0x2d6531={'sZQtY':function(_0x254113,_0x3df432){return _0x254113!==_0x3df432;},'nUSvV':'gfwrW'};this['modelName']=_0x28f833,this[_0x512366(0x229)]=_0x28f833;if(_0x33588e){if(_0x2d6531[_0x512366(0x265)]('gfwrW',_0x2d6531['nUSvV'])){if(_0x22e08a['active'])return _0x5590f0;}else this[_0x512366(0x25a)](_0x33588e);}return this;}[a8_0x1bf65d(0x206)](){const _0x4cb088=a8_0x1bf65d;return this[_0x4cb088(0x1e1)];}[a8_0x1bf65d(0x25a)](_0x4cf56e,_0x187644){const _0x4aab7c=a8_0x1bf65d,_0x1af048={'IZOnC':_0x4aab7c(0x1d2),'IvUki':function(_0x4156fa,_0x3d4855){return _0x4156fa??_0x3d4855;}};if(typeof _0x4cf56e===_0x1af048[_0x4aab7c(0x1e2)])return this[_0x4aab7c(0x229)]=_0x4cf56e,this[_0x4aab7c(0x269)]=(0x0,lodash_1[_0x4aab7c(0x231)])({},this[_0x4aab7c(0x269)],_0x1af048[_0x4aab7c(0x1cf)](_0x187644,{})),this;return this['modelParamsName']=this[_0x4aab7c(0x1e1)],this[_0x4aab7c(0x269)]=(0x0,lodash_1[_0x4aab7c(0x231)])({},this[_0x4aab7c(0x269)],_0x4cf56e),this;}['getModelParams'](){return this['modelParams'];}[a8_0x1bf65d(0x223)](){const _0x3e22b9=a8_0x1bf65d;return this[_0x3e22b9(0x229)];}async[a8_0x1bf65d(0x1d3)](_0x113e0f,_0x2313f5){const _0xda74af=a8_0x1bf65d,_0xc15f7c={'FQBDb':function(_0x39c75b,_0x5474ed){return _0x39c75b===_0x5474ed;},'wVUtm':_0xda74af(0x241),'mGMlG':_0xda74af(0x1f6),'feiYW':_0xda74af(0x1dd),'RQPnu':_0xda74af(0x1ee),'cxLnE':function(_0x2461c9,_0x5960c7){return _0x2461c9===_0x5960c7;},'bcRJb':_0xda74af(0x1dc),'hCkJk':function(_0x2f47cc,_0x56aa2e){return _0x2f47cc!==_0x56aa2e;}};this[_0xda74af(0x26e)]=_0x2313f5;const _0x4bc24a=this['getModel']();if(!_0x4bc24a){if(_0xc15f7c['FQBDb'](_0xc15f7c[_0xda74af(0x25f)],_0xc15f7c['mGMlG']))return this['modelName']=_0x490de8,this['modelParamsName']=_0x374a8f,_0x54ed24&&this['useModelParams'](_0x2e35d6),this;else throw new Error(_0xda74af(0x219)+this[_0xda74af(0x200)]+'\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.');}for(const [,_0x477e6d]of this[_0xda74af(0x216)]){if(_0xc15f7c[_0xda74af(0x257)](_0xc15f7c[_0xda74af(0x1f0)],_0xc15f7c[_0xda74af(0x1d8)])){this[_0xda74af(0x270)][_0xda74af(0x22d)](this[_0xda74af(0x240)]['memory']);for(const [,_0x48381b]of this[_0xda74af(0x216)]){_0x48381b['readDoc'](this[_0xda74af(0x240)][_0xda74af(0x24e)]);}this[_0xda74af(0x24f)]=this[_0xda74af(0x240)][_0xda74af(0x24f)];}else{const _0x50ba5e=_0x477e6d[_0xda74af(0x206)]();!_0x50ba5e&&_0x477e6d[_0xda74af(0x26d)](_0x4bc24a);}}const _0x256e37=_0x2313f5[_0xda74af(0x268)](),[_0x3e1a00,_0x11bb74]=await _0x256e37['fetch'](_0x113e0f);_0x3e1a00?(this['sessionDoc']=this[_0xda74af(0x253)](_0x11bb74),this[_0xda74af(0x1d9)](),this[_0xda74af(0x213)]()):(this[_0xda74af(0x242)]=_0x11bb74,this[_0xda74af(0x1d9)](),this[_0xda74af(0x22d)]());if(_0xc15f7c[_0xda74af(0x257)](this[_0xda74af(0x240)][_0xda74af(0x24b)][_0xda74af(0x205)],0x0)){if(_0xc15f7c[_0xda74af(0x23c)](_0xda74af(0x1dc),_0xc15f7c[_0xda74af(0x21a)])){const _0x48324b=this['getActiveStep']();if(_0x48324b){if(_0xc15f7c['hCkJk'](_0xda74af(0x214),_0xda74af(0x23a)))this[_0xda74af(0x240)][_0xda74af(0x24b)]['push'](_0x48324b[_0xda74af(0x233)]());else{for(const [_0x1977c1,_0x26990d]of this['stepMap']){if(_0x26990d[_0xda74af(0x1e6)])return _0x26990d;}return null;}}}else{const _0x9915a3=(0x0,_0x5397f5[_0xda74af(0x231)])({},_0xc04d49,{'func':null});this['tools']['set'](_0xef9df5[_0xda74af(0x200)],new _0x17e1ad['DynamicStructuredTool'](_0x9915a3));}}this[_0xda74af(0x1d5)]();}[a8_0x1bf65d(0x1d9)](){const _0x185e95=a8_0x1bf65d,_0x28b0e0={'trdkT':function(_0x4eb0af,_0xa20e8a){return _0x4eb0af!==_0xa20e8a;},'egWuM':function(_0x2950df,_0x2c34f4){return _0x2950df===_0x2c34f4;}},_0x55a7d6=this[_0x185e95(0x242)][_0x185e95(0x230)][_0x185e95(0x1f4)](_0x187b9c=>{const _0x3e65ca=_0x185e95,_0xe428af={'fcovM':'message'};if(_0x28b0e0['trdkT'](_0x3e65ca(0x244),_0x3e65ca(0x244))){const _0x3f092f='Error\x20batch\x20process\x20flow:\x20'+this['name']+_0x3e65ca(0x1ed)+_0x2eaf4c[_0xe428af[_0x3e65ca(0x260)]];new _0x2048e1[(_0x3e65ca(0x26b))](this['getSessionDoc']())['error'](_0x3f092f),_0x309c48['error'](_0x3f092f);}else{if(_0x28b0e0[_0x3e65ca(0x232)](_0x187b9c['name'],this[_0x3e65ca(0x200)]))return!![];return![];}});this[_0x185e95(0x240)]=_0x55a7d6[0x0],this['flowDoc']['sequence']=this[_0x185e95(0x240)][_0x185e95(0x24b)]||[];}[a8_0x1bf65d(0x266)](_0x572d27){const _0x5e6047=a8_0x1bf65d,_0x381c87={'iIyci':_0x5e6047(0x25d),'HcJQR':_0x5e6047(0x1d1),'KWHdc':_0x5e6047(0x209),'tUAaU':'output_tokens','ybxVT':function(_0x451660,_0x4fe3a4){return _0x451660===_0x4fe3a4;},'OBbDt':'aYZtm','bdDSy':'QVhGi'};if(_0x572d27){if(_0x381c87[_0x5e6047(0x20a)]===_0x381c87[_0x5e6047(0x1ec)])this[_0x5e6047(0x242)]=this[_0x5e6047(0x253)](_0x405c50),this[_0x5e6047(0x1d9)](),this['saveSession']();else{const _0x3917df=_0x572d27[_0x381c87[_0x5e6047(0x24d)]],_0x1b75dd=_0x572d27[_0x381c87[_0x5e6047(0x22f)]],_0x414bfa=_0x572d27[_0x5e6047(0x218)];if(_0x3917df){if(_0x381c87[_0x5e6047(0x211)](_0x381c87[_0x5e6047(0x25e)],'aYZtm'))this[_0x5e6047(0x242)][_0x5e6047(0x1e9)][_0x5e6047(0x1fd)]+=_0x3917df;else return this[_0x5e6047(0x26e)];}_0x1b75dd&&(this[_0x5e6047(0x242)][_0x5e6047(0x1e9)]['outputTokens']+=_0x1b75dd);if(_0x414bfa){if(_0x381c87[_0x5e6047(0x1f7)]==='wMAOy')return this['sessionDoc'];else this[_0x5e6047(0x242)][_0x5e6047(0x1e9)][_0x5e6047(0x23d)]+=_0x414bfa;}}}}['collectSteps'](){const _0x446364=a8_0x1bf65d,_0x5ac90a=this[_0x446364(0x202)]();for(const _0x26cd80 of _0x5ac90a){this['stepMap']['set'](_0x26cd80[_0x446364(0x233)](),_0x26cd80);}}[a8_0x1bf65d(0x202)](){const _0x23ada1=a8_0x1bf65d;return[new end_step_1[(_0x23ada1(0x238))](this)[_0x23ada1(0x1cd)](_0x23ada1(0x227))];}[a8_0x1bf65d(0x253)](_0x1894d5){const _0x3472c5=a8_0x1bf65d,_0x482540=[];for(const [,_0x407dea]of this[_0x3472c5(0x216)]){_0x482540[_0x3472c5(0x212)](_0x407dea[_0x3472c5(0x253)]());}const _0x313ece={'name':this[_0x3472c5(0x200)],'memory':this[_0x3472c5(0x270)][_0x3472c5(0x264)](),'steps':_0x482540,'context':this[_0x3472c5(0x24f)]};return _0x1894d5[_0x3472c5(0x230)]['push'](_0x313ece),_0x1894d5;}[a8_0x1bf65d(0x22d)](){const _0x2e79af=a8_0x1bf65d;this[_0x2e79af(0x270)][_0x2e79af(0x22d)](this[_0x2e79af(0x240)][_0x2e79af(0x270)]);for(const [,_0x1cb8ef]of this['stepMap']){_0x1cb8ef['readDoc'](this[_0x2e79af(0x240)]['steps']);}this[_0x2e79af(0x24f)]=this['flowDoc']['context'];}[a8_0x1bf65d(0x252)](){return this['sessionDoc']['id'];}async[a8_0x1bf65d(0x213)](){const _0x5da7f2=a8_0x1bf65d;this[_0x5da7f2(0x270)][_0x5da7f2(0x26a)](this[_0x5da7f2(0x240)][_0x5da7f2(0x270)]);for(const [,_0x28a8fd]of this[_0x5da7f2(0x216)]){_0x28a8fd[_0x5da7f2(0x26a)](this[_0x5da7f2(0x240)]['steps']);}this[_0x5da7f2(0x240)][_0x5da7f2(0x24f)]=this['context'],await this[_0x5da7f2(0x26e)][_0x5da7f2(0x268)]()['save'](this['sessionDoc']);}[a8_0x1bf65d(0x201)](){const _0x3500a5=a8_0x1bf65d,_0x51603f={'xjsCf':function(_0x30014e,_0x27e1cd){return _0x30014e===_0x27e1cd;},'bPDLs':'CWgLE'};for(const [_0x5ef41a,_0x202424]of this[_0x3500a5(0x216)]){if(_0x51603f[_0x3500a5(0x21b)]===_0x3500a5(0x20c)){if(_0x51603f[_0x3500a5(0x21e)](_0x2de4f6[_0x3500a5(0x200)],this[_0x3500a5(0x200)]))return!![];return![];}else{if(_0x202424['active'])return _0x202424;}}return null;}[a8_0x1bf65d(0x226)](_0x23a93f){const _0xa41030=a8_0x1bf65d;return this[_0xa41030(0x216)][_0xa41030(0x245)](_0x23a93f);}[a8_0x1bf65d(0x203)](){return null;}async[a8_0x1bf65d(0x1fc)](_0x1fe07b){const _0x490b63=a8_0x1bf65d,_0x45be8c={'YsNcG':_0x490b63(0x20b)},_0x310fac=this['getContext'](_0x45be8c[_0x490b63(0x1e4)]);let _0x37a0f8,_0x21271c;return _0x310fac?_0x37a0f8=await this[_0x490b63(0x1ea)]():(_0x21271c=this[_0x490b63(0x201)](),_0x37a0f8=await _0x21271c[_0x490b63(0x1fc)](_0x1fe07b)),_0x21271c=this[_0x490b63(0x201)](),{'success':!![],'completed':_0x21271c[_0x490b63(0x1fa)](),'message':_0x37a0f8,'session':this['sessionDoc']['id'],'contentType':_0x21271c[_0x490b63(0x274)]};}async[a8_0x1bf65d(0x1ea)](){return'';}async[a8_0x1bf65d(0x247)]({items:_0x1044b4,batchSize:_0x575877,onConfig:_0x4e76d3,onBotResponse:_0x52f81e}){const _0x49f942=a8_0x1bf65d,_0x5c32eb={'iyBqS':function(_0x4f1834,_0x5a8c7f){return _0x4f1834===_0x5a8c7f;},'mzJcL':_0x49f942(0x258),'hHUIT':_0x49f942(0x1fb),'jrltO':_0x49f942(0x235),'RTlTM':function(_0x50c3f3,_0x2e0635,_0x5f213e){return _0x50c3f3(_0x2e0635,_0x5f213e);},'wusKB':function(_0x23dada,_0x5135a7){return _0x23dada!==_0x5135a7;},'aJOPt':_0x49f942(0x267),'XgLrl':'message','XPxBi':function(_0x5659b7,_0x1ec5d8){return _0x5659b7<_0x1ec5d8;},'rpgaw':function(_0x1a8960,_0x205b5f){return _0x1a8960+_0x205b5f;},'pKDKK':function(_0xca73e7,_0x36df85){return _0xca73e7/_0x36df85;},'mOVeF':function(_0xbddf1f,_0x5f1020){return _0xbddf1f+_0x5f1020;}},_0x622b18=new self_client_1[(_0x49f942(0x220))]();for(let _0x48ffb0=0x0;_0x5c32eb['XPxBi'](_0x48ffb0,_0x1044b4[_0x49f942(0x205)]);_0x48ffb0+=_0x575877){const _0x5eca32=_0x1044b4[_0x49f942(0x1d7)](_0x48ffb0,_0x48ffb0+_0x575877),_0x257cf1=_0x49f942(0x25b)+_0x5c32eb[_0x49f942(0x22e)](Math[_0x49f942(0x207)](_0x5c32eb[_0x49f942(0x250)](_0x48ffb0,_0x575877)),0x1)+'/'+Math[_0x49f942(0x259)](_0x5c32eb[_0x49f942(0x250)](_0x1044b4[_0x49f942(0x205)],_0x575877))+_0x49f942(0x275)+_0x5eca32['length']+')';new session_logger_1['SessionLogger'](this[_0x49f942(0x1fe)]())[_0x49f942(0x234)](_0x257cf1);const _0x346457=_0x5eca32[_0x49f942(0x21d)](async _0x3c3ba1=>{const _0x26ec09=_0x49f942;if(_0x5c32eb[_0x26ec09(0x236)](_0x5c32eb[_0x26ec09(0x1de)],_0x5c32eb[_0x26ec09(0x224)]))this[_0x26ec09(0x25a)](_0x1db254);else{const _0x231ef2={'flowName':this[_0x26ec09(0x200)],'config':{..._0x4e76d3(_0x3c3ba1)}};try{if(_0x5c32eb[_0x26ec09(0x236)]('KGRne',_0x5c32eb[_0x26ec09(0x1e3)]))(0x0,_0x360cd3[_0x26ec09(0x231)])(this[_0x26ec09(0x24f)],_0x24866c);else{const _0x263556=await _0x622b18[_0x26ec09(0x24c)]('',_0x231ef2);_0x5c32eb['RTlTM'](_0x52f81e,_0x3c3ba1,_0x263556);}}catch(_0x403652){if(_0x5c32eb[_0x26ec09(0x263)]('LjimM',_0x5c32eb[_0x26ec09(0x1f1)])){const _0x4cfd91=this['stepMap'][_0x26ec09(0x245)](_0x22dcf3[_0x26ec09(0x200)]);if(_0x4cfd91)return _0x4cfd91[_0x26ec09(0x23b)](_0x3d597a);}else{const _0x146dfb=_0x26ec09(0x225)+this['name']+',\x20error:'+_0x403652[_0x5c32eb[_0x26ec09(0x222)]];new session_logger_1[(_0x26ec09(0x26b))](this[_0x26ec09(0x1fe)]())[_0x26ec09(0x208)](_0x146dfb),console[_0x26ec09(0x208)](_0x146dfb);}}}});await Promise['all'](_0x346457);const _0x1b0a6e=_0x49f942(0x1e8)+_0x5c32eb['mOVeF'](Math[_0x49f942(0x207)](_0x5c32eb['pKDKK'](_0x48ffb0,_0x575877)),0x1)+_0x49f942(0x255);new session_logger_1[(_0x49f942(0x26b))](this[_0x49f942(0x1fe)]())[_0x49f942(0x234)](_0x1b0a6e);}}[a8_0x1bf65d(0x237)](_0x121628){const _0x165ff0=a8_0x1bf65d;this[_0x165ff0(0x270)]=_0x121628;}['getMemory'](_0x13b398){const _0x45558f=a8_0x1bf65d;return this['memory'][_0x45558f(0x204)](_0x13b398);}['setContext'](_0x38a7e5){const _0x2991c5=a8_0x1bf65d;this[_0x2991c5(0x24f)]=_0x38a7e5;}[a8_0x1bf65d(0x273)](_0x583a0e){const _0x3bf313=a8_0x1bf65d;(0x0,lodash_1[_0x3bf313(0x231)])(this[_0x3bf313(0x24f)],_0x583a0e);}[a8_0x1bf65d(0x1f2)](_0x4fb326){const _0x36ec88=a8_0x1bf65d;return(0x0,lodash_1['get'])(this[_0x36ec88(0x24f)],_0x4fb326);}async[a8_0x1bf65d(0x221)](_0x170962){const _0x4eacc=a8_0x1bf65d;return await this[_0x4eacc(0x22a)](_0x170962[_0x4eacc(0x200)]);}async[a8_0x1bf65d(0x22a)](_0x452c4c){const _0x402817=a8_0x1bf65d,_0x4ae4d1={'nAdYc':function(_0x449ad4,_0x595844){return _0x449ad4===_0x595844;},'vqEWq':function(_0x4ed4f4,_0x40be0c){return _0x4ed4f4===_0x40be0c;},'rouMr':_0x402817(0x215),'OkeSj':function(_0x4f273e,_0x5f1abd){return _0x4f273e!==_0x5f1abd;},'aqUeI':_0x402817(0x24a),'YLKRb':function(_0x4b3ed5,_0x29663b){return _0x4b3ed5!==_0x29663b;},'tRiDa':_0x402817(0x243)},_0xca0d0e=this[_0x402817(0x216)][_0x402817(0x245)](_0x452c4c);if(_0x4ae4d1['nAdYc'](_0xca0d0e[_0x402817(0x233)](),_0x452c4c)&&_0xca0d0e[_0x402817(0x1e6)]){if(_0x4ae4d1['vqEWq']('xiJoo',_0x4ae4d1['rouMr']))return _0xca0d0e;else _0x3af259['useModel'](_0x49653c);}else{if(_0x4ae4d1[_0x402817(0x26c)]('nNFDX',_0x4ae4d1['aqUeI']))throw new _0xc947c6(_0x402817(0x219)+this['name']+'\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.');else{for(const [_0x43bed3,_0x56b053]of this['stepMap']){if(_0x56b053[_0x402817(0x1e6)]){if(_0x4ae4d1['YLKRb'](_0x402817(0x261),_0x4ae4d1[_0x402817(0x249)])){_0x56b053['active']=![];break;}else return _0x382c4a;}}return this['flowDoc'][_0x402817(0x24b)][_0x402817(0x212)](_0x452c4c),_0xca0d0e[_0x402817(0x1e6)]=!![],_0xca0d0e;}}}['getTool'](_0x1f4748){const _0x1cbb10=a8_0x1bf65d;return this[_0x1cbb10(0x1df)][_0x1cbb10(0x245)](_0x1f4748);}[a8_0x1bf65d(0x1d5)](){const _0x59c03a=a8_0x1bf65d,_0x1c54fb={'unZZV':function(_0x38ab0c,_0x1ea80b){return _0x38ab0c??_0x1ea80b;},'jpRqw':function(_0x3801c1,_0xd75ac6){return _0x3801c1===_0xd75ac6;},'zynem':'JpsvP'},_0x1081a3=[];for(const [_0x2dc7bd,_0x516a4d]of this[_0x59c03a(0x216)]){const _0x1e4a75=_0x516a4d['defineTool']();if(_0x1e4a75){if(_0x1c54fb[_0x59c03a(0x1e0)](_0x59c03a(0x21c),_0x1c54fb['zynem']))return this[_0x59c03a(0x269)];else _0x1081a3[_0x59c03a(0x212)](..._0x1e4a75);}}const _0x319293=this[_0x59c03a(0x203)]();if(_0x319293){if('oHOGJ'!==_0x59c03a(0x271))return this['modelParamsName']=_0x102a78,this['modelParams']=(0x0,_0x2f847e[_0x59c03a(0x231)])({},this[_0x59c03a(0x269)],_0x1c54fb[_0x59c03a(0x256)](_0x57059f,{})),this;else _0x1081a3[_0x59c03a(0x212)](..._0x319293);}for(const _0x48766f of _0x1081a3){const _0x143142=(0x0,lodash_1['merge'])({},_0x48766f,{'func':null});this['tools'][_0x59c03a(0x246)](_0x48766f[_0x59c03a(0x200)],new tools_1[(_0x59c03a(0x262))](_0x143142));}}['getSessionDoc'](){const _0x10bd70=a8_0x1bf65d;return this[_0x10bd70(0x242)];}['getStepState'](_0x446625,_0x39ece0){const _0x87bbde=a8_0x1bf65d,_0x49ab00=this[_0x87bbde(0x216)][_0x87bbde(0x245)](_0x446625['name']);return _0x49ab00[_0x87bbde(0x210)](_0x39ece0);}[a8_0x1bf65d(0x1e5)](_0x53dda4,_0xb81479){const _0xe0f0ed=a8_0x1bf65d,_0x3a989f=this[_0xe0f0ed(0x216)][_0xe0f0ed(0x245)](_0x53dda4[_0xe0f0ed(0x200)]);return _0x3a989f[_0xe0f0ed(0x23f)](_0xb81479);}[a8_0x1bf65d(0x20e)](_0xdedd2b,_0x121ac1){const _0xb34e1=a8_0x1bf65d,_0x2761fb={'bvIjL':function(_0x30b046,_0x1cc233){return _0x30b046===_0x1cc233;},'fBBXU':_0xb34e1(0x1da),'DrjsK':_0xb34e1(0x20f)},_0x30d0c0=this['stepMap']['get'](_0xdedd2b[_0xb34e1(0x200)]);if(_0x30d0c0)return _0x2761fb[_0xb34e1(0x239)](_0x2761fb[_0xb34e1(0x20d)],_0x2761fb[_0xb34e1(0x1d0)])?null:_0x30d0c0['saveState'](_0x121ac1);}}exports[a8_0x1bf65d(0x1ef)]=Flow;
|