@picoflow/core 1.0.12 → 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 +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](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_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
|
-
|
|
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
|
-
function
|
|
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';const
|
|
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_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_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;
|