lightrun 1.15.0 → 1.17.0
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/src/agent/agent-logger.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js.map +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.d.ts +2 -2
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js.map +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.d.ts +2 -2
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js.map +1 -1
- package/build/src/agent/config.d.ts +28 -3
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/config.js.map +1 -1
- package/build/src/agent/configuration-provider.d.ts +19 -0
- package/build/src/agent/configuration-provider.js +1 -0
- package/build/src/agent/configuration-provider.js.map +1 -0
- package/build/src/agent/controller.d.ts +11 -10
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/controller.js.map +1 -1
- package/build/src/agent/debuglet.d.ts +5 -3
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/debuglet.js.map +1 -1
- package/build/src/agent/environment-metadata.js +1 -1
- package/build/src/agent/environment-metadata.js.map +1 -1
- package/build/src/agent/io/file-index.js +1 -1
- package/build/src/agent/io/file-index.js.map +1 -1
- package/build/src/agent/io/scan-results.js +1 -1
- package/build/src/agent/io/scan-results.js.map +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/scanner.js.map +1 -1
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/io/sourcemapper.js.map +1 -1
- package/build/src/agent/leaky-bucket.js +1 -1
- package/build/src/agent/leaky-bucket.js.map +1 -1
- package/build/src/agent/log-data.d.ts +1 -1
- package/build/src/agent/log-data.js +1 -1
- package/build/src/agent/piping-manager.d.ts +5 -5
- package/build/src/agent/piping-manager.js +1 -1
- package/build/src/agent/piping-manager.js.map +1 -1
- package/build/src/agent/quota-manager.d.ts +5 -4
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/quota-manager.js.map +1 -1
- package/build/src/agent/reduction/redaction-manager.js +1 -1
- package/build/src/agent/state/inspector-state.d.ts +2 -2
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/state/inspector-state.js.map +1 -1
- package/build/src/agent/state/legacy-state.d.ts +1 -1
- package/build/src/agent/state/legacy-state.js +1 -1
- package/build/src/agent/state/legacy-state.js.map +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/debug-assert.js.map +1 -1
- package/build/src/agent/util/utils.d.ts +3 -21
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/utils.js.map +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/util/validator.js.map +1 -1
- package/build/src/agent/v8/debugapi.d.ts +2 -2
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/debugapi.js.map +1 -1
- package/build/src/agent/v8/inspector-debugapi.d.ts +4 -4
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js.map +1 -1
- package/build/src/agent/v8/legacy-debugapi.d.ts +4 -4
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js.map +1 -1
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/agent/v8/v8inspector.js.map +1 -1
- package/build/src/client/stackdriver/debug.js +1 -1
- package/build/src/client/stackdriver/status-message.d.ts +2 -1
- package/build/src/client/stackdriver/status-message.js +1 -1
- package/build/src/client/stackdriver/status-message.js.map +1 -1
- package/build/src/debuggee.js +1 -1
- package/build/src/gcp.d.ts +1 -1
- package/build/src/gcp.js +1 -1
- package/build/src/gcp.js.map +1 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/lambda.d.ts +1 -1
- package/build/src/lambda.js +1 -1
- package/build/src/lambda.js.map +1 -1
- package/build/src/resources/version.txt +1 -1
- package/build/src/types/lightrun.d.ts +4 -0
- package/build/src/types/lightrun.js +1 -1
- package/build/src/types/stackdriver.d.ts +1 -0
- package/build/src/types/stackdriver.js +1 -1
- package/build/src/types/stackdriver.js.map +1 -1
- package/build/src/types/v8.js +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1cea5f=a0_0x2314;(function(_0x3a493b,_0x189953){const _0x53cc74=a0_0x2314,_0x39f14a=_0x3a493b();while(!![]){try{const _0xb42aac=-parseInt(_0x53cc74(0x175))/0x1*(parseInt(_0x53cc74(0x16a))/0x2)+-parseInt(_0x53cc74(0x180))/0x3*(-parseInt(_0x53cc74(0x183))/0x4)+parseInt(_0x53cc74(0x16b))/0x5+-parseInt(_0x53cc74(0x16c))/0x6*(parseInt(_0x53cc74(0x184))/0x7)+parseInt(_0x53cc74(0x174))/0x8+parseInt(_0x53cc74(0x176))/0x9+parseInt(_0x53cc74(0x168))/0xa*(-parseInt(_0x53cc74(0x173))/0xb);if(_0xb42aac===_0x189953)break;else _0x39f14a['push'](_0x39f14a['shift']());}catch(_0x20816d){_0x39f14a['push'](_0x39f14a['shift']());}}}(a0_0x3bcd,0xe4f75));const a0_0x19b052=(function(){let _0x410299=!![];return function(_0xdc0188,_0x2c06d4){const _0x587758=_0x410299?function(){const _0x2dd44e=a0_0x2314;if(_0x2c06d4){const _0x5c7353=_0x2c06d4[_0x2dd44e(0x169)](_0xdc0188,arguments);return _0x2c06d4=null,_0x5c7353;}}:function(){};return _0x410299=![],_0x587758;};}()),a0_0x56d411=a0_0x19b052(this,function(){const _0x2d5175=a0_0x2314;return a0_0x56d411['toString']()[_0x2d5175(0x16e)](_0x2d5175(0x179))[_0x2d5175(0x187)]()['constructor'](a0_0x56d411)[_0x2d5175(0x16e)]('(((.+)+)+)+$');});a0_0x56d411();'use strict';Object[a0_0x1cea5f(0x17c)](exports,a0_0x1cea5f(0x182),{'value':!![]});const winston_1=require(a0_0x1cea5f(0x178)),DailyRotateFile=require(a0_0x1cea5f(0x188)),{combine,printf,timestamp}=winston_1['format'],{Console}=winston_1[a0_0x1cea5f(0x170)];function getLoggerTransport(_0x1bb457){const _0x30e4be=a0_0x1cea5f;if(_0x1bb457)return new DailyRotateFile({'dirname':_0x1bb457,'filename':AgentLogger['AGENT_LOG_FILE'],'datePattern':_0x30e4be(0x177),'createSymlink':!![],'symlinkName':AgentLogger[_0x30e4be(0x185)],'maxSize':_0x30e4be(0x189),'maxFiles':'10'});return new Console();}function a0_0x2314(_0x190a8b,_0x4f162c){const _0x504550=a0_0x3bcd();return a0_0x2314=function(_0x56d411,_0x19b052){_0x56d411=_0x56d411-0x168;let _0x3bcd97=_0x504550[_0x56d411];return _0x3bcd97;},a0_0x2314(_0x190a8b,_0x4f162c);}function a0_0x3bcd(){const _0x39c2c0=['winston','(((.+)+)+)+$','error','default','defineProperty','debug','createLogger','logger','61134JVkAGi','lightrun_nodejs_agent.log','__esModule','180dqhiTc','21BOlAuO','AGENT_LOG_FILE','warn','toString','winston-daily-rotate-file','20m','660FXOTQL','apply','38EsKyVn','3419595HFlAYA','2888760wlglHl','format','search','json','transports','toUpperCase','info','135091mnRXcR','5658544Okaupb','22081ojGtFw','11736567EZQLjt','YYYY-MM-DD-HH'];a0_0x3bcd=function(){return _0x39c2c0;};return a0_0x3bcd();}class AgentLogger{constructor(_0x166240,_0x39d6bd,_0x1bacad){const _0x49a19f=a0_0x1cea5f;this['logger']=winston_1[_0x49a19f(0x17e)]({'level':_0x39d6bd,'transports':[getLoggerTransport(_0x166240),new Console({'level':_0x1bacad,'stderrLevels':[_0x49a19f(0x17d),_0x49a19f(0x172),_0x49a19f(0x186),_0x49a19f(0x17a)]})],'format':combine(timestamp(),printf(({level:_0x2219d1,message:_0x29321a,timestamp:_0x3af1bc})=>{const _0x534f1d=_0x49a19f;return _0x3af1bc+'\x20['+_0x2219d1[_0x534f1d(0x171)]()+']\x20-\x20'+_0x29321a;}),winston_1[_0x49a19f(0x16d)][_0x49a19f(0x16f)]())});}static['createLogger'](_0x31fc25,_0x367fac,_0x246525){return new AgentLogger(_0x31fc25,_0x367fac,_0x246525);}[a0_0x1cea5f(0x17d)](..._0x1a7a9c){const _0x410f3d=a0_0x1cea5f;this[_0x410f3d(0x17f)]['debug'](_0x1a7a9c);}['info'](..._0x424a47){const _0x47cd26=a0_0x1cea5f;this[_0x47cd26(0x17f)][_0x47cd26(0x172)](_0x424a47);}[a0_0x1cea5f(0x186)](..._0x12a45e){const _0x28cd22=a0_0x1cea5f;this[_0x28cd22(0x17f)][_0x28cd22(0x186)](_0x12a45e);}[a0_0x1cea5f(0x17a)](..._0x3d9d2f){const _0xb08612=a0_0x1cea5f;this[_0xb08612(0x17f)][_0xb08612(0x17a)](_0x3d9d2f);}}exports[a0_0x1cea5f(0x17b)]=AgentLogger,AgentLogger[a0_0x1cea5f(0x185)]=a0_0x1cea5f(0x181);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a1_0x3df1(){const _0x5c17b9=['129320osuufV','inversePatterns','230896rGswRS','constructor','__esModule','defineProperty','BlocklistingPatterns','928795NWWxOl','forEach','match','9762hUUrct','2epBoaD','patterns','search','apply','506442iNjjLC','some','(((.+)+)+)+$','741760TmrXpa','matches','toString','push','188686bhBjkL','72mgYMas','1225rspfCX'];a1_0x3df1=function(){return _0x5c17b9;};return a1_0x3df1();}const a1_0x3642df=a1_0x57d2;function a1_0x57d2(_0x1f5b43,_0x15d05b){const _0x46094d=a1_0x3df1();return a1_0x57d2=function(_0x49600f,_0x5831bc){_0x49600f=_0x49600f-0x167;let _0x3df100=_0x46094d[_0x49600f];return _0x3df100;},a1_0x57d2(_0x1f5b43,_0x15d05b);}(function(_0x5b92d8,_0x157b7e){const _0x17cfdf=a1_0x57d2,_0x3c02d2=_0x5b92d8();while(!![]){try{const _0x588a8c=-parseInt(_0x17cfdf(0x172))/0x1*(-parseInt(_0x17cfdf(0x17d))/0x2)+parseInt(_0x17cfdf(0x176))/0x3+-parseInt(_0x17cfdf(0x167))/0x4+parseInt(_0x17cfdf(0x16e))/0x5+parseInt(_0x17cfdf(0x171))/0x6*(parseInt(_0x17cfdf(0x17f))/0x7)+-parseInt(_0x17cfdf(0x169))/0x8+parseInt(_0x17cfdf(0x17e))/0x9*(-parseInt(_0x17cfdf(0x179))/0xa);if(_0x588a8c===_0x157b7e)break;else _0x3c02d2['push'](_0x3c02d2['shift']());}catch(_0x4384a9){_0x3c02d2['push'](_0x3c02d2['shift']());}}}(a1_0x3df1,0x2a548));const a1_0x5831bc=(function(){let _0x44849b=!![];return function(_0x11cb87,_0x28b654){const _0x3d038b=_0x44849b?function(){const _0x2d2048=a1_0x57d2;if(_0x28b654){const _0x5f0bce=_0x28b654[_0x2d2048(0x175)](_0x11cb87,arguments);return _0x28b654=null,_0x5f0bce;}}:function(){};return _0x44849b=![],_0x3d038b;};}()),a1_0x49600f=a1_0x5831bc(this,function(){const _0x36cc0c=a1_0x57d2;return a1_0x49600f[_0x36cc0c(0x17b)]()['search'](_0x36cc0c(0x178))['toString']()[_0x36cc0c(0x16a)](a1_0x49600f)[_0x36cc0c(0x174)](_0x36cc0c(0x178));});a1_0x49600f();'use strict';Object[a1_0x3642df(0x16c)](exports,a1_0x3642df(0x16b),{'value':!![]}),exports[a1_0x3642df(0x16d)]=void 0x0;class BlocklistingPatterns{constructor(_0x1086cf){const _0x4669b3=a1_0x3642df;this[_0x4669b3(0x168)]=[],this[_0x4669b3(0x173)]=[],_0x1086cf&&_0x1086cf[_0x4669b3(0x16f)](_0x2d66c1=>{const _0x49ac0d=_0x4669b3;_0x2d66c1&&(_0x2d66c1[0x0]==='!'?this[_0x49ac0d(0x168)][_0x49ac0d(0x17c)](new RegExp(_0x2d66c1['substring'](0x1))):this[_0x49ac0d(0x173)][_0x49ac0d(0x17c)](new RegExp(_0x2d66c1)));});}[a1_0x3642df(0x17a)](_0x46251c){const _0x4832c4=a1_0x3642df,_0xb6fe25=_0x22d2cc=>_0x46251c[_0x4832c4(0x170)](_0x22d2cc);return this[_0x4832c4(0x168)]['length']!==0x0&&!this[_0x4832c4(0x168)][_0x4832c4(0x177)](_0xb6fe25)||this[_0x4832c4(0x173)][_0x4832c4(0x177)](_0xb6fe25);}}exports['BlocklistingPatterns']=BlocklistingPatterns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocklisting-patterns.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/blocklisting-patterns.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;IAI/B,YAAY,QAAkB;QAHtB,oBAAe,GAAa,EAAE,CAAC;QAC/B,aAAQ,GAAa,EAAE,CAAC;QAG9B,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,IAAI,OAAO,EAAE;oBACX,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;wBACtB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC7D;yBAAM;wBACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;qBACzC;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,
|
|
1
|
+
{"version":3,"file":"blocklisting-patterns.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/blocklisting-patterns.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;IAI/B,YAAY,QAAkB;QAHtB,oBAAe,GAAa,EAAE,CAAC;QAC/B,aAAQ,GAAa,EAAE,CAAC;QAG9B,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,IAAI,OAAO,EAAE;oBACX,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;wBACtB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC7D;yBAAM;wBACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;qBACzC;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEvD,OAAO,CACL,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC;YAChC,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAC1B,CAAC;IACJ,CAAC;CACF;AA3BD,oDA2BC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BlocklistManager } from
|
|
1
|
+
import { BlocklistManager } from '../../types/lightrun';
|
|
2
2
|
export declare class DummyBlocklistManager implements BlocklistManager {
|
|
3
3
|
readonly value: boolean;
|
|
4
4
|
constructor(value: boolean);
|
|
5
|
-
shouldBlock(
|
|
5
|
+
shouldBlock(): boolean;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a2_0x5003(){var _0x419849=['28936504LRPsrB','3SHHEcm','(((.+)+)+)+$','value','6102594WYbgAE','DummyBlocklistManager','151428zxpihK','8451499jRbgyf','constructor','search','apply','toString','4479400lCQjmT','460424SWFVgV','4039385hyyxde'];a2_0x5003=function(){return _0x419849;};return a2_0x5003();}var a2_0x5a44a0=a2_0x2465;(function(_0x12676c,_0x3e38a0){var _0x59ed76=a2_0x2465,_0x2397cb=_0x12676c();while(!![]){try{var _0x3c3516=-parseInt(_0x59ed76(0x1b2))/0x1+parseInt(_0x59ed76(0x1aa))/0x2+parseInt(_0x59ed76(0x1ad))/0x3*(parseInt(_0x59ed76(0x1b8))/0x4)+parseInt(_0x59ed76(0x1ab))/0x5+parseInt(_0x59ed76(0x1b0))/0x6+parseInt(_0x59ed76(0x1b3))/0x7+-parseInt(_0x59ed76(0x1ac))/0x8;if(_0x3c3516===_0x3e38a0)break;else _0x2397cb['push'](_0x2397cb['shift']());}catch(_0x177d83){_0x2397cb['push'](_0x2397cb['shift']());}}}(a2_0x5003,0x95e10));var a2_0x3cab71=(function(){var _0xc53b0=!![];return function(_0x277a95,_0x25125c){var _0x121aaf=_0xc53b0?function(){var _0x32a882=a2_0x2465;if(_0x25125c){var _0x456a93=_0x25125c[_0x32a882(0x1b6)](_0x277a95,arguments);return _0x25125c=null,_0x456a93;}}:function(){};return _0xc53b0=![],_0x121aaf;};}()),a2_0x1231fc=a2_0x3cab71(this,function(){var _0x12c432=a2_0x2465;return a2_0x1231fc[_0x12c432(0x1b7)]()[_0x12c432(0x1b5)]('(((.+)+)+)+$')['toString']()[_0x12c432(0x1b4)](a2_0x1231fc)[_0x12c432(0x1b5)](_0x12c432(0x1ae));});function a2_0x2465(_0x2cbbcb,_0x1c5516){var _0x236a4d=a2_0x5003();return a2_0x2465=function(_0x1231fc,_0x3cab71){_0x1231fc=_0x1231fc-0x1aa;var _0x5003fa=_0x236a4d[_0x1231fc];return _0x5003fa;},a2_0x2465(_0x2cbbcb,_0x1c5516);}a2_0x1231fc();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x5a44a0(0x1b1)]=void 0x0;class DummyBlocklistManager{constructor(_0x2e6be6){var _0x14f86b=a2_0x5a44a0;this[_0x14f86b(0x1af)]=_0x2e6be6;}['shouldBlock'](){var _0x55152d=a2_0x5a44a0;return this[_0x55152d(0x1af)];}}exports[a2_0x5a44a0(0x1b1)]=DummyBlocklistManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dummy-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/dummy-blocklist-manager.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAGhC,YAAY,KAAc;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,WAAW
|
|
1
|
+
{"version":3,"file":"dummy-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/dummy-blocklist-manager.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAGhC,YAAY,KAAc;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAVD,sDAUC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BlocklistManager } from
|
|
2
|
-
import { ResolvedDebugAgentConfig } from
|
|
1
|
+
import { BlocklistManager } from '../../types/lightrun';
|
|
2
|
+
import { ResolvedDebugAgentConfig } from '../config';
|
|
3
3
|
export declare class PatternsBlocklistManager implements BlocklistManager {
|
|
4
4
|
private blocklist;
|
|
5
5
|
private blocklistExceptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3_0x15d580=a3_0x5a83;(function(_0x5e7bfa,_0x3141a7){const _0x16147e=a3_0x5a83,_0x2c517f=_0x5e7bfa();while(!![]){try{const _0x5547bd=-parseInt(_0x16147e(0x153))/0x1+-parseInt(_0x16147e(0x151))/0x2+parseInt(_0x16147e(0x154))/0x3*(parseInt(_0x16147e(0x145))/0x4)+-parseInt(_0x16147e(0x14f))/0x5+parseInt(_0x16147e(0x14e))/0x6*(-parseInt(_0x16147e(0x152))/0x7)+parseInt(_0x16147e(0x14d))/0x8+parseInt(_0x16147e(0x14a))/0x9*(parseInt(_0x16147e(0x143))/0xa);if(_0x5547bd===_0x3141a7)break;else _0x2c517f['push'](_0x2c517f['shift']());}catch(_0x2a574b){_0x2c517f['push'](_0x2c517f['shift']());}}}(a3_0x4f12,0x337f0));const a3_0x151ce3=(function(){let _0x4435ca=!![];return function(_0x568141,_0xa2a1ac){const _0x451ad7=_0x4435ca?function(){const _0x52d5c3=a3_0x5a83;if(_0xa2a1ac){const _0x53d14f=_0xa2a1ac[_0x52d5c3(0x156)](_0x568141,arguments);return _0xa2a1ac=null,_0x53d14f;}}:function(){};return _0x4435ca=![],_0x451ad7;};}()),a3_0x1d654c=a3_0x151ce3(this,function(){const _0x62e2be=a3_0x5a83;return a3_0x1d654c[_0x62e2be(0x15e)]()[_0x62e2be(0x15b)](_0x62e2be(0x155))[_0x62e2be(0x15e)]()[_0x62e2be(0x146)](a3_0x1d654c)[_0x62e2be(0x15b)](_0x62e2be(0x155));});function a3_0x4f12(){const _0x36230a=['148710FgEipq','31869gwfcEo','(((.+)+)+)+$','apply','shouldBlock','config','BlocklistingPatterns','blocklist','search','__esModule','stripCurrentWorkingDirectory','toString','30eMHyIk','blocklistExceptions','104VJaoeQ','constructor','matches','stripWorkingDir','../util/utils','2158551iGskjn','defineProperty','PatternsBlocklistManager','155640CvWfVG','72396MeZqZy','560305abPFNX','./blocklisting-patterns','580170iiwLFg','147hLkIOB'];a3_0x4f12=function(){return _0x36230a;};return a3_0x4f12();}a3_0x1d654c();function a3_0x5a83(_0x38f745,_0x54aba5){const _0x26dbfc=a3_0x4f12();return a3_0x5a83=function(_0x1d654c,_0x151ce3){_0x1d654c=_0x1d654c-0x143;let _0x4f120d=_0x26dbfc[_0x1d654c];return _0x4f120d;},a3_0x5a83(_0x38f745,_0x54aba5);}'use strict';Object[a3_0x15d580(0x14b)](exports,a3_0x15d580(0x15c),{'value':!![]}),exports[a3_0x15d580(0x14c)]=void 0x0;const blocklisting_patterns_1=require(a3_0x15d580(0x150)),utils=require(a3_0x15d580(0x149));class PatternsBlocklistManager{constructor(_0xbb0c11,_0x2c2967,_0x8b9b46){const _0x3aeb39=a3_0x15d580;this[_0x3aeb39(0x15a)]=new blocklisting_patterns_1['BlocklistingPatterns'](_0xbb0c11),this[_0x3aeb39(0x144)]=new blocklisting_patterns_1[(_0x3aeb39(0x159))](_0x2c2967),this[_0x3aeb39(0x158)]=_0x8b9b46;}[a3_0x15d580(0x157)](_0x29e61b){const _0x17b937=a3_0x15d580;_0x29e61b=this[_0x17b937(0x148)](_0x29e61b);if(this['blocklistExceptions'][_0x17b937(0x147)](_0x29e61b))return![];return this[_0x17b937(0x15a)]['matches'](_0x29e61b);}[a3_0x15d580(0x148)](_0xbbc267){const _0x31dd41=a3_0x15d580;if(utils['isPathInCurrentWorkingDirectory'](_0xbbc267,this[_0x31dd41(0x158)]))return utils[_0x31dd41(0x15d)](_0xbbc267,this[_0x31dd41(0x158)]);return _0xbbc267;}}exports['PatternsBlocklistManager']=PatternsBlocklistManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/patterns-blocklist-manager.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAG7D,uCAAuC;AAEvC,MAAa,wBAAwB;IAKnC,
|
|
1
|
+
{"version":3,"file":"patterns-blocklist-manager.js","sourceRoot":"","sources":["../../../../src/agent/blocklisting/patterns-blocklist-manager.ts"],"names":[],"mappings":";;;AAAA,mEAA6D;AAG7D,uCAAuC;AAEvC,MAAa,wBAAwB;IAKnC,YACE,SAAmB,EACnB,mBAA6B,EAC7B,MAAgC;QAEhC,IAAI,CAAC,SAAS,GAAG,IAAI,4CAAoB,CAAC,SAAS,CAAC,CAAC;QACrD,IAAI,CAAC,mBAAmB,GAAG,IAAI,4CAAoB,CAAC,mBAAmB,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,WAAW,CAAC,IAAY;QACtB,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC1C,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEO,eAAe,CAAC,IAAY;QAClC,IAAI,KAAK,CAAC,+BAA+B,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;YAC5D,OAAO,KAAK,CAAC,4BAA4B,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SAC9D;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA7BD,4DA6BC"}
|
|
@@ -52,7 +52,9 @@ export interface AgentMetadata {
|
|
|
52
52
|
filename?: string;
|
|
53
53
|
registration?: {
|
|
54
54
|
displayName?: string;
|
|
55
|
-
tags?: Array<
|
|
55
|
+
tags?: Array<string | {
|
|
56
|
+
name: string;
|
|
57
|
+
}>;
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
/**
|
|
@@ -244,13 +246,36 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
244
246
|
* somewhat proportional to the amount of processing needed to capture the
|
|
245
247
|
* data and subsequently the network traffic. A value of 0 disables the
|
|
246
248
|
* limit.
|
|
249
|
+
* @deprecated since version 1.16.0, use maxSnapshotBufferSize instead
|
|
247
250
|
*/
|
|
248
|
-
maxDataSize
|
|
251
|
+
maxDataSize?: number;
|
|
249
252
|
/**
|
|
250
253
|
* To limit the size of the buffer, we truncate long strings. A value of 0
|
|
251
254
|
* disables truncation.
|
|
255
|
+
* @deprecated since version 1.16.0 use maxVariableSize instead
|
|
252
256
|
*/
|
|
253
|
-
maxStringLength
|
|
257
|
+
maxStringLength?: number;
|
|
258
|
+
/**
|
|
259
|
+
* To limit the size of the buffer, we truncate long string. A value of 0
|
|
260
|
+
* disables truncation.
|
|
261
|
+
*/
|
|
262
|
+
maxVariableSize: number;
|
|
263
|
+
/**
|
|
264
|
+
* Maximum number of characters we allow for a watch list variable
|
|
265
|
+
* if a user wants to see a large variable (which is > than maxVariableSize) we can show him more characters for the variable
|
|
266
|
+
* with a watch variable (expression) to allow more characters for this variable.
|
|
267
|
+
* This configuration limits the maximum amount of characters we allow for watch variables.
|
|
268
|
+
*/
|
|
269
|
+
maxWatchListVariableSize: number;
|
|
270
|
+
/**
|
|
271
|
+
* Total 'size' of data to gather. This is NOT the number of bytes of data
|
|
272
|
+
* that are sent over the wire, but instead a very very coarse approximation
|
|
273
|
+
* based on the length of names and values of the properties. This should be
|
|
274
|
+
* somewhat proportional to the amount of processing needed to capture the
|
|
275
|
+
* data and subsequently the network traffic. A value of 0 disables the
|
|
276
|
+
* limit.
|
|
277
|
+
*/
|
|
278
|
+
maxSnapshotBufferSize: number;
|
|
254
279
|
};
|
|
255
280
|
/**
|
|
256
281
|
* options affecting log points.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x5ebf75=a4_0x3cc9;function a4_0x543d(){const _0x16e067=['toString','6113028xmewdH','search','9387846KJKFnH','1471vFrdjj','info','78fwgkLv','8UqgTtb',',\x20\x20\x20the\x20file\x20','constructor','!!!\x20NOT\x20SET\x20!!!','logMainConfigParams','13098183sNXfiG','325595HEoVul','515a630cfd1fb908e30087bcc20b7413ad146b9bf2b23d3aaa72c28e45b24fb2','agent.config','agentConfigFile','not\x20set!','defaultConfig','apply','1331810hSIXgK','Production','cwd','app.lightrun.com','Agent\x20Configuration:\x20','DOESN\x27T\x20EXIST','defineProperty','tmpdir','5107251FatrxJ','1396LngfqK','node_modules/lightrun/build/src/resources/lightrun-self-signed.pem','(((.+)+)+)+$'];a4_0x543d=function(){return _0x16e067;};return a4_0x543d();}(function(_0x70f6ea,_0x459f31){const _0x6fb39b=a4_0x3cc9,_0x50345f=_0x70f6ea();while(!![]){try{const _0x36cc8f=parseInt(_0x6fb39b(0x82))/0x1*(parseInt(_0x6fb39b(0x7b))/0x2)+-parseInt(_0x6fb39b(0x7a))/0x3+parseInt(_0x6fb39b(0x7f))/0x4+-parseInt(_0x6fb39b(0x8b))/0x5*(parseInt(_0x6fb39b(0x84))/0x6)+parseInt(_0x6fb39b(0x8a))/0x7*(parseInt(_0x6fb39b(0x85))/0x8)+-parseInt(_0x6fb39b(0x81))/0x9+parseInt(_0x6fb39b(0x72))/0xa;if(_0x36cc8f===_0x459f31)break;else _0x50345f['push'](_0x50345f['shift']());}catch(_0x508f1d){_0x50345f['push'](_0x50345f['shift']());}}}(a4_0x543d,0xec28b));const a4_0x3292c6=(function(){let _0x43c408=!![];return function(_0xbce670,_0x227ab3){const _0x1ce26e=_0x43c408?function(){const _0x31d90e=a4_0x3cc9;if(_0x227ab3){const _0x5d38f5=_0x227ab3[_0x31d90e(0x71)](_0xbce670,arguments);return _0x227ab3=null,_0x5d38f5;}}:function(){};return _0x43c408=![],_0x1ce26e;};}()),a4_0x45499f=a4_0x3292c6(this,function(){const _0x314fc5=a4_0x3cc9;return a4_0x45499f[_0x314fc5(0x7e)]()['search'](_0x314fc5(0x7d))[_0x314fc5(0x7e)]()[_0x314fc5(0x87)](a4_0x45499f)[_0x314fc5(0x80)](_0x314fc5(0x7d));});a4_0x45499f();'use strict';Object[a4_0x5ebf75(0x78)](exports,'__esModule',{'value':!![]}),exports[a4_0x5ebf75(0x89)]=exports[a4_0x5ebf75(0x90)]=void 0x0;const os_1=require('os'),fs_1=require('fs');exports[a4_0x5ebf75(0x90)]={'workingDirectory':process[a4_0x5ebf75(0x74)](),'allowRootAsWorkingDirectory':![],'description':undefined,'allowExpressions':!![],'serviceContext':{'service':undefined,'version':undefined,'minorVersion_':undefined},'appPathRelativeToRepository':undefined,'javascriptFileExtensions':['.js'],'pathResolver':undefined,'breakpointUpdateIntervalSec':0x1e,'breakpointExpirationSec':0x3c*0x3c,'expressionsEvalTimeoutMillis':0x7d0,'capture':{'includeNodeModules':![],'maxFrames':0x14,'maxExpandFrames':0x5,'maxProperties':0xa,'maxVariableSize':0x100,'maxSnapshotBufferSize':0xfde8,'maxWatchListVariableSize':0x8000},'log':{'logger':console},'internal':{'registerDelayOnFetcherErrorSec':0x1e,'maxRequestRetryDelaySeconds':0x28},'forceNewAgent_':![],'testMode_':![],'apiEndpoint':a4_0x5ebf75(0x75),'lightrunSecret':'','agentLog':{'logsPath':os_1[a4_0x5ebf75(0x79)](),'level':a4_0x5ebf75(0x83),'stdErrThreshold':'none','collectCooldownMs':0x3e8*0x3c,'maxLogFileBytes':0x400*0x400},'pinnedCerts':[a4_0x5ebf75(0x8c),'ee80811b38e7e6c2dc4cc372cbea86bd86b446b012e427f2e19bf094afba5d12'],'noCheckCertificate':![],'caPath':a4_0x5ebf75(0x7c),'metadata':{'registration':{'tags':[a4_0x5ebf75(0x73)]}},'transmissionBulkMaxSize':0xa,'quota':{'maxConditionCost':0x1,'maxCPUCost':0x1,'maxDynamicLogRate':0x1e,'maxDynamicLogByteRate':0x5000,'ignoreQuota':![],'quotaRecoverySeconds':0x1},'agentConfigFile':a4_0x5ebf75(0x8d),'resetV8DebuggerThreshold':0x1e,'fetchBreakpointsOnce':![],'lightrunWaitForInit':![],'lightrunInitWaitTimeMs':0x7d0,'requestTimeoutMs':0x4e20};function logMainConfigParams(_0x2018b1,_0x34bcfa){const _0x49e61d=a4_0x5ebf75;let _0x2770ef=_0x2018b1['agentConfigFile'];_0x2770ef?_0x2770ef+=_0x49e61d(0x86)+(fs_1['existsSync'](_0x2018b1[_0x49e61d(0x8e)])?'exists':_0x49e61d(0x77)):_0x2770ef=_0x49e61d(0x8f);const _0x14e994={..._0x2018b1,'lightrunSecret':_0x2018b1['lightrunSecret']?'set':_0x49e61d(0x88),'agentConfigFile':_0x2770ef};_0x34bcfa['debug'](_0x49e61d(0x76),_0x14e994);}function a4_0x3cc9(_0x1136c4,_0xe7cc7a){const _0xa80c3f=a4_0x543d();return a4_0x3cc9=function(_0x45499f,_0x3292c6){_0x45499f=_0x45499f-0x71;let _0x543d19=_0xa80c3f[_0x45499f];return _0x543d19;},a4_0x3cc9(_0x1136c4,_0xe7cc7a);}exports[a4_0x5ebf75(0x89)]=logMainConfigParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,2BAA0B;AAC1B,2BAA8B;AAqejB,QAAA,aAAa,GAA6B;IACrD,8EAA8E;IAC9E,oEAAoE;IACpE,gBAAgB,EAAE,OAAO,CAAC,GAAG,EAAE;IAC/B,2BAA2B,EAAE,KAAK;IAClC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,IAAI;IAEtB,0EAA0E;IAC1E,0DAA0D;IAC1D,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,aAAa,EAAE,SAAS;KACzB;IAED,2BAA2B,EAAE,SAAS;IACtC,wBAAwB,EAAE,CAAC,KAAK,CAAC;IACjC,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,EAAE;IAC/B,uBAAuB,EAAE,EAAE,GAAG,EAAE;IAChC,4BAA4B,EAAE,IAA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IAEnB,IAAI,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,IAAI,eAAe,EAAE;QACnB,eAAe;YACb,eAAe;gBACf,CAAC,eAAU,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;KAClE;SAAM;QACL,eAAe,GAAG,UAAU,CAAC;KAC9B;IACD,MAAM,aAAa,GAAG;QACpB,GAAG,GAAG;QACN,cAAc,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB;QAC9D,eAAe,EAAE,eAAe;KACjC,CAAC;IACF,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;AACvD,CAAC;AAlBD,kDAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ResolvedDebugAgentConfig } from './config';
|
|
2
|
+
/**
|
|
3
|
+
* A wrapper to handle backward compatibility or any other logic related to retrieving a config value.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ConfigurationProvider {
|
|
6
|
+
private resolvedDebugAgentConfig;
|
|
7
|
+
constructor(resolvedDebugAgentConfig: ResolvedDebugAgentConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the maximum size allowed for a variable value
|
|
10
|
+
* Gives priority to the legacy maxStringLength param for backward compatibility
|
|
11
|
+
*/
|
|
12
|
+
getMaxVariableSize(): number;
|
|
13
|
+
getMaxWatchListVariableSize(): number;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the maximum size allowed for a complete snapshot size
|
|
16
|
+
* Gives priority to the legacy maxDatasize param for backward compability
|
|
17
|
+
*/
|
|
18
|
+
getMaxSnapshotBufferSize(): number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a5_0x263b(_0x12c8fa,_0x3c1d82){var _0x28b17f=a5_0x18b5();return a5_0x263b=function(_0x311e44,_0x3a325f){_0x311e44=_0x311e44-0x13c;var _0x18b5e3=_0x28b17f[_0x311e44];return _0x18b5e3;},a5_0x263b(_0x12c8fa,_0x3c1d82);}var a5_0x32248d=a5_0x263b;(function(_0x10cd74,_0x317a01){var _0x327e5c=a5_0x263b,_0x324bda=_0x10cd74();while(!![]){try{var _0x377dad=-parseInt(_0x327e5c(0x159))/0x1*(parseInt(_0x327e5c(0x13f))/0x2)+-parseInt(_0x327e5c(0x14a))/0x3*(parseInt(_0x327e5c(0x148))/0x4)+-parseInt(_0x327e5c(0x147))/0x5*(parseInt(_0x327e5c(0x156))/0x6)+parseInt(_0x327e5c(0x143))/0x7*(parseInt(_0x327e5c(0x146))/0x8)+parseInt(_0x327e5c(0x151))/0x9*(parseInt(_0x327e5c(0x158))/0xa)+-parseInt(_0x327e5c(0x14e))/0xb+-parseInt(_0x327e5c(0x142))/0xc*(-parseInt(_0x327e5c(0x149))/0xd);if(_0x377dad===_0x317a01)break;else _0x324bda['push'](_0x324bda['shift']());}catch(_0x85fa5b){_0x324bda['push'](_0x324bda['shift']());}}}(a5_0x18b5,0xb6d6e));var a5_0x3a325f=(function(){var _0x194757=!![];return function(_0x5d52a0,_0x483afa){var _0x3f81ec=_0x194757?function(){var _0x4b6d50=a5_0x263b;if(_0x483afa){var _0x54cf68=_0x483afa[_0x4b6d50(0x141)](_0x5d52a0,arguments);return _0x483afa=null,_0x54cf68;}}:function(){};return _0x194757=![],_0x3f81ec;};}()),a5_0x311e44=a5_0x3a325f(this,function(){var _0xab4a0a=a5_0x263b;return a5_0x311e44[_0xab4a0a(0x155)]()[_0xab4a0a(0x13c)](_0xab4a0a(0x14f))[_0xab4a0a(0x155)]()[_0xab4a0a(0x154)](a5_0x311e44)[_0xab4a0a(0x13c)](_0xab4a0a(0x14f));});function a5_0x18b5(){var _0x3dda79=['83aofFgQ','search','getMaxSnapshotBufferSize','resolvedDebugAgentConfig','3314JLbnwz','maxWatchListVariableSize','apply','14024976DNhpQm','7pbDiTm','defineProperty','getMaxWatchListVariableSize','7981528eGkfap','1271920bhnWeQ','4ogSTnF','13WaGtLU','2873148XZkMYE','maxVariableSize','ConfigurationProvider','capture','8811902NwqFqr','(((.+)+)+)+$','maxDataSize','2304RpbYvK','__esModule','getMaxVariableSize','constructor','toString','6NLcWmO','maxSnapshotBufferSize','28640BjyxUm'];a5_0x18b5=function(){return _0x3dda79;};return a5_0x18b5();}a5_0x311e44();'use strict';Object[a5_0x32248d(0x144)](exports,a5_0x32248d(0x152),{'value':!![]}),exports['ConfigurationProvider']=void 0x0;class ConfigurationProvider{constructor(_0x4026f7){this['resolvedDebugAgentConfig']=_0x4026f7;}[a5_0x32248d(0x153)](){var _0x1890ae=a5_0x32248d;return this[_0x1890ae(0x13e)][_0x1890ae(0x14d)]['maxStringLength']||this['resolvedDebugAgentConfig'][_0x1890ae(0x14d)][_0x1890ae(0x14b)];}[a5_0x32248d(0x145)](){var _0x2a268c=a5_0x32248d;return this['resolvedDebugAgentConfig']['capture'][_0x2a268c(0x140)];}[a5_0x32248d(0x13d)](){var _0x2961fb=a5_0x32248d;return this[_0x2961fb(0x13e)][_0x2961fb(0x14d)][_0x2961fb(0x150)]||this[_0x2961fb(0x13e)][_0x2961fb(0x14d)][_0x2961fb(0x157)];}}exports[a5_0x32248d(0x14c)]=ConfigurationProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-provider.js","sourceRoot":"","sources":["../../../src/agent/configuration-provider.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,qBAAqB;IAEhC,YAAY,wBAAkD;QAC5D,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,CACL,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,eAAe;YACrD,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,eAAe,CACtD,CAAC;IACJ,CAAC;IAED,2BAA2B;QACzB,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,wBAAwB;QACtB,OAAO,CACL,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,WAAW;YACjD,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAC5D,CAAC;IACJ,CAAC;CACF;AA/BD,sDA+BC"}
|
|
@@ -11,9 +11,10 @@ import { AxiosResponse } from 'axios';
|
|
|
11
11
|
import { ApiError, DecorateRequestOptions } from '@google-cloud/common/build/src/util';
|
|
12
12
|
import { ResolvedDebugAgentConfig } from './config';
|
|
13
13
|
import AgentLogger from './agent-logger';
|
|
14
|
-
import { LogData } from
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
import { LogData } from './log-data';
|
|
15
|
+
import { PatternDTO } from '../types/lightrun';
|
|
16
|
+
export interface ResponseCallback<T> {
|
|
17
|
+
(err: Error | ApiError | null, body?: T, res?: AxiosResponse): void;
|
|
17
18
|
}
|
|
18
19
|
export declare class Controller extends ServiceObject {
|
|
19
20
|
private nextWaitToken;
|
|
@@ -54,17 +55,17 @@ export declare class Controller extends ServiceObject {
|
|
|
54
55
|
*/
|
|
55
56
|
enqueueBreakpointUpdate(debuggee: Debuggee, breakpoint: stackdriver.Breakpoint): void;
|
|
56
57
|
clearTransmissionTimeout(): void;
|
|
57
|
-
deregister(debuggee: Debuggee, callback: ResponseCallback): void;
|
|
58
|
-
sendBreakpointLogsToServer(debuggee: Debuggee, logs: LogData[], callback: ResponseCallback): void;
|
|
59
|
-
sendAppOnlyBreakpointHitsToServer(debuggee: Debuggee, breakpointIds: string[], callback: ResponseCallback): void;
|
|
58
|
+
deregister(debuggee: Debuggee, callback: ResponseCallback<never>): void;
|
|
59
|
+
sendBreakpointLogsToServer(debuggee: Debuggee, logs: LogData[], callback: ResponseCallback<never>): void;
|
|
60
|
+
sendAppOnlyBreakpointHitsToServer(debuggee: Debuggee, breakpointIds: string[], callback: ResponseCallback<never>): void;
|
|
60
61
|
sendAgentLogsToServer(debuggee: Debuggee, requestId: string, logsPath: string): void;
|
|
61
62
|
transmitBreakpointUpdates(debuggeeId: string): void;
|
|
62
63
|
getBlocklist(debuggeeId: string): Promise<any>;
|
|
63
|
-
makeRequest(reqOpts: DecorateRequestOptions, callback?: ResponseCallback): Promise<{
|
|
64
|
-
error:
|
|
65
|
-
data:
|
|
64
|
+
makeRequest<T>(reqOpts: DecorateRequestOptions, callback?: ResponseCallback<T>): Promise<{
|
|
65
|
+
error: unknown;
|
|
66
|
+
data: T | undefined;
|
|
66
67
|
res: AxiosResponse;
|
|
67
68
|
}>;
|
|
68
69
|
verifyCertificate(host: string, cert: PeerCertificate, config: ResolvedDebugAgentConfig): Error | undefined;
|
|
69
|
-
getRedactions(debuggeeId: string): Promise<
|
|
70
|
+
getRedactions(debuggeeId: string): Promise<PatternDTO[] | undefined>;
|
|
70
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0xbf4407=a5_0x4efc;(function(_0x3c739e,_0x36b4d6){const _0x4c3c05=a5_0x4efc,_0x5f8480=_0x3c739e();while(!![]){try{const _0x4d03e7=parseInt(_0x4c3c05(0x24c))/0x1*(-parseInt(_0x4c3c05(0x236))/0x2)+-parseInt(_0x4c3c05(0x234))/0x3*(parseInt(_0x4c3c05(0x258))/0x4)+-parseInt(_0x4c3c05(0x217))/0x5+parseInt(_0x4c3c05(0x1fb))/0x6*(parseInt(_0x4c3c05(0x218))/0x7)+parseInt(_0x4c3c05(0x260))/0x8*(parseInt(_0x4c3c05(0x203))/0x9)+parseInt(_0x4c3c05(0x22f))/0xa+parseInt(_0x4c3c05(0x221))/0xb;if(_0x4d03e7===_0x36b4d6)break;else _0x5f8480['push'](_0x5f8480['shift']());}catch(_0x15ff2f){_0x5f8480['push'](_0x5f8480['shift']());}}}(a5_0x94ec,0xac9c7));const a5_0x1acee3=(function(){let _0x3a49c4=!![];return function(_0x3b8aa2,_0x1d08f5){const _0x2b7e77=_0x3a49c4?function(){const _0x3b1b5e=a5_0x4efc;if(_0x1d08f5){const _0x52232b=_0x1d08f5[_0x3b1b5e(0x231)](_0x3b8aa2,arguments);return _0x1d08f5=null,_0x52232b;}}:function(){};return _0x3a49c4=![],_0x2b7e77;};}()),a5_0x2b946=a5_0x1acee3(this,function(){const _0x2f931e=a5_0x4efc;return a5_0x2b946['toString']()[_0x2f931e(0x25d)]('(((.+)+)+)+$')[_0x2f931e(0x263)]()[_0x2f931e(0x219)](a5_0x2b946)['search'](_0x2f931e(0x211));});a5_0x2b946();function a5_0x94ec(){const _0x41e556=['/redaction','floor','Getting\x20blocklist','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','hex','catch','Failed\x20transmitting\x20app_only\x20breakpoint\x20hits,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','length','transmitBreakpointUpdates','\x20for\x20request\x20id\x20','Agent','now','config','cancel','Transmitting\x20breakpoint\x20updates...','2490TYWkEU','/log/','querystring','verifyCertificate','should\x20have\x20a\x20registered\x20debuggee','PUT','apiEndpoint','Controller','320337rhJuIU','Getting\x20reductions','map','then','axios','Compressing\x20and\x20sending\x20log\x20file\x20','push','https','createGzip','waitToken','apiUrl','size','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','defineProperty','(((.+)+)+)+$','debug','sendBreakpointLogsToServer','transmissionBulkMaxSize','\x20seconds','load','5766910FdHBEX','8603aGdJWQ','constructor','Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','/controller','sha256','lastLogCollectionTime','register','readFileSync','unknown\x20error\x20-\x20request\x20response\x20missing','3837922QSlDlL','default','status','deregister','application/json','Failed\x20to\x20zip\x20','Certificate\x20Pinning\x20Failed!','Successfully\x20sent\x20log\x20file\x20','message','/deregister/','assert','update','\x22\x20-\x20ignoring\x20it','createReadStream','5624920CwYILJ','reject','apply','Failed\x20to\x20read\x20pem\x20file\x20\x22','\x20transmitted\x20successfully','3UPSZJf','__esModule','4034FoKFkF','stringify','unable\x20to\x20register,\x20status\x20','warn','createHash','clearTransmissionTimeout','/breakpoints','makeRequest','max','tls','Failed\x20to\x20deregister\x20agent,\x20Error:\x20','/appOnlyActionHits/','memory-streams','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','response','finally','extend','/debuggees/','selfSignedCA','@google-cloud/common','info','createSecureContext','394tFxdkM','agentLog','token','statSync','\x20for\x20request\x20','Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20','noCheckCertificate','logger','agentId','crypto','invalid\x20response\x20body\x20from\x20server','\x20Error:\x20','333100kuLoDq','debuggee','Failed\x20to\x20send\x20log\x20file\x20','js-yaml','body','search','POST','context','296vKMgKT','bind','nextWaitToken','toString','requestTimeoutMs','caPath','getRedactions','error','enqueueBreakpointUpdate','secureContext','transmissionQueue','sendAgentLogsToServer','getBlocklist','/compressedLogFile/','ServiceObject','WritableStream','transmissionTimeout','Bearer\x20','includes','addCACert','data','digest','zlib'];a5_0x94ec=function(){return _0x41e556;};return a5_0x94ec();}function a5_0x4efc(_0x50504c,_0x597524){const _0xc6989b=a5_0x94ec();return a5_0x4efc=function(_0x2b946,_0x1acee3){_0x2b946=_0x2b946-0x1f2;let _0x94ecc7=_0xc6989b[_0x2b946];return _0x94ecc7;},a5_0x4efc(_0x50504c,_0x597524);}'use strict';Object[a5_0xbf4407(0x210)](exports,a5_0xbf4407(0x235),{'value':!![]}),exports[a5_0xbf4407(0x202)]=void 0x0;const common_1=require(a5_0xbf4407(0x249)),assert=require(a5_0xbf4407(0x22b)),qs=require(a5_0xbf4407(0x1fd)),fs_1=require('fs'),crypto_1=require(a5_0xbf4407(0x255)),zlib_1=require(a5_0xbf4407(0x276)),stream_1=require('stream'),memory_streams_1=require(a5_0xbf4407(0x242)),tls_1=require(a5_0xbf4407(0x23f)),extend=require(a5_0xbf4407(0x246)),axios_1=require(a5_0xbf4407(0x207)),https=require(a5_0xbf4407(0x20a)),yaml=require(a5_0xbf4407(0x25b)),MAX_FAILED_SEND_ATTEMPTS=0x5,HTTP_SUCCESS=0xc8,HTTP_UPGRADE_REQUIRED=0x1aa;class Controller extends common_1[a5_0xbf4407(0x26e)]{constructor(_0x4a3584,_0x209f65,_0x466d94){const _0x40f638=a5_0xbf4407;super({'parent':_0x4a3584,'baseUrl':_0x40f638(0x21b)}),this['nextWaitToken']=null,this[_0x40f638(0x254)]=null,this[_0x40f638(0x1f8)]=_0x209f65,this['transmissionQueue']=[],this['logger']=_0x466d94;if(_0x209f65[_0x40f638(0x265)])try{this[_0x40f638(0x248)]=fs_1[_0x40f638(0x21f)](_0x209f65[_0x40f638(0x265)],'ascii');}catch(_0x2d1f18){_0x466d94[_0x40f638(0x239)](_0x40f638(0x232)+_0x209f65[_0x40f638(0x265)]+_0x40f638(0x22d));}this[_0x40f638(0x20d)]='https://'+_0x209f65[_0x40f638(0x201)]+_0x40f638(0x247);}[a5_0xbf4407(0x21e)](_0x4ded6d,_0x4a86d5){const _0x4279bb=a5_0xbf4407,_0x18a4fd={'uri':this['apiUrl']+'register','method':'POST','json':!![],'body':{'debuggee':_0x4ded6d}};this[_0x4279bb(0x23d)](_0x18a4fd,(_0x4e35b0,_0x1355bb,_0x43fa0b)=>{const _0x4145f3=_0x4279bb;if(!_0x43fa0b)_0x4a86d5(_0x4e35b0||new Error('unknown\x20error\x20-\x20request\x20response\x20missing'));else{if(_0x4e35b0)_0x43fa0b[_0x4145f3(0x223)]===HTTP_UPGRADE_REQUIRED&&(_0x4ded6d['id']=_0x1355bb['debuggee']['id']),_0x4a86d5(_0x4e35b0,_0x1355bb);else{if(_0x43fa0b[_0x4145f3(0x223)]!==HTTP_SUCCESS)_0x4a86d5(new Error(_0x4145f3(0x238)+_0x43fa0b[_0x4145f3(0x223)]));else!_0x1355bb[_0x4145f3(0x259)]?_0x4a86d5(new Error(_0x4145f3(0x256))):(_0x4ded6d['id']=_0x1355bb[_0x4145f3(0x259)]['id'],this[_0x4145f3(0x254)]=_0x1355bb['agentId'],_0x4a86d5(null,_0x1355bb));}}});}['listBreakpoints'](_0x157127,_0xb7454e){const _0x24b035=a5_0xbf4407,_0x29bc41=this;assert(_0x157127['id'],_0x24b035(0x1ff));const _0x2de836={'successOnTimeout':!![]};_0x29bc41[_0x24b035(0x262)]&&(_0x2de836[_0x24b035(0x20c)]=_0x29bc41[_0x24b035(0x262)]);_0x29bc41[_0x24b035(0x254)]&&(_0x2de836[_0x24b035(0x254)]=_0x29bc41[_0x24b035(0x254)]);const _0x6d692c=this['apiUrl']+encodeURIComponent(_0x157127['id'])+'/breakpoints?'+qs[_0x24b035(0x237)](_0x2de836);_0x29bc41[_0x24b035(0x23d)]({'uri':_0x6d692c,'json':!![]},(_0x1864d2,_0x104f3d,_0x514abb)=>{const _0x23d0a2=_0x24b035;if(!_0x514abb){_0xb7454e(_0x1864d2||new Error(_0x23d0a2(0x220)));return;}else{if(!is2xx(_0x514abb[_0x23d0a2(0x223)])){_0xb7454e(new Error('unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20'+_0x514abb[_0x23d0a2(0x223)]),_0x514abb);return;}else _0x104f3d=_0x104f3d||{},_0x29bc41[_0x23d0a2(0x262)]=_0x104f3d[_0x23d0a2(0x262)],_0xb7454e(null,_0x514abb,_0x104f3d);}});}[a5_0xbf4407(0x268)](_0xa87f86,_0x1eca9b){const _0x20025a=a5_0xbf4407;assert(_0xa87f86['id'],_0x20025a(0x1ff)),this['transmissionQueue'][_0x20025a(0x209)]([_0x1eca9b,0x0]);if(!this[_0x20025a(0x270)]){const _0x4b7fee=this;this['transmissionTimeout']=setTimeout(()=>_0x4b7fee[_0x20025a(0x1f4)][_0x20025a(0x261)](_0x4b7fee)(_0xa87f86['id']),0x0);}}[a5_0xbf4407(0x23b)](){const _0x3d857f=a5_0xbf4407;if(!this[_0x3d857f(0x270)])return;clearTimeout(this[_0x3d857f(0x270)]),this[_0x3d857f(0x270)]=null;}[a5_0xbf4407(0x224)](_0x4b0187,_0x2be66b){const _0x1f0193=a5_0xbf4407,_0xa1fdf5=this,_0x328f7c=this['apiUrl']+encodeURIComponent(_0x4b0187['id'])+_0x1f0193(0x22a),_0x2cbdbc={'uri':_0x328f7c,'method':_0x1f0193(0x25e),'json':!![]};_0xa1fdf5[_0x1f0193(0x253)][_0x1f0193(0x24a)]('Deregister\x20agent\x20before\x20shutdown'),_0xa1fdf5[_0x1f0193(0x23d)](_0x2cbdbc,(_0x37bdc3,_0x4c22eb,_0x375d28)=>{const _0x6ed848=_0x1f0193;(!_0x375d28||Math['floor'](_0x375d28[_0x6ed848(0x223)]/0x64)!==0x2)&&_0xa1fdf5[_0x6ed848(0x253)][_0x6ed848(0x239)](_0x6ed848(0x240)+_0x37bdc3),_0x2be66b(_0x37bdc3);});}[a5_0xbf4407(0x213)](_0x3873dd,_0x5a9308,_0x8fd7cc){const _0x4ec809=a5_0xbf4407,_0x180ec7=this,_0x42dd64=this['apiUrl']+encodeURIComponent(_0x3873dd['id'])+_0x4ec809(0x1fc),_0x3f64d7={'uri':_0x42dd64,'method':_0x4ec809(0x25e),'json':!![],'body':_0x5a9308};this[_0x4ec809(0x23d)](_0x3f64d7,(_0x25f8d3,_0x6ee3cb,_0x575155)=>{const _0x14334c=_0x4ec809;(!_0x575155||Math[_0x14334c(0x278)](_0x575155[_0x14334c(0x223)]/0x64)!==0x2)&&(_0x180ec7['logger'][_0x14334c(0x239)](_0x14334c(0x21a)+_0x25f8d3),_0x8fd7cc(_0x25f8d3));});}['sendAppOnlyBreakpointHitsToServer'](_0x5cee87,_0x3a2a10,_0x5afad9){const _0x53cde5=a5_0xbf4407,_0x185745=this,_0x13d6d8=this['apiUrl']+encodeURIComponent(_0x5cee87['id'])+_0x53cde5(0x241),_0x17b486={'uri':_0x13d6d8,'method':_0x53cde5(0x25e),'json':!![],'body':_0x3a2a10};this['makeRequest'](_0x17b486,(_0x5c9c4a,_0x47c508,_0x48332f)=>{const _0x103fcb=_0x53cde5;(!_0x48332f||Math[_0x103fcb(0x278)](_0x48332f['status']/0x64)!==0x2)&&(_0x185745['logger'][_0x103fcb(0x239)](_0x103fcb(0x1f2)+_0x5c9c4a),_0x5afad9(_0x5c9c4a));});}[a5_0xbf4407(0x26b)](_0x161134,_0x42fe92,_0x48c74a){const _0x19092f=a5_0xbf4407;assert(_0x161134['id'],_0x19092f(0x1ff));if(this[_0x19092f(0x21d)]){const _0x362801=Date['now'](),_0x486f1e=this[_0x19092f(0x21d)]+this[_0x19092f(0x1f8)][_0x19092f(0x24d)]['collectCooldownMs'];if(_0x362801<_0x486f1e){this['logger'][_0x19092f(0x24a)]('Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining'+((_0x486f1e-_0x362801)/0x3e8+_0x19092f(0x215)));return;}}const _0x2196f6=fs_1[_0x19092f(0x24f)](_0x48c74a)[_0x19092f(0x20e)],_0x2c9308=Math[_0x19092f(0x23e)](0x0,_0x2196f6-this['config'][_0x19092f(0x24d)]['maxLogFileBytes']),_0x531dca=fs_1[_0x19092f(0x22e)](_0x48c74a,{'start':_0x2c9308}),_0x34a6fb=zlib_1[_0x19092f(0x20b)](),_0x4c118f=new memory_streams_1[(_0x19092f(0x26f))](),_0x55fbdf=this;_0x55fbdf[_0x19092f(0x253)][_0x19092f(0x24a)](_0x19092f(0x208)+_0x48c74a+_0x19092f(0x1f5)+_0x42fe92),stream_1['pipeline'](_0x531dca,_0x34a6fb,_0x4c118f,_0x5e12e4=>{const _0x42f3c2=_0x19092f;if(_0x5e12e4)_0x55fbdf[_0x42f3c2(0x253)]['error'](_0x42f3c2(0x226)+_0x48c74a+':\x20'+_0x5e12e4);else{const _0x268d32={'uri':this[_0x42f3c2(0x20d)]+encodeURIComponent(_0x161134['id'])+_0x42f3c2(0x26d)+_0x42fe92,'method':_0x42f3c2(0x200),'body':_0x4c118f['toBuffer']()};_0x55fbdf['makeRequest'](_0x268d32,_0x47d9ac=>{const _0x1ad490=_0x42f3c2;_0x47d9ac?_0x55fbdf[_0x1ad490(0x253)][_0x1ad490(0x267)](_0x1ad490(0x25a)+_0x48c74a+'\x20for\x20request\x20'+_0x42fe92,_0x47d9ac):(_0x55fbdf[_0x1ad490(0x253)][_0x1ad490(0x24a)](_0x1ad490(0x228)+_0x48c74a+_0x1ad490(0x250)+_0x42fe92),_0x55fbdf['lastLogCollectionTime']=Date[_0x1ad490(0x1f7)]());});}});}[a5_0xbf4407(0x1f4)](_0x258cfc){const _0x55e10e=a5_0xbf4407;var _0x467b3e;this[_0x55e10e(0x253)][_0x55e10e(0x212)](_0x55e10e(0x1fa)),this[_0x55e10e(0x270)]=undefined;const _0x30b9b2=[];while(_0x30b9b2['length']<this[_0x55e10e(0x1f8)][_0x55e10e(0x214)]&&this[_0x55e10e(0x26a)][_0x55e10e(0x1f3)]>0x0){_0x30b9b2[_0x55e10e(0x209)](this[_0x55e10e(0x26a)]['shift']());}if(!_0x30b9b2)return;const _0x559c17=_0x30b9b2[_0x55e10e(0x205)](_0x1c25c9=>_0x1c25c9[0x0]['id']),_0x5874ce={'uri':this['apiUrl']+encodeURIComponent(_0x258cfc)+_0x55e10e(0x23c),'json':!![],'method':_0x55e10e(0x200),'body':_0x30b9b2[_0x55e10e(0x205)](_0xbccbe5=>_0xbccbe5[0x0])},_0x1a86d6=this;try{this['makeRequest'](_0x5874ce,(_0x4d8f0b,_0x42d3ba,_0x34bdc2)=>{const _0x65365c=_0x55e10e,_0x4acb3b=_0x34bdc2===null||_0x34bdc2===void 0x0?void 0x0:_0x34bdc2[_0x65365c(0x223)];if(_0x4d8f0b||!_0x4acb3b||Math['floor'](_0x4acb3b/0x64)!==0x2){const _0x5a93be=_0x4acb3b&&(_0x4acb3b>=0x1f4||_0x4acb3b===0x198);if(_0x5a93be){_0x1a86d6['logger'][_0x65365c(0x239)](_0x65365c(0x251)+_0x559c17+_0x65365c(0x27a)+_0x4acb3b+_0x65365c(0x257)+_0x4d8f0b);for(const _0x1294a2 of _0x30b9b2){_0x1294a2[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0x1a86d6[_0x65365c(0x26a)][_0x65365c(0x209)]([_0x1294a2[0x0],_0x1294a2[0x1]+0x1]):_0x1a86d6[_0x65365c(0x253)]['warn']('Breakpoint\x20'+_0x1294a2[0x0]['id']+'\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it');}}else _0x1a86d6[_0x65365c(0x253)][_0x65365c(0x239)](_0x65365c(0x243)+_0x559c17+_0x65365c(0x27a)+_0x4acb3b+_0x65365c(0x257)+_0x4d8f0b);}else _0x1a86d6[_0x65365c(0x253)]['info']('Update\x20for\x20breakpoints\x20'+_0x559c17+_0x65365c(0x233));_0x1a86d6[_0x65365c(0x26a)][_0x65365c(0x1f3)]>0x0&&(_0x1a86d6[_0x65365c(0x270)]=setTimeout(()=>_0x1a86d6[_0x65365c(0x1f4)][_0x65365c(0x261)](_0x1a86d6)(_0x258cfc),0x0));});}catch(_0x97aa83){this[_0x55e10e(0x253)][_0x55e10e(0x239)](_0x55e10e(0x243)+_0x559c17+_0x55e10e(0x20f)+_0x97aa83+',\x20Message:\x20'+((_0x467b3e=_0x97aa83[_0x55e10e(0x274)])===null||_0x467b3e===void 0x0?void 0x0:_0x467b3e[_0x55e10e(0x229)])),_0x1a86d6[_0x55e10e(0x26a)][_0x55e10e(0x1f3)]>0x0&&(_0x1a86d6[_0x55e10e(0x270)]=setTimeout(()=>_0x1a86d6[_0x55e10e(0x1f4)]['bind'](_0x1a86d6)(_0x258cfc),0x0));}}async[a5_0xbf4407(0x26c)](_0xb344ea){const _0x31b8ac=a5_0xbf4407;this['logger'][_0x31b8ac(0x24a)](_0x31b8ac(0x279));const _0x1be05b=this['apiUrl']+encodeURIComponent(_0xb344ea)+'/blacklist?successOnTimeout=true',{error:_0x39fc3f,data:_0xbd6578}=await this[_0x31b8ac(0x23d)]({'uri':_0x1be05b,'json':!![]});if(_0x39fc3f)return Promise[_0x31b8ac(0x230)](_0x39fc3f);return yaml[_0x31b8ac(0x216)](_0xbd6578)||{};}[a5_0xbf4407(0x23d)](_0x38fa11,_0x19fa9e){const _0x38f8ab=a5_0xbf4407,_0x3445ac={'Content-Type':_0x38f8ab(0x225),'Authorization':_0x38f8ab(0x271)+this[_0x38f8ab(0x1f8)]['lightrunSecret']},_0x561219={'checkServerIdentity':(_0x1b4790,_0x2bb16b)=>this['verifyCertificate'](_0x1b4790,_0x2bb16b,this[_0x38f8ab(0x1f8)])};if(this[_0x38f8ab(0x248)]){const _0x4afa99=tls_1[_0x38f8ab(0x24b)](_0x561219);_0x4afa99[_0x38f8ab(0x25f)][_0x38f8ab(0x273)](this[_0x38f8ab(0x248)]),_0x561219[_0x38f8ab(0x269)]=_0x4afa99;}const _0x170956=axios_1[_0x38f8ab(0x222)]['CancelToken']['source'](),_0x54f25a=setTimeout(()=>{const _0x5ceec5=_0x38f8ab;this[_0x5ceec5(0x253)][_0x5ceec5(0x239)]('Timeout\x20occurred\x20after\x20'+this[_0x5ceec5(0x1f8)][_0x5ceec5(0x264)]+'ms'),_0x170956[_0x5ceec5(0x1f9)]();},this[_0x38f8ab(0x1f8)][_0x38f8ab(0x264)]),_0x2be4c8={'method':_0x38fa11['method'],'httpsAgent':new https[(_0x38f8ab(0x1f6))](_0x561219),'url':_0x38fa11['uri'],'data':_0x38fa11[_0x38f8ab(0x25c)],'headers':_0x3445ac,'cancelToken':_0x170956[_0x38f8ab(0x24e)]};return extend(!![],_0x2be4c8,_0x38fa11),axios_1[_0x38f8ab(0x222)]['request'](_0x2be4c8)[_0x38f8ab(0x206)](_0x52e4e4=>{const _0x464e33=_0x38f8ab;return _0x19fa9e===null||_0x19fa9e===void 0x0?void 0x0:_0x19fa9e(null,_0x52e4e4[_0x464e33(0x274)],_0x52e4e4),{'error':null,'data':_0x52e4e4['data'],'res':_0x52e4e4};})[_0x38f8ab(0x27c)](_0x4fe0f6=>{const _0xb98456=_0x38f8ab;var _0x11c2b8,_0x39ca14;return _0x19fa9e===null||_0x19fa9e===void 0x0?void 0x0:_0x19fa9e(_0x4fe0f6,(_0x11c2b8=_0x4fe0f6[_0xb98456(0x244)])===null||_0x11c2b8===void 0x0?void 0x0:_0x11c2b8[_0xb98456(0x274)],_0x4fe0f6[_0xb98456(0x244)]),{'error':_0x4fe0f6,'data':(_0x39ca14=_0x4fe0f6[_0xb98456(0x244)])===null||_0x39ca14===void 0x0?void 0x0:_0x39ca14[_0xb98456(0x274)],'res':_0x4fe0f6[_0xb98456(0x244)]};})[_0x38f8ab(0x245)](()=>clearTimeout(_0x54f25a));}[a5_0xbf4407(0x1fe)](_0x1d2ace,_0x1667c9,_0x2c2e5e){const _0x332882=a5_0xbf4407;if(_0x2c2e5e[_0x332882(0x252)])return undefined;const _0x51e7ad=crypto_1[_0x332882(0x23a)](_0x332882(0x21c))[_0x332882(0x22c)](_0x1667c9['pubkey'])[_0x332882(0x275)](_0x332882(0x27b));return _0x2c2e5e['pinnedCerts'][_0x332882(0x272)](_0x51e7ad)?undefined:new Error(_0x332882(0x227));}async[a5_0xbf4407(0x266)](_0x15833a){const _0x43227d=a5_0xbf4407;this[_0x43227d(0x253)][_0x43227d(0x24a)](_0x43227d(0x204));const _0x257f7f=this[_0x43227d(0x20d)]+encodeURIComponent(_0x15833a)+_0x43227d(0x277),{error:_0x544c26,data:_0x55411e}=await this['makeRequest']({'uri':_0x257f7f,'json':!![]});if(_0x544c26)return Promise[_0x43227d(0x230)](_0x544c26);return _0x55411e;}}exports['Controller']=Controller;function is2xx(_0x520926){const _0x215206=a5_0xbf4407;return Math[_0x215206(0x278)](_0x520926/0x64)===0x2;}
|
|
1
|
+
const a6_0x317b13=a6_0x16d2;(function(_0x3a69f3,_0x162a67){const _0x245614=a6_0x16d2,_0x57ca1d=_0x3a69f3();while(!![]){try{const _0x21abb0=parseInt(_0x245614(0x130))/0x1+-parseInt(_0x245614(0xd8))/0x2+-parseInt(_0x245614(0x144))/0x3*(-parseInt(_0x245614(0xed))/0x4)+parseInt(_0x245614(0x110))/0x5+parseInt(_0x245614(0x137))/0x6+parseInt(_0x245614(0x15b))/0x7*(-parseInt(_0x245614(0x13e))/0x8)+-parseInt(_0x245614(0x131))/0x9*(parseInt(_0x245614(0x14d))/0xa);if(_0x21abb0===_0x162a67)break;else _0x57ca1d['push'](_0x57ca1d['shift']());}catch(_0x179fa4){_0x57ca1d['push'](_0x57ca1d['shift']());}}}(a6_0x194f,0x95147));const a6_0x15f789=(function(){let _0x139039=!![];return function(_0x253929,_0x1d13d1){const _0x32f988=_0x139039?function(){const _0xd5f331=a6_0x16d2;if(_0x1d13d1){const _0x4a98ce=_0x1d13d1[_0xd5f331(0x138)](_0x253929,arguments);return _0x1d13d1=null,_0x4a98ce;}}:function(){};return _0x139039=![],_0x32f988;};}()),a6_0x2bf459=a6_0x15f789(this,function(){const _0x1e5262=a6_0x16d2;return a6_0x2bf459[_0x1e5262(0x15e)]()[_0x1e5262(0x13c)]('(((.+)+)+)+$')[_0x1e5262(0x15e)]()['constructor'](a6_0x2bf459)['search'](_0x1e5262(0x152));});a6_0x2bf459();'use strict';function a6_0x194f(){const _0x1fb3e7=['memory-streams','extend','\x22\x20-\x20ignoring\x20it','should\x20have\x20a\x20registered\x20debuggee','Controller','transmitBreakpointUpdates','Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','error','/blacklist?successOnTimeout=true','token','\x20transmitted\x20successfully','438602ZwKuqS','9479331mPDfMh','ascii','/debuggees/','caPath','max','agentLog','5998956ZzeZgz','apply','default','transmissionQueue','verifyCertificate','search','https','11288ZnnYaw','/controller','Breakpoint\x20','cancel','https://','crypto','1851uudODr','statSync','selfSignedCA','debuggee','maxLogFileBytes','invalid\x20response\x20body\x20from\x20server','CancelToken','digest','Certificate\x20Pinning\x20Failed!','10xSzDGf','transmissionTimeout','agentId','unknown\x20error\x20-\x20request\x20response\x20missing','/breakpoints','(((.+)+)+)+$','then','Failed\x20to\x20deregister\x20agent,\x20Error:\x20','nextWaitToken','Bearer\x20','readFileSync','createHash','request','pipeline','917pdwsAO','Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining','\x20Error:\x20','toString','Failed\x20transmitting\x20app_only\x20breakpoint\x20hits,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','\x20seconds','\x20for\x20request\x20id\x20','waitToken','232004ytqtXH','Transmitting\x20breakpoint\x20updates...','register','uri','secureContext','map','length','push',',\x20Message:\x20','POST','sha256','stringify','toBuffer','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','config','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','createSecureContext','clearTransmissionTimeout','defineProperty','createReadStream','lastLogCollectionTime','2588KIsJjh','requestTimeoutMs','status','logger','sendBreakpointLogsToServer','\x20for\x20request\x20','debug','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','method','finally','source','makeRequest','noCheckCertificate','pinnedCerts','js-yaml','size','unable\x20to\x20register,\x20status\x20','/deregister/','__esModule','message','Failed\x20to\x20read\x20pem\x20file\x20\x22','includes','transmissionBulkMaxSize','body','Deregister\x20agent\x20before\x20shutdown','Update\x20for\x20breakpoints\x20','sendAppOnlyBreakpointHitsToServer','querystring','floor','@google-cloud/common','hex','getBlocklist','axios','data','Timeout\x20occurred\x20after\x20','635530WKwYIY','createGzip','unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20','addCACert','zlib','listBreakpoints','apiUrl','PUT','warn','catch','getRedactions','Getting\x20blocklist','lightrunSecret','Compressing\x20and\x20sending\x20log\x20file\x20','\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it','response','bind','deregister','info','apiEndpoint','tls'];a6_0x194f=function(){return _0x1fb3e7;};return a6_0x194f();}Object[a6_0x317b13(0xea)](exports,a6_0x317b13(0xff),{'value':!![]}),exports[a6_0x317b13(0x129)]=void 0x0;const common_1=require(a6_0x317b13(0x10a)),assert=require('assert'),qs=require(a6_0x317b13(0x108)),fs_1=require('fs'),crypto_1=require(a6_0x317b13(0x143)),zlib_1=require(a6_0x317b13(0x114)),stream_1=require('stream'),memory_streams_1=require(a6_0x317b13(0x125)),tls_1=require(a6_0x317b13(0x124)),extend=require(a6_0x317b13(0x126)),axios_1=require(a6_0x317b13(0x10d)),https=require(a6_0x317b13(0x13d)),yaml=require(a6_0x317b13(0xfb)),MAX_FAILED_SEND_ATTEMPTS=0x5,HTTP_SUCCESS=0xc8,HTTP_UPGRADE_REQUIRED=0x1aa;class Controller extends common_1['ServiceObject']{constructor(_0x452c94,_0x14426a,_0x1a0403){const _0x1afedd=a6_0x317b13;super({'parent':_0x452c94,'baseUrl':_0x1afedd(0x13f)}),this[_0x1afedd(0x155)]=null,this[_0x1afedd(0x14f)]=null,this[_0x1afedd(0xe6)]=_0x14426a,this['transmissionQueue']=[],this[_0x1afedd(0xf0)]=_0x1a0403;if(_0x14426a[_0x1afedd(0x134)])try{this[_0x1afedd(0x146)]=fs_1[_0x1afedd(0x157)](_0x14426a[_0x1afedd(0x134)],_0x1afedd(0x132));}catch(_0x53f3c0){_0x1a0403[_0x1afedd(0x118)](_0x1afedd(0x101)+_0x14426a[_0x1afedd(0x134)]+_0x1afedd(0x127));}this['apiUrl']=_0x1afedd(0x142)+_0x14426a[_0x1afedd(0x123)]+_0x1afedd(0x133);}[a6_0x317b13(0xda)](_0x23dd7a,_0x5d97a2){const _0x57f7cd=a6_0x317b13,_0x34c61c={'uri':this[_0x57f7cd(0x116)]+_0x57f7cd(0xda),'method':_0x57f7cd(0xe1),'json':!![],'body':{'debuggee':_0x23dd7a}};this[_0x57f7cd(0xf8)](_0x34c61c,(_0x2030aa,_0x409ce2,_0x58cddf)=>{const _0x58ccab=_0x57f7cd;if(!_0x58cddf)_0x5d97a2(_0x2030aa||new Error(_0x58ccab(0x150)));else{if(_0x2030aa)_0x58cddf[_0x58ccab(0xef)]===HTTP_UPGRADE_REQUIRED&&_0x409ce2&&(_0x23dd7a['id']=_0x409ce2[_0x58ccab(0x147)]['id']),_0x5d97a2(_0x2030aa,_0x409ce2);else{if(_0x58cddf[_0x58ccab(0xef)]!==HTTP_SUCCESS)_0x5d97a2(new Error(_0x58ccab(0xfd)+_0x58cddf[_0x58ccab(0xef)]));else!(_0x409ce2===null||_0x409ce2===void 0x0?void 0x0:_0x409ce2[_0x58ccab(0x147)])?_0x5d97a2(new Error(_0x58ccab(0x149))):(_0x23dd7a['id']=_0x409ce2[_0x58ccab(0x147)]['id'],this['agentId']=_0x409ce2[_0x58ccab(0x14f)],_0x5d97a2(null,_0x409ce2));}}});}[a6_0x317b13(0x115)](_0x724517,_0x173f83){const _0x3f5180=a6_0x317b13,_0xd4fdfb=this;assert(_0x724517['id'],_0x3f5180(0x128));const _0x36f77b={'successOnTimeout':!![]};_0xd4fdfb[_0x3f5180(0x155)]&&(_0x36f77b[_0x3f5180(0xd7)]=_0xd4fdfb[_0x3f5180(0x155)]);_0xd4fdfb[_0x3f5180(0x14f)]&&(_0x36f77b[_0x3f5180(0x14f)]=_0xd4fdfb['agentId']);const _0x143453=this[_0x3f5180(0x116)]+encodeURIComponent(_0x724517['id'])+'/breakpoints?'+qs[_0x3f5180(0xe3)](_0x36f77b);_0xd4fdfb[_0x3f5180(0xf8)]({'uri':_0x143453,'json':!![]},(_0x3db77d,_0x569e13,_0x3357a1)=>{const _0x53fd06=_0x3f5180;if(!_0x3357a1){_0x173f83(_0x3db77d||new Error('unknown\x20error\x20-\x20request\x20response\x20missing'));return;}else{if(!is2xx(_0x3357a1[_0x53fd06(0xef)])){_0x173f83(new Error(_0x53fd06(0x112)+_0x3357a1[_0x53fd06(0xef)]),_0x3357a1);return;}else _0x569e13&&(_0xd4fdfb['nextWaitToken']=_0x569e13[_0x53fd06(0x155)]),_0x173f83(null,_0x3357a1,_0x569e13);}});}['enqueueBreakpointUpdate'](_0x4a47ea,_0x14d2e7){const _0x1851df=a6_0x317b13;assert(_0x4a47ea['id'],_0x1851df(0x128)),this[_0x1851df(0x13a)][_0x1851df(0xdf)]([_0x14d2e7,0x0]);if(!this['transmissionTimeout']){const _0x2a19f9=this;this[_0x1851df(0x14e)]=setTimeout(()=>_0x2a19f9[_0x1851df(0x12a)]['bind'](_0x2a19f9)(_0x4a47ea['id']),0x0);}}[a6_0x317b13(0xe9)](){const _0x7c025=a6_0x317b13;if(!this['transmissionTimeout'])return;clearTimeout(this[_0x7c025(0x14e)]),this[_0x7c025(0x14e)]=null;}[a6_0x317b13(0x121)](_0x4528e7,_0x1d99e1){const _0x2f84ab=a6_0x317b13,_0x135e0c=this[_0x2f84ab(0x116)]+encodeURIComponent(_0x4528e7['id'])+_0x2f84ab(0xfe),_0x172095={'uri':_0x135e0c,'method':_0x2f84ab(0xe1),'json':!![]};this[_0x2f84ab(0xf0)][_0x2f84ab(0x122)](_0x2f84ab(0x105)),this[_0x2f84ab(0xf8)](_0x172095,(_0x2834b7,_0x351642,_0x3dcf96)=>{const _0x501d41=_0x2f84ab;(!_0x3dcf96||Math[_0x501d41(0x109)](_0x3dcf96[_0x501d41(0xef)]/0x64)!==0x2)&&this[_0x501d41(0xf0)][_0x501d41(0x118)](_0x501d41(0x154)+_0x2834b7),_0x1d99e1(_0x2834b7);});}[a6_0x317b13(0xf1)](_0x2518b1,_0x85ede1,_0x466dd3){const _0x1a6edc=a6_0x317b13,_0x5e34c6=this['apiUrl']+encodeURIComponent(_0x2518b1['id'])+'/log/',_0x305897={'uri':_0x5e34c6,'method':_0x1a6edc(0xe1),'json':!![],'body':_0x85ede1};this['makeRequest'](_0x305897,(_0x28d3c4,_0x358777,_0x101303)=>{const _0x3788fb=_0x1a6edc;(!_0x101303||Math[_0x3788fb(0x109)](_0x101303[_0x3788fb(0xef)]/0x64)!==0x2)&&(this[_0x3788fb(0xf0)]['warn'](_0x3788fb(0x12b)+_0x28d3c4),_0x466dd3(_0x28d3c4));});}[a6_0x317b13(0x107)](_0x303dd6,_0x42e59e,_0x16df8e){const _0x4e87c5=a6_0x317b13,_0x31e11d=this[_0x4e87c5(0x116)]+encodeURIComponent(_0x303dd6['id'])+'/appOnlyActionHits/',_0xb41270={'uri':_0x31e11d,'method':_0x4e87c5(0xe1),'json':!![],'body':_0x42e59e};this['makeRequest'](_0xb41270,(_0x5eef38,_0x57cbde,_0x3d9c35)=>{const _0x12fb73=_0x4e87c5;(!_0x3d9c35||Math['floor'](_0x3d9c35[_0x12fb73(0xef)]/0x64)!==0x2)&&(this[_0x12fb73(0xf0)][_0x12fb73(0x118)](_0x12fb73(0xd4)+_0x5eef38),_0x16df8e(_0x5eef38));});}['sendAgentLogsToServer'](_0x49ebd8,_0xc80403,_0xb0f82e){const _0x5cae4d=a6_0x317b13;assert(_0x49ebd8['id'],_0x5cae4d(0x128));if(this[_0x5cae4d(0xec)]){const _0x4bdce9=Date['now'](),_0x425520=this[_0x5cae4d(0xec)]+this['config']['agentLog']['collectCooldownMs'];if(_0x4bdce9<_0x425520){this[_0x5cae4d(0xf0)][_0x5cae4d(0x122)](_0x5cae4d(0x15c)+((_0x425520-_0x4bdce9)/0x3e8+_0x5cae4d(0xd5)));return;}}const _0x13d185=fs_1[_0x5cae4d(0x145)](_0xb0f82e)[_0x5cae4d(0xfc)],_0x34eda6=Math[_0x5cae4d(0x135)](0x0,_0x13d185-this[_0x5cae4d(0xe6)][_0x5cae4d(0x136)][_0x5cae4d(0x148)]),_0x5b49c8=fs_1[_0x5cae4d(0xeb)](_0xb0f82e,{'start':_0x34eda6}),_0x223c8d=zlib_1[_0x5cae4d(0x111)](),_0x7bd5e=new memory_streams_1['WritableStream'](),_0x5c4b93=this;_0x5c4b93[_0x5cae4d(0xf0)][_0x5cae4d(0x122)](_0x5cae4d(0x11d)+_0xb0f82e+_0x5cae4d(0xd6)+_0xc80403),stream_1[_0x5cae4d(0x15a)](_0x5b49c8,_0x223c8d,_0x7bd5e,_0x18eefc=>{const _0x40a8dd=_0x5cae4d;if(_0x18eefc)_0x5c4b93[_0x40a8dd(0xf0)][_0x40a8dd(0x12c)]('Failed\x20to\x20zip\x20'+_0xb0f82e+':\x20'+_0x18eefc);else{const _0x418b00={'uri':this['apiUrl']+encodeURIComponent(_0x49ebd8['id'])+'/compressedLogFile/'+_0xc80403,'method':_0x40a8dd(0x117),'body':_0x7bd5e[_0x40a8dd(0xe4)]()};_0x5c4b93[_0x40a8dd(0xf8)](_0x418b00,_0x1925f2=>{const _0xaac04=_0x40a8dd;_0x1925f2?_0x5c4b93[_0xaac04(0xf0)][_0xaac04(0x12c)]('Failed\x20to\x20send\x20log\x20file\x20'+_0xb0f82e+'\x20for\x20request\x20'+_0xc80403,_0x1925f2):(_0x5c4b93[_0xaac04(0xf0)][_0xaac04(0x122)]('Successfully\x20sent\x20log\x20file\x20'+_0xb0f82e+_0xaac04(0xf2)+_0xc80403),_0x5c4b93['lastLogCollectionTime']=Date['now']());});}});}[a6_0x317b13(0x12a)](_0x963764){const _0x35bc2d=a6_0x317b13;var _0xedfd48;this['logger'][_0x35bc2d(0xf3)](_0x35bc2d(0xd9)),this[_0x35bc2d(0x14e)]=undefined;const _0x4d4c6a=[];while(_0x4d4c6a['length']<this['config'][_0x35bc2d(0x103)]&&this['transmissionQueue'][_0x35bc2d(0xde)]>0x0){_0x4d4c6a['push'](this[_0x35bc2d(0x13a)]['shift']());}if(!_0x4d4c6a)return;const _0xd6c367=_0x4d4c6a['map'](_0x1e40c7=>_0x1e40c7[0x0]['id']),_0x1e45fa={'uri':this['apiUrl']+encodeURIComponent(_0x963764)+_0x35bc2d(0x151),'json':!![],'method':_0x35bc2d(0x117),'body':_0x4d4c6a[_0x35bc2d(0xdd)](_0x3d8ef1=>_0x3d8ef1[0x0])},_0x3033bf=this;try{this[_0x35bc2d(0xf8)](_0x1e45fa,(_0x26a76b,_0xb338ee,_0x813c1c)=>{const _0x3b0fcf=_0x35bc2d,_0x5dbf0e=_0x813c1c===null||_0x813c1c===void 0x0?void 0x0:_0x813c1c[_0x3b0fcf(0xef)];if(_0x26a76b||!_0x5dbf0e||Math[_0x3b0fcf(0x109)](_0x5dbf0e/0x64)!==0x2){const _0x236f2c=_0x5dbf0e&&(_0x5dbf0e>=0x1f4||_0x5dbf0e===0x198);if(_0x236f2c){_0x3033bf[_0x3b0fcf(0xf0)][_0x3b0fcf(0x118)]('Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20'+_0xd6c367+_0x3b0fcf(0xe5)+_0x5dbf0e+_0x3b0fcf(0x15d)+_0x26a76b);for(const _0x1b8e28 of _0x4d4c6a){_0x1b8e28[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0x3033bf[_0x3b0fcf(0x13a)]['push']([_0x1b8e28[0x0],_0x1b8e28[0x1]+0x1]):_0x3033bf[_0x3b0fcf(0xf0)][_0x3b0fcf(0x118)](_0x3b0fcf(0x140)+_0x1b8e28[0x0]['id']+_0x3b0fcf(0x11e));}}else _0x3033bf[_0x3b0fcf(0xf0)][_0x3b0fcf(0x118)](_0x3b0fcf(0xf4)+_0xd6c367+_0x3b0fcf(0xe5)+_0x5dbf0e+_0x3b0fcf(0x15d)+_0x26a76b);}else _0x3033bf['logger'][_0x3b0fcf(0x122)](_0x3b0fcf(0x106)+_0xd6c367+_0x3b0fcf(0x12f));_0x3033bf[_0x3b0fcf(0x13a)]['length']>0x0&&(_0x3033bf[_0x3b0fcf(0x14e)]=setTimeout(()=>_0x3033bf[_0x3b0fcf(0x12a)]['bind'](_0x3033bf)(_0x963764),0x0));});}catch(_0x3cdc50){this[_0x35bc2d(0xf0)][_0x35bc2d(0x118)](_0x35bc2d(0xf4)+_0xd6c367+_0x35bc2d(0xe7)+_0x3cdc50+_0x35bc2d(0xe0)+((_0xedfd48=_0x3cdc50[_0x35bc2d(0x10e)])===null||_0xedfd48===void 0x0?void 0x0:_0xedfd48[_0x35bc2d(0x100)])),_0x3033bf[_0x35bc2d(0x13a)][_0x35bc2d(0xde)]>0x0&&(_0x3033bf[_0x35bc2d(0x14e)]=setTimeout(()=>_0x3033bf['transmitBreakpointUpdates'][_0x35bc2d(0x120)](_0x3033bf)(_0x963764),0x0));}}async[a6_0x317b13(0x10c)](_0x27c7a){const _0x4e83c4=a6_0x317b13;this[_0x4e83c4(0xf0)]['info'](_0x4e83c4(0x11b));const _0x3a9279=this[_0x4e83c4(0x116)]+encodeURIComponent(_0x27c7a)+_0x4e83c4(0x12d),{error:_0x3cc502,data:_0x463d55}=await this[_0x4e83c4(0xf8)]({'uri':_0x3a9279,'json':!![]});if(_0x3cc502)return Promise['reject'](_0x3cc502);return yaml['load'](_0x463d55)||{};}[a6_0x317b13(0xf8)](_0x5d0ae4,_0x22d09c){const _0xfaa22a=a6_0x317b13,_0x18344e={'Content-Type':'application/json','Authorization':_0xfaa22a(0x156)+this[_0xfaa22a(0xe6)][_0xfaa22a(0x11c)]},_0x3f3887={'checkServerIdentity':(_0x3036f1,_0x258fa9)=>this[_0xfaa22a(0x13b)](_0x3036f1,_0x258fa9,this[_0xfaa22a(0xe6)])};if(this[_0xfaa22a(0x146)]){const _0x121e04=tls_1[_0xfaa22a(0xe8)](_0x3f3887);_0x121e04['context'][_0xfaa22a(0x113)](this[_0xfaa22a(0x146)]),_0x3f3887[_0xfaa22a(0xdc)]=_0x121e04;}const _0x12b532=axios_1[_0xfaa22a(0x139)][_0xfaa22a(0x14a)][_0xfaa22a(0xf7)](),_0x15f9a1=setTimeout(()=>{const _0x4a08d4=_0xfaa22a;this[_0x4a08d4(0xf0)]['warn'](_0x4a08d4(0x10f)+this['config']['requestTimeoutMs']+'ms'),_0x12b532[_0x4a08d4(0x141)]();},this[_0xfaa22a(0xe6)][_0xfaa22a(0xee)]),_0x36397f={'method':_0x5d0ae4[_0xfaa22a(0xf5)],'httpsAgent':new https['Agent'](_0x3f3887),'url':_0x5d0ae4[_0xfaa22a(0xdb)],'data':_0x5d0ae4[_0xfaa22a(0x104)],'headers':_0x18344e,'cancelToken':_0x12b532[_0xfaa22a(0x12e)]};return extend(!![],_0x36397f,_0x5d0ae4),axios_1[_0xfaa22a(0x139)][_0xfaa22a(0x159)](_0x36397f)[_0xfaa22a(0x153)](_0x26c6f4=>{const _0x123ae0=_0xfaa22a;return _0x22d09c===null||_0x22d09c===void 0x0?void 0x0:_0x22d09c(null,_0x26c6f4[_0x123ae0(0x10e)],_0x26c6f4),{'error':null,'data':_0x26c6f4[_0x123ae0(0x10e)],'res':_0x26c6f4};})[_0xfaa22a(0x119)](_0x356cce=>{const _0x1ff11f=_0xfaa22a;var _0x7c456b,_0x50eef2;return _0x22d09c===null||_0x22d09c===void 0x0?void 0x0:_0x22d09c(_0x356cce,(_0x7c456b=_0x356cce[_0x1ff11f(0x11f)])===null||_0x7c456b===void 0x0?void 0x0:_0x7c456b['data'],_0x356cce['response']),{'error':_0x356cce,'data':(_0x50eef2=_0x356cce[_0x1ff11f(0x11f)])===null||_0x50eef2===void 0x0?void 0x0:_0x50eef2['data'],'res':_0x356cce['response']};})[_0xfaa22a(0xf6)](()=>clearTimeout(_0x15f9a1));}[a6_0x317b13(0x13b)](_0xd44c15,_0x56a2e7,_0x46d4be){const _0x22ca1f=a6_0x317b13;if(_0x46d4be[_0x22ca1f(0xf9)])return undefined;const _0x5084e4=crypto_1[_0x22ca1f(0x158)](_0x22ca1f(0xe2))['update'](_0x56a2e7['pubkey'])[_0x22ca1f(0x14b)](_0x22ca1f(0x10b));return _0x46d4be[_0x22ca1f(0xfa)][_0x22ca1f(0x102)](_0x5084e4)?undefined:new Error(_0x22ca1f(0x14c));}async[a6_0x317b13(0x11a)](_0x6f3fb2){const _0x3789ad=a6_0x317b13;this[_0x3789ad(0xf0)]['info']('Getting\x20reductions');const _0x2ba066=this[_0x3789ad(0x116)]+encodeURIComponent(_0x6f3fb2)+'/redaction',{error:_0x4f6678,data:_0x2930d8}=await this['makeRequest']({'uri':_0x2ba066,'json':!![]});if(_0x4f6678)return Promise['reject'](_0x4f6678);return _0x2930d8;}}exports[a6_0x317b13(0x129)]=Controller;function a6_0x16d2(_0x4ba25e,_0x35d152){const _0x4c1213=a6_0x194f();return a6_0x16d2=function(_0x2bf459,_0x15f789){_0x2bf459=_0x2bf459-0xd4;let _0x194f1c=_0x4c1213[_0x2bf459];return _0x194f1c;},a6_0x16d2(_0x4ba25e,_0x35d152);}function is2xx(_0x331f7d){const _0x1f85e5=a6_0x317b13;return Math[_0x1f85e5(0x109)](_0x331f7d/0x64)===0x2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/agent/controller.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;GAEG;AAEH,iDAAmD;AACnD,iCAAiC;AACjC,kCAAkC;AAClC,2BAA4D;AAC5D,mCAAkC;AAClC,+BAAgC;AAChC,mCAAgC;AAChC,mDAA8C;AAC9C,6BAAyD;AAOzD,iCAAiC;AACjC,iCAAiE;AAEjE,+BAA+B;AAK/B,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,4EAA4E;AAM7G,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAGlC,MAAa,UAAW,SAAQ,sBAAa;IAY3C;;OAEG;IAEH,YAAY,KAAY,EAAE,MAAgC,EAAE,MAAmB;QAC7E,KAAK,CAAC,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAC,CAAC,CAAC;QAE/C,wBAAwB;QACxB,IAAI,CAAC,aA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OAAO,CAAC;YACzC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,UAAkB;QACpC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;QACxE,MAAM,EAAC,KAAK,EAAE,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,WAAW,CAAe;YACzD,GAAG;YACH,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,IAAI,KAAK,EAAE;YACT,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA1dD,gCA0dC;AAED,SAAS,KAAK,CAAC,MAAc;IAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -7,10 +7,11 @@ import AgentLogger from './agent-logger';
|
|
|
7
7
|
import { DebugAgentConfig, ResolvedDebugAgentConfig } from './config';
|
|
8
8
|
import { PipingManager } from './piping-manager';
|
|
9
9
|
import { QuotaManager } from './quota-manager';
|
|
10
|
-
import { BlocklistManager } from '../types/lightrun';
|
|
10
|
+
import { BlocklistManager, ErrorMessage } from '../types/lightrun';
|
|
11
11
|
import { Scanner } from './io/scanner';
|
|
12
12
|
import { FileIndex } from './io/file-index';
|
|
13
13
|
import { RedactionManager } from './reduction/redaction-manager';
|
|
14
|
+
import { ConfigurationProvider } from './configuration-provider';
|
|
14
15
|
interface SourceContext {
|
|
15
16
|
[key: string]: string;
|
|
16
17
|
}
|
|
@@ -77,6 +78,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
77
78
|
pipingManager: PipingManager;
|
|
78
79
|
blocklistManager?: BlocklistManager;
|
|
79
80
|
redactionManager?: RedactionManager;
|
|
81
|
+
configProvider: ConfigurationProvider;
|
|
80
82
|
/**
|
|
81
83
|
* @param {Debug} debug - A Debug instance.
|
|
82
84
|
* @param {object=} config - The option parameters for the Debuglet.
|
|
@@ -113,7 +115,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
113
115
|
/**
|
|
114
116
|
* @private
|
|
115
117
|
*/
|
|
116
|
-
static createDebuggee(uid: string, config: ResolvedDebugAgentConfig, sourceContext: SourceContext | undefined, packageInfo: PackageInfo, agentVersion: string, logger: AgentLogger, environmentProps: DebuggeeEnvironmentProperties, errorMessage?:
|
|
118
|
+
static createDebuggee(uid: string, config: ResolvedDebugAgentConfig, sourceContext: SourceContext | undefined, packageInfo: PackageInfo, agentVersion: string, logger: AgentLogger, environmentProps: DebuggeeEnvironmentProperties, errorMessage?: ErrorMessage): Debuggee;
|
|
117
119
|
/**
|
|
118
120
|
* Use environment vars to infer the current platform.
|
|
119
121
|
* For now this is only Cloud Functions and other.
|
|
@@ -166,7 +168,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
166
168
|
* @return {boolean} false on error
|
|
167
169
|
* @private
|
|
168
170
|
*/
|
|
169
|
-
addBreakpoint_(breakpoint: stackdriver.Breakpoint, cb: (ob: Error |
|
|
171
|
+
addBreakpoint_(breakpoint: stackdriver.Breakpoint, cb: (ob: Error | ErrorMessage) => void): void;
|
|
170
172
|
/**
|
|
171
173
|
* Update the server that the breakpoint has been completed (captured, or
|
|
172
174
|
* expired).
|