@hotmeshio/hotmesh 0.3.27 → 0.3.29
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/build/modules/key.js +1 -1
- package/build/modules/utils.js +1 -1
- package/build/package.json +1 -1
- package/build/services/activities/activity.js +1 -1
- package/build/services/activities/await.js +1 -1
- package/build/services/activities/cycle.js +1 -1
- package/build/services/activities/hook.js +1 -1
- package/build/services/activities/index.js +1 -1
- package/build/services/activities/interrupt.js +1 -1
- package/build/services/activities/signal.js +1 -1
- package/build/services/activities/trigger.js +1 -1
- package/build/services/activities/worker.js +1 -1
- package/build/services/collator/index.js +1 -1
- package/build/services/compiler/deployer.js +1 -1
- package/build/services/compiler/index.js +1 -1
- package/build/services/compiler/validator.js +1 -1
- package/build/services/engine/index.js +1 -1
- package/build/services/exporter/index.js +1 -1
- package/build/services/hotmesh/index.js +3 -0
- package/build/services/mapper/index.js +1 -1
- package/build/services/meshdata/index.d.ts +10 -10
- package/build/services/meshflow/client.js +1 -0
- package/build/services/meshflow/exporter.js +1 -1
- package/build/services/meshflow/workflow/all.d.ts +1 -0
- package/build/services/meshflow/workflow/all.js +8 -0
- package/build/services/meshflow/workflow/common.d.ts +18 -0
- package/build/services/meshflow/workflow/common.js +45 -0
- package/build/services/meshflow/workflow/context.d.ts +2 -0
- package/build/services/meshflow/workflow/context.js +41 -0
- package/build/services/meshflow/workflow/didRun.d.ts +1 -0
- package/build/services/meshflow/workflow/didRun.js +16 -0
- package/build/services/meshflow/workflow/emit.d.ts +4 -0
- package/build/services/meshflow/workflow/emit.js +22 -0
- package/build/services/meshflow/workflow/enrich.d.ts +2 -0
- package/build/services/meshflow/workflow/enrich.js +10 -0
- package/build/services/meshflow/workflow/execChild.d.ts +4 -0
- package/build/services/meshflow/workflow/execChild.js +84 -0
- package/build/services/meshflow/workflow/hook.d.ts +2 -0
- package/build/services/meshflow/workflow/hook.js +33 -0
- package/build/services/meshflow/workflow/index.d.ts +39 -0
- package/build/services/meshflow/workflow/index.js +52 -0
- package/build/services/meshflow/workflow/interrupt.d.ts +2 -0
- package/build/services/meshflow/workflow/interrupt.js +17 -0
- package/build/services/meshflow/workflow/isSideEffectAllowed.d.ts +2 -0
- package/build/services/meshflow/workflow/isSideEffectAllowed.js +25 -0
- package/build/services/meshflow/workflow/proxyActivities.d.ts +6 -0
- package/build/services/meshflow/workflow/proxyActivities.js +82 -0
- package/build/services/meshflow/workflow/random.d.ts +1 -0
- package/build/services/meshflow/workflow/random.js +11 -0
- package/build/services/meshflow/workflow/searchMethods.d.ts +2 -0
- package/build/services/meshflow/workflow/searchMethods.js +21 -0
- package/build/services/meshflow/workflow/signal.d.ts +1 -0
- package/build/services/meshflow/workflow/signal.js +22 -0
- package/build/services/meshflow/workflow/sleepFor.d.ts +1 -0
- package/build/services/meshflow/workflow/sleepFor.js +28 -0
- package/build/services/meshflow/workflow/trace.d.ts +4 -0
- package/build/services/meshflow/workflow/trace.js +23 -0
- package/build/services/meshflow/workflow/waitFor.d.ts +1 -0
- package/build/services/meshflow/workflow/waitFor.js +28 -0
- package/build/services/meshos/index.d.ts +8 -5
- package/build/services/meshos/index.js +31 -10
- package/build/services/pipe/functions/array.js +1 -1
- package/build/services/pipe/functions/bitwise.js +1 -1
- package/build/services/pipe/functions/conditional.js +1 -1
- package/build/services/pipe/functions/cron.js +1 -1
- package/build/services/pipe/functions/date.js +1 -1
- package/build/services/pipe/functions/index.js +1 -1
- package/build/services/pipe/functions/json.js +1 -1
- package/build/services/pipe/functions/logical.js +1 -1
- package/build/services/pipe/functions/math.js +1 -1
- package/build/services/pipe/functions/number.js +1 -1
- package/build/services/pipe/functions/object.js +1 -1
- package/build/services/pipe/functions/string.js +1 -1
- package/build/services/pipe/functions/symbol.js +1 -1
- package/build/services/pipe/functions/unary.js +1 -1
- package/build/services/pipe/index.js +1 -1
- package/build/services/quorum/index.js +1 -1
- package/build/services/reporter/index.js +1 -1
- package/build/services/router/index.js +1 -1
- package/build/services/search/providers/postgres/postgres.js +1 -1
- package/build/services/search/providers/redis/ioredis.js +1 -1
- package/build/services/search/providers/redis/redis.js +1 -1
- package/build/services/serializer/index.js +1 -1
- package/build/services/store/providers/postgres/kvsql.js +1 -1
- package/build/services/store/providers/postgres/kvtables.js +1 -1
- package/build/services/store/providers/postgres/kvtransaction.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
- package/build/services/store/providers/postgres/postgres.js +1 -1
- package/build/services/store/providers/redis/_base.js +1 -1
- package/build/services/store/providers/redis/ioredis.js +1 -1
- package/build/services/store/providers/redis/redis.js +1 -1
- package/build/services/store/providers/store-initializable.js +1 -1
- package/build/services/stream/providers/nats/nats.js +1 -1
- package/build/services/stream/providers/postgres/kvtables.d.ts +2 -0
- package/build/services/stream/providers/postgres/kvtables.js +1 -0
- package/build/services/stream/providers/postgres/postgres.d.ts +2 -8
- package/build/services/stream/providers/postgres/postgres.js +1 -1
- package/build/services/stream/providers/redis/ioredis.js +1 -1
- package/build/services/stream/providers/redis/redis.js +1 -1
- package/build/services/stream/providers/stream-initializable.js +1 -1
- package/build/services/sub/providers/nats/nats.js +1 -1
- package/build/services/sub/providers/postgres/postgres.js +1 -1
- package/build/services/sub/providers/redis/ioredis.js +1 -1
- package/build/services/sub/providers/redis/redis.js +1 -1
- package/build/services/task/index.js +1 -1
- package/build/services/telemetry/index.d.ts +1 -1
- package/build/services/telemetry/index.js +1 -1
- package/build/services/worker/index.js +1 -1
- package/build/types/manifest.d.ts +2 -0
- package/build/types/provider.d.ts +2 -0
- package/package.json +1 -1
- package/types/manifest.ts +12 -2
- package/types/provider.ts +14 -0
- package/build/services/meshflow/workflow.d.ts +0 -35
- package/build/services/meshflow/workflow.js +0 -403
package/build/modules/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f
|
|
1
|
+
'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x18c))/0x1+parseInt(i(0x161))/0x2+-parseInt(i(0x17f))/0x3*(-parseInt(i(0x162))/0x4)+parseInt(i(0x15b))/0x5+-parseInt(i(0x175))/0x6*(-parseInt(i(0x180))/0x7)+-parseInt(i(0x18a))/0x8+parseInt(i(0x177))/0x9*(-parseInt(i(0x17b))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xb8ecf));function a(){const p=['task_lists','HOOKS','WEBSEP','../types/hotmesh','hooks',':subscriptions','facet','versions','KEYSEP','signal_patterns','streams','SYMKEYS','SCHEMAS','SUBSCRIPTION_PATTERNS','timeValue','2014705cqyAVo','APP','__esModule','scoutType','WORK_ITEMS',':w:','2161724hkRvPU','4fAudys','jobs','signals',':sym:vals:',':s:',':d:','events','SYMVALS','roles','TIME_RANGE','VALSEP','signal_registry','jobKey','sym','symbols','split','KeyType',':r:',':schemas','1794654OHUkuy','parseKey','18663471fvJQQS',':q:',':j:','SUBSCRIPTIONS','10BxAPwm','activityId','stats','JOB_STATS_INDEX','3989571dWgnoM','7OgUhlx','dateTime','applications','jobId',':v:','JOB_DEPENDENTS','STREAMS','unknown_entity','TYPSEP','engineId','11361968BkeuRr','JOB_STATS_MEDIAN','1138651CtaGkh',':t:','task_priorities','HMNS',':x:','resolveAbbreviation','join','appId','resolveEntityType','SIGNALS','hmsh',':transitions','reconstituteKey','appVersion','mintKey','throttles','KeyService','task_schedules',':signals','QUORUM','THROTTLE_RATE',':a:'];a=function(){return p;};return a();}Object['defineProperty'](exports,j(0x15d),{'value':!![]}),exports[j(0x16c)]=exports[j(0x14e)]=exports[j(0x188)]=exports[j(0x154)]=exports['HMNS']=exports[j(0x172)]=exports[j(0x146)]=void 0x0;const hotmesh_1=require(j(0x14f));Object['defineProperty'](exports,j(0x172),{'enumerable':!![],'get':function(){const k=j;return hotmesh_1[k(0x172)];}});const HMNS=j(0x140);exports[j(0x139)]=HMNS;function b(c,d){const e=a();return b=function(f,g){f=f-0x138;let h=e[f];return h;},b(c,d);}const KEYSEP=':';exports['KEYSEP']=KEYSEP;const VALSEP='::';exports[j(0x16c)]=VALSEP;const WEBSEP='::';exports['WEBSEP']=WEBSEP;const TYPSEP='::';exports['TYPSEP']=TYPSEP;class KeyService{static[j(0x144)](c,d,e){const l=j;switch(d){case hotmesh_1[l(0x172)]['HOTMESH']:return c;case hotmesh_1[l(0x172)][l(0x14a)]:return c+':'+e[l(0x13d)]+l(0x173);case hotmesh_1[l(0x172)][l(0x15f)]:return c+':'+e[l(0x13d)]+l(0x160)+(e[l(0x15e)]||'');case hotmesh_1['KeyType'][l(0x16b)]:return c+':'+e['appId']+l(0x18d)+(e[l(0x15a)]||'');case hotmesh_1['KeyType'][l(0x15c)]:return c+l(0x14b)+(e[l(0x13d)]||'');case hotmesh_1[l(0x172)][l(0x149)]:return c+':'+e[l(0x13d)]+l(0x178)+(e[l(0x189)]||'');case hotmesh_1[l(0x172)]['JOB_STATE']:return c+':'+e[l(0x13d)]+l(0x179)+e[l(0x183)];case hotmesh_1[l(0x172)][l(0x185)]:return c+':'+e['appId']+l(0x167)+e['jobId'];case hotmesh_1[l(0x172)]['JOB_STATS_GENERAL']:return c+':'+e[l(0x13d)]+l(0x166)+e['jobKey']+':'+e[l(0x181)];case hotmesh_1[l(0x172)][l(0x18b)]:return c+':'+e[l(0x13d)]+l(0x166)+e[l(0x16e)]+':'+e[l(0x181)]+':'+e[l(0x152)];case hotmesh_1[l(0x172)][l(0x17e)]:return c+':'+e[l(0x13d)]+l(0x166)+e[l(0x16e)]+':'+e[l(0x181)]+':'+e[l(0x152)];case hotmesh_1[l(0x172)][l(0x158)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x174);case hotmesh_1[l(0x172)][l(0x17a)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x151);case hotmesh_1[l(0x172)][l(0x159)]:return c+':'+e[l(0x13d)]+l(0x184)+e[l(0x143)]+l(0x141);case hotmesh_1[l(0x172)][l(0x14d)]:return c+':'+e[l(0x13d)]+':hooks';case hotmesh_1[l(0x172)][l(0x13f)]:return c+':'+e['appId']+l(0x148);case hotmesh_1[l(0x172)][l(0x157)]:return c+':'+e[l(0x13d)]+':sym:keys:'+(e[l(0x17c)]||'');case hotmesh_1[l(0x172)][l(0x169)]:return c+':'+e['appId']+l(0x165);case hotmesh_1[l(0x172)][l(0x186)]:return c+':'+(e['appId']||'')+l(0x13a)+(e['topic']||'');default:throw new Error('Invalid\x20key\x20type.');}}static[j(0x176)](c){const m=j,[d,e,f,...g]=c[m(0x171)](KEYSEP),h=g[m(0x13c)](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static[j(0x142)](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static[j(0x13e)](c,d=''){const n=j;switch(c){case'a':return'applications';case'r':return n(0x145);case'w':return d===''?n(0x138):n(0x16a);case't':return d===''?'task_schedules':n(0x14c);case'q':return n(0x168);case'j':return n(0x163);case's':return n(0x17d);case'v':return n(0x153);case'x':return d===''?'streams':'stream_topics';case n(0x150):return n(0x155);case n(0x164):return n(0x16d);case n(0x16f):return n(0x170);default:return'unknown_entity';}}static[j(0x13b)](c){const o=j;switch(c){case o(0x182):return'a';case o(0x145):return'r';case'roles':return'w';case o(0x147):return't';case o(0x14c):return't';case o(0x168):return'q';case o(0x163):return'j';case o(0x17d):return's';case o(0x153):return'v';case o(0x156):return'x';case o(0x155):return o(0x150);case o(0x16d):return o(0x164);case o(0x170):return o(0x16f);default:return o(0x187);}}}exports[j(0x146)]=KeyService;
|
package/build/modules/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const p=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(
|
|
1
|
+
'use strict';const p=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x1fb))/0x1+-parseInt(n(0x1e9))/0x2+-parseInt(n(0x1db))/0x3+parseInt(n(0x1fc))/0x4*(-parseInt(n(0x1e2))/0x5)+-parseInt(n(0x225))/0x6+-parseInt(n(0x1cf))/0x7+-parseInt(n(0x205))/0x8*(-parseInt(n(0x219))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcccaa));var __importDefault=this&&this['__importDefault']||function(c){const o=b;return c&&c[o(0x1f0)]?c:{'default':c};};function a(){const L=['floor','database','nats','hotmesh','2039157ZvxeyA','Number\x20out\x20of\x20range','slice','utils','replace','toFixed','findSubscriptionForTrigger','610khljUd','toString','connection','EventEmitter','sleepImmediate','idleCount','keys','1911478YxQgrD','hex','getTimeSeries','sin','parseStreamMessage','identifyProvider','deepCopy','__esModule','isArray','hset','default','restoreHierarchy','hashOptions','Redis','test','length','arrayToHash','getSymKey','637409ppcOlO','13736ljVMJm','Commander','polyfill','defineProperty','getSubscriptions','string','Pipeline','update','split','552sMlooP','postgres','constructor','sha256','toISOString','getIndexedHash','infinity','createClient','Error\x20parsing\x20Stream\x20message','LoggerService','Query','name','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','freemem','\x20GB','sleepFor','includes','guid','formatISODate','setUTCMinutes','466551QVUCGS','getPrototypeOf','error','digest','findTopKey','redis','crypto','isValidCron','getMinutes','stringify','multi','Pool','4963860OSMBLN','XSleepFor','hasOwnProperty','isStreamMessage','../services/logger','ioredis','createHash','connections','getSubscriptionTopic','pow','HMSH_GUID_SIZE','3456306wEVkoE','parse','nanoid','getValueByPath','deterministicRandom','matchesStatus','getTransitions','matchesStatusCode'];a=function(){return L;};return a();}Object[p(0x1ff)](exports,'__esModule',{'value':!![]}),exports[p(0x1f9)]=exports[p(0x228)]=exports[p(0x1ed)]=exports['s']=exports[p(0x220)]=exports[p(0x1f4)]=exports[p(0x1d2)]=exports[p(0x20a)]=exports['getSymVal']=exports[p(0x1fa)]=exports[p(0x217)]=exports[p(0x1eb)]=exports[p(0x1cc)]=exports[p(0x1e1)]=exports[p(0x21d)]=exports['matchesStatus']=exports[p(0x1d6)]=exports['polyfill']=exports[p(0x1ee)]=exports['XSleepFor']=exports[p(0x1e6)]=exports['sleepFor']=exports[p(0x216)]=exports[p(0x1d3)]=exports[p(0x1ef)]=exports['getSystemHealth']=exports['hashOptions']=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(p(0x21f)),nanoid_1=require(p(0x1d1)),ms_1=__importDefault(require('ms')),logger_1=require(p(0x229)),enums_1=require('./enums'),logger=new logger_1[(p(0x20e))](p(0x1da),p(0x1de)),hashOptions=c=>{const q=p,d=JSON['stringify'](c);return(0x0,crypto_1[q(0x22b)])(q(0x208))[q(0x203)](d)[q(0x21c)](q(0x1ea));};exports[p(0x1f5)]=hashOptions;async function getSystemHealth(){const r=p,c=os_1[r(0x1f3)]['totalmem'](),d=os_1[r(0x1f3)][r(0x212)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)[r(0x1e0)](0x2)+r(0x213),'FreeMemoryGB':(d/0x400/0x400/0x400)['toFixed'](0x2)+'\x20GB','UsedMemoryGB':(e/0x400/0x400/0x400)[r(0x1e0)](0x2)+r(0x213),'CPULoad':[],'NetworkStats':[]};return f;}exports['getSystemHealth']=getSystemHealth;function deepCopy(c){const t=p;return JSON[t(0x1d0)](JSON[t(0x222)](c));}exports[p(0x1ef)]=deepCopy;function deterministicRandom(c){const u=p,d=Math[u(0x1ec)](c)*0x2710;return d-Math[u(0x1d7)](d);}exports[p(0x1d3)]=deterministicRandom;function guid(c=enums_1[p(0x1ce)]){return'H'+(0x0,nanoid_1['nanoid'])(c);}exports[p(0x216)]=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports[p(0x214)]=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports[p(0x1e6)]=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[p(0x226)]=XSleepFor;function identifyProvider(c){const v=p,d=Object[v(0x21a)](c);if(c[v(0x20f)]?.['prototype']||Object[v(0x1e8)](c)[v(0x215)](v(0x1d8))||d[v(0x210)]===v(0x224))return v(0x206);else{if(c[v(0x1e3)]()['toLowerCase']()[v(0x215)]('nats'))return v(0x1d9);else{if('defineCommand'in d||Object[v(0x1e8)](d)['includes'](v(0x223)))return'ioredis';else{if(Object[v(0x1e8)](d)[v(0x215)]('Multi'))return v(0x21e);}}}if(c[v(0x207)]){if(c[v(0x207)][v(0x210)]===v(0x1f6)||c[v(0x207)][v(0x210)]===v(0x1e5)){if(v(0x1f2)in c)return v(0x22a);}else{if(c[v(0x207)][v(0x210)]==='ProviderClient'||c[v(0x207)][v(0x210)]===v(0x1fd)){if('HSET'in c)return v(0x21e);}}}let e=null;if(Object[v(0x1e8)](c)['includes'](v(0x1e4))||!isNaN(c['totalCount'])&&!isNaN(c[v(0x1e7)]))e=v(0x206);else{if(Object[v(0x1e8)](c)[v(0x215)](v(0x202)))e=v(0x22a);else{if(Object[v(0x1e8)](c)[v(0x215)](v(0x20c)))e=v(0x21e);else d['constructor'][v(0x1e3)]()[v(0x215)]('NatsConnectionImpl')&&(e=v(0x1d9));}}return e;}exports[p(0x1ee)]=identifyProvider,exports[p(0x1fe)]={'providerConfig'(c){const w=p;return c?.[w(0x1e4)]??c?.[w(0x21e)]??c?.[w(0x22c)];},'meshDataConfig'(c){return{...c['connection']};}};function matchesStatusCode(c,d){const x=p;if(typeof d===x(0x201)){const e='^'+d[x(0x1df)](/\*/g,'\x5cd')+'$';return new RegExp(e)[x(0x1f7)](c['toString']());}return d[x(0x1f7)](c[x(0x1e3)]());}exports[p(0x1d6)]=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[p(0x1d4)]=matchesStatus;function findTopKey(c,d){const y=p;for(const [e,f]of Object['entries'](c)){if(f[y(0x227)](d)){const g=findTopKey(c,e['replace'](/^\./,''));return(g||e)['replace'](/^\./,'');}}return null;}exports[p(0x21d)]=findTopKey;function findSubscriptionForTrigger(c,d){for(const [e,f]of Object['entries'](c)){if(f===d)return e;}return null;}exports['findSubscriptionForTrigger']=findSubscriptionForTrigger;function b(c,d){const e=a();return b=function(f,g){f=f-0x1cc;let h=e[f];return h;},b(c,d);}async function getSubscriptionTopic(c,d,e){const z=p,f=await d[z(0x1d5)](e),g=await d[z(0x200)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[p(0x1cc)]=getSubscriptionTopic;function getTimeSeries(c){const A=p;if(c[A(0x1e3)]()===A(0x20b))return'0';const d=new Date(),e=c[A(0x1dd)](-0x1),f=parseInt(c['slice'](0x0,-0x1),0xa);if(e==='m'){const g=Math[A(0x1d7)](d[A(0x221)]()/f)*f;d['setUTCMinutes'](g,0x0,0x0);}else e==='h'&&d[A(0x218)](0x0,0x0,0x0);return d[A(0x209)]()[A(0x1df)](/:\d\d\..+|-|T/g,'')[A(0x1df)](':','');}exports['getTimeSeries']=getTimeSeries;function formatISODate(c){const B=p,d=c instanceof Date?c:new Date(c);return d[B(0x209)]()[B(0x1df)](/[:TZ-]/g,'');}exports[p(0x217)]=formatISODate;function getSymKey(c){const C=p,d=C(0x211),e=d[C(0x1f8)];if(c<0x0||c>=Math[C(0x1cd)](e,0x3))throw new Error(C(0x1dc));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports[p(0x1fa)]=getSymKey;function getSymVal(c){const D=p,d=D(0x211),e=d[D(0x1f8)];if(c<0x0||c>=Math[D(0x1cd)](e,0x2))throw new Error(D(0x1dc));const [f,g]=divmod(c,e);return d[f]+d[g];}exports['getSymVal']=getSymVal;function divmod(c,d){return[Math['floor'](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports[p(0x20a)]=getIndexedHash;function getValueByPath(c,d){const E=p,e=d[E(0x204)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports[p(0x1d2)]=getValueByPath;function restoreHierarchy(c){const F=p,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[F(0x204)]('/');let g=d;for(let h=0x0;h<f['length'];h++){h===f[F(0x1f8)]-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[p(0x1f4)]=restoreHierarchy;function isValidCron(c){const G=p,d=/^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([12]?\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6](?:-[0-6])?(?:,[0-6])?))$/;return d[G(0x1f7)](c);}exports[p(0x220)]=isValidCron;const s=c=>{const H=p;return(0x0,ms_1[H(0x1f3)])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const I=p;try{return JSON[I(0x1d0)](c);}catch(d){logger[I(0x21b)](I(0x20d),{'error':d});throw d;}};exports['parseStreamMessage']=parseStreamMessage;const isStreamMessage=c=>{const J=p;return Array['isArray'](c)&&Array[J(0x1f1)](c[0x0]);};exports[p(0x228)]=isStreamMessage;const arrayToHash=c=>{const K=p,d=[];let e;for(let f=0x1;f<c[K(0x1f8)];f++){const g=c[f],h={};if(Array['isArray'](g)){for(let k=0x0;k<g[K(0x1f8)];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d['push'](h),e=undefined;}else e=g;}return d;};exports['arrayToHash']=arrayToHash;
|
package/build/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const p=b;function a(){const a3=['268WBWjIb','MapperService','SUCCESS','setLeg','PENDING','stack','startsWith','shouldEmit','context','setStatus','jid','persist','/output/metadata/dad','getState','leg','getValueByPath','registerTimeout','process-event-generational-job-error','stp','transitionAdjacent','bindJobMetadata','stringify','setActivityError','getDimensionsById','../telemetry','bindDimensionalAddress','activity-process-event','substring','atp','assertGenerationalId','376iCfHWi','dad','12AfrXSL','getSchema','error','1268022FxjqEV','CollatorService','17445Xrgrad','GenerationalError','MDATA_SYMBOLS','resolve','output','CollationError','maps','process-event-inactive-job-error','/output/metadata/as','getTriggerConfig','assertJobActive','indexOf','Activity','processPending','data','31059lNsuBT','resolveStatus','verifyEntry','adjacentIndex','mapStatusThreshold','TelemetryService','endActivitySpan','ACTIVITY_UPDATE','GetStateError','job','initDimensionalAddress','formatISODate','bindActivityMetadataPaths','router','setState','366125iBjLhu','input','keys','addTargetTelemetryPaths','debug','getDimensionalSeed','resolveAdjacentDad','trigger','getDimensionalIndex','app.activity.mids','produces','type','activity-process-event-end','output/metadata/','2165Rziapm','forEach','engine','metadata/','filterAdjacent','config','statusThreshold','bindJobState','metadata','emit','persistent','consumes','4983100DNdgVM','HMSH_EXPIRE_DURATION','split','getSeed','process-event-','processError','bindJobTelemetryToState','318031uoylVM','subtype','notarizeCompletion','bindActivityMetadata','message','mapJobData','$error','getTransitions','deepCopy','push','processSuccess','code','../collator','initPolicies','bindActivityData','activity-process-event-error','defineProperty','transact','getVID','transition','../../modules/enums','notarizeReentry','$job','JOB_UPDATE','jobWasInterrupted','notarizeEntry','name','TRANSITION','authorizeEntry','adjacencyList','runJobCompletionTasks','status','aid','shouldPersistJob','JOB','__esModule','isJobComplete','../../modules/utils','../mapper','../../modules/errors','PRODUCES','initSelf','verifyReentry','bindActivityState','StreamStatus','getJobStatus','resolveDad','l2s','gid','../serializer','store','hook','ACTIVITY','logger','-error','KEYS','Pipe','process-event-get-job-error','StreamDataType','appId','exec','ERROR','trc','length','info','subscribes','evaluate','mapRules','ancestors','$self','startActivitySpan','map'];a=function(){return a3;};return a();}(function(c,d){const o=b,e=c();while(!![]){try{const f=-parseInt(o(0x260))/0x1*(-parseInt(o(0x22f))/0x2)+-parseInt(o(0x234))/0x3*(parseInt(o(0x20f))/0x4)+parseInt(o(0x252))/0x5+parseInt(o(0x232))/0x6+-parseInt(o(0x273))/0x7+parseInt(o(0x22d))/0x8*(-parseInt(o(0x243))/0x9)+parseInt(o(0x26c))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x307e3));Object[p(0x283)](exports,p(0x1ea),{'value':!![]}),exports[p(0x240)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x1e1;let h=e[f];return h;},b(c,d);}const enums_1=require(p(0x287)),errors_1=require(p(0x1ee)),utils_1=require(p(0x1ec)),collator_1=require(p(0x27f)),mapper_1=require(p(0x1ed)),pipe_1=require('../pipe'),serializer_1=require(p(0x1f8)),telemetry_1=require(p(0x227)),stream_1=require('../../types/stream');class Activity{constructor(c,d,e,f,g,h){const q=p;this['status']=stream_1[q(0x1f3)][q(0x211)],this[q(0x27e)]=0xc8,this[q(0x246)]=0x0,this['config']=c,this[q(0x242)]=d,this['metadata']=e,this[q(0x1fa)]=f,this['engine']=g,this[q(0x217)]=h||{'data':{},'metadata':{}},this[q(0x1fc)]=g[q(0x1fc)],this[q(0x1f9)]=g[q(0x1f9)];}[p(0x212)](c){const r=p;this[r(0x21d)]=c;}[p(0x247)](){const s=p;if(this[s(0x265)]['statusThreshold']!==undefined){const c=pipe_1['Pipe']['resolve'](this[s(0x265)][s(0x266)],this[s(0x217)]);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async[p(0x245)](){const t=p;this[t(0x212)](0x1),await this[t(0x21c)]();const c=this['mapStatusThreshold']();try{collator_1[t(0x233)][t(0x23e)](this['context'][t(0x268)]['js'],this[t(0x217)][t(0x268)][t(0x219)],this[t(0x268)][t(0x1e7)],c);}catch(d){await collator_1[t(0x233)][t(0x28c)](this);if(c>0x0){if(this['context']['metadata']['js']===c){const e=await this[t(0x218)](-c);Number(e)===0x0&&await this[t(0x262)][t(0x1e5)](this[t(0x217)]);}}else throw d;return;}await collator_1[t(0x233)][t(0x28c)](this);}async['verifyReentry'](){const u=p,c=this[u(0x217)][u(0x268)]['guid'];return this[u(0x212)](0x2),await this['getState'](),collator_1['CollatorService'][u(0x23e)](this[u(0x217)][u(0x268)]['js'],this[u(0x217)][u(0x268)][u(0x219)],this[u(0x268)][u(0x1e7)]),await collator_1[u(0x233)][u(0x288)](this,c);}async['processEvent'](c=stream_1[p(0x1f3)][p(0x211)],d=0xc8,e=p(0x238)){const v=p;this[v(0x212)](0x2);const f=this[v(0x217)][v(0x268)]['jid'];if(!f){this[v(0x1fc)][v(0x231)]('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const g=this['metadata']['aid'];this[v(0x1e6)]=c,this['code']=d,this[v(0x1fc)][v(0x256)](v(0x229),{'topic':this[v(0x265)][v(0x274)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0x1f1)]();this['adjacentIndex']=collator_1[v(0x233)][v(0x25a)](i),h=new telemetry_1[(v(0x248))](this[v(0x262)][v(0x202)],this[v(0x265)],this[v(0x268)],this[v(0x217)]),h[v(0x20d)](this[v(0x21d)]);let j;if(c===stream_1[v(0x1f3)][v(0x213)])j=await this[v(0x241)](e);else c===stream_1[v(0x1f3)][v(0x211)]?j=await this[v(0x27d)](e):j=await this[v(0x271)]();this[v(0x222)](j,h);}catch(k){if(k instanceof errors_1[v(0x239)]){this['logger'][v(0x207)](v(0x270)+k['fault']+v(0x1fd),{'error':k});return;}else{if(k instanceof errors_1['InactiveJobError']){this[v(0x1fc)]['info'](v(0x23b),{'error':k});return;}else{if(k instanceof errors_1[v(0x235)]){this[v(0x1fc)][v(0x207)](v(0x220),{'error':k});return;}else{if(k instanceof errors_1[v(0x24b)]){this[v(0x1fc)][v(0x207)](v(0x200),{'error':k});return;}}}}this[v(0x1fc)]['error'](v(0x282),{'error':k,'message':k['message'],'stack':k[v(0x214)],'name':k[v(0x1e1)]}),h?.[v(0x225)](k[v(0x277)]);throw k;}finally{h?.[v(0x249)](),this['logger']['debug'](v(0x25e),{'jid':f,'aid':g});}}async[p(0x241)](c){const w=p;this['bindActivityData'](c),this[w(0x1e4)]=await this['filterAdjacent'](),this[w(0x278)]();const d=this['store'][w(0x284)]();return await this[w(0x251)](d),await collator_1[w(0x233)]['notarizeContinuation'](this,d),await this[w(0x218)](this[w(0x1e4)][w(0x206)],d),await d[w(0x203)]();}async[p(0x27d)](c){const x=p;this[x(0x281)](c),this['adjacencyList']=await this[x(0x264)](),this[x(0x278)]();const d=this[x(0x1f9)]['transact']();return await this[x(0x251)](d),await collator_1['CollatorService'][x(0x275)](this,d),await this[x(0x218)](this[x(0x1e4)][x(0x206)]-0x1,d),await d[x(0x203)]();}async[p(0x271)](){const y=p;this['bindActivityError'](this['data']),this[y(0x1e4)]=await this['filterAdjacent']();!this[y(0x1e4)][y(0x206)]&&this['bindJobError'](this['data']);this[y(0x278)]();const c=this[y(0x1f9)]['transact']();return await this[y(0x251)](c),await collator_1[y(0x233)][y(0x275)](this,c),await this[y(0x218)](this[y(0x1e4)][y(0x206)]-0x1,c),await c['exec']();}async[p(0x222)](c,d){const z=p;d['mapActivityAttributes']();const e=this[z(0x244)](c),f={'app.job.jss':e},g=await this[z(0x286)](this[z(0x1e4)],e);g?.[z(0x206)]&&(f[z(0x25b)]=g['join'](',')),d['setActivityAttributes'](f);}[p(0x244)](c){const d=c[c['length']-0x1];return Array['isArray'](d)?Number(d[0x1]):Number(d);}[p(0x278)](){const A=p;if(this[A(0x265)][A(0x24c)]?.[A(0x23a)]){const c=new mapper_1[(A(0x210))]((0x0,utils_1[A(0x27b)])(this[A(0x265)][A(0x24c)][A(0x23a)]),this[A(0x217)]),d=c[A(0x20a)]();if(d)for(const e in d){const f=e[A(0x23f)]('[');if(f>-0x1){const g=e[A(0x22a)](f+0x1)[A(0x26e)](']')[0x0];if(!isNaN(Number(g))){const h=e[A(0x22a)](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[A(0x254)](i)[A(0x261)](j=>{d[j]=i[j];});}}}}this['context'][A(0x242)]=d;}}['mapInputData'](){const B=p;if(this['config'][B(0x253)]?.[B(0x23a)]){const c=new mapper_1[(B(0x210))]((0x0,utils_1[B(0x27b)])(this[B(0x265)]['input']['maps']),this[B(0x217)]);this['context'][B(0x242)]=c[B(0x20a)]();}}['mapOutputData'](){const C=p;if(this[C(0x265)][C(0x238)]?.[C(0x23a)]){const c=new mapper_1[(C(0x210))]((0x0,utils_1[C(0x27b)])(this[C(0x265)][C(0x238)][C(0x23a)]),this[C(0x217)]),d=c[C(0x20a)](),e=this[C(0x268)]['aid'],f={...this[C(0x217)][e]['output'],...d};this[C(0x217)][e]['output'][C(0x242)]=f;}}async[p(0x21f)](){}['bindActivityError'](c){const D=p,d=this[D(0x217)][this['metadata'][D(0x1e7)]][D(0x238)]['metadata'];d['err']=JSON[D(0x224)](this[D(0x242)]),d[D(0x279)]={...c,'is_stream_error':!![]};}['bindJobError'](c){const E=p;this[E(0x217)][E(0x268)]['err']=JSON[E(0x224)]({...c,'is_stream_error':!![]});}async[p(0x23d)](){const F=p;return await this[F(0x1f9)][F(0x230)](this[F(0x265)][F(0x259)],await this[F(0x262)][F(0x285)]());}[p(0x1f4)](){return null;}async[p(0x218)](c,d){const G=p,{id:e}=await this[G(0x262)][G(0x285)]();return await this[G(0x1f9)][G(0x218)](c,this[G(0x217)]['metadata']['jid'],e,d);}[p(0x1e3)](c){const H=p;return this[H(0x1e4)]?.['map'](d=>{const I=H,{metadata:{aid:e}}=d;return c[e+I(0x23c)]=collator_1[I(0x233)][I(0x26f)](),e;})??[];}[p(0x228)](c){const J=p,d=this[J(0x1f5)]();c[this[J(0x268)]['aid']+J(0x21b)]=d;}async[p(0x251)](c){const K=p,d=this[K(0x217)][K(0x268)][K(0x219)];this[K(0x223)](),this[K(0x276)]();const e={};await this[K(0x267)](e);const f=this[K(0x1e3)](e);this[K(0x228)](e),this[K(0x1f2)](e);const g=['$'+this[K(0x265)][K(0x208)],this[K(0x268)][K(0x1e7)],...f],h=collator_1[K(0x233)][K(0x226)]([...this['config'][K(0x20b)],this['metadata'][K(0x1e7)]],this[K(0x1f5)]());return await this[K(0x1f9)][K(0x251)](e,this[K(0x1f4)](),d,g,h,c);}[p(0x223)](){const L=p;this[L(0x217)][L(0x268)]['ju']=(0x0,utils_1[L(0x24e)])(new Date());}['bindActivityMetadata'](){const M=p,c=this[M(0x217)][M(0x20c)];!c['output'][M(0x268)]&&(c[M(0x238)]['metadata']={});this[M(0x1e6)]===stream_1[M(0x1f3)][M(0x204)]&&(c[M(0x238)][M(0x268)]['err']=JSON[M(0x224)](this['data']));const d=(0x0,utils_1[M(0x24e)])(new Date());c['output'][M(0x268)]['ac']=d,c[M(0x238)][M(0x268)]['au']=d,c[M(0x238)]['metadata'][M(0x22b)]=this[M(0x265)][M(0x25d)],this[M(0x265)][M(0x274)]&&(c[M(0x238)][M(0x268)][M(0x221)]=this[M(0x265)][M(0x274)]),c['output'][M(0x268)][M(0x1e7)]=this[M(0x268)][M(0x1e7)];}async['bindJobState'](c){const N=p,d=await this[N(0x23d)](),e=[...d[N(0x1ef)]||[],...this['bindJobMetadataPaths']()];for(const f of e){const g=(0x0,utils_1[N(0x21e)])(this[N(0x217)],f);g!==undefined&&(c[f]=g);}for(const h in this[N(0x217)]?.[N(0x242)]??{}){(h[N(0x215)]('-')||h[N(0x215)]('_'))&&(c[h]=this[N(0x217)][N(0x242)][h]);}telemetry_1[N(0x248)][N(0x272)](c,this[N(0x265)],this['context']);}['bindActivityState'](c){const O=p,d=[...this[O(0x265)][O(0x25c)],...this[O(0x24f)]()];for(const e of d){const f=this[O(0x268)]['aid']+'/'+e,g=(0x0,utils_1[O(0x21e)])(this[O(0x217)],f);g!==undefined&&(c[f]=g);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](c,this[O(0x265)],this[O(0x268)],this[O(0x217)],this['leg']);}['bindJobMetadataPaths'](){const P=p;return serializer_1[P(0x236)][P(0x28a)][P(0x1fe)]['map'](c=>P(0x263)+c);}[p(0x24f)](){const Q=p,c=this[Q(0x21d)]===0x1?Q(0x1fb):Q(0x24a);return serializer_1[Q(0x236)][c][Q(0x1fe)]['map'](d=>Q(0x25f)+d);}async['getState'](){const R=p,c=this[R(0x217)][R(0x268)][R(0x1f7)],d='$'+this['config'][R(0x208)],e={[d]:serializer_1[R(0x236)][R(0x1e9)][R(0x1fe)][R(0x20e)](k=>R(0x263)+k)};for(let [k,l]of Object['entries'](this[R(0x265)][R(0x26b)])){if(k===R(0x289))for(const m of l){e[d][R(0x27c)](m);}else{k===R(0x20c)&&(k=this[R(0x268)][R(0x1e7)]);!e[k]&&(e[k]=[]);for(const n of l){e[k][R(0x27c)](k+'/'+n);}}}telemetry_1[R(0x248)][R(0x255)](e,this[R(0x265)],this[R(0x268)],this[R(0x21d)]);const {dad:f,jid:g}=this[R(0x217)][R(0x268)],h=collator_1[R(0x233)][R(0x226)]([...this[R(0x265)]['ancestors'],this[R(0x268)][R(0x1e7)]],f||''),[i,j]=await this[R(0x1f9)]['getState'](g,e,h);this[R(0x217)]=(0x0,utils_1['restoreHierarchy'])(i),this[R(0x22c)](this[R(0x217)]?.[R(0x268)]?.['gid'],c),this['initDimensionalAddress'](f),this[R(0x1f0)](this[R(0x217)]),this[R(0x280)](this[R(0x217)]);}['assertGenerationalId'](c,d){const S=p;if(d!==c)throw new errors_1[(S(0x235))](c,d,this[S(0x217)]?.['metadata']?.[S(0x219)]??'',this['context']?.[S(0x268)]?.['aid']??'',this[S(0x217)]?.[S(0x268)]?.[S(0x22e)]??'');}[p(0x24d)](c){const T=p;this['metadata'][T(0x22e)]=c;}['initSelf'](c){const U=p,d=this[U(0x268)][U(0x1e7)];!c[d]&&(c[d]={});const e=c[d];return!e['output']&&(e[U(0x238)]={}),!e['input']&&(e[U(0x253)]={}),!e[U(0x1fa)]&&(e[U(0x1fa)]={}),!e[U(0x238)][U(0x268)]&&(e['output'][U(0x268)]={}),e['output'][U(0x268)]['au']=(0x0,utils_1[U(0x24e)])(new Date()),c[U(0x20c)]=e,c[U(0x289)]=c,c;}[p(0x280)](c){const V=p,d=pipe_1[V(0x1ff)][V(0x237)](this[V(0x265)]['expire']??enums_1[V(0x26d)],c);c[V(0x268)]['expire']=d;if(this[V(0x265)][V(0x26a)]!=undefined){const e=pipe_1[V(0x1ff)][V(0x237)](this[V(0x265)][V(0x26a)]??![],c);c['metadata'][V(0x26a)]=e;}}[p(0x281)](c){const W=p;this[W(0x217)][this[W(0x268)]['aid']][c][W(0x242)]=this['data'];}[p(0x1f5)](){const X=p;let c=this['metadata'][X(0x22e)];return this[X(0x246)]>0x0&&(c=c[X(0x22a)](0x0,c['lastIndexOf'](','))+','+this[X(0x246)]),c;}[p(0x258)](){const Y=p;return''+this[Y(0x1f5)]()+collator_1['CollatorService'][Y(0x257)](0x0);}async['filterAdjacent'](){const Z=p,c=[],d=await this['store'][Z(0x27a)](await this[Z(0x262)][Z(0x285)]()),e=d['.'+this['metadata'][Z(0x1e7)]],f=this['resolveAdjacentDad']();if(e)for(const g in e){const h=e[g];mapper_1[Z(0x210)][Z(0x209)](h,this[Z(0x217)],this['code'])&&c[Z(0x27c)]({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[Z(0x217)][Z(0x268)][Z(0x219)],'gid':this['context'][Z(0x268)][Z(0x1f7)],'dad':f,'aid':g,'spn':this['context'][Z(0x20c)]['output']['metadata']?.[Z(0x1f6)],'trc':this[Z(0x217)][Z(0x268)][Z(0x205)]},'type':stream_1[Z(0x201)][Z(0x1e2)],'data':{}});}return c;}[p(0x1eb)](c){return c<=0x0;}[p(0x216)](){const a0=p;if(this[a0(0x265)][a0(0x269)])return pipe_1[a0(0x1ff)][a0(0x237)](this[a0(0x265)][a0(0x269)],this[a0(0x217)])===!![];return![];}[p(0x1e8)](){const a1=p;if(this['config'][a1(0x21a)]!==undefined)return pipe_1['Pipe'][a1(0x237)](this[a1(0x265)][a1(0x21a)],this['context'])===!![];return![];}async[p(0x286)](c,d){const a2=p;if(this[a2(0x28b)](d))return;let e=[];(this[a2(0x216)]()||this[a2(0x1eb)](d)||this['shouldPersistJob']())&&await this['engine'][a2(0x1e5)](this[a2(0x217)],{'emit':!this[a2(0x1eb)](d)&&!this['shouldPersistJob']()});if(c[a2(0x206)]&&!this['isJobComplete'](d)){const f=this['store'][a2(0x284)]();for(const g of c){await this['engine'][a2(0x250)]?.['publishMessage'](null,g,f);}e=await f[a2(0x203)]();}return e;}[p(0x28b)](c){return c<-0x5f5e100;}}exports[p(0x240)]=Activity;
|
|
1
|
+
'use strict';const p=b;(function(c,d){const o=b,e=c();while(!![]){try{const f=parseInt(o(0x1ae))/0x1+parseInt(o(0x188))/0x2*(parseInt(o(0x1c9))/0x3)+parseInt(o(0x1ce))/0x4+-parseInt(o(0x1c3))/0x5*(parseInt(o(0x185))/0x6)+-parseInt(o(0x156))/0x7+-parseInt(o(0x1b1))/0x8*(-parseInt(o(0x1a1))/0x9)+-parseInt(o(0x1ca))/0xa*(parseInt(o(0x130))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x66519));function a(){const a4=['CollatorService','737nNBorO','$job','processSuccess','publishMessage','job','atp','runJobCompletionTasks','setState','../../modules/errors','resolveStatus','$self','processError','getDimensionalIndex','Pipe','defineProperty','activity-process-event-error','adjacentIndex','getTransitions','getState','store','metadata','error','mapJobData','GetStateError','evaluate','input','CollationError','assertJobActive','context','produces','MDATA_SYMBOLS','notarizeCompletion','getDimensionsById','bindActivityData','subtype','notarizeContinuation','ancestors','bindDimensionalAddress','2735999coAsgG','getJobStatus','notarizeEntry','verifyReentry','../../modules/enums','initDimensionalAddress','../pipe','metadata/','l2s','persist','lastIndexOf','formatISODate','bindJobMetadataPaths','ACTIVITY_UPDATE','expire','trigger','bindActivityMetadata','maps','setStatus','resolveAdjacentDad','gid','mapOutputData','addTargetTelemetryPaths','activity-process-event','length','bindActivityTelemetryToState','bindJobState','bindJobMetadata','setLeg','map','debug','setActivityError','Activity','/output/metadata/dad','dad','InactiveJobError','status','startsWith','MapperService','setActivityAttributes','output','../mapper','hook','processEvent','shouldPersistJob','indexOf','registerTimeout','1818cYzYEA','HMSH_EXPIRE_DURATION','info','1283170tkGYQh','trc','jobWasInterrupted','bindActivityError','type','mapActivityAttributes','mapRules','endActivitySpan','resolve','GenerationalError','restoreHierarchy','aid','adjacencyList','getValueByPath','-error','process-event-','logger','stack','exec','substring','bindActivityMetadataPaths','fault','filterAdjacent','PRODUCES','getVID','2471373fSduas','job\x20id\x20is\x20undefined','message','activity-process-event-end','../collator','statusThreshold','initPolicies','notarizeReentry','deepCopy','leg','mapInputData','authorizeEntry','stringify','249580dWFgdP','data','startActivitySpan','16wSyxkR','initSelf','join','engine','mapStatusThreshold','TRANSITION','subscribes','output/metadata/','push','assertGenerationalId','../telemetry','jid','StreamDataType','shouldEmit','KEYS','isArray','isJobComplete','StreamStatus','13705KyZWjD','split','PENDING','SUCCESS','transact','appId','3CKdOWi','17550UHdNUm','err','$error','resolveDad','1270812ycMFMa','getDimensionalSeed','transition','keys','__esModule','../../types/stream','persistent','guid','config','TelemetryService','../serializer'];a=function(){return a4;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0x126;let h=e[f];return h;},b(c,d);}Object[p(0x13e)](exports,p(0x128),{'value':!![]}),exports[p(0x176)]=void 0x0;const enums_1=require(p(0x15a)),errors_1=require(p(0x138)),utils_1=require('../../modules/utils'),collator_1=require(p(0x1a5)),mapper_1=require(p(0x17f)),pipe_1=require(p(0x15c)),serializer_1=require(p(0x12e)),telemetry_1=require(p(0x1bb)),stream_1=require(p(0x129));class Activity{constructor(c,d,e,f,g,h){const q=p;this[q(0x17a)]=stream_1[q(0x1c2)]['SUCCESS'],this['code']=0xc8,this[q(0x140)]=0x0,this[q(0x12c)]=c,this[q(0x1af)]=d,this[q(0x144)]=e,this[q(0x180)]=f,this[q(0x1b4)]=g,this['context']=h||{'data':{},'metadata':{}},this[q(0x198)]=g[q(0x198)],this[q(0x143)]=g[q(0x143)];}[p(0x172)](c){const r=p;this[r(0x1aa)]=c;}[p(0x1b5)](){const s=p;if(this[s(0x12c)][s(0x1a6)]!==undefined){const c=pipe_1[s(0x13d)][s(0x190)](this[s(0x12c)][s(0x1a6)],this[s(0x14c)]);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async['verifyEntry'](){const t=p;this[t(0x172)](0x1),await this[t(0x142)]();const c=this[t(0x1b5)]();try{collator_1[t(0x12f)][t(0x14b)](this[t(0x14c)]['metadata']['js'],this[t(0x14c)][t(0x144)][t(0x1bc)],this[t(0x144)][t(0x193)],c);}catch(d){await collator_1[t(0x12f)][t(0x158)](this);if(c>0x0){if(this[t(0x14c)][t(0x144)]['js']===c){const e=await this[t(0x168)](-c);Number(e)===0x0&&await this[t(0x1b4)][t(0x136)](this['context']);}}else throw d;return;}await collator_1[t(0x12f)]['notarizeEntry'](this);}async[p(0x159)](){const u=p,c=this[u(0x14c)]['metadata'][u(0x12b)];return this[u(0x172)](0x2),await this[u(0x142)](),collator_1[u(0x12f)][u(0x14b)](this[u(0x14c)][u(0x144)]['js'],this[u(0x14c)][u(0x144)]['jid'],this[u(0x144)][u(0x193)]),await collator_1[u(0x12f)][u(0x1a8)](this,c);}async[p(0x181)](c=stream_1[p(0x1c2)][p(0x1c6)],d=0xc8,e='output'){const v=p;this['setLeg'](0x2);const f=this['context'][v(0x144)][v(0x1bc)];if(!f){this[v(0x198)][v(0x145)](v(0x13f),{'message':v(0x1a2)});return;}const g=this[v(0x144)][v(0x193)];this[v(0x17a)]=c,this['code']=d,this[v(0x198)][v(0x174)](v(0x16d),{'topic':this[v(0x12c)][v(0x152)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0x159)]();this[v(0x140)]=collator_1[v(0x12f)][v(0x13c)](i),h=new telemetry_1[(v(0x12d))](this[v(0x1b4)][v(0x1c8)],this['config'],this[v(0x144)],this[v(0x14c)]),h[v(0x1b0)](this[v(0x1aa)]);let j;if(c===stream_1[v(0x1c2)][v(0x1c5)])j=await this['processPending'](e);else c===stream_1[v(0x1c2)][v(0x1c6)]?j=await this[v(0x132)](e):j=await this[v(0x13b)]();this['transitionAdjacent'](j,h);}catch(k){if(k instanceof errors_1[v(0x14a)]){this['logger'][v(0x187)](v(0x197)+k[v(0x19d)]+v(0x196),{'error':k});return;}else{if(k instanceof errors_1[v(0x179)]){this[v(0x198)]['info']('process-event-inactive-job-error',{'error':k});return;}else{if(k instanceof errors_1[v(0x191)]){this['logger'][v(0x187)]('process-event-generational-job-error',{'error':k});return;}else{if(k instanceof errors_1[v(0x147)]){this[v(0x198)]['info']('process-event-get-job-error',{'error':k});return;}}}}this[v(0x198)][v(0x145)]('activity-process-event-error',{'error':k,'message':k[v(0x1a3)],'stack':k[v(0x199)],'name':k['name']}),h?.[v(0x175)](k['message']);throw k;}finally{h?.[v(0x18f)](),this['logger'][v(0x174)](v(0x1a4),{'jid':f,'aid':g});}}async['processPending'](c){const w=p;this[w(0x151)](c),this[w(0x194)]=await this[w(0x19e)](),this['mapJobData']();const d=this[w(0x143)]['transact']();return await this['setState'](d),await collator_1[w(0x12f)][w(0x153)](this,d),await this['setStatus'](this[w(0x194)][w(0x16e)],d),await d[w(0x19a)]();}async['processSuccess'](c){const x=p;this['bindActivityData'](c),this[x(0x194)]=await this['filterAdjacent'](),this[x(0x146)]();const d=this[x(0x143)][x(0x1c7)]();return await this[x(0x137)](d),await collator_1[x(0x12f)][x(0x14f)](this,d),await this[x(0x168)](this['adjacencyList']['length']-0x1,d),await d['exec']();}async['processError'](){const y=p;this[y(0x18b)](this[y(0x1af)]),this['adjacencyList']=await this[y(0x19e)]();!this[y(0x194)]['length']&&this['bindJobError'](this[y(0x1af)]);this['mapJobData']();const c=this[y(0x143)]['transact']();return await this[y(0x137)](c),await collator_1[y(0x12f)][y(0x14f)](this,c),await this[y(0x168)](this[y(0x194)]['length']-0x1,c),await c['exec']();}async['transitionAdjacent'](c,d){const z=p;d[z(0x18d)]();const e=this[z(0x139)](c),f={'app.job.jss':e},g=await this[z(0x126)](this[z(0x194)],e);g?.['length']&&(f['app.activity.mids']=g[z(0x1b3)](',')),d[z(0x17d)](f);}[p(0x139)](c){const A=p,d=c[c[A(0x16e)]-0x1];return Array[A(0x1c0)](d)?Number(d[0x1]):Number(d);}[p(0x146)](){const B=p;if(this[B(0x12c)][B(0x134)]?.[B(0x167)]){const c=new mapper_1[(B(0x17c))]((0x0,utils_1[B(0x1a9)])(this[B(0x12c)][B(0x134)]['maps']),this['context']),d=c[B(0x18e)]();if(d)for(const e in d){const f=e[B(0x183)]('[');if(f>-0x1){const g=e['substring'](f+0x1)[B(0x1c4)](']')[0x0];if(!isNaN(Number(g))){const h=e[B(0x19b)](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[B(0x127)](i)['forEach'](j=>{d[j]=i[j];});}}}}this[B(0x14c)][B(0x1af)]=d;}}[p(0x1ab)](){const C=p;if(this[C(0x12c)][C(0x149)]?.['maps']){const c=new mapper_1[(C(0x17c))]((0x0,utils_1[C(0x1a9)])(this[C(0x12c)][C(0x149)][C(0x167)]),this[C(0x14c)]);this[C(0x14c)][C(0x1af)]=c['mapRules']();}}[p(0x16b)](){const D=p;if(this['config'][D(0x17e)]?.[D(0x167)]){const c=new mapper_1[(D(0x17c))]((0x0,utils_1[D(0x1a9)])(this[D(0x12c)][D(0x17e)][D(0x167)]),this[D(0x14c)]),d=c[D(0x18e)](),e=this['metadata'][D(0x193)],f={...this[D(0x14c)][e][D(0x17e)],...d};this[D(0x14c)][e][D(0x17e)][D(0x1af)]=f;}}async[p(0x184)](){}[p(0x18b)](c){const E=p,d=this[E(0x14c)][this[E(0x144)][E(0x193)]][E(0x17e)][E(0x144)];d[E(0x1cb)]=JSON[E(0x1ad)](this['data']),d[E(0x1cc)]={...c,'is_stream_error':!![]};}['bindJobError'](c){const F=p;this['context']['metadata'][F(0x1cb)]=JSON['stringify']({...c,'is_stream_error':!![]});}async['getTriggerConfig'](){const G=p;return await this['store']['getSchema'](this[G(0x12c)][G(0x165)],await this[G(0x1b4)][G(0x1a0)]());}[p(0x157)](){return null;}async[p(0x168)](c,d){const H=p,{id:e}=await this['engine'][H(0x1a0)]();return await this['store']['setStatus'](c,this[H(0x14c)][H(0x144)][H(0x1bc)],e,d);}[p(0x1ac)](c){const I=p;return this[I(0x194)]?.[I(0x173)](d=>{const J=I,{metadata:{aid:e}}=d;return c[e+'/output/metadata/as']=collator_1[J(0x12f)]['getSeed'](),e;})??[];}['bindDimensionalAddress'](c){const K=p,d=this[K(0x1cd)]();c[this['metadata']['aid']+K(0x177)]=d;}async['setState'](c){const L=p,d=this[L(0x14c)][L(0x144)]['jid'];this[L(0x171)](),this[L(0x166)]();const e={};await this['bindJobState'](e);const f=this['authorizeEntry'](e);this[L(0x155)](e),this['bindActivityState'](e);const g=['$'+this[L(0x12c)][L(0x1b7)],this[L(0x144)]['aid'],...f],h=collator_1['CollatorService'][L(0x150)]([...this[L(0x12c)][L(0x154)],this[L(0x144)][L(0x193)]],this[L(0x1cd)]());return await this['store'][L(0x137)](e,this['getJobStatus'](),d,g,h,c);}[p(0x171)](){const M=p;this[M(0x14c)][M(0x144)]['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const N=p,c=this[N(0x14c)][N(0x13a)];!c[N(0x17e)]['metadata']&&(c[N(0x17e)][N(0x144)]={});this[N(0x17a)]===stream_1[N(0x1c2)]['ERROR']&&(c[N(0x17e)][N(0x144)][N(0x1cb)]=JSON[N(0x1ad)](this[N(0x1af)]));const d=(0x0,utils_1['formatISODate'])(new Date());c[N(0x17e)][N(0x144)]['ac']=d,c[N(0x17e)]['metadata']['au']=d,c[N(0x17e)][N(0x144)][N(0x135)]=this[N(0x12c)][N(0x18c)],this['config'][N(0x152)]&&(c[N(0x17e)][N(0x144)]['stp']=this['config'][N(0x152)]),c[N(0x17e)][N(0x144)]['aid']=this[N(0x144)][N(0x193)];}async[p(0x170)](c){const O=p,d=await this['getTriggerConfig'](),e=[...d[O(0x19f)]||[],...this[O(0x162)]()];for(const f of e){const g=(0x0,utils_1[O(0x195)])(this[O(0x14c)],f);g!==undefined&&(c[f]=g);}for(const h in this[O(0x14c)]?.['data']??{}){(h[O(0x17b)]('-')||h['startsWith']('_'))&&(c[h]=this[O(0x14c)]['data'][h]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](c,this[O(0x12c)],this[O(0x14c)]);}['bindActivityState'](c){const P=p,d=[...this['config'][P(0x14d)],...this[P(0x19c)]()];for(const e of d){const f=this[P(0x144)][P(0x193)]+'/'+e,g=(0x0,utils_1['getValueByPath'])(this[P(0x14c)],f);g!==undefined&&(c[f]=g);}telemetry_1['TelemetryService'][P(0x16f)](c,this[P(0x12c)],this[P(0x144)],this[P(0x14c)],this[P(0x1aa)]);}[p(0x162)](){const Q=p;return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE'][Q(0x1bf)][Q(0x173)](c=>Q(0x15d)+c);}[p(0x19c)](){const R=p,c=this[R(0x1aa)]===0x1?'ACTIVITY':R(0x163);return serializer_1[R(0x14e)][c][R(0x1bf)][R(0x173)](d=>R(0x1b8)+d);}async[p(0x142)](){const S=p,c=this[S(0x14c)][S(0x144)]['gid'],d='$'+this[S(0x12c)]['subscribes'],e={[d]:serializer_1[S(0x14e)]['JOB'][S(0x1bf)][S(0x173)](k=>S(0x15d)+k)};for(let [k,l]of Object['entries'](this[S(0x12c)]['consumes'])){if(k===S(0x131))for(const m of l){e[d][S(0x1b9)](m);}else{k===S(0x13a)&&(k=this[S(0x144)]['aid']);!e[k]&&(e[k]=[]);for(const n of l){e[k]['push'](k+'/'+n);}}}telemetry_1[S(0x12d)][S(0x16c)](e,this[S(0x12c)],this[S(0x144)],this[S(0x1aa)]);const {dad:f,jid:g}=this[S(0x14c)][S(0x144)],h=collator_1[S(0x12f)][S(0x150)]([...this[S(0x12c)][S(0x154)],this[S(0x144)][S(0x193)]],f||''),[i,j]=await this[S(0x143)][S(0x142)](g,e,h);this[S(0x14c)]=(0x0,utils_1[S(0x192)])(i),this['assertGenerationalId'](this[S(0x14c)]?.[S(0x144)]?.[S(0x16a)],c),this['initDimensionalAddress'](f),this[S(0x1b2)](this[S(0x14c)]),this[S(0x1a7)](this[S(0x14c)]);}[p(0x1ba)](c,d){const T=p;if(d!==c)throw new errors_1[(T(0x191))](c,d,this[T(0x14c)]?.[T(0x144)]?.[T(0x1bc)]??'',this[T(0x14c)]?.[T(0x144)]?.[T(0x193)]??'',this['context']?.[T(0x144)]?.['dad']??'');}[p(0x15b)](c){const U=p;this[U(0x144)][U(0x178)]=c;}[p(0x1b2)](c){const V=p,d=this[V(0x144)][V(0x193)];!c[d]&&(c[d]={});const e=c[d];return!e[V(0x17e)]&&(e[V(0x17e)]={}),!e[V(0x149)]&&(e[V(0x149)]={}),!e[V(0x180)]&&(e[V(0x180)]={}),!e[V(0x17e)][V(0x144)]&&(e[V(0x17e)][V(0x144)]={}),e[V(0x17e)][V(0x144)]['au']=(0x0,utils_1[V(0x161)])(new Date()),c[V(0x13a)]=e,c['$job']=c,c;}[p(0x1a7)](c){const W=p,d=pipe_1[W(0x13d)][W(0x190)](this['config'][W(0x164)]??enums_1[W(0x186)],c);c[W(0x144)][W(0x164)]=d;if(this[W(0x12c)][W(0x12a)]!=undefined){const e=pipe_1[W(0x13d)][W(0x190)](this[W(0x12c)][W(0x12a)]??![],c);c[W(0x144)]['persistent']=e;}}[p(0x151)](c){const X=p;this['context'][this[X(0x144)][X(0x193)]][c][X(0x1af)]=this[X(0x1af)];}[p(0x1cd)](){const Y=p;let c=this[Y(0x144)][Y(0x178)];return this[Y(0x140)]>0x0&&(c=c[Y(0x19b)](0x0,c[Y(0x160)](','))+','+this['adjacentIndex']),c;}[p(0x169)](){const Z=p;return''+this[Z(0x1cd)]()+collator_1[Z(0x12f)][Z(0x1cf)](0x0);}async[p(0x19e)](){const a0=p,c=[],d=await this['store'][a0(0x141)](await this[a0(0x1b4)][a0(0x1a0)]()),e=d['.'+this[a0(0x144)]['aid']],f=this[a0(0x169)]();if(e)for(const g in e){const h=e[g];mapper_1[a0(0x17c)][a0(0x148)](h,this[a0(0x14c)],this['code'])&&c['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[a0(0x14c)][a0(0x144)][a0(0x1bc)],'gid':this['context']['metadata']['gid'],'dad':f,'aid':g,'spn':this[a0(0x14c)][a0(0x13a)]['output'][a0(0x144)]?.[a0(0x15e)],'trc':this[a0(0x14c)]['metadata'][a0(0x189)]},'type':stream_1[a0(0x1bd)][a0(0x1b6)],'data':{}});}return c;}[p(0x1c1)](c){return c<=0x0;}[p(0x1be)](){const a1=p;if(this[a1(0x12c)]['emit'])return pipe_1[a1(0x13d)]['resolve'](this[a1(0x12c)]['emit'],this[a1(0x14c)])===!![];return![];}[p(0x182)](){const a2=p;if(this['config'][a2(0x15f)]!==undefined)return pipe_1[a2(0x13d)][a2(0x190)](this[a2(0x12c)][a2(0x15f)],this[a2(0x14c)])===!![];return![];}async[p(0x126)](c,d){const a3=p;if(this[a3(0x18a)](d))return;let e=[];(this['shouldEmit']()||this[a3(0x1c1)](d)||this['shouldPersistJob']())&&await this['engine'][a3(0x136)](this['context'],{'emit':!this['isJobComplete'](d)&&!this[a3(0x182)]()});if(c['length']&&!this[a3(0x1c1)](d)){const f=this[a3(0x143)][a3(0x1c7)]();for(const g of c){await this[a3(0x1b4)]['router']?.[a3(0x133)](null,g,f);}e=await f['exec']();}return e;}[p(0x18a)](c){return c<-0x5f5e100;}}exports[p(0x176)]=Activity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const j=b;
|
|
1
|
+
'use strict';const j=b;function a(){const m=['trc','data','GetStateError','exec','info','jid','config','transact','await-collation-overage','CollationError','3176OPCdho','metadata','Activity','resolve','context','$self','__esModule','endActivitySpan','retry','1572NmSfyO','engine','CollatorService','error','150296OZAKxm','28049OTKhdR','duplicate','../../modules/errors','startActivitySpan','await-process-end','message','logger','1045790WjWmMJ','129HXDAil','Await','1720707cWCCbQ','appId','subtype','authorizeReentry','publishMessage','await-inactive-job-error','99cpbJTY','await-collation-error','defineProperty','GenerationalError','../collator','debug','InactiveJobError','process','setState','./activity','dad','gid','output','Pipe','await-process-error','aid','await-process','mapInputData','policies','await-get-state-error','execActivity','../../types/stream','3048198XfALhz','4995VjqoMD','35714030DHomvo','leg','setStatus','await','../../modules/utils','guid'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xd0))/0x1+parseInt(i(0xec))/0x2+-parseInt(i(0xce))/0x3*(parseInt(i(0xc5))/0x4)+-parseInt(i(0xed))/0x5*(parseInt(i(0xc1))/0x6)+-parseInt(i(0xc6))/0x7*(-parseInt(i(0xb8))/0x8)+parseInt(i(0xd6))/0x9*(parseInt(i(0xcd))/0xa)+-parseInt(i(0xee))/0xb;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd266c));function b(c,d){const e=a();return b=function(f,g){f=f-0xaa;let h=e[f];return h;},b(c,d);}Object[j(0xd8)](exports,j(0xbe),{'value':!![]}),exports[j(0xcf)]=void 0x0;const errors_1=require(j(0xc8)),utils_1=require(j(0xac)),collator_1=require(j(0xda)),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require(j(0xeb)),activity_1=require(j(0xdf));class Await extends activity_1[j(0xba)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0xdd)](){const k=j;this[k(0xcc)][k(0xdb)](k(0xe6),{'jid':this[k(0xbc)][k(0xb9)][k(0xb3)],'gid':this['context']['metadata'][k(0xe1)],'aid':this[k(0xb9)][k(0xe5)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[k(0xc2)][k(0xd1)],this[k(0xb4)],this[k(0xb9)],this[k(0xbc)]),c[k(0xc9)](this[k(0xef)]),this[k(0xe7)]();const d=this['store'][k(0xb5)](),e=await this[k(0xea)](d);await collator_1[k(0xc3)][k(0xd3)](this,d),await this[k(0xde)](d),await this[k(0xaa)](0x0,d);const f=await d[k(0xb1)]();c['mapActivityAttributes']();const g=this['resolveStatus'](f);return c['setActivityAttributes']({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0xb9)][k(0xe5)];}catch(h){if(h instanceof errors_1[k(0xdc)]){this[k(0xcc)][k(0xc4)](k(0xd5),{'error':h});return;}else{if(h instanceof errors_1[k(0xd9)]){this[k(0xcc)][k(0xb2)]('process-event-generational-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0xb0)]){this['logger'][k(0xc4)](k(0xe9),{'error':h});return;}else{if(h instanceof errors_1[k(0xb7)]){if(h['fault']===k(0xc7)){this[k(0xcc)][k(0xb2)](k(0xb6),{'job_id':this['context']['metadata'][k(0xb3)],'guid':this[k(0xbc)][k(0xb9)][k(0xad)]});return;}this[k(0xcc)]['error'](k(0xd7),{'error':h});}else this[k(0xcc)]['error'](k(0xe4),{'error':h});}}}c?.['setActivityError'](h[k(0xcb)]);throw h;}finally{c?.[k(0xbf)](),this[k(0xcc)]['debug'](k(0xca),{'jid':this[k(0xbc)][k(0xb9)]['jid'],'gid':this[k(0xbc)]['metadata'][k(0xe1)],'aid':this[k(0xb9)][k(0xe5)]});}}async[j(0xea)](c){const l=j,d=pipe_1[l(0xe3)][l(0xbb)](this['config'][l(0xd2)],this[l(0xbc)]),e={'metadata':{'guid':(0x0,utils_1[l(0xad)])(),'jid':this[l(0xbc)][l(0xb9)]['jid'],'gid':this[l(0xbc)]['metadata'][l(0xe1)],'dad':this[l(0xb9)][l(0xe0)],'aid':this['metadata'][l(0xe5)],'topic':d,'spn':this[l(0xbc)][l(0xbd)][l(0xe2)][l(0xb9)]?.['l1s'],'trc':this[l(0xbc)][l(0xb9)][l(0xae)]},'type':stream_1['StreamDataType']['AWAIT'],'data':this[l(0xbc)][l(0xaf)]};if(this[l(0xb4)][l(0xab)]!==!![]){const f=pipe_1['Pipe'][l(0xbb)](this[l(0xb4)][l(0xab)],this[l(0xbc)]);f===![]&&(e[l(0xb9)]['await']=![]);}return this[l(0xb4)][l(0xc0)]&&(e[l(0xe8)]={'retry':this[l(0xb4)]['retry']}),await this[l(0xc2)]['router']?.[l(0xd4)](null,e,c);}}exports[j(0xcf)]=Await;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-
|
|
1
|
+
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x18d;let h=e[f];return h;},b(c,d);}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x1aa))/0x1*(parseInt(i(0x1bd))/0x2)+-parseInt(i(0x19c))/0x3*(parseInt(i(0x1c9))/0x4)+parseInt(i(0x1ac))/0x5+-parseInt(i(0x19f))/0x6+-parseInt(i(0x192))/0x7+-parseInt(i(0x19a))/0x8*(parseInt(i(0x1b7))/0x9)+parseInt(i(0x1c7))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc9820));Object[j(0x1b5)](exports,j(0x199),{'value':!![]}),exports[j(0x1c4)]=void 0x0;const errors_1=require(j(0x198)),utils_1=require(j(0x1a8)),collator_1=require(j(0x1c0)),telemetry_1=require(j(0x1bf)),activity_1=require('./activity');class Cycle extends activity_1[j(0x1bc)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const k=j;this[k(0x1ad)]['debug'](k(0x1bb),{'jid':this[k(0x193)][k(0x1b3)][k(0x191)],'gid':this['context'][k(0x1b3)][k(0x196)],'aid':this[k(0x1b3)][k(0x19b)]});let c;try{await this[k(0x1c5)](),c=new telemetry_1[(k(0x19d))](this[k(0x1a6)][k(0x1ab)],this[k(0x1c2)],this[k(0x1b3)],this[k(0x193)]),c['startActivitySpan'](this['leg']),this[k(0x1c6)]();let d=this[k(0x1a9)][k(0x1c3)]();await this['setState'](d),await this[k(0x1a7)](0x0,d);const e=await d['exec']();c[k(0x195)]();const f=this[k(0x1b0)](e);d=this[k(0x1a9)][k(0x1c3)]();const g=await this[k(0x1a3)](d);return c['setActivityAttributes']({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x19e)][k(0x1a4)](this,d),await d[k(0x1b2)](),this[k(0x193)][k(0x1b3)][k(0x19b)];}catch(h){if(h instanceof errors_1[k(0x190)]){this[k(0x1ad)][k(0x18d)]('cycle-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x1a2)]){this['logger'][k(0x1a0)](k(0x1a1),{'error':h});return;}else{if(h instanceof errors_1[k(0x1c8)]){this[k(0x1ad)][k(0x18d)](k(0x1b9),{'error':h});return;}else{if(h instanceof errors_1['CollationError']){if(h[k(0x1a5)]==='duplicate'){this[k(0x1ad)][k(0x1a0)](k(0x194),{'job_id':this[k(0x193)][k(0x1b3)][k(0x191)],'guid':this[k(0x193)][k(0x1b3)][k(0x197)]});return;}this[k(0x1ad)][k(0x18d)](k(0x1b1),{'error':h});}else this['logger'][k(0x18d)](k(0x1be),{'error':h});}}}c?.[k(0x18f)](h['message']);throw h;}finally{c?.[k(0x18e)](),this['logger'][k(0x1b4)](k(0x1af),{'jid':this[k(0x193)]['metadata'][k(0x191)],'gid':this[k(0x193)][k(0x1b3)][k(0x196)],'aid':this[k(0x1b3)][k(0x19b)]});}}async[j(0x1a3)](c){const l=j;this['mapInputData']();const d={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[l(0x193)][l(0x1b3)][l(0x191)],'gid':this[l(0x193)][l(0x1b3)]['gid'],'dad':collator_1[l(0x19e)]['resolveReentryDimension'](this),'aid':this[l(0x1c2)]['ancestor'],'spn':this['context'][l(0x1c1)][l(0x1b8)][l(0x1b3)]?.[l(0x1ba)],'trc':this[l(0x193)]['metadata'][l(0x1b6)]},'data':this[l(0x193)]['data']};return await this[l(0x1a6)][l(0x1ae)]?.['publishMessage'](null,d,c);}}exports[j(0x1c4)]=Cycle;function a(){const m=['cycle-collation-error','exec','metadata','debug','defineProperty','trc','18MXVndE','output','cycle-get-state-error','l1s','cycle-process','Activity','2JuzWbc','cycle-process-error','../telemetry','../collator','$self','config','transact','Cycle','verifyEntry','mapInputData','28833250SQFFUf','GetStateError','844MzrFBW','error','endActivitySpan','setActivityError','InactiveJobError','jid','307580CasuHJ','context','cycle-collation-overage','mapActivityAttributes','gid','guid','../../modules/errors','__esModule','5490536LWFZub','aid','9309ccdvqk','TelemetryService','CollatorService','4017480uHtmov','info','process-event-generational-job-error','GenerationalError','cycleAncestorActivity','notarizeEarlyExit','fault','engine','setStatus','../../modules/utils','store','220102exkEsT','appId','4515200PrIKJT','logger','router','cycle-process-end','resolveStatus'];a=function(){return m;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x1ef))/0x1+-parseInt(l(0x1f1))/0x2+-parseInt(l(0x1e0))/0x3+-parseInt(l(0x1cb))/0x4+-parseInt(l(0x1f3))/0x5+-parseInt(l(0x1d5))/0x6*(-parseInt(l(0x210))/0x7)+parseInt(l(0x201))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x57577));function b(c,d){const e=a();return b=function(f,g){f=f-0x1bd;let h=e[f];return h;},b(c,d);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[m(0x1c8)]=void 0x0;const enums_1=require(m(0x1f9)),errors_1=require(m(0x20c)),collator_1=require(m(0x1d9)),pipe_1=require(m(0x1d3)),task_1=require(m(0x1e4)),telemetry_1=require(m(0x1bd)),stream_1=require('../../types/stream'),activity_1=require(m(0x1cd));class Hook extends activity_1[m(0x1f8)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x1d8)](){const n=m;this[n(0x1fd)][n(0x1c6)](n(0x207),{'jid':this['context'][n(0x1c9)][n(0x1d7)],'gid':this[n(0x1da)][n(0x1c9)][n(0x1db)],'aid':this[n(0x1c9)][n(0x1ce)]});let c;try{return await this[n(0x20b)](),c=new telemetry_1[(n(0x20e))](this[n(0x20a)][n(0x1ec)],this[n(0x1dd)],this[n(0x1c9)],this[n(0x1da)]),c[n(0x1d6)](this['leg']),this[n(0x1e1)]()?await this[n(0x1de)](c):await this['doPassThrough'](c),this['context'][n(0x1c9)][n(0x1ce)];}catch(d){if(d instanceof errors_1[n(0x200)]){this[n(0x1fd)][n(0x1be)](n(0x1cf),{'error':d});return;}else{if(d instanceof errors_1[n(0x1c4)]){this[n(0x1fd)]['info']('process-event-generational-job-error',{'error':d});return;}else{if(d instanceof errors_1['GetStateError']){this[n(0x1fd)]['error']('hook-get-state-error',{'error':d});return;}else{if(d instanceof errors_1['CollationError']){if(d['fault']==='duplicate'){this[n(0x1fd)][n(0x1d2)](n(0x1f7),{'job_id':this[n(0x1da)][n(0x1c9)][n(0x1d7)],'guid':this['context']['metadata'][n(0x1fc)]});return;}this[n(0x1fd)]['error']('hook-collation-error',{'error':d});}else this[n(0x1fd)][n(0x1be)](n(0x20d),{'error':d});}}}c?.[n(0x1df)](d[n(0x1ff)]);throw d;}finally{c?.[n(0x1e3)](),this[n(0x1fd)]['debug'](n(0x203),{'jid':this['context']['metadata']['jid'],'gid':this[n(0x1da)]['metadata'][n(0x1db)],'aid':this[n(0x1c9)][n(0x1ce)]});}}[m(0x1e1)](){const o=m;if(this[o(0x1dd)]['sleep']){const c=pipe_1[o(0x1c3)][o(0x1c1)](this[o(0x1dd)][o(0x1d1)],this[o(0x1da)]);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0x1dd)][o(0x1ed)]?.['topic'];}async['doHook'](c){const p=m,d=this[p(0x1f5)][p(0x1fb)]();await this[p(0x204)](enums_1[p(0x205)]?undefined:d),this[p(0x208)](),this['mapJobData'](),await this[p(0x209)](d),await collator_1['CollatorService'][p(0x1c7)](this,d),await this[p(0x1e8)](0x0,d),await d[p(0x206)](),c['mapActivityAttributes']();}async[m(0x20f)](c){const q=m,d=this[q(0x1f5)]['transact']();let e;this[q(0x212)]=await this[q(0x1eb)](),this[q(0x208)](),this[q(0x1c2)](),await this[q(0x209)](d),await collator_1[q(0x1fe)][q(0x1ca)](this,d),await this['setStatus'](this['adjacencyList'][q(0x211)]-0x1,d),e=await d[q(0x206)](),c['mapActivityAttributes']();const f=this[q(0x1f6)](e),g={'app.job.jss':f},h=await this[q(0x1cc)](this[q(0x212)],f);h[q(0x211)]&&(g[q(0x1e9)]=h[q(0x1d4)](',')),c[q(0x1e2)](g);}async['getHookRule'](c){const r=m,d=await this['store'][r(0x202)]();return d?.[c]?.[0x0];}async['registerHook'](c){const s=m;if(this[s(0x1dd)][s(0x1ed)]?.['topic'])return await this['engine'][s(0x1c5)]['registerWebHook'](this[s(0x1dd)]['hook'][s(0x1fa)],this[s(0x1da)],this['resolveDad'](),this[s(0x1da)][s(0x1c9)][s(0x1e5)],c);else{if(this['config'][s(0x1d1)]){const d=pipe_1[s(0x1c3)][s(0x1c1)](this[s(0x1dd)]['sleep'],this[s(0x1da)]);return await this['engine'][s(0x1c5)][s(0x1d0)](this[s(0x1da)][s(0x1c9)][s(0x1d7)],this[s(0x1da)][s(0x1c9)][s(0x1db)],''+this[s(0x1c9)][s(0x1ce)]+(this[s(0x1c9)][s(0x1ea)]||''),s(0x1d1),d,this['metadata'][s(0x1ea)]||''),this[s(0x1da)][s(0x1c9)]['jid'];}}}async['processWebHookEvent'](c=stream_1[m(0x1bf)]['SUCCESS'],d=0xc8){const t=m;this[t(0x1fd)][t(0x1c6)](t(0x1e7),{'topic':this[t(0x1dd)][t(0x1ed)][t(0x1fa)],'aid':this[t(0x1c9)][t(0x1ce)],'status':c,'code':d});const e=new task_1['TaskService'](this[t(0x1f5)],this[t(0x1fd)]),f={...this[t(0x1f4)]},g=await e[t(0x1c0)](this['config'][t(0x1ed)][t(0x1fa)],f);if(g){const [h,i,j,k]=g;this[t(0x1da)][t(0x1c9)][t(0x1d7)]=h,this['context'][t(0x1c9)][t(0x1db)]=k,this['context'][t(0x1c9)][t(0x1ea)]=j,await this[t(0x1f0)](c,d,t(0x1ed)),d===0xc8&&await e[t(0x1dc)](this['config'][t(0x1ed)]['topic'],f);}}async[m(0x1e6)](c){const u=m;this['logger'][u(0x1c6)](u(0x1ee),{'jid':c,'gid':this[u(0x1da)][u(0x1c9)][u(0x1db)],'aid':this[u(0x1c9)][u(0x1ce)]}),await this[u(0x1f0)](stream_1[u(0x1bf)][u(0x1f2)],0xc8,u(0x1ed));}}function a(){const v=['mapOutputData','setState','engine','verifyEntry','../../modules/errors','hook-process-error','TelemetryService','doPassThrough','341719ERyFqH','length','adjacencyList','../telemetry','error','StreamStatus','processWebHookSignal','resolve','mapJobData','Pipe','GenerationalError','taskService','debug','authorizeReentry','Hook','metadata','notarizeEarlyCompletion','1036760KVfUyW','transition','./activity','aid','hook-inactive-job-error','registerTimeHook','sleep','info','../pipe','join','18kwcimx','startActivitySpan','jid','process','../collator','context','gid','deleteWebHookSignal','config','doHook','setActivityError','1586691KHCSAc','doesHook','setActivityAttributes','endActivitySpan','../task','expire','processTimeHookEvent','hook-process-web-hook-event','setStatus','app.activity.mids','dad','filterAdjacent','appId','hook','hook-process-time-hook-event','99528gOxWln','processEvent','253070fUBIem','SUCCESS','2658935OETPPy','data','store','resolveStatus','hook-collation-overage','Activity','../../modules/enums','topic','transact','guid','logger','CollatorService','message','InactiveJobError','14057896pclbyH','getHookRules','hook-process-end','registerHook','HMSH_IS_CLUSTER','exec','hook-process'];a=function(){return v;};return a();}exports['Hook']=Hook;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(
|
|
1
|
+
'use strict';const i=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x16b;let h=e[f];return h;},b(c,d);}(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x175))/0x1*(-parseInt(h(0x16d))/0x2)+parseInt(h(0x16f))/0x3+-parseInt(h(0x17b))/0x4*(parseInt(h(0x17d))/0x5)+-parseInt(h(0x181))/0x6+-parseInt(h(0x184))/0x7+parseInt(h(0x17e))/0x8*(parseInt(h(0x180))/0x9)+-parseInt(h(0x182))/0xa*(-parseInt(h(0x16b))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x53a91));function a(){const j=['Cycle','5qjEEgv','2063048WWeMxl','__esModule','9oHLXPo','3240276PZEnYc','30gJaqSb','default','4086754IVDECv','3113539OTkbkj','./worker','8nVGydU','defineProperty','222978JalVUR','Interrupt','Activity','Worker','./signal','Await','124239GoeqWm','./interrupt','Hook','Signal','Trigger','./cycle','847076sQcnRu'];a=function(){return j;};return a();}Object[i(0x16e)](exports,i(0x17f),{'value':!![]});const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require(i(0x17a)),hook_1=require('./hook'),interrupt_1=require(i(0x176)),signal_1=require(i(0x173)),trigger_1=require('./trigger'),worker_1=require(i(0x16c));exports[i(0x183)]={'activity':activity_1[i(0x171)],'await':await_1[i(0x174)],'cycle':cycle_1[i(0x17c)],'hook':hook_1[i(0x177)],'interrupt':interrupt_1[i(0x170)],'signal':signal_1[i(0x178)],'trigger':trigger_1[i(0x179)],'worker':worker_1[i(0x172)]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f
|
|
1
|
+
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x12c;let h=e[f];return h;},b(c,d);}const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x179))/0x1+-parseInt(k(0x15c))/0x2*(-parseInt(k(0x135))/0x3)+-parseInt(k(0x130))/0x4+parseInt(k(0x146))/0x5+parseInt(k(0x15a))/0x6+parseInt(k(0x144))/0x7*(-parseInt(k(0x162))/0x8)+parseInt(k(0x15f))/0x9*(-parseInt(k(0x16e))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x76d08));Object[l(0x132)](exports,l(0x16a),{'value':!![]}),exports[l(0x164)]=void 0x0;const errors_1=require(l(0x149)),collator_1=require('../collator'),pipe_1=require(l(0x167)),telemetry_1=require('../telemetry'),activity_1=require(l(0x140));class Interrupt extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const m=l;this[m(0x169)][m(0x13c)](m(0x13e),{'jid':this['context'][m(0x17a)][m(0x165)],'gid':this[m(0x143)][m(0x17a)][m(0x13a)],'aid':this[m(0x17a)][m(0x14a)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this['engine']['appId'],this[m(0x159)],this[m(0x17a)],this[m(0x143)]),c[m(0x17b)](this[m(0x154)]),this[m(0x142)]()?await this['interruptSelf'](c):await this['interruptAnother'](c);}catch(d){if(d instanceof errors_1['InactiveJobError']){this[m(0x169)][m(0x139)](m(0x13b),{'error':d});return;}else{if(d instanceof errors_1[m(0x16f)]){this['logger'][m(0x156)](m(0x133),{'error':d});return;}else{if(d instanceof errors_1[m(0x170)]){this['logger'][m(0x139)](m(0x147),{'error':d});return;}else{if(d instanceof errors_1[m(0x178)]){if(d[m(0x15d)]===m(0x172)){this['logger'][m(0x156)]('interrupt-collation-overage',{'job_id':this[m(0x143)][m(0x17a)]['jid'],'guid':this[m(0x143)][m(0x17a)]['guid']});return;}this[m(0x169)]['error'](m(0x13f),{'error':d});}else this['logger'][m(0x139)](m(0x14f),{'error':d});}}}c?.[m(0x136)](d['message']);throw d;}finally{c?.[m(0x155)](),this[m(0x169)][m(0x13c)]('interrupt-process-end',{'jid':this[m(0x143)]['metadata']['jid'],'gid':this[m(0x143)][m(0x17a)][m(0x13a)],'aid':this[m(0x17a)][m(0x14a)]});}}async[l(0x148)](c){const n=l;this[n(0x159)][n(0x168)]?.['maps']&&(this[n(0x160)](),await this[n(0x14d)]());const d=await this[n(0x14e)]();c[n(0x134)]();const e=this[n(0x14c)][n(0x12e)]();await collator_1[n(0x166)][n(0x176)](this,e),await this[n(0x12f)](-0x1,e);const f=await e[n(0x16d)](),g=this[n(0x131)](f);return c[n(0x12d)]({'app.activity.mid':d,'app.job.jss':g}),this[n(0x143)]['metadata'][n(0x14a)];}async[l(0x141)](c){const o=l,d=await this[o(0x14e)](),e={'app.activity.mid':d};c[o(0x134)](),this[o(0x175)]=await this[o(0x15b)]();if(this[o(0x159)][o(0x168)]?.[o(0x174)]||this[o(0x159)][o(0x150)]?.[o(0x174)]){this[o(0x157)](),this[o(0x160)]();const j=this['store'][o(0x12e)]();await this[o(0x14d)](j);}const f=this[o(0x14c)]['transact']();await collator_1[o(0x166)][o(0x176)](this,f),await this[o(0x12f)](this['adjacencyList'][o(0x177)]-0x1,f);const g=await f[o(0x16d)](),h=this['resolveStatus'](g);e[o(0x138)]=h;const i=await this[o(0x158)](this[o(0x175)],h);return i[o(0x177)]&&(e[o(0x152)]=i[o(0x16c)](',')),c[o(0x12d)](e),this[o(0x143)][o(0x17a)][o(0x14a)];}[l(0x142)](){const p=l;if(!this[p(0x159)][p(0x153)])return!![];const c=pipe_1[p(0x13d)][p(0x12c)](this[p(0x159)]['target'],this['context']);return c==this[p(0x143)][p(0x17a)][p(0x165)];}[l(0x137)](){const q=l;return{'reason':this['config'][q(0x145)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this['config'][q(0x145)],this[q(0x143)]):undefined,'throw':this[q(0x159)]['throw']!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x173)],this[q(0x143)]):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this[q(0x159)][q(0x163)],this[q(0x143)]):undefined,'code':this['config'][q(0x14b)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x14b)],this[q(0x143)]):undefined,'expire':this['config'][q(0x16b)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)][q(0x16b)],this[q(0x143)]):undefined,'stack':this['config'][q(0x15e)]!==undefined?pipe_1[q(0x13d)][q(0x12c)](this[q(0x159)]['stack'],this['context']):undefined};}async['interrupt'](){const r=l,c=this['resolveInterruptOptions']();return await this[r(0x171)][r(0x14e)](this[r(0x159)]['topic']!==undefined?pipe_1[r(0x13d)][r(0x12c)](this[r(0x159)][r(0x151)],this['context']):this[r(0x143)][r(0x17a)][r(0x161)],this[r(0x159)][r(0x153)]!==undefined?pipe_1[r(0x13d)][r(0x12c)](this['config'][r(0x153)],this['context']):this[r(0x143)]['metadata'][r(0x165)],c);}}function a(){const s=['interrupt-collation-error','./activity','interruptAnother','isInterruptingSelf','context','1983401NJZMkI','reason','2188365cFcgNS','interrupt-get-state-error','interruptSelf','../../modules/errors','aid','code','store','setState','interrupt','interrupt-process-error','output','topic','app.activity.mids','target','leg','endActivitySpan','info','mapOutputData','transition','config','3801198EOFVzQ','filterAdjacent','85594mpqLXU','fault','stack','36NPKtoZ','mapJobData','tpc','8rRHRma','descend','Interrupt','jid','CollatorService','../pipe','job','logger','__esModule','expire','join','exec','2613400AzxHyg','GenerationalError','GetStateError','engine','duplicate','throw','maps','adjacencyList','notarizeEarlyCompletion','length','CollationError','646057KDMgpI','metadata','startActivitySpan','resolve','setActivityAttributes','transact','setStatus','2175404dmuXLc','resolveStatus','defineProperty','process-event-generational-job-error','mapActivityAttributes','45VWxbnS','setActivityError','resolveInterruptOptions','app.job.jss','error','gid','interrupt-inactive-job-error','debug','Pipe','interrupt-process'];a=function(){return s;};return a();}exports[l(0x164)]=Interrupt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-
|
|
1
|
+
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x158;let h=e[f];return h;},b(c,d);}const k=b;(function(c,d){const j=b,e=c();while(!![]){try{const f=parseInt(j(0x18d))/0x1+-parseInt(j(0x170))/0x2+-parseInt(j(0x173))/0x3*(parseInt(j(0x194))/0x4)+parseInt(j(0x15b))/0x5*(-parseInt(j(0x18c))/0x6)+parseInt(j(0x183))/0x7*(parseInt(j(0x169))/0x8)+parseInt(j(0x192))/0x9*(parseInt(j(0x19f))/0xa)+-parseInt(j(0x15c))/0xb*(-parseInt(j(0x18b))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x72a79));Object[k(0x182)](exports,k(0x161),{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require(k(0x174)),collator_1=require(k(0x1a6)),mapper_1=require(k(0x1a7)),pipe_1=require(k(0x162)),telemetry_1=require(k(0x15d)),activity_1=require(k(0x190));class Signal extends activity_1[k(0x176)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[k(0x16e)](){const l=k;this[l(0x17a)][l(0x19c)](l(0x185),{'jid':this[l(0x180)][l(0x1a1)][l(0x1a2)],'gid':this[l(0x180)][l(0x1a1)]['gid'],'aid':this['metadata'][l(0x158)]});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[l(0x17e)][l(0x19d)],this[l(0x1a4)],this[l(0x1a1)],this[l(0x180)]),c[l(0x17f)](this['leg']);const d=this['store']['transact']();this['adjacencyList']=await this[l(0x195)](),this[l(0x198)](),this[l(0x19a)](),await this[l(0x17d)](d),await collator_1['CollatorService'][l(0x1a8)](this,d),await this[l(0x17c)](this[l(0x197)]['length']-0x1,d);const e=await d[l(0x18f)]();this['config'][l(0x19b)]==='all'?await this[l(0x16f)]():await this[l(0x17b)]();const f=this['resolveStatus'](e),g={'app.job.jss':f},h=await this[l(0x178)](this[l(0x197)],f);return h['length']&&(g[l(0x166)]=h['join'](',')),c[l(0x175)](),c[l(0x160)](g),this[l(0x180)][l(0x1a1)][l(0x158)];}catch(i){if(i instanceof errors_1[l(0x15a)]){this[l(0x17a)][l(0x189)]('signal-inactive-job-error',{'error':i});return;}else{if(i instanceof errors_1[l(0x159)]){this['logger'][l(0x15f)](l(0x171),{'error':i});return;}else{if(i instanceof errors_1[l(0x1a0)]){this[l(0x17a)]['error'](l(0x177),{'error':i});return;}else{if(i instanceof errors_1[l(0x196)]){if(i[l(0x186)]==='duplicate'){this['logger'][l(0x15f)](l(0x193),{'job_id':this['context'][l(0x1a1)][l(0x1a2)],'guid':this[l(0x180)][l(0x1a1)][l(0x18e)]});return;}this['logger'][l(0x189)](l(0x1a3),{'error':i});}else this['logger'][l(0x189)](l(0x168),{'error':i});}}}c?.['setActivityError'](i[l(0x181)]);throw i;}finally{c?.['endActivitySpan'](),this[l(0x17a)][l(0x19c)](l(0x187),{'jid':this[l(0x180)]['metadata'][l(0x1a2)],'gid':this[l(0x180)][l(0x1a1)][l(0x179)],'aid':this[l(0x1a1)]['aid']});}}['mapSignalData'](){const m=k;if(this[m(0x1a4)][m(0x167)]?.[m(0x19e)]){const c=new mapper_1[(m(0x16a))](this['config']['signal'][m(0x19e)],this[m(0x180)]);return c['mapRules']();}}[k(0x172)](){const n=k;if(this[n(0x1a4)][n(0x15e)]?.[n(0x19e)]){const c=new mapper_1[(n(0x16a))](this[n(0x1a4)][n(0x15e)][n(0x19e)],this['context']);return c[n(0x199)]();}}async[k(0x17b)](){const o=k,c=pipe_1[o(0x16b)]['resolve'](this[o(0x1a4)]['topic'],this['context']),d=this[o(0x164)](),e=pipe_1[o(0x16b)]['resolve'](this['config'][o(0x18a)],this[o(0x180)]),f=pipe_1[o(0x16b)]['resolve'](this[o(0x1a4)][o(0x16c)],this[o(0x180)]);return await this[o(0x17e)][o(0x188)](c,d,e,f);}async['hookAll'](){const p=k,c=this[p(0x164)](),d=this[p(0x172)]();this[p(0x1a4)]['scrub']&&(d[p(0x165)]=!![]);const e=pipe_1['Pipe'][p(0x163)](this[p(0x1a4)][p(0x184)],this[p(0x180)]),f=pipe_1['Pipe']['resolve'](this[p(0x1a4)][p(0x1a5)],this[p(0x180)]),g=[e+':'+f];return await this[p(0x17e)][p(0x16f)](this['config'][p(0x191)],c,d,g);}}function a(){const q=['topic','1953333ytvAHn','signal-collation-overage','1608Lfsgds','filterAdjacent','CollationError','adjacencyList','mapOutputData','mapRules','mapJobData','subtype','debug','appId','maps','10looHfn','GetStateError','metadata','jid','signal-collation-error','config','key_value','../collator','../mapper','notarizeEarlyCompletion','aid','GenerationalError','InactiveJobError','5gDmtpX','2151083fWVOBD','../telemetry','resolver','info','setActivityAttributes','__esModule','../pipe','resolve','mapSignalData','scrub','app.activity.mids','signal','signal-process-error','55272PsVWKm','MapperService','Pipe','code','Signal','process','hookAll','877540xNKBwX','process-event-generational-job-error','mapResolverData','411taQhYf','../../modules/errors','mapActivityAttributes','Activity','signal-get-state-error','transition','gid','logger','hookOne','setStatus','setState','engine','startActivitySpan','context','message','defineProperty','329WhuolL','key_name','signal-process','fault','signal-process-end','hook','error','status','12OTaWpB','2723412TrPfyT','680058iJVTIf','guid','exec','./activity'];a=function(){return q;};return a();}exports[k(0x16d)]=Signal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f
|
|
1
|
+
'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x1d1))/0x1+parseInt(k(0x1c2))/0x2*(-parseInt(k(0x193))/0x3)+-parseInt(k(0x1c1))/0x4*(parseInt(k(0x1a0))/0x5)+parseInt(k(0x1c6))/0x6+-parseInt(k(0x1c4))/0x7*(-parseInt(k(0x1af))/0x8)+parseInt(k(0x182))/0x9*(-parseInt(k(0x179))/0xa)+parseInt(k(0x1ab))/0xb*(parseInt(k(0x1bf))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xf3c73));Object[l(0x19e)](exports,l(0x1bd),{'value':!![]}),exports[l(0x17b)]=void 0x0;const errors_1=require(l(0x1c0)),utils_1=require(l(0x194)),collator_1=require(l(0x1c3)),pipe_1=require(l(0x19a)),reporter_1=require(l(0x1e7)),serializer_1=require(l(0x17d)),telemetry_1=require(l(0x195)),activity_1=require(l(0x18c));class Trigger extends activity_1[l(0x1a4)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x1dd)](c){const m=l;this['logger'][m(0x1ce)](m(0x1e5),{'subscribes':this['config']['subscribes']});let d;try{this[m(0x19d)](0x2),await this[m(0x190)](),d=new telemetry_1['TelemetryService'](this[m(0x1dc)][m(0x1d4)],this[m(0x1cb)],this[m(0x181)],this[m(0x1e3)]),d['startJobSpan'](),d['startActivitySpan'](this['leg']),this[m(0x1c8)](),this[m(0x1b3)]=await this[m(0x1cc)]();const e=this[m(0x1aa)](c,this['adjacencyList'][m(0x1cf)]);await this[m(0x18d)](e),await this['setStatus'](e),this[m(0x19f)](c),this[m(0x1b4)](c);const f=this[m(0x1b2)][m(0x1cd)]();await this[m(0x184)](f),await this[m(0x183)](f);c?.['pending']&&await this['setExpired'](c?.[m(0x1e2)],f);await collator_1[m(0x1ca)]['notarizeInception'](this,this['context']['metadata'][m(0x1e1)],f),await f[m(0x19b)](),this[m(0x1b8)](),d[m(0x1a3)]();const g=Number(this[m(0x1e3)][m(0x181)]['js']);d[m(0x1e6)]({'app.job.jss':g});const h={'app.job.jss':g};return await this[m(0x1a2)](c,g,h),d[m(0x186)](h),this[m(0x1e3)][m(0x181)][m(0x1df)];}catch(i){d?.[m(0x198)](i['message']);if(i instanceof errors_1[m(0x1c9)]){await(0x0,utils_1[m(0x18a)])(0x3e8);const j=await collator_1[m(0x1ca)]['isInceptionOverage'](this,this[m(0x1e3)]['metadata'][m(0x1e1)]);if(j){this[m(0x199)]['info'](m(0x1c5),{'job_id':i[m(0x18e)],'guid':this[m(0x1e3)]['metadata'][m(0x1e1)]});return;}this[m(0x199)][m(0x1da)](m(0x1d9),{'job_id':i[m(0x18e)],'guid':this[m(0x1e3)][m(0x181)][m(0x1e1)]});}else this[m(0x199)][m(0x1da)](m(0x1de),{'error':i});throw i;}finally{d?.[m(0x1ba)](),d?.[m(0x1d2)](),this[m(0x199)][m(0x1ce)]('trigger-process-end',{'subscribes':this[m(0x1cb)][m(0x1e4)],'jid':this[m(0x1e3)][m(0x181)][m(0x1df)],'gid':this[m(0x1e3)]['metadata'][m(0x17c)]});}}async['transitionAndLogAdjacent'](c={},d,e){const n=l;if(isNaN(c[n(0x1e2)])){const f=await this[n(0x1b9)](this['adjacencyList'],d);f[n(0x1cf)]&&(e[n(0x1a9)]=f[n(0x1d0)](','));}}[l(0x1aa)](c={},d){const o=l;if(c[o(0x1e2)])return-0x1;return d;}async[l(0x1b7)](c,d){const p=l;await this[p(0x1b2)][p(0x1ac)](this['context'][p(0x181)][p(0x1df)],c,d);}[l(0x176)](c){return'_'+c;}[l(0x19f)](c){const q=l;c?.[q(0x1bb)]&&Object[q(0x1a8)](c[q(0x1bb)])[q(0x1b0)](d=>{const r=q;this['context'][r(0x18f)][this[r(0x176)](d)]=c[r(0x1bb)][d][r(0x192)]();});}[l(0x1b4)](c){const s=l;c?.['marker']&&Object['keys'](c['marker'])[s(0x1b0)](d=>{const t=s;d[t(0x1ae)]('-')&&(this[t(0x1e3)]['data'][d]=c['marker'][d][t(0x192)]());});}async['setStatus'](c){const u=l;this[u(0x1e3)][u(0x181)]['js']=c;}async[l(0x1b8)](){const v=l;if(this[v(0x1e3)][v(0x181)]['px']){const c=(0x0,utils_1['formatISODate'])(new Date()),d={'metadata':this['context'][v(0x181)],'data':{'job_id':this[v(0x1e3)][v(0x181)]['jid'],'jc':c,'ju':c}};await this[v(0x1dc)][v(0x1b8)](this[v(0x1e3)],d);}}[l(0x1c7)](){const w=l,c={[this[w(0x181)][w(0x17f)]]:{'input':{'data':this[w(0x18f)]}},'$self':{'input':{'data':this['data']},'output':{'data':this[w(0x18f)]}}};return c;}async[l(0x190)](){const x=l,c=this[x(0x1c7)](),d=this['resolveJobId'](c),e=this[x(0x1bc)](c),f=(0x0,utils_1[x(0x177)])(new Date()),{id:g,version:h}=await this[x(0x1dc)][x(0x1b1)]();this[x(0x1a5)](collator_1[x(0x1ca)][x(0x1d7)]());const i={...this[x(0x181)],'jid':d,'key':e,'as':collator_1[x(0x1ca)][x(0x1db)]()};this[x(0x1e3)]={'metadata':{...this[x(0x181)],'gid':(0x0,utils_1[x(0x1e1)])(),'ngn':this[x(0x1e3)][x(0x181)][x(0x189)],'pj':this['context'][x(0x181)]['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context'][x(0x181)]['pd'],'pa':this[x(0x1e3)][x(0x181)]['pa'],'px':this[x(0x1e3)][x(0x181)]['px'],'app':g,'vrs':h,'tpc':this[x(0x1cb)][x(0x1e4)],'trc':this[x(0x1e3)]['metadata'][x(0x185)],'spn':this['context'][x(0x181)][x(0x188)],'guid':this['context'][x(0x181)][x(0x1e1)],'jid':d,'dad':collator_1[x(0x1ca)][x(0x1d7)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[x(0x178)])(this[x(0x1d6)]()),'js':0x0},'data':{},[this[x(0x181)]['aid']]:{'input':{'data':this[x(0x18f)],'metadata':i},'output':{'data':this[x(0x18f)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this[x(0x1e3)][x(0x1a1)]=this['context'][this[x(0x181)][x(0x17f)]],this['context'][x(0x18b)]=this[x(0x1e3)];}['bindJobMetadataPaths'](){const y=l;return serializer_1[y(0x1d8)][y(0x1e0)][y(0x1ad)][y(0x187)](c=>y(0x180)+c);}[l(0x19c)](){const z=l;return serializer_1[z(0x1d8)][z(0x1b6)][z(0x1ad)]['map'](c=>z(0x17e)+c);}[l(0x1d6)](){const A=l;return this[A(0x1cb)][A(0x1a7)]?.[A(0x1a6)]||reporter_1['ReporterService'][A(0x1d3)];}[l(0x17a)](){const B=l;return this[B(0x1e3)][B(0x181)]['js'];}[l(0x196)](c){const C=l,d=this[C(0x1cb)][C(0x1a7)]?.['id'];return d?pipe_1['Pipe']['resolve'](d,c):(0x0,utils_1[C(0x1e1)])();}['resolveJobKey'](c){const D=l,d=this[D(0x1cb)][D(0x1a7)]?.[D(0x1b5)];return d?pipe_1[D(0x197)][D(0x1d5)](d,c):'';}async[l(0x18d)](c){const E=l,d=this[E(0x1e3)][E(0x181)][E(0x1df)];if(!await this[E(0x1b2)]['setStateNX'](d,this['engine'][E(0x1d4)],c))throw new errors_1['DuplicateJobError'](d);}async[l(0x183)](c){const F=l,d=this[F(0x1e3)][F(0x181)];if(d[F(0x1b5)]&&this[F(0x1cb)][F(0x1a7)]?.['measures']){const e=await this[F(0x1dc)][F(0x1b1)](),f=new reporter_1[(F(0x1be))](e,this[F(0x1b2)],this[F(0x199)]);await this[F(0x1b2)]['setStats'](d['key'],d[F(0x1df)],d['ts'],f[F(0x191)](this[F(0x1cb)],this['context']),e,c);}}}exports['Trigger']=Trigger;function b(c,d){const e=a();return b=function(f,g){f=f-0x176;let h=e[f];return h;},b(c,d);}function a(){const G=['resolveJobId','Pipe','setActivityError','logger','../pipe','exec','bindActivityMetadataPaths','setLeg','defineProperty','bindSearchData','5sdNsaA','$self','transitionAndLogAdjacent','mapActivityAttributes','Activity','initDimensionalAddress','granularity','stats','keys','app.activity.mids','initStatus','17038571AxwCbl','expireJob','KEYS','startsWith','5512nUdAZr','forEach','getVID','store','adjacencyList','bindMarkerData','key','ACTIVITY','setExpired','execAdjacentParent','transition','endJobSpan','search','resolveJobKey','__esModule','ReporterService','24dXcfdl','../../modules/errors','4048416wVOxUh','2bSIOED','../collator','434RDpITF','trigger-collation-overage','2101200prrbvM','createInputContext','mapJobData','DuplicateJobError','CollatorService','config','filterAdjacent','transact','debug','length','join','679669gjcSjR','endActivitySpan','DEFAULT_GRANULARITY','appId','resolve','resolveGranularity','getDimensionalSeed','MDATA_SYMBOLS','duplicate-job-error','error','getTriggerSeed','engine','process','trigger-process-error','jid','JOB','guid','pending','context','subscribes','trigger-process','setJobAttributes','../reporter','safeKey','formatISODate','getTimeSeries','618450ZZDUTH','getJobStatus','Trigger','gid','../serializer','output/metadata/','aid','metadata/','metadata','45bxVHym','setStats','setState','trc','setActivityAttributes','map','spn','ngn','sleepFor','$job','./activity','setStateNX','jobId','data','getState','resolveTriggerStatistics','toString','5551995JfXUxZ','../../modules/utils','../telemetry'];a=function(){return G;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-
|
|
1
|
+
'use strict';const j=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x104;let h=e[f];return h;},b(c,d);}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x138))/0x1*(parseInt(i(0x125))/0x2)+parseInt(i(0x116))/0x3*(-parseInt(i(0x10a))/0x4)+parseInt(i(0x10c))/0x5+parseInt(i(0x10d))/0x6+parseInt(i(0x11a))/0x7*(parseInt(i(0x128))/0x8)+parseInt(i(0x13e))/0x9*(-parseInt(i(0x131))/0xa)+parseInt(i(0x111))/0xb*(parseInt(i(0x12d))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x2f243));Object[j(0x135)](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require(j(0x10e)),utils_1=require('../../modules/utils'),collator_1=require(j(0x118)),pipe_1=require(j(0x108)),telemetry_1=require('../telemetry'),activity_1=require(j(0x12e));class Worker extends activity_1[j(0x143)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x11d)](){const k=j;this[k(0x11b)][k(0x139)](k(0x126),{'jid':this[k(0x10b)][k(0x120)][k(0x137)],'gid':this[k(0x10b)][k(0x120)]['gid'],'aid':this[k(0x120)][k(0x132)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x140))](this[k(0x11e)]['appId'],this['config'],this[k(0x120)],this[k(0x10b)]),c[k(0x119)](this[k(0x133)]),this[k(0x109)]();const d=this[k(0x134)][k(0x12b)](),e=await this[k(0x127)](d);await collator_1['CollatorService']['authorizeReentry'](this,d),await this[k(0x142)](d),await this[k(0x129)](0x0,d);const f=await d['exec']();c[k(0x106)]();const g=this[k(0x130)](f);return c[k(0x141)]({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0x120)][k(0x132)];}catch(h){if(h instanceof errors_1[k(0x107)]){this['logger'][k(0x122)]('await-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x12f)]){this[k(0x11b)][k(0x13f)]('process-event-generational-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x115)]){this[k(0x11b)]['error'](k(0x10f),{'error':h});return;}else{if(h instanceof errors_1[k(0x123)]){if(h[k(0x114)]==='duplicate'){this[k(0x11b)][k(0x13f)](k(0x11f),{'job_id':this[k(0x10b)][k(0x120)]['jid'],'guid':this[k(0x10b)]['metadata'][k(0x112)]});return;}this[k(0x11b)]['error']('worker-collation-error',{'error':h});}else this['logger']['error'](k(0x110),{'error':h});}}}c?.['setActivityError'](h[k(0x124)]);throw h;}finally{c?.[k(0x12a)](),this['logger']['debug'](k(0x113),{'jid':this[k(0x10b)]['metadata']['jid'],'gid':this[k(0x10b)][k(0x120)]['gid'],'aid':this[k(0x120)][k(0x132)]});}}async['execActivity'](c){const l=j,d=pipe_1[l(0x136)][l(0x13a)](this['config']['subtype'],this[l(0x10b)]),e={'metadata':{'guid':(0x0,utils_1[l(0x112)])(),'jid':this[l(0x10b)][l(0x120)][l(0x137)],'gid':this[l(0x10b)]['metadata']['gid'],'dad':this[l(0x120)]['dad'],'aid':this[l(0x120)][l(0x132)],'topic':d,'spn':this[l(0x10b)][l(0x144)][l(0x104)][l(0x120)][l(0x13c)],'trc':this[l(0x10b)]['metadata']['trc']},'data':this[l(0x10b)][l(0x12c)]};return this[l(0x121)][l(0x105)]&&(e[l(0x13b)]={'retry':this[l(0x121)][l(0x105)]}),await this[l(0x11e)][l(0x11c)]?.[l(0x117)](d,e,c);}}function a(){const m=['8854rxkoxd','worker-process','execActivity','8iLsRMx','setStatus','endActivitySpan','transact','data','12eeHyqW','./activity','GenerationalError','resolveStatus','519310rbDHUo','aid','leg','store','defineProperty','Pipe','jid','81mEJbJD','debug','resolve','policies','l1s','Worker','9dROZBG','info','TelemetryService','setActivityAttributes','setState','Activity','$self','output','retry','mapActivityAttributes','InactiveJobError','../pipe','mapInputData','684iCLcLQ','context','1746490TpkrpG','2200506LiqikE','../../modules/errors','worker-get-state-error','worker-process-error','88396uBFSeL','guid','worker-process-end','fault','GetStateError','4881lHuozc','publishMessage','../collator','startActivitySpan','1104187hOrDsn','logger','router','process','engine','worker-collation-overage','metadata','config','error','CollationError','message'];a=function(){return m;};return a();}exports[j(0x13d)]=Worker;
|