@picoflow/core 1.0.13 → 1.0.14
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 +3 -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.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
|
-
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.
|
|
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,5 +31,5 @@ For more detailed documentation, please refer to the [doc](./doc) folder.
|
|
|
31
31
|
|
|
32
32
|
## License
|
|
33
33
|
|
|
34
|
-
License info: [https://www.picoflow.io/picoflow-license]
|
|
34
|
+
License info: [https://www.picoflow.io/picoflow-license](https://www.picoflow.io/picoflow-license)
|
|
35
35
|
Copyright (c) 2026 picoflow.io
|
package/clients/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x172f12=a0_0x63d5;(function(_0x190053,_0x406dcd){const _0xd6f033=a0_0x63d5,_0x5ac253=_0x190053();while(!![]){try{const _0x7ab9d5=-parseInt(_0xd6f033(0x152))/0x1+parseInt(_0xd6f033(0x14c))/0x2*(parseInt(_0xd6f033(0x16d))/0x3)+-parseInt(_0xd6f033(0x15e))/0x4*(parseInt(_0xd6f033(0x15f))/0x5)+parseInt(_0xd6f033(0x14f))/0x6+-parseInt(_0xd6f033(0x16f))/0x7+parseInt(_0xd6f033(0x143))/0x8*(-parseInt(_0xd6f033(0x13d))/0x9)+parseInt(_0xd6f033(0x16b))/0xa*(parseInt(_0xd6f033(0x15c))/0xb);if(_0x7ab9d5===_0x406dcd)break;else _0x5ac253['push'](_0x5ac253['shift']());}catch(_0x55fbe7){_0x5ac253['push'](_0x5ac253['shift']());}}}(a0_0x20b4,0xa279f));function a0_0x63d5(_0x2faf52,_0x20f459){const _0x424deb=a0_0x20b4();return a0_0x63d5=function(_0x29be69,_0x619bd8){_0x29be69=_0x29be69-0x13b;let _0x20b466=_0x424deb[_0x29be69];return _0x20b466;},a0_0x63d5(_0x2faf52,_0x20f459);}const a0_0x619bd8=(function(){const _0x2f6b87=a0_0x63d5,_0x18f4ab={'pDfmY':function(_0x4f2bd8,_0x591df7){return _0x4f2bd8!==_0x591df7;},'eKJfM':_0x2f6b87(0x151)};let _0x447893=!![];return function(_0x1f167d,_0x51630f){const _0x3e4fb4=_0x2f6b87;if(_0x18f4ab['pDfmY'](_0x3e4fb4(0x16c),_0x3e4fb4(0x16c))){if(_0x3d213c){const _0x3fa1ce=_0x466718[_0x3e4fb4(0x164)](_0x47fde5,arguments);return _0xf78db7=null,_0x3fa1ce;}}else{const _0x5cd9fb=_0x447893?function(){const _0x3fc2e6=_0x3e4fb4;if(_0x18f4ab['pDfmY'](_0x18f4ab['eKJfM'],_0x18f4ab[_0x3fc2e6(0x145)]))return this['setup'](this[_0x3fc2e6(0x172)][_0x3fc2e6(0x14a)],_0x641014,_0x3def25,_0x37c3d5);else{if(_0x51630f){const _0xc0c0ca=_0x51630f[_0x3fc2e6(0x164)](_0x1f167d,arguments);return _0x51630f=null,_0xc0c0ca;}}}:function(){};return _0x447893=![],_0x5cd9fb;}};}()),a0_0x29be69=a0_0x619bd8(this,function(){const _0x30771c=a0_0x63d5,_0x33646d={'madIw':_0x30771c(0x147)};return a0_0x29be69[_0x30771c(0x162)]()[_0x30771c(0x16a)](_0x30771c(0x147))[_0x30771c(0x162)]()[_0x30771c(0x168)](a0_0x29be69)[_0x30771c(0x16a)](_0x33646d[_0x30771c(0x144)]);});a0_0x29be69();function a0_0x20b4(){const _0x2a1879=['LAtTY','1361142ncfxgW','gOJmP','2913918SKfbBT','use','DWBZH','client','create','headers','defineProperty','statusCode','validateStatus','get','EbCkb','setup','axios','144HaKTXw','__esModule','tJjWw','delete','setHeader','xbIiK','179576soNQvb','madIw','eKJfM','@nestjs/common','(((.+)+)+)+$','defaults','__importDefault','patch','HttpClient','4ilrQDu','request','BJKtf','6614154BYHcsj','post','wbmCY','1133147vfcNcM','reject','aTgEe','interceptors','rXkQd','HttpStatus','message','NjUYm','common','JPHOl','10906841wxvFLO','data','9188jjmpUm','930bPJjoi','response','UKMzr','toString','put','apply','Hcrle','removeHeader','qHSxB','constructor','default','search','10BJexVn'];a0_0x20b4=function(){return _0x2a1879;};return a0_0x20b4();}'use strict';var __importDefault=this&&this[a0_0x172f12(0x149)]||function(_0x1d0f8b){const _0x1b9fd1=a0_0x172f12;return _0x1d0f8b&&_0x1d0f8b[_0x1b9fd1(0x13e)]?_0x1d0f8b:{'default':_0x1d0f8b};};Object[a0_0x172f12(0x175)](exports,a0_0x172f12(0x13e),{'value':!![]}),exports[a0_0x172f12(0x14b)]=void 0x0;const common_1=require(a0_0x172f12(0x146)),axios_1=__importDefault(require(a0_0x172f12(0x13c)));class HttpClient{constructor(_0x451697,_0x40bba7={},_0x2f05e1){const _0x1083d1=a0_0x172f12,_0x52e544={'EbCkb':function(_0xa57a31,_0x499ec2){return _0xa57a31!==_0x499ec2;},'Hcrle':_0x1083d1(0x171),'HoWKe':_0x1083d1(0x142)};this['client']=axios_1[_0x1083d1(0x169)][_0x1083d1(0x173)]({'baseURL':_0x451697,'timeout':_0x2f05e1,'headers':_0x40bba7}),this['client'][_0x1083d1(0x155)][_0x1083d1(0x14d)][_0x1083d1(0x170)](_0x530aca=>{return _0x530aca;},_0x229fc2=>Promise[_0x1083d1(0x153)](_0x229fc2)),this[_0x1083d1(0x172)][_0x1083d1(0x155)][_0x1083d1(0x160)]['use'](_0xc3465e=>_0xc3465e[_0x1083d1(0x15d)],_0x44fc00=>{const _0x1aeac3=_0x1083d1;if(_0x52e544[_0x1aeac3(0x179)](_0x52e544[_0x1aeac3(0x165)],_0x52e544['HoWKe'])){const _0x534452=_0x44fc00[_0x1aeac3(0x160)]?.['data']?.[_0x1aeac3(0x158)]||_0x44fc00['message'];return Promise[_0x1aeac3(0x153)](new Error(_0x534452));}else{const _0x132b3c=_0x3413e1?function(){const _0x1e7a88=_0x1aeac3;if(_0x427a6){const _0x23d3b4=_0x740012[_0x1e7a88(0x164)](_0x4e1713,arguments);return _0xc1696a=null,_0x23d3b4;}}:function(){};return _0x8f1d01=![],_0x132b3c;}});}async[a0_0x172f12(0x178)](_0x3dfdc7,_0x10f659={},_0x598350){const _0xf3c465=a0_0x172f12,_0x8f65ca={'UKMzr':function(_0x238946,_0x244f41){return _0x238946>=_0x244f41;},'BJKtf':function(_0x54a358,_0x43c163){return _0x54a358<_0x43c163;},'JPHOl':function(_0x50c178,_0x4bca7c){return _0x50c178??_0x4bca7c;}};let _0x13fbc6=common_1[_0xf3c465(0x157)]['OK'];const _0x4c2ac5=_0x8f65ca[_0xf3c465(0x15b)](_0x598350,{});_0x4c2ac5[_0xf3c465(0x177)]=_0xce41b=>{const _0x10b45a=_0xf3c465;return _0x13fbc6=_0xce41b,_0x8f65ca[_0x10b45a(0x161)](_0xce41b,common_1[_0x10b45a(0x157)]['OK'])&&_0x8f65ca[_0x10b45a(0x14e)](_0xce41b,0x12c);};try{const _0xc2c490=await this[_0xf3c465(0x172)][_0xf3c465(0x178)](_0x3dfdc7,{'params':_0x10f659,..._0x4c2ac5});return _0xc2c490;}catch(_0x480ceb){_0x480ceb['statusCode']=_0x13fbc6;throw _0x480ceb;}}async[a0_0x172f12(0x150)](_0x57e783,_0x278caf={},_0x35729d){const _0x318aad=a0_0x172f12;return this[_0x318aad(0x13b)](this[_0x318aad(0x172)][_0x318aad(0x150)],_0x57e783,_0x278caf,_0x35729d);}async[a0_0x172f12(0x163)](_0x456498,_0x19badd={},_0x410d3b){const _0x2e22b6=a0_0x172f12;return this[_0x2e22b6(0x13b)](this['client'][_0x2e22b6(0x163)],_0x456498,_0x19badd,_0x410d3b);}async['delete'](_0x19b8ff,_0x150afa){const _0x281265=a0_0x172f12,_0x539a6e={'XSeWm':function(_0xc70ba8,_0x48f0b6){return _0xc70ba8>=_0x48f0b6;},'tJjWw':function(_0x46668e,_0x39ea9c){return _0x46668e<_0x39ea9c;},'AmufW':function(_0x115161,_0x448b46){return _0x115161??_0x448b46;}};let _0x2de2f7=common_1[_0x281265(0x157)]['OK'];const _0x2f41ac=_0x539a6e['AmufW'](_0x150afa,{});_0x2f41ac[_0x281265(0x177)]=_0x2bcde3=>{const _0x21690f=_0x281265;return _0x2de2f7=_0x2bcde3,_0x539a6e['XSeWm'](_0x2bcde3,common_1[_0x21690f(0x157)]['OK'])&&_0x539a6e[_0x21690f(0x13f)](_0x2bcde3,0x12c);};try{const _0x2640fc=await this[_0x281265(0x172)][_0x281265(0x140)](_0x19b8ff,{..._0x150afa});return _0x2640fc;}catch(_0x2f9f3f){_0x2f9f3f[_0x281265(0x176)]=_0x2de2f7;throw _0x2f9f3f;}}async[a0_0x172f12(0x14a)](_0x448610,_0x5c14cc={},_0x1acaeb){const _0x10333d=a0_0x172f12;return this[_0x10333d(0x13b)](this[_0x10333d(0x172)][_0x10333d(0x14a)],_0x448610,_0x5c14cc,_0x1acaeb);}[a0_0x172f12(0x141)](_0x47c915,_0x21843e){const _0xad3baa=a0_0x172f12;this[_0xad3baa(0x172)]['defaults'][_0xad3baa(0x174)][_0xad3baa(0x15a)][_0x47c915]=_0x21843e;}[a0_0x172f12(0x166)](_0x14e9f2){const _0x4d7b1b=a0_0x172f12;delete this[_0x4d7b1b(0x172)][_0x4d7b1b(0x148)]['headers'][_0x4d7b1b(0x15a)][_0x14e9f2];}async['setup'](_0x589d49,_0x46a33d,_0x518df4={},_0x58a25a){const _0x20fc9f=a0_0x172f12,_0x13ea7d={'gOJmP':function(_0x14ab78,_0x4275d1){return _0x14ab78>=_0x4275d1;},'NjUYm':function(_0x356d55,_0x269d63){return _0x356d55<_0x269d63;},'qHSxB':function(_0x1f1339,_0x57d506){return _0x1f1339??_0x57d506;},'rXkQd':function(_0x4c97fc,_0x80fb33,_0x1e7edb,_0x445e7d){return _0x4c97fc(_0x80fb33,_0x1e7edb,_0x445e7d);},'aTgEe':'KImpV'};let _0x24135b=common_1[_0x20fc9f(0x157)]['OK'];const _0x208d69=_0x13ea7d[_0x20fc9f(0x167)](_0x58a25a,{});_0x208d69[_0x20fc9f(0x177)]=_0x1a4007=>{const _0xa9e449=_0x20fc9f;return _0x24135b=_0x1a4007,_0x13ea7d[_0xa9e449(0x16e)](_0x1a4007,common_1[_0xa9e449(0x157)]['OK'])&&_0x13ea7d[_0xa9e449(0x159)](_0x1a4007,0x12c);};try{const _0x426b41=await _0x13ea7d[_0x20fc9f(0x156)](_0x589d49,_0x46a33d,_0x518df4,{..._0x208d69});return _0x426b41;}catch(_0x1f1a0c){if(_0x13ea7d[_0x20fc9f(0x154)]!==_0x13ea7d[_0x20fc9f(0x154)]){_0x1c8efe['statusCode']=_0x239a0d;throw _0x272cc7;}else{_0x1f1a0c[_0x20fc9f(0x176)]=_0x24135b;throw _0x1f1a0c;}}}}exports[a0_0x172f12(0x14b)]=HttpClient;
|
package/clients/self-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x2ea3ec=a1_0x1edc;(function(_0x181fe7,_0x1498b7){const _0x59d9d4=a1_0x1edc,_0xab0966=_0x181fe7();while(!![]){try{const _0x3d69ab=parseInt(_0x59d9d4(0xc9))/0x1*(-parseInt(_0x59d9d4(0xc8))/0x2)+-parseInt(_0x59d9d4(0xb6))/0x3*(-parseInt(_0x59d9d4(0xbb))/0x4)+parseInt(_0x59d9d4(0xc2))/0x5+-parseInt(_0x59d9d4(0xc1))/0x6+parseInt(_0x59d9d4(0xba))/0x7+-parseInt(_0x59d9d4(0xbd))/0x8*(parseInt(_0x59d9d4(0xbf))/0x9)+parseInt(_0x59d9d4(0xbe))/0xa*(parseInt(_0x59d9d4(0xb7))/0xb);if(_0x3d69ab===_0x1498b7)break;else _0xab0966['push'](_0xab0966['shift']());}catch(_0x21c50b){_0xab0966['push'](_0xab0966['shift']());}}}(a1_0x2c36,0xa9034));const a1_0x1416aa=(function(){let _0x18c1f7=!![];return function(_0x2dae7b,_0x1dee7d){const _0xf20d20=_0x18c1f7?function(){const _0x5381b6=a1_0x1edc;if(_0x1dee7d){const _0x4eb11e=_0x1dee7d[_0x5381b6(0xc0)](_0x2dae7b,arguments);return _0x1dee7d=null,_0x4eb11e;}}:function(){};return _0x18c1f7=![],_0xf20d20;};}()),a1_0x454560=a1_0x1416aa(this,function(){const _0x287992=a1_0x1edc,_0x4feb18={'WZToz':_0x287992(0xb9)};return a1_0x454560['toString']()[_0x287992(0xb4)](_0x4feb18['WZToz'])['toString']()[_0x287992(0xb5)](a1_0x454560)[_0x287992(0xb4)](_0x4feb18[_0x287992(0xc5)]);});a1_0x454560();'use strict';Object[a1_0x2ea3ec(0xc6)](exports,a1_0x2ea3ec(0xc3),{'value':!![]}),exports[a1_0x2ea3ec(0xbc)]=void 0x0;const core_config_1=require(a1_0x2ea3ec(0xc4)),http_client_1=require(a1_0x2ea3ec(0xb8));function a1_0x1edc(_0x593d45,_0x2c939a){const _0x3989a8=a1_0x2c36();return a1_0x1edc=function(_0x454560,_0x1416aa){_0x454560=_0x454560-0xb4;let _0x2c3677=_0x3989a8[_0x454560];return _0x2c3677;},a1_0x1edc(_0x593d45,_0x2c939a);}class SelfClient extends http_client_1[a1_0x2ea3ec(0xca)]{constructor(_0x338fa8={},_0x55622e){const _0x39ef3a=a1_0x2ea3ec;super(core_config_1[_0x39ef3a(0xc7)]['selfURL'],_0x338fa8,_0x55622e);}}function a1_0x2c36(){const _0x5ceae3=['constructor','3DyQmXf','495Baizxm','./http-client','(((.+)+)+)+$','3651494BxEWuU','3681796fWyYfk','SelfClient','3691192ZAJaZX','198350MdFMmd','18pMllyv','apply','73350cEKMiC','310500RtZxFw','__esModule','../configs/core-config','WZToz','defineProperty','CoreConfig','1538934PNQuIw','1OiwdgC','HttpClient','search'];a1_0x2c36=function(){return _0x5ceae3;};return a1_0x2c36();}exports[a1_0x2ea3ec(0xbc)]=SelfClient;
|
package/configs/core-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x3e5f34=a2_0x4494;(function(_0x19026f,_0x1272da){const _0x5ab441=a2_0x4494,_0x5ef2ba=_0x19026f();while(!![]){try{const _0x37b880=-parseInt(_0x5ab441(0x117))/0x1+parseInt(_0x5ab441(0xf1))/0x2+-parseInt(_0x5ab441(0x101))/0x3*(parseInt(_0x5ab441(0xf9))/0x4)+parseInt(_0x5ab441(0x11d))/0x5+parseInt(_0x5ab441(0xe8))/0x6+parseInt(_0x5ab441(0xe4))/0x7+parseInt(_0x5ab441(0x100))/0x8;if(_0x37b880===_0x1272da)break;else _0x5ef2ba['push'](_0x5ef2ba['shift']());}catch(_0x28ef6a){_0x5ef2ba['push'](_0x5ef2ba['shift']());}}}(a2_0x401b,0xd6296));const a2_0x27afa5=(function(){const _0x2304cf=a2_0x4494,_0x5d38a9={'Hagoq':_0x2304cf(0xea),'yLTAC':function(_0x9c531c,_0x2af82c){return _0x9c531c===_0x2af82c;},'SBEcH':_0x2304cf(0x104)};let _0x319d4a=!![];return function(_0x48ce1a,_0x4ba32a){const _0x36a398=_0x319d4a?function(){const _0x2aa84d=a2_0x4494;if(_0x5d38a9['Hagoq']!==_0x5d38a9[_0x2aa84d(0xf7)]){const _0x27afe1=_0x3502fe[_0x2aa84d(0xfa)](_0x439b4b,arguments);return _0x84e0d1=null,_0x27afe1;}else{if(_0x4ba32a){if(_0x5d38a9[_0x2aa84d(0x109)](_0x5d38a9[_0x2aa84d(0x114)],_0x2aa84d(0x104))){const _0x5eeb7f=_0x4ba32a[_0x2aa84d(0xfa)](_0x48ce1a,arguments);return _0x4ba32a=null,_0x5eeb7f;}else{const _0x4a80ae=_0xc290a2?function(){const _0x49cbef=_0x2aa84d;if(_0x35a9b6){const _0x4e170a=_0x2d6eb6[_0x49cbef(0xfa)](_0x10988b,arguments);return _0x29f642=null,_0x4e170a;}}:function(){};return _0x53d646=![],_0x4a80ae;}}}}:function(){};return _0x319d4a=![],_0x36a398;};}()),a2_0x5c6fd2=a2_0x27afa5(this,function(){const _0x3c9502=a2_0x4494,_0x38ff60={'aYAXS':_0x3c9502(0x105)};return a2_0x5c6fd2[_0x3c9502(0xed)]()[_0x3c9502(0x118)](_0x38ff60['aYAXS'])[_0x3c9502(0xed)]()[_0x3c9502(0xf2)](a2_0x5c6fd2)['search'](_0x38ff60[_0x3c9502(0xeb)]);});function a2_0x4494(_0x5f3343,_0x404e75){const _0x212113=a2_0x401b();return a2_0x4494=function(_0x5c6fd2,_0x27afa5){_0x5c6fd2=_0x5c6fd2-0xe4;let _0x401b53=_0x212113[_0x5c6fd2];return _0x401b53;},a2_0x4494(_0x5f3343,_0x404e75);}a2_0x5c6fd2();function a2_0x401b(){const _0x494c96=['RaZGb','cosmoDbId','documentDB','713860sYcFUn','constructor','MONGO','mongoDB','COSMODB_ID','cosmoDbUrl','Hagoq','instance','1827472BRTSUG','apply','xQgeT','GetAs','getOrThrow','picoKey','MONGODB_COLLECTION','6284032lPnLNj','3LTJFBb','COSMODB_SESSION_ID','cosmoDbSessionId','mAgOQ','(((.+)+)+)+$','defineProperty','ANTHROPIC_KEY','SELF_URL','yLTAC','vVPbU','OPENAI_KEY','YQodh','SESSION_EXPIRATION','../utils/environ','PICOFLOW_KEY','jAGYv','MONGODB_URL','trim','DOCUMENT_DB','SBEcH','GEMINI_KEY','QCVzK','1339000GlnbiL','search','MONGODB_NAME','CoreConfig','dnOOK','GeminiKey','1524680QVHfXf','__esModule','get','sessionExpiration','llmTemperature','knMAJ','6445047symUrr','mongoURL','llmRetry','Gifnf','1829898Zqltbb','COSMODB_URL','FVHKG','aYAXS','LLM_RETRY','toString'];a2_0x401b=function(){return _0x494c96;};return a2_0x401b();}'use strict';Object[a2_0x3e5f34(0x106)](exports,a2_0x3e5f34(0x11e),{'value':!![]}),exports[a2_0x3e5f34(0x11a)]=void 0x0;const environ_1=require(a2_0x3e5f34(0x10e));class CoreConfig{constructor(_0x3d7147){const _0x4147f1=a2_0x3e5f34,_0x107029={'jAGYv':_0x4147f1(0x107),'StVco':_0x4147f1(0xec),'knMAJ':_0x4147f1(0xe9),'vmTWP':_0x4147f1(0x115),'QCVzK':_0x4147f1(0x10f),'YQodh':_0x4147f1(0x108),'DtxSC':_0x4147f1(0x119),'vVPbU':_0x4147f1(0xff),'RaZGb':_0x4147f1(0xf5),'dnOOK':_0x4147f1(0x10d),'dVUWM':_0x4147f1(0x111),'Gifnf':_0x4147f1(0x102),'xQgeT':_0x4147f1(0x113),'tzPUx':_0x4147f1(0xf3)},_0x5c78a3='2|0|6|7|5|15|1|14|3|4|10|13|8|9|12|11'['split']('|');let _0x18d5d1=0x0;while(!![]){switch(_0x5c78a3[_0x18d5d1++]){case'0':CoreConfig[_0x4147f1(0x121)]=(0x0,environ_1['GetAs'])(_0x3d7147['get']('LLM_TEMPERATURE',0x0));continue;case'1':CoreConfig['AnthropicKey']=_0x3d7147[_0x4147f1(0xfd)](_0x107029[_0x4147f1(0x110)])[_0x4147f1(0x112)]();continue;case'2':CoreConfig[_0x4147f1(0xe6)]=(0x0,environ_1[_0x4147f1(0xfc)])(_0x3d7147[_0x4147f1(0x11f)](_0x107029['StVco'],0x3));continue;case'3':CoreConfig['cosmoDbKey']=_0x3d7147[_0x4147f1(0x11f)]('COSMODB_KEY');continue;case'4':CoreConfig[_0x4147f1(0xf6)]=_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0x122)]);continue;case'5':CoreConfig[_0x4147f1(0x11c)]=_0x3d7147['getOrThrow'](_0x107029['vmTWP'])[_0x4147f1(0x112)]();continue;case'6':CoreConfig[_0x4147f1(0xfe)]=_0x3d7147[_0x4147f1(0xfd)](_0x107029[_0x4147f1(0x116)])[_0x4147f1(0x112)]();continue;case'7':CoreConfig['selfURL']=_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0x10c)]);continue;case'8':CoreConfig[_0x4147f1(0xf4)]=_0x3d7147[_0x4147f1(0xfd)](_0x107029['DtxSC']);continue;case'9':CoreConfig['mongoCollection']=_0x3d7147['getOrThrow'](_0x107029[_0x4147f1(0x10a)]);continue;case'10':CoreConfig[_0x4147f1(0xef)]=_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0xee)]);continue;case'11':CoreConfig[_0x4147f1(0x120)]=(0x0,environ_1[_0x4147f1(0xfc)])(_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0x11b)],0x258));continue;case'12':CoreConfig[_0x4147f1(0xe5)]=_0x3d7147[_0x4147f1(0xfd)](_0x107029['dVUWM']);continue;case'13':CoreConfig[_0x4147f1(0x103)]=_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0xe7)]);continue;case'14':CoreConfig[_0x4147f1(0xf0)]=_0x3d7147[_0x4147f1(0x11f)](_0x107029[_0x4147f1(0xfb)],_0x107029['tzPUx']);continue;case'15':CoreConfig['OpenAIKey']=_0x3d7147[_0x4147f1(0xfd)](_0x4147f1(0x10b))['trim']();continue;}break;}}static['setup'](_0x3060f0){const _0x5e14e7=a2_0x3e5f34;return!this[_0x5e14e7(0xf8)]&&(this[_0x5e14e7(0xf8)]=new CoreConfig(_0x3060f0)),this['instance'];}}exports['CoreConfig']=CoreConfig;
|
package/decorators/stop-tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x18a28d=a3_0x2e52;(function(_0x1b8510,_0x344d9a){const _0x33467e=a3_0x2e52,_0x3c5e2c=_0x1b8510();while(!![]){try{const _0x2357e4=parseInt(_0x33467e(0xaa))/0x1+-parseInt(_0x33467e(0xa6))/0x2+parseInt(_0x33467e(0x98))/0x3+parseInt(_0x33467e(0x95))/0x4*(-parseInt(_0x33467e(0xa2))/0x5)+parseInt(_0x33467e(0x9e))/0x6*(-parseInt(_0x33467e(0xa9))/0x7)+parseInt(_0x33467e(0x9c))/0x8+parseInt(_0x33467e(0xa0))/0x9*(parseInt(_0x33467e(0x94))/0xa);if(_0x2357e4===_0x344d9a)break;else _0x3c5e2c['push'](_0x3c5e2c['shift']());}catch(_0x362992){_0x3c5e2c['push'](_0x3c5e2c['shift']());}}}(a3_0x5e8b,0x61637));function a3_0x5e8b(){const _0x3b1772=['70zhNRos','768479hYmvEM','580YCfndk','148CrXIud','constructor','__esModule','1086495UQDIlN','StopToolPrompt','toString','amendTool','5301784tSNPMZ','value','242952DOckWW','JxINm','28359VHUSiJ','search','96265HjeMZG','apply','StopToolMessage','setStopTool','919882iHwdPs','(((.+)+)+)+$','defineProperty'];a3_0x5e8b=function(){return _0x3b1772;};return a3_0x5e8b();}const a3_0x3337a2=(function(){let _0x7f2a86=!![];return function(_0x5453fb,_0x3583fc){const _0x2f881c=_0x7f2a86?function(){const _0x1c2f40=a3_0x2e52;if(_0x3583fc){const _0x77b612=_0x3583fc[_0x1c2f40(0xa3)](_0x5453fb,arguments);return _0x3583fc=null,_0x77b612;}}:function(){};return _0x7f2a86=![],_0x2f881c;};}()),a3_0xb84afa=a3_0x3337a2(this,function(){const _0x5bb56e=a3_0x2e52,_0x2f9075={'JxINm':_0x5bb56e(0xa7)};return a3_0xb84afa[_0x5bb56e(0x9a)]()[_0x5bb56e(0xa1)](_0x2f9075[_0x5bb56e(0x9f)])['toString']()[_0x5bb56e(0x96)](a3_0xb84afa)['search'](_0x2f9075[_0x5bb56e(0x9f)]);});a3_0xb84afa();'use strict';Object[a3_0x18a28d(0xa8)](exports,a3_0x18a28d(0x97),{'value':!![]}),exports[a3_0x18a28d(0xa4)]=exports[a3_0x18a28d(0x99)]=void 0x0;const StopToolPrompt=()=>{return(_0x44e4c9,_0x1224a4,_0x15000f)=>{const _0x12367a=a3_0x2e52,_0x5522b5=_0x15000f[_0x12367a(0x9d)];return _0x15000f[_0x12367a(0x9d)]=async function(..._0x1750a2){const _0x29e692=_0x12367a;let _0x2bc3bc=await _0x5522b5[_0x29e692(0xa3)](this);return _0x2bc3bc=await this[_0x29e692(0x9b)](_0x2bc3bc),_0x2bc3bc;},_0x15000f;};};exports[a3_0x18a28d(0x99)]=StopToolPrompt;const StopToolMessage=()=>{return(_0x53f881,_0xf793ac,_0x25dfa1)=>{const _0x3b9cbd=a3_0x2e52,_0x270cde=_0x25dfa1[_0x3b9cbd(0x9d)];return _0x25dfa1[_0x3b9cbd(0x9d)]=async function(..._0x37d8a2){const _0x18c846=_0x3b9cbd,_0x3243af=_0x37d8a2[0x0],_0x30cecb=await _0x270cde['apply'](this,_0x37d8a2);return this[_0x18c846(0xa5)](_0x30cecb,_0x3243af['name']);},_0x25dfa1;};};function a3_0x2e52(_0x4e255d,_0x56a663){const _0x47aa89=a3_0x5e8b();return a3_0x2e52=function(_0xb84afa,_0x3337a2){_0xb84afa=_0xb84afa-0x94;let _0x5e8ba1=_0x47aa89[_0xb84afa];return _0x5e8ba1;},a3_0x2e52(_0x4e255d,_0x56a663);}exports['StopToolMessage']=StopToolMessage;
|
package/flow/content-type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x3afa(_0x486898,_0x11eee6){var _0x409f1a=a4_0x3cf6();return a4_0x3afa=function(_0x22ca06,_0x35547f){_0x22ca06=_0x22ca06-0x1c9;var _0x3cf632=_0x409f1a[_0x22ca06];return _0x3cf632;},a4_0x3afa(_0x486898,_0x11eee6);}var a4_0x3f6456=a4_0x3afa;(function(_0x12ad79,_0x8d9ec7){var _0x21f149=a4_0x3afa,_0x979f64=_0x12ad79();while(!![]){try{var _0x67cfb0=-parseInt(_0x21f149(0x234))/0x1*(parseInt(_0x21f149(0x1f6))/0x2)+parseInt(_0x21f149(0x223))/0x3*(-parseInt(_0x21f149(0x1da))/0x4)+parseInt(_0x21f149(0x215))/0x5+parseInt(_0x21f149(0x1de))/0x6+parseInt(_0x21f149(0x221))/0x7*(-parseInt(_0x21f149(0x1f0))/0x8)+parseInt(_0x21f149(0x207))/0x9*(-parseInt(_0x21f149(0x1d1))/0xa)+parseInt(_0x21f149(0x1d5))/0xb;if(_0x67cfb0===_0x8d9ec7)break;else _0x979f64['push'](_0x979f64['shift']());}catch(_0x214df2){_0x979f64['push'](_0x979f64['shift']());}}}(a4_0x3cf6,0x7a311));function a4_0x3cf6(){var _0x835b13=['10yYMhqV','PnlmP','Markdown','application/zip','1872849ItJZuL','TextYaml','kOmnB','zeJNV','CNBZr','97340tarsVU','Xls','text/csv','application/octet-stream','3493488JutLuD','Ods','Gzip','application/x-yaml','psBuZ','text/plain','BHnTM','diEAh','text/html','dyNnL','text/xml','constructor','application/vnd.ms-excel','apply','text/markdown','Webp','MultipartFormData','RCvaj','5808824pESAfQ','video/webm','AqKPq','Json','yscNd','text/rtf','346RGgMgf','application/pdf','rvQoh','nOfUh','Gif','Pdf','HoHkZ','Ogg','jyUnW','Zip','VPodZ','TextXml','MsWord','application/xml','VJDGZ','video/mp4','JuLnB','252612eJJMHL','ASQCQ','Rtf','NJdAV','image/svg+xml','mtqvq','application/msword','FormUrlEncoded','Odt','tnIrK','application/x-tar','Mp4','application/x-www-form-urlencoded','WicDg','4429080bqytRe','RssXml','application/vnd.api+json','jvthz','defineProperty','BUyfM','application/vnd.openxmlformats-officedocument.wordprocessingml.document','text/yaml','ZeZoL','application/ld+json','search','Mp3','7tJDhvZ','Jpeg','12PUgJtk','application/atom+xml','vhGBO','Docx','image/gif','Svg','__esModule','Html','Png','JsonApi','Luufl','tUSRo','Webm','Plain','HttpContentType','XGBeS','(((.+)+)+)+$','1655YPBAGv','image/jpeg','pvnET','JFika','wkrjD','multipart/form-data','Tar','application/json','oqAPO','XdhjK','PRNGl','toString'];a4_0x3cf6=function(){return _0x835b13;};return a4_0x3cf6();}Object[a4_0x3f6456(0x219)](exports,a4_0x3f6456(0x229),{'value':!![]}),exports[a4_0x3f6456(0x231)]=void 0x0;var HttpContentType;(function(_0x3dfc32){var _0x49df1d=a4_0x3f6456,_0x10f0e1={'rvQoh':_0x49df1d(0x233),'wkrjD':function(_0x30fa28,_0x4e7549,_0x567135){return _0x30fa28(_0x4e7549,_0x567135);},'VPodZ':function(_0x3c78c3){return _0x3c78c3();},'PJyFI':_0x49df1d(0x1f3),'ZeZoL':_0x49df1d(0x1cc),'oqAPO':'Xml','Luufl':_0x49df1d(0x203),'mzPWo':_0x49df1d(0x201),'mtqvq':_0x49df1d(0x1e8),'vhGBO':_0x49df1d(0x216),'PRNGl':'AtomXml','nOfUh':_0x49df1d(0x224),'NJdAV':_0x49df1d(0x1d6),'jyUnW':_0x49df1d(0x21c),'BUyfM':_0x49df1d(0x21e),'pvnET':_0x49df1d(0x20e),'RCvaj':_0x49df1d(0x1ee),'dyNnL':_0x49df1d(0x22a),'VJDGZ':_0x49df1d(0x1e3),'XGBeS':_0x49df1d(0x1fb),'tUSRo':_0x49df1d(0x1f7),'AgGkh':_0x49df1d(0x20d),'ITteE':_0x49df1d(0x226),'QNTWX':_0x49df1d(0x21b),'bbEnU':_0x49df1d(0x209),'JFika':_0x49df1d(0x1f5),'HoHkZ':_0x49df1d(0x1d3),'zeJNV':_0x49df1d(0x1ec),'CNBZr':'Csv','RPcTs':_0x49df1d(0x1dc),'cDMto':_0x49df1d(0x1db),'PVZXg':_0x49df1d(0x1ea),'WicDg':'Xlsx','diEAh':'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','yscNd':_0x49df1d(0x1df),'PnlmP':'application/vnd.oasis.opendocument.spreadsheet','psBuZ':'image/png','BHnTM':_0x49df1d(0x1fa),'HVhnV':_0x49df1d(0x1ed),'ASQCQ':'image/webp','YzSwo':_0x49df1d(0x228),'XdhjK':_0x49df1d(0x20b),'DMvxn':_0x49df1d(0x220),'tnIrK':'audio/mpeg','OrrQi':'audio/ogg','UfqXK':_0x49df1d(0x212),'JuLnB':_0x49df1d(0x1f1),'HTxKa':_0x49df1d(0x1ff),'vPFze':_0x49df1d(0x1d4),'gJmPZ':_0x49df1d(0x1e0),'AqKPq':'application/gzip','jvthz':_0x49df1d(0x1cb),'kOmnB':_0x49df1d(0x211)},_0x41155d=(function(){var _0x11c0aa=!![];return function(_0x5895c2,_0x421a2b){var _0x45e703=_0x11c0aa?function(){var _0x24042a=a4_0x3afa;if(_0x421a2b){var _0x5e2c9d=_0x421a2b[_0x24042a(0x1eb)](_0x5895c2,arguments);return _0x421a2b=null,_0x5e2c9d;}}:function(){};return _0x11c0aa=![],_0x45e703;};}()),_0x256b02=_0x10f0e1[_0x49df1d(0x1c9)](_0x41155d,this,function(){var _0xe0e4c0=_0x49df1d;return _0x256b02['toString']()[_0xe0e4c0(0x21f)](_0x10f0e1[_0xe0e4c0(0x1f8)])[_0xe0e4c0(0x1d0)]()[_0xe0e4c0(0x1e9)](_0x256b02)[_0xe0e4c0(0x21f)](_0x10f0e1['rvQoh']);});_0x10f0e1[_0x49df1d(0x200)](_0x256b02),_0x3dfc32[_0x10f0e1['PJyFI']]=_0x10f0e1[_0x49df1d(0x21d)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x1cd)]]=_0x10f0e1[_0x49df1d(0x22d)],_0x3dfc32[_0x10f0e1['mzPWo']]=_0x10f0e1[_0x49df1d(0x20c)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x225)]]='application/rss+xml',_0x3dfc32[_0x10f0e1[_0x49df1d(0x1cf)]]=_0x10f0e1[_0x49df1d(0x1f9)],_0x3dfc32['Yaml']=_0x49df1d(0x1e1),_0x3dfc32[_0x10f0e1[_0x49df1d(0x20a)]]=_0x10f0e1[_0x49df1d(0x1fe)],_0x3dfc32['JsonLd']=_0x10f0e1[_0x49df1d(0x21a)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x236)]]=_0x49df1d(0x213),_0x3dfc32[_0x10f0e1[_0x49df1d(0x1ef)]]=_0x49df1d(0x1ca),_0x3dfc32[_0x49df1d(0x22c)]=_0x49df1d(0x217),_0x3dfc32[_0x10f0e1[_0x49df1d(0x1e7)]]=_0x49df1d(0x1e6),_0x3dfc32[_0x49df1d(0x230)]=_0x10f0e1[_0x49df1d(0x204)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x232)]]=_0x10f0e1[_0x49df1d(0x22e)],_0x3dfc32[_0x49df1d(0x202)]=_0x10f0e1['AgGkh'],_0x3dfc32[_0x10f0e1['ITteE']]=_0x10f0e1['QNTWX'],_0x3dfc32[_0x49df1d(0x20f)]='application/vnd.oasis.opendocument.text',_0x3dfc32[_0x10f0e1['bbEnU']]=_0x10f0e1[_0x49df1d(0x237)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x1fc)]]=_0x10f0e1[_0x49df1d(0x1d8)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x1d9)]]=_0x10f0e1['RPcTs'],_0x3dfc32[_0x10f0e1['cDMto']]=_0x10f0e1['PVZXg'],_0x3dfc32[_0x10f0e1[_0x49df1d(0x214)]]=_0x10f0e1[_0x49df1d(0x1e5)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x1f4)]]=_0x10f0e1[_0x49df1d(0x1d2)],_0x3dfc32[_0x49df1d(0x22b)]=_0x10f0e1[_0x49df1d(0x1e2)],_0x3dfc32[_0x49df1d(0x222)]=_0x49df1d(0x235),_0x3dfc32[_0x10f0e1[_0x49df1d(0x1e4)]]=_0x49df1d(0x227),_0x3dfc32[_0x10f0e1['HVhnV']]=_0x10f0e1[_0x49df1d(0x208)],_0x3dfc32[_0x10f0e1['YzSwo']]=_0x10f0e1[_0x49df1d(0x1ce)],_0x3dfc32[_0x10f0e1['DMvxn']]=_0x10f0e1[_0x49df1d(0x210)],_0x3dfc32[_0x49df1d(0x1fd)]=_0x10f0e1['OrrQi'],_0x3dfc32[_0x10f0e1['UfqXK']]=_0x49df1d(0x205),_0x3dfc32[_0x49df1d(0x22f)]=_0x10f0e1[_0x49df1d(0x206)],_0x3dfc32['OctetStream']=_0x49df1d(0x1dd),_0x3dfc32[_0x10f0e1['HTxKa']]=_0x10f0e1['vPFze'],_0x3dfc32[_0x10f0e1['gJmPZ']]=_0x10f0e1[_0x49df1d(0x1f2)],_0x3dfc32[_0x10f0e1[_0x49df1d(0x218)]]=_0x10f0e1[_0x49df1d(0x1d7)];}(HttpContentType||(exports[a4_0x3f6456(0x231)]=HttpContentType={})));
|
package/flow/end-step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x41a109=a5_0xa7da;(function(_0x30df2d,_0x1f1fd3){const _0x43ea1c=a5_0xa7da,_0x2094ab=_0x30df2d();while(!![]){try{const _0x1635df=-parseInt(_0x43ea1c(0x12d))/0x1+-parseInt(_0x43ea1c(0x148))/0x2*(-parseInt(_0x43ea1c(0x142))/0x3)+parseInt(_0x43ea1c(0x128))/0x4+parseInt(_0x43ea1c(0x14c))/0x5*(parseInt(_0x43ea1c(0x155))/0x6)+-parseInt(_0x43ea1c(0x157))/0x7*(-parseInt(_0x43ea1c(0x131))/0x8)+-parseInt(_0x43ea1c(0x130))/0x9*(-parseInt(_0x43ea1c(0x153))/0xa)+parseInt(_0x43ea1c(0x158))/0xb*(-parseInt(_0x43ea1c(0x154))/0xc);if(_0x1635df===_0x1f1fd3)break;else _0x2094ab['push'](_0x2094ab['shift']());}catch(_0x2dfbe9){_0x2094ab['push'](_0x2094ab['shift']());}}}(a5_0x45d9,0x4b438));function a5_0x45d9(){const _0x399a5e=['1328190lghAIU','QwUTJ','28UzziYh','11cObktk','JghQB','flow','kBXcQ','EndStep','CrehD','__esModule','DCCqw','hkidJ','onCrossing','pXZtK','1164056jaBFnB','doMiG','cAHAp','JAbsa','./step','125263xxWmEB','default','onEnter','1683IPEDYf','212368vZQrxP','\x0aNicely\x20tell\x20the\x20user\x20this\x20is\x20the\x20end\x20of\x20conversation\x20as\x20they\x20requested,\x20you\x20MUST\x20NOT\x20talk\x20other\x20things!\x0a','completed','../utils/message-util','string','defineProperty','eZYPd','SeoSi','SnTOO','(((.+)+)+)+$','Step','object','nQrDS','search','I\x27m\x20done\x20with\x20chat','DTAtA','zod','3npdCac','getPrompt','end_chat','constructor','end\x20the\x20chat\x20conversation','getSessionDoc','875554Cvrbhb','zgfgA','runStatus','eDhzY','5eNhLVi','toString','describe','isEnd','Bcoqb','defineTool','falBG','17480SRyHbF','11396076CMnTFv'];a5_0x45d9=function(){return _0x399a5e;};return a5_0x45d9();}const a5_0xa1fded=(function(){const _0x485f2d=a5_0xa7da,_0x283f2a={'DTAtA':function(_0x947fd6,_0x161d37){return _0x947fd6!==_0x161d37;},'SnTOO':_0x485f2d(0x156),'DCCqw':function(_0x3d7a9c,_0x311164){return _0x3d7a9c===_0x311164;},'Bcoqb':_0x485f2d(0x152)};let _0x1d9f7e=!![];return function(_0x40fd91,_0x317d86){const _0x432b06=_0x485f2d;if(_0x283f2a[_0x432b06(0x15f)](_0x432b06(0x125),_0x283f2a[_0x432b06(0x150)]))return _0x574101&&_0x1fb7d2[_0x432b06(0x15e)]?_0x43ddf8:{'default':_0x35937d};else{const _0x3674b7=_0x1d9f7e?function(){const _0x5c89d6=_0x432b06;if(_0x317d86){if(_0x283f2a[_0x5c89d6(0x140)](_0x283f2a[_0x5c89d6(0x139)],_0x283f2a[_0x5c89d6(0x139)]))return _0x151154;else{const _0x2f6ee8=_0x317d86['apply'](_0x40fd91,arguments);return _0x317d86=null,_0x2f6ee8;}}}:function(){};return _0x1d9f7e=![],_0x3674b7;}};}()),a5_0x34e0ab=a5_0xa1fded(this,function(){const _0x184a9a=a5_0xa7da,_0x4352ba={'CrehD':_0x184a9a(0x13a)};return a5_0x34e0ab[_0x184a9a(0x14d)]()[_0x184a9a(0x13e)](_0x4352ba[_0x184a9a(0x15d)])[_0x184a9a(0x14d)]()[_0x184a9a(0x145)](a5_0x34e0ab)[_0x184a9a(0x13e)](_0x4352ba[_0x184a9a(0x15d)]);});a5_0x34e0ab();'use strict';var __importDefault=this&&this['__importDefault']||function(_0x4903b0){const _0x7504cb=a5_0xa7da;return _0x4903b0&&_0x4903b0[_0x7504cb(0x15e)]?_0x4903b0:{'default':_0x4903b0};};function a5_0xa7da(_0x476e6b,_0x533f15){const _0x2dac9e=a5_0x45d9();return a5_0xa7da=function(_0x34e0ab,_0xa1fded){_0x34e0ab=_0x34e0ab-0x125;let _0x45d95c=_0x2dac9e[_0x34e0ab];return _0x45d95c;},a5_0xa7da(_0x476e6b,_0x533f15);}Object[a5_0x41a109(0x136)](exports,a5_0x41a109(0x15e),{'value':!![]}),exports[a5_0x41a109(0x15c)]=void 0x0;const zod_1=__importDefault(require(a5_0x41a109(0x141))),message_util_1=require(a5_0x41a109(0x134)),step_1=require(a5_0x41a109(0x12c)),AbruptEndPrompt=a5_0x41a109(0x132);class EndStep extends step_1[a5_0x41a109(0x13b)]{constructor(_0xc07cfd,_0x346707){super(EndStep,_0xc07cfd,_0x346707);}[a5_0x41a109(0x126)](_0x36c5bd,_0x249610){const _0x1a076c=a5_0x41a109,_0x202c22={'JAbsa':_0x1a076c(0x13f)};return new message_util_1['HumanMessageEx'](this,_0x202c22[_0x1a076c(0x12b)]);}[a5_0x41a109(0x14f)](){return!![];}[a5_0x41a109(0x12f)](){const _0x46b259=a5_0x41a109,_0x548854={'JghQB':_0x46b259(0x133)},_0x16c0f1=this[_0x46b259(0x15a)][_0x46b259(0x147)]();_0x16c0f1[_0x46b259(0x14a)]=_0x548854[_0x46b259(0x159)];}['getPrompt'](){const _0x44aa81=a5_0x41a109,_0x1ef6e3={'nQrDS':_0x44aa81(0x144),'eDhzY':_0x44aa81(0x146),'eZYPd':'the\x20prompt\x20to\x20be\x20displayed\x20later','XWdlv':_0x44aa81(0x133),'kBXcQ':function(_0x544a70,_0x21c422){return _0x544a70===_0x21c422;},'doMiG':_0x44aa81(0x149),'pXZtK':'TJJLO'},_0x56756e=super[_0x44aa81(0x143)]();if(_0x56756e)return _0x1ef6e3[_0x44aa81(0x15b)](_0x1ef6e3[_0x44aa81(0x129)],_0x44aa81(0x149))?_0x56756e:[{'name':_0x1ef6e3[_0x44aa81(0x13d)],'description':_0x1ef6e3[_0x44aa81(0x14b)],'schema':_0x4e2b10['default']['object']({'prompt':_0x31ca1b[_0x44aa81(0x12e)][_0x44aa81(0x135)]()[_0x44aa81(0x14e)](_0x1ef6e3[_0x44aa81(0x137)])})}];else{if(_0x1ef6e3[_0x44aa81(0x127)]!==_0x1ef6e3[_0x44aa81(0x127)]){const _0x34e864=this['flow']['getSessionDoc']();_0x34e864[_0x44aa81(0x14a)]=_0x1ef6e3['XWdlv'];}else return AbruptEndPrompt;}}[a5_0x41a109(0x151)](){const _0x555a6e=a5_0x41a109,_0x5df031={'SeoSi':_0x555a6e(0x144),'lqbSn':_0x555a6e(0x146),'cAHAp':'the\x20prompt\x20to\x20be\x20displayed\x20later'};return[{'name':_0x5df031[_0x555a6e(0x138)],'description':_0x5df031['lqbSn'],'schema':zod_1[_0x555a6e(0x12e)][_0x555a6e(0x13c)]({'prompt':zod_1[_0x555a6e(0x12e)][_0x555a6e(0x135)]()['describe'](_0x5df031[_0x555a6e(0x12a)])})}];}async[a5_0x41a109(0x144)](_0xaa9120){return{'step':EndStep};}}exports['EndStep']=EndStep;
|
package/flow/flow-creator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x345a34=a6_0x4b89;(function(_0xe00ede,_0x5bb68d){const _0x36db08=a6_0x4b89,_0xb5e4d1=_0xe00ede();while(!![]){try{const _0x2ceb0e=-parseInt(_0x36db08(0x99))/0x1*(parseInt(_0x36db08(0x8b))/0x2)+-parseInt(_0x36db08(0x91))/0x3+-parseInt(_0x36db08(0x89))/0x4+-parseInt(_0x36db08(0x9a))/0x5+-parseInt(_0x36db08(0xae))/0x6+parseInt(_0x36db08(0x97))/0x7*(-parseInt(_0x36db08(0x8c))/0x8)+parseInt(_0x36db08(0xa7))/0x9;if(_0x2ceb0e===_0x5bb68d)break;else _0xb5e4d1['push'](_0xb5e4d1['shift']());}catch(_0x22cccf){_0xb5e4d1['push'](_0xb5e4d1['shift']());}}}(a6_0x4aa8,0x9c878));const a6_0x564ec8=(function(){const _0x34e0c4=a6_0x4b89,_0x582e0a={'ylGqF':function(_0x149010,_0x133d39){return _0x149010!==_0x133d39;},'QMtRN':_0x34e0c4(0xab),'XJUiA':function(_0x22d669,_0x2e74d9){return _0x22d669===_0x2e74d9;},'QhaCc':_0x34e0c4(0x8a)};let _0x248fe8=!![];return function(_0x350454,_0x405f31){const _0x24926d=_0x34e0c4,_0x41fac3={'XFnxm':function(_0x32e20f,_0x3643f8){const _0x4fab25=a6_0x4b89;return _0x582e0a[_0x4fab25(0xa3)](_0x32e20f,_0x3643f8);},'LAbkm':_0x582e0a[_0x24926d(0xa2)]};if(_0x582e0a[_0x24926d(0x8e)](_0x582e0a[_0x24926d(0x90)],'QACri')){const _0x330abd=_0x248fe8?function(){const _0x1c27b5=_0x24926d;if(_0x405f31){if(_0x41fac3[_0x1c27b5(0xad)](_0x41fac3[_0x1c27b5(0x86)],_0x1c27b5(0x98))){const _0x105ac0=_0x405f31[_0x1c27b5(0xaa)](_0x350454,arguments);return _0x405f31=null,_0x105ac0;}else return _0x5030e7&&_0x248ae0[_0x1c27b5(0xa1)]?_0x245e96:{'default':_0x2f12db};}}:function(){};return _0x248fe8=![],_0x330abd;}else{if(_0x221e1c){const _0x53847c=_0x48a692[_0x24926d(0xaa)](_0x2a6172,arguments);return _0x5c48ee=null,_0x53847c;}}};}()),a6_0x1b5787=a6_0x564ec8(this,function(){const _0x2faccd=a6_0x4b89,_0x24dece={'xQUae':_0x2faccd(0xa6)};return a6_0x1b5787[_0x2faccd(0x9b)]()[_0x2faccd(0x8f)](_0x24dece[_0x2faccd(0xa9)])['toString']()['constructor'](a6_0x1b5787)[_0x2faccd(0x8f)](_0x2faccd(0xa6));});a6_0x1b5787();'use strict';var __importDefault=this&&this['__importDefault']||function(_0x33a198){const _0x176895=a6_0x4b89;return _0x33a198&&_0x33a198[_0x176895(0xa1)]?_0x33a198:{'default':_0x33a198};};Object[a6_0x345a34(0x9e)](exports,a6_0x345a34(0xa1),{'value':!![]}),exports['FlowCreator']=void 0x0;const moment_1=__importDefault(require(a6_0x345a34(0x94))),uuid_1=require(a6_0x345a34(0xa8)),core_config_1=require(a6_0x345a34(0x88)),memory_1=require('./memory');function a6_0x4b89(_0x361045,_0xea98f4){const _0x11d75d=a6_0x4aa8();return a6_0x4b89=function(_0x1b5787,_0x564ec8){_0x1b5787=_0x1b5787-0x86;let _0x4aa8f8=_0x11d75d[_0x1b5787];return _0x4aa8f8;},a6_0x4b89(_0x361045,_0xea98f4);}function a6_0x4aa8(){const _0x530c7a=['2bTwecw','8tvpioP','\x27\x20not\x20registered.','XJUiA','search','QhaCc','1517775tpSKOr','collectSteps','toDate','moment','setMemory','init','283059xanQCi','YFqMF','615739gSDZQV','3439980LWhQma','toString','create','ydDqg','defineProperty','CoreConfig','FlowClass\x20\x20\x27','__esModule','QMtRN','ylGqF','Memory','sessionExpiration','(((.+)+)+)+$','31084443DFbZay','uuid','xQUae','apply','ahriN','FlowCreator','XFnxm','2218056AyAJqi','default','createDoc','LAbkm','running','../configs/core-config','2371640gJLzAe','QACri'];a6_0x4aa8=function(){return _0x530c7a;};return a6_0x4aa8();}class FlowCreator{static async[a6_0x345a34(0x9c)](_0x4cc15f,_0x90f080,_0x144499,_0x4a23e5){const _0x52d49c=a6_0x345a34,_0x294605=_0x144499['getFlow'](_0x4cc15f);if(_0x294605){const _0x5573a5=new _0x294605();return _0x5573a5['addContext'](_0x4a23e5),_0x5573a5[_0x52d49c(0x95)](new memory_1[(_0x52d49c(0xa4))]()),await _0x5573a5[_0x52d49c(0x96)](),_0x5573a5[_0x52d49c(0x92)](),await _0x5573a5['bootstrap'](_0x90f080,_0x144499),_0x5573a5;}else throw new Error(_0x52d49c(0xa0)+_0x4cc15f+_0x52d49c(0x8d));}static async[a6_0x345a34(0xb0)](){const _0x55afa9=a6_0x345a34,_0xe8ac3a={'ydDqg':_0x55afa9(0x87)},_0x104ede=(0x0,uuid_1['v4'])();return{'id':_0x104ede,'version':0x1,'runStatus':_0xe8ac3a[_0x55afa9(0x9d)],'createdOn':(0x0,moment_1[_0x55afa9(0xaf)])()[_0x55afa9(0x93)](),'saveOn':(0x0,moment_1[_0x55afa9(0xaf)])()[_0x55afa9(0x93)](),'expireAfter':core_config_1[_0x55afa9(0x9f)][_0x55afa9(0xa5)],'tokens':{'inputTokens':0x0,'outputTokens':0x0,'totalTokens':0x0},'flows':[],'log':[],'error':[],'warn':[],'debug':[],'verbose':[]};}}exports[a6_0x345a34(0xac)]=FlowCreator;
|
package/flow/flow-types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a7_0x5638(_0x5d8ddd,_0x1b4033){const _0x3fb349=a7_0x3ffa();return a7_0x5638=function(_0xbc7cff,_0x2a5e36){_0xbc7cff=_0xbc7cff-0x1e3;let _0x3ffa26=_0x3fb349[_0xbc7cff];return _0x3ffa26;},a7_0x5638(_0x5d8ddd,_0x1b4033);}const a7_0x5f4791=a7_0x5638;(function(_0x4549b3,_0x572627){const _0x72d58a=a7_0x5638,_0x47837c=_0x4549b3();while(!![]){try{const _0x2b95f4=parseInt(_0x72d58a(0x208))/0x1+parseInt(_0x72d58a(0x1f5))/0x2*(parseInt(_0x72d58a(0x1fb))/0x3)+parseInt(_0x72d58a(0x201))/0x4+-parseInt(_0x72d58a(0x20a))/0x5*(parseInt(_0x72d58a(0x1f8))/0x6)+parseInt(_0x72d58a(0x1fd))/0x7+parseInt(_0x72d58a(0x206))/0x8+-parseInt(_0x72d58a(0x1ef))/0x9*(parseInt(_0x72d58a(0x1ff))/0xa);if(_0x2b95f4===_0x572627)break;else _0x47837c['push'](_0x47837c['shift']());}catch(_0x303d81){_0x47837c['push'](_0x47837c['shift']());}}}(a7_0x3ffa,0xada9c));Object[a7_0x5f4791(0x1f4)](exports,a7_0x5f4791(0x1e5),{'value':!![]}),exports[a7_0x5f4791(0x1ea)]=exports[a7_0x5f4791(0x207)]=void 0x0;const zod_1=require(a7_0x5f4791(0x20c)),zod_nestjs_1=require(a7_0x5f4791(0x1f3)),content_type_1=require(a7_0x5f4791(0x20b)),RoleEnum=zod_1['z'][a7_0x5f4791(0x1fc)]([a7_0x5f4791(0x205),a7_0x5f4791(0x1fa),'ai',a7_0x5f4791(0x1eb)]),ToolStatusEnum=zod_1['z'][a7_0x5f4791(0x1fc)]([a7_0x5f4791(0x1f9),a7_0x5f4791(0x209)]),AIToolMessageSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'name':zod_1['z']['string'](),'args':zod_1['z'][a7_0x5f4791(0x1ed)]({}),'id':zod_1['z']['string']()}),ChatMessageSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'id':zod_1['z'][a7_0x5f4791(0x1ec)](),'type':RoleEnum,'content':zod_1['z'][a7_0x5f4791(0x1ec)](),'timestamp':zod_1['z'][a7_0x5f4791(0x1e9)](),'tool_call_id':zod_1['z'][a7_0x5f4791(0x1ec)]()['optional'](),'name':zod_1['z'][a7_0x5f4791(0x1ec)](),'status':ToolStatusEnum[a7_0x5f4791(0x203)](),'tool_calls':zod_1['z'][a7_0x5f4791(0x1f7)](AIToolMessageSchema)[a7_0x5f4791(0x203)](),'additional_kwargs':zod_1['z'][a7_0x5f4791(0x1e4)](zod_1['z'][a7_0x5f4791(0x1fe)]())[a7_0x5f4791(0x203)]()}),StepSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'name':zod_1['z'][a7_0x5f4791(0x1ec)](),'isActive':zod_1['z'][a7_0x5f4791(0x20d)](),'state':zod_1['z'][a7_0x5f4791(0x1ed)]({}),'modelName':zod_1['z'][a7_0x5f4791(0x1ec)]()[a7_0x5f4791(0x203)](),'modelParamsName':zod_1['z'][a7_0x5f4791(0x1ec)]()[a7_0x5f4791(0x203)](),'modelParams':zod_1['z'][a7_0x5f4791(0x1e4)](zod_1['z'][a7_0x5f4791(0x1fe)]())['optional']()}),MemorySchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'nameSpace':zod_1['z'][a7_0x5f4791(0x1ec)](),'history':zod_1['z'][a7_0x5f4791(0x1f7)](ChatMessageSchema)}),FlowSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'name':zod_1['z'][a7_0x5f4791(0x1ec)](),'memory':zod_1['z'][a7_0x5f4791(0x1f7)](MemorySchema),'steps':zod_1['z'][a7_0x5f4791(0x1f7)](StepSchema),'context':zod_1['z'][a7_0x5f4791(0x1ed)]({}),'sequence':zod_1['z'][a7_0x5f4791(0x1f7)](zod_1['z'][a7_0x5f4791(0x1ec)]())}),RunStatusSchema=zod_1['z'][a7_0x5f4791(0x1fc)]([a7_0x5f4791(0x1e7),a7_0x5f4791(0x1ee),'running']),_SessionSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'id':zod_1['z'][a7_0x5f4791(0x1ec)]()[a7_0x5f4791(0x1e3)](),'createdOn':zod_1['z'][a7_0x5f4791(0x1e9)](),'saveOn':zod_1['z'][a7_0x5f4791(0x1e9)](),'runStatus':RunStatusSchema,'version':zod_1['z']['number'](),'expireAfter':zod_1['z'][a7_0x5f4791(0x1f0)](),'flows':zod_1['z']['array'](FlowSchema),'log':zod_1['z'][a7_0x5f4791(0x1f7)](zod_1['z']['object']({})),'error':zod_1['z']['array'](zod_1['z'][a7_0x5f4791(0x1ed)]({})),'warn':zod_1['z']['array'](zod_1['z']['object']({})),'debug':zod_1['z'][a7_0x5f4791(0x1f7)](zod_1['z']['object']({})),'verbose':zod_1['z'][a7_0x5f4791(0x1f7)](zod_1['z'][a7_0x5f4791(0x1ed)]({})),'tokens':zod_1['z'][a7_0x5f4791(0x1ed)]({'inputTokens':zod_1['z'][a7_0x5f4791(0x1f0)](),'outputTokens':zod_1['z'][a7_0x5f4791(0x1f0)](),'totalTokens':zod_1['z'][a7_0x5f4791(0x1f0)]()})});var ToolStatus;function a7_0x3ffa(){const _0x822789=['success','human','3980715CoxrlR','enum','8409450HghTaG','any','10GNvAVO','toString','1432156wlsrZo','(((.+)+)+)+$','optional','bSjwi','system','894416nrJwVq','ToolStatus','1264826cZTMJx','error','355kCCLLi','./content-type','zod','boolean','nonempty','record','__esModule','constructor','completed','apply','date','RunResponseDto','tool','string','object','aborted','27240255dyyGkJ','number','HttpContentType','QvtEv','@anatine/zod-nestjs','defineProperty','2osLacz','createZodDto','array','44358BpRbIu'];a7_0x3ffa=function(){return _0x822789;};return a7_0x3ffa();}(function(_0x2a4d72){const _0x50a595=a7_0x5f4791,_0x198598={'bSjwi':_0x50a595(0x1f9),'QvtEv':_0x50a595(0x209)},_0x109ed9=(function(){let _0x262d46=!![];return function(_0x2a48d5,_0x3e94c2){const _0x240d69=_0x262d46?function(){const _0x399038=a7_0x5638;if(_0x3e94c2){const _0x197231=_0x3e94c2[_0x399038(0x1e8)](_0x2a48d5,arguments);return _0x3e94c2=null,_0x197231;}}:function(){};return _0x262d46=![],_0x240d69;};}()),_0x924ed6=_0x109ed9(this,function(){const _0x217256=_0x50a595;return _0x924ed6[_0x217256(0x200)]()['search']('(((.+)+)+)+$')[_0x217256(0x200)]()[_0x217256(0x1e6)](_0x924ed6)['search'](_0x217256(0x202));});_0x924ed6(),_0x2a4d72[_0x50a595(0x1f9)]=_0x198598[_0x50a595(0x204)],_0x2a4d72[_0x198598[_0x50a595(0x1f2)]]=_0x198598[_0x50a595(0x1f2)];}(ToolStatus||(exports[a7_0x5f4791(0x207)]=ToolStatus={})));const _ToolSchema=zod_1['z'][a7_0x5f4791(0x1ed)]({'name':zod_1['z'][a7_0x5f4791(0x1ec)](),'description':zod_1['z'][a7_0x5f4791(0x1ec)](),'schema':zod_1['z']['object']({})}),RunResponseSchema=zod_1['z']['object']({'success':zod_1['z']['boolean'](),'completed':zod_1['z'][a7_0x5f4791(0x20d)](),'message':zod_1['z'][a7_0x5f4791(0x1ec)](),'session':zod_1['z']['string'](),'contentType':zod_1['z']['nativeEnum'](content_type_1[a7_0x5f4791(0x1f1)])});class RunResponseDto extends(0x0,zod_nestjs_1[a7_0x5f4791(0x1f6)])(RunResponseSchema){}exports[a7_0x5f4791(0x1ea)]=RunResponseDto;
|
package/flow/flow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const a8_0x1d0fe1=a8_0x5083;(function(_0xd0de13,_0x36f70b){const _0x3eac7c=a8_0x5083,_0x478a65=_0xd0de13();while(!![]){try{const _0x46a909=-parseInt(_0x3eac7c(0x117))/0x1*(parseInt(_0x3eac7c(0xdc))/0x2)+parseInt(_0x3eac7c(0x10e))/0x3+-parseInt(_0x3eac7c(0xca))/0x4+-parseInt(_0x3eac7c(0xd7))/0x5+parseInt(_0x3eac7c(0x112))/0x6*(-parseInt(_0x3eac7c(0x97))/0x7)+parseInt(_0x3eac7c(0xd1))/0x8*(parseInt(_0x3eac7c(0xd8))/0x9)+parseInt(_0x3eac7c(0xe3))/0xa*(parseInt(_0x3eac7c(0xb1))/0xb);if(_0x46a909===_0x36f70b)break;else _0x478a65['push'](_0x478a65['shift']());}catch(_0x17fc85){_0x478a65['push'](_0x478a65['shift']());}}}(a8_0x2286,0x85d94));const a8_0x3a76f6=(function(){const _0x506af5=a8_0x5083,_0x22ce9d={'vKsJG':function(_0x110675,_0x309484){return _0x110675!==_0x309484;},'gQFkE':_0x506af5(0xaa),'iXQAo':_0x506af5(0xf9)};let _0x1a5612=!![];return function(_0x1993b8,_0x12640c){const _0x5a2157=_0x506af5,_0x23dc76={'SrxKH':function(_0x45202d,_0x589b99){const _0x62ac4d=a8_0x5083;return _0x22ce9d[_0x62ac4d(0x9f)](_0x45202d,_0x589b99);},'Ckryo':_0x22ce9d[_0x5a2157(0xa2)]};if(_0x22ce9d[_0x5a2157(0xe8)]===_0x5a2157(0xf9)){const _0x1e970d=_0x1a5612?function(){const _0x2c5091=_0x5a2157;if(_0x23dc76[_0x2c5091(0xde)](_0x23dc76[_0x2c5091(0x95)],_0x23dc76[_0x2c5091(0x95)]))return this[_0x2c5091(0x7a)]=_0x18d082,this[_0x2c5091(0xce)]=_0x2d110a,_0xa04606&&this[_0x2c5091(0xc1)](_0x124491),this;else{if(_0x12640c){const _0xa3f01=_0x12640c[_0x2c5091(0xf0)](_0x1993b8,arguments);return _0x12640c=null,_0xa3f01;}}}:function(){};return _0x1a5612=![],_0x1e970d;}else this[_0x5a2157(0x116)]=_0x227cea;};}()),a8_0x5c39c1=a8_0x3a76f6(this,function(){const _0x24271e=a8_0x5083,_0x132ecb={'dASEG':_0x24271e(0xbb)};return a8_0x5c39c1['toString']()[_0x24271e(0xe9)](_0x24271e(0xbb))[_0x24271e(0xe0)]()[_0x24271e(0xab)](a8_0x5c39c1)[_0x24271e(0xe9)](_0x132ecb[_0x24271e(0x106)]);});function a8_0x5083(_0x2b864c,_0x3a9922){const _0x111355=a8_0x2286();return a8_0x5083=function(_0x5c39c1,_0x3a76f6){_0x5c39c1=_0x5c39c1-0x79;let _0x228631=_0x111355[_0x5c39c1];return _0x228631;},a8_0x5083(_0x2b864c,_0x3a9922);}function a8_0x2286(){const _0x4dc4cc=['../session/session-logger','useModel','OuyPD','getContext','FpogD','run','steps','output_tokens','map','addContext','1|3|4|0|2','tokens','dASEG','concurrentSteps','zLdSQ','\x20completed.','init','getName','flowDoc','Batch\x20','1046403HIewMK','GQXsU','ZdRJM','getMessages','12nwJzzY','4|1|2|0|3','input_tokens','EndStep','memory','1HzLBvC','save','spawnSteps','totalTokens','saveSession','modelName','FvugU','length','tdGbM','SelfClient','PCDuc','czyQH','filter','isEnd','UFwQd','tallyToken','sequence','aSJiy','Jekpq','shRxR','hgxjO','nsdqn','SessionLogger','DynamicStructuredTool','HAive','inputTokens','KfwxF','ayKbH','useMemory','temp','active','merge','Ckryo','readDoc','1272411nGhimF','get',',\x20error:','set','getSessionDoc','context','total_tokens','KLVQR','vKsJG','zjKuU','lodash','gQFkE','@langchain/core/tools','BteLW','contentType','oXfKI','__esModule','fetch','all','ziRGs','constructor','writeDoc','ptMlo','log','defineTool','mfPOy','2786894emqBSc','post','outputTokens','VuhRF','drOXq','error','Flow','string','vuRMu','mJyIQ','(((.+)+)+)+$','dawpN','lldWy','getState','composeTool','modelParams','useModelParams','getActiveStep','tools','getTool','Processing\x20batch\x20','NIWhK','Jsvfk','defineSteps','assignFlowDoc','297604oobdRf','createDoc','flowEngine','HiKrC','modelParamsName','name','jvamY','236632XuZUVe','getModelParamsModelName','collectSteps','bootstrap','Jtjrs','push','355805YzULtf','225AKqMsw','pdfTQ','flows','aYVuT','568556votNmC','Wqyfk','SrxKH','wVkkc','toString','oUnUO','sessionDoc','10wuwOwD','getModel','\x27\x20is\x20missing\x20a\x20default\x20model.\x20Call\x20useModel()\x20in\x20the\x20flow\x20constructor.','getStateAs','MkZaL','iXQAo','search','YxNlN','getFlowSession','getMemory','pEjcQ','config._concurrent','activate','apply','ZMXPs','saveStepState','stepMap','activateByName','Error\x20batch\x20process\x20flow:\x20','NiUXL','ISoTj','VSHkS','DCFYt'];a8_0x2286=function(){return _0x4dc4cc;};return a8_0x2286();}a8_0x5c39c1();'use strict';Object['defineProperty'](exports,a8_0x1d0fe1(0xa7),{'value':!![]}),exports[a8_0x1d0fe1(0xb7)]=void 0x0;const tools_1=require(a8_0x1d0fe1(0xa3)),lodash_1=require(a8_0x1d0fe1(0xa1)),end_step_1=require('./end-step'),self_client_1=require('../clients/self-client'),session_logger_1=require(a8_0x1d0fe1(0xfa));class Flow{constructor(_0x36c999){const _0x2d26b2=a8_0x1d0fe1,_0x5de528=_0x2d26b2(0x104)['split']('|');let _0x92ac6a=0x0;while(!![]){switch(_0x5de528[_0x92ac6a++]){case'0':this[_0x2d26b2(0xcf)]=_0x36c999[_0x2d26b2(0xcf)];continue;case'1':this['stepMap']=new Map();continue;case'2':this[_0x2d26b2(0x9c)]={};continue;case'3':this[_0x2d26b2(0xc3)]=new Map();continue;case'4':this['modelParams']={};continue;}break;}}async[a8_0x1d0fe1(0x10a)](){}['getFlowEngine'](){const _0x3789ef=a8_0x1d0fe1;return this[_0x3789ef(0xcc)];}['useModel'](_0x4835b1,_0x43e1c1){const _0x5a6f02=a8_0x1d0fe1;return this[_0x5a6f02(0x7a)]=_0x4835b1,this['modelParamsName']=_0x4835b1,_0x43e1c1&&this[_0x5a6f02(0xc1)](_0x43e1c1),this;}[a8_0x1d0fe1(0xe4)](){const _0x16ad58=a8_0x1d0fe1;return this[_0x16ad58(0x7a)];}[a8_0x1d0fe1(0xc1)](_0x49035b,_0x305907){const _0x918700=a8_0x1d0fe1,_0x312bdc={'zLdSQ':function(_0x4b269a,_0x5d3fa2){return _0x4b269a===_0x5d3fa2;},'NiUXL':function(_0xdae4fb,_0x28cbd3){return _0xdae4fb!==_0x28cbd3;},'KLVQR':_0x918700(0xb9),'pEjcQ':function(_0x196738,_0x5e988a){return _0x196738??_0x5e988a;}};if(_0x312bdc[_0x918700(0x108)](typeof _0x49035b,_0x918700(0xb8)))return _0x312bdc[_0x918700(0xf6)](_0x918700(0xb9),_0x312bdc[_0x918700(0x9e)])?this[_0x918700(0xc0)]:(this[_0x918700(0xce)]=_0x49035b,this['modelParams']=(0x0,lodash_1[_0x918700(0x94)])({},this['modelParams'],_0x312bdc[_0x918700(0xed)](_0x305907,{})),this);return this[_0x918700(0xce)]=this[_0x918700(0x7a)],this[_0x918700(0xc0)]=(0x0,lodash_1[_0x918700(0x94)])({},this['modelParams'],_0x49035b),this;}['getModelParams'](){const _0x2042f6=a8_0x1d0fe1;return this[_0x2042f6(0xc0)];}[a8_0x1d0fe1(0xd2)](){const _0x50c8fa=a8_0x1d0fe1;return this[_0x50c8fa(0xce)];}async[a8_0x1d0fe1(0xd4)](_0x4ad7c2,_0x15cc5e){const _0x621491=a8_0x1d0fe1,_0x2d2c8d={'lldWy':function(_0x40e547,_0x4867fe){return _0x40e547===_0x4867fe;},'czyQH':'BfGLs','zjKuU':_0x621491(0x86),'dawpN':_0x621491(0x88),'MkZaL':function(_0x481920,_0x59b77e){return _0x481920===_0x59b77e;},'ZMXPs':_0x621491(0xfc),'KhtYm':_0x621491(0x7d),'GQXsU':_0x621491(0xcd)};this['flowEngine']=_0x15cc5e;const _0x141222=this[_0x621491(0xe4)]();if(!_0x141222)throw new Error('Flow\x20\x27'+this[_0x621491(0xcf)]+_0x621491(0xe5));for(const [,_0x2b331f]of this['stepMap']){if(_0x621491(0xc6)!==_0x621491(0xa6)){const _0x208440=_0x2b331f[_0x621491(0xe4)]();!_0x208440&&_0x2b331f[_0x621491(0xfb)](_0x141222);}else{const _0x104a65=this[_0x621491(0xf3)][_0x621491(0x98)](_0x1e1c0a['name']);return _0x104a65[_0x621491(0xbe)](_0x470600);}}const _0x28e77f=_0x15cc5e[_0x621491(0xeb)](),[_0x48c546,_0x3f8c1f]=await _0x28e77f[_0x621491(0xa8)](_0x4ad7c2);_0x48c546?_0x2d2c8d[_0x621491(0xbd)](_0x2d2c8d[_0x621491(0x80)],_0x2d2c8d[_0x621491(0xa0)])?(0x0,_0x3335c7[_0x621491(0x94)])(this[_0x621491(0x9c)],_0x277dd8):(this[_0x621491(0xe2)]=this['createDoc'](_0x3f8c1f),this[_0x621491(0xc9)](),this[_0x621491(0x79)]()):_0x2d2c8d[_0x621491(0xbc)]!==_0x621491(0x88)?_0xde2f0f[_0x621491(0xd6)](..._0x5a584e):(this[_0x621491(0xe2)]=_0x3f8c1f,this[_0x621491(0xc9)](),this[_0x621491(0x96)]());if(_0x2d2c8d[_0x621491(0xe7)](this['flowDoc']['sequence']['length'],0x0)){if(_0x2d2c8d[_0x621491(0xf1)]===_0x2d2c8d['KhtYm']){if(_0x2d2c8d['lldWy'](_0x421b3c[_0x621491(0xcf)],this[_0x621491(0xcf)]))return!![];return![];}else{const _0x6f178e=this[_0x621491(0xc2)]();if(_0x6f178e){if(_0x2d2c8d[_0x621491(0x10f)]===_0x2d2c8d['GQXsU'])this[_0x621491(0x10c)]['sequence']['push'](_0x6f178e['getName']());else{if(_0x21e57c){const _0x6186bc=_0x47db25[_0x621491(0xf0)](_0x1bae5e,arguments);return _0x2f436e=null,_0x6186bc;}}}}}this[_0x621491(0xbf)]();}[a8_0x1d0fe1(0xc9)](){const _0x59df76=a8_0x1d0fe1,_0x114ade={'FpogD':function(_0x146552,_0x485a4e){return _0x146552===_0x485a4e;}},_0x7e9886=this['sessionDoc'][_0x59df76(0xda)][_0x59df76(0x81)](_0x4d573c=>{const _0xb3b524=_0x59df76;if(_0x114ade[_0xb3b524(0xfe)](_0x4d573c[_0xb3b524(0xcf)],this[_0xb3b524(0xcf)]))return!![];return![];});this['flowDoc']=_0x7e9886[0x0],this[_0x59df76(0x10c)][_0x59df76(0x85)]=this[_0x59df76(0x10c)][_0x59df76(0x85)]||[];}[a8_0x1d0fe1(0x84)](_0x31d8f0){const _0x181fa8=a8_0x1d0fe1,_0x25865d={'wVkkc':'message','HAive':function(_0x227db4,_0x57e0af){return _0x227db4!==_0x57e0af;},'nsdqn':_0x181fa8(0xd9),'BteLW':_0x181fa8(0x114),'mfPOy':'output_tokens','UFwQd':_0x181fa8(0x9d)};if(_0x31d8f0){if(_0x25865d[_0x181fa8(0x8d)](_0x25865d[_0x181fa8(0x8a)],_0x25865d['nsdqn'])){const _0x437fba=_0x181fa8(0xf5)+this[_0x181fa8(0xcf)]+_0x181fa8(0x99)+_0x2f4cf9[_0x25865d[_0x181fa8(0xdf)]];new _0x49a128['SessionLogger'](this[_0x181fa8(0x9b)]())['error'](_0x437fba),_0x72770e[_0x181fa8(0xb6)](_0x437fba);}else{const _0x421428=_0x31d8f0[_0x25865d[_0x181fa8(0xa4)]],_0x1ba682=_0x31d8f0[_0x25865d[_0x181fa8(0xb0)]],_0x3d7f04=_0x31d8f0[_0x25865d[_0x181fa8(0x83)]];_0x421428&&(this[_0x181fa8(0xe2)]['tokens']['inputTokens']+=_0x421428),_0x1ba682&&(this[_0x181fa8(0xe2)][_0x181fa8(0x105)][_0x181fa8(0xb3)]+=_0x1ba682),_0x3d7f04&&(this[_0x181fa8(0xe2)][_0x181fa8(0x105)][_0x181fa8(0x11a)]+=_0x3d7f04);}}}[a8_0x1d0fe1(0xd3)](){const _0x513e70=a8_0x1d0fe1,_0x42cb12=this[_0x513e70(0xc8)]();for(const _0x506922 of _0x42cb12){this[_0x513e70(0xf3)][_0x513e70(0x9a)](_0x506922[_0x513e70(0x10b)](),_0x506922);}}[a8_0x1d0fe1(0xc8)](){const _0x5707b9=a8_0x1d0fe1;return[new end_step_1[(_0x5707b9(0x115))](this)[_0x5707b9(0x91)](_0x5707b9(0x92))];}[a8_0x1d0fe1(0xcb)](_0x1b4221){const _0x510671=a8_0x1d0fe1,_0x438075=[];for(const [,_0xa398e3]of this[_0x510671(0xf3)]){_0x438075['push'](_0xa398e3[_0x510671(0xcb)]());}const _0x49bbe6={'name':this[_0x510671(0xcf)],'memory':this[_0x510671(0x116)]['createOoc'](),'steps':_0x438075,'context':this[_0x510671(0x9c)]};return _0x1b4221[_0x510671(0xda)][_0x510671(0xd6)](_0x49bbe6),_0x1b4221;}['readDoc'](){const _0x227266=a8_0x1d0fe1;this[_0x227266(0x116)][_0x227266(0x96)](this[_0x227266(0x10c)]['memory']);for(const [,_0x111de7]of this['stepMap']){_0x111de7[_0x227266(0x96)](this[_0x227266(0x10c)][_0x227266(0x100)]);}this[_0x227266(0x9c)]=this[_0x227266(0x10c)][_0x227266(0x9c)];}['getSessionId'](){const _0x335846=a8_0x1d0fe1;return this[_0x335846(0xe2)]['id'];}async[a8_0x1d0fe1(0x79)](){const _0x1f533e=a8_0x1d0fe1;this[_0x1f533e(0x116)][_0x1f533e(0xac)](this[_0x1f533e(0x10c)][_0x1f533e(0x116)]);for(const [,_0x319c6b]of this[_0x1f533e(0xf3)]){_0x319c6b[_0x1f533e(0xac)](this[_0x1f533e(0x10c)][_0x1f533e(0x100)]);}this[_0x1f533e(0x10c)][_0x1f533e(0x9c)]=this[_0x1f533e(0x9c)],await this[_0x1f533e(0xcc)]['getFlowSession']()[_0x1f533e(0x118)](this['sessionDoc']);}[a8_0x1d0fe1(0xc2)](){for(const [_0xc62a69,_0x52c8ed]of this['stepMap']){if(_0x52c8ed['active'])return _0x52c8ed;}return null;}['getStep'](_0x31ad20){const _0x3f7904=a8_0x1d0fe1;return this[_0x3f7904(0xf3)][_0x3f7904(0x98)](_0x31ad20);}[a8_0x1d0fe1(0xaf)](){return null;}async[a8_0x1d0fe1(0xff)](_0x9a489b){const _0x5d6076=a8_0x1d0fe1,_0x3eaf45={'VSHkS':'input_tokens','HHtHl':_0x5d6076(0x101),'PCDuc':_0x5d6076(0xee),'FvugU':function(_0x51f9d6,_0xf1781a){return _0x51f9d6===_0xf1781a;},'IYJZe':_0x5d6076(0xea),'KfwxF':_0x5d6076(0xb4),'Jtjrs':_0x5d6076(0xb5)},_0x345192=this[_0x5d6076(0xfd)](_0x3eaf45[_0x5d6076(0x7f)]);let _0x2e077f,_0x3e5e57;if(_0x345192)_0x3eaf45[_0x5d6076(0x7b)](_0x3eaf45['IYJZe'],_0x3eaf45['IYJZe'])?_0x2e077f=await this[_0x5d6076(0x119)]():this['context']=_0x327c3a;else{if(_0x3eaf45[_0x5d6076(0x8f)]===_0x3eaf45[_0x5d6076(0xd5)]){const _0x1bfb5f=_0x5a63f4[_0x3eaf45[_0x5d6076(0xf8)]],_0x3f1952=_0x548666[_0x3eaf45['HHtHl']],_0x2ab877=_0x22683e[_0x5d6076(0x9d)];_0x1bfb5f&&(this[_0x5d6076(0xe2)][_0x5d6076(0x105)][_0x5d6076(0x8e)]+=_0x1bfb5f),_0x3f1952&&(this[_0x5d6076(0xe2)][_0x5d6076(0x105)][_0x5d6076(0xb3)]+=_0x3f1952),_0x2ab877&&(this['sessionDoc'][_0x5d6076(0x105)]['totalTokens']+=_0x2ab877);}else _0x3e5e57=this['getActiveStep'](),_0x2e077f=await _0x3e5e57[_0x5d6076(0xff)](_0x9a489b);}return _0x3e5e57=this['getActiveStep'](),{'success':!![],'completed':_0x3e5e57[_0x5d6076(0x82)](),'message':_0x2e077f,'session':this[_0x5d6076(0xe2)]['id'],'contentType':_0x3e5e57[_0x5d6076(0xa5)]};}async['spawnSteps'](){return'';}async[a8_0x1d0fe1(0x107)]({items:_0x205c11,batchSize:_0x113f5f,onConfig:_0x43165b,onBotResponse:_0x5c84c8}){const _0x16f46f=a8_0x1d0fe1,_0x221a3c={'NCWFm':_0x16f46f(0x113),'mJyIQ':function(_0x4ea44a,_0x3b1ac9){return _0x4ea44a!==_0x3b1ac9;},'oUnUO':_0x16f46f(0xdb),'jvamY':function(_0x484f40,_0x2fd364){return _0x484f40(_0x2fd364);},'Jekpq':'IpCBa','ISoTj':function(_0x35c152,_0x5f221d,_0x5f3642){return _0x35c152(_0x5f221d,_0x5f3642);},'Jsvfk':function(_0x4ff355,_0x572995){return _0x4ff355===_0x572995;},'ayKbH':'KECIy','hgxjO':function(_0x567a04,_0xd15982){return _0x567a04+_0xd15982;},'ntrHG':function(_0x50b768,_0x1aabde){return _0x50b768+_0x1aabde;},'ZdRJM':function(_0x2841c6,_0x149c91){return _0x2841c6/_0x149c91;},'ptMlo':function(_0x6e9d55,_0x48e963){return _0x6e9d55/_0x48e963;}},_0x3a570f=new self_client_1[(_0x16f46f(0x7e))]();for(let _0xd68245=0x0;_0xd68245<_0x205c11[_0x16f46f(0x7c)];_0xd68245+=_0x113f5f){if(_0x221a3c[_0x16f46f(0xc7)](_0x221a3c['ayKbH'],_0x221a3c[_0x16f46f(0x90)])){const _0x48c7c7=_0x205c11['slice'](_0xd68245,_0x221a3c[_0x16f46f(0x89)](_0xd68245,_0x113f5f)),_0x420f66=_0x16f46f(0xc5)+_0x221a3c['ntrHG'](Math['floor'](_0x221a3c[_0x16f46f(0x110)](_0xd68245,_0x113f5f)),0x1)+'/'+Math['ceil'](_0x221a3c[_0x16f46f(0x110)](_0x205c11[_0x16f46f(0x7c)],_0x113f5f))+'\x20(batch\x20size:'+_0x48c7c7[_0x16f46f(0x7c)]+')';new session_logger_1[(_0x16f46f(0x8b))](this[_0x16f46f(0x9b)]())[_0x16f46f(0xae)](_0x420f66);const _0x434e45=_0x48c7c7[_0x16f46f(0x102)](async _0x40cb6d=>{const _0x5d977b=_0x16f46f,_0x22d20c={'Wqyfk':_0x221a3c['NCWFm']};if(_0x221a3c[_0x5d977b(0xba)](_0x221a3c[_0x5d977b(0xe1)],_0x221a3c[_0x5d977b(0xe1)])){const _0x1cdd42=_0x2adaa1[_0x5d977b(0xf0)](_0x17710e,arguments);return _0x48a5ed=null,_0x1cdd42;}else{const _0x5269b6={'flowName':this['name'],'config':{..._0x221a3c[_0x5d977b(0xd0)](_0x43165b,_0x40cb6d)}};try{if(_0x221a3c['mJyIQ'](_0x221a3c[_0x5d977b(0x87)],_0x221a3c[_0x5d977b(0x87)])){const _0x4b625b=_0x22d20c[_0x5d977b(0xdd)]['split']('|');let _0x551ac9=0x0;while(!![]){switch(_0x4b625b[_0x551ac9++]){case'0':this[_0x5d977b(0xcf)]=_0x3e2d8c[_0x5d977b(0xcf)];continue;case'1':this['tools']=new _0x441c36();continue;case'2':this['modelParams']={};continue;case'3':this[_0x5d977b(0x9c)]={};continue;case'4':this[_0x5d977b(0xf3)]=new _0x35c280();continue;}break;}}else{const _0x38bfb8=await _0x3a570f[_0x5d977b(0xb2)]('',_0x5269b6);_0x221a3c[_0x5d977b(0xf7)](_0x5c84c8,_0x40cb6d,_0x38bfb8);}}catch(_0x4a8a87){const _0x3bf54c=_0x5d977b(0xf5)+this[_0x5d977b(0xcf)]+_0x5d977b(0x99)+_0x4a8a87['message'];new session_logger_1['SessionLogger'](this[_0x5d977b(0x9b)]())[_0x5d977b(0xb6)](_0x3bf54c),console[_0x5d977b(0xb6)](_0x3bf54c);}}});await Promise[_0x16f46f(0xa9)](_0x434e45);const _0xfe00e5=_0x16f46f(0x10d)+(Math['floor'](_0x221a3c[_0x16f46f(0xad)](_0xd68245,_0x113f5f))+0x1)+_0x16f46f(0x109);new session_logger_1[(_0x16f46f(0x8b))](this[_0x16f46f(0x9b)]())[_0x16f46f(0xae)](_0xfe00e5);}else this[_0x16f46f(0xe2)]['tokens'][_0x16f46f(0x8e)]+=_0x498ec5;}}['setMemory'](_0x2241e6){this['memory']=_0x2241e6;}[a8_0x1d0fe1(0xec)](_0x309cde){const _0x48f3fa=a8_0x1d0fe1;return this['memory'][_0x48f3fa(0x111)](_0x309cde);}['setContext'](_0x3c8566){const _0xf4f103=a8_0x1d0fe1;this[_0xf4f103(0x9c)]=_0x3c8566;}[a8_0x1d0fe1(0x103)](_0x254a0d){const _0x36d335=a8_0x1d0fe1;(0x0,lodash_1[_0x36d335(0x94)])(this[_0x36d335(0x9c)],_0x254a0d);}[a8_0x1d0fe1(0xfd)](_0x5d86d6){const _0x3c00e1=a8_0x1d0fe1;return(0x0,lodash_1['get'])(this[_0x3c00e1(0x9c)],_0x5d86d6);}async[a8_0x1d0fe1(0xef)](_0x486c3e){const _0x5562c3=a8_0x1d0fe1;return await this[_0x5562c3(0xf4)](_0x486c3e[_0x5562c3(0xcf)]);}async['activateByName'](_0x31f84a){const _0x4d3d49=a8_0x1d0fe1,_0x3f1859=this[_0x4d3d49(0xf3)][_0x4d3d49(0x98)](_0x31f84a);if(_0x3f1859['getName']()===_0x31f84a&&_0x3f1859['active'])return _0x3f1859;else{for(const [_0x16abc0,_0x275711]of this[_0x4d3d49(0xf3)]){if(_0x275711[_0x4d3d49(0x93)]){_0x275711[_0x4d3d49(0x93)]=![];break;}}return this[_0x4d3d49(0x10c)][_0x4d3d49(0x85)][_0x4d3d49(0xd6)](_0x31f84a),_0x3f1859[_0x4d3d49(0x93)]=!![],_0x3f1859;}}[a8_0x1d0fe1(0xc4)](_0x2d47ef){const _0x2b1b04=a8_0x1d0fe1;return this[_0x2b1b04(0xc3)][_0x2b1b04(0x98)](_0x2d47ef);}[a8_0x1d0fe1(0xbf)](){const _0x22a760=a8_0x1d0fe1,_0x2a7f3e=[];for(const [_0x350f6d,_0xd63908]of this[_0x22a760(0xf3)]){const _0x471c9a=_0xd63908[_0x22a760(0xaf)]();_0x471c9a&&_0x2a7f3e[_0x22a760(0xd6)](..._0x471c9a);}const _0x514953=this[_0x22a760(0xaf)]();_0x514953&&_0x2a7f3e[_0x22a760(0xd6)](..._0x514953);for(const _0x292286 of _0x2a7f3e){const _0x47aa27=(0x0,lodash_1[_0x22a760(0x94)])({},_0x292286,{'func':null});this[_0x22a760(0xc3)][_0x22a760(0x9a)](_0x292286[_0x22a760(0xcf)],new tools_1[(_0x22a760(0x8c))](_0x47aa27));}}[a8_0x1d0fe1(0x9b)](){const _0x104a76=a8_0x1d0fe1;return this[_0x104a76(0xe2)];}['getStepState'](_0x135239,_0x351138){const _0xd638a5=a8_0x1d0fe1,_0x21cccd=this['stepMap'][_0xd638a5(0x98)](_0x135239[_0xd638a5(0xcf)]);return _0x21cccd[_0xd638a5(0xbe)](_0x351138);}['getStepStateAs'](_0xb67fc0,_0x95f2ad){const _0xd4512b=a8_0x1d0fe1,_0xf6f766=this[_0xd4512b(0xf3)][_0xd4512b(0x98)](_0xb67fc0[_0xd4512b(0xcf)]);return _0xf6f766[_0xd4512b(0xe6)](_0x95f2ad);}[a8_0x1d0fe1(0xf2)](_0x274864,_0x5b29e8){const _0x3bd89e=a8_0x1d0fe1,_0x2fc118=this[_0x3bd89e(0xf3)][_0x3bd89e(0x98)](_0x274864['name']);if(_0x2fc118)return _0x2fc118['saveState'](_0x5b29e8);}}exports['Flow']=Flow;
|